When defined USE_ITHREADS and called perl_xlat an perl interpetator is not
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.206 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 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 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME=
424 PACKAGE_TARNAME=
425 PACKAGE_VERSION=
426 PACKAGE_STRING=
427 PACKAGE_BUGREPORT=
428
429 ac_unique_file="src/main/radiusd.c"
430 ac_subdirs_all="$ac_subdirs_all 'libltdl'"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
469 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB abs_top_builddir GMAKE MAKE subdirs LIBLTDLPATH LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 logdir radacctdir raddbdir PERL SNMPGET SNMPWALK RUSERS ACLOCAL AUTOCONF AUTOHEADER LOCATE DIRNAME GREP REGEX REGEX_EXTENDED OPENSSL_INCLUDE OPENSSL_LIBS LIBPREFIX CRYPTLIB SNMP_LIBS SNMP_INCLUDE HOSTINFO LIBLTDL INCLTDL MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION LIBOBJS LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures this package to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 System types:
1012   --build=BUILD     configure for building on BUILD [guessed]
1013   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1014 _ACEOF
1015 fi
1016
1017 if test -n "$ac_init_help"; then
1018
1019   cat <<\_ACEOF
1020
1021 Optional Features:
1022   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1023   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1024   --disable-largefile     omit support for large files
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1033   --enable-developer               Enables features of interest to developers.
1034
1035 Optional Packages:
1036   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1037   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1038   --with-system-libtool              try to use libtool installed in your system default=use our own
1039   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1040   --with-pic              try to use only PIC/non-PIC objects [default=use
1041                           both]
1042   --with-tags[=TAGS]
1043                           include additional configurations [automatic]
1044   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1045   --with-radacctdir=PATH  Directory for detail files LOGDIR/radacct
1046   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1047   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1048   --with-threads          Use threads, if available.  (default=yes)
1049   --with-snmp             Compile in SNMP support. (default=yes)
1050   --with-large-files      Compile in large (2G+) file support. (default=no)
1051   --with-static-modules=QUOTED-MODULE-LIST
1052   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1053   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1054   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1055   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1056   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1057   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1058
1059 Some influential environment variables:
1060   CC          C compiler command
1061   CFLAGS      C compiler flags
1062   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1063               nonstandard directory <lib dir>
1064   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065               headers in a nonstandard directory <include dir>
1066   CPP         C preprocessor
1067   CXX         C++ compiler command
1068   CXXFLAGS    C++ compiler flags
1069   CXXCPP      C++ preprocessor
1070   F77         Fortran 77 compiler command
1071   FFLAGS      Fortran 77 compiler flags
1072
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1075
1076 _ACEOF
1077 fi
1078
1079 if test "$ac_init_help" = "recursive"; then
1080   # If there are subdirs, report their specific --help.
1081   ac_popdir=`pwd`
1082   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083     test -d $ac_dir || continue
1084     ac_builddir=.
1085
1086 if test "$ac_dir" != .; then
1087   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088   # A "../" for each directory in $ac_dir_suffix.
1089   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090 else
1091   ac_dir_suffix= ac_top_builddir=
1092 fi
1093
1094 case $srcdir in
1095   .)  # No --srcdir option.  We are building in place.
1096     ac_srcdir=.
1097     if test -z "$ac_top_builddir"; then
1098        ac_top_srcdir=.
1099     else
1100        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101     fi ;;
1102   [\\/]* | ?:[\\/]* )  # Absolute path.
1103     ac_srcdir=$srcdir$ac_dir_suffix;
1104     ac_top_srcdir=$srcdir ;;
1105   *) # Relative path.
1106     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108 esac
1109
1110 # Do not use `cd foo && pwd` to compute absolute paths, because
1111 # the directories may not exist.
1112 case `pwd` in
1113 .) ac_abs_builddir="$ac_dir";;
1114 *)
1115   case "$ac_dir" in
1116   .) ac_abs_builddir=`pwd`;;
1117   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1119   esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *)
1124   case ${ac_top_builddir}. in
1125   .) ac_abs_top_builddir=$ac_abs_builddir;;
1126   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128   esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_srcdir=$ac_srcdir;;
1132 *)
1133   case $ac_srcdir in
1134   .) ac_abs_srcdir=$ac_abs_builddir;;
1135   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137   esac;;
1138 esac
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *)
1142   case $ac_top_srcdir in
1143   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1146   esac;;
1147 esac
1148
1149     cd $ac_dir
1150     # Check for guested configure; otherwise get Cygnus style configure.
1151     if test -f $ac_srcdir/configure.gnu; then
1152       echo
1153       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1154     elif test -f $ac_srcdir/configure; then
1155       echo
1156       $SHELL $ac_srcdir/configure  --help=recursive
1157     elif test -f $ac_srcdir/configure.ac ||
1158            test -f $ac_srcdir/configure.in; then
1159       echo
1160       $ac_configure --help
1161     else
1162       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163     fi
1164     cd "$ac_popdir"
1165   done
1166 fi
1167
1168 test -n "$ac_init_help" && exit 0
1169 if $ac_init_version; then
1170   cat <<\_ACEOF
1171
1172 Copyright (C) 2003 Free Software Foundation, Inc.
1173 This configure script is free software; the Free Software Foundation
1174 gives unlimited permission to copy, distribute and modify it.
1175 _ACEOF
1176   exit 0
1177 fi
1178 exec 5>config.log
1179 cat >&5 <<_ACEOF
1180 This file contains any messages produced by compilers while
1181 running configure, to aid debugging if configure makes a mistake.
1182
1183 It was created by $as_me, which was
1184 generated by GNU Autoconf 2.59.  Invocation command line was
1185
1186   $ $0 $@
1187
1188 _ACEOF
1189 {
1190 cat <<_ASUNAME
1191 ## --------- ##
1192 ## Platform. ##
1193 ## --------- ##
1194
1195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200
1201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1203
1204 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1205 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1208 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1209 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1210 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1211
1212 _ASUNAME
1213
1214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 for as_dir in $PATH
1216 do
1217   IFS=$as_save_IFS
1218   test -z "$as_dir" && as_dir=.
1219   echo "PATH: $as_dir"
1220 done
1221
1222 } >&5
1223
1224 cat >&5 <<_ACEOF
1225
1226
1227 ## ----------- ##
1228 ## Core tests. ##
1229 ## ----------- ##
1230
1231 _ACEOF
1232
1233
1234 # Keep a trace of the command line.
1235 # Strip out --no-create and --no-recursion so they do not pile up.
1236 # Strip out --silent because we don't want to record it for future runs.
1237 # Also quote any args containing shell meta-characters.
1238 # Make two passes to allow for proper duplicate-argument suppression.
1239 ac_configure_args=
1240 ac_configure_args0=
1241 ac_configure_args1=
1242 ac_sep=
1243 ac_must_keep_next=false
1244 for ac_pass in 1 2
1245 do
1246   for ac_arg
1247   do
1248     case $ac_arg in
1249     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251     | -silent | --silent | --silen | --sile | --sil)
1252       continue ;;
1253     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255     esac
1256     case $ac_pass in
1257     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258     2)
1259       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260       if test $ac_must_keep_next = true; then
1261         ac_must_keep_next=false # Got value, back to normal.
1262       else
1263         case $ac_arg in
1264           *=* | --config-cache | -C | -disable-* | --disable-* \
1265           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267           | -with-* | --with-* | -without-* | --without-* | --x)
1268             case "$ac_configure_args0 " in
1269               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270             esac
1271             ;;
1272           -* ) ac_must_keep_next=true ;;
1273         esac
1274       fi
1275       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276       # Get rid of the leading space.
1277       ac_sep=" "
1278       ;;
1279     esac
1280   done
1281 done
1282 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284
1285 # When interrupted or exit'd, cleanup temporary files, and complete
1286 # config.log.  We remove comments because anyway the quotes in there
1287 # would cause problems or look ugly.
1288 # WARNING: Be sure not to use single quotes in there, as some shells,
1289 # such as our DU 5.0 friend, will then `close' the trap.
1290 trap 'exit_status=$?
1291   # Save into config.log some information that might help in debugging.
1292   {
1293     echo
1294
1295     cat <<\_ASBOX
1296 ## ---------------- ##
1297 ## Cache variables. ##
1298 ## ---------------- ##
1299 _ASBOX
1300     echo
1301     # The following way of writing the cache mishandles newlines in values,
1302 {
1303   (set) 2>&1 |
1304     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305     *ac_space=\ *)
1306       sed -n \
1307         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309       ;;
1310     *)
1311       sed -n \
1312         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1313       ;;
1314     esac;
1315 }
1316     echo
1317
1318     cat <<\_ASBOX
1319 ## ----------------- ##
1320 ## Output variables. ##
1321 ## ----------------- ##
1322 _ASBOX
1323     echo
1324     for ac_var in $ac_subst_vars
1325     do
1326       eval ac_val=$`echo $ac_var`
1327       echo "$ac_var='"'"'$ac_val'"'"'"
1328     done | sort
1329     echo
1330
1331     if test -n "$ac_subst_files"; then
1332       cat <<\_ASBOX
1333 ## ------------- ##
1334 ## Output files. ##
1335 ## ------------- ##
1336 _ASBOX
1337       echo
1338       for ac_var in $ac_subst_files
1339       do
1340         eval ac_val=$`echo $ac_var`
1341         echo "$ac_var='"'"'$ac_val'"'"'"
1342       done | sort
1343       echo
1344     fi
1345
1346     if test -s confdefs.h; then
1347       cat <<\_ASBOX
1348 ## ----------- ##
1349 ## confdefs.h. ##
1350 ## ----------- ##
1351 _ASBOX
1352       echo
1353       sed "/^$/d" confdefs.h | sort
1354       echo
1355     fi
1356     test "$ac_signal" != 0 &&
1357       echo "$as_me: caught signal $ac_signal"
1358     echo "$as_me: exit $exit_status"
1359   } >&5
1360   rm -f core *.core &&
1361   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362     exit $exit_status
1363      ' 0
1364 for ac_signal in 1 2 13 15; do
1365   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 done
1367 ac_signal=0
1368
1369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1370 rm -rf conftest* confdefs.h
1371 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372 echo >confdefs.h
1373
1374 # Predefined preprocessor variables.
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 _ACEOF
1399
1400
1401 # Let the site file select an alternate cache file if it wants to.
1402 # Prefer explicitly selected file to automatically selected ones.
1403 if test -z "$CONFIG_SITE"; then
1404   if test "x$prefix" != xNONE; then
1405     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406   else
1407     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408   fi
1409 fi
1410 for ac_site_file in $CONFIG_SITE; do
1411   if test -r "$ac_site_file"; then
1412     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413 echo "$as_me: loading site script $ac_site_file" >&6;}
1414     sed 's/^/| /' "$ac_site_file" >&5
1415     . "$ac_site_file"
1416   fi
1417 done
1418
1419 if test -r "$cache_file"; then
1420   # Some versions of bash will fail to source /dev/null (special
1421   # files actually), so we avoid doing that.
1422   if test -f "$cache_file"; then
1423     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424 echo "$as_me: loading cache $cache_file" >&6;}
1425     case $cache_file in
1426       [\\/]* | ?:[\\/]* ) . $cache_file;;
1427       *)                      . ./$cache_file;;
1428     esac
1429   fi
1430 else
1431   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432 echo "$as_me: creating cache $cache_file" >&6;}
1433   >$cache_file
1434 fi
1435
1436 # Check that the precious variables saved in the cache have kept the same
1437 # value.
1438 ac_cache_corrupted=false
1439 for ac_var in `(set) 2>&1 |
1440                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442   eval ac_new_set=\$ac_env_${ac_var}_set
1443   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444   eval ac_new_val="\$ac_env_${ac_var}_value"
1445   case $ac_old_set,$ac_new_set in
1446     set,)
1447       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449       ac_cache_corrupted=: ;;
1450     ,set)
1451       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453       ac_cache_corrupted=: ;;
1454     ,);;
1455     *)
1456       if test "x$ac_old_val" != "x$ac_new_val"; then
1457         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1460 echo "$as_me:   former value:  $ac_old_val" >&2;}
1461         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1462 echo "$as_me:   current value: $ac_new_val" >&2;}
1463         ac_cache_corrupted=:
1464       fi;;
1465   esac
1466   # Pass precious variables to config.status.
1467   if test "$ac_new_set" = set; then
1468     case $ac_new_val in
1469     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471     *) ac_arg=$ac_var=$ac_new_val ;;
1472     esac
1473     case " $ac_configure_args " in
1474       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1475       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476     esac
1477   fi
1478 done
1479 if $ac_cache_corrupted; then
1480   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484    { (exit 1); exit 1; }; }
1485 fi
1486
1487 ac_ext=c
1488 ac_cpp='$CPP $CPPFLAGS'
1489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511           ac_config_headers="$ac_config_headers src/include/autoconf.h"
1512
1513
1514 RADIUSD_MAJOR_VERSION=1
1515 RADIUSD_MINOR_VERSION=1.0-pre0
1516 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1517
1518
1519 ac_ext=c
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$CC"; then
1533   ac_cv_prog_CC="$CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   for ac_exec_ext in '' $ac_executable_extensions; do
1541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 fi
1550 fi
1551 CC=$ac_cv_prog_CC
1552 if test -n "$CC"; then
1553   echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560 fi
1561 if test -z "$ac_cv_prog_CC"; then
1562   ac_ct_CC=$CC
1563   # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   if test -n "$ac_ct_CC"; then
1571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 else
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   for ac_exec_ext in '' $ac_executable_extensions; do
1579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580     ac_cv_prog_ac_ct_CC="gcc"
1581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582     break 2
1583   fi
1584 done
1585 done
1586
1587 fi
1588 fi
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1593 else
1594   echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598   CC=$ac_ct_CC
1599 else
1600   CC="$ac_cv_prog_CC"
1601 fi
1602
1603 if test -z "$CC"; then
1604   if test -n "$ac_tool_prefix"; then
1605   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$CC"; then
1613   ac_cv_prog_CC="$CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   for ac_exec_ext in '' $ac_executable_extensions; do
1621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622     ac_cv_prog_CC="${ac_tool_prefix}cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 CC=$ac_cv_prog_CC
1632 if test -n "$CC"; then
1633   echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640 fi
1641 if test -z "$ac_cv_prog_CC"; then
1642   ac_ct_CC=$CC
1643   # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   if test -n "$ac_ct_CC"; then
1651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656   IFS=$as_save_IFS
1657   test -z "$as_dir" && as_dir=.
1658   for ac_exec_ext in '' $ac_executable_extensions; do
1659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660     ac_cv_prog_ac_ct_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674   echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678   CC=$ac_ct_CC
1679 else
1680   CC="$ac_cv_prog_CC"
1681 fi
1682
1683 fi
1684 if test -z "$CC"; then
1685   # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   if test -n "$CC"; then
1693   ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695   ac_prog_rejected=no
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   for ac_exec_ext in '' $ac_executable_extensions; do
1702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704        ac_prog_rejected=yes
1705        continue
1706      fi
1707     ac_cv_prog_CC="cc"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 if test $ac_prog_rejected = yes; then
1715   # We found a bogon in the path, so make sure we never use it.
1716   set dummy $ac_cv_prog_CC
1717   shift
1718   if test $# != 0; then
1719     # We chose a different compiler from the bogus one.
1720     # However, it has the same basename, so the bogon will be chosen
1721     # first if we set CC to just the basename; use the full file name.
1722     shift
1723     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1724   fi
1725 fi
1726 fi
1727 fi
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730   echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 fi
1738 if test -z "$CC"; then
1739   if test -n "$ac_tool_prefix"; then
1740   for ac_prog in cl
1741   do
1742     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747   echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749   if test -n "$CC"; then
1750   ac_cv_prog_CC="$CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755   IFS=$as_save_IFS
1756   test -z "$as_dir" && as_dir=.
1757   for ac_exec_ext in '' $ac_executable_extensions; do
1758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761     break 2
1762   fi
1763 done
1764 done
1765
1766 fi
1767 fi
1768 CC=$ac_cv_prog_CC
1769 if test -n "$CC"; then
1770   echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 fi
1776
1777     test -n "$CC" && break
1778   done
1779 fi
1780 if test -z "$CC"; then
1781   ac_ct_CC=$CC
1782   for ac_prog in cl
1783 do
1784   # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789   echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791   if test -n "$ac_ct_CC"; then
1792   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797   IFS=$as_save_IFS
1798   test -z "$as_dir" && as_dir=.
1799   for ac_exec_ext in '' $ac_executable_extensions; do
1800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801     ac_cv_prog_ac_ct_CC="$ac_prog"
1802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803     break 2
1804   fi
1805 done
1806 done
1807
1808 fi
1809 fi
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819   test -n "$ac_ct_CC" && break
1820 done
1821
1822   CC=$ac_ct_CC
1823 fi
1824
1825 fi
1826
1827
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832    { (exit 1); exit 1; }; }
1833
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836      "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839   (eval $ac_compiler --version </dev/null >&5) 2>&5
1840   ac_status=$?
1841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842   (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844   (eval $ac_compiler -v </dev/null >&5) 2>&5
1845   ac_status=$?
1846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847   (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849   (eval $ac_compiler -V </dev/null >&5) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }
1853
1854 cat >conftest.$ac_ext <<_ACEOF
1855 /* confdefs.h.  */
1856 _ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h.  */
1860
1861 int
1862 main ()
1863 {
1864
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1873 # of exeext.
1874 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878   (eval $ac_link_default) 2>&5
1879   ac_status=$?
1880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881   (exit $ac_status); }; then
1882   # Find the output, starting from the most likely.  This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1884 # resort.
1885
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1888 ac_cv_exeext=
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1891 do
1892   test -f "$ac_file" || continue
1893   case $ac_file in
1894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1895         ;;
1896     conftest.$ac_ext )
1897         # This is the source file.
1898         ;;
1899     [ab].out )
1900         # We found the default executable, but exeext='' is most
1901         # certainly right.
1902         break;;
1903     *.* )
1904         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905         # FIXME: I believe we export ac_cv_exeext for Libtool,
1906         # but it would be cool to find out if it's true.  Does anybody
1907         # maintain Libtool? --akim.
1908         export ac_cv_exeext
1909         break;;
1910     * )
1911         break;;
1912   esac
1913 done
1914 else
1915   echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922    { (exit 77); exit 77; }; }
1923 fi
1924
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1928
1929 # Check the compiler produces executables we can run.  If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936   if { ac_try='./$ac_file'
1937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938   (eval $ac_try) 2>&5
1939   ac_status=$?
1940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941   (exit $ac_status); }; }; then
1942     cross_compiling=no
1943   else
1944     if test "$cross_compiling" = maybe; then
1945         cross_compiling=yes
1946     else
1947         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953    { (exit 1); exit 1; }; }
1954     fi
1955   fi
1956 fi
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1959
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run.  If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1968
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972   (eval $ac_link) 2>&5
1973   ac_status=$?
1974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975   (exit $ac_status); }; then
1976   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 # `rm'.
1980 for ac_file in conftest.exe conftest conftest.*; do
1981   test -f "$ac_file" || continue
1982   case $ac_file in
1983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985           export ac_cv_exeext
1986           break;;
1987     * ) break;;
1988   esac
1989 done
1990 else
1991   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2001
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2004 ac_exeext=$EXEEXT
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   cat >conftest.$ac_ext <<_ACEOF
2011 /* confdefs.h.  */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h.  */
2016
2017 int
2018 main ()
2019 {
2020
2021   ;
2022   return 0;
2023 }
2024 _ACEOF
2025 rm -f conftest.o conftest.obj
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027   (eval $ac_compile) 2>&5
2028   ac_status=$?
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); }; then
2031   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2032   case $ac_file in
2033     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2034     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2035        break;;
2036   esac
2037 done
2038 else
2039   echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&2;}
2046    { (exit 1); exit 1; }; }
2047 fi
2048
2049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2050 fi
2051 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2052 echo "${ECHO_T}$ac_cv_objext" >&6
2053 OBJEXT=$ac_cv_objext
2054 ac_objext=$OBJEXT
2055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   cat >conftest.$ac_ext <<_ACEOF
2061 /* confdefs.h.  */
2062 _ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h.  */
2066
2067 int
2068 main ()
2069 {
2070 #ifndef __GNUC__
2071        choke me
2072 #endif
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080   (eval $ac_compile) 2>conftest.er1
2081   ac_status=$?
2082   grep -v '^ *+' conftest.er1 >conftest.err
2083   rm -f conftest.er1
2084   cat conftest.err >&5
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; } &&
2093          { ac_try='test -s conftest.$ac_objext'
2094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095   (eval $ac_try) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }; }; then
2099   ac_compiler_gnu=yes
2100 else
2101   echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2103
2104 ac_compiler_gnu=no
2105 fi
2106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2108
2109 fi
2110 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2111 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2112 GCC=`test $ac_compiler_gnu = yes && echo yes`
2113 ac_test_CFLAGS=${CFLAGS+set}
2114 ac_save_CFLAGS=$CFLAGS
2115 CFLAGS="-g"
2116 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2117 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2118 if test "${ac_cv_prog_cc_g+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   cat >conftest.$ac_ext <<_ACEOF
2122 /* confdefs.h.  */
2123 _ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h.  */
2127
2128 int
2129 main ()
2130 {
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 rm -f conftest.$ac_objext
2137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138   (eval $ac_compile) 2>conftest.er1
2139   ac_status=$?
2140   grep -v '^ *+' conftest.er1 >conftest.err
2141   rm -f conftest.er1
2142   cat conftest.err >&5
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); } &&
2145          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147   (eval $ac_try) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }; } &&
2151          { ac_try='test -s conftest.$ac_objext'
2152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153   (eval $ac_try) 2>&5
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); }; }; then
2157   ac_cv_prog_cc_g=yes
2158 else
2159   echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 ac_cv_prog_cc_g=no
2163 fi
2164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2165 fi
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2168 if test "$ac_test_CFLAGS" = set; then
2169   CFLAGS=$ac_save_CFLAGS
2170 elif test $ac_cv_prog_cc_g = yes; then
2171   if test "$GCC" = yes; then
2172     CFLAGS="-g -O2"
2173   else
2174     CFLAGS="-g"
2175   fi
2176 else
2177   if test "$GCC" = yes; then
2178     CFLAGS="-O2"
2179   else
2180     CFLAGS=
2181   fi
2182 fi
2183 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2184 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2185 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   ac_cv_prog_cc_stdc=no
2189 ac_save_CC=$CC
2190 cat >conftest.$ac_ext <<_ACEOF
2191 /* confdefs.h.  */
2192 _ACEOF
2193 cat confdefs.h >>conftest.$ac_ext
2194 cat >>conftest.$ac_ext <<_ACEOF
2195 /* end confdefs.h.  */
2196 #include <stdarg.h>
2197 #include <stdio.h>
2198 #include <sys/types.h>
2199 #include <sys/stat.h>
2200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2201 struct buf { int x; };
2202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2203 static char *e (p, i)
2204      char **p;
2205      int i;
2206 {
2207   return p[i];
2208 }
2209 static char *f (char * (*g) (char **, int), char **p, ...)
2210 {
2211   char *s;
2212   va_list v;
2213   va_start (v,p);
2214   s = g (p, va_arg (v,int));
2215   va_end (v);
2216   return s;
2217 }
2218
2219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2220    function prototypes and stuff, but not '\xHH' hex character constants.
2221    These don't provoke an error unfortunately, instead are silently treated
2222    as 'x'.  The following induces an error, until -std1 is added to get
2223    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2224    array size at least.  It's necessary to write '\x00'==0 to get something
2225    that's true only with -std1.  */
2226 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2227
2228 int test (int i, double x);
2229 struct s1 {int (*f) (int a);};
2230 struct s2 {int (*f) (double a);};
2231 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2232 int argc;
2233 char **argv;
2234 int
2235 main ()
2236 {
2237 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 # Don't try gcc -ansi; that turns off useful extensions and
2243 # breaks some systems' header files.
2244 # AIX                   -qlanglvl=ansi
2245 # Ultrix and OSF/1      -std1
2246 # HP-UX 10.20 and later -Ae
2247 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2248 # SVR4                  -Xc -D__EXTENSIONS__
2249 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2250 do
2251   CC="$ac_save_CC $ac_arg"
2252   rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254   (eval $ac_compile) 2>conftest.er1
2255   ac_status=$?
2256   grep -v '^ *+' conftest.er1 >conftest.err
2257   rm -f conftest.er1
2258   cat conftest.err >&5
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); } &&
2261          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263   (eval $ac_try) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   ac_cv_prog_cc_stdc=$ac_arg
2274 break
2275 else
2276   echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 fi
2280 rm -f conftest.err conftest.$ac_objext
2281 done
2282 rm -f conftest.$ac_ext conftest.$ac_objext
2283 CC=$ac_save_CC
2284
2285 fi
2286
2287 case "x$ac_cv_prog_cc_stdc" in
2288   x|xno)
2289     echo "$as_me:$LINENO: result: none needed" >&5
2290 echo "${ECHO_T}none needed" >&6 ;;
2291   *)
2292     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2293 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2294     CC="$CC $ac_cv_prog_cc_stdc" ;;
2295 esac
2296
2297 # Some people use a C++ compiler to compile C.  Since we use `exit',
2298 # in C++ we need to declare it.  In case someone uses the same compiler
2299 # for both compiling C and C++ we need to have the C++ compiler decide
2300 # the declaration of exit, since it's the most demanding environment.
2301 cat >conftest.$ac_ext <<_ACEOF
2302 #ifndef __cplusplus
2303   choke me
2304 #endif
2305 _ACEOF
2306 rm -f conftest.$ac_objext
2307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308   (eval $ac_compile) 2>conftest.er1
2309   ac_status=$?
2310   grep -v '^ *+' conftest.er1 >conftest.err
2311   rm -f conftest.er1
2312   cat conftest.err >&5
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); } &&
2315          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317   (eval $ac_try) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; } &&
2321          { ac_try='test -s conftest.$ac_objext'
2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323   (eval $ac_try) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; }; then
2327   for ac_declaration in \
2328    '' \
2329    'extern "C" void std::exit (int) throw (); using std::exit;' \
2330    'extern "C" void std::exit (int); using std::exit;' \
2331    'extern "C" void exit (int) throw ();' \
2332    'extern "C" void exit (int);' \
2333    'void exit (int);'
2334 do
2335   cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h.  */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h.  */
2341 $ac_declaration
2342 #include <stdlib.h>
2343 int
2344 main ()
2345 {
2346 exit (42);
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353   (eval $ac_compile) 2>conftest.er1
2354   ac_status=$?
2355   grep -v '^ *+' conftest.er1 >conftest.err
2356   rm -f conftest.er1
2357   cat conftest.err >&5
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); } &&
2360          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362   (eval $ac_try) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; } &&
2366          { ac_try='test -s conftest.$ac_objext'
2367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368   (eval $ac_try) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }; }; then
2372   :
2373 else
2374   echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 continue
2378 fi
2379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380   cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h.  */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h.  */
2386 $ac_declaration
2387 int
2388 main ()
2389 {
2390 exit (42);
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397   (eval $ac_compile) 2>conftest.er1
2398   ac_status=$?
2399   grep -v '^ *+' conftest.er1 >conftest.err
2400   rm -f conftest.er1
2401   cat conftest.err >&5
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); } &&
2404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406   (eval $ac_try) 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; } &&
2410          { ac_try='test -s conftest.$ac_objext'
2411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412   (eval $ac_try) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; }; then
2416   break
2417 else
2418   echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 fi
2422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2423 done
2424 rm -f conftest*
2425 if test -n "$ac_declaration"; then
2426   echo '#ifdef __cplusplus' >>confdefs.h
2427   echo $ac_declaration      >>confdefs.h
2428   echo '#endif'             >>confdefs.h
2429 fi
2430
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 fi
2436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437 ac_ext=c
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442
2443
2444
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2451 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2452 # On Suns, sometimes $CPP names a directory.
2453 if test -n "$CPP" && test -d "$CPP"; then
2454   CPP=
2455 fi
2456 if test -z "$CPP"; then
2457   if test "${ac_cv_prog_CPP+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460       # Double quotes because CPP needs to be expanded
2461     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2462     do
2463       ac_preproc_ok=false
2464 for ac_c_preproc_warn_flag in '' yes
2465 do
2466   # Use a header file that comes with gcc, so configuring glibc
2467   # with a fresh cross-compiler works.
2468   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2469   # <limits.h> exists even on freestanding compilers.
2470   # On the NeXT, cc -E runs the code through the compiler's parser,
2471   # not just through cpp. "Syntax error" is here to catch this case.
2472   cat >conftest.$ac_ext <<_ACEOF
2473 /* confdefs.h.  */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h.  */
2478 #ifdef __STDC__
2479 # include <limits.h>
2480 #else
2481 # include <assert.h>
2482 #endif
2483                      Syntax error
2484 _ACEOF
2485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2486   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2487   ac_status=$?
2488   grep -v '^ *+' conftest.er1 >conftest.err
2489   rm -f conftest.er1
2490   cat conftest.err >&5
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); } >/dev/null; then
2493   if test -s conftest.err; then
2494     ac_cpp_err=$ac_c_preproc_warn_flag
2495     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2496   else
2497     ac_cpp_err=
2498   fi
2499 else
2500   ac_cpp_err=yes
2501 fi
2502 if test -z "$ac_cpp_err"; then
2503   :
2504 else
2505   echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508   # Broken: fails on valid input.
2509 continue
2510 fi
2511 rm -f conftest.err conftest.$ac_ext
2512
2513   # OK, works on sane cases.  Now check whether non-existent headers
2514   # can be detected and how.
2515   cat >conftest.$ac_ext <<_ACEOF
2516 /* confdefs.h.  */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h.  */
2521 #include <ac_nonexistent.h>
2522 _ACEOF
2523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2525   ac_status=$?
2526   grep -v '^ *+' conftest.er1 >conftest.err
2527   rm -f conftest.er1
2528   cat conftest.err >&5
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); } >/dev/null; then
2531   if test -s conftest.err; then
2532     ac_cpp_err=$ac_c_preproc_warn_flag
2533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2534   else
2535     ac_cpp_err=
2536   fi
2537 else
2538   ac_cpp_err=yes
2539 fi
2540 if test -z "$ac_cpp_err"; then
2541   # Broken: success on invalid input.
2542 continue
2543 else
2544   echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547   # Passes both tests.
2548 ac_preproc_ok=:
2549 break
2550 fi
2551 rm -f conftest.err conftest.$ac_ext
2552
2553 done
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2557   break
2558 fi
2559
2560     done
2561     ac_cv_prog_CPP=$CPP
2562
2563 fi
2564   CPP=$ac_cv_prog_CPP
2565 else
2566   ac_cv_prog_CPP=$CPP
2567 fi
2568 echo "$as_me:$LINENO: result: $CPP" >&5
2569 echo "${ECHO_T}$CPP" >&6
2570 ac_preproc_ok=false
2571 for ac_c_preproc_warn_flag in '' yes
2572 do
2573   # Use a header file that comes with gcc, so configuring glibc
2574   # with a fresh cross-compiler works.
2575   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2576   # <limits.h> exists even on freestanding compilers.
2577   # On the NeXT, cc -E runs the code through the compiler's parser,
2578   # not just through cpp. "Syntax error" is here to catch this case.
2579   cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h.  */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h.  */
2585 #ifdef __STDC__
2586 # include <limits.h>
2587 #else
2588 # include <assert.h>
2589 #endif
2590                      Syntax error
2591 _ACEOF
2592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2593   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2594   ac_status=$?
2595   grep -v '^ *+' conftest.er1 >conftest.err
2596   rm -f conftest.er1
2597   cat conftest.err >&5
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); } >/dev/null; then
2600   if test -s conftest.err; then
2601     ac_cpp_err=$ac_c_preproc_warn_flag
2602     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2603   else
2604     ac_cpp_err=
2605   fi
2606 else
2607   ac_cpp_err=yes
2608 fi
2609 if test -z "$ac_cpp_err"; then
2610   :
2611 else
2612   echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2614
2615   # Broken: fails on valid input.
2616 continue
2617 fi
2618 rm -f conftest.err conftest.$ac_ext
2619
2620   # OK, works on sane cases.  Now check whether non-existent headers
2621   # can be detected and how.
2622   cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628 #include <ac_nonexistent.h>
2629 _ACEOF
2630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2632   ac_status=$?
2633   grep -v '^ *+' conftest.er1 >conftest.err
2634   rm -f conftest.er1
2635   cat conftest.err >&5
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); } >/dev/null; then
2638   if test -s conftest.err; then
2639     ac_cpp_err=$ac_c_preproc_warn_flag
2640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2641   else
2642     ac_cpp_err=
2643   fi
2644 else
2645   ac_cpp_err=yes
2646 fi
2647 if test -z "$ac_cpp_err"; then
2648   # Broken: success on invalid input.
2649 continue
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654   # Passes both tests.
2655 ac_preproc_ok=:
2656 break
2657 fi
2658 rm -f conftest.err conftest.$ac_ext
2659
2660 done
2661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2662 rm -f conftest.err conftest.$ac_ext
2663 if $ac_preproc_ok; then
2664   :
2665 else
2666   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2667 See \`config.log' for more details." >&5
2668 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2669 See \`config.log' for more details." >&2;}
2670    { (exit 1); exit 1; }; }
2671 fi
2672
2673 ac_ext=c
2674 ac_cpp='$CPP $CPPFLAGS'
2675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678
2679
2680 echo "$as_me:$LINENO: checking for egrep" >&5
2681 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2682 if test "${ac_cv_prog_egrep+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2686     then ac_cv_prog_egrep='grep -E'
2687     else ac_cv_prog_egrep='egrep'
2688     fi
2689 fi
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2691 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2692  EGREP=$ac_cv_prog_egrep
2693
2694
2695
2696 echo "$as_me:$LINENO: checking for AIX" >&5
2697 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2698 cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h.  */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h.  */
2704 #ifdef _AIX
2705   yes
2706 #endif
2707
2708 _ACEOF
2709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2710   $EGREP "yes" >/dev/null 2>&1; then
2711   echo "$as_me:$LINENO: result: yes" >&5
2712 echo "${ECHO_T}yes" >&6
2713 cat >>confdefs.h <<\_ACEOF
2714 #define _ALL_SOURCE 1
2715 _ACEOF
2716
2717 else
2718   echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6
2720 fi
2721 rm -f conftest*
2722
2723
2724
2725 if test $ac_cv_c_compiler_gnu = yes; then
2726     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2727 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2728 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2729   echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731     ac_pattern="Autoconf.*'x'"
2732   cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738 #include <sgtty.h>
2739 Autoconf TIOCGETP
2740 _ACEOF
2741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2742   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2743   ac_cv_prog_gcc_traditional=yes
2744 else
2745   ac_cv_prog_gcc_traditional=no
2746 fi
2747 rm -f conftest*
2748
2749
2750   if test $ac_cv_prog_gcc_traditional = no; then
2751     cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757 #include <termio.h>
2758 Autoconf TCGETA
2759 _ACEOF
2760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2761   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2762   ac_cv_prog_gcc_traditional=yes
2763 fi
2764 rm -f conftest*
2765
2766   fi
2767 fi
2768 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2769 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2770   if test $ac_cv_prog_gcc_traditional = yes; then
2771     CC="$CC -traditional"
2772   fi
2773 fi
2774
2775 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2776 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2777 if test "${ac_cv_prog_suncc+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   cat > conftest.c <<EOF
2781 #ifdef __SUNPRO_C
2782   yes;
2783 #endif
2784 EOF
2785 if { ac_try='${CC-cc} -E conftest.c'
2786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787   (eval $ac_try) 2>&5
2788   ac_status=$?
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2791   ac_cv_prog_suncc=yes
2792 else
2793   ac_cv_prog_suncc=no
2794 fi
2795 fi
2796 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2797 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2798 if test -n "$ac_tool_prefix"; then
2799   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_RANLIB+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806   if test -n "$RANLIB"; then
2807   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814   for ac_exec_ext in '' $ac_executable_extensions; do
2815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818     break 2
2819   fi
2820 done
2821 done
2822
2823 fi
2824 fi
2825 RANLIB=$ac_cv_prog_RANLIB
2826 if test -n "$RANLIB"; then
2827   echo "$as_me:$LINENO: result: $RANLIB" >&5
2828 echo "${ECHO_T}$RANLIB" >&6
2829 else
2830   echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2832 fi
2833
2834 fi
2835 if test -z "$ac_cv_prog_RANLIB"; then
2836   ac_ct_RANLIB=$RANLIB
2837   # Extract the first word of "ranlib", so it can be a program name with args.
2838 set dummy ranlib; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   if test -n "$ac_ct_RANLIB"; then
2845   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852   for ac_exec_ext in '' $ac_executable_extensions; do
2853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854     ac_cv_prog_ac_ct_RANLIB="ranlib"
2855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859 done
2860
2861   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2862 fi
2863 fi
2864 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2865 if test -n "$ac_ct_RANLIB"; then
2866   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2867 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2868 else
2869   echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2871 fi
2872
2873   RANLIB=$ac_ct_RANLIB
2874 else
2875   RANLIB="$ac_cv_prog_RANLIB"
2876 fi
2877
2878
2879 abs_top_builddir=`pwd`
2880
2881
2882 # Check whether --enable-largefile or --disable-largefile was given.
2883 if test "${enable_largefile+set}" = set; then
2884   enableval="$enable_largefile"
2885
2886 fi;
2887 if test "$enable_largefile" != no; then
2888
2889   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2890 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2891 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894   ac_cv_sys_largefile_CC=no
2895      if test "$GCC" != yes; then
2896        ac_save_CC=$CC
2897        while :; do
2898          # IRIX 6.2 and later do not support large files by default,
2899          # so use the C compiler's -n32 option if that helps.
2900          cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h.  */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h.  */
2906 #include <sys/types.h>
2907  /* Check that off_t can represent 2**63 - 1 correctly.
2908     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2909     since some C++ compilers masquerading as C compilers
2910     incorrectly reject 9223372036854775807.  */
2911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2912   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2913                        && LARGE_OFF_T % 2147483647 == 1)
2914                       ? 1 : -1];
2915 int
2916 main ()
2917 {
2918
2919   ;
2920   return 0;
2921 }
2922 _ACEOF
2923          rm -f conftest.$ac_objext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2925   (eval $ac_compile) 2>conftest.er1
2926   ac_status=$?
2927   grep -v '^ *+' conftest.er1 >conftest.err
2928   rm -f conftest.er1
2929   cat conftest.err >&5
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); } &&
2932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934   (eval $ac_try) 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; } &&
2938          { ac_try='test -s conftest.$ac_objext'
2939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940   (eval $ac_try) 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }; }; then
2944   break
2945 else
2946   echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 fi
2950 rm -f conftest.err conftest.$ac_objext
2951          CC="$CC -n32"
2952          rm -f conftest.$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954   (eval $ac_compile) 2>conftest.er1
2955   ac_status=$?
2956   grep -v '^ *+' conftest.er1 >conftest.err
2957   rm -f conftest.er1
2958   cat conftest.err >&5
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); } &&
2961          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963   (eval $ac_try) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; } &&
2967          { ac_try='test -s conftest.$ac_objext'
2968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; }; then
2973   ac_cv_sys_largefile_CC=' -n32'; break
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978 fi
2979 rm -f conftest.err conftest.$ac_objext
2980          break
2981        done
2982        CC=$ac_save_CC
2983        rm -f conftest.$ac_ext
2984     fi
2985 fi
2986 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2987 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2988   if test "$ac_cv_sys_largefile_CC" != no; then
2989     CC=$CC$ac_cv_sys_largefile_CC
2990   fi
2991
2992   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2993 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2994 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   while :; do
2998   ac_cv_sys_file_offset_bits=no
2999   cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h.  */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h.  */
3005 #include <sys/types.h>
3006  /* Check that off_t can represent 2**63 - 1 correctly.
3007     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3008     since some C++ compilers masquerading as C compilers
3009     incorrectly reject 9223372036854775807.  */
3010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3011   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3012                        && LARGE_OFF_T % 2147483647 == 1)
3013                       ? 1 : -1];
3014 int
3015 main ()
3016 {
3017
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024   (eval $ac_compile) 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } &&
3031          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033   (eval $ac_try) 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; } &&
3037          { ac_try='test -s conftest.$ac_objext'
3038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039   (eval $ac_try) 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; }; then
3043   break
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 fi
3049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050   cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056 #define _FILE_OFFSET_BITS 64
3057 #include <sys/types.h>
3058  /* Check that off_t can represent 2**63 - 1 correctly.
3059     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3060     since some C++ compilers masquerading as C compilers
3061     incorrectly reject 9223372036854775807.  */
3062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3063   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3064                        && LARGE_OFF_T % 2147483647 == 1)
3065                       ? 1 : -1];
3066 int
3067 main ()
3068 {
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076   (eval $ac_compile) 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; } &&
3089          { ac_try='test -s conftest.$ac_objext'
3090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091   (eval $ac_try) 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }; }; then
3095   ac_cv_sys_file_offset_bits=64; break
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 fi
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3102   break
3103 done
3104 fi
3105 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3106 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3107 if test "$ac_cv_sys_file_offset_bits" != no; then
3108
3109 cat >>confdefs.h <<_ACEOF
3110 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3111 _ACEOF
3112
3113 fi
3114 rm -f conftest*
3115   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3116 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3117 if test "${ac_cv_sys_large_files+set}" = set; then
3118   echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120   while :; do
3121   ac_cv_sys_large_files=no
3122   cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128 #include <sys/types.h>
3129  /* Check that off_t can represent 2**63 - 1 correctly.
3130     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3131     since some C++ compilers masquerading as C compilers
3132     incorrectly reject 9223372036854775807.  */
3133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3134   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3135                        && LARGE_OFF_T % 2147483647 == 1)
3136                       ? 1 : -1];
3137 int
3138 main ()
3139 {
3140
3141   ;
3142   return 0;
3143 }
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147   (eval $ac_compile) 2>conftest.er1
3148   ac_status=$?
3149   grep -v '^ *+' conftest.er1 >conftest.err
3150   rm -f conftest.er1
3151   cat conftest.err >&5
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); } &&
3154          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156   (eval $ac_try) 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; } &&
3160          { ac_try='test -s conftest.$ac_objext'
3161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162   (eval $ac_try) 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }; }; then
3166   break
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 fi
3172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3173   cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179 #define _LARGE_FILES 1
3180 #include <sys/types.h>
3181  /* Check that off_t can represent 2**63 - 1 correctly.
3182     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3183     since some C++ compilers masquerading as C compilers
3184     incorrectly reject 9223372036854775807.  */
3185 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3186   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3187                        && LARGE_OFF_T % 2147483647 == 1)
3188                       ? 1 : -1];
3189 int
3190 main ()
3191 {
3192
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199   (eval $ac_compile) 2>conftest.er1
3200   ac_status=$?
3201   grep -v '^ *+' conftest.er1 >conftest.err
3202   rm -f conftest.er1
3203   cat conftest.err >&5
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); } &&
3206          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208   (eval $ac_try) 2>&5
3209   ac_status=$?
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); }; } &&
3212          { ac_try='test -s conftest.$ac_objext'
3213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214   (eval $ac_try) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; }; then
3218   ac_cv_sys_large_files=1; break
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 fi
3224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3225   break
3226 done
3227 fi
3228 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3229 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3230 if test "$ac_cv_sys_large_files" != no; then
3231
3232 cat >>confdefs.h <<_ACEOF
3233 #define _LARGE_FILES $ac_cv_sys_large_files
3234 _ACEOF
3235
3236 fi
3237 rm -f conftest*
3238 fi
3239
3240
3241 PACKAGE=freeradius
3242
3243 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3244 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3245 if test "${ac_cv_c_bigendian+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248   # See if sys/param.h defines the BYTE_ORDER macro.
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255 #include <sys/types.h>
3256 #include <sys/param.h>
3257
3258 int
3259 main ()
3260 {
3261 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3262  bogus endian macros
3263 #endif
3264
3265   ;
3266   return 0;
3267 }
3268 _ACEOF
3269 rm -f conftest.$ac_objext
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271   (eval $ac_compile) 2>conftest.er1
3272   ac_status=$?
3273   grep -v '^ *+' conftest.er1 >conftest.err
3274   rm -f conftest.er1
3275   cat conftest.err >&5
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); } &&
3278          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280   (eval $ac_try) 2>&5
3281   ac_status=$?
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); }; } &&
3284          { ac_try='test -s conftest.$ac_objext'
3285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286   (eval $ac_try) 2>&5
3287   ac_status=$?
3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289   (exit $ac_status); }; }; then
3290   # It does; now see whether it defined to BIG_ENDIAN or not.
3291 cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h.  */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h.  */
3297 #include <sys/types.h>
3298 #include <sys/param.h>
3299
3300 int
3301 main ()
3302 {
3303 #if BYTE_ORDER != BIG_ENDIAN
3304  not big endian
3305 #endif
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313   (eval $ac_compile) 2>conftest.er1
3314   ac_status=$?
3315   grep -v '^ *+' conftest.er1 >conftest.err
3316   rm -f conftest.er1
3317   cat conftest.err >&5
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); } &&
3320          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322   (eval $ac_try) 2>&5
3323   ac_status=$?
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); }; } &&
3326          { ac_try='test -s conftest.$ac_objext'
3327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328   (eval $ac_try) 2>&5
3329   ac_status=$?
3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); }; }; then
3332   ac_cv_c_bigendian=yes
3333 else
3334   echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337 ac_cv_c_bigendian=no
3338 fi
3339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3340 else
3341   echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344 # It does not; compile a test program.
3345 if test "$cross_compiling" = yes; then
3346   # try to guess the endianness by grepping values into an object file
3347   ac_cv_c_bigendian=unknown
3348   cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h.  */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h.  */
3354 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3355 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3356 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3357 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3358 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3359 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3360 int
3361 main ()
3362 {
3363  _ascii (); _ebcdic ();
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 rm -f conftest.$ac_objext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3370   (eval $ac_compile) 2>conftest.er1
3371   ac_status=$?
3372   grep -v '^ *+' conftest.er1 >conftest.err
3373   rm -f conftest.er1
3374   cat conftest.err >&5
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } &&
3377          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379   (eval $ac_try) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; } &&
3383          { ac_try='test -s conftest.$ac_objext'
3384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385   (eval $ac_try) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }; }; then
3389   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3390   ac_cv_c_bigendian=yes
3391 fi
3392 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3393   if test "$ac_cv_c_bigendian" = unknown; then
3394     ac_cv_c_bigendian=no
3395   else
3396     # finding both strings is unlikely to happen, but who knows?
3397     ac_cv_c_bigendian=unknown
3398   fi
3399 fi
3400 else
3401   echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3403
3404 fi
3405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406 else
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 int
3414 main ()
3415 {
3416   /* Are we little or big endian?  From Harbison&Steele.  */
3417   union
3418   {
3419     long l;
3420     char c[sizeof (long)];
3421   } u;
3422   u.l = 1;
3423   exit (u.c[sizeof (long) - 1] == 1);
3424 }
3425 _ACEOF
3426 rm -f conftest$ac_exeext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3428   (eval $ac_link) 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433   (eval $ac_try) 2>&5
3434   ac_status=$?
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); }; }; then
3437   ac_cv_c_bigendian=no
3438 else
3439   echo "$as_me: program exited with status $ac_status" >&5
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 ( exit $ac_status )
3444 ac_cv_c_bigendian=yes
3445 fi
3446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3447 fi
3448 fi
3449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3450 fi
3451 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3452 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3453 case $ac_cv_c_bigendian in
3454   yes)
3455
3456 cat >>confdefs.h <<\_ACEOF
3457 #define WORDS_BIGENDIAN 1
3458 _ACEOF
3459  ;;
3460   no)
3461      ;;
3462   *)
3463     { { echo "$as_me:$LINENO: error: unknown endianness
3464 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3465 echo "$as_me: error: unknown endianness
3466 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3467    { (exit 1); exit 1; }; } ;;
3468 esac
3469
3470
3471 # Extract the first word of "gmake", so it can be a program name with args.
3472 set dummy gmake; ac_word=$2
3473 echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475 if test "${ac_cv_prog_GMAKE+set}" = set; then
3476   echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478   if test -n "$GMAKE"; then
3479   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484   IFS=$as_save_IFS
3485   test -z "$as_dir" && as_dir=.
3486   for ac_exec_ext in '' $ac_executable_extensions; do
3487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488     ac_cv_prog_GMAKE="yes"
3489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490     break 2
3491   fi
3492 done
3493 done
3494
3495   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3496 fi
3497 fi
3498 GMAKE=$ac_cv_prog_GMAKE
3499 if test -n "$GMAKE"; then
3500   echo "$as_me:$LINENO: result: $GMAKE" >&5
3501 echo "${ECHO_T}$GMAKE" >&6
3502 else
3503   echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3505 fi
3506
3507 if test $GMAKE = no; then
3508   # Extract the first word of "make", so it can be a program name with args.
3509 set dummy make; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_path_MAKE+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   case $MAKE in
3516   [\\/]* | ?:[\\/]*)
3517   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3518   ;;
3519   *)
3520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523   IFS=$as_save_IFS
3524   test -z "$as_dir" && as_dir=.
3525   for ac_exec_ext in '' $ac_executable_extensions; do
3526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529     break 2
3530   fi
3531 done
3532 done
3533
3534   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3535   ;;
3536 esac
3537 fi
3538 MAKE=$ac_cv_path_MAKE
3539
3540 if test -n "$MAKE"; then
3541   echo "$as_me:$LINENO: result: $MAKE" >&5
3542 echo "${ECHO_T}$MAKE" >&6
3543 else
3544   echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3546 fi
3547
3548 else
3549   # Extract the first word of "gmake", so it can be a program name with args.
3550 set dummy gmake; ac_word=$2
3551 echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553 if test "${ac_cv_path_MAKE+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   case $MAKE in
3557   [\\/]* | ?:[\\/]*)
3558   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3559   ;;
3560   *)
3561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566   for ac_exec_ext in '' $ac_executable_extensions; do
3567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573 done
3574
3575   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3576   ;;
3577 esac
3578 fi
3579 MAKE=$ac_cv_path_MAKE
3580
3581 if test -n "$MAKE"; then
3582   echo "$as_me:$LINENO: result: $MAKE" >&5
3583 echo "${ECHO_T}$MAKE" >&6
3584 else
3585   echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3587 fi
3588
3589 fi
3590 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3591 if test -z "$makever"; then
3592   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
3593                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3594 echo "$as_me: error: GNU Make is not installed.  Please download and install it
3595                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3596    { (exit 1); exit 1; }; }
3597 fi
3598
3599   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3600 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3601 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604   ac_check_lib_save_LIBS=$LIBS
3605 LIBS="-lltdl  $LIBS"
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h.  */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h.  */
3612
3613 /* Override any gcc2 internal prototype to avoid an error.  */
3614 #ifdef __cplusplus
3615 extern "C"
3616 #endif
3617 /* We use char because int might match the return type of a gcc2
3618    builtin and then its argument prototype would still apply.  */
3619 char lt_dlinit ();
3620 int
3621 main ()
3622 {
3623 lt_dlinit ();
3624   ;
3625   return 0;
3626 }
3627 _ACEOF
3628 rm -f conftest.$ac_objext conftest$ac_exeext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3630   (eval $ac_link) 2>conftest.er1
3631   ac_status=$?
3632   grep -v '^ *+' conftest.er1 >conftest.err
3633   rm -f conftest.er1
3634   cat conftest.err >&5
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); } &&
3637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639   (eval $ac_try) 2>&5
3640   ac_status=$?
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); }; } &&
3643          { ac_try='test -s conftest$ac_exeext'
3644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645   (eval $ac_try) 2>&5
3646   ac_status=$?
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); }; }; then
3649   ac_cv_lib_ltdl_lt_dlinit=yes
3650 else
3651   echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 ac_cv_lib_ltdl_lt_dlinit=no
3655 fi
3656 rm -f conftest.err conftest.$ac_objext \
3657       conftest$ac_exeext conftest.$ac_ext
3658 LIBS=$ac_check_lib_save_LIBS
3659 fi
3660 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3661 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3662 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3663   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3664 else
3665   if test x"$enable_ltdl_install" = xno; then
3666      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3667 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3668    else
3669      enable_ltdl_install=yes
3670    fi
3671
3672 fi
3673
3674   if test x"$enable_ltdl_install" = x"yes"; then
3675     ac_configure_args="$ac_configure_args --enable-ltdl-install"
3676     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3677     LTDLINCL='-I${top_srcdir}/''libltdl'
3678   else
3679     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3680     LIBLTDL="-lltdl"
3681     LTDLINCL=
3682   fi
3683   # For backwards non-gettext consistent compatibility...
3684   INCLTDL="$LTDLINCL"
3685
3686 ac_aux_dir=
3687 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3688   if test -f $ac_dir/install-sh; then
3689     ac_aux_dir=$ac_dir
3690     ac_install_sh="$ac_aux_dir/install-sh -c"
3691     break
3692   elif test -f $ac_dir/install.sh; then
3693     ac_aux_dir=$ac_dir
3694     ac_install_sh="$ac_aux_dir/install.sh -c"
3695     break
3696   elif test -f $ac_dir/shtool; then
3697     ac_aux_dir=$ac_dir
3698     ac_install_sh="$ac_aux_dir/shtool install -c"
3699     break
3700   fi
3701 done
3702 if test -z "$ac_aux_dir"; then
3703   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3704 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3705    { (exit 1); exit 1; }; }
3706 fi
3707 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3708 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3709 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3710
3711
3712    LIBLTDLPATH=
3713    if test x"$enable_ltdl_install" = x"yes"; then
3714
3715
3716 subdirs="$subdirs 'libltdl'"
3717
3718      LIBLTDLPATH=libltdl
3719     fi
3720
3721
3722
3723 # Check whether --enable-shared or --disable-shared was given.
3724 if test "${enable_shared+set}" = set; then
3725   enableval="$enable_shared"
3726   p=${PACKAGE-default}
3727     case $enableval in
3728     yes) enable_shared=yes ;;
3729     no) enable_shared=no ;;
3730     *)
3731       enable_shared=no
3732       # Look at the argument we got.  We use all the common list separators.
3733       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3734       for pkg in $enableval; do
3735         IFS="$lt_save_ifs"
3736         if test "X$pkg" = "X$p"; then
3737           enable_shared=yes
3738         fi
3739       done
3740       IFS="$lt_save_ifs"
3741       ;;
3742     esac
3743 else
3744   enable_shared=yes
3745 fi;
3746
3747 # Check whether --enable-static or --disable-static was given.
3748 if test "${enable_static+set}" = set; then
3749   enableval="$enable_static"
3750   p=${PACKAGE-default}
3751     case $enableval in
3752     yes) enable_static=yes ;;
3753     no) enable_static=no ;;
3754     *)
3755      enable_static=no
3756       # Look at the argument we got.  We use all the common list separators.
3757       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758       for pkg in $enableval; do
3759         IFS="$lt_save_ifs"
3760         if test "X$pkg" = "X$p"; then
3761           enable_static=yes
3762         fi
3763       done
3764       IFS="$lt_save_ifs"
3765       ;;
3766     esac
3767 else
3768   enable_static=yes
3769 fi;
3770
3771 # Check whether --enable-fast-install or --disable-fast-install was given.
3772 if test "${enable_fast_install+set}" = set; then
3773   enableval="$enable_fast_install"
3774   p=${PACKAGE-default}
3775     case $enableval in
3776     yes) enable_fast_install=yes ;;
3777     no) enable_fast_install=no ;;
3778     *)
3779       enable_fast_install=no
3780       # Look at the argument we got.  We use all the common list separators.
3781       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3782       for pkg in $enableval; do
3783         IFS="$lt_save_ifs"
3784         if test "X$pkg" = "X$p"; then
3785           enable_fast_install=yes
3786         fi
3787       done
3788       IFS="$lt_save_ifs"
3789       ;;
3790     esac
3791 else
3792   enable_fast_install=yes
3793 fi;
3794
3795 # Make sure we can run config.sub.
3796 $ac_config_sub sun4 >/dev/null 2>&1 ||
3797   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3798 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3799    { (exit 1); exit 1; }; }
3800
3801 echo "$as_me:$LINENO: checking build system type" >&5
3802 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3803 if test "${ac_cv_build+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   ac_cv_build_alias=$build_alias
3807 test -z "$ac_cv_build_alias" &&
3808   ac_cv_build_alias=`$ac_config_guess`
3809 test -z "$ac_cv_build_alias" &&
3810   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3811 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3812    { (exit 1); exit 1; }; }
3813 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3814   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3815 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3816    { (exit 1); exit 1; }; }
3817
3818 fi
3819 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3820 echo "${ECHO_T}$ac_cv_build" >&6
3821 build=$ac_cv_build
3822 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3823 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3824 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3825
3826
3827 echo "$as_me:$LINENO: checking host system type" >&5
3828 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3829 if test "${ac_cv_host+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   ac_cv_host_alias=$host_alias
3833 test -z "$ac_cv_host_alias" &&
3834   ac_cv_host_alias=$ac_cv_build_alias
3835 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3836   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3837 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3838    { (exit 1); exit 1; }; }
3839
3840 fi
3841 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3842 echo "${ECHO_T}$ac_cv_host" >&6
3843 host=$ac_cv_host
3844 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3845 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3846 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3847
3848
3849 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3850 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3851 if test "${lt_cv_path_SED+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   # Loop through the user's path and test for sed and gsed.
3855 # Then use that list of sed's as ones to test for truncation.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3858 do
3859   IFS=$as_save_IFS
3860   test -z "$as_dir" && as_dir=.
3861   for lt_ac_prog in sed gsed; do
3862     for ac_exec_ext in '' $ac_executable_extensions; do
3863       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3864         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3865       fi
3866     done
3867   done
3868 done
3869 lt_ac_max=0
3870 lt_ac_count=0
3871 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3872 # along with /bin/sed that truncates output.
3873 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3874   test ! -f $lt_ac_sed && break
3875   cat /dev/null > conftest.in
3876   lt_ac_count=0
3877   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3878   # Check for GNU sed and select it if it is found.
3879   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3880     lt_cv_path_SED=$lt_ac_sed
3881     break
3882   fi
3883   while true; do
3884     cat conftest.in conftest.in >conftest.tmp
3885     mv conftest.tmp conftest.in
3886     cp conftest.in conftest.nl
3887     echo >>conftest.nl
3888     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3889     cmp -s conftest.out conftest.nl || break
3890     # 10000 chars as input seems more than enough
3891     test $lt_ac_count -gt 10 && break
3892     lt_ac_count=`expr $lt_ac_count + 1`
3893     if test $lt_ac_count -gt $lt_ac_max; then
3894       lt_ac_max=$lt_ac_count
3895       lt_cv_path_SED=$lt_ac_sed
3896     fi
3897   done
3898 done
3899 SED=$lt_cv_path_SED
3900
3901 fi
3902
3903 echo "$as_me:$LINENO: result: $SED" >&5
3904 echo "${ECHO_T}$SED" >&6
3905
3906
3907 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3908 if test "${with_gnu_ld+set}" = set; then
3909   withval="$with_gnu_ld"
3910   test "$withval" = no || with_gnu_ld=yes
3911 else
3912   with_gnu_ld=no
3913 fi;
3914 ac_prog=ld
3915 if test "$GCC" = yes; then
3916   # Check if gcc -print-prog-name=ld gives a path.
3917   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3918 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3919   case $host in
3920   *-*-mingw*)
3921     # gcc leaves a trailing carriage return which upsets mingw
3922     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3923   *)
3924     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3925   esac
3926   case $ac_prog in
3927     # Accept absolute paths.
3928     [\\/]* | ?:[\\/]*)
3929       re_direlt='/[^/][^/]*/\.\./'
3930       # Canonicalize the pathname of ld
3931       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3932       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3933         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3934       done
3935       test -z "$LD" && LD="$ac_prog"
3936       ;;
3937   "")
3938     # If it fails, then pretend we aren't using GCC.
3939     ac_prog=ld
3940     ;;
3941   *)
3942     # If it is relative, then search for the first ld in PATH.
3943     with_gnu_ld=unknown
3944     ;;
3945   esac
3946 elif test "$with_gnu_ld" = yes; then
3947   echo "$as_me:$LINENO: checking for GNU ld" >&5
3948 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3949 else
3950   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3951 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3952 fi
3953 if test "${lt_cv_path_LD+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   if test -z "$LD"; then
3957   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3958   for ac_dir in $PATH; do
3959     IFS="$lt_save_ifs"
3960     test -z "$ac_dir" && ac_dir=.
3961     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3962       lt_cv_path_LD="$ac_dir/$ac_prog"
3963       # Check to see if the program is GNU ld.  I'd rather use --version,
3964       # but apparently some GNU ld's only accept -v.
3965       # Break only if it was the GNU/non-GNU ld that we prefer.
3966       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3967       *GNU* | *'with BFD'*)
3968         test "$with_gnu_ld" != no && break
3969         ;;
3970       *)
3971         test "$with_gnu_ld" != yes && break
3972         ;;
3973       esac
3974     fi
3975   done
3976   IFS="$lt_save_ifs"
3977 else
3978   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3979 fi
3980 fi
3981
3982 LD="$lt_cv_path_LD"
3983 if test -n "$LD"; then
3984   echo "$as_me:$LINENO: result: $LD" >&5
3985 echo "${ECHO_T}$LD" >&6
3986 else
3987   echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3989 fi
3990 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3991 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3992    { (exit 1); exit 1; }; }
3993 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3994 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3995 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3996   echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3999 case `$LD -v 2>&1 </dev/null` in
4000 *GNU* | *'with BFD'*)
4001   lt_cv_prog_gnu_ld=yes
4002   ;;
4003 *)
4004   lt_cv_prog_gnu_ld=no
4005   ;;
4006 esac
4007 fi
4008 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4009 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4010 with_gnu_ld=$lt_cv_prog_gnu_ld
4011
4012
4013 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4014 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4015 if test "${lt_cv_ld_reload_flag+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   lt_cv_ld_reload_flag='-r'
4019 fi
4020 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4021 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4022 reload_flag=$lt_cv_ld_reload_flag
4023 case $reload_flag in
4024 "" | " "*) ;;
4025 *) reload_flag=" $reload_flag" ;;
4026 esac
4027 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4028
4029 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4030 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4031 if test "${lt_cv_path_NM+set}" = set; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   if test -n "$NM"; then
4035   # Let the user override the test.
4036   lt_cv_path_NM="$NM"
4037 else
4038   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4039   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4040     IFS="$lt_save_ifs"
4041     test -z "$ac_dir" && ac_dir=.
4042     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4043     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4044       # Check to see if the nm accepts a BSD-compat flag.
4045       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4046       #   nm: unknown option "B" ignored
4047       # Tru64's nm complains that /dev/null is an invalid object file
4048       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4049       */dev/null* | *'Invalid file or object type'*)
4050         lt_cv_path_NM="$tmp_nm -B"
4051         break
4052         ;;
4053       *)
4054         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4055         */dev/null*)
4056           lt_cv_path_NM="$tmp_nm -p"
4057           break
4058           ;;
4059         *)
4060           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4061           continue # so that we can try to find one that supports BSD flags
4062           ;;
4063         esac
4064       esac
4065     fi
4066   done
4067   IFS="$lt_save_ifs"
4068   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4069 fi
4070 fi
4071 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4072 echo "${ECHO_T}$lt_cv_path_NM" >&6
4073 NM="$lt_cv_path_NM"
4074
4075 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4076 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4077 LN_S=$as_ln_s
4078 if test "$LN_S" = "ln -s"; then
4079   echo "$as_me:$LINENO: result: yes" >&5
4080 echo "${ECHO_T}yes" >&6
4081 else
4082   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4083 echo "${ECHO_T}no, using $LN_S" >&6
4084 fi
4085
4086 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4087 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4088 if test "${lt_cv_deplibs_check_method+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   lt_cv_file_magic_cmd='$MAGIC_CMD'
4092 lt_cv_file_magic_test_file=
4093 lt_cv_deplibs_check_method='unknown'
4094 # Need to set the preceding variable on all platforms that support
4095 # interlibrary dependencies.
4096 # 'none' -- dependencies not supported.
4097 # `unknown' -- same as none, but documents that we really don't know.
4098 # 'pass_all' -- all dependencies passed with no checks.
4099 # 'test_compile' -- check by making test program.
4100 # 'file_magic [[regex]]' -- check by looking for files in library path
4101 # which responds to the $file_magic_cmd with a given extended regex.
4102 # If you have `file' or equivalent on your system and you're not sure
4103 # whether `pass_all' will *always* work, you probably want this one.
4104
4105 case $host_os in
4106 aix4* | aix5*)
4107   lt_cv_deplibs_check_method=pass_all
4108   ;;
4109
4110 beos*)
4111   lt_cv_deplibs_check_method=pass_all
4112   ;;
4113
4114 bsdi4*)
4115   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4116   lt_cv_file_magic_cmd='/usr/bin/file -L'
4117   lt_cv_file_magic_test_file=/shlib/libc.so
4118   ;;
4119
4120 cygwin*)
4121   # func_win32_libid is a shell function defined in ltmain.sh
4122   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4123   lt_cv_file_magic_cmd='func_win32_libid'
4124   ;;
4125
4126 mingw* | pw32*)
4127   # Base MSYS/MinGW do not provide the 'file' command needed by
4128   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4129   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4130   lt_cv_file_magic_cmd='$OBJDUMP -f'
4131   ;;
4132
4133 darwin* | rhapsody*)
4134   lt_cv_deplibs_check_method=pass_all
4135   ;;
4136
4137 freebsd* | kfreebsd*-gnu)
4138   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4139     case $host_cpu in
4140     i*86 )
4141       # Not sure whether the presence of OpenBSD here was a mistake.
4142       # Let's accept both of them until this is cleared up.
4143       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4144       lt_cv_file_magic_cmd=/usr/bin/file
4145       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4146       ;;
4147     esac
4148   else
4149     lt_cv_deplibs_check_method=pass_all
4150   fi
4151   ;;
4152
4153 gnu*)
4154   lt_cv_deplibs_check_method=pass_all
4155   ;;
4156
4157 hpux10.20* | hpux11*)
4158   lt_cv_file_magic_cmd=/usr/bin/file
4159   case "$host_cpu" in
4160   ia64*)
4161     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4162     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4163     ;;
4164   hppa*64*)
4165     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]'
4166     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4167     ;;
4168   *)
4169     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4170     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4171     ;;
4172   esac
4173   ;;
4174
4175 irix5* | irix6* | nonstopux*)
4176   case $LD in
4177   *-32|*"-32 ") libmagic=32-bit;;
4178   *-n32|*"-n32 ") libmagic=N32;;
4179   *-64|*"-64 ") libmagic=64-bit;;
4180   *) libmagic=never-match;;
4181   esac
4182   lt_cv_deplibs_check_method=pass_all
4183   ;;
4184
4185 # This must be Linux ELF.
4186 linux*)
4187   lt_cv_deplibs_check_method=pass_all
4188   ;;
4189
4190 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4191   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4192     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4193   else
4194     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4195   fi
4196   ;;
4197
4198 newos6*)
4199   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4200   lt_cv_file_magic_cmd=/usr/bin/file
4201   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4202   ;;
4203
4204 nto-qnx*)
4205   lt_cv_deplibs_check_method=unknown
4206   ;;
4207
4208 openbsd*)
4209   lt_cv_file_magic_cmd=/usr/bin/file
4210   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4211   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4212     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4213   else
4214     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4215   fi
4216   ;;
4217
4218 osf3* | osf4* | osf5*)
4219   lt_cv_deplibs_check_method=pass_all
4220   ;;
4221
4222 sco3.2v5*)
4223   lt_cv_deplibs_check_method=pass_all
4224   ;;
4225
4226 solaris*)
4227   lt_cv_deplibs_check_method=pass_all
4228   ;;
4229
4230 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4231   case $host_vendor in
4232   motorola)
4233     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]'
4234     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4235     ;;
4236   ncr)
4237     lt_cv_deplibs_check_method=pass_all
4238     ;;
4239   sequent)
4240     lt_cv_file_magic_cmd='/bin/file'
4241     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4242     ;;
4243   sni)
4244     lt_cv_file_magic_cmd='/bin/file'
4245     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4246     lt_cv_file_magic_test_file=/lib/libc.so
4247     ;;
4248   siemens)
4249     lt_cv_deplibs_check_method=pass_all
4250     ;;
4251   esac
4252   ;;
4253
4254 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4255   lt_cv_deplibs_check_method=pass_all
4256   ;;
4257 esac
4258
4259 fi
4260 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4261 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4262 file_magic_cmd=$lt_cv_file_magic_cmd
4263 deplibs_check_method=$lt_cv_deplibs_check_method
4264 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4265
4266
4267
4268
4269 # If no C compiler was specified, use CC.
4270 LTCC=${LTCC-"$CC"}
4271
4272 # Allow CC to be a program name with arguments.
4273 compiler=$CC
4274
4275 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4276 if test "${enable_libtool_lock+set}" = set; then
4277   enableval="$enable_libtool_lock"
4278
4279 fi;
4280 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4281
4282 # Some flags need to be propagated to the compiler or linker for good
4283 # libtool support.
4284 case $host in
4285 ia64-*-hpux*)
4286   # Find out which ABI we are using.
4287   echo 'int i;' > conftest.$ac_ext
4288   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289   (eval $ac_compile) 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); }; then
4293     case `/usr/bin/file conftest.$ac_objext` in
4294     *ELF-32*)
4295       HPUX_IA64_MODE="32"
4296       ;;
4297     *ELF-64*)
4298       HPUX_IA64_MODE="64"
4299       ;;
4300     esac
4301   fi
4302   rm -rf conftest*
4303   ;;
4304 *-*-irix6*)
4305   # Find out which ABI we are using.
4306   echo '#line 4306 "configure"' > conftest.$ac_ext
4307   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308   (eval $ac_compile) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; then
4312    if test "$lt_cv_prog_gnu_ld" = yes; then
4313     case `/usr/bin/file conftest.$ac_objext` in
4314     *32-bit*)
4315       LD="${LD-ld} -melf32bsmip"
4316       ;;
4317     *N32*)
4318       LD="${LD-ld} -melf32bmipn32"
4319       ;;
4320     *64-bit*)
4321       LD="${LD-ld} -melf64bmip"
4322       ;;
4323     esac
4324    else
4325     case `/usr/bin/file conftest.$ac_objext` in
4326     *32-bit*)
4327       LD="${LD-ld} -32"
4328       ;;
4329     *N32*)
4330       LD="${LD-ld} -n32"
4331       ;;
4332     *64-bit*)
4333       LD="${LD-ld} -64"
4334       ;;
4335     esac
4336    fi
4337   fi
4338   rm -rf conftest*
4339   ;;
4340
4341 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4342   # Find out which ABI we are using.
4343   echo 'int i;' > conftest.$ac_ext
4344   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345   (eval $ac_compile) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; then
4349     case "`/usr/bin/file conftest.o`" in
4350     *32-bit*)
4351       case $host in
4352         x86_64-*linux*)
4353           LD="${LD-ld} -m elf_i386"
4354           ;;
4355         ppc64-*linux*|powerpc64-*linux*)
4356           LD="${LD-ld} -m elf32ppclinux"
4357           ;;
4358         s390x-*linux*)
4359           LD="${LD-ld} -m elf_s390"
4360           ;;
4361         sparc64-*linux*)
4362           LD="${LD-ld} -m elf32_sparc"
4363           ;;
4364       esac
4365       ;;
4366     *64-bit*)
4367       case $host in
4368         x86_64-*linux*)
4369           LD="${LD-ld} -m elf_x86_64"
4370           ;;
4371         ppc*-*linux*|powerpc*-*linux*)
4372           LD="${LD-ld} -m elf64ppc"
4373           ;;
4374         s390*-*linux*)
4375           LD="${LD-ld} -m elf64_s390"
4376           ;;
4377         sparc*-*linux*)
4378           LD="${LD-ld} -m elf64_sparc"
4379           ;;
4380       esac
4381       ;;
4382     esac
4383   fi
4384   rm -rf conftest*
4385   ;;
4386
4387 *-*-sco3.2v5*)
4388   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4389   SAVE_CFLAGS="$CFLAGS"
4390   CFLAGS="$CFLAGS -belf"
4391   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4392 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4393 if test "${lt_cv_cc_needs_belf+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   ac_ext=c
4397 ac_cpp='$CPP $CPPFLAGS'
4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401
4402      cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h.  */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h.  */
4408
4409 int
4410 main ()
4411 {
4412
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.$ac_objext conftest$ac_exeext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4419   (eval $ac_link) 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } &&
4426          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428   (eval $ac_try) 2>&5
4429   ac_status=$?
4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); }; } &&
4432          { ac_try='test -s conftest$ac_exeext'
4433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434   (eval $ac_try) 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; }; then
4438   lt_cv_cc_needs_belf=yes
4439 else
4440   echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443 lt_cv_cc_needs_belf=no
4444 fi
4445 rm -f conftest.err conftest.$ac_objext \
4446       conftest$ac_exeext conftest.$ac_ext
4447      ac_ext=c
4448 ac_cpp='$CPP $CPPFLAGS'
4449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452
4453 fi
4454 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4455 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4456   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4457     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4458     CFLAGS="$SAVE_CFLAGS"
4459   fi
4460   ;;
4461
4462 esac
4463
4464 need_locks="$enable_libtool_lock"
4465
4466
4467 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4468 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4469 if test "${ac_cv_header_stdc+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h.  */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h.  */
4478 #include <stdlib.h>
4479 #include <stdarg.h>
4480 #include <string.h>
4481 #include <float.h>
4482
4483 int
4484 main ()
4485 {
4486
4487   ;
4488   return 0;
4489 }
4490 _ACEOF
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493   (eval $ac_compile) 2>conftest.er1
4494   ac_status=$?
4495   grep -v '^ *+' conftest.er1 >conftest.err
4496   rm -f conftest.er1
4497   cat conftest.err >&5
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); } &&
4500          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502   (eval $ac_try) 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; } &&
4506          { ac_try='test -s conftest.$ac_objext'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; }; then
4512   ac_cv_header_stdc=yes
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517 ac_cv_header_stdc=no
4518 fi
4519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4520
4521 if test $ac_cv_header_stdc = yes; then
4522   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4523   cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h.  */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h.  */
4529 #include <string.h>
4530
4531 _ACEOF
4532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533   $EGREP "memchr" >/dev/null 2>&1; then
4534   :
4535 else
4536   ac_cv_header_stdc=no
4537 fi
4538 rm -f conftest*
4539
4540 fi
4541
4542 if test $ac_cv_header_stdc = yes; then
4543   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4544   cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550 #include <stdlib.h>
4551
4552 _ACEOF
4553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554   $EGREP "free" >/dev/null 2>&1; then
4555   :
4556 else
4557   ac_cv_header_stdc=no
4558 fi
4559 rm -f conftest*
4560
4561 fi
4562
4563 if test $ac_cv_header_stdc = yes; then
4564   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4565   if test "$cross_compiling" = yes; then
4566   :
4567 else
4568   cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4574 #include <ctype.h>
4575 #if ((' ' & 0x0FF) == 0x020)
4576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4578 #else
4579 # define ISLOWER(c) \
4580                    (('a' <= (c) && (c) <= 'i') \
4581                      || ('j' <= (c) && (c) <= 'r') \
4582                      || ('s' <= (c) && (c) <= 'z'))
4583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4584 #endif
4585
4586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4587 int
4588 main ()
4589 {
4590   int i;
4591   for (i = 0; i < 256; i++)
4592     if (XOR (islower (i), ISLOWER (i))
4593         || toupper (i) != TOUPPER (i))
4594       exit(2);
4595   exit (0);
4596 }
4597 _ACEOF
4598 rm -f conftest$ac_exeext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600   (eval $ac_link) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605   (eval $ac_try) 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }; }; then
4609   :
4610 else
4611   echo "$as_me: program exited with status $ac_status" >&5
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615 ( exit $ac_status )
4616 ac_cv_header_stdc=no
4617 fi
4618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4619 fi
4620 fi
4621 fi
4622 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4623 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4624 if test $ac_cv_header_stdc = yes; then
4625
4626 cat >>confdefs.h <<\_ACEOF
4627 #define STDC_HEADERS 1
4628 _ACEOF
4629
4630 fi
4631
4632 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4643                   inttypes.h stdint.h unistd.h
4644 do
4645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4646 echo "$as_me:$LINENO: checking for $ac_header" >&5
4647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649   echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651   cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h.  */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h.  */
4657 $ac_includes_default
4658
4659 #include <$ac_header>
4660 _ACEOF
4661 rm -f conftest.$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663   (eval $ac_compile) 2>conftest.er1
4664   ac_status=$?
4665   grep -v '^ *+' conftest.er1 >conftest.err
4666   rm -f conftest.er1
4667   cat conftest.err >&5
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } &&
4670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; } &&
4676          { ac_try='test -s conftest.$ac_objext'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; }; then
4682   eval "$as_ac_Header=yes"
4683 else
4684   echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 eval "$as_ac_Header=no"
4688 fi
4689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4690 fi
4691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4694   cat >>confdefs.h <<_ACEOF
4695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4696 _ACEOF
4697
4698 fi
4699
4700 done
4701
4702
4703
4704 for ac_header in dlfcn.h
4705 do
4706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4708   echo "$as_me:$LINENO: checking for $ac_header" >&5
4709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 fi
4713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4715 else
4716   # Is the header compilable?
4717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h.  */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h.  */
4725 $ac_includes_default
4726 #include <$ac_header>
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730   (eval $ac_compile) 2>conftest.er1
4731   ac_status=$?
4732   grep -v '^ *+' conftest.er1 >conftest.err
4733   rm -f conftest.er1
4734   cat conftest.err >&5
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } &&
4737          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739   (eval $ac_try) 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); }; } &&
4743          { ac_try='test -s conftest.$ac_objext'
4744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745   (eval $ac_try) 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }; }; then
4749   ac_header_compiler=yes
4750 else
4751   echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 ac_header_compiler=no
4755 fi
4756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4758 echo "${ECHO_T}$ac_header_compiler" >&6
4759
4760 # Is the header present?
4761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769 #include <$ac_header>
4770 _ACEOF
4771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4773   ac_status=$?
4774   grep -v '^ *+' conftest.er1 >conftest.err
4775   rm -f conftest.er1
4776   cat conftest.err >&5
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); } >/dev/null; then
4779   if test -s conftest.err; then
4780     ac_cpp_err=$ac_c_preproc_warn_flag
4781     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4782   else
4783     ac_cpp_err=
4784   fi
4785 else
4786   ac_cpp_err=yes
4787 fi
4788 if test -z "$ac_cpp_err"; then
4789   ac_header_preproc=yes
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794   ac_header_preproc=no
4795 fi
4796 rm -f conftest.err conftest.$ac_ext
4797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4798 echo "${ECHO_T}$ac_header_preproc" >&6
4799
4800 # So?  What about this header?
4801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4802   yes:no: )
4803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4807     ac_header_preproc=yes
4808     ;;
4809   no:yes:* )
4810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4822     (
4823       cat <<\_ASBOX
4824 ## ------------------------------------------ ##
4825 ## Report this to the AC_PACKAGE_NAME lists.  ##
4826 ## ------------------------------------------ ##
4827 _ASBOX
4828     ) |
4829       sed "s/^/$as_me: WARNING:     /" >&2
4830     ;;
4831 esac
4832 echo "$as_me:$LINENO: checking for $ac_header" >&5
4833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   eval "$as_ac_Header=\$ac_header_preproc"
4838 fi
4839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4841
4842 fi
4843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4844   cat >>confdefs.h <<_ACEOF
4845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4846 _ACEOF
4847
4848 fi
4849
4850 done
4851
4852 ac_ext=cc
4853 ac_cpp='$CXXCPP $CPPFLAGS'
4854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4857 if test -n "$ac_tool_prefix"; then
4858   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4859   do
4860     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4862 echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4864 if test "${ac_cv_prog_CXX+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   if test -n "$CXX"; then
4868   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883
4884 fi
4885 fi
4886 CXX=$ac_cv_prog_CXX
4887 if test -n "$CXX"; then
4888   echo "$as_me:$LINENO: result: $CXX" >&5
4889 echo "${ECHO_T}$CXX" >&6
4890 else
4891   echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6
4893 fi
4894
4895     test -n "$CXX" && break
4896   done
4897 fi
4898 if test -z "$CXX"; then
4899   ac_ct_CXX=$CXX
4900   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4901 do
4902   # Extract the first word of "$ac_prog", so it can be a program name with args.
4903 set dummy $ac_prog; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   if test -n "$ac_ct_CXX"; then
4910   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917   for ac_exec_ext in '' $ac_executable_extensions; do
4918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919     ac_cv_prog_ac_ct_CXX="$ac_prog"
4920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924 done
4925
4926 fi
4927 fi
4928 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4929 if test -n "$ac_ct_CXX"; then
4930   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4931 echo "${ECHO_T}$ac_ct_CXX" >&6
4932 else
4933   echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937   test -n "$ac_ct_CXX" && break
4938 done
4939 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4940
4941   CXX=$ac_ct_CXX
4942 fi
4943
4944
4945 # Provide some information about the compiler.
4946 echo "$as_me:$LINENO:" \
4947      "checking for C++ compiler version" >&5
4948 ac_compiler=`set X $ac_compile; echo $2`
4949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4950   (eval $ac_compiler --version </dev/null >&5) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }
4954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4955   (eval $ac_compiler -v </dev/null >&5) 2>&5
4956   ac_status=$?
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); }
4959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4960   (eval $ac_compiler -V </dev/null >&5) 2>&5
4961   ac_status=$?
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); }
4964
4965 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4966 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4967 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4968   echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970   cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h.  */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h.  */
4976
4977 int
4978 main ()
4979 {
4980 #ifndef __GNUC__
4981        choke me
4982 #endif
4983
4984   ;
4985   return 0;
4986 }
4987 _ACEOF
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990   (eval $ac_compile) 2>conftest.er1
4991   ac_status=$?
4992   grep -v '^ *+' conftest.er1 >conftest.err
4993   rm -f conftest.er1
4994   cat conftest.err >&5
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } &&
4997          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999   (eval $ac_try) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; } &&
5003          { ac_try='test -s conftest.$ac_objext'
5004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005   (eval $ac_try) 2>&5
5006   ac_status=$?
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); }; }; then
5009   ac_compiler_gnu=yes
5010 else
5011   echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 ac_compiler_gnu=no
5015 fi
5016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5018
5019 fi
5020 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5021 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5022 GXX=`test $ac_compiler_gnu = yes && echo yes`
5023 ac_test_CXXFLAGS=${CXXFLAGS+set}
5024 ac_save_CXXFLAGS=$CXXFLAGS
5025 CXXFLAGS="-g"
5026 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5027 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5028 if test "${ac_cv_prog_cxx_g+set}" = set; then
5029   echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031   cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h.  */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h.  */
5037
5038 int
5039 main ()
5040 {
5041
5042   ;
5043   return 0;
5044 }
5045 _ACEOF
5046 rm -f conftest.$ac_objext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048   (eval $ac_compile) 2>conftest.er1
5049   ac_status=$?
5050   grep -v '^ *+' conftest.er1 >conftest.err
5051   rm -f conftest.er1
5052   cat conftest.err >&5
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); } &&
5055          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057   (eval $ac_try) 2>&5
5058   ac_status=$?
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); }; } &&
5061          { ac_try='test -s conftest.$ac_objext'
5062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063   (eval $ac_try) 2>&5
5064   ac_status=$?
5065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066   (exit $ac_status); }; }; then
5067   ac_cv_prog_cxx_g=yes
5068 else
5069   echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 ac_cv_prog_cxx_g=no
5073 fi
5074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5075 fi
5076 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5077 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5078 if test "$ac_test_CXXFLAGS" = set; then
5079   CXXFLAGS=$ac_save_CXXFLAGS
5080 elif test $ac_cv_prog_cxx_g = yes; then
5081   if test "$GXX" = yes; then
5082     CXXFLAGS="-g -O2"
5083   else
5084     CXXFLAGS="-g"
5085   fi
5086 else
5087   if test "$GXX" = yes; then
5088     CXXFLAGS="-O2"
5089   else
5090     CXXFLAGS=
5091   fi
5092 fi
5093 for ac_declaration in \
5094    '' \
5095    'extern "C" void std::exit (int) throw (); using std::exit;' \
5096    'extern "C" void std::exit (int); using std::exit;' \
5097    'extern "C" void exit (int) throw ();' \
5098    'extern "C" void exit (int);' \
5099    'void exit (int);'
5100 do
5101   cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107 $ac_declaration
5108 #include <stdlib.h>
5109 int
5110 main ()
5111 {
5112 exit (42);
5113   ;
5114   return 0;
5115 }
5116 _ACEOF
5117 rm -f conftest.$ac_objext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5119   (eval $ac_compile) 2>conftest.er1
5120   ac_status=$?
5121   grep -v '^ *+' conftest.er1 >conftest.err
5122   rm -f conftest.er1
5123   cat conftest.err >&5
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); } &&
5126          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128   (eval $ac_try) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }; } &&
5132          { ac_try='test -s conftest.$ac_objext'
5133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134   (eval $ac_try) 2>&5
5135   ac_status=$?
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); }; }; then
5138   :
5139 else
5140   echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143 continue
5144 fi
5145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5146   cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h.  */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h.  */
5152 $ac_declaration
5153 int
5154 main ()
5155 {
5156 exit (42);
5157   ;
5158   return 0;
5159 }
5160 _ACEOF
5161 rm -f conftest.$ac_objext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5163   (eval $ac_compile) 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } &&
5170          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172   (eval $ac_try) 2>&5
5173   ac_status=$?
5174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175   (exit $ac_status); }; } &&
5176          { ac_try='test -s conftest.$ac_objext'
5177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178   (eval $ac_try) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); }; }; then
5182   break
5183 else
5184   echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5186
5187 fi
5188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5189 done
5190 rm -f conftest*
5191 if test -n "$ac_declaration"; then
5192   echo '#ifdef __cplusplus' >>confdefs.h
5193   echo $ac_declaration      >>confdefs.h
5194   echo '#endif'             >>confdefs.h
5195 fi
5196
5197 ac_ext=cc
5198 ac_cpp='$CXXCPP $CPPFLAGS'
5199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5202
5203 ac_ext=cc
5204 ac_cpp='$CXXCPP $CPPFLAGS'
5205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5208 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5209 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5210 if test -z "$CXXCPP"; then
5211   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214       # Double quotes because CXXCPP needs to be expanded
5215     for CXXCPP in "$CXX -E" "/lib/cpp"
5216     do
5217       ac_preproc_ok=false
5218 for ac_cxx_preproc_warn_flag in '' yes
5219 do
5220   # Use a header file that comes with gcc, so configuring glibc
5221   # with a fresh cross-compiler works.
5222   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223   # <limits.h> exists even on freestanding compilers.
5224   # On the NeXT, cc -E runs the code through the compiler's parser,
5225   # not just through cpp. "Syntax error" is here to catch this case.
5226   cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h.  */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h.  */
5232 #ifdef __STDC__
5233 # include <limits.h>
5234 #else
5235 # include <assert.h>
5236 #endif
5237                      Syntax error
5238 _ACEOF
5239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5241   ac_status=$?
5242   grep -v '^ *+' conftest.er1 >conftest.err
5243   rm -f conftest.er1
5244   cat conftest.err >&5
5245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246   (exit $ac_status); } >/dev/null; then
5247   if test -s conftest.err; then
5248     ac_cpp_err=$ac_cxx_preproc_warn_flag
5249     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5250   else
5251     ac_cpp_err=
5252   fi
5253 else
5254   ac_cpp_err=yes
5255 fi
5256 if test -z "$ac_cpp_err"; then
5257   :
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262   # Broken: fails on valid input.
5263 continue
5264 fi
5265 rm -f conftest.err conftest.$ac_ext
5266
5267   # OK, works on sane cases.  Now check whether non-existent headers
5268   # can be detected and how.
5269   cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275 #include <ac_nonexistent.h>
5276 _ACEOF
5277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5279   ac_status=$?
5280   grep -v '^ *+' conftest.er1 >conftest.err
5281   rm -f conftest.er1
5282   cat conftest.err >&5
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); } >/dev/null; then
5285   if test -s conftest.err; then
5286     ac_cpp_err=$ac_cxx_preproc_warn_flag
5287     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5288   else
5289     ac_cpp_err=
5290   fi
5291 else
5292   ac_cpp_err=yes
5293 fi
5294 if test -z "$ac_cpp_err"; then
5295   # Broken: success on invalid input.
5296 continue
5297 else
5298   echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301   # Passes both tests.
5302 ac_preproc_ok=:
5303 break
5304 fi
5305 rm -f conftest.err conftest.$ac_ext
5306
5307 done
5308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5309 rm -f conftest.err conftest.$ac_ext
5310 if $ac_preproc_ok; then
5311   break
5312 fi
5313
5314     done
5315     ac_cv_prog_CXXCPP=$CXXCPP
5316
5317 fi
5318   CXXCPP=$ac_cv_prog_CXXCPP
5319 else
5320   ac_cv_prog_CXXCPP=$CXXCPP
5321 fi
5322 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5323 echo "${ECHO_T}$CXXCPP" >&6
5324 ac_preproc_ok=false
5325 for ac_cxx_preproc_warn_flag in '' yes
5326 do
5327   # Use a header file that comes with gcc, so configuring glibc
5328   # with a fresh cross-compiler works.
5329   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5330   # <limits.h> exists even on freestanding compilers.
5331   # On the NeXT, cc -E runs the code through the compiler's parser,
5332   # not just through cpp. "Syntax error" is here to catch this case.
5333   cat >conftest.$ac_ext <<_ACEOF
5334 /* confdefs.h.  */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h.  */
5339 #ifdef __STDC__
5340 # include <limits.h>
5341 #else
5342 # include <assert.h>
5343 #endif
5344                      Syntax error
5345 _ACEOF
5346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5347   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5348   ac_status=$?
5349   grep -v '^ *+' conftest.er1 >conftest.err
5350   rm -f conftest.er1
5351   cat conftest.err >&5
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); } >/dev/null; then
5354   if test -s conftest.err; then
5355     ac_cpp_err=$ac_cxx_preproc_warn_flag
5356     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5357   else
5358     ac_cpp_err=
5359   fi
5360 else
5361   ac_cpp_err=yes
5362 fi
5363 if test -z "$ac_cpp_err"; then
5364   :
5365 else
5366   echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5368
5369   # Broken: fails on valid input.
5370 continue
5371 fi
5372 rm -f conftest.err conftest.$ac_ext
5373
5374   # OK, works on sane cases.  Now check whether non-existent headers
5375   # can be detected and how.
5376   cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h.  */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h.  */
5382 #include <ac_nonexistent.h>
5383 _ACEOF
5384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5385   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5386   ac_status=$?
5387   grep -v '^ *+' conftest.er1 >conftest.err
5388   rm -f conftest.er1
5389   cat conftest.err >&5
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); } >/dev/null; then
5392   if test -s conftest.err; then
5393     ac_cpp_err=$ac_cxx_preproc_warn_flag
5394     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5395   else
5396     ac_cpp_err=
5397   fi
5398 else
5399   ac_cpp_err=yes
5400 fi
5401 if test -z "$ac_cpp_err"; then
5402   # Broken: success on invalid input.
5403 continue
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408   # Passes both tests.
5409 ac_preproc_ok=:
5410 break
5411 fi
5412 rm -f conftest.err conftest.$ac_ext
5413
5414 done
5415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5416 rm -f conftest.err conftest.$ac_ext
5417 if $ac_preproc_ok; then
5418   :
5419 else
5420   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5421 See \`config.log' for more details." >&5
5422 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5423 See \`config.log' for more details." >&2;}
5424    { (exit 1); exit 1; }; }
5425 fi
5426
5427 ac_ext=cc
5428 ac_cpp='$CXXCPP $CPPFLAGS'
5429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5432
5433
5434 ac_ext=f
5435 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5436 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5438 if test -n "$ac_tool_prefix"; then
5439   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5440   do
5441     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5443 echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5445 if test "${ac_cv_prog_F77+set}" = set; then
5446   echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448   if test -n "$F77"; then
5449   ac_cv_prog_F77="$F77" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456   for ac_exec_ext in '' $ac_executable_extensions; do
5457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463 done
5464
5465 fi
5466 fi
5467 F77=$ac_cv_prog_F77
5468 if test -n "$F77"; then
5469   echo "$as_me:$LINENO: result: $F77" >&5
5470 echo "${ECHO_T}$F77" >&6
5471 else
5472   echo "$as_me:$LINENO: result: no" >&5
5473 echo "${ECHO_T}no" >&6
5474 fi
5475
5476     test -n "$F77" && break
5477   done
5478 fi
5479 if test -z "$F77"; then
5480   ac_ct_F77=$F77
5481   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5482 do
5483   # Extract the first word of "$ac_prog", so it can be a program name with args.
5484 set dummy $ac_prog; ac_word=$2
5485 echo "$as_me:$LINENO: checking for $ac_word" >&5
5486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   if test -n "$ac_ct_F77"; then
5491   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498   for ac_exec_ext in '' $ac_executable_extensions; do
5499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500     ac_cv_prog_ac_ct_F77="$ac_prog"
5501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505 done
5506
5507 fi
5508 fi
5509 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5510 if test -n "$ac_ct_F77"; then
5511   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5512 echo "${ECHO_T}$ac_ct_F77" >&6
5513 else
5514   echo "$as_me:$LINENO: result: no" >&5
5515 echo "${ECHO_T}no" >&6
5516 fi
5517
5518   test -n "$ac_ct_F77" && break
5519 done
5520
5521   F77=$ac_ct_F77
5522 fi
5523
5524
5525 # Provide some information about the compiler.
5526 echo "$as_me:5526:" \
5527      "checking for Fortran 77 compiler version" >&5
5528 ac_compiler=`set X $ac_compile; echo $2`
5529 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5530   (eval $ac_compiler --version </dev/null >&5) 2>&5
5531   ac_status=$?
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); }
5534 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5535   (eval $ac_compiler -v </dev/null >&5) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }
5539 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5540   (eval $ac_compiler -V </dev/null >&5) 2>&5
5541   ac_status=$?
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); }
5544 rm -f a.out
5545
5546 # If we don't use `.F' as extension, the preprocessor is not run on the
5547 # input file.  (Note that this only needs to work for GNU compilers.)
5548 ac_save_ext=$ac_ext
5549 ac_ext=F
5550 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5551 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5552 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   cat >conftest.$ac_ext <<_ACEOF
5556       program main
5557 #ifndef __GNUC__
5558        choke me
5559 #endif
5560
5561       end
5562 _ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565   (eval $ac_compile) 2>conftest.er1
5566   ac_status=$?
5567   grep -v '^ *+' conftest.er1 >conftest.err
5568   rm -f conftest.er1
5569   cat conftest.err >&5
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); } &&
5572          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574   (eval $ac_try) 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); }; } &&
5578          { ac_try='test -s conftest.$ac_objext'
5579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580   (eval $ac_try) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); }; }; then
5584   ac_compiler_gnu=yes
5585 else
5586   echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5588
5589 ac_compiler_gnu=no
5590 fi
5591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5593
5594 fi
5595 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5596 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5597 ac_ext=$ac_save_ext
5598 ac_test_FFLAGS=${FFLAGS+set}
5599 ac_save_FFLAGS=$FFLAGS
5600 FFLAGS=
5601 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5602 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5603 if test "${ac_cv_prog_f77_g+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   FFLAGS=-g
5607 cat >conftest.$ac_ext <<_ACEOF
5608       program main
5609
5610       end
5611 _ACEOF
5612 rm -f conftest.$ac_objext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5614   (eval $ac_compile) 2>conftest.er1
5615   ac_status=$?
5616   grep -v '^ *+' conftest.er1 >conftest.err
5617   rm -f conftest.er1
5618   cat conftest.err >&5
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); } &&
5621          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; } &&
5627          { ac_try='test -s conftest.$ac_objext'
5628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629   (eval $ac_try) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; }; then
5633   ac_cv_prog_f77_g=yes
5634 else
5635   echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ac_cv_prog_f77_g=no
5639 fi
5640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5641
5642 fi
5643 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5644 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5645 if test "$ac_test_FFLAGS" = set; then
5646   FFLAGS=$ac_save_FFLAGS
5647 elif test $ac_cv_prog_f77_g = yes; then
5648   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5649     FFLAGS="-g -O2"
5650   else
5651     FFLAGS="-g"
5652   fi
5653 else
5654   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5655     FFLAGS="-O2"
5656   else
5657     FFLAGS=
5658   fi
5659 fi
5660
5661 G77=`test $ac_compiler_gnu = yes && echo yes`
5662 ac_ext=c
5663 ac_cpp='$CPP $CPPFLAGS'
5664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5667
5668
5669
5670 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5671
5672 # find the maximum length of command line arguments
5673 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5674 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5675 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678     i=0
5679   teststring="ABCD"
5680
5681   case $build_os in
5682   msdosdjgpp*)
5683     # On DJGPP, this test can blow up pretty badly due to problems in libc
5684     # (any single argument exceeding 2000 bytes causes a buffer overrun
5685     # during glob expansion).  Even if it were fixed, the result of this
5686     # check would be larger than it should be.
5687     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5688     ;;
5689
5690   gnu*)
5691     # Under GNU Hurd, this test is not required because there is
5692     # no limit to the length of command line arguments.
5693     # Libtool will interpret -1 as no limit whatsoever
5694     lt_cv_sys_max_cmd_len=-1;
5695     ;;
5696
5697   cygwin* | mingw*)
5698     # On Win9x/ME, this test blows up -- it succeeds, but takes
5699     # about 5 minutes as the teststring grows exponentially.
5700     # Worse, since 9x/ME are not pre-emptively multitasking,
5701     # you end up with a "frozen" computer, even though with patience
5702     # the test eventually succeeds (with a max line length of 256k).
5703     # Instead, let's just punt: use the minimum linelength reported by
5704     # all of the supported platforms: 8192 (on NT/2K/XP).
5705     lt_cv_sys_max_cmd_len=8192;
5706     ;;
5707
5708   amigaos*)
5709     # On AmigaOS with pdksh, this test takes hours, literally.
5710     # So we just punt and use a minimum line length of 8192.
5711     lt_cv_sys_max_cmd_len=8192;
5712     ;;
5713
5714  *)
5715     # If test is not a shell built-in, we'll probably end up computing a
5716     # maximum length that is only half of the actual maximum length, but
5717     # we can't tell.
5718     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5719                = "XX$teststring") >/dev/null 2>&1 &&
5720             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5721             lt_cv_sys_max_cmd_len=$new_result &&
5722             test $i != 17 # 1/2 MB should be enough
5723     do
5724       i=`expr $i + 1`
5725       teststring=$teststring$teststring
5726     done
5727     teststring=
5728     # Add a significant safety factor because C++ compilers can tack on massive
5729     # amounts of additional arguments before passing them to the linker.
5730     # It appears as though 1/2 is a usable value.
5731     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5732     ;;
5733   esac
5734
5735 fi
5736
5737 if test -n $lt_cv_sys_max_cmd_len ; then
5738   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5739 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5740 else
5741   echo "$as_me:$LINENO: result: none" >&5
5742 echo "${ECHO_T}none" >&6
5743 fi
5744
5745
5746
5747
5748 # Check for command to grab the raw symbol name followed by C symbol from nm.
5749 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5750 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5751 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754
5755 # These are sane defaults that work on at least a few old systems.
5756 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5757
5758 # Character class describing NM global symbol codes.
5759 symcode='[BCDEGRST]'
5760
5761 # Regexp to match symbols that can be accessed directly from C.
5762 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5763
5764 # Transform the above into a raw symbol and a C symbol.
5765 symxfrm='\1 \2\3 \3'
5766
5767 # Transform an extracted symbol line into a proper C declaration
5768 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5769
5770 # Transform an extracted symbol line into symbol name and symbol address
5771 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'"
5772
5773 # Define system-specific variables.
5774 case $host_os in
5775 aix*)
5776   symcode='[BCDT]'
5777   ;;
5778 cygwin* | mingw* | pw32*)
5779   symcode='[ABCDGISTW]'
5780   ;;
5781 hpux*) # Its linker distinguishes data from code symbols
5782   if test "$host_cpu" = ia64; then
5783     symcode='[ABCDEGRST]'
5784   fi
5785   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5786   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'"
5787   ;;
5788 irix* | nonstopux*)
5789   symcode='[BCDEGRST]'
5790   ;;
5791 osf*)
5792   symcode='[BCDEGQRST]'
5793   ;;
5794 solaris* | sysv5*)
5795   symcode='[BDRT]'
5796   ;;
5797 sysv4)
5798   symcode='[DFNSTU]'
5799   ;;
5800 esac
5801
5802 # Handle CRLF in mingw tool chain
5803 opt_cr=
5804 case $build_os in
5805 mingw*)
5806   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5807   ;;
5808 esac
5809
5810 # If we're using GNU nm, then use its standard symbol codes.
5811 case `$NM -V 2>&1` in
5812 *GNU* | *'with BFD'*)
5813   symcode='[ABCDGIRSTW]' ;;
5814 esac
5815
5816 # Try without a prefix undercore, then with it.
5817 for ac_symprfx in "" "_"; do
5818
5819   # Write the raw and C identifiers.
5820   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5821
5822   # Check to see that the pipe works correctly.
5823   pipe_works=no
5824
5825   rm -f conftest*
5826   cat > conftest.$ac_ext <<EOF
5827 #ifdef __cplusplus
5828 extern "C" {
5829 #endif
5830 char nm_test_var;
5831 void nm_test_func(){}
5832 #ifdef __cplusplus
5833 }
5834 #endif
5835 int main(){nm_test_var='a';nm_test_func();return(0);}
5836 EOF
5837
5838   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839   (eval $ac_compile) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); }; then
5843     # Now try to grab the symbols.
5844     nlist=conftest.nm
5845     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5846   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } && test -s "$nlist"; then
5850       # Try sorting and uniquifying the output.
5851       if sort "$nlist" | uniq > "$nlist"T; then
5852         mv -f "$nlist"T "$nlist"
5853       else
5854         rm -f "$nlist"T
5855       fi
5856
5857       # Make sure that we snagged all the symbols we need.
5858       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5859         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5860           cat <<EOF > conftest.$ac_ext
5861 #ifdef __cplusplus
5862 extern "C" {
5863 #endif
5864
5865 EOF
5866           # Now generate the symbol file.
5867           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5868
5869           cat <<EOF >> conftest.$ac_ext
5870 #if defined (__STDC__) && __STDC__
5871 # define lt_ptr_t void *
5872 #else
5873 # define lt_ptr_t char *
5874 # define const
5875 #endif
5876
5877 /* The mapping between symbol names and symbols. */
5878 const struct {
5879   const char *name;
5880   lt_ptr_t address;
5881 }
5882 lt_preloaded_symbols[] =
5883 {
5884 EOF
5885           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5886           cat <<\EOF >> conftest.$ac_ext
5887   {0, (lt_ptr_t) 0}
5888 };
5889
5890 #ifdef __cplusplus
5891 }
5892 #endif
5893 EOF
5894           # Now try linking the two files.
5895           mv conftest.$ac_objext conftstm.$ac_objext
5896           lt_save_LIBS="$LIBS"
5897           lt_save_CFLAGS="$CFLAGS"
5898           LIBS="conftstm.$ac_objext"
5899           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5900           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901   (eval $ac_link) 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5905             pipe_works=yes
5906           fi
5907           LIBS="$lt_save_LIBS"
5908           CFLAGS="$lt_save_CFLAGS"
5909         else
5910           echo "cannot find nm_test_func in $nlist" >&5
5911         fi
5912       else
5913         echo "cannot find nm_test_var in $nlist" >&5
5914       fi
5915     else
5916       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5917     fi
5918   else
5919     echo "$progname: failed program was:" >&5
5920     cat conftest.$ac_ext >&5
5921   fi
5922   rm -f conftest* conftst*
5923
5924   # Do not use the global_symbol_pipe unless it works.
5925   if test "$pipe_works" = yes; then
5926     break
5927   else
5928     lt_cv_sys_global_symbol_pipe=
5929   fi
5930 done
5931
5932 fi
5933
5934 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5935   lt_cv_sys_global_symbol_to_cdecl=
5936 fi
5937 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5938   echo "$as_me:$LINENO: result: failed" >&5
5939 echo "${ECHO_T}failed" >&6
5940 else
5941   echo "$as_me:$LINENO: result: ok" >&5
5942 echo "${ECHO_T}ok" >&6
5943 fi
5944
5945 echo "$as_me:$LINENO: checking for objdir" >&5
5946 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5947 if test "${lt_cv_objdir+set}" = set; then
5948   echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950   rm -f .libs 2>/dev/null
5951 mkdir .libs 2>/dev/null
5952 if test -d .libs; then
5953   lt_cv_objdir=.libs
5954 else
5955   # MS-DOS does not allow filenames that begin with a dot.
5956   lt_cv_objdir=_libs
5957 fi
5958 rmdir .libs 2>/dev/null
5959 fi
5960 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5961 echo "${ECHO_T}$lt_cv_objdir" >&6
5962 objdir=$lt_cv_objdir
5963
5964
5965
5966
5967
5968 case $host_os in
5969 aix3*)
5970   # AIX sometimes has problems with the GCC collect2 program.  For some
5971   # reason, if we set the COLLECT_NAMES environment variable, the problems
5972   # vanish in a puff of smoke.
5973   if test "X${COLLECT_NAMES+set}" != Xset; then
5974     COLLECT_NAMES=
5975     export COLLECT_NAMES
5976   fi
5977   ;;
5978 esac
5979
5980 # Sed substitution that helps us do robust quoting.  It backslashifies
5981 # metacharacters that are still active within double-quoted strings.
5982 Xsed='sed -e s/^X//'
5983 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5984
5985 # Same as above, but do not quote variable references.
5986 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5987
5988 # Sed substitution to delay expansion of an escaped shell variable in a
5989 # double_quote_subst'ed string.
5990 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5991
5992 # Sed substitution to avoid accidental globbing in evaled expressions
5993 no_glob_subst='s/\*/\\\*/g'
5994
5995 # Constants:
5996 rm="rm -f"
5997
5998 # Global variables:
5999 default_ofile=libtool
6000 can_build_shared=yes
6001
6002 # All known linkers require a `.a' archive for static linking (except M$VC,
6003 # which needs '.lib').
6004 libext=a
6005 ltmain="$ac_aux_dir/ltmain.sh"
6006 ofile="$default_ofile"
6007 with_gnu_ld="$lt_cv_prog_gnu_ld"
6008
6009 if test -n "$ac_tool_prefix"; then
6010   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}ar; ac_word=$2
6012 echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6014 if test "${ac_cv_prog_AR+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   if test -n "$AR"; then
6018   ac_cv_prog_AR="$AR" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023   IFS=$as_save_IFS
6024   test -z "$as_dir" && as_dir=.
6025   for ac_exec_ext in '' $ac_executable_extensions; do
6026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027     ac_cv_prog_AR="${ac_tool_prefix}ar"
6028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029     break 2
6030   fi
6031 done
6032 done
6033
6034 fi
6035 fi
6036 AR=$ac_cv_prog_AR
6037 if test -n "$AR"; then
6038   echo "$as_me:$LINENO: result: $AR" >&5
6039 echo "${ECHO_T}$AR" >&6
6040 else
6041   echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6
6043 fi
6044
6045 fi
6046 if test -z "$ac_cv_prog_AR"; then
6047   ac_ct_AR=$AR
6048   # Extract the first word of "ar", so it can be a program name with args.
6049 set dummy ar; ac_word=$2
6050 echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6052 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   if test -n "$ac_ct_AR"; then
6056   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063   for ac_exec_ext in '' $ac_executable_extensions; do
6064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065     ac_cv_prog_ac_ct_AR="ar"
6066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070 done
6071
6072   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6073 fi
6074 fi
6075 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6076 if test -n "$ac_ct_AR"; then
6077   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6078 echo "${ECHO_T}$ac_ct_AR" >&6
6079 else
6080   echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6
6082 fi
6083
6084   AR=$ac_ct_AR
6085 else
6086   AR="$ac_cv_prog_AR"
6087 fi
6088
6089 if test -n "$ac_tool_prefix"; then
6090   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6092 echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6094 if test "${ac_cv_prog_RANLIB+set}" = set; then
6095   echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097   if test -n "$RANLIB"; then
6098   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105   for ac_exec_ext in '' $ac_executable_extensions; do
6106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112 done
6113
6114 fi
6115 fi
6116 RANLIB=$ac_cv_prog_RANLIB
6117 if test -n "$RANLIB"; then
6118   echo "$as_me:$LINENO: result: $RANLIB" >&5
6119 echo "${ECHO_T}$RANLIB" >&6
6120 else
6121   echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6
6123 fi
6124
6125 fi
6126 if test -z "$ac_cv_prog_RANLIB"; then
6127   ac_ct_RANLIB=$RANLIB
6128   # Extract the first word of "ranlib", so it can be a program name with args.
6129 set dummy ranlib; ac_word=$2
6130 echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6132 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   if test -n "$ac_ct_RANLIB"; then
6136   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141   IFS=$as_save_IFS
6142   test -z "$as_dir" && as_dir=.
6143   for ac_exec_ext in '' $ac_executable_extensions; do
6144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145     ac_cv_prog_ac_ct_RANLIB="ranlib"
6146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147     break 2
6148   fi
6149 done
6150 done
6151
6152   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6153 fi
6154 fi
6155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6156 if test -n "$ac_ct_RANLIB"; then
6157   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6158 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6159 else
6160   echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6
6162 fi
6163
6164   RANLIB=$ac_ct_RANLIB
6165 else
6166   RANLIB="$ac_cv_prog_RANLIB"
6167 fi
6168
6169 if test -n "$ac_tool_prefix"; then
6170   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}strip; ac_word=$2
6172 echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6174 if test "${ac_cv_prog_STRIP+set}" = set; then
6175   echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177   if test -n "$STRIP"; then
6178   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183   IFS=$as_save_IFS
6184   test -z "$as_dir" && as_dir=.
6185   for ac_exec_ext in '' $ac_executable_extensions; do
6186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189     break 2
6190   fi
6191 done
6192 done
6193
6194 fi
6195 fi
6196 STRIP=$ac_cv_prog_STRIP
6197 if test -n "$STRIP"; then
6198   echo "$as_me:$LINENO: result: $STRIP" >&5
6199 echo "${ECHO_T}$STRIP" >&6
6200 else
6201   echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6
6203 fi
6204
6205 fi
6206 if test -z "$ac_cv_prog_STRIP"; then
6207   ac_ct_STRIP=$STRIP
6208   # Extract the first word of "strip", so it can be a program name with args.
6209 set dummy strip; ac_word=$2
6210 echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6213   echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215   if test -n "$ac_ct_STRIP"; then
6216   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221   IFS=$as_save_IFS
6222   test -z "$as_dir" && as_dir=.
6223   for ac_exec_ext in '' $ac_executable_extensions; do
6224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225     ac_cv_prog_ac_ct_STRIP="strip"
6226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227     break 2
6228   fi
6229 done
6230 done
6231
6232   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6233 fi
6234 fi
6235 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6236 if test -n "$ac_ct_STRIP"; then
6237   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6238 echo "${ECHO_T}$ac_ct_STRIP" >&6
6239 else
6240   echo "$as_me:$LINENO: result: no" >&5
6241 echo "${ECHO_T}no" >&6
6242 fi
6243
6244   STRIP=$ac_ct_STRIP
6245 else
6246   STRIP="$ac_cv_prog_STRIP"
6247 fi
6248
6249
6250 old_CC="$CC"
6251 old_CFLAGS="$CFLAGS"
6252
6253 # Set sane defaults for various variables
6254 test -z "$AR" && AR=ar
6255 test -z "$AR_FLAGS" && AR_FLAGS=cru
6256 test -z "$AS" && AS=as
6257 test -z "$CC" && CC=cc
6258 test -z "$LTCC" && LTCC=$CC
6259 test -z "$DLLTOOL" && DLLTOOL=dlltool
6260 test -z "$LD" && LD=ld
6261 test -z "$LN_S" && LN_S="ln -s"
6262 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6263 test -z "$NM" && NM=nm
6264 test -z "$SED" && SED=sed
6265 test -z "$OBJDUMP" && OBJDUMP=objdump
6266 test -z "$RANLIB" && RANLIB=:
6267 test -z "$STRIP" && STRIP=:
6268 test -z "$ac_objext" && ac_objext=o
6269
6270 # Determine commands to create old-style static archives.
6271 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6272 old_postinstall_cmds='chmod 644 $oldlib'
6273 old_postuninstall_cmds=
6274
6275 if test -n "$RANLIB"; then
6276   case $host_os in
6277   openbsd*)
6278     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6279     ;;
6280   *)
6281     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6282     ;;
6283   esac
6284   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6285 fi
6286
6287 # Only perform the check for file, if the check method requires it
6288 case $deplibs_check_method in
6289 file_magic*)
6290   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6291     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6292 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   case $MAGIC_CMD in
6297 [\\/*] |  ?:[\\/]*)
6298   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6299   ;;
6300 *)
6301   lt_save_MAGIC_CMD="$MAGIC_CMD"
6302   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6303   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6304   for ac_dir in $ac_dummy; do
6305     IFS="$lt_save_ifs"
6306     test -z "$ac_dir" && ac_dir=.
6307     if test -f $ac_dir/${ac_tool_prefix}file; then
6308       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6309       if test -n "$file_magic_test_file"; then
6310         case $deplibs_check_method in
6311         "file_magic "*)
6312           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6313           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6314           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6315             $EGREP "$file_magic_regex" > /dev/null; then
6316             :
6317           else
6318             cat <<EOF 1>&2
6319
6320 *** Warning: the command libtool uses to detect shared libraries,
6321 *** $file_magic_cmd, produces output that libtool cannot recognize.
6322 *** The result is that libtool may fail to recognize shared libraries
6323 *** as such.  This will affect the creation of libtool libraries that
6324 *** depend on shared libraries, but programs linked with such libtool
6325 *** libraries will work regardless of this problem.  Nevertheless, you
6326 *** may want to report the problem to your system manager and/or to
6327 *** bug-libtool@gnu.org
6328
6329 EOF
6330           fi ;;
6331         esac
6332       fi
6333       break
6334     fi
6335   done
6336   IFS="$lt_save_ifs"
6337   MAGIC_CMD="$lt_save_MAGIC_CMD"
6338   ;;
6339 esac
6340 fi
6341
6342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6343 if test -n "$MAGIC_CMD"; then
6344   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6345 echo "${ECHO_T}$MAGIC_CMD" >&6
6346 else
6347   echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6
6349 fi
6350
6351 if test -z "$lt_cv_path_MAGIC_CMD"; then
6352   if test -n "$ac_tool_prefix"; then
6353     echo "$as_me:$LINENO: checking for file" >&5
6354 echo $ECHO_N "checking for file... $ECHO_C" >&6
6355 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6356   echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358   case $MAGIC_CMD in
6359 [\\/*] |  ?:[\\/]*)
6360   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6361   ;;
6362 *)
6363   lt_save_MAGIC_CMD="$MAGIC_CMD"
6364   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6365   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6366   for ac_dir in $ac_dummy; do
6367     IFS="$lt_save_ifs"
6368     test -z "$ac_dir" && ac_dir=.
6369     if test -f $ac_dir/file; then
6370       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6371       if test -n "$file_magic_test_file"; then
6372         case $deplibs_check_method in
6373         "file_magic "*)
6374           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6375           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6376           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6377             $EGREP "$file_magic_regex" > /dev/null; then
6378             :
6379           else
6380             cat <<EOF 1>&2
6381
6382 *** Warning: the command libtool uses to detect shared libraries,
6383 *** $file_magic_cmd, produces output that libtool cannot recognize.
6384 *** The result is that libtool may fail to recognize shared libraries
6385 *** as such.  This will affect the creation of libtool libraries that
6386 *** depend on shared libraries, but programs linked with such libtool
6387 *** libraries will work regardless of this problem.  Nevertheless, you
6388 *** may want to report the problem to your system manager and/or to
6389 *** bug-libtool@gnu.org
6390
6391 EOF
6392           fi ;;
6393         esac
6394       fi
6395       break
6396     fi
6397   done
6398   IFS="$lt_save_ifs"
6399   MAGIC_CMD="$lt_save_MAGIC_CMD"
6400   ;;
6401 esac
6402 fi
6403
6404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6405 if test -n "$MAGIC_CMD"; then
6406   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6407 echo "${ECHO_T}$MAGIC_CMD" >&6
6408 else
6409   echo "$as_me:$LINENO: result: no" >&5
6410 echo "${ECHO_T}no" >&6
6411 fi
6412
6413   else
6414     MAGIC_CMD=:
6415   fi
6416 fi
6417
6418   fi
6419   ;;
6420 esac
6421
6422 enable_dlopen=yes
6423 enable_win32_dll=no
6424
6425 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6426 if test "${enable_libtool_lock+set}" = set; then
6427   enableval="$enable_libtool_lock"
6428
6429 fi;
6430 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6431
6432
6433 # Check whether --with-pic or --without-pic was given.
6434 if test "${with_pic+set}" = set; then
6435   withval="$with_pic"
6436   pic_mode="$withval"
6437 else
6438   pic_mode=default
6439 fi;
6440 test -z "$pic_mode" && pic_mode=default
6441
6442 # Use C for the default configuration in the libtool script
6443 tagname=
6444 lt_save_CC="$CC"
6445 ac_ext=c
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450
6451
6452 # Source file extension for C test sources.
6453 ac_ext=c
6454
6455 # Object file extension for compiled C test sources.
6456 objext=o
6457 objext=$objext
6458
6459 # Code to be used in simple compile tests
6460 lt_simple_compile_test_code="int some_variable = 0;\n"
6461
6462 # Code to be used in simple link tests
6463 lt_simple_link_test_code='int main(){return(0);}\n'
6464
6465
6466 # If no C compiler was specified, use CC.
6467 LTCC=${LTCC-"$CC"}
6468
6469 # Allow CC to be a program name with arguments.
6470 compiler=$CC
6471
6472
6473 #
6474 # Check for any special shared library compilation flags.
6475 #
6476 lt_prog_cc_shlib=
6477 if test "$GCC" = no; then
6478   case $host_os in
6479   sco3.2v5*)
6480     lt_prog_cc_shlib='-belf'
6481     ;;
6482   esac
6483 fi
6484 if test -n "$lt_prog_cc_shlib"; then
6485   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6486 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6487   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6488   else
6489     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6490 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6491     lt_cv_prog_cc_can_build_shared=no
6492   fi
6493 fi
6494
6495
6496 #
6497 # Check to make sure the static flag actually works.
6498 #
6499 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6500 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6501 if test "${lt_prog_compiler_static_works+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   lt_prog_compiler_static_works=no
6505    save_LDFLAGS="$LDFLAGS"
6506    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6507    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6508    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6509      # The compiler can only warn and ignore the option if not recognized
6510      # So say no if there are warnings
6511      if test -s conftest.err; then
6512        # Append any errors to the config.log.
6513        cat conftest.err 1>&5
6514      else
6515        lt_prog_compiler_static_works=yes
6516      fi
6517    fi
6518    $rm conftest*
6519    LDFLAGS="$save_LDFLAGS"
6520
6521 fi
6522 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6523 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6524
6525 if test x"$lt_prog_compiler_static_works" = xyes; then
6526     :
6527 else
6528     lt_prog_compiler_static=
6529 fi
6530
6531
6532
6533
6534 lt_prog_compiler_no_builtin_flag=
6535
6536 if test "$GCC" = yes; then
6537   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6538
6539
6540 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6541 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6542 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   lt_cv_prog_compiler_rtti_exceptions=no
6546   ac_outfile=conftest.$ac_objext
6547    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6548    lt_compiler_flag="-fno-rtti -fno-exceptions"
6549    # Insert the option either (1) after the last *FLAGS variable, or
6550    # (2) before a word containing "conftest.", or (3) at the end.
6551    # Note that $ac_compile itself does not contain backslashes and begins
6552    # with a dollar sign (not a hyphen), so the echo should work correctly.
6553    # The option is referenced via a variable to avoid confusing sed.
6554    lt_compile=`echo "$ac_compile" | $SED \
6555    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6556    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6557    -e 's:$: $lt_compiler_flag:'`
6558    (eval echo "\"\$as_me:6558: $lt_compile\"" >&5)
6559    (eval "$lt_compile" 2>conftest.err)
6560    ac_status=$?
6561    cat conftest.err >&5
6562    echo "$as_me:6562: \$? = $ac_status" >&5
6563    if (exit $ac_status) && test -s "$ac_outfile"; then
6564      # The compiler can only warn and ignore the option if not recognized
6565      # So say no if there are warnings
6566      if test ! -s conftest.err; then
6567        lt_cv_prog_compiler_rtti_exceptions=yes
6568      fi
6569    fi
6570    $rm conftest*
6571
6572 fi
6573 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6574 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6575
6576 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6577     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6578 else
6579     :
6580 fi
6581
6582 fi
6583
6584 lt_prog_compiler_wl=
6585 lt_prog_compiler_pic=
6586 lt_prog_compiler_static=
6587
6588 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6589 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6590
6591   if test "$GCC" = yes; then
6592     lt_prog_compiler_wl='-Wl,'
6593     lt_prog_compiler_static='-static'
6594
6595     case $host_os in
6596       aix*)
6597       # All AIX code is PIC.
6598       if test "$host_cpu" = ia64; then
6599         # AIX 5 now supports IA64 processor
6600         lt_prog_compiler_static='-Bstatic'
6601       fi
6602       ;;
6603
6604     amigaos*)
6605       # FIXME: we need at least 68020 code to build shared libraries, but
6606       # adding the `-m68020' flag to GCC prevents building anything better,
6607       # like `-m68040'.
6608       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6609       ;;
6610
6611     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6612       # PIC is the default for these OSes.
6613       ;;
6614
6615     mingw* | pw32* | os2*)
6616       # This hack is so that the source file can tell whether it is being
6617       # built for inclusion in a dll (and should export symbols for example).
6618       lt_prog_compiler_pic='-DDLL_EXPORT'
6619       ;;
6620
6621     darwin* | rhapsody*)
6622       # PIC is the default on this platform
6623       # Common symbols not allowed in MH_DYLIB files
6624       lt_prog_compiler_pic='-fno-common'
6625       ;;
6626
6627     msdosdjgpp*)
6628       # Just because we use GCC doesn't mean we suddenly get shared libraries
6629       # on systems that don't support them.
6630       lt_prog_compiler_can_build_shared=no
6631       enable_shared=no
6632       ;;
6633
6634     sysv4*MP*)
6635       if test -d /usr/nec; then
6636         lt_prog_compiler_pic=-Kconform_pic
6637       fi
6638       ;;
6639
6640     hpux*)
6641       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6642       # not for PA HP-UX.
6643       case "$host_cpu" in
6644       hppa*64*|ia64*)
6645         # +Z the default
6646         ;;
6647       *)
6648         lt_prog_compiler_pic='-fPIC'
6649         ;;
6650       esac
6651       ;;
6652
6653     *)
6654       lt_prog_compiler_pic='-fPIC'
6655       ;;
6656     esac
6657   else
6658     # PORTME Check for flag to pass linker flags through the system compiler.
6659     case $host_os in
6660     aix*)
6661       lt_prog_compiler_wl='-Wl,'
6662       if test "$host_cpu" = ia64; then
6663         # AIX 5 now supports IA64 processor
6664         lt_prog_compiler_static='-Bstatic'
6665       else
6666         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6667       fi
6668       ;;
6669
6670     mingw* | pw32* | os2*)
6671       # This hack is so that the source file can tell whether it is being
6672       # built for inclusion in a dll (and should export symbols for example).
6673       lt_prog_compiler_pic='-DDLL_EXPORT'
6674       ;;
6675
6676     hpux9* | hpux10* | hpux11*)
6677       lt_prog_compiler_wl='-Wl,'
6678       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6679       # not for PA HP-UX.
6680       case "$host_cpu" in
6681       hppa*64*|ia64*)
6682         # +Z the default
6683         ;;
6684       *)
6685         lt_prog_compiler_pic='+Z'
6686         ;;
6687       esac
6688       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6689       lt_prog_compiler_static='${wl}-a ${wl}archive'
6690       ;;
6691
6692     irix5* | irix6* | nonstopux*)
6693       lt_prog_compiler_wl='-Wl,'
6694       # PIC (with -KPIC) is the default.
6695       lt_prog_compiler_static='-non_shared'
6696       ;;
6697
6698     newsos6)
6699       lt_prog_compiler_pic='-KPIC'
6700       lt_prog_compiler_static='-Bstatic'
6701       ;;
6702
6703     linux*)
6704       case $CC in
6705       icc* | ecc*)
6706         lt_prog_compiler_wl='-Wl,'
6707         lt_prog_compiler_pic='-KPIC'
6708         lt_prog_compiler_static='-static'
6709         ;;
6710       ccc*)
6711         lt_prog_compiler_wl='-Wl,'
6712         # All Alpha code is PIC.
6713         lt_prog_compiler_static='-non_shared'
6714         ;;
6715       esac
6716       ;;
6717
6718     osf3* | osf4* | osf5*)
6719       lt_prog_compiler_wl='-Wl,'
6720       # All OSF/1 code is PIC.
6721       lt_prog_compiler_static='-non_shared'
6722       ;;
6723
6724     sco3.2v5*)
6725       lt_prog_compiler_pic='-Kpic'
6726       lt_prog_compiler_static='-dn'
6727       ;;
6728
6729     solaris*)
6730       lt_prog_compiler_wl='-Wl,'
6731       lt_prog_compiler_pic='-KPIC'
6732       lt_prog_compiler_static='-Bstatic'
6733       ;;
6734
6735     sunos4*)
6736       lt_prog_compiler_wl='-Qoption ld '
6737       lt_prog_compiler_pic='-PIC'
6738       lt_prog_compiler_static='-Bstatic'
6739       ;;
6740
6741     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6742       lt_prog_compiler_wl='-Wl,'
6743       lt_prog_compiler_pic='-KPIC'
6744       lt_prog_compiler_static='-Bstatic'
6745       ;;
6746
6747     sysv4*MP*)
6748       if test -d /usr/nec ;then
6749         lt_prog_compiler_pic='-Kconform_pic'
6750         lt_prog_compiler_static='-Bstatic'
6751       fi
6752       ;;
6753
6754     uts4*)
6755       lt_prog_compiler_pic='-pic'
6756       lt_prog_compiler_static='-Bstatic'
6757       ;;
6758
6759     *)
6760       lt_prog_compiler_can_build_shared=no
6761       ;;
6762     esac
6763   fi
6764
6765 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6766 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6767
6768 #
6769 # Check to make sure the PIC flag actually works.
6770 #
6771 if test -n "$lt_prog_compiler_pic"; then
6772
6773 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6774 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6775 if test "${lt_prog_compiler_pic_works+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   lt_prog_compiler_pic_works=no
6779   ac_outfile=conftest.$ac_objext
6780    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6781    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6782    # Insert the option either (1) after the last *FLAGS variable, or
6783    # (2) before a word containing "conftest.", or (3) at the end.
6784    # Note that $ac_compile itself does not contain backslashes and begins
6785    # with a dollar sign (not a hyphen), so the echo should work correctly.
6786    # The option is referenced via a variable to avoid confusing sed.
6787    lt_compile=`echo "$ac_compile" | $SED \
6788    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6790    -e 's:$: $lt_compiler_flag:'`
6791    (eval echo "\"\$as_me:6791: $lt_compile\"" >&5)
6792    (eval "$lt_compile" 2>conftest.err)
6793    ac_status=$?
6794    cat conftest.err >&5
6795    echo "$as_me:6795: \$? = $ac_status" >&5
6796    if (exit $ac_status) && test -s "$ac_outfile"; then
6797      # The compiler can only warn and ignore the option if not recognized
6798      # So say no if there are warnings
6799      if test ! -s conftest.err; then
6800        lt_prog_compiler_pic_works=yes
6801      fi
6802    fi
6803    $rm conftest*
6804
6805 fi
6806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6807 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6808
6809 if test x"$lt_prog_compiler_pic_works" = xyes; then
6810     case $lt_prog_compiler_pic in
6811      "" | " "*) ;;
6812      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6813      esac
6814 else
6815     lt_prog_compiler_pic=
6816      lt_prog_compiler_can_build_shared=no
6817 fi
6818
6819 fi
6820 case "$host_os" in
6821   # For platforms which do not support PIC, -DPIC is meaningless:
6822   *djgpp*)
6823     lt_prog_compiler_pic=
6824     ;;
6825   *)
6826     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6827     ;;
6828 esac
6829
6830 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6832 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6833   echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835   lt_cv_prog_compiler_c_o=no
6836    $rm -r conftest 2>/dev/null
6837    mkdir conftest
6838    cd conftest
6839    mkdir out
6840    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6841
6842    lt_compiler_flag="-o out/conftest2.$ac_objext"
6843    # Insert the option either (1) after the last *FLAGS variable, or
6844    # (2) before a word containing "conftest.", or (3) at the end.
6845    # Note that $ac_compile itself does not contain backslashes and begins
6846    # with a dollar sign (not a hyphen), so the echo should work correctly.
6847    lt_compile=`echo "$ac_compile" | $SED \
6848    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6849    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6850    -e 's:$: $lt_compiler_flag:'`
6851    (eval echo "\"\$as_me:6851: $lt_compile\"" >&5)
6852    (eval "$lt_compile" 2>out/conftest.err)
6853    ac_status=$?
6854    cat out/conftest.err >&5
6855    echo "$as_me:6855: \$? = $ac_status" >&5
6856    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6857    then
6858      # The compiler can only warn and ignore the option if not recognized
6859      # So say no if there are warnings
6860      if test ! -s out/conftest.err; then
6861        lt_cv_prog_compiler_c_o=yes
6862      fi
6863    fi
6864    chmod u+w .
6865    $rm conftest*
6866    # SGI C++ compiler will create directory out/ii_files/ for
6867    # template instantiation
6868    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6869    $rm out/* && rmdir out
6870    cd ..
6871    rmdir conftest
6872    $rm conftest*
6873
6874 fi
6875 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6876 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6877
6878
6879 hard_links="nottested"
6880 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6881   # do not overwrite the value of need_locks provided by the user
6882   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6883 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6884   hard_links=yes
6885   $rm conftest*
6886   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6887   touch conftest.a
6888   ln conftest.a conftest.b 2>&5 || hard_links=no
6889   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6890   echo "$as_me:$LINENO: result: $hard_links" >&5
6891 echo "${ECHO_T}$hard_links" >&6
6892   if test "$hard_links" = no; then
6893     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6894 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6895     need_locks=warn
6896   fi
6897 else
6898   need_locks=no
6899 fi
6900
6901 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6902 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6903
6904   runpath_var=
6905   allow_undefined_flag=
6906   enable_shared_with_static_runtimes=no
6907   archive_cmds=
6908   archive_expsym_cmds=
6909   old_archive_From_new_cmds=
6910   old_archive_from_expsyms_cmds=
6911   export_dynamic_flag_spec=
6912   whole_archive_flag_spec=
6913   thread_safe_flag_spec=
6914   hardcode_libdir_flag_spec=
6915   hardcode_libdir_flag_spec_ld=
6916   hardcode_libdir_separator=
6917   hardcode_direct=no
6918   hardcode_minus_L=no
6919   hardcode_shlibpath_var=unsupported
6920   link_all_deplibs=unknown
6921   hardcode_automatic=no
6922   module_cmds=
6923   module_expsym_cmds=
6924   always_export_symbols=no
6925   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6926   # include_expsyms should be a list of space-separated symbols to be *always*
6927   # included in the symbol list
6928   include_expsyms=
6929   # exclude_expsyms can be an extended regexp of symbols to exclude
6930   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6931   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6932   # as well as any symbol that contains `d'.
6933   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6934   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6935   # platforms (ab)use it in PIC code, but their linkers get confused if
6936   # the symbol is explicitly referenced.  Since portable code cannot
6937   # rely on this symbol name, it's probably fine to never include it in
6938   # preloaded symbol tables.
6939   extract_expsyms_cmds=
6940
6941   case $host_os in
6942   cygwin* | mingw* | pw32*)
6943     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6944     # When not using gcc, we currently assume that we are using
6945     # Microsoft Visual C++.
6946     if test "$GCC" != yes; then
6947       with_gnu_ld=no
6948     fi
6949     ;;
6950   openbsd*)
6951     with_gnu_ld=no
6952     ;;
6953   esac
6954
6955   ld_shlibs=yes
6956   if test "$with_gnu_ld" = yes; then
6957     # If archive_cmds runs LD, not CC, wlarc should be empty
6958     wlarc='${wl}'
6959
6960     # See if GNU ld supports shared libraries.
6961     case $host_os in
6962     aix3* | aix4* | aix5*)
6963       # On AIX/PPC, the GNU linker is very broken
6964       if test "$host_cpu" != ia64; then
6965         ld_shlibs=no
6966         cat <<EOF 1>&2
6967
6968 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6969 *** to be unable to reliably create shared libraries on AIX.
6970 *** Therefore, libtool is disabling shared libraries support.  If you
6971 *** really care for shared libraries, you may want to modify your PATH
6972 *** so that a non-GNU linker is found, and then restart.
6973
6974 EOF
6975       fi
6976       ;;
6977
6978     amigaos*)
6979       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)'
6980       hardcode_libdir_flag_spec='-L$libdir'
6981       hardcode_minus_L=yes
6982
6983       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6984       # that the semantics of dynamic libraries on AmigaOS, at least up
6985       # to version 4, is to share data among multiple programs linked
6986       # with the same dynamic library.  Since this doesn't match the
6987       # behavior of shared libraries on other platforms, we can't use
6988       # them.
6989       ld_shlibs=no
6990       ;;
6991
6992     beos*)
6993       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6994         allow_undefined_flag=unsupported
6995         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6996         # support --undefined.  This deserves some investigation.  FIXME
6997         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6998       else
6999         ld_shlibs=no
7000       fi
7001       ;;
7002
7003     cygwin* | mingw* | pw32*)
7004       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7005       # as there is no search path for DLLs.
7006       hardcode_libdir_flag_spec='-L$libdir'
7007       allow_undefined_flag=unsupported
7008       always_export_symbols=no
7009       enable_shared_with_static_runtimes=yes
7010       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7011
7012       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7013         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7014         # If the export-symbols file already is a .def file (1st line
7015         # is EXPORTS), use it as is; otherwise, prepend...
7016         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7017           cp $export_symbols $output_objdir/$soname.def;
7018         else
7019           echo EXPORTS > $output_objdir/$soname.def;
7020           cat $export_symbols >> $output_objdir/$soname.def;
7021         fi~
7022         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7023       else
7024         ld_shlibs=no
7025       fi
7026       ;;
7027
7028     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7029       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7030         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7031         wlarc=
7032       else
7033         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7034         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7035       fi
7036       ;;
7037
7038     solaris* | sysv5*)
7039       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7040         ld_shlibs=no
7041         cat <<EOF 1>&2
7042
7043 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7044 *** create shared libraries on Solaris systems.  Therefore, libtool
7045 *** is disabling shared libraries support.  We urge you to upgrade GNU
7046 *** binutils to release 2.9.1 or newer.  Another option is to modify
7047 *** your PATH or compiler configuration so that the native linker is
7048 *** used, and then restart.
7049
7050 EOF
7051       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7052         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7053         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7054       else
7055         ld_shlibs=no
7056       fi
7057       ;;
7058
7059     sunos4*)
7060       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7061       wlarc=
7062       hardcode_direct=yes
7063       hardcode_shlibpath_var=no
7064       ;;
7065
7066   linux*)
7067     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7068         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7069         archive_cmds="$tmp_archive_cmds"
7070       supports_anon_versioning=no
7071       case `$LD -v 2>/dev/null` in
7072         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7073         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7074         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7075         *\ 2.11.*) ;; # other 2.11 versions
7076         *) supports_anon_versioning=yes ;;
7077       esac
7078       if test $supports_anon_versioning = yes; then
7079         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7081 $echo "local: *; };" >> $output_objdir/$libname.ver~
7082         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7083       else
7084         archive_expsym_cmds="$tmp_archive_cmds"
7085       fi
7086       link_all_deplibs=no
7087     else
7088       ld_shlibs=no
7089     fi
7090     ;;
7091
7092     *)
7093       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7094         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7095         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7096       else
7097         ld_shlibs=no
7098       fi
7099       ;;
7100     esac
7101
7102     if test "$ld_shlibs" = yes; then
7103       runpath_var=LD_RUN_PATH
7104       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7105       export_dynamic_flag_spec='${wl}--export-dynamic'
7106       # ancient GNU ld didn't support --whole-archive et. al.
7107       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7108         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7109       else
7110         whole_archive_flag_spec=
7111       fi
7112     fi
7113   else
7114     # PORTME fill in a description of your system's linker (not GNU ld)
7115     case $host_os in
7116     aix3*)
7117       allow_undefined_flag=unsupported
7118       always_export_symbols=yes
7119       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'
7120       # Note: this linker hardcodes the directories in LIBPATH if there
7121       # are no directories specified by -L.
7122       hardcode_minus_L=yes
7123       if test "$GCC" = yes && test -z "$link_static_flag"; then
7124         # Neither direct hardcoding nor static linking is supported with a
7125         # broken collect2.
7126         hardcode_direct=unsupported
7127       fi
7128       ;;
7129
7130     aix4* | aix5*)
7131       if test "$host_cpu" = ia64; then
7132         # On IA64, the linker does run time linking by default, so we don't
7133         # have to do anything special.
7134         aix_use_runtimelinking=no
7135         exp_sym_flag='-Bexport'
7136         no_entry_flag=""
7137       else
7138         # If we're using GNU nm, then we don't want the "-C" option.
7139         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7140         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7141           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'
7142         else
7143           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'
7144         fi
7145         aix_use_runtimelinking=no
7146
7147         # Test if we are trying to use run time linking or normal
7148         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7149         # need to do runtime linking.
7150         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7151           for ld_flag in $LDFLAGS; do
7152           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7153             aix_use_runtimelinking=yes
7154             break
7155           fi
7156           done
7157         esac
7158
7159         exp_sym_flag='-bexport'
7160         no_entry_flag='-bnoentry'
7161       fi
7162
7163       # When large executables or shared objects are built, AIX ld can
7164       # have problems creating the table of contents.  If linking a library
7165       # or program results in "error TOC overflow" add -mminimal-toc to
7166       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7167       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7168
7169       archive_cmds=''
7170       hardcode_direct=yes
7171       hardcode_libdir_separator=':'
7172       link_all_deplibs=yes
7173
7174       if test "$GCC" = yes; then
7175         case $host_os in aix4.012|aix4.012.*)
7176         # We only want to do this on AIX 4.2 and lower, the check
7177         # below for broken collect2 doesn't work under 4.3+
7178           collect2name=`${CC} -print-prog-name=collect2`
7179           if test -f "$collect2name" && \
7180            strings "$collect2name" | grep resolve_lib_name >/dev/null
7181           then
7182           # We have reworked collect2
7183           hardcode_direct=yes
7184           else
7185           # We have old collect2
7186           hardcode_direct=unsupported
7187           # It fails to find uninstalled libraries when the uninstalled
7188           # path is not listed in the libpath.  Setting hardcode_minus_L
7189           # to unsupported forces relinking
7190           hardcode_minus_L=yes
7191           hardcode_libdir_flag_spec='-L$libdir'
7192           hardcode_libdir_separator=
7193           fi
7194         esac
7195         shared_flag='-shared'
7196       else
7197         # not using gcc
7198         if test "$host_cpu" = ia64; then
7199         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7200         # chokes on -Wl,-G. The following line is correct:
7201           shared_flag='-G'
7202         else
7203         if test "$aix_use_runtimelinking" = yes; then
7204             shared_flag='${wl}-G'
7205           else
7206             shared_flag='${wl}-bM:SRE'
7207         fi
7208         fi
7209       fi
7210
7211       # It seems that -bexpall does not export symbols beginning with
7212       # underscore (_), so it is better to generate a list of symbols to export.
7213       always_export_symbols=yes
7214       if test "$aix_use_runtimelinking" = yes; then
7215         # Warning - without using the other runtime loading flags (-brtl),
7216         # -berok will link without error, but may produce a broken library.
7217         allow_undefined_flag='-berok'
7218        # Determine the default libpath from the value encoded in an empty executable.
7219        cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225
7226 int
7227 main ()
7228 {
7229
7230   ;
7231   return 0;
7232 }
7233 _ACEOF
7234 rm -f conftest.$ac_objext conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236   (eval $ac_link) 2>conftest.er1
7237   ac_status=$?
7238   grep -v '^ *+' conftest.er1 >conftest.err
7239   rm -f conftest.er1
7240   cat conftest.err >&5
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); } &&
7243          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245   (eval $ac_try) 2>&5
7246   ac_status=$?
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); }; } &&
7249          { ac_try='test -s conftest$ac_exeext'
7250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251   (eval $ac_try) 2>&5
7252   ac_status=$?
7253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); }; }; then
7255
7256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7257 }'`
7258 # Check for a 64-bit object if we didn't find anything.
7259 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; }
7260 }'`; fi
7261 else
7262   echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7264
7265 fi
7266 rm -f conftest.err conftest.$ac_objext \
7267       conftest$ac_exeext conftest.$ac_ext
7268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7269
7270        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7271         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"
7272        else
7273         if test "$host_cpu" = ia64; then
7274           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7275           allow_undefined_flag="-z nodefs"
7276           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"
7277         else
7278          # Determine the default libpath from the value encoded in an empty executable.
7279          cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h.  */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h.  */
7285
7286 int
7287 main ()
7288 {
7289
7290   ;
7291   return 0;
7292 }
7293 _ACEOF
7294 rm -f conftest.$ac_objext conftest$ac_exeext
7295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296   (eval $ac_link) 2>conftest.er1
7297   ac_status=$?
7298   grep -v '^ *+' conftest.er1 >conftest.err
7299   rm -f conftest.er1
7300   cat conftest.err >&5
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); } &&
7303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305   (eval $ac_try) 2>&5
7306   ac_status=$?
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); }; } &&
7309          { ac_try='test -s conftest$ac_exeext'
7310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311   (eval $ac_try) 2>&5
7312   ac_status=$?
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); }; }; then
7315
7316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7317 }'`
7318 # Check for a 64-bit object if we didn't find anything.
7319 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; }
7320 }'`; fi
7321 else
7322   echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325 fi
7326 rm -f conftest.err conftest.$ac_objext \
7327       conftest$ac_exeext conftest.$ac_ext
7328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7329
7330          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7331           # Warning - without using the other run time loading flags,
7332           # -berok will link without error, but may produce a broken library.
7333           no_undefined_flag=' ${wl}-bernotok'
7334           allow_undefined_flag=' ${wl}-berok'
7335           # -bexpall does not export symbols beginning with underscore (_)
7336           always_export_symbols=yes
7337           # Exported symbols can be pulled into shared objects from archives
7338           whole_archive_flag_spec=' '
7339           archive_cmds_need_lc=yes
7340           # This is similar to how AIX traditionally builds it's shared libraries.
7341           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'
7342         fi
7343       fi
7344       ;;
7345
7346     amigaos*)
7347       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)'
7348       hardcode_libdir_flag_spec='-L$libdir'
7349       hardcode_minus_L=yes
7350       # see comment about different semantics on the GNU ld section
7351       ld_shlibs=no
7352       ;;
7353
7354     bsdi4*)
7355       export_dynamic_flag_spec=-rdynamic
7356       ;;
7357
7358     cygwin* | mingw* | pw32*)
7359       # When not using gcc, we currently assume that we are using
7360       # Microsoft Visual C++.
7361       # hardcode_libdir_flag_spec is actually meaningless, as there is
7362       # no search path for DLLs.
7363       hardcode_libdir_flag_spec=' '
7364       allow_undefined_flag=unsupported
7365       # Tell ltmain to make .lib files, not .a files.
7366       libext=lib
7367       # Tell ltmain to make .dll files, not .so files.
7368       shrext_cmds=".dll"
7369       # FIXME: Setting linknames here is a bad hack.
7370       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7371       # The linker will automatically build a .lib file if we build a DLL.
7372       old_archive_From_new_cmds='true'
7373       # FIXME: Should let the user specify the lib program.
7374       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7375       fix_srcfile_path='`cygpath -w "$srcfile"`'
7376       enable_shared_with_static_runtimes=yes
7377       ;;
7378
7379     darwin* | rhapsody*)
7380     if test "$GXX" = yes ; then
7381       archive_cmds_need_lc=no
7382       case "$host_os" in
7383       rhapsody* | darwin1.[012])
7384         allow_undefined_flag='-undefined suppress'
7385         ;;
7386       *) # Darwin 1.3 on
7387       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7388         allow_undefined_flag='-flat_namespace -undefined suppress'
7389       else
7390         case ${MACOSX_DEPLOYMENT_TARGET} in
7391           10.[012])
7392             allow_undefined_flag='-flat_namespace -undefined suppress'
7393             ;;
7394           10.*)
7395             allow_undefined_flag='-undefined dynamic_lookup'
7396             ;;
7397         esac
7398       fi
7399         ;;
7400       esac
7401         lt_int_apple_cc_single_mod=no
7402         output_verbose_link_cmd='echo'
7403         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7404           lt_int_apple_cc_single_mod=yes
7405         fi
7406         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7407           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7408         else
7409         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'
7410       fi
7411       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7412       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7413         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7414           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}'
7415         else
7416           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}'
7417         fi
7418           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7419       hardcode_direct=no
7420       hardcode_automatic=yes
7421       hardcode_shlibpath_var=unsupported
7422       whole_archive_flag_spec='-all_load $convenience'
7423       link_all_deplibs=yes
7424     else
7425       ld_shlibs=no
7426     fi
7427       ;;
7428
7429     dgux*)
7430       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7431       hardcode_libdir_flag_spec='-L$libdir'
7432       hardcode_shlibpath_var=no
7433       ;;
7434
7435     freebsd1*)
7436       ld_shlibs=no
7437       ;;
7438
7439     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7440     # support.  Future versions do this automatically, but an explicit c++rt0.o
7441     # does not break anything, and helps significantly (at the cost of a little
7442     # extra space).
7443     freebsd2.2*)
7444       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7445       hardcode_libdir_flag_spec='-R$libdir'
7446       hardcode_direct=yes
7447       hardcode_shlibpath_var=no
7448       ;;
7449
7450     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7451     freebsd2*)
7452       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7453       hardcode_direct=yes
7454       hardcode_minus_L=yes
7455       hardcode_shlibpath_var=no
7456       ;;
7457
7458     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7459     freebsd* | kfreebsd*-gnu)
7460       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7461       hardcode_libdir_flag_spec='-R$libdir'
7462       hardcode_direct=yes
7463       hardcode_shlibpath_var=no
7464       ;;
7465
7466     hpux9*)
7467       if test "$GCC" = yes; then
7468         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'
7469       else
7470         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'
7471       fi
7472       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7473       hardcode_libdir_separator=:
7474       hardcode_direct=yes
7475
7476       # hardcode_minus_L: Not really in the search PATH,
7477       # but as the default location of the library.
7478       hardcode_minus_L=yes
7479       export_dynamic_flag_spec='${wl}-E'
7480       ;;
7481
7482     hpux10* | hpux11*)
7483       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7484         case "$host_cpu" in
7485         hppa*64*|ia64*)
7486           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7487           ;;
7488         *)
7489           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7490           ;;
7491         esac
7492       else
7493         case "$host_cpu" in
7494         hppa*64*|ia64*)
7495           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7496           ;;
7497         *)
7498           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7499           ;;
7500         esac
7501       fi
7502       if test "$with_gnu_ld" = no; then
7503         case "$host_cpu" in
7504         hppa*64*)
7505           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7506           hardcode_libdir_flag_spec_ld='+b $libdir'
7507           hardcode_libdir_separator=:
7508           hardcode_direct=no
7509           hardcode_shlibpath_var=no
7510           ;;
7511         ia64*)
7512           hardcode_libdir_flag_spec='-L$libdir'
7513           hardcode_direct=no
7514           hardcode_shlibpath_var=no
7515
7516           # hardcode_minus_L: Not really in the search PATH,
7517           # but as the default location of the library.
7518           hardcode_minus_L=yes
7519           ;;
7520         *)
7521           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7522           hardcode_libdir_separator=:
7523           hardcode_direct=yes
7524           export_dynamic_flag_spec='${wl}-E'
7525
7526           # hardcode_minus_L: Not really in the search PATH,
7527           # but as the default location of the library.
7528           hardcode_minus_L=yes
7529           ;;
7530         esac
7531       fi
7532       ;;
7533
7534     irix5* | irix6* | nonstopux*)
7535       if test "$GCC" = yes; then
7536         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'
7537       else
7538         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'
7539         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7540       fi
7541       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7542       hardcode_libdir_separator=:
7543       link_all_deplibs=yes
7544       ;;
7545
7546     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7547       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7548         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7549       else
7550         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7551       fi
7552       hardcode_libdir_flag_spec='-R$libdir'
7553       hardcode_direct=yes
7554       hardcode_shlibpath_var=no
7555       ;;
7556
7557     newsos6)
7558       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7559       hardcode_direct=yes
7560       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7561       hardcode_libdir_separator=:
7562       hardcode_shlibpath_var=no
7563       ;;
7564
7565     openbsd*)
7566       hardcode_direct=yes
7567       hardcode_shlibpath_var=no
7568       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7569         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7570         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7571         export_dynamic_flag_spec='${wl}-E'
7572       else
7573        case $host_os in
7574          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7575            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7576            hardcode_libdir_flag_spec='-R$libdir'
7577            ;;
7578          *)
7579            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7580            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7581            ;;
7582        esac
7583       fi
7584       ;;
7585
7586     os2*)
7587       hardcode_libdir_flag_spec='-L$libdir'
7588       hardcode_minus_L=yes
7589       allow_undefined_flag=unsupported
7590       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'
7591       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7592       ;;
7593
7594     osf3*)
7595       if test "$GCC" = yes; then
7596         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7597         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'
7598       else
7599         allow_undefined_flag=' -expect_unresolved \*'
7600         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'
7601       fi
7602       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7603       hardcode_libdir_separator=:
7604       ;;
7605
7606     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7607       if test "$GCC" = yes; then
7608         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7609         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'
7610         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7611       else
7612         allow_undefined_flag=' -expect_unresolved \*'
7613         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'
7614         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7615         $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'
7616
7617         # Both c and cxx compiler support -rpath directly
7618         hardcode_libdir_flag_spec='-rpath $libdir'
7619       fi
7620       hardcode_libdir_separator=:
7621       ;;
7622
7623     sco3.2v5*)
7624       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7625       hardcode_shlibpath_var=no
7626       export_dynamic_flag_spec='${wl}-Bexport'
7627       runpath_var=LD_RUN_PATH
7628       hardcode_runpath_var=yes
7629       ;;
7630
7631     solaris*)
7632       no_undefined_flag=' -z text'
7633       if test "$GCC" = yes; then
7634         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7635         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7636           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7637       else
7638         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7639         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7640         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7641       fi
7642       hardcode_libdir_flag_spec='-R$libdir'
7643       hardcode_shlibpath_var=no
7644       case $host_os in
7645       solaris2.[0-5] | solaris2.[0-5].*) ;;
7646       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7647         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7648       esac
7649       link_all_deplibs=yes
7650       ;;
7651
7652     sunos4*)
7653       if test "x$host_vendor" = xsequent; then
7654         # Use $CC to link under sequent, because it throws in some extra .o
7655         # files that make .init and .fini sections work.
7656         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7657       else
7658         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7659       fi
7660       hardcode_libdir_flag_spec='-L$libdir'
7661       hardcode_direct=yes
7662       hardcode_minus_L=yes
7663       hardcode_shlibpath_var=no
7664       ;;
7665
7666     sysv4)
7667       case $host_vendor in
7668         sni)
7669           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7670           hardcode_direct=yes # is this really true???
7671         ;;
7672         siemens)
7673           ## LD is ld it makes a PLAMLIB
7674           ## CC just makes a GrossModule.
7675           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7676           reload_cmds='$CC -r -o $output$reload_objs'
7677           hardcode_direct=no
7678         ;;
7679         motorola)
7680           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7682         ;;
7683       esac
7684       runpath_var='LD_RUN_PATH'
7685       hardcode_shlibpath_var=no
7686       ;;
7687
7688     sysv4.3*)
7689       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7690       hardcode_shlibpath_var=no
7691       export_dynamic_flag_spec='-Bexport'
7692       ;;
7693
7694     sysv4*MP*)
7695       if test -d /usr/nec; then
7696         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7697         hardcode_shlibpath_var=no
7698         runpath_var=LD_RUN_PATH
7699         hardcode_runpath_var=yes
7700         ld_shlibs=yes
7701       fi
7702       ;;
7703
7704     sysv4.2uw2*)
7705       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7706       hardcode_direct=yes
7707       hardcode_minus_L=no
7708       hardcode_shlibpath_var=no
7709       hardcode_runpath_var=yes
7710       runpath_var=LD_RUN_PATH
7711       ;;
7712
7713    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7714       no_undefined_flag='${wl}-z ${wl}text'
7715       if test "$GCC" = yes; then
7716         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7717       else
7718         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7719       fi
7720       runpath_var='LD_RUN_PATH'
7721       hardcode_shlibpath_var=no
7722       ;;
7723
7724     sysv5*)
7725       no_undefined_flag=' -z text'
7726       # $CC -shared without GNU ld will not create a library from C++
7727       # object files and a static libstdc++, better avoid it by now
7728       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7729       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7730                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7731       hardcode_libdir_flag_spec=
7732       hardcode_shlibpath_var=no
7733       runpath_var='LD_RUN_PATH'
7734       ;;
7735
7736     uts4*)
7737       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7738       hardcode_libdir_flag_spec='-L$libdir'
7739       hardcode_shlibpath_var=no
7740       ;;
7741
7742     *)
7743       ld_shlibs=no
7744       ;;
7745     esac
7746   fi
7747
7748 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7749 echo "${ECHO_T}$ld_shlibs" >&6
7750 test "$ld_shlibs" = no && can_build_shared=no
7751
7752 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7753 if test "$GCC" = yes; then
7754   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7755 fi
7756
7757 #
7758 # Do we need to explicitly link libc?
7759 #
7760 case "x$archive_cmds_need_lc" in
7761 x|xyes)
7762   # Assume -lc should be added
7763   archive_cmds_need_lc=yes
7764
7765   if test "$enable_shared" = yes && test "$GCC" = yes; then
7766     case $archive_cmds in
7767     *'~'*)
7768       # FIXME: we may have to deal with multi-command sequences.
7769       ;;
7770     '$CC '*)
7771       # Test whether the compiler implicitly links with -lc since on some
7772       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7773       # to ld, don't add -lc before -lgcc.
7774       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7775 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7776       $rm conftest*
7777       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7778
7779       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7780   (eval $ac_compile) 2>&5
7781   ac_status=$?
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); } 2>conftest.err; then
7784         soname=conftest
7785         lib=conftest
7786         libobjs=conftest.$ac_objext
7787         deplibs=
7788         wl=$lt_prog_compiler_wl
7789         compiler_flags=-v
7790         linker_flags=-v
7791         verstring=
7792         output_objdir=.
7793         libname=conftest
7794         lt_save_allow_undefined_flag=$allow_undefined_flag
7795         allow_undefined_flag=
7796         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7797   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7798   ac_status=$?
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); }
7801         then
7802           archive_cmds_need_lc=no
7803         else
7804           archive_cmds_need_lc=yes
7805         fi
7806         allow_undefined_flag=$lt_save_allow_undefined_flag
7807       else
7808         cat conftest.err 1>&5
7809       fi
7810       $rm conftest*
7811       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7812 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7813       ;;
7814     esac
7815   fi
7816   ;;
7817 esac
7818
7819 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7820 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7821 library_names_spec=
7822 libname_spec='lib$name'
7823 soname_spec=
7824 shrext_cmds=".so"
7825 postinstall_cmds=
7826 postuninstall_cmds=
7827 finish_cmds=
7828 finish_eval=
7829 shlibpath_var=
7830 shlibpath_overrides_runpath=unknown
7831 version_type=none
7832 dynamic_linker="$host_os ld.so"
7833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7834 if test "$GCC" = yes; then
7835   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7836   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7837     # if the path contains ";" then we assume it to be the separator
7838     # otherwise default to the standard path separator (i.e. ":") - it is
7839     # assumed that no part of a normal pathname contains ";" but that should
7840     # okay in the real world where ";" in dirpaths is itself problematic.
7841     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7842   else
7843     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7844   fi
7845 else
7846   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7847 fi
7848 need_lib_prefix=unknown
7849 hardcode_into_libs=no
7850
7851 # when you set need_version to no, make sure it does not cause -set_version
7852 # flags to be left without arguments
7853 need_version=unknown
7854
7855 case $host_os in
7856 aix3*)
7857   version_type=linux
7858   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7859   shlibpath_var=LIBPATH
7860
7861   # AIX 3 has no versioning support, so we append a major version to the name.
7862   soname_spec='${libname}${release}${shared_ext}$major'
7863   ;;
7864
7865 aix4* | aix5*)
7866   version_type=linux
7867   need_lib_prefix=no
7868   need_version=no
7869   hardcode_into_libs=yes
7870   if test "$host_cpu" = ia64; then
7871     # AIX 5 supports IA64
7872     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7873     shlibpath_var=LD_LIBRARY_PATH
7874   else
7875     # With GCC up to 2.95.x, collect2 would create an import file
7876     # for dependence libraries.  The import file would start with
7877     # the line `#! .'.  This would cause the generated library to
7878     # depend on `.', always an invalid library.  This was fixed in
7879     # development snapshots of GCC prior to 3.0.
7880     case $host_os in
7881       aix4 | aix4.[01] | aix4.[01].*)
7882       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7883            echo ' yes '
7884            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7885         :
7886       else
7887         can_build_shared=no
7888       fi
7889       ;;
7890     esac
7891     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7892     # soname into executable. Probably we can add versioning support to
7893     # collect2, so additional links can be useful in future.
7894     if test "$aix_use_runtimelinking" = yes; then
7895       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7896       # instead of lib<name>.a to let people know that these are not
7897       # typical AIX shared libraries.
7898       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7899     else
7900       # We preserve .a as extension for shared libraries through AIX4.2
7901       # and later when we are not doing run time linking.
7902       library_names_spec='${libname}${release}.a $libname.a'
7903       soname_spec='${libname}${release}${shared_ext}$major'
7904     fi
7905     shlibpath_var=LIBPATH
7906   fi
7907   ;;
7908
7909 amigaos*)
7910   library_names_spec='$libname.ixlibrary $libname.a'
7911   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7912   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'
7913   ;;
7914
7915 beos*)
7916   library_names_spec='${libname}${shared_ext}'
7917   dynamic_linker="$host_os ld.so"
7918   shlibpath_var=LIBRARY_PATH
7919   ;;
7920
7921 bsdi4*)
7922   version_type=linux
7923   need_version=no
7924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925   soname_spec='${libname}${release}${shared_ext}$major'
7926   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7927   shlibpath_var=LD_LIBRARY_PATH
7928   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7929   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7930   # the default ld.so.conf also contains /usr/contrib/lib and
7931   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7932   # libtool to hard-code these into programs
7933   ;;
7934
7935 cygwin* | mingw* | pw32*)
7936   version_type=windows
7937   shrext_cmds=".dll"
7938   need_version=no
7939   need_lib_prefix=no
7940
7941   case $GCC,$host_os in
7942   yes,cygwin* | yes,mingw* | yes,pw32*)
7943     library_names_spec='$libname.dll.a'
7944     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7945     postinstall_cmds='base_file=`basename \${file}`~
7946       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7947       dldir=$destdir/`dirname \$dlpath`~
7948       test -d \$dldir || mkdir -p \$dldir~
7949       $install_prog $dir/$dlname \$dldir/$dlname'
7950     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7951       dlpath=$dir/\$dldll~
7952        $rm \$dlpath'
7953     shlibpath_overrides_runpath=yes
7954
7955     case $host_os in
7956     cygwin*)
7957       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7958       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7959       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7960       ;;
7961     mingw*)
7962       # MinGW DLLs use traditional 'lib' prefix
7963       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7964       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7965       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7966         # It is most probably a Windows format PATH printed by
7967         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7968         # path with ; separators, and with drive letters. We can handle the
7969         # drive letters (cygwin fileutils understands them), so leave them,
7970         # especially as we might pass files found there to a mingw objdump,
7971         # which wouldn't understand a cygwinified path. Ahh.
7972         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7973       else
7974         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7975       fi
7976       ;;
7977     pw32*)
7978       # pw32 DLLs use 'pw' prefix rather than 'lib'
7979       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7980       ;;
7981     esac
7982     ;;
7983
7984   *)
7985     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7986     ;;
7987   esac
7988   dynamic_linker='Win32 ld.exe'
7989   # FIXME: first we should search . and the directory the executable is in
7990   shlibpath_var=PATH
7991   ;;
7992
7993 darwin* | rhapsody*)
7994   dynamic_linker="$host_os dyld"
7995   version_type=darwin
7996   need_lib_prefix=no
7997   need_version=no
7998   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7999   soname_spec='${libname}${release}${major}$shared_ext'
8000   shlibpath_overrides_runpath=yes
8001   shlibpath_var=DYLD_LIBRARY_PATH
8002   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8003   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8004   if test "$GCC" = yes; then
8005     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"`
8006   else
8007     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8008   fi
8009   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8010   ;;
8011
8012 dgux*)
8013   version_type=linux
8014   need_lib_prefix=no
8015   need_version=no
8016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8017   soname_spec='${libname}${release}${shared_ext}$major'
8018   shlibpath_var=LD_LIBRARY_PATH
8019   ;;
8020
8021 freebsd1*)
8022   dynamic_linker=no
8023   ;;
8024
8025 kfreebsd*-gnu)
8026   version_type=linux
8027   need_lib_prefix=no
8028   need_version=no
8029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8030   soname_spec='${libname}${release}${shared_ext}$major'
8031   shlibpath_var=LD_LIBRARY_PATH
8032   shlibpath_overrides_runpath=no
8033   hardcode_into_libs=yes
8034   dynamic_linker='GNU ld.so'
8035   ;;
8036
8037 freebsd*)
8038   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8039   version_type=freebsd-$objformat
8040   case $version_type in
8041     freebsd-elf*)
8042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8043       need_version=no
8044       need_lib_prefix=no
8045       ;;
8046     freebsd-*)
8047       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8048       need_version=yes
8049       ;;
8050   esac
8051   shlibpath_var=LD_LIBRARY_PATH
8052   case $host_os in
8053   freebsd2*)
8054     shlibpath_overrides_runpath=yes
8055     ;;
8056   freebsd3.01* | freebsdelf3.01*)
8057     shlibpath_overrides_runpath=yes
8058     hardcode_into_libs=yes
8059     ;;
8060   *) # from 3.2 on
8061     shlibpath_overrides_runpath=no
8062     hardcode_into_libs=yes
8063     ;;
8064   esac
8065   ;;
8066
8067 gnu*)
8068   version_type=linux
8069   need_lib_prefix=no
8070   need_version=no
8071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8072   soname_spec='${libname}${release}${shared_ext}$major'
8073   shlibpath_var=LD_LIBRARY_PATH
8074   hardcode_into_libs=yes
8075   ;;
8076
8077 hpux9* | hpux10* | hpux11*)
8078   # Give a soname corresponding to the major version so that dld.sl refuses to
8079   # link against other versions.
8080   version_type=sunos
8081   need_lib_prefix=no
8082   need_version=no
8083   case "$host_cpu" in
8084   ia64*)
8085     shrext_cmds='.so'
8086     hardcode_into_libs=yes
8087     dynamic_linker="$host_os dld.so"
8088     shlibpath_var=LD_LIBRARY_PATH
8089     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091     soname_spec='${libname}${release}${shared_ext}$major'
8092     if test "X$HPUX_IA64_MODE" = X32; then
8093       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8094     else
8095       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8096     fi
8097     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8098     ;;
8099    hppa*64*)
8100      shrext_cmds='.sl'
8101      hardcode_into_libs=yes
8102      dynamic_linker="$host_os dld.sl"
8103      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8104      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8105      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106      soname_spec='${libname}${release}${shared_ext}$major'
8107      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8108      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8109      ;;
8110    *)
8111     shrext_cmds='.sl'
8112     dynamic_linker="$host_os dld.sl"
8113     shlibpath_var=SHLIB_PATH
8114     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116     soname_spec='${libname}${release}${shared_ext}$major'
8117     ;;
8118   esac
8119   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8120   postinstall_cmds='chmod 555 $lib'
8121   ;;
8122
8123 irix5* | irix6* | nonstopux*)
8124   case $host_os in
8125     nonstopux*) version_type=nonstopux ;;
8126     *)
8127         if test "$lt_cv_prog_gnu_ld" = yes; then
8128                 version_type=linux
8129         else
8130                 version_type=irix
8131         fi ;;
8132   esac
8133   need_lib_prefix=no
8134   need_version=no
8135   soname_spec='${libname}${release}${shared_ext}$major'
8136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8137   case $host_os in
8138   irix5* | nonstopux*)
8139     libsuff= shlibsuff=
8140     ;;
8141   *)
8142     case $LD in # libtool.m4 will add one of these switches to LD
8143     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8144       libsuff= shlibsuff= libmagic=32-bit;;
8145     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8146       libsuff=32 shlibsuff=N32 libmagic=N32;;
8147     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8148       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8149     *) libsuff= shlibsuff= libmagic=never-match;;
8150     esac
8151     ;;
8152   esac
8153   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8154   shlibpath_overrides_runpath=no
8155   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8156   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8157   hardcode_into_libs=yes
8158   ;;
8159
8160 # No shared lib support for Linux oldld, aout, or coff.
8161 linux*oldld* | linux*aout* | linux*coff*)
8162   dynamic_linker=no
8163   ;;
8164
8165 # This must be Linux ELF.
8166 linux*)
8167   version_type=linux
8168   need_lib_prefix=no
8169   need_version=no
8170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8171   soname_spec='${libname}${release}${shared_ext}$major'
8172   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8173   shlibpath_var=LD_LIBRARY_PATH
8174   shlibpath_overrides_runpath=no
8175   # This implies no fast_install, which is unacceptable.
8176   # Some rework will be needed to allow for fast_install
8177   # before this can be enabled.
8178   hardcode_into_libs=yes
8179
8180   # Append ld.so.conf contents to the search path
8181   if test -f /etc/ld.so.conf; then
8182     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8183     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8184   fi
8185
8186   # We used to test for /lib/ld.so.1 and disable shared libraries on
8187   # powerpc, because MkLinux only supported shared libraries with the
8188   # GNU dynamic linker.  Since this was broken with cross compilers,
8189   # most powerpc-linux boxes support dynamic linking these days and
8190   # people can always --disable-shared, the test was removed, and we
8191   # assume the GNU/Linux dynamic linker is in use.
8192   dynamic_linker='GNU/Linux ld.so'
8193   ;;
8194
8195 netbsdelf*-gnu)
8196   version_type=linux
8197   need_lib_prefix=no
8198   need_version=no
8199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8200   soname_spec='${libname}${release}${shared_ext}$major'
8201   shlibpath_var=LD_LIBRARY_PATH
8202   shlibpath_overrides_runpath=no
8203   hardcode_into_libs=yes
8204   dynamic_linker='NetBSD ld.elf_so'
8205   ;;
8206
8207 knetbsd*-gnu)
8208   version_type=linux
8209   need_lib_prefix=no
8210   need_version=no
8211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8212   soname_spec='${libname}${release}${shared_ext}$major'
8213   shlibpath_var=LD_LIBRARY_PATH
8214   shlibpath_overrides_runpath=no
8215   hardcode_into_libs=yes
8216   dynamic_linker='GNU ld.so'
8217   ;;
8218
8219 netbsd*)
8220   version_type=sunos
8221   need_lib_prefix=no
8222   need_version=no
8223   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8225     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8226     dynamic_linker='NetBSD (a.out) ld.so'
8227   else
8228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8229     soname_spec='${libname}${release}${shared_ext}$major'
8230     dynamic_linker='NetBSD ld.elf_so'
8231   fi
8232   shlibpath_var=LD_LIBRARY_PATH
8233   shlibpath_overrides_runpath=yes
8234   hardcode_into_libs=yes
8235   ;;
8236
8237 newsos6)
8238   version_type=linux
8239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240   shlibpath_var=LD_LIBRARY_PATH
8241   shlibpath_overrides_runpath=yes
8242   ;;
8243
8244 nto-qnx*)
8245   version_type=linux
8246   need_lib_prefix=no
8247   need_version=no
8248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8249   soname_spec='${libname}${release}${shared_ext}$major'
8250   shlibpath_var=LD_LIBRARY_PATH
8251   shlibpath_overrides_runpath=yes
8252   ;;
8253
8254 openbsd*)
8255   version_type=sunos
8256   need_lib_prefix=no
8257   need_version=yes
8258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8259   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8260   shlibpath_var=LD_LIBRARY_PATH
8261   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8262     case $host_os in
8263       openbsd2.[89] | openbsd2.[89].*)
8264         shlibpath_overrides_runpath=no
8265         ;;
8266       *)
8267         shlibpath_overrides_runpath=yes
8268         ;;
8269       esac
8270   else
8271     shlibpath_overrides_runpath=yes
8272   fi
8273   ;;
8274
8275 os2*)
8276   libname_spec='$name'
8277   shrext_cmds=".dll"
8278   need_lib_prefix=no
8279   library_names_spec='$libname${shared_ext} $libname.a'
8280   dynamic_linker='OS/2 ld.exe'
8281   shlibpath_var=LIBPATH
8282   ;;
8283
8284 osf3* | osf4* | osf5*)
8285   version_type=osf
8286   need_lib_prefix=no
8287   need_version=no
8288   soname_spec='${libname}${release}${shared_ext}$major'
8289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290   shlibpath_var=LD_LIBRARY_PATH
8291   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8292   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8293   ;;
8294
8295 sco3.2v5*)
8296   version_type=osf
8297   soname_spec='${libname}${release}${shared_ext}$major'
8298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8299   shlibpath_var=LD_LIBRARY_PATH
8300   ;;
8301
8302 solaris*)
8303   version_type=linux
8304   need_lib_prefix=no
8305   need_version=no
8306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307   soname_spec='${libname}${release}${shared_ext}$major'
8308   shlibpath_var=LD_LIBRARY_PATH
8309   shlibpath_overrides_runpath=yes
8310   hardcode_into_libs=yes
8311   # ldd complains unless libraries are executable
8312   postinstall_cmds='chmod +x $lib'
8313   ;;
8314
8315 sunos4*)
8316   version_type=sunos
8317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8318   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8319   shlibpath_var=LD_LIBRARY_PATH
8320   shlibpath_overrides_runpath=yes
8321   if test "$with_gnu_ld" = yes; then
8322     need_lib_prefix=no
8323   fi
8324   need_version=yes
8325   ;;
8326
8327 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8328   version_type=linux
8329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8330   soname_spec='${libname}${release}${shared_ext}$major'
8331   shlibpath_var=LD_LIBRARY_PATH
8332   case $host_vendor in
8333     sni)
8334       shlibpath_overrides_runpath=no
8335       need_lib_prefix=no
8336       export_dynamic_flag_spec='${wl}-Blargedynsym'
8337       runpath_var=LD_RUN_PATH
8338       ;;
8339     siemens)
8340       need_lib_prefix=no
8341       ;;
8342     motorola)
8343       need_lib_prefix=no
8344       need_version=no
8345       shlibpath_overrides_runpath=no
8346       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8347       ;;
8348   esac
8349   ;;
8350
8351 sysv4*MP*)
8352   if test -d /usr/nec ;then
8353     version_type=linux
8354     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8355     soname_spec='$libname${shared_ext}.$major'
8356     shlibpath_var=LD_LIBRARY_PATH
8357   fi
8358   ;;
8359
8360 uts4*)
8361   version_type=linux
8362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8363   soname_spec='${libname}${release}${shared_ext}$major'
8364   shlibpath_var=LD_LIBRARY_PATH
8365   ;;
8366
8367 *)
8368   dynamic_linker=no
8369   ;;
8370 esac
8371 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8372 echo "${ECHO_T}$dynamic_linker" >&6
8373 test "$dynamic_linker" = no && can_build_shared=no
8374
8375 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8376 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8377 hardcode_action=
8378 if test -n "$hardcode_libdir_flag_spec" || \
8379    test -n "$runpath_var " || \
8380    test "X$hardcode_automatic"="Xyes" ; then
8381
8382   # We can hardcode non-existant directories.
8383   if test "$hardcode_direct" != no &&
8384      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8385      # have to relink, otherwise we might link with an installed library
8386      # when we should be linking with a yet-to-be-installed one
8387      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8388      test "$hardcode_minus_L" != no; then
8389     # Linking always hardcodes the temporary library directory.
8390     hardcode_action=relink
8391   else
8392     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8393     hardcode_action=immediate
8394   fi
8395 else
8396   # We cannot hardcode anything, or else we can only hardcode existing
8397   # directories.
8398   hardcode_action=unsupported
8399 fi
8400 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8401 echo "${ECHO_T}$hardcode_action" >&6
8402
8403 if test "$hardcode_action" = relink; then
8404   # Fast installation is not supported
8405   enable_fast_install=no
8406 elif test "$shlibpath_overrides_runpath" = yes ||
8407      test "$enable_shared" = no; then
8408   # Fast installation is not necessary
8409   enable_fast_install=needless
8410 fi
8411
8412 striplib=
8413 old_striplib=
8414 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8415 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8416 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8417   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8418   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8419   echo "$as_me:$LINENO: result: yes" >&5
8420 echo "${ECHO_T}yes" >&6
8421 else
8422 # FIXME - insert some real tests, host_os isn't really good enough
8423   case $host_os in
8424    darwin*)
8425        if test -n "$STRIP" ; then
8426          striplib="$STRIP -x"
8427          echo "$as_me:$LINENO: result: yes" >&5
8428 echo "${ECHO_T}yes" >&6
8429        else
8430   echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6
8432 fi
8433        ;;
8434    *)
8435   echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6
8437     ;;
8438   esac
8439 fi
8440
8441 if test "x$enable_dlopen" != xyes; then
8442   enable_dlopen=unknown
8443   enable_dlopen_self=unknown
8444   enable_dlopen_self_static=unknown
8445 else
8446   lt_cv_dlopen=no
8447   lt_cv_dlopen_libs=
8448
8449   case $host_os in
8450   beos*)
8451     lt_cv_dlopen="load_add_on"
8452     lt_cv_dlopen_libs=
8453     lt_cv_dlopen_self=yes
8454     ;;
8455
8456   mingw* | pw32*)
8457     lt_cv_dlopen="LoadLibrary"
8458     lt_cv_dlopen_libs=
8459    ;;
8460
8461   cygwin*)
8462     lt_cv_dlopen="dlopen"
8463     lt_cv_dlopen_libs=
8464    ;;
8465
8466   darwin*)
8467   # if libdl is installed we need to link against it
8468     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8469 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8470 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8471   echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473   ac_check_lib_save_LIBS=$LIBS
8474 LIBS="-ldl  $LIBS"
8475 cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h.  */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h.  */
8481
8482 /* Override any gcc2 internal prototype to avoid an error.  */
8483 #ifdef __cplusplus
8484 extern "C"
8485 #endif
8486 /* We use char because int might match the return type of a gcc2
8487    builtin and then its argument prototype would still apply.  */
8488 char dlopen ();
8489 int
8490 main ()
8491 {
8492 dlopen ();
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499   (eval $ac_link) 2>conftest.er1
8500   ac_status=$?
8501   grep -v '^ *+' conftest.er1 >conftest.err
8502   rm -f conftest.er1
8503   cat conftest.err >&5
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); } &&
8506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508   (eval $ac_try) 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); }; } &&
8512          { ac_try='test -s conftest$ac_exeext'
8513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514   (eval $ac_try) 2>&5
8515   ac_status=$?
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); }; }; then
8518   ac_cv_lib_dl_dlopen=yes
8519 else
8520   echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8522
8523 ac_cv_lib_dl_dlopen=no
8524 fi
8525 rm -f conftest.err conftest.$ac_objext \
8526       conftest$ac_exeext conftest.$ac_ext
8527 LIBS=$ac_check_lib_save_LIBS
8528 fi
8529 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8530 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8531 if test $ac_cv_lib_dl_dlopen = yes; then
8532   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8533 else
8534
8535     lt_cv_dlopen="dyld"
8536     lt_cv_dlopen_libs=
8537     lt_cv_dlopen_self=yes
8538
8539 fi
8540
8541    ;;
8542
8543   *)
8544     echo "$as_me:$LINENO: checking for shl_load" >&5
8545 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8546 if test "${ac_cv_func_shl_load+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h.  */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h.  */
8555 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8557 #define shl_load innocuous_shl_load
8558
8559 /* System header to define __stub macros and hopefully few prototypes,
8560     which can conflict with char shl_load (); below.
8561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8562     <limits.h> exists even on freestanding compilers.  */
8563
8564 #ifdef __STDC__
8565 # include <limits.h>
8566 #else
8567 # include <assert.h>
8568 #endif
8569
8570 #undef shl_load
8571
8572 /* Override any gcc2 internal prototype to avoid an error.  */
8573 #ifdef __cplusplus
8574 extern "C"
8575 {
8576 #endif
8577 /* We use char because int might match the return type of a gcc2
8578    builtin and then its argument prototype would still apply.  */
8579 char shl_load ();
8580 /* The GNU C library defines this for functions which it implements
8581     to always fail with ENOSYS.  Some functions are actually named
8582     something starting with __ and the normal name is an alias.  */
8583 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8584 choke me
8585 #else
8586 char (*f) () = shl_load;
8587 #endif
8588 #ifdef __cplusplus
8589 }
8590 #endif
8591
8592 int
8593 main ()
8594 {
8595 return f != shl_load;
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602   (eval $ac_link) 2>conftest.er1
8603   ac_status=$?
8604   grep -v '^ *+' conftest.er1 >conftest.err
8605   rm -f conftest.er1
8606   cat conftest.err >&5
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611   (eval $ac_try) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; } &&
8615          { ac_try='test -s conftest$ac_exeext'
8616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617   (eval $ac_try) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   ac_cv_func_shl_load=yes
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626 ac_cv_func_shl_load=no
8627 fi
8628 rm -f conftest.err conftest.$ac_objext \
8629       conftest$ac_exeext conftest.$ac_ext
8630 fi
8631 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8632 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8633 if test $ac_cv_func_shl_load = yes; then
8634   lt_cv_dlopen="shl_load"
8635 else
8636   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8637 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8638 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641   ac_check_lib_save_LIBS=$LIBS
8642 LIBS="-ldld  $LIBS"
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649
8650 /* Override any gcc2 internal prototype to avoid an error.  */
8651 #ifdef __cplusplus
8652 extern "C"
8653 #endif
8654 /* We use char because int might match the return type of a gcc2
8655    builtin and then its argument prototype would still apply.  */
8656 char shl_load ();
8657 int
8658 main ()
8659 {
8660 shl_load ();
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667   (eval $ac_link) 2>conftest.er1
8668   ac_status=$?
8669   grep -v '^ *+' conftest.er1 >conftest.err
8670   rm -f conftest.er1
8671   cat conftest.err >&5
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); } &&
8674          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676   (eval $ac_try) 2>&5
8677   ac_status=$?
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); }; } &&
8680          { ac_try='test -s conftest$ac_exeext'
8681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682   (eval $ac_try) 2>&5
8683   ac_status=$?
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); }; }; then
8686   ac_cv_lib_dld_shl_load=yes
8687 else
8688   echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8690
8691 ac_cv_lib_dld_shl_load=no
8692 fi
8693 rm -f conftest.err conftest.$ac_objext \
8694       conftest$ac_exeext conftest.$ac_ext
8695 LIBS=$ac_check_lib_save_LIBS
8696 fi
8697 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8698 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8699 if test $ac_cv_lib_dld_shl_load = yes; then
8700   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8701 else
8702   echo "$as_me:$LINENO: checking for dlopen" >&5
8703 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8704 if test "${ac_cv_func_dlopen+set}" = set; then
8705   echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707   cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h.  */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h.  */
8713 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8715 #define dlopen innocuous_dlopen
8716
8717 /* System header to define __stub macros and hopefully few prototypes,
8718     which can conflict with char dlopen (); below.
8719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720     <limits.h> exists even on freestanding compilers.  */
8721
8722 #ifdef __STDC__
8723 # include <limits.h>
8724 #else
8725 # include <assert.h>
8726 #endif
8727
8728 #undef dlopen
8729
8730 /* Override any gcc2 internal prototype to avoid an error.  */
8731 #ifdef __cplusplus
8732 extern "C"
8733 {
8734 #endif
8735 /* We use char because int might match the return type of a gcc2
8736    builtin and then its argument prototype would still apply.  */
8737 char dlopen ();
8738 /* The GNU C library defines this for functions which it implements
8739     to always fail with ENOSYS.  Some functions are actually named
8740     something starting with __ and the normal name is an alias.  */
8741 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8742 choke me
8743 #else
8744 char (*f) () = dlopen;
8745 #endif
8746 #ifdef __cplusplus
8747 }
8748 #endif
8749
8750 int
8751 main ()
8752 {
8753 return f != dlopen;
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760   (eval $ac_link) 2>conftest.er1
8761   ac_status=$?
8762   grep -v '^ *+' conftest.er1 >conftest.err
8763   rm -f conftest.er1
8764   cat conftest.err >&5
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); } &&
8767          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769   (eval $ac_try) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); }; } &&
8773          { ac_try='test -s conftest$ac_exeext'
8774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775   (eval $ac_try) 2>&5
8776   ac_status=$?
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); }; }; then
8779   ac_cv_func_dlopen=yes
8780 else
8781   echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784 ac_cv_func_dlopen=no
8785 fi
8786 rm -f conftest.err conftest.$ac_objext \
8787       conftest$ac_exeext conftest.$ac_ext
8788 fi
8789 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8790 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8791 if test $ac_cv_func_dlopen = yes; then
8792   lt_cv_dlopen="dlopen"
8793 else
8794   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8795 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799   ac_check_lib_save_LIBS=$LIBS
8800 LIBS="-ldl  $LIBS"
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807
8808 /* Override any gcc2 internal prototype to avoid an error.  */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 /* We use char because int might match the return type of a gcc2
8813    builtin and then its argument prototype would still apply.  */
8814 char dlopen ();
8815 int
8816 main ()
8817 {
8818 dlopen ();
8819   ;
8820   return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825   (eval $ac_link) 2>conftest.er1
8826   ac_status=$?
8827   grep -v '^ *+' conftest.er1 >conftest.err
8828   rm -f conftest.er1
8829   cat conftest.err >&5
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); } &&
8832          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; } &&
8838          { ac_try='test -s conftest$ac_exeext'
8839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840   (eval $ac_try) 2>&5
8841   ac_status=$?
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); }; }; then
8844   ac_cv_lib_dl_dlopen=yes
8845 else
8846   echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8848
8849 ac_cv_lib_dl_dlopen=no
8850 fi
8851 rm -f conftest.err conftest.$ac_objext \
8852       conftest$ac_exeext conftest.$ac_ext
8853 LIBS=$ac_check_lib_save_LIBS
8854 fi
8855 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8856 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8857 if test $ac_cv_lib_dl_dlopen = yes; then
8858   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8859 else
8860   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8861 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8862 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8863   echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865   ac_check_lib_save_LIBS=$LIBS
8866 LIBS="-lsvld  $LIBS"
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h.  */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h.  */
8873
8874 /* Override any gcc2 internal prototype to avoid an error.  */
8875 #ifdef __cplusplus
8876 extern "C"
8877 #endif
8878 /* We use char because int might match the return type of a gcc2
8879    builtin and then its argument prototype would still apply.  */
8880 char dlopen ();
8881 int
8882 main ()
8883 {
8884 dlopen ();
8885   ;
8886   return 0;
8887 }
8888 _ACEOF
8889 rm -f conftest.$ac_objext conftest$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891   (eval $ac_link) 2>conftest.er1
8892   ac_status=$?
8893   grep -v '^ *+' conftest.er1 >conftest.err
8894   rm -f conftest.er1
8895   cat conftest.err >&5
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } &&
8898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900   (eval $ac_try) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; } &&
8904          { ac_try='test -s conftest$ac_exeext'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; }; then
8910   ac_cv_lib_svld_dlopen=yes
8911 else
8912   echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8914
8915 ac_cv_lib_svld_dlopen=no
8916 fi
8917 rm -f conftest.err conftest.$ac_objext \
8918       conftest$ac_exeext conftest.$ac_ext
8919 LIBS=$ac_check_lib_save_LIBS
8920 fi
8921 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8922 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8923 if test $ac_cv_lib_svld_dlopen = yes; then
8924   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8925 else
8926   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8927 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8928 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931   ac_check_lib_save_LIBS=$LIBS
8932 LIBS="-ldld  $LIBS"
8933 cat >conftest.$ac_ext <<_ACEOF
8934 /* confdefs.h.  */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h.  */
8939
8940 /* Override any gcc2 internal prototype to avoid an error.  */
8941 #ifdef __cplusplus
8942 extern "C"
8943 #endif
8944 /* We use char because int might match the return type of a gcc2
8945    builtin and then its argument prototype would still apply.  */
8946 char dld_link ();
8947 int
8948 main ()
8949 {
8950 dld_link ();
8951   ;
8952   return 0;
8953 }
8954 _ACEOF
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957   (eval $ac_link) 2>conftest.er1
8958   ac_status=$?
8959   grep -v '^ *+' conftest.er1 >conftest.err
8960   rm -f conftest.er1
8961   cat conftest.err >&5
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); } &&
8964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966   (eval $ac_try) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }; } &&
8970          { ac_try='test -s conftest$ac_exeext'
8971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972   (eval $ac_try) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); }; }; then
8976   ac_cv_lib_dld_dld_link=yes
8977 else
8978   echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 ac_cv_lib_dld_dld_link=no
8982 fi
8983 rm -f conftest.err conftest.$ac_objext \
8984       conftest$ac_exeext conftest.$ac_ext
8985 LIBS=$ac_check_lib_save_LIBS
8986 fi
8987 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8988 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8989 if test $ac_cv_lib_dld_dld_link = yes; then
8990   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8991 fi
8992
8993
8994 fi
8995
8996
8997 fi
8998
8999
9000 fi
9001
9002
9003 fi
9004
9005
9006 fi
9007
9008     ;;
9009   esac
9010
9011   if test "x$lt_cv_dlopen" != xno; then
9012     enable_dlopen=yes
9013   else
9014     enable_dlopen=no
9015   fi
9016
9017   case $lt_cv_dlopen in
9018   dlopen)
9019     save_CPPFLAGS="$CPPFLAGS"
9020     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9021
9022     save_LDFLAGS="$LDFLAGS"
9023     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9024
9025     save_LIBS="$LIBS"
9026     LIBS="$lt_cv_dlopen_libs $LIBS"
9027
9028     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9029 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9030 if test "${lt_cv_dlopen_self+set}" = set; then
9031   echo $ECHO_N "(cached) $ECHO_C" >&6
9032 else
9033           if test "$cross_compiling" = yes; then :
9034   lt_cv_dlopen_self=cross
9035 else
9036   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9037   lt_status=$lt_dlunknown
9038   cat > conftest.$ac_ext <<EOF
9039 #line 9039 "configure"
9040 #include "confdefs.h"
9041
9042 #if HAVE_DLFCN_H
9043 #include <dlfcn.h>
9044 #endif
9045
9046 #include <stdio.h>
9047
9048 #ifdef RTLD_GLOBAL
9049 #  define LT_DLGLOBAL           RTLD_GLOBAL
9050 #else
9051 #  ifdef DL_GLOBAL
9052 #    define LT_DLGLOBAL         DL_GLOBAL
9053 #  else
9054 #    define LT_DLGLOBAL         0
9055 #  endif
9056 #endif
9057
9058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9059    find out it does not work in some platform. */
9060 #ifndef LT_DLLAZY_OR_NOW
9061 #  ifdef RTLD_LAZY
9062 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9063 #  else
9064 #    ifdef DL_LAZY
9065 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9066 #    else
9067 #      ifdef RTLD_NOW
9068 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9069 #      else
9070 #        ifdef DL_NOW
9071 #          define LT_DLLAZY_OR_NOW      DL_NOW
9072 #        else
9073 #          define LT_DLLAZY_OR_NOW      0
9074 #        endif
9075 #      endif
9076 #    endif
9077 #  endif
9078 #endif
9079
9080 #ifdef __cplusplus
9081 extern "C" void exit (int);
9082 #endif
9083
9084 void fnord() { int i=42;}
9085 int main ()
9086 {
9087   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9088   int status = $lt_dlunknown;
9089
9090   if (self)
9091     {
9092       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9093       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9094       /* dlclose (self); */
9095     }
9096
9097     exit (status);
9098 }
9099 EOF
9100   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9101   (eval $ac_link) 2>&5
9102   ac_status=$?
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9105     (./conftest; exit; ) 2>/dev/null
9106     lt_status=$?
9107     case x$lt_status in
9108       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9109       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9110       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9111     esac
9112   else :
9113     # compilation failed
9114     lt_cv_dlopen_self=no
9115   fi
9116 fi
9117 rm -fr conftest*
9118
9119
9120 fi
9121 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9122 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9123
9124     if test "x$lt_cv_dlopen_self" = xyes; then
9125       LDFLAGS="$LDFLAGS $link_static_flag"
9126       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9127 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9128 if test "${lt_cv_dlopen_self_static+set}" = set; then
9129   echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131           if test "$cross_compiling" = yes; then :
9132   lt_cv_dlopen_self_static=cross
9133 else
9134   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9135   lt_status=$lt_dlunknown
9136   cat > conftest.$ac_ext <<EOF
9137 #line 9137 "configure"
9138 #include "confdefs.h"
9139
9140 #if HAVE_DLFCN_H
9141 #include <dlfcn.h>
9142 #endif
9143
9144 #include <stdio.h>
9145
9146 #ifdef RTLD_GLOBAL
9147 #  define LT_DLGLOBAL           RTLD_GLOBAL
9148 #else
9149 #  ifdef DL_GLOBAL
9150 #    define LT_DLGLOBAL         DL_GLOBAL
9151 #  else
9152 #    define LT_DLGLOBAL         0
9153 #  endif
9154 #endif
9155
9156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9157    find out it does not work in some platform. */
9158 #ifndef LT_DLLAZY_OR_NOW
9159 #  ifdef RTLD_LAZY
9160 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9161 #  else
9162 #    ifdef DL_LAZY
9163 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9164 #    else
9165 #      ifdef RTLD_NOW
9166 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9167 #      else
9168 #        ifdef DL_NOW
9169 #          define LT_DLLAZY_OR_NOW      DL_NOW
9170 #        else
9171 #          define LT_DLLAZY_OR_NOW      0
9172 #        endif
9173 #      endif
9174 #    endif
9175 #  endif
9176 #endif
9177
9178 #ifdef __cplusplus
9179 extern "C" void exit (int);
9180 #endif
9181
9182 void fnord() { int i=42;}
9183 int main ()
9184 {
9185   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9186   int status = $lt_dlunknown;
9187
9188   if (self)
9189     {
9190       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9191       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9192       /* dlclose (self); */
9193     }
9194
9195     exit (status);
9196 }
9197 EOF
9198   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199   (eval $ac_link) 2>&5
9200   ac_status=$?
9201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9203     (./conftest; exit; ) 2>/dev/null
9204     lt_status=$?
9205     case x$lt_status in
9206       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9207       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9208       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9209     esac
9210   else :
9211     # compilation failed
9212     lt_cv_dlopen_self_static=no
9213   fi
9214 fi
9215 rm -fr conftest*
9216
9217
9218 fi
9219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9220 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9221     fi
9222
9223     CPPFLAGS="$save_CPPFLAGS"
9224     LDFLAGS="$save_LDFLAGS"
9225     LIBS="$save_LIBS"
9226     ;;
9227   esac
9228
9229   case $lt_cv_dlopen_self in
9230   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9231   *) enable_dlopen_self=unknown ;;
9232   esac
9233
9234   case $lt_cv_dlopen_self_static in
9235   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9236   *) enable_dlopen_self_static=unknown ;;
9237   esac
9238 fi
9239
9240
9241 # Report which librarie types wil actually be built
9242 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9243 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9244 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9245 echo "${ECHO_T}$can_build_shared" >&6
9246
9247 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9248 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9249 test "$can_build_shared" = "no" && enable_shared=no
9250
9251 # On AIX, shared libraries and static libraries use the same namespace, and
9252 # are all built from PIC.
9253 case "$host_os" in
9254 aix3*)
9255   test "$enable_shared" = yes && enable_static=no
9256   if test -n "$RANLIB"; then
9257     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9258     postinstall_cmds='$RANLIB $lib'
9259   fi
9260   ;;
9261
9262 aix4* | aix5*)
9263   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9264     test "$enable_shared" = yes && enable_static=no
9265   fi
9266   ;;
9267   darwin* | rhapsody*)
9268   if test "$GCC" = yes; then
9269     archive_cmds_need_lc=no
9270     case "$host_os" in
9271     rhapsody* | darwin1.[012])
9272       allow_undefined_flag='-undefined suppress'
9273       ;;
9274     *) # Darwin 1.3 on
9275       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9276         allow_undefined_flag='-flat_namespace -undefined suppress'
9277       else
9278         case ${MACOSX_DEPLOYMENT_TARGET} in
9279           10.[012])
9280             allow_undefined_flag='-flat_namespace -undefined suppress'
9281             ;;
9282           10.*)
9283             allow_undefined_flag='-undefined dynamic_lookup'
9284             ;;
9285         esac
9286       fi
9287       ;;
9288     esac
9289     output_verbose_link_cmd='echo'
9290     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9291     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9292     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9293     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}'
9294     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9295     hardcode_direct=no
9296     hardcode_automatic=yes
9297     hardcode_shlibpath_var=unsupported
9298     whole_archive_flag_spec='-all_load $convenience'
9299     link_all_deplibs=yes
9300   else
9301     ld_shlibs=no
9302   fi
9303     ;;
9304 esac
9305 echo "$as_me:$LINENO: result: $enable_shared" >&5
9306 echo "${ECHO_T}$enable_shared" >&6
9307
9308 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9309 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9310 # Make sure either enable_shared or enable_static is yes.
9311 test "$enable_shared" = yes || enable_static=yes
9312 echo "$as_me:$LINENO: result: $enable_static" >&5
9313 echo "${ECHO_T}$enable_static" >&6
9314
9315 # The else clause should only fire when bootstrapping the
9316 # libtool distribution, otherwise you forgot to ship ltmain.sh
9317 # with your package, and you will get complaints that there are
9318 # no rules to generate ltmain.sh.
9319 if test -f "$ltmain"; then
9320   # See if we are running on zsh, and set the options which allow our commands through
9321   # without removal of \ escapes.
9322   if test -n "${ZSH_VERSION+set}" ; then
9323     setopt NO_GLOB_SUBST
9324   fi
9325   # Now quote all the things that may contain metacharacters while being
9326   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9327   # variables and quote the copies for generation of the libtool script.
9328   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9329     SED SHELL STRIP \
9330     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9331     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9332     deplibs_check_method reload_flag reload_cmds need_locks \
9333     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9334     lt_cv_sys_global_symbol_to_c_name_address \
9335     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9336     old_postinstall_cmds old_postuninstall_cmds \
9337     compiler \
9338     CC \
9339     LD \
9340     lt_prog_compiler_wl \
9341     lt_prog_compiler_pic \
9342     lt_prog_compiler_static \
9343     lt_prog_compiler_no_builtin_flag \
9344     export_dynamic_flag_spec \
9345     thread_safe_flag_spec \
9346     whole_archive_flag_spec \
9347     enable_shared_with_static_runtimes \
9348     old_archive_cmds \
9349     old_archive_from_new_cmds \
9350     predep_objects \
9351     postdep_objects \
9352     predeps \
9353     postdeps \
9354     compiler_lib_search_path \
9355     archive_cmds \
9356     archive_expsym_cmds \
9357     postinstall_cmds \
9358     postuninstall_cmds \
9359     old_archive_from_expsyms_cmds \
9360     allow_undefined_flag \
9361     no_undefined_flag \
9362     export_symbols_cmds \
9363     hardcode_libdir_flag_spec \
9364     hardcode_libdir_flag_spec_ld \
9365     hardcode_libdir_separator \
9366     hardcode_automatic \
9367     module_cmds \
9368     module_expsym_cmds \
9369     lt_cv_prog_compiler_c_o \
9370     exclude_expsyms \
9371     include_expsyms; do
9372
9373     case $var in
9374     old_archive_cmds | \
9375     old_archive_from_new_cmds | \
9376     archive_cmds | \
9377     archive_expsym_cmds | \
9378     module_cmds | \
9379     module_expsym_cmds | \
9380     old_archive_from_expsyms_cmds | \
9381     export_symbols_cmds | \
9382     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9383     postinstall_cmds | postuninstall_cmds | \
9384     old_postinstall_cmds | old_postuninstall_cmds | \
9385     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9386       # Double-quote double-evaled strings.
9387       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9388       ;;
9389     *)
9390       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9391       ;;
9392     esac
9393   done
9394
9395   case $lt_echo in
9396   *'\$0 --fallback-echo"')
9397     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9398     ;;
9399   esac
9400
9401 cfgfile="${ofile}T"
9402   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9403   $rm -f "$cfgfile"
9404   { echo "$as_me:$LINENO: creating $ofile" >&5
9405 echo "$as_me: creating $ofile" >&6;}
9406
9407   cat <<__EOF__ >> "$cfgfile"
9408 #! $SHELL
9409
9410 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9411 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9413 #
9414 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9415 # Free Software Foundation, Inc.
9416 #
9417 # This file is part of GNU Libtool:
9418 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9419 #
9420 # This program is free software; you can redistribute it and/or modify
9421 # it under the terms of the GNU General Public License as published by
9422 # the Free Software Foundation; either version 2 of the License, or
9423 # (at your option) any later version.
9424 #
9425 # This program is distributed in the hope that it will be useful, but
9426 # WITHOUT ANY WARRANTY; without even the implied warranty of
9427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9428 # General Public License for more details.
9429 #
9430 # You should have received a copy of the GNU General Public License
9431 # along with this program; if not, write to the Free Software
9432 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9433 #
9434 # As a special exception to the GNU General Public License, if you
9435 # distribute this file as part of a program that contains a
9436 # configuration script generated by Autoconf, you may include it under
9437 # the same distribution terms that you use for the rest of that program.
9438
9439 # A sed program that does not truncate output.
9440 SED=$lt_SED
9441
9442 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9443 Xsed="$SED -e s/^X//"
9444
9445 # The HP-UX ksh and POSIX shell print the target directory to stdout
9446 # if CDPATH is set.
9447 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9448
9449 # The names of the tagged configurations supported by this script.
9450 available_tags=
9451
9452 # ### BEGIN LIBTOOL CONFIG
9453
9454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9455
9456 # Shell to use when invoking shell scripts.
9457 SHELL=$lt_SHELL
9458
9459 # Whether or not to build shared libraries.
9460 build_libtool_libs=$enable_shared
9461
9462 # Whether or not to build static libraries.
9463 build_old_libs=$enable_static
9464
9465 # Whether or not to add -lc for building shared libraries.
9466 build_libtool_need_lc=$archive_cmds_need_lc
9467
9468 # Whether or not to disallow shared libs when runtime libs are static
9469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9470
9471 # Whether or not to optimize for fast installation.
9472 fast_install=$enable_fast_install
9473
9474 # The host system.
9475 host_alias=$host_alias
9476 host=$host
9477
9478 # An echo program that does not interpret backslashes.
9479 echo=$lt_echo
9480
9481 # The archiver.
9482 AR=$lt_AR
9483 AR_FLAGS=$lt_AR_FLAGS
9484
9485 # A C compiler.
9486 LTCC=$lt_LTCC
9487
9488 # A language-specific compiler.
9489 CC=$lt_compiler
9490
9491 # Is the compiler the GNU C compiler?
9492 with_gcc=$GCC
9493
9494 # An ERE matcher.
9495 EGREP=$lt_EGREP
9496
9497 # The linker used to build libraries.
9498 LD=$lt_LD
9499
9500 # Whether we need hard or soft links.
9501 LN_S=$lt_LN_S
9502
9503 # A BSD-compatible nm program.
9504 NM=$lt_NM
9505
9506 # A symbol stripping program
9507 STRIP=$lt_STRIP
9508
9509 # Used to examine libraries when file_magic_cmd begins "file"
9510 MAGIC_CMD=$MAGIC_CMD
9511
9512 # Used on cygwin: DLL creation program.
9513 DLLTOOL="$DLLTOOL"
9514
9515 # Used on cygwin: object dumper.
9516 OBJDUMP="$OBJDUMP"
9517
9518 # Used on cygwin: assembler.
9519 AS="$AS"
9520
9521 # The name of the directory that contains temporary libtool files.
9522 objdir=$objdir
9523
9524 # How to create reloadable object files.
9525 reload_flag=$lt_reload_flag
9526 reload_cmds=$lt_reload_cmds
9527
9528 # How to pass a linker flag through the compiler.
9529 wl=$lt_lt_prog_compiler_wl
9530
9531 # Object file suffix (normally "o").
9532 objext="$ac_objext"
9533
9534 # Old archive suffix (normally "a").
9535 libext="$libext"
9536
9537 # Shared library suffix (normally ".so").
9538 shrext_cmds='$shrext_cmds'
9539
9540 # Executable file suffix (normally "").
9541 exeext="$exeext"
9542
9543 # Additional compiler flags for building library objects.
9544 pic_flag=$lt_lt_prog_compiler_pic
9545 pic_mode=$pic_mode
9546
9547 # What is the maximum length of a command?
9548 max_cmd_len=$lt_cv_sys_max_cmd_len
9549
9550 # Does compiler simultaneously support -c and -o options?
9551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9552
9553 # Must we lock files when doing compilation ?
9554 need_locks=$lt_need_locks
9555
9556 # Do we need the lib prefix for modules?
9557 need_lib_prefix=$need_lib_prefix
9558
9559 # Do we need a version for libraries?
9560 need_version=$need_version
9561
9562 # Whether dlopen is supported.
9563 dlopen_support=$enable_dlopen
9564
9565 # Whether dlopen of programs is supported.
9566 dlopen_self=$enable_dlopen_self
9567
9568 # Whether dlopen of statically linked programs is supported.
9569 dlopen_self_static=$enable_dlopen_self_static
9570
9571 # Compiler flag to prevent dynamic linking.
9572 link_static_flag=$lt_lt_prog_compiler_static
9573
9574 # Compiler flag to turn off builtin functions.
9575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9576
9577 # Compiler flag to allow reflexive dlopens.
9578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9579
9580 # Compiler flag to generate shared objects directly from archives.
9581 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9582
9583 # Compiler flag to generate thread-safe objects.
9584 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9585
9586 # Library versioning type.
9587 version_type=$version_type
9588
9589 # Format of library name prefix.
9590 libname_spec=$lt_libname_spec
9591
9592 # List of archive names.  First name is the real one, the rest are links.
9593 # The last name is the one that the linker finds with -lNAME.
9594 library_names_spec=$lt_library_names_spec
9595
9596 # The coded name of the library, if different from the real name.
9597 soname_spec=$lt_soname_spec
9598
9599 # Commands used to build and install an old-style archive.
9600 RANLIB=$lt_RANLIB
9601 old_archive_cmds=$lt_old_archive_cmds
9602 old_postinstall_cmds=$lt_old_postinstall_cmds
9603 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9604
9605 # Create an old-style archive from a shared archive.
9606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9607
9608 # Create a temporary old-style archive to link instead of a shared archive.
9609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9610
9611 # Commands used to build and install a shared archive.
9612 archive_cmds=$lt_archive_cmds
9613 archive_expsym_cmds=$lt_archive_expsym_cmds
9614 postinstall_cmds=$lt_postinstall_cmds
9615 postuninstall_cmds=$lt_postuninstall_cmds
9616
9617 # Commands used to build a loadable module (assumed same as above if empty)
9618 module_cmds=$lt_module_cmds
9619 module_expsym_cmds=$lt_module_expsym_cmds
9620
9621 # Commands to strip libraries.
9622 old_striplib=$lt_old_striplib
9623 striplib=$lt_striplib
9624
9625 # Dependencies to place before the objects being linked to create a
9626 # shared library.
9627 predep_objects=$lt_predep_objects
9628
9629 # Dependencies to place after the objects being linked to create a
9630 # shared library.
9631 postdep_objects=$lt_postdep_objects
9632
9633 # Dependencies to place before the objects being linked to create a
9634 # shared library.
9635 predeps=$lt_predeps
9636
9637 # Dependencies to place after the objects being linked to create a
9638 # shared library.
9639 postdeps=$lt_postdeps
9640
9641 # The library search path used internally by the compiler when linking
9642 # a shared library.
9643 compiler_lib_search_path=$lt_compiler_lib_search_path
9644
9645 # Method to check whether dependent libraries are shared objects.
9646 deplibs_check_method=$lt_deplibs_check_method
9647
9648 # Command to use when deplibs_check_method == file_magic.
9649 file_magic_cmd=$lt_file_magic_cmd
9650
9651 # Flag that allows shared libraries with undefined symbols to be built.
9652 allow_undefined_flag=$lt_allow_undefined_flag
9653
9654 # Flag that forces no undefined symbols.
9655 no_undefined_flag=$lt_no_undefined_flag
9656
9657 # Commands used to finish a libtool library installation in a directory.
9658 finish_cmds=$lt_finish_cmds
9659
9660 # Same as above, but a single script fragment to be evaled but not shown.
9661 finish_eval=$lt_finish_eval
9662
9663 # Take the output of nm and produce a listing of raw symbols and C names.
9664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9665
9666 # Transform the output of nm in a proper C declaration
9667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9668
9669 # Transform the output of nm in a C name address pair
9670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9671
9672 # This is the shared library runtime path variable.
9673 runpath_var=$runpath_var
9674
9675 # This is the shared library path variable.
9676 shlibpath_var=$shlibpath_var
9677
9678 # Is shlibpath searched before the hard-coded library search path?
9679 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9680
9681 # How to hardcode a shared library path into an executable.
9682 hardcode_action=$hardcode_action
9683
9684 # Whether we should hardcode library paths into libraries.
9685 hardcode_into_libs=$hardcode_into_libs
9686
9687 # Flag to hardcode \$libdir into a binary during linking.
9688 # This must work even if \$libdir does not exist.
9689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9690
9691 # If ld is used when linking, flag to hardcode \$libdir into
9692 # a binary during linking. This must work even if \$libdir does
9693 # not exist.
9694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9695
9696 # Whether we need a single -rpath flag with a separated argument.
9697 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9698
9699 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9700 # resulting binary.
9701 hardcode_direct=$hardcode_direct
9702
9703 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9704 # resulting binary.
9705 hardcode_minus_L=$hardcode_minus_L
9706
9707 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9708 # the resulting binary.
9709 hardcode_shlibpath_var=$hardcode_shlibpath_var
9710
9711 # Set to yes if building a shared library automatically hardcodes DIR into the library
9712 # and all subsequent libraries and executables linked against it.
9713 hardcode_automatic=$hardcode_automatic
9714
9715 # Variables whose values should be saved in libtool wrapper scripts and
9716 # restored at relink time.
9717 variables_saved_for_relink="$variables_saved_for_relink"
9718
9719 # Whether libtool must link a program against all its dependency libraries.
9720 link_all_deplibs=$link_all_deplibs
9721
9722 # Compile-time system search path for libraries
9723 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9724
9725 # Run-time system search path for libraries
9726 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9727
9728 # Fix the shell variable \$srcfile for the compiler.
9729 fix_srcfile_path="$fix_srcfile_path"
9730
9731 # Set to yes if exported symbols are required.
9732 always_export_symbols=$always_export_symbols
9733
9734 # The commands to list exported symbols.
9735 export_symbols_cmds=$lt_export_symbols_cmds
9736
9737 # The commands to extract the exported symbol list from a shared archive.
9738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9739
9740 # Symbols that should not be listed in the preloaded symbols.
9741 exclude_expsyms=$lt_exclude_expsyms
9742
9743 # Symbols that must always be exported.
9744 include_expsyms=$lt_include_expsyms
9745
9746 # ### END LIBTOOL CONFIG
9747
9748 __EOF__
9749
9750
9751   case $host_os in
9752   aix3*)
9753     cat <<\EOF >> "$cfgfile"
9754
9755 # AIX sometimes has problems with the GCC collect2 program.  For some
9756 # reason, if we set the COLLECT_NAMES environment variable, the problems
9757 # vanish in a puff of smoke.
9758 if test "X${COLLECT_NAMES+set}" != Xset; then
9759   COLLECT_NAMES=
9760   export COLLECT_NAMES
9761 fi
9762 EOF
9763     ;;
9764   esac
9765
9766   # We use sed instead of cat because bash on DJGPP gets confused if
9767   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9768   # text mode, it properly converts lines to CR/LF.  This bash problem
9769   # is reportedly fixed, but why not run on old versions too?
9770   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9771
9772   mv -f "$cfgfile" "$ofile" || \
9773     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9774   chmod +x "$ofile"
9775
9776 else
9777   # If there is no Makefile yet, we rely on a make rule to execute
9778   # `config.status --recheck' to rerun these tests and create the
9779   # libtool script then.
9780   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9781   if test -f "$ltmain_in"; then
9782     test -f Makefile && make "$ltmain"
9783   fi
9784 fi
9785
9786
9787 ac_ext=c
9788 ac_cpp='$CPP $CPPFLAGS'
9789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9792
9793 CC="$lt_save_CC"
9794
9795
9796 # Check whether --with-tags or --without-tags was given.
9797 if test "${with_tags+set}" = set; then
9798   withval="$with_tags"
9799   tagnames="$withval"
9800 fi;
9801
9802 if test -f "$ltmain" && test -n "$tagnames"; then
9803   if test ! -f "${ofile}"; then
9804     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9805 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9806   fi
9807
9808   if test -z "$LTCC"; then
9809     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9810     if test -z "$LTCC"; then
9811       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9812 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9813     else
9814       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9815 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9816     fi
9817   fi
9818
9819   # Extract list of available tagged configurations in $ofile.
9820   # Note that this assumes the entire list is on one line.
9821   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9822
9823   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9824   for tagname in $tagnames; do
9825     IFS="$lt_save_ifs"
9826     # Check whether tagname contains only valid characters
9827     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9828     "") ;;
9829     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9830 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9831    { (exit 1); exit 1; }; }
9832         ;;
9833     esac
9834
9835     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9836     then
9837       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9838 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9839    { (exit 1); exit 1; }; }
9840     fi
9841
9842     # Update the list of available tags.
9843     if test -n "$tagname"; then
9844       echo appending configuration tag \"$tagname\" to $ofile
9845
9846       case $tagname in
9847       CXX)
9848         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9849           ac_ext=cc
9850 ac_cpp='$CXXCPP $CPPFLAGS'
9851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9854
9855
9856
9857
9858 archive_cmds_need_lc_CXX=no
9859 allow_undefined_flag_CXX=
9860 always_export_symbols_CXX=no
9861 archive_expsym_cmds_CXX=
9862 export_dynamic_flag_spec_CXX=
9863 hardcode_direct_CXX=no
9864 hardcode_libdir_flag_spec_CXX=
9865 hardcode_libdir_flag_spec_ld_CXX=
9866 hardcode_libdir_separator_CXX=
9867 hardcode_minus_L_CXX=no
9868 hardcode_automatic_CXX=no
9869 module_cmds_CXX=
9870 module_expsym_cmds_CXX=
9871 link_all_deplibs_CXX=unknown
9872 old_archive_cmds_CXX=$old_archive_cmds
9873 no_undefined_flag_CXX=
9874 whole_archive_flag_spec_CXX=
9875 enable_shared_with_static_runtimes_CXX=no
9876
9877 # Dependencies to place before and after the object being linked:
9878 predep_objects_CXX=
9879 postdep_objects_CXX=
9880 predeps_CXX=
9881 postdeps_CXX=
9882 compiler_lib_search_path_CXX=
9883
9884 # Source file extension for C++ test sources.
9885 ac_ext=cc
9886
9887 # Object file extension for compiled C++ test sources.
9888 objext=o
9889 objext_CXX=$objext
9890
9891 # Code to be used in simple compile tests
9892 lt_simple_compile_test_code="int some_variable = 0;\n"
9893
9894 # Code to be used in simple link tests
9895 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9896
9897 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9898
9899 # If no C compiler was specified, use CC.
9900 LTCC=${LTCC-"$CC"}
9901
9902 # Allow CC to be a program name with arguments.
9903 compiler=$CC
9904
9905
9906 # Allow CC to be a program name with arguments.
9907 lt_save_CC=$CC
9908 lt_save_LD=$LD
9909 lt_save_GCC=$GCC
9910 GCC=$GXX
9911 lt_save_with_gnu_ld=$with_gnu_ld
9912 lt_save_path_LD=$lt_cv_path_LD
9913 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9914   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9915 else
9916   unset lt_cv_prog_gnu_ld
9917 fi
9918 if test -n "${lt_cv_path_LDCXX+set}"; then
9919   lt_cv_path_LD=$lt_cv_path_LDCXX
9920 else
9921   unset lt_cv_path_LD
9922 fi
9923 test -z "${LDCXX+set}" || LD=$LDCXX
9924 CC=${CXX-"c++"}
9925 compiler=$CC
9926 compiler_CXX=$CC
9927 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9928
9929 # We don't want -fno-exception wen compiling C++ code, so set the
9930 # no_builtin_flag separately
9931 if test "$GXX" = yes; then
9932   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9933 else
9934   lt_prog_compiler_no_builtin_flag_CXX=
9935 fi
9936
9937 if test "$GXX" = yes; then
9938   # Set up default GNU C++ configuration
9939
9940
9941 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9942 if test "${with_gnu_ld+set}" = set; then
9943   withval="$with_gnu_ld"
9944   test "$withval" = no || with_gnu_ld=yes
9945 else
9946   with_gnu_ld=no
9947 fi;
9948 ac_prog=ld
9949 if test "$GCC" = yes; then
9950   # Check if gcc -print-prog-name=ld gives a path.
9951   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9952 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9953   case $host in
9954   *-*-mingw*)
9955     # gcc leaves a trailing carriage return which upsets mingw
9956     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9957   *)
9958     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9959   esac
9960   case $ac_prog in
9961     # Accept absolute paths.
9962     [\\/]* | ?:[\\/]*)
9963       re_direlt='/[^/][^/]*/\.\./'
9964       # Canonicalize the pathname of ld
9965       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9966       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9967         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9968       done
9969       test -z "$LD" && LD="$ac_prog"
9970       ;;
9971   "")
9972     # If it fails, then pretend we aren't using GCC.
9973     ac_prog=ld
9974     ;;
9975   *)
9976     # If it is relative, then search for the first ld in PATH.
9977     with_gnu_ld=unknown
9978     ;;
9979   esac
9980 elif test "$with_gnu_ld" = yes; then
9981   echo "$as_me:$LINENO: checking for GNU ld" >&5
9982 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9983 else
9984   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9985 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9986 fi
9987 if test "${lt_cv_path_LD+set}" = set; then
9988   echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990   if test -z "$LD"; then
9991   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9992   for ac_dir in $PATH; do
9993     IFS="$lt_save_ifs"
9994     test -z "$ac_dir" && ac_dir=.
9995     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9996       lt_cv_path_LD="$ac_dir/$ac_prog"
9997       # Check to see if the program is GNU ld.  I'd rather use --version,
9998       # but apparently some GNU ld's only accept -v.
9999       # Break only if it was the GNU/non-GNU ld that we prefer.
10000       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10001       *GNU* | *'with BFD'*)
10002         test "$with_gnu_ld" != no && break
10003         ;;
10004       *)
10005         test "$with_gnu_ld" != yes && break
10006         ;;
10007       esac
10008     fi
10009   done
10010   IFS="$lt_save_ifs"
10011 else
10012   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10013 fi
10014 fi
10015
10016 LD="$lt_cv_path_LD"
10017 if test -n "$LD"; then
10018   echo "$as_me:$LINENO: result: $LD" >&5
10019 echo "${ECHO_T}$LD" >&6
10020 else
10021   echo "$as_me:$LINENO: result: no" >&5
10022 echo "${ECHO_T}no" >&6
10023 fi
10024 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10025 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10026    { (exit 1); exit 1; }; }
10027 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10028 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10029 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10030   echo $ECHO_N "(cached) $ECHO_C" >&6
10031 else
10032   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10033 case `$LD -v 2>&1 </dev/null` in
10034 *GNU* | *'with BFD'*)
10035   lt_cv_prog_gnu_ld=yes
10036   ;;
10037 *)
10038   lt_cv_prog_gnu_ld=no
10039   ;;
10040 esac
10041 fi
10042 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10043 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10044 with_gnu_ld=$lt_cv_prog_gnu_ld
10045
10046
10047
10048   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10049   # archiving commands below assume that GNU ld is being used.
10050   if test "$with_gnu_ld" = yes; then
10051     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052     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'
10053
10054     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10055     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10056
10057     # If archive_cmds runs LD, not CC, wlarc should be empty
10058     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10059     #     investigate it a little bit more. (MM)
10060     wlarc='${wl}'
10061
10062     # ancient GNU ld didn't support --whole-archive et. al.
10063     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10064         grep 'no-whole-archive' > /dev/null; then
10065       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10066     else
10067       whole_archive_flag_spec_CXX=
10068     fi
10069   else
10070     with_gnu_ld=no
10071     wlarc=
10072
10073     # A generic and very simple default shared library creation
10074     # command for GNU C++ for the case where it uses the native
10075     # linker, instead of GNU ld.  If possible, this setting should
10076     # overridden to take advantage of the native linker features on
10077     # the platform it is being used on.
10078     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10079   fi
10080
10081   # Commands to make compiler produce verbose output that lists
10082   # what "hidden" libraries, object files and flags are used when
10083   # linking a shared library.
10084   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10085
10086 else
10087   GXX=no
10088   with_gnu_ld=no
10089   wlarc=
10090 fi
10091
10092 # PORTME: fill in a description of your system's C++ link characteristics
10093 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10094 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10095 ld_shlibs_CXX=yes
10096 case $host_os in
10097   aix3*)
10098     # FIXME: insert proper C++ library support
10099     ld_shlibs_CXX=no
10100     ;;
10101   aix4* | aix5*)
10102     if test "$host_cpu" = ia64; then
10103       # On IA64, the linker does run time linking by default, so we don't
10104       # have to do anything special.
10105       aix_use_runtimelinking=no
10106       exp_sym_flag='-Bexport'
10107       no_entry_flag=""
10108     else
10109       aix_use_runtimelinking=no
10110
10111       # Test if we are trying to use run time linking or normal
10112       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10113       # need to do runtime linking.
10114       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10115         for ld_flag in $LDFLAGS; do
10116           case $ld_flag in
10117           *-brtl*)
10118             aix_use_runtimelinking=yes
10119             break
10120             ;;
10121           esac
10122         done
10123       esac
10124
10125       exp_sym_flag='-bexport'
10126       no_entry_flag='-bnoentry'
10127     fi
10128
10129     # When large executables or shared objects are built, AIX ld can
10130     # have problems creating the table of contents.  If linking a library
10131     # or program results in "error TOC overflow" add -mminimal-toc to
10132     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10133     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10134
10135     archive_cmds_CXX=''
10136     hardcode_direct_CXX=yes
10137     hardcode_libdir_separator_CXX=':'
10138     link_all_deplibs_CXX=yes
10139
10140     if test "$GXX" = yes; then
10141       case $host_os in aix4.012|aix4.012.*)
10142       # We only want to do this on AIX 4.2 and lower, the check
10143       # below for broken collect2 doesn't work under 4.3+
10144         collect2name=`${CC} -print-prog-name=collect2`
10145         if test -f "$collect2name" && \
10146            strings "$collect2name" | grep resolve_lib_name >/dev/null
10147         then
10148           # We have reworked collect2
10149           hardcode_direct_CXX=yes
10150         else
10151           # We have old collect2
10152           hardcode_direct_CXX=unsupported
10153           # It fails to find uninstalled libraries when the uninstalled
10154           # path is not listed in the libpath.  Setting hardcode_minus_L
10155           # to unsupported forces relinking
10156           hardcode_minus_L_CXX=yes
10157           hardcode_libdir_flag_spec_CXX='-L$libdir'
10158           hardcode_libdir_separator_CXX=
10159         fi
10160       esac
10161       shared_flag='-shared'
10162     else
10163       # not using gcc
10164       if test "$host_cpu" = ia64; then
10165         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10166         # chokes on -Wl,-G. The following line is correct:
10167         shared_flag='-G'
10168       else
10169         if test "$aix_use_runtimelinking" = yes; then
10170           shared_flag='${wl}-G'
10171         else
10172           shared_flag='${wl}-bM:SRE'
10173         fi
10174       fi
10175     fi
10176
10177     # It seems that -bexpall does not export symbols beginning with
10178     # underscore (_), so it is better to generate a list of symbols to export.
10179     always_export_symbols_CXX=yes
10180     if test "$aix_use_runtimelinking" = yes; then
10181       # Warning - without using the other runtime loading flags (-brtl),
10182       # -berok will link without error, but may produce a broken library.
10183       allow_undefined_flag_CXX='-berok'
10184       # Determine the default libpath from the value encoded in an empty executable.
10185       cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h.  */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h.  */
10191
10192 int
10193 main ()
10194 {
10195
10196   ;
10197   return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202   (eval $ac_link) 2>conftest.er1
10203   ac_status=$?
10204   grep -v '^ *+' conftest.er1 >conftest.err
10205   rm -f conftest.er1
10206   cat conftest.err >&5
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); } &&
10209          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211   (eval $ac_try) 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; } &&
10215          { ac_try='test -s conftest$ac_exeext'
10216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217   (eval $ac_try) 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); }; }; then
10221
10222 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10223 }'`
10224 # Check for a 64-bit object if we didn't find anything.
10225 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; }
10226 }'`; fi
10227 else
10228   echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 fi
10232 rm -f conftest.err conftest.$ac_objext \
10233       conftest$ac_exeext conftest.$ac_ext
10234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10235
10236       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10237
10238       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"
10239      else
10240       if test "$host_cpu" = ia64; then
10241         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10242         allow_undefined_flag_CXX="-z nodefs"
10243         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"
10244       else
10245         # Determine the default libpath from the value encoded in an empty executable.
10246         cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252
10253 int
10254 main ()
10255 {
10256
10257   ;
10258   return 0;
10259 }
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263   (eval $ac_link) 2>conftest.er1
10264   ac_status=$?
10265   grep -v '^ *+' conftest.er1 >conftest.err
10266   rm -f conftest.er1
10267   cat conftest.err >&5
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); } &&
10270          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272   (eval $ac_try) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); }; } &&
10276          { ac_try='test -s conftest$ac_exeext'
10277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278   (eval $ac_try) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; }; then
10282
10283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10284 }'`
10285 # Check for a 64-bit object if we didn't find anything.
10286 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; }
10287 }'`; fi
10288 else
10289   echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10291
10292 fi
10293 rm -f conftest.err conftest.$ac_objext \
10294       conftest$ac_exeext conftest.$ac_ext
10295 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10296
10297         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10298         # Warning - without using the other run time loading flags,
10299         # -berok will link without error, but may produce a broken library.
10300         no_undefined_flag_CXX=' ${wl}-bernotok'
10301         allow_undefined_flag_CXX=' ${wl}-berok'
10302         # -bexpall does not export symbols beginning with underscore (_)
10303         always_export_symbols_CXX=yes
10304         # Exported symbols can be pulled into shared objects from archives
10305         whole_archive_flag_spec_CXX=' '
10306         archive_cmds_need_lc_CXX=yes
10307         # This is similar to how AIX traditionally builds it's shared libraries.
10308         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'
10309       fi
10310     fi
10311     ;;
10312   chorus*)
10313     case $cc_basename in
10314       *)
10315         # FIXME: insert proper C++ library support
10316         ld_shlibs_CXX=no
10317         ;;
10318     esac
10319     ;;
10320
10321   cygwin* | mingw* | pw32*)
10322     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10323     # as there is no search path for DLLs.
10324     hardcode_libdir_flag_spec_CXX='-L$libdir'
10325     allow_undefined_flag_CXX=unsupported
10326     always_export_symbols_CXX=no
10327     enable_shared_with_static_runtimes_CXX=yes
10328
10329     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10330       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'
10331       # If the export-symbols file already is a .def file (1st line
10332       # is EXPORTS), use it as is; otherwise, prepend...
10333       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10334         cp $export_symbols $output_objdir/$soname.def;
10335       else
10336         echo EXPORTS > $output_objdir/$soname.def;
10337         cat $export_symbols >> $output_objdir/$soname.def;
10338       fi~
10339       $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'
10340     else
10341       ld_shlibs_CXX=no
10342     fi
10343   ;;
10344
10345   darwin* | rhapsody*)
10346   if test "$GXX" = yes; then
10347     archive_cmds_need_lc_CXX=no
10348     case "$host_os" in
10349     rhapsody* | darwin1.[012])
10350       allow_undefined_flag_CXX='-undefined suppress'
10351       ;;
10352     *) # Darwin 1.3 on
10353       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10354         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10355       else
10356         case ${MACOSX_DEPLOYMENT_TARGET} in
10357           10.[012])
10358             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10359             ;;
10360           10.*)
10361             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10362             ;;
10363         esac
10364       fi
10365       ;;
10366     esac
10367     lt_int_apple_cc_single_mod=no
10368     output_verbose_link_cmd='echo'
10369     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10370       lt_int_apple_cc_single_mod=yes
10371     fi
10372     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10373       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10374     else
10375       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'
10376     fi
10377     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10378
10379     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10380     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10381       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}'
10382     else
10383       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}'
10384     fi
10385     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10386     hardcode_direct_CXX=no
10387     hardcode_automatic_CXX=yes
10388     hardcode_shlibpath_var_CXX=unsupported
10389     whole_archive_flag_spec_CXX='-all_load $convenience'
10390     link_all_deplibs_CXX=yes
10391   else
10392     ld_shlibs_CXX=no
10393   fi
10394     ;;
10395
10396   dgux*)
10397     case $cc_basename in
10398       ec++)
10399         # FIXME: insert proper C++ library support
10400         ld_shlibs_CXX=no
10401         ;;
10402       ghcx)
10403         # Green Hills C++ Compiler
10404         # FIXME: insert proper C++ library support
10405         ld_shlibs_CXX=no
10406         ;;
10407       *)
10408         # FIXME: insert proper C++ library support
10409         ld_shlibs_CXX=no
10410         ;;
10411     esac
10412     ;;
10413   freebsd12*)
10414     # C++ shared libraries reported to be fairly broken before switch to ELF
10415     ld_shlibs_CXX=no
10416     ;;
10417   freebsd-elf*)
10418     archive_cmds_need_lc_CXX=no
10419     ;;
10420   freebsd* | kfreebsd*-gnu)
10421     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10422     # conventions
10423     ld_shlibs_CXX=yes
10424     ;;
10425   gnu*)
10426     ;;
10427   hpux9*)
10428     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10429     hardcode_libdir_separator_CXX=:
10430     export_dynamic_flag_spec_CXX='${wl}-E'
10431     hardcode_direct_CXX=yes
10432     hardcode_minus_L_CXX=yes # Not in the search PATH,
10433                                 # but as the default
10434                                 # location of the library.
10435
10436     case $cc_basename in
10437     CC)
10438       # FIXME: insert proper C++ library support
10439       ld_shlibs_CXX=no
10440       ;;
10441     aCC)
10442       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'
10443       # Commands to make compiler produce verbose output that lists
10444       # what "hidden" libraries, object files and flags are used when
10445       # linking a shared library.
10446       #
10447       # There doesn't appear to be a way to prevent this compiler from
10448       # explicitly linking system object files so we need to strip them
10449       # from the output so that they don't get included in the library
10450       # dependencies.
10451       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'
10452       ;;
10453     *)
10454       if test "$GXX" = yes; then
10455         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'
10456       else
10457         # FIXME: insert proper C++ library support
10458         ld_shlibs_CXX=no
10459       fi
10460       ;;
10461     esac
10462     ;;
10463   hpux10*|hpux11*)
10464     if test $with_gnu_ld = no; then
10465       case "$host_cpu" in
10466       hppa*64*)
10467         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10468         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10469         hardcode_libdir_separator_CXX=:
10470         ;;
10471       ia64*)
10472         hardcode_libdir_flag_spec_CXX='-L$libdir'
10473         ;;
10474       *)
10475         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10476         hardcode_libdir_separator_CXX=:
10477         export_dynamic_flag_spec_CXX='${wl}-E'
10478         ;;
10479       esac
10480     fi
10481     case "$host_cpu" in
10482     hppa*64*)
10483       hardcode_direct_CXX=no
10484       hardcode_shlibpath_var_CXX=no
10485       ;;
10486     ia64*)
10487       hardcode_direct_CXX=no
10488       hardcode_shlibpath_var_CXX=no
10489       hardcode_minus_L_CXX=yes # Not in the search PATH,
10490                                               # but as the default
10491                                               # location of the library.
10492       ;;
10493     *)
10494       hardcode_direct_CXX=yes
10495       hardcode_minus_L_CXX=yes # Not in the search PATH,
10496                                               # but as the default
10497                                               # location of the library.
10498       ;;
10499     esac
10500
10501     case $cc_basename in
10502       CC)
10503         # FIXME: insert proper C++ library support
10504         ld_shlibs_CXX=no
10505         ;;
10506       aCC)
10507         case "$host_cpu" in
10508         hppa*64*|ia64*)
10509           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10510           ;;
10511         *)
10512           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10513           ;;
10514         esac
10515         # Commands to make compiler produce verbose output that lists
10516         # what "hidden" libraries, object files and flags are used when
10517         # linking a shared library.
10518         #
10519         # There doesn't appear to be a way to prevent this compiler from
10520         # explicitly linking system object files so we need to strip them
10521         # from the output so that they don't get included in the library
10522         # dependencies.
10523         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'
10524         ;;
10525       *)
10526         if test "$GXX" = yes; then
10527           if test $with_gnu_ld = no; then
10528             case "$host_cpu" in
10529             ia64*|hppa*64*)
10530               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10531               ;;
10532             *)
10533               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'
10534               ;;
10535             esac
10536           fi
10537         else
10538           # FIXME: insert proper C++ library support
10539           ld_shlibs_CXX=no
10540         fi
10541         ;;
10542     esac
10543     ;;
10544   irix5* | irix6*)
10545     case $cc_basename in
10546       CC)
10547         # SGI C++
10548         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'
10549
10550         # Archives containing C++ object files must be created using
10551         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10552         # necessary to make sure instantiated templates are included
10553         # in the archive.
10554         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10555         ;;
10556       *)
10557         if test "$GXX" = yes; then
10558           if test "$with_gnu_ld" = no; then
10559             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'
10560           else
10561             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'
10562           fi
10563         fi
10564         link_all_deplibs_CXX=yes
10565         ;;
10566     esac
10567     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10568     hardcode_libdir_separator_CXX=:
10569     ;;
10570   linux*)
10571     case $cc_basename in
10572       KCC)
10573         # Kuck and Associates, Inc. (KAI) C++ Compiler
10574
10575         # KCC will only create a shared library if the output file
10576         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10577         # to its proper name (with version) after linking.
10578         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'
10579         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'
10580         # Commands to make compiler produce verbose output that lists
10581         # what "hidden" libraries, object files and flags are used when
10582         # linking a shared library.
10583         #
10584         # There doesn't appear to be a way to prevent this compiler from
10585         # explicitly linking system object files so we need to strip them
10586         # from the output so that they don't get included in the library
10587         # dependencies.
10588         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'
10589
10590         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10591         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10592
10593         # Archives containing C++ object files must be created using
10594         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10595         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10596         ;;
10597       icpc)
10598         # Intel C++
10599         with_gnu_ld=yes
10600         archive_cmds_need_lc_CXX=no
10601         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10602         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'
10603         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10604         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10605         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10606         ;;
10607       cxx)
10608         # Compaq C++
10609         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10610         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'
10611
10612         runpath_var=LD_RUN_PATH
10613         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10614         hardcode_libdir_separator_CXX=:
10615
10616         # Commands to make compiler produce verbose output that lists
10617         # what "hidden" libraries, object files and flags are used when
10618         # linking a shared library.
10619         #
10620         # There doesn't appear to be a way to prevent this compiler from
10621         # explicitly linking system object files so we need to strip them
10622         # from the output so that they don't get included in the library
10623         # dependencies.
10624         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'
10625         ;;
10626     esac
10627     ;;
10628   lynxos*)
10629     # FIXME: insert proper C++ library support
10630     ld_shlibs_CXX=no
10631     ;;
10632   m88k*)
10633     # FIXME: insert proper C++ library support
10634     ld_shlibs_CXX=no
10635     ;;
10636   mvs*)
10637     case $cc_basename in
10638       cxx)
10639         # FIXME: insert proper C++ library support
10640         ld_shlibs_CXX=no
10641         ;;
10642       *)
10643         # FIXME: insert proper C++ library support
10644         ld_shlibs_CXX=no
10645         ;;
10646     esac
10647     ;;
10648   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10649     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10650       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10651       wlarc=
10652       hardcode_libdir_flag_spec_CXX='-R$libdir'
10653       hardcode_direct_CXX=yes
10654       hardcode_shlibpath_var_CXX=no
10655     fi
10656     # Workaround some broken pre-1.5 toolchains
10657     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10658     ;;
10659   osf3*)
10660     case $cc_basename in
10661       KCC)
10662         # Kuck and Associates, Inc. (KAI) C++ Compiler
10663
10664         # KCC will only create a shared library if the output file
10665         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10666         # to its proper name (with version) after linking.
10667         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'
10668
10669         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10670         hardcode_libdir_separator_CXX=:
10671
10672         # Archives containing C++ object files must be created using
10673         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10674         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10675
10676         ;;
10677       RCC)
10678         # Rational C++ 2.4.1
10679         # FIXME: insert proper C++ library support
10680         ld_shlibs_CXX=no
10681         ;;
10682       cxx)
10683         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10684         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'
10685
10686         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10687         hardcode_libdir_separator_CXX=:
10688
10689         # Commands to make compiler produce verbose output that lists
10690         # what "hidden" libraries, object files and flags are used when
10691         # linking a shared library.
10692         #
10693         # There doesn't appear to be a way to prevent this compiler from
10694         # explicitly linking system object files so we need to strip them
10695         # from the output so that they don't get included in the library
10696         # dependencies.
10697         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'
10698         ;;
10699       *)
10700         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10701           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10702           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'
10703
10704           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10705           hardcode_libdir_separator_CXX=:
10706
10707           # Commands to make compiler produce verbose output that lists
10708           # what "hidden" libraries, object files and flags are used when
10709           # linking a shared library.
10710           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10711
10712         else
10713           # FIXME: insert proper C++ library support
10714           ld_shlibs_CXX=no
10715         fi
10716         ;;
10717     esac
10718     ;;
10719   osf4* | osf5*)
10720     case $cc_basename in
10721       KCC)
10722         # Kuck and Associates, Inc. (KAI) C++ Compiler
10723
10724         # KCC will only create a shared library if the output file
10725         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10726         # to its proper name (with version) after linking.
10727         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'
10728
10729         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10730         hardcode_libdir_separator_CXX=:
10731
10732         # Archives containing C++ object files must be created using
10733         # the KAI C++ compiler.
10734         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10735         ;;
10736       RCC)
10737         # Rational C++ 2.4.1
10738         # FIXME: insert proper C++ library support
10739         ld_shlibs_CXX=no
10740         ;;
10741       cxx)
10742         allow_undefined_flag_CXX=' -expect_unresolved \*'
10743         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'
10744         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10745           echo "-hidden">> $lib.exp~
10746           $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~
10747           $rm $lib.exp'
10748
10749         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10750         hardcode_libdir_separator_CXX=:
10751
10752         # Commands to make compiler produce verbose output that lists
10753         # what "hidden" libraries, object files and flags are used when
10754         # linking a shared library.
10755         #
10756         # There doesn't appear to be a way to prevent this compiler from
10757         # explicitly linking system object files so we need to strip them
10758         # from the output so that they don't get included in the library
10759         # dependencies.
10760         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'
10761         ;;
10762       *)
10763         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10764           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10765          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'
10766
10767           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10768           hardcode_libdir_separator_CXX=:
10769
10770           # Commands to make compiler produce verbose output that lists
10771           # what "hidden" libraries, object files and flags are used when
10772           # linking a shared library.
10773           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10774
10775         else
10776           # FIXME: insert proper C++ library support
10777           ld_shlibs_CXX=no
10778         fi
10779         ;;
10780     esac
10781     ;;
10782   psos*)
10783     # FIXME: insert proper C++ library support
10784     ld_shlibs_CXX=no
10785     ;;
10786   sco*)
10787     archive_cmds_need_lc_CXX=no
10788     case $cc_basename in
10789       CC)
10790         # FIXME: insert proper C++ library support
10791         ld_shlibs_CXX=no
10792         ;;
10793       *)
10794         # FIXME: insert proper C++ library support
10795         ld_shlibs_CXX=no
10796         ;;
10797     esac
10798     ;;
10799   sunos4*)
10800     case $cc_basename in
10801       CC)
10802         # Sun C++ 4.x
10803         # FIXME: insert proper C++ library support
10804         ld_shlibs_CXX=no
10805         ;;
10806       lcc)
10807         # Lucid
10808         # FIXME: insert proper C++ library support
10809         ld_shlibs_CXX=no
10810         ;;
10811       *)
10812         # FIXME: insert proper C++ library support
10813         ld_shlibs_CXX=no
10814         ;;
10815     esac
10816     ;;
10817   solaris*)
10818     case $cc_basename in
10819       CC)
10820         # Sun C++ 4.2, 5.x and Centerline C++
10821         no_undefined_flag_CXX=' -zdefs'
10822         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10823         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10824         $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'
10825
10826         hardcode_libdir_flag_spec_CXX='-R$libdir'
10827         hardcode_shlibpath_var_CXX=no
10828         case $host_os in
10829           solaris2.0-5 | solaris2.0-5.*) ;;
10830           *)
10831             # The C++ compiler is used as linker so we must use $wl
10832             # flag to pass the commands to the underlying system
10833             # linker.
10834             # Supported since Solaris 2.6 (maybe 2.5.1?)
10835             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10836             ;;
10837         esac
10838         link_all_deplibs_CXX=yes
10839
10840         # Commands to make compiler produce verbose output that lists
10841         # what "hidden" libraries, object files and flags are used when
10842         # linking a shared library.
10843         #
10844         # There doesn't appear to be a way to prevent this compiler from
10845         # explicitly linking system object files so we need to strip them
10846         # from the output so that they don't get included in the library
10847         # dependencies.
10848         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'
10849
10850         # Archives containing C++ object files must be created using
10851         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10852         # necessary to make sure instantiated templates are included
10853         # in the archive.
10854         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10855         ;;
10856       gcx)
10857         # Green Hills C++ Compiler
10858         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10859
10860         # The C++ compiler must be used to create the archive.
10861         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10862         ;;
10863       *)
10864         # GNU C++ compiler with Solaris linker
10865         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10866           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10867           if $CC --version | grep -v '^2\.7' > /dev/null; then
10868             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10869             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10870                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10871
10872             # Commands to make compiler produce verbose output that lists
10873             # what "hidden" libraries, object files and flags are used when
10874             # linking a shared library.
10875             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10876           else
10877             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10878             # platform.
10879             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10880             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10881                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10882
10883             # Commands to make compiler produce verbose output that lists
10884             # what "hidden" libraries, object files and flags are used when
10885             # linking a shared library.
10886             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10887           fi
10888
10889           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10890         fi
10891         ;;
10892     esac
10893     ;;
10894   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10895     archive_cmds_need_lc_CXX=no
10896     ;;
10897   tandem*)
10898     case $cc_basename in
10899       NCC)
10900         # NonStop-UX NCC 3.20
10901         # FIXME: insert proper C++ library support
10902         ld_shlibs_CXX=no
10903         ;;
10904       *)
10905         # FIXME: insert proper C++ library support
10906         ld_shlibs_CXX=no
10907         ;;
10908     esac
10909     ;;
10910   vxworks*)
10911     # FIXME: insert proper C++ library support
10912     ld_shlibs_CXX=no
10913     ;;
10914   *)
10915     # FIXME: insert proper C++ library support
10916     ld_shlibs_CXX=no
10917     ;;
10918 esac
10919 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10920 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10921 test "$ld_shlibs_CXX" = no && can_build_shared=no
10922
10923 GCC_CXX="$GXX"
10924 LD_CXX="$LD"
10925
10926
10927 cat > conftest.$ac_ext <<EOF
10928 class Foo
10929 {
10930 public:
10931   Foo (void) { a = 0; }
10932 private:
10933   int a;
10934 };
10935 EOF
10936
10937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10938   (eval $ac_compile) 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; then
10942   # Parse the compiler output and extract the necessary
10943   # objects, libraries and library flags.
10944
10945   # Sentinel used to keep track of whether or not we are before
10946   # the conftest object file.
10947   pre_test_object_deps_done=no
10948
10949   # The `*' in the case matches for architectures that use `case' in
10950   # $output_verbose_cmd can trigger glob expansion during the loop
10951   # eval without this substitution.
10952   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10953
10954   for p in `eval $output_verbose_link_cmd`; do
10955     case $p in
10956
10957     -L* | -R* | -l*)
10958        # Some compilers place space between "-{L,R}" and the path.
10959        # Remove the space.
10960        if test $p = "-L" \
10961           || test $p = "-R"; then
10962          prev=$p
10963          continue
10964        else
10965          prev=
10966        fi
10967
10968        if test "$pre_test_object_deps_done" = no; then
10969          case $p in
10970          -L* | -R*)
10971            # Internal compiler library paths should come after those
10972            # provided the user.  The postdeps already come after the
10973            # user supplied libs so there is no need to process them.
10974            if test -z "$compiler_lib_search_path_CXX"; then
10975              compiler_lib_search_path_CXX="${prev}${p}"
10976            else
10977              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10978            fi
10979            ;;
10980          # The "-l" case would never come before the object being
10981          # linked, so don't bother handling this case.
10982          esac
10983        else
10984          if test -z "$postdeps_CXX"; then
10985            postdeps_CXX="${prev}${p}"
10986          else
10987            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10988          fi
10989        fi
10990        ;;
10991
10992     *.$objext)
10993        # This assumes that the test object file only shows up
10994        # once in the compiler output.
10995        if test "$p" = "conftest.$objext"; then
10996          pre_test_object_deps_done=yes
10997          continue
10998        fi
10999
11000        if test "$pre_test_object_deps_done" = no; then
11001          if test -z "$predep_objects_CXX"; then
11002            predep_objects_CXX="$p"
11003          else
11004            predep_objects_CXX="$predep_objects_CXX $p"
11005          fi
11006        else
11007          if test -z "$postdep_objects_CXX"; then
11008            postdep_objects_CXX="$p"
11009          else
11010            postdep_objects_CXX="$postdep_objects_CXX $p"
11011          fi
11012        fi
11013        ;;
11014
11015     *) ;; # Ignore the rest.
11016
11017     esac
11018   done
11019
11020   # Clean up.
11021   rm -f a.out a.exe
11022 else
11023   echo "libtool.m4: error: problem compiling CXX test program"
11024 fi
11025
11026 $rm -f confest.$objext
11027
11028 case " $postdeps_CXX " in
11029 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11030 esac
11031
11032 lt_prog_compiler_wl_CXX=
11033 lt_prog_compiler_pic_CXX=
11034 lt_prog_compiler_static_CXX=
11035
11036 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11037 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11038
11039   # C++ specific cases for pic, static, wl, etc.
11040   if test "$GXX" = yes; then
11041     lt_prog_compiler_wl_CXX='-Wl,'
11042     lt_prog_compiler_static_CXX='-static'
11043
11044     case $host_os in
11045     aix*)
11046       # All AIX code is PIC.
11047       if test "$host_cpu" = ia64; then
11048         # AIX 5 now supports IA64 processor
11049         lt_prog_compiler_static_CXX='-Bstatic'
11050       fi
11051       ;;
11052     amigaos*)
11053       # FIXME: we need at least 68020 code to build shared libraries, but
11054       # adding the `-m68020' flag to GCC prevents building anything better,
11055       # like `-m68040'.
11056       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11057       ;;
11058     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11059       # PIC is the default for these OSes.
11060       ;;
11061     mingw* | os2* | pw32*)
11062       # This hack is so that the source file can tell whether it is being
11063       # built for inclusion in a dll (and should export symbols for example).
11064       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11065       ;;
11066     darwin* | rhapsody*)
11067       # PIC is the default on this platform
11068       # Common symbols not allowed in MH_DYLIB files
11069       lt_prog_compiler_pic_CXX='-fno-common'
11070       ;;
11071     *djgpp*)
11072       # DJGPP does not support shared libraries at all
11073       lt_prog_compiler_pic_CXX=
11074       ;;
11075     sysv4*MP*)
11076       if test -d /usr/nec; then
11077         lt_prog_compiler_pic_CXX=-Kconform_pic
11078       fi
11079       ;;
11080     hpux*)
11081       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11082       # not for PA HP-UX.
11083       case "$host_cpu" in
11084       hppa*64*|ia64*)
11085         ;;
11086       *)
11087         lt_prog_compiler_pic_CXX='-fPIC'
11088         ;;
11089       esac
11090       ;;
11091     *)
11092       lt_prog_compiler_pic_CXX='-fPIC'
11093       ;;
11094     esac
11095   else
11096     case $host_os in
11097       aix4* | aix5*)
11098         # All AIX code is PIC.
11099         if test "$host_cpu" = ia64; then
11100           # AIX 5 now supports IA64 processor
11101           lt_prog_compiler_static_CXX='-Bstatic'
11102         else
11103           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11104         fi
11105         ;;
11106       chorus*)
11107         case $cc_basename in
11108         cxch68)
11109           # Green Hills C++ Compiler
11110           # _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"
11111           ;;
11112         esac
11113         ;;
11114       dgux*)
11115         case $cc_basename in
11116           ec++)
11117             lt_prog_compiler_pic_CXX='-KPIC'
11118             ;;
11119           ghcx)
11120             # Green Hills C++ Compiler
11121             lt_prog_compiler_pic_CXX='-pic'
11122             ;;
11123           *)
11124             ;;
11125         esac
11126         ;;
11127       freebsd* | kfreebsd*-gnu)
11128         # FreeBSD uses GNU C++
11129         ;;
11130       hpux9* | hpux10* | hpux11*)
11131         case $cc_basename in
11132           CC)
11133             lt_prog_compiler_wl_CXX='-Wl,'
11134             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11135             if test "$host_cpu" != ia64; then
11136               lt_prog_compiler_pic_CXX='+Z'
11137             fi
11138             ;;
11139           aCC)
11140             lt_prog_compiler_wl_CXX='-Wl,'
11141             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11142             case "$host_cpu" in
11143             hppa*64*|ia64*)
11144               # +Z the default
11145               ;;
11146             *)
11147               lt_prog_compiler_pic_CXX='+Z'
11148               ;;
11149             esac
11150             ;;
11151           *)
11152             ;;
11153         esac
11154         ;;
11155       irix5* | irix6* | nonstopux*)
11156         case $cc_basename in
11157           CC)
11158             lt_prog_compiler_wl_CXX='-Wl,'
11159             lt_prog_compiler_static_CXX='-non_shared'
11160             # CC pic flag -KPIC is the default.
11161             ;;
11162           *)
11163             ;;
11164         esac
11165         ;;
11166       linux*)
11167         case $cc_basename in
11168           KCC)
11169             # KAI C++ Compiler
11170             lt_prog_compiler_wl_CXX='--backend -Wl,'
11171             lt_prog_compiler_pic_CXX='-fPIC'
11172             ;;
11173           icpc)
11174             # Intel C++
11175             lt_prog_compiler_wl_CXX='-Wl,'
11176             lt_prog_compiler_pic_CXX='-KPIC'
11177             lt_prog_compiler_static_CXX='-static'
11178             ;;
11179           cxx)
11180             # Compaq C++
11181             # Make sure the PIC flag is empty.  It appears that all Alpha
11182             # Linux and Compaq Tru64 Unix objects are PIC.
11183             lt_prog_compiler_pic_CXX=
11184             lt_prog_compiler_static_CXX='-non_shared'
11185             ;;
11186           *)
11187             ;;
11188         esac
11189         ;;
11190       lynxos*)
11191         ;;
11192       m88k*)
11193         ;;
11194       mvs*)
11195         case $cc_basename in
11196           cxx)
11197             lt_prog_compiler_pic_CXX='-W c,exportall'
11198             ;;
11199           *)
11200             ;;
11201         esac
11202         ;;
11203       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11204         ;;
11205       osf3* | osf4* | osf5*)
11206         case $cc_basename in
11207           KCC)
11208             lt_prog_compiler_wl_CXX='--backend -Wl,'
11209             ;;
11210           RCC)
11211             # Rational C++ 2.4.1
11212             lt_prog_compiler_pic_CXX='-pic'
11213             ;;
11214           cxx)
11215             # Digital/Compaq C++
11216             lt_prog_compiler_wl_CXX='-Wl,'
11217             # Make sure the PIC flag is empty.  It appears that all Alpha
11218             # Linux and Compaq Tru64 Unix objects are PIC.
11219             lt_prog_compiler_pic_CXX=
11220             lt_prog_compiler_static_CXX='-non_shared'
11221             ;;
11222           *)
11223             ;;
11224         esac
11225         ;;
11226       psos*)
11227         ;;
11228       sco*)
11229         case $cc_basename in
11230           CC)
11231             lt_prog_compiler_pic_CXX='-fPIC'
11232             ;;
11233           *)
11234             ;;
11235         esac
11236         ;;
11237       solaris*)
11238         case $cc_basename in
11239           CC)
11240             # Sun C++ 4.2, 5.x and Centerline C++
11241             lt_prog_compiler_pic_CXX='-KPIC'
11242             lt_prog_compiler_static_CXX='-Bstatic'
11243             lt_prog_compiler_wl_CXX='-Qoption ld '
11244             ;;
11245           gcx)
11246             # Green Hills C++ Compiler
11247             lt_prog_compiler_pic_CXX='-PIC'
11248             ;;
11249           *)
11250             ;;
11251         esac
11252         ;;
11253       sunos4*)
11254         case $cc_basename in
11255           CC)
11256             # Sun C++ 4.x
11257             lt_prog_compiler_pic_CXX='-pic'
11258             lt_prog_compiler_static_CXX='-Bstatic'
11259             ;;
11260           lcc)
11261             # Lucid
11262             lt_prog_compiler_pic_CXX='-pic'
11263             ;;
11264           *)
11265             ;;
11266         esac
11267         ;;
11268       tandem*)
11269         case $cc_basename in
11270           NCC)
11271             # NonStop-UX NCC 3.20
11272             lt_prog_compiler_pic_CXX='-KPIC'
11273             ;;
11274           *)
11275             ;;
11276         esac
11277         ;;
11278       unixware*)
11279         ;;
11280       vxworks*)
11281         ;;
11282       *)
11283         lt_prog_compiler_can_build_shared_CXX=no
11284         ;;
11285     esac
11286   fi
11287
11288 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11289 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11290
11291 #
11292 # Check to make sure the PIC flag actually works.
11293 #
11294 if test -n "$lt_prog_compiler_pic_CXX"; then
11295
11296 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11297 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11298 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301   lt_prog_compiler_pic_works_CXX=no
11302   ac_outfile=conftest.$ac_objext
11303    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11304    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11305    # Insert the option either (1) after the last *FLAGS variable, or
11306    # (2) before a word containing "conftest.", or (3) at the end.
11307    # Note that $ac_compile itself does not contain backslashes and begins
11308    # with a dollar sign (not a hyphen), so the echo should work correctly.
11309    # The option is referenced via a variable to avoid confusing sed.
11310    lt_compile=`echo "$ac_compile" | $SED \
11311    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11312    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11313    -e 's:$: $lt_compiler_flag:'`
11314    (eval echo "\"\$as_me:11314: $lt_compile\"" >&5)
11315    (eval "$lt_compile" 2>conftest.err)
11316    ac_status=$?
11317    cat conftest.err >&5
11318    echo "$as_me:11318: \$? = $ac_status" >&5
11319    if (exit $ac_status) && test -s "$ac_outfile"; then
11320      # The compiler can only warn and ignore the option if not recognized
11321      # So say no if there are warnings
11322      if test ! -s conftest.err; then
11323        lt_prog_compiler_pic_works_CXX=yes
11324      fi
11325    fi
11326    $rm conftest*
11327
11328 fi
11329 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11330 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11331
11332 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11333     case $lt_prog_compiler_pic_CXX in
11334      "" | " "*) ;;
11335      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11336      esac
11337 else
11338     lt_prog_compiler_pic_CXX=
11339      lt_prog_compiler_can_build_shared_CXX=no
11340 fi
11341
11342 fi
11343 case "$host_os" in
11344   # For platforms which do not support PIC, -DPIC is meaningless:
11345   *djgpp*)
11346     lt_prog_compiler_pic_CXX=
11347     ;;
11348   *)
11349     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11350     ;;
11351 esac
11352
11353 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11354 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11355 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11356   echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358   lt_cv_prog_compiler_c_o_CXX=no
11359    $rm -r conftest 2>/dev/null
11360    mkdir conftest
11361    cd conftest
11362    mkdir out
11363    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11364
11365    lt_compiler_flag="-o out/conftest2.$ac_objext"
11366    # Insert the option either (1) after the last *FLAGS variable, or
11367    # (2) before a word containing "conftest.", or (3) at the end.
11368    # Note that $ac_compile itself does not contain backslashes and begins
11369    # with a dollar sign (not a hyphen), so the echo should work correctly.
11370    lt_compile=`echo "$ac_compile" | $SED \
11371    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11372    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11373    -e 's:$: $lt_compiler_flag:'`
11374    (eval echo "\"\$as_me:11374: $lt_compile\"" >&5)
11375    (eval "$lt_compile" 2>out/conftest.err)
11376    ac_status=$?
11377    cat out/conftest.err >&5
11378    echo "$as_me:11378: \$? = $ac_status" >&5
11379    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11380    then
11381      # The compiler can only warn and ignore the option if not recognized
11382      # So say no if there are warnings
11383      if test ! -s out/conftest.err; then
11384        lt_cv_prog_compiler_c_o_CXX=yes
11385      fi
11386    fi
11387    chmod u+w .
11388    $rm conftest*
11389    # SGI C++ compiler will create directory out/ii_files/ for
11390    # template instantiation
11391    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11392    $rm out/* && rmdir out
11393    cd ..
11394    rmdir conftest
11395    $rm conftest*
11396
11397 fi
11398 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11399 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11400
11401
11402 hard_links="nottested"
11403 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11404   # do not overwrite the value of need_locks provided by the user
11405   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11406 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11407   hard_links=yes
11408   $rm conftest*
11409   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11410   touch conftest.a
11411   ln conftest.a conftest.b 2>&5 || hard_links=no
11412   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11413   echo "$as_me:$LINENO: result: $hard_links" >&5
11414 echo "${ECHO_T}$hard_links" >&6
11415   if test "$hard_links" = no; then
11416     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11417 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11418     need_locks=warn
11419   fi
11420 else
11421   need_locks=no
11422 fi
11423
11424 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11425 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11426
11427   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11428   case $host_os in
11429   aix4* | aix5*)
11430     # If we're using GNU nm, then we don't want the "-C" option.
11431     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11432     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11433       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'
11434     else
11435       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'
11436     fi
11437     ;;
11438   pw32*)
11439     export_symbols_cmds_CXX="$ltdll_cmds"
11440   ;;
11441   cygwin* | mingw*)
11442     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11443   ;;
11444   linux*)
11445     link_all_deplibs_CXX=no
11446   ;;
11447   *)
11448     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11449   ;;
11450   esac
11451
11452 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11453 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11454 test "$ld_shlibs_CXX" = no && can_build_shared=no
11455
11456 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11457 if test "$GCC" = yes; then
11458   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11459 fi
11460
11461 #
11462 # Do we need to explicitly link libc?
11463 #
11464 case "x$archive_cmds_need_lc_CXX" in
11465 x|xyes)
11466   # Assume -lc should be added
11467   archive_cmds_need_lc_CXX=yes
11468
11469   if test "$enable_shared" = yes && test "$GCC" = yes; then
11470     case $archive_cmds_CXX in
11471     *'~'*)
11472       # FIXME: we may have to deal with multi-command sequences.
11473       ;;
11474     '$CC '*)
11475       # Test whether the compiler implicitly links with -lc since on some
11476       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11477       # to ld, don't add -lc before -lgcc.
11478       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11479 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11480       $rm conftest*
11481       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11482
11483       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484   (eval $ac_compile) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } 2>conftest.err; then
11488         soname=conftest
11489         lib=conftest
11490         libobjs=conftest.$ac_objext
11491         deplibs=
11492         wl=$lt_prog_compiler_wl_CXX
11493         compiler_flags=-v
11494         linker_flags=-v
11495         verstring=
11496         output_objdir=.
11497         libname=conftest
11498         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11499         allow_undefined_flag_CXX=
11500         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11501   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11502   ac_status=$?
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); }
11505         then
11506           archive_cmds_need_lc_CXX=no
11507         else
11508           archive_cmds_need_lc_CXX=yes
11509         fi
11510         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11511       else
11512         cat conftest.err 1>&5
11513       fi
11514       $rm conftest*
11515       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11516 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11517       ;;
11518     esac
11519   fi
11520   ;;
11521 esac
11522
11523 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11524 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11525 library_names_spec=
11526 libname_spec='lib$name'
11527 soname_spec=
11528 shrext_cmds=".so"
11529 postinstall_cmds=
11530 postuninstall_cmds=
11531 finish_cmds=
11532 finish_eval=
11533 shlibpath_var=
11534 shlibpath_overrides_runpath=unknown
11535 version_type=none
11536 dynamic_linker="$host_os ld.so"
11537 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11538 if test "$GCC" = yes; then
11539   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11540   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11541     # if the path contains ";" then we assume it to be the separator
11542     # otherwise default to the standard path separator (i.e. ":") - it is
11543     # assumed that no part of a normal pathname contains ";" but that should
11544     # okay in the real world where ";" in dirpaths is itself problematic.
11545     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11546   else
11547     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11548   fi
11549 else
11550   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11551 fi
11552 need_lib_prefix=unknown
11553 hardcode_into_libs=no
11554
11555 # when you set need_version to no, make sure it does not cause -set_version
11556 # flags to be left without arguments
11557 need_version=unknown
11558
11559 case $host_os in
11560 aix3*)
11561   version_type=linux
11562   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11563   shlibpath_var=LIBPATH
11564
11565   # AIX 3 has no versioning support, so we append a major version to the name.
11566   soname_spec='${libname}${release}${shared_ext}$major'
11567   ;;
11568
11569 aix4* | aix5*)
11570   version_type=linux
11571   need_lib_prefix=no
11572   need_version=no
11573   hardcode_into_libs=yes
11574   if test "$host_cpu" = ia64; then
11575     # AIX 5 supports IA64
11576     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11577     shlibpath_var=LD_LIBRARY_PATH
11578   else
11579     # With GCC up to 2.95.x, collect2 would create an import file
11580     # for dependence libraries.  The import file would start with
11581     # the line `#! .'.  This would cause the generated library to
11582     # depend on `.', always an invalid library.  This was fixed in
11583     # development snapshots of GCC prior to 3.0.
11584     case $host_os in
11585       aix4 | aix4.[01] | aix4.[01].*)
11586       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11587            echo ' yes '
11588            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11589         :
11590       else
11591         can_build_shared=no
11592       fi
11593       ;;
11594     esac
11595     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11596     # soname into executable. Probably we can add versioning support to
11597     # collect2, so additional links can be useful in future.
11598     if test "$aix_use_runtimelinking" = yes; then
11599       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11600       # instead of lib<name>.a to let people know that these are not
11601       # typical AIX shared libraries.
11602       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11603     else
11604       # We preserve .a as extension for shared libraries through AIX4.2
11605       # and later when we are not doing run time linking.
11606       library_names_spec='${libname}${release}.a $libname.a'
11607       soname_spec='${libname}${release}${shared_ext}$major'
11608     fi
11609     shlibpath_var=LIBPATH
11610   fi
11611   ;;
11612
11613 amigaos*)
11614   library_names_spec='$libname.ixlibrary $libname.a'
11615   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11616   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'
11617   ;;
11618
11619 beos*)
11620   library_names_spec='${libname}${shared_ext}'
11621   dynamic_linker="$host_os ld.so"
11622   shlibpath_var=LIBRARY_PATH
11623   ;;
11624
11625 bsdi4*)
11626   version_type=linux
11627   need_version=no
11628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629   soname_spec='${libname}${release}${shared_ext}$major'
11630   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11631   shlibpath_var=LD_LIBRARY_PATH
11632   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11633   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11634   # the default ld.so.conf also contains /usr/contrib/lib and
11635   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11636   # libtool to hard-code these into programs
11637   ;;
11638
11639 cygwin* | mingw* | pw32*)
11640   version_type=windows
11641   shrext_cmds=".dll"
11642   need_version=no
11643   need_lib_prefix=no
11644
11645   case $GCC,$host_os in
11646   yes,cygwin* | yes,mingw* | yes,pw32*)
11647     library_names_spec='$libname.dll.a'
11648     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11649     postinstall_cmds='base_file=`basename \${file}`~
11650       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11651       dldir=$destdir/`dirname \$dlpath`~
11652       test -d \$dldir || mkdir -p \$dldir~
11653       $install_prog $dir/$dlname \$dldir/$dlname'
11654     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11655       dlpath=$dir/\$dldll~
11656        $rm \$dlpath'
11657     shlibpath_overrides_runpath=yes
11658
11659     case $host_os in
11660     cygwin*)
11661       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11662       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11663       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11664       ;;
11665     mingw*)
11666       # MinGW DLLs use traditional 'lib' prefix
11667       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11668       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11669       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11670         # It is most probably a Windows format PATH printed by
11671         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11672         # path with ; separators, and with drive letters. We can handle the
11673         # drive letters (cygwin fileutils understands them), so leave them,
11674         # especially as we might pass files found there to a mingw objdump,
11675         # which wouldn't understand a cygwinified path. Ahh.
11676         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11677       else
11678         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11679       fi
11680       ;;
11681     pw32*)
11682       # pw32 DLLs use 'pw' prefix rather than 'lib'
11683       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11684       ;;
11685     esac
11686     ;;
11687
11688   *)
11689     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11690     ;;
11691   esac
11692   dynamic_linker='Win32 ld.exe'
11693   # FIXME: first we should search . and the directory the executable is in
11694   shlibpath_var=PATH
11695   ;;
11696
11697 darwin* | rhapsody*)
11698   dynamic_linker="$host_os dyld"
11699   version_type=darwin
11700   need_lib_prefix=no
11701   need_version=no
11702   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11703   soname_spec='${libname}${release}${major}$shared_ext'
11704   shlibpath_overrides_runpath=yes
11705   shlibpath_var=DYLD_LIBRARY_PATH
11706   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11707   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11708   if test "$GCC" = yes; then
11709     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"`
11710   else
11711     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11712   fi
11713   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11714   ;;
11715
11716 dgux*)
11717   version_type=linux
11718   need_lib_prefix=no
11719   need_version=no
11720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11721   soname_spec='${libname}${release}${shared_ext}$major'
11722   shlibpath_var=LD_LIBRARY_PATH
11723   ;;
11724
11725 freebsd1*)
11726   dynamic_linker=no
11727   ;;
11728
11729 kfreebsd*-gnu)
11730   version_type=linux
11731   need_lib_prefix=no
11732   need_version=no
11733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11734   soname_spec='${libname}${release}${shared_ext}$major'
11735   shlibpath_var=LD_LIBRARY_PATH
11736   shlibpath_overrides_runpath=no
11737   hardcode_into_libs=yes
11738   dynamic_linker='GNU ld.so'
11739   ;;
11740
11741 freebsd*)
11742   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11743   version_type=freebsd-$objformat
11744   case $version_type in
11745     freebsd-elf*)
11746       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11747       need_version=no
11748       need_lib_prefix=no
11749       ;;
11750     freebsd-*)
11751       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11752       need_version=yes
11753       ;;
11754   esac
11755   shlibpath_var=LD_LIBRARY_PATH
11756   case $host_os in
11757   freebsd2*)
11758     shlibpath_overrides_runpath=yes
11759     ;;
11760   freebsd3.01* | freebsdelf3.01*)
11761     shlibpath_overrides_runpath=yes
11762     hardcode_into_libs=yes
11763     ;;
11764   *) # from 3.2 on
11765     shlibpath_overrides_runpath=no
11766     hardcode_into_libs=yes
11767     ;;
11768   esac
11769   ;;
11770
11771 gnu*)
11772   version_type=linux
11773   need_lib_prefix=no
11774   need_version=no
11775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11776   soname_spec='${libname}${release}${shared_ext}$major'
11777   shlibpath_var=LD_LIBRARY_PATH
11778   hardcode_into_libs=yes
11779   ;;
11780
11781 hpux9* | hpux10* | hpux11*)
11782   # Give a soname corresponding to the major version so that dld.sl refuses to
11783   # link against other versions.
11784   version_type=sunos
11785   need_lib_prefix=no
11786   need_version=no
11787   case "$host_cpu" in
11788   ia64*)
11789     shrext_cmds='.so'
11790     hardcode_into_libs=yes
11791     dynamic_linker="$host_os dld.so"
11792     shlibpath_var=LD_LIBRARY_PATH
11793     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795     soname_spec='${libname}${release}${shared_ext}$major'
11796     if test "X$HPUX_IA64_MODE" = X32; then
11797       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11798     else
11799       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11800     fi
11801     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11802     ;;
11803    hppa*64*)
11804      shrext_cmds='.sl'
11805      hardcode_into_libs=yes
11806      dynamic_linker="$host_os dld.sl"
11807      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11808      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11809      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810      soname_spec='${libname}${release}${shared_ext}$major'
11811      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11812      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11813      ;;
11814    *)
11815     shrext_cmds='.sl'
11816     dynamic_linker="$host_os dld.sl"
11817     shlibpath_var=SHLIB_PATH
11818     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820     soname_spec='${libname}${release}${shared_ext}$major'
11821     ;;
11822   esac
11823   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11824   postinstall_cmds='chmod 555 $lib'
11825   ;;
11826
11827 irix5* | irix6* | nonstopux*)
11828   case $host_os in
11829     nonstopux*) version_type=nonstopux ;;
11830     *)
11831         if test "$lt_cv_prog_gnu_ld" = yes; then
11832                 version_type=linux
11833         else
11834                 version_type=irix
11835         fi ;;
11836   esac
11837   need_lib_prefix=no
11838   need_version=no
11839   soname_spec='${libname}${release}${shared_ext}$major'
11840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11841   case $host_os in
11842   irix5* | nonstopux*)
11843     libsuff= shlibsuff=
11844     ;;
11845   *)
11846     case $LD in # libtool.m4 will add one of these switches to LD
11847     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11848       libsuff= shlibsuff= libmagic=32-bit;;
11849     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11850       libsuff=32 shlibsuff=N32 libmagic=N32;;
11851     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11852       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11853     *) libsuff= shlibsuff= libmagic=never-match;;
11854     esac
11855     ;;
11856   esac
11857   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11858   shlibpath_overrides_runpath=no
11859   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11860   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11861   hardcode_into_libs=yes
11862   ;;
11863
11864 # No shared lib support for Linux oldld, aout, or coff.
11865 linux*oldld* | linux*aout* | linux*coff*)
11866   dynamic_linker=no
11867   ;;
11868
11869 # This must be Linux ELF.
11870 linux*)
11871   version_type=linux
11872   need_lib_prefix=no
11873   need_version=no
11874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875   soname_spec='${libname}${release}${shared_ext}$major'
11876   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11877   shlibpath_var=LD_LIBRARY_PATH
11878   shlibpath_overrides_runpath=no
11879   # This implies no fast_install, which is unacceptable.
11880   # Some rework will be needed to allow for fast_install
11881   # before this can be enabled.
11882   hardcode_into_libs=yes
11883
11884   # Append ld.so.conf contents to the search path
11885   if test -f /etc/ld.so.conf; then
11886     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11887     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11888   fi
11889
11890   # We used to test for /lib/ld.so.1 and disable shared libraries on
11891   # powerpc, because MkLinux only supported shared libraries with the
11892   # GNU dynamic linker.  Since this was broken with cross compilers,
11893   # most powerpc-linux boxes support dynamic linking these days and
11894   # people can always --disable-shared, the test was removed, and we
11895   # assume the GNU/Linux dynamic linker is in use.
11896   dynamic_linker='GNU/Linux ld.so'
11897   ;;
11898
11899 netbsdelf*-gnu)
11900   version_type=linux
11901   need_lib_prefix=no
11902   need_version=no
11903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11904   soname_spec='${libname}${release}${shared_ext}$major'
11905   shlibpath_var=LD_LIBRARY_PATH
11906   shlibpath_overrides_runpath=no
11907   hardcode_into_libs=yes
11908   dynamic_linker='NetBSD ld.elf_so'
11909   ;;
11910
11911 knetbsd*-gnu)
11912   version_type=linux
11913   need_lib_prefix=no
11914   need_version=no
11915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11916   soname_spec='${libname}${release}${shared_ext}$major'
11917   shlibpath_var=LD_LIBRARY_PATH
11918   shlibpath_overrides_runpath=no
11919   hardcode_into_libs=yes
11920   dynamic_linker='GNU ld.so'
11921   ;;
11922
11923 netbsd*)
11924   version_type=sunos
11925   need_lib_prefix=no
11926   need_version=no
11927   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11929     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11930     dynamic_linker='NetBSD (a.out) ld.so'
11931   else
11932     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11933     soname_spec='${libname}${release}${shared_ext}$major'
11934     dynamic_linker='NetBSD ld.elf_so'
11935   fi
11936   shlibpath_var=LD_LIBRARY_PATH
11937   shlibpath_overrides_runpath=yes
11938   hardcode_into_libs=yes
11939   ;;
11940
11941 newsos6)
11942   version_type=linux
11943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944   shlibpath_var=LD_LIBRARY_PATH
11945   shlibpath_overrides_runpath=yes
11946   ;;
11947
11948 nto-qnx*)
11949   version_type=linux
11950   need_lib_prefix=no
11951   need_version=no
11952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953   soname_spec='${libname}${release}${shared_ext}$major'
11954   shlibpath_var=LD_LIBRARY_PATH
11955   shlibpath_overrides_runpath=yes
11956   ;;
11957
11958 openbsd*)
11959   version_type=sunos
11960   need_lib_prefix=no
11961   need_version=yes
11962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11963   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11964   shlibpath_var=LD_LIBRARY_PATH
11965   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11966     case $host_os in
11967       openbsd2.[89] | openbsd2.[89].*)
11968         shlibpath_overrides_runpath=no
11969         ;;
11970       *)
11971         shlibpath_overrides_runpath=yes
11972         ;;
11973       esac
11974   else
11975     shlibpath_overrides_runpath=yes
11976   fi
11977   ;;
11978
11979 os2*)
11980   libname_spec='$name'
11981   shrext_cmds=".dll"
11982   need_lib_prefix=no
11983   library_names_spec='$libname${shared_ext} $libname.a'
11984   dynamic_linker='OS/2 ld.exe'
11985   shlibpath_var=LIBPATH
11986   ;;
11987
11988 osf3* | osf4* | osf5*)
11989   version_type=osf
11990   need_lib_prefix=no
11991   need_version=no
11992   soname_spec='${libname}${release}${shared_ext}$major'
11993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11994   shlibpath_var=LD_LIBRARY_PATH
11995   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11996   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11997   ;;
11998
11999 sco3.2v5*)
12000   version_type=osf
12001   soname_spec='${libname}${release}${shared_ext}$major'
12002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003   shlibpath_var=LD_LIBRARY_PATH
12004   ;;
12005
12006 solaris*)
12007   version_type=linux
12008   need_lib_prefix=no
12009   need_version=no
12010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12011   soname_spec='${libname}${release}${shared_ext}$major'
12012   shlibpath_var=LD_LIBRARY_PATH
12013   shlibpath_overrides_runpath=yes
12014   hardcode_into_libs=yes
12015   # ldd complains unless libraries are executable
12016   postinstall_cmds='chmod +x $lib'
12017   ;;
12018
12019 sunos4*)
12020   version_type=sunos
12021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12022   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12023   shlibpath_var=LD_LIBRARY_PATH
12024   shlibpath_overrides_runpath=yes
12025   if test "$with_gnu_ld" = yes; then
12026     need_lib_prefix=no
12027   fi
12028   need_version=yes
12029   ;;
12030
12031 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12032   version_type=linux
12033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034   soname_spec='${libname}${release}${shared_ext}$major'
12035   shlibpath_var=LD_LIBRARY_PATH
12036   case $host_vendor in
12037     sni)
12038       shlibpath_overrides_runpath=no
12039       need_lib_prefix=no
12040       export_dynamic_flag_spec='${wl}-Blargedynsym'
12041       runpath_var=LD_RUN_PATH
12042       ;;
12043     siemens)
12044       need_lib_prefix=no
12045       ;;
12046     motorola)
12047       need_lib_prefix=no
12048       need_version=no
12049       shlibpath_overrides_runpath=no
12050       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12051       ;;
12052   esac
12053   ;;
12054
12055 sysv4*MP*)
12056   if test -d /usr/nec ;then
12057     version_type=linux
12058     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12059     soname_spec='$libname${shared_ext}.$major'
12060     shlibpath_var=LD_LIBRARY_PATH
12061   fi
12062   ;;
12063
12064 uts4*)
12065   version_type=linux
12066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067   soname_spec='${libname}${release}${shared_ext}$major'
12068   shlibpath_var=LD_LIBRARY_PATH
12069   ;;
12070
12071 *)
12072   dynamic_linker=no
12073   ;;
12074 esac
12075 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12076 echo "${ECHO_T}$dynamic_linker" >&6
12077 test "$dynamic_linker" = no && can_build_shared=no
12078
12079 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12081 hardcode_action_CXX=
12082 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12083    test -n "$runpath_var CXX" || \
12084    test "X$hardcode_automatic_CXX"="Xyes" ; then
12085
12086   # We can hardcode non-existant directories.
12087   if test "$hardcode_direct_CXX" != no &&
12088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12089      # have to relink, otherwise we might link with an installed library
12090      # when we should be linking with a yet-to-be-installed one
12091      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12092      test "$hardcode_minus_L_CXX" != no; then
12093     # Linking always hardcodes the temporary library directory.
12094     hardcode_action_CXX=relink
12095   else
12096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12097     hardcode_action_CXX=immediate
12098   fi
12099 else
12100   # We cannot hardcode anything, or else we can only hardcode existing
12101   # directories.
12102   hardcode_action_CXX=unsupported
12103 fi
12104 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12105 echo "${ECHO_T}$hardcode_action_CXX" >&6
12106
12107 if test "$hardcode_action_CXX" = relink; then
12108   # Fast installation is not supported
12109   enable_fast_install=no
12110 elif test "$shlibpath_overrides_runpath" = yes ||
12111      test "$enable_shared" = no; then
12112   # Fast installation is not necessary
12113   enable_fast_install=needless
12114 fi
12115
12116 striplib=
12117 old_striplib=
12118 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12119 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12120 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12121   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12122   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12123   echo "$as_me:$LINENO: result: yes" >&5
12124 echo "${ECHO_T}yes" >&6
12125 else
12126 # FIXME - insert some real tests, host_os isn't really good enough
12127   case $host_os in
12128    darwin*)
12129        if test -n "$STRIP" ; then
12130          striplib="$STRIP -x"
12131          echo "$as_me:$LINENO: result: yes" >&5
12132 echo "${ECHO_T}yes" >&6
12133        else
12134   echo "$as_me:$LINENO: result: no" >&5
12135 echo "${ECHO_T}no" >&6
12136 fi
12137        ;;
12138    *)
12139   echo "$as_me:$LINENO: result: no" >&5
12140 echo "${ECHO_T}no" >&6
12141     ;;
12142   esac
12143 fi
12144
12145 if test "x$enable_dlopen" != xyes; then
12146   enable_dlopen=unknown
12147   enable_dlopen_self=unknown
12148   enable_dlopen_self_static=unknown
12149 else
12150   lt_cv_dlopen=no
12151   lt_cv_dlopen_libs=
12152
12153   case $host_os in
12154   beos*)
12155     lt_cv_dlopen="load_add_on"
12156     lt_cv_dlopen_libs=
12157     lt_cv_dlopen_self=yes
12158     ;;
12159
12160   mingw* | pw32*)
12161     lt_cv_dlopen="LoadLibrary"
12162     lt_cv_dlopen_libs=
12163    ;;
12164
12165   cygwin*)
12166     lt_cv_dlopen="dlopen"
12167     lt_cv_dlopen_libs=
12168    ;;
12169
12170   darwin*)
12171   # if libdl is installed we need to link against it
12172     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12173 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12174 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177   ac_check_lib_save_LIBS=$LIBS
12178 LIBS="-ldl  $LIBS"
12179 cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h.  */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h.  */
12185
12186 /* Override any gcc2 internal prototype to avoid an error.  */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 /* We use char because int might match the return type of a gcc2
12191    builtin and then its argument prototype would still apply.  */
12192 char dlopen ();
12193 int
12194 main ()
12195 {
12196 dlopen ();
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12203   (eval $ac_link) 2>conftest.er1
12204   ac_status=$?
12205   grep -v '^ *+' conftest.er1 >conftest.err
12206   rm -f conftest.er1
12207   cat conftest.err >&5
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); } &&
12210          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212   (eval $ac_try) 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); }; } &&
12216          { ac_try='test -s conftest$ac_exeext'
12217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218   (eval $ac_try) 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); }; }; then
12222   ac_cv_lib_dl_dlopen=yes
12223 else
12224   echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12226
12227 ac_cv_lib_dl_dlopen=no
12228 fi
12229 rm -f conftest.err conftest.$ac_objext \
12230       conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12232 fi
12233 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12234 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12235 if test $ac_cv_lib_dl_dlopen = yes; then
12236   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12237 else
12238
12239     lt_cv_dlopen="dyld"
12240     lt_cv_dlopen_libs=
12241     lt_cv_dlopen_self=yes
12242
12243 fi
12244
12245    ;;
12246
12247   *)
12248     echo "$as_me:$LINENO: checking for shl_load" >&5
12249 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12250 if test "${ac_cv_func_shl_load+set}" = set; then
12251   echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253   cat >conftest.$ac_ext <<_ACEOF
12254 /* confdefs.h.  */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h.  */
12259 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12261 #define shl_load innocuous_shl_load
12262
12263 /* System header to define __stub macros and hopefully few prototypes,
12264     which can conflict with char shl_load (); below.
12265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12266     <limits.h> exists even on freestanding compilers.  */
12267
12268 #ifdef __STDC__
12269 # include <limits.h>
12270 #else
12271 # include <assert.h>
12272 #endif
12273
12274 #undef shl_load
12275
12276 /* Override any gcc2 internal prototype to avoid an error.  */
12277 #ifdef __cplusplus
12278 extern "C"
12279 {
12280 #endif
12281 /* We use char because int might match the return type of a gcc2
12282    builtin and then its argument prototype would still apply.  */
12283 char shl_load ();
12284 /* The GNU C library defines this for functions which it implements
12285     to always fail with ENOSYS.  Some functions are actually named
12286     something starting with __ and the normal name is an alias.  */
12287 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12288 choke me
12289 #else
12290 char (*f) () = shl_load;
12291 #endif
12292 #ifdef __cplusplus
12293 }
12294 #endif
12295
12296 int
12297 main ()
12298 {
12299 return f != shl_load;
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 rm -f conftest.$ac_objext conftest$ac_exeext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12306   (eval $ac_link) 2>conftest.er1
12307   ac_status=$?
12308   grep -v '^ *+' conftest.er1 >conftest.err
12309   rm -f conftest.er1
12310   cat conftest.err >&5
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); } &&
12313          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315   (eval $ac_try) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; } &&
12319          { ac_try='test -s conftest$ac_exeext'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; }; then
12325   ac_cv_func_shl_load=yes
12326 else
12327   echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330 ac_cv_func_shl_load=no
12331 fi
12332 rm -f conftest.err conftest.$ac_objext \
12333       conftest$ac_exeext conftest.$ac_ext
12334 fi
12335 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12336 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12337 if test $ac_cv_func_shl_load = yes; then
12338   lt_cv_dlopen="shl_load"
12339 else
12340   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12341 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12342 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12343   echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345   ac_check_lib_save_LIBS=$LIBS
12346 LIBS="-ldld  $LIBS"
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h.  */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h.  */
12353
12354 /* Override any gcc2 internal prototype to avoid an error.  */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 /* We use char because int might match the return type of a gcc2
12359    builtin and then its argument prototype would still apply.  */
12360 char shl_load ();
12361 int
12362 main ()
12363 {
12364 shl_load ();
12365   ;
12366   return 0;
12367 }
12368 _ACEOF
12369 rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371   (eval $ac_link) 2>conftest.er1
12372   ac_status=$?
12373   grep -v '^ *+' conftest.er1 >conftest.err
12374   rm -f conftest.er1
12375   cat conftest.err >&5
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); } &&
12378          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380   (eval $ac_try) 2>&5
12381   ac_status=$?
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); }; } &&
12384          { ac_try='test -s conftest$ac_exeext'
12385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386   (eval $ac_try) 2>&5
12387   ac_status=$?
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); }; }; then
12390   ac_cv_lib_dld_shl_load=yes
12391 else
12392   echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12394
12395 ac_cv_lib_dld_shl_load=no
12396 fi
12397 rm -f conftest.err conftest.$ac_objext \
12398       conftest$ac_exeext conftest.$ac_ext
12399 LIBS=$ac_check_lib_save_LIBS
12400 fi
12401 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12402 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12403 if test $ac_cv_lib_dld_shl_load = yes; then
12404   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12405 else
12406   echo "$as_me:$LINENO: checking for dlopen" >&5
12407 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12408 if test "${ac_cv_func_dlopen+set}" = set; then
12409   echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411   cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12419 #define dlopen innocuous_dlopen
12420
12421 /* System header to define __stub macros and hopefully few prototypes,
12422     which can conflict with char dlopen (); below.
12423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12424     <limits.h> exists even on freestanding compilers.  */
12425
12426 #ifdef __STDC__
12427 # include <limits.h>
12428 #else
12429 # include <assert.h>
12430 #endif
12431
12432 #undef dlopen
12433
12434 /* Override any gcc2 internal prototype to avoid an error.  */
12435 #ifdef __cplusplus
12436 extern "C"
12437 {
12438 #endif
12439 /* We use char because int might match the return type of a gcc2
12440    builtin and then its argument prototype would still apply.  */
12441 char dlopen ();
12442 /* The GNU C library defines this for functions which it implements
12443     to always fail with ENOSYS.  Some functions are actually named
12444     something starting with __ and the normal name is an alias.  */
12445 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12446 choke me
12447 #else
12448 char (*f) () = dlopen;
12449 #endif
12450 #ifdef __cplusplus
12451 }
12452 #endif
12453
12454 int
12455 main ()
12456 {
12457 return f != dlopen;
12458   ;
12459   return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464   (eval $ac_link) 2>conftest.er1
12465   ac_status=$?
12466   grep -v '^ *+' conftest.er1 >conftest.err
12467   rm -f conftest.er1
12468   cat conftest.err >&5
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } &&
12471          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473   (eval $ac_try) 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); }; } &&
12477          { ac_try='test -s conftest$ac_exeext'
12478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479   (eval $ac_try) 2>&5
12480   ac_status=$?
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); }; }; then
12483   ac_cv_func_dlopen=yes
12484 else
12485   echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488 ac_cv_func_dlopen=no
12489 fi
12490 rm -f conftest.err conftest.$ac_objext \
12491       conftest$ac_exeext conftest.$ac_ext
12492 fi
12493 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12494 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12495 if test $ac_cv_func_dlopen = yes; then
12496   lt_cv_dlopen="dlopen"
12497 else
12498   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12501   echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503   ac_check_lib_save_LIBS=$LIBS
12504 LIBS="-ldl  $LIBS"
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511
12512 /* Override any gcc2 internal prototype to avoid an error.  */
12513 #ifdef __cplusplus
12514 extern "C"
12515 #endif
12516 /* We use char because int might match the return type of a gcc2
12517    builtin and then its argument prototype would still apply.  */
12518 char dlopen ();
12519 int
12520 main ()
12521 {
12522 dlopen ();
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12529   (eval $ac_link) 2>conftest.er1
12530   ac_status=$?
12531   grep -v '^ *+' conftest.er1 >conftest.err
12532   rm -f conftest.er1
12533   cat conftest.err >&5
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); } &&
12536          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538   (eval $ac_try) 2>&5
12539   ac_status=$?
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); }; } &&
12542          { ac_try='test -s conftest$ac_exeext'
12543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544   (eval $ac_try) 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); }; }; then
12548   ac_cv_lib_dl_dlopen=yes
12549 else
12550   echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 ac_cv_lib_dl_dlopen=no
12554 fi
12555 rm -f conftest.err conftest.$ac_objext \
12556       conftest$ac_exeext conftest.$ac_ext
12557 LIBS=$ac_check_lib_save_LIBS
12558 fi
12559 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12560 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12561 if test $ac_cv_lib_dl_dlopen = yes; then
12562   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12563 else
12564   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12565 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12566 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12567   echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569   ac_check_lib_save_LIBS=$LIBS
12570 LIBS="-lsvld  $LIBS"
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h.  */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h.  */
12577
12578 /* Override any gcc2 internal prototype to avoid an error.  */
12579 #ifdef __cplusplus
12580 extern "C"
12581 #endif
12582 /* We use char because int might match the return type of a gcc2
12583    builtin and then its argument prototype would still apply.  */
12584 char dlopen ();
12585 int
12586 main ()
12587 {
12588 dlopen ();
12589   ;
12590   return 0;
12591 }
12592 _ACEOF
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595   (eval $ac_link) 2>conftest.er1
12596   ac_status=$?
12597   grep -v '^ *+' conftest.er1 >conftest.err
12598   rm -f conftest.er1
12599   cat conftest.err >&5
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); } &&
12602          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604   (eval $ac_try) 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; } &&
12608          { ac_try='test -s conftest$ac_exeext'
12609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610   (eval $ac_try) 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); }; }; then
12614   ac_cv_lib_svld_dlopen=yes
12615 else
12616   echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12618
12619 ac_cv_lib_svld_dlopen=no
12620 fi
12621 rm -f conftest.err conftest.$ac_objext \
12622       conftest$ac_exeext conftest.$ac_ext
12623 LIBS=$ac_check_lib_save_LIBS
12624 fi
12625 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12626 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12627 if test $ac_cv_lib_svld_dlopen = yes; then
12628   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12629 else
12630   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12631 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12632 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12633   echo $ECHO_N "(cached) $ECHO_C" >&6
12634 else
12635   ac_check_lib_save_LIBS=$LIBS
12636 LIBS="-ldld  $LIBS"
12637 cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h.  */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h.  */
12643
12644 /* Override any gcc2 internal prototype to avoid an error.  */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 /* We use char because int might match the return type of a gcc2
12649    builtin and then its argument prototype would still apply.  */
12650 char dld_link ();
12651 int
12652 main ()
12653 {
12654 dld_link ();
12655   ;
12656   return 0;
12657 }
12658 _ACEOF
12659 rm -f conftest.$ac_objext conftest$ac_exeext
12660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12661   (eval $ac_link) 2>conftest.er1
12662   ac_status=$?
12663   grep -v '^ *+' conftest.er1 >conftest.err
12664   rm -f conftest.er1
12665   cat conftest.err >&5
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } &&
12668          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670   (eval $ac_try) 2>&5
12671   ac_status=$?
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); }; } &&
12674          { ac_try='test -s conftest$ac_exeext'
12675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676   (eval $ac_try) 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); }; }; then
12680   ac_cv_lib_dld_dld_link=yes
12681 else
12682   echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12684
12685 ac_cv_lib_dld_dld_link=no
12686 fi
12687 rm -f conftest.err conftest.$ac_objext \
12688       conftest$ac_exeext conftest.$ac_ext
12689 LIBS=$ac_check_lib_save_LIBS
12690 fi
12691 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12692 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12693 if test $ac_cv_lib_dld_dld_link = yes; then
12694   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12695 fi
12696
12697
12698 fi
12699
12700
12701 fi
12702
12703
12704 fi
12705
12706
12707 fi
12708
12709
12710 fi
12711
12712     ;;
12713   esac
12714
12715   if test "x$lt_cv_dlopen" != xno; then
12716     enable_dlopen=yes
12717   else
12718     enable_dlopen=no
12719   fi
12720
12721   case $lt_cv_dlopen in
12722   dlopen)
12723     save_CPPFLAGS="$CPPFLAGS"
12724     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12725
12726     save_LDFLAGS="$LDFLAGS"
12727     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12728
12729     save_LIBS="$LIBS"
12730     LIBS="$lt_cv_dlopen_libs $LIBS"
12731
12732     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12733 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12734 if test "${lt_cv_dlopen_self+set}" = set; then
12735   echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737           if test "$cross_compiling" = yes; then :
12738   lt_cv_dlopen_self=cross
12739 else
12740   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12741   lt_status=$lt_dlunknown
12742   cat > conftest.$ac_ext <<EOF
12743 #line 12743 "configure"
12744 #include "confdefs.h"
12745
12746 #if HAVE_DLFCN_H
12747 #include <dlfcn.h>
12748 #endif
12749
12750 #include <stdio.h>
12751
12752 #ifdef RTLD_GLOBAL
12753 #  define LT_DLGLOBAL           RTLD_GLOBAL
12754 #else
12755 #  ifdef DL_GLOBAL
12756 #    define LT_DLGLOBAL         DL_GLOBAL
12757 #  else
12758 #    define LT_DLGLOBAL         0
12759 #  endif
12760 #endif
12761
12762 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12763    find out it does not work in some platform. */
12764 #ifndef LT_DLLAZY_OR_NOW
12765 #  ifdef RTLD_LAZY
12766 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12767 #  else
12768 #    ifdef DL_LAZY
12769 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12770 #    else
12771 #      ifdef RTLD_NOW
12772 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12773 #      else
12774 #        ifdef DL_NOW
12775 #          define LT_DLLAZY_OR_NOW      DL_NOW
12776 #        else
12777 #          define LT_DLLAZY_OR_NOW      0
12778 #        endif
12779 #      endif
12780 #    endif
12781 #  endif
12782 #endif
12783
12784 #ifdef __cplusplus
12785 extern "C" void exit (int);
12786 #endif
12787
12788 void fnord() { int i=42;}
12789 int main ()
12790 {
12791   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12792   int status = $lt_dlunknown;
12793
12794   if (self)
12795     {
12796       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12797       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12798       /* dlclose (self); */
12799     }
12800
12801     exit (status);
12802 }
12803 EOF
12804   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12805   (eval $ac_link) 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12809     (./conftest; exit; ) 2>/dev/null
12810     lt_status=$?
12811     case x$lt_status in
12812       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12813       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12814       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12815     esac
12816   else :
12817     # compilation failed
12818     lt_cv_dlopen_self=no
12819   fi
12820 fi
12821 rm -fr conftest*
12822
12823
12824 fi
12825 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12826 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12827
12828     if test "x$lt_cv_dlopen_self" = xyes; then
12829       LDFLAGS="$LDFLAGS $link_static_flag"
12830       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12831 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12832 if test "${lt_cv_dlopen_self_static+set}" = set; then
12833   echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835           if test "$cross_compiling" = yes; then :
12836   lt_cv_dlopen_self_static=cross
12837 else
12838   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12839   lt_status=$lt_dlunknown
12840   cat > conftest.$ac_ext <<EOF
12841 #line 12841 "configure"
12842 #include "confdefs.h"
12843
12844 #if HAVE_DLFCN_H
12845 #include <dlfcn.h>
12846 #endif
12847
12848 #include <stdio.h>
12849
12850 #ifdef RTLD_GLOBAL
12851 #  define LT_DLGLOBAL           RTLD_GLOBAL
12852 #else
12853 #  ifdef DL_GLOBAL
12854 #    define LT_DLGLOBAL         DL_GLOBAL
12855 #  else
12856 #    define LT_DLGLOBAL         0
12857 #  endif
12858 #endif
12859
12860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12861    find out it does not work in some platform. */
12862 #ifndef LT_DLLAZY_OR_NOW
12863 #  ifdef RTLD_LAZY
12864 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12865 #  else
12866 #    ifdef DL_LAZY
12867 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12868 #    else
12869 #      ifdef RTLD_NOW
12870 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12871 #      else
12872 #        ifdef DL_NOW
12873 #          define LT_DLLAZY_OR_NOW      DL_NOW
12874 #        else
12875 #          define LT_DLLAZY_OR_NOW      0
12876 #        endif
12877 #      endif
12878 #    endif
12879 #  endif
12880 #endif
12881
12882 #ifdef __cplusplus
12883 extern "C" void exit (int);
12884 #endif
12885
12886 void fnord() { int i=42;}
12887 int main ()
12888 {
12889   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12890   int status = $lt_dlunknown;
12891
12892   if (self)
12893     {
12894       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12895       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12896       /* dlclose (self); */
12897     }
12898
12899     exit (status);
12900 }
12901 EOF
12902   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12903   (eval $ac_link) 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12907     (./conftest; exit; ) 2>/dev/null
12908     lt_status=$?
12909     case x$lt_status in
12910       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12911       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12912       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12913     esac
12914   else :
12915     # compilation failed
12916     lt_cv_dlopen_self_static=no
12917   fi
12918 fi
12919 rm -fr conftest*
12920
12921
12922 fi
12923 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12924 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12925     fi
12926
12927     CPPFLAGS="$save_CPPFLAGS"
12928     LDFLAGS="$save_LDFLAGS"
12929     LIBS="$save_LIBS"
12930     ;;
12931   esac
12932
12933   case $lt_cv_dlopen_self in
12934   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12935   *) enable_dlopen_self=unknown ;;
12936   esac
12937
12938   case $lt_cv_dlopen_self_static in
12939   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12940   *) enable_dlopen_self_static=unknown ;;
12941   esac
12942 fi
12943
12944
12945 # The else clause should only fire when bootstrapping the
12946 # libtool distribution, otherwise you forgot to ship ltmain.sh
12947 # with your package, and you will get complaints that there are
12948 # no rules to generate ltmain.sh.
12949 if test -f "$ltmain"; then
12950   # See if we are running on zsh, and set the options which allow our commands through
12951   # without removal of \ escapes.
12952   if test -n "${ZSH_VERSION+set}" ; then
12953     setopt NO_GLOB_SUBST
12954   fi
12955   # Now quote all the things that may contain metacharacters while being
12956   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12957   # variables and quote the copies for generation of the libtool script.
12958   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12959     SED SHELL STRIP \
12960     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12961     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12962     deplibs_check_method reload_flag reload_cmds need_locks \
12963     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12964     lt_cv_sys_global_symbol_to_c_name_address \
12965     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12966     old_postinstall_cmds old_postuninstall_cmds \
12967     compiler_CXX \
12968     CC_CXX \
12969     LD_CXX \
12970     lt_prog_compiler_wl_CXX \
12971     lt_prog_compiler_pic_CXX \
12972     lt_prog_compiler_static_CXX \
12973     lt_prog_compiler_no_builtin_flag_CXX \
12974     export_dynamic_flag_spec_CXX \
12975     thread_safe_flag_spec_CXX \
12976     whole_archive_flag_spec_CXX \
12977     enable_shared_with_static_runtimes_CXX \
12978     old_archive_cmds_CXX \
12979     old_archive_from_new_cmds_CXX \
12980     predep_objects_CXX \
12981     postdep_objects_CXX \
12982     predeps_CXX \
12983     postdeps_CXX \
12984     compiler_lib_search_path_CXX \
12985     archive_cmds_CXX \
12986     archive_expsym_cmds_CXX \
12987     postinstall_cmds_CXX \
12988     postuninstall_cmds_CXX \
12989     old_archive_from_expsyms_cmds_CXX \
12990     allow_undefined_flag_CXX \
12991     no_undefined_flag_CXX \
12992     export_symbols_cmds_CXX \
12993     hardcode_libdir_flag_spec_CXX \
12994     hardcode_libdir_flag_spec_ld_CXX \
12995     hardcode_libdir_separator_CXX \
12996     hardcode_automatic_CXX \
12997     module_cmds_CXX \
12998     module_expsym_cmds_CXX \
12999     lt_cv_prog_compiler_c_o_CXX \
13000     exclude_expsyms_CXX \
13001     include_expsyms_CXX; do
13002
13003     case $var in
13004     old_archive_cmds_CXX | \
13005     old_archive_from_new_cmds_CXX | \
13006     archive_cmds_CXX | \
13007     archive_expsym_cmds_CXX | \
13008     module_cmds_CXX | \
13009     module_expsym_cmds_CXX | \
13010     old_archive_from_expsyms_cmds_CXX | \
13011     export_symbols_cmds_CXX | \
13012     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13013     postinstall_cmds | postuninstall_cmds | \
13014     old_postinstall_cmds | old_postuninstall_cmds | \
13015     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13016       # Double-quote double-evaled strings.
13017       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13018       ;;
13019     *)
13020       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13021       ;;
13022     esac
13023   done
13024
13025   case $lt_echo in
13026   *'\$0 --fallback-echo"')
13027     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13028     ;;
13029   esac
13030
13031 cfgfile="$ofile"
13032
13033   cat <<__EOF__ >> "$cfgfile"
13034 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13035
13036 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13037
13038 # Shell to use when invoking shell scripts.
13039 SHELL=$lt_SHELL
13040
13041 # Whether or not to build shared libraries.
13042 build_libtool_libs=$enable_shared
13043
13044 # Whether or not to build static libraries.
13045 build_old_libs=$enable_static
13046
13047 # Whether or not to add -lc for building shared libraries.
13048 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13049
13050 # Whether or not to disallow shared libs when runtime libs are static
13051 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13052
13053 # Whether or not to optimize for fast installation.
13054 fast_install=$enable_fast_install
13055
13056 # The host system.
13057 host_alias=$host_alias
13058 host=$host
13059
13060 # An echo program that does not interpret backslashes.
13061 echo=$lt_echo
13062
13063 # The archiver.
13064 AR=$lt_AR
13065 AR_FLAGS=$lt_AR_FLAGS
13066
13067 # A C compiler.
13068 LTCC=$lt_LTCC
13069
13070 # A language-specific compiler.
13071 CC=$lt_compiler_CXX
13072
13073 # Is the compiler the GNU C compiler?
13074 with_gcc=$GCC_CXX
13075
13076 # An ERE matcher.
13077 EGREP=$lt_EGREP
13078
13079 # The linker used to build libraries.
13080 LD=$lt_LD_CXX
13081
13082 # Whether we need hard or soft links.
13083 LN_S=$lt_LN_S
13084
13085 # A BSD-compatible nm program.
13086 NM=$lt_NM
13087
13088 # A symbol stripping program
13089 STRIP=$lt_STRIP
13090
13091 # Used to examine libraries when file_magic_cmd begins "file"
13092 MAGIC_CMD=$MAGIC_CMD
13093
13094 # Used on cygwin: DLL creation program.
13095 DLLTOOL="$DLLTOOL"
13096
13097 # Used on cygwin: object dumper.
13098 OBJDUMP="$OBJDUMP"
13099
13100 # Used on cygwin: assembler.
13101 AS="$AS"
13102
13103 # The name of the directory that contains temporary libtool files.
13104 objdir=$objdir
13105
13106 # How to create reloadable object files.
13107 reload_flag=$lt_reload_flag
13108 reload_cmds=$lt_reload_cmds
13109
13110 # How to pass a linker flag through the compiler.
13111 wl=$lt_lt_prog_compiler_wl_CXX
13112
13113 # Object file suffix (normally "o").
13114 objext="$ac_objext"
13115
13116 # Old archive suffix (normally "a").
13117 libext="$libext"
13118
13119 # Shared library suffix (normally ".so").
13120 shrext_cmds='$shrext_cmds'
13121
13122 # Executable file suffix (normally "").
13123 exeext="$exeext"
13124
13125 # Additional compiler flags for building library objects.
13126 pic_flag=$lt_lt_prog_compiler_pic_CXX
13127 pic_mode=$pic_mode
13128
13129 # What is the maximum length of a command?
13130 max_cmd_len=$lt_cv_sys_max_cmd_len
13131
13132 # Does compiler simultaneously support -c and -o options?
13133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13134
13135 # Must we lock files when doing compilation ?
13136 need_locks=$lt_need_locks
13137
13138 # Do we need the lib prefix for modules?
13139 need_lib_prefix=$need_lib_prefix
13140
13141 # Do we need a version for libraries?
13142 need_version=$need_version
13143
13144 # Whether dlopen is supported.
13145 dlopen_support=$enable_dlopen
13146
13147 # Whether dlopen of programs is supported.
13148 dlopen_self=$enable_dlopen_self
13149
13150 # Whether dlopen of statically linked programs is supported.
13151 dlopen_self_static=$enable_dlopen_self_static
13152
13153 # Compiler flag to prevent dynamic linking.
13154 link_static_flag=$lt_lt_prog_compiler_static_CXX
13155
13156 # Compiler flag to turn off builtin functions.
13157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13158
13159 # Compiler flag to allow reflexive dlopens.
13160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13161
13162 # Compiler flag to generate shared objects directly from archives.
13163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13164
13165 # Compiler flag to generate thread-safe objects.
13166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13167
13168 # Library versioning type.
13169 version_type=$version_type
13170
13171 # Format of library name prefix.
13172 libname_spec=$lt_libname_spec
13173
13174 # List of archive names.  First name is the real one, the rest are links.
13175 # The last name is the one that the linker finds with -lNAME.
13176 library_names_spec=$lt_library_names_spec
13177
13178 # The coded name of the library, if different from the real name.
13179 soname_spec=$lt_soname_spec
13180
13181 # Commands used to build and install an old-style archive.
13182 RANLIB=$lt_RANLIB
13183 old_archive_cmds=$lt_old_archive_cmds_CXX
13184 old_postinstall_cmds=$lt_old_postinstall_cmds
13185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13186
13187 # Create an old-style archive from a shared archive.
13188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13189
13190 # Create a temporary old-style archive to link instead of a shared archive.
13191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13192
13193 # Commands used to build and install a shared archive.
13194 archive_cmds=$lt_archive_cmds_CXX
13195 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13196 postinstall_cmds=$lt_postinstall_cmds
13197 postuninstall_cmds=$lt_postuninstall_cmds
13198
13199 # Commands used to build a loadable module (assumed same as above if empty)
13200 module_cmds=$lt_module_cmds_CXX
13201 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13202
13203 # Commands to strip libraries.
13204 old_striplib=$lt_old_striplib
13205 striplib=$lt_striplib
13206
13207 # Dependencies to place before the objects being linked to create a
13208 # shared library.
13209 predep_objects=$lt_predep_objects_CXX
13210
13211 # Dependencies to place after the objects being linked to create a
13212 # shared library.
13213 postdep_objects=$lt_postdep_objects_CXX
13214
13215 # Dependencies to place before the objects being linked to create a
13216 # shared library.
13217 predeps=$lt_predeps_CXX
13218
13219 # Dependencies to place after the objects being linked to create a
13220 # shared library.
13221 postdeps=$lt_postdeps_CXX
13222
13223 # The library search path used internally by the compiler when linking
13224 # a shared library.
13225 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13226
13227 # Method to check whether dependent libraries are shared objects.
13228 deplibs_check_method=$lt_deplibs_check_method
13229
13230 # Command to use when deplibs_check_method == file_magic.
13231 file_magic_cmd=$lt_file_magic_cmd
13232
13233 # Flag that allows shared libraries with undefined symbols to be built.
13234 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13235
13236 # Flag that forces no undefined symbols.
13237 no_undefined_flag=$lt_no_undefined_flag_CXX
13238
13239 # Commands used to finish a libtool library installation in a directory.
13240 finish_cmds=$lt_finish_cmds
13241
13242 # Same as above, but a single script fragment to be evaled but not shown.
13243 finish_eval=$lt_finish_eval
13244
13245 # Take the output of nm and produce a listing of raw symbols and C names.
13246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13247
13248 # Transform the output of nm in a proper C declaration
13249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13250
13251 # Transform the output of nm in a C name address pair
13252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13253
13254 # This is the shared library runtime path variable.
13255 runpath_var=$runpath_var
13256
13257 # This is the shared library path variable.
13258 shlibpath_var=$shlibpath_var
13259
13260 # Is shlibpath searched before the hard-coded library search path?
13261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13262
13263 # How to hardcode a shared library path into an executable.
13264 hardcode_action=$hardcode_action_CXX
13265
13266 # Whether we should hardcode library paths into libraries.
13267 hardcode_into_libs=$hardcode_into_libs
13268
13269 # Flag to hardcode \$libdir into a binary during linking.
13270 # This must work even if \$libdir does not exist.
13271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13272
13273 # If ld is used when linking, flag to hardcode \$libdir into
13274 # a binary during linking. This must work even if \$libdir does
13275 # not exist.
13276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13277
13278 # Whether we need a single -rpath flag with a separated argument.
13279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13280
13281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13282 # resulting binary.
13283 hardcode_direct=$hardcode_direct_CXX
13284
13285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13286 # resulting binary.
13287 hardcode_minus_L=$hardcode_minus_L_CXX
13288
13289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13290 # the resulting binary.
13291 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13292
13293 # Set to yes if building a shared library automatically hardcodes DIR into the library
13294 # and all subsequent libraries and executables linked against it.
13295 hardcode_automatic=$hardcode_automatic_CXX
13296
13297 # Variables whose values should be saved in libtool wrapper scripts and
13298 # restored at relink time.
13299 variables_saved_for_relink="$variables_saved_for_relink"
13300
13301 # Whether libtool must link a program against all its dependency libraries.
13302 link_all_deplibs=$link_all_deplibs_CXX
13303
13304 # Compile-time system search path for libraries
13305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13306
13307 # Run-time system search path for libraries
13308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13309
13310 # Fix the shell variable \$srcfile for the compiler.
13311 fix_srcfile_path="$fix_srcfile_path_CXX"
13312
13313 # Set to yes if exported symbols are required.
13314 always_export_symbols=$always_export_symbols_CXX
13315
13316 # The commands to list exported symbols.
13317 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13318
13319 # The commands to extract the exported symbol list from a shared archive.
13320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13321
13322 # Symbols that should not be listed in the preloaded symbols.
13323 exclude_expsyms=$lt_exclude_expsyms_CXX
13324
13325 # Symbols that must always be exported.
13326 include_expsyms=$lt_include_expsyms_CXX
13327
13328 # ### END LIBTOOL TAG CONFIG: $tagname
13329
13330 __EOF__
13331
13332
13333 else
13334   # If there is no Makefile yet, we rely on a make rule to execute
13335   # `config.status --recheck' to rerun these tests and create the
13336   # libtool script then.
13337   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13338   if test -f "$ltmain_in"; then
13339     test -f Makefile && make "$ltmain"
13340   fi
13341 fi
13342
13343
13344 ac_ext=c
13345 ac_cpp='$CPP $CPPFLAGS'
13346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13349
13350 CC=$lt_save_CC
13351 LDCXX=$LD
13352 LD=$lt_save_LD
13353 GCC=$lt_save_GCC
13354 with_gnu_ldcxx=$with_gnu_ld
13355 with_gnu_ld=$lt_save_with_gnu_ld
13356 lt_cv_path_LDCXX=$lt_cv_path_LD
13357 lt_cv_path_LD=$lt_save_path_LD
13358 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13359 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13360
13361         else
13362           tagname=""
13363         fi
13364         ;;
13365
13366       F77)
13367         if test -n "$F77" && test "X$F77" != "Xno"; then
13368
13369 ac_ext=f
13370 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13371 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13372 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13373
13374
13375 archive_cmds_need_lc_F77=no
13376 allow_undefined_flag_F77=
13377 always_export_symbols_F77=no
13378 archive_expsym_cmds_F77=
13379 export_dynamic_flag_spec_F77=
13380 hardcode_direct_F77=no
13381 hardcode_libdir_flag_spec_F77=
13382 hardcode_libdir_flag_spec_ld_F77=
13383 hardcode_libdir_separator_F77=
13384 hardcode_minus_L_F77=no
13385 hardcode_automatic_F77=no
13386 module_cmds_F77=
13387 module_expsym_cmds_F77=
13388 link_all_deplibs_F77=unknown
13389 old_archive_cmds_F77=$old_archive_cmds
13390 no_undefined_flag_F77=
13391 whole_archive_flag_spec_F77=
13392 enable_shared_with_static_runtimes_F77=no
13393
13394 # Source file extension for f77 test sources.
13395 ac_ext=f
13396
13397 # Object file extension for compiled f77 test sources.
13398 objext=o
13399 objext_F77=$objext
13400
13401 # Code to be used in simple compile tests
13402 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13403
13404 # Code to be used in simple link tests
13405 lt_simple_link_test_code="      program t\n      end\n"
13406
13407 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13408
13409 # If no C compiler was specified, use CC.
13410 LTCC=${LTCC-"$CC"}
13411
13412 # Allow CC to be a program name with arguments.
13413 compiler=$CC
13414
13415
13416 # Allow CC to be a program name with arguments.
13417 lt_save_CC="$CC"
13418 CC=${F77-"f77"}
13419 compiler=$CC
13420 compiler_F77=$CC
13421 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13422
13423 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13424 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13425 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13426 echo "${ECHO_T}$can_build_shared" >&6
13427
13428 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13429 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13430 test "$can_build_shared" = "no" && enable_shared=no
13431
13432 # On AIX, shared libraries and static libraries use the same namespace, and
13433 # are all built from PIC.
13434 case "$host_os" in
13435 aix3*)
13436   test "$enable_shared" = yes && enable_static=no
13437   if test -n "$RANLIB"; then
13438     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13439     postinstall_cmds='$RANLIB $lib'
13440   fi
13441   ;;
13442 aix4* | aix5*)
13443   test "$enable_shared" = yes && enable_static=no
13444   ;;
13445 esac
13446 echo "$as_me:$LINENO: result: $enable_shared" >&5
13447 echo "${ECHO_T}$enable_shared" >&6
13448
13449 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13450 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13451 # Make sure either enable_shared or enable_static is yes.
13452 test "$enable_shared" = yes || enable_static=yes
13453 echo "$as_me:$LINENO: result: $enable_static" >&5
13454 echo "${ECHO_T}$enable_static" >&6
13455
13456 test "$ld_shlibs_F77" = no && can_build_shared=no
13457
13458 GCC_F77="$G77"
13459 LD_F77="$LD"
13460
13461 lt_prog_compiler_wl_F77=
13462 lt_prog_compiler_pic_F77=
13463 lt_prog_compiler_static_F77=
13464
13465 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13466 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13467
13468   if test "$GCC" = yes; then
13469     lt_prog_compiler_wl_F77='-Wl,'
13470     lt_prog_compiler_static_F77='-static'
13471
13472     case $host_os in
13473       aix*)
13474       # All AIX code is PIC.
13475       if test "$host_cpu" = ia64; then
13476         # AIX 5 now supports IA64 processor
13477         lt_prog_compiler_static_F77='-Bstatic'
13478       fi
13479       ;;
13480
13481     amigaos*)
13482       # FIXME: we need at least 68020 code to build shared libraries, but
13483       # adding the `-m68020' flag to GCC prevents building anything better,
13484       # like `-m68040'.
13485       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13486       ;;
13487
13488     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13489       # PIC is the default for these OSes.
13490       ;;
13491
13492     mingw* | pw32* | os2*)
13493       # This hack is so that the source file can tell whether it is being
13494       # built for inclusion in a dll (and should export symbols for example).
13495       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13496       ;;
13497
13498     darwin* | rhapsody*)
13499       # PIC is the default on this platform
13500       # Common symbols not allowed in MH_DYLIB files
13501       lt_prog_compiler_pic_F77='-fno-common'
13502       ;;
13503
13504     msdosdjgpp*)
13505       # Just because we use GCC doesn't mean we suddenly get shared libraries
13506       # on systems that don't support them.
13507       lt_prog_compiler_can_build_shared_F77=no
13508       enable_shared=no
13509       ;;
13510
13511     sysv4*MP*)
13512       if test -d /usr/nec; then
13513         lt_prog_compiler_pic_F77=-Kconform_pic
13514       fi
13515       ;;
13516
13517     hpux*)
13518       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13519       # not for PA HP-UX.
13520       case "$host_cpu" in
13521       hppa*64*|ia64*)
13522         # +Z the default
13523         ;;
13524       *)
13525         lt_prog_compiler_pic_F77='-fPIC'
13526         ;;
13527       esac
13528       ;;
13529
13530     *)
13531       lt_prog_compiler_pic_F77='-fPIC'
13532       ;;
13533     esac
13534   else
13535     # PORTME Check for flag to pass linker flags through the system compiler.
13536     case $host_os in
13537     aix*)
13538       lt_prog_compiler_wl_F77='-Wl,'
13539       if test "$host_cpu" = ia64; then
13540         # AIX 5 now supports IA64 processor
13541         lt_prog_compiler_static_F77='-Bstatic'
13542       else
13543         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13544       fi
13545       ;;
13546
13547     mingw* | pw32* | os2*)
13548       # This hack is so that the source file can tell whether it is being
13549       # built for inclusion in a dll (and should export symbols for example).
13550       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13551       ;;
13552
13553     hpux9* | hpux10* | hpux11*)
13554       lt_prog_compiler_wl_F77='-Wl,'
13555       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13556       # not for PA HP-UX.
13557       case "$host_cpu" in
13558       hppa*64*|ia64*)
13559         # +Z the default
13560         ;;
13561       *)
13562         lt_prog_compiler_pic_F77='+Z'
13563         ;;
13564       esac
13565       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13566       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13567       ;;
13568
13569     irix5* | irix6* | nonstopux*)
13570       lt_prog_compiler_wl_F77='-Wl,'
13571       # PIC (with -KPIC) is the default.
13572       lt_prog_compiler_static_F77='-non_shared'
13573       ;;
13574
13575     newsos6)
13576       lt_prog_compiler_pic_F77='-KPIC'
13577       lt_prog_compiler_static_F77='-Bstatic'
13578       ;;
13579
13580     linux*)
13581       case $CC in
13582       icc* | ecc*)
13583         lt_prog_compiler_wl_F77='-Wl,'
13584         lt_prog_compiler_pic_F77='-KPIC'
13585         lt_prog_compiler_static_F77='-static'
13586         ;;
13587       ccc*)
13588         lt_prog_compiler_wl_F77='-Wl,'
13589         # All Alpha code is PIC.
13590         lt_prog_compiler_static_F77='-non_shared'
13591         ;;
13592       esac
13593       ;;
13594
13595     osf3* | osf4* | osf5*)
13596       lt_prog_compiler_wl_F77='-Wl,'
13597       # All OSF/1 code is PIC.
13598       lt_prog_compiler_static_F77='-non_shared'
13599       ;;
13600
13601     sco3.2v5*)
13602       lt_prog_compiler_pic_F77='-Kpic'
13603       lt_prog_compiler_static_F77='-dn'
13604       ;;
13605
13606     solaris*)
13607       lt_prog_compiler_wl_F77='-Wl,'
13608       lt_prog_compiler_pic_F77='-KPIC'
13609       lt_prog_compiler_static_F77='-Bstatic'
13610       ;;
13611
13612     sunos4*)
13613       lt_prog_compiler_wl_F77='-Qoption ld '
13614       lt_prog_compiler_pic_F77='-PIC'
13615       lt_prog_compiler_static_F77='-Bstatic'
13616       ;;
13617
13618     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13619       lt_prog_compiler_wl_F77='-Wl,'
13620       lt_prog_compiler_pic_F77='-KPIC'
13621       lt_prog_compiler_static_F77='-Bstatic'
13622       ;;
13623
13624     sysv4*MP*)
13625       if test -d /usr/nec ;then
13626         lt_prog_compiler_pic_F77='-Kconform_pic'
13627         lt_prog_compiler_static_F77='-Bstatic'
13628       fi
13629       ;;
13630
13631     uts4*)
13632       lt_prog_compiler_pic_F77='-pic'
13633       lt_prog_compiler_static_F77='-Bstatic'
13634       ;;
13635
13636     *)
13637       lt_prog_compiler_can_build_shared_F77=no
13638       ;;
13639     esac
13640   fi
13641
13642 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13643 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13644
13645 #
13646 # Check to make sure the PIC flag actually works.
13647 #
13648 if test -n "$lt_prog_compiler_pic_F77"; then
13649
13650 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13651 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13652 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13653   echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655   lt_prog_compiler_pic_works_F77=no
13656   ac_outfile=conftest.$ac_objext
13657    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13658    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13659    # Insert the option either (1) after the last *FLAGS variable, or
13660    # (2) before a word containing "conftest.", or (3) at the end.
13661    # Note that $ac_compile itself does not contain backslashes and begins
13662    # with a dollar sign (not a hyphen), so the echo should work correctly.
13663    # The option is referenced via a variable to avoid confusing sed.
13664    lt_compile=`echo "$ac_compile" | $SED \
13665    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13667    -e 's:$: $lt_compiler_flag:'`
13668    (eval echo "\"\$as_me:13668: $lt_compile\"" >&5)
13669    (eval "$lt_compile" 2>conftest.err)
13670    ac_status=$?
13671    cat conftest.err >&5
13672    echo "$as_me:13672: \$? = $ac_status" >&5
13673    if (exit $ac_status) && test -s "$ac_outfile"; then
13674      # The compiler can only warn and ignore the option if not recognized
13675      # So say no if there are warnings
13676      if test ! -s conftest.err; then
13677        lt_prog_compiler_pic_works_F77=yes
13678      fi
13679    fi
13680    $rm conftest*
13681
13682 fi
13683 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13684 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13685
13686 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13687     case $lt_prog_compiler_pic_F77 in
13688      "" | " "*) ;;
13689      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13690      esac
13691 else
13692     lt_prog_compiler_pic_F77=
13693      lt_prog_compiler_can_build_shared_F77=no
13694 fi
13695
13696 fi
13697 case "$host_os" in
13698   # For platforms which do not support PIC, -DPIC is meaningless:
13699   *djgpp*)
13700     lt_prog_compiler_pic_F77=
13701     ;;
13702   *)
13703     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13704     ;;
13705 esac
13706
13707 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13708 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13709 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13710   echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712   lt_cv_prog_compiler_c_o_F77=no
13713    $rm -r conftest 2>/dev/null
13714    mkdir conftest
13715    cd conftest
13716    mkdir out
13717    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13718
13719    lt_compiler_flag="-o out/conftest2.$ac_objext"
13720    # Insert the option either (1) after the last *FLAGS variable, or
13721    # (2) before a word containing "conftest.", or (3) at the end.
13722    # Note that $ac_compile itself does not contain backslashes and begins
13723    # with a dollar sign (not a hyphen), so the echo should work correctly.
13724    lt_compile=`echo "$ac_compile" | $SED \
13725    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13726    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13727    -e 's:$: $lt_compiler_flag:'`
13728    (eval echo "\"\$as_me:13728: $lt_compile\"" >&5)
13729    (eval "$lt_compile" 2>out/conftest.err)
13730    ac_status=$?
13731    cat out/conftest.err >&5
13732    echo "$as_me:13732: \$? = $ac_status" >&5
13733    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13734    then
13735      # The compiler can only warn and ignore the option if not recognized
13736      # So say no if there are warnings
13737      if test ! -s out/conftest.err; then
13738        lt_cv_prog_compiler_c_o_F77=yes
13739      fi
13740    fi
13741    chmod u+w .
13742    $rm conftest*
13743    # SGI C++ compiler will create directory out/ii_files/ for
13744    # template instantiation
13745    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13746    $rm out/* && rmdir out
13747    cd ..
13748    rmdir conftest
13749    $rm conftest*
13750
13751 fi
13752 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13753 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13754
13755
13756 hard_links="nottested"
13757 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13758   # do not overwrite the value of need_locks provided by the user
13759   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13760 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13761   hard_links=yes
13762   $rm conftest*
13763   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13764   touch conftest.a
13765   ln conftest.a conftest.b 2>&5 || hard_links=no
13766   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13767   echo "$as_me:$LINENO: result: $hard_links" >&5
13768 echo "${ECHO_T}$hard_links" >&6
13769   if test "$hard_links" = no; then
13770     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13771 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13772     need_locks=warn
13773   fi
13774 else
13775   need_locks=no
13776 fi
13777
13778 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13779 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13780
13781   runpath_var=
13782   allow_undefined_flag_F77=
13783   enable_shared_with_static_runtimes_F77=no
13784   archive_cmds_F77=
13785   archive_expsym_cmds_F77=
13786   old_archive_From_new_cmds_F77=
13787   old_archive_from_expsyms_cmds_F77=
13788   export_dynamic_flag_spec_F77=
13789   whole_archive_flag_spec_F77=
13790   thread_safe_flag_spec_F77=
13791   hardcode_libdir_flag_spec_F77=
13792   hardcode_libdir_flag_spec_ld_F77=
13793   hardcode_libdir_separator_F77=
13794   hardcode_direct_F77=no
13795   hardcode_minus_L_F77=no
13796   hardcode_shlibpath_var_F77=unsupported
13797   link_all_deplibs_F77=unknown
13798   hardcode_automatic_F77=no
13799   module_cmds_F77=
13800   module_expsym_cmds_F77=
13801   always_export_symbols_F77=no
13802   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13803   # include_expsyms should be a list of space-separated symbols to be *always*
13804   # included in the symbol list
13805   include_expsyms_F77=
13806   # exclude_expsyms can be an extended regexp of symbols to exclude
13807   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13808   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13809   # as well as any symbol that contains `d'.
13810   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13811   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13812   # platforms (ab)use it in PIC code, but their linkers get confused if
13813   # the symbol is explicitly referenced.  Since portable code cannot
13814   # rely on this symbol name, it's probably fine to never include it in
13815   # preloaded symbol tables.
13816   extract_expsyms_cmds=
13817
13818   case $host_os in
13819   cygwin* | mingw* | pw32*)
13820     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13821     # When not using gcc, we currently assume that we are using
13822     # Microsoft Visual C++.
13823     if test "$GCC" != yes; then
13824       with_gnu_ld=no
13825     fi
13826     ;;
13827   openbsd*)
13828     with_gnu_ld=no
13829     ;;
13830   esac
13831
13832   ld_shlibs_F77=yes
13833   if test "$with_gnu_ld" = yes; then
13834     # If archive_cmds runs LD, not CC, wlarc should be empty
13835     wlarc='${wl}'
13836
13837     # See if GNU ld supports shared libraries.
13838     case $host_os in
13839     aix3* | aix4* | aix5*)
13840       # On AIX/PPC, the GNU linker is very broken
13841       if test "$host_cpu" != ia64; then
13842         ld_shlibs_F77=no
13843         cat <<EOF 1>&2
13844
13845 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13846 *** to be unable to reliably create shared libraries on AIX.
13847 *** Therefore, libtool is disabling shared libraries support.  If you
13848 *** really care for shared libraries, you may want to modify your PATH
13849 *** so that a non-GNU linker is found, and then restart.
13850
13851 EOF
13852       fi
13853       ;;
13854
13855     amigaos*)
13856       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)'
13857       hardcode_libdir_flag_spec_F77='-L$libdir'
13858       hardcode_minus_L_F77=yes
13859
13860       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13861       # that the semantics of dynamic libraries on AmigaOS, at least up
13862       # to version 4, is to share data among multiple programs linked
13863       # with the same dynamic library.  Since this doesn't match the
13864       # behavior of shared libraries on other platforms, we can't use
13865       # them.
13866       ld_shlibs_F77=no
13867       ;;
13868
13869     beos*)
13870       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13871         allow_undefined_flag_F77=unsupported
13872         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13873         # support --undefined.  This deserves some investigation.  FIXME
13874         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13875       else
13876         ld_shlibs_F77=no
13877       fi
13878       ;;
13879
13880     cygwin* | mingw* | pw32*)
13881       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13882       # as there is no search path for DLLs.
13883       hardcode_libdir_flag_spec_F77='-L$libdir'
13884       allow_undefined_flag_F77=unsupported
13885       always_export_symbols_F77=no
13886       enable_shared_with_static_runtimes_F77=yes
13887       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13888
13889       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13890         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13891         # If the export-symbols file already is a .def file (1st line
13892         # is EXPORTS), use it as is; otherwise, prepend...
13893         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13894           cp $export_symbols $output_objdir/$soname.def;
13895         else
13896           echo EXPORTS > $output_objdir/$soname.def;
13897           cat $export_symbols >> $output_objdir/$soname.def;
13898         fi~
13899         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13900       else
13901         ld_shlibs=no
13902       fi
13903       ;;
13904
13905     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13906       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13907         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13908         wlarc=
13909       else
13910         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13911         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13912       fi
13913       ;;
13914
13915     solaris* | sysv5*)
13916       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13917         ld_shlibs_F77=no
13918         cat <<EOF 1>&2
13919
13920 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13921 *** create shared libraries on Solaris systems.  Therefore, libtool
13922 *** is disabling shared libraries support.  We urge you to upgrade GNU
13923 *** binutils to release 2.9.1 or newer.  Another option is to modify
13924 *** your PATH or compiler configuration so that the native linker is
13925 *** used, and then restart.
13926
13927 EOF
13928       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13929         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13930         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13931       else
13932         ld_shlibs_F77=no
13933       fi
13934       ;;
13935
13936     sunos4*)
13937       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13938       wlarc=
13939       hardcode_direct_F77=yes
13940       hardcode_shlibpath_var_F77=no
13941       ;;
13942
13943   linux*)
13944     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13945         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13946         archive_cmds_F77="$tmp_archive_cmds"
13947       supports_anon_versioning=no
13948       case `$LD -v 2>/dev/null` in
13949         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13950         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13951         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13952         *\ 2.11.*) ;; # other 2.11 versions
13953         *) supports_anon_versioning=yes ;;
13954       esac
13955       if test $supports_anon_versioning = yes; then
13956         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13957 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13958 $echo "local: *; };" >> $output_objdir/$libname.ver~
13959         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13960       else
13961         archive_expsym_cmds_F77="$tmp_archive_cmds"
13962       fi
13963       link_all_deplibs_F77=no
13964     else
13965       ld_shlibs_F77=no
13966     fi
13967     ;;
13968
13969     *)
13970       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13971         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13972         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13973       else
13974         ld_shlibs_F77=no
13975       fi
13976       ;;
13977     esac
13978
13979     if test "$ld_shlibs_F77" = yes; then
13980       runpath_var=LD_RUN_PATH
13981       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13982       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13983       # ancient GNU ld didn't support --whole-archive et. al.
13984       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13985         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13986       else
13987         whole_archive_flag_spec_F77=
13988       fi
13989     fi
13990   else
13991     # PORTME fill in a description of your system's linker (not GNU ld)
13992     case $host_os in
13993     aix3*)
13994       allow_undefined_flag_F77=unsupported
13995       always_export_symbols_F77=yes
13996       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'
13997       # Note: this linker hardcodes the directories in LIBPATH if there
13998       # are no directories specified by -L.
13999       hardcode_minus_L_F77=yes
14000       if test "$GCC" = yes && test -z "$link_static_flag"; then
14001         # Neither direct hardcoding nor static linking is supported with a
14002         # broken collect2.
14003         hardcode_direct_F77=unsupported
14004       fi
14005       ;;
14006
14007     aix4* | aix5*)
14008       if test "$host_cpu" = ia64; then
14009         # On IA64, the linker does run time linking by default, so we don't
14010         # have to do anything special.
14011         aix_use_runtimelinking=no
14012         exp_sym_flag='-Bexport'
14013         no_entry_flag=""
14014       else
14015         # If we're using GNU nm, then we don't want the "-C" option.
14016         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14017         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14018           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'
14019         else
14020           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'
14021         fi
14022         aix_use_runtimelinking=no
14023
14024         # Test if we are trying to use run time linking or normal
14025         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14026         # need to do runtime linking.
14027         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14028           for ld_flag in $LDFLAGS; do
14029           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14030             aix_use_runtimelinking=yes
14031             break
14032           fi
14033           done
14034         esac
14035
14036         exp_sym_flag='-bexport'
14037         no_entry_flag='-bnoentry'
14038       fi
14039
14040       # When large executables or shared objects are built, AIX ld can
14041       # have problems creating the table of contents.  If linking a library
14042       # or program results in "error TOC overflow" add -mminimal-toc to
14043       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14044       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14045
14046       archive_cmds_F77=''
14047       hardcode_direct_F77=yes
14048       hardcode_libdir_separator_F77=':'
14049       link_all_deplibs_F77=yes
14050
14051       if test "$GCC" = yes; then
14052         case $host_os in aix4.012|aix4.012.*)
14053         # We only want to do this on AIX 4.2 and lower, the check
14054         # below for broken collect2 doesn't work under 4.3+
14055           collect2name=`${CC} -print-prog-name=collect2`
14056           if test -f "$collect2name" && \
14057            strings "$collect2name" | grep resolve_lib_name >/dev/null
14058           then
14059           # We have reworked collect2
14060           hardcode_direct_F77=yes
14061           else
14062           # We have old collect2
14063           hardcode_direct_F77=unsupported
14064           # It fails to find uninstalled libraries when the uninstalled
14065           # path is not listed in the libpath.  Setting hardcode_minus_L
14066           # to unsupported forces relinking
14067           hardcode_minus_L_F77=yes
14068           hardcode_libdir_flag_spec_F77='-L$libdir'
14069           hardcode_libdir_separator_F77=
14070           fi
14071         esac
14072         shared_flag='-shared'
14073       else
14074         # not using gcc
14075         if test "$host_cpu" = ia64; then
14076         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14077         # chokes on -Wl,-G. The following line is correct:
14078           shared_flag='-G'
14079         else
14080         if test "$aix_use_runtimelinking" = yes; then
14081             shared_flag='${wl}-G'
14082           else
14083             shared_flag='${wl}-bM:SRE'
14084         fi
14085         fi
14086       fi
14087
14088       # It seems that -bexpall does not export symbols beginning with
14089       # underscore (_), so it is better to generate a list of symbols to export.
14090       always_export_symbols_F77=yes
14091       if test "$aix_use_runtimelinking" = yes; then
14092         # Warning - without using the other runtime loading flags (-brtl),
14093         # -berok will link without error, but may produce a broken library.
14094         allow_undefined_flag_F77='-berok'
14095        # Determine the default libpath from the value encoded in an empty executable.
14096        cat >conftest.$ac_ext <<_ACEOF
14097       program main
14098
14099       end
14100 _ACEOF
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14103   (eval $ac_link) 2>conftest.er1
14104   ac_status=$?
14105   grep -v '^ *+' conftest.er1 >conftest.err
14106   rm -f conftest.er1
14107   cat conftest.err >&5
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); } &&
14110          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112   (eval $ac_try) 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); }; } &&
14116          { ac_try='test -s conftest$ac_exeext'
14117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118   (eval $ac_try) 2>&5
14119   ac_status=$?
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); }; }; then
14122
14123 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14124 }'`
14125 # Check for a 64-bit object if we didn't find anything.
14126 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; }
14127 }'`; fi
14128 else
14129   echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132 fi
14133 rm -f conftest.err conftest.$ac_objext \
14134       conftest$ac_exeext conftest.$ac_ext
14135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14136
14137        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14138         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"
14139        else
14140         if test "$host_cpu" = ia64; then
14141           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14142           allow_undefined_flag_F77="-z nodefs"
14143           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"
14144         else
14145          # Determine the default libpath from the value encoded in an empty executable.
14146          cat >conftest.$ac_ext <<_ACEOF
14147       program main
14148
14149       end
14150 _ACEOF
14151 rm -f conftest.$ac_objext conftest$ac_exeext
14152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14153   (eval $ac_link) 2>conftest.er1
14154   ac_status=$?
14155   grep -v '^ *+' conftest.er1 >conftest.err
14156   rm -f conftest.er1
14157   cat conftest.err >&5
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); } &&
14160          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162   (eval $ac_try) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); }; } &&
14166          { ac_try='test -s conftest$ac_exeext'
14167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168   (eval $ac_try) 2>&5
14169   ac_status=$?
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); }; }; then
14172
14173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14174 }'`
14175 # Check for a 64-bit object if we didn't find anything.
14176 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; }
14177 }'`; fi
14178 else
14179   echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 fi
14183 rm -f conftest.err conftest.$ac_objext \
14184       conftest$ac_exeext conftest.$ac_ext
14185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14186
14187          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14188           # Warning - without using the other run time loading flags,
14189           # -berok will link without error, but may produce a broken library.
14190           no_undefined_flag_F77=' ${wl}-bernotok'
14191           allow_undefined_flag_F77=' ${wl}-berok'
14192           # -bexpall does not export symbols beginning with underscore (_)
14193           always_export_symbols_F77=yes
14194           # Exported symbols can be pulled into shared objects from archives
14195           whole_archive_flag_spec_F77=' '
14196           archive_cmds_need_lc_F77=yes
14197           # This is similar to how AIX traditionally builds it's shared libraries.
14198           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'
14199         fi
14200       fi
14201       ;;
14202
14203     amigaos*)
14204       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)'
14205       hardcode_libdir_flag_spec_F77='-L$libdir'
14206       hardcode_minus_L_F77=yes
14207       # see comment about different semantics on the GNU ld section
14208       ld_shlibs_F77=no
14209       ;;
14210
14211     bsdi4*)
14212       export_dynamic_flag_spec_F77=-rdynamic
14213       ;;
14214
14215     cygwin* | mingw* | pw32*)
14216       # When not using gcc, we currently assume that we are using
14217       # Microsoft Visual C++.
14218       # hardcode_libdir_flag_spec is actually meaningless, as there is
14219       # no search path for DLLs.
14220       hardcode_libdir_flag_spec_F77=' '
14221       allow_undefined_flag_F77=unsupported
14222       # Tell ltmain to make .lib files, not .a files.
14223       libext=lib
14224       # Tell ltmain to make .dll files, not .so files.
14225       shrext_cmds=".dll"
14226       # FIXME: Setting linknames here is a bad hack.
14227       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14228       # The linker will automatically build a .lib file if we build a DLL.
14229       old_archive_From_new_cmds_F77='true'
14230       # FIXME: Should let the user specify the lib program.
14231       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14232       fix_srcfile_path='`cygpath -w "$srcfile"`'
14233       enable_shared_with_static_runtimes_F77=yes
14234       ;;
14235
14236     darwin* | rhapsody*)
14237     if test "$GXX" = yes ; then
14238       archive_cmds_need_lc_F77=no
14239       case "$host_os" in
14240       rhapsody* | darwin1.[012])
14241         allow_undefined_flag_F77='-undefined suppress'
14242         ;;
14243       *) # Darwin 1.3 on
14244       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14245         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14246       else
14247         case ${MACOSX_DEPLOYMENT_TARGET} in
14248           10.[012])
14249             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14250             ;;
14251           10.*)
14252             allow_undefined_flag_F77='-undefined dynamic_lookup'
14253             ;;
14254         esac
14255       fi
14256         ;;
14257       esac
14258         lt_int_apple_cc_single_mod=no
14259         output_verbose_link_cmd='echo'
14260         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14261           lt_int_apple_cc_single_mod=yes
14262         fi
14263         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14264           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14265         else
14266         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'
14267       fi
14268       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14269       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14270         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14271           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}'
14272         else
14273           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}'
14274         fi
14275           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14276       hardcode_direct_F77=no
14277       hardcode_automatic_F77=yes
14278       hardcode_shlibpath_var_F77=unsupported
14279       whole_archive_flag_spec_F77='-all_load $convenience'
14280       link_all_deplibs_F77=yes
14281     else
14282       ld_shlibs_F77=no
14283     fi
14284       ;;
14285
14286     dgux*)
14287       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14288       hardcode_libdir_flag_spec_F77='-L$libdir'
14289       hardcode_shlibpath_var_F77=no
14290       ;;
14291
14292     freebsd1*)
14293       ld_shlibs_F77=no
14294       ;;
14295
14296     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14297     # support.  Future versions do this automatically, but an explicit c++rt0.o
14298     # does not break anything, and helps significantly (at the cost of a little
14299     # extra space).
14300     freebsd2.2*)
14301       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14302       hardcode_libdir_flag_spec_F77='-R$libdir'
14303       hardcode_direct_F77=yes
14304       hardcode_shlibpath_var_F77=no
14305       ;;
14306
14307     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14308     freebsd2*)
14309       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14310       hardcode_direct_F77=yes
14311       hardcode_minus_L_F77=yes
14312       hardcode_shlibpath_var_F77=no
14313       ;;
14314
14315     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14316     freebsd* | kfreebsd*-gnu)
14317       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14318       hardcode_libdir_flag_spec_F77='-R$libdir'
14319       hardcode_direct_F77=yes
14320       hardcode_shlibpath_var_F77=no
14321       ;;
14322
14323     hpux9*)
14324       if test "$GCC" = yes; then
14325         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'
14326       else
14327         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'
14328       fi
14329       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14330       hardcode_libdir_separator_F77=:
14331       hardcode_direct_F77=yes
14332
14333       # hardcode_minus_L: Not really in the search PATH,
14334       # but as the default location of the library.
14335       hardcode_minus_L_F77=yes
14336       export_dynamic_flag_spec_F77='${wl}-E'
14337       ;;
14338
14339     hpux10* | hpux11*)
14340       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14341         case "$host_cpu" in
14342         hppa*64*|ia64*)
14343           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14344           ;;
14345         *)
14346           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14347           ;;
14348         esac
14349       else
14350         case "$host_cpu" in
14351         hppa*64*|ia64*)
14352           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14353           ;;
14354         *)
14355           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14356           ;;
14357         esac
14358       fi
14359       if test "$with_gnu_ld" = no; then
14360         case "$host_cpu" in
14361         hppa*64*)
14362           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14363           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14364           hardcode_libdir_separator_F77=:
14365           hardcode_direct_F77=no
14366           hardcode_shlibpath_var_F77=no
14367           ;;
14368         ia64*)
14369           hardcode_libdir_flag_spec_F77='-L$libdir'
14370           hardcode_direct_F77=no
14371           hardcode_shlibpath_var_F77=no
14372
14373           # hardcode_minus_L: Not really in the search PATH,
14374           # but as the default location of the library.
14375           hardcode_minus_L_F77=yes
14376           ;;
14377         *)
14378           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14379           hardcode_libdir_separator_F77=:
14380           hardcode_direct_F77=yes
14381           export_dynamic_flag_spec_F77='${wl}-E'
14382
14383           # hardcode_minus_L: Not really in the search PATH,
14384           # but as the default location of the library.
14385           hardcode_minus_L_F77=yes
14386           ;;
14387         esac
14388       fi
14389       ;;
14390
14391     irix5* | irix6* | nonstopux*)
14392       if test "$GCC" = yes; then
14393         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'
14394       else
14395         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'
14396         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14397       fi
14398       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14399       hardcode_libdir_separator_F77=:
14400       link_all_deplibs_F77=yes
14401       ;;
14402
14403     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14404       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14405         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14406       else
14407         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14408       fi
14409       hardcode_libdir_flag_spec_F77='-R$libdir'
14410       hardcode_direct_F77=yes
14411       hardcode_shlibpath_var_F77=no
14412       ;;
14413
14414     newsos6)
14415       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14416       hardcode_direct_F77=yes
14417       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14418       hardcode_libdir_separator_F77=:
14419       hardcode_shlibpath_var_F77=no
14420       ;;
14421
14422     openbsd*)
14423       hardcode_direct_F77=yes
14424       hardcode_shlibpath_var_F77=no
14425       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14426         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14427         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14428         export_dynamic_flag_spec_F77='${wl}-E'
14429       else
14430        case $host_os in
14431          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14432            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14433            hardcode_libdir_flag_spec_F77='-R$libdir'
14434            ;;
14435          *)
14436            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14437            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14438            ;;
14439        esac
14440       fi
14441       ;;
14442
14443     os2*)
14444       hardcode_libdir_flag_spec_F77='-L$libdir'
14445       hardcode_minus_L_F77=yes
14446       allow_undefined_flag_F77=unsupported
14447       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'
14448       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14449       ;;
14450
14451     osf3*)
14452       if test "$GCC" = yes; then
14453         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14454         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'
14455       else
14456         allow_undefined_flag_F77=' -expect_unresolved \*'
14457         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'
14458       fi
14459       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14460       hardcode_libdir_separator_F77=:
14461       ;;
14462
14463     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14464       if test "$GCC" = yes; then
14465         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14466         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'
14467         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14468       else
14469         allow_undefined_flag_F77=' -expect_unresolved \*'
14470         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'
14471         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~
14472         $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'
14473
14474         # Both c and cxx compiler support -rpath directly
14475         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14476       fi
14477       hardcode_libdir_separator_F77=:
14478       ;;
14479
14480     sco3.2v5*)
14481       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482       hardcode_shlibpath_var_F77=no
14483       export_dynamic_flag_spec_F77='${wl}-Bexport'
14484       runpath_var=LD_RUN_PATH
14485       hardcode_runpath_var=yes
14486       ;;
14487
14488     solaris*)
14489       no_undefined_flag_F77=' -z text'
14490       if test "$GCC" = yes; then
14491         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14492         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14493           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14494       else
14495         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14496         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14497         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14498       fi
14499       hardcode_libdir_flag_spec_F77='-R$libdir'
14500       hardcode_shlibpath_var_F77=no
14501       case $host_os in
14502       solaris2.[0-5] | solaris2.[0-5].*) ;;
14503       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14504         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14505       esac
14506       link_all_deplibs_F77=yes
14507       ;;
14508
14509     sunos4*)
14510       if test "x$host_vendor" = xsequent; then
14511         # Use $CC to link under sequent, because it throws in some extra .o
14512         # files that make .init and .fini sections work.
14513         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14514       else
14515         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14516       fi
14517       hardcode_libdir_flag_spec_F77='-L$libdir'
14518       hardcode_direct_F77=yes
14519       hardcode_minus_L_F77=yes
14520       hardcode_shlibpath_var_F77=no
14521       ;;
14522
14523     sysv4)
14524       case $host_vendor in
14525         sni)
14526           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14527           hardcode_direct_F77=yes # is this really true???
14528         ;;
14529         siemens)
14530           ## LD is ld it makes a PLAMLIB
14531           ## CC just makes a GrossModule.
14532           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14533           reload_cmds_F77='$CC -r -o $output$reload_objs'
14534           hardcode_direct_F77=no
14535         ;;
14536         motorola)
14537           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14538           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14539         ;;
14540       esac
14541       runpath_var='LD_RUN_PATH'
14542       hardcode_shlibpath_var_F77=no
14543       ;;
14544
14545     sysv4.3*)
14546       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14547       hardcode_shlibpath_var_F77=no
14548       export_dynamic_flag_spec_F77='-Bexport'
14549       ;;
14550
14551     sysv4*MP*)
14552       if test -d /usr/nec; then
14553         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14554         hardcode_shlibpath_var_F77=no
14555         runpath_var=LD_RUN_PATH
14556         hardcode_runpath_var=yes
14557         ld_shlibs_F77=yes
14558       fi
14559       ;;
14560
14561     sysv4.2uw2*)
14562       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14563       hardcode_direct_F77=yes
14564       hardcode_minus_L_F77=no
14565       hardcode_shlibpath_var_F77=no
14566       hardcode_runpath_var=yes
14567       runpath_var=LD_RUN_PATH
14568       ;;
14569
14570    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14571       no_undefined_flag_F77='${wl}-z ${wl}text'
14572       if test "$GCC" = yes; then
14573         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14574       else
14575         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14576       fi
14577       runpath_var='LD_RUN_PATH'
14578       hardcode_shlibpath_var_F77=no
14579       ;;
14580
14581     sysv5*)
14582       no_undefined_flag_F77=' -z text'
14583       # $CC -shared without GNU ld will not create a library from C++
14584       # object files and a static libstdc++, better avoid it by now
14585       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14586       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14587                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14588       hardcode_libdir_flag_spec_F77=
14589       hardcode_shlibpath_var_F77=no
14590       runpath_var='LD_RUN_PATH'
14591       ;;
14592
14593     uts4*)
14594       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14595       hardcode_libdir_flag_spec_F77='-L$libdir'
14596       hardcode_shlibpath_var_F77=no
14597       ;;
14598
14599     *)
14600       ld_shlibs_F77=no
14601       ;;
14602     esac
14603   fi
14604
14605 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14606 echo "${ECHO_T}$ld_shlibs_F77" >&6
14607 test "$ld_shlibs_F77" = no && can_build_shared=no
14608
14609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14610 if test "$GCC" = yes; then
14611   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14612 fi
14613
14614 #
14615 # Do we need to explicitly link libc?
14616 #
14617 case "x$archive_cmds_need_lc_F77" in
14618 x|xyes)
14619   # Assume -lc should be added
14620   archive_cmds_need_lc_F77=yes
14621
14622   if test "$enable_shared" = yes && test "$GCC" = yes; then
14623     case $archive_cmds_F77 in
14624     *'~'*)
14625       # FIXME: we may have to deal with multi-command sequences.
14626       ;;
14627     '$CC '*)
14628       # Test whether the compiler implicitly links with -lc since on some
14629       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14630       # to ld, don't add -lc before -lgcc.
14631       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14632 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14633       $rm conftest*
14634       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14635
14636       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637   (eval $ac_compile) 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); } 2>conftest.err; then
14641         soname=conftest
14642         lib=conftest
14643         libobjs=conftest.$ac_objext
14644         deplibs=
14645         wl=$lt_prog_compiler_wl_F77
14646         compiler_flags=-v
14647         linker_flags=-v
14648         verstring=
14649         output_objdir=.
14650         libname=conftest
14651         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14652         allow_undefined_flag_F77=
14653         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14654   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14655   ac_status=$?
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); }
14658         then
14659           archive_cmds_need_lc_F77=no
14660         else
14661           archive_cmds_need_lc_F77=yes
14662         fi
14663         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14664       else
14665         cat conftest.err 1>&5
14666       fi
14667       $rm conftest*
14668       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14669 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14670       ;;
14671     esac
14672   fi
14673   ;;
14674 esac
14675
14676 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14678 library_names_spec=
14679 libname_spec='lib$name'
14680 soname_spec=
14681 shrext_cmds=".so"
14682 postinstall_cmds=
14683 postuninstall_cmds=
14684 finish_cmds=
14685 finish_eval=
14686 shlibpath_var=
14687 shlibpath_overrides_runpath=unknown
14688 version_type=none
14689 dynamic_linker="$host_os ld.so"
14690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14691 if test "$GCC" = yes; then
14692   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14693   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14694     # if the path contains ";" then we assume it to be the separator
14695     # otherwise default to the standard path separator (i.e. ":") - it is
14696     # assumed that no part of a normal pathname contains ";" but that should
14697     # okay in the real world where ";" in dirpaths is itself problematic.
14698     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14699   else
14700     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14701   fi
14702 else
14703   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14704 fi
14705 need_lib_prefix=unknown
14706 hardcode_into_libs=no
14707
14708 # when you set need_version to no, make sure it does not cause -set_version
14709 # flags to be left without arguments
14710 need_version=unknown
14711
14712 case $host_os in
14713 aix3*)
14714   version_type=linux
14715   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14716   shlibpath_var=LIBPATH
14717
14718   # AIX 3 has no versioning support, so we append a major version to the name.
14719   soname_spec='${libname}${release}${shared_ext}$major'
14720   ;;
14721
14722 aix4* | aix5*)
14723   version_type=linux
14724   need_lib_prefix=no
14725   need_version=no
14726   hardcode_into_libs=yes
14727   if test "$host_cpu" = ia64; then
14728     # AIX 5 supports IA64
14729     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14730     shlibpath_var=LD_LIBRARY_PATH
14731   else
14732     # With GCC up to 2.95.x, collect2 would create an import file
14733     # for dependence libraries.  The import file would start with
14734     # the line `#! .'.  This would cause the generated library to
14735     # depend on `.', always an invalid library.  This was fixed in
14736     # development snapshots of GCC prior to 3.0.
14737     case $host_os in
14738       aix4 | aix4.[01] | aix4.[01].*)
14739       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14740            echo ' yes '
14741            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14742         :
14743       else
14744         can_build_shared=no
14745       fi
14746       ;;
14747     esac
14748     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14749     # soname into executable. Probably we can add versioning support to
14750     # collect2, so additional links can be useful in future.
14751     if test "$aix_use_runtimelinking" = yes; then
14752       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14753       # instead of lib<name>.a to let people know that these are not
14754       # typical AIX shared libraries.
14755       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756     else
14757       # We preserve .a as extension for shared libraries through AIX4.2
14758       # and later when we are not doing run time linking.
14759       library_names_spec='${libname}${release}.a $libname.a'
14760       soname_spec='${libname}${release}${shared_ext}$major'
14761     fi
14762     shlibpath_var=LIBPATH
14763   fi
14764   ;;
14765
14766 amigaos*)
14767   library_names_spec='$libname.ixlibrary $libname.a'
14768   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14769   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'
14770   ;;
14771
14772 beos*)
14773   library_names_spec='${libname}${shared_ext}'
14774   dynamic_linker="$host_os ld.so"
14775   shlibpath_var=LIBRARY_PATH
14776   ;;
14777
14778 bsdi4*)
14779   version_type=linux
14780   need_version=no
14781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782   soname_spec='${libname}${release}${shared_ext}$major'
14783   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14784   shlibpath_var=LD_LIBRARY_PATH
14785   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14786   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14787   # the default ld.so.conf also contains /usr/contrib/lib and
14788   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14789   # libtool to hard-code these into programs
14790   ;;
14791
14792 cygwin* | mingw* | pw32*)
14793   version_type=windows
14794   shrext_cmds=".dll"
14795   need_version=no
14796   need_lib_prefix=no
14797
14798   case $GCC,$host_os in
14799   yes,cygwin* | yes,mingw* | yes,pw32*)
14800     library_names_spec='$libname.dll.a'
14801     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14802     postinstall_cmds='base_file=`basename \${file}`~
14803       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14804       dldir=$destdir/`dirname \$dlpath`~
14805       test -d \$dldir || mkdir -p \$dldir~
14806       $install_prog $dir/$dlname \$dldir/$dlname'
14807     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14808       dlpath=$dir/\$dldll~
14809        $rm \$dlpath'
14810     shlibpath_overrides_runpath=yes
14811
14812     case $host_os in
14813     cygwin*)
14814       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14815       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14816       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14817       ;;
14818     mingw*)
14819       # MinGW DLLs use traditional 'lib' prefix
14820       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14821       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14822       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14823         # It is most probably a Windows format PATH printed by
14824         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14825         # path with ; separators, and with drive letters. We can handle the
14826         # drive letters (cygwin fileutils understands them), so leave them,
14827         # especially as we might pass files found there to a mingw objdump,
14828         # which wouldn't understand a cygwinified path. Ahh.
14829         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14830       else
14831         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14832       fi
14833       ;;
14834     pw32*)
14835       # pw32 DLLs use 'pw' prefix rather than 'lib'
14836       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14837       ;;
14838     esac
14839     ;;
14840
14841   *)
14842     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14843     ;;
14844   esac
14845   dynamic_linker='Win32 ld.exe'
14846   # FIXME: first we should search . and the directory the executable is in
14847   shlibpath_var=PATH
14848   ;;
14849
14850 darwin* | rhapsody*)
14851   dynamic_linker="$host_os dyld"
14852   version_type=darwin
14853   need_lib_prefix=no
14854   need_version=no
14855   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14856   soname_spec='${libname}${release}${major}$shared_ext'
14857   shlibpath_overrides_runpath=yes
14858   shlibpath_var=DYLD_LIBRARY_PATH
14859   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14860   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14861   if test "$GCC" = yes; then
14862     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"`
14863   else
14864     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14865   fi
14866   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14867   ;;
14868
14869 dgux*)
14870   version_type=linux
14871   need_lib_prefix=no
14872   need_version=no
14873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14874   soname_spec='${libname}${release}${shared_ext}$major'
14875   shlibpath_var=LD_LIBRARY_PATH
14876   ;;
14877
14878 freebsd1*)
14879   dynamic_linker=no
14880   ;;
14881
14882 kfreebsd*-gnu)
14883   version_type=linux
14884   need_lib_prefix=no
14885   need_version=no
14886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14887   soname_spec='${libname}${release}${shared_ext}$major'
14888   shlibpath_var=LD_LIBRARY_PATH
14889   shlibpath_overrides_runpath=no
14890   hardcode_into_libs=yes
14891   dynamic_linker='GNU ld.so'
14892   ;;
14893
14894 freebsd*)
14895   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14896   version_type=freebsd-$objformat
14897   case $version_type in
14898     freebsd-elf*)
14899       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14900       need_version=no
14901       need_lib_prefix=no
14902       ;;
14903     freebsd-*)
14904       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14905       need_version=yes
14906       ;;
14907   esac
14908   shlibpath_var=LD_LIBRARY_PATH
14909   case $host_os in
14910   freebsd2*)
14911     shlibpath_overrides_runpath=yes
14912     ;;
14913   freebsd3.01* | freebsdelf3.01*)
14914     shlibpath_overrides_runpath=yes
14915     hardcode_into_libs=yes
14916     ;;
14917   *) # from 3.2 on
14918     shlibpath_overrides_runpath=no
14919     hardcode_into_libs=yes
14920     ;;
14921   esac
14922   ;;
14923
14924 gnu*)
14925   version_type=linux
14926   need_lib_prefix=no
14927   need_version=no
14928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14929   soname_spec='${libname}${release}${shared_ext}$major'
14930   shlibpath_var=LD_LIBRARY_PATH
14931   hardcode_into_libs=yes
14932   ;;
14933
14934 hpux9* | hpux10* | hpux11*)
14935   # Give a soname corresponding to the major version so that dld.sl refuses to
14936   # link against other versions.
14937   version_type=sunos
14938   need_lib_prefix=no
14939   need_version=no
14940   case "$host_cpu" in
14941   ia64*)
14942     shrext_cmds='.so'
14943     hardcode_into_libs=yes
14944     dynamic_linker="$host_os dld.so"
14945     shlibpath_var=LD_LIBRARY_PATH
14946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948     soname_spec='${libname}${release}${shared_ext}$major'
14949     if test "X$HPUX_IA64_MODE" = X32; then
14950       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14951     else
14952       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14953     fi
14954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14955     ;;
14956    hppa*64*)
14957      shrext_cmds='.sl'
14958      hardcode_into_libs=yes
14959      dynamic_linker="$host_os dld.sl"
14960      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14961      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14962      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963      soname_spec='${libname}${release}${shared_ext}$major'
14964      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14965      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14966      ;;
14967    *)
14968     shrext_cmds='.sl'
14969     dynamic_linker="$host_os dld.sl"
14970     shlibpath_var=SHLIB_PATH
14971     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973     soname_spec='${libname}${release}${shared_ext}$major'
14974     ;;
14975   esac
14976   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14977   postinstall_cmds='chmod 555 $lib'
14978   ;;
14979
14980 irix5* | irix6* | nonstopux*)
14981   case $host_os in
14982     nonstopux*) version_type=nonstopux ;;
14983     *)
14984         if test "$lt_cv_prog_gnu_ld" = yes; then
14985                 version_type=linux
14986         else
14987                 version_type=irix
14988         fi ;;
14989   esac
14990   need_lib_prefix=no
14991   need_version=no
14992   soname_spec='${libname}${release}${shared_ext}$major'
14993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14994   case $host_os in
14995   irix5* | nonstopux*)
14996     libsuff= shlibsuff=
14997     ;;
14998   *)
14999     case $LD in # libtool.m4 will add one of these switches to LD
15000     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15001       libsuff= shlibsuff= libmagic=32-bit;;
15002     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15003       libsuff=32 shlibsuff=N32 libmagic=N32;;
15004     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15005       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15006     *) libsuff= shlibsuff= libmagic=never-match;;
15007     esac
15008     ;;
15009   esac
15010   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15011   shlibpath_overrides_runpath=no
15012   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15013   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15014   hardcode_into_libs=yes
15015   ;;
15016
15017 # No shared lib support for Linux oldld, aout, or coff.
15018 linux*oldld* | linux*aout* | linux*coff*)
15019   dynamic_linker=no
15020   ;;
15021
15022 # This must be Linux ELF.
15023 linux*)
15024   version_type=linux
15025   need_lib_prefix=no
15026   need_version=no
15027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028   soname_spec='${libname}${release}${shared_ext}$major'
15029   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15030   shlibpath_var=LD_LIBRARY_PATH
15031   shlibpath_overrides_runpath=no
15032   # This implies no fast_install, which is unacceptable.
15033   # Some rework will be needed to allow for fast_install
15034   # before this can be enabled.
15035   hardcode_into_libs=yes
15036
15037   # Append ld.so.conf contents to the search path
15038   if test -f /etc/ld.so.conf; then
15039     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15040     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15041   fi
15042
15043   # We used to test for /lib/ld.so.1 and disable shared libraries on
15044   # powerpc, because MkLinux only supported shared libraries with the
15045   # GNU dynamic linker.  Since this was broken with cross compilers,
15046   # most powerpc-linux boxes support dynamic linking these days and
15047   # people can always --disable-shared, the test was removed, and we
15048   # assume the GNU/Linux dynamic linker is in use.
15049   dynamic_linker='GNU/Linux ld.so'
15050   ;;
15051
15052 netbsdelf*-gnu)
15053   version_type=linux
15054   need_lib_prefix=no
15055   need_version=no
15056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15057   soname_spec='${libname}${release}${shared_ext}$major'
15058   shlibpath_var=LD_LIBRARY_PATH
15059   shlibpath_overrides_runpath=no
15060   hardcode_into_libs=yes
15061   dynamic_linker='NetBSD ld.elf_so'
15062   ;;
15063
15064 knetbsd*-gnu)
15065   version_type=linux
15066   need_lib_prefix=no
15067   need_version=no
15068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15069   soname_spec='${libname}${release}${shared_ext}$major'
15070   shlibpath_var=LD_LIBRARY_PATH
15071   shlibpath_overrides_runpath=no
15072   hardcode_into_libs=yes
15073   dynamic_linker='GNU ld.so'
15074   ;;
15075
15076 netbsd*)
15077   version_type=sunos
15078   need_lib_prefix=no
15079   need_version=no
15080   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15082     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15083     dynamic_linker='NetBSD (a.out) ld.so'
15084   else
15085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15086     soname_spec='${libname}${release}${shared_ext}$major'
15087     dynamic_linker='NetBSD ld.elf_so'
15088   fi
15089   shlibpath_var=LD_LIBRARY_PATH
15090   shlibpath_overrides_runpath=yes
15091   hardcode_into_libs=yes
15092   ;;
15093
15094 newsos6)
15095   version_type=linux
15096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097   shlibpath_var=LD_LIBRARY_PATH
15098   shlibpath_overrides_runpath=yes
15099   ;;
15100
15101 nto-qnx*)
15102   version_type=linux
15103   need_lib_prefix=no
15104   need_version=no
15105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106   soname_spec='${libname}${release}${shared_ext}$major'
15107   shlibpath_var=LD_LIBRARY_PATH
15108   shlibpath_overrides_runpath=yes
15109   ;;
15110
15111 openbsd*)
15112   version_type=sunos
15113   need_lib_prefix=no
15114   need_version=yes
15115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15116   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15117   shlibpath_var=LD_LIBRARY_PATH
15118   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15119     case $host_os in
15120       openbsd2.[89] | openbsd2.[89].*)
15121         shlibpath_overrides_runpath=no
15122         ;;
15123       *)
15124         shlibpath_overrides_runpath=yes
15125         ;;
15126       esac
15127   else
15128     shlibpath_overrides_runpath=yes
15129   fi
15130   ;;
15131
15132 os2*)
15133   libname_spec='$name'
15134   shrext_cmds=".dll"
15135   need_lib_prefix=no
15136   library_names_spec='$libname${shared_ext} $libname.a'
15137   dynamic_linker='OS/2 ld.exe'
15138   shlibpath_var=LIBPATH
15139   ;;
15140
15141 osf3* | osf4* | osf5*)
15142   version_type=osf
15143   need_lib_prefix=no
15144   need_version=no
15145   soname_spec='${libname}${release}${shared_ext}$major'
15146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147   shlibpath_var=LD_LIBRARY_PATH
15148   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15149   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15150   ;;
15151
15152 sco3.2v5*)
15153   version_type=osf
15154   soname_spec='${libname}${release}${shared_ext}$major'
15155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15156   shlibpath_var=LD_LIBRARY_PATH
15157   ;;
15158
15159 solaris*)
15160   version_type=linux
15161   need_lib_prefix=no
15162   need_version=no
15163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15164   soname_spec='${libname}${release}${shared_ext}$major'
15165   shlibpath_var=LD_LIBRARY_PATH
15166   shlibpath_overrides_runpath=yes
15167   hardcode_into_libs=yes
15168   # ldd complains unless libraries are executable
15169   postinstall_cmds='chmod +x $lib'
15170   ;;
15171
15172 sunos4*)
15173   version_type=sunos
15174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15175   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15176   shlibpath_var=LD_LIBRARY_PATH
15177   shlibpath_overrides_runpath=yes
15178   if test "$with_gnu_ld" = yes; then
15179     need_lib_prefix=no
15180   fi
15181   need_version=yes
15182   ;;
15183
15184 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15185   version_type=linux
15186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15187   soname_spec='${libname}${release}${shared_ext}$major'
15188   shlibpath_var=LD_LIBRARY_PATH
15189   case $host_vendor in
15190     sni)
15191       shlibpath_overrides_runpath=no
15192       need_lib_prefix=no
15193       export_dynamic_flag_spec='${wl}-Blargedynsym'
15194       runpath_var=LD_RUN_PATH
15195       ;;
15196     siemens)
15197       need_lib_prefix=no
15198       ;;
15199     motorola)
15200       need_lib_prefix=no
15201       need_version=no
15202       shlibpath_overrides_runpath=no
15203       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15204       ;;
15205   esac
15206   ;;
15207
15208 sysv4*MP*)
15209   if test -d /usr/nec ;then
15210     version_type=linux
15211     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15212     soname_spec='$libname${shared_ext}.$major'
15213     shlibpath_var=LD_LIBRARY_PATH
15214   fi
15215   ;;
15216
15217 uts4*)
15218   version_type=linux
15219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15220   soname_spec='${libname}${release}${shared_ext}$major'
15221   shlibpath_var=LD_LIBRARY_PATH
15222   ;;
15223
15224 *)
15225   dynamic_linker=no
15226   ;;
15227 esac
15228 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15229 echo "${ECHO_T}$dynamic_linker" >&6
15230 test "$dynamic_linker" = no && can_build_shared=no
15231
15232 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15233 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15234 hardcode_action_F77=
15235 if test -n "$hardcode_libdir_flag_spec_F77" || \
15236    test -n "$runpath_var F77" || \
15237    test "X$hardcode_automatic_F77"="Xyes" ; then
15238
15239   # We can hardcode non-existant directories.
15240   if test "$hardcode_direct_F77" != no &&
15241      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15242      # have to relink, otherwise we might link with an installed library
15243      # when we should be linking with a yet-to-be-installed one
15244      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15245      test "$hardcode_minus_L_F77" != no; then
15246     # Linking always hardcodes the temporary library directory.
15247     hardcode_action_F77=relink
15248   else
15249     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15250     hardcode_action_F77=immediate
15251   fi
15252 else
15253   # We cannot hardcode anything, or else we can only hardcode existing
15254   # directories.
15255   hardcode_action_F77=unsupported
15256 fi
15257 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15258 echo "${ECHO_T}$hardcode_action_F77" >&6
15259
15260 if test "$hardcode_action_F77" = relink; then
15261   # Fast installation is not supported
15262   enable_fast_install=no
15263 elif test "$shlibpath_overrides_runpath" = yes ||
15264      test "$enable_shared" = no; then
15265   # Fast installation is not necessary
15266   enable_fast_install=needless
15267 fi
15268
15269 striplib=
15270 old_striplib=
15271 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15272 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15273 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15274   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15275   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15276   echo "$as_me:$LINENO: result: yes" >&5
15277 echo "${ECHO_T}yes" >&6
15278 else
15279 # FIXME - insert some real tests, host_os isn't really good enough
15280   case $host_os in
15281    darwin*)
15282        if test -n "$STRIP" ; then
15283          striplib="$STRIP -x"
15284          echo "$as_me:$LINENO: result: yes" >&5
15285 echo "${ECHO_T}yes" >&6
15286        else
15287   echo "$as_me:$LINENO: result: no" >&5
15288 echo "${ECHO_T}no" >&6
15289 fi
15290        ;;
15291    *)
15292   echo "$as_me:$LINENO: result: no" >&5
15293 echo "${ECHO_T}no" >&6
15294     ;;
15295   esac
15296 fi
15297
15298
15299
15300 # The else clause should only fire when bootstrapping the
15301 # libtool distribution, otherwise you forgot to ship ltmain.sh
15302 # with your package, and you will get complaints that there are
15303 # no rules to generate ltmain.sh.
15304 if test -f "$ltmain"; then
15305   # See if we are running on zsh, and set the options which allow our commands through
15306   # without removal of \ escapes.
15307   if test -n "${ZSH_VERSION+set}" ; then
15308     setopt NO_GLOB_SUBST
15309   fi
15310   # Now quote all the things that may contain metacharacters while being
15311   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15312   # variables and quote the copies for generation of the libtool script.
15313   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15314     SED SHELL STRIP \
15315     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15316     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15317     deplibs_check_method reload_flag reload_cmds need_locks \
15318     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15319     lt_cv_sys_global_symbol_to_c_name_address \
15320     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15321     old_postinstall_cmds old_postuninstall_cmds \
15322     compiler_F77 \
15323     CC_F77 \
15324     LD_F77 \
15325     lt_prog_compiler_wl_F77 \
15326     lt_prog_compiler_pic_F77 \
15327     lt_prog_compiler_static_F77 \
15328     lt_prog_compiler_no_builtin_flag_F77 \
15329     export_dynamic_flag_spec_F77 \
15330     thread_safe_flag_spec_F77 \
15331     whole_archive_flag_spec_F77 \
15332     enable_shared_with_static_runtimes_F77 \
15333     old_archive_cmds_F77 \
15334     old_archive_from_new_cmds_F77 \
15335     predep_objects_F77 \
15336     postdep_objects_F77 \
15337     predeps_F77 \
15338     postdeps_F77 \
15339     compiler_lib_search_path_F77 \
15340     archive_cmds_F77 \
15341     archive_expsym_cmds_F77 \
15342     postinstall_cmds_F77 \
15343     postuninstall_cmds_F77 \
15344     old_archive_from_expsyms_cmds_F77 \
15345     allow_undefined_flag_F77 \
15346     no_undefined_flag_F77 \
15347     export_symbols_cmds_F77 \
15348     hardcode_libdir_flag_spec_F77 \
15349     hardcode_libdir_flag_spec_ld_F77 \
15350     hardcode_libdir_separator_F77 \
15351     hardcode_automatic_F77 \
15352     module_cmds_F77 \
15353     module_expsym_cmds_F77 \
15354     lt_cv_prog_compiler_c_o_F77 \
15355     exclude_expsyms_F77 \
15356     include_expsyms_F77; do
15357
15358     case $var in
15359     old_archive_cmds_F77 | \
15360     old_archive_from_new_cmds_F77 | \
15361     archive_cmds_F77 | \
15362     archive_expsym_cmds_F77 | \
15363     module_cmds_F77 | \
15364     module_expsym_cmds_F77 | \
15365     old_archive_from_expsyms_cmds_F77 | \
15366     export_symbols_cmds_F77 | \
15367     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15368     postinstall_cmds | postuninstall_cmds | \
15369     old_postinstall_cmds | old_postuninstall_cmds | \
15370     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15371       # Double-quote double-evaled strings.
15372       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15373       ;;
15374     *)
15375       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15376       ;;
15377     esac
15378   done
15379
15380   case $lt_echo in
15381   *'\$0 --fallback-echo"')
15382     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15383     ;;
15384   esac
15385
15386 cfgfile="$ofile"
15387
15388   cat <<__EOF__ >> "$cfgfile"
15389 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15390
15391 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15392
15393 # Shell to use when invoking shell scripts.
15394 SHELL=$lt_SHELL
15395
15396 # Whether or not to build shared libraries.
15397 build_libtool_libs=$enable_shared
15398
15399 # Whether or not to build static libraries.
15400 build_old_libs=$enable_static
15401
15402 # Whether or not to add -lc for building shared libraries.
15403 build_libtool_need_lc=$archive_cmds_need_lc_F77
15404
15405 # Whether or not to disallow shared libs when runtime libs are static
15406 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15407
15408 # Whether or not to optimize for fast installation.
15409 fast_install=$enable_fast_install
15410
15411 # The host system.
15412 host_alias=$host_alias
15413 host=$host
15414
15415 # An echo program that does not interpret backslashes.
15416 echo=$lt_echo
15417
15418 # The archiver.
15419 AR=$lt_AR
15420 AR_FLAGS=$lt_AR_FLAGS
15421
15422 # A C compiler.
15423 LTCC=$lt_LTCC
15424
15425 # A language-specific compiler.
15426 CC=$lt_compiler_F77
15427
15428 # Is the compiler the GNU C compiler?
15429 with_gcc=$GCC_F77
15430
15431 # An ERE matcher.
15432 EGREP=$lt_EGREP
15433
15434 # The linker used to build libraries.
15435 LD=$lt_LD_F77
15436
15437 # Whether we need hard or soft links.
15438 LN_S=$lt_LN_S
15439
15440 # A BSD-compatible nm program.
15441 NM=$lt_NM
15442
15443 # A symbol stripping program
15444 STRIP=$lt_STRIP
15445
15446 # Used to examine libraries when file_magic_cmd begins "file"
15447 MAGIC_CMD=$MAGIC_CMD
15448
15449 # Used on cygwin: DLL creation program.
15450 DLLTOOL="$DLLTOOL"
15451
15452 # Used on cygwin: object dumper.
15453 OBJDUMP="$OBJDUMP"
15454
15455 # Used on cygwin: assembler.
15456 AS="$AS"
15457
15458 # The name of the directory that contains temporary libtool files.
15459 objdir=$objdir
15460
15461 # How to create reloadable object files.
15462 reload_flag=$lt_reload_flag
15463 reload_cmds=$lt_reload_cmds
15464
15465 # How to pass a linker flag through the compiler.
15466 wl=$lt_lt_prog_compiler_wl_F77
15467
15468 # Object file suffix (normally "o").
15469 objext="$ac_objext"
15470
15471 # Old archive suffix (normally "a").
15472 libext="$libext"
15473
15474 # Shared library suffix (normally ".so").
15475 shrext_cmds='$shrext_cmds'
15476
15477 # Executable file suffix (normally "").
15478 exeext="$exeext"
15479
15480 # Additional compiler flags for building library objects.
15481 pic_flag=$lt_lt_prog_compiler_pic_F77
15482 pic_mode=$pic_mode
15483
15484 # What is the maximum length of a command?
15485 max_cmd_len=$lt_cv_sys_max_cmd_len
15486
15487 # Does compiler simultaneously support -c and -o options?
15488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15489
15490 # Must we lock files when doing compilation ?
15491 need_locks=$lt_need_locks
15492
15493 # Do we need the lib prefix for modules?
15494 need_lib_prefix=$need_lib_prefix
15495
15496 # Do we need a version for libraries?
15497 need_version=$need_version
15498
15499 # Whether dlopen is supported.
15500 dlopen_support=$enable_dlopen
15501
15502 # Whether dlopen of programs is supported.
15503 dlopen_self=$enable_dlopen_self
15504
15505 # Whether dlopen of statically linked programs is supported.
15506 dlopen_self_static=$enable_dlopen_self_static
15507
15508 # Compiler flag to prevent dynamic linking.
15509 link_static_flag=$lt_lt_prog_compiler_static_F77
15510
15511 # Compiler flag to turn off builtin functions.
15512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15513
15514 # Compiler flag to allow reflexive dlopens.
15515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15516
15517 # Compiler flag to generate shared objects directly from archives.
15518 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15519
15520 # Compiler flag to generate thread-safe objects.
15521 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15522
15523 # Library versioning type.
15524 version_type=$version_type
15525
15526 # Format of library name prefix.
15527 libname_spec=$lt_libname_spec
15528
15529 # List of archive names.  First name is the real one, the rest are links.
15530 # The last name is the one that the linker finds with -lNAME.
15531 library_names_spec=$lt_library_names_spec
15532
15533 # The coded name of the library, if different from the real name.
15534 soname_spec=$lt_soname_spec
15535
15536 # Commands used to build and install an old-style archive.
15537 RANLIB=$lt_RANLIB
15538 old_archive_cmds=$lt_old_archive_cmds_F77
15539 old_postinstall_cmds=$lt_old_postinstall_cmds
15540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15541
15542 # Create an old-style archive from a shared archive.
15543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15544
15545 # Create a temporary old-style archive to link instead of a shared archive.
15546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15547
15548 # Commands used to build and install a shared archive.
15549 archive_cmds=$lt_archive_cmds_F77
15550 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15551 postinstall_cmds=$lt_postinstall_cmds
15552 postuninstall_cmds=$lt_postuninstall_cmds
15553
15554 # Commands used to build a loadable module (assumed same as above if empty)
15555 module_cmds=$lt_module_cmds_F77
15556 module_expsym_cmds=$lt_module_expsym_cmds_F77
15557
15558 # Commands to strip libraries.
15559 old_striplib=$lt_old_striplib
15560 striplib=$lt_striplib
15561
15562 # Dependencies to place before the objects being linked to create a
15563 # shared library.
15564 predep_objects=$lt_predep_objects_F77
15565
15566 # Dependencies to place after the objects being linked to create a
15567 # shared library.
15568 postdep_objects=$lt_postdep_objects_F77
15569
15570 # Dependencies to place before the objects being linked to create a
15571 # shared library.
15572 predeps=$lt_predeps_F77
15573
15574 # Dependencies to place after the objects being linked to create a
15575 # shared library.
15576 postdeps=$lt_postdeps_F77
15577
15578 # The library search path used internally by the compiler when linking
15579 # a shared library.
15580 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15581
15582 # Method to check whether dependent libraries are shared objects.
15583 deplibs_check_method=$lt_deplibs_check_method
15584
15585 # Command to use when deplibs_check_method == file_magic.
15586 file_magic_cmd=$lt_file_magic_cmd
15587
15588 # Flag that allows shared libraries with undefined symbols to be built.
15589 allow_undefined_flag=$lt_allow_undefined_flag_F77
15590
15591 # Flag that forces no undefined symbols.
15592 no_undefined_flag=$lt_no_undefined_flag_F77
15593
15594 # Commands used to finish a libtool library installation in a directory.
15595 finish_cmds=$lt_finish_cmds
15596
15597 # Same as above, but a single script fragment to be evaled but not shown.
15598 finish_eval=$lt_finish_eval
15599
15600 # Take the output of nm and produce a listing of raw symbols and C names.
15601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15602
15603 # Transform the output of nm in a proper C declaration
15604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15605
15606 # Transform the output of nm in a C name address pair
15607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15608
15609 # This is the shared library runtime path variable.
15610 runpath_var=$runpath_var
15611
15612 # This is the shared library path variable.
15613 shlibpath_var=$shlibpath_var
15614
15615 # Is shlibpath searched before the hard-coded library search path?
15616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15617
15618 # How to hardcode a shared library path into an executable.
15619 hardcode_action=$hardcode_action_F77
15620
15621 # Whether we should hardcode library paths into libraries.
15622 hardcode_into_libs=$hardcode_into_libs
15623
15624 # Flag to hardcode \$libdir into a binary during linking.
15625 # This must work even if \$libdir does not exist.
15626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15627
15628 # If ld is used when linking, flag to hardcode \$libdir into
15629 # a binary during linking. This must work even if \$libdir does
15630 # not exist.
15631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15632
15633 # Whether we need a single -rpath flag with a separated argument.
15634 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15635
15636 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15637 # resulting binary.
15638 hardcode_direct=$hardcode_direct_F77
15639
15640 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15641 # resulting binary.
15642 hardcode_minus_L=$hardcode_minus_L_F77
15643
15644 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15645 # the resulting binary.
15646 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15647
15648 # Set to yes if building a shared library automatically hardcodes DIR into the library
15649 # and all subsequent libraries and executables linked against it.
15650 hardcode_automatic=$hardcode_automatic_F77
15651
15652 # Variables whose values should be saved in libtool wrapper scripts and
15653 # restored at relink time.
15654 variables_saved_for_relink="$variables_saved_for_relink"
15655
15656 # Whether libtool must link a program against all its dependency libraries.
15657 link_all_deplibs=$link_all_deplibs_F77
15658
15659 # Compile-time system search path for libraries
15660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15661
15662 # Run-time system search path for libraries
15663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15664
15665 # Fix the shell variable \$srcfile for the compiler.
15666 fix_srcfile_path="$fix_srcfile_path_F77"
15667
15668 # Set to yes if exported symbols are required.
15669 always_export_symbols=$always_export_symbols_F77
15670
15671 # The commands to list exported symbols.
15672 export_symbols_cmds=$lt_export_symbols_cmds_F77
15673
15674 # The commands to extract the exported symbol list from a shared archive.
15675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15676
15677 # Symbols that should not be listed in the preloaded symbols.
15678 exclude_expsyms=$lt_exclude_expsyms_F77
15679
15680 # Symbols that must always be exported.
15681 include_expsyms=$lt_include_expsyms_F77
15682
15683 # ### END LIBTOOL TAG CONFIG: $tagname
15684
15685 __EOF__
15686
15687
15688 else
15689   # If there is no Makefile yet, we rely on a make rule to execute
15690   # `config.status --recheck' to rerun these tests and create the
15691   # libtool script then.
15692   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15693   if test -f "$ltmain_in"; then
15694     test -f Makefile && make "$ltmain"
15695   fi
15696 fi
15697
15698
15699 ac_ext=c
15700 ac_cpp='$CPP $CPPFLAGS'
15701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15704
15705 CC="$lt_save_CC"
15706
15707         else
15708           tagname=""
15709         fi
15710         ;;
15711
15712       GCJ)
15713         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15714
15715
15716
15717 # Source file extension for Java test sources.
15718 ac_ext=java
15719
15720 # Object file extension for compiled Java test sources.
15721 objext=o
15722 objext_GCJ=$objext
15723
15724 # Code to be used in simple compile tests
15725 lt_simple_compile_test_code="class foo {}\n"
15726
15727 # Code to be used in simple link tests
15728 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15729
15730 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15731
15732 # If no C compiler was specified, use CC.
15733 LTCC=${LTCC-"$CC"}
15734
15735 # Allow CC to be a program name with arguments.
15736 compiler=$CC
15737
15738
15739 # Allow CC to be a program name with arguments.
15740 lt_save_CC="$CC"
15741 CC=${GCJ-"gcj"}
15742 compiler=$CC
15743 compiler_GCJ=$CC
15744
15745 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15746 archive_cmds_need_lc_GCJ=no
15747
15748
15749 lt_prog_compiler_no_builtin_flag_GCJ=
15750
15751 if test "$GCC" = yes; then
15752   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15753
15754
15755 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15756 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15757 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15758   echo $ECHO_N "(cached) $ECHO_C" >&6
15759 else
15760   lt_cv_prog_compiler_rtti_exceptions=no
15761   ac_outfile=conftest.$ac_objext
15762    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15763    lt_compiler_flag="-fno-rtti -fno-exceptions"
15764    # Insert the option either (1) after the last *FLAGS variable, or
15765    # (2) before a word containing "conftest.", or (3) at the end.
15766    # Note that $ac_compile itself does not contain backslashes and begins
15767    # with a dollar sign (not a hyphen), so the echo should work correctly.
15768    # The option is referenced via a variable to avoid confusing sed.
15769    lt_compile=`echo "$ac_compile" | $SED \
15770    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15772    -e 's:$: $lt_compiler_flag:'`
15773    (eval echo "\"\$as_me:15773: $lt_compile\"" >&5)
15774    (eval "$lt_compile" 2>conftest.err)
15775    ac_status=$?
15776    cat conftest.err >&5
15777    echo "$as_me:15777: \$? = $ac_status" >&5
15778    if (exit $ac_status) && test -s "$ac_outfile"; then
15779      # The compiler can only warn and ignore the option if not recognized
15780      # So say no if there are warnings
15781      if test ! -s conftest.err; then
15782        lt_cv_prog_compiler_rtti_exceptions=yes
15783      fi
15784    fi
15785    $rm conftest*
15786
15787 fi
15788 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15789 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15790
15791 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15792     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15793 else
15794     :
15795 fi
15796
15797 fi
15798
15799 lt_prog_compiler_wl_GCJ=
15800 lt_prog_compiler_pic_GCJ=
15801 lt_prog_compiler_static_GCJ=
15802
15803 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15804 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15805
15806   if test "$GCC" = yes; then
15807     lt_prog_compiler_wl_GCJ='-Wl,'
15808     lt_prog_compiler_static_GCJ='-static'
15809
15810     case $host_os in
15811       aix*)
15812       # All AIX code is PIC.
15813       if test "$host_cpu" = ia64; then
15814         # AIX 5 now supports IA64 processor
15815         lt_prog_compiler_static_GCJ='-Bstatic'
15816       fi
15817       ;;
15818
15819     amigaos*)
15820       # FIXME: we need at least 68020 code to build shared libraries, but
15821       # adding the `-m68020' flag to GCC prevents building anything better,
15822       # like `-m68040'.
15823       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15824       ;;
15825
15826     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15827       # PIC is the default for these OSes.
15828       ;;
15829
15830     mingw* | pw32* | os2*)
15831       # This hack is so that the source file can tell whether it is being
15832       # built for inclusion in a dll (and should export symbols for example).
15833       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15834       ;;
15835
15836     darwin* | rhapsody*)
15837       # PIC is the default on this platform
15838       # Common symbols not allowed in MH_DYLIB files
15839       lt_prog_compiler_pic_GCJ='-fno-common'
15840       ;;
15841
15842     msdosdjgpp*)
15843       # Just because we use GCC doesn't mean we suddenly get shared libraries
15844       # on systems that don't support them.
15845       lt_prog_compiler_can_build_shared_GCJ=no
15846       enable_shared=no
15847       ;;
15848
15849     sysv4*MP*)
15850       if test -d /usr/nec; then
15851         lt_prog_compiler_pic_GCJ=-Kconform_pic
15852       fi
15853       ;;
15854
15855     hpux*)
15856       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15857       # not for PA HP-UX.
15858       case "$host_cpu" in
15859       hppa*64*|ia64*)
15860         # +Z the default
15861         ;;
15862       *)
15863         lt_prog_compiler_pic_GCJ='-fPIC'
15864         ;;
15865       esac
15866       ;;
15867
15868     *)
15869       lt_prog_compiler_pic_GCJ='-fPIC'
15870       ;;
15871     esac
15872   else
15873     # PORTME Check for flag to pass linker flags through the system compiler.
15874     case $host_os in
15875     aix*)
15876       lt_prog_compiler_wl_GCJ='-Wl,'
15877       if test "$host_cpu" = ia64; then
15878         # AIX 5 now supports IA64 processor
15879         lt_prog_compiler_static_GCJ='-Bstatic'
15880       else
15881         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15882       fi
15883       ;;
15884
15885     mingw* | pw32* | os2*)
15886       # This hack is so that the source file can tell whether it is being
15887       # built for inclusion in a dll (and should export symbols for example).
15888       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15889       ;;
15890
15891     hpux9* | hpux10* | hpux11*)
15892       lt_prog_compiler_wl_GCJ='-Wl,'
15893       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15894       # not for PA HP-UX.
15895       case "$host_cpu" in
15896       hppa*64*|ia64*)
15897         # +Z the default
15898         ;;
15899       *)
15900         lt_prog_compiler_pic_GCJ='+Z'
15901         ;;
15902       esac
15903       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15904       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15905       ;;
15906
15907     irix5* | irix6* | nonstopux*)
15908       lt_prog_compiler_wl_GCJ='-Wl,'
15909       # PIC (with -KPIC) is the default.
15910       lt_prog_compiler_static_GCJ='-non_shared'
15911       ;;
15912
15913     newsos6)
15914       lt_prog_compiler_pic_GCJ='-KPIC'
15915       lt_prog_compiler_static_GCJ='-Bstatic'
15916       ;;
15917
15918     linux*)
15919       case $CC in
15920       icc* | ecc*)
15921         lt_prog_compiler_wl_GCJ='-Wl,'
15922         lt_prog_compiler_pic_GCJ='-KPIC'
15923         lt_prog_compiler_static_GCJ='-static'
15924         ;;
15925       ccc*)
15926         lt_prog_compiler_wl_GCJ='-Wl,'
15927         # All Alpha code is PIC.
15928         lt_prog_compiler_static_GCJ='-non_shared'
15929         ;;
15930       esac
15931       ;;
15932
15933     osf3* | osf4* | osf5*)
15934       lt_prog_compiler_wl_GCJ='-Wl,'
15935       # All OSF/1 code is PIC.
15936       lt_prog_compiler_static_GCJ='-non_shared'
15937       ;;
15938
15939     sco3.2v5*)
15940       lt_prog_compiler_pic_GCJ='-Kpic'
15941       lt_prog_compiler_static_GCJ='-dn'
15942       ;;
15943
15944     solaris*)
15945       lt_prog_compiler_wl_GCJ='-Wl,'
15946       lt_prog_compiler_pic_GCJ='-KPIC'
15947       lt_prog_compiler_static_GCJ='-Bstatic'
15948       ;;
15949
15950     sunos4*)
15951       lt_prog_compiler_wl_GCJ='-Qoption ld '
15952       lt_prog_compiler_pic_GCJ='-PIC'
15953       lt_prog_compiler_static_GCJ='-Bstatic'
15954       ;;
15955
15956     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15957       lt_prog_compiler_wl_GCJ='-Wl,'
15958       lt_prog_compiler_pic_GCJ='-KPIC'
15959       lt_prog_compiler_static_GCJ='-Bstatic'
15960       ;;
15961
15962     sysv4*MP*)
15963       if test -d /usr/nec ;then
15964         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15965         lt_prog_compiler_static_GCJ='-Bstatic'
15966       fi
15967       ;;
15968
15969     uts4*)
15970       lt_prog_compiler_pic_GCJ='-pic'
15971       lt_prog_compiler_static_GCJ='-Bstatic'
15972       ;;
15973
15974     *)
15975       lt_prog_compiler_can_build_shared_GCJ=no
15976       ;;
15977     esac
15978   fi
15979
15980 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15981 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15982
15983 #
15984 # Check to make sure the PIC flag actually works.
15985 #
15986 if test -n "$lt_prog_compiler_pic_GCJ"; then
15987
15988 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15989 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15990 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15991   echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993   lt_prog_compiler_pic_works_GCJ=no
15994   ac_outfile=conftest.$ac_objext
15995    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15996    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15997    # Insert the option either (1) after the last *FLAGS variable, or
15998    # (2) before a word containing "conftest.", or (3) at the end.
15999    # Note that $ac_compile itself does not contain backslashes and begins
16000    # with a dollar sign (not a hyphen), so the echo should work correctly.
16001    # The option is referenced via a variable to avoid confusing sed.
16002    lt_compile=`echo "$ac_compile" | $SED \
16003    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16004    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16005    -e 's:$: $lt_compiler_flag:'`
16006    (eval echo "\"\$as_me:16006: $lt_compile\"" >&5)
16007    (eval "$lt_compile" 2>conftest.err)
16008    ac_status=$?
16009    cat conftest.err >&5
16010    echo "$as_me:16010: \$? = $ac_status" >&5
16011    if (exit $ac_status) && test -s "$ac_outfile"; then
16012      # The compiler can only warn and ignore the option if not recognized
16013      # So say no if there are warnings
16014      if test ! -s conftest.err; then
16015        lt_prog_compiler_pic_works_GCJ=yes
16016      fi
16017    fi
16018    $rm conftest*
16019
16020 fi
16021 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16022 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16023
16024 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16025     case $lt_prog_compiler_pic_GCJ in
16026      "" | " "*) ;;
16027      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16028      esac
16029 else
16030     lt_prog_compiler_pic_GCJ=
16031      lt_prog_compiler_can_build_shared_GCJ=no
16032 fi
16033
16034 fi
16035 case "$host_os" in
16036   # For platforms which do not support PIC, -DPIC is meaningless:
16037   *djgpp*)
16038     lt_prog_compiler_pic_GCJ=
16039     ;;
16040   *)
16041     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16042     ;;
16043 esac
16044
16045 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16046 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16047 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16048   echo $ECHO_N "(cached) $ECHO_C" >&6
16049 else
16050   lt_cv_prog_compiler_c_o_GCJ=no
16051    $rm -r conftest 2>/dev/null
16052    mkdir conftest
16053    cd conftest
16054    mkdir out
16055    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16056
16057    lt_compiler_flag="-o out/conftest2.$ac_objext"
16058    # Insert the option either (1) after the last *FLAGS variable, or
16059    # (2) before a word containing "conftest.", or (3) at the end.
16060    # Note that $ac_compile itself does not contain backslashes and begins
16061    # with a dollar sign (not a hyphen), so the echo should work correctly.
16062    lt_compile=`echo "$ac_compile" | $SED \
16063    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16064    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16065    -e 's:$: $lt_compiler_flag:'`
16066    (eval echo "\"\$as_me:16066: $lt_compile\"" >&5)
16067    (eval "$lt_compile" 2>out/conftest.err)
16068    ac_status=$?
16069    cat out/conftest.err >&5
16070    echo "$as_me:16070: \$? = $ac_status" >&5
16071    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16072    then
16073      # The compiler can only warn and ignore the option if not recognized
16074      # So say no if there are warnings
16075      if test ! -s out/conftest.err; then
16076        lt_cv_prog_compiler_c_o_GCJ=yes
16077      fi
16078    fi
16079    chmod u+w .
16080    $rm conftest*
16081    # SGI C++ compiler will create directory out/ii_files/ for
16082    # template instantiation
16083    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16084    $rm out/* && rmdir out
16085    cd ..
16086    rmdir conftest
16087    $rm conftest*
16088
16089 fi
16090 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16091 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16092
16093
16094 hard_links="nottested"
16095 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16096   # do not overwrite the value of need_locks provided by the user
16097   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16098 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16099   hard_links=yes
16100   $rm conftest*
16101   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16102   touch conftest.a
16103   ln conftest.a conftest.b 2>&5 || hard_links=no
16104   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16105   echo "$as_me:$LINENO: result: $hard_links" >&5
16106 echo "${ECHO_T}$hard_links" >&6
16107   if test "$hard_links" = no; then
16108     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16109 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16110     need_locks=warn
16111   fi
16112 else
16113   need_locks=no
16114 fi
16115
16116 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16117 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16118
16119   runpath_var=
16120   allow_undefined_flag_GCJ=
16121   enable_shared_with_static_runtimes_GCJ=no
16122   archive_cmds_GCJ=
16123   archive_expsym_cmds_GCJ=
16124   old_archive_From_new_cmds_GCJ=
16125   old_archive_from_expsyms_cmds_GCJ=
16126   export_dynamic_flag_spec_GCJ=
16127   whole_archive_flag_spec_GCJ=
16128   thread_safe_flag_spec_GCJ=
16129   hardcode_libdir_flag_spec_GCJ=
16130   hardcode_libdir_flag_spec_ld_GCJ=
16131   hardcode_libdir_separator_GCJ=
16132   hardcode_direct_GCJ=no
16133   hardcode_minus_L_GCJ=no
16134   hardcode_shlibpath_var_GCJ=unsupported
16135   link_all_deplibs_GCJ=unknown
16136   hardcode_automatic_GCJ=no
16137   module_cmds_GCJ=
16138   module_expsym_cmds_GCJ=
16139   always_export_symbols_GCJ=no
16140   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16141   # include_expsyms should be a list of space-separated symbols to be *always*
16142   # included in the symbol list
16143   include_expsyms_GCJ=
16144   # exclude_expsyms can be an extended regexp of symbols to exclude
16145   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16146   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16147   # as well as any symbol that contains `d'.
16148   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16149   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16150   # platforms (ab)use it in PIC code, but their linkers get confused if
16151   # the symbol is explicitly referenced.  Since portable code cannot
16152   # rely on this symbol name, it's probably fine to never include it in
16153   # preloaded symbol tables.
16154   extract_expsyms_cmds=
16155
16156   case $host_os in
16157   cygwin* | mingw* | pw32*)
16158     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16159     # When not using gcc, we currently assume that we are using
16160     # Microsoft Visual C++.
16161     if test "$GCC" != yes; then
16162       with_gnu_ld=no
16163     fi
16164     ;;
16165   openbsd*)
16166     with_gnu_ld=no
16167     ;;
16168   esac
16169
16170   ld_shlibs_GCJ=yes
16171   if test "$with_gnu_ld" = yes; then
16172     # If archive_cmds runs LD, not CC, wlarc should be empty
16173     wlarc='${wl}'
16174
16175     # See if GNU ld supports shared libraries.
16176     case $host_os in
16177     aix3* | aix4* | aix5*)
16178       # On AIX/PPC, the GNU linker is very broken
16179       if test "$host_cpu" != ia64; then
16180         ld_shlibs_GCJ=no
16181         cat <<EOF 1>&2
16182
16183 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16184 *** to be unable to reliably create shared libraries on AIX.
16185 *** Therefore, libtool is disabling shared libraries support.  If you
16186 *** really care for shared libraries, you may want to modify your PATH
16187 *** so that a non-GNU linker is found, and then restart.
16188
16189 EOF
16190       fi
16191       ;;
16192
16193     amigaos*)
16194       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)'
16195       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16196       hardcode_minus_L_GCJ=yes
16197
16198       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16199       # that the semantics of dynamic libraries on AmigaOS, at least up
16200       # to version 4, is to share data among multiple programs linked
16201       # with the same dynamic library.  Since this doesn't match the
16202       # behavior of shared libraries on other platforms, we can't use
16203       # them.
16204       ld_shlibs_GCJ=no
16205       ;;
16206
16207     beos*)
16208       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16209         allow_undefined_flag_GCJ=unsupported
16210         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16211         # support --undefined.  This deserves some investigation.  FIXME
16212         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213       else
16214         ld_shlibs_GCJ=no
16215       fi
16216       ;;
16217
16218     cygwin* | mingw* | pw32*)
16219       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16220       # as there is no search path for DLLs.
16221       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16222       allow_undefined_flag_GCJ=unsupported
16223       always_export_symbols_GCJ=no
16224       enable_shared_with_static_runtimes_GCJ=yes
16225       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16226
16227       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16228         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16229         # If the export-symbols file already is a .def file (1st line
16230         # is EXPORTS), use it as is; otherwise, prepend...
16231         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16232           cp $export_symbols $output_objdir/$soname.def;
16233         else
16234           echo EXPORTS > $output_objdir/$soname.def;
16235           cat $export_symbols >> $output_objdir/$soname.def;
16236         fi~
16237         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16238       else
16239         ld_shlibs=no
16240       fi
16241       ;;
16242
16243     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16244       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16245         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16246         wlarc=
16247       else
16248         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16249         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16250       fi
16251       ;;
16252
16253     solaris* | sysv5*)
16254       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16255         ld_shlibs_GCJ=no
16256         cat <<EOF 1>&2
16257
16258 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16259 *** create shared libraries on Solaris systems.  Therefore, libtool
16260 *** is disabling shared libraries support.  We urge you to upgrade GNU
16261 *** binutils to release 2.9.1 or newer.  Another option is to modify
16262 *** your PATH or compiler configuration so that the native linker is
16263 *** used, and then restart.
16264
16265 EOF
16266       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16267         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16268         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16269       else
16270         ld_shlibs_GCJ=no
16271       fi
16272       ;;
16273
16274     sunos4*)
16275       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16276       wlarc=
16277       hardcode_direct_GCJ=yes
16278       hardcode_shlibpath_var_GCJ=no
16279       ;;
16280
16281   linux*)
16282     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16283         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16284         archive_cmds_GCJ="$tmp_archive_cmds"
16285       supports_anon_versioning=no
16286       case `$LD -v 2>/dev/null` in
16287         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16288         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16289         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16290         *\ 2.11.*) ;; # other 2.11 versions
16291         *) supports_anon_versioning=yes ;;
16292       esac
16293       if test $supports_anon_versioning = yes; then
16294         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16295 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16296 $echo "local: *; };" >> $output_objdir/$libname.ver~
16297         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16298       else
16299         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16300       fi
16301       link_all_deplibs_GCJ=no
16302     else
16303       ld_shlibs_GCJ=no
16304     fi
16305     ;;
16306
16307     *)
16308       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16309         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16310         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16311       else
16312         ld_shlibs_GCJ=no
16313       fi
16314       ;;
16315     esac
16316
16317     if test "$ld_shlibs_GCJ" = yes; then
16318       runpath_var=LD_RUN_PATH
16319       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16320       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16321       # ancient GNU ld didn't support --whole-archive et. al.
16322       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16323         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16324       else
16325         whole_archive_flag_spec_GCJ=
16326       fi
16327     fi
16328   else
16329     # PORTME fill in a description of your system's linker (not GNU ld)
16330     case $host_os in
16331     aix3*)
16332       allow_undefined_flag_GCJ=unsupported
16333       always_export_symbols_GCJ=yes
16334       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'
16335       # Note: this linker hardcodes the directories in LIBPATH if there
16336       # are no directories specified by -L.
16337       hardcode_minus_L_GCJ=yes
16338       if test "$GCC" = yes && test -z "$link_static_flag"; then
16339         # Neither direct hardcoding nor static linking is supported with a
16340         # broken collect2.
16341         hardcode_direct_GCJ=unsupported
16342       fi
16343       ;;
16344
16345     aix4* | aix5*)
16346       if test "$host_cpu" = ia64; then
16347         # On IA64, the linker does run time linking by default, so we don't
16348         # have to do anything special.
16349         aix_use_runtimelinking=no
16350         exp_sym_flag='-Bexport'
16351         no_entry_flag=""
16352       else
16353         # If we're using GNU nm, then we don't want the "-C" option.
16354         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16355         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16356           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'
16357         else
16358           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'
16359         fi
16360         aix_use_runtimelinking=no
16361
16362         # Test if we are trying to use run time linking or normal
16363         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16364         # need to do runtime linking.
16365         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16366           for ld_flag in $LDFLAGS; do
16367           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16368             aix_use_runtimelinking=yes
16369             break
16370           fi
16371           done
16372         esac
16373
16374         exp_sym_flag='-bexport'
16375         no_entry_flag='-bnoentry'
16376       fi
16377
16378       # When large executables or shared objects are built, AIX ld can
16379       # have problems creating the table of contents.  If linking a library
16380       # or program results in "error TOC overflow" add -mminimal-toc to
16381       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16382       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16383
16384       archive_cmds_GCJ=''
16385       hardcode_direct_GCJ=yes
16386       hardcode_libdir_separator_GCJ=':'
16387       link_all_deplibs_GCJ=yes
16388
16389       if test "$GCC" = yes; then
16390         case $host_os in aix4.012|aix4.012.*)
16391         # We only want to do this on AIX 4.2 and lower, the check
16392         # below for broken collect2 doesn't work under 4.3+
16393           collect2name=`${CC} -print-prog-name=collect2`
16394           if test -f "$collect2name" && \
16395            strings "$collect2name" | grep resolve_lib_name >/dev/null
16396           then
16397           # We have reworked collect2
16398           hardcode_direct_GCJ=yes
16399           else
16400           # We have old collect2
16401           hardcode_direct_GCJ=unsupported
16402           # It fails to find uninstalled libraries when the uninstalled
16403           # path is not listed in the libpath.  Setting hardcode_minus_L
16404           # to unsupported forces relinking
16405           hardcode_minus_L_GCJ=yes
16406           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16407           hardcode_libdir_separator_GCJ=
16408           fi
16409         esac
16410         shared_flag='-shared'
16411       else
16412         # not using gcc
16413         if test "$host_cpu" = ia64; then
16414         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16415         # chokes on -Wl,-G. The following line is correct:
16416           shared_flag='-G'
16417         else
16418         if test "$aix_use_runtimelinking" = yes; then
16419             shared_flag='${wl}-G'
16420           else
16421             shared_flag='${wl}-bM:SRE'
16422         fi
16423         fi
16424       fi
16425
16426       # It seems that -bexpall does not export symbols beginning with
16427       # underscore (_), so it is better to generate a list of symbols to export.
16428       always_export_symbols_GCJ=yes
16429       if test "$aix_use_runtimelinking" = yes; then
16430         # Warning - without using the other runtime loading flags (-brtl),
16431         # -berok will link without error, but may produce a broken library.
16432         allow_undefined_flag_GCJ='-berok'
16433        # Determine the default libpath from the value encoded in an empty executable.
16434        cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h.  */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h.  */
16440
16441 int
16442 main ()
16443 {
16444
16445   ;
16446   return 0;
16447 }
16448 _ACEOF
16449 rm -f conftest.$ac_objext conftest$ac_exeext
16450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16451   (eval $ac_link) 2>conftest.er1
16452   ac_status=$?
16453   grep -v '^ *+' conftest.er1 >conftest.err
16454   rm -f conftest.er1
16455   cat conftest.err >&5
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); } &&
16458          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460   (eval $ac_try) 2>&5
16461   ac_status=$?
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); }; } &&
16464          { ac_try='test -s conftest$ac_exeext'
16465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466   (eval $ac_try) 2>&5
16467   ac_status=$?
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); }; }; then
16470
16471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16472 }'`
16473 # Check for a 64-bit object if we didn't find anything.
16474 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; }
16475 }'`; fi
16476 else
16477   echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16479
16480 fi
16481 rm -f conftest.err conftest.$ac_objext \
16482       conftest$ac_exeext conftest.$ac_ext
16483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16484
16485        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16486         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"
16487        else
16488         if test "$host_cpu" = ia64; then
16489           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16490           allow_undefined_flag_GCJ="-z nodefs"
16491           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"
16492         else
16493          # Determine the default libpath from the value encoded in an empty executable.
16494          cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h.  */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h.  */
16500
16501 int
16502 main ()
16503 {
16504
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16511   (eval $ac_link) 2>conftest.er1
16512   ac_status=$?
16513   grep -v '^ *+' conftest.er1 >conftest.err
16514   rm -f conftest.er1
16515   cat conftest.err >&5
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } &&
16518          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520   (eval $ac_try) 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); }; } &&
16524          { ac_try='test -s conftest$ac_exeext'
16525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526   (eval $ac_try) 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530
16531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16532 }'`
16533 # Check for a 64-bit object if we didn't find anything.
16534 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; }
16535 }'`; fi
16536 else
16537   echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16539
16540 fi
16541 rm -f conftest.err conftest.$ac_objext \
16542       conftest$ac_exeext conftest.$ac_ext
16543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16544
16545          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16546           # Warning - without using the other run time loading flags,
16547           # -berok will link without error, but may produce a broken library.
16548           no_undefined_flag_GCJ=' ${wl}-bernotok'
16549           allow_undefined_flag_GCJ=' ${wl}-berok'
16550           # -bexpall does not export symbols beginning with underscore (_)
16551           always_export_symbols_GCJ=yes
16552           # Exported symbols can be pulled into shared objects from archives
16553           whole_archive_flag_spec_GCJ=' '
16554           archive_cmds_need_lc_GCJ=yes
16555           # This is similar to how AIX traditionally builds it's shared libraries.
16556           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'
16557         fi
16558       fi
16559       ;;
16560
16561     amigaos*)
16562       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)'
16563       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16564       hardcode_minus_L_GCJ=yes
16565       # see comment about different semantics on the GNU ld section
16566       ld_shlibs_GCJ=no
16567       ;;
16568
16569     bsdi4*)
16570       export_dynamic_flag_spec_GCJ=-rdynamic
16571       ;;
16572
16573     cygwin* | mingw* | pw32*)
16574       # When not using gcc, we currently assume that we are using
16575       # Microsoft Visual C++.
16576       # hardcode_libdir_flag_spec is actually meaningless, as there is
16577       # no search path for DLLs.
16578       hardcode_libdir_flag_spec_GCJ=' '
16579       allow_undefined_flag_GCJ=unsupported
16580       # Tell ltmain to make .lib files, not .a files.
16581       libext=lib
16582       # Tell ltmain to make .dll files, not .so files.
16583       shrext_cmds=".dll"
16584       # FIXME: Setting linknames here is a bad hack.
16585       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16586       # The linker will automatically build a .lib file if we build a DLL.
16587       old_archive_From_new_cmds_GCJ='true'
16588       # FIXME: Should let the user specify the lib program.
16589       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16590       fix_srcfile_path='`cygpath -w "$srcfile"`'
16591       enable_shared_with_static_runtimes_GCJ=yes
16592       ;;
16593
16594     darwin* | rhapsody*)
16595     if test "$GXX" = yes ; then
16596       archive_cmds_need_lc_GCJ=no
16597       case "$host_os" in
16598       rhapsody* | darwin1.[012])
16599         allow_undefined_flag_GCJ='-undefined suppress'
16600         ;;
16601       *) # Darwin 1.3 on
16602       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16603         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16604       else
16605         case ${MACOSX_DEPLOYMENT_TARGET} in
16606           10.[012])
16607             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16608             ;;
16609           10.*)
16610             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16611             ;;
16612         esac
16613       fi
16614         ;;
16615       esac
16616         lt_int_apple_cc_single_mod=no
16617         output_verbose_link_cmd='echo'
16618         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16619           lt_int_apple_cc_single_mod=yes
16620         fi
16621         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16622           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16623         else
16624         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'
16625       fi
16626       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16627       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16628         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16629           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}'
16630         else
16631           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}'
16632         fi
16633           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16634       hardcode_direct_GCJ=no
16635       hardcode_automatic_GCJ=yes
16636       hardcode_shlibpath_var_GCJ=unsupported
16637       whole_archive_flag_spec_GCJ='-all_load $convenience'
16638       link_all_deplibs_GCJ=yes
16639     else
16640       ld_shlibs_GCJ=no
16641     fi
16642       ;;
16643
16644     dgux*)
16645       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16646       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16647       hardcode_shlibpath_var_GCJ=no
16648       ;;
16649
16650     freebsd1*)
16651       ld_shlibs_GCJ=no
16652       ;;
16653
16654     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16655     # support.  Future versions do this automatically, but an explicit c++rt0.o
16656     # does not break anything, and helps significantly (at the cost of a little
16657     # extra space).
16658     freebsd2.2*)
16659       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16660       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16661       hardcode_direct_GCJ=yes
16662       hardcode_shlibpath_var_GCJ=no
16663       ;;
16664
16665     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16666     freebsd2*)
16667       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16668       hardcode_direct_GCJ=yes
16669       hardcode_minus_L_GCJ=yes
16670       hardcode_shlibpath_var_GCJ=no
16671       ;;
16672
16673     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16674     freebsd* | kfreebsd*-gnu)
16675       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16676       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16677       hardcode_direct_GCJ=yes
16678       hardcode_shlibpath_var_GCJ=no
16679       ;;
16680
16681     hpux9*)
16682       if test "$GCC" = yes; then
16683         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'
16684       else
16685         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'
16686       fi
16687       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16688       hardcode_libdir_separator_GCJ=:
16689       hardcode_direct_GCJ=yes
16690
16691       # hardcode_minus_L: Not really in the search PATH,
16692       # but as the default location of the library.
16693       hardcode_minus_L_GCJ=yes
16694       export_dynamic_flag_spec_GCJ='${wl}-E'
16695       ;;
16696
16697     hpux10* | hpux11*)
16698       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16699         case "$host_cpu" in
16700         hppa*64*|ia64*)
16701           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16702           ;;
16703         *)
16704           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16705           ;;
16706         esac
16707       else
16708         case "$host_cpu" in
16709         hppa*64*|ia64*)
16710           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16711           ;;
16712         *)
16713           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16714           ;;
16715         esac
16716       fi
16717       if test "$with_gnu_ld" = no; then
16718         case "$host_cpu" in
16719         hppa*64*)
16720           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16721           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16722           hardcode_libdir_separator_GCJ=:
16723           hardcode_direct_GCJ=no
16724           hardcode_shlibpath_var_GCJ=no
16725           ;;
16726         ia64*)
16727           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16728           hardcode_direct_GCJ=no
16729           hardcode_shlibpath_var_GCJ=no
16730
16731           # hardcode_minus_L: Not really in the search PATH,
16732           # but as the default location of the library.
16733           hardcode_minus_L_GCJ=yes
16734           ;;
16735         *)
16736           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16737           hardcode_libdir_separator_GCJ=:
16738           hardcode_direct_GCJ=yes
16739           export_dynamic_flag_spec_GCJ='${wl}-E'
16740
16741           # hardcode_minus_L: Not really in the search PATH,
16742           # but as the default location of the library.
16743           hardcode_minus_L_GCJ=yes
16744           ;;
16745         esac
16746       fi
16747       ;;
16748
16749     irix5* | irix6* | nonstopux*)
16750       if test "$GCC" = yes; then
16751         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'
16752       else
16753         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'
16754         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16755       fi
16756       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16757       hardcode_libdir_separator_GCJ=:
16758       link_all_deplibs_GCJ=yes
16759       ;;
16760
16761     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16762       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16763         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16764       else
16765         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16766       fi
16767       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16768       hardcode_direct_GCJ=yes
16769       hardcode_shlibpath_var_GCJ=no
16770       ;;
16771
16772     newsos6)
16773       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774       hardcode_direct_GCJ=yes
16775       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16776       hardcode_libdir_separator_GCJ=:
16777       hardcode_shlibpath_var_GCJ=no
16778       ;;
16779
16780     openbsd*)
16781       hardcode_direct_GCJ=yes
16782       hardcode_shlibpath_var_GCJ=no
16783       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16784         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16785         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16786         export_dynamic_flag_spec_GCJ='${wl}-E'
16787       else
16788        case $host_os in
16789          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16790            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16791            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16792            ;;
16793          *)
16794            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16795            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16796            ;;
16797        esac
16798       fi
16799       ;;
16800
16801     os2*)
16802       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16803       hardcode_minus_L_GCJ=yes
16804       allow_undefined_flag_GCJ=unsupported
16805       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'
16806       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16807       ;;
16808
16809     osf3*)
16810       if test "$GCC" = yes; then
16811         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16812         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'
16813       else
16814         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16815         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'
16816       fi
16817       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16818       hardcode_libdir_separator_GCJ=:
16819       ;;
16820
16821     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16822       if test "$GCC" = yes; then
16823         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16824         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'
16825         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16826       else
16827         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16828         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'
16829         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~
16830         $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'
16831
16832         # Both c and cxx compiler support -rpath directly
16833         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16834       fi
16835       hardcode_libdir_separator_GCJ=:
16836       ;;
16837
16838     sco3.2v5*)
16839       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16840       hardcode_shlibpath_var_GCJ=no
16841       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16842       runpath_var=LD_RUN_PATH
16843       hardcode_runpath_var=yes
16844       ;;
16845
16846     solaris*)
16847       no_undefined_flag_GCJ=' -z text'
16848       if test "$GCC" = yes; then
16849         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16850         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16851           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16852       else
16853         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16854         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16855         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16856       fi
16857       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16858       hardcode_shlibpath_var_GCJ=no
16859       case $host_os in
16860       solaris2.[0-5] | solaris2.[0-5].*) ;;
16861       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16862         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16863       esac
16864       link_all_deplibs_GCJ=yes
16865       ;;
16866
16867     sunos4*)
16868       if test "x$host_vendor" = xsequent; then
16869         # Use $CC to link under sequent, because it throws in some extra .o
16870         # files that make .init and .fini sections work.
16871         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16872       else
16873         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16874       fi
16875       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16876       hardcode_direct_GCJ=yes
16877       hardcode_minus_L_GCJ=yes
16878       hardcode_shlibpath_var_GCJ=no
16879       ;;
16880
16881     sysv4)
16882       case $host_vendor in
16883         sni)
16884           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16885           hardcode_direct_GCJ=yes # is this really true???
16886         ;;
16887         siemens)
16888           ## LD is ld it makes a PLAMLIB
16889           ## CC just makes a GrossModule.
16890           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16891           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16892           hardcode_direct_GCJ=no
16893         ;;
16894         motorola)
16895           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16896           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16897         ;;
16898       esac
16899       runpath_var='LD_RUN_PATH'
16900       hardcode_shlibpath_var_GCJ=no
16901       ;;
16902
16903     sysv4.3*)
16904       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16905       hardcode_shlibpath_var_GCJ=no
16906       export_dynamic_flag_spec_GCJ='-Bexport'
16907       ;;
16908
16909     sysv4*MP*)
16910       if test -d /usr/nec; then
16911         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16912         hardcode_shlibpath_var_GCJ=no
16913         runpath_var=LD_RUN_PATH
16914         hardcode_runpath_var=yes
16915         ld_shlibs_GCJ=yes
16916       fi
16917       ;;
16918
16919     sysv4.2uw2*)
16920       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16921       hardcode_direct_GCJ=yes
16922       hardcode_minus_L_GCJ=no
16923       hardcode_shlibpath_var_GCJ=no
16924       hardcode_runpath_var=yes
16925       runpath_var=LD_RUN_PATH
16926       ;;
16927
16928    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16929       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16930       if test "$GCC" = yes; then
16931         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16932       else
16933         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16934       fi
16935       runpath_var='LD_RUN_PATH'
16936       hardcode_shlibpath_var_GCJ=no
16937       ;;
16938
16939     sysv5*)
16940       no_undefined_flag_GCJ=' -z text'
16941       # $CC -shared without GNU ld will not create a library from C++
16942       # object files and a static libstdc++, better avoid it by now
16943       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16944       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16945                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16946       hardcode_libdir_flag_spec_GCJ=
16947       hardcode_shlibpath_var_GCJ=no
16948       runpath_var='LD_RUN_PATH'
16949       ;;
16950
16951     uts4*)
16952       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16953       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16954       hardcode_shlibpath_var_GCJ=no
16955       ;;
16956
16957     *)
16958       ld_shlibs_GCJ=no
16959       ;;
16960     esac
16961   fi
16962
16963 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16964 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16965 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16966
16967 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16968 if test "$GCC" = yes; then
16969   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16970 fi
16971
16972 #
16973 # Do we need to explicitly link libc?
16974 #
16975 case "x$archive_cmds_need_lc_GCJ" in
16976 x|xyes)
16977   # Assume -lc should be added
16978   archive_cmds_need_lc_GCJ=yes
16979
16980   if test "$enable_shared" = yes && test "$GCC" = yes; then
16981     case $archive_cmds_GCJ in
16982     *'~'*)
16983       # FIXME: we may have to deal with multi-command sequences.
16984       ;;
16985     '$CC '*)
16986       # Test whether the compiler implicitly links with -lc since on some
16987       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16988       # to ld, don't add -lc before -lgcc.
16989       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16991       $rm conftest*
16992       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16993
16994       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16995   (eval $ac_compile) 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); } 2>conftest.err; then
16999         soname=conftest
17000         lib=conftest
17001         libobjs=conftest.$ac_objext
17002         deplibs=
17003         wl=$lt_prog_compiler_wl_GCJ
17004         compiler_flags=-v
17005         linker_flags=-v
17006         verstring=
17007         output_objdir=.
17008         libname=conftest
17009         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17010         allow_undefined_flag_GCJ=
17011         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17012   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17013   ac_status=$?
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); }
17016         then
17017           archive_cmds_need_lc_GCJ=no
17018         else
17019           archive_cmds_need_lc_GCJ=yes
17020         fi
17021         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17022       else
17023         cat conftest.err 1>&5
17024       fi
17025       $rm conftest*
17026       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17027 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17028       ;;
17029     esac
17030   fi
17031   ;;
17032 esac
17033
17034 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17035 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17036 library_names_spec=
17037 libname_spec='lib$name'
17038 soname_spec=
17039 shrext_cmds=".so"
17040 postinstall_cmds=
17041 postuninstall_cmds=
17042 finish_cmds=
17043 finish_eval=
17044 shlibpath_var=
17045 shlibpath_overrides_runpath=unknown
17046 version_type=none
17047 dynamic_linker="$host_os ld.so"
17048 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17049 if test "$GCC" = yes; then
17050   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17051   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17052     # if the path contains ";" then we assume it to be the separator
17053     # otherwise default to the standard path separator (i.e. ":") - it is
17054     # assumed that no part of a normal pathname contains ";" but that should
17055     # okay in the real world where ";" in dirpaths is itself problematic.
17056     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17057   else
17058     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17059   fi
17060 else
17061   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17062 fi
17063 need_lib_prefix=unknown
17064 hardcode_into_libs=no
17065
17066 # when you set need_version to no, make sure it does not cause -set_version
17067 # flags to be left without arguments
17068 need_version=unknown
17069
17070 case $host_os in
17071 aix3*)
17072   version_type=linux
17073   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17074   shlibpath_var=LIBPATH
17075
17076   # AIX 3 has no versioning support, so we append a major version to the name.
17077   soname_spec='${libname}${release}${shared_ext}$major'
17078   ;;
17079
17080 aix4* | aix5*)
17081   version_type=linux
17082   need_lib_prefix=no
17083   need_version=no
17084   hardcode_into_libs=yes
17085   if test "$host_cpu" = ia64; then
17086     # AIX 5 supports IA64
17087     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17088     shlibpath_var=LD_LIBRARY_PATH
17089   else
17090     # With GCC up to 2.95.x, collect2 would create an import file
17091     # for dependence libraries.  The import file would start with
17092     # the line `#! .'.  This would cause the generated library to
17093     # depend on `.', always an invalid library.  This was fixed in
17094     # development snapshots of GCC prior to 3.0.
17095     case $host_os in
17096       aix4 | aix4.[01] | aix4.[01].*)
17097       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17098            echo ' yes '
17099            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17100         :
17101       else
17102         can_build_shared=no
17103       fi
17104       ;;
17105     esac
17106     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17107     # soname into executable. Probably we can add versioning support to
17108     # collect2, so additional links can be useful in future.
17109     if test "$aix_use_runtimelinking" = yes; then
17110       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17111       # instead of lib<name>.a to let people know that these are not
17112       # typical AIX shared libraries.
17113       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17114     else
17115       # We preserve .a as extension for shared libraries through AIX4.2
17116       # and later when we are not doing run time linking.
17117       library_names_spec='${libname}${release}.a $libname.a'
17118       soname_spec='${libname}${release}${shared_ext}$major'
17119     fi
17120     shlibpath_var=LIBPATH
17121   fi
17122   ;;
17123
17124 amigaos*)
17125   library_names_spec='$libname.ixlibrary $libname.a'
17126   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17127   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'
17128   ;;
17129
17130 beos*)
17131   library_names_spec='${libname}${shared_ext}'
17132   dynamic_linker="$host_os ld.so"
17133   shlibpath_var=LIBRARY_PATH
17134   ;;
17135
17136 bsdi4*)
17137   version_type=linux
17138   need_version=no
17139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17140   soname_spec='${libname}${release}${shared_ext}$major'
17141   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17142   shlibpath_var=LD_LIBRARY_PATH
17143   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17144   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17145   # the default ld.so.conf also contains /usr/contrib/lib and
17146   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17147   # libtool to hard-code these into programs
17148   ;;
17149
17150 cygwin* | mingw* | pw32*)
17151   version_type=windows
17152   shrext_cmds=".dll"
17153   need_version=no
17154   need_lib_prefix=no
17155
17156   case $GCC,$host_os in
17157   yes,cygwin* | yes,mingw* | yes,pw32*)
17158     library_names_spec='$libname.dll.a'
17159     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17160     postinstall_cmds='base_file=`basename \${file}`~
17161       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17162       dldir=$destdir/`dirname \$dlpath`~
17163       test -d \$dldir || mkdir -p \$dldir~
17164       $install_prog $dir/$dlname \$dldir/$dlname'
17165     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17166       dlpath=$dir/\$dldll~
17167        $rm \$dlpath'
17168     shlibpath_overrides_runpath=yes
17169
17170     case $host_os in
17171     cygwin*)
17172       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17173       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17174       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17175       ;;
17176     mingw*)
17177       # MinGW DLLs use traditional 'lib' prefix
17178       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17179       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17180       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17181         # It is most probably a Windows format PATH printed by
17182         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17183         # path with ; separators, and with drive letters. We can handle the
17184         # drive letters (cygwin fileutils understands them), so leave them,
17185         # especially as we might pass files found there to a mingw objdump,
17186         # which wouldn't understand a cygwinified path. Ahh.
17187         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17188       else
17189         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17190       fi
17191       ;;
17192     pw32*)
17193       # pw32 DLLs use 'pw' prefix rather than 'lib'
17194       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17195       ;;
17196     esac
17197     ;;
17198
17199   *)
17200     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17201     ;;
17202   esac
17203   dynamic_linker='Win32 ld.exe'
17204   # FIXME: first we should search . and the directory the executable is in
17205   shlibpath_var=PATH
17206   ;;
17207
17208 darwin* | rhapsody*)
17209   dynamic_linker="$host_os dyld"
17210   version_type=darwin
17211   need_lib_prefix=no
17212   need_version=no
17213   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17214   soname_spec='${libname}${release}${major}$shared_ext'
17215   shlibpath_overrides_runpath=yes
17216   shlibpath_var=DYLD_LIBRARY_PATH
17217   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17218   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17219   if test "$GCC" = yes; then
17220     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"`
17221   else
17222     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17223   fi
17224   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17225   ;;
17226
17227 dgux*)
17228   version_type=linux
17229   need_lib_prefix=no
17230   need_version=no
17231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17232   soname_spec='${libname}${release}${shared_ext}$major'
17233   shlibpath_var=LD_LIBRARY_PATH
17234   ;;
17235
17236 freebsd1*)
17237   dynamic_linker=no
17238   ;;
17239
17240 kfreebsd*-gnu)
17241   version_type=linux
17242   need_lib_prefix=no
17243   need_version=no
17244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17245   soname_spec='${libname}${release}${shared_ext}$major'
17246   shlibpath_var=LD_LIBRARY_PATH
17247   shlibpath_overrides_runpath=no
17248   hardcode_into_libs=yes
17249   dynamic_linker='GNU ld.so'
17250   ;;
17251
17252 freebsd*)
17253   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17254   version_type=freebsd-$objformat
17255   case $version_type in
17256     freebsd-elf*)
17257       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17258       need_version=no
17259       need_lib_prefix=no
17260       ;;
17261     freebsd-*)
17262       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17263       need_version=yes
17264       ;;
17265   esac
17266   shlibpath_var=LD_LIBRARY_PATH
17267   case $host_os in
17268   freebsd2*)
17269     shlibpath_overrides_runpath=yes
17270     ;;
17271   freebsd3.01* | freebsdelf3.01*)
17272     shlibpath_overrides_runpath=yes
17273     hardcode_into_libs=yes
17274     ;;
17275   *) # from 3.2 on
17276     shlibpath_overrides_runpath=no
17277     hardcode_into_libs=yes
17278     ;;
17279   esac
17280   ;;
17281
17282 gnu*)
17283   version_type=linux
17284   need_lib_prefix=no
17285   need_version=no
17286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17287   soname_spec='${libname}${release}${shared_ext}$major'
17288   shlibpath_var=LD_LIBRARY_PATH
17289   hardcode_into_libs=yes
17290   ;;
17291
17292 hpux9* | hpux10* | hpux11*)
17293   # Give a soname corresponding to the major version so that dld.sl refuses to
17294   # link against other versions.
17295   version_type=sunos
17296   need_lib_prefix=no
17297   need_version=no
17298   case "$host_cpu" in
17299   ia64*)
17300     shrext_cmds='.so'
17301     hardcode_into_libs=yes
17302     dynamic_linker="$host_os dld.so"
17303     shlibpath_var=LD_LIBRARY_PATH
17304     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17306     soname_spec='${libname}${release}${shared_ext}$major'
17307     if test "X$HPUX_IA64_MODE" = X32; then
17308       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17309     else
17310       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17311     fi
17312     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17313     ;;
17314    hppa*64*)
17315      shrext_cmds='.sl'
17316      hardcode_into_libs=yes
17317      dynamic_linker="$host_os dld.sl"
17318      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17319      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17320      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321      soname_spec='${libname}${release}${shared_ext}$major'
17322      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17323      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17324      ;;
17325    *)
17326     shrext_cmds='.sl'
17327     dynamic_linker="$host_os dld.sl"
17328     shlibpath_var=SHLIB_PATH
17329     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17330     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331     soname_spec='${libname}${release}${shared_ext}$major'
17332     ;;
17333   esac
17334   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17335   postinstall_cmds='chmod 555 $lib'
17336   ;;
17337
17338 irix5* | irix6* | nonstopux*)
17339   case $host_os in
17340     nonstopux*) version_type=nonstopux ;;
17341     *)
17342         if test "$lt_cv_prog_gnu_ld" = yes; then
17343                 version_type=linux
17344         else
17345                 version_type=irix
17346         fi ;;
17347   esac
17348   need_lib_prefix=no
17349   need_version=no
17350   soname_spec='${libname}${release}${shared_ext}$major'
17351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17352   case $host_os in
17353   irix5* | nonstopux*)
17354     libsuff= shlibsuff=
17355     ;;
17356   *)
17357     case $LD in # libtool.m4 will add one of these switches to LD
17358     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17359       libsuff= shlibsuff= libmagic=32-bit;;
17360     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17361       libsuff=32 shlibsuff=N32 libmagic=N32;;
17362     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17363       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17364     *) libsuff= shlibsuff= libmagic=never-match;;
17365     esac
17366     ;;
17367   esac
17368   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17369   shlibpath_overrides_runpath=no
17370   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17371   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17372   hardcode_into_libs=yes
17373   ;;
17374
17375 # No shared lib support for Linux oldld, aout, or coff.
17376 linux*oldld* | linux*aout* | linux*coff*)
17377   dynamic_linker=no
17378   ;;
17379
17380 # This must be Linux ELF.
17381 linux*)
17382   version_type=linux
17383   need_lib_prefix=no
17384   need_version=no
17385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386   soname_spec='${libname}${release}${shared_ext}$major'
17387   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17388   shlibpath_var=LD_LIBRARY_PATH
17389   shlibpath_overrides_runpath=no
17390   # This implies no fast_install, which is unacceptable.
17391   # Some rework will be needed to allow for fast_install
17392   # before this can be enabled.
17393   hardcode_into_libs=yes
17394
17395   # Append ld.so.conf contents to the search path
17396   if test -f /etc/ld.so.conf; then
17397     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17398     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17399   fi
17400
17401   # We used to test for /lib/ld.so.1 and disable shared libraries on
17402   # powerpc, because MkLinux only supported shared libraries with the
17403   # GNU dynamic linker.  Since this was broken with cross compilers,
17404   # most powerpc-linux boxes support dynamic linking these days and
17405   # people can always --disable-shared, the test was removed, and we
17406   # assume the GNU/Linux dynamic linker is in use.
17407   dynamic_linker='GNU/Linux ld.so'
17408   ;;
17409
17410 netbsdelf*-gnu)
17411   version_type=linux
17412   need_lib_prefix=no
17413   need_version=no
17414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17415   soname_spec='${libname}${release}${shared_ext}$major'
17416   shlibpath_var=LD_LIBRARY_PATH
17417   shlibpath_overrides_runpath=no
17418   hardcode_into_libs=yes
17419   dynamic_linker='NetBSD ld.elf_so'
17420   ;;
17421
17422 knetbsd*-gnu)
17423   version_type=linux
17424   need_lib_prefix=no
17425   need_version=no
17426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17427   soname_spec='${libname}${release}${shared_ext}$major'
17428   shlibpath_var=LD_LIBRARY_PATH
17429   shlibpath_overrides_runpath=no
17430   hardcode_into_libs=yes
17431   dynamic_linker='GNU ld.so'
17432   ;;
17433
17434 netbsd*)
17435   version_type=sunos
17436   need_lib_prefix=no
17437   need_version=no
17438   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17440     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17441     dynamic_linker='NetBSD (a.out) ld.so'
17442   else
17443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17444     soname_spec='${libname}${release}${shared_ext}$major'
17445     dynamic_linker='NetBSD ld.elf_so'
17446   fi
17447   shlibpath_var=LD_LIBRARY_PATH
17448   shlibpath_overrides_runpath=yes
17449   hardcode_into_libs=yes
17450   ;;
17451
17452 newsos6)
17453   version_type=linux
17454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455   shlibpath_var=LD_LIBRARY_PATH
17456   shlibpath_overrides_runpath=yes
17457   ;;
17458
17459 nto-qnx*)
17460   version_type=linux
17461   need_lib_prefix=no
17462   need_version=no
17463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464   soname_spec='${libname}${release}${shared_ext}$major'
17465   shlibpath_var=LD_LIBRARY_PATH
17466   shlibpath_overrides_runpath=yes
17467   ;;
17468
17469 openbsd*)
17470   version_type=sunos
17471   need_lib_prefix=no
17472   need_version=yes
17473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17474   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17475   shlibpath_var=LD_LIBRARY_PATH
17476   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17477     case $host_os in
17478       openbsd2.[89] | openbsd2.[89].*)
17479         shlibpath_overrides_runpath=no
17480         ;;
17481       *)
17482         shlibpath_overrides_runpath=yes
17483         ;;
17484       esac
17485   else
17486     shlibpath_overrides_runpath=yes
17487   fi
17488   ;;
17489
17490 os2*)
17491   libname_spec='$name'
17492   shrext_cmds=".dll"
17493   need_lib_prefix=no
17494   library_names_spec='$libname${shared_ext} $libname.a'
17495   dynamic_linker='OS/2 ld.exe'
17496   shlibpath_var=LIBPATH
17497   ;;
17498
17499 osf3* | osf4* | osf5*)
17500   version_type=osf
17501   need_lib_prefix=no
17502   need_version=no
17503   soname_spec='${libname}${release}${shared_ext}$major'
17504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505   shlibpath_var=LD_LIBRARY_PATH
17506   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17507   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17508   ;;
17509
17510 sco3.2v5*)
17511   version_type=osf
17512   soname_spec='${libname}${release}${shared_ext}$major'
17513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17514   shlibpath_var=LD_LIBRARY_PATH
17515   ;;
17516
17517 solaris*)
17518   version_type=linux
17519   need_lib_prefix=no
17520   need_version=no
17521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522   soname_spec='${libname}${release}${shared_ext}$major'
17523   shlibpath_var=LD_LIBRARY_PATH
17524   shlibpath_overrides_runpath=yes
17525   hardcode_into_libs=yes
17526   # ldd complains unless libraries are executable
17527   postinstall_cmds='chmod +x $lib'
17528   ;;
17529
17530 sunos4*)
17531   version_type=sunos
17532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17533   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17534   shlibpath_var=LD_LIBRARY_PATH
17535   shlibpath_overrides_runpath=yes
17536   if test "$with_gnu_ld" = yes; then
17537     need_lib_prefix=no
17538   fi
17539   need_version=yes
17540   ;;
17541
17542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17543   version_type=linux
17544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17545   soname_spec='${libname}${release}${shared_ext}$major'
17546   shlibpath_var=LD_LIBRARY_PATH
17547   case $host_vendor in
17548     sni)
17549       shlibpath_overrides_runpath=no
17550       need_lib_prefix=no
17551       export_dynamic_flag_spec='${wl}-Blargedynsym'
17552       runpath_var=LD_RUN_PATH
17553       ;;
17554     siemens)
17555       need_lib_prefix=no
17556       ;;
17557     motorola)
17558       need_lib_prefix=no
17559       need_version=no
17560       shlibpath_overrides_runpath=no
17561       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17562       ;;
17563   esac
17564   ;;
17565
17566 sysv4*MP*)
17567   if test -d /usr/nec ;then
17568     version_type=linux
17569     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17570     soname_spec='$libname${shared_ext}.$major'
17571     shlibpath_var=LD_LIBRARY_PATH
17572   fi
17573   ;;
17574
17575 uts4*)
17576   version_type=linux
17577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17578   soname_spec='${libname}${release}${shared_ext}$major'
17579   shlibpath_var=LD_LIBRARY_PATH
17580   ;;
17581
17582 *)
17583   dynamic_linker=no
17584   ;;
17585 esac
17586 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17587 echo "${ECHO_T}$dynamic_linker" >&6
17588 test "$dynamic_linker" = no && can_build_shared=no
17589
17590 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17591 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17592 hardcode_action_GCJ=
17593 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17594    test -n "$runpath_var GCJ" || \
17595    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17596
17597   # We can hardcode non-existant directories.
17598   if test "$hardcode_direct_GCJ" != no &&
17599      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17600      # have to relink, otherwise we might link with an installed library
17601      # when we should be linking with a yet-to-be-installed one
17602      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17603      test "$hardcode_minus_L_GCJ" != no; then
17604     # Linking always hardcodes the temporary library directory.
17605     hardcode_action_GCJ=relink
17606   else
17607     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17608     hardcode_action_GCJ=immediate
17609   fi
17610 else
17611   # We cannot hardcode anything, or else we can only hardcode existing
17612   # directories.
17613   hardcode_action_GCJ=unsupported
17614 fi
17615 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17616 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17617
17618 if test "$hardcode_action_GCJ" = relink; then
17619   # Fast installation is not supported
17620   enable_fast_install=no
17621 elif test "$shlibpath_overrides_runpath" = yes ||
17622      test "$enable_shared" = no; then
17623   # Fast installation is not necessary
17624   enable_fast_install=needless
17625 fi
17626
17627 striplib=
17628 old_striplib=
17629 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17630 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17631 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17632   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17633   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17634   echo "$as_me:$LINENO: result: yes" >&5
17635 echo "${ECHO_T}yes" >&6
17636 else
17637 # FIXME - insert some real tests, host_os isn't really good enough
17638   case $host_os in
17639    darwin*)
17640        if test -n "$STRIP" ; then
17641          striplib="$STRIP -x"
17642          echo "$as_me:$LINENO: result: yes" >&5
17643 echo "${ECHO_T}yes" >&6
17644        else
17645   echo "$as_me:$LINENO: result: no" >&5
17646 echo "${ECHO_T}no" >&6
17647 fi
17648        ;;
17649    *)
17650   echo "$as_me:$LINENO: result: no" >&5
17651 echo "${ECHO_T}no" >&6
17652     ;;
17653   esac
17654 fi
17655
17656 if test "x$enable_dlopen" != xyes; then
17657   enable_dlopen=unknown
17658   enable_dlopen_self=unknown
17659   enable_dlopen_self_static=unknown
17660 else
17661   lt_cv_dlopen=no
17662   lt_cv_dlopen_libs=
17663
17664   case $host_os in
17665   beos*)
17666     lt_cv_dlopen="load_add_on"
17667     lt_cv_dlopen_libs=
17668     lt_cv_dlopen_self=yes
17669     ;;
17670
17671   mingw* | pw32*)
17672     lt_cv_dlopen="LoadLibrary"
17673     lt_cv_dlopen_libs=
17674    ;;
17675
17676   cygwin*)
17677     lt_cv_dlopen="dlopen"
17678     lt_cv_dlopen_libs=
17679    ;;
17680
17681   darwin*)
17682   # if libdl is installed we need to link against it
17683     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17684 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17685 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688   ac_check_lib_save_LIBS=$LIBS
17689 LIBS="-ldl  $LIBS"
17690 cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h.  */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h.  */
17696
17697 /* Override any gcc2 internal prototype to avoid an error.  */
17698 #ifdef __cplusplus
17699 extern "C"
17700 #endif
17701 /* We use char because int might match the return type of a gcc2
17702    builtin and then its argument prototype would still apply.  */
17703 char dlopen ();
17704 int
17705 main ()
17706 {
17707 dlopen ();
17708   ;
17709   return 0;
17710 }
17711 _ACEOF
17712 rm -f conftest.$ac_objext conftest$ac_exeext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714   (eval $ac_link) 2>conftest.er1
17715   ac_status=$?
17716   grep -v '^ *+' conftest.er1 >conftest.err
17717   rm -f conftest.er1
17718   cat conftest.err >&5
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } &&
17721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; } &&
17727          { ac_try='test -s conftest$ac_exeext'
17728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729   (eval $ac_try) 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }; }; then
17733   ac_cv_lib_dl_dlopen=yes
17734 else
17735   echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738 ac_cv_lib_dl_dlopen=no
17739 fi
17740 rm -f conftest.err conftest.$ac_objext \
17741       conftest$ac_exeext conftest.$ac_ext
17742 LIBS=$ac_check_lib_save_LIBS
17743 fi
17744 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17745 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17746 if test $ac_cv_lib_dl_dlopen = yes; then
17747   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17748 else
17749
17750     lt_cv_dlopen="dyld"
17751     lt_cv_dlopen_libs=
17752     lt_cv_dlopen_self=yes
17753
17754 fi
17755
17756    ;;
17757
17758   *)
17759     echo "$as_me:$LINENO: checking for shl_load" >&5
17760 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17761 if test "${ac_cv_func_shl_load+set}" = set; then
17762   echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764   cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h.  */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h.  */
17770 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17772 #define shl_load innocuous_shl_load
17773
17774 /* System header to define __stub macros and hopefully few prototypes,
17775     which can conflict with char shl_load (); below.
17776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17777     <limits.h> exists even on freestanding compilers.  */
17778
17779 #ifdef __STDC__
17780 # include <limits.h>
17781 #else
17782 # include <assert.h>
17783 #endif
17784
17785 #undef shl_load
17786
17787 /* Override any gcc2 internal prototype to avoid an error.  */
17788 #ifdef __cplusplus
17789 extern "C"
17790 {
17791 #endif
17792 /* We use char because int might match the return type of a gcc2
17793    builtin and then its argument prototype would still apply.  */
17794 char shl_load ();
17795 /* The GNU C library defines this for functions which it implements
17796     to always fail with ENOSYS.  Some functions are actually named
17797     something starting with __ and the normal name is an alias.  */
17798 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17799 choke me
17800 #else
17801 char (*f) () = shl_load;
17802 #endif
17803 #ifdef __cplusplus
17804 }
17805 #endif
17806
17807 int
17808 main ()
17809 {
17810 return f != shl_load;
17811   ;
17812   return 0;
17813 }
17814 _ACEOF
17815 rm -f conftest.$ac_objext conftest$ac_exeext
17816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17817   (eval $ac_link) 2>conftest.er1
17818   ac_status=$?
17819   grep -v '^ *+' conftest.er1 >conftest.err
17820   rm -f conftest.er1
17821   cat conftest.err >&5
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); } &&
17824          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826   (eval $ac_try) 2>&5
17827   ac_status=$?
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); }; } &&
17830          { ac_try='test -s conftest$ac_exeext'
17831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832   (eval $ac_try) 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; }; then
17836   ac_cv_func_shl_load=yes
17837 else
17838   echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 ac_cv_func_shl_load=no
17842 fi
17843 rm -f conftest.err conftest.$ac_objext \
17844       conftest$ac_exeext conftest.$ac_ext
17845 fi
17846 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17847 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17848 if test $ac_cv_func_shl_load = yes; then
17849   lt_cv_dlopen="shl_load"
17850 else
17851   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17852 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17853 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17854   echo $ECHO_N "(cached) $ECHO_C" >&6
17855 else
17856   ac_check_lib_save_LIBS=$LIBS
17857 LIBS="-ldld  $LIBS"
17858 cat >conftest.$ac_ext <<_ACEOF
17859 /* confdefs.h.  */
17860 _ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h.  */
17864
17865 /* Override any gcc2 internal prototype to avoid an error.  */
17866 #ifdef __cplusplus
17867 extern "C"
17868 #endif
17869 /* We use char because int might match the return type of a gcc2
17870    builtin and then its argument prototype would still apply.  */
17871 char shl_load ();
17872 int
17873 main ()
17874 {
17875 shl_load ();
17876   ;
17877   return 0;
17878 }
17879 _ACEOF
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17882   (eval $ac_link) 2>conftest.er1
17883   ac_status=$?
17884   grep -v '^ *+' conftest.er1 >conftest.err
17885   rm -f conftest.er1
17886   cat conftest.err >&5
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); } &&
17889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891   (eval $ac_try) 2>&5
17892   ac_status=$?
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); }; } &&
17895          { ac_try='test -s conftest$ac_exeext'
17896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897   (eval $ac_try) 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); }; }; then
17901   ac_cv_lib_dld_shl_load=yes
17902 else
17903   echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906 ac_cv_lib_dld_shl_load=no
17907 fi
17908 rm -f conftest.err conftest.$ac_objext \
17909       conftest$ac_exeext conftest.$ac_ext
17910 LIBS=$ac_check_lib_save_LIBS
17911 fi
17912 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17913 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17914 if test $ac_cv_lib_dld_shl_load = yes; then
17915   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17916 else
17917   echo "$as_me:$LINENO: checking for dlopen" >&5
17918 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17919 if test "${ac_cv_func_dlopen+set}" = set; then
17920   echo $ECHO_N "(cached) $ECHO_C" >&6
17921 else
17922   cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h.  */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h.  */
17928 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17930 #define dlopen innocuous_dlopen
17931
17932 /* System header to define __stub macros and hopefully few prototypes,
17933     which can conflict with char dlopen (); below.
17934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17935     <limits.h> exists even on freestanding compilers.  */
17936
17937 #ifdef __STDC__
17938 # include <limits.h>
17939 #else
17940 # include <assert.h>
17941 #endif
17942
17943 #undef dlopen
17944
17945 /* Override any gcc2 internal prototype to avoid an error.  */
17946 #ifdef __cplusplus
17947 extern "C"
17948 {
17949 #endif
17950 /* We use char because int might match the return type of a gcc2
17951    builtin and then its argument prototype would still apply.  */
17952 char dlopen ();
17953 /* The GNU C library defines this for functions which it implements
17954     to always fail with ENOSYS.  Some functions are actually named
17955     something starting with __ and the normal name is an alias.  */
17956 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17957 choke me
17958 #else
17959 char (*f) () = dlopen;
17960 #endif
17961 #ifdef __cplusplus
17962 }
17963 #endif
17964
17965 int
17966 main ()
17967 {
17968 return f != dlopen;
17969   ;
17970   return 0;
17971 }
17972 _ACEOF
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17975   (eval $ac_link) 2>conftest.er1
17976   ac_status=$?
17977   grep -v '^ *+' conftest.er1 >conftest.err
17978   rm -f conftest.er1
17979   cat conftest.err >&5
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); } &&
17982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984   (eval $ac_try) 2>&5
17985   ac_status=$?
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); }; } &&
17988          { ac_try='test -s conftest$ac_exeext'
17989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990   (eval $ac_try) 2>&5
17991   ac_status=$?
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); }; }; then
17994   ac_cv_func_dlopen=yes
17995 else
17996   echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17998
17999 ac_cv_func_dlopen=no
18000 fi
18001 rm -f conftest.err conftest.$ac_objext \
18002       conftest$ac_exeext conftest.$ac_ext
18003 fi
18004 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18005 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18006 if test $ac_cv_func_dlopen = yes; then
18007   lt_cv_dlopen="dlopen"
18008 else
18009   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18010 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18011 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014   ac_check_lib_save_LIBS=$LIBS
18015 LIBS="-ldl  $LIBS"
18016 cat >conftest.$ac_ext <<_ACEOF
18017 /* confdefs.h.  */
18018 _ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h.  */
18022
18023 /* Override any gcc2 internal prototype to avoid an error.  */
18024 #ifdef __cplusplus
18025 extern "C"
18026 #endif
18027 /* We use char because int might match the return type of a gcc2
18028    builtin and then its argument prototype would still apply.  */
18029 char dlopen ();
18030 int
18031 main ()
18032 {
18033 dlopen ();
18034   ;
18035   return 0;
18036 }
18037 _ACEOF
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18040   (eval $ac_link) 2>conftest.er1
18041   ac_status=$?
18042   grep -v '^ *+' conftest.er1 >conftest.err
18043   rm -f conftest.er1
18044   cat conftest.err >&5
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } &&
18047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049   (eval $ac_try) 2>&5
18050   ac_status=$?
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); }; } &&
18053          { ac_try='test -s conftest$ac_exeext'
18054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055   (eval $ac_try) 2>&5
18056   ac_status=$?
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); }; }; then
18059   ac_cv_lib_dl_dlopen=yes
18060 else
18061   echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18063
18064 ac_cv_lib_dl_dlopen=no
18065 fi
18066 rm -f conftest.err conftest.$ac_objext \
18067       conftest$ac_exeext conftest.$ac_ext
18068 LIBS=$ac_check_lib_save_LIBS
18069 fi
18070 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18071 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18072 if test $ac_cv_lib_dl_dlopen = yes; then
18073   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18074 else
18075   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18076 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18077 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18078   echo $ECHO_N "(cached) $ECHO_C" >&6
18079 else
18080   ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-lsvld  $LIBS"
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h.  */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h.  */
18088
18089 /* Override any gcc2 internal prototype to avoid an error.  */
18090 #ifdef __cplusplus
18091 extern "C"
18092 #endif
18093 /* We use char because int might match the return type of a gcc2
18094    builtin and then its argument prototype would still apply.  */
18095 char dlopen ();
18096 int
18097 main ()
18098 {
18099 dlopen ();
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106   (eval $ac_link) 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115   (eval $ac_try) 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; } &&
18119          { ac_try='test -s conftest$ac_exeext'
18120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121   (eval $ac_try) 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; }; then
18125   ac_cv_lib_svld_dlopen=yes
18126 else
18127   echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 ac_cv_lib_svld_dlopen=no
18131 fi
18132 rm -f conftest.err conftest.$ac_objext \
18133       conftest$ac_exeext conftest.$ac_ext
18134 LIBS=$ac_check_lib_save_LIBS
18135 fi
18136 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18137 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18138 if test $ac_cv_lib_svld_dlopen = yes; then
18139   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18140 else
18141   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18142 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18143 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18144   echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146   ac_check_lib_save_LIBS=$LIBS
18147 LIBS="-ldld  $LIBS"
18148 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h.  */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h.  */
18154
18155 /* Override any gcc2 internal prototype to avoid an error.  */
18156 #ifdef __cplusplus
18157 extern "C"
18158 #endif
18159 /* We use char because int might match the return type of a gcc2
18160    builtin and then its argument prototype would still apply.  */
18161 char dld_link ();
18162 int
18163 main ()
18164 {
18165 dld_link ();
18166   ;
18167   return 0;
18168 }
18169 _ACEOF
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18172   (eval $ac_link) 2>conftest.er1
18173   ac_status=$?
18174   grep -v '^ *+' conftest.er1 >conftest.err
18175   rm -f conftest.er1
18176   cat conftest.err >&5
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } &&
18179          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181   (eval $ac_try) 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; } &&
18185          { ac_try='test -s conftest$ac_exeext'
18186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187   (eval $ac_try) 2>&5
18188   ac_status=$?
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); }; }; then
18191   ac_cv_lib_dld_dld_link=yes
18192 else
18193   echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18195
18196 ac_cv_lib_dld_dld_link=no
18197 fi
18198 rm -f conftest.err conftest.$ac_objext \
18199       conftest$ac_exeext conftest.$ac_ext
18200 LIBS=$ac_check_lib_save_LIBS
18201 fi
18202 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18203 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18204 if test $ac_cv_lib_dld_dld_link = yes; then
18205   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18206 fi
18207
18208
18209 fi
18210
18211
18212 fi
18213
18214
18215 fi
18216
18217
18218 fi
18219
18220
18221 fi
18222
18223     ;;
18224   esac
18225
18226   if test "x$lt_cv_dlopen" != xno; then
18227     enable_dlopen=yes
18228   else
18229     enable_dlopen=no
18230   fi
18231
18232   case $lt_cv_dlopen in
18233   dlopen)
18234     save_CPPFLAGS="$CPPFLAGS"
18235     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18236
18237     save_LDFLAGS="$LDFLAGS"
18238     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18239
18240     save_LIBS="$LIBS"
18241     LIBS="$lt_cv_dlopen_libs $LIBS"
18242
18243     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18244 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18245 if test "${lt_cv_dlopen_self+set}" = set; then
18246   echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248           if test "$cross_compiling" = yes; then :
18249   lt_cv_dlopen_self=cross
18250 else
18251   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18252   lt_status=$lt_dlunknown
18253   cat > conftest.$ac_ext <<EOF
18254 #line 18254 "configure"
18255 #include "confdefs.h"
18256
18257 #if HAVE_DLFCN_H
18258 #include <dlfcn.h>
18259 #endif
18260
18261 #include <stdio.h>
18262
18263 #ifdef RTLD_GLOBAL
18264 #  define LT_DLGLOBAL           RTLD_GLOBAL
18265 #else
18266 #  ifdef DL_GLOBAL
18267 #    define LT_DLGLOBAL         DL_GLOBAL
18268 #  else
18269 #    define LT_DLGLOBAL         0
18270 #  endif
18271 #endif
18272
18273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18274    find out it does not work in some platform. */
18275 #ifndef LT_DLLAZY_OR_NOW
18276 #  ifdef RTLD_LAZY
18277 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18278 #  else
18279 #    ifdef DL_LAZY
18280 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18281 #    else
18282 #      ifdef RTLD_NOW
18283 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18284 #      else
18285 #        ifdef DL_NOW
18286 #          define LT_DLLAZY_OR_NOW      DL_NOW
18287 #        else
18288 #          define LT_DLLAZY_OR_NOW      0
18289 #        endif
18290 #      endif
18291 #    endif
18292 #  endif
18293 #endif
18294
18295 #ifdef __cplusplus
18296 extern "C" void exit (int);
18297 #endif
18298
18299 void fnord() { int i=42;}
18300 int main ()
18301 {
18302   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18303   int status = $lt_dlunknown;
18304
18305   if (self)
18306     {
18307       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18308       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18309       /* dlclose (self); */
18310     }
18311
18312     exit (status);
18313 }
18314 EOF
18315   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316   (eval $ac_link) 2>&5
18317   ac_status=$?
18318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18320     (./conftest; exit; ) 2>/dev/null
18321     lt_status=$?
18322     case x$lt_status in
18323       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18324       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18325       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18326     esac
18327   else :
18328     # compilation failed
18329     lt_cv_dlopen_self=no
18330   fi
18331 fi
18332 rm -fr conftest*
18333
18334
18335 fi
18336 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18337 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18338
18339     if test "x$lt_cv_dlopen_self" = xyes; then
18340       LDFLAGS="$LDFLAGS $link_static_flag"
18341       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18342 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18343 if test "${lt_cv_dlopen_self_static+set}" = set; then
18344   echo $ECHO_N "(cached) $ECHO_C" >&6
18345 else
18346           if test "$cross_compiling" = yes; then :
18347   lt_cv_dlopen_self_static=cross
18348 else
18349   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18350   lt_status=$lt_dlunknown
18351   cat > conftest.$ac_ext <<EOF
18352 #line 18352 "configure"
18353 #include "confdefs.h"
18354
18355 #if HAVE_DLFCN_H
18356 #include <dlfcn.h>
18357 #endif
18358
18359 #include <stdio.h>
18360
18361 #ifdef RTLD_GLOBAL
18362 #  define LT_DLGLOBAL           RTLD_GLOBAL
18363 #else
18364 #  ifdef DL_GLOBAL
18365 #    define LT_DLGLOBAL         DL_GLOBAL
18366 #  else
18367 #    define LT_DLGLOBAL         0
18368 #  endif
18369 #endif
18370
18371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18372    find out it does not work in some platform. */
18373 #ifndef LT_DLLAZY_OR_NOW
18374 #  ifdef RTLD_LAZY
18375 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18376 #  else
18377 #    ifdef DL_LAZY
18378 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18379 #    else
18380 #      ifdef RTLD_NOW
18381 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18382 #      else
18383 #        ifdef DL_NOW
18384 #          define LT_DLLAZY_OR_NOW      DL_NOW
18385 #        else
18386 #          define LT_DLLAZY_OR_NOW      0
18387 #        endif
18388 #      endif
18389 #    endif
18390 #  endif
18391 #endif
18392
18393 #ifdef __cplusplus
18394 extern "C" void exit (int);
18395 #endif
18396
18397 void fnord() { int i=42;}
18398 int main ()
18399 {
18400   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18401   int status = $lt_dlunknown;
18402
18403   if (self)
18404     {
18405       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18406       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18407       /* dlclose (self); */
18408     }
18409
18410     exit (status);
18411 }
18412 EOF
18413   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18414   (eval $ac_link) 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18418     (./conftest; exit; ) 2>/dev/null
18419     lt_status=$?
18420     case x$lt_status in
18421       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18422       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18423       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18424     esac
18425   else :
18426     # compilation failed
18427     lt_cv_dlopen_self_static=no
18428   fi
18429 fi
18430 rm -fr conftest*
18431
18432
18433 fi
18434 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18435 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18436     fi
18437
18438     CPPFLAGS="$save_CPPFLAGS"
18439     LDFLAGS="$save_LDFLAGS"
18440     LIBS="$save_LIBS"
18441     ;;
18442   esac
18443
18444   case $lt_cv_dlopen_self in
18445   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18446   *) enable_dlopen_self=unknown ;;
18447   esac
18448
18449   case $lt_cv_dlopen_self_static in
18450   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18451   *) enable_dlopen_self_static=unknown ;;
18452   esac
18453 fi
18454
18455
18456 # The else clause should only fire when bootstrapping the
18457 # libtool distribution, otherwise you forgot to ship ltmain.sh
18458 # with your package, and you will get complaints that there are
18459 # no rules to generate ltmain.sh.
18460 if test -f "$ltmain"; then
18461   # See if we are running on zsh, and set the options which allow our commands through
18462   # without removal of \ escapes.
18463   if test -n "${ZSH_VERSION+set}" ; then
18464     setopt NO_GLOB_SUBST
18465   fi
18466   # Now quote all the things that may contain metacharacters while being
18467   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18468   # variables and quote the copies for generation of the libtool script.
18469   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18470     SED SHELL STRIP \
18471     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18472     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18473     deplibs_check_method reload_flag reload_cmds need_locks \
18474     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18475     lt_cv_sys_global_symbol_to_c_name_address \
18476     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18477     old_postinstall_cmds old_postuninstall_cmds \
18478     compiler_GCJ \
18479     CC_GCJ \
18480     LD_GCJ \
18481     lt_prog_compiler_wl_GCJ \
18482     lt_prog_compiler_pic_GCJ \
18483     lt_prog_compiler_static_GCJ \
18484     lt_prog_compiler_no_builtin_flag_GCJ \
18485     export_dynamic_flag_spec_GCJ \
18486     thread_safe_flag_spec_GCJ \
18487     whole_archive_flag_spec_GCJ \
18488     enable_shared_with_static_runtimes_GCJ \
18489     old_archive_cmds_GCJ \
18490     old_archive_from_new_cmds_GCJ \
18491     predep_objects_GCJ \
18492     postdep_objects_GCJ \
18493     predeps_GCJ \
18494     postdeps_GCJ \
18495     compiler_lib_search_path_GCJ \
18496     archive_cmds_GCJ \
18497     archive_expsym_cmds_GCJ \
18498     postinstall_cmds_GCJ \
18499     postuninstall_cmds_GCJ \
18500     old_archive_from_expsyms_cmds_GCJ \
18501     allow_undefined_flag_GCJ \
18502     no_undefined_flag_GCJ \
18503     export_symbols_cmds_GCJ \
18504     hardcode_libdir_flag_spec_GCJ \
18505     hardcode_libdir_flag_spec_ld_GCJ \
18506     hardcode_libdir_separator_GCJ \
18507     hardcode_automatic_GCJ \
18508     module_cmds_GCJ \
18509     module_expsym_cmds_GCJ \
18510     lt_cv_prog_compiler_c_o_GCJ \
18511     exclude_expsyms_GCJ \
18512     include_expsyms_GCJ; do
18513
18514     case $var in
18515     old_archive_cmds_GCJ | \
18516     old_archive_from_new_cmds_GCJ | \
18517     archive_cmds_GCJ | \
18518     archive_expsym_cmds_GCJ | \
18519     module_cmds_GCJ | \
18520     module_expsym_cmds_GCJ | \
18521     old_archive_from_expsyms_cmds_GCJ | \
18522     export_symbols_cmds_GCJ | \
18523     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18524     postinstall_cmds | postuninstall_cmds | \
18525     old_postinstall_cmds | old_postuninstall_cmds | \
18526     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18527       # Double-quote double-evaled strings.
18528       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18529       ;;
18530     *)
18531       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18532       ;;
18533     esac
18534   done
18535
18536   case $lt_echo in
18537   *'\$0 --fallback-echo"')
18538     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18539     ;;
18540   esac
18541
18542 cfgfile="$ofile"
18543
18544   cat <<__EOF__ >> "$cfgfile"
18545 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18546
18547 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18548
18549 # Shell to use when invoking shell scripts.
18550 SHELL=$lt_SHELL
18551
18552 # Whether or not to build shared libraries.
18553 build_libtool_libs=$enable_shared
18554
18555 # Whether or not to build static libraries.
18556 build_old_libs=$enable_static
18557
18558 # Whether or not to add -lc for building shared libraries.
18559 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18560
18561 # Whether or not to disallow shared libs when runtime libs are static
18562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18563
18564 # Whether or not to optimize for fast installation.
18565 fast_install=$enable_fast_install
18566
18567 # The host system.
18568 host_alias=$host_alias
18569 host=$host
18570
18571 # An echo program that does not interpret backslashes.
18572 echo=$lt_echo
18573
18574 # The archiver.
18575 AR=$lt_AR
18576 AR_FLAGS=$lt_AR_FLAGS
18577
18578 # A C compiler.
18579 LTCC=$lt_LTCC
18580
18581 # A language-specific compiler.
18582 CC=$lt_compiler_GCJ
18583
18584 # Is the compiler the GNU C compiler?
18585 with_gcc=$GCC_GCJ
18586
18587 # An ERE matcher.
18588 EGREP=$lt_EGREP
18589
18590 # The linker used to build libraries.
18591 LD=$lt_LD_GCJ
18592
18593 # Whether we need hard or soft links.
18594 LN_S=$lt_LN_S
18595
18596 # A BSD-compatible nm program.
18597 NM=$lt_NM
18598
18599 # A symbol stripping program
18600 STRIP=$lt_STRIP
18601
18602 # Used to examine libraries when file_magic_cmd begins "file"
18603 MAGIC_CMD=$MAGIC_CMD
18604
18605 # Used on cygwin: DLL creation program.
18606 DLLTOOL="$DLLTOOL"
18607
18608 # Used on cygwin: object dumper.
18609 OBJDUMP="$OBJDUMP"
18610
18611 # Used on cygwin: assembler.
18612 AS="$AS"
18613
18614 # The name of the directory that contains temporary libtool files.
18615 objdir=$objdir
18616
18617 # How to create reloadable object files.
18618 reload_flag=$lt_reload_flag
18619 reload_cmds=$lt_reload_cmds
18620
18621 # How to pass a linker flag through the compiler.
18622 wl=$lt_lt_prog_compiler_wl_GCJ
18623
18624 # Object file suffix (normally "o").
18625 objext="$ac_objext"
18626
18627 # Old archive suffix (normally "a").
18628 libext="$libext"
18629
18630 # Shared library suffix (normally ".so").
18631 shrext_cmds='$shrext_cmds'
18632
18633 # Executable file suffix (normally "").
18634 exeext="$exeext"
18635
18636 # Additional compiler flags for building library objects.
18637 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18638 pic_mode=$pic_mode
18639
18640 # What is the maximum length of a command?
18641 max_cmd_len=$lt_cv_sys_max_cmd_len
18642
18643 # Does compiler simultaneously support -c and -o options?
18644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18645
18646 # Must we lock files when doing compilation ?
18647 need_locks=$lt_need_locks
18648
18649 # Do we need the lib prefix for modules?
18650 need_lib_prefix=$need_lib_prefix
18651
18652 # Do we need a version for libraries?
18653 need_version=$need_version
18654
18655 # Whether dlopen is supported.
18656 dlopen_support=$enable_dlopen
18657
18658 # Whether dlopen of programs is supported.
18659 dlopen_self=$enable_dlopen_self
18660
18661 # Whether dlopen of statically linked programs is supported.
18662 dlopen_self_static=$enable_dlopen_self_static
18663
18664 # Compiler flag to prevent dynamic linking.
18665 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18666
18667 # Compiler flag to turn off builtin functions.
18668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18669
18670 # Compiler flag to allow reflexive dlopens.
18671 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18672
18673 # Compiler flag to generate shared objects directly from archives.
18674 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18675
18676 # Compiler flag to generate thread-safe objects.
18677 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18678
18679 # Library versioning type.
18680 version_type=$version_type
18681
18682 # Format of library name prefix.
18683 libname_spec=$lt_libname_spec
18684
18685 # List of archive names.  First name is the real one, the rest are links.
18686 # The last name is the one that the linker finds with -lNAME.
18687 library_names_spec=$lt_library_names_spec
18688
18689 # The coded name of the library, if different from the real name.
18690 soname_spec=$lt_soname_spec
18691
18692 # Commands used to build and install an old-style archive.
18693 RANLIB=$lt_RANLIB
18694 old_archive_cmds=$lt_old_archive_cmds_GCJ
18695 old_postinstall_cmds=$lt_old_postinstall_cmds
18696 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18697
18698 # Create an old-style archive from a shared archive.
18699 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18700
18701 # Create a temporary old-style archive to link instead of a shared archive.
18702 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18703
18704 # Commands used to build and install a shared archive.
18705 archive_cmds=$lt_archive_cmds_GCJ
18706 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18707 postinstall_cmds=$lt_postinstall_cmds
18708 postuninstall_cmds=$lt_postuninstall_cmds
18709
18710 # Commands used to build a loadable module (assumed same as above if empty)
18711 module_cmds=$lt_module_cmds_GCJ
18712 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18713
18714 # Commands to strip libraries.
18715 old_striplib=$lt_old_striplib
18716 striplib=$lt_striplib
18717
18718 # Dependencies to place before the objects being linked to create a
18719 # shared library.
18720 predep_objects=$lt_predep_objects_GCJ
18721
18722 # Dependencies to place after the objects being linked to create a
18723 # shared library.
18724 postdep_objects=$lt_postdep_objects_GCJ
18725
18726 # Dependencies to place before the objects being linked to create a
18727 # shared library.
18728 predeps=$lt_predeps_GCJ
18729
18730 # Dependencies to place after the objects being linked to create a
18731 # shared library.
18732 postdeps=$lt_postdeps_GCJ
18733
18734 # The library search path used internally by the compiler when linking
18735 # a shared library.
18736 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18737
18738 # Method to check whether dependent libraries are shared objects.
18739 deplibs_check_method=$lt_deplibs_check_method
18740
18741 # Command to use when deplibs_check_method == file_magic.
18742 file_magic_cmd=$lt_file_magic_cmd
18743
18744 # Flag that allows shared libraries with undefined symbols to be built.
18745 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18746
18747 # Flag that forces no undefined symbols.
18748 no_undefined_flag=$lt_no_undefined_flag_GCJ
18749
18750 # Commands used to finish a libtool library installation in a directory.
18751 finish_cmds=$lt_finish_cmds
18752
18753 # Same as above, but a single script fragment to be evaled but not shown.
18754 finish_eval=$lt_finish_eval
18755
18756 # Take the output of nm and produce a listing of raw symbols and C names.
18757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18758
18759 # Transform the output of nm in a proper C declaration
18760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18761
18762 # Transform the output of nm in a C name address pair
18763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18764
18765 # This is the shared library runtime path variable.
18766 runpath_var=$runpath_var
18767
18768 # This is the shared library path variable.
18769 shlibpath_var=$shlibpath_var
18770
18771 # Is shlibpath searched before the hard-coded library search path?
18772 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18773
18774 # How to hardcode a shared library path into an executable.
18775 hardcode_action=$hardcode_action_GCJ
18776
18777 # Whether we should hardcode library paths into libraries.
18778 hardcode_into_libs=$hardcode_into_libs
18779
18780 # Flag to hardcode \$libdir into a binary during linking.
18781 # This must work even if \$libdir does not exist.
18782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18783
18784 # If ld is used when linking, flag to hardcode \$libdir into
18785 # a binary during linking. This must work even if \$libdir does
18786 # not exist.
18787 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18788
18789 # Whether we need a single -rpath flag with a separated argument.
18790 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18791
18792 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18793 # resulting binary.
18794 hardcode_direct=$hardcode_direct_GCJ
18795
18796 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18797 # resulting binary.
18798 hardcode_minus_L=$hardcode_minus_L_GCJ
18799
18800 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18801 # the resulting binary.
18802 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18803
18804 # Set to yes if building a shared library automatically hardcodes DIR into the library
18805 # and all subsequent libraries and executables linked against it.
18806 hardcode_automatic=$hardcode_automatic_GCJ
18807
18808 # Variables whose values should be saved in libtool wrapper scripts and
18809 # restored at relink time.
18810 variables_saved_for_relink="$variables_saved_for_relink"
18811
18812 # Whether libtool must link a program against all its dependency libraries.
18813 link_all_deplibs=$link_all_deplibs_GCJ
18814
18815 # Compile-time system search path for libraries
18816 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18817
18818 # Run-time system search path for libraries
18819 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18820
18821 # Fix the shell variable \$srcfile for the compiler.
18822 fix_srcfile_path="$fix_srcfile_path_GCJ"
18823
18824 # Set to yes if exported symbols are required.
18825 always_export_symbols=$always_export_symbols_GCJ
18826
18827 # The commands to list exported symbols.
18828 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18829
18830 # The commands to extract the exported symbol list from a shared archive.
18831 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18832
18833 # Symbols that should not be listed in the preloaded symbols.
18834 exclude_expsyms=$lt_exclude_expsyms_GCJ
18835
18836 # Symbols that must always be exported.
18837 include_expsyms=$lt_include_expsyms_GCJ
18838
18839 # ### END LIBTOOL TAG CONFIG: $tagname
18840
18841 __EOF__
18842
18843
18844 else
18845   # If there is no Makefile yet, we rely on a make rule to execute
18846   # `config.status --recheck' to rerun these tests and create the
18847   # libtool script then.
18848   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18849   if test -f "$ltmain_in"; then
18850     test -f Makefile && make "$ltmain"
18851   fi
18852 fi
18853
18854
18855 ac_ext=c
18856 ac_cpp='$CPP $CPPFLAGS'
18857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18860
18861 CC="$lt_save_CC"
18862
18863         else
18864           tagname=""
18865         fi
18866         ;;
18867
18868       RC)
18869
18870
18871
18872 # Source file extension for RC test sources.
18873 ac_ext=rc
18874
18875 # Object file extension for compiled RC test sources.
18876 objext=o
18877 objext_RC=$objext
18878
18879 # Code to be used in simple compile tests
18880 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18881
18882 # Code to be used in simple link tests
18883 lt_simple_link_test_code="$lt_simple_compile_test_code"
18884
18885 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18886
18887 # If no C compiler was specified, use CC.
18888 LTCC=${LTCC-"$CC"}
18889
18890 # Allow CC to be a program name with arguments.
18891 compiler=$CC
18892
18893
18894 # Allow CC to be a program name with arguments.
18895 lt_save_CC="$CC"
18896 CC=${RC-"windres"}
18897 compiler=$CC
18898 compiler_RC=$CC
18899 lt_cv_prog_compiler_c_o_RC=yes
18900
18901 # The else clause should only fire when bootstrapping the
18902 # libtool distribution, otherwise you forgot to ship ltmain.sh
18903 # with your package, and you will get complaints that there are
18904 # no rules to generate ltmain.sh.
18905 if test -f "$ltmain"; then
18906   # See if we are running on zsh, and set the options which allow our commands through
18907   # without removal of \ escapes.
18908   if test -n "${ZSH_VERSION+set}" ; then
18909     setopt NO_GLOB_SUBST
18910   fi
18911   # Now quote all the things that may contain metacharacters while being
18912   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18913   # variables and quote the copies for generation of the libtool script.
18914   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18915     SED SHELL STRIP \
18916     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18917     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18918     deplibs_check_method reload_flag reload_cmds need_locks \
18919     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18920     lt_cv_sys_global_symbol_to_c_name_address \
18921     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18922     old_postinstall_cmds old_postuninstall_cmds \
18923     compiler_RC \
18924     CC_RC \
18925     LD_RC \
18926     lt_prog_compiler_wl_RC \
18927     lt_prog_compiler_pic_RC \
18928     lt_prog_compiler_static_RC \
18929     lt_prog_compiler_no_builtin_flag_RC \
18930     export_dynamic_flag_spec_RC \
18931     thread_safe_flag_spec_RC \
18932     whole_archive_flag_spec_RC \
18933     enable_shared_with_static_runtimes_RC \
18934     old_archive_cmds_RC \
18935     old_archive_from_new_cmds_RC \
18936     predep_objects_RC \
18937     postdep_objects_RC \
18938     predeps_RC \
18939     postdeps_RC \
18940     compiler_lib_search_path_RC \
18941     archive_cmds_RC \
18942     archive_expsym_cmds_RC \
18943     postinstall_cmds_RC \
18944     postuninstall_cmds_RC \
18945     old_archive_from_expsyms_cmds_RC \
18946     allow_undefined_flag_RC \
18947     no_undefined_flag_RC \
18948     export_symbols_cmds_RC \
18949     hardcode_libdir_flag_spec_RC \
18950     hardcode_libdir_flag_spec_ld_RC \
18951     hardcode_libdir_separator_RC \
18952     hardcode_automatic_RC \
18953     module_cmds_RC \
18954     module_expsym_cmds_RC \
18955     lt_cv_prog_compiler_c_o_RC \
18956     exclude_expsyms_RC \
18957     include_expsyms_RC; do
18958
18959     case $var in
18960     old_archive_cmds_RC | \
18961     old_archive_from_new_cmds_RC | \
18962     archive_cmds_RC | \
18963     archive_expsym_cmds_RC | \
18964     module_cmds_RC | \
18965     module_expsym_cmds_RC | \
18966     old_archive_from_expsyms_cmds_RC | \
18967     export_symbols_cmds_RC | \
18968     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18969     postinstall_cmds | postuninstall_cmds | \
18970     old_postinstall_cmds | old_postuninstall_cmds | \
18971     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18972       # Double-quote double-evaled strings.
18973       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18974       ;;
18975     *)
18976       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18977       ;;
18978     esac
18979   done
18980
18981   case $lt_echo in
18982   *'\$0 --fallback-echo"')
18983     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18984     ;;
18985   esac
18986
18987 cfgfile="$ofile"
18988
18989   cat <<__EOF__ >> "$cfgfile"
18990 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18991
18992 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18993
18994 # Shell to use when invoking shell scripts.
18995 SHELL=$lt_SHELL
18996
18997 # Whether or not to build shared libraries.
18998 build_libtool_libs=$enable_shared
18999
19000 # Whether or not to build static libraries.
19001 build_old_libs=$enable_static
19002
19003 # Whether or not to add -lc for building shared libraries.
19004 build_libtool_need_lc=$archive_cmds_need_lc_RC
19005
19006 # Whether or not to disallow shared libs when runtime libs are static
19007 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19008
19009 # Whether or not to optimize for fast installation.
19010 fast_install=$enable_fast_install
19011
19012 # The host system.
19013 host_alias=$host_alias
19014 host=$host
19015
19016 # An echo program that does not interpret backslashes.
19017 echo=$lt_echo
19018
19019 # The archiver.
19020 AR=$lt_AR
19021 AR_FLAGS=$lt_AR_FLAGS
19022
19023 # A C compiler.
19024 LTCC=$lt_LTCC
19025
19026 # A language-specific compiler.
19027 CC=$lt_compiler_RC
19028
19029 # Is the compiler the GNU C compiler?
19030 with_gcc=$GCC_RC
19031
19032 # An ERE matcher.
19033 EGREP=$lt_EGREP
19034
19035 # The linker used to build libraries.
19036 LD=$lt_LD_RC
19037
19038 # Whether we need hard or soft links.
19039 LN_S=$lt_LN_S
19040
19041 # A BSD-compatible nm program.
19042 NM=$lt_NM
19043
19044 # A symbol stripping program
19045 STRIP=$lt_STRIP
19046
19047 # Used to examine libraries when file_magic_cmd begins "file"
19048 MAGIC_CMD=$MAGIC_CMD
19049
19050 # Used on cygwin: DLL creation program.
19051 DLLTOOL="$DLLTOOL"
19052
19053 # Used on cygwin: object dumper.
19054 OBJDUMP="$OBJDUMP"
19055
19056 # Used on cygwin: assembler.
19057 AS="$AS"
19058
19059 # The name of the directory that contains temporary libtool files.
19060 objdir=$objdir
19061
19062 # How to create reloadable object files.
19063 reload_flag=$lt_reload_flag
19064 reload_cmds=$lt_reload_cmds
19065
19066 # How to pass a linker flag through the compiler.
19067 wl=$lt_lt_prog_compiler_wl_RC
19068
19069 # Object file suffix (normally "o").
19070 objext="$ac_objext"
19071
19072 # Old archive suffix (normally "a").
19073 libext="$libext"
19074
19075 # Shared library suffix (normally ".so").
19076 shrext_cmds='$shrext_cmds'
19077
19078 # Executable file suffix (normally "").
19079 exeext="$exeext"
19080
19081 # Additional compiler flags for building library objects.
19082 pic_flag=$lt_lt_prog_compiler_pic_RC
19083 pic_mode=$pic_mode
19084
19085 # What is the maximum length of a command?
19086 max_cmd_len=$lt_cv_sys_max_cmd_len
19087
19088 # Does compiler simultaneously support -c and -o options?
19089 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19090
19091 # Must we lock files when doing compilation ?
19092 need_locks=$lt_need_locks
19093
19094 # Do we need the lib prefix for modules?
19095 need_lib_prefix=$need_lib_prefix
19096
19097 # Do we need a version for libraries?
19098 need_version=$need_version
19099
19100 # Whether dlopen is supported.
19101 dlopen_support=$enable_dlopen
19102
19103 # Whether dlopen of programs is supported.
19104 dlopen_self=$enable_dlopen_self
19105
19106 # Whether dlopen of statically linked programs is supported.
19107 dlopen_self_static=$enable_dlopen_self_static
19108
19109 # Compiler flag to prevent dynamic linking.
19110 link_static_flag=$lt_lt_prog_compiler_static_RC
19111
19112 # Compiler flag to turn off builtin functions.
19113 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19114
19115 # Compiler flag to allow reflexive dlopens.
19116 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19117
19118 # Compiler flag to generate shared objects directly from archives.
19119 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19120
19121 # Compiler flag to generate thread-safe objects.
19122 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19123
19124 # Library versioning type.
19125 version_type=$version_type
19126
19127 # Format of library name prefix.
19128 libname_spec=$lt_libname_spec
19129
19130 # List of archive names.  First name is the real one, the rest are links.
19131 # The last name is the one that the linker finds with -lNAME.
19132 library_names_spec=$lt_library_names_spec
19133
19134 # The coded name of the library, if different from the real name.
19135 soname_spec=$lt_soname_spec
19136
19137 # Commands used to build and install an old-style archive.
19138 RANLIB=$lt_RANLIB
19139 old_archive_cmds=$lt_old_archive_cmds_RC
19140 old_postinstall_cmds=$lt_old_postinstall_cmds
19141 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19142
19143 # Create an old-style archive from a shared archive.
19144 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19145
19146 # Create a temporary old-style archive to link instead of a shared archive.
19147 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19148
19149 # Commands used to build and install a shared archive.
19150 archive_cmds=$lt_archive_cmds_RC
19151 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19152 postinstall_cmds=$lt_postinstall_cmds
19153 postuninstall_cmds=$lt_postuninstall_cmds
19154
19155 # Commands used to build a loadable module (assumed same as above if empty)
19156 module_cmds=$lt_module_cmds_RC
19157 module_expsym_cmds=$lt_module_expsym_cmds_RC
19158
19159 # Commands to strip libraries.
19160 old_striplib=$lt_old_striplib
19161 striplib=$lt_striplib
19162
19163 # Dependencies to place before the objects being linked to create a
19164 # shared library.
19165 predep_objects=$lt_predep_objects_RC
19166
19167 # Dependencies to place after the objects being linked to create a
19168 # shared library.
19169 postdep_objects=$lt_postdep_objects_RC
19170
19171 # Dependencies to place before the objects being linked to create a
19172 # shared library.
19173 predeps=$lt_predeps_RC
19174
19175 # Dependencies to place after the objects being linked to create a
19176 # shared library.
19177 postdeps=$lt_postdeps_RC
19178
19179 # The library search path used internally by the compiler when linking
19180 # a shared library.
19181 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19182
19183 # Method to check whether dependent libraries are shared objects.
19184 deplibs_check_method=$lt_deplibs_check_method
19185
19186 # Command to use when deplibs_check_method == file_magic.
19187 file_magic_cmd=$lt_file_magic_cmd
19188
19189 # Flag that allows shared libraries with undefined symbols to be built.
19190 allow_undefined_flag=$lt_allow_undefined_flag_RC
19191
19192 # Flag that forces no undefined symbols.
19193 no_undefined_flag=$lt_no_undefined_flag_RC
19194
19195 # Commands used to finish a libtool library installation in a directory.
19196 finish_cmds=$lt_finish_cmds
19197
19198 # Same as above, but a single script fragment to be evaled but not shown.
19199 finish_eval=$lt_finish_eval
19200
19201 # Take the output of nm and produce a listing of raw symbols and C names.
19202 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19203
19204 # Transform the output of nm in a proper C declaration
19205 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19206
19207 # Transform the output of nm in a C name address pair
19208 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19209
19210 # This is the shared library runtime path variable.
19211 runpath_var=$runpath_var
19212
19213 # This is the shared library path variable.
19214 shlibpath_var=$shlibpath_var
19215
19216 # Is shlibpath searched before the hard-coded library search path?
19217 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19218
19219 # How to hardcode a shared library path into an executable.
19220 hardcode_action=$hardcode_action_RC
19221
19222 # Whether we should hardcode library paths into libraries.
19223 hardcode_into_libs=$hardcode_into_libs
19224
19225 # Flag to hardcode \$libdir into a binary during linking.
19226 # This must work even if \$libdir does not exist.
19227 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19228
19229 # If ld is used when linking, flag to hardcode \$libdir into
19230 # a binary during linking. This must work even if \$libdir does
19231 # not exist.
19232 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19233
19234 # Whether we need a single -rpath flag with a separated argument.
19235 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19236
19237 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19238 # resulting binary.
19239 hardcode_direct=$hardcode_direct_RC
19240
19241 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19242 # resulting binary.
19243 hardcode_minus_L=$hardcode_minus_L_RC
19244
19245 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19246 # the resulting binary.
19247 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19248
19249 # Set to yes if building a shared library automatically hardcodes DIR into the library
19250 # and all subsequent libraries and executables linked against it.
19251 hardcode_automatic=$hardcode_automatic_RC
19252
19253 # Variables whose values should be saved in libtool wrapper scripts and
19254 # restored at relink time.
19255 variables_saved_for_relink="$variables_saved_for_relink"
19256
19257 # Whether libtool must link a program against all its dependency libraries.
19258 link_all_deplibs=$link_all_deplibs_RC
19259
19260 # Compile-time system search path for libraries
19261 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19262
19263 # Run-time system search path for libraries
19264 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19265
19266 # Fix the shell variable \$srcfile for the compiler.
19267 fix_srcfile_path="$fix_srcfile_path_RC"
19268
19269 # Set to yes if exported symbols are required.
19270 always_export_symbols=$always_export_symbols_RC
19271
19272 # The commands to list exported symbols.
19273 export_symbols_cmds=$lt_export_symbols_cmds_RC
19274
19275 # The commands to extract the exported symbol list from a shared archive.
19276 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19277
19278 # Symbols that should not be listed in the preloaded symbols.
19279 exclude_expsyms=$lt_exclude_expsyms_RC
19280
19281 # Symbols that must always be exported.
19282 include_expsyms=$lt_include_expsyms_RC
19283
19284 # ### END LIBTOOL TAG CONFIG: $tagname
19285
19286 __EOF__
19287
19288
19289 else
19290   # If there is no Makefile yet, we rely on a make rule to execute
19291   # `config.status --recheck' to rerun these tests and create the
19292   # libtool script then.
19293   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19294   if test -f "$ltmain_in"; then
19295     test -f Makefile && make "$ltmain"
19296   fi
19297 fi
19298
19299
19300 ac_ext=c
19301 ac_cpp='$CPP $CPPFLAGS'
19302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19305
19306 CC="$lt_save_CC"
19307
19308         ;;
19309
19310       *)
19311         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19312 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19313    { (exit 1); exit 1; }; }
19314         ;;
19315       esac
19316
19317       # Append the new tag name to the list of available tags.
19318       if test -n "$tagname" ; then
19319       available_tags="$available_tags $tagname"
19320     fi
19321     fi
19322   done
19323   IFS="$lt_save_ifs"
19324
19325   # Now substitute the updated list of available tags.
19326   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19327     mv "${ofile}T" "$ofile"
19328     chmod +x "$ofile"
19329   else
19330     rm -f "${ofile}T"
19331     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19332 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19333    { (exit 1); exit 1; }; }
19334   fi
19335 fi
19336
19337
19338
19339 # This can be used to rebuild libtool when needed
19340 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19341
19342 # Always use our own libtool.
19343 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19344
19345 # Prevent multiple expansion
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358 # Check whether --with-system-libtool or --without-system-libtool was given.
19359 if test "${with_system_libtool+set}" = set; then
19360   withval="$with_system_libtool"
19361    # Extract the first word of "libtool", so it can be a program name with args.
19362 set dummy libtool; ac_word=$2
19363 echo "$as_me:$LINENO: checking for $ac_word" >&5
19364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19365 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19366   echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
19368   case $LIBTOOL in
19369   [\\/]* | ?:[\\/]*)
19370   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19371   ;;
19372   *)
19373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19374 as_dummy="$PATH:/usr/local/bin"
19375 for as_dir in $as_dummy
19376 do
19377   IFS=$as_save_IFS
19378   test -z "$as_dir" && as_dir=.
19379   for ac_exec_ext in '' $ac_executable_extensions; do
19380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19381     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19383     break 2
19384   fi
19385 done
19386 done
19387
19388   ;;
19389 esac
19390 fi
19391 LIBTOOL=$ac_cv_path_LIBTOOL
19392
19393 if test -n "$LIBTOOL"; then
19394   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19395 echo "${ECHO_T}$LIBTOOL" >&6
19396 else
19397   echo "$as_me:$LINENO: result: no" >&5
19398 echo "${ECHO_T}no" >&6
19399 fi
19400
19401 else
19402
19403   LIBTOOL="`pwd`/libtool"
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418 fi;
19419
19420
19421
19422 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
19423 if test "${enable_strict_dependencies+set}" = set; then
19424   enableval="$enable_strict_dependencies"
19425
19426 fi;
19427
19428 logdir='${localstatedir}/log/radius'
19429 echo "$as_me:$LINENO: checking logdir" >&5
19430 echo $ECHO_N "checking logdir... $ECHO_C" >&6
19431
19432 # Check whether --with-logdir or --without-logdir was given.
19433 if test "${with_logdir+set}" = set; then
19434   withval="$with_logdir"
19435    case "$withval" in
19436     no)
19437         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19438 echo "$as_me: error: Need logdir" >&2;}
19439    { (exit 1); exit 1; }; }
19440         ;;
19441     yes)
19442         ;;
19443     *)
19444         logdir="$withval"
19445         ;;
19446   esac
19447
19448 fi;
19449
19450 echo "$as_me:$LINENO: result: $logdir" >&5
19451 echo "${ECHO_T}$logdir" >&6
19452
19453 radacctdir='${logdir}/radacct'
19454 echo "$as_me:$LINENO: checking radacctdir" >&5
19455 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
19456
19457 # Check whether --with-radacctdir or --without-radacctdir was given.
19458 if test "${with_radacctdir+set}" = set; then
19459   withval="$with_radacctdir"
19460    case "$withval" in
19461     no)
19462         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19463 echo "$as_me: error: Need radacctdir" >&2;}
19464    { (exit 1); exit 1; }; }
19465         ;;
19466     yes)
19467         ;;
19468     *)
19469         radacctdir="$withval"
19470         ;;
19471   esac
19472
19473 fi;
19474
19475 echo "$as_me:$LINENO: result: $radacctdir" >&5
19476 echo "${ECHO_T}$radacctdir" >&6
19477
19478 raddbdir='${sysconfdir}/raddb'
19479 echo "$as_me:$LINENO: checking raddbdir" >&5
19480 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
19481
19482 # Check whether --with-raddbdir or --without-raddbdir was given.
19483 if test "${with_raddbdir+set}" = set; then
19484   withval="$with_raddbdir"
19485    case "$withval" in
19486     no)
19487         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19488 echo "$as_me: error: Need raddbdir" >&2;}
19489    { (exit 1); exit 1; }; }
19490         ;;
19491     yes)
19492         ;;
19493     *)
19494         raddbdir="$withval"
19495         ;;
19496   esac
19497
19498 fi;
19499
19500 echo "$as_me:$LINENO: result: $raddbdir" >&5
19501 echo "${ECHO_T}$raddbdir" >&6
19502
19503 ASCEND_BINARY=yes
19504
19505 # Check whether --with-ascend-binary or --without-ascend-binary was given.
19506 if test "${with_ascend_binary+set}" = set; then
19507   withval="$with_ascend_binary"
19508    case "$withval" in
19509     yes)
19510         ;;
19511     *)
19512         ASCEND_BINARY=""
19513   esac
19514
19515 fi;
19516 if test "X$ASCEND_BINARY" = "Xyes"; then
19517
19518 cat >>confdefs.h <<\_ACEOF
19519 #define ASCEND_BINARY
19520 _ACEOF
19521
19522 fi
19523
19524 WITH_THREADS=yes
19525
19526 # Check whether --with-threads or --without-threads was given.
19527 if test "${with_threads+set}" = set; then
19528   withval="$with_threads"
19529    case "$withval" in
19530     yes)
19531         ;;
19532     *)
19533         WITH_THREADS=""
19534   esac
19535
19536 fi;
19537
19538 WITH_SNMP=yes
19539
19540 # Check whether --with-snmp or --without-snmp was given.
19541 if test "${with_snmp+set}" = set; then
19542   withval="$with_snmp"
19543    case "$withval" in
19544     yes)
19545         ;;
19546     *)
19547         WITH_SNMP=no
19548   esac
19549
19550 fi;
19551
19552 rad_enable_largefiles=no
19553
19554 # Check whether --with-large-files or --without-large-files was given.
19555 if test "${with_large_files+set}" = set; then
19556   withval="$with_large_files"
19557    case "$withval" in
19558     yes)
19559         rad_enable_largefiles=yes
19560         ;;
19561     *)
19562         ;;
19563   esac
19564
19565 fi;
19566
19567
19568
19569 STATIC_MODULES=
19570
19571 # Check whether --with-static_modules or --without-static_modules was given.
19572 if test "${with_static_modules+set}" = set; then
19573   withval="$with_static_modules"
19574
19575   for i in $withval; do
19576     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19577   done
19578
19579 fi;
19580
19581 # Check whether --enable-developer or --disable-developer was given.
19582 if test "${enable_developer+set}" = set; then
19583   enableval="$enable_developer"
19584    case "$enableval" in
19585     no)
19586         developer=no
19587         ;;
19588     *)
19589         developer=yes
19590   esac
19591
19592 fi;
19593
19594 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19595     developer="yes"
19596 fi
19597
19598 EXPERIMENTAL=
19599
19600 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19601 if test "${with_experimental_modules+set}" = set; then
19602   withval="$with_experimental_modules"
19603    case "$withval" in
19604     yes)
19605         EXPERIMENTAL=yes
19606         ;;
19607     *)
19608   esac
19609
19610 fi;
19611
19612
19613 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19614 if test "${with_openssl_includes+set}" = set; then
19615   withval="$with_openssl_includes"
19616    case "$withval" in
19617     *) OPENSSL_INCLUDE_DIR="$withval"
19618         ;;
19619   esac
19620
19621 fi;
19622
19623
19624 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19625 if test "${with_openssl_libraries+set}" = set; then
19626   withval="$with_openssl_libraries"
19627    case "$withval" in
19628     *) OPENSSL_LIB_DIR="$withval"
19629         ;;
19630   esac
19631
19632 fi;
19633
19634
19635
19636 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19637 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19638   withval="$with_rlm_FOO_lib_dir"
19639    case "$withval" in
19640     *)
19641         ;;
19642   esac
19643
19644 fi;
19645
19646
19647 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19648 if test "${with_rlm_FOO_include_dir+set}" = set; then
19649   withval="$with_rlm_FOO_include_dir"
19650    case "$withval" in
19651     *)
19652         ;;
19653   esac
19654
19655 fi;
19656
19657
19658 WITH_UDPFROMTO=no
19659
19660 # Check whether --with-udpfromto or --without-udpfromto was given.
19661 if test "${with_udpfromto+set}" = set; then
19662   withval="$with_udpfromto"
19663    case "$withval" in
19664     yes)
19665         WITH_UDPFROMTO=yes
19666         ;;
19667     *)
19668         WITH_UDPFROMTO=no
19669   esac
19670
19671 fi;
19672
19673 if test "x$WITH_UDPFROMTO" = "xyes"; then
19674
19675 cat >>confdefs.h <<\_ACEOF
19676 #define WITH_UDPFROMTO
19677 _ACEOF
19678
19679 fi
19680
19681
19682 CHECKRAD=checkrad.pl
19683 # Extract the first word of "perl", so it can be a program name with args.
19684 set dummy perl; ac_word=$2
19685 echo "$as_me:$LINENO: checking for $ac_word" >&5
19686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19687 if test "${ac_cv_path_PERL+set}" = set; then
19688   echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690   case $PERL in
19691   [\\/]* | ?:[\\/]*)
19692   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19693   ;;
19694   *)
19695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19696 for as_dir in $PATH
19697 do
19698   IFS=$as_save_IFS
19699   test -z "$as_dir" && as_dir=.
19700   for ac_exec_ext in '' $ac_executable_extensions; do
19701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19702     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19704     break 2
19705   fi
19706 done
19707 done
19708
19709   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19710   ;;
19711 esac
19712 fi
19713 PERL=$ac_cv_path_PERL
19714
19715 if test -n "$PERL"; then
19716   echo "$as_me:$LINENO: result: $PERL" >&5
19717 echo "${ECHO_T}$PERL" >&6
19718 else
19719   echo "$as_me:$LINENO: result: no" >&5
19720 echo "${ECHO_T}no" >&6
19721 fi
19722
19723 if test "x$ac_cv_path_PERL" = "x"; then
19724   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19725 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19726 fi
19727 # Extract the first word of "snmpget", so it can be a program name with args.
19728 set dummy snmpget; ac_word=$2
19729 echo "$as_me:$LINENO: checking for $ac_word" >&5
19730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19731 if test "${ac_cv_path_SNMPGET+set}" = set; then
19732   echo $ECHO_N "(cached) $ECHO_C" >&6
19733 else
19734   case $SNMPGET in
19735   [\\/]* | ?:[\\/]*)
19736   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19737   ;;
19738   *)
19739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19740 for as_dir in $PATH
19741 do
19742   IFS=$as_save_IFS
19743   test -z "$as_dir" && as_dir=.
19744   for ac_exec_ext in '' $ac_executable_extensions; do
19745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19746     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19748     break 2
19749   fi
19750 done
19751 done
19752
19753   ;;
19754 esac
19755 fi
19756 SNMPGET=$ac_cv_path_SNMPGET
19757
19758 if test -n "$SNMPGET"; then
19759   echo "$as_me:$LINENO: result: $SNMPGET" >&5
19760 echo "${ECHO_T}$SNMPGET" >&6
19761 else
19762   echo "$as_me:$LINENO: result: no" >&5
19763 echo "${ECHO_T}no" >&6
19764 fi
19765
19766 if test "x$ac_cv_path_SNMPGET" = "x"; then
19767   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19768 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19769 fi
19770
19771 # Extract the first word of "snmpwalk", so it can be a program name with args.
19772 set dummy snmpwalk; ac_word=$2
19773 echo "$as_me:$LINENO: checking for $ac_word" >&5
19774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19775 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19776   echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778   case $SNMPWALK in
19779   [\\/]* | ?:[\\/]*)
19780   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19781   ;;
19782   *)
19783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19784 for as_dir in $PATH
19785 do
19786   IFS=$as_save_IFS
19787   test -z "$as_dir" && as_dir=.
19788   for ac_exec_ext in '' $ac_executable_extensions; do
19789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19790     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19792     break 2
19793   fi
19794 done
19795 done
19796
19797   ;;
19798 esac
19799 fi
19800 SNMPWALK=$ac_cv_path_SNMPWALK
19801
19802 if test -n "$SNMPWALK"; then
19803   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19804 echo "${ECHO_T}$SNMPWALK" >&6
19805 else
19806   echo "$as_me:$LINENO: result: no" >&5
19807 echo "${ECHO_T}no" >&6
19808 fi
19809
19810 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19811   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19812 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19813 fi
19814
19815 # Extract the first word of "rusers", so it can be a program name with args.
19816 set dummy rusers; ac_word=$2
19817 echo "$as_me:$LINENO: checking for $ac_word" >&5
19818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19819 if test "${ac_cv_path_RUSERS+set}" = set; then
19820   echo $ECHO_N "(cached) $ECHO_C" >&6
19821 else
19822   case $RUSERS in
19823   [\\/]* | ?:[\\/]*)
19824   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19825   ;;
19826   *)
19827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19828 for as_dir in $PATH
19829 do
19830   IFS=$as_save_IFS
19831   test -z "$as_dir" && as_dir=.
19832   for ac_exec_ext in '' $ac_executable_extensions; do
19833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19834     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19836     break 2
19837   fi
19838 done
19839 done
19840
19841   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19842   ;;
19843 esac
19844 fi
19845 RUSERS=$ac_cv_path_RUSERS
19846
19847 if test -n "$RUSERS"; then
19848   echo "$as_me:$LINENO: result: $RUSERS" >&5
19849 echo "${ECHO_T}$RUSERS" >&6
19850 else
19851   echo "$as_me:$LINENO: result: no" >&5
19852 echo "${ECHO_T}no" >&6
19853 fi
19854
19855
19856 missing_dir=`cd $ac_aux_dir && pwd`
19857 echo "$as_me:$LINENO: checking for working aclocal" >&5
19858 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
19859 # Run test in a subshell; some versions of sh will print an error if
19860 # an executable is not found, even if stderr is redirected.
19861 # Redirect stdin to placate older versions of autoconf.  Sigh.
19862 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19863    ACLOCAL=aclocal
19864    echo "$as_me:$LINENO: result: found" >&5
19865 echo "${ECHO_T}found" >&6
19866 else
19867    ACLOCAL="$missing_dir/missing aclocal"
19868    echo "$as_me:$LINENO: result: missing" >&5
19869 echo "${ECHO_T}missing" >&6
19870 fi
19871
19872 echo "$as_me:$LINENO: checking for working autoconf" >&5
19873 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
19874 # Run test in a subshell; some versions of sh will print an error if
19875 # an executable is not found, even if stderr is redirected.
19876 # Redirect stdin to placate older versions of autoconf.  Sigh.
19877 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19878    AUTOCONF=autoconf
19879    echo "$as_me:$LINENO: result: found" >&5
19880 echo "${ECHO_T}found" >&6
19881 else
19882    AUTOCONF="$missing_dir/missing autoconf"
19883    echo "$as_me:$LINENO: result: missing" >&5
19884 echo "${ECHO_T}missing" >&6
19885 fi
19886
19887 echo "$as_me:$LINENO: checking for working autoheader" >&5
19888 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
19889 # Run test in a subshell; some versions of sh will print an error if
19890 # an executable is not found, even if stderr is redirected.
19891 # Redirect stdin to placate older versions of autoconf.  Sigh.
19892 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19893    AUTOHEADER=autoheader
19894    echo "$as_me:$LINENO: result: found" >&5
19895 echo "${ECHO_T}found" >&6
19896 else
19897    AUTOHEADER="$missing_dir/missing autoheader"
19898    echo "$as_me:$LINENO: result: missing" >&5
19899 echo "${ECHO_T}missing" >&6
19900 fi
19901
19902
19903 # Extract the first word of "locate", so it can be a program name with args.
19904 set dummy locate; ac_word=$2
19905 echo "$as_me:$LINENO: checking for $ac_word" >&5
19906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19907 if test "${ac_cv_path_LOCATE+set}" = set; then
19908   echo $ECHO_N "(cached) $ECHO_C" >&6
19909 else
19910   case $LOCATE in
19911   [\\/]* | ?:[\\/]*)
19912   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19913   ;;
19914   *)
19915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19916 for as_dir in $PATH
19917 do
19918   IFS=$as_save_IFS
19919   test -z "$as_dir" && as_dir=.
19920   for ac_exec_ext in '' $ac_executable_extensions; do
19921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19922     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19924     break 2
19925   fi
19926 done
19927 done
19928
19929   ;;
19930 esac
19931 fi
19932 LOCATE=$ac_cv_path_LOCATE
19933
19934 if test -n "$LOCATE"; then
19935   echo "$as_me:$LINENO: result: $LOCATE" >&5
19936 echo "${ECHO_T}$LOCATE" >&6
19937 else
19938   echo "$as_me:$LINENO: result: no" >&5
19939 echo "${ECHO_T}no" >&6
19940 fi
19941
19942 # Extract the first word of "dirname", so it can be a program name with args.
19943 set dummy dirname; ac_word=$2
19944 echo "$as_me:$LINENO: checking for $ac_word" >&5
19945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19946 if test "${ac_cv_path_DIRNAME+set}" = set; then
19947   echo $ECHO_N "(cached) $ECHO_C" >&6
19948 else
19949   case $DIRNAME in
19950   [\\/]* | ?:[\\/]*)
19951   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19952   ;;
19953   *)
19954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19955 for as_dir in $PATH
19956 do
19957   IFS=$as_save_IFS
19958   test -z "$as_dir" && as_dir=.
19959   for ac_exec_ext in '' $ac_executable_extensions; do
19960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19961     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19963     break 2
19964   fi
19965 done
19966 done
19967
19968   ;;
19969 esac
19970 fi
19971 DIRNAME=$ac_cv_path_DIRNAME
19972
19973 if test -n "$DIRNAME"; then
19974   echo "$as_me:$LINENO: result: $DIRNAME" >&5
19975 echo "${ECHO_T}$DIRNAME" >&6
19976 else
19977   echo "$as_me:$LINENO: result: no" >&5
19978 echo "${ECHO_T}no" >&6
19979 fi
19980
19981 # Extract the first word of "grep", so it can be a program name with args.
19982 set dummy grep; ac_word=$2
19983 echo "$as_me:$LINENO: checking for $ac_word" >&5
19984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19985 if test "${ac_cv_path_GREP+set}" = set; then
19986   echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988   case $GREP in
19989   [\\/]* | ?:[\\/]*)
19990   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19991   ;;
19992   *)
19993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19994 for as_dir in $PATH
19995 do
19996   IFS=$as_save_IFS
19997   test -z "$as_dir" && as_dir=.
19998   for ac_exec_ext in '' $ac_executable_extensions; do
19999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20000     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20002     break 2
20003   fi
20004 done
20005 done
20006
20007   ;;
20008 esac
20009 fi
20010 GREP=$ac_cv_path_GREP
20011
20012 if test -n "$GREP"; then
20013   echo "$as_me:$LINENO: result: $GREP" >&5
20014 echo "${ECHO_T}$GREP" >&6
20015 else
20016   echo "$as_me:$LINENO: result: no" >&5
20017 echo "${ECHO_T}no" >&6
20018 fi
20019
20020
20021
20022 old_CFLAGS=$CFLAGS
20023 if test "x$WITH_THREADS" = "xyes"; then
20024   if test $ac_cv_prog_suncc = "yes"; then
20025     CFLAGS="$CFLAGS -mt"
20026   fi
20027
20028
20029 for ac_header in pthread.h
20030 do
20031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20033   echo "$as_me:$LINENO: checking for $ac_header" >&5
20034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20036   echo $ECHO_N "(cached) $ECHO_C" >&6
20037 fi
20038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20040 else
20041   # Is the header compilable?
20042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20044 cat >conftest.$ac_ext <<_ACEOF
20045 /* confdefs.h.  */
20046 _ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h.  */
20050 $ac_includes_default
20051 #include <$ac_header>
20052 _ACEOF
20053 rm -f conftest.$ac_objext
20054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20055   (eval $ac_compile) 2>conftest.er1
20056   ac_status=$?
20057   grep -v '^ *+' conftest.er1 >conftest.err
20058   rm -f conftest.er1
20059   cat conftest.err >&5
20060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061   (exit $ac_status); } &&
20062          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064   (eval $ac_try) 2>&5
20065   ac_status=$?
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); }; } &&
20068          { ac_try='test -s conftest.$ac_objext'
20069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070   (eval $ac_try) 2>&5
20071   ac_status=$?
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); }; }; then
20074   ac_header_compiler=yes
20075 else
20076   echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20078
20079 ac_header_compiler=no
20080 fi
20081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20083 echo "${ECHO_T}$ac_header_compiler" >&6
20084
20085 # Is the header present?
20086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20088 cat >conftest.$ac_ext <<_ACEOF
20089 /* confdefs.h.  */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h.  */
20094 #include <$ac_header>
20095 _ACEOF
20096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20098   ac_status=$?
20099   grep -v '^ *+' conftest.er1 >conftest.err
20100   rm -f conftest.er1
20101   cat conftest.err >&5
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } >/dev/null; then
20104   if test -s conftest.err; then
20105     ac_cpp_err=$ac_c_preproc_warn_flag
20106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20107   else
20108     ac_cpp_err=
20109   fi
20110 else
20111   ac_cpp_err=yes
20112 fi
20113 if test -z "$ac_cpp_err"; then
20114   ac_header_preproc=yes
20115 else
20116   echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119   ac_header_preproc=no
20120 fi
20121 rm -f conftest.err conftest.$ac_ext
20122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20123 echo "${ECHO_T}$ac_header_preproc" >&6
20124
20125 # So?  What about this header?
20126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20127   yes:no: )
20128     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20132     ac_header_preproc=yes
20133     ;;
20134   no:yes:* )
20135     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20137     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20138 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20139     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20141     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20142 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20145     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20147     (
20148       cat <<\_ASBOX
20149 ## ------------------------------------------ ##
20150 ## Report this to the AC_PACKAGE_NAME lists.  ##
20151 ## ------------------------------------------ ##
20152 _ASBOX
20153     ) |
20154       sed "s/^/$as_me: WARNING:     /" >&2
20155     ;;
20156 esac
20157 echo "$as_me:$LINENO: checking for $ac_header" >&5
20158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20160   echo $ECHO_N "(cached) $ECHO_C" >&6
20161 else
20162   eval "$as_ac_Header=\$ac_header_preproc"
20163 fi
20164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20166
20167 fi
20168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20169   cat >>confdefs.h <<_ACEOF
20170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20171 _ACEOF
20172
20173 else
20174    WITH_THREADS="no"
20175 fi
20176
20177 done
20178
20179
20180   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20181 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20182 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20183   echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185   ac_check_lib_save_LIBS=$LIBS
20186 LIBS="-lpthread  $LIBS"
20187 cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h.  */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h.  */
20193
20194 /* Override any gcc2 internal prototype to avoid an error.  */
20195 #ifdef __cplusplus
20196 extern "C"
20197 #endif
20198 /* We use char because int might match the return type of a gcc2
20199    builtin and then its argument prototype would still apply.  */
20200 char pthread_create ();
20201 int
20202 main ()
20203 {
20204 pthread_create ();
20205   ;
20206   return 0;
20207 }
20208 _ACEOF
20209 rm -f conftest.$ac_objext conftest$ac_exeext
20210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20211   (eval $ac_link) 2>conftest.er1
20212   ac_status=$?
20213   grep -v '^ *+' conftest.er1 >conftest.err
20214   rm -f conftest.er1
20215   cat conftest.err >&5
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); } &&
20218          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220   (eval $ac_try) 2>&5
20221   ac_status=$?
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); }; } &&
20224          { ac_try='test -s conftest$ac_exeext'
20225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226   (eval $ac_try) 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); }; }; then
20230   ac_cv_lib_pthread_pthread_create=yes
20231 else
20232   echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20234
20235 ac_cv_lib_pthread_pthread_create=no
20236 fi
20237 rm -f conftest.err conftest.$ac_objext \
20238       conftest$ac_exeext conftest.$ac_ext
20239 LIBS=$ac_check_lib_save_LIBS
20240 fi
20241 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20242 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20243 if test $ac_cv_lib_pthread_pthread_create = yes; then
20244    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20245                   LIBS="$LIBS -lpthread"
20246 else
20247   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20248 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20249 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20250   echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252   ac_check_lib_save_LIBS=$LIBS
20253 LIBS="-lc_r  $LIBS"
20254 cat >conftest.$ac_ext <<_ACEOF
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 pthread_create ();
20268 int
20269 main ()
20270 {
20271 pthread_create ();
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>conftest.er1
20279   ac_status=$?
20280   grep -v '^ *+' conftest.er1 >conftest.err
20281   rm -f conftest.er1
20282   cat conftest.err >&5
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); } &&
20285          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287   (eval $ac_try) 2>&5
20288   ac_status=$?
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); }; } &&
20291          { ac_try='test -s conftest$ac_exeext'
20292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293   (eval $ac_try) 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; }; then
20297   ac_cv_lib_c_r_pthread_create=yes
20298 else
20299   echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 ac_cv_lib_c_r_pthread_create=no
20303 fi
20304 rm -f conftest.err conftest.$ac_objext \
20305       conftest$ac_exeext conftest.$ac_ext
20306 LIBS=$ac_check_lib_save_LIBS
20307 fi
20308 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20309 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20310 if test $ac_cv_lib_c_r_pthread_create = yes; then
20311    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20312 else
20313    WITH_THREADS="no"
20314
20315 fi
20316
20317
20318 fi
20319
20320 fi
20321
20322 if test "x$WITH_THREADS" != "xyes"; then
20323   CFLAGS=$old_CFLAGS
20324   ac_cv_header_pthread_h="no"
20325   WITH_THREADS=no
20326 else
20327
20328   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20329 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
20330 if test "${ac_cv_search_sem_init+set}" = set; then
20331   echo $ECHO_N "(cached) $ECHO_C" >&6
20332 else
20333   ac_func_search_save_LIBS=$LIBS
20334 ac_cv_search_sem_init=no
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h.  */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h.  */
20341
20342 /* Override any gcc2 internal prototype to avoid an error.  */
20343 #ifdef __cplusplus
20344 extern "C"
20345 #endif
20346 /* We use char because int might match the return type of a gcc2
20347    builtin and then its argument prototype would still apply.  */
20348 char sem_init ();
20349 int
20350 main ()
20351 {
20352 sem_init ();
20353   ;
20354   return 0;
20355 }
20356 _ACEOF
20357 rm -f conftest.$ac_objext conftest$ac_exeext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20359   (eval $ac_link) 2>conftest.er1
20360   ac_status=$?
20361   grep -v '^ *+' conftest.er1 >conftest.err
20362   rm -f conftest.er1
20363   cat conftest.err >&5
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); } &&
20366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368   (eval $ac_try) 2>&5
20369   ac_status=$?
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); }; } &&
20372          { ac_try='test -s conftest$ac_exeext'
20373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374   (eval $ac_try) 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); }; }; then
20378   ac_cv_search_sem_init="none required"
20379 else
20380   echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20382
20383 fi
20384 rm -f conftest.err conftest.$ac_objext \
20385       conftest$ac_exeext conftest.$ac_ext
20386 if test "$ac_cv_search_sem_init" = no; then
20387   for ac_lib in pthread sem posix4 rt; do
20388     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20389     cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h.  */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h.  */
20395
20396 /* Override any gcc2 internal prototype to avoid an error.  */
20397 #ifdef __cplusplus
20398 extern "C"
20399 #endif
20400 /* We use char because int might match the return type of a gcc2
20401    builtin and then its argument prototype would still apply.  */
20402 char sem_init ();
20403 int
20404 main ()
20405 {
20406 sem_init ();
20407   ;
20408   return 0;
20409 }
20410 _ACEOF
20411 rm -f conftest.$ac_objext conftest$ac_exeext
20412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20413   (eval $ac_link) 2>conftest.er1
20414   ac_status=$?
20415   grep -v '^ *+' conftest.er1 >conftest.err
20416   rm -f conftest.er1
20417   cat conftest.err >&5
20418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419   (exit $ac_status); } &&
20420          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422   (eval $ac_try) 2>&5
20423   ac_status=$?
20424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425   (exit $ac_status); }; } &&
20426          { ac_try='test -s conftest$ac_exeext'
20427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428   (eval $ac_try) 2>&5
20429   ac_status=$?
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); }; }; then
20432   ac_cv_search_sem_init="-l$ac_lib"
20433 break
20434 else
20435   echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20437
20438 fi
20439 rm -f conftest.err conftest.$ac_objext \
20440       conftest$ac_exeext conftest.$ac_ext
20441   done
20442 fi
20443 LIBS=$ac_func_search_save_LIBS
20444 fi
20445 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20446 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
20447 if test "$ac_cv_search_sem_init" != no; then
20448   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
20449
20450 else
20451   { { echo "$as_me:$LINENO: error: -lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&5
20452 echo "$as_me: error: -lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&2;}
20453    { (exit 1); exit 1; }; }
20454
20455 fi
20456
20457 fi
20458
20459
20460 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20461 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
20462 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20463   echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20465   ac_check_lib_save_LIBS=$LIBS
20466 LIBS="-lsocket  $LIBS"
20467 cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h.  */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h.  */
20473
20474 /* Override any gcc2 internal prototype to avoid an error.  */
20475 #ifdef __cplusplus
20476 extern "C"
20477 #endif
20478 /* We use char because int might match the return type of a gcc2
20479    builtin and then its argument prototype would still apply.  */
20480 char getsockname ();
20481 int
20482 main ()
20483 {
20484 getsockname ();
20485   ;
20486   return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20491   (eval $ac_link) 2>conftest.er1
20492   ac_status=$?
20493   grep -v '^ *+' conftest.er1 >conftest.err
20494   rm -f conftest.er1
20495   cat conftest.err >&5
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); } &&
20498          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500   (eval $ac_try) 2>&5
20501   ac_status=$?
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); }; } &&
20504          { ac_try='test -s conftest$ac_exeext'
20505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506   (eval $ac_try) 2>&5
20507   ac_status=$?
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); }; }; then
20510   ac_cv_lib_socket_getsockname=yes
20511 else
20512   echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20514
20515 ac_cv_lib_socket_getsockname=no
20516 fi
20517 rm -f conftest.err conftest.$ac_objext \
20518       conftest$ac_exeext conftest.$ac_ext
20519 LIBS=$ac_check_lib_save_LIBS
20520 fi
20521 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20522 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
20523 if test $ac_cv_lib_socket_getsockname = yes; then
20524   cat >>confdefs.h <<_ACEOF
20525 #define HAVE_LIBSOCKET 1
20526 _ACEOF
20527
20528   LIBS="-lsocket $LIBS"
20529
20530 fi
20531
20532
20533
20534 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20535 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
20536 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20537   echo $ECHO_N "(cached) $ECHO_C" >&6
20538 else
20539   ac_check_lib_save_LIBS=$LIBS
20540 LIBS="-lresolv  $LIBS"
20541 cat >conftest.$ac_ext <<_ACEOF
20542 /* confdefs.h.  */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h.  */
20547
20548 /* Override any gcc2 internal prototype to avoid an error.  */
20549 #ifdef __cplusplus
20550 extern "C"
20551 #endif
20552 /* We use char because int might match the return type of a gcc2
20553    builtin and then its argument prototype would still apply.  */
20554 char inet_aton ();
20555 int
20556 main ()
20557 {
20558 inet_aton ();
20559   ;
20560   return 0;
20561 }
20562 _ACEOF
20563 rm -f conftest.$ac_objext conftest$ac_exeext
20564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20565   (eval $ac_link) 2>conftest.er1
20566   ac_status=$?
20567   grep -v '^ *+' conftest.er1 >conftest.err
20568   rm -f conftest.er1
20569   cat conftest.err >&5
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); } &&
20572          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574   (eval $ac_try) 2>&5
20575   ac_status=$?
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); }; } &&
20578          { ac_try='test -s conftest$ac_exeext'
20579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580   (eval $ac_try) 2>&5
20581   ac_status=$?
20582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583   (exit $ac_status); }; }; then
20584   ac_cv_lib_resolv_inet_aton=yes
20585 else
20586   echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20588
20589 ac_cv_lib_resolv_inet_aton=no
20590 fi
20591 rm -f conftest.err conftest.$ac_objext \
20592       conftest$ac_exeext conftest.$ac_ext
20593 LIBS=$ac_check_lib_save_LIBS
20594 fi
20595 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20596 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
20597 if test $ac_cv_lib_resolv_inet_aton = yes; then
20598   cat >>confdefs.h <<_ACEOF
20599 #define HAVE_LIBRESOLV 1
20600 _ACEOF
20601
20602   LIBS="-lresolv $LIBS"
20603
20604 fi
20605
20606
20607
20608 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20609 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
20610 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20611   echo $ECHO_N "(cached) $ECHO_C" >&6
20612 else
20613   ac_check_lib_save_LIBS=$LIBS
20614 LIBS="-lnsl  $LIBS"
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h.  */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h.  */
20621
20622 /* Override any gcc2 internal prototype to avoid an error.  */
20623 #ifdef __cplusplus
20624 extern "C"
20625 #endif
20626 /* We use char because int might match the return type of a gcc2
20627    builtin and then its argument prototype would still apply.  */
20628 char inet_ntoa ();
20629 int
20630 main ()
20631 {
20632 inet_ntoa ();
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20639   (eval $ac_link) 2>conftest.er1
20640   ac_status=$?
20641   grep -v '^ *+' conftest.er1 >conftest.err
20642   rm -f conftest.er1
20643   cat conftest.err >&5
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); } &&
20646          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648   (eval $ac_try) 2>&5
20649   ac_status=$?
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); }; } &&
20652          { ac_try='test -s conftest$ac_exeext'
20653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654   (eval $ac_try) 2>&5
20655   ac_status=$?
20656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657   (exit $ac_status); }; }; then
20658   ac_cv_lib_nsl_inet_ntoa=yes
20659 else
20660   echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20662
20663 ac_cv_lib_nsl_inet_ntoa=no
20664 fi
20665 rm -f conftest.err conftest.$ac_objext \
20666       conftest$ac_exeext conftest.$ac_ext
20667 LIBS=$ac_check_lib_save_LIBS
20668 fi
20669 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20670 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20671 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20672   cat >>confdefs.h <<_ACEOF
20673 #define HAVE_LIBNSL 1
20674 _ACEOF
20675
20676   LIBS="-lnsl $LIBS"
20677
20678 fi
20679
20680
20681
20682 case "$host" in
20683 *-interix*)
20684         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20685         ;;
20686 esac
20687
20688
20689
20690
20691
20692
20693 ac_header_dirent=no
20694 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20695   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20696 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20697 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20699   echo $ECHO_N "(cached) $ECHO_C" >&6
20700 else
20701   cat >conftest.$ac_ext <<_ACEOF
20702 /* confdefs.h.  */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h.  */
20707 #include <sys/types.h>
20708 #include <$ac_hdr>
20709
20710 int
20711 main ()
20712 {
20713 if ((DIR *) 0)
20714 return 0;
20715   ;
20716   return 0;
20717 }
20718 _ACEOF
20719 rm -f conftest.$ac_objext
20720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20721   (eval $ac_compile) 2>conftest.er1
20722   ac_status=$?
20723   grep -v '^ *+' conftest.er1 >conftest.err
20724   rm -f conftest.er1
20725   cat conftest.err >&5
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); } &&
20728          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730   (eval $ac_try) 2>&5
20731   ac_status=$?
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); }; } &&
20734          { ac_try='test -s conftest.$ac_objext'
20735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736   (eval $ac_try) 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); }; }; then
20740   eval "$as_ac_Header=yes"
20741 else
20742   echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20744
20745 eval "$as_ac_Header=no"
20746 fi
20747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20748 fi
20749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20752   cat >>confdefs.h <<_ACEOF
20753 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20754 _ACEOF
20755
20756 ac_header_dirent=$ac_hdr; break
20757 fi
20758
20759 done
20760 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20761 if test $ac_header_dirent = dirent.h; then
20762   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20763 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20764 if test "${ac_cv_search_opendir+set}" = set; then
20765   echo $ECHO_N "(cached) $ECHO_C" >&6
20766 else
20767   ac_func_search_save_LIBS=$LIBS
20768 ac_cv_search_opendir=no
20769 cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h.  */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h.  */
20775
20776 /* Override any gcc2 internal prototype to avoid an error.  */
20777 #ifdef __cplusplus
20778 extern "C"
20779 #endif
20780 /* We use char because int might match the return type of a gcc2
20781    builtin and then its argument prototype would still apply.  */
20782 char opendir ();
20783 int
20784 main ()
20785 {
20786 opendir ();
20787   ;
20788   return 0;
20789 }
20790 _ACEOF
20791 rm -f conftest.$ac_objext conftest$ac_exeext
20792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20793   (eval $ac_link) 2>conftest.er1
20794   ac_status=$?
20795   grep -v '^ *+' conftest.er1 >conftest.err
20796   rm -f conftest.er1
20797   cat conftest.err >&5
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); } &&
20800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802   (eval $ac_try) 2>&5
20803   ac_status=$?
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); }; } &&
20806          { ac_try='test -s conftest$ac_exeext'
20807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20808   (eval $ac_try) 2>&5
20809   ac_status=$?
20810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811   (exit $ac_status); }; }; then
20812   ac_cv_search_opendir="none required"
20813 else
20814   echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20816
20817 fi
20818 rm -f conftest.err conftest.$ac_objext \
20819       conftest$ac_exeext conftest.$ac_ext
20820 if test "$ac_cv_search_opendir" = no; then
20821   for ac_lib in dir; do
20822     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20823     cat >conftest.$ac_ext <<_ACEOF
20824 /* confdefs.h.  */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h.  */
20829
20830 /* Override any gcc2 internal prototype to avoid an error.  */
20831 #ifdef __cplusplus
20832 extern "C"
20833 #endif
20834 /* We use char because int might match the return type of a gcc2
20835    builtin and then its argument prototype would still apply.  */
20836 char opendir ();
20837 int
20838 main ()
20839 {
20840 opendir ();
20841   ;
20842   return 0;
20843 }
20844 _ACEOF
20845 rm -f conftest.$ac_objext conftest$ac_exeext
20846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20847   (eval $ac_link) 2>conftest.er1
20848   ac_status=$?
20849   grep -v '^ *+' conftest.er1 >conftest.err
20850   rm -f conftest.er1
20851   cat conftest.err >&5
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); } &&
20854          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856   (eval $ac_try) 2>&5
20857   ac_status=$?
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); }; } &&
20860          { ac_try='test -s conftest$ac_exeext'
20861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862   (eval $ac_try) 2>&5
20863   ac_status=$?
20864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865   (exit $ac_status); }; }; then
20866   ac_cv_search_opendir="-l$ac_lib"
20867 break
20868 else
20869   echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872 fi
20873 rm -f conftest.err conftest.$ac_objext \
20874       conftest$ac_exeext conftest.$ac_ext
20875   done
20876 fi
20877 LIBS=$ac_func_search_save_LIBS
20878 fi
20879 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20880 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20881 if test "$ac_cv_search_opendir" != no; then
20882   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20883
20884 fi
20885
20886 else
20887   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20888 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20889 if test "${ac_cv_search_opendir+set}" = set; then
20890   echo $ECHO_N "(cached) $ECHO_C" >&6
20891 else
20892   ac_func_search_save_LIBS=$LIBS
20893 ac_cv_search_opendir=no
20894 cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h.  */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h.  */
20900
20901 /* Override any gcc2 internal prototype to avoid an error.  */
20902 #ifdef __cplusplus
20903 extern "C"
20904 #endif
20905 /* We use char because int might match the return type of a gcc2
20906    builtin and then its argument prototype would still apply.  */
20907 char opendir ();
20908 int
20909 main ()
20910 {
20911 opendir ();
20912   ;
20913   return 0;
20914 }
20915 _ACEOF
20916 rm -f conftest.$ac_objext conftest$ac_exeext
20917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20918   (eval $ac_link) 2>conftest.er1
20919   ac_status=$?
20920   grep -v '^ *+' conftest.er1 >conftest.err
20921   rm -f conftest.er1
20922   cat conftest.err >&5
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); } &&
20925          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927   (eval $ac_try) 2>&5
20928   ac_status=$?
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); }; } &&
20931          { ac_try='test -s conftest$ac_exeext'
20932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933   (eval $ac_try) 2>&5
20934   ac_status=$?
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); }; }; then
20937   ac_cv_search_opendir="none required"
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942 fi
20943 rm -f conftest.err conftest.$ac_objext \
20944       conftest$ac_exeext conftest.$ac_ext
20945 if test "$ac_cv_search_opendir" = no; then
20946   for ac_lib in x; do
20947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20948     cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h.  */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h.  */
20954
20955 /* Override any gcc2 internal prototype to avoid an error.  */
20956 #ifdef __cplusplus
20957 extern "C"
20958 #endif
20959 /* We use char because int might match the return type of a gcc2
20960    builtin and then its argument prototype would still apply.  */
20961 char opendir ();
20962 int
20963 main ()
20964 {
20965 opendir ();
20966   ;
20967   return 0;
20968 }
20969 _ACEOF
20970 rm -f conftest.$ac_objext conftest$ac_exeext
20971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20972   (eval $ac_link) 2>conftest.er1
20973   ac_status=$?
20974   grep -v '^ *+' conftest.er1 >conftest.err
20975   rm -f conftest.er1
20976   cat conftest.err >&5
20977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978   (exit $ac_status); } &&
20979          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981   (eval $ac_try) 2>&5
20982   ac_status=$?
20983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984   (exit $ac_status); }; } &&
20985          { ac_try='test -s conftest$ac_exeext'
20986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987   (eval $ac_try) 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); }; }; then
20991   ac_cv_search_opendir="-l$ac_lib"
20992 break
20993 else
20994   echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997 fi
20998 rm -f conftest.err conftest.$ac_objext \
20999       conftest$ac_exeext conftest.$ac_ext
21000   done
21001 fi
21002 LIBS=$ac_func_search_save_LIBS
21003 fi
21004 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21005 echo "${ECHO_T}$ac_cv_search_opendir" >&6
21006 if test "$ac_cv_search_opendir" != no; then
21007   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21008
21009 fi
21010
21011 fi
21012
21013 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21014 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21015 if test "${ac_cv_header_stdc+set}" = set; then
21016   echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018   cat >conftest.$ac_ext <<_ACEOF
21019 /* confdefs.h.  */
21020 _ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h.  */
21024 #include <stdlib.h>
21025 #include <stdarg.h>
21026 #include <string.h>
21027 #include <float.h>
21028
21029 int
21030 main ()
21031 {
21032
21033   ;
21034   return 0;
21035 }
21036 _ACEOF
21037 rm -f conftest.$ac_objext
21038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21039   (eval $ac_compile) 2>conftest.er1
21040   ac_status=$?
21041   grep -v '^ *+' conftest.er1 >conftest.err
21042   rm -f conftest.er1
21043   cat conftest.err >&5
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); } &&
21046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048   (eval $ac_try) 2>&5
21049   ac_status=$?
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); }; } &&
21052          { ac_try='test -s conftest.$ac_objext'
21053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054   (eval $ac_try) 2>&5
21055   ac_status=$?
21056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057   (exit $ac_status); }; }; then
21058   ac_cv_header_stdc=yes
21059 else
21060   echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21062
21063 ac_cv_header_stdc=no
21064 fi
21065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21066
21067 if test $ac_cv_header_stdc = yes; then
21068   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21069   cat >conftest.$ac_ext <<_ACEOF
21070 /* confdefs.h.  */
21071 _ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h.  */
21075 #include <string.h>
21076
21077 _ACEOF
21078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21079   $EGREP "memchr" >/dev/null 2>&1; then
21080   :
21081 else
21082   ac_cv_header_stdc=no
21083 fi
21084 rm -f conftest*
21085
21086 fi
21087
21088 if test $ac_cv_header_stdc = yes; then
21089   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21090   cat >conftest.$ac_ext <<_ACEOF
21091 /* confdefs.h.  */
21092 _ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h.  */
21096 #include <stdlib.h>
21097
21098 _ACEOF
21099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21100   $EGREP "free" >/dev/null 2>&1; then
21101   :
21102 else
21103   ac_cv_header_stdc=no
21104 fi
21105 rm -f conftest*
21106
21107 fi
21108
21109 if test $ac_cv_header_stdc = yes; then
21110   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21111   if test "$cross_compiling" = yes; then
21112   :
21113 else
21114   cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h.  */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h.  */
21120 #include <ctype.h>
21121 #if ((' ' & 0x0FF) == 0x020)
21122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21124 #else
21125 # define ISLOWER(c) \
21126                    (('a' <= (c) && (c) <= 'i') \
21127                      || ('j' <= (c) && (c) <= 'r') \
21128                      || ('s' <= (c) && (c) <= 'z'))
21129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21130 #endif
21131
21132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21133 int
21134 main ()
21135 {
21136   int i;
21137   for (i = 0; i < 256; i++)
21138     if (XOR (islower (i), ISLOWER (i))
21139         || toupper (i) != TOUPPER (i))
21140       exit(2);
21141   exit (0);
21142 }
21143 _ACEOF
21144 rm -f conftest$ac_exeext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21146   (eval $ac_link) 2>&5
21147   ac_status=$?
21148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151   (eval $ac_try) 2>&5
21152   ac_status=$?
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); }; }; then
21155   :
21156 else
21157   echo "$as_me: program exited with status $ac_status" >&5
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161 ( exit $ac_status )
21162 ac_cv_header_stdc=no
21163 fi
21164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21165 fi
21166 fi
21167 fi
21168 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21169 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21170 if test $ac_cv_header_stdc = yes; then
21171
21172 cat >>confdefs.h <<\_ACEOF
21173 #define STDC_HEADERS 1
21174 _ACEOF
21175
21176 fi
21177
21178 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21179 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21180 if test "${ac_cv_header_time+set}" = set; then
21181   echo $ECHO_N "(cached) $ECHO_C" >&6
21182 else
21183   cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h.  */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h.  */
21189 #include <sys/types.h>
21190 #include <sys/time.h>
21191 #include <time.h>
21192
21193 int
21194 main ()
21195 {
21196 if ((struct tm *) 0)
21197 return 0;
21198   ;
21199   return 0;
21200 }
21201 _ACEOF
21202 rm -f conftest.$ac_objext
21203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21204   (eval $ac_compile) 2>conftest.er1
21205   ac_status=$?
21206   grep -v '^ *+' conftest.er1 >conftest.err
21207   rm -f conftest.er1
21208   cat conftest.err >&5
21209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210   (exit $ac_status); } &&
21211          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213   (eval $ac_try) 2>&5
21214   ac_status=$?
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); }; } &&
21217          { ac_try='test -s conftest.$ac_objext'
21218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219   (eval $ac_try) 2>&5
21220   ac_status=$?
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); }; }; then
21223   ac_cv_header_time=yes
21224 else
21225   echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228 ac_cv_header_time=no
21229 fi
21230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21231 fi
21232 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21233 echo "${ECHO_T}$ac_cv_header_time" >&6
21234 if test $ac_cv_header_time = yes; then
21235
21236 cat >>confdefs.h <<\_ACEOF
21237 #define TIME_WITH_SYS_TIME 1
21238 _ACEOF
21239
21240 fi
21241
21242 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21243 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21244 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21245   echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247   cat >conftest.$ac_ext <<_ACEOF
21248 /* confdefs.h.  */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h.  */
21253 #include <sys/types.h>
21254 #include <sys/wait.h>
21255 #ifndef WEXITSTATUS
21256 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21257 #endif
21258 #ifndef WIFEXITED
21259 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21260 #endif
21261
21262 int
21263 main ()
21264 {
21265   int s;
21266   wait (&s);
21267   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21268   ;
21269   return 0;
21270 }
21271 _ACEOF
21272 rm -f conftest.$ac_objext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274   (eval $ac_compile) 2>conftest.er1
21275   ac_status=$?
21276   grep -v '^ *+' conftest.er1 >conftest.err
21277   rm -f conftest.er1
21278   cat conftest.err >&5
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); } &&
21281          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283   (eval $ac_try) 2>&5
21284   ac_status=$?
21285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286   (exit $ac_status); }; } &&
21287          { ac_try='test -s conftest.$ac_objext'
21288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289   (eval $ac_try) 2>&5
21290   ac_status=$?
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); }; }; then
21293   ac_cv_header_sys_wait_h=yes
21294 else
21295   echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21297
21298 ac_cv_header_sys_wait_h=no
21299 fi
21300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21301 fi
21302 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21303 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21304 if test $ac_cv_header_sys_wait_h = yes; then
21305
21306 cat >>confdefs.h <<\_ACEOF
21307 #define HAVE_SYS_WAIT_H 1
21308 _ACEOF
21309
21310 fi
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341 for ac_header in \
21342         unistd.h \
21343         crypt.h \
21344         errno.h \
21345         resource.h \
21346         getopt.h \
21347         malloc.h \
21348         utmp.h \
21349         utmpx.h \
21350         signal.h \
21351         sys/select.h \
21352         syslog.h \
21353         inttypes.h \
21354         stdint.h \
21355         stdio.h \
21356         netdb.h \
21357         semaphore.h \
21358         arpa/inet.h \
21359         netinet/in.h \
21360         sys/types.h \
21361         sys/socket.h \
21362         sys/time.h \
21363         sys/wait.h \
21364         sys/security.h \
21365         fcntl.h \
21366         sys/fcntl.h \
21367         prot.h \
21368         sia.h \
21369         siad.h
21370
21371 do
21372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21374   echo "$as_me:$LINENO: checking for $ac_header" >&5
21375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21377   echo $ECHO_N "(cached) $ECHO_C" >&6
21378 fi
21379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21381 else
21382   # Is the header compilable?
21383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21385 cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h.  */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h.  */
21391 $ac_includes_default
21392 #include <$ac_header>
21393 _ACEOF
21394 rm -f conftest.$ac_objext
21395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21396   (eval $ac_compile) 2>conftest.er1
21397   ac_status=$?
21398   grep -v '^ *+' conftest.er1 >conftest.err
21399   rm -f conftest.er1
21400   cat conftest.err >&5
21401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402   (exit $ac_status); } &&
21403          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405   (eval $ac_try) 2>&5
21406   ac_status=$?
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); }; } &&
21409          { ac_try='test -s conftest.$ac_objext'
21410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411   (eval $ac_try) 2>&5
21412   ac_status=$?
21413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414   (exit $ac_status); }; }; then
21415   ac_header_compiler=yes
21416 else
21417   echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21419
21420 ac_header_compiler=no
21421 fi
21422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21424 echo "${ECHO_T}$ac_header_compiler" >&6
21425
21426 # Is the header present?
21427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21429 cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h.  */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h.  */
21435 #include <$ac_header>
21436 _ACEOF
21437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21438   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21439   ac_status=$?
21440   grep -v '^ *+' conftest.er1 >conftest.err
21441   rm -f conftest.er1
21442   cat conftest.err >&5
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); } >/dev/null; then
21445   if test -s conftest.err; then
21446     ac_cpp_err=$ac_c_preproc_warn_flag
21447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21448   else
21449     ac_cpp_err=
21450   fi
21451 else
21452   ac_cpp_err=yes
21453 fi
21454 if test -z "$ac_cpp_err"; then
21455   ac_header_preproc=yes
21456 else
21457   echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21459
21460   ac_header_preproc=no
21461 fi
21462 rm -f conftest.err conftest.$ac_ext
21463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21464 echo "${ECHO_T}$ac_header_preproc" >&6
21465
21466 # So?  What about this header?
21467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21468   yes:no: )
21469     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21473     ac_header_preproc=yes
21474     ;;
21475   no:yes:* )
21476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21478     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21479 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21480     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21482     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21483 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21486     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21488     (
21489       cat <<\_ASBOX
21490 ## ------------------------------------------ ##
21491 ## Report this to the AC_PACKAGE_NAME lists.  ##
21492 ## ------------------------------------------ ##
21493 _ASBOX
21494     ) |
21495       sed "s/^/$as_me: WARNING:     /" >&2
21496     ;;
21497 esac
21498 echo "$as_me:$LINENO: checking for $ac_header" >&5
21499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21501   echo $ECHO_N "(cached) $ECHO_C" >&6
21502 else
21503   eval "$as_ac_Header=\$ac_header_preproc"
21504 fi
21505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21507
21508 fi
21509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21510   cat >>confdefs.h <<_ACEOF
21511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21512 _ACEOF
21513
21514 fi
21515
21516 done
21517
21518
21519 REGEX=no
21520 if test "${ac_cv_header_regex_h+set}" = set; then
21521   echo "$as_me:$LINENO: checking for regex.h" >&5
21522 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21523 if test "${ac_cv_header_regex_h+set}" = set; then
21524   echo $ECHO_N "(cached) $ECHO_C" >&6
21525 fi
21526 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21527 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21528 else
21529   # Is the header compilable?
21530 echo "$as_me:$LINENO: checking regex.h usability" >&5
21531 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21532 cat >conftest.$ac_ext <<_ACEOF
21533 /* confdefs.h.  */
21534 _ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h.  */
21538 $ac_includes_default
21539 #include <regex.h>
21540 _ACEOF
21541 rm -f conftest.$ac_objext
21542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21543   (eval $ac_compile) 2>conftest.er1
21544   ac_status=$?
21545   grep -v '^ *+' conftest.er1 >conftest.err
21546   rm -f conftest.er1
21547   cat conftest.err >&5
21548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549   (exit $ac_status); } &&
21550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21552   (eval $ac_try) 2>&5
21553   ac_status=$?
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); }; } &&
21556          { ac_try='test -s conftest.$ac_objext'
21557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558   (eval $ac_try) 2>&5
21559   ac_status=$?
21560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561   (exit $ac_status); }; }; then
21562   ac_header_compiler=yes
21563 else
21564   echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21566
21567 ac_header_compiler=no
21568 fi
21569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21571 echo "${ECHO_T}$ac_header_compiler" >&6
21572
21573 # Is the header present?
21574 echo "$as_me:$LINENO: checking regex.h presence" >&5
21575 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21576 cat >conftest.$ac_ext <<_ACEOF
21577 /* confdefs.h.  */
21578 _ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h.  */
21582 #include <regex.h>
21583 _ACEOF
21584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21586   ac_status=$?
21587   grep -v '^ *+' conftest.er1 >conftest.err
21588   rm -f conftest.er1
21589   cat conftest.err >&5
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); } >/dev/null; then
21592   if test -s conftest.err; then
21593     ac_cpp_err=$ac_c_preproc_warn_flag
21594     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21595   else
21596     ac_cpp_err=
21597   fi
21598 else
21599   ac_cpp_err=yes
21600 fi
21601 if test -z "$ac_cpp_err"; then
21602   ac_header_preproc=yes
21603 else
21604   echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21606
21607   ac_header_preproc=no
21608 fi
21609 rm -f conftest.err conftest.$ac_ext
21610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21611 echo "${ECHO_T}$ac_header_preproc" >&6
21612
21613 # So?  What about this header?
21614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21615   yes:no: )
21616     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21617 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21618     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21619 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21620     ac_header_preproc=yes
21621     ;;
21622   no:yes:* )
21623     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21624 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21625     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
21626 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
21627     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21628 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21629     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
21630 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21631     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21632 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21633     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21634 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21635     (
21636       cat <<\_ASBOX
21637 ## ------------------------------------------ ##
21638 ## Report this to the AC_PACKAGE_NAME lists.  ##
21639 ## ------------------------------------------ ##
21640 _ASBOX
21641     ) |
21642       sed "s/^/$as_me: WARNING:     /" >&2
21643     ;;
21644 esac
21645 echo "$as_me:$LINENO: checking for regex.h" >&5
21646 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21647 if test "${ac_cv_header_regex_h+set}" = set; then
21648   echo $ECHO_N "(cached) $ECHO_C" >&6
21649 else
21650   ac_cv_header_regex_h=$ac_header_preproc
21651 fi
21652 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21653 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21654
21655 fi
21656 if test $ac_cv_header_regex_h = yes; then
21657
21658 cat >>confdefs.h <<\_ACEOF
21659 #define HAVE_REGEX_H
21660 _ACEOF
21661
21662 fi
21663
21664
21665 if test "x$ac_cv_header_regex_h" = "xyes"; then
21666   REGEX_EXTENDED=no
21667   REGEX=yes
21668   cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h.  */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h.  */
21674 #include <regex.h>
21675      #ifdef REG_EXTENDED
21676        yes
21677      #endif
21678
21679 _ACEOF
21680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21681   $EGREP "yes" >/dev/null 2>&1; then
21682
21683 cat >>confdefs.h <<\_ACEOF
21684 #define HAVE_REG_EXTENDED
21685 _ACEOF
21686  REGEX_EXTENDED=yes
21687 fi
21688 rm -f conftest*
21689
21690 fi
21691
21692
21693
21694 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21695 then
21696
21697 cat >>confdefs.h <<\_ACEOF
21698 #define OSFC2
21699 _ACEOF
21700
21701 fi
21702
21703 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21704 then
21705
21706 cat >>confdefs.h <<\_ACEOF
21707 #define OSFSIA
21708 _ACEOF
21709
21710 fi
21711
21712 smart_try_dir="$OPENSSL_INCLUDE_DIR"
21713 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
21714
21715
21716 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
21717 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21718 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
21719
21720 smart_include=
21721 smart_include_dir=
21722
21723   old_CFLAGS="$CFLAGS"
21724   cat >conftest.$ac_ext <<_ACEOF
21725 /* confdefs.h.  */
21726 _ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h.  */
21730
21731                   #include <openssl/ssl.h>
21732 int
21733 main ()
21734 {
21735  int a = 1;
21736   ;
21737   return 0;
21738 }
21739 _ACEOF
21740 rm -f conftest.$ac_objext
21741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21742   (eval $ac_compile) 2>conftest.er1
21743   ac_status=$?
21744   grep -v '^ *+' conftest.er1 >conftest.err
21745   rm -f conftest.er1
21746   cat conftest.err >&5
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } &&
21749          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751   (eval $ac_try) 2>&5
21752   ac_status=$?
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); }; } &&
21755          { ac_try='test -s conftest.$ac_objext'
21756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757   (eval $ac_try) 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; }; then
21761   smart_include=" "
21762 else
21763   echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21765
21766 smart_include=
21767 fi
21768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21769
21770   if test "x$smart_include" = "x"; then
21771
21772
21773 if test "x$LOCATE" != "x"; then
21774         DIRS=
21775   file=openssl/ssl.h
21776
21777   for x in `${LOCATE} $file 2>/dev/null`; do
21778                                         base=`echo $x | sed "s%/${file}%%"`
21779     if test "x$x" = "x$base"; then
21780       continue;
21781     fi
21782
21783     dir=`${DIRNAME} $x 2>/dev/null`
21784                 exclude=`echo ${dir} | ${GREP} /home`
21785     if test "x$exclude" != "x"; then
21786       continue
21787     fi
21788
21789                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
21790     if test "x$already" = "x"; then
21791       DIRS="$DIRS $dir"
21792     fi
21793   done
21794 fi
21795
21796 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
21797
21798
21799     for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
21800       CFLAGS="$old_CFLAGS -I$try"
21801
21802       cat >conftest.$ac_ext <<_ACEOF
21803 /* confdefs.h.  */
21804 _ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h.  */
21808
21809                        #include <openssl/ssl.h>
21810 int
21811 main ()
21812 {
21813  int a = 1;
21814   ;
21815   return 0;
21816 }
21817 _ACEOF
21818 rm -f conftest.$ac_objext
21819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21820   (eval $ac_compile) 2>conftest.er1
21821   ac_status=$?
21822   grep -v '^ *+' conftest.er1 >conftest.err
21823   rm -f conftest.er1
21824   cat conftest.err >&5
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); } &&
21827          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829   (eval $ac_try) 2>&5
21830   ac_status=$?
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); }; } &&
21833          { ac_try='test -s conftest.$ac_objext'
21834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835   (eval $ac_try) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); }; }; then
21839   smart_include="-I$try"
21840 else
21841   echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21843
21844 smart_include=
21845 fi
21846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21847
21848       if test "x$smart_include" != "x"; then
21849         break;
21850       fi
21851     done
21852     CFLAGS="$old_CFLAGS"
21853   fi
21854
21855         if test "x$smart_include" != "x"; then
21856     echo "$as_me:$LINENO: result: yes" >&5
21857 echo "${ECHO_T}yes" >&6
21858     eval "ac_cv_header_$ac_safe=yes"
21859     CFLAGS="$old_CFLAGS $smart_include"
21860     SMART_CFLAGS="$SMART_CFLAGS $smart_include"
21861   else
21862     echo "$as_me:$LINENO: result: no" >&5
21863 echo "${ECHO_T}no" >&6
21864 fi
21865
21866 OPENSSL_INCLUDE=
21867 OPENSSL_LIBS=
21868 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
21869
21870 cat >>confdefs.h <<\_ACEOF
21871 #define HAVE_OPENSSL_SSL_H
21872 _ACEOF
21873
21874   old_CPPFLAGS="$CPPFLAGS"
21875   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21876       CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21877   fi
21878
21879
21880
21881
21882 for ac_header in \
21883           openssl/err.h \
21884           openssl/crypto.h \
21885           openssl/rand.h \
21886           openssl/engine.h
21887
21888 do
21889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21891   echo "$as_me:$LINENO: checking for $ac_header" >&5
21892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21894   echo $ECHO_N "(cached) $ECHO_C" >&6
21895 fi
21896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21898 else
21899   # Is the header compilable?
21900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21902 cat >conftest.$ac_ext <<_ACEOF
21903 /* confdefs.h.  */
21904 _ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h.  */
21908 $ac_includes_default
21909 #include <$ac_header>
21910 _ACEOF
21911 rm -f conftest.$ac_objext
21912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21913   (eval $ac_compile) 2>conftest.er1
21914   ac_status=$?
21915   grep -v '^ *+' conftest.er1 >conftest.err
21916   rm -f conftest.er1
21917   cat conftest.err >&5
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); } &&
21920          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922   (eval $ac_try) 2>&5
21923   ac_status=$?
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); }; } &&
21926          { ac_try='test -s conftest.$ac_objext'
21927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928   (eval $ac_try) 2>&5
21929   ac_status=$?
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); }; }; then
21932   ac_header_compiler=yes
21933 else
21934   echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21936
21937 ac_header_compiler=no
21938 fi
21939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21941 echo "${ECHO_T}$ac_header_compiler" >&6
21942
21943 # Is the header present?
21944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21946 cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h.  */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h.  */
21952 #include <$ac_header>
21953 _ACEOF
21954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21956   ac_status=$?
21957   grep -v '^ *+' conftest.er1 >conftest.err
21958   rm -f conftest.er1
21959   cat conftest.err >&5
21960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961   (exit $ac_status); } >/dev/null; then
21962   if test -s conftest.err; then
21963     ac_cpp_err=$ac_c_preproc_warn_flag
21964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21965   else
21966     ac_cpp_err=
21967   fi
21968 else
21969   ac_cpp_err=yes
21970 fi
21971 if test -z "$ac_cpp_err"; then
21972   ac_header_preproc=yes
21973 else
21974   echo "$as_me: failed program was:" >&5
21975 sed 's/^/| /' conftest.$ac_ext >&5
21976
21977   ac_header_preproc=no
21978 fi
21979 rm -f conftest.err conftest.$ac_ext
21980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21981 echo "${ECHO_T}$ac_header_preproc" >&6
21982
21983 # So?  What about this header?
21984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21985   yes:no: )
21986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21990     ac_header_preproc=yes
21991     ;;
21992   no:yes:* )
21993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21995     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21999     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22000 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22003     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22005     (
22006       cat <<\_ASBOX
22007 ## ------------------------------------------ ##
22008 ## Report this to the AC_PACKAGE_NAME lists.  ##
22009 ## ------------------------------------------ ##
22010 _ASBOX
22011     ) |
22012       sed "s/^/$as_me: WARNING:     /" >&2
22013     ;;
22014 esac
22015 echo "$as_me:$LINENO: checking for $ac_header" >&5
22016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22018   echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020   eval "$as_ac_Header=\$ac_header_preproc"
22021 fi
22022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22024
22025 fi
22026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22027   cat >>confdefs.h <<_ACEOF
22028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22029 _ACEOF
22030
22031 fi
22032
22033 done
22034
22035   CPPFLAGS="$old_CPPFLAGS"
22036
22037   echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22038 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
22039        old_CPPFLAGS=$CPPFLAGS
22040        old_LIBS="$LIBS"
22041        if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22042            CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
22043            fi
22044        cat >conftest.$ac_ext <<_ACEOF
22045 /* confdefs.h.  */
22046 _ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h.  */
22050 #include <openssl/crypto.h>
22051        #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22052         yes
22053        #endif
22054
22055 _ACEOF
22056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22057   $EGREP "yes" >/dev/null 2>&1; then
22058   goodssl="yes"
22059 fi
22060 rm -f conftest*
22061
22062            if test "x$goodssl" != "xyes"; then
22063              echo "$as_me:$LINENO: result: no" >&5
22064 echo "${ECHO_T}no" >&6
22065              OPENSSL_INCLUDE=
22066              OPENSSL_LIBS=
22067            else
22068              echo "$as_me:$LINENO: result: yes" >&5
22069 echo "${ECHO_T}yes" >&6
22070
22071              # Look for the OpenSSL libraries.
22072              smart_try_dir=$OPENSSL_LIB_DIR
22073
22074
22075 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
22076 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
22077 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
22078 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
22079
22080 smart_lib=
22081 smart_lib_dir=
22082
22083   old_LIBS="$LIBS"
22084   LIBS="$LIBS -lcrypto"
22085   cat >conftest.$ac_ext <<_ACEOF
22086 /* confdefs.h.  */
22087 _ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h.  */
22091 extern char DH_new();
22092 int
22093 main ()
22094 {
22095  DH_new()
22096   ;
22097   return 0;
22098 }
22099 _ACEOF
22100 rm -f conftest.$ac_objext conftest$ac_exeext
22101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22102   (eval $ac_link) 2>conftest.er1
22103   ac_status=$?
22104   grep -v '^ *+' conftest.er1 >conftest.err
22105   rm -f conftest.er1
22106   cat conftest.err >&5
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); } &&
22109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111   (eval $ac_try) 2>&5
22112   ac_status=$?
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); }; } &&
22115          { ac_try='test -s conftest$ac_exeext'
22116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117   (eval $ac_try) 2>&5
22118   ac_status=$?
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); }; }; then
22121   smart_lib="-lcrypto"
22122 else
22123   echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22125
22126 fi
22127 rm -f conftest.err conftest.$ac_objext \
22128       conftest$ac_exeext conftest.$ac_ext
22129
22130   if test "x$smart_lib" = "x"; then
22131
22132
22133 if test "x$LOCATE" != "x"; then
22134         DIRS=
22135   file=libcrypto${libltdl_cv_shlibext}
22136
22137   for x in `${LOCATE} $file 2>/dev/null`; do
22138                                         base=`echo $x | sed "s%/${file}%%"`
22139     if test "x$x" = "x$base"; then
22140       continue;
22141     fi
22142
22143     dir=`${DIRNAME} $x 2>/dev/null`
22144                 exclude=`echo ${dir} | ${GREP} /home`
22145     if test "x$exclude" != "x"; then
22146       continue
22147     fi
22148
22149                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22150     if test "x$already" = "x"; then
22151       DIRS="$DIRS $dir"
22152     fi
22153   done
22154 fi
22155
22156 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22157
22158
22159
22160 if test "x$LOCATE" != "x"; then
22161         DIRS=
22162   file=libcrypto.a
22163
22164   for x in `${LOCATE} $file 2>/dev/null`; do
22165                                         base=`echo $x | sed "s%/${file}%%"`
22166     if test "x$x" = "x$base"; then
22167       continue;
22168     fi
22169
22170     dir=`${DIRNAME} $x 2>/dev/null`
22171                 exclude=`echo ${dir} | ${GREP} /home`
22172     if test "x$exclude" != "x"; then
22173       continue
22174     fi
22175
22176                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22177     if test "x$already" = "x"; then
22178       DIRS="$DIRS $dir"
22179     fi
22180   done
22181 fi
22182
22183 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22184
22185
22186     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
22187       LIBS="$old_LIBS -L$try -lcrypto"
22188
22189       cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h.  */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h.  */
22195 extern char DH_new();
22196 int
22197 main ()
22198 {
22199  DH_new()
22200   ;
22201   return 0;
22202 }
22203 _ACEOF
22204 rm -f conftest.$ac_objext conftest$ac_exeext
22205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22206   (eval $ac_link) 2>conftest.er1
22207   ac_status=$?
22208   grep -v '^ *+' conftest.er1 >conftest.err
22209   rm -f conftest.er1
22210   cat conftest.err >&5
22211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212   (exit $ac_status); } &&
22213          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215   (eval $ac_try) 2>&5
22216   ac_status=$?
22217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218   (exit $ac_status); }; } &&
22219          { ac_try='test -s conftest$ac_exeext'
22220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221   (eval $ac_try) 2>&5
22222   ac_status=$?
22223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224   (exit $ac_status); }; }; then
22225   smart_lib="-L$try -lcrypto"
22226 else
22227   echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22229
22230 fi
22231 rm -f conftest.err conftest.$ac_objext \
22232       conftest$ac_exeext conftest.$ac_ext
22233       if test "x$smart_lib" != "x"; then
22234         break;
22235       fi
22236     done
22237     LIBS="$old_LIBS"
22238   fi
22239
22240         if test "x$smart_lib" != "x"; then
22241     echo "$as_me:$LINENO: result: yes" >&5
22242 echo "${ECHO_T}yes" >&6
22243     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
22244     LIBS="$old_LIBS $smart_lib"
22245     SMART_LIBS="$SMART_LIBS $smart_lib"
22246   else
22247     echo "$as_me:$LINENO: result: no" >&5
22248 echo "${ECHO_T}no" >&6
22249 fi
22250
22251              if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
22252
22253
22254 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
22255 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
22256 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
22257 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
22258
22259 smart_lib=
22260 smart_lib_dir=
22261
22262   old_LIBS="$LIBS"
22263   LIBS="$LIBS -lssl"
22264   cat >conftest.$ac_ext <<_ACEOF
22265 /* confdefs.h.  */
22266 _ACEOF
22267 cat confdefs.h >>conftest.$ac_ext
22268 cat >>conftest.$ac_ext <<_ACEOF
22269 /* end confdefs.h.  */
22270 extern char SSL_new();
22271 int
22272 main ()
22273 {
22274  SSL_new()
22275   ;
22276   return 0;
22277 }
22278 _ACEOF
22279 rm -f conftest.$ac_objext conftest$ac_exeext
22280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22281   (eval $ac_link) 2>conftest.er1
22282   ac_status=$?
22283   grep -v '^ *+' conftest.er1 >conftest.err
22284   rm -f conftest.er1
22285   cat conftest.err >&5
22286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287   (exit $ac_status); } &&
22288          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290   (eval $ac_try) 2>&5
22291   ac_status=$?
22292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293   (exit $ac_status); }; } &&
22294          { ac_try='test -s conftest$ac_exeext'
22295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296   (eval $ac_try) 2>&5
22297   ac_status=$?
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); }; }; then
22300   smart_lib="-lssl"
22301 else
22302   echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22304
22305 fi
22306 rm -f conftest.err conftest.$ac_objext \
22307       conftest$ac_exeext conftest.$ac_ext
22308
22309   if test "x$smart_lib" = "x"; then
22310
22311
22312 if test "x$LOCATE" != "x"; then
22313         DIRS=
22314   file=libssl${libltdl_cv_shlibext}
22315
22316   for x in `${LOCATE} $file 2>/dev/null`; do
22317                                         base=`echo $x | sed "s%/${file}%%"`
22318     if test "x$x" = "x$base"; then
22319       continue;
22320     fi
22321
22322     dir=`${DIRNAME} $x 2>/dev/null`
22323                 exclude=`echo ${dir} | ${GREP} /home`
22324     if test "x$exclude" != "x"; then
22325       continue
22326     fi
22327
22328                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22329     if test "x$already" = "x"; then
22330       DIRS="$DIRS $dir"
22331     fi
22332   done
22333 fi
22334
22335 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22336
22337
22338
22339 if test "x$LOCATE" != "x"; then
22340         DIRS=
22341   file=libssl.a
22342
22343   for x in `${LOCATE} $file 2>/dev/null`; do
22344                                         base=`echo $x | sed "s%/${file}%%"`
22345     if test "x$x" = "x$base"; then
22346       continue;
22347     fi
22348
22349     dir=`${DIRNAME} $x 2>/dev/null`
22350                 exclude=`echo ${dir} | ${GREP} /home`
22351     if test "x$exclude" != "x"; then
22352       continue
22353     fi
22354
22355                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22356     if test "x$already" = "x"; then
22357       DIRS="$DIRS $dir"
22358     fi
22359   done
22360 fi
22361
22362 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22363
22364
22365     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
22366       LIBS="$old_LIBS -L$try -lssl"
22367
22368       cat >conftest.$ac_ext <<_ACEOF
22369 /* confdefs.h.  */
22370 _ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h.  */
22374 extern char SSL_new();
22375 int
22376 main ()
22377 {
22378  SSL_new()
22379   ;
22380   return 0;
22381 }
22382 _ACEOF
22383 rm -f conftest.$ac_objext conftest$ac_exeext
22384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22385   (eval $ac_link) 2>conftest.er1
22386   ac_status=$?
22387   grep -v '^ *+' conftest.er1 >conftest.err
22388   rm -f conftest.er1
22389   cat conftest.err >&5
22390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391   (exit $ac_status); } &&
22392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394   (eval $ac_try) 2>&5
22395   ac_status=$?
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); }; } &&
22398          { ac_try='test -s conftest$ac_exeext'
22399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400   (eval $ac_try) 2>&5
22401   ac_status=$?
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); }; }; then
22404   smart_lib="-L$try -lssl"
22405 else
22406   echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22408
22409 fi
22410 rm -f conftest.err conftest.$ac_objext \
22411       conftest$ac_exeext conftest.$ac_ext
22412       if test "x$smart_lib" != "x"; then
22413         break;
22414       fi
22415     done
22416     LIBS="$old_LIBS"
22417   fi
22418
22419         if test "x$smart_lib" != "x"; then
22420     echo "$as_me:$LINENO: result: yes" >&5
22421 echo "${ECHO_T}yes" >&6
22422     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
22423     LIBS="$old_LIBS $smart_lib"
22424     SMART_LIBS="$SMART_LIBS $smart_lib"
22425   else
22426     echo "$as_me:$LINENO: result: no" >&5
22427 echo "${ECHO_T}no" >&6
22428 fi
22429
22430                if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
22431                  if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22432                    OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
22433                  fi
22434                  if test "x$OPENSSL_LIB_DIR" != "x"; then
22435                    OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
22436                  fi
22437                  OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
22438                else
22439                  OPENSSL_INCLUDE=
22440                  OPENSSL_LIBS=
22441                fi
22442              fi
22443            fi
22444        CPPFLAGS=$old_CPPFLAGS
22445        LIBS="$old_LIBS"
22446 fi
22447
22448
22449 export OPENSSL_LIBS
22450
22451
22452 echo "$as_me:$LINENO: checking for off_t" >&5
22453 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22454 if test "${ac_cv_type_off_t+set}" = set; then
22455   echo $ECHO_N "(cached) $ECHO_C" >&6
22456 else
22457   cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h.  */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h.  */
22463 $ac_includes_default
22464 int
22465 main ()
22466 {
22467 if ((off_t *) 0)
22468   return 0;
22469 if (sizeof (off_t))
22470   return 0;
22471   ;
22472   return 0;
22473 }
22474 _ACEOF
22475 rm -f conftest.$ac_objext
22476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22477   (eval $ac_compile) 2>conftest.er1
22478   ac_status=$?
22479   grep -v '^ *+' conftest.er1 >conftest.err
22480   rm -f conftest.er1
22481   cat conftest.err >&5
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); } &&
22484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22486   (eval $ac_try) 2>&5
22487   ac_status=$?
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); }; } &&
22490          { ac_try='test -s conftest.$ac_objext'
22491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22492   (eval $ac_try) 2>&5
22493   ac_status=$?
22494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495   (exit $ac_status); }; }; then
22496   ac_cv_type_off_t=yes
22497 else
22498   echo "$as_me: failed program was:" >&5
22499 sed 's/^/| /' conftest.$ac_ext >&5
22500
22501 ac_cv_type_off_t=no
22502 fi
22503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22504 fi
22505 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22506 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22507 if test $ac_cv_type_off_t = yes; then
22508   :
22509 else
22510
22511 cat >>confdefs.h <<_ACEOF
22512 #define off_t long
22513 _ACEOF
22514
22515 fi
22516
22517 echo "$as_me:$LINENO: checking for pid_t" >&5
22518 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22519 if test "${ac_cv_type_pid_t+set}" = set; then
22520   echo $ECHO_N "(cached) $ECHO_C" >&6
22521 else
22522   cat >conftest.$ac_ext <<_ACEOF
22523 /* confdefs.h.  */
22524 _ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h.  */
22528 $ac_includes_default
22529 int
22530 main ()
22531 {
22532 if ((pid_t *) 0)
22533   return 0;
22534 if (sizeof (pid_t))
22535   return 0;
22536   ;
22537   return 0;
22538 }
22539 _ACEOF
22540 rm -f conftest.$ac_objext
22541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22542   (eval $ac_compile) 2>conftest.er1
22543   ac_status=$?
22544   grep -v '^ *+' conftest.er1 >conftest.err
22545   rm -f conftest.er1
22546   cat conftest.err >&5
22547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548   (exit $ac_status); } &&
22549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551   (eval $ac_try) 2>&5
22552   ac_status=$?
22553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554   (exit $ac_status); }; } &&
22555          { ac_try='test -s conftest.$ac_objext'
22556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22557   (eval $ac_try) 2>&5
22558   ac_status=$?
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); }; }; then
22561   ac_cv_type_pid_t=yes
22562 else
22563   echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22565
22566 ac_cv_type_pid_t=no
22567 fi
22568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22569 fi
22570 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22571 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22572 if test $ac_cv_type_pid_t = yes; then
22573   :
22574 else
22575
22576 cat >>confdefs.h <<_ACEOF
22577 #define pid_t int
22578 _ACEOF
22579
22580 fi
22581
22582 echo "$as_me:$LINENO: checking for size_t" >&5
22583 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22584 if test "${ac_cv_type_size_t+set}" = set; then
22585   echo $ECHO_N "(cached) $ECHO_C" >&6
22586 else
22587   cat >conftest.$ac_ext <<_ACEOF
22588 /* confdefs.h.  */
22589 _ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h.  */
22593 $ac_includes_default
22594 int
22595 main ()
22596 {
22597 if ((size_t *) 0)
22598   return 0;
22599 if (sizeof (size_t))
22600   return 0;
22601   ;
22602   return 0;
22603 }
22604 _ACEOF
22605 rm -f conftest.$ac_objext
22606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22607   (eval $ac_compile) 2>conftest.er1
22608   ac_status=$?
22609   grep -v '^ *+' conftest.er1 >conftest.err
22610   rm -f conftest.er1
22611   cat conftest.err >&5
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); } &&
22614          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616   (eval $ac_try) 2>&5
22617   ac_status=$?
22618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619   (exit $ac_status); }; } &&
22620          { ac_try='test -s conftest.$ac_objext'
22621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622   (eval $ac_try) 2>&5
22623   ac_status=$?
22624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625   (exit $ac_status); }; }; then
22626   ac_cv_type_size_t=yes
22627 else
22628   echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22630
22631 ac_cv_type_size_t=no
22632 fi
22633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22634 fi
22635 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22636 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22637 if test $ac_cv_type_size_t = yes; then
22638   :
22639 else
22640
22641 cat >>confdefs.h <<_ACEOF
22642 #define size_t unsigned
22643 _ACEOF
22644
22645 fi
22646
22647 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22648 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22649 if test "${ac_cv_type_uid_t+set}" = set; then
22650   echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652   cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h.  */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h.  */
22658 #include <sys/types.h>
22659
22660 _ACEOF
22661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22662   $EGREP "uid_t" >/dev/null 2>&1; then
22663   ac_cv_type_uid_t=yes
22664 else
22665   ac_cv_type_uid_t=no
22666 fi
22667 rm -f conftest*
22668
22669 fi
22670 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22671 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22672 if test $ac_cv_type_uid_t = no; then
22673
22674 cat >>confdefs.h <<\_ACEOF
22675 #define uid_t int
22676 _ACEOF
22677
22678
22679 cat >>confdefs.h <<\_ACEOF
22680 #define gid_t int
22681 _ACEOF
22682
22683 fi
22684
22685
22686
22687   echo "$as_me:$LINENO: checking for socklen_t" >&5
22688 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22689 if test "${ac_cv_type_socklen_t+set}" = set; then
22690   echo $ECHO_N "(cached) $ECHO_C" >&6
22691 else
22692    ac_cv_type_socklen_t=no
22693       cat >conftest.$ac_ext <<_ACEOF
22694 /* confdefs.h.  */
22695 _ACEOF
22696 cat confdefs.h >>conftest.$ac_ext
22697 cat >>conftest.$ac_ext <<_ACEOF
22698 /* end confdefs.h.  */
22699 #ifdef HAVE_SYS_TYPES_H
22700 #include <sys/types.h>
22701 #endif
22702 #ifdef HAVE_SYS_SOCKET_H
22703 #include <sys/socket.h>
22704 #endif
22705
22706 int
22707 main ()
22708 {
22709 socklen_t foo
22710   ;
22711   return 0;
22712 }
22713 _ACEOF
22714 rm -f conftest.$ac_objext
22715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22716   (eval $ac_compile) 2>conftest.er1
22717   ac_status=$?
22718   grep -v '^ *+' conftest.er1 >conftest.err
22719   rm -f conftest.er1
22720   cat conftest.err >&5
22721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722   (exit $ac_status); } &&
22723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22725   (eval $ac_try) 2>&5
22726   ac_status=$?
22727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728   (exit $ac_status); }; } &&
22729          { ac_try='test -s conftest.$ac_objext'
22730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22731   (eval $ac_try) 2>&5
22732   ac_status=$?
22733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734   (exit $ac_status); }; }; then
22735   ac_cv_type_socklen_t=yes
22736 else
22737   echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22739
22740 fi
22741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22742
22743
22744 fi
22745 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22746 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22747
22748   if test "$ac_cv_type_socklen_t" != "yes"; then
22749
22750 cat >>confdefs.h <<\_ACEOF
22751 #define socklen_t int
22752 _ACEOF
22753
22754   fi
22755
22756
22757
22758   echo "$as_me:$LINENO: checking for uint8_t" >&5
22759 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22760 if test "${ac_cv_type_uint8_t+set}" = set; then
22761   echo $ECHO_N "(cached) $ECHO_C" >&6
22762 else
22763    ac_cv_type_uint8_t=no
22764       cat >conftest.$ac_ext <<_ACEOF
22765 /* confdefs.h.  */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h.  */
22770 #ifdef HAVE_INTTYPES_H
22771 #include <inttypes.h>
22772 #endif
22773 #ifdef HAVE_STDINT_H
22774 #include <stdint.h>
22775 #endif
22776
22777 int
22778 main ()
22779 {
22780 uint8_t foo
22781   ;
22782   return 0;
22783 }
22784 _ACEOF
22785 rm -f conftest.$ac_objext
22786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22787   (eval $ac_compile) 2>conftest.er1
22788   ac_status=$?
22789   grep -v '^ *+' conftest.er1 >conftest.err
22790   rm -f conftest.er1
22791   cat conftest.err >&5
22792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793   (exit $ac_status); } &&
22794          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796   (eval $ac_try) 2>&5
22797   ac_status=$?
22798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799   (exit $ac_status); }; } &&
22800          { ac_try='test -s conftest.$ac_objext'
22801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802   (eval $ac_try) 2>&5
22803   ac_status=$?
22804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805   (exit $ac_status); }; }; then
22806   ac_cv_type_uint8_t=yes
22807 else
22808   echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22810
22811 fi
22812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22813
22814
22815 fi
22816 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22817 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22818
22819   if test "$ac_cv_type_uint8_t" != "yes"; then
22820
22821 cat >>confdefs.h <<\_ACEOF
22822 #define uint8_t unsigned char
22823 _ACEOF
22824
22825   fi
22826
22827
22828
22829   echo "$as_me:$LINENO: checking for uint16_t" >&5
22830 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22831 if test "${ac_cv_type_uint16_t+set}" = set; then
22832   echo $ECHO_N "(cached) $ECHO_C" >&6
22833 else
22834    ac_cv_type_uint16_t=no
22835       cat >conftest.$ac_ext <<_ACEOF
22836 /* confdefs.h.  */
22837 _ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h.  */
22841 #ifdef HAVE_INTTYPES_H
22842 #include <inttypes.h>
22843 #endif
22844 #ifdef HAVE_STDINT_H
22845 #include <stdint.h>
22846 #endif
22847
22848 int
22849 main ()
22850 {
22851 uint16_t foo
22852   ;
22853   return 0;
22854 }
22855 _ACEOF
22856 rm -f conftest.$ac_objext
22857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22858   (eval $ac_compile) 2>conftest.er1
22859   ac_status=$?
22860   grep -v '^ *+' conftest.er1 >conftest.err
22861   rm -f conftest.er1
22862   cat conftest.err >&5
22863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864   (exit $ac_status); } &&
22865          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867   (eval $ac_try) 2>&5
22868   ac_status=$?
22869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870   (exit $ac_status); }; } &&
22871          { ac_try='test -s conftest.$ac_objext'
22872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22873   (eval $ac_try) 2>&5
22874   ac_status=$?
22875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876   (exit $ac_status); }; }; then
22877   ac_cv_type_uint16_t=yes
22878 else
22879   echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22881
22882 fi
22883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22884
22885
22886 fi
22887 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22888 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22889
22890   if test "$ac_cv_type_uint16_t" != "yes"; then
22891
22892 cat >>confdefs.h <<\_ACEOF
22893 #define uint16_t unsigned short
22894 _ACEOF
22895
22896   fi
22897
22898
22899
22900   echo "$as_me:$LINENO: checking for uint32_t" >&5
22901 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22902 if test "${ac_cv_type_uint32_t+set}" = set; then
22903   echo $ECHO_N "(cached) $ECHO_C" >&6
22904 else
22905    ac_cv_type_uint32_t=no
22906       cat >conftest.$ac_ext <<_ACEOF
22907 /* confdefs.h.  */
22908 _ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h.  */
22912 #ifdef HAVE_INTTYPES_H
22913 #include <inttypes.h>
22914 #endif
22915 #ifdef HAVE_STDINT_H
22916 #include <stdint.h>
22917 #endif
22918
22919 int
22920 main ()
22921 {
22922 uint32_t foo
22923   ;
22924   return 0;
22925 }
22926 _ACEOF
22927 rm -f conftest.$ac_objext
22928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22929   (eval $ac_compile) 2>conftest.er1
22930   ac_status=$?
22931   grep -v '^ *+' conftest.er1 >conftest.err
22932   rm -f conftest.er1
22933   cat conftest.err >&5
22934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935   (exit $ac_status); } &&
22936          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938   (eval $ac_try) 2>&5
22939   ac_status=$?
22940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941   (exit $ac_status); }; } &&
22942          { ac_try='test -s conftest.$ac_objext'
22943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944   (eval $ac_try) 2>&5
22945   ac_status=$?
22946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947   (exit $ac_status); }; }; then
22948   ac_cv_type_uint32_t=yes
22949 else
22950   echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22952
22953 fi
22954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22955
22956
22957 fi
22958 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22959 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22960
22961   if test "$ac_cv_type_uint32_t" != "yes"; then
22962
22963 cat >>confdefs.h <<\_ACEOF
22964 #define uint32_t unsigned int
22965 _ACEOF
22966
22967   fi
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993 for ac_func in \
22994         getopt_long \
22995         lockf \
22996         strsignal \
22997         sigaction \
22998         sigprocmask \
22999         pthread_sigmask \
23000         snprintf \
23001         vsnprintf \
23002         setsid \
23003         strncasecmp \
23004         strcasecmp \
23005         localtime_r \
23006         ctime_r \
23007         gmtime_r \
23008         strsep \
23009         inet_aton \
23010         inet_pton \
23011         inet_ntop \
23012         gethostname \
23013         setlinebuf \
23014         setvbuf \
23015         getusershell \
23016         initgroups
23017
23018 do
23019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23020 echo "$as_me:$LINENO: checking for $ac_func" >&5
23021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23022 if eval "test \"\${$as_ac_var+set}\" = set"; then
23023   echo $ECHO_N "(cached) $ECHO_C" >&6
23024 else
23025   cat >conftest.$ac_ext <<_ACEOF
23026 /* confdefs.h.  */
23027 _ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h.  */
23031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23033 #define $ac_func innocuous_$ac_func
23034
23035 /* System header to define __stub macros and hopefully few prototypes,
23036     which can conflict with char $ac_func (); below.
23037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23038     <limits.h> exists even on freestanding compilers.  */
23039
23040 #ifdef __STDC__
23041 # include <limits.h>
23042 #else
23043 # include <assert.h>
23044 #endif
23045
23046 #undef $ac_func
23047
23048 /* Override any gcc2 internal prototype to avoid an error.  */
23049 #ifdef __cplusplus
23050 extern "C"
23051 {
23052 #endif
23053 /* We use char because int might match the return type of a gcc2
23054    builtin and then its argument prototype would still apply.  */
23055 char $ac_func ();
23056 /* The GNU C library defines this for functions which it implements
23057     to always fail with ENOSYS.  Some functions are actually named
23058     something starting with __ and the normal name is an alias.  */
23059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23060 choke me
23061 #else
23062 char (*f) () = $ac_func;
23063 #endif
23064 #ifdef __cplusplus
23065 }
23066 #endif
23067
23068 int
23069 main ()
23070 {
23071 return f != $ac_func;
23072   ;
23073   return 0;
23074 }
23075 _ACEOF
23076 rm -f conftest.$ac_objext conftest$ac_exeext
23077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23078   (eval $ac_link) 2>conftest.er1
23079   ac_status=$?
23080   grep -v '^ *+' conftest.er1 >conftest.err
23081   rm -f conftest.er1
23082   cat conftest.err >&5
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); } &&
23085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087   (eval $ac_try) 2>&5
23088   ac_status=$?
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); }; } &&
23091          { ac_try='test -s conftest$ac_exeext'
23092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23093   (eval $ac_try) 2>&5
23094   ac_status=$?
23095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096   (exit $ac_status); }; }; then
23097   eval "$as_ac_var=yes"
23098 else
23099   echo "$as_me: failed program was:" >&5
23100 sed 's/^/| /' conftest.$ac_ext >&5
23101
23102 eval "$as_ac_var=no"
23103 fi
23104 rm -f conftest.err conftest.$ac_objext \
23105       conftest$ac_exeext conftest.$ac_ext
23106 fi
23107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23109 if test `eval echo '${'$as_ac_var'}'` = yes; then
23110   cat >>confdefs.h <<_ACEOF
23111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23112 _ACEOF
23113
23114 fi
23115 done
23116
23117 for ac_func in \
23118         crypt \
23119         strncasecmp \
23120         strcasecmp \
23121         inet_aton \
23122         gethostname \
23123         setlinebuf \
23124         getusershell \
23125         endusershell
23126
23127 do
23128 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23129 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
23130 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
23131   echo $ECHO_N "(cached) $ECHO_C" >&6
23132 else
23133   cat >conftest.$ac_ext <<_ACEOF
23134 /* confdefs.h.  */
23135 _ACEOF
23136 cat confdefs.h >>conftest.$ac_ext
23137 cat >>conftest.$ac_ext <<_ACEOF
23138 /* end confdefs.h.  */
23139
23140 #include <stdio.h>
23141 #include <string.h>
23142 #ifdef HAVE_UNISTD_H
23143 #include <unistd.h>
23144 #endif
23145 #ifdef HAVE_CRYPT_H
23146 #include <crypt.h>
23147 #endif
23148 #ifdef HAVE_ERRNO_H
23149 #include <errno.h>
23150 #endif
23151 #ifdef HAVE_RESOURCE_H
23152 #include <resource.h>
23153 #endif
23154 #ifdef HAVE_GETOPT_H
23155 #include <getopt.h>
23156 #endif
23157 #ifdef HAVE_MALLOC_H
23158 #include <malloc.h>
23159 #endif
23160 #ifdef HAVE_UTMP_H
23161 #include <utmp.h>
23162 #endif
23163 #ifdef HAVE_UTMPX_H
23164 #include <utmpx.h>
23165 #endif
23166 #ifdef HAVE_SYS_SELECT_H
23167 #include <sys/select.h>
23168 #endif
23169 #ifdef HAVE_DLFCN_H
23170 #include <dlfcn.h>
23171 #endif
23172 #ifdef HAVE_REGEX_H
23173 #include <regex.h>
23174 #endif
23175 #ifdef HAVE_SYSLOG_H
23176 #include <syslog.h>
23177 #endif
23178 #ifdef HAVE_INTTYPES_H
23179 #include <inttypes.h>
23180 #endif
23181 #ifdef HAVE_STDINT_H
23182 #include <stdint.h>
23183 #endif
23184 #ifdef HAVE_ARPA_INET_H
23185 #include <arpa/inet.h>
23186 #endif
23187
23188 int
23189 main ()
23190 {
23191 char *(*pfn) = (char *(*)) $ac_func
23192   ;
23193   return 0;
23194 }
23195 _ACEOF
23196 rm -f conftest.$ac_objext
23197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23198   (eval $ac_compile) 2>conftest.er1
23199   ac_status=$?
23200   grep -v '^ *+' conftest.er1 >conftest.err
23201   rm -f conftest.er1
23202   cat conftest.err >&5
23203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204   (exit $ac_status); } &&
23205          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207   (eval $ac_try) 2>&5
23208   ac_status=$?
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); }; } &&
23211          { ac_try='test -s conftest.$ac_objext'
23212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213   (eval $ac_try) 2>&5
23214   ac_status=$?
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); }; }; then
23217   eval "radius_cv_decl_needed_$ac_func=no"
23218 else
23219   echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23221
23222 eval "radius_cv_decl_needed_$ac_func=yes"
23223 fi
23224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23225 fi
23226
23227 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23228   echo "$as_me:$LINENO: result: yes" >&5
23229 echo "${ECHO_T}yes" >&6
23230   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23231   cat >>confdefs.h <<_ACEOF
23232 #define $radius_tr_decl 1
23233 _ACEOF
23234
23235 else
23236   echo "$as_me:$LINENO: result: no" >&5
23237 echo "${ECHO_T}no" >&6
23238 fi
23239
23240 done
23241
23242
23243 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23244 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23245 if test "${ac_cv_type_signal+set}" = set; then
23246   echo $ECHO_N "(cached) $ECHO_C" >&6
23247 else
23248   cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h.  */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h.  */
23254 #include <sys/types.h>
23255 #include <signal.h>
23256 #ifdef signal
23257 # undef signal
23258 #endif
23259 #ifdef __cplusplus
23260 extern "C" void (*signal (int, void (*)(int)))(int);
23261 #else
23262 void (*signal ()) ();
23263 #endif
23264
23265 int
23266 main ()
23267 {
23268 int i;
23269   ;
23270   return 0;
23271 }
23272 _ACEOF
23273 rm -f conftest.$ac_objext
23274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23275   (eval $ac_compile) 2>conftest.er1
23276   ac_status=$?
23277   grep -v '^ *+' conftest.er1 >conftest.err
23278   rm -f conftest.er1
23279   cat conftest.err >&5
23280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281   (exit $ac_status); } &&
23282          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284   (eval $ac_try) 2>&5
23285   ac_status=$?
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); }; } &&
23288          { ac_try='test -s conftest.$ac_objext'
23289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290   (eval $ac_try) 2>&5
23291   ac_status=$?
23292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293   (exit $ac_status); }; }; then
23294   ac_cv_type_signal=void
23295 else
23296   echo "$as_me: failed program was:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23298
23299 ac_cv_type_signal=int
23300 fi
23301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23302 fi
23303 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23304 echo "${ECHO_T}$ac_cv_type_signal" >&6
23305
23306 cat >>confdefs.h <<_ACEOF
23307 #define RETSIGTYPE $ac_cv_type_signal
23308 _ACEOF
23309
23310
23311
23312 if test "x$ac_cv_header_utmpx_h" = "xyes"
23313 then
23314
23315   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23316 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
23317
23318
23319   cat >conftest.$ac_ext <<_ACEOF
23320 /* confdefs.h.  */
23321 _ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h.  */
23325
23326 #include <utmpx.h>
23327 #ifndef offsetof
23328 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23329 #endif
23330
23331 int
23332 main ()
23333 {
23334  int foo = offsetof(struct utmpx, ut_xtime)
23335   ;
23336   return 0;
23337 }
23338 _ACEOF
23339 rm -f conftest.$ac_objext
23340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23341   (eval $ac_compile) 2>conftest.er1
23342   ac_status=$?
23343   grep -v '^ *+' conftest.er1 >conftest.err
23344   rm -f conftest.er1
23345   cat conftest.err >&5
23346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347   (exit $ac_status); } &&
23348          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350   (eval $ac_try) 2>&5
23351   ac_status=$?
23352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353   (exit $ac_status); }; } &&
23354          { ac_try='test -s conftest.$ac_objext'
23355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356   (eval $ac_try) 2>&5
23357   ac_status=$?
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); }; }; then
23360   has_element=" "
23361 else
23362   echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23364
23365 has_element=
23366 fi
23367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23368
23369   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23370   if test "x$has_element" != "x"; then
23371     echo "$as_me:$LINENO: result: yes" >&5
23372 echo "${ECHO_T}yes" >&6
23373     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23374   else
23375     echo "$as_me:$LINENO: result: no" >&5
23376 echo "${ECHO_T}no" >&6
23377     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23378  fi
23379
23380  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23381  then
23382
23383 cat >>confdefs.h <<\_ACEOF
23384 #define ut_xtime ut_tv.tv_sec
23385 _ACEOF
23386
23387  fi
23388 fi
23389
23390
23391   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23392 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
23393
23394
23395   cat >conftest.$ac_ext <<_ACEOF
23396 /* confdefs.h.  */
23397 _ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h.  */
23401
23402 #include <netinet/in.h>
23403 #ifndef offsetof
23404 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23405 #endif
23406
23407 int
23408 main ()
23409 {
23410  int foo = offsetof(struct in_pktinfo, ipi_addr)
23411   ;
23412   return 0;
23413 }
23414 _ACEOF
23415 rm -f conftest.$ac_objext
23416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23417   (eval $ac_compile) 2>conftest.er1
23418   ac_status=$?
23419   grep -v '^ *+' conftest.er1 >conftest.err
23420   rm -f conftest.er1
23421   cat conftest.err >&5
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } &&
23424          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426   (eval $ac_try) 2>&5
23427   ac_status=$?
23428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429   (exit $ac_status); }; } &&
23430          { ac_try='test -s conftest.$ac_objext'
23431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23432   (eval $ac_try) 2>&5
23433   ac_status=$?
23434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); }; }; then
23436   has_element=" "
23437 else
23438   echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23440
23441 has_element=
23442 fi
23443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23444
23445   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23446   if test "x$has_element" != "x"; then
23447     echo "$as_me:$LINENO: result: yes" >&5
23448 echo "${ECHO_T}yes" >&6
23449     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23450   else
23451     echo "$as_me:$LINENO: result: no" >&5
23452 echo "${ECHO_T}no" >&6
23453     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23454  fi
23455
23456 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23457 then
23458
23459 cat >>confdefs.h <<\_ACEOF
23460 #define HAVE_IP_PKTINFO
23461 _ACEOF
23462
23463 fi
23464
23465
23466 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23467 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23468 if test "${ac_cv_c_const+set}" = set; then
23469   echo $ECHO_N "(cached) $ECHO_C" >&6
23470 else
23471   cat >conftest.$ac_ext <<_ACEOF
23472 /* confdefs.h.  */
23473 _ACEOF
23474 cat confdefs.h >>conftest.$ac_ext
23475 cat >>conftest.$ac_ext <<_ACEOF
23476 /* end confdefs.h.  */
23477
23478 int
23479 main ()
23480 {
23481 /* FIXME: Include the comments suggested by Paul. */
23482 #ifndef __cplusplus
23483   /* Ultrix mips cc rejects this.  */
23484   typedef int charset[2];
23485   const charset x;
23486   /* SunOS 4.1.1 cc rejects this.  */
23487   char const *const *ccp;
23488   char **p;
23489   /* NEC SVR4.0.2 mips cc rejects this.  */
23490   struct point {int x, y;};
23491   static struct point const zero = {0,0};
23492   /* AIX XL C 1.02.0.0 rejects this.
23493      It does not let you subtract one const X* pointer from another in
23494      an arm of an if-expression whose if-part is not a constant
23495      expression */
23496   const char *g = "string";
23497   ccp = &g + (g ? g-g : 0);
23498   /* HPUX 7.0 cc rejects these. */
23499   ++ccp;
23500   p = (char**) ccp;
23501   ccp = (char const *const *) p;
23502   { /* SCO 3.2v4 cc rejects this.  */
23503     char *t;
23504     char const *s = 0 ? (char *) 0 : (char const *) 0;
23505
23506     *t++ = 0;
23507   }
23508   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23509     int x[] = {25, 17};
23510     const int *foo = &x[0];
23511     ++foo;
23512   }
23513   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23514     typedef const int *iptr;
23515     iptr p = 0;
23516     ++p;
23517   }
23518   { /* AIX XL C 1.02.0.0 rejects this saying
23519        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23520     struct s { int j; const int *ap[3]; };
23521     struct s *b; b->j = 5;
23522   }
23523   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23524     const int foo = 10;
23525   }
23526 #endif
23527
23528   ;
23529   return 0;
23530 }
23531 _ACEOF
23532 rm -f conftest.$ac_objext
23533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23534   (eval $ac_compile) 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); } &&
23541          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23543   (eval $ac_try) 2>&5
23544   ac_status=$?
23545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546   (exit $ac_status); }; } &&
23547          { ac_try='test -s conftest.$ac_objext'
23548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23549   (eval $ac_try) 2>&5
23550   ac_status=$?
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); }; }; then
23553   ac_cv_c_const=yes
23554 else
23555   echo "$as_me: failed program was:" >&5
23556 sed 's/^/| /' conftest.$ac_ext >&5
23557
23558 ac_cv_c_const=no
23559 fi
23560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23561 fi
23562 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23563 echo "${ECHO_T}$ac_cv_c_const" >&6
23564 if test $ac_cv_c_const = no; then
23565
23566 cat >>confdefs.h <<\_ACEOF
23567 #define const
23568 _ACEOF
23569
23570 fi
23571
23572
23573 echo "$as_me:$LINENO: checking type of OS" >&5
23574 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
23575 OS=`uname -s`
23576 echo "$as_me:$LINENO: result: $OS" >&5
23577 echo "${ECHO_T}$OS" >&6
23578 if test "$OS" = "OS/2"; then
23579         LIBPREFIX=
23580 else
23581         LIBPREFIX=lib
23582 fi
23583
23584
23585 if test "x$GCC" = "xyes"; then
23586     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23587 fi
23588
23589 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23590 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
23591 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23592   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23593   CFLAGS="$CFLAGS $devflags"
23594   INSTALLSTRIP=""
23595   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
23596 echo "${ECHO_T}yes.  Using $devflags" >&6
23597 else
23598   devflags=""
23599   CFLAGS="$CFLAGS -DNDEBUG"
23600   INSTALLSTRIP="-s"
23601   echo "$as_me:$LINENO: result: no." >&5
23602 echo "${ECHO_T}no." >&6
23603 fi
23604
23605
23606 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23607 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
23608 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23609   echo $ECHO_N "(cached) $ECHO_C" >&6
23610 else
23611   ac_check_lib_save_LIBS=$LIBS
23612 LIBS="-lcrypt  $LIBS"
23613 cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h.  */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h.  */
23619
23620 /* Override any gcc2 internal prototype to avoid an error.  */
23621 #ifdef __cplusplus
23622 extern "C"
23623 #endif
23624 /* We use char because int might match the return type of a gcc2
23625    builtin and then its argument prototype would still apply.  */
23626 char crypt ();
23627 int
23628 main ()
23629 {
23630 crypt ();
23631   ;
23632   return 0;
23633 }
23634 _ACEOF
23635 rm -f conftest.$ac_objext conftest$ac_exeext
23636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23637   (eval $ac_link) 2>conftest.er1
23638   ac_status=$?
23639   grep -v '^ *+' conftest.er1 >conftest.err
23640   rm -f conftest.er1
23641   cat conftest.err >&5
23642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643   (exit $ac_status); } &&
23644          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646   (eval $ac_try) 2>&5
23647   ac_status=$?
23648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); }; } &&
23650          { ac_try='test -s conftest$ac_exeext'
23651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652   (eval $ac_try) 2>&5
23653   ac_status=$?
23654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655   (exit $ac_status); }; }; then
23656   ac_cv_lib_crypt_crypt=yes
23657 else
23658   echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23660
23661 ac_cv_lib_crypt_crypt=no
23662 fi
23663 rm -f conftest.err conftest.$ac_objext \
23664       conftest$ac_exeext conftest.$ac_ext
23665 LIBS=$ac_check_lib_save_LIBS
23666 fi
23667 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23668 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
23669 if test $ac_cv_lib_crypt_crypt = yes; then
23670   CRYPTLIB="-lcrypt"
23671
23672 fi
23673
23674 if test "$CRYPTLIB" != ""; then
23675
23676 cat >>confdefs.h <<\_ACEOF
23677 #define HAVE_CRYPT
23678 _ACEOF
23679
23680 else
23681   echo "$as_me:$LINENO: checking for crypt" >&5
23682 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
23683 if test "${ac_cv_func_crypt+set}" = set; then
23684   echo $ECHO_N "(cached) $ECHO_C" >&6
23685 else
23686   cat >conftest.$ac_ext <<_ACEOF
23687 /* confdefs.h.  */
23688 _ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h.  */
23692 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23694 #define crypt innocuous_crypt
23695
23696 /* System header to define __stub macros and hopefully few prototypes,
23697     which can conflict with char crypt (); below.
23698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23699     <limits.h> exists even on freestanding compilers.  */
23700
23701 #ifdef __STDC__
23702 # include <limits.h>
23703 #else
23704 # include <assert.h>
23705 #endif
23706
23707 #undef crypt
23708
23709 /* Override any gcc2 internal prototype to avoid an error.  */
23710 #ifdef __cplusplus
23711 extern "C"
23712 {
23713 #endif
23714 /* We use char because int might match the return type of a gcc2
23715    builtin and then its argument prototype would still apply.  */
23716 char crypt ();
23717 /* The GNU C library defines this for functions which it implements
23718     to always fail with ENOSYS.  Some functions are actually named
23719     something starting with __ and the normal name is an alias.  */
23720 #if defined (__stub_crypt) || defined (__stub___crypt)
23721 choke me
23722 #else
23723 char (*f) () = crypt;
23724 #endif
23725 #ifdef __cplusplus
23726 }
23727 #endif
23728
23729 int
23730 main ()
23731 {
23732 return f != crypt;
23733   ;
23734   return 0;
23735 }
23736 _ACEOF
23737 rm -f conftest.$ac_objext conftest$ac_exeext
23738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23739   (eval $ac_link) 2>conftest.er1
23740   ac_status=$?
23741   grep -v '^ *+' conftest.er1 >conftest.err
23742   rm -f conftest.er1
23743   cat conftest.err >&5
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); } &&
23746          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748   (eval $ac_try) 2>&5
23749   ac_status=$?
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); }; } &&
23752          { ac_try='test -s conftest$ac_exeext'
23753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754   (eval $ac_try) 2>&5
23755   ac_status=$?
23756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757   (exit $ac_status); }; }; then
23758   ac_cv_func_crypt=yes
23759 else
23760   echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23762
23763 ac_cv_func_crypt=no
23764 fi
23765 rm -f conftest.err conftest.$ac_objext \
23766       conftest$ac_exeext conftest.$ac_ext
23767 fi
23768 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23769 echo "${ECHO_T}$ac_cv_func_crypt" >&6
23770 if test $ac_cv_func_crypt = yes; then
23771
23772 cat >>confdefs.h <<\_ACEOF
23773 #define HAVE_CRYPT
23774 _ACEOF
23775
23776 fi
23777
23778 fi
23779
23780 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23781 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
23782 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23783   echo $ECHO_N "(cached) $ECHO_C" >&6
23784 else
23785   ac_check_lib_save_LIBS=$LIBS
23786 LIBS="-lcipher  $LIBS"
23787 cat >conftest.$ac_ext <<_ACEOF
23788 /* confdefs.h.  */
23789 _ACEOF
23790 cat confdefs.h >>conftest.$ac_ext
23791 cat >>conftest.$ac_ext <<_ACEOF
23792 /* end confdefs.h.  */
23793
23794 /* Override any gcc2 internal prototype to avoid an error.  */
23795 #ifdef __cplusplus
23796 extern "C"
23797 #endif
23798 /* We use char because int might match the return type of a gcc2
23799    builtin and then its argument prototype would still apply.  */
23800 char setkey ();
23801 int
23802 main ()
23803 {
23804 setkey ();
23805   ;
23806   return 0;
23807 }
23808 _ACEOF
23809 rm -f conftest.$ac_objext conftest$ac_exeext
23810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23811   (eval $ac_link) 2>conftest.er1
23812   ac_status=$?
23813   grep -v '^ *+' conftest.er1 >conftest.err
23814   rm -f conftest.er1
23815   cat conftest.err >&5
23816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817   (exit $ac_status); } &&
23818          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23820   (eval $ac_try) 2>&5
23821   ac_status=$?
23822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823   (exit $ac_status); }; } &&
23824          { ac_try='test -s conftest$ac_exeext'
23825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23826   (eval $ac_try) 2>&5
23827   ac_status=$?
23828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829   (exit $ac_status); }; }; then
23830   ac_cv_lib_cipher_setkey=yes
23831 else
23832   echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23834
23835 ac_cv_lib_cipher_setkey=no
23836 fi
23837 rm -f conftest.err conftest.$ac_objext \
23838       conftest$ac_exeext conftest.$ac_ext
23839 LIBS=$ac_check_lib_save_LIBS
23840 fi
23841 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23842 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
23843 if test $ac_cv_lib_cipher_setkey = yes; then
23844   CRYPTLIB="${CRYPTLIB} -lcipher"
23845
23846 fi
23847
23848
23849
23850 if test "x$WITH_SNMP" = "xyes"; then
23851
23852
23853
23854
23855 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23856 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
23857
23858 cat >conftest.$ac_ext <<_ACEOF
23859 /* confdefs.h.  */
23860 _ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h.  */
23864
23865 #ifdef HAVE_SYS_TYPES_H
23866 #include <sys/types.h>
23867 #endif
23868 #ifdef HAVE_STDINT_H
23869 #include <stdint.h>
23870 #endif
23871 #ifdef HAVE_STDIO_H
23872 #include <stdio.h>
23873 #endif
23874 #ifdef HAVE_NETDB_H
23875 #include <netdb.h>
23876 #endif
23877 #ifdef HAVE_UNISTD_H
23878 #include <unistd.h>
23879 #endif
23880 #include <ucd-snmp/ucd-snmp-config.h>
23881 #include <ucd-snmp/asn1.h>
23882 #include <ucd-snmp/snmp.h>
23883 #include <ucd-snmp/snmp_impl.h>
23884 int
23885 main ()
23886 {
23887  int a = 1;
23888   ;
23889   return 0;
23890 }
23891 _ACEOF
23892 rm -f conftest.$ac_objext
23893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23894   (eval $ac_compile) 2>conftest.er1
23895   ac_status=$?
23896   grep -v '^ *+' conftest.er1 >conftest.err
23897   rm -f conftest.er1
23898   cat conftest.err >&5
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); } &&
23901          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23903   (eval $ac_try) 2>&5
23904   ac_status=$?
23905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906   (exit $ac_status); }; } &&
23907          { ac_try='test -s conftest.$ac_objext'
23908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909   (eval $ac_try) 2>&5
23910   ac_status=$?
23911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); }; }; then
23913   SNMP_INCLUDE="";ucdsnmp=yes
23914 else
23915   echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23917
23918 ucdsnmp=
23919 fi
23920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23921
23922 if test "x$ucdsnmp" = "x"; then
23923   old_CFLAGS="$CFLAGS"
23924   for try in /usr/include /usr/local/include $snmp_include_dir; do
23925     CFLAGS="$old_CFLAGS -I$try"
23926     cat >conftest.$ac_ext <<_ACEOF
23927 /* confdefs.h.  */
23928 _ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h.  */
23932
23933 #ifdef HAVE_SYS_TYPES_H
23934 #include <sys/types.h>
23935 #endif
23936 #ifdef HAVE_STDINT_H
23937 #include <stdint.h>
23938 #endif
23939 #ifdef HAVE_STDIO_H
23940 #include <stdio.h>
23941 #endif
23942 #ifdef HAVE_NETDB_H
23943 #include <netdb.h>
23944 #endif
23945 #ifdef HAVE_UNISTD_H
23946 #include <unistd.h>
23947 #endif
23948 #include <ucd-snmp/ucd-snmp-config.h>
23949 #include <ucd-snmp/asn1.h>
23950 #include <ucd-snmp/snmp.h>
23951 #include <ucd-snmp/snmp_impl.h>
23952 int
23953 main ()
23954 {
23955  int a = 1;
23956   ;
23957   return 0;
23958 }
23959 _ACEOF
23960 rm -f conftest.$ac_objext
23961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23962   (eval $ac_compile) 2>conftest.er1
23963   ac_status=$?
23964   grep -v '^ *+' conftest.er1 >conftest.err
23965   rm -f conftest.er1
23966   cat conftest.err >&5
23967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968   (exit $ac_status); } &&
23969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971   (eval $ac_try) 2>&5
23972   ac_status=$?
23973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974   (exit $ac_status); }; } &&
23975          { ac_try='test -s conftest.$ac_objext'
23976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977   (eval $ac_try) 2>&5
23978   ac_status=$?
23979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980   (exit $ac_status); }; }; then
23981   SNMP_INCLUDE="-I$try";ucdsnmp=yes
23982 else
23983   echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986 ucdsnmp=
23987 fi
23988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23989     if test "x$ucdsnmp" != "x"; then
23990       break;
23991     fi
23992   done
23993   CFLAGS="$old_CFLAGS"
23994 fi
23995
23996 if test "x$ucdsnmp" = "x"; then
23997   old_CFLAGS="$CFLAGS"
23998   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23999     CFLAGS="$old_CFLAGS -I$try"
24000 cat >conftest.$ac_ext <<_ACEOF
24001 /* confdefs.h.  */
24002 _ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h.  */
24006
24007 #ifdef HAVE_SYS_TYPES_H
24008 #include <sys/types.h>
24009 #endif
24010 #ifdef HAVE_STDINT_H
24011 #include <stdint.h>
24012 #endif
24013 #ifdef HAVE_STDIO_H
24014 #include <stdio.h>
24015 #endif
24016 #ifdef HAVE_NETDB_H
24017 #include <netdb.h>
24018 #endif
24019 #ifdef HAVE_UNISTD_H
24020 #include <unistd.h>
24021 #endif
24022 #include <asn1.h>
24023 #include <snmp.h>
24024 #include <snmp_impl.h>
24025 int
24026 main ()
24027 {
24028  int a = 1;
24029   ;
24030   return 0;
24031 }
24032 _ACEOF
24033 rm -f conftest.$ac_objext
24034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24035   (eval $ac_compile) 2>conftest.er1
24036   ac_status=$?
24037   grep -v '^ *+' conftest.er1 >conftest.err
24038   rm -f conftest.er1
24039   cat conftest.err >&5
24040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); } &&
24042          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24044   (eval $ac_try) 2>&5
24045   ac_status=$?
24046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047   (exit $ac_status); }; } &&
24048          { ac_try='test -s conftest.$ac_objext'
24049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050   (eval $ac_try) 2>&5
24051   ac_status=$?
24052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); }; }; then
24054   SNMP_INCLUDE="";ucdsnmp=no
24055 else
24056   echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24058
24059 ucdsnmp=
24060 fi
24061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24062     if test "x$ucdsnmp" != "x"; then
24063       break;
24064     fi
24065   done
24066   CFLAGS="$old_CFLAGS"
24067 fi
24068
24069 if test "x$ucdsnmp" = "x"; then
24070   old_CFLAGS="$CFLAGS"
24071   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24072     CFLAGS="$old_CFLAGS -I$try"
24073     cat >conftest.$ac_ext <<_ACEOF
24074 /* confdefs.h.  */
24075 _ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h.  */
24079
24080 #ifdef HAVE_SYS_TYPES_H
24081 #include <sys/types.h>
24082 #endif
24083 #ifdef HAVE_STDINT_H
24084 #include <stdint.h>
24085 #endif
24086 #ifdef HAVE_STDIO_H
24087 #include <stdio.h>
24088 #endif
24089 #ifdef HAVE_NETDB_H
24090 #include <netdb.h>
24091 #endif
24092 #ifdef HAVE_UNISTD_H
24093 #include <unistd.h>
24094 #endif
24095 #include <asn1.h>
24096 #include <snmp.h>
24097 #include <snmp_impl.h>
24098 int
24099 main ()
24100 {
24101  int a = 1;
24102   ;
24103   return 0;
24104 }
24105 _ACEOF
24106 rm -f conftest.$ac_objext
24107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24108   (eval $ac_compile) 2>conftest.er1
24109   ac_status=$?
24110   grep -v '^ *+' conftest.er1 >conftest.err
24111   rm -f conftest.er1
24112   cat conftest.err >&5
24113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114   (exit $ac_status); } &&
24115          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24117   (eval $ac_try) 2>&5
24118   ac_status=$?
24119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120   (exit $ac_status); }; } &&
24121          { ac_try='test -s conftest.$ac_objext'
24122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24123   (eval $ac_try) 2>&5
24124   ac_status=$?
24125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126   (exit $ac_status); }; }; then
24127   SNMP_INCLUDE="-I$try";ucdsnmp=no
24128 else
24129   echo "$as_me: failed program was:" >&5
24130 sed 's/^/| /' conftest.$ac_ext >&5
24131
24132 ucdsnmp=
24133 fi
24134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24135     if test "x$ucdsnmp" != "x"; then
24136       break;
24137     fi
24138   done
24139   CFLAGS="$old_CFLAGS"
24140 fi
24141
24142 if test "x$ucdsnmp" = "x"; then
24143   echo "$as_me:$LINENO: result: no" >&5
24144 echo "${ECHO_T}no" >&6
24145 else
24146   if test "x$ucdsnmp" = "xyes"; then
24147     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24148 echo "${ECHO_T}(ucd-snmp)yes" >&6
24149
24150 cat >>confdefs.h <<\_ACEOF
24151 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24152 _ACEOF
24153
24154   else
24155     echo "$as_me:$LINENO: result: yes" >&5
24156 echo "${ECHO_T}yes" >&6
24157
24158 cat >>confdefs.h <<\_ACEOF
24159 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24160 _ACEOF
24161
24162   fi
24163   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24164 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
24165
24166   old_LIBS="$LIBS"
24167   LIBS="$old_LIBS -lsnmp"
24168   cat >conftest.$ac_ext <<_ACEOF
24169 /* confdefs.h.  */
24170 _ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h.  */
24174 extern char snmp_build_var_op();
24175 int
24176 main ()
24177 {
24178  snmp_build_var_op()
24179   ;
24180   return 0;
24181 }
24182 _ACEOF
24183 rm -f conftest.$ac_objext conftest$ac_exeext
24184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24185   (eval $ac_link) 2>conftest.er1
24186   ac_status=$?
24187   grep -v '^ *+' conftest.er1 >conftest.err
24188   rm -f conftest.er1
24189   cat conftest.err >&5
24190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191   (exit $ac_status); } &&
24192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194   (eval $ac_try) 2>&5
24195   ac_status=$?
24196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197   (exit $ac_status); }; } &&
24198          { ac_try='test -s conftest$ac_exeext'
24199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24200   (eval $ac_try) 2>&5
24201   ac_status=$?
24202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203   (exit $ac_status); }; }; then
24204   SNMP_LIBS="-lsnmp"
24205 else
24206   echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24208
24209 SNMP_LIBS=
24210 fi
24211 rm -f conftest.err conftest.$ac_objext \
24212       conftest$ac_exeext conftest.$ac_ext
24213
24214   if test "x$SNMP_LIBS" = "x"; then
24215     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
24216       LIBS="$old_LIBS -L$try -lsnmp"
24217       cat >conftest.$ac_ext <<_ACEOF
24218 /* confdefs.h.  */
24219 _ACEOF
24220 cat confdefs.h >>conftest.$ac_ext
24221 cat >>conftest.$ac_ext <<_ACEOF
24222 /* end confdefs.h.  */
24223 extern char snmp_build_var_op();
24224 int
24225 main ()
24226 {
24227  snmp_build_var_op()
24228   ;
24229   return 0;
24230 }
24231 _ACEOF
24232 rm -f conftest.$ac_objext conftest$ac_exeext
24233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24234   (eval $ac_link) 2>conftest.er1
24235   ac_status=$?
24236   grep -v '^ *+' conftest.er1 >conftest.err
24237   rm -f conftest.er1
24238   cat conftest.err >&5
24239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240   (exit $ac_status); } &&
24241          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243   (eval $ac_try) 2>&5
24244   ac_status=$?
24245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246   (exit $ac_status); }; } &&
24247          { ac_try='test -s conftest$ac_exeext'
24248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249   (eval $ac_try) 2>&5
24250   ac_status=$?
24251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252   (exit $ac_status); }; }; then
24253   SNMP_LIBS="-L$try -lsnmp"
24254 else
24255   echo "$as_me: failed program was:" >&5
24256 sed 's/^/| /' conftest.$ac_ext >&5
24257
24258 SNMP_LIBS=
24259 fi
24260 rm -f conftest.err conftest.$ac_objext \
24261       conftest$ac_exeext conftest.$ac_ext
24262       if test "x$SNMP_LIBS" != "x"; then
24263         break;
24264       fi
24265       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24266       cat >conftest.$ac_ext <<_ACEOF
24267 /* confdefs.h.  */
24268 _ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h.  */
24272 extern char snmp_build_var_op();
24273 int
24274 main ()
24275 {
24276  snmp_build_var_op()
24277   ;
24278   return 0;
24279 }
24280 _ACEOF
24281 rm -f conftest.$ac_objext conftest$ac_exeext
24282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24283   (eval $ac_link) 2>conftest.er1
24284   ac_status=$?
24285   grep -v '^ *+' conftest.er1 >conftest.err
24286   rm -f conftest.er1
24287   cat conftest.err >&5
24288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289   (exit $ac_status); } &&
24290          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24292   (eval $ac_try) 2>&5
24293   ac_status=$?
24294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295   (exit $ac_status); }; } &&
24296          { ac_try='test -s conftest$ac_exeext'
24297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24298   (eval $ac_try) 2>&5
24299   ac_status=$?
24300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301   (exit $ac_status); }; }; then
24302   SNMP_LIBS="-L$try -lsnmp -lcrypto"
24303 else
24304   echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24306
24307 SNMP_LIBS=
24308 fi
24309 rm -f conftest.err conftest.$ac_objext \
24310       conftest$ac_exeext conftest.$ac_ext
24311       if test "x$SNMP_LIBS" != "x"; then
24312         break;
24313       fi
24314     done
24315   fi
24316   LIBS="$old_LIBS"
24317
24318           CFLAGS="$old_CFLAGS"
24319   if test "x$SNMP_LIBS" = "x"; then
24320     echo "$as_me:$LINENO: result: no" >&5
24321 echo "${ECHO_T}no" >&6
24322     SNMP_INCLUDE=
24323   else
24324     echo "$as_me:$LINENO: result: yes" >&5
24325 echo "${ECHO_T}yes" >&6
24326
24327 cat >>confdefs.h <<\_ACEOF
24328 #define WITH_SNMP
24329 _ACEOF
24330
24331
24332 cat >>confdefs.h <<\_ACEOF
24333 #define HAVE_LIBSNMP
24334 _ACEOF
24335
24336   fi
24337 fi
24338
24339 fi
24340
24341
24342 cat >>confdefs.h <<\_ACEOF
24343 #define GNUSTYLE 1
24344 _ACEOF
24345
24346
24347 cat >>confdefs.h <<\_ACEOF
24348 #define SYSVSTYLE 2
24349 _ACEOF
24350
24351
24352 cat >>confdefs.h <<\_ACEOF
24353 #define BSDSTYLE 3
24354 _ACEOF
24355
24356 gethostbyaddrrstyle=""
24357 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24358 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
24359 case "$host" in
24360 *-freebsd*)
24361
24362 cat >>confdefs.h <<\_ACEOF
24363 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24364 _ACEOF
24365
24366         gethostbyaddrrstyle=BSD
24367         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24368 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24369         ;;
24370 esac
24371 if test "x$gethostbyaddrrstyle" = "x"; then
24372         cat >conftest.$ac_ext <<_ACEOF
24373 /* confdefs.h.  */
24374 _ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h.  */
24378
24379 #include <stdio.h>
24380 #include <netdb.h>
24381
24382 int
24383 main ()
24384 {
24385  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24386   ;
24387   return 0;
24388 }
24389 _ACEOF
24390 rm -f conftest.$ac_objext conftest$ac_exeext
24391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24392   (eval $ac_link) 2>conftest.er1
24393   ac_status=$?
24394   grep -v '^ *+' conftest.er1 >conftest.err
24395   rm -f conftest.er1
24396   cat conftest.err >&5
24397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398   (exit $ac_status); } &&
24399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401   (eval $ac_try) 2>&5
24402   ac_status=$?
24403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404   (exit $ac_status); }; } &&
24405          { ac_try='test -s conftest$ac_exeext'
24406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24407   (eval $ac_try) 2>&5
24408   ac_status=$?
24409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410   (exit $ac_status); }; }; then
24411
24412
24413 cat >>confdefs.h <<\_ACEOF
24414 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24415 _ACEOF
24416
24417         gethostbyaddrrstyle=GNU
24418
24419 else
24420   echo "$as_me: failed program was:" >&5
24421 sed 's/^/| /' conftest.$ac_ext >&5
24422
24423 fi
24424 rm -f conftest.err conftest.$ac_objext \
24425       conftest$ac_exeext conftest.$ac_ext
24426 fi
24427 if test "x$gethostbyaddrrstyle" = "x"; then
24428         cat >conftest.$ac_ext <<_ACEOF
24429 /* confdefs.h.  */
24430 _ACEOF
24431 cat confdefs.h >>conftest.$ac_ext
24432 cat >>conftest.$ac_ext <<_ACEOF
24433 /* end confdefs.h.  */
24434
24435 #include <stdio.h>
24436 #include <netdb.h>
24437
24438 int
24439 main ()
24440 {
24441  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24442   ;
24443   return 0;
24444 }
24445 _ACEOF
24446 rm -f conftest.$ac_objext conftest$ac_exeext
24447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24448   (eval $ac_link) 2>conftest.er1
24449   ac_status=$?
24450   grep -v '^ *+' conftest.er1 >conftest.err
24451   rm -f conftest.er1
24452   cat conftest.err >&5
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); } &&
24455          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457   (eval $ac_try) 2>&5
24458   ac_status=$?
24459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460   (exit $ac_status); }; } &&
24461          { ac_try='test -s conftest$ac_exeext'
24462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463   (eval $ac_try) 2>&5
24464   ac_status=$?
24465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466   (exit $ac_status); }; }; then
24467
24468
24469 cat >>confdefs.h <<\_ACEOF
24470 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24471 _ACEOF
24472
24473                 gethostbyaddrrstyle=SYSV
24474
24475 else
24476   echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24478
24479 fi
24480 rm -f conftest.err conftest.$ac_objext \
24481       conftest$ac_exeext conftest.$ac_ext
24482 fi
24483 if test "x$gethostbyaddrrstyle" = "x"; then
24484         cat >conftest.$ac_ext <<_ACEOF
24485 /* confdefs.h.  */
24486 _ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h.  */
24490
24491 #include <stdio.h>
24492 #include <netdb.h>
24493
24494 int
24495 main ()
24496 {
24497  gethostbyaddr(NULL, 0, 0)
24498   ;
24499   return 0;
24500 }
24501 _ACEOF
24502 rm -f conftest.$ac_objext conftest$ac_exeext
24503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24504   (eval $ac_link) 2>conftest.er1
24505   ac_status=$?
24506   grep -v '^ *+' conftest.er1 >conftest.err
24507   rm -f conftest.er1
24508   cat conftest.err >&5
24509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510   (exit $ac_status); } &&
24511          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24513   (eval $ac_try) 2>&5
24514   ac_status=$?
24515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516   (exit $ac_status); }; } &&
24517          { ac_try='test -s conftest$ac_exeext'
24518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519   (eval $ac_try) 2>&5
24520   ac_status=$?
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); }; }; then
24523
24524
24525 cat >>confdefs.h <<\_ACEOF
24526 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24527 _ACEOF
24528
24529                 gethostbyaddrrstyle=BSD
24530
24531 else
24532   echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24534
24535 fi
24536 rm -f conftest.err conftest.$ac_objext \
24537       conftest$ac_exeext conftest.$ac_ext
24538 fi
24539
24540 if test "x$gethostbyaddrrstyle" = "x"; then
24541         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24542 echo "${ECHO_T}none!  It must not exist, here." >&6
24543 else
24544         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24545 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
24546 fi
24547
24548 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24549         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24550 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24551 fi
24552
24553 gethostbynamerstyle=""
24554 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24555 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
24556 cat >conftest.$ac_ext <<_ACEOF
24557 /* confdefs.h.  */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h.  */
24562
24563 #include <stdio.h>
24564 #include <netdb.h>
24565
24566 int
24567 main ()
24568 {
24569  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24570   ;
24571   return 0;
24572 }
24573 _ACEOF
24574 rm -f conftest.$ac_objext conftest$ac_exeext
24575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24576   (eval $ac_link) 2>conftest.er1
24577   ac_status=$?
24578   grep -v '^ *+' conftest.er1 >conftest.err
24579   rm -f conftest.er1
24580   cat conftest.err >&5
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); } &&
24583          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585   (eval $ac_try) 2>&5
24586   ac_status=$?
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); }; } &&
24589          { ac_try='test -s conftest$ac_exeext'
24590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591   (eval $ac_try) 2>&5
24592   ac_status=$?
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); }; }; then
24595
24596
24597 cat >>confdefs.h <<\_ACEOF
24598 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24599 _ACEOF
24600
24601         gethostbynamerstyle=GNU
24602
24603 else
24604   echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24606
24607 fi
24608 rm -f conftest.err conftest.$ac_objext \
24609       conftest$ac_exeext conftest.$ac_ext
24610 if test "x$gethostbynamerstyle" = "x"; then
24611         cat >conftest.$ac_ext <<_ACEOF
24612 /* confdefs.h.  */
24613 _ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h.  */
24617
24618 #include <stdio.h>
24619 #include <netdb.h>
24620
24621 int
24622 main ()
24623 {
24624  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
24625   ;
24626   return 0;
24627 }
24628 _ACEOF
24629 rm -f conftest.$ac_objext conftest$ac_exeext
24630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24631   (eval $ac_link) 2>conftest.er1
24632   ac_status=$?
24633   grep -v '^ *+' conftest.er1 >conftest.err
24634   rm -f conftest.er1
24635   cat conftest.err >&5
24636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637   (exit $ac_status); } &&
24638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24640   (eval $ac_try) 2>&5
24641   ac_status=$?
24642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643   (exit $ac_status); }; } &&
24644          { ac_try='test -s conftest$ac_exeext'
24645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24646   (eval $ac_try) 2>&5
24647   ac_status=$?
24648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649   (exit $ac_status); }; }; then
24650
24651
24652 cat >>confdefs.h <<\_ACEOF
24653 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
24654 _ACEOF
24655
24656                 gethostbynamerstyle=SYSV
24657
24658 else
24659   echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24661
24662 fi
24663 rm -f conftest.err conftest.$ac_objext \
24664       conftest$ac_exeext conftest.$ac_ext
24665 fi
24666 if test "x$gethostbynamerstyle" = "x"; then
24667         cat >conftest.$ac_ext <<_ACEOF
24668 /* confdefs.h.  */
24669 _ACEOF
24670 cat confdefs.h >>conftest.$ac_ext
24671 cat >>conftest.$ac_ext <<_ACEOF
24672 /* end confdefs.h.  */
24673
24674 #include <stdio.h>
24675 #include <netdb.h>
24676
24677 int
24678 main ()
24679 {
24680  gethostbyname(NULL)
24681   ;
24682   return 0;
24683 }
24684 _ACEOF
24685 rm -f conftest.$ac_objext conftest$ac_exeext
24686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24687   (eval $ac_link) 2>conftest.er1
24688   ac_status=$?
24689   grep -v '^ *+' conftest.er1 >conftest.err
24690   rm -f conftest.er1
24691   cat conftest.err >&5
24692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693   (exit $ac_status); } &&
24694          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24696   (eval $ac_try) 2>&5
24697   ac_status=$?
24698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699   (exit $ac_status); }; } &&
24700          { ac_try='test -s conftest$ac_exeext'
24701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24702   (eval $ac_try) 2>&5
24703   ac_status=$?
24704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705   (exit $ac_status); }; }; then
24706
24707
24708 cat >>confdefs.h <<\_ACEOF
24709 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24710 _ACEOF
24711
24712                 gethostbynamerstyle=BSD
24713
24714 else
24715   echo "$as_me: failed program was:" >&5
24716 sed 's/^/| /' conftest.$ac_ext >&5
24717
24718 fi
24719 rm -f conftest.err conftest.$ac_objext \
24720       conftest$ac_exeext conftest.$ac_ext
24721 fi
24722
24723 if test "x$gethostbynamerstyle" = "x"; then
24724         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24725 echo "${ECHO_T}none!  It must not exist, here." >&6
24726 else
24727         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24728 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
24729 fi
24730
24731 if test "x$gethostbynamerstyle" = "xBSD"; then
24732         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24733 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24734 fi
24735
24736
24737 cat >>confdefs.h <<\_ACEOF
24738 #define POSIXSTYLE 1
24739 _ACEOF
24740
24741
24742 cat >>confdefs.h <<\_ACEOF
24743 #define SOLARISSTYLE 2
24744 _ACEOF
24745
24746 ctimerstyle=""
24747 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24748 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
24749 cat >conftest.$ac_ext <<_ACEOF
24750 /* confdefs.h.  */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h.  */
24755
24756 #include <time.h>
24757
24758 int
24759 main ()
24760 {
24761  ctime_r(NULL, NULL, 0)
24762   ;
24763   return 0;
24764 }
24765 _ACEOF
24766 rm -f conftest.$ac_objext conftest$ac_exeext
24767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24768   (eval $ac_link) 2>conftest.er1
24769   ac_status=$?
24770   grep -v '^ *+' conftest.er1 >conftest.err
24771   rm -f conftest.er1
24772   cat conftest.err >&5
24773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774   (exit $ac_status); } &&
24775          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24777   (eval $ac_try) 2>&5
24778   ac_status=$?
24779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780   (exit $ac_status); }; } &&
24781          { ac_try='test -s conftest$ac_exeext'
24782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24783   (eval $ac_try) 2>&5
24784   ac_status=$?
24785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786   (exit $ac_status); }; }; then
24787
24788
24789 cat >>confdefs.h <<\_ACEOF
24790 #define CTIMERSTYLE SOLARISSTYLE
24791 _ACEOF
24792
24793         ctimerstyle="SOLARIS"
24794
24795 else
24796   echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24798
24799 fi
24800 rm -f conftest.err conftest.$ac_objext \
24801       conftest$ac_exeext conftest.$ac_ext
24802 if test "x$ctimerstyle" = "x"; then
24803         cat >conftest.$ac_ext <<_ACEOF
24804 /* confdefs.h.  */
24805 _ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h.  */
24809
24810 #include <time.h>
24811
24812 int
24813 main ()
24814 {
24815  ctime_r(NULL, NULL)
24816   ;
24817   return 0;
24818 }
24819 _ACEOF
24820 rm -f conftest.$ac_objext conftest$ac_exeext
24821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24822   (eval $ac_link) 2>conftest.er1
24823   ac_status=$?
24824   grep -v '^ *+' conftest.er1 >conftest.err
24825   rm -f conftest.er1
24826   cat conftest.err >&5
24827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828   (exit $ac_status); } &&
24829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24831   (eval $ac_try) 2>&5
24832   ac_status=$?
24833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834   (exit $ac_status); }; } &&
24835          { ac_try='test -s conftest$ac_exeext'
24836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24837   (eval $ac_try) 2>&5
24838   ac_status=$?
24839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840   (exit $ac_status); }; }; then
24841
24842
24843 cat >>confdefs.h <<\_ACEOF
24844 #define CTIMERSTYLE POSIXSTYLE
24845 _ACEOF
24846
24847                 ctimerstyle="POSIX"
24848
24849 else
24850   echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24852
24853 fi
24854 rm -f conftest.err conftest.$ac_objext \
24855       conftest$ac_exeext conftest.$ac_ext
24856 fi
24857
24858 if test "x$ctimerstyle" = "x"; then
24859         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24860 echo "${ECHO_T}none!  It must not exist, here." >&6
24861 else
24862         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24863 echo "${ECHO_T}${ctimerstyle}-style" >&6
24864 fi
24865
24866 HOSTINFO=$host
24867
24868
24869
24870 top_builddir=`pwd`
24871 export top_builddir
24872 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24873 echo "${ECHO_T}top_builddir=$top_builddir" >&6
24874
24875
24876
24877 if test "x$INCLTDL" != "x";then
24878   INCLTDL='-I${top_builddir}/''libltdl'
24879 fi
24880
24881
24882
24883 mysubdirs=
24884 if test "x$EXPERIMENTAL" = "xyes"; then
24885   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24886     mysubdirs=`echo $bar`
24887 else
24888         for bar in `cat src/modules/stable`; do
24889     if test -f src/modules/$bar/configure; then
24890       mysubdirs="$mysubdirs src/modules/$bar"
24891     fi
24892   done
24893 fi
24894
24895 MODULES=
24896 if test "x$EXPERIMENTAL" = "xyes"; then
24897   for foo in `ls -1 src/modules | grep rlm_`; do
24898     MODULES="$MODULES $foo"
24899   done
24900 else
24901             for foo in `cat src/modules/stable`; do
24902     MODULES="$MODULES $foo"
24903    done
24904 fi
24905
24906
24907
24908 subdirs="$subdirs $mysubdirs"
24909
24910
24911
24912
24913           ac_config_commands="$ac_config_commands stamp-h"
24914
24915           ac_config_commands="$ac_config_commands build-radpaths-h"
24916
24917           ac_config_commands="$ac_config_commands main-chmod"
24918
24919           ac_config_commands="$ac_config_commands scripts-chmod"
24920
24921
24922
24923
24924
24925 USE_SHARED_LIBS=$enable_shared
24926
24927 USE_STATIC_LIBS=$enable_static
24928
24929
24930
24931
24932
24933 export CFLAGS LIBS
24934
24935                                                                                                                                             ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
24936 cat >confcache <<\_ACEOF
24937 # This file is a shell script that caches the results of configure
24938 # tests run on this system so they can be shared between configure
24939 # scripts and configure runs, see configure's option --config-cache.
24940 # It is not useful on other systems.  If it contains results you don't
24941 # want to keep, you may remove or edit it.
24942 #
24943 # config.status only pays attention to the cache file if you give it
24944 # the --recheck option to rerun configure.
24945 #
24946 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24947 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24948 # following values.
24949
24950 _ACEOF
24951
24952 # The following way of writing the cache mishandles newlines in values,
24953 # but we know of no workaround that is simple, portable, and efficient.
24954 # So, don't put newlines in cache variables' values.
24955 # Ultrix sh set writes to stderr and can't be redirected directly,
24956 # and sets the high bit in the cache file unless we assign to the vars.
24957 {
24958   (set) 2>&1 |
24959     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24960     *ac_space=\ *)
24961       # `set' does not quote correctly, so add quotes (double-quote
24962       # substitution turns \\\\ into \\, and sed turns \\ into \).
24963       sed -n \
24964         "s/'/'\\\\''/g;
24965           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24966       ;;
24967     *)
24968       # `set' quotes correctly as required by POSIX, so do not add quotes.
24969       sed -n \
24970         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24971       ;;
24972     esac;
24973 } |
24974   sed '
24975      t clear
24976      : clear
24977      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24978      t end
24979      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24980      : end' >>confcache
24981 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24982   if test -w $cache_file; then
24983     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24984     cat confcache >$cache_file
24985   else
24986     echo "not updating unwritable cache $cache_file"
24987   fi
24988 fi
24989 rm -f confcache
24990
24991 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24992 # Let make expand exec_prefix.
24993 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24994
24995 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24996 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24997 # trailing colons and then remove the whole line if VPATH becomes empty
24998 # (actually we leave an empty line to preserve line numbers).
24999 if test "x$srcdir" = x.; then
25000   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25001 s/:*\$(srcdir):*/:/;
25002 s/:*\${srcdir}:*/:/;
25003 s/:*@srcdir@:*/:/;
25004 s/^\([^=]*=[     ]*\):*/\1/;
25005 s/:*$//;
25006 s/^[^=]*=[       ]*$//;
25007 }'
25008 fi
25009
25010 DEFS=-DHAVE_CONFIG_H
25011
25012 ac_libobjs=
25013 ac_ltlibobjs=
25014 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25015   # 1. Remove the extension, and $U if already installed.
25016   ac_i=`echo "$ac_i" |
25017          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25018   # 2. Add them.
25019   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25020   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25021 done
25022 LIBOBJS=$ac_libobjs
25023
25024 LTLIBOBJS=$ac_ltlibobjs
25025
25026
25027
25028 : ${CONFIG_STATUS=./config.status}
25029 ac_clean_files_save=$ac_clean_files
25030 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25031 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25032 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25033 cat >$CONFIG_STATUS <<_ACEOF
25034 #! $SHELL
25035 # Generated by $as_me.
25036 # Run this file to recreate the current configuration.
25037 # Compiler output produced by configure, useful for debugging
25038 # configure, is in config.log if it exists.
25039
25040 debug=false
25041 ac_cs_recheck=false
25042 ac_cs_silent=false
25043 SHELL=\${CONFIG_SHELL-$SHELL}
25044 _ACEOF
25045
25046 cat >>$CONFIG_STATUS <<\_ACEOF
25047 ## --------------------- ##
25048 ## M4sh Initialization.  ##
25049 ## --------------------- ##
25050
25051 # Be Bourne compatible
25052 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25053   emulate sh
25054   NULLCMD=:
25055   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25056   # is contrary to our usage.  Disable this feature.
25057   alias -g '${1+"$@"}'='"$@"'
25058 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25059   set -o posix
25060 fi
25061 DUALCASE=1; export DUALCASE # for MKS sh
25062
25063 # Support unset when possible.
25064 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25065   as_unset=unset
25066 else
25067   as_unset=false
25068 fi
25069
25070
25071 # Work around bugs in pre-3.0 UWIN ksh.
25072 $as_unset ENV MAIL MAILPATH
25073 PS1='$ '
25074 PS2='> '
25075 PS4='+ '
25076
25077 # NLS nuisances.
25078 for as_var in \
25079   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25080   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25081   LC_TELEPHONE LC_TIME
25082 do
25083   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25084     eval $as_var=C; export $as_var
25085   else
25086     $as_unset $as_var
25087   fi
25088 done
25089
25090 # Required to use basename.
25091 if expr a : '\(a\)' >/dev/null 2>&1; then
25092   as_expr=expr
25093 else
25094   as_expr=false
25095 fi
25096
25097 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25098   as_basename=basename
25099 else
25100   as_basename=false
25101 fi
25102
25103
25104 # Name of the executable.
25105 as_me=`$as_basename "$0" ||
25106 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25107          X"$0" : 'X\(//\)$' \| \
25108          X"$0" : 'X\(/\)$' \| \
25109          .     : '\(.\)' 2>/dev/null ||
25110 echo X/"$0" |
25111     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25112           /^X\/\(\/\/\)$/{ s//\1/; q; }
25113           /^X\/\(\/\).*/{ s//\1/; q; }
25114           s/.*/./; q'`
25115
25116
25117 # PATH needs CR, and LINENO needs CR and PATH.
25118 # Avoid depending upon Character Ranges.
25119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25122 as_cr_digits='0123456789'
25123 as_cr_alnum=$as_cr_Letters$as_cr_digits
25124
25125 # The user is always right.
25126 if test "${PATH_SEPARATOR+set}" != set; then
25127   echo "#! /bin/sh" >conf$$.sh
25128   echo  "exit 0"   >>conf$$.sh
25129   chmod +x conf$$.sh
25130   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25131     PATH_SEPARATOR=';'
25132   else
25133     PATH_SEPARATOR=:
25134   fi
25135   rm -f conf$$.sh
25136 fi
25137
25138
25139   as_lineno_1=$LINENO
25140   as_lineno_2=$LINENO
25141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25142   test "x$as_lineno_1" != "x$as_lineno_2" &&
25143   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
25144   # Find who we are.  Look in the path if we contain no path at all
25145   # relative or not.
25146   case $0 in
25147     *[\\/]* ) as_myself=$0 ;;
25148     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25149 for as_dir in $PATH
25150 do
25151   IFS=$as_save_IFS
25152   test -z "$as_dir" && as_dir=.
25153   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25154 done
25155
25156        ;;
25157   esac
25158   # We did not find ourselves, most probably we were run as `sh COMMAND'
25159   # in which case we are not to be found in the path.
25160   if test "x$as_myself" = x; then
25161     as_myself=$0
25162   fi
25163   if test ! -f "$as_myself"; then
25164     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25165 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25166    { (exit 1); exit 1; }; }
25167   fi
25168   case $CONFIG_SHELL in
25169   '')
25170     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25171 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25172 do
25173   IFS=$as_save_IFS
25174   test -z "$as_dir" && as_dir=.
25175   for as_base in sh bash ksh sh5; do
25176          case $as_dir in
25177          /*)
25178            if ("$as_dir/$as_base" -c '
25179   as_lineno_1=$LINENO
25180   as_lineno_2=$LINENO
25181   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25182   test "x$as_lineno_1" != "x$as_lineno_2" &&
25183   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
25184              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25185              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25186              CONFIG_SHELL=$as_dir/$as_base
25187              export CONFIG_SHELL
25188              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25189            fi;;
25190          esac
25191        done
25192 done
25193 ;;
25194   esac
25195
25196   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25197   # uniformly replaced by the line number.  The first 'sed' inserts a
25198   # line-number line before each line; the second 'sed' does the real
25199   # work.  The second script uses 'N' to pair each line-number line
25200   # with the numbered line, and appends trailing '-' during
25201   # substitution so that $LINENO is not a special case at line end.
25202   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25203   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
25204   sed '=' <$as_myself |
25205     sed '
25206       N
25207       s,$,-,
25208       : loop
25209       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25210       t loop
25211       s,-$,,
25212       s,^['$as_cr_digits']*\n,,
25213     ' >$as_me.lineno &&
25214   chmod +x $as_me.lineno ||
25215     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25216 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25217    { (exit 1); exit 1; }; }
25218
25219   # Don't try to exec as it changes $[0], causing all sort of problems
25220   # (the dirname of $[0] is not the place where we might find the
25221   # original and so on.  Autoconf is especially sensible to this).
25222   . ./$as_me.lineno
25223   # Exit status is that of the last command.
25224   exit
25225 }
25226
25227
25228 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25229   *c*,-n*) ECHO_N= ECHO_C='
25230 ' ECHO_T='      ' ;;
25231   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25232   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
25233 esac
25234
25235 if expr a : '\(a\)' >/dev/null 2>&1; then
25236   as_expr=expr
25237 else
25238   as_expr=false
25239 fi
25240
25241 rm -f conf$$ conf$$.exe conf$$.file
25242 echo >conf$$.file
25243 if ln -s conf$$.file conf$$ 2>/dev/null; then
25244   # We could just check for DJGPP; but this test a) works b) is more generic
25245   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25246   if test -f conf$$.exe; then
25247     # Don't use ln at all; we don't have any links
25248     as_ln_s='cp -p'
25249   else
25250     as_ln_s='ln -s'
25251   fi
25252 elif ln conf$$.file conf$$ 2>/dev/null; then
25253   as_ln_s=ln
25254 else
25255   as_ln_s='cp -p'
25256 fi
25257 rm -f conf$$ conf$$.exe conf$$.file
25258
25259 if mkdir -p . 2>/dev/null; then
25260   as_mkdir_p=:
25261 else
25262   test -d ./-p && rmdir ./-p
25263   as_mkdir_p=false
25264 fi
25265
25266 as_executable_p="test -f"
25267
25268 # Sed expression to map a string onto a valid CPP name.
25269 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25270
25271 # Sed expression to map a string onto a valid variable name.
25272 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25273
25274
25275 # IFS
25276 # We need space, tab and new line, in precisely that order.
25277 as_nl='
25278 '
25279 IFS="   $as_nl"
25280
25281 # CDPATH.
25282 $as_unset CDPATH
25283
25284 exec 6>&1
25285
25286 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25287 # report actual input values of CONFIG_FILES etc. instead of their
25288 # values after options handling.  Logging --version etc. is OK.
25289 exec 5>>config.log
25290 {
25291   echo
25292   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25293 ## Running $as_me. ##
25294 _ASBOX
25295 } >&5
25296 cat >&5 <<_CSEOF
25297
25298 This file was extended by $as_me, which was
25299 generated by GNU Autoconf 2.59.  Invocation command line was
25300
25301   CONFIG_FILES    = $CONFIG_FILES
25302   CONFIG_HEADERS  = $CONFIG_HEADERS
25303   CONFIG_LINKS    = $CONFIG_LINKS
25304   CONFIG_COMMANDS = $CONFIG_COMMANDS
25305   $ $0 $@
25306
25307 _CSEOF
25308 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25309 echo >&5
25310 _ACEOF
25311
25312 # Files that config.status was made for.
25313 if test -n "$ac_config_files"; then
25314   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25315 fi
25316
25317 if test -n "$ac_config_headers"; then
25318   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25319 fi
25320
25321 if test -n "$ac_config_links"; then
25322   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25323 fi
25324
25325 if test -n "$ac_config_commands"; then
25326   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25327 fi
25328
25329 cat >>$CONFIG_STATUS <<\_ACEOF
25330
25331 ac_cs_usage="\
25332 \`$as_me' instantiates files from templates according to the
25333 current configuration.
25334
25335 Usage: $0 [OPTIONS] [FILE]...
25336
25337   -h, --help       print this help, then exit
25338   -V, --version    print version number, then exit
25339   -q, --quiet      do not print progress messages
25340   -d, --debug      don't remove temporary files
25341       --recheck    update $as_me by reconfiguring in the same conditions
25342   --file=FILE[:TEMPLATE]
25343                    instantiate the configuration file FILE
25344   --header=FILE[:TEMPLATE]
25345                    instantiate the configuration header FILE
25346
25347 Configuration files:
25348 $config_files
25349
25350 Configuration headers:
25351 $config_headers
25352
25353 Configuration commands:
25354 $config_commands
25355
25356 Report bugs to <bug-autoconf@gnu.org>."
25357 _ACEOF
25358
25359 cat >>$CONFIG_STATUS <<_ACEOF
25360 ac_cs_version="\\
25361 config.status
25362 configured by $0, generated by GNU Autoconf 2.59,
25363   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25364
25365 Copyright (C) 2003 Free Software Foundation, Inc.
25366 This config.status script is free software; the Free Software Foundation
25367 gives unlimited permission to copy, distribute and modify it."
25368 srcdir=$srcdir
25369 _ACEOF
25370
25371 cat >>$CONFIG_STATUS <<\_ACEOF
25372 # If no file are specified by the user, then we need to provide default
25373 # value.  By we need to know if files were specified by the user.
25374 ac_need_defaults=:
25375 while test $# != 0
25376 do
25377   case $1 in
25378   --*=*)
25379     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25380     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25381     ac_shift=:
25382     ;;
25383   -*)
25384     ac_option=$1
25385     ac_optarg=$2
25386     ac_shift=shift
25387     ;;
25388   *) # This is not an option, so the user has probably given explicit
25389      # arguments.
25390      ac_option=$1
25391      ac_need_defaults=false;;
25392   esac
25393
25394   case $ac_option in
25395   # Handling of the options.
25396 _ACEOF
25397 cat >>$CONFIG_STATUS <<\_ACEOF
25398   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25399     ac_cs_recheck=: ;;
25400   --version | --vers* | -V )
25401     echo "$ac_cs_version"; exit 0 ;;
25402   --he | --h)
25403     # Conflict between --help and --header
25404     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25405 Try \`$0 --help' for more information." >&5
25406 echo "$as_me: error: ambiguous option: $1
25407 Try \`$0 --help' for more information." >&2;}
25408    { (exit 1); exit 1; }; };;
25409   --help | --hel | -h )
25410     echo "$ac_cs_usage"; exit 0 ;;
25411   --debug | --d* | -d )
25412     debug=: ;;
25413   --file | --fil | --fi | --f )
25414     $ac_shift
25415     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25416     ac_need_defaults=false;;
25417   --header | --heade | --head | --hea )
25418     $ac_shift
25419     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25420     ac_need_defaults=false;;
25421   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25422   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25423     ac_cs_silent=: ;;
25424
25425   # This is an error.
25426   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25427 Try \`$0 --help' for more information." >&5
25428 echo "$as_me: error: unrecognized option: $1
25429 Try \`$0 --help' for more information." >&2;}
25430    { (exit 1); exit 1; }; } ;;
25431
25432   *) ac_config_targets="$ac_config_targets $1" ;;
25433
25434   esac
25435   shift
25436 done
25437
25438 ac_configure_extra_args=
25439
25440 if $ac_cs_silent; then
25441   exec 6>/dev/null
25442   ac_configure_extra_args="$ac_configure_extra_args --silent"
25443 fi
25444
25445 _ACEOF
25446 cat >>$CONFIG_STATUS <<_ACEOF
25447 if \$ac_cs_recheck; then
25448   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25449   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25450 fi
25451
25452 _ACEOF
25453
25454
25455
25456
25457
25458 cat >>$CONFIG_STATUS <<\_ACEOF
25459 for ac_config_target in $ac_config_targets
25460 do
25461   case "$ac_config_target" in
25462   # Handling of arguments.
25463   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25464   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25465   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25466   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25467   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25468   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25469   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25470   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25471   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25472   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25473   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25474   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25475   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25476   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25477   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25478   "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25479   "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25480   "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25481   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25482   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25483 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25484    { (exit 1); exit 1; }; };;
25485   esac
25486 done
25487
25488 # If the user did not use the arguments to specify the items to instantiate,
25489 # then the envvar interface is used.  Set only those that are not.
25490 # We use the long form for the default assignment because of an extremely
25491 # bizarre bug on SunOS 4.1.3.
25492 if $ac_need_defaults; then
25493   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25494   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25495   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25496 fi
25497
25498 # Have a temporary directory for convenience.  Make it in the build tree
25499 # simply because there is no reason to put it here, and in addition,
25500 # creating and moving files from /tmp can sometimes cause problems.
25501 # Create a temporary directory, and hook for its removal unless debugging.
25502 $debug ||
25503 {
25504   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25505   trap '{ (exit 1); exit 1; }' 1 2 13 15
25506 }
25507
25508 # Create a (secure) tmp directory for tmp files.
25509
25510 {
25511   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25512   test -n "$tmp" && test -d "$tmp"
25513 }  ||
25514 {
25515   tmp=./confstat$$-$RANDOM
25516   (umask 077 && mkdir $tmp)
25517 } ||
25518 {
25519    echo "$me: cannot create a temporary directory in ." >&2
25520    { (exit 1); exit 1; }
25521 }
25522
25523 _ACEOF
25524
25525 cat >>$CONFIG_STATUS <<_ACEOF
25526
25527 #
25528 # CONFIG_FILES section.
25529 #
25530
25531 # No need to generate the scripts if there are no CONFIG_FILES.
25532 # This happens for instance when ./config.status config.h
25533 if test -n "\$CONFIG_FILES"; then
25534   # Protect against being on the right side of a sed subst in config.status.
25535   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25536    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25537 s,@SHELL@,$SHELL,;t t
25538 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25539 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25540 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25541 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25542 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25543 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25544 s,@exec_prefix@,$exec_prefix,;t t
25545 s,@prefix@,$prefix,;t t
25546 s,@program_transform_name@,$program_transform_name,;t t
25547 s,@bindir@,$bindir,;t t
25548 s,@sbindir@,$sbindir,;t t
25549 s,@libexecdir@,$libexecdir,;t t
25550 s,@datadir@,$datadir,;t t
25551 s,@sysconfdir@,$sysconfdir,;t t
25552 s,@sharedstatedir@,$sharedstatedir,;t t
25553 s,@localstatedir@,$localstatedir,;t t
25554 s,@libdir@,$libdir,;t t
25555 s,@includedir@,$includedir,;t t
25556 s,@oldincludedir@,$oldincludedir,;t t
25557 s,@infodir@,$infodir,;t t
25558 s,@mandir@,$mandir,;t t
25559 s,@build_alias@,$build_alias,;t t
25560 s,@host_alias@,$host_alias,;t t
25561 s,@target_alias@,$target_alias,;t t
25562 s,@DEFS@,$DEFS,;t t
25563 s,@ECHO_C@,$ECHO_C,;t t
25564 s,@ECHO_N@,$ECHO_N,;t t
25565 s,@ECHO_T@,$ECHO_T,;t t
25566 s,@LIBS@,$LIBS,;t t
25567 s,@CC@,$CC,;t t
25568 s,@CFLAGS@,$CFLAGS,;t t
25569 s,@LDFLAGS@,$LDFLAGS,;t t
25570 s,@CPPFLAGS@,$CPPFLAGS,;t t
25571 s,@ac_ct_CC@,$ac_ct_CC,;t t
25572 s,@EXEEXT@,$EXEEXT,;t t
25573 s,@OBJEXT@,$OBJEXT,;t t
25574 s,@CPP@,$CPP,;t t
25575 s,@EGREP@,$EGREP,;t t
25576 s,@RANLIB@,$RANLIB,;t t
25577 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25578 s,@abs_top_builddir@,$abs_top_builddir,;t t
25579 s,@GMAKE@,$GMAKE,;t t
25580 s,@MAKE@,$MAKE,;t t
25581 s,@subdirs@,$subdirs,;t t
25582 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
25583 s,@LIBTOOL@,$LIBTOOL,;t t
25584 s,@build@,$build,;t t
25585 s,@build_cpu@,$build_cpu,;t t
25586 s,@build_vendor@,$build_vendor,;t t
25587 s,@build_os@,$build_os,;t t
25588 s,@host@,$host,;t t
25589 s,@host_cpu@,$host_cpu,;t t
25590 s,@host_vendor@,$host_vendor,;t t
25591 s,@host_os@,$host_os,;t t
25592 s,@LN_S@,$LN_S,;t t
25593 s,@ECHO@,$ECHO,;t t
25594 s,@AR@,$AR,;t t
25595 s,@ac_ct_AR@,$ac_ct_AR,;t t
25596 s,@STRIP@,$STRIP,;t t
25597 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25598 s,@CXX@,$CXX,;t t
25599 s,@CXXFLAGS@,$CXXFLAGS,;t t
25600 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25601 s,@CXXCPP@,$CXXCPP,;t t
25602 s,@F77@,$F77,;t t
25603 s,@FFLAGS@,$FFLAGS,;t t
25604 s,@ac_ct_F77@,$ac_ct_F77,;t t
25605 s,@logdir@,$logdir,;t t
25606 s,@radacctdir@,$radacctdir,;t t
25607 s,@raddbdir@,$raddbdir,;t t
25608 s,@PERL@,$PERL,;t t
25609 s,@SNMPGET@,$SNMPGET,;t t
25610 s,@SNMPWALK@,$SNMPWALK,;t t
25611 s,@RUSERS@,$RUSERS,;t t
25612 s,@ACLOCAL@,$ACLOCAL,;t t
25613 s,@AUTOCONF@,$AUTOCONF,;t t
25614 s,@AUTOHEADER@,$AUTOHEADER,;t t
25615 s,@LOCATE@,$LOCATE,;t t
25616 s,@DIRNAME@,$DIRNAME,;t t
25617 s,@GREP@,$GREP,;t t
25618 s,@REGEX@,$REGEX,;t t
25619 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
25620 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
25621 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
25622 s,@LIBPREFIX@,$LIBPREFIX,;t t
25623 s,@CRYPTLIB@,$CRYPTLIB,;t t
25624 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
25625 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
25626 s,@HOSTINFO@,$HOSTINFO,;t t
25627 s,@LIBLTDL@,$LIBLTDL,;t t
25628 s,@INCLTDL@,$INCLTDL,;t t
25629 s,@MODULES@,$MODULES,;t t
25630 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
25631 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
25632 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
25633 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
25634 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
25635 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
25636 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
25637 s,@LIBOBJS@,$LIBOBJS,;t t
25638 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25639 CEOF
25640
25641 _ACEOF
25642
25643   cat >>$CONFIG_STATUS <<\_ACEOF
25644   # Split the substitutions into bite-sized pieces for seds with
25645   # small command number limits, like on Digital OSF/1 and HP-UX.
25646   ac_max_sed_lines=48
25647   ac_sed_frag=1 # Number of current file.
25648   ac_beg=1 # First line for current file.
25649   ac_end=$ac_max_sed_lines # Line after last line for current file.
25650   ac_more_lines=:
25651   ac_sed_cmds=
25652   while $ac_more_lines; do
25653     if test $ac_beg -gt 1; then
25654       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25655     else
25656       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25657     fi
25658     if test ! -s $tmp/subs.frag; then
25659       ac_more_lines=false
25660     else
25661       # The purpose of the label and of the branching condition is to
25662       # speed up the sed processing (if there are no `@' at all, there
25663       # is no need to browse any of the substitutions).
25664       # These are the two extra sed commands mentioned above.
25665       (echo ':t
25666   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25667       if test -z "$ac_sed_cmds"; then
25668         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25669       else
25670         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25671       fi
25672       ac_sed_frag=`expr $ac_sed_frag + 1`
25673       ac_beg=$ac_end
25674       ac_end=`expr $ac_end + $ac_max_sed_lines`
25675     fi
25676   done
25677   if test -z "$ac_sed_cmds"; then
25678     ac_sed_cmds=cat
25679   fi
25680 fi # test -n "$CONFIG_FILES"
25681
25682 _ACEOF
25683 cat >>$CONFIG_STATUS <<\_ACEOF
25684 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25685   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25686   case $ac_file in
25687   - | *:- | *:-:* ) # input from stdin
25688         cat >$tmp/stdin
25689         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25690         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25691   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25692         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25693   * )   ac_file_in=$ac_file.in ;;
25694   esac
25695
25696   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25697   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25698 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25699          X"$ac_file" : 'X\(//\)[^/]' \| \
25700          X"$ac_file" : 'X\(//\)$' \| \
25701          X"$ac_file" : 'X\(/\)' \| \
25702          .     : '\(.\)' 2>/dev/null ||
25703 echo X"$ac_file" |
25704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25705           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25706           /^X\(\/\/\)$/{ s//\1/; q; }
25707           /^X\(\/\).*/{ s//\1/; q; }
25708           s/.*/./; q'`
25709   { if $as_mkdir_p; then
25710     mkdir -p "$ac_dir"
25711   else
25712     as_dir="$ac_dir"
25713     as_dirs=
25714     while test ! -d "$as_dir"; do
25715       as_dirs="$as_dir $as_dirs"
25716       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25717 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25718          X"$as_dir" : 'X\(//\)[^/]' \| \
25719          X"$as_dir" : 'X\(//\)$' \| \
25720          X"$as_dir" : 'X\(/\)' \| \
25721          .     : '\(.\)' 2>/dev/null ||
25722 echo X"$as_dir" |
25723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25724           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25725           /^X\(\/\/\)$/{ s//\1/; q; }
25726           /^X\(\/\).*/{ s//\1/; q; }
25727           s/.*/./; q'`
25728     done
25729     test ! -n "$as_dirs" || mkdir $as_dirs
25730   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25731 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25732    { (exit 1); exit 1; }; }; }
25733
25734   ac_builddir=.
25735
25736 if test "$ac_dir" != .; then
25737   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25738   # A "../" for each directory in $ac_dir_suffix.
25739   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25740 else
25741   ac_dir_suffix= ac_top_builddir=
25742 fi
25743
25744 case $srcdir in
25745   .)  # No --srcdir option.  We are building in place.
25746     ac_srcdir=.
25747     if test -z "$ac_top_builddir"; then
25748        ac_top_srcdir=.
25749     else
25750        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25751     fi ;;
25752   [\\/]* | ?:[\\/]* )  # Absolute path.
25753     ac_srcdir=$srcdir$ac_dir_suffix;
25754     ac_top_srcdir=$srcdir ;;
25755   *) # Relative path.
25756     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25757     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25758 esac
25759
25760 # Do not use `cd foo && pwd` to compute absolute paths, because
25761 # the directories may not exist.
25762 case `pwd` in
25763 .) ac_abs_builddir="$ac_dir";;
25764 *)
25765   case "$ac_dir" in
25766   .) ac_abs_builddir=`pwd`;;
25767   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25768   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25769   esac;;
25770 esac
25771 case $ac_abs_builddir in
25772 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25773 *)
25774   case ${ac_top_builddir}. in
25775   .) ac_abs_top_builddir=$ac_abs_builddir;;
25776   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25777   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25778   esac;;
25779 esac
25780 case $ac_abs_builddir in
25781 .) ac_abs_srcdir=$ac_srcdir;;
25782 *)
25783   case $ac_srcdir in
25784   .) ac_abs_srcdir=$ac_abs_builddir;;
25785   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25786   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25787   esac;;
25788 esac
25789 case $ac_abs_builddir in
25790 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25791 *)
25792   case $ac_top_srcdir in
25793   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25794   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25795   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25796   esac;;
25797 esac
25798
25799
25800
25801   # Let's still pretend it is `configure' which instantiates (i.e., don't
25802   # use $as_me), people would be surprised to read:
25803   #    /* config.h.  Generated by config.status.  */
25804   if test x"$ac_file" = x-; then
25805     configure_input=
25806   else
25807     configure_input="$ac_file.  "
25808   fi
25809   configure_input=$configure_input"Generated from `echo $ac_file_in |
25810                                      sed 's,.*/,,'` by configure."
25811
25812   # First look for the input files in the build tree, otherwise in the
25813   # src tree.
25814   ac_file_inputs=`IFS=:
25815     for f in $ac_file_in; do
25816       case $f in
25817       -) echo $tmp/stdin ;;
25818       [\\/$]*)
25819          # Absolute (can't be DOS-style, as IFS=:)
25820          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25821 echo "$as_me: error: cannot find input file: $f" >&2;}
25822    { (exit 1); exit 1; }; }
25823          echo "$f";;
25824       *) # Relative
25825          if test -f "$f"; then
25826            # Build tree
25827            echo "$f"
25828          elif test -f "$srcdir/$f"; then
25829            # Source tree
25830            echo "$srcdir/$f"
25831          else
25832            # /dev/null tree
25833            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25834 echo "$as_me: error: cannot find input file: $f" >&2;}
25835    { (exit 1); exit 1; }; }
25836          fi;;
25837       esac
25838     done` || { (exit 1); exit 1; }
25839
25840   if test x"$ac_file" != x-; then
25841     { echo "$as_me:$LINENO: creating $ac_file" >&5
25842 echo "$as_me: creating $ac_file" >&6;}
25843     rm -f "$ac_file"
25844   fi
25845 _ACEOF
25846 cat >>$CONFIG_STATUS <<_ACEOF
25847   sed "$ac_vpsub
25848 $extrasub
25849 _ACEOF
25850 cat >>$CONFIG_STATUS <<\_ACEOF
25851 :t
25852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25853 s,@configure_input@,$configure_input,;t t
25854 s,@srcdir@,$ac_srcdir,;t t
25855 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25856 s,@top_srcdir@,$ac_top_srcdir,;t t
25857 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25858 s,@builddir@,$ac_builddir,;t t
25859 s,@abs_builddir@,$ac_abs_builddir,;t t
25860 s,@top_builddir@,$ac_top_builddir,;t t
25861 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25862 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25863   rm -f $tmp/stdin
25864   if test x"$ac_file" != x-; then
25865     mv $tmp/out $ac_file
25866   else
25867     cat $tmp/out
25868     rm -f $tmp/out
25869   fi
25870
25871 done
25872 _ACEOF
25873 cat >>$CONFIG_STATUS <<\_ACEOF
25874
25875 #
25876 # CONFIG_HEADER section.
25877 #
25878
25879 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25880 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25881 #
25882 # ac_d sets the value in "#define NAME VALUE" lines.
25883 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25884 ac_dB='[         ].*$,\1#\2'
25885 ac_dC=' '
25886 ac_dD=',;t'
25887 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25888 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25889 ac_uB='$,\1#\2define\3'
25890 ac_uC=' '
25891 ac_uD=',;t'
25892
25893 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25894   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25895   case $ac_file in
25896   - | *:- | *:-:* ) # input from stdin
25897         cat >$tmp/stdin
25898         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25899         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25900   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25901         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25902   * )   ac_file_in=$ac_file.in ;;
25903   esac
25904
25905   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25906 echo "$as_me: creating $ac_file" >&6;}
25907
25908   # First look for the input files in the build tree, otherwise in the
25909   # src tree.
25910   ac_file_inputs=`IFS=:
25911     for f in $ac_file_in; do
25912       case $f in
25913       -) echo $tmp/stdin ;;
25914       [\\/$]*)
25915          # Absolute (can't be DOS-style, as IFS=:)
25916          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25917 echo "$as_me: error: cannot find input file: $f" >&2;}
25918    { (exit 1); exit 1; }; }
25919          # Do quote $f, to prevent DOS paths from being IFS'd.
25920          echo "$f";;
25921       *) # Relative
25922          if test -f "$f"; then
25923            # Build tree
25924            echo "$f"
25925          elif test -f "$srcdir/$f"; then
25926            # Source tree
25927            echo "$srcdir/$f"
25928          else
25929            # /dev/null tree
25930            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25931 echo "$as_me: error: cannot find input file: $f" >&2;}
25932    { (exit 1); exit 1; }; }
25933          fi;;
25934       esac
25935     done` || { (exit 1); exit 1; }
25936   # Remove the trailing spaces.
25937   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25938
25939 _ACEOF
25940
25941 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25942 # `conftest.undefs', that substitutes the proper values into
25943 # config.h.in to produce config.h.  The first handles `#define'
25944 # templates, and the second `#undef' templates.
25945 # And first: Protect against being on the right side of a sed subst in
25946 # config.status.  Protect against being in an unquoted here document
25947 # in config.status.
25948 rm -f conftest.defines conftest.undefs
25949 # Using a here document instead of a string reduces the quoting nightmare.
25950 # Putting comments in sed scripts is not portable.
25951 #
25952 # `end' is used to avoid that the second main sed command (meant for
25953 # 0-ary CPP macros) applies to n-ary macro definitions.
25954 # See the Autoconf documentation for `clear'.
25955 cat >confdef2sed.sed <<\_ACEOF
25956 s/[\\&,]/\\&/g
25957 s,[\\$`],\\&,g
25958 t clear
25959 : clear
25960 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25961 t end
25962 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25963 : end
25964 _ACEOF
25965 # If some macros were called several times there might be several times
25966 # the same #defines, which is useless.  Nevertheless, we may not want to
25967 # sort them, since we want the *last* AC-DEFINE to be honored.
25968 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25969 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25970 rm -f confdef2sed.sed
25971
25972 # This sed command replaces #undef with comments.  This is necessary, for
25973 # example, in the case of _POSIX_SOURCE, which is predefined and required
25974 # on some systems where configure will not decide to define it.
25975 cat >>conftest.undefs <<\_ACEOF
25976 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25977 _ACEOF
25978
25979 # Break up conftest.defines because some shells have a limit on the size
25980 # of here documents, and old seds have small limits too (100 cmds).
25981 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25982 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25983 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25984 echo '  :' >>$CONFIG_STATUS
25985 rm -f conftest.tail
25986 while grep . conftest.defines >/dev/null
25987 do
25988   # Write a limited-size here document to $tmp/defines.sed.
25989   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25990   # Speed up: don't consider the non `#define' lines.
25991   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25992   # Work around the forget-to-reset-the-flag bug.
25993   echo 't clr' >>$CONFIG_STATUS
25994   echo ': clr' >>$CONFIG_STATUS
25995   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25996   echo 'CEOF
25997   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25998   rm -f $tmp/in
25999   mv $tmp/out $tmp/in
26000 ' >>$CONFIG_STATUS
26001   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26002   rm -f conftest.defines
26003   mv conftest.tail conftest.defines
26004 done
26005 rm -f conftest.defines
26006 echo '  fi # grep' >>$CONFIG_STATUS
26007 echo >>$CONFIG_STATUS
26008
26009 # Break up conftest.undefs because some shells have a limit on the size
26010 # of here documents, and old seds have small limits too (100 cmds).
26011 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
26012 rm -f conftest.tail
26013 while grep . conftest.undefs >/dev/null
26014 do
26015   # Write a limited-size here document to $tmp/undefs.sed.
26016   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26017   # Speed up: don't consider the non `#undef'
26018   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
26019   # Work around the forget-to-reset-the-flag bug.
26020   echo 't clr' >>$CONFIG_STATUS
26021   echo ': clr' >>$CONFIG_STATUS
26022   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26023   echo 'CEOF
26024   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26025   rm -f $tmp/in
26026   mv $tmp/out $tmp/in
26027 ' >>$CONFIG_STATUS
26028   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26029   rm -f conftest.undefs
26030   mv conftest.tail conftest.undefs
26031 done
26032 rm -f conftest.undefs
26033
26034 cat >>$CONFIG_STATUS <<\_ACEOF
26035   # Let's still pretend it is `configure' which instantiates (i.e., don't
26036   # use $as_me), people would be surprised to read:
26037   #    /* config.h.  Generated by config.status.  */
26038   if test x"$ac_file" = x-; then
26039     echo "/* Generated by configure.  */" >$tmp/config.h
26040   else
26041     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
26042   fi
26043   cat $tmp/in >>$tmp/config.h
26044   rm -f $tmp/in
26045   if test x"$ac_file" != x-; then
26046     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26047       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26048 echo "$as_me: $ac_file is unchanged" >&6;}
26049     else
26050       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26052          X"$ac_file" : 'X\(//\)[^/]' \| \
26053          X"$ac_file" : 'X\(//\)$' \| \
26054          X"$ac_file" : 'X\(/\)' \| \
26055          .     : '\(.\)' 2>/dev/null ||
26056 echo X"$ac_file" |
26057     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26058           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26059           /^X\(\/\/\)$/{ s//\1/; q; }
26060           /^X\(\/\).*/{ s//\1/; q; }
26061           s/.*/./; q'`
26062       { if $as_mkdir_p; then
26063     mkdir -p "$ac_dir"
26064   else
26065     as_dir="$ac_dir"
26066     as_dirs=
26067     while test ! -d "$as_dir"; do
26068       as_dirs="$as_dir $as_dirs"
26069       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26071          X"$as_dir" : 'X\(//\)[^/]' \| \
26072          X"$as_dir" : 'X\(//\)$' \| \
26073          X"$as_dir" : 'X\(/\)' \| \
26074          .     : '\(.\)' 2>/dev/null ||
26075 echo X"$as_dir" |
26076     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26077           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26078           /^X\(\/\/\)$/{ s//\1/; q; }
26079           /^X\(\/\).*/{ s//\1/; q; }
26080           s/.*/./; q'`
26081     done
26082     test ! -n "$as_dirs" || mkdir $as_dirs
26083   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26084 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26085    { (exit 1); exit 1; }; }; }
26086
26087       rm -f $ac_file
26088       mv $tmp/config.h $ac_file
26089     fi
26090   else
26091     cat $tmp/config.h
26092     rm -f $tmp/config.h
26093   fi
26094 done
26095 _ACEOF
26096 cat >>$CONFIG_STATUS <<\_ACEOF
26097
26098 #
26099 # CONFIG_COMMANDS section.
26100 #
26101 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26102   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26103   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26104   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26105 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26106          X"$ac_dest" : 'X\(//\)[^/]' \| \
26107          X"$ac_dest" : 'X\(//\)$' \| \
26108          X"$ac_dest" : 'X\(/\)' \| \
26109          .     : '\(.\)' 2>/dev/null ||
26110 echo X"$ac_dest" |
26111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26112           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26113           /^X\(\/\/\)$/{ s//\1/; q; }
26114           /^X\(\/\).*/{ s//\1/; q; }
26115           s/.*/./; q'`
26116   { if $as_mkdir_p; then
26117     mkdir -p "$ac_dir"
26118   else
26119     as_dir="$ac_dir"
26120     as_dirs=
26121     while test ! -d "$as_dir"; do
26122       as_dirs="$as_dir $as_dirs"
26123       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26125          X"$as_dir" : 'X\(//\)[^/]' \| \
26126          X"$as_dir" : 'X\(//\)$' \| \
26127          X"$as_dir" : 'X\(/\)' \| \
26128          .     : '\(.\)' 2>/dev/null ||
26129 echo X"$as_dir" |
26130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26131           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26132           /^X\(\/\/\)$/{ s//\1/; q; }
26133           /^X\(\/\).*/{ s//\1/; q; }
26134           s/.*/./; q'`
26135     done
26136     test ! -n "$as_dirs" || mkdir $as_dirs
26137   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26138 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26139    { (exit 1); exit 1; }; }; }
26140
26141   ac_builddir=.
26142
26143 if test "$ac_dir" != .; then
26144   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26145   # A "../" for each directory in $ac_dir_suffix.
26146   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26147 else
26148   ac_dir_suffix= ac_top_builddir=
26149 fi
26150
26151 case $srcdir in
26152   .)  # No --srcdir option.  We are building in place.
26153     ac_srcdir=.
26154     if test -z "$ac_top_builddir"; then
26155        ac_top_srcdir=.
26156     else
26157        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26158     fi ;;
26159   [\\/]* | ?:[\\/]* )  # Absolute path.
26160     ac_srcdir=$srcdir$ac_dir_suffix;
26161     ac_top_srcdir=$srcdir ;;
26162   *) # Relative path.
26163     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26164     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26165 esac
26166
26167 # Do not use `cd foo && pwd` to compute absolute paths, because
26168 # the directories may not exist.
26169 case `pwd` in
26170 .) ac_abs_builddir="$ac_dir";;
26171 *)
26172   case "$ac_dir" in
26173   .) ac_abs_builddir=`pwd`;;
26174   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26175   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26176   esac;;
26177 esac
26178 case $ac_abs_builddir in
26179 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26180 *)
26181   case ${ac_top_builddir}. in
26182   .) ac_abs_top_builddir=$ac_abs_builddir;;
26183   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26184   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26185   esac;;
26186 esac
26187 case $ac_abs_builddir in
26188 .) ac_abs_srcdir=$ac_srcdir;;
26189 *)
26190   case $ac_srcdir in
26191   .) ac_abs_srcdir=$ac_abs_builddir;;
26192   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26193   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26194   esac;;
26195 esac
26196 case $ac_abs_builddir in
26197 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26198 *)
26199   case $ac_top_srcdir in
26200   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26201   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26202   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26203   esac;;
26204 esac
26205
26206
26207   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26208 echo "$as_me: executing $ac_dest commands" >&6;}
26209   case $ac_dest in
26210     stamp-h ) echo timestamp > src/include/stamp-h ;;
26211     build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26212     main-chmod ) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
26213     scripts-chmod ) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26214   esac
26215 done
26216 _ACEOF
26217
26218 cat >>$CONFIG_STATUS <<\_ACEOF
26219
26220 { (exit 0); exit 0; }
26221 _ACEOF
26222 chmod +x $CONFIG_STATUS
26223 ac_clean_files=$ac_clean_files_save
26224
26225
26226 # configure is writing to config.log, and then calls config.status.
26227 # config.status does its own redirection, appending to config.log.
26228 # Unfortunately, on DOS this fails, as config.log is still kept open
26229 # by configure, so config.status won't be able to write to it; its
26230 # output is simply discarded.  So we exec the FD to /dev/null,
26231 # effectively closing config.log, so it can be properly (re)opened and
26232 # appended to by config.status.  When coming back to configure, we
26233 # need to make the FD available again.
26234 if test "$no_create" != yes; then
26235   ac_cs_success=:
26236   ac_config_status_args=
26237   test "$silent" = yes &&
26238     ac_config_status_args="$ac_config_status_args --quiet"
26239   exec 5>/dev/null
26240   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26241   exec 5>>config.log
26242   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26243   # would make configure fail if this is the last instruction.
26244   $ac_cs_success || { (exit 1); exit 1; }
26245 fi
26246
26247 #
26248 # CONFIG_SUBDIRS section.
26249 #
26250 if test "$no_recursion" != yes; then
26251
26252   # Remove --cache-file and --srcdir arguments so they do not pile up.
26253   ac_sub_configure_args=
26254   ac_prev=
26255   for ac_arg in $ac_configure_args; do
26256     if test -n "$ac_prev"; then
26257       ac_prev=
26258       continue
26259     fi
26260     case $ac_arg in
26261     -cache-file | --cache-file | --cache-fil | --cache-fi \
26262     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26263       ac_prev=cache_file ;;
26264     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26265     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26266     | --c=*)
26267       ;;
26268     --config-cache | -C)
26269       ;;
26270     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26271       ac_prev=srcdir ;;
26272     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26273       ;;
26274     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26275       ac_prev=prefix ;;
26276     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26277       ;;
26278     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26279     esac
26280   done
26281
26282   # Always prepend --prefix to ensure using the same prefix
26283   # in subdir configurations.
26284   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26285
26286   ac_popdir=`pwd`
26287   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26288
26289     # Do not complain, so a configure script can configure whichever
26290     # parts of a large source tree are present.
26291     test -d $srcdir/$ac_dir || continue
26292
26293     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26294 echo "$as_me: configuring in $ac_dir" >&6;}
26295     { if $as_mkdir_p; then
26296     mkdir -p "$ac_dir"
26297   else
26298     as_dir="$ac_dir"
26299     as_dirs=
26300     while test ! -d "$as_dir"; do
26301       as_dirs="$as_dir $as_dirs"
26302       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26304          X"$as_dir" : 'X\(//\)[^/]' \| \
26305          X"$as_dir" : 'X\(//\)$' \| \
26306          X"$as_dir" : 'X\(/\)' \| \
26307          .     : '\(.\)' 2>/dev/null ||
26308 echo X"$as_dir" |
26309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26310           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26311           /^X\(\/\/\)$/{ s//\1/; q; }
26312           /^X\(\/\).*/{ s//\1/; q; }
26313           s/.*/./; q'`
26314     done
26315     test ! -n "$as_dirs" || mkdir $as_dirs
26316   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26317 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26318    { (exit 1); exit 1; }; }; }
26319
26320     ac_builddir=.
26321
26322 if test "$ac_dir" != .; then
26323   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26324   # A "../" for each directory in $ac_dir_suffix.
26325   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26326 else
26327   ac_dir_suffix= ac_top_builddir=
26328 fi
26329
26330 case $srcdir in
26331   .)  # No --srcdir option.  We are building in place.
26332     ac_srcdir=.
26333     if test -z "$ac_top_builddir"; then
26334        ac_top_srcdir=.
26335     else
26336        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26337     fi ;;
26338   [\\/]* | ?:[\\/]* )  # Absolute path.
26339     ac_srcdir=$srcdir$ac_dir_suffix;
26340     ac_top_srcdir=$srcdir ;;
26341   *) # Relative path.
26342     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26343     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26344 esac
26345
26346 # Do not use `cd foo && pwd` to compute absolute paths, because
26347 # the directories may not exist.
26348 case `pwd` in
26349 .) ac_abs_builddir="$ac_dir";;
26350 *)
26351   case "$ac_dir" in
26352   .) ac_abs_builddir=`pwd`;;
26353   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26354   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26355   esac;;
26356 esac
26357 case $ac_abs_builddir in
26358 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26359 *)
26360   case ${ac_top_builddir}. in
26361   .) ac_abs_top_builddir=$ac_abs_builddir;;
26362   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26363   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26364   esac;;
26365 esac
26366 case $ac_abs_builddir in
26367 .) ac_abs_srcdir=$ac_srcdir;;
26368 *)
26369   case $ac_srcdir in
26370   .) ac_abs_srcdir=$ac_abs_builddir;;
26371   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26372   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26373   esac;;
26374 esac
26375 case $ac_abs_builddir in
26376 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26377 *)
26378   case $ac_top_srcdir in
26379   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26380   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26381   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26382   esac;;
26383 esac
26384
26385
26386     cd $ac_dir
26387
26388     # Check for guested configure; otherwise get Cygnus style configure.
26389     if test -f $ac_srcdir/configure.gnu; then
26390       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26391     elif test -f $ac_srcdir/configure; then
26392       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26393     elif test -f $ac_srcdir/configure.in; then
26394       ac_sub_configure=$ac_configure
26395     else
26396       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26397 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26398       ac_sub_configure=
26399     fi
26400
26401     # The recursion is here.
26402     if test -n "$ac_sub_configure"; then
26403       # Make the cache file name correct relative to the subdirectory.
26404       case $cache_file in
26405       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26406       *) # Relative path.
26407         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26408       esac
26409
26410       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26411 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26412       # The eval makes quoting arguments work.
26413       eval $ac_sub_configure $ac_sub_configure_args \
26414            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26415         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26416 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26417    { (exit 1); exit 1; }; }
26418     fi
26419
26420     cd "$ac_popdir"
26421   done
26422 fi
26423