Imported Debian patch 1.6.8p5-1
[debian/sudo] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for sudo 1.6.8.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
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
241
242
243
244 # Check that we are running under the correct shell.
245 SHELL=${CONFIG_SHELL-/bin/sh}
246
247 case X$ECHO in
248 X*--fallback-echo)
249   # Remove one level of quotation (which was required for Make).
250   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
251   ;;
252 esac
253
254 echo=${ECHO-echo}
255 if test "X$1" = X--no-reexec; then
256   # Discard the --no-reexec flag, and continue.
257   shift
258 elif test "X$1" = X--fallback-echo; then
259   # Avoid inline document here, it may be left over
260   :
261 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262   # Yippee, $echo works!
263   :
264 else
265   # Restart under the correct shell.
266   exec $SHELL "$0" --no-reexec ${1+"$@"}
267 fi
268
269 if test "X$1" = X--fallback-echo; then
270   # used as fallback echo
271   shift
272   cat <<EOF
273 $*
274 EOF
275   exit 0
276 fi
277
278 # The HP-UX ksh and POSIX shell print the target directory to stdout
279 # if CDPATH is set.
280 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281
282 if test -z "$ECHO"; then
283 if test "X${echo_test_string+set}" != Xset; then
284 # find a string as large as possible, as long as the shell can cope with it
285   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288        echo_test_string="`eval $cmd`" &&
289        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
290     then
291       break
292     fi
293   done
294 fi
295
296 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298    test "X$echo_testing_string" = "X$echo_test_string"; then
299   :
300 else
301   # The Solaris, AIX, and Digital Unix default echo programs unquote
302   # backslashes.  This makes it impossible to quote backslashes using
303   #   echo "$something" | sed 's/\\/\\\\/g'
304   #
305   # So, first we look for a working echo in the user's PATH.
306
307   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308   for dir in $PATH /usr/ucb; do
309     IFS="$lt_save_ifs"
310     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313        test "X$echo_testing_string" = "X$echo_test_string"; then
314       echo="$dir/echo"
315       break
316     fi
317   done
318   IFS="$lt_save_ifs"
319
320   if test "X$echo" = Xecho; then
321     # We didn't find a better echo, so look for alternatives.
322     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324        test "X$echo_testing_string" = "X$echo_test_string"; then
325       # This shell has a builtin print -r that does the trick.
326       echo='print -r'
327     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328          test "X$CONFIG_SHELL" != X/bin/ksh; then
329       # If we have ksh, try running configure again with it.
330       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331       export ORIGINAL_CONFIG_SHELL
332       CONFIG_SHELL=/bin/ksh
333       export CONFIG_SHELL
334       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335     else
336       # Try using printf.
337       echo='printf %s\n'
338       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340          test "X$echo_testing_string" = "X$echo_test_string"; then
341         # Cool, printf works
342         :
343       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344            test "X$echo_testing_string" = 'X\t' &&
345            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346            test "X$echo_testing_string" = "X$echo_test_string"; then
347         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348         export CONFIG_SHELL
349         SHELL="$CONFIG_SHELL"
350         export SHELL
351         echo="$CONFIG_SHELL $0 --fallback-echo"
352       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353            test "X$echo_testing_string" = 'X\t' &&
354            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355            test "X$echo_testing_string" = "X$echo_test_string"; then
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       else
358         # maybe with a smaller string...
359         prev=:
360
361         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
363           then
364             break
365           fi
366           prev="$cmd"
367         done
368
369         if test "$prev" != 'sed 50q "$0"'; then
370           echo_test_string=`eval $prev`
371           export echo_test_string
372           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373         else
374           # Oops.  We lost completely, so just stick with echo.
375           echo=echo
376         fi
377       fi
378     fi
379   fi
380 fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 ECHO=$echo
386 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='sudo'
418 PACKAGE_TARNAME='sudo'
419 PACKAGE_VERSION='1.6.8'
420 PACKAGE_STRING='sudo 1.6.8'
421 PACKAGE_BUGREPORT=''
422
423 # Factoring default headers for most tests.
424 ac_includes_default="\
425 #include <stdio.h>
426 #if HAVE_SYS_TYPES_H
427 # include <sys/types.h>
428 #endif
429 #if HAVE_SYS_STAT_H
430 # include <sys/stat.h>
431 #endif
432 #if STDC_HEADERS
433 # include <stdlib.h>
434 # include <stddef.h>
435 #else
436 # if HAVE_STDLIB_H
437 #  include <stdlib.h>
438 # endif
439 #endif
440 #if HAVE_STRING_H
441 # if !STDC_HEADERS && HAVE_MEMORY_H
442 #  include <memory.h>
443 # endif
444 # include <string.h>
445 #endif
446 #if HAVE_STRINGS_H
447 # include <strings.h>
448 #endif
449 #if HAVE_INTTYPES_H
450 # include <inttypes.h>
451 #else
452 # if HAVE_STDINT_H
453 #  include <stdint.h>
454 # endif
455 #endif
456 #if HAVE_UNISTD_H
457 # include <unistd.h>
458 #endif"
459
460 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBTOOL CFLAGS PROGS CPPFLAGS LDFLAGS SUDO_LDFLAGS SUDO_OBJS SUDO_LIBS NET_LIBS AFS_LIBS OSDEFS AUTH_OBJS MANTYPE MAN_POSTINSTALL SUDOERS_MODE SUDOERS_UID SUDOERS_GID DEV mansectsu mansectform mansrcdir NOEXECDIR noexec_file INSTALL_NOEXEC timedir timeout password_timeout sudo_umask passprompt long_otp_prompt lecture logfac goodpri badpri loglen ignore_dot mail_no_user mail_no_host mail_no_perms mailto mailsub badpass_message fqdn runas_default env_editor passwd_tries tty_tickets insults root_sudo EGREPPROG CC ac_ct_CC EXEEXT OBJEXT CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 UNAMEPROG TRPROG NROFFPROG YACC LIBOBJS ALLOCA KRB5CONFIG LTLIBOBJS'
461 ac_subst_files=''
462
463 # Initialize some variables set by options.
464 ac_init_help=
465 ac_init_version=false
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
468 cache_file=/dev/null
469 exec_prefix=NONE
470 no_create=
471 no_recursion=
472 prefix=NONE
473 program_prefix=NONE
474 program_suffix=NONE
475 program_transform_name=s,x,x,
476 silent=
477 site=
478 srcdir=
479 verbose=
480 x_includes=NONE
481 x_libraries=NONE
482
483 # Installation directory options.
484 # These are left unexpanded so users can "make install exec_prefix=/foo"
485 # and all the variables that are supposed to be based on exec_prefix
486 # by default will actually change.
487 # Use braces instead of parens because sh, perl, etc. also accept them.
488 bindir='${exec_prefix}/bin'
489 sbindir='${exec_prefix}/sbin'
490 libexecdir='${exec_prefix}/libexec'
491 datadir='${prefix}/share'
492 sysconfdir='${prefix}/etc'
493 sharedstatedir='${prefix}/com'
494 localstatedir='${prefix}/var'
495 libdir='${exec_prefix}/lib'
496 includedir='${prefix}/include'
497 oldincludedir='/usr/include'
498 infodir='${prefix}/info'
499 mandir='${prefix}/man'
500
501 ac_prev=
502 for ac_option
503 do
504   # If the previous option needs an argument, assign it.
505   if test -n "$ac_prev"; then
506     eval "$ac_prev=\$ac_option"
507     ac_prev=
508     continue
509   fi
510
511   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
512
513   # Accept the important Cygnus configure options, so we can diagnose typos.
514
515   case $ac_option in
516
517   -bindir | --bindir | --bindi | --bind | --bin | --bi)
518     ac_prev=bindir ;;
519   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520     bindir=$ac_optarg ;;
521
522   -build | --build | --buil | --bui | --bu)
523     ac_prev=build_alias ;;
524   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525     build_alias=$ac_optarg ;;
526
527   -cache-file | --cache-file | --cache-fil | --cache-fi \
528   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529     ac_prev=cache_file ;;
530   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532     cache_file=$ac_optarg ;;
533
534   --config-cache | -C)
535     cache_file=config.cache ;;
536
537   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
538     ac_prev=datadir ;;
539   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540   | --da=*)
541     datadir=$ac_optarg ;;
542
543   -disable-* | --disable-*)
544     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545     # Reject names that are not valid shell variable names.
546     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548    { (exit 1); exit 1; }; }
549     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550     eval "enable_$ac_feature=no" ;;
551
552   -enable-* | --enable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     case $ac_option in
560       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561       *) ac_optarg=yes ;;
562     esac
563     eval enable_$ac_feature='$ac_optarg' ;;
564
565   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567   | --exec | --exe | --ex)
568     ac_prev=exec_prefix ;;
569   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571   | --exec=* | --exe=* | --ex=*)
572     exec_prefix=$ac_optarg ;;
573
574   -gas | --gas | --ga | --g)
575     # Obsolete; use --with-gas.
576     with_gas=yes ;;
577
578   -help | --help | --hel | --he | -h)
579     ac_init_help=long ;;
580   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581     ac_init_help=recursive ;;
582   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583     ac_init_help=short ;;
584
585   -host | --host | --hos | --ho)
586     ac_prev=host_alias ;;
587   -host=* | --host=* | --hos=* | --ho=*)
588     host_alias=$ac_optarg ;;
589
590   -includedir | --includedir | --includedi | --included | --include \
591   | --includ | --inclu | --incl | --inc)
592     ac_prev=includedir ;;
593   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594   | --includ=* | --inclu=* | --incl=* | --inc=*)
595     includedir=$ac_optarg ;;
596
597   -infodir | --infodir | --infodi | --infod | --info | --inf)
598     ac_prev=infodir ;;
599   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600     infodir=$ac_optarg ;;
601
602   -libdir | --libdir | --libdi | --libd)
603     ac_prev=libdir ;;
604   -libdir=* | --libdir=* | --libdi=* | --libd=*)
605     libdir=$ac_optarg ;;
606
607   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608   | --libexe | --libex | --libe)
609     ac_prev=libexecdir ;;
610   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611   | --libexe=* | --libex=* | --libe=*)
612     libexecdir=$ac_optarg ;;
613
614   -localstatedir | --localstatedir | --localstatedi | --localstated \
615   | --localstate | --localstat | --localsta | --localst \
616   | --locals | --local | --loca | --loc | --lo)
617     ac_prev=localstatedir ;;
618   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621     localstatedir=$ac_optarg ;;
622
623   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624     ac_prev=mandir ;;
625   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626     mandir=$ac_optarg ;;
627
628   -nfp | --nfp | --nf)
629     # Obsolete; use --without-fp.
630     with_fp=no ;;
631
632   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633   | --no-cr | --no-c | -n)
634     no_create=yes ;;
635
636   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638     no_recursion=yes ;;
639
640   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642   | --oldin | --oldi | --old | --ol | --o)
643     ac_prev=oldincludedir ;;
644   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647     oldincludedir=$ac_optarg ;;
648
649   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650     ac_prev=prefix ;;
651   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652     prefix=$ac_optarg ;;
653
654   -program-prefix | --program-prefix | --program-prefi | --program-pref \
655   | --program-pre | --program-pr | --program-p)
656     ac_prev=program_prefix ;;
657   -program-prefix=* | --program-prefix=* | --program-prefi=* \
658   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659     program_prefix=$ac_optarg ;;
660
661   -program-suffix | --program-suffix | --program-suffi | --program-suff \
662   | --program-suf | --program-su | --program-s)
663     ac_prev=program_suffix ;;
664   -program-suffix=* | --program-suffix=* | --program-suffi=* \
665   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666     program_suffix=$ac_optarg ;;
667
668   -program-transform-name | --program-transform-name \
669   | --program-transform-nam | --program-transform-na \
670   | --program-transform-n | --program-transform- \
671   | --program-transform | --program-transfor \
672   | --program-transfo | --program-transf \
673   | --program-trans | --program-tran \
674   | --progr-tra | --program-tr | --program-t)
675     ac_prev=program_transform_name ;;
676   -program-transform-name=* | --program-transform-name=* \
677   | --program-transform-nam=* | --program-transform-na=* \
678   | --program-transform-n=* | --program-transform-=* \
679   | --program-transform=* | --program-transfor=* \
680   | --program-transfo=* | --program-transf=* \
681   | --program-trans=* | --program-tran=* \
682   | --progr-tra=* | --program-tr=* | --program-t=*)
683     program_transform_name=$ac_optarg ;;
684
685   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686   | -silent | --silent | --silen | --sile | --sil)
687     silent=yes ;;
688
689   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690     ac_prev=sbindir ;;
691   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692   | --sbi=* | --sb=*)
693     sbindir=$ac_optarg ;;
694
695   -sharedstatedir | --sharedstatedir | --sharedstatedi \
696   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697   | --sharedst | --shareds | --shared | --share | --shar \
698   | --sha | --sh)
699     ac_prev=sharedstatedir ;;
700   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703   | --sha=* | --sh=*)
704     sharedstatedir=$ac_optarg ;;
705
706   -site | --site | --sit)
707     ac_prev=site ;;
708   -site=* | --site=* | --sit=*)
709     site=$ac_optarg ;;
710
711   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712     ac_prev=srcdir ;;
713   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714     srcdir=$ac_optarg ;;
715
716   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717   | --syscon | --sysco | --sysc | --sys | --sy)
718     ac_prev=sysconfdir ;;
719   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721     sysconfdir=$ac_optarg ;;
722
723   -target | --target | --targe | --targ | --tar | --ta | --t)
724     ac_prev=target_alias ;;
725   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726     target_alias=$ac_optarg ;;
727
728   -v | -verbose | --verbose | --verbos | --verbo | --verb)
729     verbose=yes ;;
730
731   -version | --version | --versio | --versi | --vers | -V)
732     ac_init_version=: ;;
733
734   -with-* | --with-*)
735     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736     # Reject names that are not valid shell variable names.
737     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738       { echo "$as_me: error: invalid package name: $ac_package" >&2
739    { (exit 1); exit 1; }; }
740     ac_package=`echo $ac_package| sed 's/-/_/g'`
741     case $ac_option in
742       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743       *) ac_optarg=yes ;;
744     esac
745     eval with_$ac_package='$ac_optarg' ;;
746
747   -without-* | --without-*)
748     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749     # Reject names that are not valid shell variable names.
750     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751       { echo "$as_me: error: invalid package name: $ac_package" >&2
752    { (exit 1); exit 1; }; }
753     ac_package=`echo $ac_package | sed 's/-/_/g'`
754     eval "with_$ac_package=no" ;;
755
756   --x)
757     # Obsolete; use --with-x.
758     with_x=yes ;;
759
760   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761   | --x-incl | --x-inc | --x-in | --x-i)
762     ac_prev=x_includes ;;
763   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765     x_includes=$ac_optarg ;;
766
767   -x-libraries | --x-libraries | --x-librarie | --x-librari \
768   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769     ac_prev=x_libraries ;;
770   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772     x_libraries=$ac_optarg ;;
773
774   -*) { echo "$as_me: error: unrecognized option: $ac_option
775 Try \`$0 --help' for more information." >&2
776    { (exit 1); exit 1; }; }
777     ;;
778
779   *=*)
780     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781     # Reject names that are not valid shell variable names.
782     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784    { (exit 1); exit 1; }; }
785     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786     eval "$ac_envvar='$ac_optarg'"
787     export $ac_envvar ;;
788
789   *)
790     # FIXME: should be removed in autoconf 3.0.
791     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795     ;;
796
797   esac
798 done
799
800 if test -n "$ac_prev"; then
801   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802   { echo "$as_me: error: missing argument to $ac_option" >&2
803    { (exit 1); exit 1; }; }
804 fi
805
806 # Be sure to have absolute paths.
807 for ac_var in exec_prefix prefix
808 do
809   eval ac_val=$`echo $ac_var`
810   case $ac_val in
811     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813    { (exit 1); exit 1; }; };;
814   esac
815 done
816
817 # Be sure to have absolute paths.
818 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819               localstatedir libdir includedir oldincludedir infodir mandir
820 do
821   eval ac_val=$`echo $ac_var`
822   case $ac_val in
823     [\\/$]* | ?:[\\/]* ) ;;
824     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825    { (exit 1); exit 1; }; };;
826   esac
827 done
828
829 # There might be people who depend on the old broken behavior: `$host'
830 # used to hold the argument of --host etc.
831 # FIXME: To remove some day.
832 build=$build_alias
833 host=$host_alias
834 target=$target_alias
835
836 # FIXME: To remove some day.
837 if test "x$host_alias" != x; then
838   if test "x$build_alias" = x; then
839     cross_compiling=maybe
840     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841     If a cross compiler is detected then cross compile mode will be used." >&2
842   elif test "x$build_alias" != "x$host_alias"; then
843     cross_compiling=yes
844   fi
845 fi
846
847 ac_tool_prefix=
848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
849
850 test "$silent" = yes && exec 6>/dev/null
851
852
853 # Find the source files, if location was not specified.
854 if test -z "$srcdir"; then
855   ac_srcdir_defaulted=yes
856   # Try the directory containing this script, then its parent.
857   ac_confdir=`(dirname "$0") 2>/dev/null ||
858 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859          X"$0" : 'X\(//\)[^/]' \| \
860          X"$0" : 'X\(//\)$' \| \
861          X"$0" : 'X\(/\)' \| \
862          .     : '\(.\)' 2>/dev/null ||
863 echo X"$0" |
864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866           /^X\(\/\/\)$/{ s//\1/; q; }
867           /^X\(\/\).*/{ s//\1/; q; }
868           s/.*/./; q'`
869   srcdir=$ac_confdir
870   if test ! -r $srcdir/$ac_unique_file; then
871     srcdir=..
872   fi
873 else
874   ac_srcdir_defaulted=no
875 fi
876 if test ! -r $srcdir/$ac_unique_file; then
877   if test "$ac_srcdir_defaulted" = yes; then
878     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879    { (exit 1); exit 1; }; }
880   else
881     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882    { (exit 1); exit 1; }; }
883   fi
884 fi
885 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887    { (exit 1); exit 1; }; }
888 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889 ac_env_build_alias_set=${build_alias+set}
890 ac_env_build_alias_value=$build_alias
891 ac_cv_env_build_alias_set=${build_alias+set}
892 ac_cv_env_build_alias_value=$build_alias
893 ac_env_host_alias_set=${host_alias+set}
894 ac_env_host_alias_value=$host_alias
895 ac_cv_env_host_alias_set=${host_alias+set}
896 ac_cv_env_host_alias_value=$host_alias
897 ac_env_target_alias_set=${target_alias+set}
898 ac_env_target_alias_value=$target_alias
899 ac_cv_env_target_alias_set=${target_alias+set}
900 ac_cv_env_target_alias_value=$target_alias
901 ac_env_CC_set=${CC+set}
902 ac_env_CC_value=$CC
903 ac_cv_env_CC_set=${CC+set}
904 ac_cv_env_CC_value=$CC
905 ac_env_CFLAGS_set=${CFLAGS+set}
906 ac_env_CFLAGS_value=$CFLAGS
907 ac_cv_env_CFLAGS_set=${CFLAGS+set}
908 ac_cv_env_CFLAGS_value=$CFLAGS
909 ac_env_LDFLAGS_set=${LDFLAGS+set}
910 ac_env_LDFLAGS_value=$LDFLAGS
911 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_cv_env_LDFLAGS_value=$LDFLAGS
913 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
914 ac_env_CPPFLAGS_value=$CPPFLAGS
915 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
917 ac_env_CPP_set=${CPP+set}
918 ac_env_CPP_value=$CPP
919 ac_cv_env_CPP_set=${CPP+set}
920 ac_cv_env_CPP_value=$CPP
921 ac_env_CXX_set=${CXX+set}
922 ac_env_CXX_value=$CXX
923 ac_cv_env_CXX_set=${CXX+set}
924 ac_cv_env_CXX_value=$CXX
925 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
926 ac_env_CXXFLAGS_value=$CXXFLAGS
927 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
928 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
929 ac_env_CXXCPP_set=${CXXCPP+set}
930 ac_env_CXXCPP_value=$CXXCPP
931 ac_cv_env_CXXCPP_set=${CXXCPP+set}
932 ac_cv_env_CXXCPP_value=$CXXCPP
933 ac_env_F77_set=${F77+set}
934 ac_env_F77_value=$F77
935 ac_cv_env_F77_set=${F77+set}
936 ac_cv_env_F77_value=$F77
937 ac_env_FFLAGS_set=${FFLAGS+set}
938 ac_env_FFLAGS_value=$FFLAGS
939 ac_cv_env_FFLAGS_set=${FFLAGS+set}
940 ac_cv_env_FFLAGS_value=$FFLAGS
941
942 #
943 # Report the --help message.
944 #
945 if test "$ac_init_help" = "long"; then
946   # Omit some internal or obsolete options to make the list less imposing.
947   # This message is too long to be a string in the A/UX 3.1 sh.
948   cat <<_ACEOF
949 \`configure' configures sudo 1.6.8 to adapt to many kinds of systems.
950
951 Usage: $0 [OPTION]... [VAR=VALUE]...
952
953 To assign environment variables (e.g., CC, CFLAGS...), specify them as
954 VAR=VALUE.  See below for descriptions of some of the useful variables.
955
956 Defaults for the options are specified in brackets.
957
958 Configuration:
959   -h, --help              display this help and exit
960       --help=short        display options specific to this package
961       --help=recursive    display the short help of all the included packages
962   -V, --version           display version information and exit
963   -q, --quiet, --silent   do not print \`checking...' messages
964       --cache-file=FILE   cache test results in FILE [disabled]
965   -C, --config-cache      alias for \`--cache-file=config.cache'
966   -n, --no-create         do not create output files
967       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
968
969 _ACEOF
970
971   cat <<_ACEOF
972 Installation directories:
973   --prefix=PREFIX         install architecture-independent files in PREFIX
974                           [$ac_default_prefix]
975   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
976                           [PREFIX]
977
978 By default, \`make install' will install all the files in
979 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
980 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
981 for instance \`--prefix=\$HOME'.
982
983 For better control, use the options below.
984
985 Fine tuning of the installation directories:
986   --bindir=DIR           user executables [EPREFIX/bin]
987   --sbindir=DIR          system admin executables [EPREFIX/sbin]
988   --libexecdir=DIR       program executables [EPREFIX/libexec]
989   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
990   --sysconfdir=DIR       read-only single-machine data [/etc]
991   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
992   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
993   --libdir=DIR           object code libraries [EPREFIX/lib]
994   --includedir=DIR       C header files [PREFIX/include]
995   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
996   --infodir=DIR          info documentation [PREFIX/info]
997   --mandir=DIR           man documentation [PREFIX/man]
998 _ACEOF
999
1000   cat <<\_ACEOF
1001
1002 System types:
1003   --build=BUILD     configure for building on BUILD [guessed]
1004   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1005   --target=TARGET   configure for building compilers for TARGET [HOST]
1006 _ACEOF
1007 fi
1008
1009 if test -n "$ac_init_help"; then
1010   case $ac_init_help in
1011      short | recursive ) echo "Configuration of sudo 1.6.8:";;
1012    esac
1013   cat <<\_ACEOF
1014
1015 Optional Features:
1016   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1017   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1018   --disable-authentication
1019                           Do not require authentication by default
1020   --disable-root-mailer   Don't run the mailer as root, run as the user
1021   --disable-setreuid      Don't try to use the setreuid() function
1022   --disable-setresuid      Don't try to use the setresuid() function
1023   --disable-saved-ids     Don't try to use POSIX saved ids
1024   --disable-shadow        Never use shadow passwords
1025   --disable-root-sudo     Don't allow root to run sudo
1026   --enable-log-host       Log the hostname in the log file
1027   --enable-noargs-shell   If sudo is given no arguments run a shell
1028   --enable-shell-sets-home
1029                           set $HOME to target user in shell mode
1030   --disable-path-info     Print 'command not allowed' not 'command not found'
1031   --enable-shared[=PKGS]
1032                           build shared libraries [default=yes]
1033   --enable-static[=PKGS]
1034                           build static libraries [default=no]
1035   --enable-fast-install[=PKGS]
1036                           optimize for fast installation [default=yes]
1037   --disable-libtool-lock  avoid locking (might break parallel builds)
1038   --disable-sia           Never use SIA on Digital UNIX
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-otp-only         deprecated
1044   --with-alertmail        deprecated
1045   --with-CC               C compiler to use
1046   --with-rpath            pass -R flag in addition to -L for lib paths
1047   --with-blibpath=PATH  pass -blibpath flag to ld for additional lib paths
1048   --with-incpath          additional places to look for include files
1049   --with-libpath          additional places to look for libraries
1050   --with-libraries        additional libraries to link with
1051   --with-devel            add development options
1052   --with-efence           link with -lefence for malloc() debugging
1053   --with-csops            add CSOps standard options
1054   --without-passwd        don't use passwd/shadow file for authentication
1055   --with-skey=DIR       enable S/Key support
1056   --with-opie=DIR       enable OPIE support
1057   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1058   --with-SecurID[=DIR]    enable SecurID support
1059   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1060   --with-kerb4[=DIR]      enable Kerberos IV support
1061   --with-kerb5[=DIR]      enable Kerberos V support
1062   --with-authenticate     enable AIX general authentication support
1063   --with-pam              enable PAM support
1064   --with-AFS              enable AFS support
1065   --with-DCE              enable DCE support
1066   --with-logincap         enable BSD login class support
1067   --with-bsdauth          enable BSD authentication support
1068   --without-lecture       don't print lecture for first-time sudoer
1069   --with-logging          log via syslog, file, or both
1070   --with-logfac           syslog facility to log with (default is "local2")
1071   --with-goodpri          syslog priority for commands (def is "notice")
1072   --with-badpri           syslog priority for failures (def is "alert")
1073   --with-logpath          path to the sudo log file
1074   --with-loglen           maximum length of a log file line (default is 80)
1075   --with-ignore-dot       ignore '.' in the PATH
1076   --without-mail-if-no-user do not send mail if user not in sudoers
1077   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1078   --with-mail-if-noperms  send mail if user not allowed to run command
1079   --with-mailto           who should get sudo mail (default is "root")
1080   --with-mailsubject      subject of sudo mail
1081   --with-passprompt       default password prompt
1082   --with-badpass-message  message the user sees when the password is wrong
1083   --with-fqdn             expect fully qualified hosts in sudoers
1084   --with-timedir          path to the sudo timestamp dir
1085   --with-sendmail=path    set path to sendmail
1086   --without-sendmail      do not send mail at all
1087   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1088   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1089   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1090   --with-umask            umask with which the prog should run (default is 022)
1091   --without-umask         Preserves the umask of the user invoking sudo.
1092   --with-runas-default    User to run commands as (default is "root")
1093   --with-exempt=group     no passwd needed for users in this group
1094   --with-editor=path      Default editor for visudo (defaults to vi)
1095   --with-env-editor       Use the environment variable EDITOR for visudo
1096   --with-passwd-tries     number of tries to enter password (default is 3)
1097   --with-timeout          minutes before sudo asks for passwd again (def is 5 minutes)
1098   --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1099   --with-execv            use execv() instead of execvp()
1100   --with-tty-tickets      use a different ticket file for each tty
1101   --with-insults          insult the user for entering an incorrect password
1102   --with-all-insults      include all the sudo insult sets
1103   --with-classic-insults  include the insults from the "classic" sudo
1104   --with-csops-insults    include CSOps insults
1105   --with-hal-insults      include 2001-like insults
1106   --with-goons-insults    include the insults from the "Goon Show"
1107   --with-ldap[=DIR]     enable LDAP support
1108   --with-ldap-conf-file   path to LDAP configuration file
1109   --with-pc-insults       replace politically incorrect insults with less offensive ones
1110   --with-secure-path      override the user's path with a built-in one
1111   --without-interfaces    don't try to read the ip addr of ether interfaces
1112   --with-stow             properly handle GNU stow packaging
1113   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1114   --with-pic              try to use only PIC/non-PIC objects [default=use
1115                           both]
1116   --with-tags[=TAGS]
1117                           include additional configurations [automatic]
1118   --with-noexec=PATH    fully qualified pathname of sudo_noexec.so
1119
1120 Some influential environment variables:
1121   CC          C compiler command
1122   CFLAGS      C compiler flags
1123   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1124               nonstandard directory <lib dir>
1125   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1126               headers in a nonstandard directory <include dir>
1127   CPP         C preprocessor
1128   CXX         C++ compiler command
1129   CXXFLAGS    C++ compiler flags
1130   CXXCPP      C++ preprocessor
1131   F77         Fortran 77 compiler command
1132   FFLAGS      Fortran 77 compiler flags
1133
1134 Use these variables to override the choices made by `configure' or to help
1135 it to find libraries and programs with nonstandard names/locations.
1136
1137 _ACEOF
1138 fi
1139
1140 if test "$ac_init_help" = "recursive"; then
1141   # If there are subdirs, report their specific --help.
1142   ac_popdir=`pwd`
1143   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1144     test -d $ac_dir || continue
1145     ac_builddir=.
1146
1147 if test "$ac_dir" != .; then
1148   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1149   # A "../" for each directory in $ac_dir_suffix.
1150   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1151 else
1152   ac_dir_suffix= ac_top_builddir=
1153 fi
1154
1155 case $srcdir in
1156   .)  # No --srcdir option.  We are building in place.
1157     ac_srcdir=.
1158     if test -z "$ac_top_builddir"; then
1159        ac_top_srcdir=.
1160     else
1161        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1162     fi ;;
1163   [\\/]* | ?:[\\/]* )  # Absolute path.
1164     ac_srcdir=$srcdir$ac_dir_suffix;
1165     ac_top_srcdir=$srcdir ;;
1166   *) # Relative path.
1167     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1168     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1169 esac
1170 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1171 # absolute.
1172 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1173 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1174 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1175 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1176
1177     cd $ac_dir
1178     # Check for guested configure; otherwise get Cygnus style configure.
1179     if test -f $ac_srcdir/configure.gnu; then
1180       echo
1181       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1182     elif test -f $ac_srcdir/configure; then
1183       echo
1184       $SHELL $ac_srcdir/configure  --help=recursive
1185     elif test -f $ac_srcdir/configure.ac ||
1186            test -f $ac_srcdir/configure.in; then
1187       echo
1188       $ac_configure --help
1189     else
1190       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1191     fi
1192     cd $ac_popdir
1193   done
1194 fi
1195
1196 test -n "$ac_init_help" && exit 0
1197 if $ac_init_version; then
1198   cat <<\_ACEOF
1199 sudo configure 1.6.8
1200 generated by GNU Autoconf 2.57
1201
1202 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1203 Free Software Foundation, Inc.
1204 This configure script is free software; the Free Software Foundation
1205 gives unlimited permission to copy, distribute and modify it.
1206 _ACEOF
1207   exit 0
1208 fi
1209 exec 5>config.log
1210 cat >&5 <<_ACEOF
1211 This file contains any messages produced by compilers while
1212 running configure, to aid debugging if configure makes a mistake.
1213
1214 It was created by sudo $as_me 1.6.8, which was
1215 generated by GNU Autoconf 2.57.  Invocation command line was
1216
1217   $ $0 $@
1218
1219 _ACEOF
1220 {
1221 cat <<_ASUNAME
1222 ## --------- ##
1223 ## Platform. ##
1224 ## --------- ##
1225
1226 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231
1232 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1234
1235 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1236 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1237 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1239 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1240 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1241 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1242
1243 _ASUNAME
1244
1245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246 for as_dir in $PATH
1247 do
1248   IFS=$as_save_IFS
1249   test -z "$as_dir" && as_dir=.
1250   echo "PATH: $as_dir"
1251 done
1252
1253 } >&5
1254
1255 cat >&5 <<_ACEOF
1256
1257
1258 ## ----------- ##
1259 ## Core tests. ##
1260 ## ----------- ##
1261
1262 _ACEOF
1263
1264
1265 # Keep a trace of the command line.
1266 # Strip out --no-create and --no-recursion so they do not pile up.
1267 # Strip out --silent because we don't want to record it for future runs.
1268 # Also quote any args containing shell meta-characters.
1269 # Make two passes to allow for proper duplicate-argument suppression.
1270 ac_configure_args=
1271 ac_configure_args0=
1272 ac_configure_args1=
1273 ac_sep=
1274 ac_must_keep_next=false
1275 for ac_pass in 1 2
1276 do
1277   for ac_arg
1278   do
1279     case $ac_arg in
1280     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282     | -silent | --silent | --silen | --sile | --sil)
1283       continue ;;
1284     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286     esac
1287     case $ac_pass in
1288     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289     2)
1290       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291       if test $ac_must_keep_next = true; then
1292         ac_must_keep_next=false # Got value, back to normal.
1293       else
1294         case $ac_arg in
1295           *=* | --config-cache | -C | -disable-* | --disable-* \
1296           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298           | -with-* | --with-* | -without-* | --without-* | --x)
1299             case "$ac_configure_args0 " in
1300               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301             esac
1302             ;;
1303           -* ) ac_must_keep_next=true ;;
1304         esac
1305       fi
1306       ac_configure_args="$ac_configure_args$ac_sep\"$ac_arg\""
1307       # Get rid of the leading space.
1308       ac_sep=" "
1309       ;;
1310     esac
1311   done
1312 done
1313 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315
1316 # When interrupted or exit'd, cleanup temporary files, and complete
1317 # config.log.  We remove comments because anyway the quotes in there
1318 # would cause problems or look ugly.
1319 # WARNING: Be sure not to use single quotes in there, as some shells,
1320 # such as our DU 5.0 friend, will then `close' the trap.
1321 trap 'exit_status=$?
1322   # Save into config.log some information that might help in debugging.
1323   {
1324     echo
1325
1326     cat <<\_ASBOX
1327 ## ---------------- ##
1328 ## Cache variables. ##
1329 ## ---------------- ##
1330 _ASBOX
1331     echo
1332     # The following way of writing the cache mishandles newlines in values,
1333 {
1334   (set) 2>&1 |
1335     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336     *ac_space=\ *)
1337       sed -n \
1338         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1340       ;;
1341     *)
1342       sed -n \
1343         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1344       ;;
1345     esac;
1346 }
1347     echo
1348
1349     cat <<\_ASBOX
1350 ## ----------------- ##
1351 ## Output variables. ##
1352 ## ----------------- ##
1353 _ASBOX
1354     echo
1355     for ac_var in $ac_subst_vars
1356     do
1357       eval ac_val=$`echo $ac_var`
1358       echo "$ac_var='"'"'$ac_val'"'"'"
1359     done | sort
1360     echo
1361
1362     if test -n "$ac_subst_files"; then
1363       cat <<\_ASBOX
1364 ## ------------- ##
1365 ## Output files. ##
1366 ## ------------- ##
1367 _ASBOX
1368       echo
1369       for ac_var in $ac_subst_files
1370       do
1371         eval ac_val=$`echo $ac_var`
1372         echo "$ac_var='"'"'$ac_val'"'"'"
1373       done | sort
1374       echo
1375     fi
1376
1377     if test -s confdefs.h; then
1378       cat <<\_ASBOX
1379 ## ----------- ##
1380 ## confdefs.h. ##
1381 ## ----------- ##
1382 _ASBOX
1383       echo
1384       sed "/^$/d" confdefs.h | sort
1385       echo
1386     fi
1387     test "$ac_signal" != 0 &&
1388       echo "$as_me: caught signal $ac_signal"
1389     echo "$as_me: exit $exit_status"
1390   } >&5
1391   rm -f core core.* *.core &&
1392   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1393     exit $exit_status
1394      ' 0
1395 for ac_signal in 1 2 13 15; do
1396   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397 done
1398 ac_signal=0
1399
1400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1401 rm -rf conftest* confdefs.h
1402 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403 echo >confdefs.h
1404
1405 # Predefined preprocessor variables.
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_NAME "$PACKAGE_NAME"
1409 _ACEOF
1410
1411
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1414 _ACEOF
1415
1416
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1419 _ACEOF
1420
1421
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_STRING "$PACKAGE_STRING"
1424 _ACEOF
1425
1426
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1429 _ACEOF
1430
1431
1432 # Let the site file select an alternate cache file if it wants to.
1433 # Prefer explicitly selected file to automatically selected ones.
1434 if test -z "$CONFIG_SITE"; then
1435   if test "x$prefix" != xNONE; then
1436     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437   else
1438     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439   fi
1440 fi
1441 for ac_site_file in $CONFIG_SITE; do
1442   if test -r "$ac_site_file"; then
1443     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444 echo "$as_me: loading site script $ac_site_file" >&6;}
1445     sed 's/^/| /' "$ac_site_file" >&5
1446     . "$ac_site_file"
1447   fi
1448 done
1449
1450 if test -r "$cache_file"; then
1451   # Some versions of bash will fail to source /dev/null (special
1452   # files actually), so we avoid doing that.
1453   if test -f "$cache_file"; then
1454     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455 echo "$as_me: loading cache $cache_file" >&6;}
1456     case $cache_file in
1457       [\\/]* | ?:[\\/]* ) . $cache_file;;
1458       *)                      . ./$cache_file;;
1459     esac
1460   fi
1461 else
1462   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463 echo "$as_me: creating cache $cache_file" >&6;}
1464   >$cache_file
1465 fi
1466
1467 # Check that the precious variables saved in the cache have kept the same
1468 # value.
1469 ac_cache_corrupted=false
1470 for ac_var in `(set) 2>&1 |
1471                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1472   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473   eval ac_new_set=\$ac_env_${ac_var}_set
1474   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475   eval ac_new_val="\$ac_env_${ac_var}_value"
1476   case $ac_old_set,$ac_new_set in
1477     set,)
1478       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480       ac_cache_corrupted=: ;;
1481     ,set)
1482       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484       ac_cache_corrupted=: ;;
1485     ,);;
1486     *)
1487       if test "x$ac_old_val" != "x$ac_new_val"; then
1488         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1489 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1490         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1491 echo "$as_me:   former value:  $ac_old_val" >&2;}
1492         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1493 echo "$as_me:   current value: $ac_new_val" >&2;}
1494         ac_cache_corrupted=:
1495       fi;;
1496   esac
1497   # Pass precious variables to config.status.
1498   if test "$ac_new_set" = set; then
1499     case $ac_new_val in
1500     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502     *) ac_arg=$ac_var=$ac_new_val ;;
1503     esac
1504     case " $ac_configure_args " in
1505       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1506       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1507     esac
1508   fi
1509 done
1510 if $ac_cache_corrupted; then
1511   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515    { (exit 1); exit 1; }; }
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
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550                     ac_config_headers="$ac_config_headers config.h pathnames.h"
1551
1552 { echo "$as_me:$LINENO: Configuring Sudo version 1.6.8" >&5
1553 echo "$as_me: Configuring Sudo version 1.6.8" >&6;}
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586 timeout=5
1587 password_timeout=5
1588 sudo_umask=0022
1589 passprompt="Password:"
1590 long_otp_prompt=off
1591 lecture=once
1592 logfac=local2
1593 goodpri=notice
1594 badpri=alert
1595 loglen=80
1596 ignore_dot=off
1597 mail_no_user=on
1598 mail_no_host=off
1599 mail_no_perms=off
1600 mailto=root
1601 mailsub='*** SECURITY information for %h ***'
1602 badpass_message='Sorry, try again.'
1603 fqdn=off
1604 runas_default=root
1605 env_editor=off
1606 passwd_tries=3
1607 tty_tickets=off
1608 insults=off
1609 root_sudo=on
1610 INSTALL_NOEXEC=
1611 PROGS="sudo visudo"
1612 test -n "$MANTYPE" || MANTYPE="man"
1613 test -n "$mansrcdir" || mansrcdir="."
1614 test -n "$SUDOERS_MODE" || SUDOERS_MODE=0440
1615 test -n "$SUDOERS_UID" || SUDOERS_UID=0
1616 test -n "$SUDOERS_GID" || SUDOERS_GID=0
1617 DEV="#"
1618
1619 CHECKSHADOW=true
1620 CHECKSIA=true
1621
1622 test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
1623 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
1624 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1625 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
1626
1627
1628
1629 # Check whether --with-otp-only or --without-otp-only was given.
1630 if test "${with_otp_only+set}" = set; then
1631   withval="$with_otp_only"
1632   case $with_otp_only in
1633     yes)        with_passwd=no
1634                 cat >>confdefs.h <<\_ACEOF
1635 #define WITHOUT_PASSWD 1
1636 _ACEOF
1637
1638                 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
1639 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
1640                 ;;
1641 esac
1642 fi;
1643
1644
1645 # Check whether --with-alertmail or --without-alertmail was given.
1646 if test "${with_alertmail+set}" = set; then
1647   withval="$with_alertmail"
1648   case $with_alertmail in
1649     *)          with_mailto="$with_alertmail"
1650                 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
1651 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
1652                 ;;
1653 esac
1654 fi;
1655
1656
1657
1658 # Check whether --with-CC or --without-CC was given.
1659 if test "${with_CC+set}" = set; then
1660   withval="$with_CC"
1661   case $with_CC in
1662     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1663 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
1664    { (exit 1); exit 1; }; }
1665                 ;;
1666     no)         { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1667 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
1668    { (exit 1); exit 1; }; }
1669                 ;;
1670     *)          CC=$with_CC
1671                 ;;
1672 esac
1673 fi;
1674
1675
1676 # Check whether --with-rpath or --without-rpath was given.
1677 if test "${with_rpath+set}" = set; then
1678   withval="$with_rpath"
1679   case $with_rpath in
1680     yes)        ;;
1681     no)         ;;
1682     *)          { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
1683 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
1684    { (exit 1); exit 1; }; }
1685                 ;;
1686 esac
1687 fi;
1688
1689
1690 # Check whether --with-blibpath or --without-blibpath was given.
1691 if test "${with_blibpath+set}" = set; then
1692   withval="$with_blibpath"
1693   case $with_blibpath in
1694     yes)        ;;
1695     no)         ;;
1696     *)          { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
1697 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
1698                 ;;
1699 esac
1700 fi;
1701
1702
1703 # Check whether --with-incpath or --without-incpath was given.
1704 if test "${with_incpath+set}" = set; then
1705   withval="$with_incpath"
1706   case $with_incpath in
1707     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1708 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
1709    { (exit 1); exit 1; }; }
1710                 ;;
1711     no)         { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1712 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
1713    { (exit 1); exit 1; }; }
1714                 ;;
1715     *)          { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
1716 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
1717                 for i in ${with_incpath}; do
1718                     CPPFLAGS="${CPPFLAGS} -I${i}"
1719                 done
1720                 ;;
1721 esac
1722 fi;
1723
1724
1725 # Check whether --with-libpath or --without-libpath was given.
1726 if test "${with_libpath+set}" = set; then
1727   withval="$with_libpath"
1728   case $with_libpath in
1729     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1730 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
1731    { (exit 1); exit 1; }; }
1732                 ;;
1733     no)         { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1734 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
1735    { (exit 1); exit 1; }; }
1736                 ;;
1737     *)          { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
1738 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
1739                 ;;
1740 esac
1741 fi;
1742
1743
1744 # Check whether --with-libraries or --without-libraries was given.
1745 if test "${with_libraries+set}" = set; then
1746   withval="$with_libraries"
1747   case $with_libraries in
1748     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1749 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
1750    { (exit 1); exit 1; }; }
1751                 ;;
1752     no)         { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1753 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
1754    { (exit 1); exit 1; }; }
1755                 ;;
1756     *)          { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
1757 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
1758                 ;;
1759 esac
1760 fi;
1761
1762
1763 # Check whether --with-devel or --without-devel was given.
1764 if test "${with_devel+set}" = set; then
1765   withval="$with_devel"
1766   case $with_devel in
1767     yes)        { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
1768 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
1769                 PROGS="${PROGS} testsudoers"
1770                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
1771                 DEV=""
1772                 ;;
1773     no)         ;;
1774     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
1775 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
1776                 ;;
1777 esac
1778 fi;
1779
1780
1781 # Check whether --with-efence or --without-efence was given.
1782 if test "${with_efence+set}" = set; then
1783   withval="$with_efence"
1784   case $with_efence in
1785     yes)        { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
1786 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
1787                 LIBS="${LIBS} -lefence"
1788                 if test -f /usr/local/lib/libefence.a; then
1789                     with_libpath="${with_libpath} /usr/local/lib"
1790                 fi
1791                 ;;
1792     no)         ;;
1793     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
1794 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
1795                 ;;
1796 esac
1797 fi;
1798
1799
1800 # Check whether --with-csops or --without-csops was given.
1801 if test "${with_csops+set}" = set; then
1802   withval="$with_csops"
1803   case $with_csops in
1804     yes)        { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
1805 echo "$as_me: Adding CSOps standard options" >&6;}
1806                 CHECKSIA=false
1807                 with_ignore_dot=yes
1808                 insults=on
1809                 with_classic_insults=yes
1810                 with_csops_insults=yes
1811                 with_env_editor=yes
1812                 test -n "$mansectsu" || mansectsu=8
1813                 test -n "$mansectform" || mansectform=5
1814                 ;;
1815     no)         ;;
1816     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
1817 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
1818                 ;;
1819 esac
1820 fi;
1821
1822
1823 # Check whether --with-passwd or --without-passwd was given.
1824 if test "${with_passwd+set}" = set; then
1825   withval="$with_passwd"
1826   case $with_passwd in
1827     yes)        ;;
1828     no)         cat >>confdefs.h <<\_ACEOF
1829 #define WITHOUT_PASSWD 1
1830 _ACEOF
1831
1832                 echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
1833 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6
1834                 echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1836                 ;;
1837     *)          { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1838 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
1839    { (exit 1); exit 1; }; }
1840                 ;;
1841 esac
1842 fi;
1843
1844
1845 # Check whether --with-skey or --without-skey was given.
1846 if test "${with_skey+set}" = set; then
1847   withval="$with_skey"
1848   case $with_skey in
1849     no)         with_skey="";;
1850     *)          if test -n "$with_opie"; then
1851                     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1852 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1853    { (exit 1); exit 1; }; }
1854                 fi
1855                 cat >>confdefs.h <<\_ACEOF
1856 #define HAVE_SKEY 1
1857 _ACEOF
1858
1859                 echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
1860 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6
1861                 echo "$as_me:$LINENO: result: yes" >&5
1862 echo "${ECHO_T}yes" >&6
1863                 AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1864                 ;;
1865 esac
1866 fi;
1867
1868
1869 # Check whether --with-opie or --without-opie was given.
1870 if test "${with_opie+set}" = set; then
1871   withval="$with_opie"
1872   case $with_opie in
1873     no)         with_opie="";;
1874     *)          if test -n "$with_skey"; then
1875                     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1876 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1877    { (exit 1); exit 1; }; }
1878                 fi
1879                 cat >>confdefs.h <<\_ACEOF
1880 #define HAVE_OPIE 1
1881 _ACEOF
1882
1883                 echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
1884 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6
1885                 echo "$as_me:$LINENO: result: yes" >&5
1886 echo "${ECHO_T}yes" >&6
1887                 AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1888                 ;;
1889 esac
1890 fi;
1891
1892
1893 # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
1894 if test "${with_long_otp_prompt+set}" = set; then
1895   withval="$with_long_otp_prompt"
1896   case $with_long_otp_prompt in
1897     yes)        cat >>confdefs.h <<\_ACEOF
1898 #define LONG_OTP_PROMPT 1
1899 _ACEOF
1900
1901                 echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
1902 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6
1903                 echo "$as_me:$LINENO: result: yes" >&5
1904 echo "${ECHO_T}yes" >&6
1905                 long_otp_prompt=on
1906                 ;;
1907     no)         long_otp_prompt=off
1908                 ;;
1909     *)          { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1910 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
1911    { (exit 1); exit 1; }; }
1912                 ;;
1913 esac
1914 fi;
1915
1916
1917 # Check whether --with-SecurID or --without-SecurID was given.
1918 if test "${with_SecurID+set}" = set; then
1919   withval="$with_SecurID"
1920   case $with_SecurID in
1921     no)         with_SecurID="";;
1922     *)          cat >>confdefs.h <<\_ACEOF
1923 #define HAVE_SECURID 1
1924 _ACEOF
1925
1926                 echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
1927 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6
1928                 echo "$as_me:$LINENO: result: yes" >&5
1929 echo "${ECHO_T}yes" >&6
1930                 with_passwd=no
1931                 ;;
1932 esac
1933 fi;
1934
1935
1936 # Check whether --with-fwtk or --without-fwtk was given.
1937 if test "${with_fwtk+set}" = set; then
1938   withval="$with_fwtk"
1939   case $with_fwtk in
1940     no)         with_fwtk="";;
1941     *)          cat >>confdefs.h <<\_ACEOF
1942 #define HAVE_FWTK 1
1943 _ACEOF
1944
1945                 echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
1946 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6
1947                 echo "$as_me:$LINENO: result: yes" >&5
1948 echo "${ECHO_T}yes" >&6
1949                 with_passwd=no
1950                 AUTH_OBJS="fwtk.o"
1951                 ;;
1952 esac
1953 fi;
1954
1955
1956 # Check whether --with-kerb4 or --without-kerb4 was given.
1957 if test "${with_kerb4+set}" = set; then
1958   withval="$with_kerb4"
1959   case $with_kerb4 in
1960     no)         with_kerb4="";;
1961     *)          echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
1962 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6
1963                 echo "$as_me:$LINENO: result: yes" >&5
1964 echo "${ECHO_T}yes" >&6
1965                 ;;
1966 esac
1967 fi;
1968
1969
1970 # Check whether --with-kerb5 or --without-kerb5 was given.
1971 if test "${with_kerb5+set}" = set; then
1972   withval="$with_kerb5"
1973   case $with_kerb5 in
1974     no)         with_kerb5="";;
1975     *)          echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
1976 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6
1977                 echo "$as_me:$LINENO: result: yes" >&5
1978 echo "${ECHO_T}yes" >&6
1979                 ;;
1980 esac
1981 fi;
1982
1983
1984 # Check whether --with-authenticate or --without-authenticate was given.
1985 if test "${with_authenticate+set}" = set; then
1986   withval="$with_authenticate"
1987   case $with_authenticate in
1988     yes)        cat >>confdefs.h <<\_ACEOF
1989 #define HAVE_AUTHENTICATE 1
1990 _ACEOF
1991
1992                 echo "$as_me:$LINENO: checking whether to use AIX general authentication" >&5
1993 echo $ECHO_N "checking whether to use AIX general authentication... $ECHO_C" >&6
1994                 echo "$as_me:$LINENO: result: yes" >&5
1995 echo "${ECHO_T}yes" >&6
1996                 with_passwd=no
1997                 AUTH_OBJS="aix_auth.o"
1998                 ;;
1999     no)         ;;
2000     *)          { { echo "$as_me:$LINENO: error: \"--with-authenticate does not take an argument.\"" >&5
2001 echo "$as_me: error: \"--with-authenticate does not take an argument.\"" >&2;}
2002    { (exit 1); exit 1; }; }
2003                 ;;
2004 esac
2005 fi;
2006
2007
2008 # Check whether --with-pam or --without-pam was given.
2009 if test "${with_pam+set}" = set; then
2010   withval="$with_pam"
2011   case $with_pam in
2012     yes)        cat >>confdefs.h <<\_ACEOF
2013 #define HAVE_PAM 1
2014 _ACEOF
2015
2016                 echo "$as_me:$LINENO: checking whether to use PAM authentication" >&5
2017 echo $ECHO_N "checking whether to use PAM authentication... $ECHO_C" >&6
2018                 echo "$as_me:$LINENO: result: yes" >&5
2019 echo "${ECHO_T}yes" >&6
2020                 with_passwd=no
2021                 AUTH_OBJS="pam.o"
2022                 ;;
2023     no)         ;;
2024     *)          { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2025 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2026    { (exit 1); exit 1; }; }
2027                 ;;
2028 esac
2029 fi;
2030
2031
2032 # Check whether --with-AFS or --without-AFS was given.
2033 if test "${with_AFS+set}" = set; then
2034   withval="$with_AFS"
2035   case $with_AFS in
2036     yes)        cat >>confdefs.h <<\_ACEOF
2037 #define HAVE_AFS 1
2038 _ACEOF
2039
2040                 echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2041 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6
2042                 echo "$as_me:$LINENO: result: yes" >&5
2043 echo "${ECHO_T}yes" >&6
2044                 AUTH_OBJS="${AUTH_OBJS} afs.o"
2045                 ;;
2046     no)         ;;
2047     *)          { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2048 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2049    { (exit 1); exit 1; }; }
2050                 ;;
2051 esac
2052 fi;
2053
2054
2055 # Check whether --with-DCE or --without-DCE was given.
2056 if test "${with_DCE+set}" = set; then
2057   withval="$with_DCE"
2058   case $with_DCE in
2059     yes)        cat >>confdefs.h <<\_ACEOF
2060 #define HAVE_DCE 1
2061 _ACEOF
2062
2063                 echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2064 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6
2065                 echo "$as_me:$LINENO: result: yes" >&5
2066 echo "${ECHO_T}yes" >&6
2067                 AUTH_OBJS="${AUTH_OBJS} dce.o"
2068                 ;;
2069     no)         ;;
2070     *)          { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2071 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2072    { (exit 1); exit 1; }; }
2073                 ;;
2074 esac
2075 fi;
2076
2077
2078 # Check whether --with-logincap or --without-logincap was given.
2079 if test "${with_logincap+set}" = set; then
2080   withval="$with_logincap"
2081   case $with_logincap in
2082     yes|no)     ;;
2083     *)          { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2084 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2085    { (exit 1); exit 1; }; }
2086                 ;;
2087 esac
2088 fi;
2089
2090
2091 # Check whether --with-bsdauth or --without-bsdauth was given.
2092 if test "${with_bsdauth+set}" = set; then
2093   withval="$with_bsdauth"
2094   case $with_bsdauth in
2095     yes)        with_logincap=yes
2096                 ;;
2097     no)         ;;
2098     *)          { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2099 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2100    { (exit 1); exit 1; }; }
2101                 ;;
2102 esac
2103 fi;
2104
2105 echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2106 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6
2107
2108 # Check whether --with-lecture or --without-lecture was given.
2109 if test "${with_lecture+set}" = set; then
2110   withval="$with_lecture"
2111   case $with_lecture in
2112     yes|short|always)   lecture=once
2113                 ;;
2114     no|none|never)      lecture=never
2115                 ;;
2116     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2117 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2118    { (exit 1); exit 1; }; }
2119                 ;;
2120 esac
2121 fi;
2122 if test "$lecture" = "once"; then
2123     echo "$as_me:$LINENO: result: yes" >&5
2124 echo "${ECHO_T}yes" >&6
2125 else
2126     cat >>confdefs.h <<\_ACEOF
2127 #define NO_LECTURE 1
2128 _ACEOF
2129
2130     echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2132 fi
2133
2134 echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2135 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6
2136
2137 # Check whether --with-logging or --without-logging was given.
2138 if test "${with_logging+set}" = set; then
2139   withval="$with_logging"
2140   case $with_logging in
2141     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2142 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2143    { (exit 1); exit 1; }; }
2144                 ;;
2145     no)         { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2146 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2147    { (exit 1); exit 1; }; }
2148                 ;;
2149     syslog)     cat >>confdefs.h <<\_ACEOF
2150 #define LOGGING SLOG_SYSLOG
2151 _ACEOF
2152
2153                 echo "$as_me:$LINENO: result: syslog" >&5
2154 echo "${ECHO_T}syslog" >&6
2155                 ;;
2156     file)       cat >>confdefs.h <<\_ACEOF
2157 #define LOGGING SLOG_FILE
2158 _ACEOF
2159
2160                 echo "$as_me:$LINENO: result: file" >&5
2161 echo "${ECHO_T}file" >&6
2162                 ;;
2163     both)       cat >>confdefs.h <<\_ACEOF
2164 #define LOGGING SLOG_BOTH
2165 _ACEOF
2166
2167                 echo "$as_me:$LINENO: result: both" >&5
2168 echo "${ECHO_T}both" >&6
2169                 ;;
2170     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2171 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2172    { (exit 1); exit 1; }; }
2173                 ;;
2174 esac
2175 else
2176   cat >>confdefs.h <<\_ACEOF
2177 #define LOGGING SLOG_SYSLOG
2178 _ACEOF
2179  echo "$as_me:$LINENO: result: syslog" >&5
2180 echo "${ECHO_T}syslog" >&6
2181 fi;
2182
2183 echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2184 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6
2185
2186 # Check whether --with-logfac or --without-logfac was given.
2187 if test "${with_logfac+set}" = set; then
2188   withval="$with_logfac"
2189   case $with_logfac in
2190     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2191 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2192    { (exit 1); exit 1; }; }
2193                 ;;
2194     no)         { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2195 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2196    { (exit 1); exit 1; }; }
2197                 ;;
2198     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
2199                 ;;
2200     *)          { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2201 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2202    { (exit 1); exit 1; }; }
2203                 ;;
2204 esac
2205 fi;
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define LOGFAC "$logfac"
2209 _ACEOF
2210
2211 echo "$as_me:$LINENO: result: $logfac" >&5
2212 echo "${ECHO_T}$logfac" >&6
2213
2214 echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2215 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6
2216
2217 # Check whether --with-goodpri or --without-goodpri was given.
2218 if test "${with_goodpri+set}" = set; then
2219   withval="$with_goodpri"
2220   case $with_goodpri in
2221     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2222 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2223    { (exit 1); exit 1; }; }
2224                 ;;
2225     no)         { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2226 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2227    { (exit 1); exit 1; }; }
2228                 ;;
2229     alert|crit|debug|emerg|err|info|notice|warning)
2230                 goodpri=$with_goodpri
2231                 ;;
2232     *)          { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2233 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2234    { (exit 1); exit 1; }; }
2235                 ;;
2236 esac
2237 fi;
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PRI_SUCCESS "$goodpri"
2241 _ACEOF
2242
2243 echo "$as_me:$LINENO: result: $goodpri" >&5
2244 echo "${ECHO_T}$goodpri" >&6
2245
2246 echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2247 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6
2248
2249 # Check whether --with-badpri or --without-badpri was given.
2250 if test "${with_badpri+set}" = set; then
2251   withval="$with_badpri"
2252   case $with_badpri in
2253     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2254 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2255    { (exit 1); exit 1; }; }
2256                 ;;
2257     no)         { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2258 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2259    { (exit 1); exit 1; }; }
2260                 ;;
2261     alert|crit|debug|emerg|err|info|notice|warning)
2262                 badpri=$with_badpri
2263                 ;;
2264     *)          { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2265 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2266    { (exit 1); exit 1; }; }
2267                 ;;
2268 esac
2269 fi;
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PRI_FAILURE "$badpri"
2273 _ACEOF
2274
2275 echo "$as_me:$LINENO: result: $badpri" >&5
2276 echo "${ECHO_T}$badpri" >&6
2277
2278
2279 # Check whether --with-logpath or --without-logpath was given.
2280 if test "${with_logpath+set}" = set; then
2281   withval="$with_logpath"
2282   case $with_logpath in
2283     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2284 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2285    { (exit 1); exit 1; }; }
2286                 ;;
2287     no)         { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2288 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2289    { (exit 1); exit 1; }; }
2290                 ;;
2291 esac
2292 fi;
2293
2294 echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2295 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6
2296
2297 # Check whether --with-loglen or --without-loglen was given.
2298 if test "${with_loglen+set}" = set; then
2299   withval="$with_loglen"
2300   case $with_loglen in
2301     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2302 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2303    { (exit 1); exit 1; }; }
2304                 ;;
2305     no)         { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2306 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2307    { (exit 1); exit 1; }; }
2308                 ;;
2309     [0-9]*)     loglen=$with_loglen
2310                 ;;
2311     *)          { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2312 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2313    { (exit 1); exit 1; }; }
2314                 ;;
2315 esac
2316 fi;
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define MAXLOGFILELEN $loglen
2320 _ACEOF
2321
2322 echo "$as_me:$LINENO: result: $loglen" >&5
2323 echo "${ECHO_T}$loglen" >&6
2324
2325 echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2326 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6
2327
2328 # Check whether --with-ignore-dot or --without-ignore-dot was given.
2329 if test "${with_ignore_dot+set}" = set; then
2330   withval="$with_ignore_dot"
2331   case $with_ignore_dot in
2332     yes)        ignore_dot=on
2333                 ;;
2334     no)         ignore_dot=off
2335                 ;;
2336     *)          { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2337 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2338    { (exit 1); exit 1; }; }
2339                 ;;
2340 esac
2341 fi;
2342 if test "$ignore_dot" = "on"; then
2343     cat >>confdefs.h <<\_ACEOF
2344 #define IGNORE_DOT_PATH 1
2345 _ACEOF
2346
2347     echo "$as_me:$LINENO: result: yes" >&5
2348 echo "${ECHO_T}yes" >&6
2349 else
2350     echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2352 fi
2353
2354 echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2355 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6
2356
2357 # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
2358 if test "${with_mail_if_no_user+set}" = set; then
2359   withval="$with_mail_if_no_user"
2360   case $with_mail_if_no_user in
2361     yes)        mail_no_user=on
2362                 ;;
2363     no)         mail_no_user=off
2364                 ;;
2365     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2366 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2367    { (exit 1); exit 1; }; }
2368                 ;;
2369 esac
2370 fi;
2371 if test "$mail_no_user" = "on"; then
2372     cat >>confdefs.h <<\_ACEOF
2373 #define SEND_MAIL_WHEN_NO_USER 1
2374 _ACEOF
2375
2376     echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6
2378 else
2379     echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2381 fi
2382
2383 echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2384 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6
2385
2386 # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
2387 if test "${with_mail_if_no_host+set}" = set; then
2388   withval="$with_mail_if_no_host"
2389   case $with_mail_if_no_host in
2390     yes)        mail_no_host=on
2391                 ;;
2392     no)         mail_no_host=off
2393                 ;;
2394     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2395 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2396    { (exit 1); exit 1; }; }
2397                 ;;
2398 esac
2399 fi;
2400 if test "$mail_no_host" = "on"; then
2401     cat >>confdefs.h <<\_ACEOF
2402 #define SEND_MAIL_WHEN_NO_HOST 1
2403 _ACEOF
2404
2405     echo "$as_me:$LINENO: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6
2407 else
2408     echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2410 fi
2411
2412 echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2413 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6
2414
2415 # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
2416 if test "${with_mail_if_noperms+set}" = set; then
2417   withval="$with_mail_if_noperms"
2418   case $with_mail_if_noperms in
2419     yes)        mail_noperms=on
2420                 ;;
2421     no)         mail_noperms=off
2422                 ;;
2423     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2424 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2425    { (exit 1); exit 1; }; }
2426                 ;;
2427 esac
2428 fi;
2429 if test "$mail_noperms" = "on"; then
2430     cat >>confdefs.h <<\_ACEOF
2431 #define SEND_MAIL_WHEN_NOT_OK 1
2432 _ACEOF
2433
2434     echo "$as_me:$LINENO: result: yes" >&5
2435 echo "${ECHO_T}yes" >&6
2436 else
2437     echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6
2439 fi
2440
2441 echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2442 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6
2443
2444 # Check whether --with-mailto or --without-mailto was given.
2445 if test "${with_mailto+set}" = set; then
2446   withval="$with_mailto"
2447   case $with_mailto in
2448     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
2449 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2450    { (exit 1); exit 1; }; }
2451                 ;;
2452     no)         { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
2453 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2454    { (exit 1); exit 1; }; }
2455                 ;;
2456     *)          mailto=$with_mailto
2457                 ;;
2458 esac
2459 fi;
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define MAILTO "$mailto"
2463 _ACEOF
2464
2465 echo "$as_me:$LINENO: result: $mailto" >&5
2466 echo "${ECHO_T}$mailto" >&6
2467
2468
2469 # Check whether --with-mailsubject or --without-mailsubject was given.
2470 if test "${with_mailsubject+set}" = set; then
2471   withval="$with_mailsubject"
2472   case $with_mailsubject in
2473     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
2474 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2475    { (exit 1); exit 1; }; }
2476                 ;;
2477     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2478 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
2479                 ;;
2480     *)          mailsub="$with_mailsubject"
2481                 echo "$as_me:$LINENO: checking sudo mail subject" >&5
2482 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6
2483                 echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
2484 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6
2485                 ;;
2486 esac
2487 fi;
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define MAILSUBJECT "$mailsub"
2491 _ACEOF
2492
2493
2494 echo "$as_me:$LINENO: checking for bad password prompt" >&5
2495 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6
2496
2497 # Check whether --with-passprompt or --without-passprompt was given.
2498 if test "${with_passprompt+set}" = set; then
2499   withval="$with_passprompt"
2500   case $with_passprompt in
2501     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
2502 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2503    { (exit 1); exit 1; }; }
2504                 ;;
2505     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
2506 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
2507                 ;;
2508     *)          passprompt="$with_passprompt"
2509 esac
2510 fi;
2511 echo "$as_me:$LINENO: result: $passprompt" >&5
2512 echo "${ECHO_T}$passprompt" >&6
2513
2514 cat >>confdefs.h <<_ACEOF
2515 #define PASSPROMPT "$passprompt"
2516 _ACEOF
2517
2518
2519 echo "$as_me:$LINENO: checking for bad password message" >&5
2520 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6
2521
2522 # Check whether --with-badpass-message or --without-badpass-message was given.
2523 if test "${with_badpass_message+set}" = set; then
2524   withval="$with_badpass_message"
2525   case $with_badpass_message in
2526     yes)        { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
2527 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
2528    { (exit 1); exit 1; }; }
2529                 ;;
2530     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
2531 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
2532                 ;;
2533     *)          badpass_message="$with_badpass_message"
2534                 ;;
2535 esac
2536 fi;
2537
2538 cat >>confdefs.h <<_ACEOF
2539 #define INCORRECT_PASSWORD "$badpass_message"
2540 _ACEOF
2541
2542 echo "$as_me:$LINENO: result: $badpass_message" >&5
2543 echo "${ECHO_T}$badpass_message" >&6
2544
2545 echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
2546 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6
2547
2548 # Check whether --with-fqdn or --without-fqdn was given.
2549 if test "${with_fqdn+set}" = set; then
2550   withval="$with_fqdn"
2551   case $with_fqdn in
2552     yes)        fqdn=on
2553                 ;;
2554     no)         fqdn=off
2555                 ;;
2556     *)          { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
2557 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
2558    { (exit 1); exit 1; }; }
2559                 ;;
2560 esac
2561 fi;
2562 if test "$fqdn" = "on"; then
2563     cat >>confdefs.h <<\_ACEOF
2564 #define FQDN 1
2565 _ACEOF
2566
2567     echo "$as_me:$LINENO: result: yes" >&5
2568 echo "${ECHO_T}yes" >&6
2569 else
2570     echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2572 fi
2573
2574
2575 # Check whether --with-timedir or --without-timedir was given.
2576 if test "${with_timedir+set}" = set; then
2577   withval="$with_timedir"
2578   case $with_timedir in
2579     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
2580 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
2581    { (exit 1); exit 1; }; }
2582                 ;;
2583     no)         { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
2584 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
2585    { (exit 1); exit 1; }; }
2586                 ;;
2587 esac
2588 fi;
2589
2590
2591 # Check whether --with-sendmail or --without-sendmail was given.
2592 if test "${with_sendmail+set}" = set; then
2593   withval="$with_sendmail"
2594   case $with_sendmail in
2595     yes)        with_sendmail=""
2596                 ;;
2597     no)         ;;
2598     *)          cat >>confdefs.h <<EOF
2599 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
2600 EOF
2601
2602                 ;;
2603 esac
2604 fi;
2605
2606
2607 # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
2608 if test "${with_sudoers_mode+set}" = set; then
2609   withval="$with_sudoers_mode"
2610   case $with_sudoers_mode in
2611     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
2612 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
2613    { (exit 1); exit 1; }; }
2614                 ;;
2615     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
2616 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
2617    { (exit 1); exit 1; }; }
2618                 ;;
2619     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
2620                 ;;
2621     0*)         SUDOERS_MODE=$with_sudoers_mode
2622                 ;;
2623     *)          { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
2624 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
2625    { (exit 1); exit 1; }; }
2626                 ;;
2627 esac
2628 fi;
2629
2630
2631 # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
2632 if test "${with_sudoers_uid+set}" = set; then
2633   withval="$with_sudoers_uid"
2634   case $with_sudoers_uid in
2635     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
2636 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
2637    { (exit 1); exit 1; }; }
2638                 ;;
2639     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
2640 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
2641    { (exit 1); exit 1; }; }
2642                 ;;
2643     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
2644                 ;;
2645     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
2646 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
2647    { (exit 1); exit 1; }; }
2648                 ;;
2649 esac
2650 fi;
2651
2652
2653 # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
2654 if test "${with_sudoers_gid+set}" = set; then
2655   withval="$with_sudoers_gid"
2656   case $with_sudoers_gid in
2657     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
2658 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
2659    { (exit 1); exit 1; }; }
2660                 ;;
2661     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
2662 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
2663    { (exit 1); exit 1; }; }
2664                 ;;
2665     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
2666                 ;;
2667     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
2668 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
2669    { (exit 1); exit 1; }; }
2670                 ;;
2671 esac
2672 fi;
2673
2674 echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
2675 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6
2676
2677 # Check whether --with-umask or --without-umask was given.
2678 if test "${with_umask+set}" = set; then
2679   withval="$with_umask"
2680   case $with_umask in
2681     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
2682 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
2683    { (exit 1); exit 1; }; }
2684                 ;;
2685     no)         sudo_umask=0777
2686                 ;;
2687     [0-9]*)     sudo_umask=$with_umask
2688                 ;;
2689     *)          { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
2690 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
2691    { (exit 1); exit 1; }; }
2692                 ;;
2693 esac
2694 fi;
2695
2696 cat >>confdefs.h <<_ACEOF
2697 #define SUDO_UMASK $sudo_umask
2698 _ACEOF
2699
2700 if test "$sudo_umask" = "0777"; then
2701     echo "$as_me:$LINENO: result: user" >&5
2702 echo "${ECHO_T}user" >&6
2703 else
2704     echo "$as_me:$LINENO: result: $sudo_umask" >&5
2705 echo "${ECHO_T}$sudo_umask" >&6
2706 fi
2707
2708 echo "$as_me:$LINENO: checking for default user to run commands as" >&5
2709 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6
2710
2711 # Check whether --with-runas-default or --without-runas-default was given.
2712 if test "${with_runas_default+set}" = set; then
2713   withval="$with_runas_default"
2714   case $with_runas_default in
2715     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
2716 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
2717    { (exit 1); exit 1; }; }
2718                 ;;
2719     no)         { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
2720 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
2721    { (exit 1); exit 1; }; }
2722                 ;;
2723     *)          runas_default="$with_runas_default"
2724                 ;;
2725 esac
2726 fi;
2727
2728 cat >>confdefs.h <<_ACEOF
2729 #define RUNAS_DEFAULT "$runas_default"
2730 _ACEOF
2731
2732 echo "$as_me:$LINENO: result: $runas_default" >&5
2733 echo "${ECHO_T}$runas_default" >&6
2734
2735
2736 # Check whether --with-exempt or --without-exempt was given.
2737 if test "${with_exempt+set}" = set; then
2738   withval="$with_exempt"
2739   case $with_exempt in
2740     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
2741 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
2742    { (exit 1); exit 1; }; }
2743                 ;;
2744     no)         { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
2745 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
2746    { (exit 1); exit 1; }; }
2747                 ;;
2748     *)
2749 cat >>confdefs.h <<_ACEOF
2750 #define EXEMPTGROUP "$with_exempt"
2751 _ACEOF
2752
2753                 echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
2754 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6
2755                 echo "$as_me:$LINENO: result: $with_exempt" >&5
2756 echo "${ECHO_T}$with_exempt" >&6
2757                 ;;
2758 esac
2759 fi;
2760
2761 echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
2762 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6
2763
2764 # Check whether --with-editor or --without-editor was given.
2765 if test "${with_editor+set}" = set; then
2766   withval="$with_editor"
2767   case $with_editor in
2768     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
2769 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
2770    { (exit 1); exit 1; }; }
2771                 ;;
2772     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
2773 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2774    { (exit 1); exit 1; }; }
2775                 ;;
2776     *)
2777 cat >>confdefs.h <<_ACEOF
2778 #define EDITOR "$with_editor"
2779 _ACEOF
2780
2781                 echo "$as_me:$LINENO: result: $with_editor" >&5
2782 echo "${ECHO_T}$with_editor" >&6
2783                 ;;
2784 esac
2785 else
2786   cat >>confdefs.h <<\_ACEOF
2787 #define EDITOR _PATH_VI
2788 _ACEOF
2789  echo "$as_me:$LINENO: result: vi" >&5
2790 echo "${ECHO_T}vi" >&6
2791 fi;
2792
2793 echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
2794 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6
2795
2796 # Check whether --with-env-editor or --without-env-editor was given.
2797 if test "${with_env_editor+set}" = set; then
2798   withval="$with_env_editor"
2799   case $with_env_editor in
2800     yes)        env_editor=on
2801                 ;;
2802     no)         env_editor=off
2803                 ;;
2804     *)          { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
2805 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
2806    { (exit 1); exit 1; }; }
2807                 ;;
2808 esac
2809 fi;
2810 if test "$env_editor" = "on"; then
2811     cat >>confdefs.h <<\_ACEOF
2812 #define ENV_EDITOR 1
2813 _ACEOF
2814
2815     echo "$as_me:$LINENO: result: yes" >&5
2816 echo "${ECHO_T}yes" >&6
2817 else
2818     echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6
2820 fi
2821
2822 echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
2823 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6
2824
2825 # Check whether --with-passwd-tries or --without-passwd-tries was given.
2826 if test "${with_passwd_tries+set}" = set; then
2827   withval="$with_passwd_tries"
2828   case $with_passwd_tries in
2829     yes)        ;;
2830     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
2831 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2832    { (exit 1); exit 1; }; }
2833                 ;;
2834     [1-9]*)     passwd_tries=$with_passwd_tries
2835                 ;;
2836     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
2837 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
2838    { (exit 1); exit 1; }; }
2839                 ;;
2840 esac
2841 fi;
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define TRIES_FOR_PASSWORD $passwd_tries
2845 _ACEOF
2846
2847 echo "$as_me:$LINENO: result: $passwd_tries" >&5
2848 echo "${ECHO_T}$passwd_tries" >&6
2849
2850 echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
2851 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6
2852
2853 # Check whether --with-timeout or --without-timeout was given.
2854 if test "${with_timeout+set}" = set; then
2855   withval="$with_timeout"
2856   case $with_timeout in
2857     yes)        ;;
2858     no)         timeout=0
2859                 ;;
2860     [0-9]*)     timeout=$with_timeout
2861                 ;;
2862     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
2863 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2864    { (exit 1); exit 1; }; }
2865                 ;;
2866 esac
2867 fi;
2868
2869 cat >>confdefs.h <<_ACEOF
2870 #define TIMEOUT $timeout
2871 _ACEOF
2872
2873 echo "$as_me:$LINENO: result: $timeout" >&5
2874 echo "${ECHO_T}$timeout" >&6
2875
2876 echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
2877 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6
2878
2879 # Check whether --with-password-timeout or --without-password-timeout was given.
2880 if test "${with_password_timeout+set}" = set; then
2881   withval="$with_password_timeout"
2882   case $with_password_timeout in
2883     yes)        ;;
2884     no)         password_timeout=0
2885                 ;;
2886     [0-9]*)     password_timeout=$with_password_timeout
2887                 ;;
2888     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
2889 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2890    { (exit 1); exit 1; }; }
2891                 ;;
2892 esac
2893 fi;
2894
2895 cat >>confdefs.h <<_ACEOF
2896 #define PASSWORD_TIMEOUT $password_timeout
2897 _ACEOF
2898
2899 echo "$as_me:$LINENO: result: $password_timeout" >&5
2900 echo "${ECHO_T}$password_timeout" >&6
2901
2902
2903 # Check whether --with-execv or --without-execv was given.
2904 if test "${with_execv+set}" = set; then
2905   withval="$with_execv"
2906   case $with_execv in
2907     yes)        echo "$as_me:$LINENO: checking whether to use execvp or execv" >&5
2908 echo $ECHO_N "checking whether to use execvp or execv... $ECHO_C" >&6
2909                 echo "$as_me:$LINENO: result: execv" >&5
2910 echo "${ECHO_T}execv" >&6
2911                 cat >>confdefs.h <<\_ACEOF
2912 #define USE_EXECV 1
2913 _ACEOF
2914
2915                 ;;
2916     no)         ;;
2917     *)          { { echo "$as_me:$LINENO: error: \"--with-execv does not take an argument.\"" >&5
2918 echo "$as_me: error: \"--with-execv does not take an argument.\"" >&2;}
2919    { (exit 1); exit 1; }; }
2920                 ;;
2921 esac
2922 fi;
2923
2924 echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
2925 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6
2926
2927 # Check whether --with-tty-tickets or --without-tty-tickets was given.
2928 if test "${with_tty_tickets+set}" = set; then
2929   withval="$with_tty_tickets"
2930   case $with_tty_tickets in
2931     yes)        tty_tickets=on
2932                 ;;
2933     no)         tty_tickets=off
2934                 ;;
2935     *)          { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
2936 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
2937    { (exit 1); exit 1; }; }
2938                 ;;
2939 esac
2940 fi;
2941 if test "$tty_tickets" = "on"; then
2942     cat >>confdefs.h <<\_ACEOF
2943 #define USE_TTY_TICKETS 1
2944 _ACEOF
2945
2946     echo "$as_me:$LINENO: result: yes" >&5
2947 echo "${ECHO_T}yes" >&6
2948 else
2949     echo "$as_me:$LINENO: result: no" >&5
2950 echo "${ECHO_T}no" >&6
2951 fi
2952
2953 echo "$as_me:$LINENO: checking whether to include insults" >&5
2954 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6
2955
2956 # Check whether --with-insults or --without-insults was given.
2957 if test "${with_insults+set}" = set; then
2958   withval="$with_insults"
2959   case $with_insults in
2960     yes)        insults=on
2961                 with_classic_insults=yes
2962                 with_csops_insults=yes
2963                 ;;
2964     no)         insults=off
2965                 ;;
2966     *)          { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
2967 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
2968    { (exit 1); exit 1; }; }
2969                 ;;
2970 esac
2971 fi;
2972 if test "$insults" = "on"; then
2973     cat >>confdefs.h <<\_ACEOF
2974 #define USE_INSULTS 1
2975 _ACEOF
2976
2977     echo "$as_me:$LINENO: result: yes" >&5
2978 echo "${ECHO_T}yes" >&6
2979 else
2980     echo "$as_me:$LINENO: result: no" >&5
2981 echo "${ECHO_T}no" >&6
2982 fi
2983
2984
2985 # Check whether --with-all-insults or --without-all-insults was given.
2986 if test "${with_all_insults+set}" = set; then
2987   withval="$with_all_insults"
2988   case $with_all_insults in
2989     yes)        with_classic_insults=yes
2990                 with_csops_insults=yes
2991                 with_hal_insults=yes
2992                 with_goons_insults=yes
2993                 ;;
2994     no)         ;;
2995     *)          { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
2996 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
2997    { (exit 1); exit 1; }; }
2998                 ;;
2999 esac
3000 fi;
3001
3002
3003 # Check whether --with-classic-insults or --without-classic-insults was given.
3004 if test "${with_classic_insults+set}" = set; then
3005   withval="$with_classic_insults"
3006   case $with_classic_insults in
3007     yes)        cat >>confdefs.h <<\_ACEOF
3008 #define CLASSIC_INSULTS 1
3009 _ACEOF
3010
3011                 ;;
3012     no)         ;;
3013     *)          { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3014 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3015    { (exit 1); exit 1; }; }
3016                 ;;
3017 esac
3018 fi;
3019
3020
3021 # Check whether --with-csops-insults or --without-csops-insults was given.
3022 if test "${with_csops_insults+set}" = set; then
3023   withval="$with_csops_insults"
3024   case $with_csops_insults in
3025     yes)        cat >>confdefs.h <<\_ACEOF
3026 #define CSOPS_INSULTS 1
3027 _ACEOF
3028
3029                 ;;
3030     no)         ;;
3031     *)          { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3032 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3033    { (exit 1); exit 1; }; }
3034                 ;;
3035 esac
3036 fi;
3037
3038
3039 # Check whether --with-hal-insults or --without-hal-insults was given.
3040 if test "${with_hal_insults+set}" = set; then
3041   withval="$with_hal_insults"
3042   case $with_hal_insults in
3043     yes)        cat >>confdefs.h <<\_ACEOF
3044 #define HAL_INSULTS 1
3045 _ACEOF
3046
3047                 ;;
3048     no)         ;;
3049     *)          { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3050 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3051    { (exit 1); exit 1; }; }
3052                 ;;
3053 esac
3054 fi;
3055
3056
3057 # Check whether --with-goons-insults or --without-goons-insults was given.
3058 if test "${with_goons_insults+set}" = set; then
3059   withval="$with_goons_insults"
3060   case $with_goons_insults in
3061     yes)        cat >>confdefs.h <<\_ACEOF
3062 #define GOONS_INSULTS 1
3063 _ACEOF
3064
3065                 ;;
3066     no)         ;;
3067     *)          { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3068 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3069    { (exit 1); exit 1; }; }
3070                 ;;
3071 esac
3072 fi;
3073
3074
3075 # Check whether --with-ldap or --without-ldap was given.
3076 if test "${with_ldap+set}" = set; then
3077   withval="$with_ldap"
3078   case $with_ldap in
3079     no)         with_ldap="";;
3080     *)          cat >>confdefs.h <<\_ACEOF
3081 #define HAVE_LDAP 1
3082 _ACEOF
3083
3084                 echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3085 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6
3086                 echo "$as_me:$LINENO: result: yes" >&5
3087 echo "${ECHO_T}yes" >&6
3088                 ;;
3089 esac
3090 fi;
3091
3092 # Check whether --with-ldap-conf-file or --without-ldap-conf-file was given.
3093 if test "${with_ldap_conf_file+set}" = set; then
3094   withval="$with_ldap_conf_file"
3095
3096 cat >>confdefs.h <<_ACEOF
3097 #define _PATH_LDAP_CONF "$with_ldap_conf_file"
3098 _ACEOF
3099
3100 fi;
3101
3102
3103 # Check whether --with-pc-insults or --without-pc-insults was given.
3104 if test "${with_pc_insults+set}" = set; then
3105   withval="$with_pc_insults"
3106   case $with_pc_insults in
3107     yes)        cat >>confdefs.h <<\_ACEOF
3108 #define PC_INSULTS 1
3109 _ACEOF
3110
3111                 ;;
3112     no)         ;;
3113     *)          { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3114 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3115    { (exit 1); exit 1; }; }
3116                 ;;
3117 esac
3118 fi;
3119
3120 if test "$insults" = "on"; then
3121     echo "$as_me:$LINENO: checking which insult sets to include" >&5
3122 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6
3123     i=""
3124     test "$with_goons_insults" = "yes" && i="goons ${i}"
3125     test "$with_hal_insults" = "yes" && i="hal ${i}"
3126     test "$with_csops_insults" = "yes" && i="csops ${i}"
3127     test "$with_classic_insults" = "yes" && i="classic ${i}"
3128     echo "$as_me:$LINENO: result: $i" >&5
3129 echo "${ECHO_T}$i" >&6
3130 fi
3131
3132 echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3133 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6
3134
3135 # Check whether --with-secure-path or --without-secure-path was given.
3136 if test "${with_secure_path+set}" = set; then
3137   withval="$with_secure_path"
3138   case $with_secure_path in
3139     yes)        cat >>confdefs.h <<_ACEOF
3140 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3141 _ACEOF
3142
3143                 echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3144 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6
3145                 ;;
3146     no)         echo "$as_me:$LINENO: result: no" >&5
3147 echo "${ECHO_T}no" >&6
3148                 ;;
3149     *)          cat >>confdefs.h <<_ACEOF
3150 #define SECURE_PATH "$with_secure_path"
3151 _ACEOF
3152
3153                 echo "$as_me:$LINENO: result: $with_secure_path" >&5
3154 echo "${ECHO_T}$with_secure_path" >&6
3155                 ;;
3156 esac
3157 else
3158   echo "$as_me:$LINENO: result: no" >&5
3159 echo "${ECHO_T}no" >&6
3160 fi;
3161
3162 echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3163 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6
3164
3165 # Check whether --with-interfaces or --without-interfaces was given.
3166 if test "${with_interfaces+set}" = set; then
3167   withval="$with_interfaces"
3168   case $with_interfaces in
3169     yes)        echo "$as_me:$LINENO: result: yes" >&5
3170 echo "${ECHO_T}yes" >&6
3171                 ;;
3172     no)         cat >>confdefs.h <<\_ACEOF
3173 #define STUB_LOAD_INTERFACES 1
3174 _ACEOF
3175
3176                 echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3178                 ;;
3179     *)          { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3180 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3181    { (exit 1); exit 1; }; }
3182                 ;;
3183 esac
3184 else
3185   echo "$as_me:$LINENO: result: yes" >&5
3186 echo "${ECHO_T}yes" >&6
3187 fi;
3188
3189 echo "$as_me:$LINENO: checking whether stow should be used" >&5
3190 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6
3191
3192 # Check whether --with-stow or --without-stow was given.
3193 if test "${with_stow+set}" = set; then
3194   withval="$with_stow"
3195   case $with_stow in
3196     yes)        echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3198                 cat >>confdefs.h <<\_ACEOF
3199 #define USE_STOW 1
3200 _ACEOF
3201
3202                 ;;
3203     no)         echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205                 ;;
3206     *)          { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3207 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3208    { (exit 1); exit 1; }; }
3209                 ;;
3210 esac
3211 else
3212   echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6
3214 fi;
3215
3216
3217 echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3218 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6
3219 # Check whether --enable-authentication or --disable-authentication was given.
3220 if test "${enable_authentication+set}" = set; then
3221   enableval="$enable_authentication"
3222    case "$enableval" in
3223     yes)        echo "$as_me:$LINENO: result: yes" >&5
3224 echo "${ECHO_T}yes" >&6
3225                 ;;
3226     no)         echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3228                 cat >>confdefs.h <<\_ACEOF
3229 #define NO_AUTHENTICATION 1
3230 _ACEOF
3231
3232                 ;;
3233     *)          echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3235                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3236 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3237                 ;;
3238   esac
3239
3240 else
3241   echo "$as_me:$LINENO: result: yes" >&5
3242 echo "${ECHO_T}yes" >&6
3243 fi;
3244
3245 echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3246 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6
3247 # Check whether --enable-root-mailer or --disable-root-mailer was given.
3248 if test "${enable_root_mailer+set}" = set; then
3249   enableval="$enable_root_mailer"
3250    case "$enableval" in
3251     yes)        echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3253                 ;;
3254     no)         echo "$as_me:$LINENO: result: yes" >&5
3255 echo "${ECHO_T}yes" >&6
3256                 cat >>confdefs.h <<\_ACEOF
3257 #define NO_ROOT_MAILER 1
3258 _ACEOF
3259
3260                 ;;
3261     *)          echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3263                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3264 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3265                 ;;
3266   esac
3267
3268 else
3269   echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3271 fi;
3272
3273 # Check whether --enable-setreuid or --disable-setreuid was given.
3274 if test "${enable_setreuid+set}" = set; then
3275   enableval="$enable_setreuid"
3276    case "$enableval" in
3277     no)         SKIP_SETREUID=yes
3278                 ;;
3279     *)          ;;
3280   esac
3281
3282 fi;
3283
3284 # Check whether --enable-setresuid or --disable-setresuid was given.
3285 if test "${enable_setresuid+set}" = set; then
3286   enableval="$enable_setresuid"
3287    case "$enableval" in
3288     no)         SKIP_SETRESUID=yes
3289                 ;;
3290     *)          ;;
3291   esac
3292
3293 fi;
3294
3295 echo "$as_me:$LINENO: checking whether to disable use of POSIX saved ids" >&5
3296 echo $ECHO_N "checking whether to disable use of POSIX saved ids... $ECHO_C" >&6
3297 # Check whether --enable-saved-ids or --disable-saved-ids was given.
3298 if test "${enable_saved_ids+set}" = set; then
3299   enableval="$enable_saved_ids"
3300    case "$enableval" in
3301     yes)        echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3303                 ;;
3304     no)         echo "$as_me:$LINENO: result: yes" >&5
3305 echo "${ECHO_T}yes" >&6
3306                 cat >>confdefs.h <<\_ACEOF
3307 #define NO_SAVED_IDS 1
3308 _ACEOF
3309
3310                 ;;
3311     *)          echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6
3313                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-saved-ids: $enableval" >&5
3314 echo "$as_me: WARNING: Ignoring unknown argument to --enable-saved-ids: $enableval" >&2;}
3315                 ;;
3316   esac
3317
3318 else
3319   echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3321 fi;
3322
3323 echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3324 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6
3325 # Check whether --enable-shadow or --disable-shadow was given.
3326 if test "${enable_shadow+set}" = set; then
3327   enableval="$enable_shadow"
3328    case "$enableval" in
3329     yes)        echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3331                 ;;
3332     no)         echo "$as_me:$LINENO: result: yes" >&5
3333 echo "${ECHO_T}yes" >&6
3334                 CHECKSHADOW="false"
3335                 ;;
3336     *)          echo "$as_me:$LINENO: result: no" >&5
3337 echo "${ECHO_T}no" >&6
3338                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3339 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3340                 ;;
3341   esac
3342
3343 else
3344   echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3346 fi;
3347
3348 echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3349 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6
3350 # Check whether --enable-root-sudo or --disable-root-sudo was given.
3351 if test "${enable_root_sudo+set}" = set; then
3352   enableval="$enable_root_sudo"
3353    case "$enableval" in
3354     yes)        echo "$as_me:$LINENO: result: yes" >&5
3355 echo "${ECHO_T}yes" >&6
3356                 ;;
3357     no)         cat >>confdefs.h <<\_ACEOF
3358 #define NO_ROOT_SUDO 1
3359 _ACEOF
3360
3361                 echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3363                 root_sudo=off
3364                 ;;
3365     *)          { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3366 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3367    { (exit 1); exit 1; }; }
3368                 ;;
3369   esac
3370
3371 else
3372   echo "$as_me:$LINENO: result: yes" >&5
3373 echo "${ECHO_T}yes" >&6
3374 fi;
3375
3376 echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3377 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6
3378 # Check whether --enable-log-host or --disable-log-host was given.
3379 if test "${enable_log_host+set}" = set; then
3380   enableval="$enable_log_host"
3381    case "$enableval" in
3382     yes)        echo "$as_me:$LINENO: result: yes" >&5
3383 echo "${ECHO_T}yes" >&6
3384                 cat >>confdefs.h <<\_ACEOF
3385 #define HOST_IN_LOG 1
3386 _ACEOF
3387
3388                 ;;
3389     no)         echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6
3391                 ;;
3392     *)          echo "$as_me:$LINENO: result: no" >&5
3393 echo "${ECHO_T}no" >&6
3394                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3395 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3396                 ;;
3397   esac
3398
3399 else
3400   echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3402 fi;
3403
3404 echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3405 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6
3406 # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
3407 if test "${enable_noargs_shell+set}" = set; then
3408   enableval="$enable_noargs_shell"
3409    case "$enableval" in
3410     yes)        echo "$as_me:$LINENO: result: yes" >&5
3411 echo "${ECHO_T}yes" >&6
3412                 cat >>confdefs.h <<\_ACEOF
3413 #define SHELL_IF_NO_ARGS 1
3414 _ACEOF
3415
3416                 ;;
3417     no)         echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6
3419                 ;;
3420     *)          echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3423 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
3424                 ;;
3425   esac
3426
3427 else
3428   echo "$as_me:$LINENO: result: no" >&5
3429 echo "${ECHO_T}no" >&6
3430 fi;
3431
3432 echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3433 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6
3434 # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
3435 if test "${enable_shell_sets_home+set}" = set; then
3436   enableval="$enable_shell_sets_home"
3437    case "$enableval" in
3438     yes)        echo "$as_me:$LINENO: result: yes" >&5
3439 echo "${ECHO_T}yes" >&6
3440                 cat >>confdefs.h <<\_ACEOF
3441 #define SHELL_SETS_HOME 1
3442 _ACEOF
3443
3444                 ;;
3445     no)         echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3447                 ;;
3448     *)          echo "$as_me:$LINENO: result: no" >&5
3449 echo "${ECHO_T}no" >&6
3450                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3451 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
3452                 ;;
3453   esac
3454
3455 else
3456   echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3458 fi;
3459
3460 echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
3461 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6
3462 # Check whether --enable-path_info or --disable-path_info was given.
3463 if test "${enable_path_info+set}" = set; then
3464   enableval="$enable_path_info"
3465    case "$enableval" in
3466     yes)        echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3468                 ;;
3469     no)         echo "$as_me:$LINENO: result: yes" >&5
3470 echo "${ECHO_T}yes" >&6
3471                 cat >>confdefs.h <<\_ACEOF
3472 #define DONT_LEAK_PATH_INFO 1
3473 _ACEOF
3474
3475                 ;;
3476     *)          echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3478                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3479 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
3480                 ;;
3481   esac
3482
3483 else
3484   echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3486 fi;
3487
3488 # Extract the first word of "egrep", so it can be a program name with args.
3489 set dummy egrep; ac_word=$2
3490 echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3493   echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495   if test -n "$EGREPPROG"; then
3496   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501   IFS=$as_save_IFS
3502   test -z "$as_dir" && as_dir=.
3503   for ac_exec_ext in '' $ac_executable_extensions; do
3504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505     ac_cv_prog_EGREPPROG="egrep"
3506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507     break 2
3508   fi
3509 done
3510 done
3511
3512 fi
3513 fi
3514 EGREPPROG=$ac_cv_prog_EGREPPROG
3515 if test -n "$EGREPPROG"; then
3516   echo "$as_me:$LINENO: result: $EGREPPROG" >&5
3517 echo "${ECHO_T}$EGREPPROG" >&6
3518 else
3519   echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3521 fi
3522
3523 if test -z "$EGREPPROG"; then
3524     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
3525 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
3526    { (exit 1); exit 1; }; }
3527 fi
3528
3529 if test "$with_devel" != "yes"; then
3530     ac_cv_prog_cc_g=no
3531 fi
3532
3533 ac_ext=c
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 if test -n "$ac_tool_prefix"; then
3539   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_CC+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   if test -n "$CC"; then
3547   ac_cv_prog_CC="$CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552   IFS=$as_save_IFS
3553   test -z "$as_dir" && as_dir=.
3554   for ac_exec_ext in '' $ac_executable_extensions; do
3555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558     break 2
3559   fi
3560 done
3561 done
3562
3563 fi
3564 fi
3565 CC=$ac_cv_prog_CC
3566 if test -n "$CC"; then
3567   echo "$as_me:$LINENO: result: $CC" >&5
3568 echo "${ECHO_T}$CC" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574 fi
3575 if test -z "$ac_cv_prog_CC"; then
3576   ac_ct_CC=$CC
3577   # Extract the first word of "gcc", so it can be a program name with args.
3578 set dummy gcc; ac_word=$2
3579 echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   if test -n "$ac_ct_CC"; then
3585   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590   IFS=$as_save_IFS
3591   test -z "$as_dir" && as_dir=.
3592   for ac_exec_ext in '' $ac_executable_extensions; do
3593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594     ac_cv_prog_ac_ct_CC="gcc"
3595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596     break 2
3597   fi
3598 done
3599 done
3600
3601 fi
3602 fi
3603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3604 if test -n "$ac_ct_CC"; then
3605   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3606 echo "${ECHO_T}$ac_ct_CC" >&6
3607 else
3608   echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6
3610 fi
3611
3612   CC=$ac_ct_CC
3613 else
3614   CC="$ac_cv_prog_CC"
3615 fi
3616
3617 if test -z "$CC"; then
3618   if test -n "$ac_tool_prefix"; then
3619   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3620 set dummy ${ac_tool_prefix}cc; ac_word=$2
3621 echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623 if test "${ac_cv_prog_CC+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   if test -n "$CC"; then
3627   ac_cv_prog_CC="$CC" # Let the user override the test.
3628 else
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3631 do
3632   IFS=$as_save_IFS
3633   test -z "$as_dir" && as_dir=.
3634   for ac_exec_ext in '' $ac_executable_extensions; do
3635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636     ac_cv_prog_CC="${ac_tool_prefix}cc"
3637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3638     break 2
3639   fi
3640 done
3641 done
3642
3643 fi
3644 fi
3645 CC=$ac_cv_prog_CC
3646 if test -n "$CC"; then
3647   echo "$as_me:$LINENO: result: $CC" >&5
3648 echo "${ECHO_T}$CC" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653
3654 fi
3655 if test -z "$ac_cv_prog_CC"; then
3656   ac_ct_CC=$CC
3657   # Extract the first word of "cc", so it can be a program name with args.
3658 set dummy cc; ac_word=$2
3659 echo "$as_me:$LINENO: checking for $ac_word" >&5
3660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3662   echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664   if test -n "$ac_ct_CC"; then
3665   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3666 else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3669 do
3670   IFS=$as_save_IFS
3671   test -z "$as_dir" && as_dir=.
3672   for ac_exec_ext in '' $ac_executable_extensions; do
3673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674     ac_cv_prog_ac_ct_CC="cc"
3675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676     break 2
3677   fi
3678 done
3679 done
3680
3681 fi
3682 fi
3683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684 if test -n "$ac_ct_CC"; then
3685   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3686 echo "${ECHO_T}$ac_ct_CC" >&6
3687 else
3688   echo "$as_me:$LINENO: result: no" >&5
3689 echo "${ECHO_T}no" >&6
3690 fi
3691
3692   CC=$ac_ct_CC
3693 else
3694   CC="$ac_cv_prog_CC"
3695 fi
3696
3697 fi
3698 if test -z "$CC"; then
3699   # Extract the first word of "cc", so it can be a program name with args.
3700 set dummy cc; ac_word=$2
3701 echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703 if test "${ac_cv_prog_CC+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   if test -n "$CC"; then
3707   ac_cv_prog_CC="$CC" # Let the user override the test.
3708 else
3709   ac_prog_rejected=no
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3718        ac_prog_rejected=yes
3719        continue
3720      fi
3721     ac_cv_prog_CC="cc"
3722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723     break 2
3724   fi
3725 done
3726 done
3727
3728 if test $ac_prog_rejected = yes; then
3729   # We found a bogon in the path, so make sure we never use it.
3730   set dummy $ac_cv_prog_CC
3731   shift
3732   if test $# != 0; then
3733     # We chose a different compiler from the bogus one.
3734     # However, it has the same basename, so the bogon will be chosen
3735     # first if we set CC to just the basename; use the full file name.
3736     shift
3737     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3738   fi
3739 fi
3740 fi
3741 fi
3742 CC=$ac_cv_prog_CC
3743 if test -n "$CC"; then
3744   echo "$as_me:$LINENO: result: $CC" >&5
3745 echo "${ECHO_T}$CC" >&6
3746 else
3747   echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3749 fi
3750
3751 fi
3752 if test -z "$CC"; then
3753   if test -n "$ac_tool_prefix"; then
3754   for ac_prog in cl
3755   do
3756     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3758 echo "$as_me:$LINENO: checking for $ac_word" >&5
3759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3760 if test "${ac_cv_prog_CC+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   if test -n "$CC"; then
3764   ac_cv_prog_CC="$CC" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769   IFS=$as_save_IFS
3770   test -z "$as_dir" && as_dir=.
3771   for ac_exec_ext in '' $ac_executable_extensions; do
3772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775     break 2
3776   fi
3777 done
3778 done
3779
3780 fi
3781 fi
3782 CC=$ac_cv_prog_CC
3783 if test -n "$CC"; then
3784   echo "$as_me:$LINENO: result: $CC" >&5
3785 echo "${ECHO_T}$CC" >&6
3786 else
3787   echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6
3789 fi
3790
3791     test -n "$CC" && break
3792   done
3793 fi
3794 if test -z "$CC"; then
3795   ac_ct_CC=$CC
3796   for ac_prog in cl
3797 do
3798   # Extract the first word of "$ac_prog", so it can be a program name with args.
3799 set dummy $ac_prog; ac_word=$2
3800 echo "$as_me:$LINENO: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   if test -n "$ac_ct_CC"; then
3806   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811   IFS=$as_save_IFS
3812   test -z "$as_dir" && as_dir=.
3813   for ac_exec_ext in '' $ac_executable_extensions; do
3814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815     ac_cv_prog_ac_ct_CC="$ac_prog"
3816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817     break 2
3818   fi
3819 done
3820 done
3821
3822 fi
3823 fi
3824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825 if test -n "$ac_ct_CC"; then
3826   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3827 echo "${ECHO_T}$ac_ct_CC" >&6
3828 else
3829   echo "$as_me:$LINENO: result: no" >&5
3830 echo "${ECHO_T}no" >&6
3831 fi
3832
3833   test -n "$ac_ct_CC" && break
3834 done
3835
3836   CC=$ac_ct_CC
3837 fi
3838
3839 fi
3840
3841
3842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3843 See \`config.log' for more details." >&5
3844 echo "$as_me: error: no acceptable C compiler found in \$PATH
3845 See \`config.log' for more details." >&2;}
3846    { (exit 1); exit 1; }; }
3847
3848 # Provide some information about the compiler.
3849 echo "$as_me:$LINENO:" \
3850      "checking for C compiler version" >&5
3851 ac_compiler=`set X $ac_compile; echo $2`
3852 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3853   (eval $ac_compiler --version </dev/null >&5) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }
3857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3858   (eval $ac_compiler -v </dev/null >&5) 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }
3862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3863   (eval $ac_compiler -V </dev/null >&5) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }
3867
3868 cat >conftest.$ac_ext <<_ACEOF
3869 #line $LINENO "configure"
3870 /* confdefs.h.  */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h.  */
3875
3876 int
3877 main ()
3878 {
3879
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 ac_clean_files_save=$ac_clean_files
3885 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3886 # Try to create an executable without -o first, disregard a.out.
3887 # It will help us diagnose broken compilers, and finding out an intuition
3888 # of exeext.
3889 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3890 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3891 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3892 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3893   (eval $ac_link_default) 2>&5
3894   ac_status=$?
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); }; then
3897   # Find the output, starting from the most likely.  This scheme is
3898 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3899 # resort.
3900
3901 # Be careful to initialize this variable, since it used to be cached.
3902 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3903 ac_cv_exeext=
3904 # b.out is created by i960 compilers.
3905 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3906 do
3907   test -f "$ac_file" || continue
3908   case $ac_file in
3909     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3910         ;;
3911     conftest.$ac_ext )
3912         # This is the source file.
3913         ;;
3914     [ab].out )
3915         # We found the default executable, but exeext='' is most
3916         # certainly right.
3917         break;;
3918     *.* )
3919         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920         # FIXME: I believe we export ac_cv_exeext for Libtool,
3921         # but it would be cool to find out if it's true.  Does anybody
3922         # maintain Libtool? --akim.
3923         export ac_cv_exeext
3924         break;;
3925     * )
3926         break;;
3927   esac
3928 done
3929 else
3930   echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3934 See \`config.log' for more details." >&5
3935 echo "$as_me: error: C compiler cannot create executables
3936 See \`config.log' for more details." >&2;}
3937    { (exit 77); exit 77; }; }
3938 fi
3939
3940 ac_exeext=$ac_cv_exeext
3941 echo "$as_me:$LINENO: result: $ac_file" >&5
3942 echo "${ECHO_T}$ac_file" >&6
3943
3944 # Check the compiler produces executables we can run.  If not, either
3945 # the compiler is broken, or we cross compile.
3946 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3947 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3948 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3949 # If not cross compiling, check that we can run a simple program.
3950 if test "$cross_compiling" != yes; then
3951   if { ac_try='./$ac_file'
3952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953   (eval $ac_try) 2>&5
3954   ac_status=$?
3955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956   (exit $ac_status); }; }; then
3957     cross_compiling=no
3958   else
3959     if test "$cross_compiling" = maybe; then
3960         cross_compiling=yes
3961     else
3962         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3963 If you meant to cross compile, use \`--host'.
3964 See \`config.log' for more details." >&5
3965 echo "$as_me: error: cannot run C compiled programs.
3966 If you meant to cross compile, use \`--host'.
3967 See \`config.log' for more details." >&2;}
3968    { (exit 1); exit 1; }; }
3969     fi
3970   fi
3971 fi
3972 echo "$as_me:$LINENO: result: yes" >&5
3973 echo "${ECHO_T}yes" >&6
3974
3975 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3976 ac_clean_files=$ac_clean_files_save
3977 # Check the compiler produces executables we can run.  If not, either
3978 # the compiler is broken, or we cross compile.
3979 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3980 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3981 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3982 echo "${ECHO_T}$cross_compiling" >&6
3983
3984 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3985 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3987   (eval $ac_link) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }; then
3991   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3992 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3993 # work properly (i.e., refer to `conftest.exe'), while it won't with
3994 # `rm'.
3995 for ac_file in conftest.exe conftest conftest.*; do
3996   test -f "$ac_file" || continue
3997   case $ac_file in
3998     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3999     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4000           export ac_cv_exeext
4001           break;;
4002     * ) break;;
4003   esac
4004 done
4005 else
4006   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4007 See \`config.log' for more details." >&5
4008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4009 See \`config.log' for more details." >&2;}
4010    { (exit 1); exit 1; }; }
4011 fi
4012
4013 rm -f conftest$ac_cv_exeext
4014 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4015 echo "${ECHO_T}$ac_cv_exeext" >&6
4016
4017 rm -f conftest.$ac_ext
4018 EXEEXT=$ac_cv_exeext
4019 ac_exeext=$EXEEXT
4020 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4021 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4022 if test "${ac_cv_objext+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   cat >conftest.$ac_ext <<_ACEOF
4026 #line $LINENO "configure"
4027 /* confdefs.h.  */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h.  */
4032
4033 int
4034 main ()
4035 {
4036
4037   ;
4038   return 0;
4039 }
4040 _ACEOF
4041 rm -f conftest.o conftest.obj
4042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4043   (eval $ac_compile) 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; then
4047   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4048   case $ac_file in
4049     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4050     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4051        break;;
4052   esac
4053 done
4054 else
4055   echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4057
4058 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4059 See \`config.log' for more details." >&5
4060 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4061 See \`config.log' for more details." >&2;}
4062    { (exit 1); exit 1; }; }
4063 fi
4064
4065 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4066 fi
4067 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4068 echo "${ECHO_T}$ac_cv_objext" >&6
4069 OBJEXT=$ac_cv_objext
4070 ac_objext=$OBJEXT
4071 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4072 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4073 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4074   echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076   cat >conftest.$ac_ext <<_ACEOF
4077 #line $LINENO "configure"
4078 /* confdefs.h.  */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h.  */
4083
4084 int
4085 main ()
4086 {
4087 #ifndef __GNUC__
4088        choke me
4089 #endif
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097   (eval $ac_compile) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); } &&
4101          { ac_try='test -s conftest.$ac_objext'
4102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103   (eval $ac_try) 2>&5
4104   ac_status=$?
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); }; }; then
4107   ac_compiler_gnu=yes
4108 else
4109   echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 ac_compiler_gnu=no
4113 fi
4114 rm -f conftest.$ac_objext conftest.$ac_ext
4115 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4116
4117 fi
4118 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4119 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4120 GCC=`test $ac_compiler_gnu = yes && echo yes`
4121 ac_test_CFLAGS=${CFLAGS+set}
4122 ac_save_CFLAGS=$CFLAGS
4123 CFLAGS="-g"
4124 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4125 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4126 if test "${ac_cv_prog_cc_g+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   cat >conftest.$ac_ext <<_ACEOF
4130 #line $LINENO "configure"
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136
4137 int
4138 main ()
4139 {
4140
4141   ;
4142   return 0;
4143 }
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147   (eval $ac_compile) 2>&5
4148   ac_status=$?
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } &&
4151          { ac_try='test -s conftest.$ac_objext'
4152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153   (eval $ac_try) 2>&5
4154   ac_status=$?
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); }; }; then
4157   ac_cv_prog_cc_g=yes
4158 else
4159   echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162 ac_cv_prog_cc_g=no
4163 fi
4164 rm -f conftest.$ac_objext conftest.$ac_ext
4165 fi
4166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4168 if test "$ac_test_CFLAGS" = set; then
4169   CFLAGS=$ac_save_CFLAGS
4170 elif test $ac_cv_prog_cc_g = yes; then
4171   if test "$GCC" = yes; then
4172     CFLAGS="-g -O2"
4173   else
4174     CFLAGS="-g"
4175   fi
4176 else
4177   if test "$GCC" = yes; then
4178     CFLAGS="-O2"
4179   else
4180     CFLAGS=
4181   fi
4182 fi
4183 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4184 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4185 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4186   echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188   ac_cv_prog_cc_stdc=no
4189 ac_save_CC=$CC
4190 cat >conftest.$ac_ext <<_ACEOF
4191 #line $LINENO "configure"
4192 /* confdefs.h.  */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h.  */
4197 #include <stdarg.h>
4198 #include <stdio.h>
4199 #include <sys/types.h>
4200 #include <sys/stat.h>
4201 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4202 struct buf { int x; };
4203 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4204 static char *e (p, i)
4205      char **p;
4206      int i;
4207 {
4208   return p[i];
4209 }
4210 static char *f (char * (*g) (char **, int), char **p, ...)
4211 {
4212   char *s;
4213   va_list v;
4214   va_start (v,p);
4215   s = g (p, va_arg (v,int));
4216   va_end (v);
4217   return s;
4218 }
4219 int test (int i, double x);
4220 struct s1 {int (*f) (int a);};
4221 struct s2 {int (*f) (double a);};
4222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4223 int argc;
4224 char **argv;
4225 int
4226 main ()
4227 {
4228 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4229   ;
4230   return 0;
4231 }
4232 _ACEOF
4233 # Don't try gcc -ansi; that turns off useful extensions and
4234 # breaks some systems' header files.
4235 # AIX                   -qlanglvl=ansi
4236 # Ultrix and OSF/1      -std1
4237 # HP-UX 10.20 and later -Ae
4238 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4239 # SVR4                  -Xc -D__EXTENSIONS__
4240 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4241 do
4242   CC="$ac_save_CC $ac_arg"
4243   rm -f conftest.$ac_objext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4245   (eval $ac_compile) 2>&5
4246   ac_status=$?
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); } &&
4249          { ac_try='test -s conftest.$ac_objext'
4250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251   (eval $ac_try) 2>&5
4252   ac_status=$?
4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254   (exit $ac_status); }; }; then
4255   ac_cv_prog_cc_stdc=$ac_arg
4256 break
4257 else
4258   echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261 fi
4262 rm -f conftest.$ac_objext
4263 done
4264 rm -f conftest.$ac_ext conftest.$ac_objext
4265 CC=$ac_save_CC
4266
4267 fi
4268
4269 case "x$ac_cv_prog_cc_stdc" in
4270   x|xno)
4271     echo "$as_me:$LINENO: result: none needed" >&5
4272 echo "${ECHO_T}none needed" >&6 ;;
4273   *)
4274     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4275 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4276     CC="$CC $ac_cv_prog_cc_stdc" ;;
4277 esac
4278
4279 # Some people use a C++ compiler to compile C.  Since we use `exit',
4280 # in C++ we need to declare it.  In case someone uses the same compiler
4281 # for both compiling C and C++ we need to have the C++ compiler decide
4282 # the declaration of exit, since it's the most demanding environment.
4283 cat >conftest.$ac_ext <<_ACEOF
4284 #ifndef __cplusplus
4285   choke me
4286 #endif
4287 _ACEOF
4288 rm -f conftest.$ac_objext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290   (eval $ac_compile) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } &&
4294          { ac_try='test -s conftest.$ac_objext'
4295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296   (eval $ac_try) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; }; then
4300   for ac_declaration in \
4301    ''\
4302    '#include <stdlib.h>' \
4303    'extern "C" void std::exit (int) throw (); using std::exit;' \
4304    'extern "C" void std::exit (int); using std::exit;' \
4305    'extern "C" void exit (int) throw ();' \
4306    'extern "C" void exit (int);' \
4307    'void exit (int);'
4308 do
4309   cat >conftest.$ac_ext <<_ACEOF
4310 #line $LINENO "configure"
4311 /* confdefs.h.  */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h.  */
4316 #include <stdlib.h>
4317 $ac_declaration
4318 int
4319 main ()
4320 {
4321 exit (42);
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328   (eval $ac_compile) 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } &&
4332          { ac_try='test -s conftest.$ac_objext'
4333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334   (eval $ac_try) 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; }; then
4338   :
4339 else
4340   echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4342
4343 continue
4344 fi
4345 rm -f conftest.$ac_objext conftest.$ac_ext
4346   cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 /* confdefs.h.  */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h.  */
4353 $ac_declaration
4354 int
4355 main ()
4356 {
4357 exit (42);
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364   (eval $ac_compile) 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } &&
4368          { ac_try='test -s conftest.$ac_objext'
4369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370   (eval $ac_try) 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); }; }; then
4374   break
4375 else
4376   echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379 fi
4380 rm -f conftest.$ac_objext conftest.$ac_ext
4381 done
4382 rm -f conftest*
4383 if test -n "$ac_declaration"; then
4384   echo '#ifdef __cplusplus' >>confdefs.h
4385   echo $ac_declaration      >>confdefs.h
4386   echo '#endif'             >>confdefs.h
4387 fi
4388
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 fi
4394 rm -f conftest.$ac_objext conftest.$ac_ext
4395 ac_ext=c
4396 ac_cpp='$CPP $CPPFLAGS'
4397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400
4401
4402 echo "$as_me:$LINENO: checking for library containing strerror" >&5
4403 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4404 if test "${ac_cv_search_strerror+set}" = set; then
4405   echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407   ac_func_search_save_LIBS=$LIBS
4408 ac_cv_search_strerror=no
4409 cat >conftest.$ac_ext <<_ACEOF
4410 #line $LINENO "configure"
4411 /* confdefs.h.  */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h.  */
4416
4417 /* Override any gcc2 internal prototype to avoid an error.  */
4418 #ifdef __cplusplus
4419 extern "C"
4420 #endif
4421 /* We use char because int might match the return type of a gcc2
4422    builtin and then its argument prototype would still apply.  */
4423 char strerror ();
4424 int
4425 main ()
4426 {
4427 strerror ();
4428   ;
4429   return 0;
4430 }
4431 _ACEOF
4432 rm -f conftest.$ac_objext conftest$ac_exeext
4433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4434   (eval $ac_link) 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); } &&
4438          { ac_try='test -s conftest$ac_exeext'
4439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440   (eval $ac_try) 2>&5
4441   ac_status=$?
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); }; }; then
4444   ac_cv_search_strerror="none required"
4445 else
4446   echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4448
4449 fi
4450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4451 if test "$ac_cv_search_strerror" = no; then
4452   for ac_lib in cposix; do
4453     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4454     cat >conftest.$ac_ext <<_ACEOF
4455 #line $LINENO "configure"
4456 /* confdefs.h.  */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h.  */
4461
4462 /* Override any gcc2 internal prototype to avoid an error.  */
4463 #ifdef __cplusplus
4464 extern "C"
4465 #endif
4466 /* We use char because int might match the return type of a gcc2
4467    builtin and then its argument prototype would still apply.  */
4468 char strerror ();
4469 int
4470 main ()
4471 {
4472 strerror ();
4473   ;
4474   return 0;
4475 }
4476 _ACEOF
4477 rm -f conftest.$ac_objext conftest$ac_exeext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4479   (eval $ac_link) 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); } &&
4483          { ac_try='test -s conftest$ac_exeext'
4484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485   (eval $ac_try) 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; }; then
4489   ac_cv_search_strerror="-l$ac_lib"
4490 break
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 fi
4496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4497   done
4498 fi
4499 LIBS=$ac_func_search_save_LIBS
4500 fi
4501 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4502 echo "${ECHO_T}$ac_cv_search_strerror" >&6
4503 if test "$ac_cv_search_strerror" != no; then
4504   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4505
4506 fi
4507
4508
4509 ac_ext=c
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4515 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4516 # On Suns, sometimes $CPP names a directory.
4517 if test -n "$CPP" && test -d "$CPP"; then
4518   CPP=
4519 fi
4520 if test -z "$CPP"; then
4521   if test "${ac_cv_prog_CPP+set}" = set; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524       # Double quotes because CPP needs to be expanded
4525     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4526     do
4527       ac_preproc_ok=false
4528 for ac_c_preproc_warn_flag in '' yes
4529 do
4530   # Use a header file that comes with gcc, so configuring glibc
4531   # with a fresh cross-compiler works.
4532   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533   # <limits.h> exists even on freestanding compilers.
4534   # On the NeXT, cc -E runs the code through the compiler's parser,
4535   # not just through cpp. "Syntax error" is here to catch this case.
4536   cat >conftest.$ac_ext <<_ACEOF
4537 #line $LINENO "configure"
4538 /* confdefs.h.  */
4539 _ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h.  */
4543 #ifdef __STDC__
4544 # include <limits.h>
4545 #else
4546 # include <assert.h>
4547 #endif
4548                      Syntax error
4549 _ACEOF
4550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4551   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4552   ac_status=$?
4553   grep -v '^ *+' conftest.er1 >conftest.err
4554   rm -f conftest.er1
4555   cat conftest.err >&5
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); } >/dev/null; then
4558   if test -s conftest.err; then
4559     ac_cpp_err=$ac_c_preproc_warn_flag
4560   else
4561     ac_cpp_err=
4562   fi
4563 else
4564   ac_cpp_err=yes
4565 fi
4566 if test -z "$ac_cpp_err"; then
4567   :
4568 else
4569   echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572   # Broken: fails on valid input.
4573 continue
4574 fi
4575 rm -f conftest.err conftest.$ac_ext
4576
4577   # OK, works on sane cases.  Now check whether non-existent headers
4578   # can be detected and how.
4579   cat >conftest.$ac_ext <<_ACEOF
4580 #line $LINENO "configure"
4581 /* confdefs.h.  */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h.  */
4586 #include <ac_nonexistent.h>
4587 _ACEOF
4588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4590   ac_status=$?
4591   grep -v '^ *+' conftest.er1 >conftest.err
4592   rm -f conftest.er1
4593   cat conftest.err >&5
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); } >/dev/null; then
4596   if test -s conftest.err; then
4597     ac_cpp_err=$ac_c_preproc_warn_flag
4598   else
4599     ac_cpp_err=
4600   fi
4601 else
4602   ac_cpp_err=yes
4603 fi
4604 if test -z "$ac_cpp_err"; then
4605   # Broken: success on invalid input.
4606 continue
4607 else
4608   echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611   # Passes both tests.
4612 ac_preproc_ok=:
4613 break
4614 fi
4615 rm -f conftest.err conftest.$ac_ext
4616
4617 done
4618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4619 rm -f conftest.err conftest.$ac_ext
4620 if $ac_preproc_ok; then
4621   break
4622 fi
4623
4624     done
4625     ac_cv_prog_CPP=$CPP
4626
4627 fi
4628   CPP=$ac_cv_prog_CPP
4629 else
4630   ac_cv_prog_CPP=$CPP
4631 fi
4632 echo "$as_me:$LINENO: result: $CPP" >&5
4633 echo "${ECHO_T}$CPP" >&6
4634 ac_preproc_ok=false
4635 for ac_c_preproc_warn_flag in '' yes
4636 do
4637   # Use a header file that comes with gcc, so configuring glibc
4638   # with a fresh cross-compiler works.
4639   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4640   # <limits.h> exists even on freestanding compilers.
4641   # On the NeXT, cc -E runs the code through the compiler's parser,
4642   # not just through cpp. "Syntax error" is here to catch this case.
4643   cat >conftest.$ac_ext <<_ACEOF
4644 #line $LINENO "configure"
4645 /* confdefs.h.  */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h.  */
4650 #ifdef __STDC__
4651 # include <limits.h>
4652 #else
4653 # include <assert.h>
4654 #endif
4655                      Syntax error
4656 _ACEOF
4657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4658   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4659   ac_status=$?
4660   grep -v '^ *+' conftest.er1 >conftest.err
4661   rm -f conftest.er1
4662   cat conftest.err >&5
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } >/dev/null; then
4665   if test -s conftest.err; then
4666     ac_cpp_err=$ac_c_preproc_warn_flag
4667   else
4668     ac_cpp_err=
4669   fi
4670 else
4671   ac_cpp_err=yes
4672 fi
4673 if test -z "$ac_cpp_err"; then
4674   :
4675 else
4676   echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679   # Broken: fails on valid input.
4680 continue
4681 fi
4682 rm -f conftest.err conftest.$ac_ext
4683
4684   # OK, works on sane cases.  Now check whether non-existent headers
4685   # can be detected and how.
4686   cat >conftest.$ac_ext <<_ACEOF
4687 #line $LINENO "configure"
4688 /* confdefs.h.  */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h.  */
4693 #include <ac_nonexistent.h>
4694 _ACEOF
4695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4697   ac_status=$?
4698   grep -v '^ *+' conftest.er1 >conftest.err
4699   rm -f conftest.er1
4700   cat conftest.err >&5
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); } >/dev/null; then
4703   if test -s conftest.err; then
4704     ac_cpp_err=$ac_c_preproc_warn_flag
4705   else
4706     ac_cpp_err=
4707   fi
4708 else
4709   ac_cpp_err=yes
4710 fi
4711 if test -z "$ac_cpp_err"; then
4712   # Broken: success on invalid input.
4713 continue
4714 else
4715   echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4717
4718   # Passes both tests.
4719 ac_preproc_ok=:
4720 break
4721 fi
4722 rm -f conftest.err conftest.$ac_ext
4723
4724 done
4725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4726 rm -f conftest.err conftest.$ac_ext
4727 if $ac_preproc_ok; then
4728   :
4729 else
4730   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4731 See \`config.log' for more details." >&5
4732 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4733 See \`config.log' for more details." >&2;}
4734    { (exit 1); exit 1; }; }
4735 fi
4736
4737 ac_ext=c
4738 ac_cpp='$CPP $CPPFLAGS'
4739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742
4743
4744 ac_aux_dir=
4745 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4746   if test -f $ac_dir/install-sh; then
4747     ac_aux_dir=$ac_dir
4748     ac_install_sh="$ac_aux_dir/install-sh -c"
4749     break
4750   elif test -f $ac_dir/install.sh; then
4751     ac_aux_dir=$ac_dir
4752     ac_install_sh="$ac_aux_dir/install.sh -c"
4753     break
4754   elif test -f $ac_dir/shtool; then
4755     ac_aux_dir=$ac_dir
4756     ac_install_sh="$ac_aux_dir/shtool install -c"
4757     break
4758   fi
4759 done
4760 if test -z "$ac_aux_dir"; then
4761   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4762 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4763    { (exit 1); exit 1; }; }
4764 fi
4765 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4766 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4767 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4768
4769 # Make sure we can run config.sub.
4770 $ac_config_sub sun4 >/dev/null 2>&1 ||
4771   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4772 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4773    { (exit 1); exit 1; }; }
4774
4775 echo "$as_me:$LINENO: checking build system type" >&5
4776 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4777 if test "${ac_cv_build+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   ac_cv_build_alias=$build_alias
4781 test -z "$ac_cv_build_alias" &&
4782   ac_cv_build_alias=`$ac_config_guess`
4783 test -z "$ac_cv_build_alias" &&
4784   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4785 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4786    { (exit 1); exit 1; }; }
4787 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4788   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4789 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4790    { (exit 1); exit 1; }; }
4791
4792 fi
4793 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4794 echo "${ECHO_T}$ac_cv_build" >&6
4795 build=$ac_cv_build
4796 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4797 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4798 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4799
4800
4801 echo "$as_me:$LINENO: checking host system type" >&5
4802 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4803 if test "${ac_cv_host+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   ac_cv_host_alias=$host_alias
4807 test -z "$ac_cv_host_alias" &&
4808   ac_cv_host_alias=$ac_cv_build_alias
4809 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4810   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4811 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4812    { (exit 1); exit 1; }; }
4813
4814 fi
4815 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4816 echo "${ECHO_T}$ac_cv_host" >&6
4817 host=$ac_cv_host
4818 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4819 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4820 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4821
4822
4823 echo "$as_me:$LINENO: checking target system type" >&5
4824 echo $ECHO_N "checking target system type... $ECHO_C" >&6
4825 if test "${ac_cv_target+set}" = set; then
4826   echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828   ac_cv_target_alias=$target_alias
4829 test "x$ac_cv_target_alias" = "x" &&
4830   ac_cv_target_alias=$ac_cv_host_alias
4831 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
4832   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
4833 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
4834    { (exit 1); exit 1; }; }
4835
4836 fi
4837 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4838 echo "${ECHO_T}$ac_cv_target" >&6
4839 target=$ac_cv_target
4840 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4841 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4842 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4843
4844
4845 # The aliases save the names the user supplied, while $host etc.
4846 # will get canonicalized.
4847 test -n "$target_alias" &&
4848   test "$program_prefix$program_suffix$program_transform_name" = \
4849     NONENONEs,x,x, &&
4850   program_prefix=${target_alias}-
4851 # Check whether --enable-shared or --disable-shared was given.
4852 if test "${enable_shared+set}" = set; then
4853   enableval="$enable_shared"
4854   p=${PACKAGE-default}
4855     case $enableval in
4856     yes) enable_shared=yes ;;
4857     no) enable_shared=no ;;
4858     *)
4859       enable_shared=no
4860       # Look at the argument we got.  We use all the common list separators.
4861       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4862       for pkg in $enableval; do
4863         IFS="$lt_save_ifs"
4864         if test "X$pkg" = "X$p"; then
4865           enable_shared=yes
4866         fi
4867       done
4868       IFS="$lt_save_ifs"
4869       ;;
4870     esac
4871 else
4872   enable_shared=yes
4873 fi;
4874
4875 # Check whether --enable-static or --disable-static was given.
4876 if test "${enable_static+set}" = set; then
4877   enableval="$enable_static"
4878   p=${PACKAGE-default}
4879     case $enableval in
4880     yes) enable_static=yes ;;
4881     no) enable_static=no ;;
4882     *)
4883      enable_static=no
4884       # Look at the argument we got.  We use all the common list separators.
4885       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4886       for pkg in $enableval; do
4887         IFS="$lt_save_ifs"
4888         if test "X$pkg" = "X$p"; then
4889           enable_static=yes
4890         fi
4891       done
4892       IFS="$lt_save_ifs"
4893       ;;
4894     esac
4895 else
4896   enable_static=no
4897 fi;
4898
4899
4900 # Check whether --enable-fast-install or --disable-fast-install was given.
4901 if test "${enable_fast_install+set}" = set; then
4902   enableval="$enable_fast_install"
4903   p=${PACKAGE-default}
4904     case $enableval in
4905     yes) enable_fast_install=yes ;;
4906     no) enable_fast_install=no ;;
4907     *)
4908       enable_fast_install=no
4909       # Look at the argument we got.  We use all the common list separators.
4910       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4911       for pkg in $enableval; do
4912         IFS="$lt_save_ifs"
4913         if test "X$pkg" = "X$p"; then
4914           enable_fast_install=yes
4915         fi
4916       done
4917       IFS="$lt_save_ifs"
4918       ;;
4919     esac
4920 else
4921   enable_fast_install=yes
4922 fi;
4923
4924 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4925 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4926 if test "${lt_cv_path_SED+set}" = set; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   # Loop through the user's path and test for sed and gsed.
4930 # Then use that list of sed's as ones to test for truncation.
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934   IFS=$as_save_IFS
4935   test -z "$as_dir" && as_dir=.
4936   for lt_ac_prog in sed gsed; do
4937     for ac_exec_ext in '' $ac_executable_extensions; do
4938       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4939         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4940       fi
4941     done
4942   done
4943 done
4944 lt_ac_max=0
4945 lt_ac_count=0
4946 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4947 # along with /bin/sed that truncates output.
4948 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4949   test ! -f $lt_ac_sed && break
4950   cat /dev/null > conftest.in
4951   lt_ac_count=0
4952   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4953   # Check for GNU sed and select it if it is found.
4954   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4955     lt_cv_path_SED=$lt_ac_sed
4956     break
4957   fi
4958   while true; do
4959     cat conftest.in conftest.in >conftest.tmp
4960     mv conftest.tmp conftest.in
4961     cp conftest.in conftest.nl
4962     echo >>conftest.nl
4963     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4964     cmp -s conftest.out conftest.nl || break
4965     # 10000 chars as input seems more than enough
4966     test $lt_ac_count -gt 10 && break
4967     lt_ac_count=`expr $lt_ac_count + 1`
4968     if test $lt_ac_count -gt $lt_ac_max; then
4969       lt_ac_max=$lt_ac_count
4970       lt_cv_path_SED=$lt_ac_sed
4971     fi
4972   done
4973 done
4974 SED=$lt_cv_path_SED
4975
4976 fi
4977
4978 echo "$as_me:$LINENO: result: $SED" >&5
4979 echo "${ECHO_T}$SED" >&6
4980
4981 echo "$as_me:$LINENO: checking for egrep" >&5
4982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4983 if test "${ac_cv_prog_egrep+set}" = set; then
4984   echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4987     then ac_cv_prog_egrep='grep -E'
4988     else ac_cv_prog_egrep='egrep'
4989     fi
4990 fi
4991 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4992 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4993  EGREP=$ac_cv_prog_egrep
4994
4995
4996
4997 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4998 if test "${with_gnu_ld+set}" = set; then
4999   withval="$with_gnu_ld"
5000   test "$withval" = no || with_gnu_ld=yes
5001 else
5002   with_gnu_ld=no
5003 fi;
5004 ac_prog=ld
5005 if test "$GCC" = yes; then
5006   # Check if gcc -print-prog-name=ld gives a path.
5007   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5008 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5009   case $host in
5010   *-*-mingw*)
5011     # gcc leaves a trailing carriage return which upsets mingw
5012     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5013   *)
5014     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5015   esac
5016   case $ac_prog in
5017     # Accept absolute paths.
5018     [\\/]* | ?:[\\/]*)
5019       re_direlt='/[^/][^/]*/\.\./'
5020       # Canonicalize the path of ld
5021       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5022       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5023         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5024       done
5025       test -z "$LD" && LD="$ac_prog"
5026       ;;
5027   "")
5028     # If it fails, then pretend we aren't using GCC.
5029     ac_prog=ld
5030     ;;
5031   *)
5032     # If it is relative, then search for the first ld in PATH.
5033     with_gnu_ld=unknown
5034     ;;
5035   esac
5036 elif test "$with_gnu_ld" = yes; then
5037   echo "$as_me:$LINENO: checking for GNU ld" >&5
5038 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5039 else
5040   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5041 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5042 fi
5043 if test "${lt_cv_path_LD+set}" = set; then
5044   echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046   if test -z "$LD"; then
5047   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5048   for ac_dir in $PATH; do
5049     IFS="$lt_save_ifs"
5050     test -z "$ac_dir" && ac_dir=.
5051     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5052       lt_cv_path_LD="$ac_dir/$ac_prog"
5053       # Check to see if the program is GNU ld.  I'd rather use --version,
5054       # but apparently some GNU ld's only accept -v.
5055       # Break only if it was the GNU/non-GNU ld that we prefer.
5056       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5057       *GNU* | *'with BFD'*)
5058         test "$with_gnu_ld" != no && break
5059         ;;
5060       *)
5061         test "$with_gnu_ld" != yes && break
5062         ;;
5063       esac
5064     fi
5065   done
5066   IFS="$lt_save_ifs"
5067 else
5068   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5069 fi
5070 fi
5071
5072 LD="$lt_cv_path_LD"
5073 if test -n "$LD"; then
5074   echo "$as_me:$LINENO: result: $LD" >&5
5075 echo "${ECHO_T}$LD" >&6
5076 else
5077   echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6
5079 fi
5080 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5081 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5082    { (exit 1); exit 1; }; }
5083 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5084 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5085 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5086   echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5089 case `"$LD" -v 2>&1 </dev/null` in
5090 *GNU* | *'with BFD'*)
5091   lt_cv_prog_gnu_ld=yes
5092   ;;
5093 *)
5094   lt_cv_prog_gnu_ld=no
5095   ;;
5096 esac
5097 fi
5098 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5099 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5100 with_gnu_ld=$lt_cv_prog_gnu_ld
5101
5102
5103 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5104 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5105 if test "${lt_cv_ld_reload_flag+set}" = set; then
5106   echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108   lt_cv_ld_reload_flag='-r'
5109 fi
5110 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5111 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5112 reload_flag=$lt_cv_ld_reload_flag
5113 case $reload_flag in
5114 "" | " "*) ;;
5115 *) reload_flag=" $reload_flag" ;;
5116 esac
5117 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5118
5119 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5120 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5121 if test "${lt_cv_path_NM+set}" = set; then
5122   echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124   if test -n "$NM"; then
5125   # Let the user override the test.
5126   lt_cv_path_NM="$NM"
5127 else
5128   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5129   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5130     IFS="$lt_save_ifs"
5131     test -z "$ac_dir" && ac_dir=.
5132     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5133     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5134       # Check to see if the nm accepts a BSD-compat flag.
5135       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5136       #   nm: unknown option "B" ignored
5137       # Tru64's nm complains that /dev/null is an invalid object file
5138       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5139       */dev/null* | *'Invalid file or object type'*)
5140         lt_cv_path_NM="$tmp_nm -B"
5141         break
5142         ;;
5143       *)
5144         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5145         */dev/null*)
5146           lt_cv_path_NM="$tmp_nm -p"
5147           break
5148           ;;
5149         *)
5150           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5151           continue # so that we can try to find one that supports BSD flags
5152           ;;
5153         esac
5154       esac
5155     fi
5156   done
5157   IFS="$lt_save_ifs"
5158   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5159 fi
5160 fi
5161 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5162 echo "${ECHO_T}$lt_cv_path_NM" >&6
5163 NM="$lt_cv_path_NM"
5164
5165 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5166 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5167 LN_S=$as_ln_s
5168 if test "$LN_S" = "ln -s"; then
5169   echo "$as_me:$LINENO: result: yes" >&5
5170 echo "${ECHO_T}yes" >&6
5171 else
5172   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5173 echo "${ECHO_T}no, using $LN_S" >&6
5174 fi
5175
5176 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5177 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5178 if test "${lt_cv_deplibs_check_method+set}" = set; then
5179   echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181   lt_cv_file_magic_cmd='$MAGIC_CMD'
5182 lt_cv_file_magic_test_file=
5183 lt_cv_deplibs_check_method='unknown'
5184 # Need to set the preceding variable on all platforms that support
5185 # interlibrary dependencies.
5186 # 'none' -- dependencies not supported.
5187 # `unknown' -- same as none, but documents that we really don't know.
5188 # 'pass_all' -- all dependencies passed with no checks.
5189 # 'test_compile' -- check by making test program.
5190 # 'file_magic [[regex]]' -- check by looking for files in library path
5191 # which responds to the $file_magic_cmd with a given extended regex.
5192 # If you have `file' or equivalent on your system and you're not sure
5193 # whether `pass_all' will *always* work, you probably want this one.
5194
5195 case $host_os in
5196 aix4* | aix5*)
5197   lt_cv_deplibs_check_method=pass_all
5198   ;;
5199
5200 beos*)
5201   lt_cv_deplibs_check_method=pass_all
5202   ;;
5203
5204 bsdi4*)
5205   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5206   lt_cv_file_magic_cmd='/usr/bin/file -L'
5207   lt_cv_file_magic_test_file=/shlib/libc.so
5208   ;;
5209
5210 cygwin* | mingw* | pw32*)
5211   # win32_libid is a shell function defined in ltmain.sh
5212   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5213   lt_cv_file_magic_cmd='win32_libid'
5214   ;;
5215
5216 darwin* | rhapsody*)
5217   # this will be overwritten by pass_all, but leave it in just in case
5218   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5219   lt_cv_file_magic_cmd='/usr/bin/file -L'
5220   case "$host_os" in
5221   rhapsody* | darwin1.[012])
5222     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
5223     ;;
5224   *) # Darwin 1.3 on
5225     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5226     ;;
5227   esac
5228   lt_cv_deplibs_check_method=pass_all
5229   ;;
5230
5231 freebsd*)
5232   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5233     case $host_cpu in
5234     i*86 )
5235       # Not sure whether the presence of OpenBSD here was a mistake.
5236       # Let's accept both of them until this is cleared up.
5237       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5238       lt_cv_file_magic_cmd=/usr/bin/file
5239       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5240       ;;
5241     esac
5242   else
5243     lt_cv_deplibs_check_method=pass_all
5244   fi
5245   ;;
5246
5247 gnu*)
5248   lt_cv_deplibs_check_method=pass_all
5249   ;;
5250
5251 hpux10.20* | hpux11*)
5252   lt_cv_file_magic_cmd=/usr/bin/file
5253   case "$host_cpu" in
5254   ia64*)
5255     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5256     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5257     ;;
5258   hppa*64*)
5259     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5260     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5261     ;;
5262   *)
5263     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5264     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5265     ;;
5266   esac
5267   ;;
5268
5269 irix5* | irix6* | nonstopux*)
5270   case $host_os in
5271   irix5* | nonstopux*)
5272     # this will be overridden with pass_all, but let us keep it just in case
5273     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5274     ;;
5275   *)
5276     case $LD in
5277     *-32|*"-32 ") libmagic=32-bit;;
5278     *-n32|*"-n32 ") libmagic=N32;;
5279     *-64|*"-64 ") libmagic=64-bit;;
5280     *) libmagic=never-match;;
5281     esac
5282     # this will be overridden with pass_all, but let us keep it just in case
5283     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5284     ;;
5285   esac
5286   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5287   lt_cv_deplibs_check_method=pass_all
5288   ;;
5289
5290 # This must be Linux ELF.
5291 linux*)
5292   case $host_cpu in
5293   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
5294     lt_cv_deplibs_check_method=pass_all ;;
5295   *)
5296     # glibc up to 2.1.1 does not perform some relocations on ARM
5297     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5298   esac
5299   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5300   ;;
5301
5302 netbsd*)
5303   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5304     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5305   else
5306     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5307   fi
5308   ;;
5309
5310 newos6*)
5311   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5312   lt_cv_file_magic_cmd=/usr/bin/file
5313   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5314   ;;
5315
5316 nto-qnx)
5317   lt_cv_deplibs_check_method=unknown
5318   ;;
5319
5320 openbsd*)
5321   lt_cv_file_magic_cmd=/usr/bin/file
5322   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5323   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5324     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5325   else
5326     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5327   fi
5328   ;;
5329
5330 osf3* | osf4* | osf5*)
5331   # this will be overridden with pass_all, but let us keep it just in case
5332   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5333   lt_cv_file_magic_test_file=/shlib/libc.so
5334   lt_cv_deplibs_check_method=pass_all
5335   ;;
5336
5337 sco3.2v5*)
5338   lt_cv_deplibs_check_method=pass_all
5339   ;;
5340
5341 solaris*)
5342   lt_cv_deplibs_check_method=pass_all
5343   lt_cv_file_magic_test_file=/lib/libc.so
5344   ;;
5345
5346 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5347   case $host_vendor in
5348   motorola)
5349     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]'
5350     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5351     ;;
5352   ncr)
5353     lt_cv_deplibs_check_method=pass_all
5354     ;;
5355   sequent)
5356     lt_cv_file_magic_cmd='/bin/file'
5357     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5358     ;;
5359   sni)
5360     lt_cv_file_magic_cmd='/bin/file'
5361     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5362     lt_cv_file_magic_test_file=/lib/libc.so
5363     ;;
5364   siemens)
5365     lt_cv_deplibs_check_method=pass_all
5366     ;;
5367   esac
5368   ;;
5369
5370 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5371   lt_cv_deplibs_check_method=pass_all
5372   ;;
5373 esac
5374
5375 fi
5376 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5377 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5378 file_magic_cmd=$lt_cv_file_magic_cmd
5379 deplibs_check_method=$lt_cv_deplibs_check_method
5380 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5381
5382
5383
5384
5385 # If no C compiler was specified, use CC.
5386 LTCC=${LTCC-"$CC"}
5387
5388 # Allow CC to be a program name with arguments.
5389 compiler=$CC
5390
5391 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5392 if test "${enable_libtool_lock+set}" = set; then
5393   enableval="$enable_libtool_lock"
5394
5395 fi;
5396 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5397
5398 # Some flags need to be propagated to the compiler or linker for good
5399 # libtool support.
5400 case $host in
5401 ia64-*-hpux*)
5402   # Find out which ABI we are using.
5403   echo 'int i;' > conftest.$ac_ext
5404   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405   (eval $ac_compile) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; then
5409     case `/usr/bin/file conftest.$ac_objext` in
5410     *ELF-32*)
5411       HPUX_IA64_MODE="32"
5412       ;;
5413     *ELF-64*)
5414       HPUX_IA64_MODE="64"
5415       ;;
5416     esac
5417   fi
5418   rm -rf conftest*
5419   ;;
5420 *-*-irix6*)
5421   # Find out which ABI we are using.
5422   echo '#line 5422 "configure"' > conftest.$ac_ext
5423   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424   (eval $ac_compile) 2>&5
5425   ac_status=$?
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); }; then
5428    if test "$lt_cv_prog_gnu_ld" = yes; then
5429     case `/usr/bin/file conftest.$ac_objext` in
5430     *32-bit*)
5431       LD="${LD-ld} -melf32bsmip"
5432       ;;
5433     *N32*)
5434       LD="${LD-ld} -melf32bmipn32"
5435       ;;
5436     *64-bit*)
5437       LD="${LD-ld} -melf64bmip"
5438       ;;
5439     esac
5440    else
5441     case `/usr/bin/file conftest.$ac_objext` in
5442     *32-bit*)
5443       LD="${LD-ld} -32"
5444       ;;
5445     *N32*)
5446       LD="${LD-ld} -n32"
5447       ;;
5448     *64-bit*)
5449       LD="${LD-ld} -64"
5450       ;;
5451     esac
5452    fi
5453   fi
5454   rm -rf conftest*
5455   ;;
5456
5457 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5458   # Find out which ABI we are using.
5459   echo 'int i;' > conftest.$ac_ext
5460   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5461   (eval $ac_compile) 2>&5
5462   ac_status=$?
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); }; then
5465     case "`/usr/bin/file conftest.o`" in
5466     *32-bit*)
5467       case $host in
5468         x86_64-*linux*)
5469           LD="${LD-ld} -m elf_i386"
5470           ;;
5471         ppc64-*linux*)
5472           LD="${LD-ld} -m elf32ppclinux"
5473           ;;
5474         s390x-*linux*)
5475           LD="${LD-ld} -m elf_s390"
5476           ;;
5477         sparc64-*linux*)
5478           LD="${LD-ld} -m elf32_sparc"
5479           ;;
5480       esac
5481       ;;
5482     *64-bit*)
5483       case $host in
5484         x86_64-*linux*)
5485           LD="${LD-ld} -m elf_x86_64"
5486           ;;
5487         ppc*-*linux*|powerpc*-*linux*)
5488           LD="${LD-ld} -m elf64ppc"
5489           ;;
5490         s390*-*linux*)
5491           LD="${LD-ld} -m elf64_s390"
5492           ;;
5493         sparc*-*linux*)
5494           LD="${LD-ld} -m elf64_sparc"
5495           ;;
5496       esac
5497       ;;
5498     esac
5499   fi
5500   rm -rf conftest*
5501   ;;
5502
5503 *-*-sco3.2v5*)
5504   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5505   SAVE_CFLAGS="$CFLAGS"
5506   CFLAGS="$CFLAGS -belf"
5507   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5508 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5509 if test "${lt_cv_cc_needs_belf+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   ac_ext=c
5513 ac_cpp='$CPP $CPPFLAGS'
5514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5517
5518      cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 /* confdefs.h.  */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h.  */
5525
5526 int
5527 main ()
5528 {
5529
5530   ;
5531   return 0;
5532 }
5533 _ACEOF
5534 rm -f conftest.$ac_objext conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536   (eval $ac_link) 2>&5
5537   ac_status=$?
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } &&
5540          { ac_try='test -s conftest$ac_exeext'
5541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542   (eval $ac_try) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); }; }; then
5546   lt_cv_cc_needs_belf=yes
5547 else
5548   echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5550
5551 lt_cv_cc_needs_belf=no
5552 fi
5553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5554      ac_ext=c
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5559
5560 fi
5561 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5562 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5563   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5564     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5565     CFLAGS="$SAVE_CFLAGS"
5566   fi
5567   ;;
5568
5569 esac
5570
5571 need_locks="$enable_libtool_lock"
5572
5573
5574
5575 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5576 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5577 if test "${ac_cv_header_stdc+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   cat >conftest.$ac_ext <<_ACEOF
5581 #line $LINENO "configure"
5582 /* confdefs.h.  */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h.  */
5587 #include <stdlib.h>
5588 #include <stdarg.h>
5589 #include <string.h>
5590 #include <float.h>
5591
5592 int
5593 main ()
5594 {
5595
5596   ;
5597   return 0;
5598 }
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602   (eval $ac_compile) 2>&5
5603   ac_status=$?
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); } &&
5606          { ac_try='test -s conftest.$ac_objext'
5607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608   (eval $ac_try) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); }; }; then
5612   ac_cv_header_stdc=yes
5613 else
5614   echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5616
5617 ac_cv_header_stdc=no
5618 fi
5619 rm -f conftest.$ac_objext conftest.$ac_ext
5620
5621 if test $ac_cv_header_stdc = yes; then
5622   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5623   cat >conftest.$ac_ext <<_ACEOF
5624 #line $LINENO "configure"
5625 /* confdefs.h.  */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h.  */
5630 #include <string.h>
5631
5632 _ACEOF
5633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5634   $EGREP "memchr" >/dev/null 2>&1; then
5635   :
5636 else
5637   ac_cv_header_stdc=no
5638 fi
5639 rm -f conftest*
5640
5641 fi
5642
5643 if test $ac_cv_header_stdc = yes; then
5644   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5645   cat >conftest.$ac_ext <<_ACEOF
5646 #line $LINENO "configure"
5647 /* confdefs.h.  */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h.  */
5652 #include <stdlib.h>
5653
5654 _ACEOF
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656   $EGREP "free" >/dev/null 2>&1; then
5657   :
5658 else
5659   ac_cv_header_stdc=no
5660 fi
5661 rm -f conftest*
5662
5663 fi
5664
5665 if test $ac_cv_header_stdc = yes; then
5666   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5667   if test "$cross_compiling" = yes; then
5668   :
5669 else
5670   cat >conftest.$ac_ext <<_ACEOF
5671 #line $LINENO "configure"
5672 /* confdefs.h.  */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h.  */
5677 #include <ctype.h>
5678 #if ((' ' & 0x0FF) == 0x020)
5679 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5680 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5681 #else
5682 # define ISLOWER(c) \
5683                    (('a' <= (c) && (c) <= 'i') \
5684                      || ('j' <= (c) && (c) <= 'r') \
5685                      || ('s' <= (c) && (c) <= 'z'))
5686 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5687 #endif
5688
5689 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5690 int
5691 main ()
5692 {
5693   int i;
5694   for (i = 0; i < 256; i++)
5695     if (XOR (islower (i), ISLOWER (i))
5696         || toupper (i) != TOUPPER (i))
5697       exit(2);
5698   exit (0);
5699 }
5700 _ACEOF
5701 rm -f conftest$ac_exeext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703   (eval $ac_link) 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708   (eval $ac_try) 2>&5
5709   ac_status=$?
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); }; }; then
5712   :
5713 else
5714   echo "$as_me: program exited with status $ac_status" >&5
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718 ( exit $ac_status )
5719 ac_cv_header_stdc=no
5720 fi
5721 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5722 fi
5723 fi
5724 fi
5725 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5726 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5727 if test $ac_cv_header_stdc = yes; then
5728
5729 cat >>confdefs.h <<\_ACEOF
5730 #define STDC_HEADERS 1
5731 _ACEOF
5732
5733 fi
5734
5735 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5746                   inttypes.h stdint.h unistd.h
5747 do
5748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5749 echo "$as_me:$LINENO: checking for $ac_header" >&5
5750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754   cat >conftest.$ac_ext <<_ACEOF
5755 #line $LINENO "configure"
5756 /* confdefs.h.  */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h.  */
5761 $ac_includes_default
5762
5763 #include <$ac_header>
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767   (eval $ac_compile) 2>&5
5768   ac_status=$?
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); } &&
5771          { ac_try='test -s conftest.$ac_objext'
5772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773   (eval $ac_try) 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); }; }; then
5777   eval "$as_ac_Header=yes"
5778 else
5779   echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5781
5782 eval "$as_ac_Header=no"
5783 fi
5784 rm -f conftest.$ac_objext conftest.$ac_ext
5785 fi
5786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5789   cat >>confdefs.h <<_ACEOF
5790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5791 _ACEOF
5792
5793 fi
5794
5795 done
5796
5797
5798
5799 for ac_header in dlfcn.h
5800 do
5801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5803   echo "$as_me:$LINENO: checking for $ac_header" >&5
5804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 fi
5808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5810 else
5811   # Is the header compilable?
5812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5814 cat >conftest.$ac_ext <<_ACEOF
5815 #line $LINENO "configure"
5816 /* confdefs.h.  */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h.  */
5821 $ac_includes_default
5822 #include <$ac_header>
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826   (eval $ac_compile) 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } &&
5830          { ac_try='test -s conftest.$ac_objext'
5831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832   (eval $ac_try) 2>&5
5833   ac_status=$?
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); }; }; then
5836   ac_header_compiler=yes
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841 ac_header_compiler=no
5842 fi
5843 rm -f conftest.$ac_objext conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5845 echo "${ECHO_T}$ac_header_compiler" >&6
5846
5847 # Is the header present?
5848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5850 cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5852 /* confdefs.h.  */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h.  */
5857 #include <$ac_header>
5858 _ACEOF
5859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } >/dev/null; then
5867   if test -s conftest.err; then
5868     ac_cpp_err=$ac_c_preproc_warn_flag
5869   else
5870     ac_cpp_err=
5871   fi
5872 else
5873   ac_cpp_err=yes
5874 fi
5875 if test -z "$ac_cpp_err"; then
5876   ac_header_preproc=yes
5877 else
5878   echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5880
5881   ac_header_preproc=no
5882 fi
5883 rm -f conftest.err conftest.$ac_ext
5884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5885 echo "${ECHO_T}$ac_header_preproc" >&6
5886
5887 # So?  What about this header?
5888 case $ac_header_compiler:$ac_header_preproc in
5889   yes:no )
5890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5894     (
5895       cat <<\_ASBOX
5896 ## ------------------------------------ ##
5897 ## Report this to bug-autoconf@gnu.org. ##
5898 ## ------------------------------------ ##
5899 _ASBOX
5900     ) |
5901       sed "s/^/$as_me: WARNING:     /" >&2
5902     ;;
5903   no:yes )
5904     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5906     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5910     (
5911       cat <<\_ASBOX
5912 ## ------------------------------------ ##
5913 ## Report this to bug-autoconf@gnu.org. ##
5914 ## ------------------------------------ ##
5915 _ASBOX
5916     ) |
5917       sed "s/^/$as_me: WARNING:     /" >&2
5918     ;;
5919 esac
5920 echo "$as_me:$LINENO: checking for $ac_header" >&5
5921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   eval "$as_ac_Header=$ac_header_preproc"
5926 fi
5927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5929
5930 fi
5931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5932   cat >>confdefs.h <<_ACEOF
5933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5934 _ACEOF
5935
5936 fi
5937
5938 done
5939
5940 ac_ext=cc
5941 ac_cpp='$CXXCPP $CPPFLAGS'
5942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5945 if test -n "$ac_tool_prefix"; then
5946   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5947   do
5948     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5950 echo "$as_me:$LINENO: checking for $ac_word" >&5
5951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5952 if test "${ac_cv_prog_CXX+set}" = set; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   if test -n "$CXX"; then
5956   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963   for ac_exec_ext in '' $ac_executable_extensions; do
5964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967     break 2
5968   fi
5969 done
5970 done
5971
5972 fi
5973 fi
5974 CXX=$ac_cv_prog_CXX
5975 if test -n "$CXX"; then
5976   echo "$as_me:$LINENO: result: $CXX" >&5
5977 echo "${ECHO_T}$CXX" >&6
5978 else
5979   echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6
5981 fi
5982
5983     test -n "$CXX" && break
5984   done
5985 fi
5986 if test -z "$CXX"; then
5987   ac_ct_CXX=$CXX
5988   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5989 do
5990   # Extract the first word of "$ac_prog", so it can be a program name with args.
5991 set dummy $ac_prog; ac_word=$2
5992 echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5994 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997   if test -n "$ac_ct_CXX"; then
5998   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5999 else
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6002 do
6003   IFS=$as_save_IFS
6004   test -z "$as_dir" && as_dir=.
6005   for ac_exec_ext in '' $ac_executable_extensions; do
6006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007     ac_cv_prog_ac_ct_CXX="$ac_prog"
6008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009     break 2
6010   fi
6011 done
6012 done
6013
6014 fi
6015 fi
6016 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6017 if test -n "$ac_ct_CXX"; then
6018   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6019 echo "${ECHO_T}$ac_ct_CXX" >&6
6020 else
6021   echo "$as_me:$LINENO: result: no" >&5
6022 echo "${ECHO_T}no" >&6
6023 fi
6024
6025   test -n "$ac_ct_CXX" && break
6026 done
6027 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6028
6029   CXX=$ac_ct_CXX
6030 fi
6031
6032
6033 # Provide some information about the compiler.
6034 echo "$as_me:$LINENO:" \
6035      "checking for C++ compiler version" >&5
6036 ac_compiler=`set X $ac_compile; echo $2`
6037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6038   (eval $ac_compiler --version </dev/null >&5) 2>&5
6039   ac_status=$?
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); }
6042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6043   (eval $ac_compiler -v </dev/null >&5) 2>&5
6044   ac_status=$?
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); }
6047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6048   (eval $ac_compiler -V </dev/null >&5) 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }
6052
6053 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6054 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6055 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   cat >conftest.$ac_ext <<_ACEOF
6059 #line $LINENO "configure"
6060 /* confdefs.h.  */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h.  */
6065
6066 int
6067 main ()
6068 {
6069 #ifndef __GNUC__
6070        choke me
6071 #endif
6072
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.$ac_objext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079   (eval $ac_compile) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); } &&
6083          { ac_try='test -s conftest.$ac_objext'
6084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085   (eval $ac_try) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; }; then
6089   ac_compiler_gnu=yes
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 ac_compiler_gnu=no
6095 fi
6096 rm -f conftest.$ac_objext conftest.$ac_ext
6097 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6098
6099 fi
6100 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6101 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6102 GXX=`test $ac_compiler_gnu = yes && echo yes`
6103 ac_test_CXXFLAGS=${CXXFLAGS+set}
6104 ac_save_CXXFLAGS=$CXXFLAGS
6105 CXXFLAGS="-g"
6106 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6107 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6108 if test "${ac_cv_prog_cxx_g+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   cat >conftest.$ac_ext <<_ACEOF
6112 #line $LINENO "configure"
6113 /* confdefs.h.  */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h.  */
6118
6119 int
6120 main ()
6121 {
6122
6123   ;
6124   return 0;
6125 }
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129   (eval $ac_compile) 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); } &&
6133          { ac_try='test -s conftest.$ac_objext'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   ac_cv_prog_cxx_g=yes
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_cv_prog_cxx_g=no
6145 fi
6146 rm -f conftest.$ac_objext conftest.$ac_ext
6147 fi
6148 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6149 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6150 if test "$ac_test_CXXFLAGS" = set; then
6151   CXXFLAGS=$ac_save_CXXFLAGS
6152 elif test $ac_cv_prog_cxx_g = yes; then
6153   if test "$GXX" = yes; then
6154     CXXFLAGS="-g -O2"
6155   else
6156     CXXFLAGS="-g"
6157   fi
6158 else
6159   if test "$GXX" = yes; then
6160     CXXFLAGS="-O2"
6161   else
6162     CXXFLAGS=
6163   fi
6164 fi
6165 for ac_declaration in \
6166    ''\
6167    '#include <stdlib.h>' \
6168    'extern "C" void std::exit (int) throw (); using std::exit;' \
6169    'extern "C" void std::exit (int); using std::exit;' \
6170    'extern "C" void exit (int) throw ();' \
6171    'extern "C" void exit (int);' \
6172    'void exit (int);'
6173 do
6174   cat >conftest.$ac_ext <<_ACEOF
6175 #line $LINENO "configure"
6176 /* confdefs.h.  */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h.  */
6181 #include <stdlib.h>
6182 $ac_declaration
6183 int
6184 main ()
6185 {
6186 exit (42);
6187   ;
6188   return 0;
6189 }
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193   (eval $ac_compile) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); } &&
6197          { ac_try='test -s conftest.$ac_objext'
6198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199   (eval $ac_try) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); }; }; then
6203   :
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208 continue
6209 fi
6210 rm -f conftest.$ac_objext conftest.$ac_ext
6211   cat >conftest.$ac_ext <<_ACEOF
6212 #line $LINENO "configure"
6213 /* confdefs.h.  */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h.  */
6218 $ac_declaration
6219 int
6220 main ()
6221 {
6222 exit (42);
6223   ;
6224   return 0;
6225 }
6226 _ACEOF
6227 rm -f conftest.$ac_objext
6228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6229   (eval $ac_compile) 2>&5
6230   ac_status=$?
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); } &&
6233          { ac_try='test -s conftest.$ac_objext'
6234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235   (eval $ac_try) 2>&5
6236   ac_status=$?
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); }; }; then
6239   break
6240 else
6241   echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6243
6244 fi
6245 rm -f conftest.$ac_objext conftest.$ac_ext
6246 done
6247 rm -f conftest*
6248 if test -n "$ac_declaration"; then
6249   echo '#ifdef __cplusplus' >>confdefs.h
6250   echo $ac_declaration      >>confdefs.h
6251   echo '#endif'             >>confdefs.h
6252 fi
6253
6254 ac_ext=cc
6255 ac_cpp='$CXXCPP $CPPFLAGS'
6256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6259
6260 ac_ext=cc
6261 ac_cpp='$CXXCPP $CPPFLAGS'
6262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6265 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6266 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6267 if test -z "$CXXCPP"; then
6268   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271       # Double quotes because CXXCPP needs to be expanded
6272     for CXXCPP in "$CXX -E" "/lib/cpp"
6273     do
6274       ac_preproc_ok=false
6275 for ac_cxx_preproc_warn_flag in '' yes
6276 do
6277   # Use a header file that comes with gcc, so configuring glibc
6278   # with a fresh cross-compiler works.
6279   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6280   # <limits.h> exists even on freestanding compilers.
6281   # On the NeXT, cc -E runs the code through the compiler's parser,
6282   # not just through cpp. "Syntax error" is here to catch this case.
6283   cat >conftest.$ac_ext <<_ACEOF
6284 #line $LINENO "configure"
6285 /* confdefs.h.  */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h.  */
6290 #ifdef __STDC__
6291 # include <limits.h>
6292 #else
6293 # include <assert.h>
6294 #endif
6295                      Syntax error
6296 _ACEOF
6297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6298   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6299   ac_status=$?
6300   grep -v '^ *+' conftest.er1 >conftest.err
6301   rm -f conftest.er1
6302   cat conftest.err >&5
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); } >/dev/null; then
6305   if test -s conftest.err; then
6306     ac_cpp_err=$ac_cxx_preproc_warn_flag
6307   else
6308     ac_cpp_err=
6309   fi
6310 else
6311   ac_cpp_err=yes
6312 fi
6313 if test -z "$ac_cpp_err"; then
6314   :
6315 else
6316   echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6318
6319   # Broken: fails on valid input.
6320 continue
6321 fi
6322 rm -f conftest.err conftest.$ac_ext
6323
6324   # OK, works on sane cases.  Now check whether non-existent headers
6325   # can be detected and how.
6326   cat >conftest.$ac_ext <<_ACEOF
6327 #line $LINENO "configure"
6328 /* confdefs.h.  */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h.  */
6333 #include <ac_nonexistent.h>
6334 _ACEOF
6335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6336   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6337   ac_status=$?
6338   grep -v '^ *+' conftest.er1 >conftest.err
6339   rm -f conftest.er1
6340   cat conftest.err >&5
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); } >/dev/null; then
6343   if test -s conftest.err; then
6344     ac_cpp_err=$ac_cxx_preproc_warn_flag
6345   else
6346     ac_cpp_err=
6347   fi
6348 else
6349   ac_cpp_err=yes
6350 fi
6351 if test -z "$ac_cpp_err"; then
6352   # Broken: success on invalid input.
6353 continue
6354 else
6355   echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358   # Passes both tests.
6359 ac_preproc_ok=:
6360 break
6361 fi
6362 rm -f conftest.err conftest.$ac_ext
6363
6364 done
6365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6366 rm -f conftest.err conftest.$ac_ext
6367 if $ac_preproc_ok; then
6368   break
6369 fi
6370
6371     done
6372     ac_cv_prog_CXXCPP=$CXXCPP
6373
6374 fi
6375   CXXCPP=$ac_cv_prog_CXXCPP
6376 else
6377   ac_cv_prog_CXXCPP=$CXXCPP
6378 fi
6379 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6380 echo "${ECHO_T}$CXXCPP" >&6
6381 ac_preproc_ok=false
6382 for ac_cxx_preproc_warn_flag in '' yes
6383 do
6384   # Use a header file that comes with gcc, so configuring glibc
6385   # with a fresh cross-compiler works.
6386   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6387   # <limits.h> exists even on freestanding compilers.
6388   # On the NeXT, cc -E runs the code through the compiler's parser,
6389   # not just through cpp. "Syntax error" is here to catch this case.
6390   cat >conftest.$ac_ext <<_ACEOF
6391 #line $LINENO "configure"
6392 /* confdefs.h.  */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h.  */
6397 #ifdef __STDC__
6398 # include <limits.h>
6399 #else
6400 # include <assert.h>
6401 #endif
6402                      Syntax error
6403 _ACEOF
6404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6406   ac_status=$?
6407   grep -v '^ *+' conftest.er1 >conftest.err
6408   rm -f conftest.er1
6409   cat conftest.err >&5
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); } >/dev/null; then
6412   if test -s conftest.err; then
6413     ac_cpp_err=$ac_cxx_preproc_warn_flag
6414   else
6415     ac_cpp_err=
6416   fi
6417 else
6418   ac_cpp_err=yes
6419 fi
6420 if test -z "$ac_cpp_err"; then
6421   :
6422 else
6423   echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426   # Broken: fails on valid input.
6427 continue
6428 fi
6429 rm -f conftest.err conftest.$ac_ext
6430
6431   # OK, works on sane cases.  Now check whether non-existent headers
6432   # can be detected and how.
6433   cat >conftest.$ac_ext <<_ACEOF
6434 #line $LINENO "configure"
6435 /* confdefs.h.  */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h.  */
6440 #include <ac_nonexistent.h>
6441 _ACEOF
6442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6443   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6444   ac_status=$?
6445   grep -v '^ *+' conftest.er1 >conftest.err
6446   rm -f conftest.er1
6447   cat conftest.err >&5
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); } >/dev/null; then
6450   if test -s conftest.err; then
6451     ac_cpp_err=$ac_cxx_preproc_warn_flag
6452   else
6453     ac_cpp_err=
6454   fi
6455 else
6456   ac_cpp_err=yes
6457 fi
6458 if test -z "$ac_cpp_err"; then
6459   # Broken: success on invalid input.
6460 continue
6461 else
6462   echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6464
6465   # Passes both tests.
6466 ac_preproc_ok=:
6467 break
6468 fi
6469 rm -f conftest.err conftest.$ac_ext
6470
6471 done
6472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6473 rm -f conftest.err conftest.$ac_ext
6474 if $ac_preproc_ok; then
6475   :
6476 else
6477   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6478 See \`config.log' for more details." >&5
6479 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6480 See \`config.log' for more details." >&2;}
6481    { (exit 1); exit 1; }; }
6482 fi
6483
6484 ac_ext=cc
6485 ac_cpp='$CXXCPP $CPPFLAGS'
6486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6489
6490
6491 ac_ext=f
6492 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6493 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6494 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6495 if test -n "$ac_tool_prefix"; then
6496   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
6497   do
6498     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6500 echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6502 if test "${ac_cv_prog_F77+set}" = set; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505   if test -n "$F77"; then
6506   ac_cv_prog_F77="$F77" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511   IFS=$as_save_IFS
6512   test -z "$as_dir" && as_dir=.
6513   for ac_exec_ext in '' $ac_executable_extensions; do
6514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517     break 2
6518   fi
6519 done
6520 done
6521
6522 fi
6523 fi
6524 F77=$ac_cv_prog_F77
6525 if test -n "$F77"; then
6526   echo "$as_me:$LINENO: result: $F77" >&5
6527 echo "${ECHO_T}$F77" >&6
6528 else
6529   echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6
6531 fi
6532
6533     test -n "$F77" && break
6534   done
6535 fi
6536 if test -z "$F77"; then
6537   ac_ct_F77=$F77
6538   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
6539 do
6540   # Extract the first word of "$ac_prog", so it can be a program name with args.
6541 set dummy $ac_prog; ac_word=$2
6542 echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6544 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   if test -n "$ac_ct_F77"; then
6548   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557     ac_cv_prog_ac_ct_F77="$ac_prog"
6558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562 done
6563
6564 fi
6565 fi
6566 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6567 if test -n "$ac_ct_F77"; then
6568   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6569 echo "${ECHO_T}$ac_ct_F77" >&6
6570 else
6571   echo "$as_me:$LINENO: result: no" >&5
6572 echo "${ECHO_T}no" >&6
6573 fi
6574
6575   test -n "$ac_ct_F77" && break
6576 done
6577
6578   F77=$ac_ct_F77
6579 fi
6580
6581
6582 # Provide some information about the compiler.
6583 echo "$as_me:6583:" \
6584      "checking for Fortran 77 compiler version" >&5
6585 ac_compiler=`set X $ac_compile; echo $2`
6586 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6587   (eval $ac_compiler --version </dev/null >&5) 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); }
6591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6592   (eval $ac_compiler -v </dev/null >&5) 2>&5
6593   ac_status=$?
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); }
6596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6597   (eval $ac_compiler -V </dev/null >&5) 2>&5
6598   ac_status=$?
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); }
6601
6602 # If we don't use `.F' as extension, the preprocessor is not run on the
6603 # input file.
6604 ac_save_ext=$ac_ext
6605 ac_ext=F
6606 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6607 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6608 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   cat >conftest.$ac_ext <<_ACEOF
6612       program main
6613 #ifndef __GNUC__
6614        choke me
6615 #endif
6616
6617       end
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621   (eval $ac_compile) 2>&5
6622   ac_status=$?
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } &&
6625          { ac_try='test -s conftest.$ac_objext'
6626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627   (eval $ac_try) 2>&5
6628   ac_status=$?
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); }; }; then
6631   ac_compiler_gnu=yes
6632 else
6633   echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 ac_compiler_gnu=no
6637 fi
6638 rm -f conftest.$ac_objext conftest.$ac_ext
6639 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6640
6641 fi
6642 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6643 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6644 ac_ext=$ac_save_ext
6645 G77=`test $ac_compiler_gnu = yes && echo yes`
6646 ac_test_FFLAGS=${FFLAGS+set}
6647 ac_save_FFLAGS=$FFLAGS
6648 FFLAGS=
6649 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6650 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6651 if test "${ac_cv_prog_f77_g+set}" = set; then
6652   echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654   FFLAGS=-g
6655 cat >conftest.$ac_ext <<_ACEOF
6656       program main
6657
6658       end
6659 _ACEOF
6660 rm -f conftest.$ac_objext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662   (eval $ac_compile) 2>&5
6663   ac_status=$?
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); } &&
6666          { ac_try='test -s conftest.$ac_objext'
6667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668   (eval $ac_try) 2>&5
6669   ac_status=$?
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); }; }; then
6672   ac_cv_prog_f77_g=yes
6673 else
6674   echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6676
6677 ac_cv_prog_f77_g=no
6678 fi
6679 rm -f conftest.$ac_objext conftest.$ac_ext
6680
6681 fi
6682 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6683 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6684 if test "$ac_test_FFLAGS" = set; then
6685   FFLAGS=$ac_save_FFLAGS
6686 elif test $ac_cv_prog_f77_g = yes; then
6687   if test "$G77" = yes; then
6688     FFLAGS="-g -O2"
6689   else
6690     FFLAGS="-g"
6691   fi
6692 else
6693   if test "$G77" = yes; then
6694     FFLAGS="-O2"
6695   else
6696     FFLAGS=
6697   fi
6698 fi
6699 ac_ext=c
6700 ac_cpp='$CPP $CPPFLAGS'
6701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6704
6705
6706
6707 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6708
6709 # find the maximum length of command line arguments
6710 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6711 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6712 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715     i=0
6716   testring="ABCD"
6717
6718   case $build_os in
6719   msdosdjgpp*)
6720     # On DJGPP, this test can blow up pretty badly due to problems in libc
6721     # (any single argument exceeding 2000 bytes causes a buffer overrun
6722     # during glob expansion).  Even if it were fixed, the result of this
6723     # check would be larger than it should be.
6724     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6725     ;;
6726
6727   gnu*)
6728     # Under GNU Hurd, this test is not required because there is
6729     # no limit to the length of command line arguments.
6730     # Libtool will interpret -1 as no limit whatsoever
6731     lt_cv_sys_max_cmd_len=-1;
6732     ;;
6733
6734   cygwin* | mingw*)
6735     # On Win9x/ME, this test blows up -- it succeeds, but takes
6736     # about 5 minutes as the teststring grows exponentially.
6737     # Worse, since 9x/ME are not pre-emptively multitasking,
6738     # you end up with a "frozen" computer, even though with patience
6739     # the test eventually succeeds (with a max line length of 256k).
6740     # Instead, let's just punt: use the minimum linelength reported by
6741     # all of the supported platforms: 8192 (on NT/2K/XP).
6742     lt_cv_sys_max_cmd_len=8192;
6743     ;;
6744
6745  *)
6746     # If test is not a shell built-in, we'll probably end up computing a
6747     # maximum length that is only half of the actual maximum length, but
6748     # we can't tell.
6749     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
6750                = "XX$testring") >/dev/null 2>&1 &&
6751             new_result=`expr "X$testring" : ".*" 2>&1` &&
6752             lt_cv_sys_max_cmd_len=$new_result &&
6753             test $i != 17 # 1/2 MB should be enough
6754     do
6755       i=`expr $i + 1`
6756       testring=$testring$testring
6757     done
6758     testring=
6759     # Add a significant safety factor because C++ compilers can tack on massive
6760     # amounts of additional arguments before passing them to the linker.
6761     # It appears as though 1/2 is a usable value.
6762     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6763     ;;
6764   esac
6765
6766 fi
6767
6768 if test -n $lt_cv_sys_max_cmd_len ; then
6769   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6770 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6771 else
6772   echo "$as_me:$LINENO: result: none" >&5
6773 echo "${ECHO_T}none" >&6
6774 fi
6775
6776
6777
6778
6779 # Check for command to grab the raw symbol name followed by C symbol from nm.
6780 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6781 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6782 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6783   echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785
6786 # These are sane defaults that work on at least a few old systems.
6787 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6788
6789 # Character class describing NM global symbol codes.
6790 symcode='[BCDEGRST]'
6791
6792 # Regexp to match symbols that can be accessed directly from C.
6793 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6794
6795 # Transform the above into a raw symbol and a C symbol.
6796 symxfrm='\1 \2\3 \3'
6797
6798 # Transform an extracted symbol line into a proper C declaration
6799 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6800
6801 # Transform an extracted symbol line into symbol name and symbol address
6802 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6803
6804 # Define system-specific variables.
6805 case $host_os in
6806 aix*)
6807   symcode='[BCDT]'
6808   ;;
6809 cygwin* | mingw* | pw32*)
6810   symcode='[ABCDGISTW]'
6811   ;;
6812 hpux*) # Its linker distinguishes data from code symbols
6813   if test "$host_cpu" = ia64; then
6814     symcode='[ABCDEGRST]'
6815   fi
6816   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6817   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6818   ;;
6819 irix* | nonstopux*)
6820   symcode='[BCDEGRST]'
6821   ;;
6822 osf*)
6823   symcode='[BCDEGQRST]'
6824   ;;
6825 solaris* | sysv5*)
6826   symcode='[BDT]'
6827   ;;
6828 sysv4)
6829   symcode='[DFNSTU]'
6830   ;;
6831 esac
6832
6833 # Handle CRLF in mingw tool chain
6834 opt_cr=
6835 case $build_os in
6836 mingw*)
6837   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6838   ;;
6839 esac
6840
6841 # If we're using GNU nm, then use its standard symbol codes.
6842 case `$NM -V 2>&1` in
6843 *GNU* | *'with BFD'*)
6844   symcode='[ABCDGISTW]' ;;
6845 esac
6846
6847 # Try without a prefix undercore, then with it.
6848 for ac_symprfx in "" "_"; do
6849
6850   # Write the raw and C identifiers.
6851   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6852
6853   # Check to see that the pipe works correctly.
6854   pipe_works=no
6855
6856   rm -f conftest*
6857   cat > conftest.$ac_ext <<EOF
6858 #ifdef __cplusplus
6859 extern "C" {
6860 #endif
6861 char nm_test_var;
6862 void nm_test_func(){}
6863 #ifdef __cplusplus
6864 }
6865 #endif
6866 int main(){nm_test_var='a';nm_test_func();return(0);}
6867 EOF
6868
6869   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6870   (eval $ac_compile) 2>&5
6871   ac_status=$?
6872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); }; then
6874     # Now try to grab the symbols.
6875     nlist=conftest.nm
6876     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6877   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6878   ac_status=$?
6879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); } && test -s "$nlist"; then
6881       # Try sorting and uniquifying the output.
6882       if sort "$nlist" | uniq > "$nlist"T; then
6883         mv -f "$nlist"T "$nlist"
6884       else
6885         rm -f "$nlist"T
6886       fi
6887
6888       # Make sure that we snagged all the symbols we need.
6889       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6890         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6891           cat <<EOF > conftest.$ac_ext
6892 #ifdef __cplusplus
6893 extern "C" {
6894 #endif
6895
6896 EOF
6897           # Now generate the symbol file.
6898           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6899
6900           cat <<EOF >> conftest.$ac_ext
6901 #if defined (__STDC__) && __STDC__
6902 # define lt_ptr_t void *
6903 #else
6904 # define lt_ptr_t char *
6905 # define const
6906 #endif
6907
6908 /* The mapping between symbol names and symbols. */
6909 const struct {
6910   const char *name;
6911   lt_ptr_t address;
6912 }
6913 lt_preloaded_symbols[] =
6914 {
6915 EOF
6916           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6917           cat <<\EOF >> conftest.$ac_ext
6918   {0, (lt_ptr_t) 0}
6919 };
6920
6921 #ifdef __cplusplus
6922 }
6923 #endif
6924 EOF
6925           # Now try linking the two files.
6926           mv conftest.$ac_objext conftstm.$ac_objext
6927           lt_save_LIBS="$LIBS"
6928           lt_save_CFLAGS="$CFLAGS"
6929           LIBS="conftstm.$ac_objext"
6930           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6931           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932   (eval $ac_link) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6936             pipe_works=yes
6937           fi
6938           LIBS="$lt_save_LIBS"
6939           CFLAGS="$lt_save_CFLAGS"
6940         else
6941           echo "cannot find nm_test_func in $nlist" >&5
6942         fi
6943       else
6944         echo "cannot find nm_test_var in $nlist" >&5
6945       fi
6946     else
6947       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6948     fi
6949   else
6950     echo "$progname: failed program was:" >&5
6951     cat conftest.$ac_ext >&5
6952   fi
6953   rm -f conftest* conftst*
6954
6955   # Do not use the global_symbol_pipe unless it works.
6956   if test "$pipe_works" = yes; then
6957     break
6958   else
6959     lt_cv_sys_global_symbol_pipe=
6960   fi
6961 done
6962
6963 fi
6964
6965 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6966   lt_cv_sys_global_symbol_to_cdecl=
6967 fi
6968 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6969   echo "$as_me:$LINENO: result: failed" >&5
6970 echo "${ECHO_T}failed" >&6
6971 else
6972   echo "$as_me:$LINENO: result: ok" >&5
6973 echo "${ECHO_T}ok" >&6
6974 fi
6975
6976 echo "$as_me:$LINENO: checking for objdir" >&5
6977 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6978 if test "${lt_cv_objdir+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981   rm -f .libs 2>/dev/null
6982 mkdir .libs 2>/dev/null
6983 if test -d .libs; then
6984   lt_cv_objdir=.libs
6985 else
6986   # MS-DOS does not allow filenames that begin with a dot.
6987   lt_cv_objdir=_libs
6988 fi
6989 rmdir .libs 2>/dev/null
6990 fi
6991 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6992 echo "${ECHO_T}$lt_cv_objdir" >&6
6993 objdir=$lt_cv_objdir
6994
6995
6996
6997
6998
6999 case $host_os in
7000 aix3*)
7001   # AIX sometimes has problems with the GCC collect2 program.  For some
7002   # reason, if we set the COLLECT_NAMES environment variable, the problems
7003   # vanish in a puff of smoke.
7004   if test "X${COLLECT_NAMES+set}" != Xset; then
7005     COLLECT_NAMES=
7006     export COLLECT_NAMES
7007   fi
7008   ;;
7009 esac
7010
7011 # Sed substitution that helps us do robust quoting.  It backslashifies
7012 # metacharacters that are still active within double-quoted strings.
7013 Xsed='sed -e s/^X//'
7014 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7015
7016 # Same as above, but do not quote variable references.
7017 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7018
7019 # Sed substitution to delay expansion of an escaped shell variable in a
7020 # double_quote_subst'ed string.
7021 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7022
7023 # Sed substitution to avoid accidental globbing in evaled expressions
7024 no_glob_subst='s/\*/\\\*/g'
7025
7026 # Constants:
7027 rm="rm -f"
7028
7029 # Global variables:
7030 default_ofile=libtool
7031 can_build_shared=yes
7032
7033 # All known linkers require a `.a' archive for static linking (except M$VC,
7034 # which needs '.lib').
7035 libext=a
7036 ltmain="$ac_aux_dir/ltmain.sh"
7037 ofile="$default_ofile"
7038 with_gnu_ld="$lt_cv_prog_gnu_ld"
7039
7040 if test -n "$ac_tool_prefix"; then
7041   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7042 set dummy ${ac_tool_prefix}ar; ac_word=$2
7043 echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7045 if test "${ac_cv_prog_AR+set}" = set; then
7046   echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048   if test -n "$AR"; then
7049   ac_cv_prog_AR="$AR" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054   IFS=$as_save_IFS
7055   test -z "$as_dir" && as_dir=.
7056   for ac_exec_ext in '' $ac_executable_extensions; do
7057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058     ac_cv_prog_AR="${ac_tool_prefix}ar"
7059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060     break 2
7061   fi
7062 done
7063 done
7064
7065 fi
7066 fi
7067 AR=$ac_cv_prog_AR
7068 if test -n "$AR"; then
7069   echo "$as_me:$LINENO: result: $AR" >&5
7070 echo "${ECHO_T}$AR" >&6
7071 else
7072   echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6
7074 fi
7075
7076 fi
7077 if test -z "$ac_cv_prog_AR"; then
7078   ac_ct_AR=$AR
7079   # Extract the first word of "ar", so it can be a program name with args.
7080 set dummy ar; ac_word=$2
7081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7083 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   if test -n "$ac_ct_AR"; then
7087   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094   for ac_exec_ext in '' $ac_executable_extensions; do
7095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096     ac_cv_prog_ac_ct_AR="ar"
7097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101 done
7102
7103   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7104 fi
7105 fi
7106 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7107 if test -n "$ac_ct_AR"; then
7108   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7109 echo "${ECHO_T}$ac_ct_AR" >&6
7110 else
7111   echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6
7113 fi
7114
7115   AR=$ac_ct_AR
7116 else
7117   AR="$ac_cv_prog_AR"
7118 fi
7119
7120 if test -n "$ac_tool_prefix"; then
7121   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7123 echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7125 if test "${ac_cv_prog_RANLIB+set}" = set; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128   if test -n "$RANLIB"; then
7129   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134   IFS=$as_save_IFS
7135   test -z "$as_dir" && as_dir=.
7136   for ac_exec_ext in '' $ac_executable_extensions; do
7137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140     break 2
7141   fi
7142 done
7143 done
7144
7145 fi
7146 fi
7147 RANLIB=$ac_cv_prog_RANLIB
7148 if test -n "$RANLIB"; then
7149   echo "$as_me:$LINENO: result: $RANLIB" >&5
7150 echo "${ECHO_T}$RANLIB" >&6
7151 else
7152   echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6
7154 fi
7155
7156 fi
7157 if test -z "$ac_cv_prog_RANLIB"; then
7158   ac_ct_RANLIB=$RANLIB
7159   # Extract the first word of "ranlib", so it can be a program name with args.
7160 set dummy ranlib; ac_word=$2
7161 echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7163 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   if test -n "$ac_ct_RANLIB"; then
7167   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174   for ac_exec_ext in '' $ac_executable_extensions; do
7175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176     ac_cv_prog_ac_ct_RANLIB="ranlib"
7177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181 done
7182
7183   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7184 fi
7185 fi
7186 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7187 if test -n "$ac_ct_RANLIB"; then
7188   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7189 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7190 else
7191   echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7193 fi
7194
7195   RANLIB=$ac_ct_RANLIB
7196 else
7197   RANLIB="$ac_cv_prog_RANLIB"
7198 fi
7199
7200 if test -n "$ac_tool_prefix"; then
7201   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7202 set dummy ${ac_tool_prefix}strip; ac_word=$2
7203 echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7205 if test "${ac_cv_prog_STRIP+set}" = set; then
7206   echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208   if test -n "$STRIP"; then
7209   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214   IFS=$as_save_IFS
7215   test -z "$as_dir" && as_dir=.
7216   for ac_exec_ext in '' $ac_executable_extensions; do
7217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220     break 2
7221   fi
7222 done
7223 done
7224
7225 fi
7226 fi
7227 STRIP=$ac_cv_prog_STRIP
7228 if test -n "$STRIP"; then
7229   echo "$as_me:$LINENO: result: $STRIP" >&5
7230 echo "${ECHO_T}$STRIP" >&6
7231 else
7232   echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6
7234 fi
7235
7236 fi
7237 if test -z "$ac_cv_prog_STRIP"; then
7238   ac_ct_STRIP=$STRIP
7239   # Extract the first word of "strip", so it can be a program name with args.
7240 set dummy strip; ac_word=$2
7241 echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7243 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7244   echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246   if test -n "$ac_ct_STRIP"; then
7247   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254   for ac_exec_ext in '' $ac_executable_extensions; do
7255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256     ac_cv_prog_ac_ct_STRIP="strip"
7257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261 done
7262
7263   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7264 fi
7265 fi
7266 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7267 if test -n "$ac_ct_STRIP"; then
7268   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7269 echo "${ECHO_T}$ac_ct_STRIP" >&6
7270 else
7271   echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6
7273 fi
7274
7275   STRIP=$ac_ct_STRIP
7276 else
7277   STRIP="$ac_cv_prog_STRIP"
7278 fi
7279
7280
7281 old_CC="$CC"
7282 old_CFLAGS="$CFLAGS"
7283
7284 # Set sane defaults for various variables
7285 test -z "$AR" && AR=ar
7286 test -z "$AR_FLAGS" && AR_FLAGS=cru
7287 test -z "$AS" && AS=as
7288 test -z "$CC" && CC=cc
7289 test -z "$LTCC" && LTCC=$CC
7290 test -z "$DLLTOOL" && DLLTOOL=dlltool
7291 test -z "$LD" && LD=ld
7292 test -z "$LN_S" && LN_S="ln -s"
7293 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7294 test -z "$NM" && NM=nm
7295 test -z "$SED" && SED=sed
7296 test -z "$OBJDUMP" && OBJDUMP=objdump
7297 test -z "$RANLIB" && RANLIB=:
7298 test -z "$STRIP" && STRIP=:
7299 test -z "$ac_objext" && ac_objext=o
7300
7301 # Determine commands to create old-style static archives.
7302 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7303 old_postinstall_cmds='chmod 644 $oldlib'
7304 old_postuninstall_cmds=
7305
7306 if test -n "$RANLIB"; then
7307   case $host_os in
7308   openbsd*)
7309     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7310     ;;
7311   *)
7312     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7313     ;;
7314   esac
7315   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7316 fi
7317
7318 # Only perform the check for file, if the check method requires it
7319 case $deplibs_check_method in
7320 file_magic*)
7321   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7322     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7323 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7324 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7325   echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327   case $MAGIC_CMD in
7328 [\\/*] |  ?:[\\/]*)
7329   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7330   ;;
7331 *)
7332   lt_save_MAGIC_CMD="$MAGIC_CMD"
7333   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7334   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7335   for ac_dir in $ac_dummy; do
7336     IFS="$lt_save_ifs"
7337     test -z "$ac_dir" && ac_dir=.
7338     if test -f $ac_dir/${ac_tool_prefix}file; then
7339       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7340       if test -n "$file_magic_test_file"; then
7341         case $deplibs_check_method in
7342         "file_magic "*)
7343           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7344           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7345           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7346             $EGREP "$file_magic_regex" > /dev/null; then
7347             :
7348           else
7349             cat <<EOF 1>&2
7350
7351 *** Warning: the command libtool uses to detect shared libraries,
7352 *** $file_magic_cmd, produces output that libtool cannot recognize.
7353 *** The result is that libtool may fail to recognize shared libraries
7354 *** as such.  This will affect the creation of libtool libraries that
7355 *** depend on shared libraries, but programs linked with such libtool
7356 *** libraries will work regardless of this problem.  Nevertheless, you
7357 *** may want to report the problem to your system manager and/or to
7358 *** bug-libtool@gnu.org
7359
7360 EOF
7361           fi ;;
7362         esac
7363       fi
7364       break
7365     fi
7366   done
7367   IFS="$lt_save_ifs"
7368   MAGIC_CMD="$lt_save_MAGIC_CMD"
7369   ;;
7370 esac
7371 fi
7372
7373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7374 if test -n "$MAGIC_CMD"; then
7375   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7376 echo "${ECHO_T}$MAGIC_CMD" >&6
7377 else
7378   echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6
7380 fi
7381
7382 if test -z "$lt_cv_path_MAGIC_CMD"; then
7383   if test -n "$ac_tool_prefix"; then
7384     echo "$as_me:$LINENO: checking for file" >&5
7385 echo $ECHO_N "checking for file... $ECHO_C" >&6
7386 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7387   echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389   case $MAGIC_CMD in
7390 [\\/*] |  ?:[\\/]*)
7391   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7392   ;;
7393 *)
7394   lt_save_MAGIC_CMD="$MAGIC_CMD"
7395   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7396   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7397   for ac_dir in $ac_dummy; do
7398     IFS="$lt_save_ifs"
7399     test -z "$ac_dir" && ac_dir=.
7400     if test -f $ac_dir/file; then
7401       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7402       if test -n "$file_magic_test_file"; then
7403         case $deplibs_check_method in
7404         "file_magic "*)
7405           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7406           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7407           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7408             $EGREP "$file_magic_regex" > /dev/null; then
7409             :
7410           else
7411             cat <<EOF 1>&2
7412
7413 *** Warning: the command libtool uses to detect shared libraries,
7414 *** $file_magic_cmd, produces output that libtool cannot recognize.
7415 *** The result is that libtool may fail to recognize shared libraries
7416 *** as such.  This will affect the creation of libtool libraries that
7417 *** depend on shared libraries, but programs linked with such libtool
7418 *** libraries will work regardless of this problem.  Nevertheless, you
7419 *** may want to report the problem to your system manager and/or to
7420 *** bug-libtool@gnu.org
7421
7422 EOF
7423           fi ;;
7424         esac
7425       fi
7426       break
7427     fi
7428   done
7429   IFS="$lt_save_ifs"
7430   MAGIC_CMD="$lt_save_MAGIC_CMD"
7431   ;;
7432 esac
7433 fi
7434
7435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7436 if test -n "$MAGIC_CMD"; then
7437   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7438 echo "${ECHO_T}$MAGIC_CMD" >&6
7439 else
7440   echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6
7442 fi
7443
7444   else
7445     MAGIC_CMD=:
7446   fi
7447 fi
7448
7449   fi
7450   ;;
7451 esac
7452
7453 enable_dlopen=no
7454 enable_win32_dll=no
7455
7456 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7457 if test "${enable_libtool_lock+set}" = set; then
7458   enableval="$enable_libtool_lock"
7459
7460 fi;
7461 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7462
7463
7464 # Check whether --with-pic or --without-pic was given.
7465 if test "${with_pic+set}" = set; then
7466   withval="$with_pic"
7467   pic_mode="$withval"
7468 else
7469   pic_mode=default
7470 fi;
7471 test -z "$pic_mode" && pic_mode=default
7472
7473 # Use C for the default configuration in the libtool script
7474 tagname=
7475 lt_save_CC="$CC"
7476 ac_ext=c
7477 ac_cpp='$CPP $CPPFLAGS'
7478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7481
7482
7483 # Source file extension for C test sources.
7484 ac_ext=c
7485
7486 # Object file extension for compiled C test sources.
7487 objext=o
7488 objext=$objext
7489
7490 # Code to be used in simple compile tests
7491 lt_simple_compile_test_code="int some_variable = 0;\n"
7492
7493 # Code to be used in simple link tests
7494 lt_simple_link_test_code='int main(){return(0);}\n'
7495
7496
7497 # If no C compiler was specified, use CC.
7498 LTCC=${LTCC-"$CC"}
7499
7500 # Allow CC to be a program name with arguments.
7501 compiler=$CC
7502
7503
7504 #
7505 # Check for any special shared library compilation flags.
7506 #
7507 lt_prog_cc_shlib=
7508 if test "$GCC" = no; then
7509   case $host_os in
7510   sco3.2v5*)
7511     lt_prog_cc_shlib='-belf'
7512     ;;
7513   esac
7514 fi
7515 if test -n "$lt_prog_cc_shlib"; then
7516   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7517 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7518   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7519   else
7520     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7521 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7522     lt_cv_prog_cc_can_build_shared=no
7523   fi
7524 fi
7525
7526
7527 #
7528 # Check to make sure the static flag actually works.
7529 #
7530 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7531 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7532 if test "${lt_prog_compiler_static_works+set}" = set; then
7533   echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535   lt_prog_compiler_static_works=no
7536    save_LDFLAGS="$LDFLAGS"
7537    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7538    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7539    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7540      # The compiler can only warn and ignore the option if not recognized
7541      # So say no if there are warnings
7542      if test -s conftest.err; then
7543        # Append any errors to the config.log.
7544        cat conftest.err 1>&5
7545      else
7546        lt_prog_compiler_static_works=yes
7547      fi
7548    fi
7549    $rm conftest*
7550    LDFLAGS="$save_LDFLAGS"
7551
7552 fi
7553 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7554 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7555
7556 if test x"$lt_prog_compiler_static_works" = xyes; then
7557     :
7558 else
7559     lt_prog_compiler_static=
7560 fi
7561
7562
7563
7564 ## CAVEAT EMPTOR:
7565 ## There is no encapsulation within the following macros, do not change
7566 ## the running order or otherwise move them around unless you know exactly
7567 ## what you are doing...
7568
7569 lt_prog_compiler_no_builtin_flag=
7570
7571 if test "$GCC" = yes; then
7572   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7573
7574   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7575 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7576 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   lt_cv_prog_compiler_rtti_exceptions=no
7580   ac_outfile=conftest.$ac_objext
7581    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7582    lt_compiler_flag="-fno-rtti -fno-exceptions"
7583    # Insert the option either (1) after the last *FLAGS variable, or
7584    # (2) before a word containing "conftest.", or (3) at the end.
7585    # Note that $ac_compile itself does not contain backslashes and begins
7586    # with a dollar sign (not a hyphen), so the echo should work correctly.
7587    # The option is referenced via a variable to avoid confusing sed.
7588    lt_compile=`echo "$ac_compile" | $SED \
7589    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7590    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7591    -e 's:$: $lt_compiler_flag:'`
7592    (eval echo "\"\$as_me:7592: $lt_compile\"" >&5)
7593    (eval "$lt_compile" 2>conftest.err)
7594    ac_status=$?
7595    cat conftest.err >&5
7596    echo "$as_me:7596: \$? = $ac_status" >&5
7597    if (exit $ac_status) && test -s "$ac_outfile"; then
7598      # The compiler can only warn and ignore the option if not recognized
7599      # So say no if there are warnings
7600      if test ! -s conftest.err; then
7601        lt_cv_prog_compiler_rtti_exceptions=yes
7602      fi
7603    fi
7604    $rm conftest*
7605
7606 fi
7607 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7608 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7609
7610 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7611     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7612 else
7613     :
7614 fi
7615
7616 fi
7617
7618 lt_prog_compiler_wl=
7619 lt_prog_compiler_pic=
7620 lt_prog_compiler_static=
7621
7622 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7623 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7624
7625   if test "$GCC" = yes; then
7626     lt_prog_compiler_wl='-Wl,'
7627     lt_prog_compiler_static='-static'
7628
7629     case $host_os in
7630       aix*)
7631       # All AIX code is PIC.
7632       if test "$host_cpu" = ia64; then
7633         # AIX 5 now supports IA64 processor
7634         lt_prog_compiler_static='-Bstatic'
7635       fi
7636       ;;
7637
7638     amigaos*)
7639       # FIXME: we need at least 68020 code to build shared libraries, but
7640       # adding the `-m68020' flag to GCC prevents building anything better,
7641       # like `-m68040'.
7642       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7643       ;;
7644
7645     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7646       # PIC is the default for these OSes.
7647       ;;
7648
7649     mingw* | pw32* | os2*)
7650       # This hack is so that the source file can tell whether it is being
7651       # built for inclusion in a dll (and should export symbols for example).
7652       lt_prog_compiler_pic='-DDLL_EXPORT'
7653       ;;
7654
7655     darwin* | rhapsody*)
7656       # PIC is the default on this platform
7657       # Common symbols not allowed in MH_DYLIB files
7658       lt_prog_compiler_pic='-fno-common'
7659       ;;
7660
7661     msdosdjgpp*)
7662       # Just because we use GCC doesn't mean we suddenly get shared libraries
7663       # on systems that don't support them.
7664       lt_prog_compiler_can_build_shared=no
7665       enable_shared=no
7666       ;;
7667
7668     sysv4*MP*)
7669       if test -d /usr/nec; then
7670         lt_prog_compiler_pic=-Kconform_pic
7671       fi
7672       ;;
7673
7674     hpux*)
7675       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7676       # not for PA HP-UX.
7677       case "$host_cpu" in
7678       hppa*64*|ia64*)
7679         # +Z the default
7680         ;;
7681       *)
7682         lt_prog_compiler_pic='-fPIC'
7683         ;;
7684       esac
7685       ;;
7686
7687     *)
7688       lt_prog_compiler_pic='-fPIC'
7689       ;;
7690     esac
7691   else
7692     # PORTME Check for flag to pass linker flags through the system compiler.
7693     case $host_os in
7694     aix*)
7695       lt_prog_compiler_wl='-Wl,'
7696       if test "$host_cpu" = ia64; then
7697         # AIX 5 now supports IA64 processor
7698         lt_prog_compiler_static='-Bstatic'
7699       else
7700         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7701       fi
7702       ;;
7703
7704     mingw* | pw32* | os2*)
7705       # This hack is so that the source file can tell whether it is being
7706       # built for inclusion in a dll (and should export symbols for example).
7707       lt_prog_compiler_pic='-DDLL_EXPORT'
7708       ;;
7709
7710     hpux9* | hpux10* | hpux11*)
7711       lt_prog_compiler_wl='-Wl,'
7712       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7713       # not for PA HP-UX.
7714       case "$host_cpu" in
7715       hppa*64*|ia64*)
7716         # +Z the default
7717         ;;
7718       *)
7719         lt_prog_compiler_pic='+Z'
7720         ;;
7721       esac
7722       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7723       lt_prog_compiler_static='${wl}-a ${wl}archive'
7724       ;;
7725
7726     irix5* | irix6* | nonstopux*)
7727       lt_prog_compiler_wl='-Wl,'
7728       # PIC (with -KPIC) is the default.
7729       lt_prog_compiler_static='-non_shared'
7730       ;;
7731
7732     newsos6)
7733       lt_prog_compiler_pic='-KPIC'
7734       lt_prog_compiler_static='-Bstatic'
7735       ;;
7736
7737     linux*)
7738       case $CC in
7739       icc|ecc)
7740         lt_prog_compiler_wl='-Wl,'
7741         lt_prog_compiler_pic='-KPIC'
7742         lt_prog_compiler_static='-static'
7743         ;;
7744       ccc)
7745         lt_prog_compiler_wl='-Wl,'
7746         # All Alpha code is PIC.
7747         lt_prog_compiler_static='-non_shared'
7748         ;;
7749       esac
7750       ;;
7751
7752     osf3* | osf4* | osf5*)
7753       lt_prog_compiler_wl='-Wl,'
7754       # All OSF/1 code is PIC.
7755       lt_prog_compiler_static='-non_shared'
7756       ;;
7757
7758     sco3.2v5*)
7759       lt_prog_compiler_pic='-Kpic'
7760       lt_prog_compiler_static='-dn'
7761       ;;
7762
7763     solaris*)
7764       lt_prog_compiler_wl='-Wl,'
7765       lt_prog_compiler_pic='-KPIC'
7766       lt_prog_compiler_static='-Bstatic'
7767       ;;
7768
7769     sunos4*)
7770       lt_prog_compiler_wl='-Qoption ld '
7771       lt_prog_compiler_pic='-PIC'
7772       lt_prog_compiler_static='-Bstatic'
7773       ;;
7774
7775     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7776       lt_prog_compiler_wl='-Wl,'
7777       lt_prog_compiler_pic='-KPIC'
7778       lt_prog_compiler_static='-Bstatic'
7779       ;;
7780
7781     sysv4*MP*)
7782       if test -d /usr/nec ;then
7783         lt_prog_compiler_pic='-Kconform_pic'
7784         lt_prog_compiler_static='-Bstatic'
7785       fi
7786       ;;
7787
7788     uts4*)
7789       lt_prog_compiler_pic='-pic'
7790       lt_prog_compiler_static='-Bstatic'
7791       ;;
7792
7793     *)
7794       lt_prog_compiler_can_build_shared=no
7795       ;;
7796     esac
7797   fi
7798
7799 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7800 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7801
7802 #
7803 # Check to make sure the PIC flag actually works.
7804 #
7805 if test -n "$lt_prog_compiler_pic"; then
7806   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7807 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7808 if test "${lt_prog_compiler_pic_works+set}" = set; then
7809   echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811   lt_prog_compiler_pic_works=no
7812   ac_outfile=conftest.$ac_objext
7813    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7814    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7815    # Insert the option either (1) after the last *FLAGS variable, or
7816    # (2) before a word containing "conftest.", or (3) at the end.
7817    # Note that $ac_compile itself does not contain backslashes and begins
7818    # with a dollar sign (not a hyphen), so the echo should work correctly.
7819    # The option is referenced via a variable to avoid confusing sed.
7820    lt_compile=`echo "$ac_compile" | $SED \
7821    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7823    -e 's:$: $lt_compiler_flag:'`
7824    (eval echo "\"\$as_me:7824: $lt_compile\"" >&5)
7825    (eval "$lt_compile" 2>conftest.err)
7826    ac_status=$?
7827    cat conftest.err >&5
7828    echo "$as_me:7828: \$? = $ac_status" >&5
7829    if (exit $ac_status) && test -s "$ac_outfile"; then
7830      # The compiler can only warn and ignore the option if not recognized
7831      # So say no if there are warnings
7832      if test ! -s conftest.err; then
7833        lt_prog_compiler_pic_works=yes
7834      fi
7835    fi
7836    $rm conftest*
7837
7838 fi
7839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7840 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7841
7842 if test x"$lt_prog_compiler_pic_works" = xyes; then
7843     case $lt_prog_compiler_pic in
7844      "" | " "*) ;;
7845      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7846      esac
7847 else
7848     lt_prog_compiler_pic=
7849      lt_prog_compiler_can_build_shared=no
7850 fi
7851
7852 fi
7853 case "$host_os" in
7854   # For platforms which do not support PIC, -DPIC is meaningless:
7855   *djgpp*)
7856     lt_prog_compiler_pic=
7857     ;;
7858   *)
7859     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7860     ;;
7861 esac
7862
7863 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7864 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7865 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   lt_cv_prog_compiler_c_o=no
7869    $rm -r conftest 2>/dev/null
7870    mkdir conftest
7871    cd conftest
7872    mkdir out
7873    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7874
7875    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7876    # that will create temporary files in the current directory regardless of
7877    # the output directory.  Thus, making CWD read-only will cause this test
7878    # to fail, enabling locking or at least warning the user not to do parallel
7879    # builds.
7880    chmod -w .
7881
7882    lt_compiler_flag="-o out/conftest2.$ac_objext"
7883    # Insert the option either (1) after the last *FLAGS variable, or
7884    # (2) before a word containing "conftest.", or (3) at the end.
7885    # Note that $ac_compile itself does not contain backslashes and begins
7886    # with a dollar sign (not a hyphen), so the echo should work correctly.
7887    lt_compile=`echo "$ac_compile" | $SED \
7888    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7890    -e 's:$: $lt_compiler_flag:'`
7891    (eval echo "\"\$as_me:7891: $lt_compile\"" >&5)
7892    (eval "$lt_compile" 2>out/conftest.err)
7893    ac_status=$?
7894    cat out/conftest.err >&5
7895    echo "$as_me:7895: \$? = $ac_status" >&5
7896    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7897    then
7898      # The compiler can only warn and ignore the option if not recognized
7899      # So say no if there are warnings
7900      if test ! -s out/conftest.err; then
7901        lt_cv_prog_compiler_c_o=yes
7902      fi
7903    fi
7904    chmod u+w .
7905    $rm conftest* out/*
7906    rmdir out
7907    cd ..
7908    rmdir conftest
7909    $rm conftest*
7910
7911 fi
7912 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7913 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7914
7915
7916 hard_links="nottested"
7917 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7918   # do not overwrite the value of need_locks provided by the user
7919   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7920 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7921   hard_links=yes
7922   $rm conftest*
7923   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7924   touch conftest.a
7925   ln conftest.a conftest.b 2>&5 || hard_links=no
7926   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7927   echo "$as_me:$LINENO: result: $hard_links" >&5
7928 echo "${ECHO_T}$hard_links" >&6
7929   if test "$hard_links" = no; then
7930     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7931 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7932     need_locks=warn
7933   fi
7934 else
7935   need_locks=no
7936 fi
7937
7938 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7940
7941   runpath_var=
7942   allow_undefined_flag=
7943   enable_shared_with_static_runtimes=no
7944   archive_cmds=
7945   archive_expsym_cmds=
7946   old_archive_From_new_cmds=
7947   old_archive_from_expsyms_cmds=
7948   export_dynamic_flag_spec=
7949   whole_archive_flag_spec=
7950   thread_safe_flag_spec=
7951   hardcode_libdir_flag_spec=
7952   hardcode_libdir_flag_spec_ld=
7953   hardcode_libdir_separator=
7954   hardcode_direct=no
7955   hardcode_minus_L=no
7956   hardcode_shlibpath_var=unsupported
7957   link_all_deplibs=unknown
7958   hardcode_automatic=no
7959   module_cmds=
7960   module_expsym_cmds=
7961   always_export_symbols=no
7962   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7963   # include_expsyms should be a list of space-separated symbols to be *always*
7964   # included in the symbol list
7965   include_expsyms=
7966   # exclude_expsyms can be an extended regexp of symbols to exclude
7967   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7968   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7969   # as well as any symbol that contains `d'.
7970   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7971   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7972   # platforms (ab)use it in PIC code, but their linkers get confused if
7973   # the symbol is explicitly referenced.  Since portable code cannot
7974   # rely on this symbol name, it's probably fine to never include it in
7975   # preloaded symbol tables.
7976   extract_expsyms_cmds=
7977
7978   case $host_os in
7979   cygwin* | mingw* | pw32*)
7980     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7981     # When not using gcc, we currently assume that we are using
7982     # Microsoft Visual C++.
7983     if test "$GCC" != yes; then
7984       with_gnu_ld=no
7985     fi
7986     ;;
7987   openbsd*)
7988     with_gnu_ld=no
7989     ;;
7990   esac
7991
7992   ld_shlibs=yes
7993   if test "$with_gnu_ld" = yes; then
7994     # If archive_cmds runs LD, not CC, wlarc should be empty
7995     wlarc='${wl}'
7996
7997     # See if GNU ld supports shared libraries.
7998     case $host_os in
7999     aix3* | aix4* | aix5*)
8000       # On AIX/PPC, the GNU linker is very broken
8001       if test "$host_cpu" != ia64; then
8002         ld_shlibs=no
8003         cat <<EOF 1>&2
8004
8005 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8006 *** to be unable to reliably create shared libraries on AIX.
8007 *** Therefore, libtool is disabling shared libraries support.  If you
8008 *** really care for shared libraries, you may want to modify your PATH
8009 *** so that a non-GNU linker is found, and then restart.
8010
8011 EOF
8012       fi
8013       ;;
8014
8015     amigaos*)
8016       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)'
8017       hardcode_libdir_flag_spec='-L$libdir'
8018       hardcode_minus_L=yes
8019
8020       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8021       # that the semantics of dynamic libraries on AmigaOS, at least up
8022       # to version 4, is to share data among multiple programs linked
8023       # with the same dynamic library.  Since this doesn't match the
8024       # behavior of shared libraries on other platforms, we can't use
8025       # them.
8026       ld_shlibs=no
8027       ;;
8028
8029     beos*)
8030       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8031         allow_undefined_flag=unsupported
8032         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8033         # support --undefined.  This deserves some investigation.  FIXME
8034         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8035       else
8036         ld_shlibs=no
8037       fi
8038       ;;
8039
8040     cygwin* | mingw* | pw32*)
8041       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8042       # as there is no search path for DLLs.
8043       hardcode_libdir_flag_spec='-L$libdir'
8044       allow_undefined_flag=unsupported
8045       always_export_symbols=no
8046       enable_shared_with_static_runtimes=yes
8047       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8048
8049       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8050         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8051         # If the export-symbols file already is a .def file (1st line
8052         # is EXPORTS), use it as is; otherwise, prepend...
8053         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8054           cp $export_symbols $output_objdir/$soname.def;
8055         else
8056           echo EXPORTS > $output_objdir/$soname.def;
8057           cat $export_symbols >> $output_objdir/$soname.def;
8058         fi~
8059         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8060       else
8061         ld_shlibs=no
8062       fi
8063       ;;
8064
8065     netbsd*)
8066       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8067         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8068         wlarc=
8069       else
8070         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8071         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8072       fi
8073       ;;
8074
8075     solaris* | sysv5*)
8076       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8077         ld_shlibs=no
8078         cat <<EOF 1>&2
8079
8080 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8081 *** create shared libraries on Solaris systems.  Therefore, libtool
8082 *** is disabling shared libraries support.  We urge you to upgrade GNU
8083 *** binutils to release 2.9.1 or newer.  Another option is to modify
8084 *** your PATH or compiler configuration so that the native linker is
8085 *** used, and then restart.
8086
8087 EOF
8088       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8089         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8090         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8091       else
8092         ld_shlibs=no
8093       fi
8094       ;;
8095
8096     sunos4*)
8097       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8098       wlarc=
8099       hardcode_direct=yes
8100       hardcode_shlibpath_var=no
8101       ;;
8102
8103     *)
8104       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8105         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8106         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8107       else
8108         ld_shlibs=no
8109       fi
8110       ;;
8111     esac
8112
8113     if test "$ld_shlibs" = yes; then
8114       runpath_var=LD_RUN_PATH
8115       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8116       export_dynamic_flag_spec='${wl}--export-dynamic'
8117       # ancient GNU ld didn't support --whole-archive et. al.
8118       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8119         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8120       else
8121         whole_archive_flag_spec=
8122       fi
8123     fi
8124   else
8125     # PORTME fill in a description of your system's linker (not GNU ld)
8126     case $host_os in
8127     aix3*)
8128       allow_undefined_flag=unsupported
8129       always_export_symbols=yes
8130       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'
8131       # Note: this linker hardcodes the directories in LIBPATH if there
8132       # are no directories specified by -L.
8133       hardcode_minus_L=yes
8134       if test "$GCC" = yes && test -z "$link_static_flag"; then
8135         # Neither direct hardcoding nor static linking is supported with a
8136         # broken collect2.
8137         hardcode_direct=unsupported
8138       fi
8139       ;;
8140
8141     aix4* | aix5*)
8142       if test "$host_cpu" = ia64; then
8143         # On IA64, the linker does run time linking by default, so we don't
8144         # have to do anything special.
8145         aix_use_runtimelinking=no
8146         exp_sym_flag='-Bexport'
8147         no_entry_flag=""
8148       else
8149         # If we're using GNU nm, then we don't want the "-C" option.
8150         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8151         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8152           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8153         else
8154           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8155         fi
8156         aix_use_runtimelinking=no
8157
8158         # Test if we are trying to use run time linking or normal
8159         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8160         # need to do runtime linking.
8161         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8162           for ld_flag in $LDFLAGS; do
8163           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8164             aix_use_runtimelinking=yes
8165             break
8166           fi
8167           done
8168         esac
8169
8170         exp_sym_flag='-bexport'
8171         no_entry_flag='-bnoentry'
8172       fi
8173
8174       # When large executables or shared objects are built, AIX ld can
8175       # have problems creating the table of contents.  If linking a library
8176       # or program results in "error TOC overflow" add -mminimal-toc to
8177       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8178       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8179
8180       archive_cmds=''
8181       hardcode_direct=yes
8182       hardcode_libdir_separator=':'
8183       link_all_deplibs=yes
8184
8185       if test "$GCC" = yes; then
8186         case $host_os in aix4.012|aix4.012.*)
8187         # We only want to do this on AIX 4.2 and lower, the check
8188         # below for broken collect2 doesn't work under 4.3+
8189           collect2name=`${CC} -print-prog-name=collect2`
8190           if test -f "$collect2name" && \
8191            strings "$collect2name" | grep resolve_lib_name >/dev/null
8192           then
8193           # We have reworked collect2
8194           hardcode_direct=yes
8195           else
8196           # We have old collect2
8197           hardcode_direct=unsupported
8198           # It fails to find uninstalled libraries when the uninstalled
8199           # path is not listed in the libpath.  Setting hardcode_minus_L
8200           # to unsupported forces relinking
8201           hardcode_minus_L=yes
8202           hardcode_libdir_flag_spec='-L$libdir'
8203           hardcode_libdir_separator=
8204           fi
8205         esac
8206         shared_flag='-shared'
8207       else
8208         # not using gcc
8209         if test "$host_cpu" = ia64; then
8210         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8211         # chokes on -Wl,-G. The following line is correct:
8212           shared_flag='-G'
8213         else
8214         if test "$aix_use_runtimelinking" = yes; then
8215             shared_flag='${wl}-G'
8216           else
8217             shared_flag='${wl}-bM:SRE'
8218         fi
8219         fi
8220       fi
8221
8222       # It seems that -bexpall does not export symbols beginning with
8223       # underscore (_), so it is better to generate a list of symbols to export.
8224       always_export_symbols=yes
8225       if test "$aix_use_runtimelinking" = yes; then
8226         # Warning - without using the other runtime loading flags (-brtl),
8227         # -berok will link without error, but may produce a broken library.
8228         allow_undefined_flag='-berok'
8229        # Determine the default libpath from the value encoded in an empty executable.
8230        cat >conftest.$ac_ext <<_ACEOF
8231 #line $LINENO "configure"
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237
8238 int
8239 main ()
8240 {
8241
8242   ;
8243   return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext conftest$ac_exeext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248   (eval $ac_link) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } &&
8252          { ac_try='test -s conftest$ac_exeext'
8253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254   (eval $ac_try) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; }; then
8258
8259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8260 }'`
8261 # Check for a 64-bit object if we didn't find anything.
8262 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8263 }'`; fi
8264 else
8265   echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 fi
8269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8270 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8271
8272        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8273         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"
8274        else
8275         if test "$host_cpu" = ia64; then
8276           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8277           allow_undefined_flag="-z nodefs"
8278           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8279         else
8280          # Determine the default libpath from the value encoded in an empty executable.
8281          cat >conftest.$ac_ext <<_ACEOF
8282 #line $LINENO "configure"
8283 /* confdefs.h.  */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h.  */
8288
8289 int
8290 main ()
8291 {
8292
8293   ;
8294   return 0;
8295 }
8296 _ACEOF
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299   (eval $ac_link) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } &&
8303          { ac_try='test -s conftest$ac_exeext'
8304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305   (eval $ac_try) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; }; then
8309
8310 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8311 }'`
8312 # Check for a 64-bit object if we didn't find anything.
8313 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8314 }'`; fi
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319 fi
8320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8322
8323          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8324           # Warning - without using the other run time loading flags,
8325           # -berok will link without error, but may produce a broken library.
8326           no_undefined_flag=' ${wl}-bernotok'
8327           allow_undefined_flag=' ${wl}-berok'
8328           # -bexpall does not export symbols beginning with underscore (_)
8329           always_export_symbols=yes
8330           # Exported symbols can be pulled into shared objects from archives
8331           whole_archive_flag_spec=' '
8332           archive_cmds_need_lc=yes
8333           # This is similar to how AIX traditionally builds it's shared libraries.
8334           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8335         fi
8336       fi
8337       ;;
8338
8339     amigaos*)
8340       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)'
8341       hardcode_libdir_flag_spec='-L$libdir'
8342       hardcode_minus_L=yes
8343       # see comment about different semantics on the GNU ld section
8344       ld_shlibs=no
8345       ;;
8346
8347     bsdi4*)
8348       export_dynamic_flag_spec=-rdynamic
8349       ;;
8350
8351     cygwin* | mingw* | pw32*)
8352       # When not using gcc, we currently assume that we are using
8353       # Microsoft Visual C++.
8354       # hardcode_libdir_flag_spec is actually meaningless, as there is
8355       # no search path for DLLs.
8356       hardcode_libdir_flag_spec=' '
8357       allow_undefined_flag=unsupported
8358       # Tell ltmain to make .lib files, not .a files.
8359       libext=lib
8360       # Tell ltmain to make .dll files, not .so files.
8361       shrext=".dll"
8362       # FIXME: Setting linknames here is a bad hack.
8363       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8364       # The linker will automatically build a .lib file if we build a DLL.
8365       old_archive_From_new_cmds='true'
8366       # FIXME: Should let the user specify the lib program.
8367       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8368       fix_srcfile_path='`cygpath -w "$srcfile"`'
8369       enable_shared_with_static_runtimes=yes
8370       ;;
8371
8372     darwin* | rhapsody*)
8373     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8374       archive_cmds_need_lc=no
8375       case "$host_os" in
8376       rhapsody* | darwin1.[012])
8377         allow_undefined_flag='-undefined suppress'
8378         ;;
8379       *) # Darwin 1.3 on
8380         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8381         ;;
8382       esac
8383       # FIXME: Relying on posixy $() will cause problems for
8384       #        cross-compilation, but unfortunately the echo tests do not
8385       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8386       #        `"' quotes if we put them in here... so don't!
8387         lt_int_apple_cc_single_mod=no
8388         output_verbose_link_cmd='echo'
8389         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8390           lt_int_apple_cc_single_mod=yes
8391         fi
8392         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8393           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8394         else
8395         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8396       fi
8397       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8398       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8399         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8400           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8401         else
8402           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8403         fi
8404           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8405       hardcode_direct=no
8406       hardcode_automatic=yes
8407       hardcode_shlibpath_var=unsupported
8408       whole_archive_flag_spec='-all_load $convenience'
8409       link_all_deplibs=yes
8410     fi
8411       ;;
8412
8413     dgux*)
8414       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8415       hardcode_libdir_flag_spec='-L$libdir'
8416       hardcode_shlibpath_var=no
8417       ;;
8418
8419     freebsd1*)
8420       ld_shlibs=no
8421       ;;
8422
8423     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8424     # support.  Future versions do this automatically, but an explicit c++rt0.o
8425     # does not break anything, and helps significantly (at the cost of a little
8426     # extra space).
8427     freebsd2.2*)
8428       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8429       hardcode_libdir_flag_spec='-R$libdir'
8430       hardcode_direct=yes
8431       hardcode_shlibpath_var=no
8432       ;;
8433
8434     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8435     freebsd2*)
8436       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8437       hardcode_direct=yes
8438       hardcode_minus_L=yes
8439       hardcode_shlibpath_var=no
8440       ;;
8441
8442     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8443     freebsd*)
8444       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8445       hardcode_libdir_flag_spec='-R$libdir'
8446       hardcode_direct=yes
8447       hardcode_shlibpath_var=no
8448       ;;
8449
8450     hpux9*)
8451       if test "$GCC" = yes; then
8452         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8453       else
8454         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'
8455       fi
8456       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8457       hardcode_libdir_separator=:
8458       hardcode_direct=yes
8459
8460       # hardcode_minus_L: Not really in the search PATH,
8461       # but as the default location of the library.
8462       hardcode_minus_L=yes
8463       export_dynamic_flag_spec='${wl}-E'
8464       ;;
8465
8466     hpux10* | hpux11*)
8467       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8468         case "$host_cpu" in
8469         hppa*64*|ia64*)
8470           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8471           ;;
8472         *)
8473           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8474           ;;
8475         esac
8476       else
8477         case "$host_cpu" in
8478         hppa*64*|ia64*)
8479           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8480           ;;
8481         *)
8482           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8483           ;;
8484         esac
8485       fi
8486       if test "$with_gnu_ld" = no; then
8487         case "$host_cpu" in
8488         hppa*64*)
8489           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8490           hardcode_libdir_flag_spec_ld='+b $libdir'
8491           hardcode_libdir_separator=:
8492           hardcode_direct=no
8493           hardcode_shlibpath_var=no
8494           ;;
8495         ia64*)
8496           hardcode_libdir_flag_spec='-L$libdir'
8497           hardcode_direct=no
8498           hardcode_shlibpath_var=no
8499
8500           # hardcode_minus_L: Not really in the search PATH,
8501           # but as the default location of the library.
8502           hardcode_minus_L=yes
8503           ;;
8504         *)
8505           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8506           hardcode_libdir_separator=:
8507           hardcode_direct=yes
8508           export_dynamic_flag_spec='${wl}-E'
8509
8510           # hardcode_minus_L: Not really in the search PATH,
8511           # but as the default location of the library.
8512           hardcode_minus_L=yes
8513           ;;
8514         esac
8515       fi
8516       ;;
8517
8518     irix5* | irix6* | nonstopux*)
8519       if test "$GCC" = yes; then
8520         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'
8521       else
8522         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'
8523         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8524       fi
8525       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8526       hardcode_libdir_separator=:
8527       link_all_deplibs=yes
8528       ;;
8529
8530     netbsd*)
8531       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8532         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8533       else
8534         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8535       fi
8536       hardcode_libdir_flag_spec='-R$libdir'
8537       hardcode_direct=yes
8538       hardcode_shlibpath_var=no
8539       ;;
8540
8541     newsos6)
8542       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8543       hardcode_direct=yes
8544       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545       hardcode_libdir_separator=:
8546       hardcode_shlibpath_var=no
8547       ;;
8548
8549     openbsd*)
8550       case "$host_cpu" in
8551         m88k|hppa|vax)
8552           ld_shlibs=no
8553           ;;
8554         *)
8555           hardcode_direct=yes
8556           hardcode_shlibpath_var=no
8557           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8558             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8559             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8560             export_dynamic_flag_spec='${wl}-E'
8561           else
8562             case $host_os in
8563               openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8564                 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8565                 hardcode_libdir_flag_spec='-R$libdir'
8566                 ;;
8567               *)
8568                 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8569                 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8570                 ;;
8571             esac
8572           fi
8573           ;;
8574       esac
8575       ;;
8576
8577     os2*)
8578       hardcode_libdir_flag_spec='-L$libdir'
8579       hardcode_minus_L=yes
8580       allow_undefined_flag=unsupported
8581       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'
8582       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8583       ;;
8584
8585     osf3*)
8586       if test "$GCC" = yes; then
8587         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8588         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'
8589       else
8590         allow_undefined_flag=' -expect_unresolved \*'
8591         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'
8592       fi
8593       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8594       hardcode_libdir_separator=:
8595       ;;
8596
8597     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8598       if test "$GCC" = yes; then
8599         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8600         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'
8601         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8602       else
8603         allow_undefined_flag=' -expect_unresolved \*'
8604         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'
8605         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8606         $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'
8607
8608         # Both c and cxx compiler support -rpath directly
8609         hardcode_libdir_flag_spec='-rpath $libdir'
8610       fi
8611       hardcode_libdir_separator=:
8612       ;;
8613
8614     sco3.2v5*)
8615       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8616       hardcode_shlibpath_var=no
8617       export_dynamic_flag_spec='${wl}-Bexport'
8618       runpath_var=LD_RUN_PATH
8619       hardcode_runpath_var=yes
8620       ;;
8621
8622     solaris*)
8623       no_undefined_flag=' -z text'
8624       if test "$GCC" = yes; then
8625         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8626         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8627           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8628       else
8629         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8630         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8631         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8632       fi
8633       hardcode_libdir_flag_spec='-R$libdir'
8634       hardcode_shlibpath_var=no
8635       case $host_os in
8636       solaris2.[0-5] | solaris2.[0-5].*) ;;
8637       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8638         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8639       esac
8640       link_all_deplibs=yes
8641       ;;
8642
8643     sunos4*)
8644       if test "x$host_vendor" = xsequent; then
8645         # Use $CC to link under sequent, because it throws in some extra .o
8646         # files that make .init and .fini sections work.
8647         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8648       else
8649         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8650       fi
8651       hardcode_libdir_flag_spec='-L$libdir'
8652       hardcode_direct=yes
8653       hardcode_minus_L=yes
8654       hardcode_shlibpath_var=no
8655       ;;
8656
8657     sysv4)
8658       case $host_vendor in
8659         sni)
8660           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8661           hardcode_direct=yes # is this really true???
8662         ;;
8663         siemens)
8664           ## LD is ld it makes a PLAMLIB
8665           ## CC just makes a GrossModule.
8666           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8667           reload_cmds='$CC -r -o $output$reload_objs'
8668           hardcode_direct=no
8669         ;;
8670         motorola)
8671           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8672           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8673         ;;
8674       esac
8675       runpath_var='LD_RUN_PATH'
8676       hardcode_shlibpath_var=no
8677       ;;
8678
8679     sysv4.3*)
8680       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8681       hardcode_shlibpath_var=no
8682       export_dynamic_flag_spec='-Bexport'
8683       ;;
8684
8685     sysv4*MP*)
8686       if test -d /usr/nec; then
8687         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8688         hardcode_shlibpath_var=no
8689         runpath_var=LD_RUN_PATH
8690         hardcode_runpath_var=yes
8691         ld_shlibs=yes
8692       fi
8693       ;;
8694
8695     sysv4.2uw2*)
8696       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8697       hardcode_direct=yes
8698       hardcode_minus_L=no
8699       hardcode_shlibpath_var=no
8700       hardcode_runpath_var=yes
8701       runpath_var=LD_RUN_PATH
8702       ;;
8703
8704    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8705       no_undefined_flag='${wl}-z ${wl}text'
8706       if test "$GCC" = yes; then
8707         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8708       else
8709         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8710       fi
8711       runpath_var='LD_RUN_PATH'
8712       hardcode_shlibpath_var=no
8713       ;;
8714
8715     sysv5*)
8716       no_undefined_flag=' -z text'
8717       # $CC -shared without GNU ld will not create a library from C++
8718       # object files and a static libstdc++, better avoid it by now
8719       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8721                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8722       hardcode_libdir_flag_spec=
8723       hardcode_shlibpath_var=no
8724       runpath_var='LD_RUN_PATH'
8725       ;;
8726
8727     uts4*)
8728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729       hardcode_libdir_flag_spec='-L$libdir'
8730       hardcode_shlibpath_var=no
8731       ;;
8732
8733     *)
8734       ld_shlibs=no
8735       ;;
8736     esac
8737   fi
8738
8739 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8740 echo "${ECHO_T}$ld_shlibs" >&6
8741 test "$ld_shlibs" = no && can_build_shared=no
8742
8743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8744 if test "$GCC" = yes; then
8745   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8746 fi
8747
8748 #
8749 # Do we need to explicitly link libc?
8750 #
8751 case "x$archive_cmds_need_lc" in
8752 x|xyes)
8753   # Assume -lc should be added
8754   archive_cmds_need_lc=yes
8755
8756   if test "$enable_shared" = yes && test "$GCC" = yes; then
8757     case $archive_cmds in
8758     *'~'*)
8759       # FIXME: we may have to deal with multi-command sequences.
8760       ;;
8761     '$CC '*)
8762       # Test whether the compiler implicitly links with -lc since on some
8763       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8764       # to ld, don't add -lc before -lgcc.
8765       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8766 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8767       $rm conftest*
8768       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8769
8770       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8771   (eval $ac_compile) 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); } 2>conftest.err; then
8775         soname=conftest
8776         lib=conftest
8777         libobjs=conftest.$ac_objext
8778         deplibs=
8779         wl=$lt_prog_compiler_wl
8780         compiler_flags=-v
8781         linker_flags=-v
8782         verstring=
8783         output_objdir=.
8784         libname=conftest
8785         lt_save_allow_undefined_flag=$allow_undefined_flag
8786         allow_undefined_flag=
8787         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8788   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); }
8792         then
8793           archive_cmds_need_lc=no
8794         else
8795           archive_cmds_need_lc=yes
8796         fi
8797         allow_undefined_flag=$lt_save_allow_undefined_flag
8798       else
8799         cat conftest.err 1>&5
8800       fi
8801       $rm conftest*
8802       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8803 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8804       ;;
8805     esac
8806   fi
8807   ;;
8808 esac
8809
8810 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8811 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8812 hardcode_action=
8813 if test -n "$hardcode_libdir_flag_spec" || \
8814    test -n "$runpath_var " || \
8815    test "X$hardcode_automatic"="Xyes" ; then
8816
8817   # We can hardcode non-existant directories.
8818   if test "$hardcode_direct" != no &&
8819      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8820      # have to relink, otherwise we might link with an installed library
8821      # when we should be linking with a yet-to-be-installed one
8822      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8823      test "$hardcode_minus_L" != no; then
8824     # Linking always hardcodes the temporary library directory.
8825     hardcode_action=relink
8826   else
8827     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8828     hardcode_action=immediate
8829   fi
8830 else
8831   # We cannot hardcode anything, or else we can only hardcode existing
8832   # directories.
8833   hardcode_action=unsupported
8834 fi
8835 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8836 echo "${ECHO_T}$hardcode_action" >&6
8837
8838 if test "$hardcode_action" = relink; then
8839   # Fast installation is not supported
8840   enable_fast_install=no
8841 elif test "$shlibpath_overrides_runpath" = yes ||
8842      test "$enable_shared" = no; then
8843   # Fast installation is not necessary
8844   enable_fast_install=needless
8845 fi
8846
8847 striplib=
8848 old_striplib=
8849 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8850 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8851 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8852   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8853   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8854   echo "$as_me:$LINENO: result: yes" >&5
8855 echo "${ECHO_T}yes" >&6
8856 else
8857 # FIXME - insert some real tests, host_os isn't really good enough
8858   case $host_os in
8859    darwin*)
8860        if test -n "$STRIP" ; then
8861          striplib="$STRIP -x"
8862          echo "$as_me:$LINENO: result: yes" >&5
8863 echo "${ECHO_T}yes" >&6
8864        else
8865   echo "$as_me:$LINENO: result: no" >&5
8866 echo "${ECHO_T}no" >&6
8867 fi
8868        ;;
8869    *)
8870   echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8872     ;;
8873   esac
8874 fi
8875
8876 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8877 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8878 library_names_spec=
8879 libname_spec='lib$name'
8880 soname_spec=
8881 shrext=".so"
8882 postinstall_cmds=
8883 postuninstall_cmds=
8884 finish_cmds=
8885 finish_eval=
8886 shlibpath_var=
8887 shlibpath_overrides_runpath=unknown
8888 version_type=none
8889 dynamic_linker="$host_os ld.so"
8890 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8891 if test "$GCC" = yes; then
8892   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8893   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8894     # if the path contains ";" then we assume it to be the separator
8895     # otherwise default to the standard path separator (i.e. ":") - it is
8896     # assumed that no part of a normal pathname contains ";" but that should
8897     # okay in the real world where ";" in dirpaths is itself problematic.
8898     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8899   else
8900     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8901   fi
8902 else
8903   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8904 fi
8905 need_lib_prefix=no
8906 hardcode_into_libs=no
8907
8908 # when you set need_version to no, make sure it does not cause -set_version
8909 # flags to be left without arguments
8910 need_version=no
8911
8912 case $host_os in
8913 aix3*)
8914   version_type=linux
8915   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8916   shlibpath_var=LIBPATH
8917
8918   # AIX 3 has no versioning support, so we append a major version to the name.
8919   soname_spec='${libname}${release}${shared_ext}$major'
8920   ;;
8921
8922 aix4* | aix5*)
8923   version_type=linux
8924   hardcode_into_libs=yes
8925   if test "$host_cpu" = ia64; then
8926     # AIX 5 supports IA64
8927     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8928     shlibpath_var=LD_LIBRARY_PATH
8929   else
8930     # With GCC up to 2.95.x, collect2 would create an import file
8931     # for dependence libraries.  The import file would start with
8932     # the line `#! .'.  This would cause the generated library to
8933     # depend on `.', always an invalid library.  This was fixed in
8934     # development snapshots of GCC prior to 3.0.
8935     case $host_os in
8936       aix4 | aix4.[01] | aix4.[01].*)
8937       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8938            echo ' yes '
8939            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8940         :
8941       else
8942         can_build_shared=no
8943       fi
8944       ;;
8945     esac
8946     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8947     # soname into executable. Probably we can add versioning support to
8948     # collect2, so additional links can be useful in future.
8949     if test "$aix_use_runtimelinking" = yes; then
8950       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8951       # instead of lib<name>.a to let people know that these are not
8952       # typical AIX shared libraries.
8953       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8954     else
8955       # We preserve .a as extension for shared libraries through AIX4.2
8956       # and later when we are not doing run time linking.
8957       library_names_spec='${libname}${release}.a $libname.a'
8958       soname_spec='${libname}${release}${shared_ext}$major'
8959     fi
8960     shlibpath_var=LIBPATH
8961   fi
8962   ;;
8963
8964 amigaos*)
8965   library_names_spec='$libname.ixlibrary $libname.a'
8966   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8967   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'
8968   ;;
8969
8970 beos*)
8971   library_names_spec='${libname}${shared_ext}'
8972   dynamic_linker="$host_os ld.so"
8973   shlibpath_var=LIBRARY_PATH
8974   ;;
8975
8976 bsdi4*)
8977   version_type=linux
8978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979   soname_spec='${libname}${release}${shared_ext}$major'
8980   #finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8981   shlibpath_var=LD_LIBRARY_PATH
8982   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8983   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8984   # the default ld.so.conf also contains /usr/contrib/lib and
8985   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8986   # libtool to hard-code these into programs
8987   ;;
8988
8989 cygwin* | mingw* | pw32*)
8990   version_type=windows
8991   shrext=".dll"
8992
8993   case $GCC,$host_os in
8994   yes,cygwin* | yes,mingw* | yes,pw32*)
8995     library_names_spec='$libname.dll.a'
8996     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8997     postinstall_cmds='base_file=`basename \${file}`~
8998       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8999       dldir=$destdir/`dirname \$dlpath`~
9000       test -d \$dldir || mkdir -p \$dldir~
9001       $install_prog $dir/$dlname \$dldir/$dlname'
9002     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9003       dlpath=$dir/\$dldll~
9004        $rm \$dlpath'
9005     shlibpath_overrides_runpath=yes
9006
9007     case $host_os in
9008     cygwin*)
9009       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9010       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9011       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
9012       ;;
9013     mingw*)
9014       # MinGW DLLs use traditional 'lib' prefix
9015       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9016       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9017       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9018         # It is most probably a Windows format PATH printed by
9019         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9020         # path with ; separators, and with drive letters. We can handle the
9021         # drive letters (cygwin fileutils understands them), so leave them,
9022         # especially as we might pass files found there to a mingw objdump,
9023         # which wouldn't understand a cygwinified path. Ahh.
9024         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9025       else
9026         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9027       fi
9028       ;;
9029     pw32*)
9030       # pw32 DLLs use 'pw' prefix rather than 'lib'
9031       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9032       ;;
9033     esac
9034     ;;
9035
9036   *)
9037     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9038     ;;
9039   esac
9040   dynamic_linker='Win32 ld.exe'
9041   # FIXME: first we should search . and the directory the executable is in
9042   shlibpath_var=PATH
9043   ;;
9044
9045 darwin* | rhapsody*)
9046   dynamic_linker="$host_os dyld"
9047   version_type=darwin
9048   # FIXME: Relying on posixy $() will cause problems for
9049   #        cross-compilation, but unfortunately the echo tests do not
9050   #        yet detect zsh echo's removal of \ escapes.
9051   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9052   soname_spec='${libname}${release}${major}$shared_ext'
9053   shlibpath_overrides_runpath=yes
9054   shlibpath_var=DYLD_LIBRARY_PATH
9055   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
9056   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9057   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9058   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9059   fi
9060   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9061   ;;
9062
9063 dgux*)
9064   version_type=linux
9065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9066   soname_spec='${libname}${release}${shared_ext}$major'
9067   shlibpath_var=LD_LIBRARY_PATH
9068   ;;
9069
9070 freebsd1*)
9071   dynamic_linker=no
9072   ;;
9073
9074 freebsd*)
9075   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9076   version_type=freebsd-$objformat
9077   case $version_type in
9078     freebsd-elf*)
9079       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9080       ;;
9081     freebsd-*)
9082       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9083       ;;
9084   esac
9085   shlibpath_var=LD_LIBRARY_PATH
9086   case $host_os in
9087   freebsd2*)
9088     shlibpath_overrides_runpath=yes
9089     ;;
9090   freebsd3.01* | freebsdelf3.01*)
9091     shlibpath_overrides_runpath=yes
9092     hardcode_into_libs=yes
9093     ;;
9094   *) # from 3.2 on
9095     shlibpath_overrides_runpath=no
9096     hardcode_into_libs=yes
9097     ;;
9098   esac
9099   ;;
9100
9101 gnu*)
9102   version_type=linux
9103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9104   soname_spec='${libname}${release}${shared_ext}$major'
9105   shlibpath_var=LD_LIBRARY_PATH
9106   hardcode_into_libs=yes
9107   ;;
9108
9109 hpux9* | hpux10* | hpux11*)
9110   # Give a soname corresponding to the major version so that dld.sl refuses to
9111   # link against other versions.
9112   version_type=sunos
9113   case "$host_cpu" in
9114   ia64*)
9115     shrext='.so'
9116     hardcode_into_libs=yes
9117     dynamic_linker="$host_os dld.so"
9118     shlibpath_var=LD_LIBRARY_PATH
9119     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121     soname_spec='${libname}${release}${shared_ext}$major'
9122     if test "X$HPUX_IA64_MODE" = X32; then
9123       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9124     else
9125       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9126     fi
9127     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9128     ;;
9129    hppa*64*)
9130      shrext='.sl'
9131      hardcode_into_libs=yes
9132      dynamic_linker="$host_os dld.sl"
9133      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9134      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9135      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136      soname_spec='${libname}${release}${shared_ext}$major'
9137      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9138      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9139      ;;
9140    *)
9141     shrext='.sl'
9142     dynamic_linker="$host_os dld.sl"
9143     shlibpath_var=SHLIB_PATH
9144     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146     soname_spec='${libname}${release}${shared_ext}$major'
9147     ;;
9148   esac
9149   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9150   postinstall_cmds='chmod 555 $lib'
9151   ;;
9152
9153 irix5* | irix6* | nonstopux*)
9154   case $host_os in
9155     nonstopux*) version_type=nonstopux ;;
9156     *)
9157         if test "$lt_cv_prog_gnu_ld" = yes; then
9158                 version_type=linux
9159         else
9160                 version_type=irix
9161         fi ;;
9162   esac
9163   soname_spec='${libname}${release}${shared_ext}$major'
9164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9165   case $host_os in
9166   irix5* | nonstopux*)
9167     libsuff= shlibsuff=
9168     ;;
9169   *)
9170     case $LD in # libtool.m4 will add one of these switches to LD
9171     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9172       libsuff= shlibsuff= libmagic=32-bit;;
9173     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9174       libsuff=32 shlibsuff=N32 libmagic=N32;;
9175     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9176       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9177     *) libsuff= shlibsuff= libmagic=never-match;;
9178     esac
9179     ;;
9180   esac
9181   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9182   shlibpath_overrides_runpath=no
9183   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9184   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9185   hardcode_into_libs=yes
9186   ;;
9187
9188 # No shared lib support for Linux oldld, aout, or coff.
9189 linux*oldld* | linux*aout* | linux*coff*)
9190   dynamic_linker=no
9191   ;;
9192
9193 # This must be Linux ELF.
9194 linux*)
9195   version_type=linux
9196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197   soname_spec='${libname}${release}${shared_ext}$major'
9198   #finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9199   shlibpath_var=LD_LIBRARY_PATH
9200   shlibpath_overrides_runpath=no
9201   # This implies no fast_install, which is unacceptable.
9202   # Some rework will be needed to allow for fast_install
9203   # before this can be enabled.
9204   hardcode_into_libs=yes
9205
9206   # We used to test for /lib/ld.so.1 and disable shared libraries on
9207   # powerpc, because MkLinux only supported shared libraries with the
9208   # GNU dynamic linker.  Since this was broken with cross compilers,
9209   # most powerpc-linux boxes support dynamic linking these days and
9210   # people can always --disable-shared, the test was removed, and we
9211   # assume the GNU/Linux dynamic linker is in use.
9212   dynamic_linker='GNU/Linux ld.so'
9213   ;;
9214
9215 netbsd*)
9216   version_type=sunos
9217   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9219     #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9220     dynamic_linker='NetBSD (a.out) ld.so'
9221   else
9222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
9223     soname_spec='${libname}${release}${shared_ext}$major'
9224     dynamic_linker='NetBSD ld.elf_so'
9225   fi
9226   shlibpath_var=LD_LIBRARY_PATH
9227   shlibpath_overrides_runpath=yes
9228   hardcode_into_libs=yes
9229   ;;
9230
9231 newsos6)
9232   version_type=linux
9233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234   shlibpath_var=LD_LIBRARY_PATH
9235   shlibpath_overrides_runpath=yes
9236   ;;
9237
9238 nto-qnx)
9239   version_type=linux
9240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241   soname_spec='${libname}${release}${shared_ext}$major'
9242   shlibpath_var=LD_LIBRARY_PATH
9243   shlibpath_overrides_runpath=yes
9244   ;;
9245
9246 openbsd*)
9247   version_type=sunos
9248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249   #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9250   shlibpath_var=LD_LIBRARY_PATH
9251   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9252     dynamic_linker='OpenBSD (ELF) ld.so'
9253     case $host_os in
9254       openbsd2.[89] | openbsd2.[89].*)
9255         shlibpath_overrides_runpath=no
9256         ;;
9257       *)
9258         shlibpath_overrides_runpath=yes
9259         ;;
9260       esac
9261   else
9262     dynamic_linker='OpenBSD (a.out) ld.so'
9263     shlibpath_overrides_runpath=yes
9264   fi
9265   ;;
9266
9267 os2*)
9268   libname_spec='$name'
9269   shrext=".dll"
9270   library_names_spec='$libname${shared_ext} $libname.a'
9271   dynamic_linker='OS/2 ld.exe'
9272   shlibpath_var=LIBPATH
9273   ;;
9274
9275 osf3* | osf4* | osf5*)
9276   version_type=osf
9277   soname_spec='${libname}${release}${shared_ext}$major'
9278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279   shlibpath_var=LD_LIBRARY_PATH
9280   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9281   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9282   ;;
9283
9284 sco3.2v5*)
9285   version_type=osf
9286   soname_spec='${libname}${release}${shared_ext}$major'
9287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288   shlibpath_var=LD_LIBRARY_PATH
9289   ;;
9290
9291 solaris*)
9292   version_type=linux
9293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294   soname_spec='${libname}${release}${shared_ext}$major'
9295   shlibpath_var=LD_LIBRARY_PATH
9296   shlibpath_overrides_runpath=yes
9297   hardcode_into_libs=yes
9298   # ldd complains unless libraries are executable
9299   postinstall_cmds='chmod +x $lib'
9300   ;;
9301
9302 sunos4*)
9303   version_type=sunos
9304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9305   #finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9306   shlibpath_var=LD_LIBRARY_PATH
9307   shlibpath_overrides_runpath=yes
9308   ;;
9309
9310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9311   version_type=linux
9312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313   soname_spec='${libname}${release}${shared_ext}$major'
9314   shlibpath_var=LD_LIBRARY_PATH
9315   case $host_vendor in
9316     sni)
9317       shlibpath_overrides_runpath=no
9318       export_dynamic_flag_spec='${wl}-Blargedynsym'
9319       runpath_var=LD_RUN_PATH
9320       ;;
9321     motorola)
9322       shlibpath_overrides_runpath=no
9323       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9324       ;;
9325   esac
9326   ;;
9327
9328 sysv4*MP*)
9329   if test -d /usr/nec ;then
9330     version_type=linux
9331     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9332     soname_spec='$libname${shared_ext}.$major'
9333     shlibpath_var=LD_LIBRARY_PATH
9334   fi
9335   ;;
9336
9337 uts4*)
9338   version_type=linux
9339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340   soname_spec='${libname}${release}${shared_ext}$major'
9341   shlibpath_var=LD_LIBRARY_PATH
9342   ;;
9343
9344 *)
9345   dynamic_linker=no
9346   ;;
9347 esac
9348 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9349 echo "${ECHO_T}$dynamic_linker" >&6
9350 test "$dynamic_linker" = no && can_build_shared=no
9351
9352 if test "x$enable_dlopen" != xyes; then
9353   enable_dlopen=unknown
9354   enable_dlopen_self=unknown
9355   enable_dlopen_self_static=unknown
9356 else
9357   lt_cv_dlopen=no
9358   lt_cv_dlopen_libs=
9359
9360   case $host_os in
9361   beos*)
9362     lt_cv_dlopen="load_add_on"
9363     lt_cv_dlopen_libs=
9364     lt_cv_dlopen_self=yes
9365     ;;
9366
9367   mingw* | pw32*)
9368     lt_cv_dlopen="LoadLibrary"
9369     lt_cv_dlopen_libs=
9370    ;;
9371
9372   cygwin*)
9373     lt_cv_dlopen="dlopen"
9374     lt_cv_dlopen_libs=
9375    ;;
9376
9377   darwin*)
9378   # if libdl is installed we need to link against it
9379     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9380 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9381 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9382   echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384   ac_check_lib_save_LIBS=$LIBS
9385 LIBS="-ldl  $LIBS"
9386 cat >conftest.$ac_ext <<_ACEOF
9387 #line $LINENO "configure"
9388 /* confdefs.h.  */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h.  */
9393
9394 /* Override any gcc2 internal prototype to avoid an error.  */
9395 #ifdef __cplusplus
9396 extern "C"
9397 #endif
9398 /* We use char because int might match the return type of a gcc2
9399    builtin and then its argument prototype would still apply.  */
9400 char dlopen ();
9401 int
9402 main ()
9403 {
9404 dlopen ();
9405   ;
9406   return 0;
9407 }
9408 _ACEOF
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411   (eval $ac_link) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); } &&
9415          { ac_try='test -s conftest$ac_exeext'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; }; then
9421   ac_cv_lib_dl_dlopen=yes
9422 else
9423   echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9425
9426 ac_cv_lib_dl_dlopen=no
9427 fi
9428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9429 LIBS=$ac_check_lib_save_LIBS
9430 fi
9431 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9432 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9433 if test $ac_cv_lib_dl_dlopen = yes; then
9434   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9435 else
9436
9437     lt_cv_dlopen="dyld"
9438     lt_cv_dlopen_libs=
9439     lt_cv_dlopen_self=yes
9440
9441 fi
9442
9443    ;;
9444
9445   *)
9446     echo "$as_me:$LINENO: checking for shl_load" >&5
9447 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9448 if test "${ac_cv_func_shl_load+set}" = set; then
9449   echo $ECHO_N "(cached) $ECHO_C" >&6
9450 else
9451   cat >conftest.$ac_ext <<_ACEOF
9452 #line $LINENO "configure"
9453 /* confdefs.h.  */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h.  */
9458 /* System header to define __stub macros and hopefully few prototypes,
9459     which can conflict with char shl_load (); below.
9460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9461     <limits.h> exists even on freestanding compilers.  */
9462 #ifdef __STDC__
9463 # include <limits.h>
9464 #else
9465 # include <assert.h>
9466 #endif
9467 /* Override any gcc2 internal prototype to avoid an error.  */
9468 #ifdef __cplusplus
9469 extern "C"
9470 {
9471 #endif
9472 /* We use char because int might match the return type of a gcc2
9473    builtin and then its argument prototype would still apply.  */
9474 char shl_load ();
9475 /* The GNU C library defines this for functions which it implements
9476     to always fail with ENOSYS.  Some functions are actually named
9477     something starting with __ and the normal name is an alias.  */
9478 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9479 choke me
9480 #else
9481 char (*f) () = shl_load;
9482 #endif
9483 #ifdef __cplusplus
9484 }
9485 #endif
9486
9487 int
9488 main ()
9489 {
9490 return f != shl_load;
9491   ;
9492   return 0;
9493 }
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497   (eval $ac_link) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); } &&
9501          { ac_try='test -s conftest$ac_exeext'
9502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503   (eval $ac_try) 2>&5
9504   ac_status=$?
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); }; }; then
9507   ac_cv_func_shl_load=yes
9508 else
9509   echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9511
9512 ac_cv_func_shl_load=no
9513 fi
9514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9515 fi
9516 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9517 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9518 if test $ac_cv_func_shl_load = yes; then
9519   lt_cv_dlopen="shl_load"
9520 else
9521   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9522 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9523 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9524   echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526   ac_check_lib_save_LIBS=$LIBS
9527 LIBS="-ldld  $LIBS"
9528 cat >conftest.$ac_ext <<_ACEOF
9529 #line $LINENO "configure"
9530 /* confdefs.h.  */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h.  */
9535
9536 /* Override any gcc2 internal prototype to avoid an error.  */
9537 #ifdef __cplusplus
9538 extern "C"
9539 #endif
9540 /* We use char because int might match the return type of a gcc2
9541    builtin and then its argument prototype would still apply.  */
9542 char shl_load ();
9543 int
9544 main ()
9545 {
9546 shl_load ();
9547   ;
9548   return 0;
9549 }
9550 _ACEOF
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9553   (eval $ac_link) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } &&
9557          { ac_try='test -s conftest$ac_exeext'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; }; then
9563   ac_cv_lib_dld_shl_load=yes
9564 else
9565   echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9567
9568 ac_cv_lib_dld_shl_load=no
9569 fi
9570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9571 LIBS=$ac_check_lib_save_LIBS
9572 fi
9573 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9574 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9575 if test $ac_cv_lib_dld_shl_load = yes; then
9576   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9577 else
9578   echo "$as_me:$LINENO: checking for dlopen" >&5
9579 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9580 if test "${ac_cv_func_dlopen+set}" = set; then
9581   echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583   cat >conftest.$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9585 /* confdefs.h.  */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h.  */
9590 /* System header to define __stub macros and hopefully few prototypes,
9591     which can conflict with char dlopen (); below.
9592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9593     <limits.h> exists even on freestanding compilers.  */
9594 #ifdef __STDC__
9595 # include <limits.h>
9596 #else
9597 # include <assert.h>
9598 #endif
9599 /* Override any gcc2 internal prototype to avoid an error.  */
9600 #ifdef __cplusplus
9601 extern "C"
9602 {
9603 #endif
9604 /* We use char because int might match the return type of a gcc2
9605    builtin and then its argument prototype would still apply.  */
9606 char dlopen ();
9607 /* The GNU C library defines this for functions which it implements
9608     to always fail with ENOSYS.  Some functions are actually named
9609     something starting with __ and the normal name is an alias.  */
9610 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9611 choke me
9612 #else
9613 char (*f) () = dlopen;
9614 #endif
9615 #ifdef __cplusplus
9616 }
9617 #endif
9618
9619 int
9620 main ()
9621 {
9622 return f != dlopen;
9623   ;
9624   return 0;
9625 }
9626 _ACEOF
9627 rm -f conftest.$ac_objext conftest$ac_exeext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629   (eval $ac_link) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } &&
9633          { ac_try='test -s conftest$ac_exeext'
9634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635   (eval $ac_try) 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); }; }; then
9639   ac_cv_func_dlopen=yes
9640 else
9641   echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9643
9644 ac_cv_func_dlopen=no
9645 fi
9646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9647 fi
9648 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9649 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9650 if test $ac_cv_func_dlopen = yes; then
9651   lt_cv_dlopen="dlopen"
9652 else
9653   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9654 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9655 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9656   echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658   ac_check_lib_save_LIBS=$LIBS
9659 LIBS="-ldl  $LIBS"
9660 cat >conftest.$ac_ext <<_ACEOF
9661 #line $LINENO "configure"
9662 /* confdefs.h.  */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h.  */
9667
9668 /* Override any gcc2 internal prototype to avoid an error.  */
9669 #ifdef __cplusplus
9670 extern "C"
9671 #endif
9672 /* We use char because int might match the return type of a gcc2
9673    builtin and then its argument prototype would still apply.  */
9674 char dlopen ();
9675 int
9676 main ()
9677 {
9678 dlopen ();
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685   (eval $ac_link) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -s conftest$ac_exeext'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_lib_dl_dlopen=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_cv_lib_dl_dlopen=no
9701 fi
9702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9703 LIBS=$ac_check_lib_save_LIBS
9704 fi
9705 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9706 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9707 if test $ac_cv_lib_dl_dlopen = yes; then
9708   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9709 else
9710   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9711 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9712 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715   ac_check_lib_save_LIBS=$LIBS
9716 LIBS="-lsvld  $LIBS"
9717 cat >conftest.$ac_ext <<_ACEOF
9718 #line $LINENO "configure"
9719 /* confdefs.h.  */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h.  */
9724
9725 /* Override any gcc2 internal prototype to avoid an error.  */
9726 #ifdef __cplusplus
9727 extern "C"
9728 #endif
9729 /* We use char because int might match the return type of a gcc2
9730    builtin and then its argument prototype would still apply.  */
9731 char dlopen ();
9732 int
9733 main ()
9734 {
9735 dlopen ();
9736   ;
9737   return 0;
9738 }
9739 _ACEOF
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742   (eval $ac_link) 2>&5
9743   ac_status=$?
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); } &&
9746          { ac_try='test -s conftest$ac_exeext'
9747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748   (eval $ac_try) 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; }; then
9752   ac_cv_lib_svld_dlopen=yes
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 ac_cv_lib_svld_dlopen=no
9758 fi
9759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9760 LIBS=$ac_check_lib_save_LIBS
9761 fi
9762 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9763 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9764 if test $ac_cv_lib_svld_dlopen = yes; then
9765   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9766 else
9767   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9768 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9769 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9770   echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772   ac_check_lib_save_LIBS=$LIBS
9773 LIBS="-ldld  $LIBS"
9774 cat >conftest.$ac_ext <<_ACEOF
9775 #line $LINENO "configure"
9776 /* confdefs.h.  */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h.  */
9781
9782 /* Override any gcc2 internal prototype to avoid an error.  */
9783 #ifdef __cplusplus
9784 extern "C"
9785 #endif
9786 /* We use char because int might match the return type of a gcc2
9787    builtin and then its argument prototype would still apply.  */
9788 char dld_link ();
9789 int
9790 main ()
9791 {
9792 dld_link ();
9793   ;
9794   return 0;
9795 }
9796 _ACEOF
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799   (eval $ac_link) 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); } &&
9803          { ac_try='test -s conftest$ac_exeext'
9804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805   (eval $ac_try) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); }; }; then
9809   ac_cv_lib_dld_dld_link=yes
9810 else
9811   echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 ac_cv_lib_dld_dld_link=no
9815 fi
9816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9817 LIBS=$ac_check_lib_save_LIBS
9818 fi
9819 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9820 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9821 if test $ac_cv_lib_dld_dld_link = yes; then
9822   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9823 fi
9824
9825
9826 fi
9827
9828
9829 fi
9830
9831
9832 fi
9833
9834
9835 fi
9836
9837
9838 fi
9839
9840     ;;
9841   esac
9842
9843   if test "x$lt_cv_dlopen" != xno; then
9844     enable_dlopen=yes
9845   else
9846     enable_dlopen=no
9847   fi
9848
9849   case $lt_cv_dlopen in
9850   dlopen)
9851     save_CPPFLAGS="$CPPFLAGS"
9852     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9853
9854     save_LDFLAGS="$LDFLAGS"
9855     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9856
9857     save_LIBS="$LIBS"
9858     LIBS="$lt_cv_dlopen_libs $LIBS"
9859
9860     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9861 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9862 if test "${lt_cv_dlopen_self+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865           if test "$cross_compiling" = yes; then :
9866   lt_cv_dlopen_self=cross
9867 else
9868   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9869   lt_status=$lt_dlunknown
9870   cat > conftest.$ac_ext <<EOF
9871 #line 9871 "configure"
9872 #include "confdefs.h"
9873
9874 #if HAVE_DLFCN_H
9875 #include <dlfcn.h>
9876 #endif
9877
9878 #include <stdio.h>
9879
9880 #ifdef RTLD_GLOBAL
9881 #  define LT_DLGLOBAL           RTLD_GLOBAL
9882 #else
9883 #  ifdef DL_GLOBAL
9884 #    define LT_DLGLOBAL         DL_GLOBAL
9885 #  else
9886 #    define LT_DLGLOBAL         0
9887 #  endif
9888 #endif
9889
9890 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9891    find out it does not work in some platform. */
9892 #ifndef LT_DLLAZY_OR_NOW
9893 #  ifdef RTLD_LAZY
9894 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9895 #  else
9896 #    ifdef DL_LAZY
9897 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9898 #    else
9899 #      ifdef RTLD_NOW
9900 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9901 #      else
9902 #        ifdef DL_NOW
9903 #          define LT_DLLAZY_OR_NOW      DL_NOW
9904 #        else
9905 #          define LT_DLLAZY_OR_NOW      0
9906 #        endif
9907 #      endif
9908 #    endif
9909 #  endif
9910 #endif
9911
9912 #ifdef __cplusplus
9913 extern "C" void exit (int);
9914 #endif
9915
9916 void fnord() { int i=42;}
9917 int main ()
9918 {
9919   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9920   int status = $lt_dlunknown;
9921
9922   if (self)
9923     {
9924       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9925       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9926       /* dlclose (self); */
9927     }
9928
9929     exit (status);
9930 }
9931 EOF
9932   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933   (eval $ac_link) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9937     (./conftest; exit; ) 2>/dev/null
9938     lt_status=$?
9939     case x$lt_status in
9940       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9941       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9942       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9943     esac
9944   else :
9945     # compilation failed
9946     lt_cv_dlopen_self=no
9947   fi
9948 fi
9949 rm -fr conftest*
9950
9951
9952 fi
9953 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9954 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9955
9956     if test "x$lt_cv_dlopen_self" = xyes; then
9957       LDFLAGS="$LDFLAGS $link_static_flag"
9958       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9959 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9960 if test "${lt_cv_dlopen_self_static+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963           if test "$cross_compiling" = yes; then :
9964   lt_cv_dlopen_self_static=cross
9965 else
9966   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9967   lt_status=$lt_dlunknown
9968   cat > conftest.$ac_ext <<EOF
9969 #line 9969 "configure"
9970 #include "confdefs.h"
9971
9972 #if HAVE_DLFCN_H
9973 #include <dlfcn.h>
9974 #endif
9975
9976 #include <stdio.h>
9977
9978 #ifdef RTLD_GLOBAL
9979 #  define LT_DLGLOBAL           RTLD_GLOBAL
9980 #else
9981 #  ifdef DL_GLOBAL
9982 #    define LT_DLGLOBAL         DL_GLOBAL
9983 #  else
9984 #    define LT_DLGLOBAL         0
9985 #  endif
9986 #endif
9987
9988 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9989    find out it does not work in some platform. */
9990 #ifndef LT_DLLAZY_OR_NOW
9991 #  ifdef RTLD_LAZY
9992 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9993 #  else
9994 #    ifdef DL_LAZY
9995 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9996 #    else
9997 #      ifdef RTLD_NOW
9998 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9999 #      else
10000 #        ifdef DL_NOW
10001 #          define LT_DLLAZY_OR_NOW      DL_NOW
10002 #        else
10003 #          define LT_DLLAZY_OR_NOW      0
10004 #        endif
10005 #      endif
10006 #    endif
10007 #  endif
10008 #endif
10009
10010 #ifdef __cplusplus
10011 extern "C" void exit (int);
10012 #endif
10013
10014 void fnord() { int i=42;}
10015 int main ()
10016 {
10017   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10018   int status = $lt_dlunknown;
10019
10020   if (self)
10021     {
10022       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10023       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10024       /* dlclose (self); */
10025     }
10026
10027     exit (status);
10028 }
10029 EOF
10030   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10031   (eval $ac_link) 2>&5
10032   ac_status=$?
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10035     (./conftest; exit; ) 2>/dev/null
10036     lt_status=$?
10037     case x$lt_status in
10038       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10039       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10040       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10041     esac
10042   else :
10043     # compilation failed
10044     lt_cv_dlopen_self_static=no
10045   fi
10046 fi
10047 rm -fr conftest*
10048
10049
10050 fi
10051 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10052 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10053     fi
10054
10055     CPPFLAGS="$save_CPPFLAGS"
10056     LDFLAGS="$save_LDFLAGS"
10057     LIBS="$save_LIBS"
10058     ;;
10059   esac
10060
10061   case $lt_cv_dlopen_self in
10062   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10063   *) enable_dlopen_self=unknown ;;
10064   esac
10065
10066   case $lt_cv_dlopen_self_static in
10067   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10068   *) enable_dlopen_self_static=unknown ;;
10069   esac
10070 fi
10071
10072
10073 # Report which librarie types wil actually be built
10074 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10075 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10076 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10077 echo "${ECHO_T}$can_build_shared" >&6
10078
10079 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10080 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10081 test "$can_build_shared" = "no" && enable_shared=no
10082
10083 # On AIX, shared libraries and static libraries use the same namespace, and
10084 # are all built from PIC.
10085 case "$host_os" in
10086 aix3*)
10087   test "$enable_shared" = yes && enable_static=no
10088   if test -n "$RANLIB"; then
10089     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10090     postinstall_cmds='$RANLIB $lib'
10091   fi
10092   ;;
10093
10094 aix4*)
10095   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10096     test "$enable_shared" = yes && enable_static=no
10097   fi
10098   ;;
10099   darwin* | rhapsody*)
10100   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10101     archive_cmds_need_lc=no
10102     case "$host_os" in
10103     rhapsody* | darwin1.[012])
10104       allow_undefined_flag='-undefined suppress'
10105       ;;
10106     *) # Darwin 1.3 on
10107       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
10108       ;;
10109     esac
10110     # FIXME: Relying on posixy $() will cause problems for
10111     #        cross-compilation, but unfortunately the echo tests do not
10112     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
10113     #          `"' quotes if we put them in here... so don't!
10114                 output_verbose_link_cmd='echo'
10115     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10116     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10117     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10118                   archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10119                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10120     hardcode_direct=no
10121     hardcode_automatic=yes
10122     hardcode_shlibpath_var=unsupported
10123     whole_archive_flag_spec='-all_load $convenience'
10124     link_all_deplibs=yes
10125     fi
10126     ;;
10127 esac
10128 echo "$as_me:$LINENO: result: $enable_shared" >&5
10129 echo "${ECHO_T}$enable_shared" >&6
10130
10131 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10132 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10133 # Make sure either enable_shared or enable_static is yes.
10134 test "$enable_shared" = yes || enable_static=yes
10135 echo "$as_me:$LINENO: result: $enable_static" >&5
10136 echo "${ECHO_T}$enable_static" >&6
10137
10138 # The else clause should only fire when bootstrapping the
10139 # libtool distribution, otherwise you forgot to ship ltmain.sh
10140 # with your package, and you will get complaints that there are
10141 # no rules to generate ltmain.sh.
10142 if test -f "$ltmain"; then
10143   # See if we are running on zsh, and set the options which allow our commands through
10144   # without removal of \ escapes.
10145   if test -n "${ZSH_VERSION+set}" ; then
10146     setopt NO_GLOB_SUBST
10147   fi
10148   # Now quote all the things that may contain metacharacters while being
10149   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10150   # variables and quote the copies for generation of the libtool script.
10151   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
10152     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10153     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10154     deplibs_check_method reload_flag reload_cmds need_locks \
10155     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10156     lt_cv_sys_global_symbol_to_c_name_address \
10157     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10158     old_postinstall_cmds old_postuninstall_cmds \
10159     compiler \
10160     CC \
10161     LD \
10162     lt_prog_compiler_wl \
10163     lt_prog_compiler_pic \
10164     lt_prog_compiler_static \
10165     lt_prog_compiler_no_builtin_flag \
10166     export_dynamic_flag_spec \
10167     thread_safe_flag_spec \
10168     whole_archive_flag_spec \
10169     enable_shared_with_static_runtimes \
10170     old_archive_cmds \
10171     old_archive_from_new_cmds \
10172     predep_objects \
10173     postdep_objects \
10174     predeps \
10175     postdeps \
10176     compiler_lib_search_path \
10177     archive_cmds \
10178     archive_expsym_cmds \
10179     postinstall_cmds \
10180     postuninstall_cmds \
10181     old_archive_from_expsyms_cmds \
10182     allow_undefined_flag \
10183     no_undefined_flag \
10184     export_symbols_cmds \
10185     hardcode_libdir_flag_spec \
10186     hardcode_libdir_flag_spec_ld \
10187     hardcode_libdir_separator \
10188     hardcode_automatic \
10189     module_cmds \
10190     module_expsym_cmds \
10191     lt_cv_prog_compiler_c_o \
10192     exclude_expsyms \
10193     include_expsyms; do
10194
10195     case $var in
10196     old_archive_cmds | \
10197     old_archive_from_new_cmds | \
10198     archive_cmds | \
10199     archive_expsym_cmds | \
10200     module_cmds | \
10201     module_expsym_cmds | \
10202     old_archive_from_expsyms_cmds | \
10203     export_symbols_cmds | \
10204     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10205     postinstall_cmds | postuninstall_cmds | \
10206     old_postinstall_cmds | old_postuninstall_cmds | \
10207     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10208       # Double-quote double-evaled strings.
10209       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10210       ;;
10211     *)
10212       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10213       ;;
10214     esac
10215   done
10216
10217   case $lt_echo in
10218   *'\$0 --fallback-echo"')
10219     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10220     ;;
10221   esac
10222
10223 cfgfile="${ofile}T"
10224   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10225   $rm -f "$cfgfile"
10226   { echo "$as_me:$LINENO: creating $ofile" >&5
10227 echo "$as_me: creating $ofile" >&6;}
10228
10229   cat <<__EOF__ >> "$cfgfile"
10230 #! $SHELL
10231
10232 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10233 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10234 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10235 #
10236 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10237 # Free Software Foundation, Inc.
10238 #
10239 # This file is part of GNU Libtool:
10240 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10241 #
10242 # This program is free software; you can redistribute it and/or modify
10243 # it under the terms of the GNU General Public License as published by
10244 # the Free Software Foundation; either version 2 of the License, or
10245 # (at your option) any later version.
10246 #
10247 # This program is distributed in the hope that it will be useful, but
10248 # WITHOUT ANY WARRANTY; without even the implied warranty of
10249 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10250 # General Public License for more details.
10251 #
10252 # You should have received a copy of the GNU General Public License
10253 # along with this program; if not, write to the Free Software
10254 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10255 #
10256 # As a special exception to the GNU General Public License, if you
10257 # distribute this file as part of a program that contains a
10258 # configuration script generated by Autoconf, you may include it under
10259 # the same distribution terms that you use for the rest of that program.
10260
10261 # A sed program that does not truncate output.
10262 SED=$lt_SED
10263
10264 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10265 Xsed="$SED -e s/^X//"
10266
10267 # The HP-UX ksh and POSIX shell print the target directory to stdout
10268 # if CDPATH is set.
10269 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10270
10271 # The names of the tagged configurations supported by this script.
10272 available_tags=
10273
10274 # ### BEGIN LIBTOOL CONFIG
10275
10276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10277
10278 # Shell to use when invoking shell scripts.
10279 SHELL=$lt_SHELL
10280
10281 # Whether or not to build shared libraries.
10282 build_libtool_libs=$enable_shared
10283
10284 # Whether or not to build static libraries.
10285 build_old_libs=$enable_static
10286
10287 # Whether or not to add -lc for building shared libraries.
10288 build_libtool_need_lc=$archive_cmds_need_lc
10289
10290 # Whether or not to disallow shared libs when runtime libs are static
10291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10292
10293 # Whether or not to optimize for fast installation.
10294 fast_install=$enable_fast_install
10295
10296 # The host system.
10297 host_alias=$host_alias
10298 host=$host
10299
10300 # An echo program that does not interpret backslashes.
10301 echo=$lt_echo
10302
10303 # The archiver.
10304 AR=$lt_AR
10305 AR_FLAGS=$lt_AR_FLAGS
10306
10307 # A C compiler.
10308 LTCC=$lt_LTCC
10309
10310 # A language-specific compiler.
10311 CC=$lt_compiler
10312
10313 # Is the compiler the GNU C compiler?
10314 with_gcc=$GCC
10315
10316 # An ERE matcher.
10317 EGREP=$lt_EGREP
10318
10319 # The linker used to build libraries.
10320 LD=$lt_LD
10321
10322 # Whether we need hard or soft links.
10323 LN_S=$lt_LN_S
10324
10325 # A BSD-compatible nm program.
10326 NM=$lt_NM
10327
10328 # A symbol stripping program
10329 STRIP=$STRIP
10330
10331 # Used to examine libraries when file_magic_cmd begins "file"
10332 MAGIC_CMD=$MAGIC_CMD
10333
10334 # Used on cygwin: DLL creation program.
10335 DLLTOOL="$DLLTOOL"
10336
10337 # Used on cygwin: object dumper.
10338 OBJDUMP="$OBJDUMP"
10339
10340 # Used on cygwin: assembler.
10341 AS="$AS"
10342
10343 # The name of the directory that contains temporary libtool files.
10344 objdir=$objdir
10345
10346 # How to create reloadable object files.
10347 reload_flag=$lt_reload_flag
10348 reload_cmds=$lt_reload_cmds
10349
10350 # How to pass a linker flag through the compiler.
10351 wl=$lt_lt_prog_compiler_wl
10352
10353 # Object file suffix (normally "o").
10354 objext="$ac_objext"
10355
10356 # Old archive suffix (normally "a").
10357 libext="$libext"
10358
10359 # Shared library suffix (normally ".so").
10360 shrext='$shrext'
10361
10362 # Executable file suffix (normally "").
10363 exeext="$exeext"
10364
10365 # Additional compiler flags for building library objects.
10366 pic_flag=$lt_lt_prog_compiler_pic
10367 pic_mode=$pic_mode
10368
10369 # What is the maximum length of a command?
10370 max_cmd_len=$lt_cv_sys_max_cmd_len
10371
10372 # Does compiler simultaneously support -c and -o options?
10373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10374
10375 # Must we lock files when doing compilation ?
10376 need_locks=$lt_need_locks
10377
10378 # Do we need the lib prefix for modules?
10379 need_lib_prefix=$need_lib_prefix
10380
10381 # Do we need a version for libraries?
10382 need_version=$need_version
10383
10384 # Whether dlopen is supported.
10385 dlopen_support=$enable_dlopen
10386
10387 # Whether dlopen of programs is supported.
10388 dlopen_self=$enable_dlopen_self
10389
10390 # Whether dlopen of statically linked programs is supported.
10391 dlopen_self_static=$enable_dlopen_self_static
10392
10393 # Compiler flag to prevent dynamic linking.
10394 link_static_flag=$lt_lt_prog_compiler_static
10395
10396 # Compiler flag to turn off builtin functions.
10397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10398
10399 # Compiler flag to allow reflexive dlopens.
10400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10401
10402 # Compiler flag to generate shared objects directly from archives.
10403 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10404
10405 # Compiler flag to generate thread-safe objects.
10406 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10407
10408 # Library versioning type.
10409 version_type=$version_type
10410
10411 # Format of library name prefix.
10412 libname_spec=$lt_libname_spec
10413
10414 # List of archive names.  First name is the real one, the rest are links.
10415 # The last name is the one that the linker finds with -lNAME.
10416 library_names_spec=$lt_library_names_spec
10417
10418 # The coded name of the library, if different from the real name.
10419 soname_spec=$lt_soname_spec
10420
10421 # Commands used to build and install an old-style archive.
10422 RANLIB=$lt_RANLIB
10423 old_archive_cmds=$lt_old_archive_cmds
10424 old_postinstall_cmds=$lt_old_postinstall_cmds
10425 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10426
10427 # Create an old-style archive from a shared archive.
10428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10429
10430 # Create a temporary old-style archive to link instead of a shared archive.
10431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10432
10433 # Commands used to build and install a shared archive.
10434 archive_cmds=$lt_archive_cmds
10435 archive_expsym_cmds=$lt_archive_expsym_cmds
10436 postinstall_cmds=$lt_postinstall_cmds
10437 postuninstall_cmds=$lt_postuninstall_cmds
10438
10439 # Commands used to build a loadable module (assumed same as above if empty)
10440 module_cmds=$lt_module_cmds
10441 module_expsym_cmds=$lt_module_expsym_cmds
10442
10443 # Commands to strip libraries.
10444 old_striplib=$lt_old_striplib
10445 striplib=$lt_striplib
10446
10447 # Dependencies to place before the objects being linked to create a
10448 # shared library.
10449 predep_objects=$lt_predep_objects
10450
10451 # Dependencies to place after the objects being linked to create a
10452 # shared library.
10453 postdep_objects=$lt_postdep_objects
10454
10455 # Dependencies to place before the objects being linked to create a
10456 # shared library.
10457 predeps=$lt_predeps
10458
10459 # Dependencies to place after the objects being linked to create a
10460 # shared library.
10461 postdeps=$lt_postdeps
10462
10463 # The library search path used internally by the compiler when linking
10464 # a shared library.
10465 compiler_lib_search_path=$lt_compiler_lib_search_path
10466
10467 # Method to check whether dependent libraries are shared objects.
10468 deplibs_check_method=$lt_deplibs_check_method
10469
10470 # Command to use when deplibs_check_method == file_magic.
10471 file_magic_cmd=$lt_file_magic_cmd
10472
10473 # Flag that allows shared libraries with undefined symbols to be built.
10474 allow_undefined_flag=$lt_allow_undefined_flag
10475
10476 # Flag that forces no undefined symbols.
10477 no_undefined_flag=$lt_no_undefined_flag
10478
10479 # Commands used to finish a libtool library installation in a directory.
10480 finish_cmds=$lt_finish_cmds
10481
10482 # Same as above, but a single script fragment to be evaled but not shown.
10483 finish_eval=$lt_finish_eval
10484
10485 # Take the output of nm and produce a listing of raw symbols and C names.
10486 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10487
10488 # Transform the output of nm in a proper C declaration
10489 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10490
10491 # Transform the output of nm in a C name address pair
10492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10493
10494 # This is the shared library runtime path variable.
10495 runpath_var=$runpath_var
10496
10497 # This is the shared library path variable.
10498 shlibpath_var=$shlibpath_var
10499
10500 # Is shlibpath searched before the hard-coded library search path?
10501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10502
10503 # How to hardcode a shared library path into an executable.
10504 hardcode_action=$hardcode_action
10505
10506 # Whether we should hardcode library paths into libraries.
10507 hardcode_into_libs=$hardcode_into_libs
10508
10509 # Flag to hardcode \$libdir into a binary during linking.
10510 # This must work even if \$libdir does not exist.
10511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10512
10513 # If ld is used when linking, flag to hardcode \$libdir into
10514 # a binary during linking. This must work even if \$libdir does
10515 # not exist.
10516 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10517
10518 # Whether we need a single -rpath flag with a separated argument.
10519 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10520
10521 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10522 # resulting binary.
10523 hardcode_direct=$hardcode_direct
10524
10525 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10526 # resulting binary.
10527 hardcode_minus_L=$hardcode_minus_L
10528
10529 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10530 # the resulting binary.
10531 hardcode_shlibpath_var=$hardcode_shlibpath_var
10532
10533 # Set to yes if building a shared library automatically hardcodes DIR into the library
10534 # and all subsequent libraries and executables linked against it.
10535 hardcode_automatic=$hardcode_automatic
10536
10537 # Variables whose values should be saved in libtool wrapper scripts and
10538 # restored at relink time.
10539 variables_saved_for_relink="$variables_saved_for_relink"
10540
10541 # Whether libtool must link a program against all its dependency libraries.
10542 link_all_deplibs=$link_all_deplibs
10543
10544 # Compile-time system search path for libraries
10545 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10546
10547 # Run-time system search path for libraries
10548 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10549
10550 # Fix the shell variable \$srcfile for the compiler.
10551 fix_srcfile_path="$fix_srcfile_path"
10552
10553 # Set to yes if exported symbols are required.
10554 always_export_symbols=$always_export_symbols
10555
10556 # The commands to list exported symbols.
10557 export_symbols_cmds=$lt_export_symbols_cmds
10558
10559 # The commands to extract the exported symbol list from a shared archive.
10560 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10561
10562 # Symbols that should not be listed in the preloaded symbols.
10563 exclude_expsyms=$lt_exclude_expsyms
10564
10565 # Symbols that must always be exported.
10566 include_expsyms=$lt_include_expsyms
10567
10568 # ### END LIBTOOL CONFIG
10569
10570 __EOF__
10571
10572
10573   case $host_os in
10574   aix3*)
10575     cat <<\EOF >> "$cfgfile"
10576
10577 # AIX sometimes has problems with the GCC collect2 program.  For some
10578 # reason, if we set the COLLECT_NAMES environment variable, the problems
10579 # vanish in a puff of smoke.
10580 if test "X${COLLECT_NAMES+set}" != Xset; then
10581   COLLECT_NAMES=
10582   export COLLECT_NAMES
10583 fi
10584 EOF
10585     ;;
10586   esac
10587
10588   # We use sed instead of cat because bash on DJGPP gets confused if
10589   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10590   # text mode, it properly converts lines to CR/LF.  This bash problem
10591   # is reportedly fixed, but why not run on old versions too?
10592   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10593
10594   mv -f "$cfgfile" "$ofile" || \
10595     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10596   chmod +x "$ofile"
10597
10598 else
10599   # If there is no Makefile yet, we rely on a make rule to execute
10600   # `config.status --recheck' to rerun these tests and create the
10601   # libtool script then.
10602   test -f Makefile && make "$ltmain"
10603 fi
10604
10605
10606 ac_ext=c
10607 ac_cpp='$CPP $CPPFLAGS'
10608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10611
10612 CC="$lt_save_CC"
10613
10614
10615 # Check whether --with-tags or --without-tags was given.
10616 if test "${with_tags+set}" = set; then
10617   withval="$with_tags"
10618   tagnames="$withval"
10619 fi;
10620
10621 if test -f "$ltmain" && test -n "$tagnames"; then
10622   if test ! -f "${ofile}"; then
10623     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10624 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10625   fi
10626
10627   if test -z "$LTCC"; then
10628     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10629     if test -z "$LTCC"; then
10630       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10631 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10632     else
10633       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10634 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10635     fi
10636   fi
10637
10638   # Extract list of available tagged configurations in $ofile.
10639   # Note that this assumes the entire list is on one line.
10640   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10641
10642   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10643   for tagname in $tagnames; do
10644     IFS="$lt_save_ifs"
10645     # Check whether tagname contains only valid characters
10646     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10647     "") ;;
10648     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10649 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10650    { (exit 1); exit 1; }; }
10651         ;;
10652     esac
10653
10654     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10655     then
10656       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10657 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10658    { (exit 1); exit 1; }; }
10659     fi
10660
10661     # Update the list of available tags.
10662     if test -n "$tagname"; then
10663       echo appending configuration tag \"$tagname\" to $ofile
10664
10665       case $tagname in
10666       CXX)
10667         if test -n "$CXX" && test "X$CXX" != "Xno"; then
10668           ac_ext=cc
10669 ac_cpp='$CXXCPP $CPPFLAGS'
10670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10673
10674
10675
10676
10677 archive_cmds_need_lc_CXX=no
10678 allow_undefined_flag_CXX=
10679 always_export_symbols_CXX=no
10680 archive_expsym_cmds_CXX=
10681 export_dynamic_flag_spec_CXX=
10682 hardcode_direct_CXX=no
10683 hardcode_libdir_flag_spec_CXX=
10684 hardcode_libdir_flag_spec_ld_CXX=
10685 hardcode_libdir_separator_CXX=
10686 hardcode_minus_L_CXX=no
10687 hardcode_automatic_CXX=no
10688 module_cmds_CXX=
10689 module_expsym_cmds_CXX=
10690 link_all_deplibs_CXX=unknown
10691 old_archive_cmds_CXX=$old_archive_cmds
10692 no_undefined_flag_CXX=
10693 whole_archive_flag_spec_CXX=
10694 enable_shared_with_static_runtimes_CXX=no
10695
10696 # Dependencies to place before and after the object being linked:
10697 predep_objects_CXX=
10698 postdep_objects_CXX=
10699 predeps_CXX=
10700 postdeps_CXX=
10701 compiler_lib_search_path_CXX=
10702
10703 # Source file extension for C++ test sources.
10704 ac_ext=cc
10705
10706 # Object file extension for compiled C++ test sources.
10707 objext=o
10708 objext_CXX=$objext
10709
10710 # Code to be used in simple compile tests
10711 lt_simple_compile_test_code="int some_variable = 0;\n"
10712
10713 # Code to be used in simple link tests
10714 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10715
10716 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10717
10718 # If no C compiler was specified, use CC.
10719 LTCC=${LTCC-"$CC"}
10720
10721 # Allow CC to be a program name with arguments.
10722 compiler=$CC
10723
10724
10725 # Allow CC to be a program name with arguments.
10726 lt_save_CC=$CC
10727 lt_save_LD=$LD
10728 lt_save_GCC=$GCC
10729 GCC=$GXX
10730 lt_save_with_gnu_ld=$with_gnu_ld
10731 lt_save_path_LD=$lt_cv_path_LD
10732 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10733   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10734 else
10735   unset lt_cv_prog_gnu_ld
10736 fi
10737 if test -n "${lt_cv_path_LDCXX+set}"; then
10738   lt_cv_path_LD=$lt_cv_path_LDCXX
10739 else
10740   unset lt_cv_path_LD
10741 fi
10742 test -z "${LDCXX+set}" || LD=$LDCXX
10743 CC=${CXX-"c++"}
10744 compiler=$CC
10745 compiler_CXX=$CC
10746 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10747
10748 # We don't want -fno-exception wen compiling C++ code, so set the
10749 # no_builtin_flag separately
10750 if test "$GXX" = yes; then
10751   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10752 else
10753   lt_prog_compiler_no_builtin_flag_CXX=
10754 fi
10755
10756 if test "$GXX" = yes; then
10757   # Set up default GNU C++ configuration
10758
10759
10760 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10761 if test "${with_gnu_ld+set}" = set; then
10762   withval="$with_gnu_ld"
10763   test "$withval" = no || with_gnu_ld=yes
10764 else
10765   with_gnu_ld=no
10766 fi;
10767 ac_prog=ld
10768 if test "$GCC" = yes; then
10769   # Check if gcc -print-prog-name=ld gives a path.
10770   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10771 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10772   case $host in
10773   *-*-mingw*)
10774     # gcc leaves a trailing carriage return which upsets mingw
10775     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10776   *)
10777     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10778   esac
10779   case $ac_prog in
10780     # Accept absolute paths.
10781     [\\/]* | ?:[\\/]*)
10782       re_direlt='/[^/][^/]*/\.\./'
10783       # Canonicalize the path of ld
10784       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10785       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10786         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10787       done
10788       test -z "$LD" && LD="$ac_prog"
10789       ;;
10790   "")
10791     # If it fails, then pretend we aren't using GCC.
10792     ac_prog=ld
10793     ;;
10794   *)
10795     # If it is relative, then search for the first ld in PATH.
10796     with_gnu_ld=unknown
10797     ;;
10798   esac
10799 elif test "$with_gnu_ld" = yes; then
10800   echo "$as_me:$LINENO: checking for GNU ld" >&5
10801 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10802 else
10803   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10804 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10805 fi
10806 if test "${lt_cv_path_LD+set}" = set; then
10807   echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809   if test -z "$LD"; then
10810   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10811   for ac_dir in $PATH; do
10812     IFS="$lt_save_ifs"
10813     test -z "$ac_dir" && ac_dir=.
10814     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10815       lt_cv_path_LD="$ac_dir/$ac_prog"
10816       # Check to see if the program is GNU ld.  I'd rather use --version,
10817       # but apparently some GNU ld's only accept -v.
10818       # Break only if it was the GNU/non-GNU ld that we prefer.
10819       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10820       *GNU* | *'with BFD'*)
10821         test "$with_gnu_ld" != no && break
10822         ;;
10823       *)
10824         test "$with_gnu_ld" != yes && break
10825         ;;
10826       esac
10827     fi
10828   done
10829   IFS="$lt_save_ifs"
10830 else
10831   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10832 fi
10833 fi
10834
10835 LD="$lt_cv_path_LD"
10836 if test -n "$LD"; then
10837   echo "$as_me:$LINENO: result: $LD" >&5
10838 echo "${ECHO_T}$LD" >&6
10839 else
10840   echo "$as_me:$LINENO: result: no" >&5
10841 echo "${ECHO_T}no" >&6
10842 fi
10843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10845    { (exit 1); exit 1; }; }
10846 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10848 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10849   echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10852 case `"$LD" -v 2>&1 </dev/null` in
10853 *GNU* | *'with BFD'*)
10854   lt_cv_prog_gnu_ld=yes
10855   ;;
10856 *)
10857   lt_cv_prog_gnu_ld=no
10858   ;;
10859 esac
10860 fi
10861 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10862 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10863 with_gnu_ld=$lt_cv_prog_gnu_ld
10864
10865
10866
10867   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10868   # archiving commands below assume that GNU ld is being used.
10869   if test "$with_gnu_ld" = yes; then
10870     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10871     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10872
10873     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10874     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10875
10876     # If archive_cmds runs LD, not CC, wlarc should be empty
10877     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10878     #     investigate it a little bit more. (MM)
10879     wlarc='${wl}'
10880
10881     # ancient GNU ld didn't support --whole-archive et. al.
10882     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10883         grep 'no-whole-archive' > /dev/null; then
10884       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10885     else
10886       whole_archive_flag_spec_CXX=
10887     fi
10888   else
10889     with_gnu_ld=no
10890     wlarc=
10891
10892     # A generic and very simple default shared library creation
10893     # command for GNU C++ for the case where it uses the native
10894     # linker, instead of GNU ld.  If possible, this setting should
10895     # overridden to take advantage of the native linker features on
10896     # the platform it is being used on.
10897     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10898   fi
10899
10900   # Commands to make compiler produce verbose output that lists
10901   # what "hidden" libraries, object files and flags are used when
10902   # linking a shared library.
10903   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10904
10905 else
10906   GXX=no
10907   with_gnu_ld=no
10908   wlarc=
10909 fi
10910
10911 # PORTME: fill in a description of your system's C++ link characteristics
10912 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10914 ld_shlibs_CXX=yes
10915 case $host_os in
10916   aix3*)
10917     # FIXME: insert proper C++ library support
10918     ld_shlibs_CXX=no
10919     ;;
10920   aix4* | aix5*)
10921     if test "$host_cpu" = ia64; then
10922       # On IA64, the linker does run time linking by default, so we don't
10923       # have to do anything special.
10924       aix_use_runtimelinking=no
10925       exp_sym_flag='-Bexport'
10926       no_entry_flag=""
10927     else
10928       aix_use_runtimelinking=no
10929
10930       # Test if we are trying to use run time linking or normal
10931       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10932       # need to do runtime linking.
10933       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10934         for ld_flag in $LDFLAGS; do
10935           case $ld_flag in
10936           *-brtl*)
10937             aix_use_runtimelinking=yes
10938             break
10939             ;;
10940           esac
10941         done
10942       esac
10943
10944       exp_sym_flag='-bexport'
10945       no_entry_flag='-bnoentry'
10946     fi
10947
10948     # When large executables or shared objects are built, AIX ld can
10949     # have problems creating the table of contents.  If linking a library
10950     # or program results in "error TOC overflow" add -mminimal-toc to
10951     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10952     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10953
10954     archive_cmds_CXX=''
10955     hardcode_direct_CXX=yes
10956     hardcode_libdir_separator_CXX=':'
10957     link_all_deplibs_CXX=yes
10958
10959     if test "$GXX" = yes; then
10960       case $host_os in aix4.012|aix4.012.*)
10961       # We only want to do this on AIX 4.2 and lower, the check
10962       # below for broken collect2 doesn't work under 4.3+
10963         collect2name=`${CC} -print-prog-name=collect2`
10964         if test -f "$collect2name" && \
10965            strings "$collect2name" | grep resolve_lib_name >/dev/null
10966         then
10967           # We have reworked collect2
10968           hardcode_direct_CXX=yes
10969         else
10970           # We have old collect2
10971           hardcode_direct_CXX=unsupported
10972           # It fails to find uninstalled libraries when the uninstalled
10973           # path is not listed in the libpath.  Setting hardcode_minus_L
10974           # to unsupported forces relinking
10975           hardcode_minus_L_CXX=yes
10976           hardcode_libdir_flag_spec_CXX='-L$libdir'
10977           hardcode_libdir_separator_CXX=
10978         fi
10979       esac
10980       shared_flag='-shared'
10981     else
10982       # not using gcc
10983       if test "$host_cpu" = ia64; then
10984         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10985         # chokes on -Wl,-G. The following line is correct:
10986         shared_flag='-G'
10987       else
10988         if test "$aix_use_runtimelinking" = yes; then
10989           shared_flag='${wl}-G'
10990         else
10991           shared_flag='${wl}-bM:SRE'
10992         fi
10993       fi
10994     fi
10995
10996     # It seems that -bexpall does not export symbols beginning with
10997     # underscore (_), so it is better to generate a list of symbols to export.
10998     always_export_symbols_CXX=yes
10999     if test "$aix_use_runtimelinking" = yes; then
11000       # Warning - without using the other runtime loading flags (-brtl),
11001       # -berok will link without error, but may produce a broken library.
11002       allow_undefined_flag_CXX='-berok'
11003       # Determine the default libpath from the value encoded in an empty executable.
11004       cat >conftest.$ac_ext <<_ACEOF
11005 #line $LINENO "configure"
11006 /* confdefs.h.  */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h.  */
11011
11012 int
11013 main ()
11014 {
11015
11016   ;
11017   return 0;
11018 }
11019 _ACEOF
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022   (eval $ac_link) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); } &&
11026          { ac_try='test -s conftest$ac_exeext'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; }; then
11032
11033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11034 }'`
11035 # Check for a 64-bit object if we didn't find anything.
11036 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11037 }'`; fi
11038 else
11039   echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11041
11042 fi
11043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11044 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11045
11046       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11047
11048       archive_expsym_cmds_CXX="\$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"
11049      else
11050       if test "$host_cpu" = ia64; then
11051         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11052         allow_undefined_flag_CXX="-z nodefs"
11053         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11054       else
11055         # Determine the default libpath from the value encoded in an empty executable.
11056         cat >conftest.$ac_ext <<_ACEOF
11057 #line $LINENO "configure"
11058 /* confdefs.h.  */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h.  */
11063
11064 int
11065 main ()
11066 {
11067
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074   (eval $ac_link) 2>&5
11075   ac_status=$?
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); } &&
11078          { ac_try='test -s conftest$ac_exeext'
11079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080   (eval $ac_try) 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }; }; then
11084
11085 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11086 }'`
11087 # Check for a 64-bit object if we didn't find anything.
11088 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11089 }'`; fi
11090 else
11091   echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 fi
11095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11097
11098         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11099         # Warning - without using the other run time loading flags,
11100         # -berok will link without error, but may produce a broken library.
11101         no_undefined_flag_CXX=' ${wl}-bernotok'
11102         allow_undefined_flag_CXX=' ${wl}-berok'
11103         # -bexpall does not export symbols beginning with underscore (_)
11104         always_export_symbols_CXX=yes
11105         # Exported symbols can be pulled into shared objects from archives
11106         whole_archive_flag_spec_CXX=' '
11107         archive_cmds_need_lc_CXX=yes
11108         # This is similar to how AIX traditionally builds it's shared libraries.
11109         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11110       fi
11111     fi
11112     ;;
11113   chorus*)
11114     case $cc_basename in
11115       *)
11116         # FIXME: insert proper C++ library support
11117         ld_shlibs_CXX=no
11118         ;;
11119     esac
11120     ;;
11121
11122   cygwin* | mingw* | pw32*)
11123     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11124     # as there is no search path for DLLs.
11125     hardcode_libdir_flag_spec_CXX='-L$libdir'
11126     allow_undefined_flag_CXX=unsupported
11127     always_export_symbols_CXX=no
11128     enable_shared_with_static_runtimes_CXX=yes
11129
11130     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11131       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11132       # If the export-symbols file already is a .def file (1st line
11133       # is EXPORTS), use it as is; otherwise, prepend...
11134       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11135         cp $export_symbols $output_objdir/$soname.def;
11136       else
11137         echo EXPORTS > $output_objdir/$soname.def;
11138         cat $export_symbols >> $output_objdir/$soname.def;
11139       fi~
11140       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11141     else
11142       ld_shlibs_CXX=no
11143     fi
11144   ;;
11145
11146   darwin* | rhapsody*)
11147    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11148     archive_cmds_need_lc_CXX=no
11149     case "$host_os" in
11150     rhapsody* | darwin1.[012])
11151       allow_undefined_flag_CXX='-undefined suppress'
11152       ;;
11153     *) # Darwin 1.3 on
11154       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11155       ;;
11156     esac
11157         lt_int_apple_cc_single_mod=no
11158         output_verbose_link_cmd='echo'
11159         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11160           lt_int_apple_cc_single_mod=yes
11161         fi
11162         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11163           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11164         else
11165         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11166       fi
11167       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
11168
11169     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11170       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11171         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11172       else
11173         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11174       fi
11175         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11176     hardcode_direct_CXX=no
11177     hardcode_automatic_CXX=yes
11178     hardcode_shlibpath_var_CXX=unsupported
11179     whole_archive_flag_spec_CXX='-all_load $convenience'
11180     link_all_deplibs_CXX=yes
11181    fi
11182     ;;
11183
11184   dgux*)
11185     case $cc_basename in
11186       ec++)
11187         # FIXME: insert proper C++ library support
11188         ld_shlibs_CXX=no
11189         ;;
11190       ghcx)
11191         # Green Hills C++ Compiler
11192         # FIXME: insert proper C++ library support
11193         ld_shlibs_CXX=no
11194         ;;
11195       *)
11196         # FIXME: insert proper C++ library support
11197         ld_shlibs_CXX=no
11198         ;;
11199     esac
11200     ;;
11201   freebsd12*)
11202     # C++ shared libraries reported to be fairly broken before switch to ELF
11203     ld_shlibs_CXX=no
11204     ;;
11205   freebsd-elf*)
11206     archive_cmds_need_lc_CXX=no
11207     ;;
11208   freebsd*)
11209     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11210     # conventions
11211     ld_shlibs_CXX=yes
11212     ;;
11213   gnu*)
11214     ;;
11215   hpux9*)
11216     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11217     hardcode_libdir_separator_CXX=:
11218     export_dynamic_flag_spec_CXX='${wl}-E'
11219     hardcode_direct_CXX=yes
11220     hardcode_minus_L_CXX=yes # Not in the search PATH,
11221                                 # but as the default
11222                                 # location of the library.
11223
11224     case $cc_basename in
11225     CC)
11226       # FIXME: insert proper C++ library support
11227       ld_shlibs_CXX=no
11228       ;;
11229     aCC)
11230       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11231       # Commands to make compiler produce verbose output that lists
11232       # what "hidden" libraries, object files and flags are used when
11233       # linking a shared library.
11234       #
11235       # There doesn't appear to be a way to prevent this compiler from
11236       # explicitly linking system object files so we need to strip them
11237       # from the output so that they don't get included in the library
11238       # dependencies.
11239       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11240       ;;
11241     *)
11242       if test "$GXX" = yes; then
11243         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11244       else
11245         # FIXME: insert proper C++ library support
11246         ld_shlibs_CXX=no
11247       fi
11248       ;;
11249     esac
11250     ;;
11251   hpux10*|hpux11*)
11252     if test $with_gnu_ld = no; then
11253       case "$host_cpu" in
11254       hppa*64*)
11255         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11256         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11257         hardcode_libdir_separator_CXX=:
11258         ;;
11259       ia64*)
11260         hardcode_libdir_flag_spec_CXX='-L$libdir'
11261         ;;
11262       *)
11263         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11264         hardcode_libdir_separator_CXX=:
11265         export_dynamic_flag_spec_CXX='${wl}-E'
11266         ;;
11267       esac
11268     fi
11269     case "$host_cpu" in
11270     hppa*64*)
11271       hardcode_direct_CXX=no
11272       hardcode_shlibpath_var_CXX=no
11273       ;;
11274     ia64*)
11275       hardcode_direct_CXX=no
11276       hardcode_shlibpath_var_CXX=no
11277       hardcode_minus_L_CXX=yes # Not in the search PATH,
11278                                               # but as the default
11279                                               # location of the library.
11280       ;;
11281     *)
11282       hardcode_direct_CXX=yes
11283       hardcode_minus_L_CXX=yes # Not in the search PATH,
11284                                               # but as the default
11285                                               # location of the library.
11286       ;;
11287     esac
11288
11289     case $cc_basename in
11290       CC)
11291         # FIXME: insert proper C++ library support
11292         ld_shlibs_CXX=no
11293         ;;
11294       aCC)
11295         case "$host_cpu" in
11296         hppa*64*|ia64*)
11297           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11298           ;;
11299         *)
11300           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11301           ;;
11302         esac
11303         # Commands to make compiler produce verbose output that lists
11304         # what "hidden" libraries, object files and flags are used when
11305         # linking a shared library.
11306         #
11307         # There doesn't appear to be a way to prevent this compiler from
11308         # explicitly linking system object files so we need to strip them
11309         # from the output so that they don't get included in the library
11310         # dependencies.
11311         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11312         ;;
11313       *)
11314         if test "$GXX" = yes; then
11315           if test $with_gnu_ld = no; then
11316             case "$host_cpu" in
11317             ia64*|hppa*64*)
11318               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11319               ;;
11320             *)
11321               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11322               ;;
11323             esac
11324           fi
11325         else
11326           # FIXME: insert proper C++ library support
11327           ld_shlibs_CXX=no
11328         fi
11329         ;;
11330     esac
11331     ;;
11332   irix5* | irix6*)
11333     case $cc_basename in
11334       CC)
11335         # SGI C++
11336         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11337
11338         # Archives containing C++ object files must be created using
11339         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11340         # necessary to make sure instantiated templates are included
11341         # in the archive.
11342         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11343         ;;
11344       *)
11345         if test "$GXX" = yes; then
11346           if test "$with_gnu_ld" = no; then
11347             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11348           else
11349             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11350           fi
11351         fi
11352         link_all_deplibs_CXX=yes
11353         ;;
11354     esac
11355     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11356     hardcode_libdir_separator_CXX=:
11357     ;;
11358   linux*)
11359     case $cc_basename in
11360       KCC)
11361         # Kuck and Associates, Inc. (KAI) C++ Compiler
11362
11363         # KCC will only create a shared library if the output file
11364         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11365         # to its proper name (with version) after linking.
11366         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11367         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11368         # Commands to make compiler produce verbose output that lists
11369         # what "hidden" libraries, object files and flags are used when
11370         # linking a shared library.
11371         #
11372         # There doesn't appear to be a way to prevent this compiler from
11373         # explicitly linking system object files so we need to strip them
11374         # from the output so that they don't get included in the library
11375         # dependencies.
11376         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11377
11378         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11379         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11380
11381         # Archives containing C++ object files must be created using
11382         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11383         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11384         ;;
11385       icpc)
11386         # Intel C++
11387         with_gnu_ld=yes
11388         archive_cmds_need_lc_CXX=no
11389         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11390         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11391         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11392         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11393         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11394         ;;
11395       cxx)
11396         # Compaq C++
11397         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11398         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11399
11400         runpath_var=LD_RUN_PATH
11401         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11402         hardcode_libdir_separator_CXX=:
11403
11404         # Commands to make compiler produce verbose output that lists
11405         # what "hidden" libraries, object files and flags are used when
11406         # linking a shared library.
11407         #
11408         # There doesn't appear to be a way to prevent this compiler from
11409         # explicitly linking system object files so we need to strip them
11410         # from the output so that they don't get included in the library
11411         # dependencies.
11412         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11413         ;;
11414     esac
11415     ;;
11416   lynxos*)
11417     # FIXME: insert proper C++ library support
11418     ld_shlibs_CXX=no
11419     ;;
11420   m88k*)
11421     # FIXME: insert proper C++ library support
11422     ld_shlibs_CXX=no
11423     ;;
11424   mvs*)
11425     case $cc_basename in
11426       cxx)
11427         # FIXME: insert proper C++ library support
11428         ld_shlibs_CXX=no
11429         ;;
11430       *)
11431         # FIXME: insert proper C++ library support
11432         ld_shlibs_CXX=no
11433         ;;
11434     esac
11435     ;;
11436   netbsd*)
11437     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11438       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11439       wlarc=
11440       hardcode_libdir_flag_spec_CXX='-R$libdir'
11441       hardcode_direct_CXX=yes
11442       hardcode_shlibpath_var_CXX=no
11443     fi
11444     # Workaround some broken pre-1.5 toolchains
11445     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11446     ;;
11447   osf3*)
11448     case $cc_basename in
11449       KCC)
11450         # Kuck and Associates, Inc. (KAI) C++ Compiler
11451
11452         # KCC will only create a shared library if the output file
11453         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11454         # to its proper name (with version) after linking.
11455         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11456
11457         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11458         hardcode_libdir_separator_CXX=:
11459
11460         # Archives containing C++ object files must be created using
11461         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11462         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11463
11464         ;;
11465       RCC)
11466         # Rational C++ 2.4.1
11467         # FIXME: insert proper C++ library support
11468         ld_shlibs_CXX=no
11469         ;;
11470       cxx)
11471         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11472         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11473
11474         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11475         hardcode_libdir_separator_CXX=:
11476
11477         # Commands to make compiler produce verbose output that lists
11478         # what "hidden" libraries, object files and flags are used when
11479         # linking a shared library.
11480         #
11481         # There doesn't appear to be a way to prevent this compiler from
11482         # explicitly linking system object files so we need to strip them
11483         # from the output so that they don't get included in the library
11484         # dependencies.
11485         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11486         ;;
11487       *)
11488         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11489           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11490           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11491
11492           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11493           hardcode_libdir_separator_CXX=:
11494
11495           # Commands to make compiler produce verbose output that lists
11496           # what "hidden" libraries, object files and flags are used when
11497           # linking a shared library.
11498           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11499
11500         else
11501           # FIXME: insert proper C++ library support
11502           ld_shlibs_CXX=no
11503         fi
11504         ;;
11505     esac
11506     ;;
11507   osf4* | osf5*)
11508     case $cc_basename in
11509       KCC)
11510         # Kuck and Associates, Inc. (KAI) C++ Compiler
11511
11512         # KCC will only create a shared library if the output file
11513         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11514         # to its proper name (with version) after linking.
11515         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11516
11517         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11518         hardcode_libdir_separator_CXX=:
11519
11520         # Archives containing C++ object files must be created using
11521         # the KAI C++ compiler.
11522         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11523         ;;
11524       RCC)
11525         # Rational C++ 2.4.1
11526         # FIXME: insert proper C++ library support
11527         ld_shlibs_CXX=no
11528         ;;
11529       cxx)
11530         allow_undefined_flag_CXX=' -expect_unresolved \*'
11531         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11532         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11533           echo "-hidden">> $lib.exp~
11534           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11535           $rm $lib.exp'
11536
11537         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11538         hardcode_libdir_separator_CXX=:
11539
11540         # Commands to make compiler produce verbose output that lists
11541         # what "hidden" libraries, object files and flags are used when
11542         # linking a shared library.
11543         #
11544         # There doesn't appear to be a way to prevent this compiler from
11545         # explicitly linking system object files so we need to strip them
11546         # from the output so that they don't get included in the library
11547         # dependencies.
11548         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11549         ;;
11550       *)
11551         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11552           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11553          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11554
11555           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11556           hardcode_libdir_separator_CXX=:
11557
11558           # Commands to make compiler produce verbose output that lists
11559           # what "hidden" libraries, object files and flags are used when
11560           # linking a shared library.
11561           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11562
11563         else
11564           # FIXME: insert proper C++ library support
11565           ld_shlibs_CXX=no
11566         fi
11567         ;;
11568     esac
11569     ;;
11570   psos*)
11571     # FIXME: insert proper C++ library support
11572     ld_shlibs_CXX=no
11573     ;;
11574   sco*)
11575     archive_cmds_need_lc_CXX=no
11576     case $cc_basename in
11577       CC)
11578         # FIXME: insert proper C++ library support
11579         ld_shlibs_CXX=no
11580         ;;
11581       *)
11582         # FIXME: insert proper C++ library support
11583         ld_shlibs_CXX=no
11584         ;;
11585     esac
11586     ;;
11587   sunos4*)
11588     case $cc_basename in
11589       CC)
11590         # Sun C++ 4.x
11591         # FIXME: insert proper C++ library support
11592         ld_shlibs_CXX=no
11593         ;;
11594       lcc)
11595         # Lucid
11596         # FIXME: insert proper C++ library support
11597         ld_shlibs_CXX=no
11598         ;;
11599       *)
11600         # FIXME: insert proper C++ library support
11601         ld_shlibs_CXX=no
11602         ;;
11603     esac
11604     ;;
11605   solaris*)
11606     case $cc_basename in
11607       CC)
11608         # Sun C++ 4.2, 5.x and Centerline C++
11609         no_undefined_flag_CXX=' -zdefs'
11610         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11611         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11612         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11613
11614         hardcode_libdir_flag_spec_CXX='-R$libdir'
11615         hardcode_shlibpath_var_CXX=no
11616         case $host_os in
11617           solaris2.0-5 | solaris2.0-5.*) ;;
11618           *)
11619             # The C++ compiler is used as linker so we must use $wl
11620             # flag to pass the commands to the underlying system
11621             # linker.
11622             # Supported since Solaris 2.6 (maybe 2.5.1?)
11623             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11624             ;;
11625         esac
11626         link_all_deplibs_CXX=yes
11627
11628         # Commands to make compiler produce verbose output that lists
11629         # what "hidden" libraries, object files and flags are used when
11630         # linking a shared library.
11631         #
11632         # There doesn't appear to be a way to prevent this compiler from
11633         # explicitly linking system object files so we need to strip them
11634         # from the output so that they don't get included in the library
11635         # dependencies.
11636         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11637
11638         # Archives containing C++ object files must be created using
11639         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11640         # necessary to make sure instantiated templates are included
11641         # in the archive.
11642         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11643         ;;
11644       gcx)
11645         # Green Hills C++ Compiler
11646         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11647
11648         # The C++ compiler must be used to create the archive.
11649         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11650         ;;
11651       *)
11652         # GNU C++ compiler with Solaris linker
11653         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11654           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11655           if $CC --version | grep -v '^2\.7' > /dev/null; then
11656             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11657             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11658                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11659
11660             # Commands to make compiler produce verbose output that lists
11661             # what "hidden" libraries, object files and flags are used when
11662             # linking a shared library.
11663             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11664           else
11665             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11666             # platform.
11667             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11668             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11669                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11670
11671             # Commands to make compiler produce verbose output that lists
11672             # what "hidden" libraries, object files and flags are used when
11673             # linking a shared library.
11674             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11675           fi
11676
11677           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11678         fi
11679         ;;
11680     esac
11681     ;;
11682   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11683     archive_cmds_need_lc_CXX=no
11684     ;;
11685   tandem*)
11686     case $cc_basename in
11687       NCC)
11688         # NonStop-UX NCC 3.20
11689         # FIXME: insert proper C++ library support
11690         ld_shlibs_CXX=no
11691         ;;
11692       *)
11693         # FIXME: insert proper C++ library support
11694         ld_shlibs_CXX=no
11695         ;;
11696     esac
11697     ;;
11698   vxworks*)
11699     # FIXME: insert proper C++ library support
11700     ld_shlibs_CXX=no
11701     ;;
11702   *)
11703     # FIXME: insert proper C++ library support
11704     ld_shlibs_CXX=no
11705     ;;
11706 esac
11707 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11708 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11709 test "$ld_shlibs_CXX" = no && can_build_shared=no
11710
11711 GCC_CXX="$GXX"
11712 LD_CXX="$LD"
11713
11714 ## CAVEAT EMPTOR:
11715 ## There is no encapsulation within the following macros, do not change
11716 ## the running order or otherwise move them around unless you know exactly
11717 ## what you are doing...
11718
11719 cat > conftest.$ac_ext <<EOF
11720 class Foo
11721 {
11722 public:
11723   Foo (void) { a = 0; }
11724 private:
11725   int a;
11726 };
11727 EOF
11728
11729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730   (eval $ac_compile) 2>&5
11731   ac_status=$?
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); }; then
11734   # Parse the compiler output and extract the necessary
11735   # objects, libraries and library flags.
11736
11737   # Sentinel used to keep track of whether or not we are before
11738   # the conftest object file.
11739   pre_test_object_deps_done=no
11740
11741   # The `*' in the case matches for architectures that use `case' in
11742   # $output_verbose_cmd can trigger glob expansion during the loop
11743   # eval without this substitution.
11744   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11745
11746   for p in `eval $output_verbose_link_cmd`; do
11747     case $p in
11748
11749     -L* | -R* | -l*)
11750        # Some compilers place space between "-{L,R}" and the path.
11751        # Remove the space.
11752        if test $p = "-L" \
11753           || test $p = "-R"; then
11754          prev=$p
11755          continue
11756        else
11757          prev=
11758        fi
11759
11760        if test "$pre_test_object_deps_done" = no; then
11761          case $p in
11762          -L* | -R*)
11763            # Internal compiler library paths should come after those
11764            # provided the user.  The postdeps already come after the
11765            # user supplied libs so there is no need to process them.
11766            if test -z "$compiler_lib_search_path_CXX"; then
11767              compiler_lib_search_path_CXX="${prev}${p}"
11768            else
11769              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11770            fi
11771            ;;
11772          # The "-l" case would never come before the object being
11773          # linked, so don't bother handling this case.
11774          esac
11775        else
11776          if test -z "$postdeps_CXX"; then
11777            postdeps_CXX="${prev}${p}"
11778          else
11779            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11780          fi
11781        fi
11782        ;;
11783
11784     *.$objext)
11785        # This assumes that the test object file only shows up
11786        # once in the compiler output.
11787        if test "$p" = "conftest.$objext"; then
11788          pre_test_object_deps_done=yes
11789          continue
11790        fi
11791
11792        if test "$pre_test_object_deps_done" = no; then
11793          if test -z "$predep_objects_CXX"; then
11794            predep_objects_CXX="$p"
11795          else
11796            predep_objects_CXX="$predep_objects_CXX $p"
11797          fi
11798        else
11799          if test -z "$postdep_objects_CXX"; then
11800            postdep_objects_CXX="$p"
11801          else
11802            postdep_objects_CXX="$postdep_objects_CXX $p"
11803          fi
11804        fi
11805        ;;
11806
11807     *) ;; # Ignore the rest.
11808
11809     esac
11810   done
11811
11812   # Clean up.
11813   rm -f a.out a.exe
11814 else
11815   echo "libtool.m4: error: problem compiling CXX test program"
11816 fi
11817
11818 $rm -f confest.$objext
11819
11820 case " $postdeps_CXX " in
11821 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11822 esac
11823
11824 lt_prog_compiler_wl_CXX=
11825 lt_prog_compiler_pic_CXX=
11826 lt_prog_compiler_static_CXX=
11827
11828 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11829 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11830
11831   # C++ specific cases for pic, static, wl, etc.
11832   if test "$GXX" = yes; then
11833     lt_prog_compiler_wl_CXX='-Wl,'
11834     lt_prog_compiler_static_CXX='-static'
11835
11836     case $host_os in
11837     aix*)
11838       # All AIX code is PIC.
11839       if test "$host_cpu" = ia64; then
11840         # AIX 5 now supports IA64 processor
11841         lt_prog_compiler_static_CXX='-Bstatic'
11842       fi
11843       ;;
11844     amigaos*)
11845       # FIXME: we need at least 68020 code to build shared libraries, but
11846       # adding the `-m68020' flag to GCC prevents building anything better,
11847       # like `-m68040'.
11848       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11849       ;;
11850     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11851       # PIC is the default for these OSes.
11852       ;;
11853     mingw* | os2* | pw32*)
11854       # This hack is so that the source file can tell whether it is being
11855       # built for inclusion in a dll (and should export symbols for example).
11856       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11857       ;;
11858     darwin* | rhapsody*)
11859       # PIC is the default on this platform
11860       # Common symbols not allowed in MH_DYLIB files
11861       lt_prog_compiler_pic_CXX='-fno-common'
11862       ;;
11863     *djgpp*)
11864       # DJGPP does not support shared libraries at all
11865       lt_prog_compiler_pic_CXX=
11866       ;;
11867     sysv4*MP*)
11868       if test -d /usr/nec; then
11869         lt_prog_compiler_pic_CXX=-Kconform_pic
11870       fi
11871       ;;
11872     hpux*)
11873       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11874       # not for PA HP-UX.
11875       case "$host_cpu" in
11876       hppa*64*|ia64*)
11877         ;;
11878       *)
11879         lt_prog_compiler_pic_CXX='-fPIC'
11880         ;;
11881       esac
11882       ;;
11883     *)
11884       lt_prog_compiler_pic_CXX='-fPIC'
11885       ;;
11886     esac
11887   else
11888     case $host_os in
11889       aix4* | aix5*)
11890         # All AIX code is PIC.
11891         if test "$host_cpu" = ia64; then
11892           # AIX 5 now supports IA64 processor
11893           lt_prog_compiler_static_CXX='-Bstatic'
11894         else
11895           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11896         fi
11897         ;;
11898       chorus*)
11899         case $cc_basename in
11900         cxch68)
11901           # Green Hills C++ Compiler
11902           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11903           ;;
11904         esac
11905         ;;
11906       dgux*)
11907         case $cc_basename in
11908           ec++)
11909             lt_prog_compiler_pic_CXX='-KPIC'
11910             ;;
11911           ghcx)
11912             # Green Hills C++ Compiler
11913             lt_prog_compiler_pic_CXX='-pic'
11914             ;;
11915           *)
11916             ;;
11917         esac
11918         ;;
11919       freebsd*)
11920         # FreeBSD uses GNU C++
11921         ;;
11922       hpux9* | hpux10* | hpux11*)
11923         case $cc_basename in
11924           CC)
11925             lt_prog_compiler_wl_CXX='-Wl,'
11926             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11927             if test "$host_cpu" != ia64; then
11928               lt_prog_compiler_pic_CXX='+Z'
11929             fi
11930             ;;
11931           aCC)
11932             lt_prog_compiler_wl_CXX='-Wl,'
11933             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11934             case "$host_cpu" in
11935             hppa*64*|ia64*)
11936               # +Z the default
11937               ;;
11938             *)
11939               lt_prog_compiler_pic_CXX='+Z'
11940               ;;
11941             esac
11942             ;;
11943           *)
11944             ;;
11945         esac
11946         ;;
11947       irix5* | irix6* | nonstopux*)
11948         case $cc_basename in
11949           CC)
11950             lt_prog_compiler_wl_CXX='-Wl,'
11951             lt_prog_compiler_static_CXX='-non_shared'
11952             # CC pic flag -KPIC is the default.
11953             ;;
11954           *)
11955             ;;
11956         esac
11957         ;;
11958       linux*)
11959         case $cc_basename in
11960           KCC)
11961             # KAI C++ Compiler
11962             lt_prog_compiler_wl_CXX='--backend -Wl,'
11963             lt_prog_compiler_pic_CXX='-fPIC'
11964             ;;
11965           icpc)
11966             # Intel C++
11967             lt_prog_compiler_wl_CXX='-Wl,'
11968             lt_prog_compiler_pic_CXX='-KPIC'
11969             lt_prog_compiler_static_CXX='-static'
11970             ;;
11971           cxx)
11972             # Compaq C++
11973             # Make sure the PIC flag is empty.  It appears that all Alpha
11974             # Linux and Compaq Tru64 Unix objects are PIC.
11975             lt_prog_compiler_pic_CXX=
11976             lt_prog_compiler_static_CXX='-non_shared'
11977             ;;
11978           *)
11979             ;;
11980         esac
11981         ;;
11982       lynxos*)
11983         ;;
11984       m88k*)
11985         ;;
11986       mvs*)
11987         case $cc_basename in
11988           cxx)
11989             lt_prog_compiler_pic_CXX='-W c,exportall'
11990             ;;
11991           *)
11992             ;;
11993         esac
11994         ;;
11995       netbsd*)
11996         ;;
11997       osf3* | osf4* | osf5*)
11998         case $cc_basename in
11999           KCC)
12000             lt_prog_compiler_wl_CXX='--backend -Wl,'
12001             ;;
12002           RCC)
12003             # Rational C++ 2.4.1
12004             lt_prog_compiler_pic_CXX='-pic'
12005             ;;
12006           cxx)
12007             # Digital/Compaq C++
12008             lt_prog_compiler_wl_CXX='-Wl,'
12009             # Make sure the PIC flag is empty.  It appears that all Alpha
12010             # Linux and Compaq Tru64 Unix objects are PIC.
12011             lt_prog_compiler_pic_CXX=
12012             lt_prog_compiler_static_CXX='-non_shared'
12013             ;;
12014           *)
12015             ;;
12016         esac
12017         ;;
12018       psos*)
12019         ;;
12020       sco*)
12021         case $cc_basename in
12022           CC)
12023             lt_prog_compiler_pic_CXX='-fPIC'
12024             ;;
12025           *)
12026             ;;
12027         esac
12028         ;;
12029       solaris*)
12030         case $cc_basename in
12031           CC)
12032             # Sun C++ 4.2, 5.x and Centerline C++
12033             lt_prog_compiler_pic_CXX='-KPIC'
12034             lt_prog_compiler_static_CXX='-Bstatic'
12035             lt_prog_compiler_wl_CXX='-Qoption ld '
12036             ;;
12037           gcx)
12038             # Green Hills C++ Compiler
12039             lt_prog_compiler_pic_CXX='-PIC'
12040             ;;
12041           *)
12042             ;;
12043         esac
12044         ;;
12045       sunos4*)
12046         case $cc_basename in
12047           CC)
12048             # Sun C++ 4.x
12049             lt_prog_compiler_pic_CXX='-pic'
12050             lt_prog_compiler_static_CXX='-Bstatic'
12051             ;;
12052           lcc)
12053             # Lucid
12054             lt_prog_compiler_pic_CXX='-pic'
12055             ;;
12056           *)
12057             ;;
12058         esac
12059         ;;
12060       tandem*)
12061         case $cc_basename in
12062           NCC)
12063             # NonStop-UX NCC 3.20
12064             lt_prog_compiler_pic_CXX='-KPIC'
12065             ;;
12066           *)
12067             ;;
12068         esac
12069         ;;
12070       unixware*)
12071         ;;
12072       vxworks*)
12073         ;;
12074       *)
12075         lt_prog_compiler_can_build_shared_CXX=no
12076         ;;
12077     esac
12078   fi
12079
12080 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12081 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12082
12083 #
12084 # Check to make sure the PIC flag actually works.
12085 #
12086 if test -n "$lt_prog_compiler_pic_CXX"; then
12087   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12089 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12090   echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092   lt_prog_compiler_pic_works_CXX=no
12093   ac_outfile=conftest.$ac_objext
12094    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12095    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12096    # Insert the option either (1) after the last *FLAGS variable, or
12097    # (2) before a word containing "conftest.", or (3) at the end.
12098    # Note that $ac_compile itself does not contain backslashes and begins
12099    # with a dollar sign (not a hyphen), so the echo should work correctly.
12100    # The option is referenced via a variable to avoid confusing sed.
12101    lt_compile=`echo "$ac_compile" | $SED \
12102    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12103    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12104    -e 's:$: $lt_compiler_flag:'`
12105    (eval echo "\"\$as_me:12105: $lt_compile\"" >&5)
12106    (eval "$lt_compile" 2>conftest.err)
12107    ac_status=$?
12108    cat conftest.err >&5
12109    echo "$as_me:12109: \$? = $ac_status" >&5
12110    if (exit $ac_status) && test -s "$ac_outfile"; then
12111      # The compiler can only warn and ignore the option if not recognized
12112      # So say no if there are warnings
12113      if test ! -s conftest.err; then
12114        lt_prog_compiler_pic_works_CXX=yes
12115      fi
12116    fi
12117    $rm conftest*
12118
12119 fi
12120 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12121 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12122
12123 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12124     case $lt_prog_compiler_pic_CXX in
12125      "" | " "*) ;;
12126      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12127      esac
12128 else
12129     lt_prog_compiler_pic_CXX=
12130      lt_prog_compiler_can_build_shared_CXX=no
12131 fi
12132
12133 fi
12134 case "$host_os" in
12135   # For platforms which do not support PIC, -DPIC is meaningless:
12136   *djgpp*)
12137     lt_prog_compiler_pic_CXX=
12138     ;;
12139   *)
12140     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12141     ;;
12142 esac
12143
12144 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12145 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12146 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12147   echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149   lt_cv_prog_compiler_c_o_CXX=no
12150    $rm -r conftest 2>/dev/null
12151    mkdir conftest
12152    cd conftest
12153    mkdir out
12154    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12155
12156    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12157    # that will create temporary files in the current directory regardless of
12158    # the output directory.  Thus, making CWD read-only will cause this test
12159    # to fail, enabling locking or at least warning the user not to do parallel
12160    # builds.
12161    chmod -w .
12162
12163    lt_compiler_flag="-o out/conftest2.$ac_objext"
12164    # Insert the option either (1) after the last *FLAGS variable, or
12165    # (2) before a word containing "conftest.", or (3) at the end.
12166    # Note that $ac_compile itself does not contain backslashes and begins
12167    # with a dollar sign (not a hyphen), so the echo should work correctly.
12168    lt_compile=`echo "$ac_compile" | $SED \
12169    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12170    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12171    -e 's:$: $lt_compiler_flag:'`
12172    (eval echo "\"\$as_me:12172: $lt_compile\"" >&5)
12173    (eval "$lt_compile" 2>out/conftest.err)
12174    ac_status=$?
12175    cat out/conftest.err >&5
12176    echo "$as_me:12176: \$? = $ac_status" >&5
12177    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12178    then
12179      # The compiler can only warn and ignore the option if not recognized
12180      # So say no if there are warnings
12181      if test ! -s out/conftest.err; then
12182        lt_cv_prog_compiler_c_o_CXX=yes
12183      fi
12184    fi
12185    chmod u+w .
12186    $rm conftest* out/*
12187    rmdir out
12188    cd ..
12189    rmdir conftest
12190    $rm conftest*
12191
12192 fi
12193 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12194 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12195
12196
12197 hard_links="nottested"
12198 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12199   # do not overwrite the value of need_locks provided by the user
12200   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12201 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12202   hard_links=yes
12203   $rm conftest*
12204   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12205   touch conftest.a
12206   ln conftest.a conftest.b 2>&5 || hard_links=no
12207   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12208   echo "$as_me:$LINENO: result: $hard_links" >&5
12209 echo "${ECHO_T}$hard_links" >&6
12210   if test "$hard_links" = no; then
12211     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12212 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12213     need_locks=warn
12214   fi
12215 else
12216   need_locks=no
12217 fi
12218
12219 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12220 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12221
12222   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12223   case $host_os in
12224   aix4* | aix5*)
12225     # If we're using GNU nm, then we don't want the "-C" option.
12226     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12227     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12228       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12229     else
12230       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12231     fi
12232     ;;
12233   pw32*)
12234     export_symbols_cmds_CXX="$ltdll_cmds"
12235   ;;
12236   cygwin* | mingw*)
12237     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12238   ;;
12239   *)
12240     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12241   ;;
12242   esac
12243
12244 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12245 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12246 test "$ld_shlibs_CXX" = no && can_build_shared=no
12247
12248 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12249 if test "$GCC" = yes; then
12250   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12251 fi
12252
12253 #
12254 # Do we need to explicitly link libc?
12255 #
12256 case "x$archive_cmds_need_lc_CXX" in
12257 x|xyes)
12258   # Assume -lc should be added
12259   archive_cmds_need_lc_CXX=yes
12260
12261   if test "$enable_shared" = yes && test "$GCC" = yes; then
12262     case $archive_cmds_CXX in
12263     *'~'*)
12264       # FIXME: we may have to deal with multi-command sequences.
12265       ;;
12266     '$CC '*)
12267       # Test whether the compiler implicitly links with -lc since on some
12268       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12269       # to ld, don't add -lc before -lgcc.
12270       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12271 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12272       $rm conftest*
12273       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12274
12275       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276   (eval $ac_compile) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); } 2>conftest.err; then
12280         soname=conftest
12281         lib=conftest
12282         libobjs=conftest.$ac_objext
12283         deplibs=
12284         wl=$lt_prog_compiler_wl_CXX
12285         compiler_flags=-v
12286         linker_flags=-v
12287         verstring=
12288         output_objdir=.
12289         libname=conftest
12290         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12291         allow_undefined_flag_CXX=
12292         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12293   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }
12297         then
12298           archive_cmds_need_lc_CXX=no
12299         else
12300           archive_cmds_need_lc_CXX=yes
12301         fi
12302         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12303       else
12304         cat conftest.err 1>&5
12305       fi
12306       $rm conftest*
12307       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12308 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12309       ;;
12310     esac
12311   fi
12312   ;;
12313 esac
12314
12315 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12316 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12317 hardcode_action_CXX=
12318 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12319    test -n "$runpath_var CXX" || \
12320    test "X$hardcode_automatic_CXX"="Xyes" ; then
12321
12322   # We can hardcode non-existant directories.
12323   if test "$hardcode_direct_CXX" != no &&
12324      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12325      # have to relink, otherwise we might link with an installed library
12326      # when we should be linking with a yet-to-be-installed one
12327      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12328      test "$hardcode_minus_L_CXX" != no; then
12329     # Linking always hardcodes the temporary library directory.
12330     hardcode_action_CXX=relink
12331   else
12332     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12333     hardcode_action_CXX=immediate
12334   fi
12335 else
12336   # We cannot hardcode anything, or else we can only hardcode existing
12337   # directories.
12338   hardcode_action_CXX=unsupported
12339 fi
12340 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12341 echo "${ECHO_T}$hardcode_action_CXX" >&6
12342
12343 if test "$hardcode_action_CXX" = relink; then
12344   # Fast installation is not supported
12345   enable_fast_install=no
12346 elif test "$shlibpath_overrides_runpath" = yes ||
12347      test "$enable_shared" = no; then
12348   # Fast installation is not necessary
12349   enable_fast_install=needless
12350 fi
12351
12352 striplib=
12353 old_striplib=
12354 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12355 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12356 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12357   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12358   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12359   echo "$as_me:$LINENO: result: yes" >&5
12360 echo "${ECHO_T}yes" >&6
12361 else
12362 # FIXME - insert some real tests, host_os isn't really good enough
12363   case $host_os in
12364    darwin*)
12365        if test -n "$STRIP" ; then
12366          striplib="$STRIP -x"
12367          echo "$as_me:$LINENO: result: yes" >&5
12368 echo "${ECHO_T}yes" >&6
12369        else
12370   echo "$as_me:$LINENO: result: no" >&5
12371 echo "${ECHO_T}no" >&6
12372 fi
12373        ;;
12374    *)
12375   echo "$as_me:$LINENO: result: no" >&5
12376 echo "${ECHO_T}no" >&6
12377     ;;
12378   esac
12379 fi
12380
12381 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12382 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12383 library_names_spec=
12384 libname_spec='lib$name'
12385 soname_spec=
12386 shrext=".so"
12387 postinstall_cmds=
12388 postuninstall_cmds=
12389 finish_cmds=
12390 finish_eval=
12391 shlibpath_var=
12392 shlibpath_overrides_runpath=unknown
12393 version_type=none
12394 dynamic_linker="$host_os ld.so"
12395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12396 if test "$GCC" = yes; then
12397   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12398   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12399     # if the path contains ";" then we assume it to be the separator
12400     # otherwise default to the standard path separator (i.e. ":") - it is
12401     # assumed that no part of a normal pathname contains ";" but that should
12402     # okay in the real world where ";" in dirpaths is itself problematic.
12403     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12404   else
12405     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12406   fi
12407 else
12408   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12409 fi
12410 need_lib_prefix=no
12411 hardcode_into_libs=no
12412
12413 # when you set need_version to no, make sure it does not cause -set_version
12414 # flags to be left without arguments
12415 need_version=no
12416
12417 case $host_os in
12418 aix3*)
12419   version_type=linux
12420   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12421   shlibpath_var=LIBPATH
12422
12423   # AIX 3 has no versioning support, so we append a major version to the name.
12424   soname_spec='${libname}${release}${shared_ext}$major'
12425   ;;
12426
12427 aix4* | aix5*)
12428   version_type=linux
12429   hardcode_into_libs=yes
12430   if test "$host_cpu" = ia64; then
12431     # AIX 5 supports IA64
12432     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12433     shlibpath_var=LD_LIBRARY_PATH
12434   else
12435     # With GCC up to 2.95.x, collect2 would create an import file
12436     # for dependence libraries.  The import file would start with
12437     # the line `#! .'.  This would cause the generated library to
12438     # depend on `.', always an invalid library.  This was fixed in
12439     # development snapshots of GCC prior to 3.0.
12440     case $host_os in
12441       aix4 | aix4.[01] | aix4.[01].*)
12442       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12443            echo ' yes '
12444            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12445         :
12446       else
12447         can_build_shared=no
12448       fi
12449       ;;
12450     esac
12451     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12452     # soname into executable. Probably we can add versioning support to
12453     # collect2, so additional links can be useful in future.
12454     if test "$aix_use_runtimelinking" = yes; then
12455       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12456       # instead of lib<name>.a to let people know that these are not
12457       # typical AIX shared libraries.
12458       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12459     else
12460       # We preserve .a as extension for shared libraries through AIX4.2
12461       # and later when we are not doing run time linking.
12462       library_names_spec='${libname}${release}.a $libname.a'
12463       soname_spec='${libname}${release}${shared_ext}$major'
12464     fi
12465     shlibpath_var=LIBPATH
12466   fi
12467   ;;
12468
12469 amigaos*)
12470   library_names_spec='$libname.ixlibrary $libname.a'
12471   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12472   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'
12473   ;;
12474
12475 beos*)
12476   library_names_spec='${libname}${shared_ext}'
12477   dynamic_linker="$host_os ld.so"
12478   shlibpath_var=LIBRARY_PATH
12479   ;;
12480
12481 bsdi4*)
12482   version_type=linux
12483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484   soname_spec='${libname}${release}${shared_ext}$major'
12485   #finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12486   shlibpath_var=LD_LIBRARY_PATH
12487   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12488   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12489   # the default ld.so.conf also contains /usr/contrib/lib and
12490   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12491   # libtool to hard-code these into programs
12492   ;;
12493
12494 cygwin* | mingw* | pw32*)
12495   version_type=windows
12496   shrext=".dll"
12497
12498   case $GCC,$host_os in
12499   yes,cygwin* | yes,mingw* | yes,pw32*)
12500     library_names_spec='$libname.dll.a'
12501     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12502     postinstall_cmds='base_file=`basename \${file}`~
12503       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12504       dldir=$destdir/`dirname \$dlpath`~
12505       test -d \$dldir || mkdir -p \$dldir~
12506       $install_prog $dir/$dlname \$dldir/$dlname'
12507     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12508       dlpath=$dir/\$dldll~
12509        $rm \$dlpath'
12510     shlibpath_overrides_runpath=yes
12511
12512     case $host_os in
12513     cygwin*)
12514       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12515       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12516       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
12517       ;;
12518     mingw*)
12519       # MinGW DLLs use traditional 'lib' prefix
12520       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12521       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12522       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12523         # It is most probably a Windows format PATH printed by
12524         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12525         # path with ; separators, and with drive letters. We can handle the
12526         # drive letters (cygwin fileutils understands them), so leave them,
12527         # especially as we might pass files found there to a mingw objdump,
12528         # which wouldn't understand a cygwinified path. Ahh.
12529         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12530       else
12531         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12532       fi
12533       ;;
12534     pw32*)
12535       # pw32 DLLs use 'pw' prefix rather than 'lib'
12536       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12537       ;;
12538     esac
12539     ;;
12540
12541   *)
12542     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12543     ;;
12544   esac
12545   dynamic_linker='Win32 ld.exe'
12546   # FIXME: first we should search . and the directory the executable is in
12547   shlibpath_var=PATH
12548   ;;
12549
12550 darwin* | rhapsody*)
12551   dynamic_linker="$host_os dyld"
12552   version_type=darwin
12553   # FIXME: Relying on posixy $() will cause problems for
12554   #        cross-compilation, but unfortunately the echo tests do not
12555   #        yet detect zsh echo's removal of \ escapes.
12556   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12557   soname_spec='${libname}${release}${major}$shared_ext'
12558   shlibpath_overrides_runpath=yes
12559   shlibpath_var=DYLD_LIBRARY_PATH
12560   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
12561   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12562   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
12563   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12564   fi
12565   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12566   ;;
12567
12568 dgux*)
12569   version_type=linux
12570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12571   soname_spec='${libname}${release}${shared_ext}$major'
12572   shlibpath_var=LD_LIBRARY_PATH
12573   ;;
12574
12575 freebsd1*)
12576   dynamic_linker=no
12577   ;;
12578
12579 freebsd*)
12580   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12581   version_type=freebsd-$objformat
12582   case $version_type in
12583     freebsd-elf*)
12584       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12585       ;;
12586     freebsd-*)
12587       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12588       ;;
12589   esac
12590   shlibpath_var=LD_LIBRARY_PATH
12591   case $host_os in
12592   freebsd2*)
12593     shlibpath_overrides_runpath=yes
12594     ;;
12595   freebsd3.01* | freebsdelf3.01*)
12596     shlibpath_overrides_runpath=yes
12597     hardcode_into_libs=yes
12598     ;;
12599   *) # from 3.2 on
12600     shlibpath_overrides_runpath=no
12601     hardcode_into_libs=yes
12602     ;;
12603   esac
12604   ;;
12605
12606 gnu*)
12607   version_type=linux
12608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12609   soname_spec='${libname}${release}${shared_ext}$major'
12610   shlibpath_var=LD_LIBRARY_PATH
12611   hardcode_into_libs=yes
12612   ;;
12613
12614 hpux9* | hpux10* | hpux11*)
12615   # Give a soname corresponding to the major version so that dld.sl refuses to
12616   # link against other versions.
12617   version_type=sunos
12618   case "$host_cpu" in
12619   ia64*)
12620     shrext='.so'
12621     hardcode_into_libs=yes
12622     dynamic_linker="$host_os dld.so"
12623     shlibpath_var=LD_LIBRARY_PATH
12624     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12625     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12626     soname_spec='${libname}${release}${shared_ext}$major'
12627     if test "X$HPUX_IA64_MODE" = X32; then
12628       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12629     else
12630       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12631     fi
12632     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12633     ;;
12634    hppa*64*)
12635      shrext='.sl'
12636      hardcode_into_libs=yes
12637      dynamic_linker="$host_os dld.sl"
12638      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12639      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12640      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12641      soname_spec='${libname}${release}${shared_ext}$major'
12642      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12643      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12644      ;;
12645    *)
12646     shrext='.sl'
12647     dynamic_linker="$host_os dld.sl"
12648     shlibpath_var=SHLIB_PATH
12649     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12650     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12651     soname_spec='${libname}${release}${shared_ext}$major'
12652     ;;
12653   esac
12654   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12655   postinstall_cmds='chmod 555 $lib'
12656   ;;
12657
12658 irix5* | irix6* | nonstopux*)
12659   case $host_os in
12660     nonstopux*) version_type=nonstopux ;;
12661     *)
12662         if test "$lt_cv_prog_gnu_ld" = yes; then
12663                 version_type=linux
12664         else
12665                 version_type=irix
12666         fi ;;
12667   esac
12668   soname_spec='${libname}${release}${shared_ext}$major'
12669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12670   case $host_os in
12671   irix5* | nonstopux*)
12672     libsuff= shlibsuff=
12673     ;;
12674   *)
12675     case $LD in # libtool.m4 will add one of these switches to LD
12676     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12677       libsuff= shlibsuff= libmagic=32-bit;;
12678     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12679       libsuff=32 shlibsuff=N32 libmagic=N32;;
12680     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12681       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12682     *) libsuff= shlibsuff= libmagic=never-match;;
12683     esac
12684     ;;
12685   esac
12686   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12687   shlibpath_overrides_runpath=no
12688   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12689   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12690   hardcode_into_libs=yes
12691   ;;
12692
12693 # No shared lib support for Linux oldld, aout, or coff.
12694 linux*oldld* | linux*aout* | linux*coff*)
12695   dynamic_linker=no
12696   ;;
12697
12698 # This must be Linux ELF.
12699 linux*)
12700   version_type=linux
12701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12702   soname_spec='${libname}${release}${shared_ext}$major'
12703   #finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12704   shlibpath_var=LD_LIBRARY_PATH
12705   shlibpath_overrides_runpath=no
12706   # This implies no fast_install, which is unacceptable.
12707   # Some rework will be needed to allow for fast_install
12708   # before this can be enabled.
12709   hardcode_into_libs=yes
12710
12711   # We used to test for /lib/ld.so.1 and disable shared libraries on
12712   # powerpc, because MkLinux only supported shared libraries with the
12713   # GNU dynamic linker.  Since this was broken with cross compilers,
12714   # most powerpc-linux boxes support dynamic linking these days and
12715   # people can always --disable-shared, the test was removed, and we
12716   # assume the GNU/Linux dynamic linker is in use.
12717   dynamic_linker='GNU/Linux ld.so'
12718   ;;
12719
12720 netbsd*)
12721   version_type=sunos
12722   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12724     #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12725     dynamic_linker='NetBSD (a.out) ld.so'
12726   else
12727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
12728     soname_spec='${libname}${release}${shared_ext}$major'
12729     dynamic_linker='NetBSD ld.elf_so'
12730   fi
12731   shlibpath_var=LD_LIBRARY_PATH
12732   shlibpath_overrides_runpath=yes
12733   hardcode_into_libs=yes
12734   ;;
12735
12736 newsos6)
12737   version_type=linux
12738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739   shlibpath_var=LD_LIBRARY_PATH
12740   shlibpath_overrides_runpath=yes
12741   ;;
12742
12743 nto-qnx)
12744   version_type=linux
12745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12746   soname_spec='${libname}${release}${shared_ext}$major'
12747   shlibpath_var=LD_LIBRARY_PATH
12748   shlibpath_overrides_runpath=yes
12749   ;;
12750
12751 openbsd*)
12752   version_type=sunos
12753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12754   #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12755   shlibpath_var=LD_LIBRARY_PATH
12756   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12757     dynamic_linker='OpenBSD (ELF) ld.so'
12758     case $host_os in
12759       openbsd2.[89] | openbsd2.[89].*)
12760         shlibpath_overrides_runpath=no
12761         ;;
12762       *)
12763         shlibpath_overrides_runpath=yes
12764         ;;
12765       esac
12766   else
12767     dynamic_linker='OpenBSD (a.out) ld.so'
12768     shlibpath_overrides_runpath=yes
12769   fi
12770   ;;
12771
12772 os2*)
12773   libname_spec='$name'
12774   shrext=".dll"
12775   library_names_spec='$libname${shared_ext} $libname.a'
12776   dynamic_linker='OS/2 ld.exe'
12777   shlibpath_var=LIBPATH
12778   ;;
12779
12780 osf3* | osf4* | osf5*)
12781   version_type=osf
12782   soname_spec='${libname}${release}${shared_ext}$major'
12783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12784   shlibpath_var=LD_LIBRARY_PATH
12785   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12786   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12787   ;;
12788
12789 sco3.2v5*)
12790   version_type=osf
12791   soname_spec='${libname}${release}${shared_ext}$major'
12792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793   shlibpath_var=LD_LIBRARY_PATH
12794   ;;
12795
12796 solaris*)
12797   version_type=linux
12798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12799   soname_spec='${libname}${release}${shared_ext}$major'
12800   shlibpath_var=LD_LIBRARY_PATH
12801   shlibpath_overrides_runpath=yes
12802   hardcode_into_libs=yes
12803   # ldd complains unless libraries are executable
12804   postinstall_cmds='chmod +x $lib'
12805   ;;
12806
12807 sunos4*)
12808   version_type=sunos
12809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12810   #finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12811   shlibpath_var=LD_LIBRARY_PATH
12812   shlibpath_overrides_runpath=yes
12813   ;;
12814
12815 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12816   version_type=linux
12817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12818   soname_spec='${libname}${release}${shared_ext}$major'
12819   shlibpath_var=LD_LIBRARY_PATH
12820   case $host_vendor in
12821     sni)
12822       shlibpath_overrides_runpath=no
12823       export_dynamic_flag_spec='${wl}-Blargedynsym'
12824       runpath_var=LD_RUN_PATH
12825       ;;
12826     motorola)
12827       shlibpath_overrides_runpath=no
12828       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12829       ;;
12830   esac
12831   ;;
12832
12833 sysv4*MP*)
12834   if test -d /usr/nec ;then
12835     version_type=linux
12836     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12837     soname_spec='$libname${shared_ext}.$major'
12838     shlibpath_var=LD_LIBRARY_PATH
12839   fi
12840   ;;
12841
12842 uts4*)
12843   version_type=linux
12844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845   soname_spec='${libname}${release}${shared_ext}$major'
12846   shlibpath_var=LD_LIBRARY_PATH
12847   ;;
12848
12849 *)
12850   dynamic_linker=no
12851   ;;
12852 esac
12853 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12854 echo "${ECHO_T}$dynamic_linker" >&6
12855 test "$dynamic_linker" = no && can_build_shared=no
12856
12857 if test "x$enable_dlopen" != xyes; then
12858   enable_dlopen=unknown
12859   enable_dlopen_self=unknown
12860   enable_dlopen_self_static=unknown
12861 else
12862   lt_cv_dlopen=no
12863   lt_cv_dlopen_libs=
12864
12865   case $host_os in
12866   beos*)
12867     lt_cv_dlopen="load_add_on"
12868     lt_cv_dlopen_libs=
12869     lt_cv_dlopen_self=yes
12870     ;;
12871
12872   mingw* | pw32*)
12873     lt_cv_dlopen="LoadLibrary"
12874     lt_cv_dlopen_libs=
12875    ;;
12876
12877   cygwin*)
12878     lt_cv_dlopen="dlopen"
12879     lt_cv_dlopen_libs=
12880    ;;
12881
12882   darwin*)
12883   # if libdl is installed we need to link against it
12884     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12885 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12886 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12887   echo $ECHO_N "(cached) $ECHO_C" >&6
12888 else
12889   ac_check_lib_save_LIBS=$LIBS
12890 LIBS="-ldl  $LIBS"
12891 cat >conftest.$ac_ext <<_ACEOF
12892 #line $LINENO "configure"
12893 /* confdefs.h.  */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h.  */
12898
12899 /* Override any gcc2 internal prototype to avoid an error.  */
12900 #ifdef __cplusplus
12901 extern "C"
12902 #endif
12903 /* We use char because int might match the return type of a gcc2
12904    builtin and then its argument prototype would still apply.  */
12905 char dlopen ();
12906 int
12907 main ()
12908 {
12909 dlopen ();
12910   ;
12911   return 0;
12912 }
12913 _ACEOF
12914 rm -f conftest.$ac_objext conftest$ac_exeext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916   (eval $ac_link) 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); } &&
12920          { ac_try='test -s conftest$ac_exeext'
12921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922   (eval $ac_try) 2>&5
12923   ac_status=$?
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); }; }; then
12926   ac_cv_lib_dl_dlopen=yes
12927 else
12928   echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12930
12931 ac_cv_lib_dl_dlopen=no
12932 fi
12933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12934 LIBS=$ac_check_lib_save_LIBS
12935 fi
12936 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12937 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12938 if test $ac_cv_lib_dl_dlopen = yes; then
12939   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12940 else
12941
12942     lt_cv_dlopen="dyld"
12943     lt_cv_dlopen_libs=
12944     lt_cv_dlopen_self=yes
12945
12946 fi
12947
12948    ;;
12949
12950   *)
12951     echo "$as_me:$LINENO: checking for shl_load" >&5
12952 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12953 if test "${ac_cv_func_shl_load+set}" = set; then
12954   echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956   cat >conftest.$ac_ext <<_ACEOF
12957 #line $LINENO "configure"
12958 /* confdefs.h.  */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h.  */
12963 /* System header to define __stub macros and hopefully few prototypes,
12964     which can conflict with char shl_load (); below.
12965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12966     <limits.h> exists even on freestanding compilers.  */
12967 #ifdef __STDC__
12968 # include <limits.h>
12969 #else
12970 # include <assert.h>
12971 #endif
12972 /* Override any gcc2 internal prototype to avoid an error.  */
12973 #ifdef __cplusplus
12974 extern "C"
12975 {
12976 #endif
12977 /* We use char because int might match the return type of a gcc2
12978    builtin and then its argument prototype would still apply.  */
12979 char shl_load ();
12980 /* The GNU C library defines this for functions which it implements
12981     to always fail with ENOSYS.  Some functions are actually named
12982     something starting with __ and the normal name is an alias.  */
12983 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12984 choke me
12985 #else
12986 char (*f) () = shl_load;
12987 #endif
12988 #ifdef __cplusplus
12989 }
12990 #endif
12991
12992 int
12993 main ()
12994 {
12995 return f != shl_load;
12996   ;
12997   return 0;
12998 }
12999 _ACEOF
13000 rm -f conftest.$ac_objext conftest$ac_exeext
13001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13002   (eval $ac_link) 2>&5
13003   ac_status=$?
13004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); } &&
13006          { ac_try='test -s conftest$ac_exeext'
13007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008   (eval $ac_try) 2>&5
13009   ac_status=$?
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); }; }; then
13012   ac_cv_func_shl_load=yes
13013 else
13014   echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13016
13017 ac_cv_func_shl_load=no
13018 fi
13019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13020 fi
13021 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13022 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13023 if test $ac_cv_func_shl_load = yes; then
13024   lt_cv_dlopen="shl_load"
13025 else
13026   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13027 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13028 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13029   echo $ECHO_N "(cached) $ECHO_C" >&6
13030 else
13031   ac_check_lib_save_LIBS=$LIBS
13032 LIBS="-ldld  $LIBS"
13033 cat >conftest.$ac_ext <<_ACEOF
13034 #line $LINENO "configure"
13035 /* confdefs.h.  */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h.  */
13040
13041 /* Override any gcc2 internal prototype to avoid an error.  */
13042 #ifdef __cplusplus
13043 extern "C"
13044 #endif
13045 /* We use char because int might match the return type of a gcc2
13046    builtin and then its argument prototype would still apply.  */
13047 char shl_load ();
13048 int
13049 main ()
13050 {
13051 shl_load ();
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058   (eval $ac_link) 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); } &&
13062          { ac_try='test -s conftest$ac_exeext'
13063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064   (eval $ac_try) 2>&5
13065   ac_status=$?
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); }; }; then
13068   ac_cv_lib_dld_shl_load=yes
13069 else
13070   echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13072
13073 ac_cv_lib_dld_shl_load=no
13074 fi
13075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13076 LIBS=$ac_check_lib_save_LIBS
13077 fi
13078 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13079 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13080 if test $ac_cv_lib_dld_shl_load = yes; then
13081   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13082 else
13083   echo "$as_me:$LINENO: checking for dlopen" >&5
13084 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13085 if test "${ac_cv_func_dlopen+set}" = set; then
13086   echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088   cat >conftest.$ac_ext <<_ACEOF
13089 #line $LINENO "configure"
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095 /* System header to define __stub macros and hopefully few prototypes,
13096     which can conflict with char dlopen (); below.
13097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13098     <limits.h> exists even on freestanding compilers.  */
13099 #ifdef __STDC__
13100 # include <limits.h>
13101 #else
13102 # include <assert.h>
13103 #endif
13104 /* Override any gcc2 internal prototype to avoid an error.  */
13105 #ifdef __cplusplus
13106 extern "C"
13107 {
13108 #endif
13109 /* We use char because int might match the return type of a gcc2
13110    builtin and then its argument prototype would still apply.  */
13111 char dlopen ();
13112 /* The GNU C library defines this for functions which it implements
13113     to always fail with ENOSYS.  Some functions are actually named
13114     something starting with __ and the normal name is an alias.  */
13115 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13116 choke me
13117 #else
13118 char (*f) () = dlopen;
13119 #endif
13120 #ifdef __cplusplus
13121 }
13122 #endif
13123
13124 int
13125 main ()
13126 {
13127 return f != dlopen;
13128   ;
13129   return 0;
13130 }
13131 _ACEOF
13132 rm -f conftest.$ac_objext conftest$ac_exeext
13133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13134   (eval $ac_link) 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); } &&
13138          { ac_try='test -s conftest$ac_exeext'
13139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140   (eval $ac_try) 2>&5
13141   ac_status=$?
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); }; }; then
13144   ac_cv_func_dlopen=yes
13145 else
13146   echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13148
13149 ac_cv_func_dlopen=no
13150 fi
13151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13152 fi
13153 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13154 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13155 if test $ac_cv_func_dlopen = yes; then
13156   lt_cv_dlopen="dlopen"
13157 else
13158   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13159 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13160 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13161   echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163   ac_check_lib_save_LIBS=$LIBS
13164 LIBS="-ldl  $LIBS"
13165 cat >conftest.$ac_ext <<_ACEOF
13166 #line $LINENO "configure"
13167 /* confdefs.h.  */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h.  */
13172
13173 /* Override any gcc2 internal prototype to avoid an error.  */
13174 #ifdef __cplusplus
13175 extern "C"
13176 #endif
13177 /* We use char because int might match the return type of a gcc2
13178    builtin and then its argument prototype would still apply.  */
13179 char dlopen ();
13180 int
13181 main ()
13182 {
13183 dlopen ();
13184   ;
13185   return 0;
13186 }
13187 _ACEOF
13188 rm -f conftest.$ac_objext conftest$ac_exeext
13189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13190   (eval $ac_link) 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); } &&
13194          { ac_try='test -s conftest$ac_exeext'
13195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196   (eval $ac_try) 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); }; }; then
13200   ac_cv_lib_dl_dlopen=yes
13201 else
13202   echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 ac_cv_lib_dl_dlopen=no
13206 fi
13207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13208 LIBS=$ac_check_lib_save_LIBS
13209 fi
13210 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13211 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13212 if test $ac_cv_lib_dl_dlopen = yes; then
13213   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13214 else
13215   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13216 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13217 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13218   echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220   ac_check_lib_save_LIBS=$LIBS
13221 LIBS="-lsvld  $LIBS"
13222 cat >conftest.$ac_ext <<_ACEOF
13223 #line $LINENO "configure"
13224 /* confdefs.h.  */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h.  */
13229
13230 /* Override any gcc2 internal prototype to avoid an error.  */
13231 #ifdef __cplusplus
13232 extern "C"
13233 #endif
13234 /* We use char because int might match the return type of a gcc2
13235    builtin and then its argument prototype would still apply.  */
13236 char dlopen ();
13237 int
13238 main ()
13239 {
13240 dlopen ();
13241   ;
13242   return 0;
13243 }
13244 _ACEOF
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13247   (eval $ac_link) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); } &&
13251          { ac_try='test -s conftest$ac_exeext'
13252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253   (eval $ac_try) 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   ac_cv_lib_svld_dlopen=yes
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262 ac_cv_lib_svld_dlopen=no
13263 fi
13264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13265 LIBS=$ac_check_lib_save_LIBS
13266 fi
13267 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13268 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13269 if test $ac_cv_lib_svld_dlopen = yes; then
13270   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13271 else
13272   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13273 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13274 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13275   echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277   ac_check_lib_save_LIBS=$LIBS
13278 LIBS="-ldld  $LIBS"
13279 cat >conftest.$ac_ext <<_ACEOF
13280 #line $LINENO "configure"
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286
13287 /* Override any gcc2 internal prototype to avoid an error.  */
13288 #ifdef __cplusplus
13289 extern "C"
13290 #endif
13291 /* We use char because int might match the return type of a gcc2
13292    builtin and then its argument prototype would still apply.  */
13293 char dld_link ();
13294 int
13295 main ()
13296 {
13297 dld_link ();
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13304   (eval $ac_link) 2>&5
13305   ac_status=$?
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); } &&
13308          { ac_try='test -s conftest$ac_exeext'
13309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310   (eval $ac_try) 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314   ac_cv_lib_dld_dld_link=yes
13315 else
13316   echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13318
13319 ac_cv_lib_dld_dld_link=no
13320 fi
13321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13323 fi
13324 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13325 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13326 if test $ac_cv_lib_dld_dld_link = yes; then
13327   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13328 fi
13329
13330
13331 fi
13332
13333
13334 fi
13335
13336
13337 fi
13338
13339
13340 fi
13341
13342
13343 fi
13344
13345     ;;
13346   esac
13347
13348   if test "x$lt_cv_dlopen" != xno; then
13349     enable_dlopen=yes
13350   else
13351     enable_dlopen=no
13352   fi
13353
13354   case $lt_cv_dlopen in
13355   dlopen)
13356     save_CPPFLAGS="$CPPFLAGS"
13357     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13358
13359     save_LDFLAGS="$LDFLAGS"
13360     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13361
13362     save_LIBS="$LIBS"
13363     LIBS="$lt_cv_dlopen_libs $LIBS"
13364
13365     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13366 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13367 if test "${lt_cv_dlopen_self+set}" = set; then
13368   echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370           if test "$cross_compiling" = yes; then :
13371   lt_cv_dlopen_self=cross
13372 else
13373   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13374   lt_status=$lt_dlunknown
13375   cat > conftest.$ac_ext <<EOF
13376 #line 13376 "configure"
13377 #include "confdefs.h"
13378
13379 #if HAVE_DLFCN_H
13380 #include <dlfcn.h>
13381 #endif
13382
13383 #include <stdio.h>
13384
13385 #ifdef RTLD_GLOBAL
13386 #  define LT_DLGLOBAL           RTLD_GLOBAL
13387 #else
13388 #  ifdef DL_GLOBAL
13389 #    define LT_DLGLOBAL         DL_GLOBAL
13390 #  else
13391 #    define LT_DLGLOBAL         0
13392 #  endif
13393 #endif
13394
13395 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13396    find out it does not work in some platform. */
13397 #ifndef LT_DLLAZY_OR_NOW
13398 #  ifdef RTLD_LAZY
13399 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13400 #  else
13401 #    ifdef DL_LAZY
13402 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13403 #    else
13404 #      ifdef RTLD_NOW
13405 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13406 #      else
13407 #        ifdef DL_NOW
13408 #          define LT_DLLAZY_OR_NOW      DL_NOW
13409 #        else
13410 #          define LT_DLLAZY_OR_NOW      0
13411 #        endif
13412 #      endif
13413 #    endif
13414 #  endif
13415 #endif
13416
13417 #ifdef __cplusplus
13418 extern "C" void exit (int);
13419 #endif
13420
13421 void fnord() { int i=42;}
13422 int main ()
13423 {
13424   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13425   int status = $lt_dlunknown;
13426
13427   if (self)
13428     {
13429       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13430       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13431       /* dlclose (self); */
13432     }
13433
13434     exit (status);
13435 }
13436 EOF
13437   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13438   (eval $ac_link) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13442     (./conftest; exit; ) 2>/dev/null
13443     lt_status=$?
13444     case x$lt_status in
13445       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13446       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13447       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13448     esac
13449   else :
13450     # compilation failed
13451     lt_cv_dlopen_self=no
13452   fi
13453 fi
13454 rm -fr conftest*
13455
13456
13457 fi
13458 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13459 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13460
13461     if test "x$lt_cv_dlopen_self" = xyes; then
13462       LDFLAGS="$LDFLAGS $link_static_flag"
13463       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13464 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13465 if test "${lt_cv_dlopen_self_static+set}" = set; then
13466   echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468           if test "$cross_compiling" = yes; then :
13469   lt_cv_dlopen_self_static=cross
13470 else
13471   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13472   lt_status=$lt_dlunknown
13473   cat > conftest.$ac_ext <<EOF
13474 #line 13474 "configure"
13475 #include "confdefs.h"
13476
13477 #if HAVE_DLFCN_H
13478 #include <dlfcn.h>
13479 #endif
13480
13481 #include <stdio.h>
13482
13483 #ifdef RTLD_GLOBAL
13484 #  define LT_DLGLOBAL           RTLD_GLOBAL
13485 #else
13486 #  ifdef DL_GLOBAL
13487 #    define LT_DLGLOBAL         DL_GLOBAL
13488 #  else
13489 #    define LT_DLGLOBAL         0
13490 #  endif
13491 #endif
13492
13493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13494    find out it does not work in some platform. */
13495 #ifndef LT_DLLAZY_OR_NOW
13496 #  ifdef RTLD_LAZY
13497 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13498 #  else
13499 #    ifdef DL_LAZY
13500 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13501 #    else
13502 #      ifdef RTLD_NOW
13503 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13504 #      else
13505 #        ifdef DL_NOW
13506 #          define LT_DLLAZY_OR_NOW      DL_NOW
13507 #        else
13508 #          define LT_DLLAZY_OR_NOW      0
13509 #        endif
13510 #      endif
13511 #    endif
13512 #  endif
13513 #endif
13514
13515 #ifdef __cplusplus
13516 extern "C" void exit (int);
13517 #endif
13518
13519 void fnord() { int i=42;}
13520 int main ()
13521 {
13522   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13523   int status = $lt_dlunknown;
13524
13525   if (self)
13526     {
13527       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13528       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13529       /* dlclose (self); */
13530     }
13531
13532     exit (status);
13533 }
13534 EOF
13535   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13536   (eval $ac_link) 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13540     (./conftest; exit; ) 2>/dev/null
13541     lt_status=$?
13542     case x$lt_status in
13543       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13544       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13545       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13546     esac
13547   else :
13548     # compilation failed
13549     lt_cv_dlopen_self_static=no
13550   fi
13551 fi
13552 rm -fr conftest*
13553
13554
13555 fi
13556 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13557 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13558     fi
13559
13560     CPPFLAGS="$save_CPPFLAGS"
13561     LDFLAGS="$save_LDFLAGS"
13562     LIBS="$save_LIBS"
13563     ;;
13564   esac
13565
13566   case $lt_cv_dlopen_self in
13567   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13568   *) enable_dlopen_self=unknown ;;
13569   esac
13570
13571   case $lt_cv_dlopen_self_static in
13572   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13573   *) enable_dlopen_self_static=unknown ;;
13574   esac
13575 fi
13576
13577
13578 # The else clause should only fire when bootstrapping the
13579 # libtool distribution, otherwise you forgot to ship ltmain.sh
13580 # with your package, and you will get complaints that there are
13581 # no rules to generate ltmain.sh.
13582 if test -f "$ltmain"; then
13583   # See if we are running on zsh, and set the options which allow our commands through
13584   # without removal of \ escapes.
13585   if test -n "${ZSH_VERSION+set}" ; then
13586     setopt NO_GLOB_SUBST
13587   fi
13588   # Now quote all the things that may contain metacharacters while being
13589   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13590   # variables and quote the copies for generation of the libtool script.
13591   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13592     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13593     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13594     deplibs_check_method reload_flag reload_cmds need_locks \
13595     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13596     lt_cv_sys_global_symbol_to_c_name_address \
13597     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13598     old_postinstall_cmds old_postuninstall_cmds \
13599     compiler_CXX \
13600     CC_CXX \
13601     LD_CXX \
13602     lt_prog_compiler_wl_CXX \
13603     lt_prog_compiler_pic_CXX \
13604     lt_prog_compiler_static_CXX \
13605     lt_prog_compiler_no_builtin_flag_CXX \
13606     export_dynamic_flag_spec_CXX \
13607     thread_safe_flag_spec_CXX \
13608     whole_archive_flag_spec_CXX \
13609     enable_shared_with_static_runtimes_CXX \
13610     old_archive_cmds_CXX \
13611     old_archive_from_new_cmds_CXX \
13612     predep_objects_CXX \
13613     postdep_objects_CXX \
13614     predeps_CXX \
13615     postdeps_CXX \
13616     compiler_lib_search_path_CXX \
13617     archive_cmds_CXX \
13618     archive_expsym_cmds_CXX \
13619     postinstall_cmds_CXX \
13620     postuninstall_cmds_CXX \
13621     old_archive_from_expsyms_cmds_CXX \
13622     allow_undefined_flag_CXX \
13623     no_undefined_flag_CXX \
13624     export_symbols_cmds_CXX \
13625     hardcode_libdir_flag_spec_CXX \
13626     hardcode_libdir_flag_spec_ld_CXX \
13627     hardcode_libdir_separator_CXX \
13628     hardcode_automatic_CXX \
13629     module_cmds_CXX \
13630     module_expsym_cmds_CXX \
13631     lt_cv_prog_compiler_c_o_CXX \
13632     exclude_expsyms_CXX \
13633     include_expsyms_CXX; do
13634
13635     case $var in
13636     old_archive_cmds_CXX | \
13637     old_archive_from_new_cmds_CXX | \
13638     archive_cmds_CXX | \
13639     archive_expsym_cmds_CXX | \
13640     module_cmds_CXX | \
13641     module_expsym_cmds_CXX | \
13642     old_archive_from_expsyms_cmds_CXX | \
13643     export_symbols_cmds_CXX | \
13644     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13645     postinstall_cmds | postuninstall_cmds | \
13646     old_postinstall_cmds | old_postuninstall_cmds | \
13647     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13648       # Double-quote double-evaled strings.
13649       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13650       ;;
13651     *)
13652       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13653       ;;
13654     esac
13655   done
13656
13657   case $lt_echo in
13658   *'\$0 --fallback-echo"')
13659     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13660     ;;
13661   esac
13662
13663 cfgfile="$ofile"
13664
13665   cat <<__EOF__ >> "$cfgfile"
13666 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13667
13668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13669
13670 # Shell to use when invoking shell scripts.
13671 SHELL=$lt_SHELL
13672
13673 # Whether or not to build shared libraries.
13674 build_libtool_libs=$enable_shared
13675
13676 # Whether or not to build static libraries.
13677 build_old_libs=$enable_static
13678
13679 # Whether or not to add -lc for building shared libraries.
13680 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13681
13682 # Whether or not to disallow shared libs when runtime libs are static
13683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13684
13685 # Whether or not to optimize for fast installation.
13686 fast_install=$enable_fast_install
13687
13688 # The host system.
13689 host_alias=$host_alias
13690 host=$host
13691
13692 # An echo program that does not interpret backslashes.
13693 echo=$lt_echo
13694
13695 # The archiver.
13696 AR=$lt_AR
13697 AR_FLAGS=$lt_AR_FLAGS
13698
13699 # A C compiler.
13700 LTCC=$lt_LTCC
13701
13702 # A language-specific compiler.
13703 CC=$lt_compiler_CXX
13704
13705 # Is the compiler the GNU C compiler?
13706 with_gcc=$GCC_CXX
13707
13708 # An ERE matcher.
13709 EGREP=$lt_EGREP
13710
13711 # The linker used to build libraries.
13712 LD=$lt_LD_CXX
13713
13714 # Whether we need hard or soft links.
13715 LN_S=$lt_LN_S
13716
13717 # A BSD-compatible nm program.
13718 NM=$lt_NM
13719
13720 # A symbol stripping program
13721 STRIP=$STRIP
13722
13723 # Used to examine libraries when file_magic_cmd begins "file"
13724 MAGIC_CMD=$MAGIC_CMD
13725
13726 # Used on cygwin: DLL creation program.
13727 DLLTOOL="$DLLTOOL"
13728
13729 # Used on cygwin: object dumper.
13730 OBJDUMP="$OBJDUMP"
13731
13732 # Used on cygwin: assembler.
13733 AS="$AS"
13734
13735 # The name of the directory that contains temporary libtool files.
13736 objdir=$objdir
13737
13738 # How to create reloadable object files.
13739 reload_flag=$lt_reload_flag
13740 reload_cmds=$lt_reload_cmds
13741
13742 # How to pass a linker flag through the compiler.
13743 wl=$lt_lt_prog_compiler_wl_CXX
13744
13745 # Object file suffix (normally "o").
13746 objext="$ac_objext"
13747
13748 # Old archive suffix (normally "a").
13749 libext="$libext"
13750
13751 # Shared library suffix (normally ".so").
13752 shrext='$shrext'
13753
13754 # Executable file suffix (normally "").
13755 exeext="$exeext"
13756
13757 # Additional compiler flags for building library objects.
13758 pic_flag=$lt_lt_prog_compiler_pic_CXX
13759 pic_mode=$pic_mode
13760
13761 # What is the maximum length of a command?
13762 max_cmd_len=$lt_cv_sys_max_cmd_len
13763
13764 # Does compiler simultaneously support -c and -o options?
13765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13766
13767 # Must we lock files when doing compilation ?
13768 need_locks=$lt_need_locks
13769
13770 # Do we need the lib prefix for modules?
13771 need_lib_prefix=$need_lib_prefix
13772
13773 # Do we need a version for libraries?
13774 need_version=$need_version
13775
13776 # Whether dlopen is supported.
13777 dlopen_support=$enable_dlopen
13778
13779 # Whether dlopen of programs is supported.
13780 dlopen_self=$enable_dlopen_self
13781
13782 # Whether dlopen of statically linked programs is supported.
13783 dlopen_self_static=$enable_dlopen_self_static
13784
13785 # Compiler flag to prevent dynamic linking.
13786 link_static_flag=$lt_lt_prog_compiler_static_CXX
13787
13788 # Compiler flag to turn off builtin functions.
13789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13790
13791 # Compiler flag to allow reflexive dlopens.
13792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13793
13794 # Compiler flag to generate shared objects directly from archives.
13795 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13796
13797 # Compiler flag to generate thread-safe objects.
13798 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13799
13800 # Library versioning type.
13801 version_type=$version_type
13802
13803 # Format of library name prefix.
13804 libname_spec=$lt_libname_spec
13805
13806 # List of archive names.  First name is the real one, the rest are links.
13807 # The last name is the one that the linker finds with -lNAME.
13808 library_names_spec=$lt_library_names_spec
13809
13810 # The coded name of the library, if different from the real name.
13811 soname_spec=$lt_soname_spec
13812
13813 # Commands used to build and install an old-style archive.
13814 RANLIB=$lt_RANLIB
13815 old_archive_cmds=$lt_old_archive_cmds_CXX
13816 old_postinstall_cmds=$lt_old_postinstall_cmds
13817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13818
13819 # Create an old-style archive from a shared archive.
13820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13821
13822 # Create a temporary old-style archive to link instead of a shared archive.
13823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13824
13825 # Commands used to build and install a shared archive.
13826 archive_cmds=$lt_archive_cmds_CXX
13827 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13828 postinstall_cmds=$lt_postinstall_cmds
13829 postuninstall_cmds=$lt_postuninstall_cmds
13830
13831 # Commands used to build a loadable module (assumed same as above if empty)
13832 module_cmds=$lt_module_cmds_CXX
13833 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13834
13835 # Commands to strip libraries.
13836 old_striplib=$lt_old_striplib
13837 striplib=$lt_striplib
13838
13839 # Dependencies to place before the objects being linked to create a
13840 # shared library.
13841 predep_objects=$lt_predep_objects_CXX
13842
13843 # Dependencies to place after the objects being linked to create a
13844 # shared library.
13845 postdep_objects=$lt_postdep_objects_CXX
13846
13847 # Dependencies to place before the objects being linked to create a
13848 # shared library.
13849 predeps=$lt_predeps_CXX
13850
13851 # Dependencies to place after the objects being linked to create a
13852 # shared library.
13853 postdeps=$lt_postdeps_CXX
13854
13855 # The library search path used internally by the compiler when linking
13856 # a shared library.
13857 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13858
13859 # Method to check whether dependent libraries are shared objects.
13860 deplibs_check_method=$lt_deplibs_check_method
13861
13862 # Command to use when deplibs_check_method == file_magic.
13863 file_magic_cmd=$lt_file_magic_cmd
13864
13865 # Flag that allows shared libraries with undefined symbols to be built.
13866 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13867
13868 # Flag that forces no undefined symbols.
13869 no_undefined_flag=$lt_no_undefined_flag_CXX
13870
13871 # Commands used to finish a libtool library installation in a directory.
13872 finish_cmds=$lt_finish_cmds
13873
13874 # Same as above, but a single script fragment to be evaled but not shown.
13875 finish_eval=$lt_finish_eval
13876
13877 # Take the output of nm and produce a listing of raw symbols and C names.
13878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13879
13880 # Transform the output of nm in a proper C declaration
13881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13882
13883 # Transform the output of nm in a C name address pair
13884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13885
13886 # This is the shared library runtime path variable.
13887 runpath_var=$runpath_var
13888
13889 # This is the shared library path variable.
13890 shlibpath_var=$shlibpath_var
13891
13892 # Is shlibpath searched before the hard-coded library search path?
13893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13894
13895 # How to hardcode a shared library path into an executable.
13896 hardcode_action=$hardcode_action_CXX
13897
13898 # Whether we should hardcode library paths into libraries.
13899 hardcode_into_libs=$hardcode_into_libs
13900
13901 # Flag to hardcode \$libdir into a binary during linking.
13902 # This must work even if \$libdir does not exist.
13903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13904
13905 # If ld is used when linking, flag to hardcode \$libdir into
13906 # a binary during linking. This must work even if \$libdir does
13907 # not exist.
13908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13909
13910 # Whether we need a single -rpath flag with a separated argument.
13911 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13912
13913 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13914 # resulting binary.
13915 hardcode_direct=$hardcode_direct_CXX
13916
13917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13918 # resulting binary.
13919 hardcode_minus_L=$hardcode_minus_L_CXX
13920
13921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13922 # the resulting binary.
13923 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13924
13925 # Set to yes if building a shared library automatically hardcodes DIR into the library
13926 # and all subsequent libraries and executables linked against it.
13927 hardcode_automatic=$hardcode_automatic_CXX
13928
13929 # Variables whose values should be saved in libtool wrapper scripts and
13930 # restored at relink time.
13931 variables_saved_for_relink="$variables_saved_for_relink"
13932
13933 # Whether libtool must link a program against all its dependency libraries.
13934 link_all_deplibs=$link_all_deplibs_CXX
13935
13936 # Compile-time system search path for libraries
13937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13938
13939 # Run-time system search path for libraries
13940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13941
13942 # Fix the shell variable \$srcfile for the compiler.
13943 fix_srcfile_path="$fix_srcfile_path_CXX"
13944
13945 # Set to yes if exported symbols are required.
13946 always_export_symbols=$always_export_symbols_CXX
13947
13948 # The commands to list exported symbols.
13949 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13950
13951 # The commands to extract the exported symbol list from a shared archive.
13952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13953
13954 # Symbols that should not be listed in the preloaded symbols.
13955 exclude_expsyms=$lt_exclude_expsyms_CXX
13956
13957 # Symbols that must always be exported.
13958 include_expsyms=$lt_include_expsyms_CXX
13959
13960 # ### END LIBTOOL TAG CONFIG: $tagname
13961
13962 __EOF__
13963
13964
13965 else
13966   # If there is no Makefile yet, we rely on a make rule to execute
13967   # `config.status --recheck' to rerun these tests and create the
13968   # libtool script then.
13969   test -f Makefile && make "$ltmain"
13970 fi
13971
13972
13973 ac_ext=c
13974 ac_cpp='$CPP $CPPFLAGS'
13975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13978
13979 CC=$lt_save_CC
13980 LDCXX=$LD
13981 LD=$lt_save_LD
13982 GCC=$lt_save_GCC
13983 with_gnu_ldcxx=$with_gnu_ld
13984 with_gnu_ld=$lt_save_with_gnu_ld
13985 lt_cv_path_LDCXX=$lt_cv_path_LD
13986 lt_cv_path_LD=$lt_save_path_LD
13987 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13988 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13989
13990         else
13991           tagname=""
13992         fi
13993         ;;
13994
13995       F77)
13996         if test -n "$F77" && test "X$F77" != "Xno"; then
13997
13998 ac_ext=f
13999 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14000 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14001 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14002
14003
14004 archive_cmds_need_lc_F77=no
14005 allow_undefined_flag_F77=
14006 always_export_symbols_F77=no
14007 archive_expsym_cmds_F77=
14008 export_dynamic_flag_spec_F77=
14009 hardcode_direct_F77=no
14010 hardcode_libdir_flag_spec_F77=
14011 hardcode_libdir_flag_spec_ld_F77=
14012 hardcode_libdir_separator_F77=
14013 hardcode_minus_L_F77=no
14014 hardcode_automatic_F77=no
14015 module_cmds_F77=
14016 module_expsym_cmds_F77=
14017 link_all_deplibs_F77=unknown
14018 old_archive_cmds_F77=$old_archive_cmds
14019 no_undefined_flag_F77=
14020 whole_archive_flag_spec_F77=
14021 enable_shared_with_static_runtimes_F77=no
14022
14023 # Source file extension for f77 test sources.
14024 ac_ext=f
14025
14026 # Object file extension for compiled f77 test sources.
14027 objext=o
14028 objext_F77=$objext
14029
14030 # Code to be used in simple compile tests
14031 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14032
14033 # Code to be used in simple link tests
14034 lt_simple_link_test_code="      program t\n      end\n"
14035
14036 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14037
14038 # If no C compiler was specified, use CC.
14039 LTCC=${LTCC-"$CC"}
14040
14041 # Allow CC to be a program name with arguments.
14042 compiler=$CC
14043
14044
14045 # Allow CC to be a program name with arguments.
14046 lt_save_CC="$CC"
14047 CC=${F77-"f77"}
14048 compiler=$CC
14049 compiler_F77=$CC
14050 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14051
14052 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14053 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14054 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14055 echo "${ECHO_T}$can_build_shared" >&6
14056
14057 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14058 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14059 test "$can_build_shared" = "no" && enable_shared=no
14060
14061 # On AIX, shared libraries and static libraries use the same namespace, and
14062 # are all built from PIC.
14063 case "$host_os" in
14064 aix3*)
14065   test "$enable_shared" = yes && enable_static=no
14066   if test -n "$RANLIB"; then
14067     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14068     postinstall_cmds='$RANLIB $lib'
14069   fi
14070   ;;
14071 aix4*)
14072   test "$enable_shared" = yes && enable_static=no
14073   ;;
14074 esac
14075 echo "$as_me:$LINENO: result: $enable_shared" >&5
14076 echo "${ECHO_T}$enable_shared" >&6
14077
14078 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14079 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14080 # Make sure either enable_shared or enable_static is yes.
14081 test "$enable_shared" = yes || enable_static=yes
14082 echo "$as_me:$LINENO: result: $enable_static" >&5
14083 echo "${ECHO_T}$enable_static" >&6
14084
14085 test "$ld_shlibs_F77" = no && can_build_shared=no
14086
14087 GCC_F77="$G77"
14088 LD_F77="$LD"
14089
14090 lt_prog_compiler_wl_F77=
14091 lt_prog_compiler_pic_F77=
14092 lt_prog_compiler_static_F77=
14093
14094 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14095 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14096
14097   if test "$GCC" = yes; then
14098     lt_prog_compiler_wl_F77='-Wl,'
14099     lt_prog_compiler_static_F77='-static'
14100
14101     case $host_os in
14102       aix*)
14103       # All AIX code is PIC.
14104       if test "$host_cpu" = ia64; then
14105         # AIX 5 now supports IA64 processor
14106         lt_prog_compiler_static_F77='-Bstatic'
14107       fi
14108       ;;
14109
14110     amigaos*)
14111       # FIXME: we need at least 68020 code to build shared libraries, but
14112       # adding the `-m68020' flag to GCC prevents building anything better,
14113       # like `-m68040'.
14114       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14115       ;;
14116
14117     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14118       # PIC is the default for these OSes.
14119       ;;
14120
14121     mingw* | pw32* | os2*)
14122       # This hack is so that the source file can tell whether it is being
14123       # built for inclusion in a dll (and should export symbols for example).
14124       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14125       ;;
14126
14127     darwin* | rhapsody*)
14128       # PIC is the default on this platform
14129       # Common symbols not allowed in MH_DYLIB files
14130       lt_prog_compiler_pic_F77='-fno-common'
14131       ;;
14132
14133     msdosdjgpp*)
14134       # Just because we use GCC doesn't mean we suddenly get shared libraries
14135       # on systems that don't support them.
14136       lt_prog_compiler_can_build_shared_F77=no
14137       enable_shared=no
14138       ;;
14139
14140     sysv4*MP*)
14141       if test -d /usr/nec; then
14142         lt_prog_compiler_pic_F77=-Kconform_pic
14143       fi
14144       ;;
14145
14146     hpux*)
14147       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14148       # not for PA HP-UX.
14149       case "$host_cpu" in
14150       hppa*64*|ia64*)
14151         # +Z the default
14152         ;;
14153       *)
14154         lt_prog_compiler_pic_F77='-fPIC'
14155         ;;
14156       esac
14157       ;;
14158
14159     *)
14160       lt_prog_compiler_pic_F77='-fPIC'
14161       ;;
14162     esac
14163   else
14164     # PORTME Check for flag to pass linker flags through the system compiler.
14165     case $host_os in
14166     aix*)
14167       lt_prog_compiler_wl_F77='-Wl,'
14168       if test "$host_cpu" = ia64; then
14169         # AIX 5 now supports IA64 processor
14170         lt_prog_compiler_static_F77='-Bstatic'
14171       else
14172         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14173       fi
14174       ;;
14175
14176     mingw* | pw32* | os2*)
14177       # This hack is so that the source file can tell whether it is being
14178       # built for inclusion in a dll (and should export symbols for example).
14179       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14180       ;;
14181
14182     hpux9* | hpux10* | hpux11*)
14183       lt_prog_compiler_wl_F77='-Wl,'
14184       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14185       # not for PA HP-UX.
14186       case "$host_cpu" in
14187       hppa*64*|ia64*)
14188         # +Z the default
14189         ;;
14190       *)
14191         lt_prog_compiler_pic_F77='+Z'
14192         ;;
14193       esac
14194       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14195       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14196       ;;
14197
14198     irix5* | irix6* | nonstopux*)
14199       lt_prog_compiler_wl_F77='-Wl,'
14200       # PIC (with -KPIC) is the default.
14201       lt_prog_compiler_static_F77='-non_shared'
14202       ;;
14203
14204     newsos6)
14205       lt_prog_compiler_pic_F77='-KPIC'
14206       lt_prog_compiler_static_F77='-Bstatic'
14207       ;;
14208
14209     linux*)
14210       case $CC in
14211       icc|ecc)
14212         lt_prog_compiler_wl_F77='-Wl,'
14213         lt_prog_compiler_pic_F77='-KPIC'
14214         lt_prog_compiler_static_F77='-static'
14215         ;;
14216       ccc)
14217         lt_prog_compiler_wl_F77='-Wl,'
14218         # All Alpha code is PIC.
14219         lt_prog_compiler_static_F77='-non_shared'
14220         ;;
14221       esac
14222       ;;
14223
14224     osf3* | osf4* | osf5*)
14225       lt_prog_compiler_wl_F77='-Wl,'
14226       # All OSF/1 code is PIC.
14227       lt_prog_compiler_static_F77='-non_shared'
14228       ;;
14229
14230     sco3.2v5*)
14231       lt_prog_compiler_pic_F77='-Kpic'
14232       lt_prog_compiler_static_F77='-dn'
14233       ;;
14234
14235     solaris*)
14236       lt_prog_compiler_wl_F77='-Wl,'
14237       lt_prog_compiler_pic_F77='-KPIC'
14238       lt_prog_compiler_static_F77='-Bstatic'
14239       ;;
14240
14241     sunos4*)
14242       lt_prog_compiler_wl_F77='-Qoption ld '
14243       lt_prog_compiler_pic_F77='-PIC'
14244       lt_prog_compiler_static_F77='-Bstatic'
14245       ;;
14246
14247     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14248       lt_prog_compiler_wl_F77='-Wl,'
14249       lt_prog_compiler_pic_F77='-KPIC'
14250       lt_prog_compiler_static_F77='-Bstatic'
14251       ;;
14252
14253     sysv4*MP*)
14254       if test -d /usr/nec ;then
14255         lt_prog_compiler_pic_F77='-Kconform_pic'
14256         lt_prog_compiler_static_F77='-Bstatic'
14257       fi
14258       ;;
14259
14260     uts4*)
14261       lt_prog_compiler_pic_F77='-pic'
14262       lt_prog_compiler_static_F77='-Bstatic'
14263       ;;
14264
14265     *)
14266       lt_prog_compiler_can_build_shared_F77=no
14267       ;;
14268     esac
14269   fi
14270
14271 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14272 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14273
14274 #
14275 # Check to make sure the PIC flag actually works.
14276 #
14277 if test -n "$lt_prog_compiler_pic_F77"; then
14278   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14279 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14280 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14281   echo $ECHO_N "(cached) $ECHO_C" >&6
14282 else
14283   lt_prog_compiler_pic_works_F77=no
14284   ac_outfile=conftest.$ac_objext
14285    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14286    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14287    # Insert the option either (1) after the last *FLAGS variable, or
14288    # (2) before a word containing "conftest.", or (3) at the end.
14289    # Note that $ac_compile itself does not contain backslashes and begins
14290    # with a dollar sign (not a hyphen), so the echo should work correctly.
14291    # The option is referenced via a variable to avoid confusing sed.
14292    lt_compile=`echo "$ac_compile" | $SED \
14293    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14294    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14295    -e 's:$: $lt_compiler_flag:'`
14296    (eval echo "\"\$as_me:14296: $lt_compile\"" >&5)
14297    (eval "$lt_compile" 2>conftest.err)
14298    ac_status=$?
14299    cat conftest.err >&5
14300    echo "$as_me:14300: \$? = $ac_status" >&5
14301    if (exit $ac_status) && test -s "$ac_outfile"; then
14302      # The compiler can only warn and ignore the option if not recognized
14303      # So say no if there are warnings
14304      if test ! -s conftest.err; then
14305        lt_prog_compiler_pic_works_F77=yes
14306      fi
14307    fi
14308    $rm conftest*
14309
14310 fi
14311 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14312 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14313
14314 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14315     case $lt_prog_compiler_pic_F77 in
14316      "" | " "*) ;;
14317      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14318      esac
14319 else
14320     lt_prog_compiler_pic_F77=
14321      lt_prog_compiler_can_build_shared_F77=no
14322 fi
14323
14324 fi
14325 case "$host_os" in
14326   # For platforms which do not support PIC, -DPIC is meaningless:
14327   *djgpp*)
14328     lt_prog_compiler_pic_F77=
14329     ;;
14330   *)
14331     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14332     ;;
14333 esac
14334
14335 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14337 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14338   echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340   lt_cv_prog_compiler_c_o_F77=no
14341    $rm -r conftest 2>/dev/null
14342    mkdir conftest
14343    cd conftest
14344    mkdir out
14345    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14346
14347    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14348    # that will create temporary files in the current directory regardless of
14349    # the output directory.  Thus, making CWD read-only will cause this test
14350    # to fail, enabling locking or at least warning the user not to do parallel
14351    # builds.
14352    chmod -w .
14353
14354    lt_compiler_flag="-o out/conftest2.$ac_objext"
14355    # Insert the option either (1) after the last *FLAGS variable, or
14356    # (2) before a word containing "conftest.", or (3) at the end.
14357    # Note that $ac_compile itself does not contain backslashes and begins
14358    # with a dollar sign (not a hyphen), so the echo should work correctly.
14359    lt_compile=`echo "$ac_compile" | $SED \
14360    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14361    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14362    -e 's:$: $lt_compiler_flag:'`
14363    (eval echo "\"\$as_me:14363: $lt_compile\"" >&5)
14364    (eval "$lt_compile" 2>out/conftest.err)
14365    ac_status=$?
14366    cat out/conftest.err >&5
14367    echo "$as_me:14367: \$? = $ac_status" >&5
14368    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14369    then
14370      # The compiler can only warn and ignore the option if not recognized
14371      # So say no if there are warnings
14372      if test ! -s out/conftest.err; then
14373        lt_cv_prog_compiler_c_o_F77=yes
14374      fi
14375    fi
14376    chmod u+w .
14377    $rm conftest* out/*
14378    rmdir out
14379    cd ..
14380    rmdir conftest
14381    $rm conftest*
14382
14383 fi
14384 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14385 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14386
14387
14388 hard_links="nottested"
14389 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14390   # do not overwrite the value of need_locks provided by the user
14391   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14392 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14393   hard_links=yes
14394   $rm conftest*
14395   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14396   touch conftest.a
14397   ln conftest.a conftest.b 2>&5 || hard_links=no
14398   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14399   echo "$as_me:$LINENO: result: $hard_links" >&5
14400 echo "${ECHO_T}$hard_links" >&6
14401   if test "$hard_links" = no; then
14402     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14403 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14404     need_locks=warn
14405   fi
14406 else
14407   need_locks=no
14408 fi
14409
14410 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14411 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14412
14413   runpath_var=
14414   allow_undefined_flag_F77=
14415   enable_shared_with_static_runtimes_F77=no
14416   archive_cmds_F77=
14417   archive_expsym_cmds_F77=
14418   old_archive_From_new_cmds_F77=
14419   old_archive_from_expsyms_cmds_F77=
14420   export_dynamic_flag_spec_F77=
14421   whole_archive_flag_spec_F77=
14422   thread_safe_flag_spec_F77=
14423   hardcode_libdir_flag_spec_F77=
14424   hardcode_libdir_flag_spec_ld_F77=
14425   hardcode_libdir_separator_F77=
14426   hardcode_direct_F77=no
14427   hardcode_minus_L_F77=no
14428   hardcode_shlibpath_var_F77=unsupported
14429   link_all_deplibs_F77=unknown
14430   hardcode_automatic_F77=no
14431   module_cmds_F77=
14432   module_expsym_cmds_F77=
14433   always_export_symbols_F77=no
14434   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14435   # include_expsyms should be a list of space-separated symbols to be *always*
14436   # included in the symbol list
14437   include_expsyms_F77=
14438   # exclude_expsyms can be an extended regexp of symbols to exclude
14439   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14440   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14441   # as well as any symbol that contains `d'.
14442   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14443   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14444   # platforms (ab)use it in PIC code, but their linkers get confused if
14445   # the symbol is explicitly referenced.  Since portable code cannot
14446   # rely on this symbol name, it's probably fine to never include it in
14447   # preloaded symbol tables.
14448   extract_expsyms_cmds=
14449
14450   case $host_os in
14451   cygwin* | mingw* | pw32*)
14452     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14453     # When not using gcc, we currently assume that we are using
14454     # Microsoft Visual C++.
14455     if test "$GCC" != yes; then
14456       with_gnu_ld=no
14457     fi
14458     ;;
14459   openbsd*)
14460     with_gnu_ld=no
14461     ;;
14462   esac
14463
14464   ld_shlibs_F77=yes
14465   if test "$with_gnu_ld" = yes; then
14466     # If archive_cmds runs LD, not CC, wlarc should be empty
14467     wlarc='${wl}'
14468
14469     # See if GNU ld supports shared libraries.
14470     case $host_os in
14471     aix3* | aix4* | aix5*)
14472       # On AIX/PPC, the GNU linker is very broken
14473       if test "$host_cpu" != ia64; then
14474         ld_shlibs_F77=no
14475         cat <<EOF 1>&2
14476
14477 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14478 *** to be unable to reliably create shared libraries on AIX.
14479 *** Therefore, libtool is disabling shared libraries support.  If you
14480 *** really care for shared libraries, you may want to modify your PATH
14481 *** so that a non-GNU linker is found, and then restart.
14482
14483 EOF
14484       fi
14485       ;;
14486
14487     amigaos*)
14488       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14489       hardcode_libdir_flag_spec_F77='-L$libdir'
14490       hardcode_minus_L_F77=yes
14491
14492       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14493       # that the semantics of dynamic libraries on AmigaOS, at least up
14494       # to version 4, is to share data among multiple programs linked
14495       # with the same dynamic library.  Since this doesn't match the
14496       # behavior of shared libraries on other platforms, we can't use
14497       # them.
14498       ld_shlibs_F77=no
14499       ;;
14500
14501     beos*)
14502       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14503         allow_undefined_flag_F77=unsupported
14504         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14505         # support --undefined.  This deserves some investigation.  FIXME
14506         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14507       else
14508         ld_shlibs_F77=no
14509       fi
14510       ;;
14511
14512     cygwin* | mingw* | pw32*)
14513       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14514       # as there is no search path for DLLs.
14515       hardcode_libdir_flag_spec_F77='-L$libdir'
14516       allow_undefined_flag_F77=unsupported
14517       always_export_symbols_F77=no
14518       enable_shared_with_static_runtimes_F77=yes
14519       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14520
14521       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14522         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14523         # If the export-symbols file already is a .def file (1st line
14524         # is EXPORTS), use it as is; otherwise, prepend...
14525         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14526           cp $export_symbols $output_objdir/$soname.def;
14527         else
14528           echo EXPORTS > $output_objdir/$soname.def;
14529           cat $export_symbols >> $output_objdir/$soname.def;
14530         fi~
14531         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14532       else
14533         ld_shlibs=no
14534       fi
14535       ;;
14536
14537     netbsd*)
14538       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14539         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14540         wlarc=
14541       else
14542         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14543         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14544       fi
14545       ;;
14546
14547     solaris* | sysv5*)
14548       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14549         ld_shlibs_F77=no
14550         cat <<EOF 1>&2
14551
14552 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14553 *** create shared libraries on Solaris systems.  Therefore, libtool
14554 *** is disabling shared libraries support.  We urge you to upgrade GNU
14555 *** binutils to release 2.9.1 or newer.  Another option is to modify
14556 *** your PATH or compiler configuration so that the native linker is
14557 *** used, and then restart.
14558
14559 EOF
14560       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14561         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14562         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14563       else
14564         ld_shlibs_F77=no
14565       fi
14566       ;;
14567
14568     sunos4*)
14569       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14570       wlarc=
14571       hardcode_direct_F77=yes
14572       hardcode_shlibpath_var_F77=no
14573       ;;
14574
14575     *)
14576       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14577         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14578         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14579       else
14580         ld_shlibs_F77=no
14581       fi
14582       ;;
14583     esac
14584
14585     if test "$ld_shlibs_F77" = yes; then
14586       runpath_var=LD_RUN_PATH
14587       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14588       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14589       # ancient GNU ld didn't support --whole-archive et. al.
14590       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14591         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14592       else
14593         whole_archive_flag_spec_F77=
14594       fi
14595     fi
14596   else
14597     # PORTME fill in a description of your system's linker (not GNU ld)
14598     case $host_os in
14599     aix3*)
14600       allow_undefined_flag_F77=unsupported
14601       always_export_symbols_F77=yes
14602       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14603       # Note: this linker hardcodes the directories in LIBPATH if there
14604       # are no directories specified by -L.
14605       hardcode_minus_L_F77=yes
14606       if test "$GCC" = yes && test -z "$link_static_flag"; then
14607         # Neither direct hardcoding nor static linking is supported with a
14608         # broken collect2.
14609         hardcode_direct_F77=unsupported
14610       fi
14611       ;;
14612
14613     aix4* | aix5*)
14614       if test "$host_cpu" = ia64; then
14615         # On IA64, the linker does run time linking by default, so we don't
14616         # have to do anything special.
14617         aix_use_runtimelinking=no
14618         exp_sym_flag='-Bexport'
14619         no_entry_flag=""
14620       else
14621         # If we're using GNU nm, then we don't want the "-C" option.
14622         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14623         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14624           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14625         else
14626           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14627         fi
14628         aix_use_runtimelinking=no
14629
14630         # Test if we are trying to use run time linking or normal
14631         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14632         # need to do runtime linking.
14633         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14634           for ld_flag in $LDFLAGS; do
14635           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14636             aix_use_runtimelinking=yes
14637             break
14638           fi
14639           done
14640         esac
14641
14642         exp_sym_flag='-bexport'
14643         no_entry_flag='-bnoentry'
14644       fi
14645
14646       # When large executables or shared objects are built, AIX ld can
14647       # have problems creating the table of contents.  If linking a library
14648       # or program results in "error TOC overflow" add -mminimal-toc to
14649       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14650       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14651
14652       archive_cmds_F77=''
14653       hardcode_direct_F77=yes
14654       hardcode_libdir_separator_F77=':'
14655       link_all_deplibs_F77=yes
14656
14657       if test "$GCC" = yes; then
14658         case $host_os in aix4.012|aix4.012.*)
14659         # We only want to do this on AIX 4.2 and lower, the check
14660         # below for broken collect2 doesn't work under 4.3+
14661           collect2name=`${CC} -print-prog-name=collect2`
14662           if test -f "$collect2name" && \
14663            strings "$collect2name" | grep resolve_lib_name >/dev/null
14664           then
14665           # We have reworked collect2
14666           hardcode_direct_F77=yes
14667           else
14668           # We have old collect2
14669           hardcode_direct_F77=unsupported
14670           # It fails to find uninstalled libraries when the uninstalled
14671           # path is not listed in the libpath.  Setting hardcode_minus_L
14672           # to unsupported forces relinking
14673           hardcode_minus_L_F77=yes
14674           hardcode_libdir_flag_spec_F77='-L$libdir'
14675           hardcode_libdir_separator_F77=
14676           fi
14677         esac
14678         shared_flag='-shared'
14679       else
14680         # not using gcc
14681         if test "$host_cpu" = ia64; then
14682         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14683         # chokes on -Wl,-G. The following line is correct:
14684           shared_flag='-G'
14685         else
14686         if test "$aix_use_runtimelinking" = yes; then
14687             shared_flag='${wl}-G'
14688           else
14689             shared_flag='${wl}-bM:SRE'
14690         fi
14691         fi
14692       fi
14693
14694       # It seems that -bexpall does not export symbols beginning with
14695       # underscore (_), so it is better to generate a list of symbols to export.
14696       always_export_symbols_F77=yes
14697       if test "$aix_use_runtimelinking" = yes; then
14698         # Warning - without using the other runtime loading flags (-brtl),
14699         # -berok will link without error, but may produce a broken library.
14700         allow_undefined_flag_F77='-berok'
14701        # Determine the default libpath from the value encoded in an empty executable.
14702        cat >conftest.$ac_ext <<_ACEOF
14703       program main
14704
14705       end
14706 _ACEOF
14707 rm -f conftest.$ac_objext conftest$ac_exeext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14709   (eval $ac_link) 2>&5
14710   ac_status=$?
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } &&
14713          { ac_try='test -s conftest$ac_exeext'
14714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715   (eval $ac_try) 2>&5
14716   ac_status=$?
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); }; }; then
14719
14720 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14721 }'`
14722 # Check for a 64-bit object if we didn't find anything.
14723 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14724 }'`; fi
14725 else
14726   echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729 fi
14730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14732
14733        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14734         archive_expsym_cmds_F77="\$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"
14735        else
14736         if test "$host_cpu" = ia64; then
14737           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14738           allow_undefined_flag_F77="-z nodefs"
14739           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14740         else
14741          # Determine the default libpath from the value encoded in an empty executable.
14742          cat >conftest.$ac_ext <<_ACEOF
14743       program main
14744
14745       end
14746 _ACEOF
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14749   (eval $ac_link) 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); } &&
14753          { ac_try='test -s conftest$ac_exeext'
14754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755   (eval $ac_try) 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); }; }; then
14759
14760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14761 }'`
14762 # Check for a 64-bit object if we didn't find anything.
14763 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14764 }'`; fi
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 fi
14770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14772
14773          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14774           # Warning - without using the other run time loading flags,
14775           # -berok will link without error, but may produce a broken library.
14776           no_undefined_flag_F77=' ${wl}-bernotok'
14777           allow_undefined_flag_F77=' ${wl}-berok'
14778           # -bexpall does not export symbols beginning with underscore (_)
14779           always_export_symbols_F77=yes
14780           # Exported symbols can be pulled into shared objects from archives
14781           whole_archive_flag_spec_F77=' '
14782           archive_cmds_need_lc_F77=yes
14783           # This is similar to how AIX traditionally builds it's shared libraries.
14784           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14785         fi
14786       fi
14787       ;;
14788
14789     amigaos*)
14790       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14791       hardcode_libdir_flag_spec_F77='-L$libdir'
14792       hardcode_minus_L_F77=yes
14793       # see comment about different semantics on the GNU ld section
14794       ld_shlibs_F77=no
14795       ;;
14796
14797     bsdi4*)
14798       export_dynamic_flag_spec_F77=-rdynamic
14799       ;;
14800
14801     cygwin* | mingw* | pw32*)
14802       # When not using gcc, we currently assume that we are using
14803       # Microsoft Visual C++.
14804       # hardcode_libdir_flag_spec is actually meaningless, as there is
14805       # no search path for DLLs.
14806       hardcode_libdir_flag_spec_F77=' '
14807       allow_undefined_flag_F77=unsupported
14808       # Tell ltmain to make .lib files, not .a files.
14809       libext=lib
14810       # Tell ltmain to make .dll files, not .so files.
14811       shrext=".dll"
14812       # FIXME: Setting linknames here is a bad hack.
14813       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14814       # The linker will automatically build a .lib file if we build a DLL.
14815       old_archive_From_new_cmds_F77='true'
14816       # FIXME: Should let the user specify the lib program.
14817       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14818       fix_srcfile_path='`cygpath -w "$srcfile"`'
14819       enable_shared_with_static_runtimes_F77=yes
14820       ;;
14821
14822     darwin* | rhapsody*)
14823     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14824       archive_cmds_need_lc_F77=no
14825       case "$host_os" in
14826       rhapsody* | darwin1.[012])
14827         allow_undefined_flag_F77='-undefined suppress'
14828         ;;
14829       *) # Darwin 1.3 on
14830         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14831         ;;
14832       esac
14833       # FIXME: Relying on posixy $() will cause problems for
14834       #        cross-compilation, but unfortunately the echo tests do not
14835       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
14836       #        `"' quotes if we put them in here... so don't!
14837         lt_int_apple_cc_single_mod=no
14838         output_verbose_link_cmd='echo'
14839         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14840           lt_int_apple_cc_single_mod=yes
14841         fi
14842         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14843           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14844         else
14845         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14846       fi
14847       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14848       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14849         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14850           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14851         else
14852           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14853         fi
14854           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14855       hardcode_direct_F77=no
14856       hardcode_automatic_F77=yes
14857       hardcode_shlibpath_var_F77=unsupported
14858       whole_archive_flag_spec_F77='-all_load $convenience'
14859       link_all_deplibs_F77=yes
14860     fi
14861       ;;
14862
14863     dgux*)
14864       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14865       hardcode_libdir_flag_spec_F77='-L$libdir'
14866       hardcode_shlibpath_var_F77=no
14867       ;;
14868
14869     freebsd1*)
14870       ld_shlibs_F77=no
14871       ;;
14872
14873     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14874     # support.  Future versions do this automatically, but an explicit c++rt0.o
14875     # does not break anything, and helps significantly (at the cost of a little
14876     # extra space).
14877     freebsd2.2*)
14878       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14879       hardcode_libdir_flag_spec_F77='-R$libdir'
14880       hardcode_direct_F77=yes
14881       hardcode_shlibpath_var_F77=no
14882       ;;
14883
14884     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14885     freebsd2*)
14886       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14887       hardcode_direct_F77=yes
14888       hardcode_minus_L_F77=yes
14889       hardcode_shlibpath_var_F77=no
14890       ;;
14891
14892     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14893     freebsd*)
14894       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14895       hardcode_libdir_flag_spec_F77='-R$libdir'
14896       hardcode_direct_F77=yes
14897       hardcode_shlibpath_var_F77=no
14898       ;;
14899
14900     hpux9*)
14901       if test "$GCC" = yes; then
14902         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14903       else
14904         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14905       fi
14906       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14907       hardcode_libdir_separator_F77=:
14908       hardcode_direct_F77=yes
14909
14910       # hardcode_minus_L: Not really in the search PATH,
14911       # but as the default location of the library.
14912       hardcode_minus_L_F77=yes
14913       export_dynamic_flag_spec_F77='${wl}-E'
14914       ;;
14915
14916     hpux10* | hpux11*)
14917       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14918         case "$host_cpu" in
14919         hppa*64*|ia64*)
14920           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14921           ;;
14922         *)
14923           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14924           ;;
14925         esac
14926       else
14927         case "$host_cpu" in
14928         hppa*64*|ia64*)
14929           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14930           ;;
14931         *)
14932           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14933           ;;
14934         esac
14935       fi
14936       if test "$with_gnu_ld" = no; then
14937         case "$host_cpu" in
14938         hppa*64*)
14939           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14940           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14941           hardcode_libdir_separator_F77=:
14942           hardcode_direct_F77=no
14943           hardcode_shlibpath_var_F77=no
14944           ;;
14945         ia64*)
14946           hardcode_libdir_flag_spec_F77='-L$libdir'
14947           hardcode_direct_F77=no
14948           hardcode_shlibpath_var_F77=no
14949
14950           # hardcode_minus_L: Not really in the search PATH,
14951           # but as the default location of the library.
14952           hardcode_minus_L_F77=yes
14953           ;;
14954         *)
14955           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14956           hardcode_libdir_separator_F77=:
14957           hardcode_direct_F77=yes
14958           export_dynamic_flag_spec_F77='${wl}-E'
14959
14960           # hardcode_minus_L: Not really in the search PATH,
14961           # but as the default location of the library.
14962           hardcode_minus_L_F77=yes
14963           ;;
14964         esac
14965       fi
14966       ;;
14967
14968     irix5* | irix6* | nonstopux*)
14969       if test "$GCC" = yes; then
14970         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14971       else
14972         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14973         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14974       fi
14975       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14976       hardcode_libdir_separator_F77=:
14977       link_all_deplibs_F77=yes
14978       ;;
14979
14980     netbsd*)
14981       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14982         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14983       else
14984         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14985       fi
14986       hardcode_libdir_flag_spec_F77='-R$libdir'
14987       hardcode_direct_F77=yes
14988       hardcode_shlibpath_var_F77=no
14989       ;;
14990
14991     newsos6)
14992       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14993       hardcode_direct_F77=yes
14994       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14995       hardcode_libdir_separator_F77=:
14996       hardcode_shlibpath_var_F77=no
14997       ;;
14998
14999     openbsd*)
15000       case "$host_cpu" in
15001         m88k|hppa|vax)
15002           ld_shlibs_F77=no
15003           ;;
15004         *)
15005           hardcode_direct_F77=yes
15006           hardcode_shlibpath_var_F77=no
15007           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15008             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15009             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15010             export_dynamic_flag_spec_F77='${wl}-E'
15011           else
15012             case $host_os in
15013               openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15014                 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15015                 hardcode_libdir_flag_spec_F77='-R$libdir'
15016                 ;;
15017               *)
15018                 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15019                 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15020                 ;;
15021             esac
15022           fi
15023           ;;
15024       esac
15025       ;;
15026
15027     os2*)
15028       hardcode_libdir_flag_spec_F77='-L$libdir'
15029       hardcode_minus_L_F77=yes
15030       allow_undefined_flag_F77=unsupported
15031       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15032       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15033       ;;
15034
15035     osf3*)
15036       if test "$GCC" = yes; then
15037         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15038         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15039       else
15040         allow_undefined_flag_F77=' -expect_unresolved \*'
15041         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15042       fi
15043       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15044       hardcode_libdir_separator_F77=:
15045       ;;
15046
15047     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15048       if test "$GCC" = yes; then
15049         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15050         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15051         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15052       else
15053         allow_undefined_flag_F77=' -expect_unresolved \*'
15054         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15055         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15056         $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'
15057
15058         # Both c and cxx compiler support -rpath directly
15059         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15060       fi
15061       hardcode_libdir_separator_F77=:
15062       ;;
15063
15064     sco3.2v5*)
15065       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15066       hardcode_shlibpath_var_F77=no
15067       export_dynamic_flag_spec_F77='${wl}-Bexport'
15068       runpath_var=LD_RUN_PATH
15069       hardcode_runpath_var=yes
15070       ;;
15071
15072     solaris*)
15073       no_undefined_flag_F77=' -z text'
15074       if test "$GCC" = yes; then
15075         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15076         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15077           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15078       else
15079         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15080         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15081         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15082       fi
15083       hardcode_libdir_flag_spec_F77='-R$libdir'
15084       hardcode_shlibpath_var_F77=no
15085       case $host_os in
15086       solaris2.[0-5] | solaris2.[0-5].*) ;;
15087       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15088         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15089       esac
15090       link_all_deplibs_F77=yes
15091       ;;
15092
15093     sunos4*)
15094       if test "x$host_vendor" = xsequent; then
15095         # Use $CC to link under sequent, because it throws in some extra .o
15096         # files that make .init and .fini sections work.
15097         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15098       else
15099         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15100       fi
15101       hardcode_libdir_flag_spec_F77='-L$libdir'
15102       hardcode_direct_F77=yes
15103       hardcode_minus_L_F77=yes
15104       hardcode_shlibpath_var_F77=no
15105       ;;
15106
15107     sysv4)
15108       case $host_vendor in
15109         sni)
15110           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15111           hardcode_direct_F77=yes # is this really true???
15112         ;;
15113         siemens)
15114           ## LD is ld it makes a PLAMLIB
15115           ## CC just makes a GrossModule.
15116           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15117           reload_cmds_F77='$CC -r -o $output$reload_objs'
15118           hardcode_direct_F77=no
15119         ;;
15120         motorola)
15121           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15122           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15123         ;;
15124       esac
15125       runpath_var='LD_RUN_PATH'
15126       hardcode_shlibpath_var_F77=no
15127       ;;
15128
15129     sysv4.3*)
15130       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15131       hardcode_shlibpath_var_F77=no
15132       export_dynamic_flag_spec_F77='-Bexport'
15133       ;;
15134
15135     sysv4*MP*)
15136       if test -d /usr/nec; then
15137         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138         hardcode_shlibpath_var_F77=no
15139         runpath_var=LD_RUN_PATH
15140         hardcode_runpath_var=yes
15141         ld_shlibs_F77=yes
15142       fi
15143       ;;
15144
15145     sysv4.2uw2*)
15146       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15147       hardcode_direct_F77=yes
15148       hardcode_minus_L_F77=no
15149       hardcode_shlibpath_var_F77=no
15150       hardcode_runpath_var=yes
15151       runpath_var=LD_RUN_PATH
15152       ;;
15153
15154    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15155       no_undefined_flag_F77='${wl}-z ${wl}text'
15156       if test "$GCC" = yes; then
15157         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15158       else
15159         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15160       fi
15161       runpath_var='LD_RUN_PATH'
15162       hardcode_shlibpath_var_F77=no
15163       ;;
15164
15165     sysv5*)
15166       no_undefined_flag_F77=' -z text'
15167       # $CC -shared without GNU ld will not create a library from C++
15168       # object files and a static libstdc++, better avoid it by now
15169       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15170       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15171                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15172       hardcode_libdir_flag_spec_F77=
15173       hardcode_shlibpath_var_F77=no
15174       runpath_var='LD_RUN_PATH'
15175       ;;
15176
15177     uts4*)
15178       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15179       hardcode_libdir_flag_spec_F77='-L$libdir'
15180       hardcode_shlibpath_var_F77=no
15181       ;;
15182
15183     *)
15184       ld_shlibs_F77=no
15185       ;;
15186     esac
15187   fi
15188
15189 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15190 echo "${ECHO_T}$ld_shlibs_F77" >&6
15191 test "$ld_shlibs_F77" = no && can_build_shared=no
15192
15193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15194 if test "$GCC" = yes; then
15195   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15196 fi
15197
15198 #
15199 # Do we need to explicitly link libc?
15200 #
15201 case "x$archive_cmds_need_lc_F77" in
15202 x|xyes)
15203   # Assume -lc should be added
15204   archive_cmds_need_lc_F77=yes
15205
15206   if test "$enable_shared" = yes && test "$GCC" = yes; then
15207     case $archive_cmds_F77 in
15208     *'~'*)
15209       # FIXME: we may have to deal with multi-command sequences.
15210       ;;
15211     '$CC '*)
15212       # Test whether the compiler implicitly links with -lc since on some
15213       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15214       # to ld, don't add -lc before -lgcc.
15215       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15217       $rm conftest*
15218       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15219
15220       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15221   (eval $ac_compile) 2>&5
15222   ac_status=$?
15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); } 2>conftest.err; then
15225         soname=conftest
15226         lib=conftest
15227         libobjs=conftest.$ac_objext
15228         deplibs=
15229         wl=$lt_prog_compiler_wl_F77
15230         compiler_flags=-v
15231         linker_flags=-v
15232         verstring=
15233         output_objdir=.
15234         libname=conftest
15235         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15236         allow_undefined_flag_F77=
15237         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15238   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15239   ac_status=$?
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); }
15242         then
15243           archive_cmds_need_lc_F77=no
15244         else
15245           archive_cmds_need_lc_F77=yes
15246         fi
15247         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15248       else
15249         cat conftest.err 1>&5
15250       fi
15251       $rm conftest*
15252       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15253 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15254       ;;
15255     esac
15256   fi
15257   ;;
15258 esac
15259
15260 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15261 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15262 hardcode_action_F77=
15263 if test -n "$hardcode_libdir_flag_spec_F77" || \
15264    test -n "$runpath_var F77" || \
15265    test "X$hardcode_automatic_F77"="Xyes" ; then
15266
15267   # We can hardcode non-existant directories.
15268   if test "$hardcode_direct_F77" != no &&
15269      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15270      # have to relink, otherwise we might link with an installed library
15271      # when we should be linking with a yet-to-be-installed one
15272      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15273      test "$hardcode_minus_L_F77" != no; then
15274     # Linking always hardcodes the temporary library directory.
15275     hardcode_action_F77=relink
15276   else
15277     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15278     hardcode_action_F77=immediate
15279   fi
15280 else
15281   # We cannot hardcode anything, or else we can only hardcode existing
15282   # directories.
15283   hardcode_action_F77=unsupported
15284 fi
15285 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15286 echo "${ECHO_T}$hardcode_action_F77" >&6
15287
15288 if test "$hardcode_action_F77" = relink; then
15289   # Fast installation is not supported
15290   enable_fast_install=no
15291 elif test "$shlibpath_overrides_runpath" = yes ||
15292      test "$enable_shared" = no; then
15293   # Fast installation is not necessary
15294   enable_fast_install=needless
15295 fi
15296
15297 striplib=
15298 old_striplib=
15299 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15300 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15301 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15302   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15303   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15304   echo "$as_me:$LINENO: result: yes" >&5
15305 echo "${ECHO_T}yes" >&6
15306 else
15307 # FIXME - insert some real tests, host_os isn't really good enough
15308   case $host_os in
15309    darwin*)
15310        if test -n "$STRIP" ; then
15311          striplib="$STRIP -x"
15312          echo "$as_me:$LINENO: result: yes" >&5
15313 echo "${ECHO_T}yes" >&6
15314        else
15315   echo "$as_me:$LINENO: result: no" >&5
15316 echo "${ECHO_T}no" >&6
15317 fi
15318        ;;
15319    *)
15320   echo "$as_me:$LINENO: result: no" >&5
15321 echo "${ECHO_T}no" >&6
15322     ;;
15323   esac
15324 fi
15325
15326 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15327 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15328 library_names_spec=
15329 libname_spec='lib$name'
15330 soname_spec=
15331 shrext=".so"
15332 postinstall_cmds=
15333 postuninstall_cmds=
15334 finish_cmds=
15335 finish_eval=
15336 shlibpath_var=
15337 shlibpath_overrides_runpath=unknown
15338 version_type=none
15339 dynamic_linker="$host_os ld.so"
15340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15341 if test "$GCC" = yes; then
15342   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15343   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15344     # if the path contains ";" then we assume it to be the separator
15345     # otherwise default to the standard path separator (i.e. ":") - it is
15346     # assumed that no part of a normal pathname contains ";" but that should
15347     # okay in the real world where ";" in dirpaths is itself problematic.
15348     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15349   else
15350     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15351   fi
15352 else
15353   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15354 fi
15355 need_lib_prefix=no
15356 hardcode_into_libs=no
15357
15358 # when you set need_version to no, make sure it does not cause -set_version
15359 # flags to be left without arguments
15360 need_version=no
15361
15362 case $host_os in
15363 aix3*)
15364   version_type=linux
15365   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15366   shlibpath_var=LIBPATH
15367
15368   # AIX 3 has no versioning support, so we append a major version to the name.
15369   soname_spec='${libname}${release}${shared_ext}$major'
15370   ;;
15371
15372 aix4* | aix5*)
15373   version_type=linux
15374   hardcode_into_libs=yes
15375   if test "$host_cpu" = ia64; then
15376     # AIX 5 supports IA64
15377     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15378     shlibpath_var=LD_LIBRARY_PATH
15379   else
15380     # With GCC up to 2.95.x, collect2 would create an import file
15381     # for dependence libraries.  The import file would start with
15382     # the line `#! .'.  This would cause the generated library to
15383     # depend on `.', always an invalid library.  This was fixed in
15384     # development snapshots of GCC prior to 3.0.
15385     case $host_os in
15386       aix4 | aix4.[01] | aix4.[01].*)
15387       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15388            echo ' yes '
15389            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15390         :
15391       else
15392         can_build_shared=no
15393       fi
15394       ;;
15395     esac
15396     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15397     # soname into executable. Probably we can add versioning support to
15398     # collect2, so additional links can be useful in future.
15399     if test "$aix_use_runtimelinking" = yes; then
15400       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15401       # instead of lib<name>.a to let people know that these are not
15402       # typical AIX shared libraries.
15403       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404     else
15405       # We preserve .a as extension for shared libraries through AIX4.2
15406       # and later when we are not doing run time linking.
15407       library_names_spec='${libname}${release}.a $libname.a'
15408       soname_spec='${libname}${release}${shared_ext}$major'
15409     fi
15410     shlibpath_var=LIBPATH
15411   fi
15412   ;;
15413
15414 amigaos*)
15415   library_names_spec='$libname.ixlibrary $libname.a'
15416   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15417   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'
15418   ;;
15419
15420 beos*)
15421   library_names_spec='${libname}${shared_ext}'
15422   dynamic_linker="$host_os ld.so"
15423   shlibpath_var=LIBRARY_PATH
15424   ;;
15425
15426 bsdi4*)
15427   version_type=linux
15428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429   soname_spec='${libname}${release}${shared_ext}$major'
15430   #finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15431   shlibpath_var=LD_LIBRARY_PATH
15432   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15433   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15434   # the default ld.so.conf also contains /usr/contrib/lib and
15435   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15436   # libtool to hard-code these into programs
15437   ;;
15438
15439 cygwin* | mingw* | pw32*)
15440   version_type=windows
15441   shrext=".dll"
15442
15443   case $GCC,$host_os in
15444   yes,cygwin* | yes,mingw* | yes,pw32*)
15445     library_names_spec='$libname.dll.a'
15446     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15447     postinstall_cmds='base_file=`basename \${file}`~
15448       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15449       dldir=$destdir/`dirname \$dlpath`~
15450       test -d \$dldir || mkdir -p \$dldir~
15451       $install_prog $dir/$dlname \$dldir/$dlname'
15452     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15453       dlpath=$dir/\$dldll~
15454        $rm \$dlpath'
15455     shlibpath_overrides_runpath=yes
15456
15457     case $host_os in
15458     cygwin*)
15459       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15460       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15461       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15462       ;;
15463     mingw*)
15464       # MinGW DLLs use traditional 'lib' prefix
15465       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15466       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15467       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15468         # It is most probably a Windows format PATH printed by
15469         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15470         # path with ; separators, and with drive letters. We can handle the
15471         # drive letters (cygwin fileutils understands them), so leave them,
15472         # especially as we might pass files found there to a mingw objdump,
15473         # which wouldn't understand a cygwinified path. Ahh.
15474         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15475       else
15476         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15477       fi
15478       ;;
15479     pw32*)
15480       # pw32 DLLs use 'pw' prefix rather than 'lib'
15481       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15482       ;;
15483     esac
15484     ;;
15485
15486   *)
15487     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15488     ;;
15489   esac
15490   dynamic_linker='Win32 ld.exe'
15491   # FIXME: first we should search . and the directory the executable is in
15492   shlibpath_var=PATH
15493   ;;
15494
15495 darwin* | rhapsody*)
15496   dynamic_linker="$host_os dyld"
15497   version_type=darwin
15498   # FIXME: Relying on posixy $() will cause problems for
15499   #        cross-compilation, but unfortunately the echo tests do not
15500   #        yet detect zsh echo's removal of \ escapes.
15501   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15502   soname_spec='${libname}${release}${major}$shared_ext'
15503   shlibpath_overrides_runpath=yes
15504   shlibpath_var=DYLD_LIBRARY_PATH
15505   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15506   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15507   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15508   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15509   fi
15510   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15511   ;;
15512
15513 dgux*)
15514   version_type=linux
15515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15516   soname_spec='${libname}${release}${shared_ext}$major'
15517   shlibpath_var=LD_LIBRARY_PATH
15518   ;;
15519
15520 freebsd1*)
15521   dynamic_linker=no
15522   ;;
15523
15524 freebsd*)
15525   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15526   version_type=freebsd-$objformat
15527   case $version_type in
15528     freebsd-elf*)
15529       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15530       ;;
15531     freebsd-*)
15532       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15533       ;;
15534   esac
15535   shlibpath_var=LD_LIBRARY_PATH
15536   case $host_os in
15537   freebsd2*)
15538     shlibpath_overrides_runpath=yes
15539     ;;
15540   freebsd3.01* | freebsdelf3.01*)
15541     shlibpath_overrides_runpath=yes
15542     hardcode_into_libs=yes
15543     ;;
15544   *) # from 3.2 on
15545     shlibpath_overrides_runpath=no
15546     hardcode_into_libs=yes
15547     ;;
15548   esac
15549   ;;
15550
15551 gnu*)
15552   version_type=linux
15553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15554   soname_spec='${libname}${release}${shared_ext}$major'
15555   shlibpath_var=LD_LIBRARY_PATH
15556   hardcode_into_libs=yes
15557   ;;
15558
15559 hpux9* | hpux10* | hpux11*)
15560   # Give a soname corresponding to the major version so that dld.sl refuses to
15561   # link against other versions.
15562   version_type=sunos
15563   case "$host_cpu" in
15564   ia64*)
15565     shrext='.so'
15566     hardcode_into_libs=yes
15567     dynamic_linker="$host_os dld.so"
15568     shlibpath_var=LD_LIBRARY_PATH
15569     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15570     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571     soname_spec='${libname}${release}${shared_ext}$major'
15572     if test "X$HPUX_IA64_MODE" = X32; then
15573       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15574     else
15575       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15576     fi
15577     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15578     ;;
15579    hppa*64*)
15580      shrext='.sl'
15581      hardcode_into_libs=yes
15582      dynamic_linker="$host_os dld.sl"
15583      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15584      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15585      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586      soname_spec='${libname}${release}${shared_ext}$major'
15587      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15588      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15589      ;;
15590    *)
15591     shrext='.sl'
15592     dynamic_linker="$host_os dld.sl"
15593     shlibpath_var=SHLIB_PATH
15594     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596     soname_spec='${libname}${release}${shared_ext}$major'
15597     ;;
15598   esac
15599   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15600   postinstall_cmds='chmod 555 $lib'
15601   ;;
15602
15603 irix5* | irix6* | nonstopux*)
15604   case $host_os in
15605     nonstopux*) version_type=nonstopux ;;
15606     *)
15607         if test "$lt_cv_prog_gnu_ld" = yes; then
15608                 version_type=linux
15609         else
15610                 version_type=irix
15611         fi ;;
15612   esac
15613   soname_spec='${libname}${release}${shared_ext}$major'
15614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15615   case $host_os in
15616   irix5* | nonstopux*)
15617     libsuff= shlibsuff=
15618     ;;
15619   *)
15620     case $LD in # libtool.m4 will add one of these switches to LD
15621     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15622       libsuff= shlibsuff= libmagic=32-bit;;
15623     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15624       libsuff=32 shlibsuff=N32 libmagic=N32;;
15625     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15626       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15627     *) libsuff= shlibsuff= libmagic=never-match;;
15628     esac
15629     ;;
15630   esac
15631   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15632   shlibpath_overrides_runpath=no
15633   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15634   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15635   hardcode_into_libs=yes
15636   ;;
15637
15638 # No shared lib support for Linux oldld, aout, or coff.
15639 linux*oldld* | linux*aout* | linux*coff*)
15640   dynamic_linker=no
15641   ;;
15642
15643 # This must be Linux ELF.
15644 linux*)
15645   version_type=linux
15646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647   soname_spec='${libname}${release}${shared_ext}$major'
15648   #finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15649   shlibpath_var=LD_LIBRARY_PATH
15650   shlibpath_overrides_runpath=no
15651   # This implies no fast_install, which is unacceptable.
15652   # Some rework will be needed to allow for fast_install
15653   # before this can be enabled.
15654   hardcode_into_libs=yes
15655
15656   # We used to test for /lib/ld.so.1 and disable shared libraries on
15657   # powerpc, because MkLinux only supported shared libraries with the
15658   # GNU dynamic linker.  Since this was broken with cross compilers,
15659   # most powerpc-linux boxes support dynamic linking these days and
15660   # people can always --disable-shared, the test was removed, and we
15661   # assume the GNU/Linux dynamic linker is in use.
15662   dynamic_linker='GNU/Linux ld.so'
15663   ;;
15664
15665 netbsd*)
15666   version_type=sunos
15667   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15669     #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15670     dynamic_linker='NetBSD (a.out) ld.so'
15671   else
15672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15673     soname_spec='${libname}${release}${shared_ext}$major'
15674     dynamic_linker='NetBSD ld.elf_so'
15675   fi
15676   shlibpath_var=LD_LIBRARY_PATH
15677   shlibpath_overrides_runpath=yes
15678   hardcode_into_libs=yes
15679   ;;
15680
15681 newsos6)
15682   version_type=linux
15683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684   shlibpath_var=LD_LIBRARY_PATH
15685   shlibpath_overrides_runpath=yes
15686   ;;
15687
15688 nto-qnx)
15689   version_type=linux
15690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691   soname_spec='${libname}${release}${shared_ext}$major'
15692   shlibpath_var=LD_LIBRARY_PATH
15693   shlibpath_overrides_runpath=yes
15694   ;;
15695
15696 openbsd*)
15697   version_type=sunos
15698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15699   #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15700   shlibpath_var=LD_LIBRARY_PATH
15701   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15702     dynamic_linker='OpenBSD (ELF) ld.so'
15703     case $host_os in
15704       openbsd2.[89] | openbsd2.[89].*)
15705         shlibpath_overrides_runpath=no
15706         ;;
15707       *)
15708         shlibpath_overrides_runpath=yes
15709         ;;
15710       esac
15711   else
15712     dynamic_linker='OpenBSD (a.out) ld.so'
15713     shlibpath_overrides_runpath=yes
15714   fi
15715   ;;
15716
15717 os2*)
15718   libname_spec='$name'
15719   shrext=".dll"
15720   library_names_spec='$libname${shared_ext} $libname.a'
15721   dynamic_linker='OS/2 ld.exe'
15722   shlibpath_var=LIBPATH
15723   ;;
15724
15725 osf3* | osf4* | osf5*)
15726   version_type=osf
15727   soname_spec='${libname}${release}${shared_ext}$major'
15728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729   shlibpath_var=LD_LIBRARY_PATH
15730   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15731   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15732   ;;
15733
15734 sco3.2v5*)
15735   version_type=osf
15736   soname_spec='${libname}${release}${shared_ext}$major'
15737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15738   shlibpath_var=LD_LIBRARY_PATH
15739   ;;
15740
15741 solaris*)
15742   version_type=linux
15743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15744   soname_spec='${libname}${release}${shared_ext}$major'
15745   shlibpath_var=LD_LIBRARY_PATH
15746   shlibpath_overrides_runpath=yes
15747   hardcode_into_libs=yes
15748   # ldd complains unless libraries are executable
15749   postinstall_cmds='chmod +x $lib'
15750   ;;
15751
15752 sunos4*)
15753   version_type=sunos
15754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15755   #finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15756   shlibpath_var=LD_LIBRARY_PATH
15757   shlibpath_overrides_runpath=yes
15758   ;;
15759
15760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15761   version_type=linux
15762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15763   soname_spec='${libname}${release}${shared_ext}$major'
15764   shlibpath_var=LD_LIBRARY_PATH
15765   case $host_vendor in
15766     sni)
15767       shlibpath_overrides_runpath=no
15768       export_dynamic_flag_spec='${wl}-Blargedynsym'
15769       runpath_var=LD_RUN_PATH
15770       ;;
15771     motorola)
15772       shlibpath_overrides_runpath=no
15773       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15774       ;;
15775   esac
15776   ;;
15777
15778 sysv4*MP*)
15779   if test -d /usr/nec ;then
15780     version_type=linux
15781     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15782     soname_spec='$libname${shared_ext}.$major'
15783     shlibpath_var=LD_LIBRARY_PATH
15784   fi
15785   ;;
15786
15787 uts4*)
15788   version_type=linux
15789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790   soname_spec='${libname}${release}${shared_ext}$major'
15791   shlibpath_var=LD_LIBRARY_PATH
15792   ;;
15793
15794 *)
15795   dynamic_linker=no
15796   ;;
15797 esac
15798 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15799 echo "${ECHO_T}$dynamic_linker" >&6
15800 test "$dynamic_linker" = no && can_build_shared=no
15801
15802
15803 # The else clause should only fire when bootstrapping the
15804 # libtool distribution, otherwise you forgot to ship ltmain.sh
15805 # with your package, and you will get complaints that there are
15806 # no rules to generate ltmain.sh.
15807 if test -f "$ltmain"; then
15808   # See if we are running on zsh, and set the options which allow our commands through
15809   # without removal of \ escapes.
15810   if test -n "${ZSH_VERSION+set}" ; then
15811     setopt NO_GLOB_SUBST
15812   fi
15813   # Now quote all the things that may contain metacharacters while being
15814   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15815   # variables and quote the copies for generation of the libtool script.
15816   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15817     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15818     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15819     deplibs_check_method reload_flag reload_cmds need_locks \
15820     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15821     lt_cv_sys_global_symbol_to_c_name_address \
15822     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15823     old_postinstall_cmds old_postuninstall_cmds \
15824     compiler_F77 \
15825     CC_F77 \
15826     LD_F77 \
15827     lt_prog_compiler_wl_F77 \
15828     lt_prog_compiler_pic_F77 \
15829     lt_prog_compiler_static_F77 \
15830     lt_prog_compiler_no_builtin_flag_F77 \
15831     export_dynamic_flag_spec_F77 \
15832     thread_safe_flag_spec_F77 \
15833     whole_archive_flag_spec_F77 \
15834     enable_shared_with_static_runtimes_F77 \
15835     old_archive_cmds_F77 \
15836     old_archive_from_new_cmds_F77 \
15837     predep_objects_F77 \
15838     postdep_objects_F77 \
15839     predeps_F77 \
15840     postdeps_F77 \
15841     compiler_lib_search_path_F77 \
15842     archive_cmds_F77 \
15843     archive_expsym_cmds_F77 \
15844     postinstall_cmds_F77 \
15845     postuninstall_cmds_F77 \
15846     old_archive_from_expsyms_cmds_F77 \
15847     allow_undefined_flag_F77 \
15848     no_undefined_flag_F77 \
15849     export_symbols_cmds_F77 \
15850     hardcode_libdir_flag_spec_F77 \
15851     hardcode_libdir_flag_spec_ld_F77 \
15852     hardcode_libdir_separator_F77 \
15853     hardcode_automatic_F77 \
15854     module_cmds_F77 \
15855     module_expsym_cmds_F77 \
15856     lt_cv_prog_compiler_c_o_F77 \
15857     exclude_expsyms_F77 \
15858     include_expsyms_F77; do
15859
15860     case $var in
15861     old_archive_cmds_F77 | \
15862     old_archive_from_new_cmds_F77 | \
15863     archive_cmds_F77 | \
15864     archive_expsym_cmds_F77 | \
15865     module_cmds_F77 | \
15866     module_expsym_cmds_F77 | \
15867     old_archive_from_expsyms_cmds_F77 | \
15868     export_symbols_cmds_F77 | \
15869     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15870     postinstall_cmds | postuninstall_cmds | \
15871     old_postinstall_cmds | old_postuninstall_cmds | \
15872     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15873       # Double-quote double-evaled strings.
15874       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15875       ;;
15876     *)
15877       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15878       ;;
15879     esac
15880   done
15881
15882   case $lt_echo in
15883   *'\$0 --fallback-echo"')
15884     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15885     ;;
15886   esac
15887
15888 cfgfile="$ofile"
15889
15890   cat <<__EOF__ >> "$cfgfile"
15891 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15892
15893 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15894
15895 # Shell to use when invoking shell scripts.
15896 SHELL=$lt_SHELL
15897
15898 # Whether or not to build shared libraries.
15899 build_libtool_libs=$enable_shared
15900
15901 # Whether or not to build static libraries.
15902 build_old_libs=$enable_static
15903
15904 # Whether or not to add -lc for building shared libraries.
15905 build_libtool_need_lc=$archive_cmds_need_lc_F77
15906
15907 # Whether or not to disallow shared libs when runtime libs are static
15908 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15909
15910 # Whether or not to optimize for fast installation.
15911 fast_install=$enable_fast_install
15912
15913 # The host system.
15914 host_alias=$host_alias
15915 host=$host
15916
15917 # An echo program that does not interpret backslashes.
15918 echo=$lt_echo
15919
15920 # The archiver.
15921 AR=$lt_AR
15922 AR_FLAGS=$lt_AR_FLAGS
15923
15924 # A C compiler.
15925 LTCC=$lt_LTCC
15926
15927 # A language-specific compiler.
15928 CC=$lt_compiler_F77
15929
15930 # Is the compiler the GNU C compiler?
15931 with_gcc=$GCC_F77
15932
15933 # An ERE matcher.
15934 EGREP=$lt_EGREP
15935
15936 # The linker used to build libraries.
15937 LD=$lt_LD_F77
15938
15939 # Whether we need hard or soft links.
15940 LN_S=$lt_LN_S
15941
15942 # A BSD-compatible nm program.
15943 NM=$lt_NM
15944
15945 # A symbol stripping program
15946 STRIP=$STRIP
15947
15948 # Used to examine libraries when file_magic_cmd begins "file"
15949 MAGIC_CMD=$MAGIC_CMD
15950
15951 # Used on cygwin: DLL creation program.
15952 DLLTOOL="$DLLTOOL"
15953
15954 # Used on cygwin: object dumper.
15955 OBJDUMP="$OBJDUMP"
15956
15957 # Used on cygwin: assembler.
15958 AS="$AS"
15959
15960 # The name of the directory that contains temporary libtool files.
15961 objdir=$objdir
15962
15963 # How to create reloadable object files.
15964 reload_flag=$lt_reload_flag
15965 reload_cmds=$lt_reload_cmds
15966
15967 # How to pass a linker flag through the compiler.
15968 wl=$lt_lt_prog_compiler_wl_F77
15969
15970 # Object file suffix (normally "o").
15971 objext="$ac_objext"
15972
15973 # Old archive suffix (normally "a").
15974 libext="$libext"
15975
15976 # Shared library suffix (normally ".so").
15977 shrext='$shrext'
15978
15979 # Executable file suffix (normally "").
15980 exeext="$exeext"
15981
15982 # Additional compiler flags for building library objects.
15983 pic_flag=$lt_lt_prog_compiler_pic_F77
15984 pic_mode=$pic_mode
15985
15986 # What is the maximum length of a command?
15987 max_cmd_len=$lt_cv_sys_max_cmd_len
15988
15989 # Does compiler simultaneously support -c and -o options?
15990 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15991
15992 # Must we lock files when doing compilation ?
15993 need_locks=$lt_need_locks
15994
15995 # Do we need the lib prefix for modules?
15996 need_lib_prefix=$need_lib_prefix
15997
15998 # Do we need a version for libraries?
15999 need_version=$need_version
16000
16001 # Whether dlopen is supported.
16002 dlopen_support=$enable_dlopen
16003
16004 # Whether dlopen of programs is supported.
16005 dlopen_self=$enable_dlopen_self
16006
16007 # Whether dlopen of statically linked programs is supported.
16008 dlopen_self_static=$enable_dlopen_self_static
16009
16010 # Compiler flag to prevent dynamic linking.
16011 link_static_flag=$lt_lt_prog_compiler_static_F77
16012
16013 # Compiler flag to turn off builtin functions.
16014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16015
16016 # Compiler flag to allow reflexive dlopens.
16017 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16018
16019 # Compiler flag to generate shared objects directly from archives.
16020 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16021
16022 # Compiler flag to generate thread-safe objects.
16023 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16024
16025 # Library versioning type.
16026 version_type=$version_type
16027
16028 # Format of library name prefix.
16029 libname_spec=$lt_libname_spec
16030
16031 # List of archive names.  First name is the real one, the rest are links.
16032 # The last name is the one that the linker finds with -lNAME.
16033 library_names_spec=$lt_library_names_spec
16034
16035 # The coded name of the library, if different from the real name.
16036 soname_spec=$lt_soname_spec
16037
16038 # Commands used to build and install an old-style archive.
16039 RANLIB=$lt_RANLIB
16040 old_archive_cmds=$lt_old_archive_cmds_F77
16041 old_postinstall_cmds=$lt_old_postinstall_cmds
16042 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16043
16044 # Create an old-style archive from a shared archive.
16045 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16046
16047 # Create a temporary old-style archive to link instead of a shared archive.
16048 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16049
16050 # Commands used to build and install a shared archive.
16051 archive_cmds=$lt_archive_cmds_F77
16052 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16053 postinstall_cmds=$lt_postinstall_cmds
16054 postuninstall_cmds=$lt_postuninstall_cmds
16055
16056 # Commands used to build a loadable module (assumed same as above if empty)
16057 module_cmds=$lt_module_cmds_F77
16058 module_expsym_cmds=$lt_module_expsym_cmds_F77
16059
16060 # Commands to strip libraries.
16061 old_striplib=$lt_old_striplib
16062 striplib=$lt_striplib
16063
16064 # Dependencies to place before the objects being linked to create a
16065 # shared library.
16066 predep_objects=$lt_predep_objects_F77
16067
16068 # Dependencies to place after the objects being linked to create a
16069 # shared library.
16070 postdep_objects=$lt_postdep_objects_F77
16071
16072 # Dependencies to place before the objects being linked to create a
16073 # shared library.
16074 predeps=$lt_predeps_F77
16075
16076 # Dependencies to place after the objects being linked to create a
16077 # shared library.
16078 postdeps=$lt_postdeps_F77
16079
16080 # The library search path used internally by the compiler when linking
16081 # a shared library.
16082 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16083
16084 # Method to check whether dependent libraries are shared objects.
16085 deplibs_check_method=$lt_deplibs_check_method
16086
16087 # Command to use when deplibs_check_method == file_magic.
16088 file_magic_cmd=$lt_file_magic_cmd
16089
16090 # Flag that allows shared libraries with undefined symbols to be built.
16091 allow_undefined_flag=$lt_allow_undefined_flag_F77
16092
16093 # Flag that forces no undefined symbols.
16094 no_undefined_flag=$lt_no_undefined_flag_F77
16095
16096 # Commands used to finish a libtool library installation in a directory.
16097 finish_cmds=$lt_finish_cmds
16098
16099 # Same as above, but a single script fragment to be evaled but not shown.
16100 finish_eval=$lt_finish_eval
16101
16102 # Take the output of nm and produce a listing of raw symbols and C names.
16103 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16104
16105 # Transform the output of nm in a proper C declaration
16106 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16107
16108 # Transform the output of nm in a C name address pair
16109 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16110
16111 # This is the shared library runtime path variable.
16112 runpath_var=$runpath_var
16113
16114 # This is the shared library path variable.
16115 shlibpath_var=$shlibpath_var
16116
16117 # Is shlibpath searched before the hard-coded library search path?
16118 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16119
16120 # How to hardcode a shared library path into an executable.
16121 hardcode_action=$hardcode_action_F77
16122
16123 # Whether we should hardcode library paths into libraries.
16124 hardcode_into_libs=$hardcode_into_libs
16125
16126 # Flag to hardcode \$libdir into a binary during linking.
16127 # This must work even if \$libdir does not exist.
16128 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16129
16130 # If ld is used when linking, flag to hardcode \$libdir into
16131 # a binary during linking. This must work even if \$libdir does
16132 # not exist.
16133 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16134
16135 # Whether we need a single -rpath flag with a separated argument.
16136 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16137
16138 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16139 # resulting binary.
16140 hardcode_direct=$hardcode_direct_F77
16141
16142 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16143 # resulting binary.
16144 hardcode_minus_L=$hardcode_minus_L_F77
16145
16146 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16147 # the resulting binary.
16148 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16149
16150 # Set to yes if building a shared library automatically hardcodes DIR into the library
16151 # and all subsequent libraries and executables linked against it.
16152 hardcode_automatic=$hardcode_automatic_F77
16153
16154 # Variables whose values should be saved in libtool wrapper scripts and
16155 # restored at relink time.
16156 variables_saved_for_relink="$variables_saved_for_relink"
16157
16158 # Whether libtool must link a program against all its dependency libraries.
16159 link_all_deplibs=$link_all_deplibs_F77
16160
16161 # Compile-time system search path for libraries
16162 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16163
16164 # Run-time system search path for libraries
16165 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16166
16167 # Fix the shell variable \$srcfile for the compiler.
16168 fix_srcfile_path="$fix_srcfile_path_F77"
16169
16170 # Set to yes if exported symbols are required.
16171 always_export_symbols=$always_export_symbols_F77
16172
16173 # The commands to list exported symbols.
16174 export_symbols_cmds=$lt_export_symbols_cmds_F77
16175
16176 # The commands to extract the exported symbol list from a shared archive.
16177 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16178
16179 # Symbols that should not be listed in the preloaded symbols.
16180 exclude_expsyms=$lt_exclude_expsyms_F77
16181
16182 # Symbols that must always be exported.
16183 include_expsyms=$lt_include_expsyms_F77
16184
16185 # ### END LIBTOOL TAG CONFIG: $tagname
16186
16187 __EOF__
16188
16189
16190 else
16191   # If there is no Makefile yet, we rely on a make rule to execute
16192   # `config.status --recheck' to rerun these tests and create the
16193   # libtool script then.
16194   test -f Makefile && make "$ltmain"
16195 fi
16196
16197
16198 ac_ext=c
16199 ac_cpp='$CPP $CPPFLAGS'
16200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16203
16204 CC="$lt_save_CC"
16205
16206         else
16207           tagname=""
16208         fi
16209         ;;
16210
16211       GCJ)
16212         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16213
16214
16215
16216 # Source file extension for Java test sources.
16217 ac_ext=java
16218
16219 # Object file extension for compiled Java test sources.
16220 objext=o
16221 objext_GCJ=$objext
16222
16223 # Code to be used in simple compile tests
16224 lt_simple_compile_test_code="class foo {}\n"
16225
16226 # Code to be used in simple link tests
16227 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16228
16229 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16230
16231 # If no C compiler was specified, use CC.
16232 LTCC=${LTCC-"$CC"}
16233
16234 # Allow CC to be a program name with arguments.
16235 compiler=$CC
16236
16237
16238 # Allow CC to be a program name with arguments.
16239 lt_save_CC="$CC"
16240 CC=${GCJ-"gcj"}
16241 compiler=$CC
16242 compiler_GCJ=$CC
16243
16244 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16245 archive_cmds_need_lc_GCJ=no
16246
16247 ## CAVEAT EMPTOR:
16248 ## There is no encapsulation within the following macros, do not change
16249 ## the running order or otherwise move them around unless you know exactly
16250 ## what you are doing...
16251
16252 lt_prog_compiler_no_builtin_flag_GCJ=
16253
16254 if test "$GCC" = yes; then
16255   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16256
16257   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16258 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16259 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16260   echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262   lt_cv_prog_compiler_rtti_exceptions=no
16263   ac_outfile=conftest.$ac_objext
16264    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16265    lt_compiler_flag="-fno-rtti -fno-exceptions"
16266    # Insert the option either (1) after the last *FLAGS variable, or
16267    # (2) before a word containing "conftest.", or (3) at the end.
16268    # Note that $ac_compile itself does not contain backslashes and begins
16269    # with a dollar sign (not a hyphen), so the echo should work correctly.
16270    # The option is referenced via a variable to avoid confusing sed.
16271    lt_compile=`echo "$ac_compile" | $SED \
16272    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16273    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16274    -e 's:$: $lt_compiler_flag:'`
16275    (eval echo "\"\$as_me:16275: $lt_compile\"" >&5)
16276    (eval "$lt_compile" 2>conftest.err)
16277    ac_status=$?
16278    cat conftest.err >&5
16279    echo "$as_me:16279: \$? = $ac_status" >&5
16280    if (exit $ac_status) && test -s "$ac_outfile"; then
16281      # The compiler can only warn and ignore the option if not recognized
16282      # So say no if there are warnings
16283      if test ! -s conftest.err; then
16284        lt_cv_prog_compiler_rtti_exceptions=yes
16285      fi
16286    fi
16287    $rm conftest*
16288
16289 fi
16290 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16291 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16292
16293 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16294     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16295 else
16296     :
16297 fi
16298
16299 fi
16300
16301 lt_prog_compiler_wl_GCJ=
16302 lt_prog_compiler_pic_GCJ=
16303 lt_prog_compiler_static_GCJ=
16304
16305 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16306 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16307
16308   if test "$GCC" = yes; then
16309     lt_prog_compiler_wl_GCJ='-Wl,'
16310     lt_prog_compiler_static_GCJ='-static'
16311
16312     case $host_os in
16313       aix*)
16314       # All AIX code is PIC.
16315       if test "$host_cpu" = ia64; then
16316         # AIX 5 now supports IA64 processor
16317         lt_prog_compiler_static_GCJ='-Bstatic'
16318       fi
16319       ;;
16320
16321     amigaos*)
16322       # FIXME: we need at least 68020 code to build shared libraries, but
16323       # adding the `-m68020' flag to GCC prevents building anything better,
16324       # like `-m68040'.
16325       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16326       ;;
16327
16328     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16329       # PIC is the default for these OSes.
16330       ;;
16331
16332     mingw* | pw32* | os2*)
16333       # This hack is so that the source file can tell whether it is being
16334       # built for inclusion in a dll (and should export symbols for example).
16335       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16336       ;;
16337
16338     darwin* | rhapsody*)
16339       # PIC is the default on this platform
16340       # Common symbols not allowed in MH_DYLIB files
16341       lt_prog_compiler_pic_GCJ='-fno-common'
16342       ;;
16343
16344     msdosdjgpp*)
16345       # Just because we use GCC doesn't mean we suddenly get shared libraries
16346       # on systems that don't support them.
16347       lt_prog_compiler_can_build_shared_GCJ=no
16348       enable_shared=no
16349       ;;
16350
16351     sysv4*MP*)
16352       if test -d /usr/nec; then
16353         lt_prog_compiler_pic_GCJ=-Kconform_pic
16354       fi
16355       ;;
16356
16357     hpux*)
16358       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16359       # not for PA HP-UX.
16360       case "$host_cpu" in
16361       hppa*64*|ia64*)
16362         # +Z the default
16363         ;;
16364       *)
16365         lt_prog_compiler_pic_GCJ='-fPIC'
16366         ;;
16367       esac
16368       ;;
16369
16370     *)
16371       lt_prog_compiler_pic_GCJ='-fPIC'
16372       ;;
16373     esac
16374   else
16375     # PORTME Check for flag to pass linker flags through the system compiler.
16376     case $host_os in
16377     aix*)
16378       lt_prog_compiler_wl_GCJ='-Wl,'
16379       if test "$host_cpu" = ia64; then
16380         # AIX 5 now supports IA64 processor
16381         lt_prog_compiler_static_GCJ='-Bstatic'
16382       else
16383         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16384       fi
16385       ;;
16386
16387     mingw* | pw32* | os2*)
16388       # This hack is so that the source file can tell whether it is being
16389       # built for inclusion in a dll (and should export symbols for example).
16390       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16391       ;;
16392
16393     hpux9* | hpux10* | hpux11*)
16394       lt_prog_compiler_wl_GCJ='-Wl,'
16395       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16396       # not for PA HP-UX.
16397       case "$host_cpu" in
16398       hppa*64*|ia64*)
16399         # +Z the default
16400         ;;
16401       *)
16402         lt_prog_compiler_pic_GCJ='+Z'
16403         ;;
16404       esac
16405       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16406       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16407       ;;
16408
16409     irix5* | irix6* | nonstopux*)
16410       lt_prog_compiler_wl_GCJ='-Wl,'
16411       # PIC (with -KPIC) is the default.
16412       lt_prog_compiler_static_GCJ='-non_shared'
16413       ;;
16414
16415     newsos6)
16416       lt_prog_compiler_pic_GCJ='-KPIC'
16417       lt_prog_compiler_static_GCJ='-Bstatic'
16418       ;;
16419
16420     linux*)
16421       case $CC in
16422       icc|ecc)
16423         lt_prog_compiler_wl_GCJ='-Wl,'
16424         lt_prog_compiler_pic_GCJ='-KPIC'
16425         lt_prog_compiler_static_GCJ='-static'
16426         ;;
16427       ccc)
16428         lt_prog_compiler_wl_GCJ='-Wl,'
16429         # All Alpha code is PIC.
16430         lt_prog_compiler_static_GCJ='-non_shared'
16431         ;;
16432       esac
16433       ;;
16434
16435     osf3* | osf4* | osf5*)
16436       lt_prog_compiler_wl_GCJ='-Wl,'
16437       # All OSF/1 code is PIC.
16438       lt_prog_compiler_static_GCJ='-non_shared'
16439       ;;
16440
16441     sco3.2v5*)
16442       lt_prog_compiler_pic_GCJ='-Kpic'
16443       lt_prog_compiler_static_GCJ='-dn'
16444       ;;
16445
16446     solaris*)
16447       lt_prog_compiler_wl_GCJ='-Wl,'
16448       lt_prog_compiler_pic_GCJ='-KPIC'
16449       lt_prog_compiler_static_GCJ='-Bstatic'
16450       ;;
16451
16452     sunos4*)
16453       lt_prog_compiler_wl_GCJ='-Qoption ld '
16454       lt_prog_compiler_pic_GCJ='-PIC'
16455       lt_prog_compiler_static_GCJ='-Bstatic'
16456       ;;
16457
16458     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16459       lt_prog_compiler_wl_GCJ='-Wl,'
16460       lt_prog_compiler_pic_GCJ='-KPIC'
16461       lt_prog_compiler_static_GCJ='-Bstatic'
16462       ;;
16463
16464     sysv4*MP*)
16465       if test -d /usr/nec ;then
16466         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16467         lt_prog_compiler_static_GCJ='-Bstatic'
16468       fi
16469       ;;
16470
16471     uts4*)
16472       lt_prog_compiler_pic_GCJ='-pic'
16473       lt_prog_compiler_static_GCJ='-Bstatic'
16474       ;;
16475
16476     *)
16477       lt_prog_compiler_can_build_shared_GCJ=no
16478       ;;
16479     esac
16480   fi
16481
16482 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16483 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16484
16485 #
16486 # Check to make sure the PIC flag actually works.
16487 #
16488 if test -n "$lt_prog_compiler_pic_GCJ"; then
16489   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16490 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16491 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16492   echo $ECHO_N "(cached) $ECHO_C" >&6
16493 else
16494   lt_prog_compiler_pic_works_GCJ=no
16495   ac_outfile=conftest.$ac_objext
16496    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16497    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16498    # Insert the option either (1) after the last *FLAGS variable, or
16499    # (2) before a word containing "conftest.", or (3) at the end.
16500    # Note that $ac_compile itself does not contain backslashes and begins
16501    # with a dollar sign (not a hyphen), so the echo should work correctly.
16502    # The option is referenced via a variable to avoid confusing sed.
16503    lt_compile=`echo "$ac_compile" | $SED \
16504    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16505    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16506    -e 's:$: $lt_compiler_flag:'`
16507    (eval echo "\"\$as_me:16507: $lt_compile\"" >&5)
16508    (eval "$lt_compile" 2>conftest.err)
16509    ac_status=$?
16510    cat conftest.err >&5
16511    echo "$as_me:16511: \$? = $ac_status" >&5
16512    if (exit $ac_status) && test -s "$ac_outfile"; then
16513      # The compiler can only warn and ignore the option if not recognized
16514      # So say no if there are warnings
16515      if test ! -s conftest.err; then
16516        lt_prog_compiler_pic_works_GCJ=yes
16517      fi
16518    fi
16519    $rm conftest*
16520
16521 fi
16522 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16523 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16524
16525 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16526     case $lt_prog_compiler_pic_GCJ in
16527      "" | " "*) ;;
16528      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16529      esac
16530 else
16531     lt_prog_compiler_pic_GCJ=
16532      lt_prog_compiler_can_build_shared_GCJ=no
16533 fi
16534
16535 fi
16536 case "$host_os" in
16537   # For platforms which do not support PIC, -DPIC is meaningless:
16538   *djgpp*)
16539     lt_prog_compiler_pic_GCJ=
16540     ;;
16541   *)
16542     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16543     ;;
16544 esac
16545
16546 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16548 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16549   echo $ECHO_N "(cached) $ECHO_C" >&6
16550 else
16551   lt_cv_prog_compiler_c_o_GCJ=no
16552    $rm -r conftest 2>/dev/null
16553    mkdir conftest
16554    cd conftest
16555    mkdir out
16556    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16557
16558    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16559    # that will create temporary files in the current directory regardless of
16560    # the output directory.  Thus, making CWD read-only will cause this test
16561    # to fail, enabling locking or at least warning the user not to do parallel
16562    # builds.
16563    chmod -w .
16564
16565    lt_compiler_flag="-o out/conftest2.$ac_objext"
16566    # Insert the option either (1) after the last *FLAGS variable, or
16567    # (2) before a word containing "conftest.", or (3) at the end.
16568    # Note that $ac_compile itself does not contain backslashes and begins
16569    # with a dollar sign (not a hyphen), so the echo should work correctly.
16570    lt_compile=`echo "$ac_compile" | $SED \
16571    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16572    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16573    -e 's:$: $lt_compiler_flag:'`
16574    (eval echo "\"\$as_me:16574: $lt_compile\"" >&5)
16575    (eval "$lt_compile" 2>out/conftest.err)
16576    ac_status=$?
16577    cat out/conftest.err >&5
16578    echo "$as_me:16578: \$? = $ac_status" >&5
16579    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16580    then
16581      # The compiler can only warn and ignore the option if not recognized
16582      # So say no if there are warnings
16583      if test ! -s out/conftest.err; then
16584        lt_cv_prog_compiler_c_o_GCJ=yes
16585      fi
16586    fi
16587    chmod u+w .
16588    $rm conftest* out/*
16589    rmdir out
16590    cd ..
16591    rmdir conftest
16592    $rm conftest*
16593
16594 fi
16595 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16597
16598
16599 hard_links="nottested"
16600 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16601   # do not overwrite the value of need_locks provided by the user
16602   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16604   hard_links=yes
16605   $rm conftest*
16606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16607   touch conftest.a
16608   ln conftest.a conftest.b 2>&5 || hard_links=no
16609   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16610   echo "$as_me:$LINENO: result: $hard_links" >&5
16611 echo "${ECHO_T}$hard_links" >&6
16612   if test "$hard_links" = no; then
16613     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16615     need_locks=warn
16616   fi
16617 else
16618   need_locks=no
16619 fi
16620
16621 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16623
16624   runpath_var=
16625   allow_undefined_flag_GCJ=
16626   enable_shared_with_static_runtimes_GCJ=no
16627   archive_cmds_GCJ=
16628   archive_expsym_cmds_GCJ=
16629   old_archive_From_new_cmds_GCJ=
16630   old_archive_from_expsyms_cmds_GCJ=
16631   export_dynamic_flag_spec_GCJ=
16632   whole_archive_flag_spec_GCJ=
16633   thread_safe_flag_spec_GCJ=
16634   hardcode_libdir_flag_spec_GCJ=
16635   hardcode_libdir_flag_spec_ld_GCJ=
16636   hardcode_libdir_separator_GCJ=
16637   hardcode_direct_GCJ=no
16638   hardcode_minus_L_GCJ=no
16639   hardcode_shlibpath_var_GCJ=unsupported
16640   link_all_deplibs_GCJ=unknown
16641   hardcode_automatic_GCJ=no
16642   module_cmds_GCJ=
16643   module_expsym_cmds_GCJ=
16644   always_export_symbols_GCJ=no
16645   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16646   # include_expsyms should be a list of space-separated symbols to be *always*
16647   # included in the symbol list
16648   include_expsyms_GCJ=
16649   # exclude_expsyms can be an extended regexp of symbols to exclude
16650   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16651   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16652   # as well as any symbol that contains `d'.
16653   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16654   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16655   # platforms (ab)use it in PIC code, but their linkers get confused if
16656   # the symbol is explicitly referenced.  Since portable code cannot
16657   # rely on this symbol name, it's probably fine to never include it in
16658   # preloaded symbol tables.
16659   extract_expsyms_cmds=
16660
16661   case $host_os in
16662   cygwin* | mingw* | pw32*)
16663     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16664     # When not using gcc, we currently assume that we are using
16665     # Microsoft Visual C++.
16666     if test "$GCC" != yes; then
16667       with_gnu_ld=no
16668     fi
16669     ;;
16670   openbsd*)
16671     with_gnu_ld=no
16672     ;;
16673   esac
16674
16675   ld_shlibs_GCJ=yes
16676   if test "$with_gnu_ld" = yes; then
16677     # If archive_cmds runs LD, not CC, wlarc should be empty
16678     wlarc='${wl}'
16679
16680     # See if GNU ld supports shared libraries.
16681     case $host_os in
16682     aix3* | aix4* | aix5*)
16683       # On AIX/PPC, the GNU linker is very broken
16684       if test "$host_cpu" != ia64; then
16685         ld_shlibs_GCJ=no
16686         cat <<EOF 1>&2
16687
16688 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16689 *** to be unable to reliably create shared libraries on AIX.
16690 *** Therefore, libtool is disabling shared libraries support.  If you
16691 *** really care for shared libraries, you may want to modify your PATH
16692 *** so that a non-GNU linker is found, and then restart.
16693
16694 EOF
16695       fi
16696       ;;
16697
16698     amigaos*)
16699       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16700       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16701       hardcode_minus_L_GCJ=yes
16702
16703       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16704       # that the semantics of dynamic libraries on AmigaOS, at least up
16705       # to version 4, is to share data among multiple programs linked
16706       # with the same dynamic library.  Since this doesn't match the
16707       # behavior of shared libraries on other platforms, we can't use
16708       # them.
16709       ld_shlibs_GCJ=no
16710       ;;
16711
16712     beos*)
16713       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16714         allow_undefined_flag_GCJ=unsupported
16715         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16716         # support --undefined.  This deserves some investigation.  FIXME
16717         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16718       else
16719         ld_shlibs_GCJ=no
16720       fi
16721       ;;
16722
16723     cygwin* | mingw* | pw32*)
16724       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16725       # as there is no search path for DLLs.
16726       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16727       allow_undefined_flag_GCJ=unsupported
16728       always_export_symbols_GCJ=no
16729       enable_shared_with_static_runtimes_GCJ=yes
16730       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16731
16732       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16733         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16734         # If the export-symbols file already is a .def file (1st line
16735         # is EXPORTS), use it as is; otherwise, prepend...
16736         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16737           cp $export_symbols $output_objdir/$soname.def;
16738         else
16739           echo EXPORTS > $output_objdir/$soname.def;
16740           cat $export_symbols >> $output_objdir/$soname.def;
16741         fi~
16742         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16743       else
16744         ld_shlibs=no
16745       fi
16746       ;;
16747
16748     netbsd*)
16749       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16750         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16751         wlarc=
16752       else
16753         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16754         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16755       fi
16756       ;;
16757
16758     solaris* | sysv5*)
16759       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16760         ld_shlibs_GCJ=no
16761         cat <<EOF 1>&2
16762
16763 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16764 *** create shared libraries on Solaris systems.  Therefore, libtool
16765 *** is disabling shared libraries support.  We urge you to upgrade GNU
16766 *** binutils to release 2.9.1 or newer.  Another option is to modify
16767 *** your PATH or compiler configuration so that the native linker is
16768 *** used, and then restart.
16769
16770 EOF
16771       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16772         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16773         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16774       else
16775         ld_shlibs_GCJ=no
16776       fi
16777       ;;
16778
16779     sunos4*)
16780       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16781       wlarc=
16782       hardcode_direct_GCJ=yes
16783       hardcode_shlibpath_var_GCJ=no
16784       ;;
16785
16786     *)
16787       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16788         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16789         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16790       else
16791         ld_shlibs_GCJ=no
16792       fi
16793       ;;
16794     esac
16795
16796     if test "$ld_shlibs_GCJ" = yes; then
16797       runpath_var=LD_RUN_PATH
16798       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16799       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16800       # ancient GNU ld didn't support --whole-archive et. al.
16801       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16802         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16803       else
16804         whole_archive_flag_spec_GCJ=
16805       fi
16806     fi
16807   else
16808     # PORTME fill in a description of your system's linker (not GNU ld)
16809     case $host_os in
16810     aix3*)
16811       allow_undefined_flag_GCJ=unsupported
16812       always_export_symbols_GCJ=yes
16813       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16814       # Note: this linker hardcodes the directories in LIBPATH if there
16815       # are no directories specified by -L.
16816       hardcode_minus_L_GCJ=yes
16817       if test "$GCC" = yes && test -z "$link_static_flag"; then
16818         # Neither direct hardcoding nor static linking is supported with a
16819         # broken collect2.
16820         hardcode_direct_GCJ=unsupported
16821       fi
16822       ;;
16823
16824     aix4* | aix5*)
16825       if test "$host_cpu" = ia64; then
16826         # On IA64, the linker does run time linking by default, so we don't
16827         # have to do anything special.
16828         aix_use_runtimelinking=no
16829         exp_sym_flag='-Bexport'
16830         no_entry_flag=""
16831       else
16832         # If we're using GNU nm, then we don't want the "-C" option.
16833         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16834         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16835           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16836         else
16837           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16838         fi
16839         aix_use_runtimelinking=no
16840
16841         # Test if we are trying to use run time linking or normal
16842         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16843         # need to do runtime linking.
16844         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16845           for ld_flag in $LDFLAGS; do
16846           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16847             aix_use_runtimelinking=yes
16848             break
16849           fi
16850           done
16851         esac
16852
16853         exp_sym_flag='-bexport'
16854         no_entry_flag='-bnoentry'
16855       fi
16856
16857       # When large executables or shared objects are built, AIX ld can
16858       # have problems creating the table of contents.  If linking a library
16859       # or program results in "error TOC overflow" add -mminimal-toc to
16860       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16861       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16862
16863       archive_cmds_GCJ=''
16864       hardcode_direct_GCJ=yes
16865       hardcode_libdir_separator_GCJ=':'
16866       link_all_deplibs_GCJ=yes
16867
16868       if test "$GCC" = yes; then
16869         case $host_os in aix4.012|aix4.012.*)
16870         # We only want to do this on AIX 4.2 and lower, the check
16871         # below for broken collect2 doesn't work under 4.3+
16872           collect2name=`${CC} -print-prog-name=collect2`
16873           if test -f "$collect2name" && \
16874            strings "$collect2name" | grep resolve_lib_name >/dev/null
16875           then
16876           # We have reworked collect2
16877           hardcode_direct_GCJ=yes
16878           else
16879           # We have old collect2
16880           hardcode_direct_GCJ=unsupported
16881           # It fails to find uninstalled libraries when the uninstalled
16882           # path is not listed in the libpath.  Setting hardcode_minus_L
16883           # to unsupported forces relinking
16884           hardcode_minus_L_GCJ=yes
16885           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16886           hardcode_libdir_separator_GCJ=
16887           fi
16888         esac
16889         shared_flag='-shared'
16890       else
16891         # not using gcc
16892         if test "$host_cpu" = ia64; then
16893         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16894         # chokes on -Wl,-G. The following line is correct:
16895           shared_flag='-G'
16896         else
16897         if test "$aix_use_runtimelinking" = yes; then
16898             shared_flag='${wl}-G'
16899           else
16900             shared_flag='${wl}-bM:SRE'
16901         fi
16902         fi
16903       fi
16904
16905       # It seems that -bexpall does not export symbols beginning with
16906       # underscore (_), so it is better to generate a list of symbols to export.
16907       always_export_symbols_GCJ=yes
16908       if test "$aix_use_runtimelinking" = yes; then
16909         # Warning - without using the other runtime loading flags (-brtl),
16910         # -berok will link without error, but may produce a broken library.
16911         allow_undefined_flag_GCJ='-berok'
16912        # Determine the default libpath from the value encoded in an empty executable.
16913        cat >conftest.$ac_ext <<_ACEOF
16914 #line $LINENO "configure"
16915 /* confdefs.h.  */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h.  */
16920
16921 int
16922 main ()
16923 {
16924
16925   ;
16926   return 0;
16927 }
16928 _ACEOF
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16931   (eval $ac_link) 2>&5
16932   ac_status=$?
16933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934   (exit $ac_status); } &&
16935          { ac_try='test -s conftest$ac_exeext'
16936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937   (eval $ac_try) 2>&5
16938   ac_status=$?
16939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940   (exit $ac_status); }; }; then
16941
16942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16943 }'`
16944 # Check for a 64-bit object if we didn't find anything.
16945 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16946 }'`; fi
16947 else
16948   echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16950
16951 fi
16952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16953 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16954
16955        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16956         archive_expsym_cmds_GCJ="\$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"
16957        else
16958         if test "$host_cpu" = ia64; then
16959           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16960           allow_undefined_flag_GCJ="-z nodefs"
16961           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16962         else
16963          # Determine the default libpath from the value encoded in an empty executable.
16964          cat >conftest.$ac_ext <<_ACEOF
16965 #line $LINENO "configure"
16966 /* confdefs.h.  */
16967 _ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h.  */
16971
16972 int
16973 main ()
16974 {
16975
16976   ;
16977   return 0;
16978 }
16979 _ACEOF
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16982   (eval $ac_link) 2>&5
16983   ac_status=$?
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); } &&
16986          { ac_try='test -s conftest$ac_exeext'
16987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988   (eval $ac_try) 2>&5
16989   ac_status=$?
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); }; }; then
16992
16993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16994 }'`
16995 # Check for a 64-bit object if we didn't find anything.
16996 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16997 }'`; fi
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002 fi
17003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17005
17006          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17007           # Warning - without using the other run time loading flags,
17008           # -berok will link without error, but may produce a broken library.
17009           no_undefined_flag_GCJ=' ${wl}-bernotok'
17010           allow_undefined_flag_GCJ=' ${wl}-berok'
17011           # -bexpall does not export symbols beginning with underscore (_)
17012           always_export_symbols_GCJ=yes
17013           # Exported symbols can be pulled into shared objects from archives
17014           whole_archive_flag_spec_GCJ=' '
17015           archive_cmds_need_lc_GCJ=yes
17016           # This is similar to how AIX traditionally builds it's shared libraries.
17017           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17018         fi
17019       fi
17020       ;;
17021
17022     amigaos*)
17023       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17024       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025       hardcode_minus_L_GCJ=yes
17026       # see comment about different semantics on the GNU ld section
17027       ld_shlibs_GCJ=no
17028       ;;
17029
17030     bsdi4*)
17031       export_dynamic_flag_spec_GCJ=-rdynamic
17032       ;;
17033
17034     cygwin* | mingw* | pw32*)
17035       # When not using gcc, we currently assume that we are using
17036       # Microsoft Visual C++.
17037       # hardcode_libdir_flag_spec is actually meaningless, as there is
17038       # no search path for DLLs.
17039       hardcode_libdir_flag_spec_GCJ=' '
17040       allow_undefined_flag_GCJ=unsupported
17041       # Tell ltmain to make .lib files, not .a files.
17042       libext=lib
17043       # Tell ltmain to make .dll files, not .so files.
17044       shrext=".dll"
17045       # FIXME: Setting linknames here is a bad hack.
17046       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17047       # The linker will automatically build a .lib file if we build a DLL.
17048       old_archive_From_new_cmds_GCJ='true'
17049       # FIXME: Should let the user specify the lib program.
17050       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17051       fix_srcfile_path='`cygpath -w "$srcfile"`'
17052       enable_shared_with_static_runtimes_GCJ=yes
17053       ;;
17054
17055     darwin* | rhapsody*)
17056     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
17057       archive_cmds_need_lc_GCJ=no
17058       case "$host_os" in
17059       rhapsody* | darwin1.[012])
17060         allow_undefined_flag_GCJ='-undefined suppress'
17061         ;;
17062       *) # Darwin 1.3 on
17063         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17064         ;;
17065       esac
17066       # FIXME: Relying on posixy $() will cause problems for
17067       #        cross-compilation, but unfortunately the echo tests do not
17068       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
17069       #        `"' quotes if we put them in here... so don't!
17070         lt_int_apple_cc_single_mod=no
17071         output_verbose_link_cmd='echo'
17072         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17073           lt_int_apple_cc_single_mod=yes
17074         fi
17075         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17076           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17077         else
17078         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17079       fi
17080       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
17081       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17082         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17083           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17084         else
17085           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17086         fi
17087           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17088       hardcode_direct_GCJ=no
17089       hardcode_automatic_GCJ=yes
17090       hardcode_shlibpath_var_GCJ=unsupported
17091       whole_archive_flag_spec_GCJ='-all_load $convenience'
17092       link_all_deplibs_GCJ=yes
17093     fi
17094       ;;
17095
17096     dgux*)
17097       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17098       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17099       hardcode_shlibpath_var_GCJ=no
17100       ;;
17101
17102     freebsd1*)
17103       ld_shlibs_GCJ=no
17104       ;;
17105
17106     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17107     # support.  Future versions do this automatically, but an explicit c++rt0.o
17108     # does not break anything, and helps significantly (at the cost of a little
17109     # extra space).
17110     freebsd2.2*)
17111       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17112       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17113       hardcode_direct_GCJ=yes
17114       hardcode_shlibpath_var_GCJ=no
17115       ;;
17116
17117     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17118     freebsd2*)
17119       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17120       hardcode_direct_GCJ=yes
17121       hardcode_minus_L_GCJ=yes
17122       hardcode_shlibpath_var_GCJ=no
17123       ;;
17124
17125     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17126     freebsd*)
17127       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17128       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17129       hardcode_direct_GCJ=yes
17130       hardcode_shlibpath_var_GCJ=no
17131       ;;
17132
17133     hpux9*)
17134       if test "$GCC" = yes; then
17135         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17136       else
17137         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17138       fi
17139       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17140       hardcode_libdir_separator_GCJ=:
17141       hardcode_direct_GCJ=yes
17142
17143       # hardcode_minus_L: Not really in the search PATH,
17144       # but as the default location of the library.
17145       hardcode_minus_L_GCJ=yes
17146       export_dynamic_flag_spec_GCJ='${wl}-E'
17147       ;;
17148
17149     hpux10* | hpux11*)
17150       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17151         case "$host_cpu" in
17152         hppa*64*|ia64*)
17153           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17154           ;;
17155         *)
17156           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17157           ;;
17158         esac
17159       else
17160         case "$host_cpu" in
17161         hppa*64*|ia64*)
17162           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17163           ;;
17164         *)
17165           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17166           ;;
17167         esac
17168       fi
17169       if test "$with_gnu_ld" = no; then
17170         case "$host_cpu" in
17171         hppa*64*)
17172           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17173           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17174           hardcode_libdir_separator_GCJ=:
17175           hardcode_direct_GCJ=no
17176           hardcode_shlibpath_var_GCJ=no
17177           ;;
17178         ia64*)
17179           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17180           hardcode_direct_GCJ=no
17181           hardcode_shlibpath_var_GCJ=no
17182
17183           # hardcode_minus_L: Not really in the search PATH,
17184           # but as the default location of the library.
17185           hardcode_minus_L_GCJ=yes
17186           ;;
17187         *)
17188           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17189           hardcode_libdir_separator_GCJ=:
17190           hardcode_direct_GCJ=yes
17191           export_dynamic_flag_spec_GCJ='${wl}-E'
17192
17193           # hardcode_minus_L: Not really in the search PATH,
17194           # but as the default location of the library.
17195           hardcode_minus_L_GCJ=yes
17196           ;;
17197         esac
17198       fi
17199       ;;
17200
17201     irix5* | irix6* | nonstopux*)
17202       if test "$GCC" = yes; then
17203         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17204       else
17205         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17206         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17207       fi
17208       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17209       hardcode_libdir_separator_GCJ=:
17210       link_all_deplibs_GCJ=yes
17211       ;;
17212
17213     netbsd*)
17214       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17215         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17216       else
17217         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17218       fi
17219       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17220       hardcode_direct_GCJ=yes
17221       hardcode_shlibpath_var_GCJ=no
17222       ;;
17223
17224     newsos6)
17225       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17226       hardcode_direct_GCJ=yes
17227       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17228       hardcode_libdir_separator_GCJ=:
17229       hardcode_shlibpath_var_GCJ=no
17230       ;;
17231
17232     openbsd*)
17233       case "$host_cpu" in
17234         m88k|hppa|vax)
17235           ld_shlibs_GCJ=no
17236           ;;
17237         *)
17238           hardcode_direct_GCJ=yes
17239           hardcode_shlibpath_var_GCJ=no
17240           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17241             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17242             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17243             export_dynamic_flag_spec_GCJ='${wl}-E'
17244           else
17245             case $host_os in
17246               openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17247                 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17248                 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17249                 ;;
17250               *)
17251                 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17252                 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17253                 ;;
17254             esac
17255           fi
17256           ;;
17257       esac
17258       ;;
17259
17260     os2*)
17261       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17262       hardcode_minus_L_GCJ=yes
17263       allow_undefined_flag_GCJ=unsupported
17264       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17265       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17266       ;;
17267
17268     osf3*)
17269       if test "$GCC" = yes; then
17270         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17271         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17272       else
17273         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17274         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17275       fi
17276       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17277       hardcode_libdir_separator_GCJ=:
17278       ;;
17279
17280     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17281       if test "$GCC" = yes; then
17282         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17283         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17284         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17285       else
17286         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17287         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17288         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17289         $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'
17290
17291         # Both c and cxx compiler support -rpath directly
17292         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17293       fi
17294       hardcode_libdir_separator_GCJ=:
17295       ;;
17296
17297     sco3.2v5*)
17298       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17299       hardcode_shlibpath_var_GCJ=no
17300       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17301       runpath_var=LD_RUN_PATH
17302       hardcode_runpath_var=yes
17303       ;;
17304
17305     solaris*)
17306       no_undefined_flag_GCJ=' -z text'
17307       if test "$GCC" = yes; then
17308         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17309         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17310           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17311       else
17312         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17313         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17314         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17315       fi
17316       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17317       hardcode_shlibpath_var_GCJ=no
17318       case $host_os in
17319       solaris2.[0-5] | solaris2.[0-5].*) ;;
17320       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17321         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17322       esac
17323       link_all_deplibs_GCJ=yes
17324       ;;
17325
17326     sunos4*)
17327       if test "x$host_vendor" = xsequent; then
17328         # Use $CC to link under sequent, because it throws in some extra .o
17329         # files that make .init and .fini sections work.
17330         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17331       else
17332         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17333       fi
17334       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17335       hardcode_direct_GCJ=yes
17336       hardcode_minus_L_GCJ=yes
17337       hardcode_shlibpath_var_GCJ=no
17338       ;;
17339
17340     sysv4)
17341       case $host_vendor in
17342         sni)
17343           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17344           hardcode_direct_GCJ=yes # is this really true???
17345         ;;
17346         siemens)
17347           ## LD is ld it makes a PLAMLIB
17348           ## CC just makes a GrossModule.
17349           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17350           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17351           hardcode_direct_GCJ=no
17352         ;;
17353         motorola)
17354           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17355           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17356         ;;
17357       esac
17358       runpath_var='LD_RUN_PATH'
17359       hardcode_shlibpath_var_GCJ=no
17360       ;;
17361
17362     sysv4.3*)
17363       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17364       hardcode_shlibpath_var_GCJ=no
17365       export_dynamic_flag_spec_GCJ='-Bexport'
17366       ;;
17367
17368     sysv4*MP*)
17369       if test -d /usr/nec; then
17370         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17371         hardcode_shlibpath_var_GCJ=no
17372         runpath_var=LD_RUN_PATH
17373         hardcode_runpath_var=yes
17374         ld_shlibs_GCJ=yes
17375       fi
17376       ;;
17377
17378     sysv4.2uw2*)
17379       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17380       hardcode_direct_GCJ=yes
17381       hardcode_minus_L_GCJ=no
17382       hardcode_shlibpath_var_GCJ=no
17383       hardcode_runpath_var=yes
17384       runpath_var=LD_RUN_PATH
17385       ;;
17386
17387    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17388       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17389       if test "$GCC" = yes; then
17390         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17391       else
17392         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17393       fi
17394       runpath_var='LD_RUN_PATH'
17395       hardcode_shlibpath_var_GCJ=no
17396       ;;
17397
17398     sysv5*)
17399       no_undefined_flag_GCJ=' -z text'
17400       # $CC -shared without GNU ld will not create a library from C++
17401       # object files and a static libstdc++, better avoid it by now
17402       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17404                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17405       hardcode_libdir_flag_spec_GCJ=
17406       hardcode_shlibpath_var_GCJ=no
17407       runpath_var='LD_RUN_PATH'
17408       ;;
17409
17410     uts4*)
17411       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17412       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17413       hardcode_shlibpath_var_GCJ=no
17414       ;;
17415
17416     *)
17417       ld_shlibs_GCJ=no
17418       ;;
17419     esac
17420   fi
17421
17422 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17423 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17424 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17425
17426 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17427 if test "$GCC" = yes; then
17428   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17429 fi
17430
17431 #
17432 # Do we need to explicitly link libc?
17433 #
17434 case "x$archive_cmds_need_lc_GCJ" in
17435 x|xyes)
17436   # Assume -lc should be added
17437   archive_cmds_need_lc_GCJ=yes
17438
17439   if test "$enable_shared" = yes && test "$GCC" = yes; then
17440     case $archive_cmds_GCJ in
17441     *'~'*)
17442       # FIXME: we may have to deal with multi-command sequences.
17443       ;;
17444     '$CC '*)
17445       # Test whether the compiler implicitly links with -lc since on some
17446       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17447       # to ld, don't add -lc before -lgcc.
17448       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17449 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17450       $rm conftest*
17451       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17452
17453       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17454   (eval $ac_compile) 2>&5
17455   ac_status=$?
17456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); } 2>conftest.err; then
17458         soname=conftest
17459         lib=conftest
17460         libobjs=conftest.$ac_objext
17461         deplibs=
17462         wl=$lt_prog_compiler_wl_GCJ
17463         compiler_flags=-v
17464         linker_flags=-v
17465         verstring=
17466         output_objdir=.
17467         libname=conftest
17468         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17469         allow_undefined_flag_GCJ=
17470         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17471   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17472   ac_status=$?
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); }
17475         then
17476           archive_cmds_need_lc_GCJ=no
17477         else
17478           archive_cmds_need_lc_GCJ=yes
17479         fi
17480         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17481       else
17482         cat conftest.err 1>&5
17483       fi
17484       $rm conftest*
17485       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17486 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17487       ;;
17488     esac
17489   fi
17490   ;;
17491 esac
17492
17493 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17494 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17495 hardcode_action_GCJ=
17496 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17497    test -n "$runpath_var GCJ" || \
17498    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17499
17500   # We can hardcode non-existant directories.
17501   if test "$hardcode_direct_GCJ" != no &&
17502      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17503      # have to relink, otherwise we might link with an installed library
17504      # when we should be linking with a yet-to-be-installed one
17505      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17506      test "$hardcode_minus_L_GCJ" != no; then
17507     # Linking always hardcodes the temporary library directory.
17508     hardcode_action_GCJ=relink
17509   else
17510     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17511     hardcode_action_GCJ=immediate
17512   fi
17513 else
17514   # We cannot hardcode anything, or else we can only hardcode existing
17515   # directories.
17516   hardcode_action_GCJ=unsupported
17517 fi
17518 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17519 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17520
17521 if test "$hardcode_action_GCJ" = relink; then
17522   # Fast installation is not supported
17523   enable_fast_install=no
17524 elif test "$shlibpath_overrides_runpath" = yes ||
17525      test "$enable_shared" = no; then
17526   # Fast installation is not necessary
17527   enable_fast_install=needless
17528 fi
17529
17530 striplib=
17531 old_striplib=
17532 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17533 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17534 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17535   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17536   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17537   echo "$as_me:$LINENO: result: yes" >&5
17538 echo "${ECHO_T}yes" >&6
17539 else
17540 # FIXME - insert some real tests, host_os isn't really good enough
17541   case $host_os in
17542    darwin*)
17543        if test -n "$STRIP" ; then
17544          striplib="$STRIP -x"
17545          echo "$as_me:$LINENO: result: yes" >&5
17546 echo "${ECHO_T}yes" >&6
17547        else
17548   echo "$as_me:$LINENO: result: no" >&5
17549 echo "${ECHO_T}no" >&6
17550 fi
17551        ;;
17552    *)
17553   echo "$as_me:$LINENO: result: no" >&5
17554 echo "${ECHO_T}no" >&6
17555     ;;
17556   esac
17557 fi
17558
17559 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17560 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17561 library_names_spec=
17562 libname_spec='lib$name'
17563 soname_spec=
17564 shrext=".so"
17565 postinstall_cmds=
17566 postuninstall_cmds=
17567 finish_cmds=
17568 finish_eval=
17569 shlibpath_var=
17570 shlibpath_overrides_runpath=unknown
17571 version_type=none
17572 dynamic_linker="$host_os ld.so"
17573 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17574 if test "$GCC" = yes; then
17575   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17576   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17577     # if the path contains ";" then we assume it to be the separator
17578     # otherwise default to the standard path separator (i.e. ":") - it is
17579     # assumed that no part of a normal pathname contains ";" but that should
17580     # okay in the real world where ";" in dirpaths is itself problematic.
17581     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17582   else
17583     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17584   fi
17585 else
17586   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17587 fi
17588 need_lib_prefix=no
17589 hardcode_into_libs=no
17590
17591 # when you set need_version to no, make sure it does not cause -set_version
17592 # flags to be left without arguments
17593 need_version=no
17594
17595 case $host_os in
17596 aix3*)
17597   version_type=linux
17598   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17599   shlibpath_var=LIBPATH
17600
17601   # AIX 3 has no versioning support, so we append a major version to the name.
17602   soname_spec='${libname}${release}${shared_ext}$major'
17603   ;;
17604
17605 aix4* | aix5*)
17606   version_type=linux
17607   hardcode_into_libs=yes
17608   if test "$host_cpu" = ia64; then
17609     # AIX 5 supports IA64
17610     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17611     shlibpath_var=LD_LIBRARY_PATH
17612   else
17613     # With GCC up to 2.95.x, collect2 would create an import file
17614     # for dependence libraries.  The import file would start with
17615     # the line `#! .'.  This would cause the generated library to
17616     # depend on `.', always an invalid library.  This was fixed in
17617     # development snapshots of GCC prior to 3.0.
17618     case $host_os in
17619       aix4 | aix4.[01] | aix4.[01].*)
17620       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17621            echo ' yes '
17622            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17623         :
17624       else
17625         can_build_shared=no
17626       fi
17627       ;;
17628     esac
17629     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17630     # soname into executable. Probably we can add versioning support to
17631     # collect2, so additional links can be useful in future.
17632     if test "$aix_use_runtimelinking" = yes; then
17633       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17634       # instead of lib<name>.a to let people know that these are not
17635       # typical AIX shared libraries.
17636       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17637     else
17638       # We preserve .a as extension for shared libraries through AIX4.2
17639       # and later when we are not doing run time linking.
17640       library_names_spec='${libname}${release}.a $libname.a'
17641       soname_spec='${libname}${release}${shared_ext}$major'
17642     fi
17643     shlibpath_var=LIBPATH
17644   fi
17645   ;;
17646
17647 amigaos*)
17648   library_names_spec='$libname.ixlibrary $libname.a'
17649   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17650   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'
17651   ;;
17652
17653 beos*)
17654   library_names_spec='${libname}${shared_ext}'
17655   dynamic_linker="$host_os ld.so"
17656   shlibpath_var=LIBRARY_PATH
17657   ;;
17658
17659 bsdi4*)
17660   version_type=linux
17661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17662   soname_spec='${libname}${release}${shared_ext}$major'
17663   #finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17664   shlibpath_var=LD_LIBRARY_PATH
17665   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17666   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17667   # the default ld.so.conf also contains /usr/contrib/lib and
17668   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17669   # libtool to hard-code these into programs
17670   ;;
17671
17672 cygwin* | mingw* | pw32*)
17673   version_type=windows
17674   shrext=".dll"
17675
17676   case $GCC,$host_os in
17677   yes,cygwin* | yes,mingw* | yes,pw32*)
17678     library_names_spec='$libname.dll.a'
17679     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17680     postinstall_cmds='base_file=`basename \${file}`~
17681       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17682       dldir=$destdir/`dirname \$dlpath`~
17683       test -d \$dldir || mkdir -p \$dldir~
17684       $install_prog $dir/$dlname \$dldir/$dlname'
17685     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17686       dlpath=$dir/\$dldll~
17687        $rm \$dlpath'
17688     shlibpath_overrides_runpath=yes
17689
17690     case $host_os in
17691     cygwin*)
17692       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17693       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17694       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
17695       ;;
17696     mingw*)
17697       # MinGW DLLs use traditional 'lib' prefix
17698       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17699       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17700       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17701         # It is most probably a Windows format PATH printed by
17702         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17703         # path with ; separators, and with drive letters. We can handle the
17704         # drive letters (cygwin fileutils understands them), so leave them,
17705         # especially as we might pass files found there to a mingw objdump,
17706         # which wouldn't understand a cygwinified path. Ahh.
17707         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17708       else
17709         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17710       fi
17711       ;;
17712     pw32*)
17713       # pw32 DLLs use 'pw' prefix rather than 'lib'
17714       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17715       ;;
17716     esac
17717     ;;
17718
17719   *)
17720     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17721     ;;
17722   esac
17723   dynamic_linker='Win32 ld.exe'
17724   # FIXME: first we should search . and the directory the executable is in
17725   shlibpath_var=PATH
17726   ;;
17727
17728 darwin* | rhapsody*)
17729   dynamic_linker="$host_os dyld"
17730   version_type=darwin
17731   # FIXME: Relying on posixy $() will cause problems for
17732   #        cross-compilation, but unfortunately the echo tests do not
17733   #        yet detect zsh echo's removal of \ escapes.
17734   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17735   soname_spec='${libname}${release}${major}$shared_ext'
17736   shlibpath_overrides_runpath=yes
17737   shlibpath_var=DYLD_LIBRARY_PATH
17738   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17739   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17740   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
17741   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17742   fi
17743   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17744   ;;
17745
17746 dgux*)
17747   version_type=linux
17748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17749   soname_spec='${libname}${release}${shared_ext}$major'
17750   shlibpath_var=LD_LIBRARY_PATH
17751   ;;
17752
17753 freebsd1*)
17754   dynamic_linker=no
17755   ;;
17756
17757 freebsd*)
17758   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17759   version_type=freebsd-$objformat
17760   case $version_type in
17761     freebsd-elf*)
17762       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17763       ;;
17764     freebsd-*)
17765       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17766       ;;
17767   esac
17768   shlibpath_var=LD_LIBRARY_PATH
17769   case $host_os in
17770   freebsd2*)
17771     shlibpath_overrides_runpath=yes
17772     ;;
17773   freebsd3.01* | freebsdelf3.01*)
17774     shlibpath_overrides_runpath=yes
17775     hardcode_into_libs=yes
17776     ;;
17777   *) # from 3.2 on
17778     shlibpath_overrides_runpath=no
17779     hardcode_into_libs=yes
17780     ;;
17781   esac
17782   ;;
17783
17784 gnu*)
17785   version_type=linux
17786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17787   soname_spec='${libname}${release}${shared_ext}$major'
17788   shlibpath_var=LD_LIBRARY_PATH
17789   hardcode_into_libs=yes
17790   ;;
17791
17792 hpux9* | hpux10* | hpux11*)
17793   # Give a soname corresponding to the major version so that dld.sl refuses to
17794   # link against other versions.
17795   version_type=sunos
17796   case "$host_cpu" in
17797   ia64*)
17798     shrext='.so'
17799     hardcode_into_libs=yes
17800     dynamic_linker="$host_os dld.so"
17801     shlibpath_var=LD_LIBRARY_PATH
17802     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17803     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17804     soname_spec='${libname}${release}${shared_ext}$major'
17805     if test "X$HPUX_IA64_MODE" = X32; then
17806       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17807     else
17808       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17809     fi
17810     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17811     ;;
17812    hppa*64*)
17813      shrext='.sl'
17814      hardcode_into_libs=yes
17815      dynamic_linker="$host_os dld.sl"
17816      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17817      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17818      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17819      soname_spec='${libname}${release}${shared_ext}$major'
17820      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17821      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17822      ;;
17823    *)
17824     shrext='.sl'
17825     dynamic_linker="$host_os dld.sl"
17826     shlibpath_var=SHLIB_PATH
17827     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17828     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829     soname_spec='${libname}${release}${shared_ext}$major'
17830     ;;
17831   esac
17832   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17833   postinstall_cmds='chmod 555 $lib'
17834   ;;
17835
17836 irix5* | irix6* | nonstopux*)
17837   case $host_os in
17838     nonstopux*) version_type=nonstopux ;;
17839     *)
17840         if test "$lt_cv_prog_gnu_ld" = yes; then
17841                 version_type=linux
17842         else
17843                 version_type=irix
17844         fi ;;
17845   esac
17846   soname_spec='${libname}${release}${shared_ext}$major'
17847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17848   case $host_os in
17849   irix5* | nonstopux*)
17850     libsuff= shlibsuff=
17851     ;;
17852   *)
17853     case $LD in # libtool.m4 will add one of these switches to LD
17854     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17855       libsuff= shlibsuff= libmagic=32-bit;;
17856     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17857       libsuff=32 shlibsuff=N32 libmagic=N32;;
17858     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17859       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17860     *) libsuff= shlibsuff= libmagic=never-match;;
17861     esac
17862     ;;
17863   esac
17864   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17865   shlibpath_overrides_runpath=no
17866   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17867   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17868   hardcode_into_libs=yes
17869   ;;
17870
17871 # No shared lib support for Linux oldld, aout, or coff.
17872 linux*oldld* | linux*aout* | linux*coff*)
17873   dynamic_linker=no
17874   ;;
17875
17876 # This must be Linux ELF.
17877 linux*)
17878   version_type=linux
17879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17880   soname_spec='${libname}${release}${shared_ext}$major'
17881   #finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17882   shlibpath_var=LD_LIBRARY_PATH
17883   shlibpath_overrides_runpath=no
17884   # This implies no fast_install, which is unacceptable.
17885   # Some rework will be needed to allow for fast_install
17886   # before this can be enabled.
17887   hardcode_into_libs=yes
17888
17889   # We used to test for /lib/ld.so.1 and disable shared libraries on
17890   # powerpc, because MkLinux only supported shared libraries with the
17891   # GNU dynamic linker.  Since this was broken with cross compilers,
17892   # most powerpc-linux boxes support dynamic linking these days and
17893   # people can always --disable-shared, the test was removed, and we
17894   # assume the GNU/Linux dynamic linker is in use.
17895   dynamic_linker='GNU/Linux ld.so'
17896   ;;
17897
17898 netbsd*)
17899   version_type=sunos
17900   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17902     #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17903     dynamic_linker='NetBSD (a.out) ld.so'
17904   else
17905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17906     soname_spec='${libname}${release}${shared_ext}$major'
17907     dynamic_linker='NetBSD ld.elf_so'
17908   fi
17909   shlibpath_var=LD_LIBRARY_PATH
17910   shlibpath_overrides_runpath=yes
17911   hardcode_into_libs=yes
17912   ;;
17913
17914 newsos6)
17915   version_type=linux
17916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17917   shlibpath_var=LD_LIBRARY_PATH
17918   shlibpath_overrides_runpath=yes
17919   ;;
17920
17921 nto-qnx)
17922   version_type=linux
17923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924   soname_spec='${libname}${release}${shared_ext}$major'
17925   shlibpath_var=LD_LIBRARY_PATH
17926   shlibpath_overrides_runpath=yes
17927   ;;
17928
17929 openbsd*)
17930   version_type=sunos
17931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17932   #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17933   shlibpath_var=LD_LIBRARY_PATH
17934   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17935     dynamic_linker='OpenBSD (ELF) ld.so'
17936     case $host_os in
17937       openbsd2.[89] | openbsd2.[89].*)
17938         shlibpath_overrides_runpath=no
17939         ;;
17940       *)
17941         shlibpath_overrides_runpath=yes
17942         ;;
17943       esac
17944   else
17945     dynamic_linker='OpenBSD (a.out) ld.so'
17946     shlibpath_overrides_runpath=yes
17947   fi
17948   ;;
17949
17950 os2*)
17951   libname_spec='$name'
17952   shrext=".dll"
17953   library_names_spec='$libname${shared_ext} $libname.a'
17954   dynamic_linker='OS/2 ld.exe'
17955   shlibpath_var=LIBPATH
17956   ;;
17957
17958 osf3* | osf4* | osf5*)
17959   version_type=osf
17960   soname_spec='${libname}${release}${shared_ext}$major'
17961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962   shlibpath_var=LD_LIBRARY_PATH
17963   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17964   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17965   ;;
17966
17967 sco3.2v5*)
17968   version_type=osf
17969   soname_spec='${libname}${release}${shared_ext}$major'
17970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17971   shlibpath_var=LD_LIBRARY_PATH
17972   ;;
17973
17974 solaris*)
17975   version_type=linux
17976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977   soname_spec='${libname}${release}${shared_ext}$major'
17978   shlibpath_var=LD_LIBRARY_PATH
17979   shlibpath_overrides_runpath=yes
17980   hardcode_into_libs=yes
17981   # ldd complains unless libraries are executable
17982   postinstall_cmds='chmod +x $lib'
17983   ;;
17984
17985 sunos4*)
17986   version_type=sunos
17987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17988   #finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17989   shlibpath_var=LD_LIBRARY_PATH
17990   shlibpath_overrides_runpath=yes
17991   ;;
17992
17993 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17994   version_type=linux
17995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17996   soname_spec='${libname}${release}${shared_ext}$major'
17997   shlibpath_var=LD_LIBRARY_PATH
17998   case $host_vendor in
17999     sni)
18000       shlibpath_overrides_runpath=no
18001       export_dynamic_flag_spec='${wl}-Blargedynsym'
18002       runpath_var=LD_RUN_PATH
18003       ;;
18004     motorola)
18005       shlibpath_overrides_runpath=no
18006       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18007       ;;
18008   esac
18009   ;;
18010
18011 sysv4*MP*)
18012   if test -d /usr/nec ;then
18013     version_type=linux
18014     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18015     soname_spec='$libname${shared_ext}.$major'
18016     shlibpath_var=LD_LIBRARY_PATH
18017   fi
18018   ;;
18019
18020 uts4*)
18021   version_type=linux
18022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18023   soname_spec='${libname}${release}${shared_ext}$major'
18024   shlibpath_var=LD_LIBRARY_PATH
18025   ;;
18026
18027 *)
18028   dynamic_linker=no
18029   ;;
18030 esac
18031 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18032 echo "${ECHO_T}$dynamic_linker" >&6
18033 test "$dynamic_linker" = no && can_build_shared=no
18034
18035 if test "x$enable_dlopen" != xyes; then
18036   enable_dlopen=unknown
18037   enable_dlopen_self=unknown
18038   enable_dlopen_self_static=unknown
18039 else
18040   lt_cv_dlopen=no
18041   lt_cv_dlopen_libs=
18042
18043   case $host_os in
18044   beos*)
18045     lt_cv_dlopen="load_add_on"
18046     lt_cv_dlopen_libs=
18047     lt_cv_dlopen_self=yes
18048     ;;
18049
18050   mingw* | pw32*)
18051     lt_cv_dlopen="LoadLibrary"
18052     lt_cv_dlopen_libs=
18053    ;;
18054
18055   cygwin*)
18056     lt_cv_dlopen="dlopen"
18057     lt_cv_dlopen_libs=
18058    ;;
18059
18060   darwin*)
18061   # if libdl is installed we need to link against it
18062     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18063 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18064 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18065   echo $ECHO_N "(cached) $ECHO_C" >&6
18066 else
18067   ac_check_lib_save_LIBS=$LIBS
18068 LIBS="-ldl  $LIBS"
18069 cat >conftest.$ac_ext <<_ACEOF
18070 #line $LINENO "configure"
18071 /* confdefs.h.  */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h.  */
18076
18077 /* Override any gcc2 internal prototype to avoid an error.  */
18078 #ifdef __cplusplus
18079 extern "C"
18080 #endif
18081 /* We use char because int might match the return type of a gcc2
18082    builtin and then its argument prototype would still apply.  */
18083 char dlopen ();
18084 int
18085 main ()
18086 {
18087 dlopen ();
18088   ;
18089   return 0;
18090 }
18091 _ACEOF
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094   (eval $ac_link) 2>&5
18095   ac_status=$?
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); } &&
18098          { ac_try='test -s conftest$ac_exeext'
18099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100   (eval $ac_try) 2>&5
18101   ac_status=$?
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); }; }; then
18104   ac_cv_lib_dl_dlopen=yes
18105 else
18106   echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18108
18109 ac_cv_lib_dl_dlopen=no
18110 fi
18111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18112 LIBS=$ac_check_lib_save_LIBS
18113 fi
18114 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18115 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18116 if test $ac_cv_lib_dl_dlopen = yes; then
18117   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18118 else
18119
18120     lt_cv_dlopen="dyld"
18121     lt_cv_dlopen_libs=
18122     lt_cv_dlopen_self=yes
18123
18124 fi
18125
18126    ;;
18127
18128   *)
18129     echo "$as_me:$LINENO: checking for shl_load" >&5
18130 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18131 if test "${ac_cv_func_shl_load+set}" = set; then
18132   echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18134   cat >conftest.$ac_ext <<_ACEOF
18135 #line $LINENO "configure"
18136 /* confdefs.h.  */
18137 _ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h.  */
18141 /* System header to define __stub macros and hopefully few prototypes,
18142     which can conflict with char shl_load (); below.
18143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18144     <limits.h> exists even on freestanding compilers.  */
18145 #ifdef __STDC__
18146 # include <limits.h>
18147 #else
18148 # include <assert.h>
18149 #endif
18150 /* Override any gcc2 internal prototype to avoid an error.  */
18151 #ifdef __cplusplus
18152 extern "C"
18153 {
18154 #endif
18155 /* We use char because int might match the return type of a gcc2
18156    builtin and then its argument prototype would still apply.  */
18157 char shl_load ();
18158 /* The GNU C library defines this for functions which it implements
18159     to always fail with ENOSYS.  Some functions are actually named
18160     something starting with __ and the normal name is an alias.  */
18161 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18162 choke me
18163 #else
18164 char (*f) () = shl_load;
18165 #endif
18166 #ifdef __cplusplus
18167 }
18168 #endif
18169
18170 int
18171 main ()
18172 {
18173 return f != shl_load;
18174   ;
18175   return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext conftest$ac_exeext
18179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180   (eval $ac_link) 2>&5
18181   ac_status=$?
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); } &&
18184          { ac_try='test -s conftest$ac_exeext'
18185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186   (eval $ac_try) 2>&5
18187   ac_status=$?
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); }; }; then
18190   ac_cv_func_shl_load=yes
18191 else
18192   echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18194
18195 ac_cv_func_shl_load=no
18196 fi
18197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18198 fi
18199 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18200 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18201 if test $ac_cv_func_shl_load = yes; then
18202   lt_cv_dlopen="shl_load"
18203 else
18204   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18205 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18206 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18207   echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209   ac_check_lib_save_LIBS=$LIBS
18210 LIBS="-ldld  $LIBS"
18211 cat >conftest.$ac_ext <<_ACEOF
18212 #line $LINENO "configure"
18213 /* confdefs.h.  */
18214 _ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h.  */
18218
18219 /* Override any gcc2 internal prototype to avoid an error.  */
18220 #ifdef __cplusplus
18221 extern "C"
18222 #endif
18223 /* We use char because int might match the return type of a gcc2
18224    builtin and then its argument prototype would still apply.  */
18225 char shl_load ();
18226 int
18227 main ()
18228 {
18229 shl_load ();
18230   ;
18231   return 0;
18232 }
18233 _ACEOF
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236   (eval $ac_link) 2>&5
18237   ac_status=$?
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); } &&
18240          { ac_try='test -s conftest$ac_exeext'
18241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242   (eval $ac_try) 2>&5
18243   ac_status=$?
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); }; }; then
18246   ac_cv_lib_dld_shl_load=yes
18247 else
18248   echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18250
18251 ac_cv_lib_dld_shl_load=no
18252 fi
18253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$ac_check_lib_save_LIBS
18255 fi
18256 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18257 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18258 if test $ac_cv_lib_dld_shl_load = yes; then
18259   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18260 else
18261   echo "$as_me:$LINENO: checking for dlopen" >&5
18262 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18263 if test "${ac_cv_func_dlopen+set}" = set; then
18264   echo $ECHO_N "(cached) $ECHO_C" >&6
18265 else
18266   cat >conftest.$ac_ext <<_ACEOF
18267 #line $LINENO "configure"
18268 /* confdefs.h.  */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h.  */
18273 /* System header to define __stub macros and hopefully few prototypes,
18274     which can conflict with char dlopen (); below.
18275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18276     <limits.h> exists even on freestanding compilers.  */
18277 #ifdef __STDC__
18278 # include <limits.h>
18279 #else
18280 # include <assert.h>
18281 #endif
18282 /* Override any gcc2 internal prototype to avoid an error.  */
18283 #ifdef __cplusplus
18284 extern "C"
18285 {
18286 #endif
18287 /* We use char because int might match the return type of a gcc2
18288    builtin and then its argument prototype would still apply.  */
18289 char dlopen ();
18290 /* The GNU C library defines this for functions which it implements
18291     to always fail with ENOSYS.  Some functions are actually named
18292     something starting with __ and the normal name is an alias.  */
18293 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18294 choke me
18295 #else
18296 char (*f) () = dlopen;
18297 #endif
18298 #ifdef __cplusplus
18299 }
18300 #endif
18301
18302 int
18303 main ()
18304 {
18305 return f != dlopen;
18306   ;
18307   return 0;
18308 }
18309 _ACEOF
18310 rm -f conftest.$ac_objext conftest$ac_exeext
18311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18312   (eval $ac_link) 2>&5
18313   ac_status=$?
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); } &&
18316          { ac_try='test -s conftest$ac_exeext'
18317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318   (eval $ac_try) 2>&5
18319   ac_status=$?
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); }; }; then
18322   ac_cv_func_dlopen=yes
18323 else
18324   echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327 ac_cv_func_dlopen=no
18328 fi
18329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18330 fi
18331 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18332 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18333 if test $ac_cv_func_dlopen = yes; then
18334   lt_cv_dlopen="dlopen"
18335 else
18336   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18337 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18338 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18339   echo $ECHO_N "(cached) $ECHO_C" >&6
18340 else
18341   ac_check_lib_save_LIBS=$LIBS
18342 LIBS="-ldl  $LIBS"
18343 cat >conftest.$ac_ext <<_ACEOF
18344 #line $LINENO "configure"
18345 /* confdefs.h.  */
18346 _ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h.  */
18350
18351 /* Override any gcc2 internal prototype to avoid an error.  */
18352 #ifdef __cplusplus
18353 extern "C"
18354 #endif
18355 /* We use char because int might match the return type of a gcc2
18356    builtin and then its argument prototype would still apply.  */
18357 char dlopen ();
18358 int
18359 main ()
18360 {
18361 dlopen ();
18362   ;
18363   return 0;
18364 }
18365 _ACEOF
18366 rm -f conftest.$ac_objext conftest$ac_exeext
18367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18368   (eval $ac_link) 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); } &&
18372          { ac_try='test -s conftest$ac_exeext'
18373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374   (eval $ac_try) 2>&5
18375   ac_status=$?
18376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377   (exit $ac_status); }; }; then
18378   ac_cv_lib_dl_dlopen=yes
18379 else
18380   echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18382
18383 ac_cv_lib_dl_dlopen=no
18384 fi
18385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18387 fi
18388 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18389 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18390 if test $ac_cv_lib_dl_dlopen = yes; then
18391   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18392 else
18393   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18394 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18395 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18396   echo $ECHO_N "(cached) $ECHO_C" >&6
18397 else
18398   ac_check_lib_save_LIBS=$LIBS
18399 LIBS="-lsvld  $LIBS"
18400 cat >conftest.$ac_ext <<_ACEOF
18401 #line $LINENO "configure"
18402 /* confdefs.h.  */
18403 _ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h.  */
18407
18408 /* Override any gcc2 internal prototype to avoid an error.  */
18409 #ifdef __cplusplus
18410 extern "C"
18411 #endif
18412 /* We use char because int might match the return type of a gcc2
18413    builtin and then its argument prototype would still apply.  */
18414 char dlopen ();
18415 int
18416 main ()
18417 {
18418 dlopen ();
18419   ;
18420   return 0;
18421 }
18422 _ACEOF
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425   (eval $ac_link) 2>&5
18426   ac_status=$?
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); } &&
18429          { ac_try='test -s conftest$ac_exeext'
18430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431   (eval $ac_try) 2>&5
18432   ac_status=$?
18433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434   (exit $ac_status); }; }; then
18435   ac_cv_lib_svld_dlopen=yes
18436 else
18437   echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18439
18440 ac_cv_lib_svld_dlopen=no
18441 fi
18442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18443 LIBS=$ac_check_lib_save_LIBS
18444 fi
18445 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18446 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18447 if test $ac_cv_lib_svld_dlopen = yes; then
18448   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18449 else
18450   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18451 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18452 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18453   echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18455   ac_check_lib_save_LIBS=$LIBS
18456 LIBS="-ldld  $LIBS"
18457 cat >conftest.$ac_ext <<_ACEOF
18458 #line $LINENO "configure"
18459 /* confdefs.h.  */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h.  */
18464
18465 /* Override any gcc2 internal prototype to avoid an error.  */
18466 #ifdef __cplusplus
18467 extern "C"
18468 #endif
18469 /* We use char because int might match the return type of a gcc2
18470    builtin and then its argument prototype would still apply.  */
18471 char dld_link ();
18472 int
18473 main ()
18474 {
18475 dld_link ();
18476   ;
18477   return 0;
18478 }
18479 _ACEOF
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482   (eval $ac_link) 2>&5
18483   ac_status=$?
18484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); } &&
18486          { ac_try='test -s conftest$ac_exeext'
18487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488   (eval $ac_try) 2>&5
18489   ac_status=$?
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); }; }; then
18492   ac_cv_lib_dld_dld_link=yes
18493 else
18494   echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18496
18497 ac_cv_lib_dld_dld_link=no
18498 fi
18499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18500 LIBS=$ac_check_lib_save_LIBS
18501 fi
18502 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18503 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18504 if test $ac_cv_lib_dld_dld_link = yes; then
18505   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18506 fi
18507
18508
18509 fi
18510
18511
18512 fi
18513
18514
18515 fi
18516
18517
18518 fi
18519
18520
18521 fi
18522
18523     ;;
18524   esac
18525
18526   if test "x$lt_cv_dlopen" != xno; then
18527     enable_dlopen=yes
18528   else
18529     enable_dlopen=no
18530   fi
18531
18532   case $lt_cv_dlopen in
18533   dlopen)
18534     save_CPPFLAGS="$CPPFLAGS"
18535     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18536
18537     save_LDFLAGS="$LDFLAGS"
18538     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18539
18540     save_LIBS="$LIBS"
18541     LIBS="$lt_cv_dlopen_libs $LIBS"
18542
18543     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18544 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18545 if test "${lt_cv_dlopen_self+set}" = set; then
18546   echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548           if test "$cross_compiling" = yes; then :
18549   lt_cv_dlopen_self=cross
18550 else
18551   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18552   lt_status=$lt_dlunknown
18553   cat > conftest.$ac_ext <<EOF
18554 #line 18554 "configure"
18555 #include "confdefs.h"
18556
18557 #if HAVE_DLFCN_H
18558 #include <dlfcn.h>
18559 #endif
18560
18561 #include <stdio.h>
18562
18563 #ifdef RTLD_GLOBAL
18564 #  define LT_DLGLOBAL           RTLD_GLOBAL
18565 #else
18566 #  ifdef DL_GLOBAL
18567 #    define LT_DLGLOBAL         DL_GLOBAL
18568 #  else
18569 #    define LT_DLGLOBAL         0
18570 #  endif
18571 #endif
18572
18573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18574    find out it does not work in some platform. */
18575 #ifndef LT_DLLAZY_OR_NOW
18576 #  ifdef RTLD_LAZY
18577 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18578 #  else
18579 #    ifdef DL_LAZY
18580 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18581 #    else
18582 #      ifdef RTLD_NOW
18583 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18584 #      else
18585 #        ifdef DL_NOW
18586 #          define LT_DLLAZY_OR_NOW      DL_NOW
18587 #        else
18588 #          define LT_DLLAZY_OR_NOW      0
18589 #        endif
18590 #      endif
18591 #    endif
18592 #  endif
18593 #endif
18594
18595 #ifdef __cplusplus
18596 extern "C" void exit (int);
18597 #endif
18598
18599 void fnord() { int i=42;}
18600 int main ()
18601 {
18602   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18603   int status = $lt_dlunknown;
18604
18605   if (self)
18606     {
18607       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18608       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18609       /* dlclose (self); */
18610     }
18611
18612     exit (status);
18613 }
18614 EOF
18615   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18616   (eval $ac_link) 2>&5
18617   ac_status=$?
18618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18620     (./conftest; exit; ) 2>/dev/null
18621     lt_status=$?
18622     case x$lt_status in
18623       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18624       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18625       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18626     esac
18627   else :
18628     # compilation failed
18629     lt_cv_dlopen_self=no
18630   fi
18631 fi
18632 rm -fr conftest*
18633
18634
18635 fi
18636 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18637 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18638
18639     if test "x$lt_cv_dlopen_self" = xyes; then
18640       LDFLAGS="$LDFLAGS $link_static_flag"
18641       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18642 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18643 if test "${lt_cv_dlopen_self_static+set}" = set; then
18644   echo $ECHO_N "(cached) $ECHO_C" >&6
18645 else
18646           if test "$cross_compiling" = yes; then :
18647   lt_cv_dlopen_self_static=cross
18648 else
18649   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18650   lt_status=$lt_dlunknown
18651   cat > conftest.$ac_ext <<EOF
18652 #line 18652 "configure"
18653 #include "confdefs.h"
18654
18655 #if HAVE_DLFCN_H
18656 #include <dlfcn.h>
18657 #endif
18658
18659 #include <stdio.h>
18660
18661 #ifdef RTLD_GLOBAL
18662 #  define LT_DLGLOBAL           RTLD_GLOBAL
18663 #else
18664 #  ifdef DL_GLOBAL
18665 #    define LT_DLGLOBAL         DL_GLOBAL
18666 #  else
18667 #    define LT_DLGLOBAL         0
18668 #  endif
18669 #endif
18670
18671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18672    find out it does not work in some platform. */
18673 #ifndef LT_DLLAZY_OR_NOW
18674 #  ifdef RTLD_LAZY
18675 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18676 #  else
18677 #    ifdef DL_LAZY
18678 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18679 #    else
18680 #      ifdef RTLD_NOW
18681 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18682 #      else
18683 #        ifdef DL_NOW
18684 #          define LT_DLLAZY_OR_NOW      DL_NOW
18685 #        else
18686 #          define LT_DLLAZY_OR_NOW      0
18687 #        endif
18688 #      endif
18689 #    endif
18690 #  endif
18691 #endif
18692
18693 #ifdef __cplusplus
18694 extern "C" void exit (int);
18695 #endif
18696
18697 void fnord() { int i=42;}
18698 int main ()
18699 {
18700   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18701   int status = $lt_dlunknown;
18702
18703   if (self)
18704     {
18705       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18706       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18707       /* dlclose (self); */
18708     }
18709
18710     exit (status);
18711 }
18712 EOF
18713   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714   (eval $ac_link) 2>&5
18715   ac_status=$?
18716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18718     (./conftest; exit; ) 2>/dev/null
18719     lt_status=$?
18720     case x$lt_status in
18721       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18722       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18723       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18724     esac
18725   else :
18726     # compilation failed
18727     lt_cv_dlopen_self_static=no
18728   fi
18729 fi
18730 rm -fr conftest*
18731
18732
18733 fi
18734 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18735 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18736     fi
18737
18738     CPPFLAGS="$save_CPPFLAGS"
18739     LDFLAGS="$save_LDFLAGS"
18740     LIBS="$save_LIBS"
18741     ;;
18742   esac
18743
18744   case $lt_cv_dlopen_self in
18745   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18746   *) enable_dlopen_self=unknown ;;
18747   esac
18748
18749   case $lt_cv_dlopen_self_static in
18750   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18751   *) enable_dlopen_self_static=unknown ;;
18752   esac
18753 fi
18754
18755
18756 # The else clause should only fire when bootstrapping the
18757 # libtool distribution, otherwise you forgot to ship ltmain.sh
18758 # with your package, and you will get complaints that there are
18759 # no rules to generate ltmain.sh.
18760 if test -f "$ltmain"; then
18761   # See if we are running on zsh, and set the options which allow our commands through
18762   # without removal of \ escapes.
18763   if test -n "${ZSH_VERSION+set}" ; then
18764     setopt NO_GLOB_SUBST
18765   fi
18766   # Now quote all the things that may contain metacharacters while being
18767   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18768   # variables and quote the copies for generation of the libtool script.
18769   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18770     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18771     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18772     deplibs_check_method reload_flag reload_cmds need_locks \
18773     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18774     lt_cv_sys_global_symbol_to_c_name_address \
18775     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18776     old_postinstall_cmds old_postuninstall_cmds \
18777     compiler_GCJ \
18778     CC_GCJ \
18779     LD_GCJ \
18780     lt_prog_compiler_wl_GCJ \
18781     lt_prog_compiler_pic_GCJ \
18782     lt_prog_compiler_static_GCJ \
18783     lt_prog_compiler_no_builtin_flag_GCJ \
18784     export_dynamic_flag_spec_GCJ \
18785     thread_safe_flag_spec_GCJ \
18786     whole_archive_flag_spec_GCJ \
18787     enable_shared_with_static_runtimes_GCJ \
18788     old_archive_cmds_GCJ \
18789     old_archive_from_new_cmds_GCJ \
18790     predep_objects_GCJ \
18791     postdep_objects_GCJ \
18792     predeps_GCJ \
18793     postdeps_GCJ \
18794     compiler_lib_search_path_GCJ \
18795     archive_cmds_GCJ \
18796     archive_expsym_cmds_GCJ \
18797     postinstall_cmds_GCJ \
18798     postuninstall_cmds_GCJ \
18799     old_archive_from_expsyms_cmds_GCJ \
18800     allow_undefined_flag_GCJ \
18801     no_undefined_flag_GCJ \
18802     export_symbols_cmds_GCJ \
18803     hardcode_libdir_flag_spec_GCJ \
18804     hardcode_libdir_flag_spec_ld_GCJ \
18805     hardcode_libdir_separator_GCJ \
18806     hardcode_automatic_GCJ \
18807     module_cmds_GCJ \
18808     module_expsym_cmds_GCJ \
18809     lt_cv_prog_compiler_c_o_GCJ \
18810     exclude_expsyms_GCJ \
18811     include_expsyms_GCJ; do
18812
18813     case $var in
18814     old_archive_cmds_GCJ | \
18815     old_archive_from_new_cmds_GCJ | \
18816     archive_cmds_GCJ | \
18817     archive_expsym_cmds_GCJ | \
18818     module_cmds_GCJ | \
18819     module_expsym_cmds_GCJ | \
18820     old_archive_from_expsyms_cmds_GCJ | \
18821     export_symbols_cmds_GCJ | \
18822     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18823     postinstall_cmds | postuninstall_cmds | \
18824     old_postinstall_cmds | old_postuninstall_cmds | \
18825     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18826       # Double-quote double-evaled strings.
18827       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18828       ;;
18829     *)
18830       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18831       ;;
18832     esac
18833   done
18834
18835   case $lt_echo in
18836   *'\$0 --fallback-echo"')
18837     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18838     ;;
18839   esac
18840
18841 cfgfile="$ofile"
18842
18843   cat <<__EOF__ >> "$cfgfile"
18844 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18845
18846 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18847
18848 # Shell to use when invoking shell scripts.
18849 SHELL=$lt_SHELL
18850
18851 # Whether or not to build shared libraries.
18852 build_libtool_libs=$enable_shared
18853
18854 # Whether or not to build static libraries.
18855 build_old_libs=$enable_static
18856
18857 # Whether or not to add -lc for building shared libraries.
18858 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18859
18860 # Whether or not to disallow shared libs when runtime libs are static
18861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18862
18863 # Whether or not to optimize for fast installation.
18864 fast_install=$enable_fast_install
18865
18866 # The host system.
18867 host_alias=$host_alias
18868 host=$host
18869
18870 # An echo program that does not interpret backslashes.
18871 echo=$lt_echo
18872
18873 # The archiver.
18874 AR=$lt_AR
18875 AR_FLAGS=$lt_AR_FLAGS
18876
18877 # A C compiler.
18878 LTCC=$lt_LTCC
18879
18880 # A language-specific compiler.
18881 CC=$lt_compiler_GCJ
18882
18883 # Is the compiler the GNU C compiler?
18884 with_gcc=$GCC_GCJ
18885
18886 # An ERE matcher.
18887 EGREP=$lt_EGREP
18888
18889 # The linker used to build libraries.
18890 LD=$lt_LD_GCJ
18891
18892 # Whether we need hard or soft links.
18893 LN_S=$lt_LN_S
18894
18895 # A BSD-compatible nm program.
18896 NM=$lt_NM
18897
18898 # A symbol stripping program
18899 STRIP=$STRIP
18900
18901 # Used to examine libraries when file_magic_cmd begins "file"
18902 MAGIC_CMD=$MAGIC_CMD
18903
18904 # Used on cygwin: DLL creation program.
18905 DLLTOOL="$DLLTOOL"
18906
18907 # Used on cygwin: object dumper.
18908 OBJDUMP="$OBJDUMP"
18909
18910 # Used on cygwin: assembler.
18911 AS="$AS"
18912
18913 # The name of the directory that contains temporary libtool files.
18914 objdir=$objdir
18915
18916 # How to create reloadable object files.
18917 reload_flag=$lt_reload_flag
18918 reload_cmds=$lt_reload_cmds
18919
18920 # How to pass a linker flag through the compiler.
18921 wl=$lt_lt_prog_compiler_wl_GCJ
18922
18923 # Object file suffix (normally "o").
18924 objext="$ac_objext"
18925
18926 # Old archive suffix (normally "a").
18927 libext="$libext"
18928
18929 # Shared library suffix (normally ".so").
18930 shrext='$shrext'
18931
18932 # Executable file suffix (normally "").
18933 exeext="$exeext"
18934
18935 # Additional compiler flags for building library objects.
18936 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18937 pic_mode=$pic_mode
18938
18939 # What is the maximum length of a command?
18940 max_cmd_len=$lt_cv_sys_max_cmd_len
18941
18942 # Does compiler simultaneously support -c and -o options?
18943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18944
18945 # Must we lock files when doing compilation ?
18946 need_locks=$lt_need_locks
18947
18948 # Do we need the lib prefix for modules?
18949 need_lib_prefix=$need_lib_prefix
18950
18951 # Do we need a version for libraries?
18952 need_version=$need_version
18953
18954 # Whether dlopen is supported.
18955 dlopen_support=$enable_dlopen
18956
18957 # Whether dlopen of programs is supported.
18958 dlopen_self=$enable_dlopen_self
18959
18960 # Whether dlopen of statically linked programs is supported.
18961 dlopen_self_static=$enable_dlopen_self_static
18962
18963 # Compiler flag to prevent dynamic linking.
18964 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18965
18966 # Compiler flag to turn off builtin functions.
18967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18968
18969 # Compiler flag to allow reflexive dlopens.
18970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18971
18972 # Compiler flag to generate shared objects directly from archives.
18973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18974
18975 # Compiler flag to generate thread-safe objects.
18976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18977
18978 # Library versioning type.
18979 version_type=$version_type
18980
18981 # Format of library name prefix.
18982 libname_spec=$lt_libname_spec
18983
18984 # List of archive names.  First name is the real one, the rest are links.
18985 # The last name is the one that the linker finds with -lNAME.
18986 library_names_spec=$lt_library_names_spec
18987
18988 # The coded name of the library, if different from the real name.
18989 soname_spec=$lt_soname_spec
18990
18991 # Commands used to build and install an old-style archive.
18992 RANLIB=$lt_RANLIB
18993 old_archive_cmds=$lt_old_archive_cmds_GCJ
18994 old_postinstall_cmds=$lt_old_postinstall_cmds
18995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18996
18997 # Create an old-style archive from a shared archive.
18998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18999
19000 # Create a temporary old-style archive to link instead of a shared archive.
19001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19002
19003 # Commands used to build and install a shared archive.
19004 archive_cmds=$lt_archive_cmds_GCJ
19005 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19006 postinstall_cmds=$lt_postinstall_cmds
19007 postuninstall_cmds=$lt_postuninstall_cmds
19008
19009 # Commands used to build a loadable module (assumed same as above if empty)
19010 module_cmds=$lt_module_cmds_GCJ
19011 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19012
19013 # Commands to strip libraries.
19014 old_striplib=$lt_old_striplib
19015 striplib=$lt_striplib
19016
19017 # Dependencies to place before the objects being linked to create a
19018 # shared library.
19019 predep_objects=$lt_predep_objects_GCJ
19020
19021 # Dependencies to place after the objects being linked to create a
19022 # shared library.
19023 postdep_objects=$lt_postdep_objects_GCJ
19024
19025 # Dependencies to place before the objects being linked to create a
19026 # shared library.
19027 predeps=$lt_predeps_GCJ
19028
19029 # Dependencies to place after the objects being linked to create a
19030 # shared library.
19031 postdeps=$lt_postdeps_GCJ
19032
19033 # The library search path used internally by the compiler when linking
19034 # a shared library.
19035 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19036
19037 # Method to check whether dependent libraries are shared objects.
19038 deplibs_check_method=$lt_deplibs_check_method
19039
19040 # Command to use when deplibs_check_method == file_magic.
19041 file_magic_cmd=$lt_file_magic_cmd
19042
19043 # Flag that allows shared libraries with undefined symbols to be built.
19044 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19045
19046 # Flag that forces no undefined symbols.
19047 no_undefined_flag=$lt_no_undefined_flag_GCJ
19048
19049 # Commands used to finish a libtool library installation in a directory.
19050 finish_cmds=$lt_finish_cmds
19051
19052 # Same as above, but a single script fragment to be evaled but not shown.
19053 finish_eval=$lt_finish_eval
19054
19055 # Take the output of nm and produce a listing of raw symbols and C names.
19056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19057
19058 # Transform the output of nm in a proper C declaration
19059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19060
19061 # Transform the output of nm in a C name address pair
19062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19063
19064 # This is the shared library runtime path variable.
19065 runpath_var=$runpath_var
19066
19067 # This is the shared library path variable.
19068 shlibpath_var=$shlibpath_var
19069
19070 # Is shlibpath searched before the hard-coded library search path?
19071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19072
19073 # How to hardcode a shared library path into an executable.
19074 hardcode_action=$hardcode_action_GCJ
19075
19076 # Whether we should hardcode library paths into libraries.
19077 hardcode_into_libs=$hardcode_into_libs
19078
19079 # Flag to hardcode \$libdir into a binary during linking.
19080 # This must work even if \$libdir does not exist.
19081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19082
19083 # If ld is used when linking, flag to hardcode \$libdir into
19084 # a binary during linking. This must work even if \$libdir does
19085 # not exist.
19086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19087
19088 # Whether we need a single -rpath flag with a separated argument.
19089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19090
19091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19092 # resulting binary.
19093 hardcode_direct=$hardcode_direct_GCJ
19094
19095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19096 # resulting binary.
19097 hardcode_minus_L=$hardcode_minus_L_GCJ
19098
19099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19100 # the resulting binary.
19101 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19102
19103 # Set to yes if building a shared library automatically hardcodes DIR into the library
19104 # and all subsequent libraries and executables linked against it.
19105 hardcode_automatic=$hardcode_automatic_GCJ
19106
19107 # Variables whose values should be saved in libtool wrapper scripts and
19108 # restored at relink time.
19109 variables_saved_for_relink="$variables_saved_for_relink"
19110
19111 # Whether libtool must link a program against all its dependency libraries.
19112 link_all_deplibs=$link_all_deplibs_GCJ
19113
19114 # Compile-time system search path for libraries
19115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19116
19117 # Run-time system search path for libraries
19118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19119
19120 # Fix the shell variable \$srcfile for the compiler.
19121 fix_srcfile_path="$fix_srcfile_path_GCJ"
19122
19123 # Set to yes if exported symbols are required.
19124 always_export_symbols=$always_export_symbols_GCJ
19125
19126 # The commands to list exported symbols.
19127 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19128
19129 # The commands to extract the exported symbol list from a shared archive.
19130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19131
19132 # Symbols that should not be listed in the preloaded symbols.
19133 exclude_expsyms=$lt_exclude_expsyms_GCJ
19134
19135 # Symbols that must always be exported.
19136 include_expsyms=$lt_include_expsyms_GCJ
19137
19138 # ### END LIBTOOL TAG CONFIG: $tagname
19139
19140 __EOF__
19141
19142
19143 else
19144   # If there is no Makefile yet, we rely on a make rule to execute
19145   # `config.status --recheck' to rerun these tests and create the
19146   # libtool script then.
19147   test -f Makefile && make "$ltmain"
19148 fi
19149
19150
19151 ac_ext=c
19152 ac_cpp='$CPP $CPPFLAGS'
19153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19156
19157 CC="$lt_save_CC"
19158
19159         else
19160           tagname=""
19161         fi
19162         ;;
19163
19164       RC)
19165
19166
19167
19168 # Source file extension for RC test sources.
19169 ac_ext=rc
19170
19171 # Object file extension for compiled RC test sources.
19172 objext=o
19173 objext_RC=$objext
19174
19175 # Code to be used in simple compile tests
19176 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19177
19178 # Code to be used in simple link tests
19179 lt_simple_link_test_code="$lt_simple_compile_test_code"
19180
19181 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19182
19183 # If no C compiler was specified, use CC.
19184 LTCC=${LTCC-"$CC"}
19185
19186 # Allow CC to be a program name with arguments.
19187 compiler=$CC
19188
19189
19190 # Allow CC to be a program name with arguments.
19191 lt_save_CC="$CC"
19192 CC=${RC-"windres"}
19193 compiler=$CC
19194 compiler_RC=$CC
19195 lt_cv_prog_compiler_c_o_RC=yes
19196
19197 # The else clause should only fire when bootstrapping the
19198 # libtool distribution, otherwise you forgot to ship ltmain.sh
19199 # with your package, and you will get complaints that there are
19200 # no rules to generate ltmain.sh.
19201 if test -f "$ltmain"; then
19202   # See if we are running on zsh, and set the options which allow our commands through
19203   # without removal of \ escapes.
19204   if test -n "${ZSH_VERSION+set}" ; then
19205     setopt NO_GLOB_SUBST
19206   fi
19207   # Now quote all the things that may contain metacharacters while being
19208   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19209   # variables and quote the copies for generation of the libtool script.
19210   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
19211     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19212     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19213     deplibs_check_method reload_flag reload_cmds need_locks \
19214     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19215     lt_cv_sys_global_symbol_to_c_name_address \
19216     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19217     old_postinstall_cmds old_postuninstall_cmds \
19218     compiler_RC \
19219     CC_RC \
19220     LD_RC \
19221     lt_prog_compiler_wl_RC \
19222     lt_prog_compiler_pic_RC \
19223     lt_prog_compiler_static_RC \
19224     lt_prog_compiler_no_builtin_flag_RC \
19225     export_dynamic_flag_spec_RC \
19226     thread_safe_flag_spec_RC \
19227     whole_archive_flag_spec_RC \
19228     enable_shared_with_static_runtimes_RC \
19229     old_archive_cmds_RC \
19230     old_archive_from_new_cmds_RC \
19231     predep_objects_RC \
19232     postdep_objects_RC \
19233     predeps_RC \
19234     postdeps_RC \
19235     compiler_lib_search_path_RC \
19236     archive_cmds_RC \
19237     archive_expsym_cmds_RC \
19238     postinstall_cmds_RC \
19239     postuninstall_cmds_RC \
19240     old_archive_from_expsyms_cmds_RC \
19241     allow_undefined_flag_RC \
19242     no_undefined_flag_RC \
19243     export_symbols_cmds_RC \
19244     hardcode_libdir_flag_spec_RC \
19245     hardcode_libdir_flag_spec_ld_RC \
19246     hardcode_libdir_separator_RC \
19247     hardcode_automatic_RC \
19248     module_cmds_RC \
19249     module_expsym_cmds_RC \
19250     lt_cv_prog_compiler_c_o_RC \
19251     exclude_expsyms_RC \
19252     include_expsyms_RC; do
19253
19254     case $var in
19255     old_archive_cmds_RC | \
19256     old_archive_from_new_cmds_RC | \
19257     archive_cmds_RC | \
19258     archive_expsym_cmds_RC | \
19259     module_cmds_RC | \
19260     module_expsym_cmds_RC | \
19261     old_archive_from_expsyms_cmds_RC | \
19262     export_symbols_cmds_RC | \
19263     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19264     postinstall_cmds | postuninstall_cmds | \
19265     old_postinstall_cmds | old_postuninstall_cmds | \
19266     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19267       # Double-quote double-evaled strings.
19268       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19269       ;;
19270     *)
19271       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19272       ;;
19273     esac
19274   done
19275
19276   case $lt_echo in
19277   *'\$0 --fallback-echo"')
19278     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19279     ;;
19280   esac
19281
19282 cfgfile="$ofile"
19283
19284   cat <<__EOF__ >> "$cfgfile"
19285 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19286
19287 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19288
19289 # Shell to use when invoking shell scripts.
19290 SHELL=$lt_SHELL
19291
19292 # Whether or not to build shared libraries.
19293 build_libtool_libs=$enable_shared
19294
19295 # Whether or not to build static libraries.
19296 build_old_libs=$enable_static
19297
19298 # Whether or not to add -lc for building shared libraries.
19299 build_libtool_need_lc=$archive_cmds_need_lc_RC
19300
19301 # Whether or not to disallow shared libs when runtime libs are static
19302 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19303
19304 # Whether or not to optimize for fast installation.
19305 fast_install=$enable_fast_install
19306
19307 # The host system.
19308 host_alias=$host_alias
19309 host=$host
19310
19311 # An echo program that does not interpret backslashes.
19312 echo=$lt_echo
19313
19314 # The archiver.
19315 AR=$lt_AR
19316 AR_FLAGS=$lt_AR_FLAGS
19317
19318 # A C compiler.
19319 LTCC=$lt_LTCC
19320
19321 # A language-specific compiler.
19322 CC=$lt_compiler_RC
19323
19324 # Is the compiler the GNU C compiler?
19325 with_gcc=$GCC_RC
19326
19327 # An ERE matcher.
19328 EGREP=$lt_EGREP
19329
19330 # The linker used to build libraries.
19331 LD=$lt_LD_RC
19332
19333 # Whether we need hard or soft links.
19334 LN_S=$lt_LN_S
19335
19336 # A BSD-compatible nm program.
19337 NM=$lt_NM
19338
19339 # A symbol stripping program
19340 STRIP=$STRIP
19341
19342 # Used to examine libraries when file_magic_cmd begins "file"
19343 MAGIC_CMD=$MAGIC_CMD
19344
19345 # Used on cygwin: DLL creation program.
19346 DLLTOOL="$DLLTOOL"
19347
19348 # Used on cygwin: object dumper.
19349 OBJDUMP="$OBJDUMP"
19350
19351 # Used on cygwin: assembler.
19352 AS="$AS"
19353
19354 # The name of the directory that contains temporary libtool files.
19355 objdir=$objdir
19356
19357 # How to create reloadable object files.
19358 reload_flag=$lt_reload_flag
19359 reload_cmds=$lt_reload_cmds
19360
19361 # How to pass a linker flag through the compiler.
19362 wl=$lt_lt_prog_compiler_wl_RC
19363
19364 # Object file suffix (normally "o").
19365 objext="$ac_objext"
19366
19367 # Old archive suffix (normally "a").
19368 libext="$libext"
19369
19370 # Shared library suffix (normally ".so").
19371 shrext='$shrext'
19372
19373 # Executable file suffix (normally "").
19374 exeext="$exeext"
19375
19376 # Additional compiler flags for building library objects.
19377 pic_flag=$lt_lt_prog_compiler_pic_RC
19378 pic_mode=$pic_mode
19379
19380 # What is the maximum length of a command?
19381 max_cmd_len=$lt_cv_sys_max_cmd_len
19382
19383 # Does compiler simultaneously support -c and -o options?
19384 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19385
19386 # Must we lock files when doing compilation ?
19387 need_locks=$lt_need_locks
19388
19389 # Do we need the lib prefix for modules?
19390 need_lib_prefix=$need_lib_prefix
19391
19392 # Do we need a version for libraries?
19393 need_version=$need_version
19394
19395 # Whether dlopen is supported.
19396 dlopen_support=$enable_dlopen
19397
19398 # Whether dlopen of programs is supported.
19399 dlopen_self=$enable_dlopen_self
19400
19401 # Whether dlopen of statically linked programs is supported.
19402 dlopen_self_static=$enable_dlopen_self_static
19403
19404 # Compiler flag to prevent dynamic linking.
19405 link_static_flag=$lt_lt_prog_compiler_static_RC
19406
19407 # Compiler flag to turn off builtin functions.
19408 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19409
19410 # Compiler flag to allow reflexive dlopens.
19411 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19412
19413 # Compiler flag to generate shared objects directly from archives.
19414 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19415
19416 # Compiler flag to generate thread-safe objects.
19417 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19418
19419 # Library versioning type.
19420 version_type=$version_type
19421
19422 # Format of library name prefix.
19423 libname_spec=$lt_libname_spec
19424
19425 # List of archive names.  First name is the real one, the rest are links.
19426 # The last name is the one that the linker finds with -lNAME.
19427 library_names_spec=$lt_library_names_spec
19428
19429 # The coded name of the library, if different from the real name.
19430 soname_spec=$lt_soname_spec
19431
19432 # Commands used to build and install an old-style archive.
19433 RANLIB=$lt_RANLIB
19434 old_archive_cmds=$lt_old_archive_cmds_RC
19435 old_postinstall_cmds=$lt_old_postinstall_cmds
19436 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19437
19438 # Create an old-style archive from a shared archive.
19439 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19440
19441 # Create a temporary old-style archive to link instead of a shared archive.
19442 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19443
19444 # Commands used to build and install a shared archive.
19445 archive_cmds=$lt_archive_cmds_RC
19446 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19447 postinstall_cmds=$lt_postinstall_cmds
19448 postuninstall_cmds=$lt_postuninstall_cmds
19449
19450 # Commands used to build a loadable module (assumed same as above if empty)
19451 module_cmds=$lt_module_cmds_RC
19452 module_expsym_cmds=$lt_module_expsym_cmds_RC
19453
19454 # Commands to strip libraries.
19455 old_striplib=$lt_old_striplib
19456 striplib=$lt_striplib
19457
19458 # Dependencies to place before the objects being linked to create a
19459 # shared library.
19460 predep_objects=$lt_predep_objects_RC
19461
19462 # Dependencies to place after the objects being linked to create a
19463 # shared library.
19464 postdep_objects=$lt_postdep_objects_RC
19465
19466 # Dependencies to place before the objects being linked to create a
19467 # shared library.
19468 predeps=$lt_predeps_RC
19469
19470 # Dependencies to place after the objects being linked to create a
19471 # shared library.
19472 postdeps=$lt_postdeps_RC
19473
19474 # The library search path used internally by the compiler when linking
19475 # a shared library.
19476 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19477
19478 # Method to check whether dependent libraries are shared objects.
19479 deplibs_check_method=$lt_deplibs_check_method
19480
19481 # Command to use when deplibs_check_method == file_magic.
19482 file_magic_cmd=$lt_file_magic_cmd
19483
19484 # Flag that allows shared libraries with undefined symbols to be built.
19485 allow_undefined_flag=$lt_allow_undefined_flag_RC
19486
19487 # Flag that forces no undefined symbols.
19488 no_undefined_flag=$lt_no_undefined_flag_RC
19489
19490 # Commands used to finish a libtool library installation in a directory.
19491 finish_cmds=$lt_finish_cmds
19492
19493 # Same as above, but a single script fragment to be evaled but not shown.
19494 finish_eval=$lt_finish_eval
19495
19496 # Take the output of nm and produce a listing of raw symbols and C names.
19497 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19498
19499 # Transform the output of nm in a proper C declaration
19500 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19501
19502 # Transform the output of nm in a C name address pair
19503 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19504
19505 # This is the shared library runtime path variable.
19506 runpath_var=$runpath_var
19507
19508 # This is the shared library path variable.
19509 shlibpath_var=$shlibpath_var
19510
19511 # Is shlibpath searched before the hard-coded library search path?
19512 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19513
19514 # How to hardcode a shared library path into an executable.
19515 hardcode_action=$hardcode_action_RC
19516
19517 # Whether we should hardcode library paths into libraries.
19518 hardcode_into_libs=$hardcode_into_libs
19519
19520 # Flag to hardcode \$libdir into a binary during linking.
19521 # This must work even if \$libdir does not exist.
19522 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19523
19524 # If ld is used when linking, flag to hardcode \$libdir into
19525 # a binary during linking. This must work even if \$libdir does
19526 # not exist.
19527 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19528
19529 # Whether we need a single -rpath flag with a separated argument.
19530 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19531
19532 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19533 # resulting binary.
19534 hardcode_direct=$hardcode_direct_RC
19535
19536 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19537 # resulting binary.
19538 hardcode_minus_L=$hardcode_minus_L_RC
19539
19540 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19541 # the resulting binary.
19542 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19543
19544 # Set to yes if building a shared library automatically hardcodes DIR into the library
19545 # and all subsequent libraries and executables linked against it.
19546 hardcode_automatic=$hardcode_automatic_RC
19547
19548 # Variables whose values should be saved in libtool wrapper scripts and
19549 # restored at relink time.
19550 variables_saved_for_relink="$variables_saved_for_relink"
19551
19552 # Whether libtool must link a program against all its dependency libraries.
19553 link_all_deplibs=$link_all_deplibs_RC
19554
19555 # Compile-time system search path for libraries
19556 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19557
19558 # Run-time system search path for libraries
19559 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19560
19561 # Fix the shell variable \$srcfile for the compiler.
19562 fix_srcfile_path="$fix_srcfile_path_RC"
19563
19564 # Set to yes if exported symbols are required.
19565 always_export_symbols=$always_export_symbols_RC
19566
19567 # The commands to list exported symbols.
19568 export_symbols_cmds=$lt_export_symbols_cmds_RC
19569
19570 # The commands to extract the exported symbol list from a shared archive.
19571 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19572
19573 # Symbols that should not be listed in the preloaded symbols.
19574 exclude_expsyms=$lt_exclude_expsyms_RC
19575
19576 # Symbols that must always be exported.
19577 include_expsyms=$lt_include_expsyms_RC
19578
19579 # ### END LIBTOOL TAG CONFIG: $tagname
19580
19581 __EOF__
19582
19583
19584 else
19585   # If there is no Makefile yet, we rely on a make rule to execute
19586   # `config.status --recheck' to rerun these tests and create the
19587   # libtool script then.
19588   test -f Makefile && make "$ltmain"
19589 fi
19590
19591
19592 ac_ext=c
19593 ac_cpp='$CPP $CPPFLAGS'
19594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19597
19598 CC="$lt_save_CC"
19599
19600         ;;
19601
19602       *)
19603         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19604 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19605    { (exit 1); exit 1; }; }
19606         ;;
19607       esac
19608
19609       # Append the new tag name to the list of available tags.
19610       if test -n "$tagname" ; then
19611       available_tags="$available_tags $tagname"
19612     fi
19613     fi
19614   done
19615   IFS="$lt_save_ifs"
19616
19617   # Now substitute the updated list of available tags.
19618   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19619     mv "${ofile}T" "$ofile"
19620     chmod +x "$ofile"
19621   else
19622     rm -f "${ofile}T"
19623     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19624 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19625    { (exit 1); exit 1; }; }
19626   fi
19627 fi
19628
19629
19630
19631 # This can be used to rebuild libtool when needed
19632 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19633
19634 # Always use our own libtool.
19635 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19636
19637 # Prevent multiple expansion
19638
19639
19640
19641 if test "$enable_shared" = "no"; then
19642     with_noexec=no
19643 else
19644     eval _shrext="$shrext"
19645 fi
19646 echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
19647 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6
19648
19649 # Check whether --with-noexec or --without-noexec was given.
19650 if test "${with_noexec+set}" = set; then
19651   withval="$with_noexec"
19652   case $with_noexec in
19653     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
19654                 ;;
19655     no)         ;;
19656     *)          ;;
19657 esac
19658 else
19659   with_noexec="$libexecdir/sudo_noexec$_shrext"
19660 fi;
19661 echo "$as_me:$LINENO: result: $with_noexec" >&5
19662 echo "${ECHO_T}$with_noexec" >&6
19663 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
19664
19665 if test "$with_devel" = "yes" -a -n "$GCC"; then
19666     CFLAGS="${CFLAGS} -Wall"
19667 fi
19668
19669 # Extract the first word of "uname", so it can be a program name with args.
19670 set dummy uname; ac_word=$2
19671 echo "$as_me:$LINENO: checking for $ac_word" >&5
19672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19673 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
19674   echo $ECHO_N "(cached) $ECHO_C" >&6
19675 else
19676   if test -n "$UNAMEPROG"; then
19677   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
19678 else
19679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19680 for as_dir in $PATH
19681 do
19682   IFS=$as_save_IFS
19683   test -z "$as_dir" && as_dir=.
19684   for ac_exec_ext in '' $ac_executable_extensions; do
19685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19686     ac_cv_prog_UNAMEPROG="uname"
19687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19688     break 2
19689   fi
19690 done
19691 done
19692
19693 fi
19694 fi
19695 UNAMEPROG=$ac_cv_prog_UNAMEPROG
19696 if test -n "$UNAMEPROG"; then
19697   echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
19698 echo "${ECHO_T}$UNAMEPROG" >&6
19699 else
19700   echo "$as_me:$LINENO: result: no" >&5
19701 echo "${ECHO_T}no" >&6
19702 fi
19703
19704 # Extract the first word of "tr", so it can be a program name with args.
19705 set dummy tr; ac_word=$2
19706 echo "$as_me:$LINENO: checking for $ac_word" >&5
19707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19708 if test "${ac_cv_prog_TRPROG+set}" = set; then
19709   echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711   if test -n "$TRPROG"; then
19712   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
19713 else
19714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19715 for as_dir in $PATH
19716 do
19717   IFS=$as_save_IFS
19718   test -z "$as_dir" && as_dir=.
19719   for ac_exec_ext in '' $ac_executable_extensions; do
19720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19721     ac_cv_prog_TRPROG="tr"
19722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19723     break 2
19724   fi
19725 done
19726 done
19727
19728 fi
19729 fi
19730 TRPROG=$ac_cv_prog_TRPROG
19731 if test -n "$TRPROG"; then
19732   echo "$as_me:$LINENO: result: $TRPROG" >&5
19733 echo "${ECHO_T}$TRPROG" >&6
19734 else
19735   echo "$as_me:$LINENO: result: no" >&5
19736 echo "${ECHO_T}no" >&6
19737 fi
19738
19739 # Extract the first word of "nroff", so it can be a program name with args.
19740 set dummy nroff; ac_word=$2
19741 echo "$as_me:$LINENO: checking for $ac_word" >&5
19742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19743 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
19744   echo $ECHO_N "(cached) $ECHO_C" >&6
19745 else
19746   if test -n "$NROFFPROG"; then
19747   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
19748 else
19749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19750 for as_dir in $PATH
19751 do
19752   IFS=$as_save_IFS
19753   test -z "$as_dir" && as_dir=.
19754   for ac_exec_ext in '' $ac_executable_extensions; do
19755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19756     ac_cv_prog_NROFFPROG="nroff"
19757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19758     break 2
19759   fi
19760 done
19761 done
19762
19763 fi
19764 fi
19765 NROFFPROG=$ac_cv_prog_NROFFPROG
19766 if test -n "$NROFFPROG"; then
19767   echo "$as_me:$LINENO: result: $NROFFPROG" >&5
19768 echo "${ECHO_T}$NROFFPROG" >&6
19769 else
19770   echo "$as_me:$LINENO: result: no" >&5
19771 echo "${ECHO_T}no" >&6
19772 fi
19773
19774 if test -z "$NROFFPROG"; then
19775     MANTYPE="cat"
19776     mansrcdir='$(srcdir)'
19777 fi
19778
19779 if test -n "$sudo_cv_prev_host"; then
19780     if test "$sudo_cv_prev_host" != "$host"; then
19781         { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
19782 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
19783    { (exit 1); exit 1; }; }
19784     else
19785         echo "$as_me:$LINENO: checking previous host type" >&5
19786 echo $ECHO_N "checking previous host type... $ECHO_C" >&6
19787         if test "${sudo_cv_prev_host+set}" = set; then
19788   echo $ECHO_N "(cached) $ECHO_C" >&6
19789 else
19790   sudo_cv_prev_host="$host"
19791 fi
19792
19793         echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
19794 echo "${ECHO_T}$sudo_cv_prev_host" >&6
19795     fi
19796 else
19797     # this will produce no output since there is no cached value
19798     if test "${sudo_cv_prev_host+set}" = set; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801   sudo_cv_prev_host="$host"
19802 fi
19803
19804 fi
19805
19806 if test -n "$host_os"; then
19807     OS=`echo $host_os | sed 's/[0-9].*//'`
19808     OSREV=`echo $host_os | sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'`
19809 else
19810     OS="unknown"
19811     OSREV=0
19812 fi
19813
19814 case "$host" in
19815     *-*-sunos4*)
19816                 # getcwd(3) opens a pipe to getpwd(1)!?!
19817                 BROKEN_GETCWD=1
19818
19819                 # system headers lack prototypes but gcc helps...
19820                 if test -n "$GCC"; then
19821                     CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
19822                 fi
19823
19824                 # check for password adjunct functions (shadow passwords)
19825                 if test "$CHECKSHADOW" = "true"; then
19826
19827
19828 for ac_func in getpwanam issecure
19829 do
19830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19831 echo "$as_me:$LINENO: checking for $ac_func" >&5
19832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19833 if eval "test \"\${$as_ac_var+set}\" = set"; then
19834   echo $ECHO_N "(cached) $ECHO_C" >&6
19835 else
19836   cat >conftest.$ac_ext <<_ACEOF
19837 #line $LINENO "configure"
19838 /* confdefs.h.  */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h.  */
19843 /* System header to define __stub macros and hopefully few prototypes,
19844     which can conflict with char $ac_func (); below.
19845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19846     <limits.h> exists even on freestanding compilers.  */
19847 #ifdef __STDC__
19848 # include <limits.h>
19849 #else
19850 # include <assert.h>
19851 #endif
19852 /* Override any gcc2 internal prototype to avoid an error.  */
19853 #ifdef __cplusplus
19854 extern "C"
19855 {
19856 #endif
19857 /* We use char because int might match the return type of a gcc2
19858    builtin and then its argument prototype would still apply.  */
19859 char $ac_func ();
19860 /* The GNU C library defines this for functions which it implements
19861     to always fail with ENOSYS.  Some functions are actually named
19862     something starting with __ and the normal name is an alias.  */
19863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19864 choke me
19865 #else
19866 char (*f) () = $ac_func;
19867 #endif
19868 #ifdef __cplusplus
19869 }
19870 #endif
19871
19872 int
19873 main ()
19874 {
19875 return f != $ac_func;
19876   ;
19877   return 0;
19878 }
19879 _ACEOF
19880 rm -f conftest.$ac_objext conftest$ac_exeext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19882   (eval $ac_link) 2>&5
19883   ac_status=$?
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); } &&
19886          { ac_try='test -s conftest$ac_exeext'
19887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888   (eval $ac_try) 2>&5
19889   ac_status=$?
19890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891   (exit $ac_status); }; }; then
19892   eval "$as_ac_var=yes"
19893 else
19894   echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897 eval "$as_ac_var=no"
19898 fi
19899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19900 fi
19901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19903 if test `eval echo '${'$as_ac_var'}'` = yes; then
19904   cat >>confdefs.h <<_ACEOF
19905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19906 _ACEOF
19907
19908 else
19909   break
19910 fi
19911 done
19912
19913                     CHECKSHADOW="false"
19914                 fi
19915                 ;;
19916     *-*-solaris2*)
19917                 # To get the crypt(3) prototype (so we pass -Wall)
19918                 CPPFLAGS="${CPPFLAGS} -D__EXTENSIONS__"
19919                 # AFS support needs -lucb
19920                 if test "$with_AFS" = "yes"; then
19921                     AFS_LIBS="-lc -lucb"
19922                 fi
19923                 test -n "$mansectsu" || mansectsu=1m
19924                 test -n "$mansectform" || mansectform=4
19925                 test -n "$with_rpath" || with_rpath=yes
19926                 ;;
19927     *-*-aix*)
19928                 # To get all prototypes (so we pass -Wall)
19929                 CPPFLAGS="${CPPFLAGS} -D_XOPEN_EXTENDED_SOURCE"
19930                 cat >>confdefs.h <<\EOF
19931 #define _ALL_SOURCE 1
19932 EOF
19933
19934                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
19935                 if test X"$with_blibpath" != X"no"; then
19936                     echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
19937 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6
19938                     O_LDFLAGS="$LDFLAGS"
19939                     LDFLAGS="$LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
19940                     cat >conftest.$ac_ext <<_ACEOF
19941 #line $LINENO "configure"
19942 /* confdefs.h.  */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h.  */
19947
19948 int
19949 main ()
19950 {
19951
19952   ;
19953   return 0;
19954 }
19955 _ACEOF
19956 rm -f conftest.$ac_objext conftest$ac_exeext
19957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19958   (eval $ac_link) 2>&5
19959   ac_status=$?
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); } &&
19962          { ac_try='test -s conftest$ac_exeext'
19963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964   (eval $ac_try) 2>&5
19965   ac_status=$?
19966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); }; }; then
19968
19969                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
19970                             blibpath="$with_blibpath"
19971                         elif test -n "$GCC"; then
19972                             blibpath="/usr/lib:/lib:/usr/local/lib"
19973                         else
19974                             blibpath="/usr/lib:/lib"
19975                         fi
19976                         echo "$as_me:$LINENO: result: yes" >&5
19977 echo "${ECHO_T}yes" >&6
19978
19979 else
19980   echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19982
19983 echo "$as_me:$LINENO: result: no" >&5
19984 echo "${ECHO_T}no" >&6
19985 fi
19986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19987                 fi
19988                 LDFLAGS="$O_LDFLAGS"
19989                 ;;
19990     *-*-hiuxmpp*)
19991                 if test "$CHECKSHADOW" = "true"; then
19992                     echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
19993 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
19994 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
19995   echo $ECHO_N "(cached) $ECHO_C" >&6
19996 else
19997   ac_check_lib_save_LIBS=$LIBS
19998 LIBS="-lsec  $LIBS"
19999 cat >conftest.$ac_ext <<_ACEOF
20000 #line $LINENO "configure"
20001 /* confdefs.h.  */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h.  */
20006
20007 /* Override any gcc2 internal prototype to avoid an error.  */
20008 #ifdef __cplusplus
20009 extern "C"
20010 #endif
20011 /* We use char because int might match the return type of a gcc2
20012    builtin and then its argument prototype would still apply.  */
20013 char getprpwnam ();
20014 int
20015 main ()
20016 {
20017 getprpwnam ();
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 rm -f conftest.$ac_objext conftest$ac_exeext
20023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20024   (eval $ac_link) 2>&5
20025   ac_status=$?
20026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027   (exit $ac_status); } &&
20028          { ac_try='test -s conftest$ac_exeext'
20029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030   (eval $ac_try) 2>&5
20031   ac_status=$?
20032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033   (exit $ac_status); }; }; then
20034   ac_cv_lib_sec_getprpwnam=yes
20035 else
20036   echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20038
20039 ac_cv_lib_sec_getprpwnam=no
20040 fi
20041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20042 LIBS=$ac_check_lib_save_LIBS
20043 fi
20044 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
20045 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
20046 if test $ac_cv_lib_sec_getprpwnam = yes; then
20047   cat >>confdefs.h <<\_ACEOF
20048 #define HAVE_GETPRPWNAM 1
20049 _ACEOF
20050  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
20051 else
20052   echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
20053 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
20054 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
20055   echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057   ac_check_lib_save_LIBS=$LIBS
20058 LIBS="-lsecurity  $LIBS"
20059 cat >conftest.$ac_ext <<_ACEOF
20060 #line $LINENO "configure"
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066
20067 /* Override any gcc2 internal prototype to avoid an error.  */
20068 #ifdef __cplusplus
20069 extern "C"
20070 #endif
20071 /* We use char because int might match the return type of a gcc2
20072    builtin and then its argument prototype would still apply.  */
20073 char getprpwnam ();
20074 int
20075 main ()
20076 {
20077 getprpwnam ();
20078   ;
20079   return 0;
20080 }
20081 _ACEOF
20082 rm -f conftest.$ac_objext conftest$ac_exeext
20083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20084   (eval $ac_link) 2>&5
20085   ac_status=$?
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); } &&
20088          { ac_try='test -s conftest$ac_exeext'
20089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090   (eval $ac_try) 2>&5
20091   ac_status=$?
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); }; }; then
20094   ac_cv_lib_security_getprpwnam=yes
20095 else
20096   echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099 ac_cv_lib_security_getprpwnam=no
20100 fi
20101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20102 LIBS=$ac_check_lib_save_LIBS
20103 fi
20104 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
20105 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
20106 if test $ac_cv_lib_security_getprpwnam = yes; then
20107   cat >>confdefs.h <<\_ACEOF
20108 #define HAVE_GETPRPWNAM 1
20109 _ACEOF
20110  SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
20111 fi
20112
20113 fi
20114
20115                     CHECKSHADOW="false"
20116                 fi
20117                 test -n "$mansectsu" || mansectsu=1m
20118                 test -n "$mansectform" || mansectform=4
20119                 ;;
20120     *-*-hpux*)
20121                 # AFS support needs -lBSD
20122                 if test "$with_AFS" = "yes"; then
20123                     AFS_LIBS="-lc -lBSD"
20124                 fi
20125                 test -n "$mansectsu" || mansectsu=1m
20126                 test -n "$mansectform" || mansectform=4
20127
20128                 case "$host" in
20129                         *-*-hpux1-8.*)
20130                             cat >>confdefs.h <<\_ACEOF
20131 #define BROKEN_SYSLOG 1
20132 _ACEOF
20133
20134
20135                             # Not sure if setuid binaries are safe in < 9.x
20136                             if test -n "$GCC"; then
20137                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
20138                             else
20139                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
20140                             fi
20141                         ;;
20142                         *-*-hpux9.*)
20143                             cat >>confdefs.h <<\_ACEOF
20144 #define BROKEN_SYSLOG 1
20145 _ACEOF
20146
20147
20148                             if test "$CHECKSHADOW" = "true"; then
20149
20150 for ac_func in getspwuid
20151 do
20152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20153 echo "$as_me:$LINENO: checking for $ac_func" >&5
20154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20155 if eval "test \"\${$as_ac_var+set}\" = set"; then
20156   echo $ECHO_N "(cached) $ECHO_C" >&6
20157 else
20158   cat >conftest.$ac_ext <<_ACEOF
20159 #line $LINENO "configure"
20160 /* confdefs.h.  */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h.  */
20165 /* System header to define __stub macros and hopefully few prototypes,
20166     which can conflict with char $ac_func (); below.
20167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20168     <limits.h> exists even on freestanding compilers.  */
20169 #ifdef __STDC__
20170 # include <limits.h>
20171 #else
20172 # include <assert.h>
20173 #endif
20174 /* Override any gcc2 internal prototype to avoid an error.  */
20175 #ifdef __cplusplus
20176 extern "C"
20177 {
20178 #endif
20179 /* We use char because int might match the return type of a gcc2
20180    builtin and then its argument prototype would still apply.  */
20181 char $ac_func ();
20182 /* The GNU C library defines this for functions which it implements
20183     to always fail with ENOSYS.  Some functions are actually named
20184     something starting with __ and the normal name is an alias.  */
20185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20186 choke me
20187 #else
20188 char (*f) () = $ac_func;
20189 #endif
20190 #ifdef __cplusplus
20191 }
20192 #endif
20193
20194 int
20195 main ()
20196 {
20197 return f != $ac_func;
20198   ;
20199   return 0;
20200 }
20201 _ACEOF
20202 rm -f conftest.$ac_objext conftest$ac_exeext
20203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20204   (eval $ac_link) 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); } &&
20208          { ac_try='test -s conftest$ac_exeext'
20209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210   (eval $ac_try) 2>&5
20211   ac_status=$?
20212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213   (exit $ac_status); }; }; then
20214   eval "$as_ac_var=yes"
20215 else
20216   echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219 eval "$as_ac_var=no"
20220 fi
20221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20222 fi
20223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20225 if test `eval echo '${'$as_ac_var'}'` = yes; then
20226   cat >>confdefs.h <<_ACEOF
20227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20228 _ACEOF
20229
20230 fi
20231 done
20232
20233                                 CHECKSHADOW="false"
20234                             fi
20235
20236                             # DCE support (requires ANSI C compiler)
20237                             if test "$with_DCE" = "yes"; then
20238                                 # order of libs in 9.X is important. -lc_r must be last
20239                                 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
20240                                 LIBS="${LIBS} -ldce -lM -lc_r"
20241                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
20242                             fi
20243                         ;;
20244                         *-*-hpux10.*)
20245                             if test "$CHECKSHADOW" = "true"; then
20246                                 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
20247 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
20248 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
20249   echo $ECHO_N "(cached) $ECHO_C" >&6
20250 else
20251   ac_check_lib_save_LIBS=$LIBS
20252 LIBS="-lsec  $LIBS"
20253 cat >conftest.$ac_ext <<_ACEOF
20254 #line $LINENO "configure"
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260
20261 /* Override any gcc2 internal prototype to avoid an error.  */
20262 #ifdef __cplusplus
20263 extern "C"
20264 #endif
20265 /* We use char because int might match the return type of a gcc2
20266    builtin and then its argument prototype would still apply.  */
20267 char getprpwnam ();
20268 int
20269 main ()
20270 {
20271 getprpwnam ();
20272   ;
20273   return 0;
20274 }
20275 _ACEOF
20276 rm -f conftest.$ac_objext conftest$ac_exeext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278   (eval $ac_link) 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); } &&
20282          { ac_try='test -s conftest$ac_exeext'
20283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284   (eval $ac_try) 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); }; }; then
20288   ac_cv_lib_sec_getprpwnam=yes
20289 else
20290   echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20292
20293 ac_cv_lib_sec_getprpwnam=no
20294 fi
20295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20296 LIBS=$ac_check_lib_save_LIBS
20297 fi
20298 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
20299 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
20300 if test $ac_cv_lib_sec_getprpwnam = yes; then
20301   cat >>confdefs.h <<\_ACEOF
20302 #define HAVE_GETPRPWNAM 1
20303 _ACEOF
20304  echo "$as_me:$LINENO: checking for iscomsec in -lsec" >&5
20305 echo $ECHO_N "checking for iscomsec in -lsec... $ECHO_C" >&6
20306 if test "${ac_cv_lib_sec_iscomsec+set}" = set; then
20307   echo $ECHO_N "(cached) $ECHO_C" >&6
20308 else
20309   ac_check_lib_save_LIBS=$LIBS
20310 LIBS="-lsec  $LIBS"
20311 cat >conftest.$ac_ext <<_ACEOF
20312 #line $LINENO "configure"
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318
20319 /* Override any gcc2 internal prototype to avoid an error.  */
20320 #ifdef __cplusplus
20321 extern "C"
20322 #endif
20323 /* We use char because int might match the return type of a gcc2
20324    builtin and then its argument prototype would still apply.  */
20325 char iscomsec ();
20326 int
20327 main ()
20328 {
20329 iscomsec ();
20330   ;
20331   return 0;
20332 }
20333 _ACEOF
20334 rm -f conftest.$ac_objext conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336   (eval $ac_link) 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); } &&
20340          { ac_try='test -s conftest$ac_exeext'
20341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342   (eval $ac_try) 2>&5
20343   ac_status=$?
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); }; }; then
20346   ac_cv_lib_sec_iscomsec=yes
20347 else
20348   echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351 ac_cv_lib_sec_iscomsec=no
20352 fi
20353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20354 LIBS=$ac_check_lib_save_LIBS
20355 fi
20356 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_iscomsec" >&5
20357 echo "${ECHO_T}$ac_cv_lib_sec_iscomsec" >&6
20358 if test $ac_cv_lib_sec_iscomsec = yes; then
20359   cat >>confdefs.h <<\_ACEOF
20360 #define HAVE_ISCOMSEC 1
20361 _ACEOF
20362
20363 fi
20364  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
20365 fi
20366
20367                                 CHECKSHADOW="false"
20368                             fi
20369                         ;;
20370                         *)
20371                         if test "$CHECKSHADOW" = "true"; then
20372                             echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
20373 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
20374 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
20375   echo $ECHO_N "(cached) $ECHO_C" >&6
20376 else
20377   ac_check_lib_save_LIBS=$LIBS
20378 LIBS="-lsec  $LIBS"
20379 cat >conftest.$ac_ext <<_ACEOF
20380 #line $LINENO "configure"
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386
20387 /* Override any gcc2 internal prototype to avoid an error.  */
20388 #ifdef __cplusplus
20389 extern "C"
20390 #endif
20391 /* We use char because int might match the return type of a gcc2
20392    builtin and then its argument prototype would still apply.  */
20393 char getspnam ();
20394 int
20395 main ()
20396 {
20397 getspnam ();
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20404   (eval $ac_link) 2>&5
20405   ac_status=$?
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); } &&
20408          { ac_try='test -s conftest$ac_exeext'
20409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410   (eval $ac_try) 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; }; then
20414   ac_cv_lib_sec_getspnam=yes
20415 else
20416   echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20418
20419 ac_cv_lib_sec_getspnam=no
20420 fi
20421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20422 LIBS=$ac_check_lib_save_LIBS
20423 fi
20424 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
20425 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
20426 if test $ac_cv_lib_sec_getspnam = yes; then
20427   cat >>confdefs.h <<\_ACEOF
20428 #define HAVE_GETSPNAM 1
20429 _ACEOF
20430  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
20431 fi
20432
20433                             CHECKSHADOW="false"
20434                         fi
20435                         ;;
20436                 esac
20437                 ;;
20438     *-dec-osf*)
20439                 # ignore envariables wrt dynamic lib path
20440                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
20441
20442                 echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
20443 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6
20444                 # Check whether --enable-sia or --disable-sia was given.
20445 if test "${enable_sia+set}" = set; then
20446   enableval="$enable_sia"
20447    case "$enableval" in
20448                     yes)        echo "$as_me:$LINENO: result: no" >&5
20449 echo "${ECHO_T}no" >&6
20450                                 ;;
20451                     no)         echo "$as_me:$LINENO: result: yes" >&5
20452 echo "${ECHO_T}yes" >&6
20453                                 CHECKSIA=false
20454                                 ;;
20455                     *)          echo "$as_me:$LINENO: result: no" >&5
20456 echo "${ECHO_T}no" >&6
20457                                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
20458 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
20459                                 ;;
20460                   esac
20461
20462 else
20463   echo "$as_me:$LINENO: result: no" >&5
20464 echo "${ECHO_T}no" >&6
20465 fi;
20466
20467                 # use SIA by default, if we have it, else SecureWare
20468                 # unless overridden on the command line
20469                 if test "$CHECKSIA" = "true"; then
20470                     echo "$as_me:$LINENO: checking for sia_ses_init" >&5
20471 echo $ECHO_N "checking for sia_ses_init... $ECHO_C" >&6
20472 if test "${ac_cv_func_sia_ses_init+set}" = set; then
20473   echo $ECHO_N "(cached) $ECHO_C" >&6
20474 else
20475   cat >conftest.$ac_ext <<_ACEOF
20476 #line $LINENO "configure"
20477 /* confdefs.h.  */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h.  */
20482 /* System header to define __stub macros and hopefully few prototypes,
20483     which can conflict with char sia_ses_init (); below.
20484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20485     <limits.h> exists even on freestanding compilers.  */
20486 #ifdef __STDC__
20487 # include <limits.h>
20488 #else
20489 # include <assert.h>
20490 #endif
20491 /* Override any gcc2 internal prototype to avoid an error.  */
20492 #ifdef __cplusplus
20493 extern "C"
20494 {
20495 #endif
20496 /* We use char because int might match the return type of a gcc2
20497    builtin and then its argument prototype would still apply.  */
20498 char sia_ses_init ();
20499 /* The GNU C library defines this for functions which it implements
20500     to always fail with ENOSYS.  Some functions are actually named
20501     something starting with __ and the normal name is an alias.  */
20502 #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
20503 choke me
20504 #else
20505 char (*f) () = sia_ses_init;
20506 #endif
20507 #ifdef __cplusplus
20508 }
20509 #endif
20510
20511 int
20512 main ()
20513 {
20514 return f != sia_ses_init;
20515   ;
20516   return 0;
20517 }
20518 _ACEOF
20519 rm -f conftest.$ac_objext conftest$ac_exeext
20520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20521   (eval $ac_link) 2>&5
20522   ac_status=$?
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); } &&
20525          { ac_try='test -s conftest$ac_exeext'
20526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527   (eval $ac_try) 2>&5
20528   ac_status=$?
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); }; }; then
20531   ac_cv_func_sia_ses_init=yes
20532 else
20533   echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20535
20536 ac_cv_func_sia_ses_init=no
20537 fi
20538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20539 fi
20540 echo "$as_me:$LINENO: result: $ac_cv_func_sia_ses_init" >&5
20541 echo "${ECHO_T}$ac_cv_func_sia_ses_init" >&6
20542 if test $ac_cv_func_sia_ses_init = yes; then
20543   cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_SIA 1
20545 _ACEOF
20546
20547                     if test -n "$with_skey" -o -n "$with_opie" -o -n "$with_otp_only" -o -n "$with_long_otp_prompt" -o -n "$with_SecurID" -o -n "$with_fwtk" -o -n "$with_kerb4" -o -n "$with_kerb5" -o -n "$with_pam" -o -n "$with_AFS" -o -n "$with_DCE"; then
20548                         { { echo "$as_me:$LINENO: error: \"you cannot mix SIA and other authentication schemes.  You can turn off SIA support via the --disable-sia option\"" >&5
20549 echo "$as_me: error: \"you cannot mix SIA and other authentication schemes.  You can turn off SIA support via the --disable-sia option\"" >&2;}
20550    { (exit 1); exit 1; }; }
20551                     fi; CHECKSHADOW=false
20552 fi
20553
20554                 fi
20555                 if test "$CHECKSHADOW" = "true"; then
20556                     echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
20557 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
20558 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
20559   echo $ECHO_N "(cached) $ECHO_C" >&6
20560 else
20561   ac_check_lib_save_LIBS=$LIBS
20562 LIBS="-lsecurity  $LIBS"
20563 cat >conftest.$ac_ext <<_ACEOF
20564 #line $LINENO "configure"
20565 /* confdefs.h.  */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h.  */
20570
20571 /* Override any gcc2 internal prototype to avoid an error.  */
20572 #ifdef __cplusplus
20573 extern "C"
20574 #endif
20575 /* We use char because int might match the return type of a gcc2
20576    builtin and then its argument prototype would still apply.  */
20577 char getprpwnam ();
20578 int
20579 main ()
20580 {
20581 getprpwnam ();
20582   ;
20583   return 0;
20584 }
20585 _ACEOF
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588   (eval $ac_link) 2>&5
20589   ac_status=$?
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); } &&
20592          { ac_try='test -s conftest$ac_exeext'
20593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594   (eval $ac_try) 2>&5
20595   ac_status=$?
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); }; }; then
20598   ac_cv_lib_security_getprpwnam=yes
20599 else
20600   echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20602
20603 ac_cv_lib_security_getprpwnam=no
20604 fi
20605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20606 LIBS=$ac_check_lib_save_LIBS
20607 fi
20608 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
20609 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
20610 if test $ac_cv_lib_security_getprpwnam = yes; then
20611   SECUREWARE=1
20612 fi
20613
20614                     CHECKSHADOW="false"
20615                 fi
20616
20617                 if test -n "$SECUREWARE"; then
20618                     cat >>confdefs.h <<\_ACEOF
20619 #define HAVE_GETPRPWNAM 1
20620 _ACEOF
20621
20622                     # -ldb includes bogus versions of snprintf/vsnprintf
20623
20624 for ac_func in snprintf
20625 do
20626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20627 echo "$as_me:$LINENO: checking for $ac_func" >&5
20628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20629 if eval "test \"\${$as_ac_var+set}\" = set"; then
20630   echo $ECHO_N "(cached) $ECHO_C" >&6
20631 else
20632   cat >conftest.$ac_ext <<_ACEOF
20633 #line $LINENO "configure"
20634 /* confdefs.h.  */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h.  */
20639 /* System header to define __stub macros and hopefully few prototypes,
20640     which can conflict with char $ac_func (); below.
20641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20642     <limits.h> exists even on freestanding compilers.  */
20643 #ifdef __STDC__
20644 # include <limits.h>
20645 #else
20646 # include <assert.h>
20647 #endif
20648 /* Override any gcc2 internal prototype to avoid an error.  */
20649 #ifdef __cplusplus
20650 extern "C"
20651 {
20652 #endif
20653 /* We use char because int might match the return type of a gcc2
20654    builtin and then its argument prototype would still apply.  */
20655 char $ac_func ();
20656 /* The GNU C library defines this for functions which it implements
20657     to always fail with ENOSYS.  Some functions are actually named
20658     something starting with __ and the normal name is an alias.  */
20659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20660 choke me
20661 #else
20662 char (*f) () = $ac_func;
20663 #endif
20664 #ifdef __cplusplus
20665 }
20666 #endif
20667
20668 int
20669 main ()
20670 {
20671 return f != $ac_func;
20672   ;
20673   return 0;
20674 }
20675 _ACEOF
20676 rm -f conftest.$ac_objext conftest$ac_exeext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20678   (eval $ac_link) 2>&5
20679   ac_status=$?
20680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681   (exit $ac_status); } &&
20682          { ac_try='test -s conftest$ac_exeext'
20683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20684   (eval $ac_try) 2>&5
20685   ac_status=$?
20686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687   (exit $ac_status); }; }; then
20688   eval "$as_ac_var=yes"
20689 else
20690   echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693 eval "$as_ac_var=no"
20694 fi
20695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20696 fi
20697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20699 if test `eval echo '${'$as_ac_var'}'` = yes; then
20700   cat >>confdefs.h <<_ACEOF
20701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20702 _ACEOF
20703
20704 else
20705   NEED_SNPRINTF=1
20706 fi
20707 done
20708
20709
20710 for ac_func in vsnprintf
20711 do
20712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20713 echo "$as_me:$LINENO: checking for $ac_func" >&5
20714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20715 if eval "test \"\${$as_ac_var+set}\" = set"; then
20716   echo $ECHO_N "(cached) $ECHO_C" >&6
20717 else
20718   cat >conftest.$ac_ext <<_ACEOF
20719 #line $LINENO "configure"
20720 /* confdefs.h.  */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h.  */
20725 /* System header to define __stub macros and hopefully few prototypes,
20726     which can conflict with char $ac_func (); below.
20727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20728     <limits.h> exists even on freestanding compilers.  */
20729 #ifdef __STDC__
20730 # include <limits.h>
20731 #else
20732 # include <assert.h>
20733 #endif
20734 /* Override any gcc2 internal prototype to avoid an error.  */
20735 #ifdef __cplusplus
20736 extern "C"
20737 {
20738 #endif
20739 /* We use char because int might match the return type of a gcc2
20740    builtin and then its argument prototype would still apply.  */
20741 char $ac_func ();
20742 /* The GNU C library defines this for functions which it implements
20743     to always fail with ENOSYS.  Some functions are actually named
20744     something starting with __ and the normal name is an alias.  */
20745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20746 choke me
20747 #else
20748 char (*f) () = $ac_func;
20749 #endif
20750 #ifdef __cplusplus
20751 }
20752 #endif
20753
20754 int
20755 main ()
20756 {
20757 return f != $ac_func;
20758   ;
20759   return 0;
20760 }
20761 _ACEOF
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20764   (eval $ac_link) 2>&5
20765   ac_status=$?
20766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767   (exit $ac_status); } &&
20768          { ac_try='test -s conftest$ac_exeext'
20769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770   (eval $ac_try) 2>&5
20771   ac_status=$?
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); }; }; then
20774   eval "$as_ac_var=yes"
20775 else
20776   echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20778
20779 eval "$as_ac_var=no"
20780 fi
20781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20782 fi
20783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20785 if test `eval echo '${'$as_ac_var'}'` = yes; then
20786   cat >>confdefs.h <<_ACEOF
20787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20788 _ACEOF
20789
20790 else
20791   NEED_SNPRINTF=1
20792 fi
20793 done
20794
20795                     # 4.x and higher need -ldb too...
20796                     echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
20797 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6
20798 if test "${ac_cv_lib_db_dbopen+set}" = set; then
20799   echo $ECHO_N "(cached) $ECHO_C" >&6
20800 else
20801   ac_check_lib_save_LIBS=$LIBS
20802 LIBS="-ldb  $LIBS"
20803 cat >conftest.$ac_ext <<_ACEOF
20804 #line $LINENO "configure"
20805 /* confdefs.h.  */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h.  */
20810
20811 /* Override any gcc2 internal prototype to avoid an error.  */
20812 #ifdef __cplusplus
20813 extern "C"
20814 #endif
20815 /* We use char because int might match the return type of a gcc2
20816    builtin and then its argument prototype would still apply.  */
20817 char dbopen ();
20818 int
20819 main ()
20820 {
20821 dbopen ();
20822   ;
20823   return 0;
20824 }
20825 _ACEOF
20826 rm -f conftest.$ac_objext conftest$ac_exeext
20827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20828   (eval $ac_link) 2>&5
20829   ac_status=$?
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); } &&
20832          { ac_try='test -s conftest$ac_exeext'
20833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834   (eval $ac_try) 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); }; }; then
20838   ac_cv_lib_db_dbopen=yes
20839 else
20840   echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20842
20843 ac_cv_lib_db_dbopen=no
20844 fi
20845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20846 LIBS=$ac_check_lib_save_LIBS
20847 fi
20848 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
20849 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6
20850 if test $ac_cv_lib_db_dbopen = yes; then
20851   SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
20852 else
20853   SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
20854 fi
20855
20856
20857 for ac_func in dispcrypt
20858 do
20859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20860 echo "$as_me:$LINENO: checking for $ac_func" >&5
20861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20862 if eval "test \"\${$as_ac_var+set}\" = set"; then
20863   echo $ECHO_N "(cached) $ECHO_C" >&6
20864 else
20865   cat >conftest.$ac_ext <<_ACEOF
20866 #line $LINENO "configure"
20867 /* confdefs.h.  */
20868 _ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h.  */
20872 /* System header to define __stub macros and hopefully few prototypes,
20873     which can conflict with char $ac_func (); below.
20874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20875     <limits.h> exists even on freestanding compilers.  */
20876 #ifdef __STDC__
20877 # include <limits.h>
20878 #else
20879 # include <assert.h>
20880 #endif
20881 /* Override any gcc2 internal prototype to avoid an error.  */
20882 #ifdef __cplusplus
20883 extern "C"
20884 {
20885 #endif
20886 /* We use char because int might match the return type of a gcc2
20887    builtin and then its argument prototype would still apply.  */
20888 char $ac_func ();
20889 /* The GNU C library defines this for functions which it implements
20890     to always fail with ENOSYS.  Some functions are actually named
20891     something starting with __ and the normal name is an alias.  */
20892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20893 choke me
20894 #else
20895 char (*f) () = $ac_func;
20896 #endif
20897 #ifdef __cplusplus
20898 }
20899 #endif
20900
20901 int
20902 main ()
20903 {
20904 return f != $ac_func;
20905   ;
20906   return 0;
20907 }
20908 _ACEOF
20909 rm -f conftest.$ac_objext conftest$ac_exeext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20911   (eval $ac_link) 2>&5
20912   ac_status=$?
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); } &&
20915          { ac_try='test -s conftest$ac_exeext'
20916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917   (eval $ac_try) 2>&5
20918   ac_status=$?
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); }; }; then
20921   eval "$as_ac_var=yes"
20922 else
20923   echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20925
20926 eval "$as_ac_var=no"
20927 fi
20928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20929 fi
20930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20932 if test `eval echo '${'$as_ac_var'}'` = yes; then
20933   cat >>confdefs.h <<_ACEOF
20934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20935 _ACEOF
20936
20937 fi
20938 done
20939
20940                     echo "$as_me:$LINENO: checking for broken /usr/include/prot.h" >&5
20941 echo $ECHO_N "checking for broken /usr/include/prot.h... $ECHO_C" >&6
20942                     cat >conftest.$ac_ext <<_ACEOF
20943 #line $LINENO "configure"
20944 /* confdefs.h.  */
20945 _ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h.  */
20949
20950 #include <sys/types.h>
20951 #include <sys/security.h>
20952 #include <prot.h>
20953
20954 int
20955 main ()
20956 {
20957 exit(0);
20958   ;
20959   return 0;
20960 }
20961 _ACEOF
20962 rm -f conftest.$ac_objext
20963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20964   (eval $ac_compile) 2>&5
20965   ac_status=$?
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); } &&
20968          { ac_try='test -s conftest.$ac_objext'
20969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970   (eval $ac_try) 2>&5
20971   ac_status=$?
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); }; }; then
20974   echo "$as_me:$LINENO: result: no" >&5
20975 echo "${ECHO_T}no" >&6
20976 else
20977   echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20979
20980 echo "$as_me:$LINENO: result: yes, fixing locally" >&5
20981 echo "${ECHO_T}yes, fixing locally" >&6
20982                     sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
20983
20984 fi
20985 rm -f conftest.$ac_objext conftest.$ac_ext
20986                 elif test "$CHECKSIA" = "true"; then
20987                     with_passwd=no
20988                     AUTH_OBJS="sia.o"
20989                 fi
20990                 test -n "$mansectsu" || mansectsu=8
20991                 test -n "$mansectform" || mansectform=4
20992                 ;;
20993     *-*-irix*)
20994                 CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
20995                 if test -z "$NROFFPROG"; then
20996                     MAN_POSTINSTALL='   /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
20997                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
20998                         if test -d /usr/share/catman/local; then
20999                             mandir="/usr/share/catman/local"
21000                         else
21001                             mandir="/usr/catman/local"
21002                         fi
21003                     fi
21004                 else
21005                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
21006                         if test -d "/usr/share/man/local"; then
21007                             mandir="/usr/share/man/local"
21008                         else
21009                             mandir="/usr/man/local"
21010                         fi
21011                     fi
21012                 fi
21013                 # IRIX <= 4 needs -lsun
21014                 if test "$OSREV" -le 4; then
21015                     echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
21016 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
21017 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
21018   echo $ECHO_N "(cached) $ECHO_C" >&6
21019 else
21020   ac_check_lib_save_LIBS=$LIBS
21021 LIBS="-lsun  $LIBS"
21022 cat >conftest.$ac_ext <<_ACEOF
21023 #line $LINENO "configure"
21024 /* confdefs.h.  */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h.  */
21029
21030 /* Override any gcc2 internal prototype to avoid an error.  */
21031 #ifdef __cplusplus
21032 extern "C"
21033 #endif
21034 /* We use char because int might match the return type of a gcc2
21035    builtin and then its argument prototype would still apply.  */
21036 char getpwnam ();
21037 int
21038 main ()
21039 {
21040 getpwnam ();
21041   ;
21042   return 0;
21043 }
21044 _ACEOF
21045 rm -f conftest.$ac_objext conftest$ac_exeext
21046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21047   (eval $ac_link) 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); } &&
21051          { ac_try='test -s conftest$ac_exeext'
21052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053   (eval $ac_try) 2>&5
21054   ac_status=$?
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); }; }; then
21057   ac_cv_lib_sun_getpwnam=yes
21058 else
21059   echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21061
21062 ac_cv_lib_sun_getpwnam=no
21063 fi
21064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21065 LIBS=$ac_check_lib_save_LIBS
21066 fi
21067 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
21068 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
21069 if test $ac_cv_lib_sun_getpwnam = yes; then
21070   LIBS="${LIBS} -lsun"
21071 fi
21072
21073                 fi
21074                 test -n "$mansectsu" || mansectsu=1m
21075                 test -n "$mansectform" || mansectform=4
21076                 ;;
21077     *-*-linux*)
21078                 # Some Linux versions need to link with -lshadow
21079                 if test "$CHECKSHADOW" = "true"; then
21080
21081 for ac_func in getspnam
21082 do
21083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21084 echo "$as_me:$LINENO: checking for $ac_func" >&5
21085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21086 if eval "test \"\${$as_ac_var+set}\" = set"; then
21087   echo $ECHO_N "(cached) $ECHO_C" >&6
21088 else
21089   cat >conftest.$ac_ext <<_ACEOF
21090 #line $LINENO "configure"
21091 /* confdefs.h.  */
21092 _ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h.  */
21096 /* System header to define __stub macros and hopefully few prototypes,
21097     which can conflict with char $ac_func (); below.
21098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21099     <limits.h> exists even on freestanding compilers.  */
21100 #ifdef __STDC__
21101 # include <limits.h>
21102 #else
21103 # include <assert.h>
21104 #endif
21105 /* Override any gcc2 internal prototype to avoid an error.  */
21106 #ifdef __cplusplus
21107 extern "C"
21108 {
21109 #endif
21110 /* We use char because int might match the return type of a gcc2
21111    builtin and then its argument prototype would still apply.  */
21112 char $ac_func ();
21113 /* The GNU C library defines this for functions which it implements
21114     to always fail with ENOSYS.  Some functions are actually named
21115     something starting with __ and the normal name is an alias.  */
21116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21117 choke me
21118 #else
21119 char (*f) () = $ac_func;
21120 #endif
21121 #ifdef __cplusplus
21122 }
21123 #endif
21124
21125 int
21126 main ()
21127 {
21128 return f != $ac_func;
21129   ;
21130   return 0;
21131 }
21132 _ACEOF
21133 rm -f conftest.$ac_objext conftest$ac_exeext
21134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21135   (eval $ac_link) 2>&5
21136   ac_status=$?
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); } &&
21139          { ac_try='test -s conftest$ac_exeext'
21140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21141   (eval $ac_try) 2>&5
21142   ac_status=$?
21143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144   (exit $ac_status); }; }; then
21145   eval "$as_ac_var=yes"
21146 else
21147   echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150 eval "$as_ac_var=no"
21151 fi
21152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21153 fi
21154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21156 if test `eval echo '${'$as_ac_var'}'` = yes; then
21157   cat >>confdefs.h <<_ACEOF
21158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21159 _ACEOF
21160
21161 else
21162   echo "$as_me:$LINENO: checking for getspnam in -lshadow" >&5
21163 echo $ECHO_N "checking for getspnam in -lshadow... $ECHO_C" >&6
21164 if test "${ac_cv_lib_shadow_getspnam+set}" = set; then
21165   echo $ECHO_N "(cached) $ECHO_C" >&6
21166 else
21167   ac_check_lib_save_LIBS=$LIBS
21168 LIBS="-lshadow  $LIBS"
21169 cat >conftest.$ac_ext <<_ACEOF
21170 #line $LINENO "configure"
21171 /* confdefs.h.  */
21172 _ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h.  */
21176
21177 /* Override any gcc2 internal prototype to avoid an error.  */
21178 #ifdef __cplusplus
21179 extern "C"
21180 #endif
21181 /* We use char because int might match the return type of a gcc2
21182    builtin and then its argument prototype would still apply.  */
21183 char getspnam ();
21184 int
21185 main ()
21186 {
21187 getspnam ();
21188   ;
21189   return 0;
21190 }
21191 _ACEOF
21192 rm -f conftest.$ac_objext conftest$ac_exeext
21193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21194   (eval $ac_link) 2>&5
21195   ac_status=$?
21196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197   (exit $ac_status); } &&
21198          { ac_try='test -s conftest$ac_exeext'
21199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200   (eval $ac_try) 2>&5
21201   ac_status=$?
21202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203   (exit $ac_status); }; }; then
21204   ac_cv_lib_shadow_getspnam=yes
21205 else
21206   echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209 ac_cv_lib_shadow_getspnam=no
21210 fi
21211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21212 LIBS=$ac_check_lib_save_LIBS
21213 fi
21214 echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspnam" >&5
21215 echo "${ECHO_T}$ac_cv_lib_shadow_getspnam" >&6
21216 if test $ac_cv_lib_shadow_getspnam = yes; then
21217   cat >>confdefs.h <<\_ACEOF
21218 #define HAVE_GETSPNAM 1
21219 _ACEOF
21220  SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
21221 fi
21222
21223 fi
21224 done
21225
21226                     CHECKSHADOW="false"
21227                 fi
21228                 ;;
21229     *-convex-bsd*)
21230                 cat >>confdefs.h <<\EOF
21231 #define _CONVEX_SOURCE 1
21232 EOF
21233
21234                 if test -z "$GCC"; then
21235                     CFLAGS="${CFLAGS} -D__STDC__"
21236                 fi
21237
21238                 if test "$CHECKSHADOW" = "true"; then
21239                     echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
21240 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
21241 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
21242   echo $ECHO_N "(cached) $ECHO_C" >&6
21243 else
21244   ac_check_lib_save_LIBS=$LIBS
21245 LIBS="-lsec  $LIBS"
21246 cat >conftest.$ac_ext <<_ACEOF
21247 #line $LINENO "configure"
21248 /* confdefs.h.  */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h.  */
21253
21254 /* Override any gcc2 internal prototype to avoid an error.  */
21255 #ifdef __cplusplus
21256 extern "C"
21257 #endif
21258 /* We use char because int might match the return type of a gcc2
21259    builtin and then its argument prototype would still apply.  */
21260 char getprpwnam ();
21261 int
21262 main ()
21263 {
21264 getprpwnam ();
21265   ;
21266   return 0;
21267 }
21268 _ACEOF
21269 rm -f conftest.$ac_objext conftest$ac_exeext
21270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21271   (eval $ac_link) 2>&5
21272   ac_status=$?
21273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274   (exit $ac_status); } &&
21275          { ac_try='test -s conftest$ac_exeext'
21276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277   (eval $ac_try) 2>&5
21278   ac_status=$?
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); }; }; then
21281   ac_cv_lib_sec_getprpwnam=yes
21282 else
21283   echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21285
21286 ac_cv_lib_sec_getprpwnam=no
21287 fi
21288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21289 LIBS=$ac_check_lib_save_LIBS
21290 fi
21291 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
21292 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
21293 if test $ac_cv_lib_sec_getprpwnam = yes; then
21294   cat >>confdefs.h <<\_ACEOF
21295 #define HAVE_GETPRPWNAM 1
21296 _ACEOF
21297  SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
21298 fi
21299
21300                     CHECKSHADOW="false"
21301                 fi
21302                 ;;
21303     *-*-ultrix*)
21304                 OS="ultrix"
21305                 if test "$CHECKSHADOW" = "true"; then
21306                     echo "$as_me:$LINENO: checking for getauthuid in -lauth" >&5
21307 echo $ECHO_N "checking for getauthuid in -lauth... $ECHO_C" >&6
21308 if test "${ac_cv_lib_auth_getauthuid+set}" = set; then
21309   echo $ECHO_N "(cached) $ECHO_C" >&6
21310 else
21311   ac_check_lib_save_LIBS=$LIBS
21312 LIBS="-lauth  $LIBS"
21313 cat >conftest.$ac_ext <<_ACEOF
21314 #line $LINENO "configure"
21315 /* confdefs.h.  */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h.  */
21320
21321 /* Override any gcc2 internal prototype to avoid an error.  */
21322 #ifdef __cplusplus
21323 extern "C"
21324 #endif
21325 /* We use char because int might match the return type of a gcc2
21326    builtin and then its argument prototype would still apply.  */
21327 char getauthuid ();
21328 int
21329 main ()
21330 {
21331 getauthuid ();
21332   ;
21333   return 0;
21334 }
21335 _ACEOF
21336 rm -f conftest.$ac_objext conftest$ac_exeext
21337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21338   (eval $ac_link) 2>&5
21339   ac_status=$?
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); } &&
21342          { ac_try='test -s conftest$ac_exeext'
21343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344   (eval $ac_try) 2>&5
21345   ac_status=$?
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); }; }; then
21348   ac_cv_lib_auth_getauthuid=yes
21349 else
21350   echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21352
21353 ac_cv_lib_auth_getauthuid=no
21354 fi
21355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21356 LIBS=$ac_check_lib_save_LIBS
21357 fi
21358 echo "$as_me:$LINENO: result: $ac_cv_lib_auth_getauthuid" >&5
21359 echo "${ECHO_T}$ac_cv_lib_auth_getauthuid" >&6
21360 if test $ac_cv_lib_auth_getauthuid = yes; then
21361   cat >>confdefs.h <<\_ACEOF
21362 #define HAVE_GETAUTHUID 1
21363 _ACEOF
21364  SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
21365 fi
21366
21367                     CHECKSHADOW="false"
21368                 fi
21369                 ;;
21370     *-*-riscos*)
21371                 LIBS="${LIBS} -lsun -lbsd"
21372                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
21373                 OSDEFS="${OSDEFS} -D_MIPS"
21374                 test -n "$mansectsu" || mansectsu=1m
21375                 test -n "$mansectform" || mansectform=4
21376                 ;;
21377     *-*-isc*)
21378                 OSDEFS="${OSDEFS} -D_ISC"
21379                 LIB_CRYPT=1
21380                 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
21381                 LIBS="${LIBS} -lcrypt"
21382
21383                 if test "$CHECKSHADOW" = "true"; then
21384                     echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
21385 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
21386 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
21387   echo $ECHO_N "(cached) $ECHO_C" >&6
21388 else
21389   ac_check_lib_save_LIBS=$LIBS
21390 LIBS="-lsec  $LIBS"
21391 cat >conftest.$ac_ext <<_ACEOF
21392 #line $LINENO "configure"
21393 /* confdefs.h.  */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h.  */
21398
21399 /* Override any gcc2 internal prototype to avoid an error.  */
21400 #ifdef __cplusplus
21401 extern "C"
21402 #endif
21403 /* We use char because int might match the return type of a gcc2
21404    builtin and then its argument prototype would still apply.  */
21405 char getspnam ();
21406 int
21407 main ()
21408 {
21409 getspnam ();
21410   ;
21411   return 0;
21412 }
21413 _ACEOF
21414 rm -f conftest.$ac_objext conftest$ac_exeext
21415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416   (eval $ac_link) 2>&5
21417   ac_status=$?
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); } &&
21420          { ac_try='test -s conftest$ac_exeext'
21421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422   (eval $ac_try) 2>&5
21423   ac_status=$?
21424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425   (exit $ac_status); }; }; then
21426   ac_cv_lib_sec_getspnam=yes
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431 ac_cv_lib_sec_getspnam=no
21432 fi
21433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21434 LIBS=$ac_check_lib_save_LIBS
21435 fi
21436 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
21437 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
21438 if test $ac_cv_lib_sec_getspnam = yes; then
21439   cat >>confdefs.h <<\_ACEOF
21440 #define HAVE_GETSPNAM 1
21441 _ACEOF
21442  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
21443 fi
21444
21445                     CHECKSHADOW="false"
21446                 fi
21447                 test -n "$mansectsu" || mansectsu=1m
21448                 test -n "$mansectform" || mansectform=4
21449                 ;;
21450     *-*-sco*|*-sco-*)
21451                 if test "$CHECKSHADOW" = "true"; then
21452                     echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
21453 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
21454 if test "${ac_cv_lib_prot_getprpwnam_lx+set}" = set; then
21455   echo $ECHO_N "(cached) $ECHO_C" >&6
21456 else
21457   ac_check_lib_save_LIBS=$LIBS
21458 LIBS="-lprot -lx $LIBS"
21459 cat >conftest.$ac_ext <<_ACEOF
21460 #line $LINENO "configure"
21461 /* confdefs.h.  */
21462 _ACEOF
21463 cat confdefs.h >>conftest.$ac_ext
21464 cat >>conftest.$ac_ext <<_ACEOF
21465 /* end confdefs.h.  */
21466
21467 /* Override any gcc2 internal prototype to avoid an error.  */
21468 #ifdef __cplusplus
21469 extern "C"
21470 #endif
21471 /* We use char because int might match the return type of a gcc2
21472    builtin and then its argument prototype would still apply.  */
21473 char getprpwnam ();
21474 int
21475 main ()
21476 {
21477 getprpwnam ();
21478   ;
21479   return 0;
21480 }
21481 _ACEOF
21482 rm -f conftest.$ac_objext conftest$ac_exeext
21483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21484   (eval $ac_link) 2>&5
21485   ac_status=$?
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); } &&
21488          { ac_try='test -s conftest$ac_exeext'
21489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490   (eval $ac_try) 2>&5
21491   ac_status=$?
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); }; }; then
21494   ac_cv_lib_prot_getprpwnam_lx=yes
21495 else
21496   echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21498
21499 ac_cv_lib_prot_getprpwnam_lx=no
21500 fi
21501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21502 LIBS=$ac_check_lib_save_LIBS
21503 fi
21504 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam_lx" >&5
21505 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam_lx" >&6
21506 if test $ac_cv_lib_prot_getprpwnam_lx = yes; then
21507   cat >>confdefs.h <<\_ACEOF
21508 #define HAVE_GETPRPWNAM 1
21509 _ACEOF
21510  SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
21511 fi
21512
21513                     echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
21514 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
21515 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
21516   echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518   ac_check_lib_save_LIBS=$LIBS
21519 LIBS="-lgen  $LIBS"
21520 cat >conftest.$ac_ext <<_ACEOF
21521 #line $LINENO "configure"
21522 /* confdefs.h.  */
21523 _ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h.  */
21527
21528 /* Override any gcc2 internal prototype to avoid an error.  */
21529 #ifdef __cplusplus
21530 extern "C"
21531 #endif
21532 /* We use char because int might match the return type of a gcc2
21533    builtin and then its argument prototype would still apply.  */
21534 char getspnam ();
21535 int
21536 main ()
21537 {
21538 getspnam ();
21539   ;
21540   return 0;
21541 }
21542 _ACEOF
21543 rm -f conftest.$ac_objext conftest$ac_exeext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21545   (eval $ac_link) 2>&5
21546   ac_status=$?
21547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548   (exit $ac_status); } &&
21549          { ac_try='test -s conftest$ac_exeext'
21550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551   (eval $ac_try) 2>&5
21552   ac_status=$?
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); }; }; then
21555   ac_cv_lib_gen_getspnam=yes
21556 else
21557   echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560 ac_cv_lib_gen_getspnam=no
21561 fi
21562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21563 LIBS=$ac_check_lib_save_LIBS
21564 fi
21565 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
21566 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
21567 if test $ac_cv_lib_gen_getspnam = yes; then
21568   cat >>confdefs.h <<\_ACEOF
21569 #define HAVE_GETSPNAM 1
21570 _ACEOF
21571  SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
21572 fi
21573
21574                     CHECKSHADOW="false"
21575                 fi
21576                 test -n "$mansectsu" || mansectsu=1m
21577                 test -n "$mansectform" || mansectform=4
21578                 ;;
21579     m88k-motorola-sysv*)
21580                 # motorolla's cc (a variant of gcc) does -O but not -O2
21581                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
21582                 test -n "$mansectsu" || mansectsu=1m
21583                 test -n "$mansectform" || mansectform=4
21584                 ;;
21585     *-sequent-sysv*)
21586                 if test "$CHECKSHADOW" = "true"; then
21587                     echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
21588 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
21589 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
21590   echo $ECHO_N "(cached) $ECHO_C" >&6
21591 else
21592   ac_check_lib_save_LIBS=$LIBS
21593 LIBS="-lsec  $LIBS"
21594 cat >conftest.$ac_ext <<_ACEOF
21595 #line $LINENO "configure"
21596 /* confdefs.h.  */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h.  */
21601
21602 /* Override any gcc2 internal prototype to avoid an error.  */
21603 #ifdef __cplusplus
21604 extern "C"
21605 #endif
21606 /* We use char because int might match the return type of a gcc2
21607    builtin and then its argument prototype would still apply.  */
21608 char getspnam ();
21609 int
21610 main ()
21611 {
21612 getspnam ();
21613   ;
21614   return 0;
21615 }
21616 _ACEOF
21617 rm -f conftest.$ac_objext conftest$ac_exeext
21618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21619   (eval $ac_link) 2>&5
21620   ac_status=$?
21621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622   (exit $ac_status); } &&
21623          { ac_try='test -s conftest$ac_exeext'
21624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625   (eval $ac_try) 2>&5
21626   ac_status=$?
21627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628   (exit $ac_status); }; }; then
21629   ac_cv_lib_sec_getspnam=yes
21630 else
21631   echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21633
21634 ac_cv_lib_sec_getspnam=no
21635 fi
21636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21637 LIBS=$ac_check_lib_save_LIBS
21638 fi
21639 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
21640 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
21641 if test $ac_cv_lib_sec_getspnam = yes; then
21642   cat >>confdefs.h <<\_ACEOF
21643 #define HAVE_GETSPNAM 1
21644 _ACEOF
21645  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
21646 fi
21647
21648                     CHECKSHADOW="false"
21649                 fi
21650                 test -n "$mansectsu" || mansectsu=1m
21651                 test -n "$mansectform" || mansectform=4
21652                 test -n "$with_rpath" || with_rpath=yes
21653                 ;;
21654     *-ncr-sysv4*|*-ncr-sysvr4*)
21655                 echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
21656 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6
21657 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
21658   echo $ECHO_N "(cached) $ECHO_C" >&6
21659 else
21660   ac_check_lib_save_LIBS=$LIBS
21661 LIBS="-lc89  $LIBS"
21662 cat >conftest.$ac_ext <<_ACEOF
21663 #line $LINENO "configure"
21664 /* confdefs.h.  */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h.  */
21669
21670 /* Override any gcc2 internal prototype to avoid an error.  */
21671 #ifdef __cplusplus
21672 extern "C"
21673 #endif
21674 /* We use char because int might match the return type of a gcc2
21675    builtin and then its argument prototype would still apply.  */
21676 char strcasecmp ();
21677 int
21678 main ()
21679 {
21680 strcasecmp ();
21681   ;
21682   return 0;
21683 }
21684 _ACEOF
21685 rm -f conftest.$ac_objext conftest$ac_exeext
21686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21687   (eval $ac_link) 2>&5
21688   ac_status=$?
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); } &&
21691          { ac_try='test -s conftest$ac_exeext'
21692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693   (eval $ac_try) 2>&5
21694   ac_status=$?
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); }; }; then
21697   ac_cv_lib_c89_strcasecmp=yes
21698 else
21699   echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21701
21702 ac_cv_lib_c89_strcasecmp=no
21703 fi
21704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21705 LIBS=$ac_check_lib_save_LIBS
21706 fi
21707 echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
21708 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6
21709 if test $ac_cv_lib_c89_strcasecmp = yes; then
21710   cat >>confdefs.h <<\_ACEOF
21711 #define HAVE_STRCASECMP 1
21712 _ACEOF
21713  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
21714 fi
21715
21716                 test -n "$mansectsu" || mansectsu=1m
21717                 test -n "$mansectform" || mansectform=4
21718                 test -n "$with_rpath" || with_rpath=yes
21719                 ;;
21720     *-ccur-sysv4*|*-ccur-sysvr4*)
21721                 LIBS="${LIBS} -lgen"
21722                 SUDO_LIBS="${SUDO_LIBS} -lgen"
21723                 test -n "$mansectsu" || mansectsu=1m
21724                 test -n "$mansectform" || mansectform=4
21725                 test -n "$with_rpath" || with_rpath=yes
21726                 ;;
21727     *-*-bsdi*)
21728                 SKIP_SETREUID=yes
21729                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
21730                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
21731                     case "$OSREV" in
21732                         2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
21733 echo "$as_me: using shlicc as CC" >&6;}
21734                                 ac_cv_prog_CC=shlicc
21735                                 CC="$ac_cv_prog_CC"
21736                                 ;;
21737                     esac
21738                 fi
21739                 ;;
21740     *-*-freebsd*)
21741                 # FreeBSD has a real setreuid(2) starting with 2.1 and
21742                 # backported to 2.0.5.  We just take 2.1 and above...
21743                 case "`echo $host_os | sed 's/^freebsd\([0-9\.]*\).*$/\1/'`" in
21744                 0.*|1.*|2.0*)
21745                     SKIP_SETREUID=yes
21746                     ;;
21747                 esac
21748                 if test "$with_logincap" = "yes"; then
21749                     SUDO_LIBS="${SUDO_LIBS} -lutil"
21750                 fi
21751                 if test "$with_skey" = "yes"; then
21752                      SUDO_LIBS="${SUDO_LIBS} -lmd"
21753                 fi
21754                 if test "$CHECKSHADOW" = "true"; then
21755                     CHECKSHADOW="false"
21756                 fi
21757                 ;;
21758     *-*-*openbsd*)
21759                 SKIP_SETREUID=yes
21760                 if test "$CHECKSHADOW" = "true"; then
21761                     CHECKSHADOW="false"
21762                 fi
21763                 ;;
21764     *-*-*netbsd*)
21765                 # NetBSD has a real setreuid(2) starting with 1.3.2
21766                 case "`echo $host_os | sed 's/^netbsd\([0-9\.]*\).*$/\1/'`" in
21767                 0.9*|1.012*|1.3|1.3.1)
21768                     SKIP_SETREUID=yes
21769                     ;;
21770                 esac
21771                 if test "$CHECKSHADOW" = "true"; then
21772                     CHECKSHADOW="false"
21773                 fi
21774                 ;;
21775     *-*-*bsd*)
21776                 if test "$CHECKSHADOW" = "true"; then
21777                     CHECKSHADOW="false"
21778                 fi
21779                 ;;
21780     *-*-darwin*)
21781                 SKIP_SETREUID=yes
21782                 if test "$CHECKSHADOW" = "true"; then
21783                     CHECKSHADOW="false"
21784                 fi
21785                 ;;
21786     *-*-nextstep*)
21787                 # lockf() on is broken on the NeXT -- use flock instead
21788                 ac_cv_func_lockf=no
21789                 ac_cv_func_flock=yes
21790                 ;;
21791     *-*-*sysv4*)
21792                 test -n "$mansectsu" || mansectsu=1m
21793                 test -n "$mansectform" || mansectform=4
21794                 test -n "$with_rpath" || with_rpath=yes
21795                 ;;
21796     *-*-sysv*)
21797                 test -n "$mansectsu" || mansectsu=1m
21798                 test -n "$mansectform" || mansectform=4
21799                 ;;
21800 esac
21801
21802 test -n "$mansectsu" || mansectsu=8
21803 test -n "$mansectform" || mansectform=5
21804
21805 if test -n "$with_libpath"; then
21806     for i in ${with_libpath}; do
21807
21808     if test X"$with_rpath" = X"yes"; then
21809         LDFLAGS="${LDFLAGS} -L$i -R$i"
21810     else
21811         LDFLAGS="${LDFLAGS} -L$i"
21812     fi
21813     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21814         blibpath_add="${blibpath_add}:$i"
21815     fi
21816
21817     done
21818 fi
21819 if test -n "$with_libraries"; then
21820     for i in ${with_libraries}; do
21821         case $i in
21822             -l*)        ;;
21823             *.a)        ;;
21824             *.o)        ;;
21825             *)  i="-l${i}";;
21826         esac
21827         LIBS="${LIBS} ${i}"
21828     done
21829 fi
21830
21831 if test "$CHECKSHADOW" = "true"; then
21832
21833 for ac_func in getspnam
21834 do
21835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21836 echo "$as_me:$LINENO: checking for $ac_func" >&5
21837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21838 if eval "test \"\${$as_ac_var+set}\" = set"; then
21839   echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841   cat >conftest.$ac_ext <<_ACEOF
21842 #line $LINENO "configure"
21843 /* confdefs.h.  */
21844 _ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h.  */
21848 /* System header to define __stub macros and hopefully few prototypes,
21849     which can conflict with char $ac_func (); below.
21850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21851     <limits.h> exists even on freestanding compilers.  */
21852 #ifdef __STDC__
21853 # include <limits.h>
21854 #else
21855 # include <assert.h>
21856 #endif
21857 /* Override any gcc2 internal prototype to avoid an error.  */
21858 #ifdef __cplusplus
21859 extern "C"
21860 {
21861 #endif
21862 /* We use char because int might match the return type of a gcc2
21863    builtin and then its argument prototype would still apply.  */
21864 char $ac_func ();
21865 /* The GNU C library defines this for functions which it implements
21866     to always fail with ENOSYS.  Some functions are actually named
21867     something starting with __ and the normal name is an alias.  */
21868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21869 choke me
21870 #else
21871 char (*f) () = $ac_func;
21872 #endif
21873 #ifdef __cplusplus
21874 }
21875 #endif
21876
21877 int
21878 main ()
21879 {
21880 return f != $ac_func;
21881   ;
21882   return 0;
21883 }
21884 _ACEOF
21885 rm -f conftest.$ac_objext conftest$ac_exeext
21886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21887   (eval $ac_link) 2>&5
21888   ac_status=$?
21889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890   (exit $ac_status); } &&
21891          { ac_try='test -s conftest$ac_exeext'
21892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893   (eval $ac_try) 2>&5
21894   ac_status=$?
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); }; }; then
21897   eval "$as_ac_var=yes"
21898 else
21899   echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21901
21902 eval "$as_ac_var=no"
21903 fi
21904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21905 fi
21906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21908 if test `eval echo '${'$as_ac_var'}'` = yes; then
21909   cat >>confdefs.h <<_ACEOF
21910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21911 _ACEOF
21912  CHECKSHADOW="false"
21913 else
21914   echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
21915 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
21916 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
21917   echo $ECHO_N "(cached) $ECHO_C" >&6
21918 else
21919   ac_check_lib_save_LIBS=$LIBS
21920 LIBS="-lgen  $LIBS"
21921 cat >conftest.$ac_ext <<_ACEOF
21922 #line $LINENO "configure"
21923 /* confdefs.h.  */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h.  */
21928
21929 /* Override any gcc2 internal prototype to avoid an error.  */
21930 #ifdef __cplusplus
21931 extern "C"
21932 #endif
21933 /* We use char because int might match the return type of a gcc2
21934    builtin and then its argument prototype would still apply.  */
21935 char getspnam ();
21936 int
21937 main ()
21938 {
21939 getspnam ();
21940   ;
21941   return 0;
21942 }
21943 _ACEOF
21944 rm -f conftest.$ac_objext conftest$ac_exeext
21945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21946   (eval $ac_link) 2>&5
21947   ac_status=$?
21948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949   (exit $ac_status); } &&
21950          { ac_try='test -s conftest$ac_exeext'
21951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952   (eval $ac_try) 2>&5
21953   ac_status=$?
21954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955   (exit $ac_status); }; }; then
21956   ac_cv_lib_gen_getspnam=yes
21957 else
21958   echo "$as_me: failed program was:" >&5
21959 sed 's/^/| /' conftest.$ac_ext >&5
21960
21961 ac_cv_lib_gen_getspnam=no
21962 fi
21963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21964 LIBS=$ac_check_lib_save_LIBS
21965 fi
21966 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
21967 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
21968 if test $ac_cv_lib_gen_getspnam = yes; then
21969   cat >>confdefs.h <<\_ACEOF
21970 #define HAVE_GETSPNAM 1
21971 _ACEOF
21972  SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
21973 fi
21974
21975 fi
21976 done
21977
21978 fi
21979 if test "$CHECKSHADOW" = "true"; then
21980     echo "$as_me:$LINENO: checking for getprpwnam" >&5
21981 echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6
21982 if test "${ac_cv_func_getprpwnam+set}" = set; then
21983   echo $ECHO_N "(cached) $ECHO_C" >&6
21984 else
21985   cat >conftest.$ac_ext <<_ACEOF
21986 #line $LINENO "configure"
21987 /* confdefs.h.  */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h.  */
21992 /* System header to define __stub macros and hopefully few prototypes,
21993     which can conflict with char getprpwnam (); below.
21994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21995     <limits.h> exists even on freestanding compilers.  */
21996 #ifdef __STDC__
21997 # include <limits.h>
21998 #else
21999 # include <assert.h>
22000 #endif
22001 /* Override any gcc2 internal prototype to avoid an error.  */
22002 #ifdef __cplusplus
22003 extern "C"
22004 {
22005 #endif
22006 /* We use char because int might match the return type of a gcc2
22007    builtin and then its argument prototype would still apply.  */
22008 char getprpwnam ();
22009 /* The GNU C library defines this for functions which it implements
22010     to always fail with ENOSYS.  Some functions are actually named
22011     something starting with __ and the normal name is an alias.  */
22012 #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
22013 choke me
22014 #else
22015 char (*f) () = getprpwnam;
22016 #endif
22017 #ifdef __cplusplus
22018 }
22019 #endif
22020
22021 int
22022 main ()
22023 {
22024 return f != getprpwnam;
22025   ;
22026   return 0;
22027 }
22028 _ACEOF
22029 rm -f conftest.$ac_objext conftest$ac_exeext
22030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22031   (eval $ac_link) 2>&5
22032   ac_status=$?
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); } &&
22035          { ac_try='test -s conftest$ac_exeext'
22036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037   (eval $ac_try) 2>&5
22038   ac_status=$?
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); }; }; then
22041   ac_cv_func_getprpwnam=yes
22042 else
22043   echo "$as_me: failed program was:" >&5
22044 sed 's/^/| /' conftest.$ac_ext >&5
22045
22046 ac_cv_func_getprpwnam=no
22047 fi
22048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22049 fi
22050 echo "$as_me:$LINENO: result: $ac_cv_func_getprpwnam" >&5
22051 echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6
22052 if test $ac_cv_func_getprpwnam = yes; then
22053   cat >>confdefs.h <<\_ACEOF
22054 #define HAVE_GETPRPWNAM 1
22055 _ACEOF
22056  CHECKSHADOW="false"; SECUREWARE=1, echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
22057 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
22058 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
22059   echo $ECHO_N "(cached) $ECHO_C" >&6
22060 else
22061   ac_check_lib_save_LIBS=$LIBS
22062 LIBS="-lsec  $LIBS"
22063 cat >conftest.$ac_ext <<_ACEOF
22064 #line $LINENO "configure"
22065 /* confdefs.h.  */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h.  */
22070
22071 /* Override any gcc2 internal prototype to avoid an error.  */
22072 #ifdef __cplusplus
22073 extern "C"
22074 #endif
22075 /* We use char because int might match the return type of a gcc2
22076    builtin and then its argument prototype would still apply.  */
22077 char getprpwnam ();
22078 int
22079 main ()
22080 {
22081 getprpwnam ();
22082   ;
22083   return 0;
22084 }
22085 _ACEOF
22086 rm -f conftest.$ac_objext conftest$ac_exeext
22087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22088   (eval $ac_link) 2>&5
22089   ac_status=$?
22090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); } &&
22092          { ac_try='test -s conftest$ac_exeext'
22093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094   (eval $ac_try) 2>&5
22095   ac_status=$?
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); }; }; then
22098   ac_cv_lib_sec_getprpwnam=yes
22099 else
22100   echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103 ac_cv_lib_sec_getprpwnam=no
22104 fi
22105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22106 LIBS=$ac_check_lib_save_LIBS
22107 fi
22108 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
22109 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
22110 if test $ac_cv_lib_sec_getprpwnam = yes; then
22111   cat >>confdefs.h <<\_ACEOF
22112 #define HAVE_GETPRPWNAM 1
22113 _ACEOF
22114  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
22115 else
22116   echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
22117 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
22118 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
22119   echo $ECHO_N "(cached) $ECHO_C" >&6
22120 else
22121   ac_check_lib_save_LIBS=$LIBS
22122 LIBS="-lsecurity  $LIBS"
22123 cat >conftest.$ac_ext <<_ACEOF
22124 #line $LINENO "configure"
22125 /* confdefs.h.  */
22126 _ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h.  */
22130
22131 /* Override any gcc2 internal prototype to avoid an error.  */
22132 #ifdef __cplusplus
22133 extern "C"
22134 #endif
22135 /* We use char because int might match the return type of a gcc2
22136    builtin and then its argument prototype would still apply.  */
22137 char getprpwnam ();
22138 int
22139 main ()
22140 {
22141 getprpwnam ();
22142   ;
22143   return 0;
22144 }
22145 _ACEOF
22146 rm -f conftest.$ac_objext conftest$ac_exeext
22147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22148   (eval $ac_link) 2>&5
22149   ac_status=$?
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); } &&
22152          { ac_try='test -s conftest$ac_exeext'
22153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154   (eval $ac_try) 2>&5
22155   ac_status=$?
22156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157   (exit $ac_status); }; }; then
22158   ac_cv_lib_security_getprpwnam=yes
22159 else
22160   echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22162
22163 ac_cv_lib_security_getprpwnam=no
22164 fi
22165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22166 LIBS=$ac_check_lib_save_LIBS
22167 fi
22168 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
22169 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
22170 if test $ac_cv_lib_security_getprpwnam = yes; then
22171   cat >>confdefs.h <<\_ACEOF
22172 #define HAVE_GETPRPWNAM 1
22173 _ACEOF
22174  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
22175 else
22176   echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
22177 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
22178 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
22179   echo $ECHO_N "(cached) $ECHO_C" >&6
22180 else
22181   ac_check_lib_save_LIBS=$LIBS
22182 LIBS="-lprot  $LIBS"
22183 cat >conftest.$ac_ext <<_ACEOF
22184 #line $LINENO "configure"
22185 /* confdefs.h.  */
22186 _ACEOF
22187 cat confdefs.h >>conftest.$ac_ext
22188 cat >>conftest.$ac_ext <<_ACEOF
22189 /* end confdefs.h.  */
22190
22191 /* Override any gcc2 internal prototype to avoid an error.  */
22192 #ifdef __cplusplus
22193 extern "C"
22194 #endif
22195 /* We use char because int might match the return type of a gcc2
22196    builtin and then its argument prototype would still apply.  */
22197 char getprpwnam ();
22198 int
22199 main ()
22200 {
22201 getprpwnam ();
22202   ;
22203   return 0;
22204 }
22205 _ACEOF
22206 rm -f conftest.$ac_objext conftest$ac_exeext
22207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22208   (eval $ac_link) 2>&5
22209   ac_status=$?
22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); } &&
22212          { ac_try='test -s conftest$ac_exeext'
22213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22214   (eval $ac_try) 2>&5
22215   ac_status=$?
22216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217   (exit $ac_status); }; }; then
22218   ac_cv_lib_prot_getprpwnam=yes
22219 else
22220   echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22222
22223 ac_cv_lib_prot_getprpwnam=no
22224 fi
22225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22226 LIBS=$ac_check_lib_save_LIBS
22227 fi
22228 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
22229 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
22230 if test $ac_cv_lib_prot_getprpwnam = yes; then
22231   cat >>confdefs.h <<\_ACEOF
22232 #define HAVE_GETPRPWNAM 1
22233 _ACEOF
22234  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
22235 fi
22236
22237 fi
22238
22239 fi
22240
22241 fi
22242
22243 fi
22244
22245 if test $ac_cv_c_compiler_gnu = yes; then
22246     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
22247 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
22248 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
22249   echo $ECHO_N "(cached) $ECHO_C" >&6
22250 else
22251     ac_pattern="Autoconf.*'x'"
22252   cat >conftest.$ac_ext <<_ACEOF
22253 #line $LINENO "configure"
22254 /* confdefs.h.  */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h.  */
22259 #include <sgtty.h>
22260 Autoconf TIOCGETP
22261 _ACEOF
22262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22263   $EGREP "$ac_pattern" >/dev/null 2>&1; then
22264   ac_cv_prog_gcc_traditional=yes
22265 else
22266   ac_cv_prog_gcc_traditional=no
22267 fi
22268 rm -f conftest*
22269
22270
22271   if test $ac_cv_prog_gcc_traditional = no; then
22272     cat >conftest.$ac_ext <<_ACEOF
22273 #line $LINENO "configure"
22274 /* confdefs.h.  */
22275 _ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h.  */
22279 #include <termio.h>
22280 Autoconf TCGETA
22281 _ACEOF
22282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22283   $EGREP "$ac_pattern" >/dev/null 2>&1; then
22284   ac_cv_prog_gcc_traditional=yes
22285 fi
22286 rm -f conftest*
22287
22288   fi
22289 fi
22290 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22291 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
22292   if test $ac_cv_prog_gcc_traditional = yes; then
22293     CC="$CC -traditional"
22294   fi
22295 fi
22296
22297 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22298 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22299 if test "${ac_cv_c_const+set}" = set; then
22300   echo $ECHO_N "(cached) $ECHO_C" >&6
22301 else
22302   cat >conftest.$ac_ext <<_ACEOF
22303 #line $LINENO "configure"
22304 /* confdefs.h.  */
22305 _ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h.  */
22309
22310 int
22311 main ()
22312 {
22313 /* FIXME: Include the comments suggested by Paul. */
22314 #ifndef __cplusplus
22315   /* Ultrix mips cc rejects this.  */
22316   typedef int charset[2];
22317   const charset x;
22318   /* SunOS 4.1.1 cc rejects this.  */
22319   char const *const *ccp;
22320   char **p;
22321   /* NEC SVR4.0.2 mips cc rejects this.  */
22322   struct point {int x, y;};
22323   static struct point const zero = {0,0};
22324   /* AIX XL C 1.02.0.0 rejects this.
22325      It does not let you subtract one const X* pointer from another in
22326      an arm of an if-expression whose if-part is not a constant
22327      expression */
22328   const char *g = "string";
22329   ccp = &g + (g ? g-g : 0);
22330   /* HPUX 7.0 cc rejects these. */
22331   ++ccp;
22332   p = (char**) ccp;
22333   ccp = (char const *const *) p;
22334   { /* SCO 3.2v4 cc rejects this.  */
22335     char *t;
22336     char const *s = 0 ? (char *) 0 : (char const *) 0;
22337
22338     *t++ = 0;
22339   }
22340   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22341     int x[] = {25, 17};
22342     const int *foo = &x[0];
22343     ++foo;
22344   }
22345   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22346     typedef const int *iptr;
22347     iptr p = 0;
22348     ++p;
22349   }
22350   { /* AIX XL C 1.02.0.0 rejects this saying
22351        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22352     struct s { int j; const int *ap[3]; };
22353     struct s *b; b->j = 5;
22354   }
22355   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22356     const int foo = 10;
22357   }
22358 #endif
22359
22360   ;
22361   return 0;
22362 }
22363 _ACEOF
22364 rm -f conftest.$ac_objext
22365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22366   (eval $ac_compile) 2>&5
22367   ac_status=$?
22368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369   (exit $ac_status); } &&
22370          { ac_try='test -s conftest.$ac_objext'
22371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22372   (eval $ac_try) 2>&5
22373   ac_status=$?
22374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375   (exit $ac_status); }; }; then
22376   ac_cv_c_const=yes
22377 else
22378   echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22380
22381 ac_cv_c_const=no
22382 fi
22383 rm -f conftest.$ac_objext conftest.$ac_ext
22384 fi
22385 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22386 echo "${ECHO_T}$ac_cv_c_const" >&6
22387 if test $ac_cv_c_const = no; then
22388
22389 cat >>confdefs.h <<\_ACEOF
22390 #define const
22391 _ACEOF
22392
22393 fi
22394
22395 echo "$as_me:$LINENO: checking for working volatile" >&5
22396 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
22397 if test "${ac_cv_c_volatile+set}" = set; then
22398   echo $ECHO_N "(cached) $ECHO_C" >&6
22399 else
22400   cat >conftest.$ac_ext <<_ACEOF
22401 #line $LINENO "configure"
22402 /* confdefs.h.  */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h.  */
22407
22408 int
22409 main ()
22410 {
22411
22412 volatile int x;
22413 int * volatile y;
22414   ;
22415   return 0;
22416 }
22417 _ACEOF
22418 rm -f conftest.$ac_objext
22419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22420   (eval $ac_compile) 2>&5
22421   ac_status=$?
22422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); } &&
22424          { ac_try='test -s conftest.$ac_objext'
22425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426   (eval $ac_try) 2>&5
22427   ac_status=$?
22428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429   (exit $ac_status); }; }; then
22430   ac_cv_c_volatile=yes
22431 else
22432   echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22434
22435 ac_cv_c_volatile=no
22436 fi
22437 rm -f conftest.$ac_objext conftest.$ac_ext
22438 fi
22439 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
22440 echo "${ECHO_T}$ac_cv_c_volatile" >&6
22441 if test $ac_cv_c_volatile = no; then
22442
22443 cat >>confdefs.h <<\_ACEOF
22444 #define volatile
22445 _ACEOF
22446
22447 fi
22448
22449 for ac_prog in 'bison -y' byacc
22450 do
22451   # Extract the first word of "$ac_prog", so it can be a program name with args.
22452 set dummy $ac_prog; ac_word=$2
22453 echo "$as_me:$LINENO: checking for $ac_word" >&5
22454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22455 if test "${ac_cv_prog_YACC+set}" = set; then
22456   echo $ECHO_N "(cached) $ECHO_C" >&6
22457 else
22458   if test -n "$YACC"; then
22459   ac_cv_prog_YACC="$YACC" # Let the user override the test.
22460 else
22461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22462 for as_dir in $PATH
22463 do
22464   IFS=$as_save_IFS
22465   test -z "$as_dir" && as_dir=.
22466   for ac_exec_ext in '' $ac_executable_extensions; do
22467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22468     ac_cv_prog_YACC="$ac_prog"
22469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22470     break 2
22471   fi
22472 done
22473 done
22474
22475 fi
22476 fi
22477 YACC=$ac_cv_prog_YACC
22478 if test -n "$YACC"; then
22479   echo "$as_me:$LINENO: result: $YACC" >&5
22480 echo "${ECHO_T}$YACC" >&6
22481 else
22482   echo "$as_me:$LINENO: result: no" >&5
22483 echo "${ECHO_T}no" >&6
22484 fi
22485
22486   test -n "$YACC" && break
22487 done
22488 test -n "$YACC" || YACC="yacc"
22489
22490 echo "$as_me:$LINENO: checking for mv" >&5
22491 echo $ECHO_N "checking for mv... $ECHO_C" >&6
22492 if test -f "/usr/bin/mv"; then
22493     echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
22494 echo "${ECHO_T}/usr/bin/mv" >&6
22495     cat >>confdefs.h <<\EOF
22496 #define _PATH_MV "/usr/bin/mv"
22497 EOF
22498
22499 elif test -f "/bin/mv"; then
22500     echo "$as_me:$LINENO: result: /bin/mv" >&5
22501 echo "${ECHO_T}/bin/mv" >&6
22502     cat >>confdefs.h <<\EOF
22503 #define _PATH_MV "/bin/mv"
22504 EOF
22505
22506 elif test -f "/usr/ucb/mv"; then
22507     echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
22508 echo "${ECHO_T}/usr/ucb/mv" >&6
22509     cat >>confdefs.h <<\EOF
22510 #define _PATH_MV "/usr/ucb/mv"
22511 EOF
22512
22513 elif test -f "/usr/sbin/mv"; then
22514     echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
22515 echo "${ECHO_T}/usr/sbin/mv" >&6
22516     cat >>confdefs.h <<\EOF
22517 #define _PATH_MV "/usr/sbin/mv"
22518 EOF
22519
22520 else
22521     echo "$as_me:$LINENO: result: not found" >&5
22522 echo "${ECHO_T}not found" >&6
22523 fi
22524
22525 echo "$as_me:$LINENO: checking for bourne shell" >&5
22526 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6
22527 if test -f "/bin/sh"; then
22528     echo "$as_me:$LINENO: result: /bin/sh" >&5
22529 echo "${ECHO_T}/bin/sh" >&6
22530     cat >>confdefs.h <<\EOF
22531 #define _PATH_BSHELL "/bin/sh"
22532 EOF
22533
22534 elif test -f "/usr/bin/sh"; then
22535     echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
22536 echo "${ECHO_T}/usr/bin/sh" >&6
22537     cat >>confdefs.h <<\EOF
22538 #define _PATH_BSHELL "/usr/bin/sh"
22539 EOF
22540
22541 elif test -f "/sbin/sh"; then
22542     echo "$as_me:$LINENO: result: /sbin/sh" >&5
22543 echo "${ECHO_T}/sbin/sh" >&6
22544     cat >>confdefs.h <<\EOF
22545 #define _PATH_BSHELL "/sbin/sh"
22546 EOF
22547
22548 elif test -f "/usr/sbin/sh"; then
22549     echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
22550 echo "${ECHO_T}/usr/sbin/sh" >&6
22551     cat >>confdefs.h <<\EOF
22552 #define _PATH_BSHELL "/usr/sbin/sh"
22553 EOF
22554
22555 elif test -f "/bin/ksh"; then
22556     echo "$as_me:$LINENO: result: /bin/ksh" >&5
22557 echo "${ECHO_T}/bin/ksh" >&6
22558     cat >>confdefs.h <<\EOF
22559 #define _PATH_BSHELL "/bin/ksh"
22560 EOF
22561
22562 elif test -f "/usr/bin/ksh"; then
22563     echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
22564 echo "${ECHO_T}/usr/bin/ksh" >&6
22565     cat >>confdefs.h <<\EOF
22566 #define _PATH_BSHELL "/usr/bin/ksh"
22567 EOF
22568
22569 elif test -f "/bin/bash"; then
22570     echo "$as_me:$LINENO: result: /bin/bash" >&5
22571 echo "${ECHO_T}/bin/bash" >&6
22572     cat >>confdefs.h <<\EOF
22573 #define _PATH_BSHELL "/bin/bash"
22574 EOF
22575
22576 elif test -f "/usr/bin/bash"; then
22577     echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
22578 echo "${ECHO_T}/usr/bin/bash" >&6
22579     cat >>confdefs.h <<\EOF
22580 #define _PATH_BSHELL "/usr/bin/bash"
22581 EOF
22582
22583 else
22584     echo "$as_me:$LINENO: result: not found" >&5
22585 echo "${ECHO_T}not found" >&6
22586 fi
22587
22588 if test -z "$with_sendmail"; then
22589     echo "$as_me:$LINENO: checking for sendmail" >&5
22590 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6
22591 if test -f "/usr/sbin/sendmail"; then
22592     echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
22593 echo "${ECHO_T}/usr/sbin/sendmail" >&6
22594     cat >>confdefs.h <<\EOF
22595 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
22596 EOF
22597
22598 elif test -f "/usr/lib/sendmail"; then
22599     echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
22600 echo "${ECHO_T}/usr/lib/sendmail" >&6
22601     cat >>confdefs.h <<\EOF
22602 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
22603 EOF
22604
22605 elif test -f "/usr/etc/sendmail"; then
22606     echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
22607 echo "${ECHO_T}/usr/etc/sendmail" >&6
22608     cat >>confdefs.h <<\EOF
22609 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
22610 EOF
22611
22612 elif test -f "/usr/ucblib/sendmail"; then
22613     echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
22614 echo "${ECHO_T}/usr/ucblib/sendmail" >&6
22615     cat >>confdefs.h <<\EOF
22616 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
22617 EOF
22618
22619 elif test -f "/usr/local/lib/sendmail"; then
22620     echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
22621 echo "${ECHO_T}/usr/local/lib/sendmail" >&6
22622     cat >>confdefs.h <<\EOF
22623 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
22624 EOF
22625
22626 elif test -f "/usr/local/bin/sendmail"; then
22627     echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
22628 echo "${ECHO_T}/usr/local/bin/sendmail" >&6
22629     cat >>confdefs.h <<\EOF
22630 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
22631 EOF
22632
22633 else
22634     echo "$as_me:$LINENO: result: not found" >&5
22635 echo "${ECHO_T}not found" >&6
22636 fi
22637
22638 fi
22639 if test -z "$with_editor"; then
22640     echo "$as_me:$LINENO: checking for vi" >&5
22641 echo $ECHO_N "checking for vi... $ECHO_C" >&6
22642 if test -f "/usr/bin/vi"; then
22643     echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
22644 echo "${ECHO_T}/usr/bin/vi" >&6
22645     cat >>confdefs.h <<\EOF
22646 #define _PATH_VI "/usr/bin/vi"
22647 EOF
22648
22649 elif test -f "/usr/ucb/vi"; then
22650     echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
22651 echo "${ECHO_T}/usr/ucb/vi" >&6
22652     cat >>confdefs.h <<\EOF
22653 #define _PATH_VI "/usr/ucb/vi"
22654 EOF
22655
22656 elif test -f "/usr/bsd/vi"; then
22657     echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
22658 echo "${ECHO_T}/usr/bsd/vi" >&6
22659     cat >>confdefs.h <<\EOF
22660 #define _PATH_VI "/usr/bsd/vi"
22661 EOF
22662
22663 elif test -f "/bin/vi"; then
22664     echo "$as_me:$LINENO: result: /bin/vi" >&5
22665 echo "${ECHO_T}/bin/vi" >&6
22666     cat >>confdefs.h <<\EOF
22667 #define _PATH_VI "/bin/vi"
22668 EOF
22669
22670 elif test -f "/usr/local/bin/vi"; then
22671     echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
22672 echo "${ECHO_T}/usr/local/bin/vi" >&6
22673     cat >>confdefs.h <<\EOF
22674 #define _PATH_VI "/usr/local/bin/vi"
22675 EOF
22676
22677 else
22678     echo "$as_me:$LINENO: result: not found" >&5
22679 echo "${ECHO_T}not found" >&6
22680 fi
22681
22682 fi
22683 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22684 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
22685 if test "${ac_cv_header_stdc+set}" = set; then
22686   echo $ECHO_N "(cached) $ECHO_C" >&6
22687 else
22688   cat >conftest.$ac_ext <<_ACEOF
22689 #line $LINENO "configure"
22690 /* confdefs.h.  */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h.  */
22695 #include <stdlib.h>
22696 #include <stdarg.h>
22697 #include <string.h>
22698 #include <float.h>
22699
22700 int
22701 main ()
22702 {
22703
22704   ;
22705   return 0;
22706 }
22707 _ACEOF
22708 rm -f conftest.$ac_objext
22709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22710   (eval $ac_compile) 2>&5
22711   ac_status=$?
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); } &&
22714          { ac_try='test -s conftest.$ac_objext'
22715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716   (eval $ac_try) 2>&5
22717   ac_status=$?
22718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719   (exit $ac_status); }; }; then
22720   ac_cv_header_stdc=yes
22721 else
22722   echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22724
22725 ac_cv_header_stdc=no
22726 fi
22727 rm -f conftest.$ac_objext conftest.$ac_ext
22728
22729 if test $ac_cv_header_stdc = yes; then
22730   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22731   cat >conftest.$ac_ext <<_ACEOF
22732 #line $LINENO "configure"
22733 /* confdefs.h.  */
22734 _ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h.  */
22738 #include <string.h>
22739
22740 _ACEOF
22741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22742   $EGREP "memchr" >/dev/null 2>&1; then
22743   :
22744 else
22745   ac_cv_header_stdc=no
22746 fi
22747 rm -f conftest*
22748
22749 fi
22750
22751 if test $ac_cv_header_stdc = yes; then
22752   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22753   cat >conftest.$ac_ext <<_ACEOF
22754 #line $LINENO "configure"
22755 /* confdefs.h.  */
22756 _ACEOF
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h.  */
22760 #include <stdlib.h>
22761
22762 _ACEOF
22763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22764   $EGREP "free" >/dev/null 2>&1; then
22765   :
22766 else
22767   ac_cv_header_stdc=no
22768 fi
22769 rm -f conftest*
22770
22771 fi
22772
22773 if test $ac_cv_header_stdc = yes; then
22774   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22775   if test "$cross_compiling" = yes; then
22776   :
22777 else
22778   cat >conftest.$ac_ext <<_ACEOF
22779 #line $LINENO "configure"
22780 /* confdefs.h.  */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h.  */
22785 #include <ctype.h>
22786 #if ((' ' & 0x0FF) == 0x020)
22787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22789 #else
22790 # define ISLOWER(c) \
22791                    (('a' <= (c) && (c) <= 'i') \
22792                      || ('j' <= (c) && (c) <= 'r') \
22793                      || ('s' <= (c) && (c) <= 'z'))
22794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22795 #endif
22796
22797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22798 int
22799 main ()
22800 {
22801   int i;
22802   for (i = 0; i < 256; i++)
22803     if (XOR (islower (i), ISLOWER (i))
22804         || toupper (i) != TOUPPER (i))
22805       exit(2);
22806   exit (0);
22807 }
22808 _ACEOF
22809 rm -f conftest$ac_exeext
22810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22811   (eval $ac_link) 2>&5
22812   ac_status=$?
22813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816   (eval $ac_try) 2>&5
22817   ac_status=$?
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); }; }; then
22820   :
22821 else
22822   echo "$as_me: program exited with status $ac_status" >&5
22823 echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22825
22826 ( exit $ac_status )
22827 ac_cv_header_stdc=no
22828 fi
22829 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22830 fi
22831 fi
22832 fi
22833 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22834 echo "${ECHO_T}$ac_cv_header_stdc" >&6
22835 if test $ac_cv_header_stdc = yes; then
22836
22837 cat >>confdefs.h <<\_ACEOF
22838 #define STDC_HEADERS 1
22839 _ACEOF
22840
22841 fi
22842
22843
22844
22845
22846
22847
22848 ac_header_dirent=no
22849 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22850   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22851 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22852 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22854   echo $ECHO_N "(cached) $ECHO_C" >&6
22855 else
22856   cat >conftest.$ac_ext <<_ACEOF
22857 #line $LINENO "configure"
22858 /* confdefs.h.  */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h.  */
22863 #include <sys/types.h>
22864 #include <$ac_hdr>
22865
22866 int
22867 main ()
22868 {
22869 if ((DIR *) 0)
22870 return 0;
22871   ;
22872   return 0;
22873 }
22874 _ACEOF
22875 rm -f conftest.$ac_objext
22876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22877   (eval $ac_compile) 2>&5
22878   ac_status=$?
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); } &&
22881          { ac_try='test -s conftest.$ac_objext'
22882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883   (eval $ac_try) 2>&5
22884   ac_status=$?
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); }; }; then
22887   eval "$as_ac_Header=yes"
22888 else
22889   echo "$as_me: failed program was:" >&5
22890 sed 's/^/| /' conftest.$ac_ext >&5
22891
22892 eval "$as_ac_Header=no"
22893 fi
22894 rm -f conftest.$ac_objext conftest.$ac_ext
22895 fi
22896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22899   cat >>confdefs.h <<_ACEOF
22900 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22901 _ACEOF
22902
22903 ac_header_dirent=$ac_hdr; break
22904 fi
22905
22906 done
22907 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22908 if test $ac_header_dirent = dirent.h; then
22909   echo "$as_me:$LINENO: checking for library containing opendir" >&5
22910 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22911 if test "${ac_cv_search_opendir+set}" = set; then
22912   echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914   ac_func_search_save_LIBS=$LIBS
22915 ac_cv_search_opendir=no
22916 cat >conftest.$ac_ext <<_ACEOF
22917 #line $LINENO "configure"
22918 /* confdefs.h.  */
22919 _ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h.  */
22923
22924 /* Override any gcc2 internal prototype to avoid an error.  */
22925 #ifdef __cplusplus
22926 extern "C"
22927 #endif
22928 /* We use char because int might match the return type of a gcc2
22929    builtin and then its argument prototype would still apply.  */
22930 char opendir ();
22931 int
22932 main ()
22933 {
22934 opendir ();
22935   ;
22936   return 0;
22937 }
22938 _ACEOF
22939 rm -f conftest.$ac_objext conftest$ac_exeext
22940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22941   (eval $ac_link) 2>&5
22942   ac_status=$?
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); } &&
22945          { ac_try='test -s conftest$ac_exeext'
22946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947   (eval $ac_try) 2>&5
22948   ac_status=$?
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); }; }; then
22951   ac_cv_search_opendir="none required"
22952 else
22953   echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22955
22956 fi
22957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22958 if test "$ac_cv_search_opendir" = no; then
22959   for ac_lib in dir; do
22960     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22961     cat >conftest.$ac_ext <<_ACEOF
22962 #line $LINENO "configure"
22963 /* confdefs.h.  */
22964 _ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h.  */
22968
22969 /* Override any gcc2 internal prototype to avoid an error.  */
22970 #ifdef __cplusplus
22971 extern "C"
22972 #endif
22973 /* We use char because int might match the return type of a gcc2
22974    builtin and then its argument prototype would still apply.  */
22975 char opendir ();
22976 int
22977 main ()
22978 {
22979 opendir ();
22980   ;
22981   return 0;
22982 }
22983 _ACEOF
22984 rm -f conftest.$ac_objext conftest$ac_exeext
22985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22986   (eval $ac_link) 2>&5
22987   ac_status=$?
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); } &&
22990          { ac_try='test -s conftest$ac_exeext'
22991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992   (eval $ac_try) 2>&5
22993   ac_status=$?
22994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995   (exit $ac_status); }; }; then
22996   ac_cv_search_opendir="-l$ac_lib"
22997 break
22998 else
22999   echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23001
23002 fi
23003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23004   done
23005 fi
23006 LIBS=$ac_func_search_save_LIBS
23007 fi
23008 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23009 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23010 if test "$ac_cv_search_opendir" != no; then
23011   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23012
23013 fi
23014
23015 else
23016   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23017 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23018 if test "${ac_cv_search_opendir+set}" = set; then
23019   echo $ECHO_N "(cached) $ECHO_C" >&6
23020 else
23021   ac_func_search_save_LIBS=$LIBS
23022 ac_cv_search_opendir=no
23023 cat >conftest.$ac_ext <<_ACEOF
23024 #line $LINENO "configure"
23025 /* confdefs.h.  */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h.  */
23030
23031 /* Override any gcc2 internal prototype to avoid an error.  */
23032 #ifdef __cplusplus
23033 extern "C"
23034 #endif
23035 /* We use char because int might match the return type of a gcc2
23036    builtin and then its argument prototype would still apply.  */
23037 char opendir ();
23038 int
23039 main ()
23040 {
23041 opendir ();
23042   ;
23043   return 0;
23044 }
23045 _ACEOF
23046 rm -f conftest.$ac_objext conftest$ac_exeext
23047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23048   (eval $ac_link) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); } &&
23052          { ac_try='test -s conftest$ac_exeext'
23053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054   (eval $ac_try) 2>&5
23055   ac_status=$?
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); }; }; then
23058   ac_cv_search_opendir="none required"
23059 else
23060   echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23062
23063 fi
23064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23065 if test "$ac_cv_search_opendir" = no; then
23066   for ac_lib in x; do
23067     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23068     cat >conftest.$ac_ext <<_ACEOF
23069 #line $LINENO "configure"
23070 /* confdefs.h.  */
23071 _ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h.  */
23075
23076 /* Override any gcc2 internal prototype to avoid an error.  */
23077 #ifdef __cplusplus
23078 extern "C"
23079 #endif
23080 /* We use char because int might match the return type of a gcc2
23081    builtin and then its argument prototype would still apply.  */
23082 char opendir ();
23083 int
23084 main ()
23085 {
23086 opendir ();
23087   ;
23088   return 0;
23089 }
23090 _ACEOF
23091 rm -f conftest.$ac_objext conftest$ac_exeext
23092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23093   (eval $ac_link) 2>&5
23094   ac_status=$?
23095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096   (exit $ac_status); } &&
23097          { ac_try='test -s conftest$ac_exeext'
23098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23099   (eval $ac_try) 2>&5
23100   ac_status=$?
23101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102   (exit $ac_status); }; }; then
23103   ac_cv_search_opendir="-l$ac_lib"
23104 break
23105 else
23106   echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23108
23109 fi
23110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23111   done
23112 fi
23113 LIBS=$ac_func_search_save_LIBS
23114 fi
23115 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23116 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23117 if test "$ac_cv_search_opendir" != no; then
23118   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23119
23120 fi
23121
23122 fi
23123
23124
23125
23126
23127
23128
23129
23130
23131 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
23132 do
23133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23135   echo "$as_me:$LINENO: checking for $ac_header" >&5
23136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23138   echo $ECHO_N "(cached) $ECHO_C" >&6
23139 fi
23140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23142 else
23143   # Is the header compilable?
23144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23146 cat >conftest.$ac_ext <<_ACEOF
23147 #line $LINENO "configure"
23148 /* confdefs.h.  */
23149 _ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h.  */
23153 $ac_includes_default
23154 #include <$ac_header>
23155 _ACEOF
23156 rm -f conftest.$ac_objext
23157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23158   (eval $ac_compile) 2>&5
23159   ac_status=$?
23160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161   (exit $ac_status); } &&
23162          { ac_try='test -s conftest.$ac_objext'
23163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164   (eval $ac_try) 2>&5
23165   ac_status=$?
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); }; }; then
23168   ac_header_compiler=yes
23169 else
23170   echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23172
23173 ac_header_compiler=no
23174 fi
23175 rm -f conftest.$ac_objext conftest.$ac_ext
23176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23177 echo "${ECHO_T}$ac_header_compiler" >&6
23178
23179 # Is the header present?
23180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23182 cat >conftest.$ac_ext <<_ACEOF
23183 #line $LINENO "configure"
23184 /* confdefs.h.  */
23185 _ACEOF
23186 cat confdefs.h >>conftest.$ac_ext
23187 cat >>conftest.$ac_ext <<_ACEOF
23188 /* end confdefs.h.  */
23189 #include <$ac_header>
23190 _ACEOF
23191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23192   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23193   ac_status=$?
23194   grep -v '^ *+' conftest.er1 >conftest.err
23195   rm -f conftest.er1
23196   cat conftest.err >&5
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); } >/dev/null; then
23199   if test -s conftest.err; then
23200     ac_cpp_err=$ac_c_preproc_warn_flag
23201   else
23202     ac_cpp_err=
23203   fi
23204 else
23205   ac_cpp_err=yes
23206 fi
23207 if test -z "$ac_cpp_err"; then
23208   ac_header_preproc=yes
23209 else
23210   echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23212
23213   ac_header_preproc=no
23214 fi
23215 rm -f conftest.err conftest.$ac_ext
23216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23217 echo "${ECHO_T}$ac_header_preproc" >&6
23218
23219 # So?  What about this header?
23220 case $ac_header_compiler:$ac_header_preproc in
23221   yes:no )
23222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23226     (
23227       cat <<\_ASBOX
23228 ## ------------------------------------ ##
23229 ## Report this to bug-autoconf@gnu.org. ##
23230 ## ------------------------------------ ##
23231 _ASBOX
23232     ) |
23233       sed "s/^/$as_me: WARNING:     /" >&2
23234     ;;
23235   no:yes )
23236     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23238     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23242     (
23243       cat <<\_ASBOX
23244 ## ------------------------------------ ##
23245 ## Report this to bug-autoconf@gnu.org. ##
23246 ## ------------------------------------ ##
23247 _ASBOX
23248     ) |
23249       sed "s/^/$as_me: WARNING:     /" >&2
23250     ;;
23251 esac
23252 echo "$as_me:$LINENO: checking for $ac_header" >&5
23253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23255   echo $ECHO_N "(cached) $ECHO_C" >&6
23256 else
23257   eval "$as_ac_Header=$ac_header_preproc"
23258 fi
23259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23261
23262 fi
23263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23264   cat >>confdefs.h <<_ACEOF
23265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23266 _ACEOF
23267
23268 fi
23269
23270 done
23271
23272
23273 for ac_header in err.h
23274 do
23275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23277   echo "$as_me:$LINENO: checking for $ac_header" >&5
23278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23280   echo $ECHO_N "(cached) $ECHO_C" >&6
23281 fi
23282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23284 else
23285   # Is the header compilable?
23286 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23288 cat >conftest.$ac_ext <<_ACEOF
23289 #line $LINENO "configure"
23290 /* confdefs.h.  */
23291 _ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h.  */
23295 $ac_includes_default
23296 #include <$ac_header>
23297 _ACEOF
23298 rm -f conftest.$ac_objext
23299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23300   (eval $ac_compile) 2>&5
23301   ac_status=$?
23302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303   (exit $ac_status); } &&
23304          { ac_try='test -s conftest.$ac_objext'
23305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306   (eval $ac_try) 2>&5
23307   ac_status=$?
23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309   (exit $ac_status); }; }; then
23310   ac_header_compiler=yes
23311 else
23312   echo "$as_me: failed program was:" >&5
23313 sed 's/^/| /' conftest.$ac_ext >&5
23314
23315 ac_header_compiler=no
23316 fi
23317 rm -f conftest.$ac_objext conftest.$ac_ext
23318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23319 echo "${ECHO_T}$ac_header_compiler" >&6
23320
23321 # Is the header present?
23322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23324 cat >conftest.$ac_ext <<_ACEOF
23325 #line $LINENO "configure"
23326 /* confdefs.h.  */
23327 _ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h.  */
23331 #include <$ac_header>
23332 _ACEOF
23333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23335   ac_status=$?
23336   grep -v '^ *+' conftest.er1 >conftest.err
23337   rm -f conftest.er1
23338   cat conftest.err >&5
23339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340   (exit $ac_status); } >/dev/null; then
23341   if test -s conftest.err; then
23342     ac_cpp_err=$ac_c_preproc_warn_flag
23343   else
23344     ac_cpp_err=
23345   fi
23346 else
23347   ac_cpp_err=yes
23348 fi
23349 if test -z "$ac_cpp_err"; then
23350   ac_header_preproc=yes
23351 else
23352   echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23354
23355   ac_header_preproc=no
23356 fi
23357 rm -f conftest.err conftest.$ac_ext
23358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23359 echo "${ECHO_T}$ac_header_preproc" >&6
23360
23361 # So?  What about this header?
23362 case $ac_header_compiler:$ac_header_preproc in
23363   yes:no )
23364     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23368     (
23369       cat <<\_ASBOX
23370 ## ------------------------------------ ##
23371 ## Report this to bug-autoconf@gnu.org. ##
23372 ## ------------------------------------ ##
23373 _ASBOX
23374     ) |
23375       sed "s/^/$as_me: WARNING:     /" >&2
23376     ;;
23377   no:yes )
23378     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23380     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23384     (
23385       cat <<\_ASBOX
23386 ## ------------------------------------ ##
23387 ## Report this to bug-autoconf@gnu.org. ##
23388 ## ------------------------------------ ##
23389 _ASBOX
23390     ) |
23391       sed "s/^/$as_me: WARNING:     /" >&2
23392     ;;
23393 esac
23394 echo "$as_me:$LINENO: checking for $ac_header" >&5
23395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23397   echo $ECHO_N "(cached) $ECHO_C" >&6
23398 else
23399   eval "$as_ac_Header=$ac_header_preproc"
23400 fi
23401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23403
23404 fi
23405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23406   cat >>confdefs.h <<_ACEOF
23407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23408 _ACEOF
23409
23410 else
23411   LIBOBJS="$LIBOBJS err.$ac_objext"
23412 fi
23413
23414 done
23415
23416 if test "$OS" != "ultrix"; then
23417     echo "$as_me:$LINENO: checking POSIX termios" >&5
23418 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
23419 if test "${ac_cv_sys_posix_termios+set}" = set; then
23420   echo $ECHO_N "(cached) $ECHO_C" >&6
23421 else
23422   cat >conftest.$ac_ext <<_ACEOF
23423 #line $LINENO "configure"
23424 /* confdefs.h.  */
23425 _ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h.  */
23429 #include <sys/types.h>
23430 #include <unistd.h>
23431 #include <termios.h>
23432
23433 int
23434 main ()
23435 {
23436 /* SunOS 4.0.3 has termios.h but not the library calls.  */
23437    tcgetattr(0, 0);
23438   ;
23439   return 0;
23440 }
23441 _ACEOF
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23444   (eval $ac_link) 2>&5
23445   ac_status=$?
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); } &&
23448          { ac_try='test -s conftest$ac_exeext'
23449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450   (eval $ac_try) 2>&5
23451   ac_status=$?
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); }; }; then
23454   ac_cv_sys_posix_termios=yes
23455 else
23456   echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23458
23459 ac_cv_sys_posix_termios=no
23460 fi
23461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23462 fi
23463 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
23464 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
23465
23466     if test "$ac_cv_sys_posix_termios" = "yes"; then
23467         cat >>confdefs.h <<\_ACEOF
23468 #define HAVE_TERMIOS_H 1
23469 _ACEOF
23470
23471     else
23472
23473 for ac_header in termio.h
23474 do
23475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23477   echo "$as_me:$LINENO: checking for $ac_header" >&5
23478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23480   echo $ECHO_N "(cached) $ECHO_C" >&6
23481 fi
23482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23484 else
23485   # Is the header compilable?
23486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23488 cat >conftest.$ac_ext <<_ACEOF
23489 #line $LINENO "configure"
23490 /* confdefs.h.  */
23491 _ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h.  */
23495 $ac_includes_default
23496 #include <$ac_header>
23497 _ACEOF
23498 rm -f conftest.$ac_objext
23499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23500   (eval $ac_compile) 2>&5
23501   ac_status=$?
23502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503   (exit $ac_status); } &&
23504          { ac_try='test -s conftest.$ac_objext'
23505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506   (eval $ac_try) 2>&5
23507   ac_status=$?
23508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509   (exit $ac_status); }; }; then
23510   ac_header_compiler=yes
23511 else
23512   echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23514
23515 ac_header_compiler=no
23516 fi
23517 rm -f conftest.$ac_objext conftest.$ac_ext
23518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23519 echo "${ECHO_T}$ac_header_compiler" >&6
23520
23521 # Is the header present?
23522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23524 cat >conftest.$ac_ext <<_ACEOF
23525 #line $LINENO "configure"
23526 /* confdefs.h.  */
23527 _ACEOF
23528 cat confdefs.h >>conftest.$ac_ext
23529 cat >>conftest.$ac_ext <<_ACEOF
23530 /* end confdefs.h.  */
23531 #include <$ac_header>
23532 _ACEOF
23533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23535   ac_status=$?
23536   grep -v '^ *+' conftest.er1 >conftest.err
23537   rm -f conftest.er1
23538   cat conftest.err >&5
23539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540   (exit $ac_status); } >/dev/null; then
23541   if test -s conftest.err; then
23542     ac_cpp_err=$ac_c_preproc_warn_flag
23543   else
23544     ac_cpp_err=
23545   fi
23546 else
23547   ac_cpp_err=yes
23548 fi
23549 if test -z "$ac_cpp_err"; then
23550   ac_header_preproc=yes
23551 else
23552   echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23554
23555   ac_header_preproc=no
23556 fi
23557 rm -f conftest.err conftest.$ac_ext
23558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23559 echo "${ECHO_T}$ac_header_preproc" >&6
23560
23561 # So?  What about this header?
23562 case $ac_header_compiler:$ac_header_preproc in
23563   yes:no )
23564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23568     (
23569       cat <<\_ASBOX
23570 ## ------------------------------------ ##
23571 ## Report this to bug-autoconf@gnu.org. ##
23572 ## ------------------------------------ ##
23573 _ASBOX
23574     ) |
23575       sed "s/^/$as_me: WARNING:     /" >&2
23576     ;;
23577   no:yes )
23578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23580     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23584     (
23585       cat <<\_ASBOX
23586 ## ------------------------------------ ##
23587 ## Report this to bug-autoconf@gnu.org. ##
23588 ## ------------------------------------ ##
23589 _ASBOX
23590     ) |
23591       sed "s/^/$as_me: WARNING:     /" >&2
23592     ;;
23593 esac
23594 echo "$as_me:$LINENO: checking for $ac_header" >&5
23595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23597   echo $ECHO_N "(cached) $ECHO_C" >&6
23598 else
23599   eval "$as_ac_Header=$ac_header_preproc"
23600 fi
23601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23603
23604 fi
23605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23606   cat >>confdefs.h <<_ACEOF
23607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23608 _ACEOF
23609
23610 fi
23611
23612 done
23613
23614     fi
23615 fi
23616 if test "$with_logincap" = "yes"; then
23617
23618 for ac_header in login_cap.h
23619 do
23620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23622   echo "$as_me:$LINENO: checking for $ac_header" >&5
23623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23625   echo $ECHO_N "(cached) $ECHO_C" >&6
23626 fi
23627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23629 else
23630   # Is the header compilable?
23631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23633 cat >conftest.$ac_ext <<_ACEOF
23634 #line $LINENO "configure"
23635 /* confdefs.h.  */
23636 _ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h.  */
23640 $ac_includes_default
23641 #include <$ac_header>
23642 _ACEOF
23643 rm -f conftest.$ac_objext
23644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23645   (eval $ac_compile) 2>&5
23646   ac_status=$?
23647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648   (exit $ac_status); } &&
23649          { ac_try='test -s conftest.$ac_objext'
23650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23651   (eval $ac_try) 2>&5
23652   ac_status=$?
23653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654   (exit $ac_status); }; }; then
23655   ac_header_compiler=yes
23656 else
23657   echo "$as_me: failed program was:" >&5
23658 sed 's/^/| /' conftest.$ac_ext >&5
23659
23660 ac_header_compiler=no
23661 fi
23662 rm -f conftest.$ac_objext conftest.$ac_ext
23663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23664 echo "${ECHO_T}$ac_header_compiler" >&6
23665
23666 # Is the header present?
23667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23669 cat >conftest.$ac_ext <<_ACEOF
23670 #line $LINENO "configure"
23671 /* confdefs.h.  */
23672 _ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h.  */
23676 #include <$ac_header>
23677 _ACEOF
23678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23680   ac_status=$?
23681   grep -v '^ *+' conftest.er1 >conftest.err
23682   rm -f conftest.er1
23683   cat conftest.err >&5
23684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685   (exit $ac_status); } >/dev/null; then
23686   if test -s conftest.err; then
23687     ac_cpp_err=$ac_c_preproc_warn_flag
23688   else
23689     ac_cpp_err=
23690   fi
23691 else
23692   ac_cpp_err=yes
23693 fi
23694 if test -z "$ac_cpp_err"; then
23695   ac_header_preproc=yes
23696 else
23697   echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23699
23700   ac_header_preproc=no
23701 fi
23702 rm -f conftest.err conftest.$ac_ext
23703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23704 echo "${ECHO_T}$ac_header_preproc" >&6
23705
23706 # So?  What about this header?
23707 case $ac_header_compiler:$ac_header_preproc in
23708   yes:no )
23709     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23713     (
23714       cat <<\_ASBOX
23715 ## ------------------------------------ ##
23716 ## Report this to bug-autoconf@gnu.org. ##
23717 ## ------------------------------------ ##
23718 _ASBOX
23719     ) |
23720       sed "s/^/$as_me: WARNING:     /" >&2
23721     ;;
23722   no:yes )
23723     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23725     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23729     (
23730       cat <<\_ASBOX
23731 ## ------------------------------------ ##
23732 ## Report this to bug-autoconf@gnu.org. ##
23733 ## ------------------------------------ ##
23734 _ASBOX
23735     ) |
23736       sed "s/^/$as_me: WARNING:     /" >&2
23737     ;;
23738 esac
23739 echo "$as_me:$LINENO: checking for $ac_header" >&5
23740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23742   echo $ECHO_N "(cached) $ECHO_C" >&6
23743 else
23744   eval "$as_ac_Header=$ac_header_preproc"
23745 fi
23746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23748
23749 fi
23750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23751   cat >>confdefs.h <<_ACEOF
23752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23753 _ACEOF
23754
23755 fi
23756
23757 done
23758
23759 fi
23760 if test "$with_bsdauth" = "yes"; then
23761     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
23762   echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
23763 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
23764 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
23765   echo $ECHO_N "(cached) $ECHO_C" >&6
23766 fi
23767 echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
23768 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
23769 else
23770   # Is the header compilable?
23771 echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
23772 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6
23773 cat >conftest.$ac_ext <<_ACEOF
23774 #line $LINENO "configure"
23775 /* confdefs.h.  */
23776 _ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h.  */
23780 $ac_includes_default
23781 #include <bsd_auth.h>
23782 _ACEOF
23783 rm -f conftest.$ac_objext
23784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23785   (eval $ac_compile) 2>&5
23786   ac_status=$?
23787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788   (exit $ac_status); } &&
23789          { ac_try='test -s conftest.$ac_objext'
23790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791   (eval $ac_try) 2>&5
23792   ac_status=$?
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); }; }; then
23795   ac_header_compiler=yes
23796 else
23797   echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23799
23800 ac_header_compiler=no
23801 fi
23802 rm -f conftest.$ac_objext conftest.$ac_ext
23803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23804 echo "${ECHO_T}$ac_header_compiler" >&6
23805
23806 # Is the header present?
23807 echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
23808 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6
23809 cat >conftest.$ac_ext <<_ACEOF
23810 #line $LINENO "configure"
23811 /* confdefs.h.  */
23812 _ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h.  */
23816 #include <bsd_auth.h>
23817 _ACEOF
23818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23819   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23820   ac_status=$?
23821   grep -v '^ *+' conftest.er1 >conftest.err
23822   rm -f conftest.er1
23823   cat conftest.err >&5
23824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825   (exit $ac_status); } >/dev/null; then
23826   if test -s conftest.err; then
23827     ac_cpp_err=$ac_c_preproc_warn_flag
23828   else
23829     ac_cpp_err=
23830   fi
23831 else
23832   ac_cpp_err=yes
23833 fi
23834 if test -z "$ac_cpp_err"; then
23835   ac_header_preproc=yes
23836 else
23837   echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23839
23840   ac_header_preproc=no
23841 fi
23842 rm -f conftest.err conftest.$ac_ext
23843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23844 echo "${ECHO_T}$ac_header_preproc" >&6
23845
23846 # So?  What about this header?
23847 case $ac_header_compiler:$ac_header_preproc in
23848   yes:no )
23849     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
23850 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23851     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
23852 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
23853     (
23854       cat <<\_ASBOX
23855 ## ------------------------------------ ##
23856 ## Report this to bug-autoconf@gnu.org. ##
23857 ## ------------------------------------ ##
23858 _ASBOX
23859     ) |
23860       sed "s/^/$as_me: WARNING:     /" >&2
23861     ;;
23862   no:yes )
23863     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
23864 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
23865     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
23866 echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
23867     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
23868 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
23869     (
23870       cat <<\_ASBOX
23871 ## ------------------------------------ ##
23872 ## Report this to bug-autoconf@gnu.org. ##
23873 ## ------------------------------------ ##
23874 _ASBOX
23875     ) |
23876       sed "s/^/$as_me: WARNING:     /" >&2
23877     ;;
23878 esac
23879 echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
23880 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
23881 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
23882   echo $ECHO_N "(cached) $ECHO_C" >&6
23883 else
23884   ac_cv_header_bsd_auth_h=$ac_header_preproc
23885 fi
23886 echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
23887 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
23888
23889 fi
23890 if test $ac_cv_header_bsd_auth_h = yes; then
23891   cat >>confdefs.h <<\_ACEOF
23892 #define HAVE_BSD_AUTH_H 1
23893 _ACEOF
23894  with_passwd=no; AUTH_OBJS=bsdauth.o
23895 else
23896   -
23897 fi
23898
23899
23900 fi
23901 echo "$as_me:$LINENO: checking for mode_t" >&5
23902 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
23903 if test "${ac_cv_type_mode_t+set}" = set; then
23904   echo $ECHO_N "(cached) $ECHO_C" >&6
23905 else
23906   cat >conftest.$ac_ext <<_ACEOF
23907 #line $LINENO "configure"
23908 /* confdefs.h.  */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h.  */
23913 $ac_includes_default
23914 int
23915 main ()
23916 {
23917 if ((mode_t *) 0)
23918   return 0;
23919 if (sizeof (mode_t))
23920   return 0;
23921   ;
23922   return 0;
23923 }
23924 _ACEOF
23925 rm -f conftest.$ac_objext
23926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23927   (eval $ac_compile) 2>&5
23928   ac_status=$?
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); } &&
23931          { ac_try='test -s conftest.$ac_objext'
23932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23933   (eval $ac_try) 2>&5
23934   ac_status=$?
23935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936   (exit $ac_status); }; }; then
23937   ac_cv_type_mode_t=yes
23938 else
23939   echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23941
23942 ac_cv_type_mode_t=no
23943 fi
23944 rm -f conftest.$ac_objext conftest.$ac_ext
23945 fi
23946 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
23947 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
23948 if test $ac_cv_type_mode_t = yes; then
23949   :
23950 else
23951
23952 cat >>confdefs.h <<_ACEOF
23953 #define mode_t int
23954 _ACEOF
23955
23956 fi
23957
23958 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23959 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
23960 if test "${ac_cv_type_uid_t+set}" = set; then
23961   echo $ECHO_N "(cached) $ECHO_C" >&6
23962 else
23963   cat >conftest.$ac_ext <<_ACEOF
23964 #line $LINENO "configure"
23965 /* confdefs.h.  */
23966 _ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h.  */
23970 #include <sys/types.h>
23971
23972 _ACEOF
23973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23974   $EGREP "uid_t" >/dev/null 2>&1; then
23975   ac_cv_type_uid_t=yes
23976 else
23977   ac_cv_type_uid_t=no
23978 fi
23979 rm -f conftest*
23980
23981 fi
23982 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23983 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
23984 if test $ac_cv_type_uid_t = no; then
23985
23986 cat >>confdefs.h <<\_ACEOF
23987 #define uid_t int
23988 _ACEOF
23989
23990
23991 cat >>confdefs.h <<\_ACEOF
23992 #define gid_t int
23993 _ACEOF
23994
23995 fi
23996
23997 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23998 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
23999 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24000   echo $ECHO_N "(cached) $ECHO_C" >&6
24001 else
24002   cat >conftest.$ac_ext <<_ACEOF
24003 #line $LINENO "configure"
24004 /* confdefs.h.  */
24005 _ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h.  */
24009 #include <sys/types.h>
24010 #include <signal.h>
24011
24012 int
24013 main ()
24014 {
24015 if ((sig_atomic_t *) 0)
24016   return 0;
24017 if (sizeof (sig_atomic_t))
24018   return 0;
24019   ;
24020   return 0;
24021 }
24022 _ACEOF
24023 rm -f conftest.$ac_objext
24024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24025   (eval $ac_compile) 2>&5
24026   ac_status=$?
24027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028   (exit $ac_status); } &&
24029          { ac_try='test -s conftest.$ac_objext'
24030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24031   (eval $ac_try) 2>&5
24032   ac_status=$?
24033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034   (exit $ac_status); }; }; then
24035   ac_cv_type_sig_atomic_t=yes
24036 else
24037   echo "$as_me: failed program was:" >&5
24038 sed 's/^/| /' conftest.$ac_ext >&5
24039
24040 ac_cv_type_sig_atomic_t=no
24041 fi
24042 rm -f conftest.$ac_objext conftest.$ac_ext
24043 fi
24044 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24045 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
24046 if test $ac_cv_type_sig_atomic_t = yes; then
24047
24048 cat >>confdefs.h <<_ACEOF
24049 #define HAVE_SIG_ATOMIC_T 1
24050 _ACEOF
24051
24052
24053 else
24054   cat >>confdefs.h <<\_ACEOF
24055 #define sig_atomic_t int
24056 _ACEOF
24057
24058 fi
24059
24060 echo "$as_me:$LINENO: checking for sigaction_t" >&5
24061 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6
24062 if test "${ac_cv_type_sigaction_t+set}" = set; then
24063   echo $ECHO_N "(cached) $ECHO_C" >&6
24064 else
24065   cat >conftest.$ac_ext <<_ACEOF
24066 #line $LINENO "configure"
24067 /* confdefs.h.  */
24068 _ACEOF
24069 cat confdefs.h >>conftest.$ac_ext
24070 cat >>conftest.$ac_ext <<_ACEOF
24071 /* end confdefs.h.  */
24072 #include <sys/types.h>
24073 #include <signal.h>
24074
24075 int
24076 main ()
24077 {
24078 if ((sigaction_t *) 0)
24079   return 0;
24080 if (sizeof (sigaction_t))
24081   return 0;
24082   ;
24083   return 0;
24084 }
24085 _ACEOF
24086 rm -f conftest.$ac_objext
24087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24088   (eval $ac_compile) 2>&5
24089   ac_status=$?
24090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091   (exit $ac_status); } &&
24092          { ac_try='test -s conftest.$ac_objext'
24093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24094   (eval $ac_try) 2>&5
24095   ac_status=$?
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); }; }; then
24098   ac_cv_type_sigaction_t=yes
24099 else
24100   echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24102
24103 ac_cv_type_sigaction_t=no
24104 fi
24105 rm -f conftest.$ac_objext conftest.$ac_ext
24106 fi
24107 echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
24108 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6
24109 if test $ac_cv_type_sigaction_t = yes; then
24110
24111 cat >>confdefs.h <<_ACEOF
24112 #define HAVE_SIGACTION_T 1
24113 _ACEOF
24114
24115 cat >>confdefs.h <<\_ACEOF
24116 #define HAVE_SIGACTION_T 1
24117 _ACEOF
24118
24119 fi
24120
24121 echo "$as_me:$LINENO: checking for struct timespec" >&5
24122 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
24123 if test "${ac_cv_type_struct_timespec+set}" = set; then
24124   echo $ECHO_N "(cached) $ECHO_C" >&6
24125 else
24126   cat >conftest.$ac_ext <<_ACEOF
24127 #line $LINENO "configure"
24128 /* confdefs.h.  */
24129 _ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h.  */
24133 #include <sys/types.h>
24134 #include <sys/time.h>
24135 #include <time.h>
24136
24137 int
24138 main ()
24139 {
24140 if ((struct timespec *) 0)
24141   return 0;
24142 if (sizeof (struct timespec))
24143   return 0;
24144   ;
24145   return 0;
24146 }
24147 _ACEOF
24148 rm -f conftest.$ac_objext
24149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24150   (eval $ac_compile) 2>&5
24151   ac_status=$?
24152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153   (exit $ac_status); } &&
24154          { ac_try='test -s conftest.$ac_objext'
24155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24156   (eval $ac_try) 2>&5
24157   ac_status=$?
24158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159   (exit $ac_status); }; }; then
24160   ac_cv_type_struct_timespec=yes
24161 else
24162   echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24164
24165 ac_cv_type_struct_timespec=no
24166 fi
24167 rm -f conftest.$ac_objext conftest.$ac_ext
24168 fi
24169 echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
24170 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
24171 if test $ac_cv_type_struct_timespec = yes; then
24172   cat >>confdefs.h <<\_ACEOF
24173 #define HAVE_TIMESPEC 1
24174 _ACEOF
24175
24176 fi
24177
24178 echo "$as_me:$LINENO: checking for size_t" >&5
24179 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
24180 if test "${sudo_cv_type_size_t+set}" = set; then
24181   echo $ECHO_N "(cached) $ECHO_C" >&6
24182 else
24183   cat >conftest.$ac_ext <<_ACEOF
24184 #line $LINENO "configure"
24185 /* confdefs.h.  */
24186 _ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h.  */
24190 #include <sys/types.h>
24191 #include <stdio.h>
24192 #if STDC_HEADERS
24193 #include <stdlib.h>
24194 #endif
24195 #if HAVE_UNISTD_H
24196 #include <unistd.h>
24197 #endif
24198 _ACEOF
24199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24200   $EGREP "size_t" >/dev/null 2>&1; then
24201   sudo_cv_type_size_t=yes
24202 else
24203   sudo_cv_type_size_t=no
24204 fi
24205 rm -f conftest*
24206
24207 fi
24208 echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
24209 echo "${ECHO_T}$sudo_cv_type_size_t" >&6
24210 if test $sudo_cv_type_size_t = no; then
24211
24212 cat >>confdefs.h <<\_ACEOF
24213 #define size_t int
24214 _ACEOF
24215
24216 fi
24217
24218 echo "$as_me:$LINENO: checking for ssize_t" >&5
24219 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
24220 if test "${sudo_cv_type_ssize_t+set}" = set; then
24221   echo $ECHO_N "(cached) $ECHO_C" >&6
24222 else
24223   cat >conftest.$ac_ext <<_ACEOF
24224 #line $LINENO "configure"
24225 /* confdefs.h.  */
24226 _ACEOF
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h.  */
24230 #include <sys/types.h>
24231 #include <stdio.h>
24232 #if STDC_HEADERS
24233 #include <stdlib.h>
24234 #endif
24235 #if HAVE_UNISTD_H
24236 #include <unistd.h>
24237 #endif
24238 _ACEOF
24239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24240   $EGREP "ssize_t" >/dev/null 2>&1; then
24241   sudo_cv_type_ssize_t=yes
24242 else
24243   sudo_cv_type_ssize_t=no
24244 fi
24245 rm -f conftest*
24246
24247 fi
24248 echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
24249 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6
24250 if test $sudo_cv_type_ssize_t = no; then
24251
24252 cat >>confdefs.h <<\_ACEOF
24253 #define ssize_t int
24254 _ACEOF
24255
24256 fi
24257
24258 echo "$as_me:$LINENO: checking for dev_t" >&5
24259 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
24260 if test "${sudo_cv_type_dev_t+set}" = set; then
24261   echo $ECHO_N "(cached) $ECHO_C" >&6
24262 else
24263   cat >conftest.$ac_ext <<_ACEOF
24264 #line $LINENO "configure"
24265 /* confdefs.h.  */
24266 _ACEOF
24267 cat confdefs.h >>conftest.$ac_ext
24268 cat >>conftest.$ac_ext <<_ACEOF
24269 /* end confdefs.h.  */
24270 #include <sys/types.h>
24271 #include <stdio.h>
24272 #if STDC_HEADERS
24273 #include <stdlib.h>
24274 #endif
24275 #if HAVE_UNISTD_H
24276 #include <unistd.h>
24277 #endif
24278 _ACEOF
24279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24280   $EGREP "dev_t" >/dev/null 2>&1; then
24281   sudo_cv_type_dev_t=yes
24282 else
24283   sudo_cv_type_dev_t=no
24284 fi
24285 rm -f conftest*
24286
24287 fi
24288 echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
24289 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6
24290 if test $sudo_cv_type_dev_t = no; then
24291
24292 cat >>confdefs.h <<\_ACEOF
24293 #define dev_t int
24294 _ACEOF
24295
24296 fi
24297
24298 echo "$as_me:$LINENO: checking for ino_t" >&5
24299 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
24300 if test "${sudo_cv_type_ino_t+set}" = set; then
24301   echo $ECHO_N "(cached) $ECHO_C" >&6
24302 else
24303   cat >conftest.$ac_ext <<_ACEOF
24304 #line $LINENO "configure"
24305 /* confdefs.h.  */
24306 _ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h.  */
24310 #include <sys/types.h>
24311 #include <stdio.h>
24312 #if STDC_HEADERS
24313 #include <stdlib.h>
24314 #endif
24315 #if HAVE_UNISTD_H
24316 #include <unistd.h>
24317 #endif
24318 _ACEOF
24319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24320   $EGREP "ino_t" >/dev/null 2>&1; then
24321   sudo_cv_type_ino_t=yes
24322 else
24323   sudo_cv_type_ino_t=no
24324 fi
24325 rm -f conftest*
24326
24327 fi
24328 echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
24329 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6
24330 if test $sudo_cv_type_ino_t = no; then
24331
24332 cat >>confdefs.h <<\_ACEOF
24333 #define ino_t unsigned int
24334 _ACEOF
24335
24336 fi
24337
24338 echo "$as_me:$LINENO: checking for full void implementation" >&5
24339 echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6
24340 cat >conftest.$ac_ext <<_ACEOF
24341 #line $LINENO "configure"
24342 /* confdefs.h.  */
24343 _ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h.  */
24347
24348 int
24349 main ()
24350 {
24351 void *foo;
24352 foo = (void *)0; (void *)"test";
24353   ;
24354   return 0;
24355 }
24356 _ACEOF
24357 rm -f conftest.$ac_objext
24358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24359   (eval $ac_compile) 2>&5
24360   ac_status=$?
24361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362   (exit $ac_status); } &&
24363          { ac_try='test -s conftest.$ac_objext'
24364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365   (eval $ac_try) 2>&5
24366   ac_status=$?
24367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); }; }; then
24369
24370 cat >>confdefs.h <<\_ACEOF
24371 #define VOID void
24372 _ACEOF
24373
24374 echo "$as_me:$LINENO: result: yes" >&5
24375 echo "${ECHO_T}yes" >&6
24376 else
24377   echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24379
24380 cat >>confdefs.h <<\_ACEOF
24381 #define VOID char
24382 _ACEOF
24383
24384 echo "$as_me:$LINENO: result: no" >&5
24385 echo "${ECHO_T}no" >&6
24386 fi
24387 rm -f conftest.$ac_objext conftest.$ac_ext
24388
24389 echo "$as_me:$LINENO: checking max length of uid_t" >&5
24390 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6
24391 if test "${sudo_cv_uid_t_len+set}" = set; then
24392   echo $ECHO_N "(cached) $ECHO_C" >&6
24393 else
24394   rm -f conftestdata
24395 if test "$cross_compiling" = yes; then
24396   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24397 See \`config.log' for more details." >&5
24398 echo "$as_me: error: cannot run test program while cross compiling
24399 See \`config.log' for more details." >&2;}
24400    { (exit 1); exit 1; }; }
24401 else
24402   cat >conftest.$ac_ext <<_ACEOF
24403 #line $LINENO "configure"
24404 /* confdefs.h.  */
24405 _ACEOF
24406 cat confdefs.h >>conftest.$ac_ext
24407 cat >>conftest.$ac_ext <<_ACEOF
24408 /* end confdefs.h.  */
24409 #include <stdio.h>
24410 #include <pwd.h>
24411 #include <limits.h>
24412 #include <sys/types.h>
24413 #include <sys/param.h>
24414 main() {
24415   FILE *f;
24416   char b[1024];
24417   uid_t u = (uid_t) -1;
24418
24419   if ((f = fopen("conftestdata", "w")) == NULL)
24420     exit(1);
24421
24422   (void) sprintf(b, "%lu", (unsigned long) u);
24423   (void) fprintf(f, "%d\n", strlen(b));
24424   (void) fclose(f);
24425   exit(0);
24426 }
24427 _ACEOF
24428 rm -f conftest$ac_exeext
24429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24430   (eval $ac_link) 2>&5
24431   ac_status=$?
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24435   (eval $ac_try) 2>&5
24436   ac_status=$?
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); }; }; then
24439   sudo_cv_uid_t_len=`cat conftestdata`
24440 else
24441   echo "$as_me: program exited with status $ac_status" >&5
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24444
24445 ( exit $ac_status )
24446 sudo_cv_uid_t_len=10
24447 fi
24448 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24449 fi
24450
24451 fi
24452
24453 rm -f conftestdata
24454 echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
24455 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
24456
24457 cat >>confdefs.h <<_ACEOF
24458 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
24459 _ACEOF
24460
24461
24462 echo "$as_me:$LINENO: checking for long long support" >&5
24463 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
24464 cat >conftest.$ac_ext <<_ACEOF
24465 #line $LINENO "configure"
24466 /* confdefs.h.  */
24467 _ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h.  */
24471
24472 int
24473 main ()
24474 {
24475 long long foo = 1000; foo /= 10;
24476   ;
24477   return 0;
24478 }
24479 _ACEOF
24480 rm -f conftest.$ac_objext conftest$ac_exeext
24481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24482   (eval $ac_link) 2>&5
24483   ac_status=$?
24484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485   (exit $ac_status); } &&
24486          { ac_try='test -s conftest$ac_exeext'
24487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24488   (eval $ac_try) 2>&5
24489   ac_status=$?
24490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491   (exit $ac_status); }; }; then
24492
24493 cat >>confdefs.h <<\_ACEOF
24494 #define HAVE_LONG_LONG 1
24495 _ACEOF
24496
24497 if test "$cross_compiling" = yes; then
24498   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24499 See \`config.log' for more details." >&5
24500 echo "$as_me: error: cannot run test program while cross compiling
24501 See \`config.log' for more details." >&2;}
24502    { (exit 1); exit 1; }; }
24503 else
24504   cat >conftest.$ac_ext <<_ACEOF
24505 #line $LINENO "configure"
24506 /* confdefs.h.  */
24507 _ACEOF
24508 cat confdefs.h >>conftest.$ac_ext
24509 cat >>conftest.$ac_ext <<_ACEOF
24510 /* end confdefs.h.  */
24511 main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
24512 _ACEOF
24513 rm -f conftest$ac_exeext
24514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24515   (eval $ac_link) 2>&5
24516   ac_status=$?
24517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24520   (eval $ac_try) 2>&5
24521   ac_status=$?
24522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523   (exit $ac_status); }; }; then
24524
24525 cat >>confdefs.h <<\_ACEOF
24526 #define LONG_IS_QUAD 1
24527 _ACEOF
24528
24529 else
24530   echo "$as_me: program exited with status $ac_status" >&5
24531 echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24533
24534 fi
24535 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24536 fi
24537 echo "$as_me:$LINENO: result: yes" >&5
24538 echo "${ECHO_T}yes" >&6
24539 else
24540   echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24542
24543 echo "$as_me:$LINENO: result: no" >&5
24544 echo "${ECHO_T}no" >&6
24545 fi
24546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24547 echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
24548 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6
24549 if test "${sudo_cv_sock_sa_len+set}" = set; then
24550   echo $ECHO_N "(cached) $ECHO_C" >&6
24551 else
24552   if test "$cross_compiling" = yes; then
24553   sudo_cv_sock_sa_len=no
24554 else
24555   cat >conftest.$ac_ext <<_ACEOF
24556 #line $LINENO "configure"
24557 /* confdefs.h.  */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h.  */
24562 #include <sys/types.h>
24563 #include <sys/socket.h>
24564 main() {
24565 struct sockaddr s;
24566 s.sa_len = 0;
24567 exit(0);
24568 }
24569 _ACEOF
24570 rm -f conftest$ac_exeext
24571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24572   (eval $ac_link) 2>&5
24573   ac_status=$?
24574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24577   (eval $ac_try) 2>&5
24578   ac_status=$?
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); }; }; then
24581   sudo_cv_sock_sa_len=yes
24582 else
24583   echo "$as_me: program exited with status $ac_status" >&5
24584 echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24586
24587 ( exit $ac_status )
24588 sudo_cv_sock_sa_len=no
24589 fi
24590 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24591 fi
24592 rm -f core core.* *.core
24593 fi
24594 echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
24595 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6
24596 if test $sudo_cv_sock_sa_len = yes; then
24597
24598 cat >>confdefs.h <<\_ACEOF
24599 #define HAVE_SA_LEN 1
24600 _ACEOF
24601
24602 fi
24603
24604 case "$DEFS" in
24605     *"RETSIGTYPE"*)     ;;
24606     *)                  echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24607 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
24608 if test "${ac_cv_type_signal+set}" = set; then
24609   echo $ECHO_N "(cached) $ECHO_C" >&6
24610 else
24611   cat >conftest.$ac_ext <<_ACEOF
24612 #line $LINENO "configure"
24613 /* confdefs.h.  */
24614 _ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h.  */
24618 #include <sys/types.h>
24619 #include <signal.h>
24620 #ifdef signal
24621 # undef signal
24622 #endif
24623 #ifdef __cplusplus
24624 extern "C" void (*signal (int, void (*)(int)))(int);
24625 #else
24626 void (*signal ()) ();
24627 #endif
24628
24629 int
24630 main ()
24631 {
24632 int i;
24633   ;
24634   return 0;
24635 }
24636 _ACEOF
24637 rm -f conftest.$ac_objext
24638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24639   (eval $ac_compile) 2>&5
24640   ac_status=$?
24641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642   (exit $ac_status); } &&
24643          { ac_try='test -s conftest.$ac_objext'
24644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645   (eval $ac_try) 2>&5
24646   ac_status=$?
24647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648   (exit $ac_status); }; }; then
24649   ac_cv_type_signal=void
24650 else
24651   echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24653
24654 ac_cv_type_signal=int
24655 fi
24656 rm -f conftest.$ac_objext conftest.$ac_ext
24657 fi
24658 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24659 echo "${ECHO_T}$ac_cv_type_signal" >&6
24660
24661 cat >>confdefs.h <<_ACEOF
24662 #define RETSIGTYPE $ac_cv_type_signal
24663 _ACEOF
24664
24665 ;;
24666 esac
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
24680                strftime setrlimit initgroups fstat gettimeofday
24681 do
24682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24683 echo "$as_me:$LINENO: checking for $ac_func" >&5
24684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24685 if eval "test \"\${$as_ac_var+set}\" = set"; then
24686   echo $ECHO_N "(cached) $ECHO_C" >&6
24687 else
24688   cat >conftest.$ac_ext <<_ACEOF
24689 #line $LINENO "configure"
24690 /* confdefs.h.  */
24691 _ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h.  */
24695 /* System header to define __stub macros and hopefully few prototypes,
24696     which can conflict with char $ac_func (); below.
24697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24698     <limits.h> exists even on freestanding compilers.  */
24699 #ifdef __STDC__
24700 # include <limits.h>
24701 #else
24702 # include <assert.h>
24703 #endif
24704 /* Override any gcc2 internal prototype to avoid an error.  */
24705 #ifdef __cplusplus
24706 extern "C"
24707 {
24708 #endif
24709 /* We use char because int might match the return type of a gcc2
24710    builtin and then its argument prototype would still apply.  */
24711 char $ac_func ();
24712 /* The GNU C library defines this for functions which it implements
24713     to always fail with ENOSYS.  Some functions are actually named
24714     something starting with __ and the normal name is an alias.  */
24715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24716 choke me
24717 #else
24718 char (*f) () = $ac_func;
24719 #endif
24720 #ifdef __cplusplus
24721 }
24722 #endif
24723
24724 int
24725 main ()
24726 {
24727 return f != $ac_func;
24728   ;
24729   return 0;
24730 }
24731 _ACEOF
24732 rm -f conftest.$ac_objext conftest$ac_exeext
24733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24734   (eval $ac_link) 2>&5
24735   ac_status=$?
24736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737   (exit $ac_status); } &&
24738          { ac_try='test -s conftest$ac_exeext'
24739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740   (eval $ac_try) 2>&5
24741   ac_status=$?
24742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); }; }; then
24744   eval "$as_ac_var=yes"
24745 else
24746   echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24748
24749 eval "$as_ac_var=no"
24750 fi
24751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24752 fi
24753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24755 if test `eval echo '${'$as_ac_var'}'` = yes; then
24756   cat >>confdefs.h <<_ACEOF
24757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24758 _ACEOF
24759
24760 fi
24761 done
24762
24763
24764 for ac_func in seteuid
24765 do
24766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24767 echo "$as_me:$LINENO: checking for $ac_func" >&5
24768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24769 if eval "test \"\${$as_ac_var+set}\" = set"; then
24770   echo $ECHO_N "(cached) $ECHO_C" >&6
24771 else
24772   cat >conftest.$ac_ext <<_ACEOF
24773 #line $LINENO "configure"
24774 /* confdefs.h.  */
24775 _ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h.  */
24779 /* System header to define __stub macros and hopefully few prototypes,
24780     which can conflict with char $ac_func (); below.
24781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24782     <limits.h> exists even on freestanding compilers.  */
24783 #ifdef __STDC__
24784 # include <limits.h>
24785 #else
24786 # include <assert.h>
24787 #endif
24788 /* Override any gcc2 internal prototype to avoid an error.  */
24789 #ifdef __cplusplus
24790 extern "C"
24791 {
24792 #endif
24793 /* We use char because int might match the return type of a gcc2
24794    builtin and then its argument prototype would still apply.  */
24795 char $ac_func ();
24796 /* The GNU C library defines this for functions which it implements
24797     to always fail with ENOSYS.  Some functions are actually named
24798     something starting with __ and the normal name is an alias.  */
24799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24800 choke me
24801 #else
24802 char (*f) () = $ac_func;
24803 #endif
24804 #ifdef __cplusplus
24805 }
24806 #endif
24807
24808 int
24809 main ()
24810 {
24811 return f != $ac_func;
24812   ;
24813   return 0;
24814 }
24815 _ACEOF
24816 rm -f conftest.$ac_objext conftest$ac_exeext
24817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24818   (eval $ac_link) 2>&5
24819   ac_status=$?
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); } &&
24822          { ac_try='test -s conftest$ac_exeext'
24823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824   (eval $ac_try) 2>&5
24825   ac_status=$?
24826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827   (exit $ac_status); }; }; then
24828   eval "$as_ac_var=yes"
24829 else
24830   echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24832
24833 eval "$as_ac_var=no"
24834 fi
24835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24836 fi
24837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24839 if test `eval echo '${'$as_ac_var'}'` = yes; then
24840   cat >>confdefs.h <<_ACEOF
24841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24842 _ACEOF
24843
24844 else
24845   cat >>confdefs.h <<\_ACEOF
24846 #define NO_SAVED_IDS 1
24847 _ACEOF
24848
24849 fi
24850 done
24851
24852 if test -z "$SKIP_SETRESUID"; then
24853
24854 for ac_func in setresuid
24855 do
24856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24857 echo "$as_me:$LINENO: checking for $ac_func" >&5
24858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24859 if eval "test \"\${$as_ac_var+set}\" = set"; then
24860   echo $ECHO_N "(cached) $ECHO_C" >&6
24861 else
24862   cat >conftest.$ac_ext <<_ACEOF
24863 #line $LINENO "configure"
24864 /* confdefs.h.  */
24865 _ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h.  */
24869 /* System header to define __stub macros and hopefully few prototypes,
24870     which can conflict with char $ac_func (); below.
24871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24872     <limits.h> exists even on freestanding compilers.  */
24873 #ifdef __STDC__
24874 # include <limits.h>
24875 #else
24876 # include <assert.h>
24877 #endif
24878 /* Override any gcc2 internal prototype to avoid an error.  */
24879 #ifdef __cplusplus
24880 extern "C"
24881 {
24882 #endif
24883 /* We use char because int might match the return type of a gcc2
24884    builtin and then its argument prototype would still apply.  */
24885 char $ac_func ();
24886 /* The GNU C library defines this for functions which it implements
24887     to always fail with ENOSYS.  Some functions are actually named
24888     something starting with __ and the normal name is an alias.  */
24889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24890 choke me
24891 #else
24892 char (*f) () = $ac_func;
24893 #endif
24894 #ifdef __cplusplus
24895 }
24896 #endif
24897
24898 int
24899 main ()
24900 {
24901 return f != $ac_func;
24902   ;
24903   return 0;
24904 }
24905 _ACEOF
24906 rm -f conftest.$ac_objext conftest$ac_exeext
24907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24908   (eval $ac_link) 2>&5
24909   ac_status=$?
24910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911   (exit $ac_status); } &&
24912          { ac_try='test -s conftest$ac_exeext'
24913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24914   (eval $ac_try) 2>&5
24915   ac_status=$?
24916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917   (exit $ac_status); }; }; then
24918   eval "$as_ac_var=yes"
24919 else
24920   echo "$as_me: failed program was:" >&5
24921 sed 's/^/| /' conftest.$ac_ext >&5
24922
24923 eval "$as_ac_var=no"
24924 fi
24925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24926 fi
24927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24929 if test `eval echo '${'$as_ac_var'}'` = yes; then
24930   cat >>confdefs.h <<_ACEOF
24931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24932 _ACEOF
24933  SKIP_SETREUID=yes
24934 fi
24935 done
24936
24937 fi
24938 if test -z "$SKIP_SETREUID"; then
24939
24940 for ac_func in setreuid
24941 do
24942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24943 echo "$as_me:$LINENO: checking for $ac_func" >&5
24944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24945 if eval "test \"\${$as_ac_var+set}\" = set"; then
24946   echo $ECHO_N "(cached) $ECHO_C" >&6
24947 else
24948   cat >conftest.$ac_ext <<_ACEOF
24949 #line $LINENO "configure"
24950 /* confdefs.h.  */
24951 _ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h.  */
24955 /* System header to define __stub macros and hopefully few prototypes,
24956     which can conflict with char $ac_func (); below.
24957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24958     <limits.h> exists even on freestanding compilers.  */
24959 #ifdef __STDC__
24960 # include <limits.h>
24961 #else
24962 # include <assert.h>
24963 #endif
24964 /* Override any gcc2 internal prototype to avoid an error.  */
24965 #ifdef __cplusplus
24966 extern "C"
24967 {
24968 #endif
24969 /* We use char because int might match the return type of a gcc2
24970    builtin and then its argument prototype would still apply.  */
24971 char $ac_func ();
24972 /* The GNU C library defines this for functions which it implements
24973     to always fail with ENOSYS.  Some functions are actually named
24974     something starting with __ and the normal name is an alias.  */
24975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24976 choke me
24977 #else
24978 char (*f) () = $ac_func;
24979 #endif
24980 #ifdef __cplusplus
24981 }
24982 #endif
24983
24984 int
24985 main ()
24986 {
24987 return f != $ac_func;
24988   ;
24989   return 0;
24990 }
24991 _ACEOF
24992 rm -f conftest.$ac_objext conftest$ac_exeext
24993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24994   (eval $ac_link) 2>&5
24995   ac_status=$?
24996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997   (exit $ac_status); } &&
24998          { ac_try='test -s conftest$ac_exeext'
24999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25000   (eval $ac_try) 2>&5
25001   ac_status=$?
25002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003   (exit $ac_status); }; }; then
25004   eval "$as_ac_var=yes"
25005 else
25006   echo "$as_me: failed program was:" >&5
25007 sed 's/^/| /' conftest.$ac_ext >&5
25008
25009 eval "$as_ac_var=no"
25010 fi
25011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25012 fi
25013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25015 if test `eval echo '${'$as_ac_var'}'` = yes; then
25016   cat >>confdefs.h <<_ACEOF
25017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25018 _ACEOF
25019
25020 fi
25021 done
25022
25023 fi
25024 if test X"$with_interfaces" != X"no"; then
25025
25026 for ac_func in getifaddrs
25027 do
25028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25029 echo "$as_me:$LINENO: checking for $ac_func" >&5
25030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25031 if eval "test \"\${$as_ac_var+set}\" = set"; then
25032   echo $ECHO_N "(cached) $ECHO_C" >&6
25033 else
25034   cat >conftest.$ac_ext <<_ACEOF
25035 #line $LINENO "configure"
25036 /* confdefs.h.  */
25037 _ACEOF
25038 cat confdefs.h >>conftest.$ac_ext
25039 cat >>conftest.$ac_ext <<_ACEOF
25040 /* end confdefs.h.  */
25041 /* System header to define __stub macros and hopefully few prototypes,
25042     which can conflict with char $ac_func (); below.
25043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25044     <limits.h> exists even on freestanding compilers.  */
25045 #ifdef __STDC__
25046 # include <limits.h>
25047 #else
25048 # include <assert.h>
25049 #endif
25050 /* Override any gcc2 internal prototype to avoid an error.  */
25051 #ifdef __cplusplus
25052 extern "C"
25053 {
25054 #endif
25055 /* We use char because int might match the return type of a gcc2
25056    builtin and then its argument prototype would still apply.  */
25057 char $ac_func ();
25058 /* The GNU C library defines this for functions which it implements
25059     to always fail with ENOSYS.  Some functions are actually named
25060     something starting with __ and the normal name is an alias.  */
25061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25062 choke me
25063 #else
25064 char (*f) () = $ac_func;
25065 #endif
25066 #ifdef __cplusplus
25067 }
25068 #endif
25069
25070 int
25071 main ()
25072 {
25073 return f != $ac_func;
25074   ;
25075   return 0;
25076 }
25077 _ACEOF
25078 rm -f conftest.$ac_objext conftest$ac_exeext
25079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25080   (eval $ac_link) 2>&5
25081   ac_status=$?
25082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083   (exit $ac_status); } &&
25084          { ac_try='test -s conftest$ac_exeext'
25085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25086   (eval $ac_try) 2>&5
25087   ac_status=$?
25088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089   (exit $ac_status); }; }; then
25090   eval "$as_ac_var=yes"
25091 else
25092   echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25094
25095 eval "$as_ac_var=no"
25096 fi
25097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25098 fi
25099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25101 if test `eval echo '${'$as_ac_var'}'` = yes; then
25102   cat >>confdefs.h <<_ACEOF
25103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25104 _ACEOF
25105
25106 for ac_func in freeifaddrs
25107 do
25108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25109 echo "$as_me:$LINENO: checking for $ac_func" >&5
25110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25111 if eval "test \"\${$as_ac_var+set}\" = set"; then
25112   echo $ECHO_N "(cached) $ECHO_C" >&6
25113 else
25114   cat >conftest.$ac_ext <<_ACEOF
25115 #line $LINENO "configure"
25116 /* confdefs.h.  */
25117 _ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h.  */
25121 /* System header to define __stub macros and hopefully few prototypes,
25122     which can conflict with char $ac_func (); below.
25123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25124     <limits.h> exists even on freestanding compilers.  */
25125 #ifdef __STDC__
25126 # include <limits.h>
25127 #else
25128 # include <assert.h>
25129 #endif
25130 /* Override any gcc2 internal prototype to avoid an error.  */
25131 #ifdef __cplusplus
25132 extern "C"
25133 {
25134 #endif
25135 /* We use char because int might match the return type of a gcc2
25136    builtin and then its argument prototype would still apply.  */
25137 char $ac_func ();
25138 /* The GNU C library defines this for functions which it implements
25139     to always fail with ENOSYS.  Some functions are actually named
25140     something starting with __ and the normal name is an alias.  */
25141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25142 choke me
25143 #else
25144 char (*f) () = $ac_func;
25145 #endif
25146 #ifdef __cplusplus
25147 }
25148 #endif
25149
25150 int
25151 main ()
25152 {
25153 return f != $ac_func;
25154   ;
25155   return 0;
25156 }
25157 _ACEOF
25158 rm -f conftest.$ac_objext conftest$ac_exeext
25159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25160   (eval $ac_link) 2>&5
25161   ac_status=$?
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); } &&
25164          { ac_try='test -s conftest$ac_exeext'
25165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25166   (eval $ac_try) 2>&5
25167   ac_status=$?
25168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); }; }; then
25170   eval "$as_ac_var=yes"
25171 else
25172   echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25174
25175 eval "$as_ac_var=no"
25176 fi
25177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25178 fi
25179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25181 if test `eval echo '${'$as_ac_var'}'` = yes; then
25182   cat >>confdefs.h <<_ACEOF
25183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25184 _ACEOF
25185
25186 fi
25187 done
25188
25189 fi
25190 done
25191
25192 fi
25193 if test -n "$SECUREWARE"; then
25194
25195
25196
25197 for ac_func in bigcrypt set_auth_parameters initprivs
25198 do
25199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25200 echo "$as_me:$LINENO: checking for $ac_func" >&5
25201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25202 if eval "test \"\${$as_ac_var+set}\" = set"; then
25203   echo $ECHO_N "(cached) $ECHO_C" >&6
25204 else
25205   cat >conftest.$ac_ext <<_ACEOF
25206 #line $LINENO "configure"
25207 /* confdefs.h.  */
25208 _ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h.  */
25212 /* System header to define __stub macros and hopefully few prototypes,
25213     which can conflict with char $ac_func (); below.
25214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25215     <limits.h> exists even on freestanding compilers.  */
25216 #ifdef __STDC__
25217 # include <limits.h>
25218 #else
25219 # include <assert.h>
25220 #endif
25221 /* Override any gcc2 internal prototype to avoid an error.  */
25222 #ifdef __cplusplus
25223 extern "C"
25224 {
25225 #endif
25226 /* We use char because int might match the return type of a gcc2
25227    builtin and then its argument prototype would still apply.  */
25228 char $ac_func ();
25229 /* The GNU C library defines this for functions which it implements
25230     to always fail with ENOSYS.  Some functions are actually named
25231     something starting with __ and the normal name is an alias.  */
25232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25233 choke me
25234 #else
25235 char (*f) () = $ac_func;
25236 #endif
25237 #ifdef __cplusplus
25238 }
25239 #endif
25240
25241 int
25242 main ()
25243 {
25244 return f != $ac_func;
25245   ;
25246   return 0;
25247 }
25248 _ACEOF
25249 rm -f conftest.$ac_objext conftest$ac_exeext
25250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25251   (eval $ac_link) 2>&5
25252   ac_status=$?
25253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254   (exit $ac_status); } &&
25255          { ac_try='test -s conftest$ac_exeext'
25256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25257   (eval $ac_try) 2>&5
25258   ac_status=$?
25259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260   (exit $ac_status); }; }; then
25261   eval "$as_ac_var=yes"
25262 else
25263   echo "$as_me: failed program was:" >&5
25264 sed 's/^/| /' conftest.$ac_ext >&5
25265
25266 eval "$as_ac_var=no"
25267 fi
25268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25269 fi
25270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25272 if test `eval echo '${'$as_ac_var'}'` = yes; then
25273   cat >>confdefs.h <<_ACEOF
25274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25275 _ACEOF
25276
25277 fi
25278 done
25279
25280 fi
25281 if test -z "$BROKEN_GETCWD"; then
25282
25283 for ac_func in getcwd
25284 do
25285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25286 echo "$as_me:$LINENO: checking for $ac_func" >&5
25287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25288 if eval "test \"\${$as_ac_var+set}\" = set"; then
25289   echo $ECHO_N "(cached) $ECHO_C" >&6
25290 else
25291   cat >conftest.$ac_ext <<_ACEOF
25292 #line $LINENO "configure"
25293 /* confdefs.h.  */
25294 _ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h.  */
25298 /* System header to define __stub macros and hopefully few prototypes,
25299     which can conflict with char $ac_func (); below.
25300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25301     <limits.h> exists even on freestanding compilers.  */
25302 #ifdef __STDC__
25303 # include <limits.h>
25304 #else
25305 # include <assert.h>
25306 #endif
25307 /* Override any gcc2 internal prototype to avoid an error.  */
25308 #ifdef __cplusplus
25309 extern "C"
25310 {
25311 #endif
25312 /* We use char because int might match the return type of a gcc2
25313    builtin and then its argument prototype would still apply.  */
25314 char $ac_func ();
25315 /* The GNU C library defines this for functions which it implements
25316     to always fail with ENOSYS.  Some functions are actually named
25317     something starting with __ and the normal name is an alias.  */
25318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25319 choke me
25320 #else
25321 char (*f) () = $ac_func;
25322 #endif
25323 #ifdef __cplusplus
25324 }
25325 #endif
25326
25327 int
25328 main ()
25329 {
25330 return f != $ac_func;
25331   ;
25332   return 0;
25333 }
25334 _ACEOF
25335 rm -f conftest.$ac_objext conftest$ac_exeext
25336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25337   (eval $ac_link) 2>&5
25338   ac_status=$?
25339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340   (exit $ac_status); } &&
25341          { ac_try='test -s conftest$ac_exeext'
25342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343   (eval $ac_try) 2>&5
25344   ac_status=$?
25345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346   (exit $ac_status); }; }; then
25347   eval "$as_ac_var=yes"
25348 else
25349   echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25351
25352 eval "$as_ac_var=no"
25353 fi
25354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25355 fi
25356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25358 if test `eval echo '${'$as_ac_var'}'` = yes; then
25359   cat >>confdefs.h <<_ACEOF
25360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25361 _ACEOF
25362
25363 else
25364   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25365 fi
25366 done
25367
25368
25369 fi
25370
25371
25372 for ac_func in lockf flock
25373 do
25374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25375 echo "$as_me:$LINENO: checking for $ac_func" >&5
25376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25377 if eval "test \"\${$as_ac_var+set}\" = set"; then
25378   echo $ECHO_N "(cached) $ECHO_C" >&6
25379 else
25380   cat >conftest.$ac_ext <<_ACEOF
25381 #line $LINENO "configure"
25382 /* confdefs.h.  */
25383 _ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h.  */
25387 /* System header to define __stub macros and hopefully few prototypes,
25388     which can conflict with char $ac_func (); below.
25389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25390     <limits.h> exists even on freestanding compilers.  */
25391 #ifdef __STDC__
25392 # include <limits.h>
25393 #else
25394 # include <assert.h>
25395 #endif
25396 /* Override any gcc2 internal prototype to avoid an error.  */
25397 #ifdef __cplusplus
25398 extern "C"
25399 {
25400 #endif
25401 /* We use char because int might match the return type of a gcc2
25402    builtin and then its argument prototype would still apply.  */
25403 char $ac_func ();
25404 /* The GNU C library defines this for functions which it implements
25405     to always fail with ENOSYS.  Some functions are actually named
25406     something starting with __ and the normal name is an alias.  */
25407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25408 choke me
25409 #else
25410 char (*f) () = $ac_func;
25411 #endif
25412 #ifdef __cplusplus
25413 }
25414 #endif
25415
25416 int
25417 main ()
25418 {
25419 return f != $ac_func;
25420   ;
25421   return 0;
25422 }
25423 _ACEOF
25424 rm -f conftest.$ac_objext conftest$ac_exeext
25425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25426   (eval $ac_link) 2>&5
25427   ac_status=$?
25428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429   (exit $ac_status); } &&
25430          { ac_try='test -s conftest$ac_exeext'
25431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25432   (eval $ac_try) 2>&5
25433   ac_status=$?
25434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435   (exit $ac_status); }; }; then
25436   eval "$as_ac_var=yes"
25437 else
25438   echo "$as_me: failed program was:" >&5
25439 sed 's/^/| /' conftest.$ac_ext >&5
25440
25441 eval "$as_ac_var=no"
25442 fi
25443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25444 fi
25445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25447 if test `eval echo '${'$as_ac_var'}'` = yes; then
25448   cat >>confdefs.h <<_ACEOF
25449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25450 _ACEOF
25451  break
25452 fi
25453 done
25454
25455
25456
25457 for ac_func in waitpid wait3
25458 do
25459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25460 echo "$as_me:$LINENO: checking for $ac_func" >&5
25461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25462 if eval "test \"\${$as_ac_var+set}\" = set"; then
25463   echo $ECHO_N "(cached) $ECHO_C" >&6
25464 else
25465   cat >conftest.$ac_ext <<_ACEOF
25466 #line $LINENO "configure"
25467 /* confdefs.h.  */
25468 _ACEOF
25469 cat confdefs.h >>conftest.$ac_ext
25470 cat >>conftest.$ac_ext <<_ACEOF
25471 /* end confdefs.h.  */
25472 /* System header to define __stub macros and hopefully few prototypes,
25473     which can conflict with char $ac_func (); below.
25474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25475     <limits.h> exists even on freestanding compilers.  */
25476 #ifdef __STDC__
25477 # include <limits.h>
25478 #else
25479 # include <assert.h>
25480 #endif
25481 /* Override any gcc2 internal prototype to avoid an error.  */
25482 #ifdef __cplusplus
25483 extern "C"
25484 {
25485 #endif
25486 /* We use char because int might match the return type of a gcc2
25487    builtin and then its argument prototype would still apply.  */
25488 char $ac_func ();
25489 /* The GNU C library defines this for functions which it implements
25490     to always fail with ENOSYS.  Some functions are actually named
25491     something starting with __ and the normal name is an alias.  */
25492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25493 choke me
25494 #else
25495 char (*f) () = $ac_func;
25496 #endif
25497 #ifdef __cplusplus
25498 }
25499 #endif
25500
25501 int
25502 main ()
25503 {
25504 return f != $ac_func;
25505   ;
25506   return 0;
25507 }
25508 _ACEOF
25509 rm -f conftest.$ac_objext conftest$ac_exeext
25510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25511   (eval $ac_link) 2>&5
25512   ac_status=$?
25513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514   (exit $ac_status); } &&
25515          { ac_try='test -s conftest$ac_exeext'
25516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25517   (eval $ac_try) 2>&5
25518   ac_status=$?
25519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520   (exit $ac_status); }; }; then
25521   eval "$as_ac_var=yes"
25522 else
25523   echo "$as_me: failed program was:" >&5
25524 sed 's/^/| /' conftest.$ac_ext >&5
25525
25526 eval "$as_ac_var=no"
25527 fi
25528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25529 fi
25530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25532 if test `eval echo '${'$as_ac_var'}'` = yes; then
25533   cat >>confdefs.h <<_ACEOF
25534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25535 _ACEOF
25536  break
25537 fi
25538 done
25539
25540
25541
25542 for ac_func in innetgr _innetgr
25543 do
25544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25545 echo "$as_me:$LINENO: checking for $ac_func" >&5
25546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25547 if eval "test \"\${$as_ac_var+set}\" = set"; then
25548   echo $ECHO_N "(cached) $ECHO_C" >&6
25549 else
25550   cat >conftest.$ac_ext <<_ACEOF
25551 #line $LINENO "configure"
25552 /* confdefs.h.  */
25553 _ACEOF
25554 cat confdefs.h >>conftest.$ac_ext
25555 cat >>conftest.$ac_ext <<_ACEOF
25556 /* end confdefs.h.  */
25557 /* System header to define __stub macros and hopefully few prototypes,
25558     which can conflict with char $ac_func (); below.
25559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25560     <limits.h> exists even on freestanding compilers.  */
25561 #ifdef __STDC__
25562 # include <limits.h>
25563 #else
25564 # include <assert.h>
25565 #endif
25566 /* Override any gcc2 internal prototype to avoid an error.  */
25567 #ifdef __cplusplus
25568 extern "C"
25569 {
25570 #endif
25571 /* We use char because int might match the return type of a gcc2
25572    builtin and then its argument prototype would still apply.  */
25573 char $ac_func ();
25574 /* The GNU C library defines this for functions which it implements
25575     to always fail with ENOSYS.  Some functions are actually named
25576     something starting with __ and the normal name is an alias.  */
25577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25578 choke me
25579 #else
25580 char (*f) () = $ac_func;
25581 #endif
25582 #ifdef __cplusplus
25583 }
25584 #endif
25585
25586 int
25587 main ()
25588 {
25589 return f != $ac_func;
25590   ;
25591   return 0;
25592 }
25593 _ACEOF
25594 rm -f conftest.$ac_objext conftest$ac_exeext
25595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25596   (eval $ac_link) 2>&5
25597   ac_status=$?
25598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599   (exit $ac_status); } &&
25600          { ac_try='test -s conftest$ac_exeext'
25601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25602   (eval $ac_try) 2>&5
25603   ac_status=$?
25604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605   (exit $ac_status); }; }; then
25606   eval "$as_ac_var=yes"
25607 else
25608   echo "$as_me: failed program was:" >&5
25609 sed 's/^/| /' conftest.$ac_ext >&5
25610
25611 eval "$as_ac_var=no"
25612 fi
25613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25614 fi
25615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25617 if test `eval echo '${'$as_ac_var'}'` = yes; then
25618   cat >>confdefs.h <<_ACEOF
25619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25620 _ACEOF
25621
25622 for ac_func in getdomainname
25623 do
25624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25625 echo "$as_me:$LINENO: checking for $ac_func" >&5
25626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25627 if eval "test \"\${$as_ac_var+set}\" = set"; then
25628   echo $ECHO_N "(cached) $ECHO_C" >&6
25629 else
25630   cat >conftest.$ac_ext <<_ACEOF
25631 #line $LINENO "configure"
25632 /* confdefs.h.  */
25633 _ACEOF
25634 cat confdefs.h >>conftest.$ac_ext
25635 cat >>conftest.$ac_ext <<_ACEOF
25636 /* end confdefs.h.  */
25637 /* System header to define __stub macros and hopefully few prototypes,
25638     which can conflict with char $ac_func (); below.
25639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25640     <limits.h> exists even on freestanding compilers.  */
25641 #ifdef __STDC__
25642 # include <limits.h>
25643 #else
25644 # include <assert.h>
25645 #endif
25646 /* Override any gcc2 internal prototype to avoid an error.  */
25647 #ifdef __cplusplus
25648 extern "C"
25649 {
25650 #endif
25651 /* We use char because int might match the return type of a gcc2
25652    builtin and then its argument prototype would still apply.  */
25653 char $ac_func ();
25654 /* The GNU C library defines this for functions which it implements
25655     to always fail with ENOSYS.  Some functions are actually named
25656     something starting with __ and the normal name is an alias.  */
25657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25658 choke me
25659 #else
25660 char (*f) () = $ac_func;
25661 #endif
25662 #ifdef __cplusplus
25663 }
25664 #endif
25665
25666 int
25667 main ()
25668 {
25669 return f != $ac_func;
25670   ;
25671   return 0;
25672 }
25673 _ACEOF
25674 rm -f conftest.$ac_objext conftest$ac_exeext
25675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25676   (eval $ac_link) 2>&5
25677   ac_status=$?
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); } &&
25680          { ac_try='test -s conftest$ac_exeext'
25681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25682   (eval $ac_try) 2>&5
25683   ac_status=$?
25684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685   (exit $ac_status); }; }; then
25686   eval "$as_ac_var=yes"
25687 else
25688   echo "$as_me: failed program was:" >&5
25689 sed 's/^/| /' conftest.$ac_ext >&5
25690
25691 eval "$as_ac_var=no"
25692 fi
25693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25694 fi
25695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25697 if test `eval echo '${'$as_ac_var'}'` = yes; then
25698   cat >>confdefs.h <<_ACEOF
25699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25700 _ACEOF
25701
25702 fi
25703 done
25704  break
25705 fi
25706 done
25707
25708
25709 for ac_func in lsearch
25710 do
25711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25712 echo "$as_me:$LINENO: checking for $ac_func" >&5
25713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25714 if eval "test \"\${$as_ac_var+set}\" = set"; then
25715   echo $ECHO_N "(cached) $ECHO_C" >&6
25716 else
25717   cat >conftest.$ac_ext <<_ACEOF
25718 #line $LINENO "configure"
25719 /* confdefs.h.  */
25720 _ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h.  */
25724 /* System header to define __stub macros and hopefully few prototypes,
25725     which can conflict with char $ac_func (); below.
25726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25727     <limits.h> exists even on freestanding compilers.  */
25728 #ifdef __STDC__
25729 # include <limits.h>
25730 #else
25731 # include <assert.h>
25732 #endif
25733 /* Override any gcc2 internal prototype to avoid an error.  */
25734 #ifdef __cplusplus
25735 extern "C"
25736 {
25737 #endif
25738 /* We use char because int might match the return type of a gcc2
25739    builtin and then its argument prototype would still apply.  */
25740 char $ac_func ();
25741 /* The GNU C library defines this for functions which it implements
25742     to always fail with ENOSYS.  Some functions are actually named
25743     something starting with __ and the normal name is an alias.  */
25744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25745 choke me
25746 #else
25747 char (*f) () = $ac_func;
25748 #endif
25749 #ifdef __cplusplus
25750 }
25751 #endif
25752
25753 int
25754 main ()
25755 {
25756 return f != $ac_func;
25757   ;
25758   return 0;
25759 }
25760 _ACEOF
25761 rm -f conftest.$ac_objext conftest$ac_exeext
25762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25763   (eval $ac_link) 2>&5
25764   ac_status=$?
25765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766   (exit $ac_status); } &&
25767          { ac_try='test -s conftest$ac_exeext'
25768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25769   (eval $ac_try) 2>&5
25770   ac_status=$?
25771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772   (exit $ac_status); }; }; then
25773   eval "$as_ac_var=yes"
25774 else
25775   echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25777
25778 eval "$as_ac_var=no"
25779 fi
25780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25781 fi
25782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25784 if test `eval echo '${'$as_ac_var'}'` = yes; then
25785   cat >>confdefs.h <<_ACEOF
25786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25787 _ACEOF
25788
25789 else
25790   echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
25791 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6
25792 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
25793   echo $ECHO_N "(cached) $ECHO_C" >&6
25794 else
25795   ac_check_lib_save_LIBS=$LIBS
25796 LIBS="-lcompat  $LIBS"
25797 cat >conftest.$ac_ext <<_ACEOF
25798 #line $LINENO "configure"
25799 /* confdefs.h.  */
25800 _ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h.  */
25804
25805 /* Override any gcc2 internal prototype to avoid an error.  */
25806 #ifdef __cplusplus
25807 extern "C"
25808 #endif
25809 /* We use char because int might match the return type of a gcc2
25810    builtin and then its argument prototype would still apply.  */
25811 char lsearch ();
25812 int
25813 main ()
25814 {
25815 lsearch ();
25816   ;
25817   return 0;
25818 }
25819 _ACEOF
25820 rm -f conftest.$ac_objext conftest$ac_exeext
25821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25822   (eval $ac_link) 2>&5
25823   ac_status=$?
25824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825   (exit $ac_status); } &&
25826          { ac_try='test -s conftest$ac_exeext'
25827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828   (eval $ac_try) 2>&5
25829   ac_status=$?
25830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831   (exit $ac_status); }; }; then
25832   ac_cv_lib_compat_lsearch=yes
25833 else
25834   echo "$as_me: failed program was:" >&5
25835 sed 's/^/| /' conftest.$ac_ext >&5
25836
25837 ac_cv_lib_compat_lsearch=no
25838 fi
25839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25840 LIBS=$ac_check_lib_save_LIBS
25841 fi
25842 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
25843 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6
25844 if test $ac_cv_lib_compat_lsearch = yes; then
25845   echo "$as_me:$LINENO: checking for search.h" >&5
25846 echo $ECHO_N "checking for search.h... $ECHO_C" >&6
25847 if test "${ac_cv_header_search_h+set}" = set; then
25848   echo $ECHO_N "(cached) $ECHO_C" >&6
25849 else
25850   cat >conftest.$ac_ext <<_ACEOF
25851 #line $LINENO "configure"
25852 /* confdefs.h.  */
25853 _ACEOF
25854 cat confdefs.h >>conftest.$ac_ext
25855 cat >>conftest.$ac_ext <<_ACEOF
25856 /* end confdefs.h.  */
25857 #include <search.h>
25858 _ACEOF
25859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25861   ac_status=$?
25862   grep -v '^ *+' conftest.er1 >conftest.err
25863   rm -f conftest.er1
25864   cat conftest.err >&5
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); } >/dev/null; then
25867   if test -s conftest.err; then
25868     ac_cpp_err=$ac_c_preproc_warn_flag
25869   else
25870     ac_cpp_err=
25871   fi
25872 else
25873   ac_cpp_err=yes
25874 fi
25875 if test -z "$ac_cpp_err"; then
25876   ac_cv_header_search_h=yes
25877 else
25878   echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25880
25881   ac_cv_header_search_h=no
25882 fi
25883 rm -f conftest.err conftest.$ac_ext
25884 fi
25885 echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
25886 echo "${ECHO_T}$ac_cv_header_search_h" >&6
25887 if test $ac_cv_header_search_h = yes; then
25888   cat >>confdefs.h <<\_ACEOF
25889 #define HAVE_LSEARCH 1
25890 _ACEOF
25891  LIBS="${LIBS} -lcompat"
25892 else
25893   LIBOBJS="$LIBOBJS lsearch.$ac_objext"
25894 fi
25895
25896
25897 else
25898   LIBOBJS="$LIBOBJS lsearch.$ac_objext"
25899 fi
25900
25901 fi
25902 done
25903
25904
25905 for ac_func in utimes
25906 do
25907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25908 echo "$as_me:$LINENO: checking for $ac_func" >&5
25909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25910 if eval "test \"\${$as_ac_var+set}\" = set"; then
25911   echo $ECHO_N "(cached) $ECHO_C" >&6
25912 else
25913   cat >conftest.$ac_ext <<_ACEOF
25914 #line $LINENO "configure"
25915 /* confdefs.h.  */
25916 _ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h.  */
25920 /* System header to define __stub macros and hopefully few prototypes,
25921     which can conflict with char $ac_func (); below.
25922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25923     <limits.h> exists even on freestanding compilers.  */
25924 #ifdef __STDC__
25925 # include <limits.h>
25926 #else
25927 # include <assert.h>
25928 #endif
25929 /* Override any gcc2 internal prototype to avoid an error.  */
25930 #ifdef __cplusplus
25931 extern "C"
25932 {
25933 #endif
25934 /* We use char because int might match the return type of a gcc2
25935    builtin and then its argument prototype would still apply.  */
25936 char $ac_func ();
25937 /* The GNU C library defines this for functions which it implements
25938     to always fail with ENOSYS.  Some functions are actually named
25939     something starting with __ and the normal name is an alias.  */
25940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25941 choke me
25942 #else
25943 char (*f) () = $ac_func;
25944 #endif
25945 #ifdef __cplusplus
25946 }
25947 #endif
25948
25949 int
25950 main ()
25951 {
25952 return f != $ac_func;
25953   ;
25954   return 0;
25955 }
25956 _ACEOF
25957 rm -f conftest.$ac_objext conftest$ac_exeext
25958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25959   (eval $ac_link) 2>&5
25960   ac_status=$?
25961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); } &&
25963          { ac_try='test -s conftest$ac_exeext'
25964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965   (eval $ac_try) 2>&5
25966   ac_status=$?
25967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968   (exit $ac_status); }; }; then
25969   eval "$as_ac_var=yes"
25970 else
25971   echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25973
25974 eval "$as_ac_var=no"
25975 fi
25976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25977 fi
25978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25980 if test `eval echo '${'$as_ac_var'}'` = yes; then
25981   cat >>confdefs.h <<_ACEOF
25982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25983 _ACEOF
25984
25985
25986 for ac_func in futimes futimesat
25987 do
25988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25989 echo "$as_me:$LINENO: checking for $ac_func" >&5
25990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25991 if eval "test \"\${$as_ac_var+set}\" = set"; then
25992   echo $ECHO_N "(cached) $ECHO_C" >&6
25993 else
25994   cat >conftest.$ac_ext <<_ACEOF
25995 #line $LINENO "configure"
25996 /* confdefs.h.  */
25997 _ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h.  */
26001 /* System header to define __stub macros and hopefully few prototypes,
26002     which can conflict with char $ac_func (); below.
26003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26004     <limits.h> exists even on freestanding compilers.  */
26005 #ifdef __STDC__
26006 # include <limits.h>
26007 #else
26008 # include <assert.h>
26009 #endif
26010 /* Override any gcc2 internal prototype to avoid an error.  */
26011 #ifdef __cplusplus
26012 extern "C"
26013 {
26014 #endif
26015 /* We use char because int might match the return type of a gcc2
26016    builtin and then its argument prototype would still apply.  */
26017 char $ac_func ();
26018 /* The GNU C library defines this for functions which it implements
26019     to always fail with ENOSYS.  Some functions are actually named
26020     something starting with __ and the normal name is an alias.  */
26021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26022 choke me
26023 #else
26024 char (*f) () = $ac_func;
26025 #endif
26026 #ifdef __cplusplus
26027 }
26028 #endif
26029
26030 int
26031 main ()
26032 {
26033 return f != $ac_func;
26034   ;
26035   return 0;
26036 }
26037 _ACEOF
26038 rm -f conftest.$ac_objext conftest$ac_exeext
26039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26040   (eval $ac_link) 2>&5
26041   ac_status=$?
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); } &&
26044          { ac_try='test -s conftest$ac_exeext'
26045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26046   (eval $ac_try) 2>&5
26047   ac_status=$?
26048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049   (exit $ac_status); }; }; then
26050   eval "$as_ac_var=yes"
26051 else
26052   echo "$as_me: failed program was:" >&5
26053 sed 's/^/| /' conftest.$ac_ext >&5
26054
26055 eval "$as_ac_var=no"
26056 fi
26057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26058 fi
26059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26061 if test `eval echo '${'$as_ac_var'}'` = yes; then
26062   cat >>confdefs.h <<_ACEOF
26063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26064 _ACEOF
26065  break
26066 fi
26067 done
26068
26069 else
26070
26071 for ac_func in futime
26072 do
26073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26074 echo "$as_me:$LINENO: checking for $ac_func" >&5
26075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26076 if eval "test \"\${$as_ac_var+set}\" = set"; then
26077   echo $ECHO_N "(cached) $ECHO_C" >&6
26078 else
26079   cat >conftest.$ac_ext <<_ACEOF
26080 #line $LINENO "configure"
26081 /* confdefs.h.  */
26082 _ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h.  */
26086 /* System header to define __stub macros and hopefully few prototypes,
26087     which can conflict with char $ac_func (); below.
26088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26089     <limits.h> exists even on freestanding compilers.  */
26090 #ifdef __STDC__
26091 # include <limits.h>
26092 #else
26093 # include <assert.h>
26094 #endif
26095 /* Override any gcc2 internal prototype to avoid an error.  */
26096 #ifdef __cplusplus
26097 extern "C"
26098 {
26099 #endif
26100 /* We use char because int might match the return type of a gcc2
26101    builtin and then its argument prototype would still apply.  */
26102 char $ac_func ();
26103 /* The GNU C library defines this for functions which it implements
26104     to always fail with ENOSYS.  Some functions are actually named
26105     something starting with __ and the normal name is an alias.  */
26106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26107 choke me
26108 #else
26109 char (*f) () = $ac_func;
26110 #endif
26111 #ifdef __cplusplus
26112 }
26113 #endif
26114
26115 int
26116 main ()
26117 {
26118 return f != $ac_func;
26119   ;
26120   return 0;
26121 }
26122 _ACEOF
26123 rm -f conftest.$ac_objext conftest$ac_exeext
26124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26125   (eval $ac_link) 2>&5
26126   ac_status=$?
26127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128   (exit $ac_status); } &&
26129          { ac_try='test -s conftest$ac_exeext'
26130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131   (eval $ac_try) 2>&5
26132   ac_status=$?
26133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134   (exit $ac_status); }; }; then
26135   eval "$as_ac_var=yes"
26136 else
26137   echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26139
26140 eval "$as_ac_var=no"
26141 fi
26142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26143 fi
26144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26146 if test `eval echo '${'$as_ac_var'}'` = yes; then
26147   cat >>confdefs.h <<_ACEOF
26148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26149 _ACEOF
26150
26151 fi
26152 done
26153  LIBOBJS="$LIBOBJS utimes.$ac_objext"
26154 fi
26155 done
26156
26157 echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
26158 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6
26159 if test "${sudo_cv_func_fnmatch+set}" = set; then
26160   echo $ECHO_N "(cached) $ECHO_C" >&6
26161 else
26162   rm -f conftestdata; > conftestdata
26163 if test "$cross_compiling" = yes; then
26164   sudo_cv_func_fnmatch=no
26165 else
26166   cat >conftest.$ac_ext <<_ACEOF
26167 #line $LINENO "configure"
26168 /* confdefs.h.  */
26169 _ACEOF
26170 cat confdefs.h >>conftest.$ac_ext
26171 cat >>conftest.$ac_ext <<_ACEOF
26172 /* end confdefs.h.  */
26173 #include <fnmatch.h>
26174 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
26175
26176 _ACEOF
26177 rm -f conftest$ac_exeext
26178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26179   (eval $ac_link) 2>&5
26180   ac_status=$?
26181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184   (eval $ac_try) 2>&5
26185   ac_status=$?
26186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187   (exit $ac_status); }; }; then
26188   sudo_cv_func_fnmatch=yes
26189 else
26190   echo "$as_me: program exited with status $ac_status" >&5
26191 echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26193
26194 ( exit $ac_status )
26195 sudo_cv_func_fnmatch=no
26196 fi
26197 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26198 fi
26199 rm -f core core.* *.core
26200 fi
26201 echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
26202 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6
26203 if test $sudo_cv_func_fnmatch = yes; then
26204   cat >>confdefs.h <<\_ACEOF
26205 #define HAVE_FNMATCH 1
26206 _ACEOF
26207
26208 else
26209   LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
26210 fi
26211
26212 echo "$as_me:$LINENO: checking for isblank" >&5
26213 echo $ECHO_N "checking for isblank... $ECHO_C" >&6
26214 if test "${sudo_cv_func_isblank+set}" = set; then
26215   echo $ECHO_N "(cached) $ECHO_C" >&6
26216 else
26217   cat >conftest.$ac_ext <<_ACEOF
26218 #line $LINENO "configure"
26219 /* confdefs.h.  */
26220 _ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h.  */
26224 #include <ctype.h>
26225 int
26226 main ()
26227 {
26228 (void)isblank(1);
26229   ;
26230   return 0;
26231 }
26232 _ACEOF
26233 rm -f conftest.$ac_objext conftest$ac_exeext
26234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26235   (eval $ac_link) 2>&5
26236   ac_status=$?
26237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238   (exit $ac_status); } &&
26239          { ac_try='test -s conftest$ac_exeext'
26240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241   (eval $ac_try) 2>&5
26242   ac_status=$?
26243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244   (exit $ac_status); }; }; then
26245   sudo_cv_func_isblank=yes
26246 else
26247   echo "$as_me: failed program was:" >&5
26248 sed 's/^/| /' conftest.$ac_ext >&5
26249
26250 sudo_cv_func_isblank=no
26251 fi
26252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26253 fi
26254 echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
26255 echo "${ECHO_T}$sudo_cv_func_isblank" >&6
26256
26257   if test "$sudo_cv_func_isblank" = "yes"; then
26258
26259 cat >>confdefs.h <<\_ACEOF
26260 #define HAVE_ISBLANK 1
26261 _ACEOF
26262
26263   fi
26264
26265
26266
26267
26268
26269
26270
26271 for ac_func in strerror strcasecmp sigaction strlcpy strlcat closefrom
26272 do
26273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26274 echo "$as_me:$LINENO: checking for $ac_func" >&5
26275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26276 if eval "test \"\${$as_ac_var+set}\" = set"; then
26277   echo $ECHO_N "(cached) $ECHO_C" >&6
26278 else
26279   cat >conftest.$ac_ext <<_ACEOF
26280 #line $LINENO "configure"
26281 /* confdefs.h.  */
26282 _ACEOF
26283 cat confdefs.h >>conftest.$ac_ext
26284 cat >>conftest.$ac_ext <<_ACEOF
26285 /* end confdefs.h.  */
26286 /* System header to define __stub macros and hopefully few prototypes,
26287     which can conflict with char $ac_func (); below.
26288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26289     <limits.h> exists even on freestanding compilers.  */
26290 #ifdef __STDC__
26291 # include <limits.h>
26292 #else
26293 # include <assert.h>
26294 #endif
26295 /* Override any gcc2 internal prototype to avoid an error.  */
26296 #ifdef __cplusplus
26297 extern "C"
26298 {
26299 #endif
26300 /* We use char because int might match the return type of a gcc2
26301    builtin and then its argument prototype would still apply.  */
26302 char $ac_func ();
26303 /* The GNU C library defines this for functions which it implements
26304     to always fail with ENOSYS.  Some functions are actually named
26305     something starting with __ and the normal name is an alias.  */
26306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26307 choke me
26308 #else
26309 char (*f) () = $ac_func;
26310 #endif
26311 #ifdef __cplusplus
26312 }
26313 #endif
26314
26315 int
26316 main ()
26317 {
26318 return f != $ac_func;
26319   ;
26320   return 0;
26321 }
26322 _ACEOF
26323 rm -f conftest.$ac_objext conftest$ac_exeext
26324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26325   (eval $ac_link) 2>&5
26326   ac_status=$?
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); } &&
26329          { ac_try='test -s conftest$ac_exeext'
26330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331   (eval $ac_try) 2>&5
26332   ac_status=$?
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); }; }; then
26335   eval "$as_ac_var=yes"
26336 else
26337   echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26339
26340 eval "$as_ac_var=no"
26341 fi
26342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26343 fi
26344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26346 if test `eval echo '${'$as_ac_var'}'` = yes; then
26347   cat >>confdefs.h <<_ACEOF
26348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26349 _ACEOF
26350
26351 else
26352   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26353 fi
26354 done
26355
26356
26357
26358
26359
26360
26361 for ac_func in snprintf vsnprintf asprintf vasprintf
26362 do
26363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26364 echo "$as_me:$LINENO: checking for $ac_func" >&5
26365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26366 if eval "test \"\${$as_ac_var+set}\" = set"; then
26367   echo $ECHO_N "(cached) $ECHO_C" >&6
26368 else
26369   cat >conftest.$ac_ext <<_ACEOF
26370 #line $LINENO "configure"
26371 /* confdefs.h.  */
26372 _ACEOF
26373 cat confdefs.h >>conftest.$ac_ext
26374 cat >>conftest.$ac_ext <<_ACEOF
26375 /* end confdefs.h.  */
26376 /* System header to define __stub macros and hopefully few prototypes,
26377     which can conflict with char $ac_func (); below.
26378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26379     <limits.h> exists even on freestanding compilers.  */
26380 #ifdef __STDC__
26381 # include <limits.h>
26382 #else
26383 # include <assert.h>
26384 #endif
26385 /* Override any gcc2 internal prototype to avoid an error.  */
26386 #ifdef __cplusplus
26387 extern "C"
26388 {
26389 #endif
26390 /* We use char because int might match the return type of a gcc2
26391    builtin and then its argument prototype would still apply.  */
26392 char $ac_func ();
26393 /* The GNU C library defines this for functions which it implements
26394     to always fail with ENOSYS.  Some functions are actually named
26395     something starting with __ and the normal name is an alias.  */
26396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26397 choke me
26398 #else
26399 char (*f) () = $ac_func;
26400 #endif
26401 #ifdef __cplusplus
26402 }
26403 #endif
26404
26405 int
26406 main ()
26407 {
26408 return f != $ac_func;
26409   ;
26410   return 0;
26411 }
26412 _ACEOF
26413 rm -f conftest.$ac_objext conftest$ac_exeext
26414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26415   (eval $ac_link) 2>&5
26416   ac_status=$?
26417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418   (exit $ac_status); } &&
26419          { ac_try='test -s conftest$ac_exeext'
26420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421   (eval $ac_try) 2>&5
26422   ac_status=$?
26423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424   (exit $ac_status); }; }; then
26425   eval "$as_ac_var=yes"
26426 else
26427   echo "$as_me: failed program was:" >&5
26428 sed 's/^/| /' conftest.$ac_ext >&5
26429
26430 eval "$as_ac_var=no"
26431 fi
26432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26433 fi
26434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26436 if test `eval echo '${'$as_ac_var'}'` = yes; then
26437   cat >>confdefs.h <<_ACEOF
26438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26439 _ACEOF
26440
26441 else
26442   NEED_SNPRINTF=1
26443 fi
26444 done
26445
26446 if test X"$ac_cv_type_struct_timespec" != X"no"; then
26447     echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
26448 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6
26449 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
26450   echo $ECHO_N "(cached) $ECHO_C" >&6
26451 else
26452   cat >conftest.$ac_ext <<_ACEOF
26453 #line $LINENO "configure"
26454 /* confdefs.h.  */
26455 _ACEOF
26456 cat confdefs.h >>conftest.$ac_ext
26457 cat >>conftest.$ac_ext <<_ACEOF
26458 /* end confdefs.h.  */
26459 $ac_includes_default
26460 int
26461 main ()
26462 {
26463 static struct stat ac_aggr;
26464 if (ac_aggr.st_mtim)
26465 return 0;
26466   ;
26467   return 0;
26468 }
26469 _ACEOF
26470 rm -f conftest.$ac_objext
26471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26472   (eval $ac_compile) 2>&5
26473   ac_status=$?
26474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); } &&
26476          { ac_try='test -s conftest.$ac_objext'
26477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478   (eval $ac_try) 2>&5
26479   ac_status=$?
26480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481   (exit $ac_status); }; }; then
26482   ac_cv_member_struct_stat_st_mtim=yes
26483 else
26484   echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26486
26487 cat >conftest.$ac_ext <<_ACEOF
26488 #line $LINENO "configure"
26489 /* confdefs.h.  */
26490 _ACEOF
26491 cat confdefs.h >>conftest.$ac_ext
26492 cat >>conftest.$ac_ext <<_ACEOF
26493 /* end confdefs.h.  */
26494 $ac_includes_default
26495 int
26496 main ()
26497 {
26498 static struct stat ac_aggr;
26499 if (sizeof ac_aggr.st_mtim)
26500 return 0;
26501   ;
26502   return 0;
26503 }
26504 _ACEOF
26505 rm -f conftest.$ac_objext
26506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26507   (eval $ac_compile) 2>&5
26508   ac_status=$?
26509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); } &&
26511          { ac_try='test -s conftest.$ac_objext'
26512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26513   (eval $ac_try) 2>&5
26514   ac_status=$?
26515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516   (exit $ac_status); }; }; then
26517   ac_cv_member_struct_stat_st_mtim=yes
26518 else
26519   echo "$as_me: failed program was:" >&5
26520 sed 's/^/| /' conftest.$ac_ext >&5
26521
26522 ac_cv_member_struct_stat_st_mtim=no
26523 fi
26524 rm -f conftest.$ac_objext conftest.$ac_ext
26525 fi
26526 rm -f conftest.$ac_objext conftest.$ac_ext
26527 fi
26528 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
26529 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6
26530 if test $ac_cv_member_struct_stat_st_mtim = yes; then
26531   cat >>confdefs.h <<\_ACEOF
26532 #define HAVE_ST_MTIM 1
26533 _ACEOF
26534
26535 else
26536   echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
26537 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6
26538 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
26539   echo $ECHO_N "(cached) $ECHO_C" >&6
26540 else
26541   cat >conftest.$ac_ext <<_ACEOF
26542 #line $LINENO "configure"
26543 /* confdefs.h.  */
26544 _ACEOF
26545 cat confdefs.h >>conftest.$ac_ext
26546 cat >>conftest.$ac_ext <<_ACEOF
26547 /* end confdefs.h.  */
26548 $ac_includes_default
26549 int
26550 main ()
26551 {
26552 static struct stat ac_aggr;
26553 if (ac_aggr.st_mtimespec)
26554 return 0;
26555   ;
26556   return 0;
26557 }
26558 _ACEOF
26559 rm -f conftest.$ac_objext
26560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26561   (eval $ac_compile) 2>&5
26562   ac_status=$?
26563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564   (exit $ac_status); } &&
26565          { ac_try='test -s conftest.$ac_objext'
26566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26567   (eval $ac_try) 2>&5
26568   ac_status=$?
26569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570   (exit $ac_status); }; }; then
26571   ac_cv_member_struct_stat_st_mtimespec=yes
26572 else
26573   echo "$as_me: failed program was:" >&5
26574 sed 's/^/| /' conftest.$ac_ext >&5
26575
26576 cat >conftest.$ac_ext <<_ACEOF
26577 #line $LINENO "configure"
26578 /* confdefs.h.  */
26579 _ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h.  */
26583 $ac_includes_default
26584 int
26585 main ()
26586 {
26587 static struct stat ac_aggr;
26588 if (sizeof ac_aggr.st_mtimespec)
26589 return 0;
26590   ;
26591   return 0;
26592 }
26593 _ACEOF
26594 rm -f conftest.$ac_objext
26595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26596   (eval $ac_compile) 2>&5
26597   ac_status=$?
26598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599   (exit $ac_status); } &&
26600          { ac_try='test -s conftest.$ac_objext'
26601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602   (eval $ac_try) 2>&5
26603   ac_status=$?
26604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605   (exit $ac_status); }; }; then
26606   ac_cv_member_struct_stat_st_mtimespec=yes
26607 else
26608   echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26610
26611 ac_cv_member_struct_stat_st_mtimespec=no
26612 fi
26613 rm -f conftest.$ac_objext conftest.$ac_ext
26614 fi
26615 rm -f conftest.$ac_objext conftest.$ac_ext
26616 fi
26617 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
26618 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6
26619 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
26620   cat >>confdefs.h <<\_ACEOF
26621 #define HAVE_ST_MTIMESPEC 1
26622 _ACEOF
26623
26624 fi
26625
26626 fi
26627
26628     echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
26629 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6
26630     cat >conftest.$ac_ext <<_ACEOF
26631 #line $LINENO "configure"
26632 /* confdefs.h.  */
26633 _ACEOF
26634 cat confdefs.h >>conftest.$ac_ext
26635 cat >>conftest.$ac_ext <<_ACEOF
26636 /* end confdefs.h.  */
26637 #include <sys/types.h>
26638 #include <sys/time.h>
26639 int
26640 main ()
26641 {
26642 struct timespec ts1, ts2;
26643 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
26644 #ifndef timespecsub
26645 #error missing timespecsub
26646 #endif
26647 timespecsub(&ts1, &ts2);
26648   ;
26649   return 0;
26650 }
26651 _ACEOF
26652 rm -f conftest.$ac_objext
26653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26654   (eval $ac_compile) 2>&5
26655   ac_status=$?
26656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657   (exit $ac_status); } &&
26658          { ac_try='test -s conftest.$ac_objext'
26659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26660   (eval $ac_try) 2>&5
26661   ac_status=$?
26662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663   (exit $ac_status); }; }; then
26664   cat >>confdefs.h <<\_ACEOF
26665 #define HAVE_TIMESPECSUB2 1
26666 _ACEOF
26667
26668         echo "$as_me:$LINENO: result: yes" >&5
26669 echo "${ECHO_T}yes" >&6
26670 else
26671   echo "$as_me: failed program was:" >&5
26672 sed 's/^/| /' conftest.$ac_ext >&5
26673
26674 echo "$as_me:$LINENO: result: no" >&5
26675 echo "${ECHO_T}no" >&6
26676 fi
26677 rm -f conftest.$ac_objext conftest.$ac_ext
26678 fi
26679 cat >conftest.$ac_ext <<_ACEOF
26680 #line $LINENO "configure"
26681 /* confdefs.h.  */
26682 _ACEOF
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h.  */
26686 #include <sys/types.h>
26687 #include <$ac_header_dirent>
26688 int
26689 main ()
26690 {
26691 DIR d; (void)dirfd(&d);
26692   ;
26693   return 0;
26694 }
26695 _ACEOF
26696 rm -f conftest.$ac_objext conftest$ac_exeext
26697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26698   (eval $ac_link) 2>&5
26699   ac_status=$?
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); } &&
26702          { ac_try='test -s conftest$ac_exeext'
26703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704   (eval $ac_try) 2>&5
26705   ac_status=$?
26706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707   (exit $ac_status); }; }; then
26708   cat >>confdefs.h <<\_ACEOF
26709 #define HAVE_DIRFD 1
26710 _ACEOF
26711
26712 else
26713   echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26715
26716 cat >conftest.$ac_ext <<_ACEOF
26717 #line $LINENO "configure"
26718 /* confdefs.h.  */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h.  */
26723 #include <sys/types.h>
26724 #include <$ac_header_dirent>
26725 int
26726 main ()
26727 {
26728 DIR d; (void)&d.dd_fd;
26729   ;
26730   return 0;
26731 }
26732 _ACEOF
26733 rm -f conftest.$ac_objext conftest$ac_exeext
26734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26735   (eval $ac_link) 2>&5
26736   ac_status=$?
26737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738   (exit $ac_status); } &&
26739          { ac_try='test -s conftest$ac_exeext'
26740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26741   (eval $ac_try) 2>&5
26742   ac_status=$?
26743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744   (exit $ac_status); }; }; then
26745   cat >>confdefs.h <<\_ACEOF
26746 #define HAVE_DD_FD 1
26747 _ACEOF
26748
26749 else
26750   echo "$as_me: failed program was:" >&5
26751 sed 's/^/| /' conftest.$ac_ext >&5
26752
26753 fi
26754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26755 fi
26756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26757 if test -n "$NEED_SNPRINTF"; then
26758     LIBOBJS="$LIBOBJS snprintf.$ac_objext"
26759 fi
26760 if test -z "$LIB_CRYPT" -a "$with_pam" != "yes"; then
26761     echo "$as_me:$LINENO: checking for crypt" >&5
26762 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
26763 if test "${ac_cv_func_crypt+set}" = set; then
26764   echo $ECHO_N "(cached) $ECHO_C" >&6
26765 else
26766   cat >conftest.$ac_ext <<_ACEOF
26767 #line $LINENO "configure"
26768 /* confdefs.h.  */
26769 _ACEOF
26770 cat confdefs.h >>conftest.$ac_ext
26771 cat >>conftest.$ac_ext <<_ACEOF
26772 /* end confdefs.h.  */
26773 /* System header to define __stub macros and hopefully few prototypes,
26774     which can conflict with char crypt (); below.
26775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26776     <limits.h> exists even on freestanding compilers.  */
26777 #ifdef __STDC__
26778 # include <limits.h>
26779 #else
26780 # include <assert.h>
26781 #endif
26782 /* Override any gcc2 internal prototype to avoid an error.  */
26783 #ifdef __cplusplus
26784 extern "C"
26785 {
26786 #endif
26787 /* We use char because int might match the return type of a gcc2
26788    builtin and then its argument prototype would still apply.  */
26789 char crypt ();
26790 /* The GNU C library defines this for functions which it implements
26791     to always fail with ENOSYS.  Some functions are actually named
26792     something starting with __ and the normal name is an alias.  */
26793 #if defined (__stub_crypt) || defined (__stub___crypt)
26794 choke me
26795 #else
26796 char (*f) () = crypt;
26797 #endif
26798 #ifdef __cplusplus
26799 }
26800 #endif
26801
26802 int
26803 main ()
26804 {
26805 return f != crypt;
26806   ;
26807   return 0;
26808 }
26809 _ACEOF
26810 rm -f conftest.$ac_objext conftest$ac_exeext
26811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26812   (eval $ac_link) 2>&5
26813   ac_status=$?
26814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815   (exit $ac_status); } &&
26816          { ac_try='test -s conftest$ac_exeext'
26817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26818   (eval $ac_try) 2>&5
26819   ac_status=$?
26820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821   (exit $ac_status); }; }; then
26822   ac_cv_func_crypt=yes
26823 else
26824   echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26826
26827 ac_cv_func_crypt=no
26828 fi
26829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26830 fi
26831 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
26832 echo "${ECHO_T}$ac_cv_func_crypt" >&6
26833 if test $ac_cv_func_crypt = yes; then
26834   :
26835 else
26836   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
26837 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
26838 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
26839   echo $ECHO_N "(cached) $ECHO_C" >&6
26840 else
26841   ac_check_lib_save_LIBS=$LIBS
26842 LIBS="-lcrypt  $LIBS"
26843 cat >conftest.$ac_ext <<_ACEOF
26844 #line $LINENO "configure"
26845 /* confdefs.h.  */
26846 _ACEOF
26847 cat confdefs.h >>conftest.$ac_ext
26848 cat >>conftest.$ac_ext <<_ACEOF
26849 /* end confdefs.h.  */
26850
26851 /* Override any gcc2 internal prototype to avoid an error.  */
26852 #ifdef __cplusplus
26853 extern "C"
26854 #endif
26855 /* We use char because int might match the return type of a gcc2
26856    builtin and then its argument prototype would still apply.  */
26857 char crypt ();
26858 int
26859 main ()
26860 {
26861 crypt ();
26862   ;
26863   return 0;
26864 }
26865 _ACEOF
26866 rm -f conftest.$ac_objext conftest$ac_exeext
26867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26868   (eval $ac_link) 2>&5
26869   ac_status=$?
26870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871   (exit $ac_status); } &&
26872          { ac_try='test -s conftest$ac_exeext'
26873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26874   (eval $ac_try) 2>&5
26875   ac_status=$?
26876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877   (exit $ac_status); }; }; then
26878   ac_cv_lib_crypt_crypt=yes
26879 else
26880   echo "$as_me: failed program was:" >&5
26881 sed 's/^/| /' conftest.$ac_ext >&5
26882
26883 ac_cv_lib_crypt_crypt=no
26884 fi
26885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26886 LIBS=$ac_check_lib_save_LIBS
26887 fi
26888 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
26889 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
26890 if test $ac_cv_lib_crypt_crypt = yes; then
26891   SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
26892 else
26893   echo "$as_me:$LINENO: checking for crypt in -lcrypt_d" >&5
26894 echo $ECHO_N "checking for crypt in -lcrypt_d... $ECHO_C" >&6
26895 if test "${ac_cv_lib_crypt_d_crypt+set}" = set; then
26896   echo $ECHO_N "(cached) $ECHO_C" >&6
26897 else
26898   ac_check_lib_save_LIBS=$LIBS
26899 LIBS="-lcrypt_d  $LIBS"
26900 cat >conftest.$ac_ext <<_ACEOF
26901 #line $LINENO "configure"
26902 /* confdefs.h.  */
26903 _ACEOF
26904 cat confdefs.h >>conftest.$ac_ext
26905 cat >>conftest.$ac_ext <<_ACEOF
26906 /* end confdefs.h.  */
26907
26908 /* Override any gcc2 internal prototype to avoid an error.  */
26909 #ifdef __cplusplus
26910 extern "C"
26911 #endif
26912 /* We use char because int might match the return type of a gcc2
26913    builtin and then its argument prototype would still apply.  */
26914 char crypt ();
26915 int
26916 main ()
26917 {
26918 crypt ();
26919   ;
26920   return 0;
26921 }
26922 _ACEOF
26923 rm -f conftest.$ac_objext conftest$ac_exeext
26924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26925   (eval $ac_link) 2>&5
26926   ac_status=$?
26927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928   (exit $ac_status); } &&
26929          { ac_try='test -s conftest$ac_exeext'
26930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931   (eval $ac_try) 2>&5
26932   ac_status=$?
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); }; }; then
26935   ac_cv_lib_crypt_d_crypt=yes
26936 else
26937   echo "$as_me: failed program was:" >&5
26938 sed 's/^/| /' conftest.$ac_ext >&5
26939
26940 ac_cv_lib_crypt_d_crypt=no
26941 fi
26942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26943 LIBS=$ac_check_lib_save_LIBS
26944 fi
26945 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_d_crypt" >&5
26946 echo "${ECHO_T}$ac_cv_lib_crypt_d_crypt" >&6
26947 if test $ac_cv_lib_crypt_d_crypt = yes; then
26948   SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
26949 else
26950   echo "$as_me:$LINENO: checking for crypt in -lufc" >&5
26951 echo $ECHO_N "checking for crypt in -lufc... $ECHO_C" >&6
26952 if test "${ac_cv_lib_ufc_crypt+set}" = set; then
26953   echo $ECHO_N "(cached) $ECHO_C" >&6
26954 else
26955   ac_check_lib_save_LIBS=$LIBS
26956 LIBS="-lufc  $LIBS"
26957 cat >conftest.$ac_ext <<_ACEOF
26958 #line $LINENO "configure"
26959 /* confdefs.h.  */
26960 _ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h.  */
26964
26965 /* Override any gcc2 internal prototype to avoid an error.  */
26966 #ifdef __cplusplus
26967 extern "C"
26968 #endif
26969 /* We use char because int might match the return type of a gcc2
26970    builtin and then its argument prototype would still apply.  */
26971 char crypt ();
26972 int
26973 main ()
26974 {
26975 crypt ();
26976   ;
26977   return 0;
26978 }
26979 _ACEOF
26980 rm -f conftest.$ac_objext conftest$ac_exeext
26981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26982   (eval $ac_link) 2>&5
26983   ac_status=$?
26984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); } &&
26986          { ac_try='test -s conftest$ac_exeext'
26987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988   (eval $ac_try) 2>&5
26989   ac_status=$?
26990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991   (exit $ac_status); }; }; then
26992   ac_cv_lib_ufc_crypt=yes
26993 else
26994   echo "$as_me: failed program was:" >&5
26995 sed 's/^/| /' conftest.$ac_ext >&5
26996
26997 ac_cv_lib_ufc_crypt=no
26998 fi
26999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27000 LIBS=$ac_check_lib_save_LIBS
27001 fi
27002 echo "$as_me:$LINENO: result: $ac_cv_lib_ufc_crypt" >&5
27003 echo "${ECHO_T}$ac_cv_lib_ufc_crypt" >&6
27004 if test $ac_cv_lib_ufc_crypt = yes; then
27005   SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
27006 fi
27007
27008 fi
27009
27010 fi
27011
27012 fi
27013
27014 fi
27015 echo "$as_me:$LINENO: checking for socket" >&5
27016 echo $ECHO_N "checking for socket... $ECHO_C" >&6
27017 if test "${ac_cv_func_socket+set}" = set; then
27018   echo $ECHO_N "(cached) $ECHO_C" >&6
27019 else
27020   cat >conftest.$ac_ext <<_ACEOF
27021 #line $LINENO "configure"
27022 /* confdefs.h.  */
27023 _ACEOF
27024 cat confdefs.h >>conftest.$ac_ext
27025 cat >>conftest.$ac_ext <<_ACEOF
27026 /* end confdefs.h.  */
27027 /* System header to define __stub macros and hopefully few prototypes,
27028     which can conflict with char socket (); below.
27029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27030     <limits.h> exists even on freestanding compilers.  */
27031 #ifdef __STDC__
27032 # include <limits.h>
27033 #else
27034 # include <assert.h>
27035 #endif
27036 /* Override any gcc2 internal prototype to avoid an error.  */
27037 #ifdef __cplusplus
27038 extern "C"
27039 {
27040 #endif
27041 /* We use char because int might match the return type of a gcc2
27042    builtin and then its argument prototype would still apply.  */
27043 char socket ();
27044 /* The GNU C library defines this for functions which it implements
27045     to always fail with ENOSYS.  Some functions are actually named
27046     something starting with __ and the normal name is an alias.  */
27047 #if defined (__stub_socket) || defined (__stub___socket)
27048 choke me
27049 #else
27050 char (*f) () = socket;
27051 #endif
27052 #ifdef __cplusplus
27053 }
27054 #endif
27055
27056 int
27057 main ()
27058 {
27059 return f != socket;
27060   ;
27061   return 0;
27062 }
27063 _ACEOF
27064 rm -f conftest.$ac_objext conftest$ac_exeext
27065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27066   (eval $ac_link) 2>&5
27067   ac_status=$?
27068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); } &&
27070          { ac_try='test -s conftest$ac_exeext'
27071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072   (eval $ac_try) 2>&5
27073   ac_status=$?
27074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075   (exit $ac_status); }; }; then
27076   ac_cv_func_socket=yes
27077 else
27078   echo "$as_me: failed program was:" >&5
27079 sed 's/^/| /' conftest.$ac_ext >&5
27080
27081 ac_cv_func_socket=no
27082 fi
27083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27084 fi
27085 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
27086 echo "${ECHO_T}$ac_cv_func_socket" >&6
27087 if test $ac_cv_func_socket = yes; then
27088   :
27089 else
27090   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27091 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
27092 if test "${ac_cv_lib_socket_socket+set}" = set; then
27093   echo $ECHO_N "(cached) $ECHO_C" >&6
27094 else
27095   ac_check_lib_save_LIBS=$LIBS
27096 LIBS="-lsocket  $LIBS"
27097 cat >conftest.$ac_ext <<_ACEOF
27098 #line $LINENO "configure"
27099 /* confdefs.h.  */
27100 _ACEOF
27101 cat confdefs.h >>conftest.$ac_ext
27102 cat >>conftest.$ac_ext <<_ACEOF
27103 /* end confdefs.h.  */
27104
27105 /* Override any gcc2 internal prototype to avoid an error.  */
27106 #ifdef __cplusplus
27107 extern "C"
27108 #endif
27109 /* We use char because int might match the return type of a gcc2
27110    builtin and then its argument prototype would still apply.  */
27111 char socket ();
27112 int
27113 main ()
27114 {
27115 socket ();
27116   ;
27117   return 0;
27118 }
27119 _ACEOF
27120 rm -f conftest.$ac_objext conftest$ac_exeext
27121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27122   (eval $ac_link) 2>&5
27123   ac_status=$?
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); } &&
27126          { ac_try='test -s conftest$ac_exeext'
27127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128   (eval $ac_try) 2>&5
27129   ac_status=$?
27130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131   (exit $ac_status); }; }; then
27132   ac_cv_lib_socket_socket=yes
27133 else
27134   echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27136
27137 ac_cv_lib_socket_socket=no
27138 fi
27139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27140 LIBS=$ac_check_lib_save_LIBS
27141 fi
27142 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
27143 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
27144 if test $ac_cv_lib_socket_socket = yes; then
27145   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
27146 else
27147   echo "$as_me:$LINENO: checking for socket in -linet" >&5
27148 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
27149 if test "${ac_cv_lib_inet_socket+set}" = set; then
27150   echo $ECHO_N "(cached) $ECHO_C" >&6
27151 else
27152   ac_check_lib_save_LIBS=$LIBS
27153 LIBS="-linet  $LIBS"
27154 cat >conftest.$ac_ext <<_ACEOF
27155 #line $LINENO "configure"
27156 /* confdefs.h.  */
27157 _ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h.  */
27161
27162 /* Override any gcc2 internal prototype to avoid an error.  */
27163 #ifdef __cplusplus
27164 extern "C"
27165 #endif
27166 /* We use char because int might match the return type of a gcc2
27167    builtin and then its argument prototype would still apply.  */
27168 char socket ();
27169 int
27170 main ()
27171 {
27172 socket ();
27173   ;
27174   return 0;
27175 }
27176 _ACEOF
27177 rm -f conftest.$ac_objext conftest$ac_exeext
27178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27179   (eval $ac_link) 2>&5
27180   ac_status=$?
27181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182   (exit $ac_status); } &&
27183          { ac_try='test -s conftest$ac_exeext'
27184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27185   (eval $ac_try) 2>&5
27186   ac_status=$?
27187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188   (exit $ac_status); }; }; then
27189   ac_cv_lib_inet_socket=yes
27190 else
27191   echo "$as_me: failed program was:" >&5
27192 sed 's/^/| /' conftest.$ac_ext >&5
27193
27194 ac_cv_lib_inet_socket=no
27195 fi
27196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27197 LIBS=$ac_check_lib_save_LIBS
27198 fi
27199 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
27200 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
27201 if test $ac_cv_lib_inet_socket = yes; then
27202   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
27203 else
27204   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
27205 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
27206 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27207 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
27208 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
27209   echo $ECHO_N "(cached) $ECHO_C" >&6
27210 else
27211   ac_check_lib_save_LIBS=$LIBS
27212 LIBS="-lsocket -lnsl $LIBS"
27213 cat >conftest.$ac_ext <<_ACEOF
27214 #line $LINENO "configure"
27215 /* confdefs.h.  */
27216 _ACEOF
27217 cat confdefs.h >>conftest.$ac_ext
27218 cat >>conftest.$ac_ext <<_ACEOF
27219 /* end confdefs.h.  */
27220
27221 /* Override any gcc2 internal prototype to avoid an error.  */
27222 #ifdef __cplusplus
27223 extern "C"
27224 #endif
27225 /* We use char because int might match the return type of a gcc2
27226    builtin and then its argument prototype would still apply.  */
27227 char socket ();
27228 int
27229 main ()
27230 {
27231 socket ();
27232   ;
27233   return 0;
27234 }
27235 _ACEOF
27236 rm -f conftest.$ac_objext conftest$ac_exeext
27237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27238   (eval $ac_link) 2>&5
27239   ac_status=$?
27240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241   (exit $ac_status); } &&
27242          { ac_try='test -s conftest$ac_exeext'
27243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244   (eval $ac_try) 2>&5
27245   ac_status=$?
27246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247   (exit $ac_status); }; }; then
27248   ac_cv_lib_socket_socket_lnsl=yes
27249 else
27250   echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.$ac_ext >&5
27252
27253 ac_cv_lib_socket_socket_lnsl=no
27254 fi
27255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27256 LIBS=$ac_check_lib_save_LIBS
27257 fi
27258 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
27259 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6
27260 if test $ac_cv_lib_socket_socket_lnsl = yes; then
27261   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
27262 fi
27263
27264 fi
27265
27266 fi
27267
27268 fi
27269
27270 echo "$as_me:$LINENO: checking for inet_addr" >&5
27271 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
27272 if test "${ac_cv_func_inet_addr+set}" = set; then
27273   echo $ECHO_N "(cached) $ECHO_C" >&6
27274 else
27275   cat >conftest.$ac_ext <<_ACEOF
27276 #line $LINENO "configure"
27277 /* confdefs.h.  */
27278 _ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h.  */
27282 /* System header to define __stub macros and hopefully few prototypes,
27283     which can conflict with char inet_addr (); below.
27284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27285     <limits.h> exists even on freestanding compilers.  */
27286 #ifdef __STDC__
27287 # include <limits.h>
27288 #else
27289 # include <assert.h>
27290 #endif
27291 /* Override any gcc2 internal prototype to avoid an error.  */
27292 #ifdef __cplusplus
27293 extern "C"
27294 {
27295 #endif
27296 /* We use char because int might match the return type of a gcc2
27297    builtin and then its argument prototype would still apply.  */
27298 char inet_addr ();
27299 /* The GNU C library defines this for functions which it implements
27300     to always fail with ENOSYS.  Some functions are actually named
27301     something starting with __ and the normal name is an alias.  */
27302 #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
27303 choke me
27304 #else
27305 char (*f) () = inet_addr;
27306 #endif
27307 #ifdef __cplusplus
27308 }
27309 #endif
27310
27311 int
27312 main ()
27313 {
27314 return f != inet_addr;
27315   ;
27316   return 0;
27317 }
27318 _ACEOF
27319 rm -f conftest.$ac_objext conftest$ac_exeext
27320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27321   (eval $ac_link) 2>&5
27322   ac_status=$?
27323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); } &&
27325          { ac_try='test -s conftest$ac_exeext'
27326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327   (eval $ac_try) 2>&5
27328   ac_status=$?
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); }; }; then
27331   ac_cv_func_inet_addr=yes
27332 else
27333   echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27335
27336 ac_cv_func_inet_addr=no
27337 fi
27338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27339 fi
27340 echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
27341 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
27342 if test $ac_cv_func_inet_addr = yes; then
27343   :
27344 else
27345   echo "$as_me:$LINENO: checking for __inet_addr" >&5
27346 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6
27347 if test "${ac_cv_func___inet_addr+set}" = set; then
27348   echo $ECHO_N "(cached) $ECHO_C" >&6
27349 else
27350   cat >conftest.$ac_ext <<_ACEOF
27351 #line $LINENO "configure"
27352 /* confdefs.h.  */
27353 _ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h.  */
27357 /* System header to define __stub macros and hopefully few prototypes,
27358     which can conflict with char __inet_addr (); below.
27359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27360     <limits.h> exists even on freestanding compilers.  */
27361 #ifdef __STDC__
27362 # include <limits.h>
27363 #else
27364 # include <assert.h>
27365 #endif
27366 /* Override any gcc2 internal prototype to avoid an error.  */
27367 #ifdef __cplusplus
27368 extern "C"
27369 {
27370 #endif
27371 /* We use char because int might match the return type of a gcc2
27372    builtin and then its argument prototype would still apply.  */
27373 char __inet_addr ();
27374 /* The GNU C library defines this for functions which it implements
27375     to always fail with ENOSYS.  Some functions are actually named
27376     something starting with __ and the normal name is an alias.  */
27377 #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
27378 choke me
27379 #else
27380 char (*f) () = __inet_addr;
27381 #endif
27382 #ifdef __cplusplus
27383 }
27384 #endif
27385
27386 int
27387 main ()
27388 {
27389 return f != __inet_addr;
27390   ;
27391   return 0;
27392 }
27393 _ACEOF
27394 rm -f conftest.$ac_objext conftest$ac_exeext
27395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27396   (eval $ac_link) 2>&5
27397   ac_status=$?
27398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399   (exit $ac_status); } &&
27400          { ac_try='test -s conftest$ac_exeext'
27401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27402   (eval $ac_try) 2>&5
27403   ac_status=$?
27404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405   (exit $ac_status); }; }; then
27406   ac_cv_func___inet_addr=yes
27407 else
27408   echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27410
27411 ac_cv_func___inet_addr=no
27412 fi
27413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27414 fi
27415 echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
27416 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6
27417 if test $ac_cv_func___inet_addr = yes; then
27418   :
27419 else
27420   echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
27421 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
27422 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
27423   echo $ECHO_N "(cached) $ECHO_C" >&6
27424 else
27425   ac_check_lib_save_LIBS=$LIBS
27426 LIBS="-lnsl  $LIBS"
27427 cat >conftest.$ac_ext <<_ACEOF
27428 #line $LINENO "configure"
27429 /* confdefs.h.  */
27430 _ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h.  */
27434
27435 /* Override any gcc2 internal prototype to avoid an error.  */
27436 #ifdef __cplusplus
27437 extern "C"
27438 #endif
27439 /* We use char because int might match the return type of a gcc2
27440    builtin and then its argument prototype would still apply.  */
27441 char inet_addr ();
27442 int
27443 main ()
27444 {
27445 inet_addr ();
27446   ;
27447   return 0;
27448 }
27449 _ACEOF
27450 rm -f conftest.$ac_objext conftest$ac_exeext
27451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27452   (eval $ac_link) 2>&5
27453   ac_status=$?
27454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455   (exit $ac_status); } &&
27456          { ac_try='test -s conftest$ac_exeext'
27457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27458   (eval $ac_try) 2>&5
27459   ac_status=$?
27460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461   (exit $ac_status); }; }; then
27462   ac_cv_lib_nsl_inet_addr=yes
27463 else
27464   echo "$as_me: failed program was:" >&5
27465 sed 's/^/| /' conftest.$ac_ext >&5
27466
27467 ac_cv_lib_nsl_inet_addr=no
27468 fi
27469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27470 LIBS=$ac_check_lib_save_LIBS
27471 fi
27472 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
27473 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
27474 if test $ac_cv_lib_nsl_inet_addr = yes; then
27475   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
27476 else
27477   echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
27478 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6
27479 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
27480   echo $ECHO_N "(cached) $ECHO_C" >&6
27481 else
27482   ac_check_lib_save_LIBS=$LIBS
27483 LIBS="-linet  $LIBS"
27484 cat >conftest.$ac_ext <<_ACEOF
27485 #line $LINENO "configure"
27486 /* confdefs.h.  */
27487 _ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h.  */
27491
27492 /* Override any gcc2 internal prototype to avoid an error.  */
27493 #ifdef __cplusplus
27494 extern "C"
27495 #endif
27496 /* We use char because int might match the return type of a gcc2
27497    builtin and then its argument prototype would still apply.  */
27498 char inet_addr ();
27499 int
27500 main ()
27501 {
27502 inet_addr ();
27503   ;
27504   return 0;
27505 }
27506 _ACEOF
27507 rm -f conftest.$ac_objext conftest$ac_exeext
27508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27509   (eval $ac_link) 2>&5
27510   ac_status=$?
27511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512   (exit $ac_status); } &&
27513          { ac_try='test -s conftest$ac_exeext'
27514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515   (eval $ac_try) 2>&5
27516   ac_status=$?
27517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518   (exit $ac_status); }; }; then
27519   ac_cv_lib_inet_inet_addr=yes
27520 else
27521   echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27523
27524 ac_cv_lib_inet_inet_addr=no
27525 fi
27526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27527 LIBS=$ac_check_lib_save_LIBS
27528 fi
27529 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
27530 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6
27531 if test $ac_cv_lib_inet_inet_addr = yes; then
27532   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
27533 else
27534   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
27535 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
27536 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
27537 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
27538 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
27539   echo $ECHO_N "(cached) $ECHO_C" >&6
27540 else
27541   ac_check_lib_save_LIBS=$LIBS
27542 LIBS="-lsocket -lnsl $LIBS"
27543 cat >conftest.$ac_ext <<_ACEOF
27544 #line $LINENO "configure"
27545 /* confdefs.h.  */
27546 _ACEOF
27547 cat confdefs.h >>conftest.$ac_ext
27548 cat >>conftest.$ac_ext <<_ACEOF
27549 /* end confdefs.h.  */
27550
27551 /* Override any gcc2 internal prototype to avoid an error.  */
27552 #ifdef __cplusplus
27553 extern "C"
27554 #endif
27555 /* We use char because int might match the return type of a gcc2
27556    builtin and then its argument prototype would still apply.  */
27557 char inet_addr ();
27558 int
27559 main ()
27560 {
27561 inet_addr ();
27562   ;
27563   return 0;
27564 }
27565 _ACEOF
27566 rm -f conftest.$ac_objext conftest$ac_exeext
27567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27568   (eval $ac_link) 2>&5
27569   ac_status=$?
27570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571   (exit $ac_status); } &&
27572          { ac_try='test -s conftest$ac_exeext'
27573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27574   (eval $ac_try) 2>&5
27575   ac_status=$?
27576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577   (exit $ac_status); }; }; then
27578   ac_cv_lib_socket_inet_addr_lnsl=yes
27579 else
27580   echo "$as_me: failed program was:" >&5
27581 sed 's/^/| /' conftest.$ac_ext >&5
27582
27583 ac_cv_lib_socket_inet_addr_lnsl=no
27584 fi
27585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27586 LIBS=$ac_check_lib_save_LIBS
27587 fi
27588 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
27589 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6
27590 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
27591   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
27592 fi
27593
27594 fi
27595
27596 fi
27597
27598 fi
27599
27600 fi
27601
27602 echo "$as_me:$LINENO: checking for syslog" >&5
27603 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
27604 if test "${ac_cv_func_syslog+set}" = set; then
27605   echo $ECHO_N "(cached) $ECHO_C" >&6
27606 else
27607   cat >conftest.$ac_ext <<_ACEOF
27608 #line $LINENO "configure"
27609 /* confdefs.h.  */
27610 _ACEOF
27611 cat confdefs.h >>conftest.$ac_ext
27612 cat >>conftest.$ac_ext <<_ACEOF
27613 /* end confdefs.h.  */
27614 /* System header to define __stub macros and hopefully few prototypes,
27615     which can conflict with char syslog (); below.
27616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27617     <limits.h> exists even on freestanding compilers.  */
27618 #ifdef __STDC__
27619 # include <limits.h>
27620 #else
27621 # include <assert.h>
27622 #endif
27623 /* Override any gcc2 internal prototype to avoid an error.  */
27624 #ifdef __cplusplus
27625 extern "C"
27626 {
27627 #endif
27628 /* We use char because int might match the return type of a gcc2
27629    builtin and then its argument prototype would still apply.  */
27630 char syslog ();
27631 /* The GNU C library defines this for functions which it implements
27632     to always fail with ENOSYS.  Some functions are actually named
27633     something starting with __ and the normal name is an alias.  */
27634 #if defined (__stub_syslog) || defined (__stub___syslog)
27635 choke me
27636 #else
27637 char (*f) () = syslog;
27638 #endif
27639 #ifdef __cplusplus
27640 }
27641 #endif
27642
27643 int
27644 main ()
27645 {
27646 return f != syslog;
27647   ;
27648   return 0;
27649 }
27650 _ACEOF
27651 rm -f conftest.$ac_objext conftest$ac_exeext
27652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27653   (eval $ac_link) 2>&5
27654   ac_status=$?
27655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656   (exit $ac_status); } &&
27657          { ac_try='test -s conftest$ac_exeext'
27658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659   (eval $ac_try) 2>&5
27660   ac_status=$?
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); }; }; then
27663   ac_cv_func_syslog=yes
27664 else
27665   echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27667
27668 ac_cv_func_syslog=no
27669 fi
27670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27671 fi
27672 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
27673 echo "${ECHO_T}$ac_cv_func_syslog" >&6
27674 if test $ac_cv_func_syslog = yes; then
27675   :
27676 else
27677   echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
27678 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6
27679 if test "${ac_cv_lib_socket_syslog+set}" = set; then
27680   echo $ECHO_N "(cached) $ECHO_C" >&6
27681 else
27682   ac_check_lib_save_LIBS=$LIBS
27683 LIBS="-lsocket  $LIBS"
27684 cat >conftest.$ac_ext <<_ACEOF
27685 #line $LINENO "configure"
27686 /* confdefs.h.  */
27687 _ACEOF
27688 cat confdefs.h >>conftest.$ac_ext
27689 cat >>conftest.$ac_ext <<_ACEOF
27690 /* end confdefs.h.  */
27691
27692 /* Override any gcc2 internal prototype to avoid an error.  */
27693 #ifdef __cplusplus
27694 extern "C"
27695 #endif
27696 /* We use char because int might match the return type of a gcc2
27697    builtin and then its argument prototype would still apply.  */
27698 char syslog ();
27699 int
27700 main ()
27701 {
27702 syslog ();
27703   ;
27704   return 0;
27705 }
27706 _ACEOF
27707 rm -f conftest.$ac_objext conftest$ac_exeext
27708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27709   (eval $ac_link) 2>&5
27710   ac_status=$?
27711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712   (exit $ac_status); } &&
27713          { ac_try='test -s conftest$ac_exeext'
27714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715   (eval $ac_try) 2>&5
27716   ac_status=$?
27717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718   (exit $ac_status); }; }; then
27719   ac_cv_lib_socket_syslog=yes
27720 else
27721   echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27723
27724 ac_cv_lib_socket_syslog=no
27725 fi
27726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27727 LIBS=$ac_check_lib_save_LIBS
27728 fi
27729 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
27730 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6
27731 if test $ac_cv_lib_socket_syslog = yes; then
27732   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
27733 else
27734   echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
27735 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6
27736 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
27737   echo $ECHO_N "(cached) $ECHO_C" >&6
27738 else
27739   ac_check_lib_save_LIBS=$LIBS
27740 LIBS="-lnsl  $LIBS"
27741 cat >conftest.$ac_ext <<_ACEOF
27742 #line $LINENO "configure"
27743 /* confdefs.h.  */
27744 _ACEOF
27745 cat confdefs.h >>conftest.$ac_ext
27746 cat >>conftest.$ac_ext <<_ACEOF
27747 /* end confdefs.h.  */
27748
27749 /* Override any gcc2 internal prototype to avoid an error.  */
27750 #ifdef __cplusplus
27751 extern "C"
27752 #endif
27753 /* We use char because int might match the return type of a gcc2
27754    builtin and then its argument prototype would still apply.  */
27755 char syslog ();
27756 int
27757 main ()
27758 {
27759 syslog ();
27760   ;
27761   return 0;
27762 }
27763 _ACEOF
27764 rm -f conftest.$ac_objext conftest$ac_exeext
27765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27766   (eval $ac_link) 2>&5
27767   ac_status=$?
27768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769   (exit $ac_status); } &&
27770          { ac_try='test -s conftest$ac_exeext'
27771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772   (eval $ac_try) 2>&5
27773   ac_status=$?
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); }; }; then
27776   ac_cv_lib_nsl_syslog=yes
27777 else
27778   echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27780
27781 ac_cv_lib_nsl_syslog=no
27782 fi
27783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27784 LIBS=$ac_check_lib_save_LIBS
27785 fi
27786 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
27787 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6
27788 if test $ac_cv_lib_nsl_syslog = yes; then
27789   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
27790 else
27791   echo "$as_me:$LINENO: checking for syslog in -linet" >&5
27792 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6
27793 if test "${ac_cv_lib_inet_syslog+set}" = set; then
27794   echo $ECHO_N "(cached) $ECHO_C" >&6
27795 else
27796   ac_check_lib_save_LIBS=$LIBS
27797 LIBS="-linet  $LIBS"
27798 cat >conftest.$ac_ext <<_ACEOF
27799 #line $LINENO "configure"
27800 /* confdefs.h.  */
27801 _ACEOF
27802 cat confdefs.h >>conftest.$ac_ext
27803 cat >>conftest.$ac_ext <<_ACEOF
27804 /* end confdefs.h.  */
27805
27806 /* Override any gcc2 internal prototype to avoid an error.  */
27807 #ifdef __cplusplus
27808 extern "C"
27809 #endif
27810 /* We use char because int might match the return type of a gcc2
27811    builtin and then its argument prototype would still apply.  */
27812 char syslog ();
27813 int
27814 main ()
27815 {
27816 syslog ();
27817   ;
27818   return 0;
27819 }
27820 _ACEOF
27821 rm -f conftest.$ac_objext conftest$ac_exeext
27822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27823   (eval $ac_link) 2>&5
27824   ac_status=$?
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); } &&
27827          { ac_try='test -s conftest$ac_exeext'
27828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829   (eval $ac_try) 2>&5
27830   ac_status=$?
27831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832   (exit $ac_status); }; }; then
27833   ac_cv_lib_inet_syslog=yes
27834 else
27835   echo "$as_me: failed program was:" >&5
27836 sed 's/^/| /' conftest.$ac_ext >&5
27837
27838 ac_cv_lib_inet_syslog=no
27839 fi
27840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27841 LIBS=$ac_check_lib_save_LIBS
27842 fi
27843 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
27844 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6
27845 if test $ac_cv_lib_inet_syslog = yes; then
27846   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
27847 fi
27848
27849 fi
27850
27851 fi
27852
27853 fi
27854
27855 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
27856     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27857 # for constant arguments.  Useless!
27858 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27859 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27860 if test "${ac_cv_working_alloca_h+set}" = set; then
27861   echo $ECHO_N "(cached) $ECHO_C" >&6
27862 else
27863   cat >conftest.$ac_ext <<_ACEOF
27864 #line $LINENO "configure"
27865 /* confdefs.h.  */
27866 _ACEOF
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h.  */
27870 #include <alloca.h>
27871 int
27872 main ()
27873 {
27874 char *p = (char *) alloca (2 * sizeof (int));
27875   ;
27876   return 0;
27877 }
27878 _ACEOF
27879 rm -f conftest.$ac_objext conftest$ac_exeext
27880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27881   (eval $ac_link) 2>&5
27882   ac_status=$?
27883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884   (exit $ac_status); } &&
27885          { ac_try='test -s conftest$ac_exeext'
27886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887   (eval $ac_try) 2>&5
27888   ac_status=$?
27889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890   (exit $ac_status); }; }; then
27891   ac_cv_working_alloca_h=yes
27892 else
27893   echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27895
27896 ac_cv_working_alloca_h=no
27897 fi
27898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27899 fi
27900 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27901 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27902 if test $ac_cv_working_alloca_h = yes; then
27903
27904 cat >>confdefs.h <<\_ACEOF
27905 #define HAVE_ALLOCA_H 1
27906 _ACEOF
27907
27908 fi
27909
27910 echo "$as_me:$LINENO: checking for alloca" >&5
27911 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27912 if test "${ac_cv_func_alloca_works+set}" = set; then
27913   echo $ECHO_N "(cached) $ECHO_C" >&6
27914 else
27915   cat >conftest.$ac_ext <<_ACEOF
27916 #line $LINENO "configure"
27917 /* confdefs.h.  */
27918 _ACEOF
27919 cat confdefs.h >>conftest.$ac_ext
27920 cat >>conftest.$ac_ext <<_ACEOF
27921 /* end confdefs.h.  */
27922 #ifdef __GNUC__
27923 # define alloca __builtin_alloca
27924 #else
27925 # ifdef _MSC_VER
27926 #  include <malloc.h>
27927 #  define alloca _alloca
27928 # else
27929 #  if HAVE_ALLOCA_H
27930 #   include <alloca.h>
27931 #  else
27932 #   ifdef _AIX
27933  #pragma alloca
27934 #   else
27935 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27936 char *alloca ();
27937 #    endif
27938 #   endif
27939 #  endif
27940 # endif
27941 #endif
27942
27943 int
27944 main ()
27945 {
27946 char *p = (char *) alloca (1);
27947   ;
27948   return 0;
27949 }
27950 _ACEOF
27951 rm -f conftest.$ac_objext conftest$ac_exeext
27952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27953   (eval $ac_link) 2>&5
27954   ac_status=$?
27955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956   (exit $ac_status); } &&
27957          { ac_try='test -s conftest$ac_exeext'
27958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27959   (eval $ac_try) 2>&5
27960   ac_status=$?
27961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962   (exit $ac_status); }; }; then
27963   ac_cv_func_alloca_works=yes
27964 else
27965   echo "$as_me: failed program was:" >&5
27966 sed 's/^/| /' conftest.$ac_ext >&5
27967
27968 ac_cv_func_alloca_works=no
27969 fi
27970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27971 fi
27972 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27973 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27974
27975 if test $ac_cv_func_alloca_works = yes; then
27976
27977 cat >>confdefs.h <<\_ACEOF
27978 #define HAVE_ALLOCA 1
27979 _ACEOF
27980
27981 else
27982   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27983 # that cause trouble.  Some versions do not even contain alloca or
27984 # contain a buggy version.  If you still want to use their alloca,
27985 # use ar to extract alloca.o from them instead of compiling alloca.c.
27986
27987 ALLOCA=alloca.$ac_objext
27988
27989 cat >>confdefs.h <<\_ACEOF
27990 #define C_ALLOCA 1
27991 _ACEOF
27992
27993
27994 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27995 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27996 if test "${ac_cv_os_cray+set}" = set; then
27997   echo $ECHO_N "(cached) $ECHO_C" >&6
27998 else
27999   cat >conftest.$ac_ext <<_ACEOF
28000 #line $LINENO "configure"
28001 /* confdefs.h.  */
28002 _ACEOF
28003 cat confdefs.h >>conftest.$ac_ext
28004 cat >>conftest.$ac_ext <<_ACEOF
28005 /* end confdefs.h.  */
28006 #if defined(CRAY) && ! defined(CRAY2)
28007 webecray
28008 #else
28009 wenotbecray
28010 #endif
28011
28012 _ACEOF
28013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28014   $EGREP "webecray" >/dev/null 2>&1; then
28015   ac_cv_os_cray=yes
28016 else
28017   ac_cv_os_cray=no
28018 fi
28019 rm -f conftest*
28020
28021 fi
28022 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28023 echo "${ECHO_T}$ac_cv_os_cray" >&6
28024 if test $ac_cv_os_cray = yes; then
28025   for ac_func in _getb67 GETB67 getb67; do
28026     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28027 echo "$as_me:$LINENO: checking for $ac_func" >&5
28028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28029 if eval "test \"\${$as_ac_var+set}\" = set"; then
28030   echo $ECHO_N "(cached) $ECHO_C" >&6
28031 else
28032   cat >conftest.$ac_ext <<_ACEOF
28033 #line $LINENO "configure"
28034 /* confdefs.h.  */
28035 _ACEOF
28036 cat confdefs.h >>conftest.$ac_ext
28037 cat >>conftest.$ac_ext <<_ACEOF
28038 /* end confdefs.h.  */
28039 /* System header to define __stub macros and hopefully few prototypes,
28040     which can conflict with char $ac_func (); below.
28041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28042     <limits.h> exists even on freestanding compilers.  */
28043 #ifdef __STDC__
28044 # include <limits.h>
28045 #else
28046 # include <assert.h>
28047 #endif
28048 /* Override any gcc2 internal prototype to avoid an error.  */
28049 #ifdef __cplusplus
28050 extern "C"
28051 {
28052 #endif
28053 /* We use char because int might match the return type of a gcc2
28054    builtin and then its argument prototype would still apply.  */
28055 char $ac_func ();
28056 /* The GNU C library defines this for functions which it implements
28057     to always fail with ENOSYS.  Some functions are actually named
28058     something starting with __ and the normal name is an alias.  */
28059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28060 choke me
28061 #else
28062 char (*f) () = $ac_func;
28063 #endif
28064 #ifdef __cplusplus
28065 }
28066 #endif
28067
28068 int
28069 main ()
28070 {
28071 return f != $ac_func;
28072   ;
28073   return 0;
28074 }
28075 _ACEOF
28076 rm -f conftest.$ac_objext conftest$ac_exeext
28077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28078   (eval $ac_link) 2>&5
28079   ac_status=$?
28080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081   (exit $ac_status); } &&
28082          { ac_try='test -s conftest$ac_exeext'
28083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084   (eval $ac_try) 2>&5
28085   ac_status=$?
28086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087   (exit $ac_status); }; }; then
28088   eval "$as_ac_var=yes"
28089 else
28090   echo "$as_me: failed program was:" >&5
28091 sed 's/^/| /' conftest.$ac_ext >&5
28092
28093 eval "$as_ac_var=no"
28094 fi
28095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28096 fi
28097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28099 if test `eval echo '${'$as_ac_var'}'` = yes; then
28100
28101 cat >>confdefs.h <<_ACEOF
28102 #define CRAY_STACKSEG_END $ac_func
28103 _ACEOF
28104
28105     break
28106 fi
28107
28108   done
28109 fi
28110
28111 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28112 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28113 if test "${ac_cv_c_stack_direction+set}" = set; then
28114   echo $ECHO_N "(cached) $ECHO_C" >&6
28115 else
28116   if test "$cross_compiling" = yes; then
28117   ac_cv_c_stack_direction=0
28118 else
28119   cat >conftest.$ac_ext <<_ACEOF
28120 #line $LINENO "configure"
28121 /* confdefs.h.  */
28122 _ACEOF
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h.  */
28126 int
28127 find_stack_direction ()
28128 {
28129   static char *addr = 0;
28130   auto char dummy;
28131   if (addr == 0)
28132     {
28133       addr = &dummy;
28134       return find_stack_direction ();
28135     }
28136   else
28137     return (&dummy > addr) ? 1 : -1;
28138 }
28139
28140 int
28141 main ()
28142 {
28143   exit (find_stack_direction () < 0);
28144 }
28145 _ACEOF
28146 rm -f conftest$ac_exeext
28147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28148   (eval $ac_link) 2>&5
28149   ac_status=$?
28150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28153   (eval $ac_try) 2>&5
28154   ac_status=$?
28155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156   (exit $ac_status); }; }; then
28157   ac_cv_c_stack_direction=1
28158 else
28159   echo "$as_me: program exited with status $ac_status" >&5
28160 echo "$as_me: failed program was:" >&5
28161 sed 's/^/| /' conftest.$ac_ext >&5
28162
28163 ( exit $ac_status )
28164 ac_cv_c_stack_direction=-1
28165 fi
28166 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28167 fi
28168 fi
28169 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28170 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28171
28172 cat >>confdefs.h <<_ACEOF
28173 #define STACK_DIRECTION $ac_cv_c_stack_direction
28174 _ACEOF
28175
28176
28177 fi
28178
28179 fi
28180
28181 for ac_func in getprogname
28182 do
28183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28184 echo "$as_me:$LINENO: checking for $ac_func" >&5
28185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28186 if eval "test \"\${$as_ac_var+set}\" = set"; then
28187   echo $ECHO_N "(cached) $ECHO_C" >&6
28188 else
28189   cat >conftest.$ac_ext <<_ACEOF
28190 #line $LINENO "configure"
28191 /* confdefs.h.  */
28192 _ACEOF
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h.  */
28196 /* System header to define __stub macros and hopefully few prototypes,
28197     which can conflict with char $ac_func (); below.
28198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28199     <limits.h> exists even on freestanding compilers.  */
28200 #ifdef __STDC__
28201 # include <limits.h>
28202 #else
28203 # include <assert.h>
28204 #endif
28205 /* Override any gcc2 internal prototype to avoid an error.  */
28206 #ifdef __cplusplus
28207 extern "C"
28208 {
28209 #endif
28210 /* We use char because int might match the return type of a gcc2
28211    builtin and then its argument prototype would still apply.  */
28212 char $ac_func ();
28213 /* The GNU C library defines this for functions which it implements
28214     to always fail with ENOSYS.  Some functions are actually named
28215     something starting with __ and the normal name is an alias.  */
28216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28217 choke me
28218 #else
28219 char (*f) () = $ac_func;
28220 #endif
28221 #ifdef __cplusplus
28222 }
28223 #endif
28224
28225 int
28226 main ()
28227 {
28228 return f != $ac_func;
28229   ;
28230   return 0;
28231 }
28232 _ACEOF
28233 rm -f conftest.$ac_objext conftest$ac_exeext
28234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28235   (eval $ac_link) 2>&5
28236   ac_status=$?
28237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); } &&
28239          { ac_try='test -s conftest$ac_exeext'
28240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28241   (eval $ac_try) 2>&5
28242   ac_status=$?
28243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244   (exit $ac_status); }; }; then
28245   eval "$as_ac_var=yes"
28246 else
28247   echo "$as_me: failed program was:" >&5
28248 sed 's/^/| /' conftest.$ac_ext >&5
28249
28250 eval "$as_ac_var=no"
28251 fi
28252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28253 fi
28254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28256 if test `eval echo '${'$as_ac_var'}'` = yes; then
28257   cat >>confdefs.h <<_ACEOF
28258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28259 _ACEOF
28260
28261 else
28262
28263     echo "$as_me:$LINENO: checking for __progname" >&5
28264 echo $ECHO_N "checking for __progname... $ECHO_C" >&6
28265     if test "${sudo_cv___progname+set}" = set; then
28266   echo $ECHO_N "(cached) $ECHO_C" >&6
28267 else
28268
28269     cat >conftest.$ac_ext <<_ACEOF
28270 #line $LINENO "configure"
28271 /* confdefs.h.  */
28272 _ACEOF
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h.  */
28276
28277 int
28278 main ()
28279 {
28280 extern char *__progname; (void)puts(__progname);
28281   ;
28282   return 0;
28283 }
28284 _ACEOF
28285 rm -f conftest.$ac_objext conftest$ac_exeext
28286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28287   (eval $ac_link) 2>&5
28288   ac_status=$?
28289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290   (exit $ac_status); } &&
28291          { ac_try='test -s conftest$ac_exeext'
28292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293   (eval $ac_try) 2>&5
28294   ac_status=$?
28295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296   (exit $ac_status); }; }; then
28297   sudo_cv___progname=yes
28298 else
28299   echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.$ac_ext >&5
28301
28302 sudo_cv___progname=no
28303 fi
28304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28305 fi
28306
28307     if test "$sudo_cv___progname" = "yes"; then
28308         cat >>confdefs.h <<\_ACEOF
28309 #define HAVE___PROGNAME 1
28310 _ACEOF
28311
28312     else
28313         LIBOBJS="$LIBOBJS getprogname.$ac_objext"
28314     fi
28315     echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
28316 echo "${ECHO_T}$sudo_cv___progname" >&6
28317
28318 fi
28319 done
28320
28321 if test -n "$with_kerb4"; then
28322     cat >>confdefs.h <<\_ACEOF
28323 #define HAVE_KERB4 1
28324 _ACEOF
28325
28326                 O_LDFLAGS="$LDFLAGS"
28327     if test "$with_kerb4" = "yes"; then
28328         found=no
28329         O_CPPFLAGS="$CPPFLAGS"
28330         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
28331             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
28332             cat >conftest.$ac_ext <<_ACEOF
28333 #include <krb.h>
28334 _ACEOF
28335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28336   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28337   ac_status=$?
28338   grep -v '^ *+' conftest.er1 >conftest.err
28339   rm -f conftest.er1
28340   cat conftest.err >&5
28341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342   (exit $ac_status); } >/dev/null; then
28343   if test -s conftest.err; then
28344     ac_cpp_err=$ac_c_preproc_warn_flag
28345   else
28346     ac_cpp_err=
28347   fi
28348 else
28349   ac_cpp_err=yes
28350 fi
28351 if test -z "$ac_cpp_err"; then
28352   found=yes; break
28353 else
28354   echo "$as_me: failed program was:" >&5
28355 sed 's/^/| /' conftest.$ac_ext >&5
28356
28357
28358 fi
28359 rm -f conftest.err conftest.$ac_ext
28360         done
28361         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
28362     else
28363
28364     if test X"$with_rpath" = X"yes"; then
28365         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
28366     else
28367         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
28368     fi
28369     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
28370         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
28371     fi
28372
28373
28374     if test X"$with_rpath" = X"yes"; then
28375         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
28376     else
28377         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
28378     fi
28379     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
28380         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
28381     fi
28382
28383         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
28384         if test "${ac_cv_header_krb_h+set}" = set; then
28385   echo "$as_me:$LINENO: checking for krb.h" >&5
28386 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
28387 if test "${ac_cv_header_krb_h+set}" = set; then
28388   echo $ECHO_N "(cached) $ECHO_C" >&6
28389 fi
28390 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
28391 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
28392 else
28393   # Is the header compilable?
28394 echo "$as_me:$LINENO: checking krb.h usability" >&5
28395 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
28396 cat >conftest.$ac_ext <<_ACEOF
28397 #line $LINENO "configure"
28398 /* confdefs.h.  */
28399 _ACEOF
28400 cat confdefs.h >>conftest.$ac_ext
28401 cat >>conftest.$ac_ext <<_ACEOF
28402 /* end confdefs.h.  */
28403 $ac_includes_default
28404 #include <krb.h>
28405 _ACEOF
28406 rm -f conftest.$ac_objext
28407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28408   (eval $ac_compile) 2>&5
28409   ac_status=$?
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); } &&
28412          { ac_try='test -s conftest.$ac_objext'
28413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28414   (eval $ac_try) 2>&5
28415   ac_status=$?
28416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417   (exit $ac_status); }; }; then
28418   ac_header_compiler=yes
28419 else
28420   echo "$as_me: failed program was:" >&5
28421 sed 's/^/| /' conftest.$ac_ext >&5
28422
28423 ac_header_compiler=no
28424 fi
28425 rm -f conftest.$ac_objext conftest.$ac_ext
28426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28427 echo "${ECHO_T}$ac_header_compiler" >&6
28428
28429 # Is the header present?
28430 echo "$as_me:$LINENO: checking krb.h presence" >&5
28431 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
28432 cat >conftest.$ac_ext <<_ACEOF
28433 #line $LINENO "configure"
28434 /* confdefs.h.  */
28435 _ACEOF
28436 cat confdefs.h >>conftest.$ac_ext
28437 cat >>conftest.$ac_ext <<_ACEOF
28438 /* end confdefs.h.  */
28439 #include <krb.h>
28440 _ACEOF
28441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28443   ac_status=$?
28444   grep -v '^ *+' conftest.er1 >conftest.err
28445   rm -f conftest.er1
28446   cat conftest.err >&5
28447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448   (exit $ac_status); } >/dev/null; then
28449   if test -s conftest.err; then
28450     ac_cpp_err=$ac_c_preproc_warn_flag
28451   else
28452     ac_cpp_err=
28453   fi
28454 else
28455   ac_cpp_err=yes
28456 fi
28457 if test -z "$ac_cpp_err"; then
28458   ac_header_preproc=yes
28459 else
28460   echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28462
28463   ac_header_preproc=no
28464 fi
28465 rm -f conftest.err conftest.$ac_ext
28466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28467 echo "${ECHO_T}$ac_header_preproc" >&6
28468
28469 # So?  What about this header?
28470 case $ac_header_compiler:$ac_header_preproc in
28471   yes:no )
28472     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
28473 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28474     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
28475 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
28476     (
28477       cat <<\_ASBOX
28478 ## ------------------------------------ ##
28479 ## Report this to bug-autoconf@gnu.org. ##
28480 ## ------------------------------------ ##
28481 _ASBOX
28482     ) |
28483       sed "s/^/$as_me: WARNING:     /" >&2
28484     ;;
28485   no:yes )
28486     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
28487 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
28488     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
28489 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
28490     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
28491 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
28492     (
28493       cat <<\_ASBOX
28494 ## ------------------------------------ ##
28495 ## Report this to bug-autoconf@gnu.org. ##
28496 ## ------------------------------------ ##
28497 _ASBOX
28498     ) |
28499       sed "s/^/$as_me: WARNING:     /" >&2
28500     ;;
28501 esac
28502 echo "$as_me:$LINENO: checking for krb.h" >&5
28503 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
28504 if test "${ac_cv_header_krb_h+set}" = set; then
28505   echo $ECHO_N "(cached) $ECHO_C" >&6
28506 else
28507   ac_cv_header_krb_h=$ac_header_preproc
28508 fi
28509 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
28510 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
28511
28512 fi
28513 if test $ac_cv_header_krb_h = yes; then
28514   found=yes
28515 else
28516   found=no
28517 fi
28518
28519
28520     fi
28521     if test X"$found" = X"no"; then
28522         { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
28523 echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
28524     fi
28525
28526                 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
28527 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
28528 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
28529   echo $ECHO_N "(cached) $ECHO_C" >&6
28530 else
28531   ac_check_lib_save_LIBS=$LIBS
28532 LIBS="-ldes  $LIBS"
28533 cat >conftest.$ac_ext <<_ACEOF
28534 #line $LINENO "configure"
28535 /* confdefs.h.  */
28536 _ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h.  */
28540
28541 /* Override any gcc2 internal prototype to avoid an error.  */
28542 #ifdef __cplusplus
28543 extern "C"
28544 #endif
28545 /* We use char because int might match the return type of a gcc2
28546    builtin and then its argument prototype would still apply.  */
28547 char des_cbc_encrypt ();
28548 int
28549 main ()
28550 {
28551 des_cbc_encrypt ();
28552   ;
28553   return 0;
28554 }
28555 _ACEOF
28556 rm -f conftest.$ac_objext conftest$ac_exeext
28557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28558   (eval $ac_link) 2>&5
28559   ac_status=$?
28560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561   (exit $ac_status); } &&
28562          { ac_try='test -s conftest$ac_exeext'
28563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564   (eval $ac_try) 2>&5
28565   ac_status=$?
28566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567   (exit $ac_status); }; }; then
28568   ac_cv_lib_des_des_cbc_encrypt=yes
28569 else
28570   echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28572
28573 ac_cv_lib_des_des_cbc_encrypt=no
28574 fi
28575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28576 LIBS=$ac_check_lib_save_LIBS
28577 fi
28578 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
28579 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
28580 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
28581   K4LIBS="-ldes"
28582 else
28583
28584         echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
28585 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
28586 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
28587   echo $ECHO_N "(cached) $ECHO_C" >&6
28588 else
28589   ac_check_lib_save_LIBS=$LIBS
28590 LIBS="-ldes425  $LIBS"
28591 cat >conftest.$ac_ext <<_ACEOF
28592 #line $LINENO "configure"
28593 /* confdefs.h.  */
28594 _ACEOF
28595 cat confdefs.h >>conftest.$ac_ext
28596 cat >>conftest.$ac_ext <<_ACEOF
28597 /* end confdefs.h.  */
28598
28599 /* Override any gcc2 internal prototype to avoid an error.  */
28600 #ifdef __cplusplus
28601 extern "C"
28602 #endif
28603 /* We use char because int might match the return type of a gcc2
28604    builtin and then its argument prototype would still apply.  */
28605 char des_cbc_encrypt ();
28606 int
28607 main ()
28608 {
28609 des_cbc_encrypt ();
28610   ;
28611   return 0;
28612 }
28613 _ACEOF
28614 rm -f conftest.$ac_objext conftest$ac_exeext
28615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28616   (eval $ac_link) 2>&5
28617   ac_status=$?
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); } &&
28620          { ac_try='test -s conftest$ac_exeext'
28621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622   (eval $ac_try) 2>&5
28623   ac_status=$?
28624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625   (exit $ac_status); }; }; then
28626   ac_cv_lib_des425_des_cbc_encrypt=yes
28627 else
28628   echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.$ac_ext >&5
28630
28631 ac_cv_lib_des425_des_cbc_encrypt=no
28632 fi
28633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28634 LIBS=$ac_check_lib_save_LIBS
28635 fi
28636 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
28637 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
28638 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
28639   K4LIBS="-ldes425"
28640 else
28641   K4LIBS=""
28642 fi
28643
28644
28645 fi
28646
28647                 echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
28648 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6
28649     cat >conftest.$ac_ext <<_ACEOF
28650 #line $LINENO "configure"
28651 /* confdefs.h.  */
28652 _ACEOF
28653 cat confdefs.h >>conftest.$ac_ext
28654 cat >>conftest.$ac_ext <<_ACEOF
28655 /* end confdefs.h.  */
28656 #include <krb.h>
28657 int
28658 main ()
28659 {
28660 const char *tmp = krb4_version;
28661   ;
28662   return 0;
28663 }
28664 _ACEOF
28665 rm -f conftest.$ac_objext
28666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28667   (eval $ac_compile) 2>&5
28668   ac_status=$?
28669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670   (exit $ac_status); } &&
28671          { ac_try='test -s conftest.$ac_objext'
28672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28673   (eval $ac_try) 2>&5
28674   ac_status=$?
28675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676   (exit $ac_status); }; }; then
28677
28678             echo "$as_me:$LINENO: result: yes" >&5
28679 echo "${ECHO_T}yes" >&6
28680             K4LIBS="${K4LIBS} -lcom_err"
28681             echo "$as_me:$LINENO: checking for main in -lroken" >&5
28682 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
28683 if test "${ac_cv_lib_roken_main+set}" = set; then
28684   echo $ECHO_N "(cached) $ECHO_C" >&6
28685 else
28686   ac_check_lib_save_LIBS=$LIBS
28687 LIBS="-lroken  $LIBS"
28688 cat >conftest.$ac_ext <<_ACEOF
28689 #line $LINENO "configure"
28690 /* confdefs.h.  */
28691 _ACEOF
28692 cat confdefs.h >>conftest.$ac_ext
28693 cat >>conftest.$ac_ext <<_ACEOF
28694 /* end confdefs.h.  */
28695
28696
28697 int
28698 main ()
28699 {
28700 main ();
28701   ;
28702   return 0;
28703 }
28704 _ACEOF
28705 rm -f conftest.$ac_objext conftest$ac_exeext
28706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28707   (eval $ac_link) 2>&5
28708   ac_status=$?
28709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710   (exit $ac_status); } &&
28711          { ac_try='test -s conftest$ac_exeext'
28712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28713   (eval $ac_try) 2>&5
28714   ac_status=$?
28715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716   (exit $ac_status); }; }; then
28717   ac_cv_lib_roken_main=yes
28718 else
28719   echo "$as_me: failed program was:" >&5
28720 sed 's/^/| /' conftest.$ac_ext >&5
28721
28722 ac_cv_lib_roken_main=no
28723 fi
28724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28725 LIBS=$ac_check_lib_save_LIBS
28726 fi
28727 echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
28728 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
28729 if test $ac_cv_lib_roken_main = yes; then
28730   K4LIBS="${K4LIBS} -lroken"
28731 fi
28732
28733
28734 else
28735   echo "$as_me: failed program was:" >&5
28736 sed 's/^/| /' conftest.$ac_ext >&5
28737
28738
28739             echo "$as_me:$LINENO: result: no" >&5
28740 echo "${ECHO_T}no" >&6
28741
28742
28743 fi
28744 rm -f conftest.$ac_objext conftest.$ac_ext
28745                 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
28746 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
28747 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
28748 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28749   echo $ECHO_N "(cached) $ECHO_C" >&6
28750 else
28751   ac_check_lib_save_LIBS=$LIBS
28752 LIBS="-lkrb $K4LIBS $LIBS"
28753 cat >conftest.$ac_ext <<_ACEOF
28754 #line $LINENO "configure"
28755 /* confdefs.h.  */
28756 _ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h.  */
28760
28761
28762 int
28763 main ()
28764 {
28765 main ();
28766   ;
28767   return 0;
28768 }
28769 _ACEOF
28770 rm -f conftest.$ac_objext conftest$ac_exeext
28771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28772   (eval $ac_link) 2>&5
28773   ac_status=$?
28774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775   (exit $ac_status); } &&
28776          { ac_try='test -s conftest$ac_exeext'
28777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778   (eval $ac_try) 2>&5
28779   ac_status=$?
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); }; }; then
28782   eval "$as_ac_Lib=yes"
28783 else
28784   echo "$as_me: failed program was:" >&5
28785 sed 's/^/| /' conftest.$ac_ext >&5
28786
28787 eval "$as_ac_Lib=no"
28788 fi
28789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28790 LIBS=$ac_check_lib_save_LIBS
28791 fi
28792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28793 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28794 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28795   K4LIBS="-lkrb $K4LIBS"
28796 else
28797
28798         as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
28799 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28800 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28801 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28802   echo $ECHO_N "(cached) $ECHO_C" >&6
28803 else
28804   ac_check_lib_save_LIBS=$LIBS
28805 LIBS="-lkrb4 $K4LIBS $LIBS"
28806 cat >conftest.$ac_ext <<_ACEOF
28807 #line $LINENO "configure"
28808 /* confdefs.h.  */
28809 _ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h.  */
28813
28814
28815 int
28816 main ()
28817 {
28818 main ();
28819   ;
28820   return 0;
28821 }
28822 _ACEOF
28823 rm -f conftest.$ac_objext conftest$ac_exeext
28824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28825   (eval $ac_link) 2>&5
28826   ac_status=$?
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); } &&
28829          { ac_try='test -s conftest$ac_exeext'
28830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831   (eval $ac_try) 2>&5
28832   ac_status=$?
28833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834   (exit $ac_status); }; }; then
28835   eval "$as_ac_Lib=yes"
28836 else
28837   echo "$as_me: failed program was:" >&5
28838 sed 's/^/| /' conftest.$ac_ext >&5
28839
28840 eval "$as_ac_Lib=no"
28841 fi
28842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28843 LIBS=$ac_check_lib_save_LIBS
28844 fi
28845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28846 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28847 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28848   K4LIBS="-lkrb4 $K4LIBS"
28849 else
28850   K4LIBS="-lkrb $K4LIBS"
28851             { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
28852 echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
28853
28854 fi
28855
28856
28857 fi
28858
28859     LDFLAGS="$O_LDFLAGS"
28860     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
28861     AUTH_OBJS="${AUTH_OBJS} kerb4.o"
28862 fi
28863
28864 if test "$with_kerb5" = "yes"; then
28865     # Extract the first word of "krb5-config", so it can be a program name with args.
28866 set dummy krb5-config; ac_word=$2
28867 echo "$as_me:$LINENO: checking for $ac_word" >&5
28868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28869 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
28870   echo $ECHO_N "(cached) $ECHO_C" >&6
28871 else
28872   if test -n "$KRB5CONFIG"; then
28873   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
28874 else
28875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28876 for as_dir in $PATH
28877 do
28878   IFS=$as_save_IFS
28879   test -z "$as_dir" && as_dir=.
28880   for ac_exec_ext in '' $ac_executable_extensions; do
28881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28882     ac_cv_prog_KRB5CONFIG="yes"
28883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28884     break 2
28885   fi
28886 done
28887 done
28888
28889   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
28890 fi
28891 fi
28892 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
28893 if test -n "$KRB5CONFIG"; then
28894   echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
28895 echo "${ECHO_T}$KRB5CONFIG" >&6
28896 else
28897   echo "$as_me:$LINENO: result: no" >&5
28898 echo "${ECHO_T}no" >&6
28899 fi
28900
28901     if test -n "$KRB5CONFIG"; then
28902         cat >>confdefs.h <<\_ACEOF
28903 #define HAVE_KERB5 1
28904 _ACEOF
28905
28906         AUTH_OBJS="${AUTH_OBJS} kerb5.o"
28907         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
28908         SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
28909                                 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
28910 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
28911         cat >conftest.$ac_ext <<_ACEOF
28912 #line $LINENO "configure"
28913 /* confdefs.h.  */
28914 _ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h.  */
28918 #include <krb5.h>
28919 int
28920 main ()
28921 {
28922 const char *tmp = heimdal_version;
28923   ;
28924   return 0;
28925 }
28926 _ACEOF
28927 rm -f conftest.$ac_objext
28928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28929   (eval $ac_compile) 2>&5
28930   ac_status=$?
28931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932   (exit $ac_status); } &&
28933          { ac_try='test -s conftest.$ac_objext'
28934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935   (eval $ac_try) 2>&5
28936   ac_status=$?
28937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938   (exit $ac_status); }; }; then
28939
28940                 echo "$as_me:$LINENO: result: yes" >&5
28941 echo "${ECHO_T}yes" >&6
28942                 cat >>confdefs.h <<\_ACEOF
28943 #define HAVE_HEIMDAL 1
28944 _ACEOF
28945
28946
28947
28948 else
28949   echo "$as_me: failed program was:" >&5
28950 sed 's/^/| /' conftest.$ac_ext >&5
28951
28952 fi
28953 rm -f conftest.$ac_objext conftest.$ac_ext
28954     fi
28955 fi
28956 if test -n "$with_kerb5" -a -z "$KRB5CONFIG"; then
28957     cat >>confdefs.h <<\_ACEOF
28958 #define HAVE_KERB5 1
28959 _ACEOF
28960
28961                 if test "$with_kerb5" = "yes"; then
28962         found=no
28963         O_CPPFLAGS="$CPPFLAGS"
28964         for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
28965             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
28966             cat >conftest.$ac_ext <<_ACEOF
28967 #include <krb5.h>
28968 _ACEOF
28969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28971   ac_status=$?
28972   grep -v '^ *+' conftest.er1 >conftest.err
28973   rm -f conftest.er1
28974   cat conftest.err >&5
28975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976   (exit $ac_status); } >/dev/null; then
28977   if test -s conftest.err; then
28978     ac_cpp_err=$ac_c_preproc_warn_flag
28979   else
28980     ac_cpp_err=
28981   fi
28982 else
28983   ac_cpp_err=yes
28984 fi
28985 if test -z "$ac_cpp_err"; then
28986   found=yes; break
28987 else
28988   echo "$as_me: failed program was:" >&5
28989 sed 's/^/| /' conftest.$ac_ext >&5
28990
28991
28992 fi
28993 rm -f conftest.err conftest.$ac_ext
28994         done
28995         if test X"$found" = X"no"; then
28996             CPPFLAGS="$O_CPPFLAGS"
28997             { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
28998 echo "$as_me: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
28999         fi
29000     else
29001
29002     if test X"$with_rpath" = X"yes"; then
29003         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
29004     else
29005         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
29006     fi
29007     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29008         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
29009     fi
29010
29011         CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
29012     fi
29013
29014                 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
29015 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
29016     cat >conftest.$ac_ext <<_ACEOF
29017 #line $LINENO "configure"
29018 /* confdefs.h.  */
29019 _ACEOF
29020 cat confdefs.h >>conftest.$ac_ext
29021 cat >>conftest.$ac_ext <<_ACEOF
29022 /* end confdefs.h.  */
29023 #include <krb5.h>
29024 int
29025 main ()
29026 {
29027 const char *tmp = heimdal_version;
29028   ;
29029   return 0;
29030 }
29031 _ACEOF
29032 rm -f conftest.$ac_objext
29033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29034   (eval $ac_compile) 2>&5
29035   ac_status=$?
29036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037   (exit $ac_status); } &&
29038          { ac_try='test -s conftest.$ac_objext'
29039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29040   (eval $ac_try) 2>&5
29041   ac_status=$?
29042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043   (exit $ac_status); }; }; then
29044
29045             echo "$as_me:$LINENO: result: yes" >&5
29046 echo "${ECHO_T}yes" >&6
29047             cat >>confdefs.h <<\_ACEOF
29048 #define HAVE_HEIMDAL 1
29049 _ACEOF
29050
29051             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -ldes -lcom_err -lasn1"
29052             echo "$as_me:$LINENO: checking for main in -lroken" >&5
29053 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
29054 if test "${ac_cv_lib_roken_main+set}" = set; then
29055   echo $ECHO_N "(cached) $ECHO_C" >&6
29056 else
29057   ac_check_lib_save_LIBS=$LIBS
29058 LIBS="-lroken  $LIBS"
29059 cat >conftest.$ac_ext <<_ACEOF
29060 #line $LINENO "configure"
29061 /* confdefs.h.  */
29062 _ACEOF
29063 cat confdefs.h >>conftest.$ac_ext
29064 cat >>conftest.$ac_ext <<_ACEOF
29065 /* end confdefs.h.  */
29066
29067
29068 int
29069 main ()
29070 {
29071 main ();
29072   ;
29073   return 0;
29074 }
29075 _ACEOF
29076 rm -f conftest.$ac_objext conftest$ac_exeext
29077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29078   (eval $ac_link) 2>&5
29079   ac_status=$?
29080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081   (exit $ac_status); } &&
29082          { ac_try='test -s conftest$ac_exeext'
29083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29084   (eval $ac_try) 2>&5
29085   ac_status=$?
29086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087   (exit $ac_status); }; }; then
29088   ac_cv_lib_roken_main=yes
29089 else
29090   echo "$as_me: failed program was:" >&5
29091 sed 's/^/| /' conftest.$ac_ext >&5
29092
29093 ac_cv_lib_roken_main=no
29094 fi
29095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29096 LIBS=$ac_check_lib_save_LIBS
29097 fi
29098 echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
29099 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
29100 if test $ac_cv_lib_roken_main = yes; then
29101   SUDO_LIBS="${SUDO_LIBS} -lroken"
29102 fi
29103
29104
29105 else
29106   echo "$as_me: failed program was:" >&5
29107 sed 's/^/| /' conftest.$ac_ext >&5
29108
29109
29110             echo "$as_me:$LINENO: result: no" >&5
29111 echo "${ECHO_T}no" >&6
29112             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
29113
29114
29115 fi
29116 rm -f conftest.$ac_objext conftest.$ac_ext
29117     AUTH_OBJS="${AUTH_OBJS} kerb5.o"
29118 fi
29119
29120 if test "$with_pam" = "yes"; then
29121                 echo "$as_me:$LINENO: checking for main in -ldl" >&5
29122 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
29123 if test "${ac_cv_lib_dl_main+set}" = set; then
29124   echo $ECHO_N "(cached) $ECHO_C" >&6
29125 else
29126   ac_check_lib_save_LIBS=$LIBS
29127 LIBS="-ldl  $LIBS"
29128 cat >conftest.$ac_ext <<_ACEOF
29129 #line $LINENO "configure"
29130 /* confdefs.h.  */
29131 _ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h.  */
29135
29136
29137 int
29138 main ()
29139 {
29140 main ();
29141   ;
29142   return 0;
29143 }
29144 _ACEOF
29145 rm -f conftest.$ac_objext conftest$ac_exeext
29146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29147   (eval $ac_link) 2>&5
29148   ac_status=$?
29149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150   (exit $ac_status); } &&
29151          { ac_try='test -s conftest$ac_exeext'
29152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29153   (eval $ac_try) 2>&5
29154   ac_status=$?
29155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156   (exit $ac_status); }; }; then
29157   ac_cv_lib_dl_main=yes
29158 else
29159   echo "$as_me: failed program was:" >&5
29160 sed 's/^/| /' conftest.$ac_ext >&5
29161
29162 ac_cv_lib_dl_main=no
29163 fi
29164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29165 LIBS=$ac_check_lib_save_LIBS
29166 fi
29167 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
29168 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
29169 if test $ac_cv_lib_dl_main = yes; then
29170   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
29171 else
29172   SUDO_LIBS="${SUDO_LIBS} -lpam"
29173 fi
29174 ac_cv_lib_dl=ac_cv_lib_dl_main
29175
29176
29177 for ac_header in pam/pam_appl.h
29178 do
29179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29181   echo "$as_me:$LINENO: checking for $ac_header" >&5
29182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29184   echo $ECHO_N "(cached) $ECHO_C" >&6
29185 fi
29186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29188 else
29189   # Is the header compilable?
29190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29192 cat >conftest.$ac_ext <<_ACEOF
29193 #line $LINENO "configure"
29194 /* confdefs.h.  */
29195 _ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h.  */
29199 $ac_includes_default
29200 #include <$ac_header>
29201 _ACEOF
29202 rm -f conftest.$ac_objext
29203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29204   (eval $ac_compile) 2>&5
29205   ac_status=$?
29206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207   (exit $ac_status); } &&
29208          { ac_try='test -s conftest.$ac_objext'
29209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210   (eval $ac_try) 2>&5
29211   ac_status=$?
29212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213   (exit $ac_status); }; }; then
29214   ac_header_compiler=yes
29215 else
29216   echo "$as_me: failed program was:" >&5
29217 sed 's/^/| /' conftest.$ac_ext >&5
29218
29219 ac_header_compiler=no
29220 fi
29221 rm -f conftest.$ac_objext conftest.$ac_ext
29222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29223 echo "${ECHO_T}$ac_header_compiler" >&6
29224
29225 # Is the header present?
29226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29228 cat >conftest.$ac_ext <<_ACEOF
29229 #line $LINENO "configure"
29230 /* confdefs.h.  */
29231 _ACEOF
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h.  */
29235 #include <$ac_header>
29236 _ACEOF
29237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29238   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29239   ac_status=$?
29240   grep -v '^ *+' conftest.er1 >conftest.err
29241   rm -f conftest.er1
29242   cat conftest.err >&5
29243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244   (exit $ac_status); } >/dev/null; then
29245   if test -s conftest.err; then
29246     ac_cpp_err=$ac_c_preproc_warn_flag
29247   else
29248     ac_cpp_err=
29249   fi
29250 else
29251   ac_cpp_err=yes
29252 fi
29253 if test -z "$ac_cpp_err"; then
29254   ac_header_preproc=yes
29255 else
29256   echo "$as_me: failed program was:" >&5
29257 sed 's/^/| /' conftest.$ac_ext >&5
29258
29259   ac_header_preproc=no
29260 fi
29261 rm -f conftest.err conftest.$ac_ext
29262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29263 echo "${ECHO_T}$ac_header_preproc" >&6
29264
29265 # So?  What about this header?
29266 case $ac_header_compiler:$ac_header_preproc in
29267   yes:no )
29268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29272     (
29273       cat <<\_ASBOX
29274 ## ------------------------------------ ##
29275 ## Report this to bug-autoconf@gnu.org. ##
29276 ## ------------------------------------ ##
29277 _ASBOX
29278     ) |
29279       sed "s/^/$as_me: WARNING:     /" >&2
29280     ;;
29281   no:yes )
29282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29284     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29288     (
29289       cat <<\_ASBOX
29290 ## ------------------------------------ ##
29291 ## Report this to bug-autoconf@gnu.org. ##
29292 ## ------------------------------------ ##
29293 _ASBOX
29294     ) |
29295       sed "s/^/$as_me: WARNING:     /" >&2
29296     ;;
29297 esac
29298 echo "$as_me:$LINENO: checking for $ac_header" >&5
29299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29301   echo $ECHO_N "(cached) $ECHO_C" >&6
29302 else
29303   eval "$as_ac_Header=$ac_header_preproc"
29304 fi
29305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29307
29308 fi
29309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29310   cat >>confdefs.h <<_ACEOF
29311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29312 _ACEOF
29313
29314 fi
29315
29316 done
29317
29318 fi
29319
29320 if test "$with_AFS" = "yes"; then
29321
29322     # looks like the "standard" place for AFS libs is /usr/afsws/lib
29323     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
29324     for i in $AFSLIBDIRS; do
29325         if test -d ${i}; then
29326
29327     if test X"$with_rpath" = X"yes"; then
29328         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
29329     else
29330         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
29331     fi
29332     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29333         blibpath_add="${blibpath_add}:$i"
29334     fi
29335
29336             FOUND_AFSLIBDIR=true
29337         fi
29338     done
29339     if test -z "$FOUND_AFSLIBDIR"; then
29340         { echo "$as_me:$LINENO: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&5
29341 echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
29342     fi
29343
29344     # Order is important here.  Note that we build AFS_LIBS from right to left
29345     # since AFS_LIBS may be initialized with BSD compat libs that must go last
29346     AFS_LIBS="-laudit ${AFS_LIBS}"
29347     for i in $AFSLIBDIRS; do
29348         if test -f ${i}/util.a; then
29349             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
29350             FOUND_UTIL_A=true
29351             break;
29352         fi
29353     done
29354     if test -z "$FOUND_UTIL_A"; then
29355         AFS_LIBS="-lutil ${AFS_LIBS}"
29356     fi
29357     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
29358
29359     # AFS includes may live in /usr/include on some machines...
29360     for i in /usr/afsws/include; do
29361         if test -d ${i}; then
29362             CPPFLAGS="${CPPFLAGS} -I${i}"
29363             FOUND_AFSINCDIR=true
29364         fi
29365     done
29366
29367     if test -z "$FOUND_AFSLIBDIR"; then
29368         { echo "$as_me:$LINENO: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&5
29369 echo "$as_me: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&2;}
29370     fi
29371 fi
29372
29373 if test "$with_DCE" = "yes"; then
29374     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
29375     SUDO_LIBS="${SUDO_LIBS} -ldce"
29376 fi
29377
29378 if test -n "$with_skey"; then
29379     O_LDFLAGS="$LDFLAGS"
29380     if test "$with_skey" != "yes"; then
29381         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
29382
29383     if test X"$with_rpath" = X"yes"; then
29384         LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
29385     else
29386         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
29387     fi
29388     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29389         blibpath_add="${blibpath_add}:${with_skey}/lib"
29390     fi
29391
29392
29393     if test X"$with_rpath" = X"yes"; then
29394         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
29395     else
29396         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
29397     fi
29398     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29399         blibpath_add="${blibpath_add}:${with_skey}/lib"
29400     fi
29401
29402         cat >conftest.$ac_ext <<_ACEOF
29403 #include <skey.h>
29404 _ACEOF
29405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29407   ac_status=$?
29408   grep -v '^ *+' conftest.er1 >conftest.err
29409   rm -f conftest.er1
29410   cat conftest.err >&5
29411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412   (exit $ac_status); } >/dev/null; then
29413   if test -s conftest.err; then
29414     ac_cpp_err=$ac_c_preproc_warn_flag
29415   else
29416     ac_cpp_err=
29417   fi
29418 else
29419   ac_cpp_err=yes
29420 fi
29421 if test -z "$ac_cpp_err"; then
29422   found=yes
29423 else
29424   echo "$as_me: failed program was:" >&5
29425 sed 's/^/| /' conftest.$ac_ext >&5
29426
29427   found=no
29428 fi
29429 rm -f conftest.err conftest.$ac_ext
29430     else
29431         found=no
29432         O_CPPFLAGS="$CPPFLAGS"
29433         for dir in "" "/usr/local" "/usr/contrib"; do
29434             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
29435             cat >conftest.$ac_ext <<_ACEOF
29436 #include <skey.h>
29437 _ACEOF
29438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29440   ac_status=$?
29441   grep -v '^ *+' conftest.er1 >conftest.err
29442   rm -f conftest.er1
29443   cat conftest.err >&5
29444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445   (exit $ac_status); } >/dev/null; then
29446   if test -s conftest.err; then
29447     ac_cpp_err=$ac_c_preproc_warn_flag
29448   else
29449     ac_cpp_err=
29450   fi
29451 else
29452   ac_cpp_err=yes
29453 fi
29454 if test -z "$ac_cpp_err"; then
29455   found=yes; break
29456 else
29457   echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.$ac_ext >&5
29459
29460
29461 fi
29462 rm -f conftest.err conftest.$ac_ext
29463         done
29464         if test "$found" = "no" -o -z "$dir"; then
29465             CPPFLAGS="$O_CPPFLAGS"
29466         else
29467
29468     if test X"$with_rpath" = X"yes"; then
29469         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
29470     else
29471         LDFLAGS="${LDFLAGS} -L${dir}/lib"
29472     fi
29473     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29474         blibpath_add="${blibpath_add}:${dir}/lib"
29475     fi
29476
29477
29478     if test X"$with_rpath" = X"yes"; then
29479         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
29480     else
29481         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
29482     fi
29483     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29484         blibpath_add="${blibpath_add}:${dir}/lib"
29485     fi
29486
29487         fi
29488     fi
29489     if test "$found" = "no"; then
29490         { echo "$as_me:$LINENO: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
29491 echo "$as_me: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&2;}
29492     fi
29493     echo "$as_me:$LINENO: checking for main in -lskey" >&5
29494 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6
29495 if test "${ac_cv_lib_skey_main+set}" = set; then
29496   echo $ECHO_N "(cached) $ECHO_C" >&6
29497 else
29498   ac_check_lib_save_LIBS=$LIBS
29499 LIBS="-lskey  $LIBS"
29500 cat >conftest.$ac_ext <<_ACEOF
29501 #line $LINENO "configure"
29502 /* confdefs.h.  */
29503 _ACEOF
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h.  */
29507
29508
29509 int
29510 main ()
29511 {
29512 main ();
29513   ;
29514   return 0;
29515 }
29516 _ACEOF
29517 rm -f conftest.$ac_objext conftest$ac_exeext
29518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29519   (eval $ac_link) 2>&5
29520   ac_status=$?
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); } &&
29523          { ac_try='test -s conftest$ac_exeext'
29524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525   (eval $ac_try) 2>&5
29526   ac_status=$?
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); }; }; then
29529   ac_cv_lib_skey_main=yes
29530 else
29531   echo "$as_me: failed program was:" >&5
29532 sed 's/^/| /' conftest.$ac_ext >&5
29533
29534 ac_cv_lib_skey_main=no
29535 fi
29536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29537 LIBS=$ac_check_lib_save_LIBS
29538 fi
29539 echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
29540 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6
29541 if test $ac_cv_lib_skey_main = yes; then
29542   found=yes
29543 else
29544   { echo "$as_me:$LINENO: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&5
29545 echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&2;}
29546 fi
29547
29548     echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
29549 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6
29550 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
29551   echo $ECHO_N "(cached) $ECHO_C" >&6
29552 else
29553   ac_check_lib_save_LIBS=$LIBS
29554 LIBS="-lskey  $LIBS"
29555 cat >conftest.$ac_ext <<_ACEOF
29556 #line $LINENO "configure"
29557 /* confdefs.h.  */
29558 _ACEOF
29559 cat confdefs.h >>conftest.$ac_ext
29560 cat >>conftest.$ac_ext <<_ACEOF
29561 /* end confdefs.h.  */
29562
29563 /* Override any gcc2 internal prototype to avoid an error.  */
29564 #ifdef __cplusplus
29565 extern "C"
29566 #endif
29567 /* We use char because int might match the return type of a gcc2
29568    builtin and then its argument prototype would still apply.  */
29569 char skeyaccess ();
29570 int
29571 main ()
29572 {
29573 skeyaccess ();
29574   ;
29575   return 0;
29576 }
29577 _ACEOF
29578 rm -f conftest.$ac_objext conftest$ac_exeext
29579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29580   (eval $ac_link) 2>&5
29581   ac_status=$?
29582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583   (exit $ac_status); } &&
29584          { ac_try='test -s conftest$ac_exeext'
29585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586   (eval $ac_try) 2>&5
29587   ac_status=$?
29588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589   (exit $ac_status); }; }; then
29590   ac_cv_lib_skey_skeyaccess=yes
29591 else
29592   echo "$as_me: failed program was:" >&5
29593 sed 's/^/| /' conftest.$ac_ext >&5
29594
29595 ac_cv_lib_skey_skeyaccess=no
29596 fi
29597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29598 LIBS=$ac_check_lib_save_LIBS
29599 fi
29600 echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
29601 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6
29602 if test $ac_cv_lib_skey_skeyaccess = yes; then
29603   cat >>confdefs.h <<\_ACEOF
29604 #define HAVE_SKEYACCESS 1
29605 _ACEOF
29606
29607 fi
29608
29609     LDFLAGS="$O_LDFLAGS"
29610     SUDO_LIBS="${SUDO_LIBS} -lskey"
29611 fi
29612
29613 if test -n "$with_opie"; then
29614     O_LDFLAGS="$LDFLAGS"
29615     if test "$with_opie" != "yes"; then
29616         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
29617
29618     if test X"$with_rpath" = X"yes"; then
29619         LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
29620     else
29621         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
29622     fi
29623     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29624         blibpath_add="${blibpath_add}:${with_opie}/lib"
29625     fi
29626
29627
29628     if test X"$with_rpath" = X"yes"; then
29629         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
29630     else
29631         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
29632     fi
29633     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29634         blibpath_add="${blibpath_add}:${with_opie}/lib"
29635     fi
29636
29637         cat >conftest.$ac_ext <<_ACEOF
29638 #include <opie.h>
29639 _ACEOF
29640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29642   ac_status=$?
29643   grep -v '^ *+' conftest.er1 >conftest.err
29644   rm -f conftest.er1
29645   cat conftest.err >&5
29646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647   (exit $ac_status); } >/dev/null; then
29648   if test -s conftest.err; then
29649     ac_cpp_err=$ac_c_preproc_warn_flag
29650   else
29651     ac_cpp_err=
29652   fi
29653 else
29654   ac_cpp_err=yes
29655 fi
29656 if test -z "$ac_cpp_err"; then
29657   found=yes
29658 else
29659   echo "$as_me: failed program was:" >&5
29660 sed 's/^/| /' conftest.$ac_ext >&5
29661
29662   found=no
29663 fi
29664 rm -f conftest.err conftest.$ac_ext
29665     else
29666         found=no
29667         O_CPPFLAGS="$CPPFLAGS"
29668         for dir in "" "/usr/local" "/usr/contrib"; do
29669             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
29670             cat >conftest.$ac_ext <<_ACEOF
29671 #include <opie.h>
29672 _ACEOF
29673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29674   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29675   ac_status=$?
29676   grep -v '^ *+' conftest.er1 >conftest.err
29677   rm -f conftest.er1
29678   cat conftest.err >&5
29679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680   (exit $ac_status); } >/dev/null; then
29681   if test -s conftest.err; then
29682     ac_cpp_err=$ac_c_preproc_warn_flag
29683   else
29684     ac_cpp_err=
29685   fi
29686 else
29687   ac_cpp_err=yes
29688 fi
29689 if test -z "$ac_cpp_err"; then
29690   found=yes; break
29691 else
29692   echo "$as_me: failed program was:" >&5
29693 sed 's/^/| /' conftest.$ac_ext >&5
29694
29695
29696 fi
29697 rm -f conftest.err conftest.$ac_ext
29698         done
29699         if test "$found" = "no" -o -z "$dir"; then
29700             CPPFLAGS="$O_CPPFLAGS"
29701         else
29702
29703     if test X"$with_rpath" = X"yes"; then
29704         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
29705     else
29706         LDFLAGS="${LDFLAGS} -L${dir}/lib"
29707     fi
29708     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29709         blibpath_add="${blibpath_add}:${dir}/lib"
29710     fi
29711
29712
29713     if test X"$with_rpath" = X"yes"; then
29714         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
29715     else
29716         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
29717     fi
29718     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29719         blibpath_add="${blibpath_add}:${dir}/lib"
29720     fi
29721
29722         fi
29723     fi
29724     if test "$found" = "no"; then
29725         { echo "$as_me:$LINENO: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
29726 echo "$as_me: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&2;}
29727     fi
29728     echo "$as_me:$LINENO: checking for main in -lopie" >&5
29729 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6
29730 if test "${ac_cv_lib_opie_main+set}" = set; then
29731   echo $ECHO_N "(cached) $ECHO_C" >&6
29732 else
29733   ac_check_lib_save_LIBS=$LIBS
29734 LIBS="-lopie  $LIBS"
29735 cat >conftest.$ac_ext <<_ACEOF
29736 #line $LINENO "configure"
29737 /* confdefs.h.  */
29738 _ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h.  */
29742
29743
29744 int
29745 main ()
29746 {
29747 main ();
29748   ;
29749   return 0;
29750 }
29751 _ACEOF
29752 rm -f conftest.$ac_objext conftest$ac_exeext
29753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29754   (eval $ac_link) 2>&5
29755   ac_status=$?
29756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757   (exit $ac_status); } &&
29758          { ac_try='test -s conftest$ac_exeext'
29759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29760   (eval $ac_try) 2>&5
29761   ac_status=$?
29762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763   (exit $ac_status); }; }; then
29764   ac_cv_lib_opie_main=yes
29765 else
29766   echo "$as_me: failed program was:" >&5
29767 sed 's/^/| /' conftest.$ac_ext >&5
29768
29769 ac_cv_lib_opie_main=no
29770 fi
29771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29772 LIBS=$ac_check_lib_save_LIBS
29773 fi
29774 echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
29775 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6
29776 if test $ac_cv_lib_opie_main = yes; then
29777   found=yes
29778 else
29779   { echo "$as_me:$LINENO: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&5
29780 echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&2;}
29781 fi
29782
29783     LDFLAGS="$O_LDFLAGS"
29784     SUDO_LIBS="${SUDO_LIBS} -lopie"
29785 fi
29786
29787 if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
29788     if test "$with_SecurID" != "yes"; then
29789         :
29790     elif test -d /usr/ace/examples; then
29791         with_SecurID=/usr/ace/examples
29792     else
29793         with_SecurID=/usr/ace
29794     fi
29795     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
29796     _LDFLAGS="${LDFLAGS}"
29797
29798     if test X"$with_rpath" = X"yes"; then
29799         LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
29800     else
29801         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
29802     fi
29803     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29804         blibpath_add="${blibpath_add}:${with_SecurID}"
29805     fi
29806
29807     #
29808     # Determine whether to use the new or old SecurID API
29809     #
29810     echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
29811 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6
29812 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
29813   echo $ECHO_N "(cached) $ECHO_C" >&6
29814 else
29815   ac_check_lib_save_LIBS=$LIBS
29816 LIBS="-laceclnt
29817             -lpthread
29818
29819      $LIBS"
29820 cat >conftest.$ac_ext <<_ACEOF
29821 #line $LINENO "configure"
29822 /* confdefs.h.  */
29823 _ACEOF
29824 cat confdefs.h >>conftest.$ac_ext
29825 cat >>conftest.$ac_ext <<_ACEOF
29826 /* end confdefs.h.  */
29827
29828 /* Override any gcc2 internal prototype to avoid an error.  */
29829 #ifdef __cplusplus
29830 extern "C"
29831 #endif
29832 /* We use char because int might match the return type of a gcc2
29833    builtin and then its argument prototype would still apply.  */
29834 char SD_Init ();
29835 int
29836 main ()
29837 {
29838 SD_Init ();
29839   ;
29840   return 0;
29841 }
29842 _ACEOF
29843 rm -f conftest.$ac_objext conftest$ac_exeext
29844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29845   (eval $ac_link) 2>&5
29846   ac_status=$?
29847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848   (exit $ac_status); } &&
29849          { ac_try='test -s conftest$ac_exeext'
29850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29851   (eval $ac_try) 2>&5
29852   ac_status=$?
29853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854   (exit $ac_status); }; }; then
29855   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
29856 else
29857   echo "$as_me: failed program was:" >&5
29858 sed 's/^/| /' conftest.$ac_ext >&5
29859
29860 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
29861 fi
29862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29863 LIBS=$ac_check_lib_save_LIBS
29864 fi
29865 echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
29866 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6
29867 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
29868
29869             AUTH_OBJS="securid5.o"
29870             SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
29871
29872
29873
29874     if test X"$with_rpath" = X"yes"; then
29875         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
29876     else
29877         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
29878     fi
29879     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29880         blibpath_add="${blibpath_add}:${with_SecurID}"
29881     fi
29882
29883
29884 else
29885
29886             AUTH_OBJS="securid.o"
29887             SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
29888
29889 fi
29890
29891     LDFLAGS="${_LDFLAGS}"
29892 fi
29893
29894 if test -n "$with_fwtk"; then
29895     if test "$with_fwtk" != "yes"; then
29896
29897     if test X"$with_rpath" = X"yes"; then
29898         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
29899     else
29900         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
29901     fi
29902     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29903         blibpath_add="${blibpath_add}:${with_fwtk}"
29904     fi
29905
29906         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
29907         with_fwtk=yes
29908     fi
29909     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
29910 fi
29911
29912 if test "$with_authenticate" = "yes"; then
29913     SUDO_LIBS="${SUDO_LIBS} -ls"
29914 fi
29915
29916 if test -n "$with_ldap"; then
29917     if test "$with_ldap" != "yes"; then
29918
29919     if test X"$with_rpath" = X"yes"; then
29920         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
29921     else
29922         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
29923     fi
29924     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29925         blibpath_add="${blibpath_add}:${with_ldap}/lib"
29926     fi
29927
29928         _LDFLAGS="$LDFLAGS"
29929
29930     if test X"$with_rpath" = X"yes"; then
29931         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
29932     else
29933         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
29934     fi
29935     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29936         blibpath_add="${blibpath_add}:${with_ldap}/lib"
29937     fi
29938
29939         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
29940         with_ldap=yes
29941     fi
29942     SUDO_OBJS="${SUDO_OBJS} ldap.o"
29943
29944     echo "$as_me:$LINENO: checking for LDAP libraries" >&5
29945 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6
29946     LDAP_LIBS=""
29947     _LIBS="$LIBS"
29948     found=no
29949     for l in -lldap -llber '-lssl -lcrypto'; do
29950         LIBS="${LIBS} $l"
29951         LDAP_LIBS="${LDAP_LIBS} $l"
29952         cat >conftest.$ac_ext <<_ACEOF
29953 #line $LINENO "configure"
29954 /* confdefs.h.  */
29955 _ACEOF
29956 cat confdefs.h >>conftest.$ac_ext
29957 cat >>conftest.$ac_ext <<_ACEOF
29958 /* end confdefs.h.  */
29959 #include <sys/types.h>
29960         #include <lber.h>
29961         #include <ldap.h>
29962 int
29963 main ()
29964 {
29965 (void)ldap_init(0, 0)
29966   ;
29967   return 0;
29968 }
29969 _ACEOF
29970 rm -f conftest.$ac_objext conftest$ac_exeext
29971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29972   (eval $ac_link) 2>&5
29973   ac_status=$?
29974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975   (exit $ac_status); } &&
29976          { ac_try='test -s conftest$ac_exeext'
29977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29978   (eval $ac_try) 2>&5
29979   ac_status=$?
29980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981   (exit $ac_status); }; }; then
29982   found=yes; break
29983 else
29984   echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29986
29987 fi
29988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29989     done
29990         if test "$found" = "no"; then
29991         LDAP_LIBS=" -ldap"
29992         echo "$as_me:$LINENO: result: not found, using -ldap" >&5
29993 echo "${ECHO_T}not found, using -ldap" >&6
29994     else
29995         echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
29996 echo "${ECHO_T}$LDAP_LIBS" >&6
29997     fi
29998         echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
29999 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6
30000     cat >conftest.$ac_ext <<_ACEOF
30001 #line $LINENO "configure"
30002 /* confdefs.h.  */
30003 _ACEOF
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h.  */
30007 #include <sys/types.h>
30008     #include <ldap.h>
30009 int
30010 main ()
30011 {
30012 (void)ldap_init(0, 0)
30013   ;
30014   return 0;
30015 }
30016 _ACEOF
30017 rm -f conftest.$ac_objext conftest$ac_exeext
30018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30019   (eval $ac_link) 2>&5
30020   ac_status=$?
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); } &&
30023          { ac_try='test -s conftest$ac_exeext'
30024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30025   (eval $ac_try) 2>&5
30026   ac_status=$?
30027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028   (exit $ac_status); }; }; then
30029   echo "$as_me:$LINENO: result: no" >&5
30030 echo "${ECHO_T}no" >&6
30031 else
30032   echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30034
30035
30036     echo "$as_me:$LINENO: result: yes" >&5
30037 echo "${ECHO_T}yes" >&6
30038     cat >>confdefs.h <<\_ACEOF
30039 #define HAVE_LBER_H 1
30040 _ACEOF
30041
30042 fi
30043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30044
30045
30046
30047 for ac_func in ldap_initialize ldap_start_tls_s
30048 do
30049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30050 echo "$as_me:$LINENO: checking for $ac_func" >&5
30051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30052 if eval "test \"\${$as_ac_var+set}\" = set"; then
30053   echo $ECHO_N "(cached) $ECHO_C" >&6
30054 else
30055   cat >conftest.$ac_ext <<_ACEOF
30056 #line $LINENO "configure"
30057 /* confdefs.h.  */
30058 _ACEOF
30059 cat confdefs.h >>conftest.$ac_ext
30060 cat >>conftest.$ac_ext <<_ACEOF
30061 /* end confdefs.h.  */
30062 /* System header to define __stub macros and hopefully few prototypes,
30063     which can conflict with char $ac_func (); below.
30064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30065     <limits.h> exists even on freestanding compilers.  */
30066 #ifdef __STDC__
30067 # include <limits.h>
30068 #else
30069 # include <assert.h>
30070 #endif
30071 /* Override any gcc2 internal prototype to avoid an error.  */
30072 #ifdef __cplusplus
30073 extern "C"
30074 {
30075 #endif
30076 /* We use char because int might match the return type of a gcc2
30077    builtin and then its argument prototype would still apply.  */
30078 char $ac_func ();
30079 /* The GNU C library defines this for functions which it implements
30080     to always fail with ENOSYS.  Some functions are actually named
30081     something starting with __ and the normal name is an alias.  */
30082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30083 choke me
30084 #else
30085 char (*f) () = $ac_func;
30086 #endif
30087 #ifdef __cplusplus
30088 }
30089 #endif
30090
30091 int
30092 main ()
30093 {
30094 return f != $ac_func;
30095   ;
30096   return 0;
30097 }
30098 _ACEOF
30099 rm -f conftest.$ac_objext conftest$ac_exeext
30100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30101   (eval $ac_link) 2>&5
30102   ac_status=$?
30103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104   (exit $ac_status); } &&
30105          { ac_try='test -s conftest$ac_exeext'
30106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107   (eval $ac_try) 2>&5
30108   ac_status=$?
30109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110   (exit $ac_status); }; }; then
30111   eval "$as_ac_var=yes"
30112 else
30113   echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30115
30116 eval "$as_ac_var=no"
30117 fi
30118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30119 fi
30120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30122 if test `eval echo '${'$as_ac_var'}'` = yes; then
30123   cat >>confdefs.h <<_ACEOF
30124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30125 _ACEOF
30126
30127 fi
30128 done
30129
30130
30131     SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
30132     LIBS="$_LIBS"
30133     LDFLAGS="$_LDFLAGS"
30134 fi
30135
30136 if test -n "$blibpath"; then
30137     if test -n "$blibpath_add"; then
30138         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
30139     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
30140         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
30141     fi
30142 fi
30143
30144 echo "$as_me:$LINENO: checking for log file location" >&5
30145 echo $ECHO_N "checking for log file location... $ECHO_C" >&6
30146 if test -n "$with_logpath"; then
30147     echo "$as_me:$LINENO: result: $with_logpath" >&5
30148 echo "${ECHO_T}$with_logpath" >&6
30149     cat >>confdefs.h <<EOF
30150 #define _PATH_SUDO_LOGFILE "$with_logpath"
30151 EOF
30152
30153 elif test -d "/var/log"; then
30154     echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
30155 echo "${ECHO_T}/var/log/sudo.log" >&6
30156     cat >>confdefs.h <<\EOF
30157 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
30158 EOF
30159
30160 elif test -d "/var/adm"; then
30161     echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
30162 echo "${ECHO_T}/var/adm/sudo.log" >&6
30163     cat >>confdefs.h <<\EOF
30164 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
30165 EOF
30166
30167 elif test -d "/usr/adm"; then
30168     echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
30169 echo "${ECHO_T}/usr/adm/sudo.log" >&6
30170     cat >>confdefs.h <<\EOF
30171 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
30172 EOF
30173
30174 else
30175     echo "$as_me:$LINENO: result: unknown" >&5
30176 echo "${ECHO_T}unknown" >&6
30177 fi
30178
30179 echo "$as_me:$LINENO: checking for timestamp file location" >&5
30180 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6
30181 if test -n "$with_timedir"; then
30182     echo "$as_me:$LINENO: result: $with_timedir" >&5
30183 echo "${ECHO_T}$with_timedir" >&6
30184     cat >>confdefs.h <<EOF
30185 #define _PATH_SUDO_TIMEDIR "$with_timedir"
30186 EOF
30187
30188     timedir="$with_timedir"
30189 elif test -d "/var/run"; then
30190     echo "$as_me:$LINENO: result: /var/run/sudo" >&5
30191 echo "${ECHO_T}/var/run/sudo" >&6
30192     cat >>confdefs.h <<\EOF
30193 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
30194 EOF
30195
30196     timedir="/var/run/sudo"
30197 elif test -d "/var/adm"; then
30198     echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
30199 echo "${ECHO_T}/var/adm/sudo" >&6
30200     cat >>confdefs.h <<\EOF
30201 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
30202 EOF
30203
30204     timedir="/var/adm/sudo"
30205 else
30206     echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
30207 echo "${ECHO_T}/usr/adm/sudo" >&6
30208     cat >>confdefs.h <<\EOF
30209 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
30210 EOF
30211
30212     timedir="/usr/adm/sudo"
30213 fi
30214
30215
30216 if test "$with_passwd" = "no"; then
30217     cat >>confdefs.h <<\_ACEOF
30218 #define WITHOUT_PASSWD 1
30219 _ACEOF
30220
30221     if test -z "$AUTH_OBJS"; then
30222         { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
30223 echo "$as_me: error: no authentication methods defined." >&2;}
30224    { (exit 1); exit 1; }; }
30225     fi
30226 else
30227     if test -n "$SECUREWARE"; then
30228         AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
30229     else
30230         AUTH_OBJS="${AUTH_OBJS} passwd.o"
30231     fi
30232 fi
30233
30234 if test -n "$LIBS"; then
30235     L="$LIBS"
30236     LIBS=
30237     for l in ${L}; do
30238         dupe=0
30239         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
30240             test $l = $sl && dupe=1
30241         done
30242         test $dupe = 0 && LIBS="${LIBS} $l"
30243     done
30244 fi
30245
30246 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
30247
30248 if test "$with_noexec" != "no"; then
30249     PROGS="${PROGS} sudo_noexec.la"
30250     INSTALL_NOEXEC="install-noexec"
30251
30252     oexec_prefix="$exec_prefix"
30253     if test "$exec_prefix" = '$(prefix)'; then
30254         if test "$prefix" = "NONE"; then
30255             exec_prefix="$ac_default_prefix"
30256         else
30257             exec_prefix="$prefix"
30258         fi
30259     fi
30260     eval noexec_file="$with_noexec"
30261
30262 cat >>confdefs.h <<_ACEOF
30263 #define _PATH_SUDO_NOEXEC "$noexec_file"
30264 _ACEOF
30265
30266     exec_prefix="$oexec_prefix"
30267 fi
30268
30269                                         ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
30270 cat >confcache <<\_ACEOF
30271 # This file is a shell script that caches the results of configure
30272 # tests run on this system so they can be shared between configure
30273 # scripts and configure runs, see configure's option --config-cache.
30274 # It is not useful on other systems.  If it contains results you don't
30275 # want to keep, you may remove or edit it.
30276 #
30277 # config.status only pays attention to the cache file if you give it
30278 # the --recheck option to rerun configure.
30279 #
30280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30282 # following values.
30283
30284 _ACEOF
30285
30286 # The following way of writing the cache mishandles newlines in values,
30287 # but we know of no workaround that is simple, portable, and efficient.
30288 # So, don't put newlines in cache variables' values.
30289 # Ultrix sh set writes to stderr and can't be redirected directly,
30290 # and sets the high bit in the cache file unless we assign to the vars.
30291 {
30292   (set) 2>&1 |
30293     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30294     *ac_space=\ *)
30295       # `set' does not quote correctly, so add quotes (double-quote
30296       # substitution turns \\\\ into \\, and sed turns \\ into \).
30297       sed -n \
30298         "s/'/'\\\\''/g;
30299           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30300       ;;
30301     *)
30302       # `set' quotes correctly as required by POSIX, so do not add quotes.
30303       sed -n \
30304         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30305       ;;
30306     esac;
30307 } |
30308   sed '
30309      t clear
30310      : clear
30311      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30312      t end
30313      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30314      : end' >>confcache
30315 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30316   if test -w $cache_file; then
30317     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30318     cat confcache >$cache_file
30319   else
30320     echo "not updating unwritable cache $cache_file"
30321   fi
30322 fi
30323 rm -f confcache
30324
30325 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30326 # Let make expand exec_prefix.
30327 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30328
30329 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30330 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30331 # trailing colons and then remove the whole line if VPATH becomes empty
30332 # (actually we leave an empty line to preserve line numbers).
30333 if test "x$srcdir" = x.; then
30334   ac_vpsub='/^[         ]*VPATH[        ]*=/{
30335 s/:*\$(srcdir):*/:/;
30336 s/:*\${srcdir}:*/:/;
30337 s/:*@srcdir@:*/:/;
30338 s/^\([^=]*=[    ]*\):*/\1/;
30339 s/:*$//;
30340 s/^[^=]*=[      ]*$//;
30341 }'
30342 fi
30343
30344 DEFS=-DHAVE_CONFIG_H
30345
30346 ac_libobjs=
30347 ac_ltlibobjs=
30348 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30349   # 1. Remove the extension, and $U if already installed.
30350   ac_i=`echo "$ac_i" |
30351          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30352   # 2. Add them.
30353   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30354   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30355 done
30356 LIBOBJS=$ac_libobjs
30357
30358 LTLIBOBJS=$ac_ltlibobjs
30359
30360
30361
30362 : ${CONFIG_STATUS=./config.status}
30363 ac_clean_files_save=$ac_clean_files
30364 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30365 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30366 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30367 cat >$CONFIG_STATUS <<_ACEOF
30368 #! $SHELL
30369 # Generated by $as_me.
30370 # Run this file to recreate the current configuration.
30371 # Compiler output produced by configure, useful for debugging
30372 # configure, is in config.log if it exists.
30373
30374 debug=false
30375 ac_cs_recheck=false
30376 ac_cs_silent=false
30377 SHELL=\${CONFIG_SHELL-$SHELL}
30378 _ACEOF
30379
30380 cat >>$CONFIG_STATUS <<\_ACEOF
30381 ## --------------------- ##
30382 ## M4sh Initialization.  ##
30383 ## --------------------- ##
30384
30385 # Be Bourne compatible
30386 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30387   emulate sh
30388   NULLCMD=:
30389   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30390   # is contrary to our usage.  Disable this feature.
30391   alias -g '${1+"$@"}'='"$@"'
30392 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30393   set -o posix
30394 fi
30395
30396 # Support unset when possible.
30397 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
30398   as_unset=unset
30399 else
30400   as_unset=false
30401 fi
30402
30403
30404 # Work around bugs in pre-3.0 UWIN ksh.
30405 $as_unset ENV MAIL MAILPATH
30406 PS1='$ '
30407 PS2='> '
30408 PS4='+ '
30409
30410 # NLS nuisances.
30411 for as_var in \
30412   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30413   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30414   LC_TELEPHONE LC_TIME
30415 do
30416   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
30417     eval $as_var=C; export $as_var
30418   else
30419     $as_unset $as_var
30420   fi
30421 done
30422
30423 # Required to use basename.
30424 if expr a : '\(a\)' >/dev/null 2>&1; then
30425   as_expr=expr
30426 else
30427   as_expr=false
30428 fi
30429
30430 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30431   as_basename=basename
30432 else
30433   as_basename=false
30434 fi
30435
30436
30437 # Name of the executable.
30438 as_me=`$as_basename "$0" ||
30439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30440          X"$0" : 'X\(//\)$' \| \
30441          X"$0" : 'X\(/\)$' \| \
30442          .     : '\(.\)' 2>/dev/null ||
30443 echo X/"$0" |
30444     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30445           /^X\/\(\/\/\)$/{ s//\1/; q; }
30446           /^X\/\(\/\).*/{ s//\1/; q; }
30447           s/.*/./; q'`
30448
30449
30450 # PATH needs CR, and LINENO needs CR and PATH.
30451 # Avoid depending upon Character Ranges.
30452 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30453 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30454 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30455 as_cr_digits='0123456789'
30456 as_cr_alnum=$as_cr_Letters$as_cr_digits
30457
30458 # The user is always right.
30459 if test "${PATH_SEPARATOR+set}" != set; then
30460   echo "#! /bin/sh" >conf$$.sh
30461   echo  "exit 0"   >>conf$$.sh
30462   chmod +x conf$$.sh
30463   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30464     PATH_SEPARATOR=';'
30465   else
30466     PATH_SEPARATOR=:
30467   fi
30468   rm -f conf$$.sh
30469 fi
30470
30471
30472   as_lineno_1=$LINENO
30473   as_lineno_2=$LINENO
30474   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30475   test "x$as_lineno_1" != "x$as_lineno_2" &&
30476   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30477   # Find who we are.  Look in the path if we contain no path at all
30478   # relative or not.
30479   case $0 in
30480     *[\\/]* ) as_myself=$0 ;;
30481     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30482 for as_dir in $PATH
30483 do
30484   IFS=$as_save_IFS
30485   test -z "$as_dir" && as_dir=.
30486   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30487 done
30488
30489        ;;
30490   esac
30491   # We did not find ourselves, most probably we were run as `sh COMMAND'
30492   # in which case we are not to be found in the path.
30493   if test "x$as_myself" = x; then
30494     as_myself=$0
30495   fi
30496   if test ! -f "$as_myself"; then
30497     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30498 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30499    { (exit 1); exit 1; }; }
30500   fi
30501   case $CONFIG_SHELL in
30502   '')
30503     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30504 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30505 do
30506   IFS=$as_save_IFS
30507   test -z "$as_dir" && as_dir=.
30508   for as_base in sh bash ksh sh5; do
30509          case $as_dir in
30510          /*)
30511            if ("$as_dir/$as_base" -c '
30512   as_lineno_1=$LINENO
30513   as_lineno_2=$LINENO
30514   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30515   test "x$as_lineno_1" != "x$as_lineno_2" &&
30516   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30517              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30518              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30519              CONFIG_SHELL=$as_dir/$as_base
30520              export CONFIG_SHELL
30521              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30522            fi;;
30523          esac
30524        done
30525 done
30526 ;;
30527   esac
30528
30529   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30530   # uniformly replaced by the line number.  The first 'sed' inserts a
30531   # line-number line before each line; the second 'sed' does the real
30532   # work.  The second script uses 'N' to pair each line-number line
30533   # with the numbered line, and appends trailing '-' during
30534   # substitution so that $LINENO is not a special case at line end.
30535   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30536   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30537   sed '=' <$as_myself |
30538     sed '
30539       N
30540       s,$,-,
30541       : loop
30542       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30543       t loop
30544       s,-$,,
30545       s,^['$as_cr_digits']*\n,,
30546     ' >$as_me.lineno &&
30547   chmod +x $as_me.lineno ||
30548     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30549 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30550    { (exit 1); exit 1; }; }
30551
30552   # Don't try to exec as it changes $[0], causing all sort of problems
30553   # (the dirname of $[0] is not the place where we might find the
30554   # original and so on.  Autoconf is especially sensible to this).
30555   . ./$as_me.lineno
30556   # Exit status is that of the last command.
30557   exit
30558 }
30559
30560
30561 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30562   *c*,-n*) ECHO_N= ECHO_C='
30563 ' ECHO_T='      ' ;;
30564   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30565   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30566 esac
30567
30568 if expr a : '\(a\)' >/dev/null 2>&1; then
30569   as_expr=expr
30570 else
30571   as_expr=false
30572 fi
30573
30574 rm -f conf$$ conf$$.exe conf$$.file
30575 echo >conf$$.file
30576 if ln -s conf$$.file conf$$ 2>/dev/null; then
30577   # We could just check for DJGPP; but this test a) works b) is more generic
30578   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30579   if test -f conf$$.exe; then
30580     # Don't use ln at all; we don't have any links
30581     as_ln_s='cp -p'
30582   else
30583     as_ln_s='ln -s'
30584   fi
30585 elif ln conf$$.file conf$$ 2>/dev/null; then
30586   as_ln_s=ln
30587 else
30588   as_ln_s='cp -p'
30589 fi
30590 rm -f conf$$ conf$$.exe conf$$.file
30591
30592 if mkdir -p . 2>/dev/null; then
30593   as_mkdir_p=:
30594 else
30595   as_mkdir_p=false
30596 fi
30597
30598 as_executable_p="test -f"
30599
30600 # Sed expression to map a string onto a valid CPP name.
30601 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
30602
30603 # Sed expression to map a string onto a valid variable name.
30604 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
30605
30606
30607 # IFS
30608 # We need space, tab and new line, in precisely that order.
30609 as_nl='
30610 '
30611 IFS="   $as_nl"
30612
30613 # CDPATH.
30614 $as_unset CDPATH
30615
30616 exec 6>&1
30617
30618 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30619 # report actual input values of CONFIG_FILES etc. instead of their
30620 # values after options handling.  Logging --version etc. is OK.
30621 exec 5>>config.log
30622 {
30623   echo
30624   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30625 ## Running $as_me. ##
30626 _ASBOX
30627 } >&5
30628 cat >&5 <<_CSEOF
30629
30630 This file was extended by sudo $as_me 1.6.8, which was
30631 generated by GNU Autoconf 2.57.  Invocation command line was
30632
30633   CONFIG_FILES    = $CONFIG_FILES
30634   CONFIG_HEADERS  = $CONFIG_HEADERS
30635   CONFIG_LINKS    = $CONFIG_LINKS
30636   CONFIG_COMMANDS = $CONFIG_COMMANDS
30637   $ $0 $@
30638
30639 _CSEOF
30640 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30641 echo >&5
30642 _ACEOF
30643
30644 # Files that config.status was made for.
30645 if test -n "$ac_config_files"; then
30646   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30647 fi
30648
30649 if test -n "$ac_config_headers"; then
30650   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30651 fi
30652
30653 if test -n "$ac_config_links"; then
30654   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30655 fi
30656
30657 if test -n "$ac_config_commands"; then
30658   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30659 fi
30660
30661 cat >>$CONFIG_STATUS <<\_ACEOF
30662
30663 ac_cs_usage="\
30664 \`$as_me' instantiates files from templates according to the
30665 current configuration.
30666
30667 Usage: $0 [OPTIONS] [FILE]...
30668
30669   -h, --help       print this help, then exit
30670   -V, --version    print version number, then exit
30671   -q, --quiet      do not print progress messages
30672   -d, --debug      don't remove temporary files
30673       --recheck    update $as_me by reconfiguring in the same conditions
30674   --file=FILE[:TEMPLATE]
30675                    instantiate the configuration file FILE
30676   --header=FILE[:TEMPLATE]
30677                    instantiate the configuration header FILE
30678
30679 Configuration files:
30680 $config_files
30681
30682 Configuration headers:
30683 $config_headers
30684
30685 Report bugs to <bug-autoconf@gnu.org>."
30686 _ACEOF
30687
30688 cat >>$CONFIG_STATUS <<_ACEOF
30689 ac_cs_version="\\
30690 sudo config.status 1.6.8
30691 configured by $0, generated by GNU Autoconf 2.57,
30692   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30693
30694 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
30695 Free Software Foundation, Inc.
30696 This config.status script is free software; the Free Software Foundation
30697 gives unlimited permission to copy, distribute and modify it."
30698 srcdir=$srcdir
30699 _ACEOF
30700
30701 cat >>$CONFIG_STATUS <<\_ACEOF
30702 # If no file are specified by the user, then we need to provide default
30703 # value.  By we need to know if files were specified by the user.
30704 ac_need_defaults=:
30705 while test $# != 0
30706 do
30707   case $1 in
30708   --*=*)
30709     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30710     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30711     ac_shift=:
30712     ;;
30713   -*)
30714     ac_option=$1
30715     ac_optarg=$2
30716     ac_shift=shift
30717     ;;
30718   *) # This is not an option, so the user has probably given explicit
30719      # arguments.
30720      ac_option=$1
30721      ac_need_defaults=false;;
30722   esac
30723
30724   case $ac_option in
30725   # Handling of the options.
30726 _ACEOF
30727 cat >>$CONFIG_STATUS <<\_ACEOF
30728   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30729     ac_cs_recheck=: ;;
30730   --version | --vers* | -V )
30731     echo "$ac_cs_version"; exit 0 ;;
30732   --he | --h)
30733     # Conflict between --help and --header
30734     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30735 Try \`$0 --help' for more information." >&5
30736 echo "$as_me: error: ambiguous option: $1
30737 Try \`$0 --help' for more information." >&2;}
30738    { (exit 1); exit 1; }; };;
30739   --help | --hel | -h )
30740     echo "$ac_cs_usage"; exit 0 ;;
30741   --debug | --d* | -d )
30742     debug=: ;;
30743   --file | --fil | --fi | --f )
30744     $ac_shift
30745     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30746     ac_need_defaults=false;;
30747   --header | --heade | --head | --hea )
30748     $ac_shift
30749     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30750     ac_need_defaults=false;;
30751   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30752   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30753     ac_cs_silent=: ;;
30754
30755   # This is an error.
30756   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30757 Try \`$0 --help' for more information." >&5
30758 echo "$as_me: error: unrecognized option: $1
30759 Try \`$0 --help' for more information." >&2;}
30760    { (exit 1); exit 1; }; } ;;
30761
30762   *) ac_config_targets="$ac_config_targets $1" ;;
30763
30764   esac
30765   shift
30766 done
30767
30768 ac_configure_extra_args=
30769
30770 if $ac_cs_silent; then
30771   exec 6>/dev/null
30772   ac_configure_extra_args="$ac_configure_extra_args --silent"
30773 fi
30774
30775 _ACEOF
30776 cat >>$CONFIG_STATUS <<_ACEOF
30777 if \$ac_cs_recheck; then
30778   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30779   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30780 fi
30781
30782 _ACEOF
30783
30784
30785
30786
30787
30788 cat >>$CONFIG_STATUS <<\_ACEOF
30789 for ac_config_target in $ac_config_targets
30790 do
30791   case "$ac_config_target" in
30792   # Handling of arguments.
30793   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30794   "sudo.man" ) CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
30795   "visudo.man" ) CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
30796   "sudoers.man" ) CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
30797   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30798   "pathnames.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
30799   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30800 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30801    { (exit 1); exit 1; }; };;
30802   esac
30803 done
30804
30805 # If the user did not use the arguments to specify the items to instantiate,
30806 # then the envvar interface is used.  Set only those that are not.
30807 # We use the long form for the default assignment because of an extremely
30808 # bizarre bug on SunOS 4.1.3.
30809 if $ac_need_defaults; then
30810   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30811   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30812 fi
30813
30814 # Have a temporary directory for convenience.  Make it in the build tree
30815 # simply because there is no reason to put it here, and in addition,
30816 # creating and moving files from /tmp can sometimes cause problems.
30817 # Create a temporary directory, and hook for its removal unless debugging.
30818 $debug ||
30819 {
30820   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30821   trap '{ (exit 1); exit 1; }' 1 2 13 15
30822 }
30823
30824 # Create a (secure) tmp directory for tmp files.
30825
30826 {
30827   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30828   test -n "$tmp" && test -d "$tmp"
30829 }  ||
30830 {
30831   tmp=./confstat$$-$RANDOM
30832   (umask 077 && mkdir $tmp)
30833 } ||
30834 {
30835    echo "$me: cannot create a temporary directory in ." >&2
30836    { (exit 1); exit 1; }
30837 }
30838
30839 _ACEOF
30840
30841 cat >>$CONFIG_STATUS <<_ACEOF
30842
30843 #
30844 # CONFIG_FILES section.
30845 #
30846
30847 # No need to generate the scripts if there are no CONFIG_FILES.
30848 # This happens for instance when ./config.status config.h
30849 if test -n "\$CONFIG_FILES"; then
30850   # Protect against being on the right side of a sed subst in config.status.
30851   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30852    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30853 s,@SHELL@,$SHELL,;t t
30854 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30855 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30856 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30857 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30858 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30859 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30860 s,@exec_prefix@,$exec_prefix,;t t
30861 s,@prefix@,$prefix,;t t
30862 s,@program_transform_name@,$program_transform_name,;t t
30863 s,@bindir@,$bindir,;t t
30864 s,@sbindir@,$sbindir,;t t
30865 s,@libexecdir@,$libexecdir,;t t
30866 s,@datadir@,$datadir,;t t
30867 s,@sysconfdir@,$sysconfdir,;t t
30868 s,@sharedstatedir@,$sharedstatedir,;t t
30869 s,@localstatedir@,$localstatedir,;t t
30870 s,@libdir@,$libdir,;t t
30871 s,@includedir@,$includedir,;t t
30872 s,@oldincludedir@,$oldincludedir,;t t
30873 s,@infodir@,$infodir,;t t
30874 s,@mandir@,$mandir,;t t
30875 s,@build_alias@,$build_alias,;t t
30876 s,@host_alias@,$host_alias,;t t
30877 s,@target_alias@,$target_alias,;t t
30878 s,@DEFS@,$DEFS,;t t
30879 s,@ECHO_C@,$ECHO_C,;t t
30880 s,@ECHO_N@,$ECHO_N,;t t
30881 s,@ECHO_T@,$ECHO_T,;t t
30882 s,@LIBS@,$LIBS,;t t
30883 s,@LIBTOOL@,$LIBTOOL,;t t
30884 s,@CFLAGS@,$CFLAGS,;t t
30885 s,@PROGS@,$PROGS,;t t
30886 s,@CPPFLAGS@,$CPPFLAGS,;t t
30887 s,@LDFLAGS@,$LDFLAGS,;t t
30888 s,@SUDO_LDFLAGS@,$SUDO_LDFLAGS,;t t
30889 s,@SUDO_OBJS@,$SUDO_OBJS,;t t
30890 s,@SUDO_LIBS@,$SUDO_LIBS,;t t
30891 s,@NET_LIBS@,$NET_LIBS,;t t
30892 s,@AFS_LIBS@,$AFS_LIBS,;t t
30893 s,@OSDEFS@,$OSDEFS,;t t
30894 s,@AUTH_OBJS@,$AUTH_OBJS,;t t
30895 s,@MANTYPE@,$MANTYPE,;t t
30896 s,@MAN_POSTINSTALL@,$MAN_POSTINSTALL,;t t
30897 s,@SUDOERS_MODE@,$SUDOERS_MODE,;t t
30898 s,@SUDOERS_UID@,$SUDOERS_UID,;t t
30899 s,@SUDOERS_GID@,$SUDOERS_GID,;t t
30900 s,@DEV@,$DEV,;t t
30901 s,@mansectsu@,$mansectsu,;t t
30902 s,@mansectform@,$mansectform,;t t
30903 s,@mansrcdir@,$mansrcdir,;t t
30904 s,@NOEXECDIR@,$NOEXECDIR,;t t
30905 s,@noexec_file@,$noexec_file,;t t
30906 s,@INSTALL_NOEXEC@,$INSTALL_NOEXEC,;t t
30907 s,@timedir@,$timedir,;t t
30908 s,@timeout@,$timeout,;t t
30909 s,@password_timeout@,$password_timeout,;t t
30910 s,@sudo_umask@,$sudo_umask,;t t
30911 s,@passprompt@,$passprompt,;t t
30912 s,@long_otp_prompt@,$long_otp_prompt,;t t
30913 s,@lecture@,$lecture,;t t
30914 s,@logfac@,$logfac,;t t
30915 s,@goodpri@,$goodpri,;t t
30916 s,@badpri@,$badpri,;t t
30917 s,@loglen@,$loglen,;t t
30918 s,@ignore_dot@,$ignore_dot,;t t
30919 s,@mail_no_user@,$mail_no_user,;t t
30920 s,@mail_no_host@,$mail_no_host,;t t
30921 s,@mail_no_perms@,$mail_no_perms,;t t
30922 s,@mailto@,$mailto,;t t
30923 s,@mailsub@,$mailsub,;t t
30924 s,@badpass_message@,$badpass_message,;t t
30925 s,@fqdn@,$fqdn,;t t
30926 s,@runas_default@,$runas_default,;t t
30927 s,@env_editor@,$env_editor,;t t
30928 s,@passwd_tries@,$passwd_tries,;t t
30929 s,@tty_tickets@,$tty_tickets,;t t
30930 s,@insults@,$insults,;t t
30931 s,@root_sudo@,$root_sudo,;t t
30932 s,@EGREPPROG@,$EGREPPROG,;t t
30933 s,@CC@,$CC,;t t
30934 s,@ac_ct_CC@,$ac_ct_CC,;t t
30935 s,@EXEEXT@,$EXEEXT,;t t
30936 s,@OBJEXT@,$OBJEXT,;t t
30937 s,@CPP@,$CPP,;t t
30938 s,@build@,$build,;t t
30939 s,@build_cpu@,$build_cpu,;t t
30940 s,@build_vendor@,$build_vendor,;t t
30941 s,@build_os@,$build_os,;t t
30942 s,@host@,$host,;t t
30943 s,@host_cpu@,$host_cpu,;t t
30944 s,@host_vendor@,$host_vendor,;t t
30945 s,@host_os@,$host_os,;t t
30946 s,@target@,$target,;t t
30947 s,@target_cpu@,$target_cpu,;t t
30948 s,@target_vendor@,$target_vendor,;t t
30949 s,@target_os@,$target_os,;t t
30950 s,@EGREP@,$EGREP,;t t
30951 s,@LN_S@,$LN_S,;t t
30952 s,@ECHO@,$ECHO,;t t
30953 s,@AR@,$AR,;t t
30954 s,@ac_ct_AR@,$ac_ct_AR,;t t
30955 s,@RANLIB@,$RANLIB,;t t
30956 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30957 s,@STRIP@,$STRIP,;t t
30958 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30959 s,@CXX@,$CXX,;t t
30960 s,@CXXFLAGS@,$CXXFLAGS,;t t
30961 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30962 s,@CXXCPP@,$CXXCPP,;t t
30963 s,@F77@,$F77,;t t
30964 s,@FFLAGS@,$FFLAGS,;t t
30965 s,@ac_ct_F77@,$ac_ct_F77,;t t
30966 s,@UNAMEPROG@,$UNAMEPROG,;t t
30967 s,@TRPROG@,$TRPROG,;t t
30968 s,@NROFFPROG@,$NROFFPROG,;t t
30969 s,@YACC@,$YACC,;t t
30970 s,@LIBOBJS@,$LIBOBJS,;t t
30971 s,@ALLOCA@,$ALLOCA,;t t
30972 s,@KRB5CONFIG@,$KRB5CONFIG,;t t
30973 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30974 CEOF
30975
30976 _ACEOF
30977
30978   cat >>$CONFIG_STATUS <<\_ACEOF
30979   # Split the substitutions into bite-sized pieces for seds with
30980   # small command number limits, like on Digital OSF/1 and HP-UX.
30981   ac_max_sed_lines=48
30982   ac_sed_frag=1 # Number of current file.
30983   ac_beg=1 # First line for current file.
30984   ac_end=$ac_max_sed_lines # Line after last line for current file.
30985   ac_more_lines=:
30986   ac_sed_cmds=
30987   while $ac_more_lines; do
30988     if test $ac_beg -gt 1; then
30989       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30990     else
30991       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30992     fi
30993     if test ! -s $tmp/subs.frag; then
30994       ac_more_lines=false
30995     else
30996       # The purpose of the label and of the branching condition is to
30997       # speed up the sed processing (if there are no `@' at all, there
30998       # is no need to browse any of the substitutions).
30999       # These are the two extra sed commands mentioned above.
31000       (echo ':t
31001   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31002       if test -z "$ac_sed_cmds"; then
31003         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31004       else
31005         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31006       fi
31007       ac_sed_frag=`expr $ac_sed_frag + 1`
31008       ac_beg=$ac_end
31009       ac_end=`expr $ac_end + $ac_max_sed_lines`
31010     fi
31011   done
31012   if test -z "$ac_sed_cmds"; then
31013     ac_sed_cmds=cat
31014   fi
31015 fi # test -n "$CONFIG_FILES"
31016
31017 _ACEOF
31018 cat >>$CONFIG_STATUS <<\_ACEOF
31019 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31020   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31021   case $ac_file in
31022   - | *:- | *:-:* ) # input from stdin
31023         cat >$tmp/stdin
31024         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31025         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31026   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31027         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31028   * )   ac_file_in=$ac_file.in ;;
31029   esac
31030
31031   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31032   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31034          X"$ac_file" : 'X\(//\)[^/]' \| \
31035          X"$ac_file" : 'X\(//\)$' \| \
31036          X"$ac_file" : 'X\(/\)' \| \
31037          .     : '\(.\)' 2>/dev/null ||
31038 echo X"$ac_file" |
31039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31040           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31041           /^X\(\/\/\)$/{ s//\1/; q; }
31042           /^X\(\/\).*/{ s//\1/; q; }
31043           s/.*/./; q'`
31044   { if $as_mkdir_p; then
31045     mkdir -p "$ac_dir"
31046   else
31047     as_dir="$ac_dir"
31048     as_dirs=
31049     while test ! -d "$as_dir"; do
31050       as_dirs="$as_dir $as_dirs"
31051       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31053          X"$as_dir" : 'X\(//\)[^/]' \| \
31054          X"$as_dir" : 'X\(//\)$' \| \
31055          X"$as_dir" : 'X\(/\)' \| \
31056          .     : '\(.\)' 2>/dev/null ||
31057 echo X"$as_dir" |
31058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31060           /^X\(\/\/\)$/{ s//\1/; q; }
31061           /^X\(\/\).*/{ s//\1/; q; }
31062           s/.*/./; q'`
31063     done
31064     test ! -n "$as_dirs" || mkdir $as_dirs
31065   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31066 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31067    { (exit 1); exit 1; }; }; }
31068
31069   ac_builddir=.
31070
31071 if test "$ac_dir" != .; then
31072   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31073   # A "../" for each directory in $ac_dir_suffix.
31074   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31075 else
31076   ac_dir_suffix= ac_top_builddir=
31077 fi
31078
31079 case $srcdir in
31080   .)  # No --srcdir option.  We are building in place.
31081     ac_srcdir=.
31082     if test -z "$ac_top_builddir"; then
31083        ac_top_srcdir=.
31084     else
31085        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31086     fi ;;
31087   [\\/]* | ?:[\\/]* )  # Absolute path.
31088     ac_srcdir=$srcdir$ac_dir_suffix;
31089     ac_top_srcdir=$srcdir ;;
31090   *) # Relative path.
31091     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31092     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31093 esac
31094 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
31095 # absolute.
31096 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
31097 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
31098 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
31099 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
31100
31101
31102
31103   if test x"$ac_file" != x-; then
31104     { echo "$as_me:$LINENO: creating $ac_file" >&5
31105 echo "$as_me: creating $ac_file" >&6;}
31106     rm -f "$ac_file"
31107   fi
31108   # Let's still pretend it is `configure' which instantiates (i.e., don't
31109   # use $as_me), people would be surprised to read:
31110   #    /* config.h.  Generated by config.status.  */
31111   if test x"$ac_file" = x-; then
31112     configure_input=
31113   else
31114     configure_input="$ac_file.  "
31115   fi
31116   configure_input=$configure_input"Generated from `echo $ac_file_in |
31117                                      sed 's,.*/,,'` by configure."
31118
31119   # First look for the input files in the build tree, otherwise in the
31120   # src tree.
31121   ac_file_inputs=`IFS=:
31122     for f in $ac_file_in; do
31123       case $f in
31124       -) echo $tmp/stdin ;;
31125       [\\/$]*)
31126          # Absolute (can't be DOS-style, as IFS=:)
31127          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31128 echo "$as_me: error: cannot find input file: $f" >&2;}
31129    { (exit 1); exit 1; }; }
31130          echo $f;;
31131       *) # Relative
31132          if test -f "$f"; then
31133            # Build tree
31134            echo $f
31135          elif test -f "$srcdir/$f"; then
31136            # Source tree
31137            echo $srcdir/$f
31138          else
31139            # /dev/null tree
31140            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31141 echo "$as_me: error: cannot find input file: $f" >&2;}
31142    { (exit 1); exit 1; }; }
31143          fi;;
31144       esac
31145     done` || { (exit 1); exit 1; }
31146 _ACEOF
31147 cat >>$CONFIG_STATUS <<_ACEOF
31148   sed "$ac_vpsub
31149 $extrasub
31150 _ACEOF
31151 cat >>$CONFIG_STATUS <<\_ACEOF
31152 :t
31153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31154 s,@configure_input@,$configure_input,;t t
31155 s,@srcdir@,$ac_srcdir,;t t
31156 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31157 s,@top_srcdir@,$ac_top_srcdir,;t t
31158 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31159 s,@builddir@,$ac_builddir,;t t
31160 s,@abs_builddir@,$ac_abs_builddir,;t t
31161 s,@top_builddir@,$ac_top_builddir,;t t
31162 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31163 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31164   rm -f $tmp/stdin
31165   if test x"$ac_file" != x-; then
31166     mv $tmp/out $ac_file
31167   else
31168     cat $tmp/out
31169     rm -f $tmp/out
31170   fi
31171
31172 done
31173 _ACEOF
31174 cat >>$CONFIG_STATUS <<\_ACEOF
31175
31176 #
31177 # CONFIG_HEADER section.
31178 #
31179
31180 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31181 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31182 #
31183 # ac_d sets the value in "#define NAME VALUE" lines.
31184 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
31185 ac_dB='[        ].*$,\1#\2'
31186 ac_dC=' '
31187 ac_dD=',;t'
31188 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31189 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31190 ac_uB='$,\1#\2define\3'
31191 ac_uC=' '
31192 ac_uD=',;t'
31193
31194 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31195   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31196   case $ac_file in
31197   - | *:- | *:-:* ) # input from stdin
31198         cat >$tmp/stdin
31199         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31200         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31201   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31202         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31203   * )   ac_file_in=$ac_file.in ;;
31204   esac
31205
31206   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31207 echo "$as_me: creating $ac_file" >&6;}
31208
31209   # First look for the input files in the build tree, otherwise in the
31210   # src tree.
31211   ac_file_inputs=`IFS=:
31212     for f in $ac_file_in; do
31213       case $f in
31214       -) echo $tmp/stdin ;;
31215       [\\/$]*)
31216          # Absolute (can't be DOS-style, as IFS=:)
31217          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31218 echo "$as_me: error: cannot find input file: $f" >&2;}
31219    { (exit 1); exit 1; }; }
31220          echo $f;;
31221       *) # Relative
31222          if test -f "$f"; then
31223            # Build tree
31224            echo $f
31225          elif test -f "$srcdir/$f"; then
31226            # Source tree
31227            echo $srcdir/$f
31228          else
31229            # /dev/null tree
31230            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31231 echo "$as_me: error: cannot find input file: $f" >&2;}
31232    { (exit 1); exit 1; }; }
31233          fi;;
31234       esac
31235     done` || { (exit 1); exit 1; }
31236   # Remove the trailing spaces.
31237   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
31238
31239 _ACEOF
31240
31241 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31242 # `conftest.undefs', that substitutes the proper values into
31243 # config.h.in to produce config.h.  The first handles `#define'
31244 # templates, and the second `#undef' templates.
31245 # And first: Protect against being on the right side of a sed subst in
31246 # config.status.  Protect against being in an unquoted here document
31247 # in config.status.
31248 rm -f conftest.defines conftest.undefs
31249 # Using a here document instead of a string reduces the quoting nightmare.
31250 # Putting comments in sed scripts is not portable.
31251 #
31252 # `end' is used to avoid that the second main sed command (meant for
31253 # 0-ary CPP macros) applies to n-ary macro definitions.
31254 # See the Autoconf documentation for `clear'.
31255 cat >confdef2sed.sed <<\_ACEOF
31256 s/[\\&,]/\\&/g
31257 s,[\\$`],\\&,g
31258 t clear
31259 : clear
31260 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31261 t end
31262 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31263 : end
31264 _ACEOF
31265 # If some macros were called several times there might be several times
31266 # the same #defines, which is useless.  Nevertheless, we may not want to
31267 # sort them, since we want the *last* AC-DEFINE to be honored.
31268 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31269 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31270 rm -f confdef2sed.sed
31271
31272 # This sed command replaces #undef with comments.  This is necessary, for
31273 # example, in the case of _POSIX_SOURCE, which is predefined and required
31274 # on some systems where configure will not decide to define it.
31275 cat >>conftest.undefs <<\_ACEOF
31276 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31277 _ACEOF
31278
31279 # Break up conftest.defines because some shells have a limit on the size
31280 # of here documents, and old seds have small limits too (100 cmds).
31281 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31282 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31283 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31284 echo '  :' >>$CONFIG_STATUS
31285 rm -f conftest.tail
31286 while grep . conftest.defines >/dev/null
31287 do
31288   # Write a limited-size here document to $tmp/defines.sed.
31289   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31290   # Speed up: don't consider the non `#define' lines.
31291   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
31292   # Work around the forget-to-reset-the-flag bug.
31293   echo 't clr' >>$CONFIG_STATUS
31294   echo ': clr' >>$CONFIG_STATUS
31295   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31296   echo 'CEOF
31297   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31298   rm -f $tmp/in
31299   mv $tmp/out $tmp/in
31300 ' >>$CONFIG_STATUS
31301   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31302   rm -f conftest.defines
31303   mv conftest.tail conftest.defines
31304 done
31305 rm -f conftest.defines
31306 echo '  fi # grep' >>$CONFIG_STATUS
31307 echo >>$CONFIG_STATUS
31308
31309 # Break up conftest.undefs because some shells have a limit on the size
31310 # of here documents, and old seds have small limits too (100 cmds).
31311 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31312 rm -f conftest.tail
31313 while grep . conftest.undefs >/dev/null
31314 do
31315   # Write a limited-size here document to $tmp/undefs.sed.
31316   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31317   # Speed up: don't consider the non `#undef'
31318   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31319   # Work around the forget-to-reset-the-flag bug.
31320   echo 't clr' >>$CONFIG_STATUS
31321   echo ': clr' >>$CONFIG_STATUS
31322   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31323   echo 'CEOF
31324   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31325   rm -f $tmp/in
31326   mv $tmp/out $tmp/in
31327 ' >>$CONFIG_STATUS
31328   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31329   rm -f conftest.undefs
31330   mv conftest.tail conftest.undefs
31331 done
31332 rm -f conftest.undefs
31333
31334 cat >>$CONFIG_STATUS <<\_ACEOF
31335   # Let's still pretend it is `configure' which instantiates (i.e., don't
31336   # use $as_me), people would be surprised to read:
31337   #    /* config.h.  Generated by config.status.  */
31338   if test x"$ac_file" = x-; then
31339     echo "/* Generated by configure.  */" >$tmp/config.h
31340   else
31341     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31342   fi
31343   cat $tmp/in >>$tmp/config.h
31344   rm -f $tmp/in
31345   if test x"$ac_file" != x-; then
31346     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31347       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31348 echo "$as_me: $ac_file is unchanged" >&6;}
31349     else
31350       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31352          X"$ac_file" : 'X\(//\)[^/]' \| \
31353          X"$ac_file" : 'X\(//\)$' \| \
31354          X"$ac_file" : 'X\(/\)' \| \
31355          .     : '\(.\)' 2>/dev/null ||
31356 echo X"$ac_file" |
31357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31358           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31359           /^X\(\/\/\)$/{ s//\1/; q; }
31360           /^X\(\/\).*/{ s//\1/; q; }
31361           s/.*/./; q'`
31362       { if $as_mkdir_p; then
31363     mkdir -p "$ac_dir"
31364   else
31365     as_dir="$ac_dir"
31366     as_dirs=
31367     while test ! -d "$as_dir"; do
31368       as_dirs="$as_dir $as_dirs"
31369       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31371          X"$as_dir" : 'X\(//\)[^/]' \| \
31372          X"$as_dir" : 'X\(//\)$' \| \
31373          X"$as_dir" : 'X\(/\)' \| \
31374          .     : '\(.\)' 2>/dev/null ||
31375 echo X"$as_dir" |
31376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31377           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31378           /^X\(\/\/\)$/{ s//\1/; q; }
31379           /^X\(\/\).*/{ s//\1/; q; }
31380           s/.*/./; q'`
31381     done
31382     test ! -n "$as_dirs" || mkdir $as_dirs
31383   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31384 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31385    { (exit 1); exit 1; }; }; }
31386
31387       rm -f $ac_file
31388       mv $tmp/config.h $ac_file
31389     fi
31390   else
31391     cat $tmp/config.h
31392     rm -f $tmp/config.h
31393   fi
31394 done
31395 _ACEOF
31396
31397 cat >>$CONFIG_STATUS <<\_ACEOF
31398
31399 { (exit 0); exit 0; }
31400 _ACEOF
31401 chmod +x $CONFIG_STATUS
31402 ac_clean_files=$ac_clean_files_save
31403
31404
31405 # configure is writing to config.log, and then calls config.status.
31406 # config.status does its own redirection, appending to config.log.
31407 # Unfortunately, on DOS this fails, as config.log is still kept open
31408 # by configure, so config.status won't be able to write to it; its
31409 # output is simply discarded.  So we exec the FD to /dev/null,
31410 # effectively closing config.log, so it can be properly (re)opened and
31411 # appended to by config.status.  When coming back to configure, we
31412 # need to make the FD available again.
31413 if test "$no_create" != yes; then
31414   ac_cs_success=:
31415   ac_config_status_args=
31416   test "$silent" = yes &&
31417     ac_config_status_args="$ac_config_status_args --quiet"
31418   exec 5>/dev/null
31419   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31420   exec 5>>config.log
31421   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31422   # would make configure fail if this is the last instruction.
31423   $ac_cs_success || { (exit 1); exit 1; }
31424 fi
31425
31426
31427 if test "$with_pam" = "yes"; then
31428     case $host in
31429         *-*-linux*)
31430             { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
31431 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
31432             ;;
31433     esac
31434 fi
31435
31436
31437
31438
31439
31440
31441
31442
31443
31444
31445
31446
31447
31448
31449
31450
31451
31452
31453
31454
31455
31456
31457
31458
31459
31460
31461
31462
31463
31464
31465
31466
31467
31468
31469
31470
31471
31472
31473
31474
31475
31476
31477
31478
31479
31480
31481
31482
31483
31484
31485
31486
31487
31488
31489
31490
31491
31492
31493
31494
31495
31496
31497
31498
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510
31511
31512
31513
31514
31515
31516
31517
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527
31528
31529
31530
31531
31532
31533
31534
31535
31536
31537
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
31549
31550
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565
31566
31567
31568
31569
31570
31571
31572
31573
31574
31575
31576
31577
31578
31579
31580