Bump version to 1.1.3
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.198.2.15.2.8 .
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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subdirs_all="$ac_subdirs_all $LTDL_SUBDIRS $mysubdirs"
468 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 LTDL_SUBDIRS 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 GETCONF LFS_CFLAGS LFS_LDFLAGS LFS_LIBS HOSTINFO LIBLTDL INCLTDL subdirs MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures this package to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 System types:
1011   --build=BUILD     configure for building on BUILD [guessed]
1012   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017
1018   cat <<\_ACEOF
1019
1020 Optional Features:
1021   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1022   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1023   --enable-shared[=PKGS]
1024                           build shared libraries [default=yes]
1025   --enable-static[=PKGS]
1026                           build static libraries [default=yes]
1027   --enable-fast-install[=PKGS]
1028                           optimize for fast installation [default=yes]
1029   --disable-libtool-lock  avoid locking (might break parallel builds)
1030   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1031   --enable-developer               Enables features of interest to developers.
1032
1033 Optional Packages:
1034   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1035   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1036   --with-system-libtool              try to use libtool installed in your system default=use our own
1037   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1038   --with-pic              try to use only PIC/non-PIC objects [default=use
1039                           both]
1040   --with-tags[=TAGS]
1041                           include additional configurations [automatic]
1042   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1043   --with-radacctdir=PATH  Directory for detail files LOGDIR/radacct
1044   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1045   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1046   --with-threads          Use threads, if available.  (default=yes)
1047   --with-snmp             Compile in SNMP support. (default=yes)
1048   --with-large-files      Compile in large (2G+) file support. (default=no)
1049   --with-static-modules=QUOTED-MODULE-LIST
1050  --with-modules=QUOTED-MODULE-LIST
1051   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1052   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1053   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1054   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1055   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1056   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1057   --with-edir             Enable Novell eDirectory integration.  (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
1515 RADIUSD_MAJOR_VERSION=1
1516 RADIUSD_MINOR_VERSION=1.3
1517 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1518
1519
1520 ac_ext=c
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 if test -n "$ac_tool_prefix"; then
1526   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531   echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533   if test -n "$CC"; then
1534   ac_cv_prog_CC="$CC" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539   IFS=$as_save_IFS
1540   test -z "$as_dir" && as_dir=.
1541   for ac_exec_ext in '' $ac_executable_extensions; do
1542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545     break 2
1546   fi
1547 done
1548 done
1549
1550 fi
1551 fi
1552 CC=$ac_cv_prog_CC
1553 if test -n "$CC"; then
1554   echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1556 else
1557   echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1559 fi
1560
1561 fi
1562 if test -z "$ac_cv_prog_CC"; then
1563   ac_ct_CC=$CC
1564   # Extract the first word of "gcc", so it can be a program name with args.
1565 set dummy gcc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   if test -n "$ac_ct_CC"; then
1572   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 else
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1576 do
1577   IFS=$as_save_IFS
1578   test -z "$as_dir" && as_dir=.
1579   for ac_exec_ext in '' $ac_executable_extensions; do
1580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581     ac_cv_prog_ac_ct_CC="gcc"
1582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583     break 2
1584   fi
1585 done
1586 done
1587
1588 fi
1589 fi
1590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1591 if test -n "$ac_ct_CC"; then
1592   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593 echo "${ECHO_T}$ac_ct_CC" >&6
1594 else
1595   echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1597 fi
1598
1599   CC=$ac_ct_CC
1600 else
1601   CC="$ac_cv_prog_CC"
1602 fi
1603
1604 if test -z "$CC"; then
1605   if test -n "$ac_tool_prefix"; then
1606   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   if test -n "$CC"; then
1614   ac_cv_prog_CC="$CC" # Let the user override the test.
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   for ac_exec_ext in '' $ac_executable_extensions; do
1622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623     ac_cv_prog_CC="${ac_tool_prefix}cc"
1624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625     break 2
1626   fi
1627 done
1628 done
1629
1630 fi
1631 fi
1632 CC=$ac_cv_prog_CC
1633 if test -n "$CC"; then
1634   echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1636 else
1637   echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1639 fi
1640
1641 fi
1642 if test -z "$ac_cv_prog_CC"; then
1643   ac_ct_CC=$CC
1644   # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649   echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651   if test -n "$ac_ct_CC"; then
1652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1656 do
1657   IFS=$as_save_IFS
1658   test -z "$as_dir" && as_dir=.
1659   for ac_exec_ext in '' $ac_executable_extensions; do
1660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661     ac_cv_prog_ac_ct_CC="cc"
1662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663     break 2
1664   fi
1665 done
1666 done
1667
1668 fi
1669 fi
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1674 else
1675   echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1677 fi
1678
1679   CC=$ac_ct_CC
1680 else
1681   CC="$ac_cv_prog_CC"
1682 fi
1683
1684 fi
1685 if test -z "$CC"; then
1686   # Extract the first word of "cc", so it can be a program name with args.
1687 set dummy cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691   echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693   if test -n "$CC"; then
1694   ac_cv_prog_CC="$CC" # Let the user override the test.
1695 else
1696   ac_prog_rejected=no
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700   IFS=$as_save_IFS
1701   test -z "$as_dir" && as_dir=.
1702   for ac_exec_ext in '' $ac_executable_extensions; do
1703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1705        ac_prog_rejected=yes
1706        continue
1707      fi
1708     ac_cv_prog_CC="cc"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 if test $ac_prog_rejected = yes; then
1716   # We found a bogon in the path, so make sure we never use it.
1717   set dummy $ac_cv_prog_CC
1718   shift
1719   if test $# != 0; then
1720     # We chose a different compiler from the bogus one.
1721     # However, it has the same basename, so the bogon will be chosen
1722     # first if we set CC to just the basename; use the full file name.
1723     shift
1724     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1725   fi
1726 fi
1727 fi
1728 fi
1729 CC=$ac_cv_prog_CC
1730 if test -n "$CC"; then
1731   echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6
1733 else
1734   echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738 fi
1739 if test -z "$CC"; then
1740   if test -n "$ac_tool_prefix"; then
1741   for ac_prog in cl
1742   do
1743     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_CC+set}" = set; then
1748   echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750   if test -n "$CC"; then
1751   ac_cv_prog_CC="$CC" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756   IFS=$as_save_IFS
1757   test -z "$as_dir" && as_dir=.
1758   for ac_exec_ext in '' $ac_executable_extensions; do
1759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762     break 2
1763   fi
1764 done
1765 done
1766
1767 fi
1768 fi
1769 CC=$ac_cv_prog_CC
1770 if test -n "$CC"; then
1771   echo "$as_me:$LINENO: result: $CC" >&5
1772 echo "${ECHO_T}$CC" >&6
1773 else
1774   echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 fi
1777
1778     test -n "$CC" && break
1779   done
1780 fi
1781 if test -z "$CC"; then
1782   ac_ct_CC=$CC
1783   for ac_prog in cl
1784 do
1785   # Extract the first word of "$ac_prog", so it can be a program name with args.
1786 set dummy $ac_prog; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1790   echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792   if test -n "$ac_ct_CC"; then
1793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 else
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796 for as_dir in $PATH
1797 do
1798   IFS=$as_save_IFS
1799   test -z "$as_dir" && as_dir=.
1800   for ac_exec_ext in '' $ac_executable_extensions; do
1801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802     ac_cv_prog_ac_ct_CC="$ac_prog"
1803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804     break 2
1805   fi
1806 done
1807 done
1808
1809 fi
1810 fi
1811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1812 if test -n "$ac_ct_CC"; then
1813   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1814 echo "${ECHO_T}$ac_ct_CC" >&6
1815 else
1816   echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820   test -n "$ac_ct_CC" && break
1821 done
1822
1823   CC=$ac_ct_CC
1824 fi
1825
1826 fi
1827
1828
1829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&2;}
1833    { (exit 1); exit 1; }; }
1834
1835 # Provide some information about the compiler.
1836 echo "$as_me:$LINENO:" \
1837      "checking for C compiler version" >&5
1838 ac_compiler=`set X $ac_compile; echo $2`
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1840   (eval $ac_compiler --version </dev/null >&5) 2>&5
1841   ac_status=$?
1842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843   (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1845   (eval $ac_compiler -v </dev/null >&5) 2>&5
1846   ac_status=$?
1847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848   (exit $ac_status); }
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1850   (eval $ac_compiler -V </dev/null >&5) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }
1854
1855 cat >conftest.$ac_ext <<_ACEOF
1856 /* confdefs.h.  */
1857 _ACEOF
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h.  */
1861
1862 int
1863 main ()
1864 {
1865
1866   ;
1867   return 0;
1868 }
1869 _ACEOF
1870 ac_clean_files_save=$ac_clean_files
1871 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1872 # Try to create an executable without -o first, disregard a.out.
1873 # It will help us diagnose broken compilers, and finding out an intuition
1874 # of exeext.
1875 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1876 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1877 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1879   (eval $ac_link_default) 2>&5
1880   ac_status=$?
1881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882   (exit $ac_status); }; then
1883   # Find the output, starting from the most likely.  This scheme is
1884 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1885 # resort.
1886
1887 # Be careful to initialize this variable, since it used to be cached.
1888 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 ac_cv_exeext=
1890 # b.out is created by i960 compilers.
1891 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 do
1893   test -f "$ac_file" || continue
1894   case $ac_file in
1895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1896         ;;
1897     conftest.$ac_ext )
1898         # This is the source file.
1899         ;;
1900     [ab].out )
1901         # We found the default executable, but exeext='' is most
1902         # certainly right.
1903         break;;
1904     *.* )
1905         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1906         # FIXME: I believe we export ac_cv_exeext for Libtool,
1907         # but it would be cool to find out if it's true.  Does anybody
1908         # maintain Libtool? --akim.
1909         export ac_cv_exeext
1910         break;;
1911     * )
1912         break;;
1913   esac
1914 done
1915 else
1916   echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: C compiler cannot create executables
1922 See \`config.log' for more details." >&2;}
1923    { (exit 77); exit 77; }; }
1924 fi
1925
1926 ac_exeext=$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_file" >&5
1928 echo "${ECHO_T}$ac_file" >&6
1929
1930 # Check the compiler produces executables we can run.  If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1933 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1934 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1935 # If not cross compiling, check that we can run a simple program.
1936 if test "$cross_compiling" != yes; then
1937   if { ac_try='./$ac_file'
1938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939   (eval $ac_try) 2>&5
1940   ac_status=$?
1941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942   (exit $ac_status); }; }; then
1943     cross_compiling=no
1944   else
1945     if test "$cross_compiling" = maybe; then
1946         cross_compiling=yes
1947     else
1948         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1949 If you meant to cross compile, use \`--host'.
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&2;}
1954    { (exit 1); exit 1; }; }
1955     fi
1956   fi
1957 fi
1958 echo "$as_me:$LINENO: result: yes" >&5
1959 echo "${ECHO_T}yes" >&6
1960
1961 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1962 ac_clean_files=$ac_clean_files_save
1963 # Check the compiler produces executables we can run.  If not, either
1964 # the compiler is broken, or we cross compile.
1965 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1966 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1967 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1968 echo "${ECHO_T}$cross_compiling" >&6
1969
1970 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1971 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1973   (eval $ac_link) 2>&5
1974   ac_status=$?
1975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976   (exit $ac_status); }; then
1977   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1978 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1979 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 # `rm'.
1981 for ac_file in conftest.exe conftest conftest.*; do
1982   test -f "$ac_file" || continue
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1985     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986           export ac_cv_exeext
1987           break;;
1988     * ) break;;
1989   esac
1990 done
1991 else
1992   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1995 See \`config.log' for more details." >&2;}
1996    { (exit 1); exit 1; }; }
1997 fi
1998
1999 rm -f conftest$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2001 echo "${ECHO_T}$ac_cv_exeext" >&6
2002
2003 rm -f conftest.$ac_ext
2004 EXEEXT=$ac_cv_exeext
2005 ac_exeext=$EXEEXT
2006 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2007 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2008 if test "${ac_cv_objext+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 /* confdefs.h.  */
2013 _ACEOF
2014 cat confdefs.h >>conftest.$ac_ext
2015 cat >>conftest.$ac_ext <<_ACEOF
2016 /* end confdefs.h.  */
2017
2018 int
2019 main ()
2020 {
2021
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 rm -f conftest.o conftest.obj
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028   (eval $ac_compile) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); }; then
2032   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2033   case $ac_file in
2034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2035     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2036        break;;
2037   esac
2038 done
2039 else
2040   echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&2;}
2047    { (exit 1); exit 1; }; }
2048 fi
2049
2050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2051 fi
2052 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2053 echo "${ECHO_T}$ac_cv_objext" >&6
2054 OBJEXT=$ac_cv_objext
2055 ac_objext=$OBJEXT
2056 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   cat >conftest.$ac_ext <<_ACEOF
2062 /* confdefs.h.  */
2063 _ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h.  */
2067
2068 int
2069 main ()
2070 {
2071 #ifndef __GNUC__
2072        choke me
2073 #endif
2074
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 rm -f conftest.$ac_objext
2080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081   (eval $ac_compile) 2>conftest.er1
2082   ac_status=$?
2083   grep -v '^ *+' conftest.er1 >conftest.err
2084   rm -f conftest.er1
2085   cat conftest.err >&5
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); } &&
2088          { ac_try='test -z "$ac_c_werror_flag"
2089                          || test ! -s conftest.err'
2090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091   (eval $ac_try) 2>&5
2092   ac_status=$?
2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094   (exit $ac_status); }; } &&
2095          { ac_try='test -s conftest.$ac_objext'
2096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097   (eval $ac_try) 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }; }; then
2101   ac_compiler_gnu=yes
2102 else
2103   echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2105
2106 ac_compiler_gnu=no
2107 fi
2108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2110
2111 fi
2112 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2113 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2114 GCC=`test $ac_compiler_gnu = yes && echo yes`
2115 ac_test_CFLAGS=${CFLAGS+set}
2116 ac_save_CFLAGS=$CFLAGS
2117 CFLAGS="-g"
2118 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2119 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_g+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   cat >conftest.$ac_ext <<_ACEOF
2124 /* confdefs.h.  */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h.  */
2129
2130 int
2131 main ()
2132 {
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 rm -f conftest.$ac_objext
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140   (eval $ac_compile) 2>conftest.er1
2141   ac_status=$?
2142   grep -v '^ *+' conftest.er1 >conftest.err
2143   rm -f conftest.er1
2144   cat conftest.err >&5
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); } &&
2147          { ac_try='test -z "$ac_c_werror_flag"
2148                          || test ! -s conftest.err'
2149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150   (eval $ac_try) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }; } &&
2154          { ac_try='test -s conftest.$ac_objext'
2155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156   (eval $ac_try) 2>&5
2157   ac_status=$?
2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159   (exit $ac_status); }; }; then
2160   ac_cv_prog_cc_g=yes
2161 else
2162   echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2164
2165 ac_cv_prog_cc_g=no
2166 fi
2167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2168 fi
2169 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2170 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2171 if test "$ac_test_CFLAGS" = set; then
2172   CFLAGS=$ac_save_CFLAGS
2173 elif test $ac_cv_prog_cc_g = yes; then
2174   if test "$GCC" = yes; then
2175     CFLAGS="-g -O2"
2176   else
2177     CFLAGS="-g"
2178   fi
2179 else
2180   if test "$GCC" = yes; then
2181     CFLAGS="-O2"
2182   else
2183     CFLAGS=
2184   fi
2185 fi
2186 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2187 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2188 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   ac_cv_prog_cc_stdc=no
2192 ac_save_CC=$CC
2193 cat >conftest.$ac_ext <<_ACEOF
2194 /* confdefs.h.  */
2195 _ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h.  */
2199 #include <stdarg.h>
2200 #include <stdio.h>
2201 #include <sys/types.h>
2202 #include <sys/stat.h>
2203 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2204 struct buf { int x; };
2205 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2206 static char *e (p, i)
2207      char **p;
2208      int i;
2209 {
2210   return p[i];
2211 }
2212 static char *f (char * (*g) (char **, int), char **p, ...)
2213 {
2214   char *s;
2215   va_list v;
2216   va_start (v,p);
2217   s = g (p, va_arg (v,int));
2218   va_end (v);
2219   return s;
2220 }
2221
2222 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2223    function prototypes and stuff, but not '\xHH' hex character constants.
2224    These don't provoke an error unfortunately, instead are silently treated
2225    as 'x'.  The following induces an error, until -std1 is added to get
2226    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2227    array size at least.  It's necessary to write '\x00'==0 to get something
2228    that's true only with -std1.  */
2229 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2230
2231 int test (int i, double x);
2232 struct s1 {int (*f) (int a);};
2233 struct s2 {int (*f) (double a);};
2234 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2235 int argc;
2236 char **argv;
2237 int
2238 main ()
2239 {
2240 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2241   ;
2242   return 0;
2243 }
2244 _ACEOF
2245 # Don't try gcc -ansi; that turns off useful extensions and
2246 # breaks some systems' header files.
2247 # AIX                   -qlanglvl=ansi
2248 # Ultrix and OSF/1      -std1
2249 # HP-UX 10.20 and later -Ae
2250 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2251 # SVR4                  -Xc -D__EXTENSIONS__
2252 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2253 do
2254   CC="$ac_save_CC $ac_arg"
2255   rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257   (eval $ac_compile) 2>conftest.er1
2258   ac_status=$?
2259   grep -v '^ *+' conftest.er1 >conftest.err
2260   rm -f conftest.er1
2261   cat conftest.err >&5
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); } &&
2264          { ac_try='test -z "$ac_c_werror_flag"
2265                          || test ! -s conftest.err'
2266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267   (eval $ac_try) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; } &&
2271          { ac_try='test -s conftest.$ac_objext'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277   ac_cv_prog_cc_stdc=$ac_arg
2278 break
2279 else
2280   echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 fi
2284 rm -f conftest.err conftest.$ac_objext
2285 done
2286 rm -f conftest.$ac_ext conftest.$ac_objext
2287 CC=$ac_save_CC
2288
2289 fi
2290
2291 case "x$ac_cv_prog_cc_stdc" in
2292   x|xno)
2293     echo "$as_me:$LINENO: result: none needed" >&5
2294 echo "${ECHO_T}none needed" >&6 ;;
2295   *)
2296     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2297 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2298     CC="$CC $ac_cv_prog_cc_stdc" ;;
2299 esac
2300
2301 # Some people use a C++ compiler to compile C.  Since we use `exit',
2302 # in C++ we need to declare it.  In case someone uses the same compiler
2303 # for both compiling C and C++ we need to have the C++ compiler decide
2304 # the declaration of exit, since it's the most demanding environment.
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #ifndef __cplusplus
2307   choke me
2308 #endif
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312   (eval $ac_compile) 2>conftest.er1
2313   ac_status=$?
2314   grep -v '^ *+' conftest.er1 >conftest.err
2315   rm -f conftest.er1
2316   cat conftest.err >&5
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } &&
2319          { ac_try='test -z "$ac_c_werror_flag"
2320                          || test ! -s conftest.err'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; } &&
2326          { ac_try='test -s conftest.$ac_objext'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; }; then
2332   for ac_declaration in \
2333    '' \
2334    'extern "C" void std::exit (int) throw (); using std::exit;' \
2335    'extern "C" void std::exit (int); using std::exit;' \
2336    'extern "C" void exit (int) throw ();' \
2337    'extern "C" void exit (int);' \
2338    'void exit (int);'
2339 do
2340   cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h.  */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h.  */
2346 $ac_declaration
2347 #include <stdlib.h>
2348 int
2349 main ()
2350 {
2351 exit (42);
2352   ;
2353   return 0;
2354 }
2355 _ACEOF
2356 rm -f conftest.$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358   (eval $ac_compile) 2>conftest.er1
2359   ac_status=$?
2360   grep -v '^ *+' conftest.er1 >conftest.err
2361   rm -f conftest.er1
2362   cat conftest.err >&5
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); } &&
2365          { ac_try='test -z "$ac_c_werror_flag"
2366                          || test ! -s conftest.err'
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); }; } &&
2372          { ac_try='test -s conftest.$ac_objext'
2373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374   (eval $ac_try) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }; }; then
2378   :
2379 else
2380   echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 continue
2384 fi
2385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2386   cat >conftest.$ac_ext <<_ACEOF
2387 /* confdefs.h.  */
2388 _ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h.  */
2392 $ac_declaration
2393 int
2394 main ()
2395 {
2396 exit (42);
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403   (eval $ac_compile) 2>conftest.er1
2404   ac_status=$?
2405   grep -v '^ *+' conftest.er1 >conftest.err
2406   rm -f conftest.er1
2407   cat conftest.err >&5
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); } &&
2410          { ac_try='test -z "$ac_c_werror_flag"
2411                          || test ! -s conftest.err'
2412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413   (eval $ac_try) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; } &&
2417          { ac_try='test -s conftest.$ac_objext'
2418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419   (eval $ac_try) 2>&5
2420   ac_status=$?
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); }; }; then
2423   break
2424 else
2425   echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2427
2428 fi
2429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430 done
2431 rm -f conftest*
2432 if test -n "$ac_declaration"; then
2433   echo '#ifdef __cplusplus' >>confdefs.h
2434   echo $ac_declaration      >>confdefs.h
2435   echo '#endif'             >>confdefs.h
2436 fi
2437
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 fi
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 ac_ext=c
2445 ac_cpp='$CPP $CPPFLAGS'
2446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449
2450
2451
2452 ac_ext=c
2453 ac_cpp='$CPP $CPPFLAGS'
2454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2458 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2459 # On Suns, sometimes $CPP names a directory.
2460 if test -n "$CPP" && test -d "$CPP"; then
2461   CPP=
2462 fi
2463 if test -z "$CPP"; then
2464   if test "${ac_cv_prog_CPP+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467       # Double quotes because CPP needs to be expanded
2468     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2469     do
2470       ac_preproc_ok=false
2471 for ac_c_preproc_warn_flag in '' yes
2472 do
2473   # Use a header file that comes with gcc, so configuring glibc
2474   # with a fresh cross-compiler works.
2475   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2476   # <limits.h> exists even on freestanding compilers.
2477   # On the NeXT, cc -E runs the code through the compiler's parser,
2478   # not just through cpp. "Syntax error" is here to catch this case.
2479   cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h.  */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h.  */
2485 #ifdef __STDC__
2486 # include <limits.h>
2487 #else
2488 # include <assert.h>
2489 #endif
2490                      Syntax error
2491 _ACEOF
2492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494   ac_status=$?
2495   grep -v '^ *+' conftest.er1 >conftest.err
2496   rm -f conftest.er1
2497   cat conftest.err >&5
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); } >/dev/null; then
2500   if test -s conftest.err; then
2501     ac_cpp_err=$ac_c_preproc_warn_flag
2502     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2503   else
2504     ac_cpp_err=
2505   fi
2506 else
2507   ac_cpp_err=yes
2508 fi
2509 if test -z "$ac_cpp_err"; then
2510   :
2511 else
2512   echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515   # Broken: fails on valid input.
2516 continue
2517 fi
2518 rm -f conftest.err conftest.$ac_ext
2519
2520   # OK, works on sane cases.  Now check whether non-existent headers
2521   # can be detected and how.
2522   cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528 #include <ac_nonexistent.h>
2529 _ACEOF
2530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2532   ac_status=$?
2533   grep -v '^ *+' conftest.er1 >conftest.err
2534   rm -f conftest.er1
2535   cat conftest.err >&5
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); } >/dev/null; then
2538   if test -s conftest.err; then
2539     ac_cpp_err=$ac_c_preproc_warn_flag
2540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2541   else
2542     ac_cpp_err=
2543   fi
2544 else
2545   ac_cpp_err=yes
2546 fi
2547 if test -z "$ac_cpp_err"; then
2548   # Broken: success on invalid input.
2549 continue
2550 else
2551   echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554   # Passes both tests.
2555 ac_preproc_ok=:
2556 break
2557 fi
2558 rm -f conftest.err conftest.$ac_ext
2559
2560 done
2561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2562 rm -f conftest.err conftest.$ac_ext
2563 if $ac_preproc_ok; then
2564   break
2565 fi
2566
2567     done
2568     ac_cv_prog_CPP=$CPP
2569
2570 fi
2571   CPP=$ac_cv_prog_CPP
2572 else
2573   ac_cv_prog_CPP=$CPP
2574 fi
2575 echo "$as_me:$LINENO: result: $CPP" >&5
2576 echo "${ECHO_T}$CPP" >&6
2577 ac_preproc_ok=false
2578 for ac_c_preproc_warn_flag in '' yes
2579 do
2580   # Use a header file that comes with gcc, so configuring glibc
2581   # with a fresh cross-compiler works.
2582   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2583   # <limits.h> exists even on freestanding compilers.
2584   # On the NeXT, cc -E runs the code through the compiler's parser,
2585   # not just through cpp. "Syntax error" is here to catch this case.
2586   cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592 #ifdef __STDC__
2593 # include <limits.h>
2594 #else
2595 # include <assert.h>
2596 #endif
2597                      Syntax error
2598 _ACEOF
2599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } >/dev/null; then
2607   if test -s conftest.err; then
2608     ac_cpp_err=$ac_c_preproc_warn_flag
2609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2610   else
2611     ac_cpp_err=
2612   fi
2613 else
2614   ac_cpp_err=yes
2615 fi
2616 if test -z "$ac_cpp_err"; then
2617   :
2618 else
2619   echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2621
2622   # Broken: fails on valid input.
2623 continue
2624 fi
2625 rm -f conftest.err conftest.$ac_ext
2626
2627   # OK, works on sane cases.  Now check whether non-existent headers
2628   # can be detected and how.
2629   cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635 #include <ac_nonexistent.h>
2636 _ACEOF
2637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2639   ac_status=$?
2640   grep -v '^ *+' conftest.er1 >conftest.err
2641   rm -f conftest.er1
2642   cat conftest.err >&5
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); } >/dev/null; then
2645   if test -s conftest.err; then
2646     ac_cpp_err=$ac_c_preproc_warn_flag
2647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2648   else
2649     ac_cpp_err=
2650   fi
2651 else
2652   ac_cpp_err=yes
2653 fi
2654 if test -z "$ac_cpp_err"; then
2655   # Broken: success on invalid input.
2656 continue
2657 else
2658   echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661   # Passes both tests.
2662 ac_preproc_ok=:
2663 break
2664 fi
2665 rm -f conftest.err conftest.$ac_ext
2666
2667 done
2668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2669 rm -f conftest.err conftest.$ac_ext
2670 if $ac_preproc_ok; then
2671   :
2672 else
2673   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2674 See \`config.log' for more details." >&5
2675 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2676 See \`config.log' for more details." >&2;}
2677    { (exit 1); exit 1; }; }
2678 fi
2679
2680 ac_ext=c
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685
2686
2687 echo "$as_me:$LINENO: checking for egrep" >&5
2688 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2689 if test "${ac_cv_prog_egrep+set}" = set; then
2690   echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2693     then ac_cv_prog_egrep='grep -E'
2694     else ac_cv_prog_egrep='egrep'
2695     fi
2696 fi
2697 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2698 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2699  EGREP=$ac_cv_prog_egrep
2700
2701
2702
2703 echo "$as_me:$LINENO: checking for AIX" >&5
2704 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2705 cat >conftest.$ac_ext <<_ACEOF
2706 /* confdefs.h.  */
2707 _ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h.  */
2711 #ifdef _AIX
2712   yes
2713 #endif
2714
2715 _ACEOF
2716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2717   $EGREP "yes" >/dev/null 2>&1; then
2718   echo "$as_me:$LINENO: result: yes" >&5
2719 echo "${ECHO_T}yes" >&6
2720 cat >>confdefs.h <<\_ACEOF
2721 #define _ALL_SOURCE 1
2722 _ACEOF
2723
2724 else
2725   echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2727 fi
2728 rm -f conftest*
2729
2730
2731
2732 if test $ac_cv_c_compiler_gnu = yes; then
2733     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2734 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2735 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2736   echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738     ac_pattern="Autoconf.*'x'"
2739   cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h.  */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h.  */
2745 #include <sgtty.h>
2746 Autoconf TIOCGETP
2747 _ACEOF
2748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2749   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2750   ac_cv_prog_gcc_traditional=yes
2751 else
2752   ac_cv_prog_gcc_traditional=no
2753 fi
2754 rm -f conftest*
2755
2756
2757   if test $ac_cv_prog_gcc_traditional = no; then
2758     cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h.  */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h.  */
2764 #include <termio.h>
2765 Autoconf TCGETA
2766 _ACEOF
2767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2768   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2769   ac_cv_prog_gcc_traditional=yes
2770 fi
2771 rm -f conftest*
2772
2773   fi
2774 fi
2775 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2776 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2777   if test $ac_cv_prog_gcc_traditional = yes; then
2778     CC="$CC -traditional"
2779   fi
2780 fi
2781
2782 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2783 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2784 if test "${ac_cv_prog_suncc+set}" = set; then
2785   echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787   cat > conftest.c <<EOF
2788 #ifdef __SUNPRO_C
2789   yes;
2790 #endif
2791 EOF
2792 if { ac_try='${CC-cc} -E conftest.c'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2798   ac_cv_prog_suncc=yes
2799 else
2800   ac_cv_prog_suncc=no
2801 fi
2802 fi
2803 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2804 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2805 if test -n "$ac_tool_prefix"; then
2806   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2808 echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2810 if test "${ac_cv_prog_RANLIB+set}" = set; then
2811   echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813   if test -n "$RANLIB"; then
2814   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821   for ac_exec_ext in '' $ac_executable_extensions; do
2822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828 done
2829
2830 fi
2831 fi
2832 RANLIB=$ac_cv_prog_RANLIB
2833 if test -n "$RANLIB"; then
2834   echo "$as_me:$LINENO: result: $RANLIB" >&5
2835 echo "${ECHO_T}$RANLIB" >&6
2836 else
2837   echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2839 fi
2840
2841 fi
2842 if test -z "$ac_cv_prog_RANLIB"; then
2843   ac_ct_RANLIB=$RANLIB
2844   # Extract the first word of "ranlib", so it can be a program name with args.
2845 set dummy ranlib; ac_word=$2
2846 echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2848 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2849   echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851   if test -n "$ac_ct_RANLIB"; then
2852   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857   IFS=$as_save_IFS
2858   test -z "$as_dir" && as_dir=.
2859   for ac_exec_ext in '' $ac_executable_extensions; do
2860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861     ac_cv_prog_ac_ct_RANLIB="ranlib"
2862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863     break 2
2864   fi
2865 done
2866 done
2867
2868   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2869 fi
2870 fi
2871 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2872 if test -n "$ac_ct_RANLIB"; then
2873   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2874 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2875 else
2876   echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2878 fi
2879
2880   RANLIB=$ac_ct_RANLIB
2881 else
2882   RANLIB="$ac_cv_prog_RANLIB"
2883 fi
2884
2885
2886 abs_top_builddir=`pwd`
2887
2888
2889
2890 PACKAGE=freeradius
2891
2892 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2893 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2894 if test "${ac_cv_c_bigendian+set}" = set; then
2895   echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897   # See if sys/param.h defines the BYTE_ORDER macro.
2898 cat >conftest.$ac_ext <<_ACEOF
2899 /* confdefs.h.  */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h.  */
2904 #include <sys/types.h>
2905 #include <sys/param.h>
2906
2907 int
2908 main ()
2909 {
2910 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2911  bogus endian macros
2912 #endif
2913
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920   (eval $ac_compile) 2>conftest.er1
2921   ac_status=$?
2922   grep -v '^ *+' conftest.er1 >conftest.err
2923   rm -f conftest.er1
2924   cat conftest.err >&5
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } &&
2927          { ac_try='test -z "$ac_c_werror_flag"
2928                          || test ! -s conftest.err'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; } &&
2934          { ac_try='test -s conftest.$ac_objext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   # It does; now see whether it defined to BIG_ENDIAN or not.
2941 cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947 #include <sys/types.h>
2948 #include <sys/param.h>
2949
2950 int
2951 main ()
2952 {
2953 #if BYTE_ORDER != BIG_ENDIAN
2954  not big endian
2955 #endif
2956
2957   ;
2958   return 0;
2959 }
2960 _ACEOF
2961 rm -f conftest.$ac_objext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963   (eval $ac_compile) 2>conftest.er1
2964   ac_status=$?
2965   grep -v '^ *+' conftest.er1 >conftest.err
2966   rm -f conftest.er1
2967   cat conftest.err >&5
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); } &&
2970          { ac_try='test -z "$ac_c_werror_flag"
2971                          || test ! -s conftest.err'
2972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973   (eval $ac_try) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; } &&
2977          { ac_try='test -s conftest.$ac_objext'
2978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979   (eval $ac_try) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983   ac_cv_c_bigendian=yes
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 ac_cv_c_bigendian=no
2989 fi
2990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 # It does not; compile a test program.
2996 if test "$cross_compiling" = yes; then
2997   # try to guess the endianness by grepping values into an object file
2998   ac_cv_c_bigendian=unknown
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 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3006 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3007 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3008 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3009 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3010 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3011 int
3012 main ()
3013 {
3014  _ascii (); _ebcdic ();
3015   ;
3016   return 0;
3017 }
3018 _ACEOF
3019 rm -f conftest.$ac_objext
3020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021   (eval $ac_compile) 2>conftest.er1
3022   ac_status=$?
3023   grep -v '^ *+' conftest.er1 >conftest.err
3024   rm -f conftest.er1
3025   cat conftest.err >&5
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); } &&
3028          { ac_try='test -z "$ac_c_werror_flag"
3029                          || test ! -s conftest.err'
3030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031   (eval $ac_try) 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }; } &&
3035          { ac_try='test -s conftest.$ac_objext'
3036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037   (eval $ac_try) 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); }; }; then
3041   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3042   ac_cv_c_bigendian=yes
3043 fi
3044 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3045   if test "$ac_cv_c_bigendian" = unknown; then
3046     ac_cv_c_bigendian=no
3047   else
3048     # finding both strings is unlikely to happen, but who knows?
3049     ac_cv_c_bigendian=unknown
3050   fi
3051 fi
3052 else
3053   echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 fi
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058 else
3059   cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065 int
3066 main ()
3067 {
3068   /* Are we little or big endian?  From Harbison&Steele.  */
3069   union
3070   {
3071     long l;
3072     char c[sizeof (long)];
3073   } u;
3074   u.l = 1;
3075   exit (u.c[sizeof (long) - 1] == 1);
3076 }
3077 _ACEOF
3078 rm -f conftest$ac_exeext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3080   (eval $ac_link) 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
3089   ac_cv_c_bigendian=no
3090 else
3091   echo "$as_me: program exited with status $ac_status" >&5
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 ( exit $ac_status )
3096 ac_cv_c_bigendian=yes
3097 fi
3098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3099 fi
3100 fi
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3102 fi
3103 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3104 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3105 case $ac_cv_c_bigendian in
3106   yes)
3107
3108 cat >>confdefs.h <<\_ACEOF
3109 #define WORDS_BIGENDIAN 1
3110 _ACEOF
3111  ;;
3112   no)
3113      ;;
3114   *)
3115     { { echo "$as_me:$LINENO: error: unknown endianness
3116 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3117 echo "$as_me: error: unknown endianness
3118 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3119    { (exit 1); exit 1; }; } ;;
3120 esac
3121
3122
3123 # Extract the first word of "gmake", so it can be a program name with args.
3124 set dummy gmake; ac_word=$2
3125 echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127 if test "${ac_cv_prog_GMAKE+set}" = set; then
3128   echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130   if test -n "$GMAKE"; then
3131   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136   IFS=$as_save_IFS
3137   test -z "$as_dir" && as_dir=.
3138   for ac_exec_ext in '' $ac_executable_extensions; do
3139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140     ac_cv_prog_GMAKE="yes"
3141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142     break 2
3143   fi
3144 done
3145 done
3146
3147   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3148 fi
3149 fi
3150 GMAKE=$ac_cv_prog_GMAKE
3151 if test -n "$GMAKE"; then
3152   echo "$as_me:$LINENO: result: $GMAKE" >&5
3153 echo "${ECHO_T}$GMAKE" >&6
3154 else
3155   echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6
3157 fi
3158
3159 if test $GMAKE = no; then
3160   # Extract the first word of "make", so it can be a program name with args.
3161 set dummy make; ac_word=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_path_MAKE+set}" = set; then
3165   echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167   case $MAKE in
3168   [\\/]* | ?:[\\/]*)
3169   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3170   ;;
3171   *)
3172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175   IFS=$as_save_IFS
3176   test -z "$as_dir" && as_dir=.
3177   for ac_exec_ext in '' $ac_executable_extensions; do
3178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181     break 2
3182   fi
3183 done
3184 done
3185
3186   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3187   ;;
3188 esac
3189 fi
3190 MAKE=$ac_cv_path_MAKE
3191
3192 if test -n "$MAKE"; then
3193   echo "$as_me:$LINENO: result: $MAKE" >&5
3194 echo "${ECHO_T}$MAKE" >&6
3195 else
3196   echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3198 fi
3199
3200 else
3201   # Extract the first word of "gmake", so it can be a program name with args.
3202 set dummy gmake; ac_word=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_path_MAKE+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   case $MAKE in
3209   [\\/]* | ?:[\\/]*)
3210   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3211   ;;
3212   *)
3213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218   for ac_exec_ext in '' $ac_executable_extensions; do
3219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222     break 2
3223   fi
3224 done
3225 done
3226
3227   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3228   ;;
3229 esac
3230 fi
3231 MAKE=$ac_cv_path_MAKE
3232
3233 if test -n "$MAKE"; then
3234   echo "$as_me:$LINENO: result: $MAKE" >&5
3235 echo "${ECHO_T}$MAKE" >&6
3236 else
3237   echo "$as_me:$LINENO: result: no" >&5
3238 echo "${ECHO_T}no" >&6
3239 fi
3240
3241 fi
3242 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3243 if test -z "$makever"; then
3244   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
3245                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3246 echo "$as_me: error: GNU Make is not installed.  Please download and install it
3247                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3248    { (exit 1); exit 1; }; }
3249 fi
3250
3251   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3252 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3253 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   ac_check_lib_save_LIBS=$LIBS
3257 LIBS="-lltdl  $LIBS"
3258 cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264
3265 /* Override any gcc2 internal prototype to avoid an error.  */
3266 #ifdef __cplusplus
3267 extern "C"
3268 #endif
3269 /* We use char because int might match the return type of a gcc2
3270    builtin and then its argument prototype would still apply.  */
3271 char lt_dlinit ();
3272 int
3273 main ()
3274 {
3275 lt_dlinit ();
3276   ;
3277   return 0;
3278 }
3279 _ACEOF
3280 rm -f conftest.$ac_objext conftest$ac_exeext
3281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3282   (eval $ac_link) 2>conftest.er1
3283   ac_status=$?
3284   grep -v '^ *+' conftest.er1 >conftest.err
3285   rm -f conftest.er1
3286   cat conftest.err >&5
3287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288   (exit $ac_status); } &&
3289          { ac_try='test -z "$ac_c_werror_flag"
3290                          || test ! -s conftest.err'
3291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292   (eval $ac_try) 2>&5
3293   ac_status=$?
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); }; } &&
3296          { ac_try='test -s conftest$ac_exeext'
3297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298   (eval $ac_try) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; }; then
3302   ac_cv_lib_ltdl_lt_dlinit=yes
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307 ac_cv_lib_ltdl_lt_dlinit=no
3308 fi
3309 rm -f conftest.err conftest.$ac_objext \
3310       conftest$ac_exeext conftest.$ac_ext
3311 LIBS=$ac_check_lib_save_LIBS
3312 fi
3313 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3314 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3315 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3316   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3317 else
3318   if test x"$enable_ltdl_install" = xno; then
3319      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3320 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3321    else
3322      enable_ltdl_install=yes
3323    fi
3324
3325 fi
3326
3327   if test x"$enable_ltdl_install" = x"yes"; then
3328     ac_configure_args="$ac_configure_args --enable-ltdl-install"
3329     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3330     LTDLINCL='-I${top_srcdir}/''libltdl'
3331   else
3332     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3333     LIBLTDL="-lltdl"
3334     LTDLINCL=
3335   fi
3336   # For backwards non-gettext consistent compatibility...
3337   INCLTDL="$LTDLINCL"
3338
3339
3340 if test x"$enable_ltdl_install" = x"yes"; then
3341   LTDL_SUBDIRS=libltdl
3342 fi
3343
3344
3345 # Check whether --enable-shared or --disable-shared was given.
3346 if test "${enable_shared+set}" = set; then
3347   enableval="$enable_shared"
3348   p=${PACKAGE-default}
3349     case $enableval in
3350     yes) enable_shared=yes ;;
3351     no) enable_shared=no ;;
3352     *)
3353       enable_shared=no
3354       # Look at the argument we got.  We use all the common list separators.
3355       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3356       for pkg in $enableval; do
3357         IFS="$lt_save_ifs"
3358         if test "X$pkg" = "X$p"; then
3359           enable_shared=yes
3360         fi
3361       done
3362       IFS="$lt_save_ifs"
3363       ;;
3364     esac
3365 else
3366   enable_shared=yes
3367 fi;
3368
3369 # Check whether --enable-static or --disable-static was given.
3370 if test "${enable_static+set}" = set; then
3371   enableval="$enable_static"
3372   p=${PACKAGE-default}
3373     case $enableval in
3374     yes) enable_static=yes ;;
3375     no) enable_static=no ;;
3376     *)
3377      enable_static=no
3378       # Look at the argument we got.  We use all the common list separators.
3379       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3380       for pkg in $enableval; do
3381         IFS="$lt_save_ifs"
3382         if test "X$pkg" = "X$p"; then
3383           enable_static=yes
3384         fi
3385       done
3386       IFS="$lt_save_ifs"
3387       ;;
3388     esac
3389 else
3390   enable_static=yes
3391 fi;
3392
3393 # Check whether --enable-fast-install or --disable-fast-install was given.
3394 if test "${enable_fast_install+set}" = set; then
3395   enableval="$enable_fast_install"
3396   p=${PACKAGE-default}
3397     case $enableval in
3398     yes) enable_fast_install=yes ;;
3399     no) enable_fast_install=no ;;
3400     *)
3401       enable_fast_install=no
3402       # Look at the argument we got.  We use all the common list separators.
3403       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3404       for pkg in $enableval; do
3405         IFS="$lt_save_ifs"
3406         if test "X$pkg" = "X$p"; then
3407           enable_fast_install=yes
3408         fi
3409       done
3410       IFS="$lt_save_ifs"
3411       ;;
3412     esac
3413 else
3414   enable_fast_install=yes
3415 fi;
3416
3417 ac_aux_dir=
3418 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3419   if test -f $ac_dir/install-sh; then
3420     ac_aux_dir=$ac_dir
3421     ac_install_sh="$ac_aux_dir/install-sh -c"
3422     break
3423   elif test -f $ac_dir/install.sh; then
3424     ac_aux_dir=$ac_dir
3425     ac_install_sh="$ac_aux_dir/install.sh -c"
3426     break
3427   elif test -f $ac_dir/shtool; then
3428     ac_aux_dir=$ac_dir
3429     ac_install_sh="$ac_aux_dir/shtool install -c"
3430     break
3431   fi
3432 done
3433 if test -z "$ac_aux_dir"; then
3434   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3435 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3436    { (exit 1); exit 1; }; }
3437 fi
3438 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3439 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3440 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3441
3442 # Make sure we can run config.sub.
3443 $ac_config_sub sun4 >/dev/null 2>&1 ||
3444   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3445 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3446    { (exit 1); exit 1; }; }
3447
3448 echo "$as_me:$LINENO: checking build system type" >&5
3449 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3450 if test "${ac_cv_build+set}" = set; then
3451   echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453   ac_cv_build_alias=$build_alias
3454 test -z "$ac_cv_build_alias" &&
3455   ac_cv_build_alias=`$ac_config_guess`
3456 test -z "$ac_cv_build_alias" &&
3457   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3458 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3459    { (exit 1); exit 1; }; }
3460 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3461   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3462 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3463    { (exit 1); exit 1; }; }
3464
3465 fi
3466 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3467 echo "${ECHO_T}$ac_cv_build" >&6
3468 build=$ac_cv_build
3469 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3470 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3471 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3472
3473
3474 echo "$as_me:$LINENO: checking host system type" >&5
3475 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3476 if test "${ac_cv_host+set}" = set; then
3477   echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479   ac_cv_host_alias=$host_alias
3480 test -z "$ac_cv_host_alias" &&
3481   ac_cv_host_alias=$ac_cv_build_alias
3482 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3483   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3484 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3485    { (exit 1); exit 1; }; }
3486
3487 fi
3488 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3489 echo "${ECHO_T}$ac_cv_host" >&6
3490 host=$ac_cv_host
3491 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3492 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3493 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3494
3495
3496 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3497 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3498 if test "${lt_cv_path_SED+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   # Loop through the user's path and test for sed and gsed.
3502 # Then use that list of sed's as ones to test for truncation.
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506   IFS=$as_save_IFS
3507   test -z "$as_dir" && as_dir=.
3508   for lt_ac_prog in sed gsed; do
3509     for ac_exec_ext in '' $ac_executable_extensions; do
3510       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3511         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3512       fi
3513     done
3514   done
3515 done
3516 lt_ac_max=0
3517 lt_ac_count=0
3518 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3519 # along with /bin/sed that truncates output.
3520 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3521   test ! -f $lt_ac_sed && continue
3522   cat /dev/null > conftest.in
3523   lt_ac_count=0
3524   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3525   # Check for GNU sed and select it if it is found.
3526   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3527     lt_cv_path_SED=$lt_ac_sed
3528     break
3529   fi
3530   while true; do
3531     cat conftest.in conftest.in >conftest.tmp
3532     mv conftest.tmp conftest.in
3533     cp conftest.in conftest.nl
3534     echo >>conftest.nl
3535     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3536     cmp -s conftest.out conftest.nl || break
3537     # 10000 chars as input seems more than enough
3538     test $lt_ac_count -gt 10 && break
3539     lt_ac_count=`expr $lt_ac_count + 1`
3540     if test $lt_ac_count -gt $lt_ac_max; then
3541       lt_ac_max=$lt_ac_count
3542       lt_cv_path_SED=$lt_ac_sed
3543     fi
3544   done
3545 done
3546
3547 fi
3548
3549 SED=$lt_cv_path_SED
3550 echo "$as_me:$LINENO: result: $SED" >&5
3551 echo "${ECHO_T}$SED" >&6
3552
3553
3554 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3555 if test "${with_gnu_ld+set}" = set; then
3556   withval="$with_gnu_ld"
3557   test "$withval" = no || with_gnu_ld=yes
3558 else
3559   with_gnu_ld=no
3560 fi;
3561 ac_prog=ld
3562 if test "$GCC" = yes; then
3563   # Check if gcc -print-prog-name=ld gives a path.
3564   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3565 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3566   case $host in
3567   *-*-mingw*)
3568     # gcc leaves a trailing carriage return which upsets mingw
3569     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3570   *)
3571     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3572   esac
3573   case $ac_prog in
3574     # Accept absolute paths.
3575     [\\/]* | ?:[\\/]*)
3576       re_direlt='/[^/][^/]*/\.\./'
3577       # Canonicalize the pathname of ld
3578       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3579       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3580         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3581       done
3582       test -z "$LD" && LD="$ac_prog"
3583       ;;
3584   "")
3585     # If it fails, then pretend we aren't using GCC.
3586     ac_prog=ld
3587     ;;
3588   *)
3589     # If it is relative, then search for the first ld in PATH.
3590     with_gnu_ld=unknown
3591     ;;
3592   esac
3593 elif test "$with_gnu_ld" = yes; then
3594   echo "$as_me:$LINENO: checking for GNU ld" >&5
3595 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3596 else
3597   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3598 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3599 fi
3600 if test "${lt_cv_path_LD+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   if test -z "$LD"; then
3604   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3605   for ac_dir in $PATH; do
3606     IFS="$lt_save_ifs"
3607     test -z "$ac_dir" && ac_dir=.
3608     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3609       lt_cv_path_LD="$ac_dir/$ac_prog"
3610       # Check to see if the program is GNU ld.  I'd rather use --version,
3611       # but apparently some variants of GNU ld only accept -v.
3612       # Break only if it was the GNU/non-GNU ld that we prefer.
3613       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3614       *GNU* | *'with BFD'*)
3615         test "$with_gnu_ld" != no && break
3616         ;;
3617       *)
3618         test "$with_gnu_ld" != yes && break
3619         ;;
3620       esac
3621     fi
3622   done
3623   IFS="$lt_save_ifs"
3624 else
3625   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3626 fi
3627 fi
3628
3629 LD="$lt_cv_path_LD"
3630 if test -n "$LD"; then
3631   echo "$as_me:$LINENO: result: $LD" >&5
3632 echo "${ECHO_T}$LD" >&6
3633 else
3634   echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3636 fi
3637 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3638 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3639    { (exit 1); exit 1; }; }
3640 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3641 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3642 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3646 case `$LD -v 2>&1 </dev/null` in
3647 *GNU* | *'with BFD'*)
3648   lt_cv_prog_gnu_ld=yes
3649   ;;
3650 *)
3651   lt_cv_prog_gnu_ld=no
3652   ;;
3653 esac
3654 fi
3655 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3656 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3657 with_gnu_ld=$lt_cv_prog_gnu_ld
3658
3659
3660 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3661 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3662 if test "${lt_cv_ld_reload_flag+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   lt_cv_ld_reload_flag='-r'
3666 fi
3667 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3668 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3669 reload_flag=$lt_cv_ld_reload_flag
3670 case $reload_flag in
3671 "" | " "*) ;;
3672 *) reload_flag=" $reload_flag" ;;
3673 esac
3674 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3675 case $host_os in
3676   darwin*)
3677     if test "$GCC" = yes; then
3678       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3679     else
3680       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3681     fi
3682     ;;
3683 esac
3684
3685 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3686 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3687 if test "${lt_cv_path_NM+set}" = set; then
3688   echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690   if test -n "$NM"; then
3691   # Let the user override the test.
3692   lt_cv_path_NM="$NM"
3693 else
3694   lt_nm_to_check="${ac_tool_prefix}nm"
3695   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3696     lt_nm_to_check="$lt_nm_to_check nm"
3697   fi
3698   for lt_tmp_nm in $lt_nm_to_check; do
3699     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3700     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3701       IFS="$lt_save_ifs"
3702       test -z "$ac_dir" && ac_dir=.
3703       tmp_nm="$ac_dir/$lt_tmp_nm"
3704       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3705         # Check to see if the nm accepts a BSD-compat flag.
3706         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3707         #   nm: unknown option "B" ignored
3708         # Tru64's nm complains that /dev/null is an invalid object file
3709         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3710         */dev/null* | *'Invalid file or object type'*)
3711           lt_cv_path_NM="$tmp_nm -B"
3712           break
3713           ;;
3714         *)
3715           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3716           */dev/null*)
3717             lt_cv_path_NM="$tmp_nm -p"
3718             break
3719             ;;
3720           *)
3721             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3722             continue # so that we can try to find one that supports BSD flags
3723             ;;
3724           esac
3725           ;;
3726         esac
3727       fi
3728     done
3729     IFS="$lt_save_ifs"
3730   done
3731   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3732 fi
3733 fi
3734 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3735 echo "${ECHO_T}$lt_cv_path_NM" >&6
3736 NM="$lt_cv_path_NM"
3737
3738 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3739 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3740 LN_S=$as_ln_s
3741 if test "$LN_S" = "ln -s"; then
3742   echo "$as_me:$LINENO: result: yes" >&5
3743 echo "${ECHO_T}yes" >&6
3744 else
3745   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3746 echo "${ECHO_T}no, using $LN_S" >&6
3747 fi
3748
3749 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3750 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3751 if test "${lt_cv_deplibs_check_method+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   lt_cv_file_magic_cmd='$MAGIC_CMD'
3755 lt_cv_file_magic_test_file=
3756 lt_cv_deplibs_check_method='unknown'
3757 # Need to set the preceding variable on all platforms that support
3758 # interlibrary dependencies.
3759 # 'none' -- dependencies not supported.
3760 # `unknown' -- same as none, but documents that we really don't know.
3761 # 'pass_all' -- all dependencies passed with no checks.
3762 # 'test_compile' -- check by making test program.
3763 # 'file_magic [[regex]]' -- check by looking for files in library path
3764 # which responds to the $file_magic_cmd with a given extended regex.
3765 # If you have `file' or equivalent on your system and you're not sure
3766 # whether `pass_all' will *always* work, you probably want this one.
3767
3768 case $host_os in
3769 aix4* | aix5*)
3770   lt_cv_deplibs_check_method=pass_all
3771   ;;
3772
3773 beos*)
3774   lt_cv_deplibs_check_method=pass_all
3775   ;;
3776
3777 bsdi[45]*)
3778   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3779   lt_cv_file_magic_cmd='/usr/bin/file -L'
3780   lt_cv_file_magic_test_file=/shlib/libc.so
3781   ;;
3782
3783 cygwin*)
3784   # func_win32_libid is a shell function defined in ltmain.sh
3785   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3786   lt_cv_file_magic_cmd='func_win32_libid'
3787   ;;
3788
3789 mingw* | pw32*)
3790   # Base MSYS/MinGW do not provide the 'file' command needed by
3791   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3792   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3793   lt_cv_file_magic_cmd='$OBJDUMP -f'
3794   ;;
3795
3796 darwin* | rhapsody*)
3797   lt_cv_deplibs_check_method=pass_all
3798   ;;
3799
3800 freebsd* | kfreebsd*-gnu | dragonfly*)
3801   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3802     case $host_cpu in
3803     i*86 )
3804       # Not sure whether the presence of OpenBSD here was a mistake.
3805       # Let's accept both of them until this is cleared up.
3806       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3807       lt_cv_file_magic_cmd=/usr/bin/file
3808       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3809       ;;
3810     esac
3811   else
3812     lt_cv_deplibs_check_method=pass_all
3813   fi
3814   ;;
3815
3816 gnu*)
3817   lt_cv_deplibs_check_method=pass_all
3818   ;;
3819
3820 hpux10.20* | hpux11*)
3821   lt_cv_file_magic_cmd=/usr/bin/file
3822   case $host_cpu in
3823   ia64*)
3824     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3825     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3826     ;;
3827   hppa*64*)
3828     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]'
3829     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3830     ;;
3831   *)
3832     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3833     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3834     ;;
3835   esac
3836   ;;
3837
3838 interix3*)
3839   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3840   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3841   ;;
3842
3843 irix5* | irix6* | nonstopux*)
3844   case $LD in
3845   *-32|*"-32 ") libmagic=32-bit;;
3846   *-n32|*"-n32 ") libmagic=N32;;
3847   *-64|*"-64 ") libmagic=64-bit;;
3848   *) libmagic=never-match;;
3849   esac
3850   lt_cv_deplibs_check_method=pass_all
3851   ;;
3852
3853 # This must be Linux ELF.
3854 linux*)
3855   lt_cv_deplibs_check_method=pass_all
3856   ;;
3857
3858 netbsd*)
3859   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3860     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3861   else
3862     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3863   fi
3864   ;;
3865
3866 newos6*)
3867   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3868   lt_cv_file_magic_cmd=/usr/bin/file
3869   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3870   ;;
3871
3872 nto-qnx*)
3873   lt_cv_deplibs_check_method=unknown
3874   ;;
3875
3876 openbsd*)
3877   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3878     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3879   else
3880     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3881   fi
3882   ;;
3883
3884 osf3* | osf4* | osf5*)
3885   lt_cv_deplibs_check_method=pass_all
3886   ;;
3887
3888 solaris*)
3889   lt_cv_deplibs_check_method=pass_all
3890   ;;
3891
3892 sysv4 | sysv4.3*)
3893   case $host_vendor in
3894   motorola)
3895     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]'
3896     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3897     ;;
3898   ncr)
3899     lt_cv_deplibs_check_method=pass_all
3900     ;;
3901   sequent)
3902     lt_cv_file_magic_cmd='/bin/file'
3903     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3904     ;;
3905   sni)
3906     lt_cv_file_magic_cmd='/bin/file'
3907     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3908     lt_cv_file_magic_test_file=/lib/libc.so
3909     ;;
3910   siemens)
3911     lt_cv_deplibs_check_method=pass_all
3912     ;;
3913   pc)
3914     lt_cv_deplibs_check_method=pass_all
3915     ;;
3916   esac
3917   ;;
3918
3919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3920   lt_cv_deplibs_check_method=pass_all
3921   ;;
3922 esac
3923
3924 fi
3925 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3926 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3927 file_magic_cmd=$lt_cv_file_magic_cmd
3928 deplibs_check_method=$lt_cv_deplibs_check_method
3929 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3930
3931
3932
3933
3934 # If no C compiler was specified, use CC.
3935 LTCC=${LTCC-"$CC"}
3936
3937 # If no C compiler flags were specified, use CFLAGS.
3938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3939
3940 # Allow CC to be a program name with arguments.
3941 compiler=$CC
3942
3943 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3944 if test "${enable_libtool_lock+set}" = set; then
3945   enableval="$enable_libtool_lock"
3946
3947 fi;
3948 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3949
3950 # Some flags need to be propagated to the compiler or linker for good
3951 # libtool support.
3952 case $host in
3953 ia64-*-hpux*)
3954   # Find out which ABI we are using.
3955   echo 'int i;' > conftest.$ac_ext
3956   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957   (eval $ac_compile) 2>&5
3958   ac_status=$?
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); }; then
3961     case `/usr/bin/file conftest.$ac_objext` in
3962     *ELF-32*)
3963       HPUX_IA64_MODE="32"
3964       ;;
3965     *ELF-64*)
3966       HPUX_IA64_MODE="64"
3967       ;;
3968     esac
3969   fi
3970   rm -rf conftest*
3971   ;;
3972 *-*-irix6*)
3973   # Find out which ABI we are using.
3974   echo '#line 3974 "configure"' > conftest.$ac_ext
3975   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976   (eval $ac_compile) 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); }; then
3980    if test "$lt_cv_prog_gnu_ld" = yes; then
3981     case `/usr/bin/file conftest.$ac_objext` in
3982     *32-bit*)
3983       LD="${LD-ld} -melf32bsmip"
3984       ;;
3985     *N32*)
3986       LD="${LD-ld} -melf32bmipn32"
3987       ;;
3988     *64-bit*)
3989       LD="${LD-ld} -melf64bmip"
3990       ;;
3991     esac
3992    else
3993     case `/usr/bin/file conftest.$ac_objext` in
3994     *32-bit*)
3995       LD="${LD-ld} -32"
3996       ;;
3997     *N32*)
3998       LD="${LD-ld} -n32"
3999       ;;
4000     *64-bit*)
4001       LD="${LD-ld} -64"
4002       ;;
4003     esac
4004    fi
4005   fi
4006   rm -rf conftest*
4007   ;;
4008
4009 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4010   # Find out which ABI we are using.
4011   echo 'int i;' > conftest.$ac_ext
4012   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013   (eval $ac_compile) 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); }; then
4017     case `/usr/bin/file conftest.o` in
4018     *32-bit*)
4019       case $host in
4020         x86_64-*linux*)
4021           LD="${LD-ld} -m elf_i386"
4022           ;;
4023         ppc64-*linux*|powerpc64-*linux*)
4024           LD="${LD-ld} -m elf32ppclinux"
4025           ;;
4026         s390x-*linux*)
4027           LD="${LD-ld} -m elf_s390"
4028           ;;
4029         sparc64-*linux*)
4030           LD="${LD-ld} -m elf32_sparc"
4031           ;;
4032       esac
4033       ;;
4034     *64-bit*)
4035       case $host in
4036         x86_64-*linux*)
4037           LD="${LD-ld} -m elf_x86_64"
4038           ;;
4039         ppc*-*linux*|powerpc*-*linux*)
4040           LD="${LD-ld} -m elf64ppc"
4041           ;;
4042         s390*-*linux*)
4043           LD="${LD-ld} -m elf64_s390"
4044           ;;
4045         sparc*-*linux*)
4046           LD="${LD-ld} -m elf64_sparc"
4047           ;;
4048       esac
4049       ;;
4050     esac
4051   fi
4052   rm -rf conftest*
4053   ;;
4054
4055 *-*-sco3.2v5*)
4056   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4057   SAVE_CFLAGS="$CFLAGS"
4058   CFLAGS="$CFLAGS -belf"
4059   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4060 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4061 if test "${lt_cv_cc_needs_belf+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069
4070      cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h.  */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h.  */
4076
4077 int
4078 main ()
4079 {
4080
4081   ;
4082   return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest.$ac_objext conftest$ac_exeext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4087   (eval $ac_link) 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } &&
4094          { ac_try='test -z "$ac_c_werror_flag"
4095                          || test ! -s conftest.err'
4096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097   (eval $ac_try) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; } &&
4101          { ac_try='test -s conftest$ac_exeext'
4102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103   (eval $ac_try) 2>&5
4104   ac_status=$?
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); }; }; then
4107   lt_cv_cc_needs_belf=yes
4108 else
4109   echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 lt_cv_cc_needs_belf=no
4113 fi
4114 rm -f conftest.err conftest.$ac_objext \
4115       conftest$ac_exeext conftest.$ac_ext
4116      ac_ext=c
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121
4122 fi
4123 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4124 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4125   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4126     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4127     CFLAGS="$SAVE_CFLAGS"
4128   fi
4129   ;;
4130 sparc*-*solaris*)
4131   # Find out which ABI we are using.
4132   echo 'int i;' > conftest.$ac_ext
4133   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134   (eval $ac_compile) 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; then
4138     case `/usr/bin/file conftest.o` in
4139     *64-bit*)
4140       case $lt_cv_prog_gnu_ld in
4141       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4142       *)    LD="${LD-ld} -64" ;;
4143       esac
4144       ;;
4145     esac
4146   fi
4147   rm -rf conftest*
4148   ;;
4149
4150
4151 esac
4152
4153 need_locks="$enable_libtool_lock"
4154
4155
4156 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4157 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4158 if test "${ac_cv_header_stdc+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <stdlib.h>
4168 #include <stdarg.h>
4169 #include <string.h>
4170 #include <float.h>
4171
4172 int
4173 main ()
4174 {
4175
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182   (eval $ac_compile) 2>conftest.er1
4183   ac_status=$?
4184   grep -v '^ *+' conftest.er1 >conftest.err
4185   rm -f conftest.er1
4186   cat conftest.err >&5
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); } &&
4189          { ac_try='test -z "$ac_c_werror_flag"
4190                          || test ! -s conftest.err'
4191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192   (eval $ac_try) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; } &&
4196          { ac_try='test -s conftest.$ac_objext'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; }; then
4202   ac_cv_header_stdc=yes
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 ac_cv_header_stdc=no
4208 fi
4209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210
4211 if test $ac_cv_header_stdc = yes; then
4212   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4213   cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h.  */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h.  */
4219 #include <string.h>
4220
4221 _ACEOF
4222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223   $EGREP "memchr" >/dev/null 2>&1; then
4224   :
4225 else
4226   ac_cv_header_stdc=no
4227 fi
4228 rm -f conftest*
4229
4230 fi
4231
4232 if test $ac_cv_header_stdc = yes; then
4233   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4234   cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h.  */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h.  */
4240 #include <stdlib.h>
4241
4242 _ACEOF
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244   $EGREP "free" >/dev/null 2>&1; then
4245   :
4246 else
4247   ac_cv_header_stdc=no
4248 fi
4249 rm -f conftest*
4250
4251 fi
4252
4253 if test $ac_cv_header_stdc = yes; then
4254   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4255   if test "$cross_compiling" = yes; then
4256   :
4257 else
4258   cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264 #include <ctype.h>
4265 #if ((' ' & 0x0FF) == 0x020)
4266 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4267 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4268 #else
4269 # define ISLOWER(c) \
4270                    (('a' <= (c) && (c) <= 'i') \
4271                      || ('j' <= (c) && (c) <= 'r') \
4272                      || ('s' <= (c) && (c) <= 'z'))
4273 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4274 #endif
4275
4276 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4277 int
4278 main ()
4279 {
4280   int i;
4281   for (i = 0; i < 256; i++)
4282     if (XOR (islower (i), ISLOWER (i))
4283         || toupper (i) != TOUPPER (i))
4284       exit(2);
4285   exit (0);
4286 }
4287 _ACEOF
4288 rm -f conftest$ac_exeext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4290   (eval $ac_link) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295   (eval $ac_try) 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); }; }; then
4299   :
4300 else
4301   echo "$as_me: program exited with status $ac_status" >&5
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 ( exit $ac_status )
4306 ac_cv_header_stdc=no
4307 fi
4308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4309 fi
4310 fi
4311 fi
4312 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4313 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4314 if test $ac_cv_header_stdc = yes; then
4315
4316 cat >>confdefs.h <<\_ACEOF
4317 #define STDC_HEADERS 1
4318 _ACEOF
4319
4320 fi
4321
4322 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4333                   inttypes.h stdint.h unistd.h
4334 do
4335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4336 echo "$as_me:$LINENO: checking for $ac_header" >&5
4337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h.  */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h.  */
4347 $ac_includes_default
4348
4349 #include <$ac_header>
4350 _ACEOF
4351 rm -f conftest.$ac_objext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353   (eval $ac_compile) 2>conftest.er1
4354   ac_status=$?
4355   grep -v '^ *+' conftest.er1 >conftest.err
4356   rm -f conftest.er1
4357   cat conftest.err >&5
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); } &&
4360          { ac_try='test -z "$ac_c_werror_flag"
4361                          || test ! -s conftest.err'
4362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363   (eval $ac_try) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; } &&
4367          { ac_try='test -s conftest.$ac_objext'
4368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369   (eval $ac_try) 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; }; then
4373   eval "$as_ac_Header=yes"
4374 else
4375   echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378 eval "$as_ac_Header=no"
4379 fi
4380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4385   cat >>confdefs.h <<_ACEOF
4386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4387 _ACEOF
4388
4389 fi
4390
4391 done
4392
4393
4394
4395 for ac_header in dlfcn.h
4396 do
4397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4399   echo "$as_me:$LINENO: checking for $ac_header" >&5
4400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 fi
4404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4406 else
4407   # Is the header compilable?
4408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h.  */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h.  */
4416 $ac_includes_default
4417 #include <$ac_header>
4418 _ACEOF
4419 rm -f conftest.$ac_objext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421   (eval $ac_compile) 2>conftest.er1
4422   ac_status=$?
4423   grep -v '^ *+' conftest.er1 >conftest.err
4424   rm -f conftest.er1
4425   cat conftest.err >&5
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); } &&
4428          { ac_try='test -z "$ac_c_werror_flag"
4429                          || test ! -s conftest.err'
4430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431   (eval $ac_try) 2>&5
4432   ac_status=$?
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); }; } &&
4435          { ac_try='test -s conftest.$ac_objext'
4436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437   (eval $ac_try) 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); }; }; then
4441   ac_header_compiler=yes
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446 ac_header_compiler=no
4447 fi
4448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4450 echo "${ECHO_T}$ac_header_compiler" >&6
4451
4452 # Is the header present?
4453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h.  */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h.  */
4461 #include <$ac_header>
4462 _ACEOF
4463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4465   ac_status=$?
4466   grep -v '^ *+' conftest.er1 >conftest.err
4467   rm -f conftest.er1
4468   cat conftest.err >&5
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); } >/dev/null; then
4471   if test -s conftest.err; then
4472     ac_cpp_err=$ac_c_preproc_warn_flag
4473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4474   else
4475     ac_cpp_err=
4476   fi
4477 else
4478   ac_cpp_err=yes
4479 fi
4480 if test -z "$ac_cpp_err"; then
4481   ac_header_preproc=yes
4482 else
4483   echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4485
4486   ac_header_preproc=no
4487 fi
4488 rm -f conftest.err conftest.$ac_ext
4489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4490 echo "${ECHO_T}$ac_header_preproc" >&6
4491
4492 # So?  What about this header?
4493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4494   yes:no: )
4495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4499     ac_header_preproc=yes
4500     ;;
4501   no:yes:* )
4502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4514     (
4515       cat <<\_ASBOX
4516 ## ------------------------------------------ ##
4517 ## Report this to the AC_PACKAGE_NAME lists.  ##
4518 ## ------------------------------------------ ##
4519 _ASBOX
4520     ) |
4521       sed "s/^/$as_me: WARNING:     /" >&2
4522     ;;
4523 esac
4524 echo "$as_me:$LINENO: checking for $ac_header" >&5
4525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   eval "$as_ac_Header=\$ac_header_preproc"
4530 fi
4531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4533
4534 fi
4535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4536   cat >>confdefs.h <<_ACEOF
4537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4538 _ACEOF
4539
4540 fi
4541
4542 done
4543
4544 ac_ext=cc
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4549 if test -n "$ac_tool_prefix"; then
4550   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4551   do
4552     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4554 echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556 if test "${ac_cv_prog_CXX+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   if test -n "$CXX"; then
4560   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567   for ac_exec_ext in '' $ac_executable_extensions; do
4568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571     break 2
4572   fi
4573 done
4574 done
4575
4576 fi
4577 fi
4578 CXX=$ac_cv_prog_CXX
4579 if test -n "$CXX"; then
4580   echo "$as_me:$LINENO: result: $CXX" >&5
4581 echo "${ECHO_T}$CXX" >&6
4582 else
4583   echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6
4585 fi
4586
4587     test -n "$CXX" && break
4588   done
4589 fi
4590 if test -z "$CXX"; then
4591   ac_ct_CXX=$CXX
4592   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4593 do
4594   # Extract the first word of "$ac_prog", so it can be a program name with args.
4595 set dummy $ac_prog; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test -n "$ac_ct_CXX"; then
4602   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611     ac_cv_prog_ac_ct_CXX="$ac_prog"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617
4618 fi
4619 fi
4620 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621 if test -n "$ac_ct_CXX"; then
4622   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4623 echo "${ECHO_T}$ac_ct_CXX" >&6
4624 else
4625   echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4627 fi
4628
4629   test -n "$ac_ct_CXX" && break
4630 done
4631 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4632
4633   CXX=$ac_ct_CXX
4634 fi
4635
4636
4637 # Provide some information about the compiler.
4638 echo "$as_me:$LINENO:" \
4639      "checking for C++ compiler version" >&5
4640 ac_compiler=`set X $ac_compile; echo $2`
4641 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4642   (eval $ac_compiler --version </dev/null >&5) 2>&5
4643   ac_status=$?
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); }
4646 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4647   (eval $ac_compiler -v </dev/null >&5) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }
4651 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4652   (eval $ac_compiler -V </dev/null >&5) 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }
4656
4657 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4658 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4659 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h.  */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h.  */
4668
4669 int
4670 main ()
4671 {
4672 #ifndef __GNUC__
4673        choke me
4674 #endif
4675
4676   ;
4677   return 0;
4678 }
4679 _ACEOF
4680 rm -f conftest.$ac_objext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682   (eval $ac_compile) 2>conftest.er1
4683   ac_status=$?
4684   grep -v '^ *+' conftest.er1 >conftest.err
4685   rm -f conftest.er1
4686   cat conftest.err >&5
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); } &&
4689          { ac_try='test -z "$ac_cxx_werror_flag"
4690                          || test ! -s conftest.err'
4691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692   (eval $ac_try) 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; } &&
4696          { ac_try='test -s conftest.$ac_objext'
4697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698   (eval $ac_try) 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); }; }; then
4702   ac_compiler_gnu=yes
4703 else
4704   echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4706
4707 ac_compiler_gnu=no
4708 fi
4709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4711
4712 fi
4713 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4714 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4715 GXX=`test $ac_compiler_gnu = yes && echo yes`
4716 ac_test_CXXFLAGS=${CXXFLAGS+set}
4717 ac_save_CXXFLAGS=$CXXFLAGS
4718 CXXFLAGS="-g"
4719 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4720 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4721 if test "${ac_cv_prog_cxx_g+set}" = set; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724   cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730
4731 int
4732 main ()
4733 {
4734
4735   ;
4736   return 0;
4737 }
4738 _ACEOF
4739 rm -f conftest.$ac_objext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741   (eval $ac_compile) 2>conftest.er1
4742   ac_status=$?
4743   grep -v '^ *+' conftest.er1 >conftest.err
4744   rm -f conftest.er1
4745   cat conftest.err >&5
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } &&
4748          { ac_try='test -z "$ac_cxx_werror_flag"
4749                          || test ! -s conftest.err'
4750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751   (eval $ac_try) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }; } &&
4755          { ac_try='test -s conftest.$ac_objext'
4756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757   (eval $ac_try) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; }; then
4761   ac_cv_prog_cxx_g=yes
4762 else
4763   echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 ac_cv_prog_cxx_g=no
4767 fi
4768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4771 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4772 if test "$ac_test_CXXFLAGS" = set; then
4773   CXXFLAGS=$ac_save_CXXFLAGS
4774 elif test $ac_cv_prog_cxx_g = yes; then
4775   if test "$GXX" = yes; then
4776     CXXFLAGS="-g -O2"
4777   else
4778     CXXFLAGS="-g"
4779   fi
4780 else
4781   if test "$GXX" = yes; then
4782     CXXFLAGS="-O2"
4783   else
4784     CXXFLAGS=
4785   fi
4786 fi
4787 for ac_declaration in \
4788    '' \
4789    'extern "C" void std::exit (int) throw (); using std::exit;' \
4790    'extern "C" void std::exit (int); using std::exit;' \
4791    'extern "C" void exit (int) throw ();' \
4792    'extern "C" void exit (int);' \
4793    'void exit (int);'
4794 do
4795   cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h.  */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h.  */
4801 $ac_declaration
4802 #include <stdlib.h>
4803 int
4804 main ()
4805 {
4806 exit (42);
4807   ;
4808   return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813   (eval $ac_compile) 2>conftest.er1
4814   ac_status=$?
4815   grep -v '^ *+' conftest.er1 >conftest.err
4816   rm -f conftest.er1
4817   cat conftest.err >&5
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); } &&
4820          { ac_try='test -z "$ac_cxx_werror_flag"
4821                          || test ! -s conftest.err'
4822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823   (eval $ac_try) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; } &&
4827          { ac_try='test -s conftest.$ac_objext'
4828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829   (eval $ac_try) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); }; }; then
4833   :
4834 else
4835   echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838 continue
4839 fi
4840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841   cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h.  */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h.  */
4847 $ac_declaration
4848 int
4849 main ()
4850 {
4851 exit (42);
4852   ;
4853   return 0;
4854 }
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858   (eval $ac_compile) 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } &&
4865          { ac_try='test -z "$ac_cxx_werror_flag"
4866                          || test ! -s conftest.err'
4867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; } &&
4872          { ac_try='test -s conftest.$ac_objext'
4873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874   (eval $ac_try) 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; }; then
4878   break
4879 else
4880   echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 fi
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885 done
4886 rm -f conftest*
4887 if test -n "$ac_declaration"; then
4888   echo '#ifdef __cplusplus' >>confdefs.h
4889   echo $ac_declaration      >>confdefs.h
4890   echo '#endif'             >>confdefs.h
4891 fi
4892
4893 ac_ext=cc
4894 ac_cpp='$CXXCPP $CPPFLAGS'
4895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4898
4899
4900
4901 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4902     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4903     (test "X$CXX" != "Xg++"))) ; then
4904   ac_ext=cc
4905 ac_cpp='$CXXCPP $CPPFLAGS'
4906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4909 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4910 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4911 if test -z "$CXXCPP"; then
4912   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4913   echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915       # Double quotes because CXXCPP needs to be expanded
4916     for CXXCPP in "$CXX -E" "/lib/cpp"
4917     do
4918       ac_preproc_ok=false
4919 for ac_cxx_preproc_warn_flag in '' yes
4920 do
4921   # Use a header file that comes with gcc, so configuring glibc
4922   # with a fresh cross-compiler works.
4923   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924   # <limits.h> exists even on freestanding compilers.
4925   # On the NeXT, cc -E runs the code through the compiler's parser,
4926   # not just through cpp. "Syntax error" is here to catch this case.
4927   cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h.  */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h.  */
4933 #ifdef __STDC__
4934 # include <limits.h>
4935 #else
4936 # include <assert.h>
4937 #endif
4938                      Syntax error
4939 _ACEOF
4940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4942   ac_status=$?
4943   grep -v '^ *+' conftest.er1 >conftest.err
4944   rm -f conftest.er1
4945   cat conftest.err >&5
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); } >/dev/null; then
4948   if test -s conftest.err; then
4949     ac_cpp_err=$ac_cxx_preproc_warn_flag
4950     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4951   else
4952     ac_cpp_err=
4953   fi
4954 else
4955   ac_cpp_err=yes
4956 fi
4957 if test -z "$ac_cpp_err"; then
4958   :
4959 else
4960   echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963   # Broken: fails on valid input.
4964 continue
4965 fi
4966 rm -f conftest.err conftest.$ac_ext
4967
4968   # OK, works on sane cases.  Now check whether non-existent headers
4969   # can be detected and how.
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 #include <ac_nonexistent.h>
4977 _ACEOF
4978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4980   ac_status=$?
4981   grep -v '^ *+' conftest.er1 >conftest.err
4982   rm -f conftest.er1
4983   cat conftest.err >&5
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); } >/dev/null; then
4986   if test -s conftest.err; then
4987     ac_cpp_err=$ac_cxx_preproc_warn_flag
4988     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4989   else
4990     ac_cpp_err=
4991   fi
4992 else
4993   ac_cpp_err=yes
4994 fi
4995 if test -z "$ac_cpp_err"; then
4996   # Broken: success on invalid input.
4997 continue
4998 else
4999   echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002   # Passes both tests.
5003 ac_preproc_ok=:
5004 break
5005 fi
5006 rm -f conftest.err conftest.$ac_ext
5007
5008 done
5009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5010 rm -f conftest.err conftest.$ac_ext
5011 if $ac_preproc_ok; then
5012   break
5013 fi
5014
5015     done
5016     ac_cv_prog_CXXCPP=$CXXCPP
5017
5018 fi
5019   CXXCPP=$ac_cv_prog_CXXCPP
5020 else
5021   ac_cv_prog_CXXCPP=$CXXCPP
5022 fi
5023 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5024 echo "${ECHO_T}$CXXCPP" >&6
5025 ac_preproc_ok=false
5026 for ac_cxx_preproc_warn_flag in '' yes
5027 do
5028   # Use a header file that comes with gcc, so configuring glibc
5029   # with a fresh cross-compiler works.
5030   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031   # <limits.h> exists even on freestanding compilers.
5032   # On the NeXT, cc -E runs the code through the compiler's parser,
5033   # not just through cpp. "Syntax error" is here to catch this case.
5034   cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h.  */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h.  */
5040 #ifdef __STDC__
5041 # include <limits.h>
5042 #else
5043 # include <assert.h>
5044 #endif
5045                      Syntax error
5046 _ACEOF
5047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
5055   if test -s conftest.err; then
5056     ac_cpp_err=$ac_cxx_preproc_warn_flag
5057     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5058   else
5059     ac_cpp_err=
5060   fi
5061 else
5062   ac_cpp_err=yes
5063 fi
5064 if test -z "$ac_cpp_err"; then
5065   :
5066 else
5067   echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5069
5070   # Broken: fails on valid input.
5071 continue
5072 fi
5073 rm -f conftest.err conftest.$ac_ext
5074
5075   # OK, works on sane cases.  Now check whether non-existent headers
5076   # can be detected and how.
5077   cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h.  */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h.  */
5083 #include <ac_nonexistent.h>
5084 _ACEOF
5085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087   ac_status=$?
5088   grep -v '^ *+' conftest.er1 >conftest.err
5089   rm -f conftest.er1
5090   cat conftest.err >&5
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); } >/dev/null; then
5093   if test -s conftest.err; then
5094     ac_cpp_err=$ac_cxx_preproc_warn_flag
5095     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5096   else
5097     ac_cpp_err=
5098   fi
5099 else
5100   ac_cpp_err=yes
5101 fi
5102 if test -z "$ac_cpp_err"; then
5103   # Broken: success on invalid input.
5104 continue
5105 else
5106   echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5108
5109   # Passes both tests.
5110 ac_preproc_ok=:
5111 break
5112 fi
5113 rm -f conftest.err conftest.$ac_ext
5114
5115 done
5116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117 rm -f conftest.err conftest.$ac_ext
5118 if $ac_preproc_ok; then
5119   :
5120 else
5121   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5122 See \`config.log' for more details." >&5
5123 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5124 See \`config.log' for more details." >&2;}
5125    { (exit 1); exit 1; }; }
5126 fi
5127
5128 ac_ext=cc
5129 ac_cpp='$CXXCPP $CPPFLAGS'
5130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5133
5134 fi
5135
5136
5137 ac_ext=f
5138 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5139 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5141 if test -n "$ac_tool_prefix"; then
5142   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5143   do
5144     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_prog_F77+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   if test -n "$F77"; then
5152   ac_cv_prog_F77="$F77" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159   for ac_exec_ext in '' $ac_executable_extensions; do
5160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166 done
5167
5168 fi
5169 fi
5170 F77=$ac_cv_prog_F77
5171 if test -n "$F77"; then
5172   echo "$as_me:$LINENO: result: $F77" >&5
5173 echo "${ECHO_T}$F77" >&6
5174 else
5175   echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5177 fi
5178
5179     test -n "$F77" && break
5180   done
5181 fi
5182 if test -z "$F77"; then
5183   ac_ct_F77=$F77
5184   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5185 do
5186   # Extract the first word of "$ac_prog", so it can be a program name with args.
5187 set dummy $ac_prog; ac_word=$2
5188 echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   if test -n "$ac_ct_F77"; then
5194   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   test -z "$as_dir" && as_dir=.
5201   for ac_exec_ext in '' $ac_executable_extensions; do
5202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203     ac_cv_prog_ac_ct_F77="$ac_prog"
5204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205     break 2
5206   fi
5207 done
5208 done
5209
5210 fi
5211 fi
5212 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5213 if test -n "$ac_ct_F77"; then
5214   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5215 echo "${ECHO_T}$ac_ct_F77" >&6
5216 else
5217   echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6
5219 fi
5220
5221   test -n "$ac_ct_F77" && break
5222 done
5223
5224   F77=$ac_ct_F77
5225 fi
5226
5227
5228 # Provide some information about the compiler.
5229 echo "$as_me:5229:" \
5230      "checking for Fortran 77 compiler version" >&5
5231 ac_compiler=`set X $ac_compile; echo $2`
5232 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5233   (eval $ac_compiler --version </dev/null >&5) 2>&5
5234   ac_status=$?
5235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); }
5237 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5238   (eval $ac_compiler -v </dev/null >&5) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }
5242 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5243   (eval $ac_compiler -V </dev/null >&5) 2>&5
5244   ac_status=$?
5245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246   (exit $ac_status); }
5247 rm -f a.out
5248
5249 # If we don't use `.F' as extension, the preprocessor is not run on the
5250 # input file.  (Note that this only needs to work for GNU compilers.)
5251 ac_save_ext=$ac_ext
5252 ac_ext=F
5253 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5254 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5255 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258   cat >conftest.$ac_ext <<_ACEOF
5259       program main
5260 #ifndef __GNUC__
5261        choke me
5262 #endif
5263
5264       end
5265 _ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268   (eval $ac_compile) 2>conftest.er1
5269   ac_status=$?
5270   grep -v '^ *+' conftest.er1 >conftest.err
5271   rm -f conftest.er1
5272   cat conftest.err >&5
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); } &&
5275          { ac_try='test -z "$ac_f77_werror_flag"
5276                          || test ! -s conftest.err'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; } &&
5282          { ac_try='test -s conftest.$ac_objext'
5283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284   (eval $ac_try) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); }; }; then
5288   ac_compiler_gnu=yes
5289 else
5290   echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5292
5293 ac_compiler_gnu=no
5294 fi
5295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5297
5298 fi
5299 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5300 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5301 ac_ext=$ac_save_ext
5302 ac_test_FFLAGS=${FFLAGS+set}
5303 ac_save_FFLAGS=$FFLAGS
5304 FFLAGS=
5305 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5306 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5307 if test "${ac_cv_prog_f77_g+set}" = set; then
5308   echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310   FFLAGS=-g
5311 cat >conftest.$ac_ext <<_ACEOF
5312       program main
5313
5314       end
5315 _ACEOF
5316 rm -f conftest.$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318   (eval $ac_compile) 2>conftest.er1
5319   ac_status=$?
5320   grep -v '^ *+' conftest.er1 >conftest.err
5321   rm -f conftest.er1
5322   cat conftest.err >&5
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); } &&
5325          { ac_try='test -z "$ac_f77_werror_flag"
5326                          || test ! -s conftest.err'
5327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328   (eval $ac_try) 2>&5
5329   ac_status=$?
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); }; } &&
5332          { ac_try='test -s conftest.$ac_objext'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; }; then
5338   ac_cv_prog_f77_g=yes
5339 else
5340   echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 ac_cv_prog_f77_g=no
5344 fi
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346
5347 fi
5348 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5349 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5350 if test "$ac_test_FFLAGS" = set; then
5351   FFLAGS=$ac_save_FFLAGS
5352 elif test $ac_cv_prog_f77_g = yes; then
5353   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5354     FFLAGS="-g -O2"
5355   else
5356     FFLAGS="-g"
5357   fi
5358 else
5359   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5360     FFLAGS="-O2"
5361   else
5362     FFLAGS=
5363   fi
5364 fi
5365
5366 G77=`test $ac_compiler_gnu = yes && echo yes`
5367 ac_ext=c
5368 ac_cpp='$CPP $CPPFLAGS'
5369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372
5373
5374
5375 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5376
5377 # find the maximum length of command line arguments
5378 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5379 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5380 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383     i=0
5384   teststring="ABCD"
5385
5386   case $build_os in
5387   msdosdjgpp*)
5388     # On DJGPP, this test can blow up pretty badly due to problems in libc
5389     # (any single argument exceeding 2000 bytes causes a buffer overrun
5390     # during glob expansion).  Even if it were fixed, the result of this
5391     # check would be larger than it should be.
5392     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5393     ;;
5394
5395   gnu*)
5396     # Under GNU Hurd, this test is not required because there is
5397     # no limit to the length of command line arguments.
5398     # Libtool will interpret -1 as no limit whatsoever
5399     lt_cv_sys_max_cmd_len=-1;
5400     ;;
5401
5402   cygwin* | mingw*)
5403     # On Win9x/ME, this test blows up -- it succeeds, but takes
5404     # about 5 minutes as the teststring grows exponentially.
5405     # Worse, since 9x/ME are not pre-emptively multitasking,
5406     # you end up with a "frozen" computer, even though with patience
5407     # the test eventually succeeds (with a max line length of 256k).
5408     # Instead, let's just punt: use the minimum linelength reported by
5409     # all of the supported platforms: 8192 (on NT/2K/XP).
5410     lt_cv_sys_max_cmd_len=8192;
5411     ;;
5412
5413   amigaos*)
5414     # On AmigaOS with pdksh, this test takes hours, literally.
5415     # So we just punt and use a minimum line length of 8192.
5416     lt_cv_sys_max_cmd_len=8192;
5417     ;;
5418
5419   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5420     # This has been around since 386BSD, at least.  Likely further.
5421     if test -x /sbin/sysctl; then
5422       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5423     elif test -x /usr/sbin/sysctl; then
5424       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5425     else
5426       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5427     fi
5428     # And add a safety zone
5429     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5430     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5431     ;;
5432
5433   interix*)
5434     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5435     lt_cv_sys_max_cmd_len=196608
5436     ;;
5437
5438   osf*)
5439     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5440     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5441     # nice to cause kernel panics so lets avoid the loop below.
5442     # First set a reasonable default.
5443     lt_cv_sys_max_cmd_len=16384
5444     #
5445     if test -x /sbin/sysconfig; then
5446       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5447         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5448       esac
5449     fi
5450     ;;
5451   sco3.2v5*)
5452     lt_cv_sys_max_cmd_len=102400
5453     ;;
5454   sysv5* | sco5v6* | sysv4.2uw2*)
5455     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5456     if test -n "$kargmax"; then
5457       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5458     else
5459       lt_cv_sys_max_cmd_len=32768
5460     fi
5461     ;;
5462   *)
5463     # If test is not a shell built-in, we'll probably end up computing a
5464     # maximum length that is only half of the actual maximum length, but
5465     # we can't tell.
5466     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5467     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5468                = "XX$teststring") >/dev/null 2>&1 &&
5469             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5470             lt_cv_sys_max_cmd_len=$new_result &&
5471             test $i != 17 # 1/2 MB should be enough
5472     do
5473       i=`expr $i + 1`
5474       teststring=$teststring$teststring
5475     done
5476     teststring=
5477     # Add a significant safety factor because C++ compilers can tack on massive
5478     # amounts of additional arguments before passing them to the linker.
5479     # It appears as though 1/2 is a usable value.
5480     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5481     ;;
5482   esac
5483
5484 fi
5485
5486 if test -n $lt_cv_sys_max_cmd_len ; then
5487   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5488 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5489 else
5490   echo "$as_me:$LINENO: result: none" >&5
5491 echo "${ECHO_T}none" >&6
5492 fi
5493
5494
5495
5496
5497 # Check for command to grab the raw symbol name followed by C symbol from nm.
5498 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5499 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5500 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5501   echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503
5504 # These are sane defaults that work on at least a few old systems.
5505 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5506
5507 # Character class describing NM global symbol codes.
5508 symcode='[BCDEGRST]'
5509
5510 # Regexp to match symbols that can be accessed directly from C.
5511 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5512
5513 # Transform an extracted symbol line into a proper C declaration
5514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5515
5516 # Transform an extracted symbol line into symbol name and symbol address
5517 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'"
5518
5519 # Define system-specific variables.
5520 case $host_os in
5521 aix*)
5522   symcode='[BCDT]'
5523   ;;
5524 cygwin* | mingw* | pw32*)
5525   symcode='[ABCDGISTW]'
5526   ;;
5527 hpux*) # Its linker distinguishes data from code symbols
5528   if test "$host_cpu" = ia64; then
5529     symcode='[ABCDEGRST]'
5530   fi
5531   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5532   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'"
5533   ;;
5534 linux*)
5535   if test "$host_cpu" = ia64; then
5536     symcode='[ABCDGIRSTW]'
5537     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5538     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'"
5539   fi
5540   ;;
5541 irix* | nonstopux*)
5542   symcode='[BCDEGRST]'
5543   ;;
5544 osf*)
5545   symcode='[BCDEGQRST]'
5546   ;;
5547 solaris*)
5548   symcode='[BDRT]'
5549   ;;
5550 sco3.2v5*)
5551   symcode='[DT]'
5552   ;;
5553 sysv4.2uw2*)
5554   symcode='[DT]'
5555   ;;
5556 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5557   symcode='[ABDT]'
5558   ;;
5559 sysv4)
5560   symcode='[DFNSTU]'
5561   ;;
5562 esac
5563
5564 # Handle CRLF in mingw tool chain
5565 opt_cr=
5566 case $build_os in
5567 mingw*)
5568   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5569   ;;
5570 esac
5571
5572 # If we're using GNU nm, then use its standard symbol codes.
5573 case `$NM -V 2>&1` in
5574 *GNU* | *'with BFD'*)
5575   symcode='[ABCDGIRSTW]' ;;
5576 esac
5577
5578 # Try without a prefix undercore, then with it.
5579 for ac_symprfx in "" "_"; do
5580
5581   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5582   symxfrm="\\1 $ac_symprfx\\2 \\2"
5583
5584   # Write the raw and C identifiers.
5585   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5586
5587   # Check to see that the pipe works correctly.
5588   pipe_works=no
5589
5590   rm -f conftest*
5591   cat > conftest.$ac_ext <<EOF
5592 #ifdef __cplusplus
5593 extern "C" {
5594 #endif
5595 char nm_test_var;
5596 void nm_test_func(){}
5597 #ifdef __cplusplus
5598 }
5599 #endif
5600 int main(){nm_test_var='a';nm_test_func();return(0);}
5601 EOF
5602
5603   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5604   (eval $ac_compile) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); }; then
5608     # Now try to grab the symbols.
5609     nlist=conftest.nm
5610     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5611   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); } && test -s "$nlist"; then
5615       # Try sorting and uniquifying the output.
5616       if sort "$nlist" | uniq > "$nlist"T; then
5617         mv -f "$nlist"T "$nlist"
5618       else
5619         rm -f "$nlist"T
5620       fi
5621
5622       # Make sure that we snagged all the symbols we need.
5623       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5624         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5625           cat <<EOF > conftest.$ac_ext
5626 #ifdef __cplusplus
5627 extern "C" {
5628 #endif
5629
5630 EOF
5631           # Now generate the symbol file.
5632           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5633
5634           cat <<EOF >> conftest.$ac_ext
5635 #if defined (__STDC__) && __STDC__
5636 # define lt_ptr_t void *
5637 #else
5638 # define lt_ptr_t char *
5639 # define const
5640 #endif
5641
5642 /* The mapping between symbol names and symbols. */
5643 const struct {
5644   const char *name;
5645   lt_ptr_t address;
5646 }
5647 lt_preloaded_symbols[] =
5648 {
5649 EOF
5650           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5651           cat <<\EOF >> conftest.$ac_ext
5652   {0, (lt_ptr_t) 0}
5653 };
5654
5655 #ifdef __cplusplus
5656 }
5657 #endif
5658 EOF
5659           # Now try linking the two files.
5660           mv conftest.$ac_objext conftstm.$ac_objext
5661           lt_save_LIBS="$LIBS"
5662           lt_save_CFLAGS="$CFLAGS"
5663           LIBS="conftstm.$ac_objext"
5664           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5665           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666   (eval $ac_link) 2>&5
5667   ac_status=$?
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5670             pipe_works=yes
5671           fi
5672           LIBS="$lt_save_LIBS"
5673           CFLAGS="$lt_save_CFLAGS"
5674         else
5675           echo "cannot find nm_test_func in $nlist" >&5
5676         fi
5677       else
5678         echo "cannot find nm_test_var in $nlist" >&5
5679       fi
5680     else
5681       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5682     fi
5683   else
5684     echo "$progname: failed program was:" >&5
5685     cat conftest.$ac_ext >&5
5686   fi
5687   rm -f conftest* conftst*
5688
5689   # Do not use the global_symbol_pipe unless it works.
5690   if test "$pipe_works" = yes; then
5691     break
5692   else
5693     lt_cv_sys_global_symbol_pipe=
5694   fi
5695 done
5696
5697 fi
5698
5699 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5700   lt_cv_sys_global_symbol_to_cdecl=
5701 fi
5702 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5703   echo "$as_me:$LINENO: result: failed" >&5
5704 echo "${ECHO_T}failed" >&6
5705 else
5706   echo "$as_me:$LINENO: result: ok" >&5
5707 echo "${ECHO_T}ok" >&6
5708 fi
5709
5710 echo "$as_me:$LINENO: checking for objdir" >&5
5711 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5712 if test "${lt_cv_objdir+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   rm -f .libs 2>/dev/null
5716 mkdir .libs 2>/dev/null
5717 if test -d .libs; then
5718   lt_cv_objdir=.libs
5719 else
5720   # MS-DOS does not allow filenames that begin with a dot.
5721   lt_cv_objdir=_libs
5722 fi
5723 rmdir .libs 2>/dev/null
5724 fi
5725 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5726 echo "${ECHO_T}$lt_cv_objdir" >&6
5727 objdir=$lt_cv_objdir
5728
5729
5730
5731
5732
5733 case $host_os in
5734 aix3*)
5735   # AIX sometimes has problems with the GCC collect2 program.  For some
5736   # reason, if we set the COLLECT_NAMES environment variable, the problems
5737   # vanish in a puff of smoke.
5738   if test "X${COLLECT_NAMES+set}" != Xset; then
5739     COLLECT_NAMES=
5740     export COLLECT_NAMES
5741   fi
5742   ;;
5743 esac
5744
5745 # Sed substitution that helps us do robust quoting.  It backslashifies
5746 # metacharacters that are still active within double-quoted strings.
5747 Xsed='sed -e 1s/^X//'
5748 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5749
5750 # Same as above, but do not quote variable references.
5751 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5752
5753 # Sed substitution to delay expansion of an escaped shell variable in a
5754 # double_quote_subst'ed string.
5755 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5756
5757 # Sed substitution to avoid accidental globbing in evaled expressions
5758 no_glob_subst='s/\*/\\\*/g'
5759
5760 # Constants:
5761 rm="rm -f"
5762
5763 # Global variables:
5764 default_ofile=libtool
5765 can_build_shared=yes
5766
5767 # All known linkers require a `.a' archive for static linking (except MSVC,
5768 # which needs '.lib').
5769 libext=a
5770 ltmain="$ac_aux_dir/ltmain.sh"
5771 ofile="$default_ofile"
5772 with_gnu_ld="$lt_cv_prog_gnu_ld"
5773
5774 if test -n "$ac_tool_prefix"; then
5775   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5776 set dummy ${ac_tool_prefix}ar; ac_word=$2
5777 echo "$as_me:$LINENO: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5779 if test "${ac_cv_prog_AR+set}" = set; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   if test -n "$AR"; then
5783   ac_cv_prog_AR="$AR" # Let the user override the test.
5784 else
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH
5787 do
5788   IFS=$as_save_IFS
5789   test -z "$as_dir" && as_dir=.
5790   for ac_exec_ext in '' $ac_executable_extensions; do
5791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792     ac_cv_prog_AR="${ac_tool_prefix}ar"
5793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794     break 2
5795   fi
5796 done
5797 done
5798
5799 fi
5800 fi
5801 AR=$ac_cv_prog_AR
5802 if test -n "$AR"; then
5803   echo "$as_me:$LINENO: result: $AR" >&5
5804 echo "${ECHO_T}$AR" >&6
5805 else
5806   echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5808 fi
5809
5810 fi
5811 if test -z "$ac_cv_prog_AR"; then
5812   ac_ct_AR=$AR
5813   # Extract the first word of "ar", so it can be a program name with args.
5814 set dummy ar; ac_word=$2
5815 echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5817 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5818   echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820   if test -n "$ac_ct_AR"; then
5821   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5825 do
5826   IFS=$as_save_IFS
5827   test -z "$as_dir" && as_dir=.
5828   for ac_exec_ext in '' $ac_executable_extensions; do
5829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830     ac_cv_prog_ac_ct_AR="ar"
5831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832     break 2
5833   fi
5834 done
5835 done
5836
5837   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5838 fi
5839 fi
5840 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5841 if test -n "$ac_ct_AR"; then
5842   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5843 echo "${ECHO_T}$ac_ct_AR" >&6
5844 else
5845   echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6
5847 fi
5848
5849   AR=$ac_ct_AR
5850 else
5851   AR="$ac_cv_prog_AR"
5852 fi
5853
5854 if test -n "$ac_tool_prefix"; then
5855   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5857 echo "$as_me:$LINENO: checking for $ac_word" >&5
5858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5859 if test "${ac_cv_prog_RANLIB+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862   if test -n "$RANLIB"; then
5863   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870   for ac_exec_ext in '' $ac_executable_extensions; do
5871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874     break 2
5875   fi
5876 done
5877 done
5878
5879 fi
5880 fi
5881 RANLIB=$ac_cv_prog_RANLIB
5882 if test -n "$RANLIB"; then
5883   echo "$as_me:$LINENO: result: $RANLIB" >&5
5884 echo "${ECHO_T}$RANLIB" >&6
5885 else
5886   echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6
5888 fi
5889
5890 fi
5891 if test -z "$ac_cv_prog_RANLIB"; then
5892   ac_ct_RANLIB=$RANLIB
5893   # Extract the first word of "ranlib", so it can be a program name with args.
5894 set dummy ranlib; ac_word=$2
5895 echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5898   echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900   if test -n "$ac_ct_RANLIB"; then
5901   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908   for ac_exec_ext in '' $ac_executable_extensions; do
5909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910     ac_cv_prog_ac_ct_RANLIB="ranlib"
5911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915 done
5916
5917   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5918 fi
5919 fi
5920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5921 if test -n "$ac_ct_RANLIB"; then
5922   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5923 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5924 else
5925   echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6
5927 fi
5928
5929   RANLIB=$ac_ct_RANLIB
5930 else
5931   RANLIB="$ac_cv_prog_RANLIB"
5932 fi
5933
5934 if test -n "$ac_tool_prefix"; then
5935   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5936 set dummy ${ac_tool_prefix}strip; ac_word=$2
5937 echo "$as_me:$LINENO: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5939 if test "${ac_cv_prog_STRIP+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   if test -n "$STRIP"; then
5943   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948   IFS=$as_save_IFS
5949   test -z "$as_dir" && as_dir=.
5950   for ac_exec_ext in '' $ac_executable_extensions; do
5951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954     break 2
5955   fi
5956 done
5957 done
5958
5959 fi
5960 fi
5961 STRIP=$ac_cv_prog_STRIP
5962 if test -n "$STRIP"; then
5963   echo "$as_me:$LINENO: result: $STRIP" >&5
5964 echo "${ECHO_T}$STRIP" >&6
5965 else
5966   echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6
5968 fi
5969
5970 fi
5971 if test -z "$ac_cv_prog_STRIP"; then
5972   ac_ct_STRIP=$STRIP
5973   # Extract the first word of "strip", so it can be a program name with args.
5974 set dummy strip; ac_word=$2
5975 echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5977 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   if test -n "$ac_ct_STRIP"; then
5981   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986   IFS=$as_save_IFS
5987   test -z "$as_dir" && as_dir=.
5988   for ac_exec_ext in '' $ac_executable_extensions; do
5989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990     ac_cv_prog_ac_ct_STRIP="strip"
5991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992     break 2
5993   fi
5994 done
5995 done
5996
5997   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5998 fi
5999 fi
6000 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6001 if test -n "$ac_ct_STRIP"; then
6002   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6003 echo "${ECHO_T}$ac_ct_STRIP" >&6
6004 else
6005   echo "$as_me:$LINENO: result: no" >&5
6006 echo "${ECHO_T}no" >&6
6007 fi
6008
6009   STRIP=$ac_ct_STRIP
6010 else
6011   STRIP="$ac_cv_prog_STRIP"
6012 fi
6013
6014
6015 old_CC="$CC"
6016 old_CFLAGS="$CFLAGS"
6017
6018 # Set sane defaults for various variables
6019 test -z "$AR" && AR=ar
6020 test -z "$AR_FLAGS" && AR_FLAGS=cru
6021 test -z "$AS" && AS=as
6022 test -z "$CC" && CC=cc
6023 test -z "$LTCC" && LTCC=$CC
6024 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6025 test -z "$DLLTOOL" && DLLTOOL=dlltool
6026 test -z "$LD" && LD=ld
6027 test -z "$LN_S" && LN_S="ln -s"
6028 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6029 test -z "$NM" && NM=nm
6030 test -z "$SED" && SED=sed
6031 test -z "$OBJDUMP" && OBJDUMP=objdump
6032 test -z "$RANLIB" && RANLIB=:
6033 test -z "$STRIP" && STRIP=:
6034 test -z "$ac_objext" && ac_objext=o
6035
6036 # Determine commands to create old-style static archives.
6037 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6038 old_postinstall_cmds='chmod 644 $oldlib'
6039 old_postuninstall_cmds=
6040
6041 if test -n "$RANLIB"; then
6042   case $host_os in
6043   openbsd*)
6044     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6045     ;;
6046   *)
6047     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6048     ;;
6049   esac
6050   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6051 fi
6052
6053 for cc_temp in $compiler""; do
6054   case $cc_temp in
6055     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6056     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6057     \-*) ;;
6058     *) break;;
6059   esac
6060 done
6061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6062
6063
6064 # Only perform the check for file, if the check method requires it
6065 case $deplibs_check_method in
6066 file_magic*)
6067   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6068     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6069 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6070 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   case $MAGIC_CMD in
6074 [\\/*] |  ?:[\\/]*)
6075   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6076   ;;
6077 *)
6078   lt_save_MAGIC_CMD="$MAGIC_CMD"
6079   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6080   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6081   for ac_dir in $ac_dummy; do
6082     IFS="$lt_save_ifs"
6083     test -z "$ac_dir" && ac_dir=.
6084     if test -f $ac_dir/${ac_tool_prefix}file; then
6085       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6086       if test -n "$file_magic_test_file"; then
6087         case $deplibs_check_method in
6088         "file_magic "*)
6089           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6090           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6091           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6092             $EGREP "$file_magic_regex" > /dev/null; then
6093             :
6094           else
6095             cat <<EOF 1>&2
6096
6097 *** Warning: the command libtool uses to detect shared libraries,
6098 *** $file_magic_cmd, produces output that libtool cannot recognize.
6099 *** The result is that libtool may fail to recognize shared libraries
6100 *** as such.  This will affect the creation of libtool libraries that
6101 *** depend on shared libraries, but programs linked with such libtool
6102 *** libraries will work regardless of this problem.  Nevertheless, you
6103 *** may want to report the problem to your system manager and/or to
6104 *** bug-libtool@gnu.org
6105
6106 EOF
6107           fi ;;
6108         esac
6109       fi
6110       break
6111     fi
6112   done
6113   IFS="$lt_save_ifs"
6114   MAGIC_CMD="$lt_save_MAGIC_CMD"
6115   ;;
6116 esac
6117 fi
6118
6119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6120 if test -n "$MAGIC_CMD"; then
6121   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6122 echo "${ECHO_T}$MAGIC_CMD" >&6
6123 else
6124   echo "$as_me:$LINENO: result: no" >&5
6125 echo "${ECHO_T}no" >&6
6126 fi
6127
6128 if test -z "$lt_cv_path_MAGIC_CMD"; then
6129   if test -n "$ac_tool_prefix"; then
6130     echo "$as_me:$LINENO: checking for file" >&5
6131 echo $ECHO_N "checking for file... $ECHO_C" >&6
6132 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   case $MAGIC_CMD in
6136 [\\/*] |  ?:[\\/]*)
6137   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6138   ;;
6139 *)
6140   lt_save_MAGIC_CMD="$MAGIC_CMD"
6141   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6142   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6143   for ac_dir in $ac_dummy; do
6144     IFS="$lt_save_ifs"
6145     test -z "$ac_dir" && ac_dir=.
6146     if test -f $ac_dir/file; then
6147       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6148       if test -n "$file_magic_test_file"; then
6149         case $deplibs_check_method in
6150         "file_magic "*)
6151           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6152           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6153           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6154             $EGREP "$file_magic_regex" > /dev/null; then
6155             :
6156           else
6157             cat <<EOF 1>&2
6158
6159 *** Warning: the command libtool uses to detect shared libraries,
6160 *** $file_magic_cmd, produces output that libtool cannot recognize.
6161 *** The result is that libtool may fail to recognize shared libraries
6162 *** as such.  This will affect the creation of libtool libraries that
6163 *** depend on shared libraries, but programs linked with such libtool
6164 *** libraries will work regardless of this problem.  Nevertheless, you
6165 *** may want to report the problem to your system manager and/or to
6166 *** bug-libtool@gnu.org
6167
6168 EOF
6169           fi ;;
6170         esac
6171       fi
6172       break
6173     fi
6174   done
6175   IFS="$lt_save_ifs"
6176   MAGIC_CMD="$lt_save_MAGIC_CMD"
6177   ;;
6178 esac
6179 fi
6180
6181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6182 if test -n "$MAGIC_CMD"; then
6183   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6184 echo "${ECHO_T}$MAGIC_CMD" >&6
6185 else
6186   echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6
6188 fi
6189
6190   else
6191     MAGIC_CMD=:
6192   fi
6193 fi
6194
6195   fi
6196   ;;
6197 esac
6198
6199 enable_dlopen=yes
6200 enable_win32_dll=no
6201
6202 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6203 if test "${enable_libtool_lock+set}" = set; then
6204   enableval="$enable_libtool_lock"
6205
6206 fi;
6207 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6208
6209
6210 # Check whether --with-pic or --without-pic was given.
6211 if test "${with_pic+set}" = set; then
6212   withval="$with_pic"
6213   pic_mode="$withval"
6214 else
6215   pic_mode=default
6216 fi;
6217 test -z "$pic_mode" && pic_mode=default
6218
6219 # Use C for the default configuration in the libtool script
6220 tagname=
6221 lt_save_CC="$CC"
6222 ac_ext=c
6223 ac_cpp='$CPP $CPPFLAGS'
6224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227
6228
6229 # Source file extension for C test sources.
6230 ac_ext=c
6231
6232 # Object file extension for compiled C test sources.
6233 objext=o
6234 objext=$objext
6235
6236 # Code to be used in simple compile tests
6237 lt_simple_compile_test_code="int some_variable = 0;\n"
6238
6239 # Code to be used in simple link tests
6240 lt_simple_link_test_code='int main(){return(0);}\n'
6241
6242
6243 # If no C compiler was specified, use CC.
6244 LTCC=${LTCC-"$CC"}
6245
6246 # If no C compiler flags were specified, use CFLAGS.
6247 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6248
6249 # Allow CC to be a program name with arguments.
6250 compiler=$CC
6251
6252
6253 # save warnings/boilerplate of simple test code
6254 ac_outfile=conftest.$ac_objext
6255 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6257 _lt_compiler_boilerplate=`cat conftest.err`
6258 $rm conftest*
6259
6260 ac_outfile=conftest.$ac_objext
6261 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6263 _lt_linker_boilerplate=`cat conftest.err`
6264 $rm conftest*
6265
6266
6267 ## CAVEAT EMPTOR:
6268 ## There is no encapsulation within the following macros, do not change
6269 ## the running order or otherwise move them around unless you know exactly
6270 ## what you are doing...
6271
6272 lt_prog_compiler_no_builtin_flag=
6273
6274 if test "$GCC" = yes; then
6275   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6276
6277
6278 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6279 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6280 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6281   echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283   lt_cv_prog_compiler_rtti_exceptions=no
6284   ac_outfile=conftest.$ac_objext
6285    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6286    lt_compiler_flag="-fno-rtti -fno-exceptions"
6287    # Insert the option either (1) after the last *FLAGS variable, or
6288    # (2) before a word containing "conftest.", or (3) at the end.
6289    # Note that $ac_compile itself does not contain backslashes and begins
6290    # with a dollar sign (not a hyphen), so the echo should work correctly.
6291    # The option is referenced via a variable to avoid confusing sed.
6292    lt_compile=`echo "$ac_compile" | $SED \
6293    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6294    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6295    -e 's:$: $lt_compiler_flag:'`
6296    (eval echo "\"\$as_me:6296: $lt_compile\"" >&5)
6297    (eval "$lt_compile" 2>conftest.err)
6298    ac_status=$?
6299    cat conftest.err >&5
6300    echo "$as_me:6300: \$? = $ac_status" >&5
6301    if (exit $ac_status) && test -s "$ac_outfile"; then
6302      # The compiler can only warn and ignore the option if not recognized
6303      # So say no if there are warnings other than the usual output.
6304      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6305      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6306      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6307        lt_cv_prog_compiler_rtti_exceptions=yes
6308      fi
6309    fi
6310    $rm conftest*
6311
6312 fi
6313 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6314 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6315
6316 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6317     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6318 else
6319     :
6320 fi
6321
6322 fi
6323
6324 lt_prog_compiler_wl=
6325 lt_prog_compiler_pic=
6326 lt_prog_compiler_static=
6327
6328 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6329 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6330
6331   if test "$GCC" = yes; then
6332     lt_prog_compiler_wl='-Wl,'
6333     lt_prog_compiler_static='-static'
6334
6335     case $host_os in
6336       aix*)
6337       # All AIX code is PIC.
6338       if test "$host_cpu" = ia64; then
6339         # AIX 5 now supports IA64 processor
6340         lt_prog_compiler_static='-Bstatic'
6341       fi
6342       ;;
6343
6344     amigaos*)
6345       # FIXME: we need at least 68020 code to build shared libraries, but
6346       # adding the `-m68020' flag to GCC prevents building anything better,
6347       # like `-m68040'.
6348       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6349       ;;
6350
6351     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6352       # PIC is the default for these OSes.
6353       ;;
6354
6355     mingw* | pw32* | os2*)
6356       # This hack is so that the source file can tell whether it is being
6357       # built for inclusion in a dll (and should export symbols for example).
6358       lt_prog_compiler_pic='-DDLL_EXPORT'
6359       ;;
6360
6361     darwin* | rhapsody*)
6362       # PIC is the default on this platform
6363       # Common symbols not allowed in MH_DYLIB files
6364       lt_prog_compiler_pic='-fno-common'
6365       ;;
6366
6367     interix3*)
6368       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6369       # Instead, we relocate shared libraries at runtime.
6370       ;;
6371
6372     msdosdjgpp*)
6373       # Just because we use GCC doesn't mean we suddenly get shared libraries
6374       # on systems that don't support them.
6375       lt_prog_compiler_can_build_shared=no
6376       enable_shared=no
6377       ;;
6378
6379     sysv4*MP*)
6380       if test -d /usr/nec; then
6381         lt_prog_compiler_pic=-Kconform_pic
6382       fi
6383       ;;
6384
6385     hpux*)
6386       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6387       # not for PA HP-UX.
6388       case $host_cpu in
6389       hppa*64*|ia64*)
6390         # +Z the default
6391         ;;
6392       *)
6393         lt_prog_compiler_pic='-fPIC'
6394         ;;
6395       esac
6396       ;;
6397
6398     *)
6399       lt_prog_compiler_pic='-fPIC'
6400       ;;
6401     esac
6402   else
6403     # PORTME Check for flag to pass linker flags through the system compiler.
6404     case $host_os in
6405     aix*)
6406       lt_prog_compiler_wl='-Wl,'
6407       if test "$host_cpu" = ia64; then
6408         # AIX 5 now supports IA64 processor
6409         lt_prog_compiler_static='-Bstatic'
6410       else
6411         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6412       fi
6413       ;;
6414       darwin*)
6415         # PIC is the default on this platform
6416         # Common symbols not allowed in MH_DYLIB files
6417        case $cc_basename in
6418          xlc*)
6419          lt_prog_compiler_pic='-qnocommon'
6420          lt_prog_compiler_wl='-Wl,'
6421          ;;
6422        esac
6423        ;;
6424
6425     mingw* | pw32* | os2*)
6426       # This hack is so that the source file can tell whether it is being
6427       # built for inclusion in a dll (and should export symbols for example).
6428       lt_prog_compiler_pic='-DDLL_EXPORT'
6429       ;;
6430
6431     hpux9* | hpux10* | hpux11*)
6432       lt_prog_compiler_wl='-Wl,'
6433       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6434       # not for PA HP-UX.
6435       case $host_cpu in
6436       hppa*64*|ia64*)
6437         # +Z the default
6438         ;;
6439       *)
6440         lt_prog_compiler_pic='+Z'
6441         ;;
6442       esac
6443       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6444       lt_prog_compiler_static='${wl}-a ${wl}archive'
6445       ;;
6446
6447     irix5* | irix6* | nonstopux*)
6448       lt_prog_compiler_wl='-Wl,'
6449       # PIC (with -KPIC) is the default.
6450       lt_prog_compiler_static='-non_shared'
6451       ;;
6452
6453     newsos6)
6454       lt_prog_compiler_pic='-KPIC'
6455       lt_prog_compiler_static='-Bstatic'
6456       ;;
6457
6458     linux*)
6459       case $cc_basename in
6460       icc* | ecc*)
6461         lt_prog_compiler_wl='-Wl,'
6462         lt_prog_compiler_pic='-KPIC'
6463         lt_prog_compiler_static='-static'
6464         ;;
6465       pgcc* | pgf77* | pgf90* | pgf95*)
6466         # Portland Group compilers (*not* the Pentium gcc compiler,
6467         # which looks to be a dead project)
6468         lt_prog_compiler_wl='-Wl,'
6469         lt_prog_compiler_pic='-fpic'
6470         lt_prog_compiler_static='-Bstatic'
6471         ;;
6472       ccc*)
6473         lt_prog_compiler_wl='-Wl,'
6474         # All Alpha code is PIC.
6475         lt_prog_compiler_static='-non_shared'
6476         ;;
6477       esac
6478       ;;
6479
6480     osf3* | osf4* | osf5*)
6481       lt_prog_compiler_wl='-Wl,'
6482       # All OSF/1 code is PIC.
6483       lt_prog_compiler_static='-non_shared'
6484       ;;
6485
6486     solaris*)
6487       lt_prog_compiler_pic='-KPIC'
6488       lt_prog_compiler_static='-Bstatic'
6489       case $cc_basename in
6490       f77* | f90* | f95*)
6491         lt_prog_compiler_wl='-Qoption ld ';;
6492       *)
6493         lt_prog_compiler_wl='-Wl,';;
6494       esac
6495       ;;
6496
6497     sunos4*)
6498       lt_prog_compiler_wl='-Qoption ld '
6499       lt_prog_compiler_pic='-PIC'
6500       lt_prog_compiler_static='-Bstatic'
6501       ;;
6502
6503     sysv4 | sysv4.2uw2* | sysv4.3*)
6504       lt_prog_compiler_wl='-Wl,'
6505       lt_prog_compiler_pic='-KPIC'
6506       lt_prog_compiler_static='-Bstatic'
6507       ;;
6508
6509     sysv4*MP*)
6510       if test -d /usr/nec ;then
6511         lt_prog_compiler_pic='-Kconform_pic'
6512         lt_prog_compiler_static='-Bstatic'
6513       fi
6514       ;;
6515
6516     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6517       lt_prog_compiler_wl='-Wl,'
6518       lt_prog_compiler_pic='-KPIC'
6519       lt_prog_compiler_static='-Bstatic'
6520       ;;
6521
6522     unicos*)
6523       lt_prog_compiler_wl='-Wl,'
6524       lt_prog_compiler_can_build_shared=no
6525       ;;
6526
6527     uts4*)
6528       lt_prog_compiler_pic='-pic'
6529       lt_prog_compiler_static='-Bstatic'
6530       ;;
6531
6532     *)
6533       lt_prog_compiler_can_build_shared=no
6534       ;;
6535     esac
6536   fi
6537
6538 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6539 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6540
6541 #
6542 # Check to make sure the PIC flag actually works.
6543 #
6544 if test -n "$lt_prog_compiler_pic"; then
6545
6546 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6547 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6548 if test "${lt_prog_compiler_pic_works+set}" = set; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   lt_prog_compiler_pic_works=no
6552   ac_outfile=conftest.$ac_objext
6553    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6554    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6555    # Insert the option either (1) after the last *FLAGS variable, or
6556    # (2) before a word containing "conftest.", or (3) at the end.
6557    # Note that $ac_compile itself does not contain backslashes and begins
6558    # with a dollar sign (not a hyphen), so the echo should work correctly.
6559    # The option is referenced via a variable to avoid confusing sed.
6560    lt_compile=`echo "$ac_compile" | $SED \
6561    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6562    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6563    -e 's:$: $lt_compiler_flag:'`
6564    (eval echo "\"\$as_me:6564: $lt_compile\"" >&5)
6565    (eval "$lt_compile" 2>conftest.err)
6566    ac_status=$?
6567    cat conftest.err >&5
6568    echo "$as_me:6568: \$? = $ac_status" >&5
6569    if (exit $ac_status) && test -s "$ac_outfile"; then
6570      # The compiler can only warn and ignore the option if not recognized
6571      # So say no if there are warnings other than the usual output.
6572      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6573      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6574      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6575        lt_prog_compiler_pic_works=yes
6576      fi
6577    fi
6578    $rm conftest*
6579
6580 fi
6581 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6582 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6583
6584 if test x"$lt_prog_compiler_pic_works" = xyes; then
6585     case $lt_prog_compiler_pic in
6586      "" | " "*) ;;
6587      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6588      esac
6589 else
6590     lt_prog_compiler_pic=
6591      lt_prog_compiler_can_build_shared=no
6592 fi
6593
6594 fi
6595 case $host_os in
6596   # For platforms which do not support PIC, -DPIC is meaningless:
6597   *djgpp*)
6598     lt_prog_compiler_pic=
6599     ;;
6600   *)
6601     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6602     ;;
6603 esac
6604
6605 #
6606 # Check to make sure the static flag actually works.
6607 #
6608 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6609 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6610 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6611 if test "${lt_prog_compiler_static_works+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   lt_prog_compiler_static_works=no
6615    save_LDFLAGS="$LDFLAGS"
6616    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6617    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6618    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6619      # The linker can only warn and ignore the option if not recognized
6620      # So say no if there are warnings
6621      if test -s conftest.err; then
6622        # Append any errors to the config.log.
6623        cat conftest.err 1>&5
6624        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6625        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6626        if diff conftest.exp conftest.er2 >/dev/null; then
6627          lt_prog_compiler_static_works=yes
6628        fi
6629      else
6630        lt_prog_compiler_static_works=yes
6631      fi
6632    fi
6633    $rm conftest*
6634    LDFLAGS="$save_LDFLAGS"
6635
6636 fi
6637 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6638 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6639
6640 if test x"$lt_prog_compiler_static_works" = xyes; then
6641     :
6642 else
6643     lt_prog_compiler_static=
6644 fi
6645
6646
6647 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6648 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6649 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652   lt_cv_prog_compiler_c_o=no
6653    $rm -r conftest 2>/dev/null
6654    mkdir conftest
6655    cd conftest
6656    mkdir out
6657    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6658
6659    lt_compiler_flag="-o out/conftest2.$ac_objext"
6660    # Insert the option either (1) after the last *FLAGS variable, or
6661    # (2) before a word containing "conftest.", or (3) at the end.
6662    # Note that $ac_compile itself does not contain backslashes and begins
6663    # with a dollar sign (not a hyphen), so the echo should work correctly.
6664    lt_compile=`echo "$ac_compile" | $SED \
6665    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6667    -e 's:$: $lt_compiler_flag:'`
6668    (eval echo "\"\$as_me:6668: $lt_compile\"" >&5)
6669    (eval "$lt_compile" 2>out/conftest.err)
6670    ac_status=$?
6671    cat out/conftest.err >&5
6672    echo "$as_me:6672: \$? = $ac_status" >&5
6673    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6674    then
6675      # The compiler can only warn and ignore the option if not recognized
6676      # So say no if there are warnings
6677      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6678      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6679      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6680        lt_cv_prog_compiler_c_o=yes
6681      fi
6682    fi
6683    chmod u+w . 2>&5
6684    $rm conftest*
6685    # SGI C++ compiler will create directory out/ii_files/ for
6686    # template instantiation
6687    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6688    $rm out/* && rmdir out
6689    cd ..
6690    rmdir conftest
6691    $rm conftest*
6692
6693 fi
6694 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6695 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6696
6697
6698 hard_links="nottested"
6699 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6700   # do not overwrite the value of need_locks provided by the user
6701   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6702 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6703   hard_links=yes
6704   $rm conftest*
6705   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6706   touch conftest.a
6707   ln conftest.a conftest.b 2>&5 || hard_links=no
6708   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6709   echo "$as_me:$LINENO: result: $hard_links" >&5
6710 echo "${ECHO_T}$hard_links" >&6
6711   if test "$hard_links" = no; then
6712     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6713 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6714     need_locks=warn
6715   fi
6716 else
6717   need_locks=no
6718 fi
6719
6720 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6721 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6722
6723   runpath_var=
6724   allow_undefined_flag=
6725   enable_shared_with_static_runtimes=no
6726   archive_cmds=
6727   archive_expsym_cmds=
6728   old_archive_From_new_cmds=
6729   old_archive_from_expsyms_cmds=
6730   export_dynamic_flag_spec=
6731   whole_archive_flag_spec=
6732   thread_safe_flag_spec=
6733   hardcode_libdir_flag_spec=
6734   hardcode_libdir_flag_spec_ld=
6735   hardcode_libdir_separator=
6736   hardcode_direct=no
6737   hardcode_minus_L=no
6738   hardcode_shlibpath_var=unsupported
6739   link_all_deplibs=unknown
6740   hardcode_automatic=no
6741   module_cmds=
6742   module_expsym_cmds=
6743   always_export_symbols=no
6744   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6745   # include_expsyms should be a list of space-separated symbols to be *always*
6746   # included in the symbol list
6747   include_expsyms=
6748   # exclude_expsyms can be an extended regexp of symbols to exclude
6749   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6750   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6751   # as well as any symbol that contains `d'.
6752   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6753   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6754   # platforms (ab)use it in PIC code, but their linkers get confused if
6755   # the symbol is explicitly referenced.  Since portable code cannot
6756   # rely on this symbol name, it's probably fine to never include it in
6757   # preloaded symbol tables.
6758   extract_expsyms_cmds=
6759   # Just being paranoid about ensuring that cc_basename is set.
6760   for cc_temp in $compiler""; do
6761   case $cc_temp in
6762     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6763     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6764     \-*) ;;
6765     *) break;;
6766   esac
6767 done
6768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6769
6770   case $host_os in
6771   cygwin* | mingw* | pw32*)
6772     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6773     # When not using gcc, we currently assume that we are using
6774     # Microsoft Visual C++.
6775     if test "$GCC" != yes; then
6776       with_gnu_ld=no
6777     fi
6778     ;;
6779   interix*)
6780     # we just hope/assume this is gcc and not c89 (= MSVC++)
6781     with_gnu_ld=yes
6782     ;;
6783   openbsd*)
6784     with_gnu_ld=no
6785     ;;
6786   esac
6787
6788   ld_shlibs=yes
6789   if test "$with_gnu_ld" = yes; then
6790     # If archive_cmds runs LD, not CC, wlarc should be empty
6791     wlarc='${wl}'
6792
6793     # Set some defaults for GNU ld with shared library support. These
6794     # are reset later if shared libraries are not supported. Putting them
6795     # here allows them to be overridden if necessary.
6796     runpath_var=LD_RUN_PATH
6797     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6798     export_dynamic_flag_spec='${wl}--export-dynamic'
6799     # ancient GNU ld didn't support --whole-archive et. al.
6800     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6801         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6802       else
6803         whole_archive_flag_spec=
6804     fi
6805     supports_anon_versioning=no
6806     case `$LD -v 2>/dev/null` in
6807       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6808       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6809       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6810       *\ 2.11.*) ;; # other 2.11 versions
6811       *) supports_anon_versioning=yes ;;
6812     esac
6813
6814     # See if GNU ld supports shared libraries.
6815     case $host_os in
6816     aix3* | aix4* | aix5*)
6817       # On AIX/PPC, the GNU linker is very broken
6818       if test "$host_cpu" != ia64; then
6819         ld_shlibs=no
6820         cat <<EOF 1>&2
6821
6822 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6823 *** to be unable to reliably create shared libraries on AIX.
6824 *** Therefore, libtool is disabling shared libraries support.  If you
6825 *** really care for shared libraries, you may want to modify your PATH
6826 *** so that a non-GNU linker is found, and then restart.
6827
6828 EOF
6829       fi
6830       ;;
6831
6832     amigaos*)
6833       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)'
6834       hardcode_libdir_flag_spec='-L$libdir'
6835       hardcode_minus_L=yes
6836
6837       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6838       # that the semantics of dynamic libraries on AmigaOS, at least up
6839       # to version 4, is to share data among multiple programs linked
6840       # with the same dynamic library.  Since this doesn't match the
6841       # behavior of shared libraries on other platforms, we can't use
6842       # them.
6843       ld_shlibs=no
6844       ;;
6845
6846     beos*)
6847       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6848         allow_undefined_flag=unsupported
6849         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6850         # support --undefined.  This deserves some investigation.  FIXME
6851         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6852       else
6853         ld_shlibs=no
6854       fi
6855       ;;
6856
6857     cygwin* | mingw* | pw32*)
6858       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6859       # as there is no search path for DLLs.
6860       hardcode_libdir_flag_spec='-L$libdir'
6861       allow_undefined_flag=unsupported
6862       always_export_symbols=no
6863       enable_shared_with_static_runtimes=yes
6864       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6865
6866       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6867         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6868         # If the export-symbols file already is a .def file (1st line
6869         # is EXPORTS), use it as is; otherwise, prepend...
6870         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6871           cp $export_symbols $output_objdir/$soname.def;
6872         else
6873           echo EXPORTS > $output_objdir/$soname.def;
6874           cat $export_symbols >> $output_objdir/$soname.def;
6875         fi~
6876         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6877       else
6878         ld_shlibs=no
6879       fi
6880       ;;
6881
6882     interix3*)
6883       hardcode_direct=no
6884       hardcode_shlibpath_var=no
6885       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6886       export_dynamic_flag_spec='${wl}-E'
6887       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6888       # Instead, shared libraries are loaded at an image base (0x10000000 by
6889       # default) and relocated if they conflict, which is a slow very memory
6890       # consuming and fragmenting process.  To avoid this, we pick a random,
6891       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6892       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6893       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6894       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6895       ;;
6896
6897     linux*)
6898       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6899         tmp_addflag=
6900         case $cc_basename,$host_cpu in
6901         pgcc*)                          # Portland Group C compiler
6902           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6903           tmp_addflag=' $pic_flag'
6904           ;;
6905         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6906           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6907           tmp_addflag=' $pic_flag -Mnomain' ;;
6908         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6909           tmp_addflag=' -i_dynamic' ;;
6910         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6911           tmp_addflag=' -i_dynamic -nofor_main' ;;
6912         ifc* | ifort*)                  # Intel Fortran compiler
6913           tmp_addflag=' -nofor_main' ;;
6914         esac
6915         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6916
6917         if test $supports_anon_versioning = yes; then
6918           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6919   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6920   $echo "local: *; };" >> $output_objdir/$libname.ver~
6921           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6922         fi
6923       else
6924         ld_shlibs=no
6925       fi
6926       ;;
6927
6928     netbsd*)
6929       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6930         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6931         wlarc=
6932       else
6933         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6934         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6935       fi
6936       ;;
6937
6938     solaris*)
6939       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6940         ld_shlibs=no
6941         cat <<EOF 1>&2
6942
6943 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6944 *** create shared libraries on Solaris systems.  Therefore, libtool
6945 *** is disabling shared libraries support.  We urge you to upgrade GNU
6946 *** binutils to release 2.9.1 or newer.  Another option is to modify
6947 *** your PATH or compiler configuration so that the native linker is
6948 *** used, and then restart.
6949
6950 EOF
6951       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6952         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6953         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6954       else
6955         ld_shlibs=no
6956       fi
6957       ;;
6958
6959     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6960       case `$LD -v 2>&1` in
6961         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6962         ld_shlibs=no
6963         cat <<_LT_EOF 1>&2
6964
6965 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6966 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6967 *** is disabling shared libraries support.  We urge you to upgrade GNU
6968 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6969 *** your PATH or compiler configuration so that the native linker is
6970 *** used, and then restart.
6971
6972 _LT_EOF
6973         ;;
6974         *)
6975           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6976             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6977             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6978             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6979           else
6980             ld_shlibs=no
6981           fi
6982         ;;
6983       esac
6984       ;;
6985
6986     sunos4*)
6987       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6988       wlarc=
6989       hardcode_direct=yes
6990       hardcode_shlibpath_var=no
6991       ;;
6992
6993     *)
6994       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6995         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6996         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6997       else
6998         ld_shlibs=no
6999       fi
7000       ;;
7001     esac
7002
7003     if test "$ld_shlibs" = no; then
7004       runpath_var=
7005       hardcode_libdir_flag_spec=
7006       export_dynamic_flag_spec=
7007       whole_archive_flag_spec=
7008     fi
7009   else
7010     # PORTME fill in a description of your system's linker (not GNU ld)
7011     case $host_os in
7012     aix3*)
7013       allow_undefined_flag=unsupported
7014       always_export_symbols=yes
7015       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'
7016       # Note: this linker hardcodes the directories in LIBPATH if there
7017       # are no directories specified by -L.
7018       hardcode_minus_L=yes
7019       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7020         # Neither direct hardcoding nor static linking is supported with a
7021         # broken collect2.
7022         hardcode_direct=unsupported
7023       fi
7024       ;;
7025
7026     aix4* | aix5*)
7027       if test "$host_cpu" = ia64; then
7028         # On IA64, the linker does run time linking by default, so we don't
7029         # have to do anything special.
7030         aix_use_runtimelinking=no
7031         exp_sym_flag='-Bexport'
7032         no_entry_flag=""
7033       else
7034         # If we're using GNU nm, then we don't want the "-C" option.
7035         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7036         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7037           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'
7038         else
7039           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'
7040         fi
7041         aix_use_runtimelinking=no
7042
7043         # Test if we are trying to use run time linking or normal
7044         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7045         # need to do runtime linking.
7046         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7047           for ld_flag in $LDFLAGS; do
7048           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7049             aix_use_runtimelinking=yes
7050             break
7051           fi
7052           done
7053           ;;
7054         esac
7055
7056         exp_sym_flag='-bexport'
7057         no_entry_flag='-bnoentry'
7058       fi
7059
7060       # When large executables or shared objects are built, AIX ld can
7061       # have problems creating the table of contents.  If linking a library
7062       # or program results in "error TOC overflow" add -mminimal-toc to
7063       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7064       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7065
7066       archive_cmds=''
7067       hardcode_direct=yes
7068       hardcode_libdir_separator=':'
7069       link_all_deplibs=yes
7070
7071       if test "$GCC" = yes; then
7072         case $host_os in aix4.[012]|aix4.[012].*)
7073         # We only want to do this on AIX 4.2 and lower, the check
7074         # below for broken collect2 doesn't work under 4.3+
7075           collect2name=`${CC} -print-prog-name=collect2`
7076           if test -f "$collect2name" && \
7077            strings "$collect2name" | grep resolve_lib_name >/dev/null
7078           then
7079           # We have reworked collect2
7080           hardcode_direct=yes
7081           else
7082           # We have old collect2
7083           hardcode_direct=unsupported
7084           # It fails to find uninstalled libraries when the uninstalled
7085           # path is not listed in the libpath.  Setting hardcode_minus_L
7086           # to unsupported forces relinking
7087           hardcode_minus_L=yes
7088           hardcode_libdir_flag_spec='-L$libdir'
7089           hardcode_libdir_separator=
7090           fi
7091           ;;
7092         esac
7093         shared_flag='-shared'
7094         if test "$aix_use_runtimelinking" = yes; then
7095           shared_flag="$shared_flag "'${wl}-G'
7096         fi
7097       else
7098         # not using gcc
7099         if test "$host_cpu" = ia64; then
7100         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7101         # chokes on -Wl,-G. The following line is correct:
7102           shared_flag='-G'
7103         else
7104           if test "$aix_use_runtimelinking" = yes; then
7105             shared_flag='${wl}-G'
7106           else
7107             shared_flag='${wl}-bM:SRE'
7108           fi
7109         fi
7110       fi
7111
7112       # It seems that -bexpall does not export symbols beginning with
7113       # underscore (_), so it is better to generate a list of symbols to export.
7114       always_export_symbols=yes
7115       if test "$aix_use_runtimelinking" = yes; then
7116         # Warning - without using the other runtime loading flags (-brtl),
7117         # -berok will link without error, but may produce a broken library.
7118         allow_undefined_flag='-berok'
7119        # Determine the default libpath from the value encoded in an empty executable.
7120        cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h.  */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h.  */
7126
7127 int
7128 main ()
7129 {
7130
7131   ;
7132   return 0;
7133 }
7134 _ACEOF
7135 rm -f conftest.$ac_objext conftest$ac_exeext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137   (eval $ac_link) 2>conftest.er1
7138   ac_status=$?
7139   grep -v '^ *+' conftest.er1 >conftest.err
7140   rm -f conftest.er1
7141   cat conftest.err >&5
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); } &&
7144          { ac_try='test -z "$ac_c_werror_flag"
7145                          || test ! -s conftest.err'
7146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147   (eval $ac_try) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); }; } &&
7151          { ac_try='test -s conftest$ac_exeext'
7152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153   (eval $ac_try) 2>&5
7154   ac_status=$?
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); }; }; then
7157
7158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7159 }'`
7160 # Check for a 64-bit object if we didn't find anything.
7161 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; }
7162 }'`; fi
7163 else
7164   echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7166
7167 fi
7168 rm -f conftest.err conftest.$ac_objext \
7169       conftest$ac_exeext conftest.$ac_ext
7170 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7171
7172        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7173         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7174        else
7175         if test "$host_cpu" = ia64; then
7176           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7177           allow_undefined_flag="-z nodefs"
7178           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7179         else
7180          # Determine the default libpath from the value encoded in an empty executable.
7181          cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h.  */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h.  */
7187
7188 int
7189 main ()
7190 {
7191
7192   ;
7193   return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext conftest$ac_exeext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7198   (eval $ac_link) 2>conftest.er1
7199   ac_status=$?
7200   grep -v '^ *+' conftest.er1 >conftest.err
7201   rm -f conftest.er1
7202   cat conftest.err >&5
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } &&
7205          { ac_try='test -z "$ac_c_werror_flag"
7206                          || test ! -s conftest.err'
7207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208   (eval $ac_try) 2>&5
7209   ac_status=$?
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); }; } &&
7212          { ac_try='test -s conftest$ac_exeext'
7213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214   (eval $ac_try) 2>&5
7215   ac_status=$?
7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217   (exit $ac_status); }; }; then
7218
7219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7220 }'`
7221 # Check for a 64-bit object if we didn't find anything.
7222 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; }
7223 }'`; fi
7224 else
7225   echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228 fi
7229 rm -f conftest.err conftest.$ac_objext \
7230       conftest$ac_exeext conftest.$ac_ext
7231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7232
7233          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7234           # Warning - without using the other run time loading flags,
7235           # -berok will link without error, but may produce a broken library.
7236           no_undefined_flag=' ${wl}-bernotok'
7237           allow_undefined_flag=' ${wl}-berok'
7238           # Exported symbols can be pulled into shared objects from archives
7239           whole_archive_flag_spec='$convenience'
7240           archive_cmds_need_lc=yes
7241           # This is similar to how AIX traditionally builds its shared libraries.
7242           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7243         fi
7244       fi
7245       ;;
7246
7247     amigaos*)
7248       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)'
7249       hardcode_libdir_flag_spec='-L$libdir'
7250       hardcode_minus_L=yes
7251       # see comment about different semantics on the GNU ld section
7252       ld_shlibs=no
7253       ;;
7254
7255     bsdi[45]*)
7256       export_dynamic_flag_spec=-rdynamic
7257       ;;
7258
7259     cygwin* | mingw* | pw32*)
7260       # When not using gcc, we currently assume that we are using
7261       # Microsoft Visual C++.
7262       # hardcode_libdir_flag_spec is actually meaningless, as there is
7263       # no search path for DLLs.
7264       hardcode_libdir_flag_spec=' '
7265       allow_undefined_flag=unsupported
7266       # Tell ltmain to make .lib files, not .a files.
7267       libext=lib
7268       # Tell ltmain to make .dll files, not .so files.
7269       shrext_cmds=".dll"
7270       # FIXME: Setting linknames here is a bad hack.
7271       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7272       # The linker will automatically build a .lib file if we build a DLL.
7273       old_archive_From_new_cmds='true'
7274       # FIXME: Should let the user specify the lib program.
7275       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7276       fix_srcfile_path='`cygpath -w "$srcfile"`'
7277       enable_shared_with_static_runtimes=yes
7278       ;;
7279
7280     darwin* | rhapsody*)
7281       case $host_os in
7282         rhapsody* | darwin1.[012])
7283          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7284          ;;
7285        *) # Darwin 1.3 on
7286          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7287            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7288          else
7289            case ${MACOSX_DEPLOYMENT_TARGET} in
7290              10.[012])
7291                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7292                ;;
7293              10.*)
7294                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7295                ;;
7296            esac
7297          fi
7298          ;;
7299       esac
7300       archive_cmds_need_lc=no
7301       hardcode_direct=no
7302       hardcode_automatic=yes
7303       hardcode_shlibpath_var=unsupported
7304       whole_archive_flag_spec=''
7305       link_all_deplibs=yes
7306     if test "$GCC" = yes ; then
7307         output_verbose_link_cmd='echo'
7308         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7309       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7310       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7311       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}'
7312       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}'
7313     else
7314       case $cc_basename in
7315         xlc*)
7316          output_verbose_link_cmd='echo'
7317          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7318          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7319           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7320          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7321           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}'
7322           ;;
7323        *)
7324          ld_shlibs=no
7325           ;;
7326       esac
7327     fi
7328       ;;
7329
7330     dgux*)
7331       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7332       hardcode_libdir_flag_spec='-L$libdir'
7333       hardcode_shlibpath_var=no
7334       ;;
7335
7336     freebsd1*)
7337       ld_shlibs=no
7338       ;;
7339
7340     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7341     # support.  Future versions do this automatically, but an explicit c++rt0.o
7342     # does not break anything, and helps significantly (at the cost of a little
7343     # extra space).
7344     freebsd2.2*)
7345       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7346       hardcode_libdir_flag_spec='-R$libdir'
7347       hardcode_direct=yes
7348       hardcode_shlibpath_var=no
7349       ;;
7350
7351     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7352     freebsd2*)
7353       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7354       hardcode_direct=yes
7355       hardcode_minus_L=yes
7356       hardcode_shlibpath_var=no
7357       ;;
7358
7359     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7360     freebsd* | kfreebsd*-gnu | dragonfly*)
7361       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7362       hardcode_libdir_flag_spec='-R$libdir'
7363       hardcode_direct=yes
7364       hardcode_shlibpath_var=no
7365       ;;
7366
7367     hpux9*)
7368       if test "$GCC" = yes; then
7369         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'
7370       else
7371         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'
7372       fi
7373       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7374       hardcode_libdir_separator=:
7375       hardcode_direct=yes
7376
7377       # hardcode_minus_L: Not really in the search PATH,
7378       # but as the default location of the library.
7379       hardcode_minus_L=yes
7380       export_dynamic_flag_spec='${wl}-E'
7381       ;;
7382
7383     hpux10*)
7384       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7385         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7386       else
7387         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7388       fi
7389       if test "$with_gnu_ld" = no; then
7390         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7391         hardcode_libdir_separator=:
7392
7393         hardcode_direct=yes
7394         export_dynamic_flag_spec='${wl}-E'
7395
7396         # hardcode_minus_L: Not really in the search PATH,
7397         # but as the default location of the library.
7398         hardcode_minus_L=yes
7399       fi
7400       ;;
7401
7402     hpux11*)
7403       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7404         case $host_cpu in
7405         hppa*64*)
7406           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7407           ;;
7408         ia64*)
7409           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7410           ;;
7411         *)
7412           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7413           ;;
7414         esac
7415       else
7416         case $host_cpu in
7417         hppa*64*)
7418           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7419           ;;
7420         ia64*)
7421           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7422           ;;
7423         *)
7424           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7425           ;;
7426         esac
7427       fi
7428       if test "$with_gnu_ld" = no; then
7429         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7430         hardcode_libdir_separator=:
7431
7432         case $host_cpu in
7433         hppa*64*|ia64*)
7434           hardcode_libdir_flag_spec_ld='+b $libdir'
7435           hardcode_direct=no
7436           hardcode_shlibpath_var=no
7437           ;;
7438         *)
7439           hardcode_direct=yes
7440           export_dynamic_flag_spec='${wl}-E'
7441
7442           # hardcode_minus_L: Not really in the search PATH,
7443           # but as the default location of the library.
7444           hardcode_minus_L=yes
7445           ;;
7446         esac
7447       fi
7448       ;;
7449
7450     irix5* | irix6* | nonstopux*)
7451       if test "$GCC" = yes; then
7452         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'
7453       else
7454         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'
7455         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7456       fi
7457       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7458       hardcode_libdir_separator=:
7459       link_all_deplibs=yes
7460       ;;
7461
7462     netbsd*)
7463       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7464         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7465       else
7466         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7467       fi
7468       hardcode_libdir_flag_spec='-R$libdir'
7469       hardcode_direct=yes
7470       hardcode_shlibpath_var=no
7471       ;;
7472
7473     newsos6)
7474       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7475       hardcode_direct=yes
7476       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7477       hardcode_libdir_separator=:
7478       hardcode_shlibpath_var=no
7479       ;;
7480
7481     openbsd*)
7482       hardcode_direct=yes
7483       hardcode_shlibpath_var=no
7484       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7485         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7486         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7487         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7488         export_dynamic_flag_spec='${wl}-E'
7489       else
7490        case $host_os in
7491          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7492            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7493            hardcode_libdir_flag_spec='-R$libdir'
7494            ;;
7495          *)
7496            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7497            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7498            ;;
7499        esac
7500       fi
7501       ;;
7502
7503     os2*)
7504       hardcode_libdir_flag_spec='-L$libdir'
7505       hardcode_minus_L=yes
7506       allow_undefined_flag=unsupported
7507       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'
7508       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7509       ;;
7510
7511     osf3*)
7512       if test "$GCC" = yes; then
7513         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7514         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'
7515       else
7516         allow_undefined_flag=' -expect_unresolved \*'
7517         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'
7518       fi
7519       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7520       hardcode_libdir_separator=:
7521       ;;
7522
7523     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7524       if test "$GCC" = yes; then
7525         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7526         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'
7527         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7528       else
7529         allow_undefined_flag=' -expect_unresolved \*'
7530         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'
7531         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7532         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7533
7534         # Both c and cxx compiler support -rpath directly
7535         hardcode_libdir_flag_spec='-rpath $libdir'
7536       fi
7537       hardcode_libdir_separator=:
7538       ;;
7539
7540     solaris*)
7541       no_undefined_flag=' -z text'
7542       if test "$GCC" = yes; then
7543         wlarc='${wl}'
7544         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7545         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7546           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7547       else
7548         wlarc=''
7549         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7550         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7551         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7552       fi
7553       hardcode_libdir_flag_spec='-R$libdir'
7554       hardcode_shlibpath_var=no
7555       case $host_os in
7556       solaris2.[0-5] | solaris2.[0-5].*) ;;
7557       *)
7558         # The compiler driver will combine linker options so we
7559         # cannot just pass the convience library names through
7560         # without $wl, iff we do not link with $LD.
7561         # Luckily, gcc supports the same syntax we need for Sun Studio.
7562         # Supported since Solaris 2.6 (maybe 2.5.1?)
7563         case $wlarc in
7564         '')
7565           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7566         *)
7567           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7568         esac ;;
7569       esac
7570       link_all_deplibs=yes
7571       ;;
7572
7573     sunos4*)
7574       if test "x$host_vendor" = xsequent; then
7575         # Use $CC to link under sequent, because it throws in some extra .o
7576         # files that make .init and .fini sections work.
7577         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7578       else
7579         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7580       fi
7581       hardcode_libdir_flag_spec='-L$libdir'
7582       hardcode_direct=yes
7583       hardcode_minus_L=yes
7584       hardcode_shlibpath_var=no
7585       ;;
7586
7587     sysv4)
7588       case $host_vendor in
7589         sni)
7590           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7591           hardcode_direct=yes # is this really true???
7592         ;;
7593         siemens)
7594           ## LD is ld it makes a PLAMLIB
7595           ## CC just makes a GrossModule.
7596           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7597           reload_cmds='$CC -r -o $output$reload_objs'
7598           hardcode_direct=no
7599         ;;
7600         motorola)
7601           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7602           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7603         ;;
7604       esac
7605       runpath_var='LD_RUN_PATH'
7606       hardcode_shlibpath_var=no
7607       ;;
7608
7609     sysv4.3*)
7610       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7611       hardcode_shlibpath_var=no
7612       export_dynamic_flag_spec='-Bexport'
7613       ;;
7614
7615     sysv4*MP*)
7616       if test -d /usr/nec; then
7617         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7618         hardcode_shlibpath_var=no
7619         runpath_var=LD_RUN_PATH
7620         hardcode_runpath_var=yes
7621         ld_shlibs=yes
7622       fi
7623       ;;
7624
7625     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7626       no_undefined_flag='${wl}-z,text'
7627       archive_cmds_need_lc=no
7628       hardcode_shlibpath_var=no
7629       runpath_var='LD_RUN_PATH'
7630
7631       if test "$GCC" = yes; then
7632         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7633         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7634       else
7635         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7636         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7637       fi
7638       ;;
7639
7640     sysv5* | sco3.2v5* | sco5v6*)
7641       # Note: We can NOT use -z defs as we might desire, because we do not
7642       # link with -lc, and that would cause any symbols used from libc to
7643       # always be unresolved, which means just about no library would
7644       # ever link correctly.  If we're not using GNU ld we use -z text
7645       # though, which does catch some bad symbols but isn't as heavy-handed
7646       # as -z defs.
7647       no_undefined_flag='${wl}-z,text'
7648       allow_undefined_flag='${wl}-z,nodefs'
7649       archive_cmds_need_lc=no
7650       hardcode_shlibpath_var=no
7651       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7652       hardcode_libdir_separator=':'
7653       link_all_deplibs=yes
7654       export_dynamic_flag_spec='${wl}-Bexport'
7655       runpath_var='LD_RUN_PATH'
7656
7657       if test "$GCC" = yes; then
7658         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7659         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7660       else
7661         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7662         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7663       fi
7664       ;;
7665
7666     uts4*)
7667       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7668       hardcode_libdir_flag_spec='-L$libdir'
7669       hardcode_shlibpath_var=no
7670       ;;
7671
7672     *)
7673       ld_shlibs=no
7674       ;;
7675     esac
7676   fi
7677
7678 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7679 echo "${ECHO_T}$ld_shlibs" >&6
7680 test "$ld_shlibs" = no && can_build_shared=no
7681
7682 #
7683 # Do we need to explicitly link libc?
7684 #
7685 case "x$archive_cmds_need_lc" in
7686 x|xyes)
7687   # Assume -lc should be added
7688   archive_cmds_need_lc=yes
7689
7690   if test "$enable_shared" = yes && test "$GCC" = yes; then
7691     case $archive_cmds in
7692     *'~'*)
7693       # FIXME: we may have to deal with multi-command sequences.
7694       ;;
7695     '$CC '*)
7696       # Test whether the compiler implicitly links with -lc since on some
7697       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7698       # to ld, don't add -lc before -lgcc.
7699       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7700 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7701       $rm conftest*
7702       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7703
7704       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705   (eval $ac_compile) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); } 2>conftest.err; then
7709         soname=conftest
7710         lib=conftest
7711         libobjs=conftest.$ac_objext
7712         deplibs=
7713         wl=$lt_prog_compiler_wl
7714         pic_flag=$lt_prog_compiler_pic
7715         compiler_flags=-v
7716         linker_flags=-v
7717         verstring=
7718         output_objdir=.
7719         libname=conftest
7720         lt_save_allow_undefined_flag=$allow_undefined_flag
7721         allow_undefined_flag=
7722         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7723   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7724   ac_status=$?
7725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); }
7727         then
7728           archive_cmds_need_lc=no
7729         else
7730           archive_cmds_need_lc=yes
7731         fi
7732         allow_undefined_flag=$lt_save_allow_undefined_flag
7733       else
7734         cat conftest.err 1>&5
7735       fi
7736       $rm conftest*
7737       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7738 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7739       ;;
7740     esac
7741   fi
7742   ;;
7743 esac
7744
7745 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7746 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7747 library_names_spec=
7748 libname_spec='lib$name'
7749 soname_spec=
7750 shrext_cmds=".so"
7751 postinstall_cmds=
7752 postuninstall_cmds=
7753 finish_cmds=
7754 finish_eval=
7755 shlibpath_var=
7756 shlibpath_overrides_runpath=unknown
7757 version_type=none
7758 dynamic_linker="$host_os ld.so"
7759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7760 if test "$GCC" = yes; then
7761   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7762   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7763     # if the path contains ";" then we assume it to be the separator
7764     # otherwise default to the standard path separator (i.e. ":") - it is
7765     # assumed that no part of a normal pathname contains ";" but that should
7766     # okay in the real world where ";" in dirpaths is itself problematic.
7767     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7768   else
7769     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7770   fi
7771 else
7772   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7773 fi
7774 need_lib_prefix=unknown
7775 hardcode_into_libs=no
7776
7777 # when you set need_version to no, make sure it does not cause -set_version
7778 # flags to be left without arguments
7779 need_version=unknown
7780
7781 case $host_os in
7782 aix3*)
7783   version_type=linux
7784   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7785   shlibpath_var=LIBPATH
7786
7787   # AIX 3 has no versioning support, so we append a major version to the name.
7788   soname_spec='${libname}${release}${shared_ext}$major'
7789   ;;
7790
7791 aix4* | aix5*)
7792   version_type=linux
7793   need_lib_prefix=no
7794   need_version=no
7795   hardcode_into_libs=yes
7796   if test "$host_cpu" = ia64; then
7797     # AIX 5 supports IA64
7798     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7799     shlibpath_var=LD_LIBRARY_PATH
7800   else
7801     # With GCC up to 2.95.x, collect2 would create an import file
7802     # for dependence libraries.  The import file would start with
7803     # the line `#! .'.  This would cause the generated library to
7804     # depend on `.', always an invalid library.  This was fixed in
7805     # development snapshots of GCC prior to 3.0.
7806     case $host_os in
7807       aix4 | aix4.[01] | aix4.[01].*)
7808       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7809            echo ' yes '
7810            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7811         :
7812       else
7813         can_build_shared=no
7814       fi
7815       ;;
7816     esac
7817     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7818     # soname into executable. Probably we can add versioning support to
7819     # collect2, so additional links can be useful in future.
7820     if test "$aix_use_runtimelinking" = yes; then
7821       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7822       # instead of lib<name>.a to let people know that these are not
7823       # typical AIX shared libraries.
7824       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7825     else
7826       # We preserve .a as extension for shared libraries through AIX4.2
7827       # and later when we are not doing run time linking.
7828       library_names_spec='${libname}${release}.a $libname.a'
7829       soname_spec='${libname}${release}${shared_ext}$major'
7830     fi
7831     shlibpath_var=LIBPATH
7832   fi
7833   ;;
7834
7835 amigaos*)
7836   library_names_spec='$libname.ixlibrary $libname.a'
7837   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7838   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'
7839   ;;
7840
7841 beos*)
7842   library_names_spec='${libname}${shared_ext}'
7843   dynamic_linker="$host_os ld.so"
7844   shlibpath_var=LIBRARY_PATH
7845   ;;
7846
7847 bsdi[45]*)
7848   version_type=linux
7849   need_version=no
7850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7851   soname_spec='${libname}${release}${shared_ext}$major'
7852   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7853   shlibpath_var=LD_LIBRARY_PATH
7854   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7855   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7856   # the default ld.so.conf also contains /usr/contrib/lib and
7857   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7858   # libtool to hard-code these into programs
7859   ;;
7860
7861 cygwin* | mingw* | pw32*)
7862   version_type=windows
7863   shrext_cmds=".dll"
7864   need_version=no
7865   need_lib_prefix=no
7866
7867   case $GCC,$host_os in
7868   yes,cygwin* | yes,mingw* | yes,pw32*)
7869     library_names_spec='$libname.dll.a'
7870     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7871     postinstall_cmds='base_file=`basename \${file}`~
7872       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7873       dldir=$destdir/`dirname \$dlpath`~
7874       test -d \$dldir || mkdir -p \$dldir~
7875       $install_prog $dir/$dlname \$dldir/$dlname~
7876       chmod a+x \$dldir/$dlname'
7877     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7878       dlpath=$dir/\$dldll~
7879        $rm \$dlpath'
7880     shlibpath_overrides_runpath=yes
7881
7882     case $host_os in
7883     cygwin*)
7884       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7885       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7886       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7887       ;;
7888     mingw*)
7889       # MinGW DLLs use traditional 'lib' prefix
7890       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7891       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7892       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7893         # It is most probably a Windows format PATH printed by
7894         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7895         # path with ; separators, and with drive letters. We can handle the
7896         # drive letters (cygwin fileutils understands them), so leave them,
7897         # especially as we might pass files found there to a mingw objdump,
7898         # which wouldn't understand a cygwinified path. Ahh.
7899         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7900       else
7901         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7902       fi
7903       ;;
7904     pw32*)
7905       # pw32 DLLs use 'pw' prefix rather than 'lib'
7906       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7907       ;;
7908     esac
7909     ;;
7910
7911   *)
7912     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7913     ;;
7914   esac
7915   dynamic_linker='Win32 ld.exe'
7916   # FIXME: first we should search . and the directory the executable is in
7917   shlibpath_var=PATH
7918   ;;
7919
7920 darwin* | rhapsody*)
7921   dynamic_linker="$host_os dyld"
7922   version_type=darwin
7923   need_lib_prefix=no
7924   need_version=no
7925   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7926   soname_spec='${libname}${release}${major}$shared_ext'
7927   shlibpath_overrides_runpath=yes
7928   shlibpath_var=DYLD_LIBRARY_PATH
7929   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7930   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7931   if test "$GCC" = yes; then
7932     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"`
7933   else
7934     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7935   fi
7936   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7937   ;;
7938
7939 dgux*)
7940   version_type=linux
7941   need_lib_prefix=no
7942   need_version=no
7943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7944   soname_spec='${libname}${release}${shared_ext}$major'
7945   shlibpath_var=LD_LIBRARY_PATH
7946   ;;
7947
7948 freebsd1*)
7949   dynamic_linker=no
7950   ;;
7951
7952 kfreebsd*-gnu)
7953   version_type=linux
7954   need_lib_prefix=no
7955   need_version=no
7956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7957   soname_spec='${libname}${release}${shared_ext}$major'
7958   shlibpath_var=LD_LIBRARY_PATH
7959   shlibpath_overrides_runpath=no
7960   hardcode_into_libs=yes
7961   dynamic_linker='GNU ld.so'
7962   ;;
7963
7964 freebsd* | dragonfly*)
7965   # DragonFly does not have aout.  When/if they implement a new
7966   # versioning mechanism, adjust this.
7967   if test -x /usr/bin/objformat; then
7968     objformat=`/usr/bin/objformat`
7969   else
7970     case $host_os in
7971     freebsd[123]*) objformat=aout ;;
7972     *) objformat=elf ;;
7973     esac
7974   fi
7975   version_type=freebsd-$objformat
7976   case $version_type in
7977     freebsd-elf*)
7978       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7979       need_version=no
7980       need_lib_prefix=no
7981       ;;
7982     freebsd-*)
7983       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7984       need_version=yes
7985       ;;
7986   esac
7987   shlibpath_var=LD_LIBRARY_PATH
7988   case $host_os in
7989   freebsd2*)
7990     shlibpath_overrides_runpath=yes
7991     ;;
7992   freebsd3.[01]* | freebsdelf3.[01]*)
7993     shlibpath_overrides_runpath=yes
7994     hardcode_into_libs=yes
7995     ;;
7996   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7997   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7998     shlibpath_overrides_runpath=no
7999     hardcode_into_libs=yes
8000     ;;
8001   freebsd*) # from 4.6 on
8002     shlibpath_overrides_runpath=yes
8003     hardcode_into_libs=yes
8004     ;;
8005   esac
8006   ;;
8007
8008 gnu*)
8009   version_type=linux
8010   need_lib_prefix=no
8011   need_version=no
8012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8013   soname_spec='${libname}${release}${shared_ext}$major'
8014   shlibpath_var=LD_LIBRARY_PATH
8015   hardcode_into_libs=yes
8016   ;;
8017
8018 hpux9* | hpux10* | hpux11*)
8019   # Give a soname corresponding to the major version so that dld.sl refuses to
8020   # link against other versions.
8021   version_type=sunos
8022   need_lib_prefix=no
8023   need_version=no
8024   case $host_cpu in
8025   ia64*)
8026     shrext_cmds='.so'
8027     hardcode_into_libs=yes
8028     dynamic_linker="$host_os dld.so"
8029     shlibpath_var=LD_LIBRARY_PATH
8030     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032     soname_spec='${libname}${release}${shared_ext}$major'
8033     if test "X$HPUX_IA64_MODE" = X32; then
8034       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8035     else
8036       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8037     fi
8038     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8039     ;;
8040    hppa*64*)
8041      shrext_cmds='.sl'
8042      hardcode_into_libs=yes
8043      dynamic_linker="$host_os dld.sl"
8044      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8045      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8046      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047      soname_spec='${libname}${release}${shared_ext}$major'
8048      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8049      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8050      ;;
8051    *)
8052     shrext_cmds='.sl'
8053     dynamic_linker="$host_os dld.sl"
8054     shlibpath_var=SHLIB_PATH
8055     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8057     soname_spec='${libname}${release}${shared_ext}$major'
8058     ;;
8059   esac
8060   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8061   postinstall_cmds='chmod 555 $lib'
8062   ;;
8063
8064 interix3*)
8065   version_type=linux
8066   need_lib_prefix=no
8067   need_version=no
8068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8069   soname_spec='${libname}${release}${shared_ext}$major'
8070   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8071   shlibpath_var=LD_LIBRARY_PATH
8072   shlibpath_overrides_runpath=no
8073   hardcode_into_libs=yes
8074   ;;
8075
8076 irix5* | irix6* | nonstopux*)
8077   case $host_os in
8078     nonstopux*) version_type=nonstopux ;;
8079     *)
8080         if test "$lt_cv_prog_gnu_ld" = yes; then
8081                 version_type=linux
8082         else
8083                 version_type=irix
8084         fi ;;
8085   esac
8086   need_lib_prefix=no
8087   need_version=no
8088   soname_spec='${libname}${release}${shared_ext}$major'
8089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8090   case $host_os in
8091   irix5* | nonstopux*)
8092     libsuff= shlibsuff=
8093     ;;
8094   *)
8095     case $LD in # libtool.m4 will add one of these switches to LD
8096     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8097       libsuff= shlibsuff= libmagic=32-bit;;
8098     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8099       libsuff=32 shlibsuff=N32 libmagic=N32;;
8100     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8101       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8102     *) libsuff= shlibsuff= libmagic=never-match;;
8103     esac
8104     ;;
8105   esac
8106   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8107   shlibpath_overrides_runpath=no
8108   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8109   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8110   hardcode_into_libs=yes
8111   ;;
8112
8113 # No shared lib support for Linux oldld, aout, or coff.
8114 linux*oldld* | linux*aout* | linux*coff*)
8115   dynamic_linker=no
8116   ;;
8117
8118 # This must be Linux ELF.
8119 linux*)
8120   version_type=linux
8121   need_lib_prefix=no
8122   need_version=no
8123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8124   soname_spec='${libname}${release}${shared_ext}$major'
8125   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8126   shlibpath_var=LD_LIBRARY_PATH
8127   shlibpath_overrides_runpath=no
8128   # This implies no fast_install, which is unacceptable.
8129   # Some rework will be needed to allow for fast_install
8130   # before this can be enabled.
8131   hardcode_into_libs=yes
8132
8133   # Append ld.so.conf contents to the search path
8134   if test -f /etc/ld.so.conf; then
8135     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8136     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8137   fi
8138
8139   # We used to test for /lib/ld.so.1 and disable shared libraries on
8140   # powerpc, because MkLinux only supported shared libraries with the
8141   # GNU dynamic linker.  Since this was broken with cross compilers,
8142   # most powerpc-linux boxes support dynamic linking these days and
8143   # people can always --disable-shared, the test was removed, and we
8144   # assume the GNU/Linux dynamic linker is in use.
8145   dynamic_linker='GNU/Linux ld.so'
8146   ;;
8147
8148 knetbsd*-gnu)
8149   version_type=linux
8150   need_lib_prefix=no
8151   need_version=no
8152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8153   soname_spec='${libname}${release}${shared_ext}$major'
8154   shlibpath_var=LD_LIBRARY_PATH
8155   shlibpath_overrides_runpath=no
8156   hardcode_into_libs=yes
8157   dynamic_linker='GNU ld.so'
8158   ;;
8159
8160 netbsd*)
8161   version_type=sunos
8162   need_lib_prefix=no
8163   need_version=no
8164   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8166     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8167     dynamic_linker='NetBSD (a.out) ld.so'
8168   else
8169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8170     soname_spec='${libname}${release}${shared_ext}$major'
8171     dynamic_linker='NetBSD ld.elf_so'
8172   fi
8173   shlibpath_var=LD_LIBRARY_PATH
8174   shlibpath_overrides_runpath=yes
8175   hardcode_into_libs=yes
8176   ;;
8177
8178 newsos6)
8179   version_type=linux
8180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8181   shlibpath_var=LD_LIBRARY_PATH
8182   shlibpath_overrides_runpath=yes
8183   ;;
8184
8185 nto-qnx*)
8186   version_type=linux
8187   need_lib_prefix=no
8188   need_version=no
8189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8190   soname_spec='${libname}${release}${shared_ext}$major'
8191   shlibpath_var=LD_LIBRARY_PATH
8192   shlibpath_overrides_runpath=yes
8193   ;;
8194
8195 openbsd*)
8196   version_type=sunos
8197   sys_lib_dlsearch_path_spec="/usr/lib"
8198   need_lib_prefix=no
8199   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8200   case $host_os in
8201     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8202     *)                         need_version=no  ;;
8203   esac
8204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8205   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8206   shlibpath_var=LD_LIBRARY_PATH
8207   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8208     case $host_os in
8209       openbsd2.[89] | openbsd2.[89].*)
8210         shlibpath_overrides_runpath=no
8211         ;;
8212       *)
8213         shlibpath_overrides_runpath=yes
8214         ;;
8215       esac
8216   else
8217     shlibpath_overrides_runpath=yes
8218   fi
8219   ;;
8220
8221 os2*)
8222   libname_spec='$name'
8223   shrext_cmds=".dll"
8224   need_lib_prefix=no
8225   library_names_spec='$libname${shared_ext} $libname.a'
8226   dynamic_linker='OS/2 ld.exe'
8227   shlibpath_var=LIBPATH
8228   ;;
8229
8230 osf3* | osf4* | osf5*)
8231   version_type=osf
8232   need_lib_prefix=no
8233   need_version=no
8234   soname_spec='${libname}${release}${shared_ext}$major'
8235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8236   shlibpath_var=LD_LIBRARY_PATH
8237   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8238   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8239   ;;
8240
8241 solaris*)
8242   version_type=linux
8243   need_lib_prefix=no
8244   need_version=no
8245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8246   soname_spec='${libname}${release}${shared_ext}$major'
8247   shlibpath_var=LD_LIBRARY_PATH
8248   shlibpath_overrides_runpath=yes
8249   hardcode_into_libs=yes
8250   # ldd complains unless libraries are executable
8251   postinstall_cmds='chmod +x $lib'
8252   ;;
8253
8254 sunos4*)
8255   version_type=sunos
8256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8257   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8258   shlibpath_var=LD_LIBRARY_PATH
8259   shlibpath_overrides_runpath=yes
8260   if test "$with_gnu_ld" = yes; then
8261     need_lib_prefix=no
8262   fi
8263   need_version=yes
8264   ;;
8265
8266 sysv4 | sysv4.3*)
8267   version_type=linux
8268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8269   soname_spec='${libname}${release}${shared_ext}$major'
8270   shlibpath_var=LD_LIBRARY_PATH
8271   case $host_vendor in
8272     sni)
8273       shlibpath_overrides_runpath=no
8274       need_lib_prefix=no
8275       export_dynamic_flag_spec='${wl}-Blargedynsym'
8276       runpath_var=LD_RUN_PATH
8277       ;;
8278     siemens)
8279       need_lib_prefix=no
8280       ;;
8281     motorola)
8282       need_lib_prefix=no
8283       need_version=no
8284       shlibpath_overrides_runpath=no
8285       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8286       ;;
8287   esac
8288   ;;
8289
8290 sysv4*MP*)
8291   if test -d /usr/nec ;then
8292     version_type=linux
8293     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8294     soname_spec='$libname${shared_ext}.$major'
8295     shlibpath_var=LD_LIBRARY_PATH
8296   fi
8297   ;;
8298
8299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8300   version_type=freebsd-elf
8301   need_lib_prefix=no
8302   need_version=no
8303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8304   soname_spec='${libname}${release}${shared_ext}$major'
8305   shlibpath_var=LD_LIBRARY_PATH
8306   hardcode_into_libs=yes
8307   if test "$with_gnu_ld" = yes; then
8308     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8309     shlibpath_overrides_runpath=no
8310   else
8311     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8312     shlibpath_overrides_runpath=yes
8313     case $host_os in
8314       sco3.2v5*)
8315         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8316         ;;
8317     esac
8318   fi
8319   sys_lib_dlsearch_path_spec='/usr/lib'
8320   ;;
8321
8322 uts4*)
8323   version_type=linux
8324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8325   soname_spec='${libname}${release}${shared_ext}$major'
8326   shlibpath_var=LD_LIBRARY_PATH
8327   ;;
8328
8329 *)
8330   dynamic_linker=no
8331   ;;
8332 esac
8333 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8334 echo "${ECHO_T}$dynamic_linker" >&6
8335 test "$dynamic_linker" = no && can_build_shared=no
8336
8337 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8338 if test "$GCC" = yes; then
8339   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8340 fi
8341
8342 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8343 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8344 hardcode_action=
8345 if test -n "$hardcode_libdir_flag_spec" || \
8346    test -n "$runpath_var" || \
8347    test "X$hardcode_automatic" = "Xyes" ; then
8348
8349   # We can hardcode non-existant directories.
8350   if test "$hardcode_direct" != no &&
8351      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8352      # have to relink, otherwise we might link with an installed library
8353      # when we should be linking with a yet-to-be-installed one
8354      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8355      test "$hardcode_minus_L" != no; then
8356     # Linking always hardcodes the temporary library directory.
8357     hardcode_action=relink
8358   else
8359     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8360     hardcode_action=immediate
8361   fi
8362 else
8363   # We cannot hardcode anything, or else we can only hardcode existing
8364   # directories.
8365   hardcode_action=unsupported
8366 fi
8367 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8368 echo "${ECHO_T}$hardcode_action" >&6
8369
8370 if test "$hardcode_action" = relink; then
8371   # Fast installation is not supported
8372   enable_fast_install=no
8373 elif test "$shlibpath_overrides_runpath" = yes ||
8374      test "$enable_shared" = no; then
8375   # Fast installation is not necessary
8376   enable_fast_install=needless
8377 fi
8378
8379 striplib=
8380 old_striplib=
8381 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8382 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8383 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8384   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8385   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8386   echo "$as_me:$LINENO: result: yes" >&5
8387 echo "${ECHO_T}yes" >&6
8388 else
8389 # FIXME - insert some real tests, host_os isn't really good enough
8390   case $host_os in
8391    darwin*)
8392        if test -n "$STRIP" ; then
8393          striplib="$STRIP -x"
8394          echo "$as_me:$LINENO: result: yes" >&5
8395 echo "${ECHO_T}yes" >&6
8396        else
8397   echo "$as_me:$LINENO: result: no" >&5
8398 echo "${ECHO_T}no" >&6
8399 fi
8400        ;;
8401    *)
8402   echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6
8404     ;;
8405   esac
8406 fi
8407
8408 if test "x$enable_dlopen" != xyes; then
8409   enable_dlopen=unknown
8410   enable_dlopen_self=unknown
8411   enable_dlopen_self_static=unknown
8412 else
8413   lt_cv_dlopen=no
8414   lt_cv_dlopen_libs=
8415
8416   case $host_os in
8417   beos*)
8418     lt_cv_dlopen="load_add_on"
8419     lt_cv_dlopen_libs=
8420     lt_cv_dlopen_self=yes
8421     ;;
8422
8423   mingw* | pw32*)
8424     lt_cv_dlopen="LoadLibrary"
8425     lt_cv_dlopen_libs=
8426    ;;
8427
8428   cygwin*)
8429     lt_cv_dlopen="dlopen"
8430     lt_cv_dlopen_libs=
8431    ;;
8432
8433   darwin*)
8434   # if libdl is installed we need to link against it
8435     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8436 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8437 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8438   echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440   ac_check_lib_save_LIBS=$LIBS
8441 LIBS="-ldl  $LIBS"
8442 cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h.  */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h.  */
8448
8449 /* Override any gcc2 internal prototype to avoid an error.  */
8450 #ifdef __cplusplus
8451 extern "C"
8452 #endif
8453 /* We use char because int might match the return type of a gcc2
8454    builtin and then its argument prototype would still apply.  */
8455 char dlopen ();
8456 int
8457 main ()
8458 {
8459 dlopen ();
8460   ;
8461   return 0;
8462 }
8463 _ACEOF
8464 rm -f conftest.$ac_objext conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466   (eval $ac_link) 2>conftest.er1
8467   ac_status=$?
8468   grep -v '^ *+' conftest.er1 >conftest.err
8469   rm -f conftest.er1
8470   cat conftest.err >&5
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); } &&
8473          { ac_try='test -z "$ac_c_werror_flag"
8474                          || test ! -s conftest.err'
8475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476   (eval $ac_try) 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); }; } &&
8480          { ac_try='test -s conftest$ac_exeext'
8481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482   (eval $ac_try) 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }; }; then
8486   ac_cv_lib_dl_dlopen=yes
8487 else
8488   echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8490
8491 ac_cv_lib_dl_dlopen=no
8492 fi
8493 rm -f conftest.err conftest.$ac_objext \
8494       conftest$ac_exeext conftest.$ac_ext
8495 LIBS=$ac_check_lib_save_LIBS
8496 fi
8497 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8498 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8499 if test $ac_cv_lib_dl_dlopen = yes; then
8500   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8501 else
8502
8503     lt_cv_dlopen="dyld"
8504     lt_cv_dlopen_libs=
8505     lt_cv_dlopen_self=yes
8506
8507 fi
8508
8509    ;;
8510
8511   *)
8512     echo "$as_me:$LINENO: checking for shl_load" >&5
8513 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8514 if test "${ac_cv_func_shl_load+set}" = set; then
8515   echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517   cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8525 #define shl_load innocuous_shl_load
8526
8527 /* System header to define __stub macros and hopefully few prototypes,
8528     which can conflict with char shl_load (); below.
8529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8530     <limits.h> exists even on freestanding compilers.  */
8531
8532 #ifdef __STDC__
8533 # include <limits.h>
8534 #else
8535 # include <assert.h>
8536 #endif
8537
8538 #undef shl_load
8539
8540 /* Override any gcc2 internal prototype to avoid an error.  */
8541 #ifdef __cplusplus
8542 extern "C"
8543 {
8544 #endif
8545 /* We use char because int might match the return type of a gcc2
8546    builtin and then its argument prototype would still apply.  */
8547 char shl_load ();
8548 /* The GNU C library defines this for functions which it implements
8549     to always fail with ENOSYS.  Some functions are actually named
8550     something starting with __ and the normal name is an alias.  */
8551 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8552 choke me
8553 #else
8554 char (*f) () = shl_load;
8555 #endif
8556 #ifdef __cplusplus
8557 }
8558 #endif
8559
8560 int
8561 main ()
8562 {
8563 return f != shl_load;
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570   (eval $ac_link) 2>conftest.er1
8571   ac_status=$?
8572   grep -v '^ *+' conftest.er1 >conftest.err
8573   rm -f conftest.er1
8574   cat conftest.err >&5
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); } &&
8577          { ac_try='test -z "$ac_c_werror_flag"
8578                          || test ! -s conftest.err'
8579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580   (eval $ac_try) 2>&5
8581   ac_status=$?
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); }; } &&
8584          { ac_try='test -s conftest$ac_exeext'
8585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586   (eval $ac_try) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }; }; then
8590   ac_cv_func_shl_load=yes
8591 else
8592   echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595 ac_cv_func_shl_load=no
8596 fi
8597 rm -f conftest.err conftest.$ac_objext \
8598       conftest$ac_exeext conftest.$ac_ext
8599 fi
8600 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8601 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8602 if test $ac_cv_func_shl_load = yes; then
8603   lt_cv_dlopen="shl_load"
8604 else
8605   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8606 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8607 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   ac_check_lib_save_LIBS=$LIBS
8611 LIBS="-ldld  $LIBS"
8612 cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h.  */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h.  */
8618
8619 /* Override any gcc2 internal prototype to avoid an error.  */
8620 #ifdef __cplusplus
8621 extern "C"
8622 #endif
8623 /* We use char because int might match the return type of a gcc2
8624    builtin and then its argument prototype would still apply.  */
8625 char shl_load ();
8626 int
8627 main ()
8628 {
8629 shl_load ();
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636   (eval $ac_link) 2>conftest.er1
8637   ac_status=$?
8638   grep -v '^ *+' conftest.er1 >conftest.err
8639   rm -f conftest.er1
8640   cat conftest.err >&5
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); } &&
8643          { ac_try='test -z "$ac_c_werror_flag"
8644                          || test ! -s conftest.err'
8645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646   (eval $ac_try) 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; } &&
8650          { ac_try='test -s conftest$ac_exeext'
8651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652   (eval $ac_try) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; }; then
8656   ac_cv_lib_dld_shl_load=yes
8657 else
8658   echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661 ac_cv_lib_dld_shl_load=no
8662 fi
8663 rm -f conftest.err conftest.$ac_objext \
8664       conftest$ac_exeext conftest.$ac_ext
8665 LIBS=$ac_check_lib_save_LIBS
8666 fi
8667 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8668 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8669 if test $ac_cv_lib_dld_shl_load = yes; then
8670   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8671 else
8672   echo "$as_me:$LINENO: checking for dlopen" >&5
8673 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8674 if test "${ac_cv_func_dlopen+set}" = set; then
8675   echo $ECHO_N "(cached) $ECHO_C" >&6
8676 else
8677   cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h.  */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h.  */
8683 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8685 #define dlopen innocuous_dlopen
8686
8687 /* System header to define __stub macros and hopefully few prototypes,
8688     which can conflict with char dlopen (); below.
8689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8690     <limits.h> exists even on freestanding compilers.  */
8691
8692 #ifdef __STDC__
8693 # include <limits.h>
8694 #else
8695 # include <assert.h>
8696 #endif
8697
8698 #undef dlopen
8699
8700 /* Override any gcc2 internal prototype to avoid an error.  */
8701 #ifdef __cplusplus
8702 extern "C"
8703 {
8704 #endif
8705 /* We use char because int might match the return type of a gcc2
8706    builtin and then its argument prototype would still apply.  */
8707 char dlopen ();
8708 /* The GNU C library defines this for functions which it implements
8709     to always fail with ENOSYS.  Some functions are actually named
8710     something starting with __ and the normal name is an alias.  */
8711 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8712 choke me
8713 #else
8714 char (*f) () = dlopen;
8715 #endif
8716 #ifdef __cplusplus
8717 }
8718 #endif
8719
8720 int
8721 main ()
8722 {
8723 return f != dlopen;
8724   ;
8725   return 0;
8726 }
8727 _ACEOF
8728 rm -f conftest.$ac_objext conftest$ac_exeext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730   (eval $ac_link) 2>conftest.er1
8731   ac_status=$?
8732   grep -v '^ *+' conftest.er1 >conftest.err
8733   rm -f conftest.er1
8734   cat conftest.err >&5
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); } &&
8737          { ac_try='test -z "$ac_c_werror_flag"
8738                          || test ! -s conftest.err'
8739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740   (eval $ac_try) 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); }; } &&
8744          { ac_try='test -s conftest$ac_exeext'
8745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746   (eval $ac_try) 2>&5
8747   ac_status=$?
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); }; }; then
8750   ac_cv_func_dlopen=yes
8751 else
8752   echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8754
8755 ac_cv_func_dlopen=no
8756 fi
8757 rm -f conftest.err conftest.$ac_objext \
8758       conftest$ac_exeext conftest.$ac_ext
8759 fi
8760 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8761 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8762 if test $ac_cv_func_dlopen = yes; then
8763   lt_cv_dlopen="dlopen"
8764 else
8765   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8768   echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770   ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-ldl  $LIBS"
8772 cat >conftest.$ac_ext <<_ACEOF
8773 /* confdefs.h.  */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h.  */
8778
8779 /* Override any gcc2 internal prototype to avoid an error.  */
8780 #ifdef __cplusplus
8781 extern "C"
8782 #endif
8783 /* We use char because int might match the return type of a gcc2
8784    builtin and then its argument prototype would still apply.  */
8785 char dlopen ();
8786 int
8787 main ()
8788 {
8789 dlopen ();
8790   ;
8791   return 0;
8792 }
8793 _ACEOF
8794 rm -f conftest.$ac_objext conftest$ac_exeext
8795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8796   (eval $ac_link) 2>conftest.er1
8797   ac_status=$?
8798   grep -v '^ *+' conftest.er1 >conftest.err
8799   rm -f conftest.er1
8800   cat conftest.err >&5
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); } &&
8803          { ac_try='test -z "$ac_c_werror_flag"
8804                          || test ! -s conftest.err'
8805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806   (eval $ac_try) 2>&5
8807   ac_status=$?
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); }; } &&
8810          { ac_try='test -s conftest$ac_exeext'
8811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812   (eval $ac_try) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); }; }; then
8816   ac_cv_lib_dl_dlopen=yes
8817 else
8818   echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8820
8821 ac_cv_lib_dl_dlopen=no
8822 fi
8823 rm -f conftest.err conftest.$ac_objext \
8824       conftest$ac_exeext conftest.$ac_ext
8825 LIBS=$ac_check_lib_save_LIBS
8826 fi
8827 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8829 if test $ac_cv_lib_dl_dlopen = yes; then
8830   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8831 else
8832   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8833 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8834 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8835   echo $ECHO_N "(cached) $ECHO_C" >&6
8836 else
8837   ac_check_lib_save_LIBS=$LIBS
8838 LIBS="-lsvld  $LIBS"
8839 cat >conftest.$ac_ext <<_ACEOF
8840 /* confdefs.h.  */
8841 _ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h.  */
8845
8846 /* Override any gcc2 internal prototype to avoid an error.  */
8847 #ifdef __cplusplus
8848 extern "C"
8849 #endif
8850 /* We use char because int might match the return type of a gcc2
8851    builtin and then its argument prototype would still apply.  */
8852 char dlopen ();
8853 int
8854 main ()
8855 {
8856 dlopen ();
8857   ;
8858   return 0;
8859 }
8860 _ACEOF
8861 rm -f conftest.$ac_objext conftest$ac_exeext
8862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863   (eval $ac_link) 2>conftest.er1
8864   ac_status=$?
8865   grep -v '^ *+' conftest.er1 >conftest.err
8866   rm -f conftest.er1
8867   cat conftest.err >&5
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); } &&
8870          { ac_try='test -z "$ac_c_werror_flag"
8871                          || test ! -s conftest.err'
8872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873   (eval $ac_try) 2>&5
8874   ac_status=$?
8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876   (exit $ac_status); }; } &&
8877          { ac_try='test -s conftest$ac_exeext'
8878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879   (eval $ac_try) 2>&5
8880   ac_status=$?
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); }; }; then
8883   ac_cv_lib_svld_dlopen=yes
8884 else
8885   echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8887
8888 ac_cv_lib_svld_dlopen=no
8889 fi
8890 rm -f conftest.err conftest.$ac_objext \
8891       conftest$ac_exeext conftest.$ac_ext
8892 LIBS=$ac_check_lib_save_LIBS
8893 fi
8894 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8895 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8896 if test $ac_cv_lib_svld_dlopen = yes; then
8897   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8898 else
8899   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8900 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8901 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8902   echo $ECHO_N "(cached) $ECHO_C" >&6
8903 else
8904   ac_check_lib_save_LIBS=$LIBS
8905 LIBS="-ldld  $LIBS"
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h.  */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h.  */
8912
8913 /* Override any gcc2 internal prototype to avoid an error.  */
8914 #ifdef __cplusplus
8915 extern "C"
8916 #endif
8917 /* We use char because int might match the return type of a gcc2
8918    builtin and then its argument prototype would still apply.  */
8919 char dld_link ();
8920 int
8921 main ()
8922 {
8923 dld_link ();
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930   (eval $ac_link) 2>conftest.er1
8931   ac_status=$?
8932   grep -v '^ *+' conftest.er1 >conftest.err
8933   rm -f conftest.er1
8934   cat conftest.err >&5
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); } &&
8937          { ac_try='test -z "$ac_c_werror_flag"
8938                          || test ! -s conftest.err'
8939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940   (eval $ac_try) 2>&5
8941   ac_status=$?
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); }; } &&
8944          { ac_try='test -s conftest$ac_exeext'
8945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946   (eval $ac_try) 2>&5
8947   ac_status=$?
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); }; }; then
8950   ac_cv_lib_dld_dld_link=yes
8951 else
8952   echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8954
8955 ac_cv_lib_dld_dld_link=no
8956 fi
8957 rm -f conftest.err conftest.$ac_objext \
8958       conftest$ac_exeext conftest.$ac_ext
8959 LIBS=$ac_check_lib_save_LIBS
8960 fi
8961 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8962 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8963 if test $ac_cv_lib_dld_dld_link = yes; then
8964   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8965 fi
8966
8967
8968 fi
8969
8970
8971 fi
8972
8973
8974 fi
8975
8976
8977 fi
8978
8979
8980 fi
8981
8982     ;;
8983   esac
8984
8985   if test "x$lt_cv_dlopen" != xno; then
8986     enable_dlopen=yes
8987   else
8988     enable_dlopen=no
8989   fi
8990
8991   case $lt_cv_dlopen in
8992   dlopen)
8993     save_CPPFLAGS="$CPPFLAGS"
8994     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8995
8996     save_LDFLAGS="$LDFLAGS"
8997     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8998
8999     save_LIBS="$LIBS"
9000     LIBS="$lt_cv_dlopen_libs $LIBS"
9001
9002     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9003 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9004 if test "${lt_cv_dlopen_self+set}" = set; then
9005   echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007           if test "$cross_compiling" = yes; then :
9008   lt_cv_dlopen_self=cross
9009 else
9010   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9011   lt_status=$lt_dlunknown
9012   cat > conftest.$ac_ext <<EOF
9013 #line 9013 "configure"
9014 #include "confdefs.h"
9015
9016 #if HAVE_DLFCN_H
9017 #include <dlfcn.h>
9018 #endif
9019
9020 #include <stdio.h>
9021
9022 #ifdef RTLD_GLOBAL
9023 #  define LT_DLGLOBAL           RTLD_GLOBAL
9024 #else
9025 #  ifdef DL_GLOBAL
9026 #    define LT_DLGLOBAL         DL_GLOBAL
9027 #  else
9028 #    define LT_DLGLOBAL         0
9029 #  endif
9030 #endif
9031
9032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9033    find out it does not work in some platform. */
9034 #ifndef LT_DLLAZY_OR_NOW
9035 #  ifdef RTLD_LAZY
9036 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9037 #  else
9038 #    ifdef DL_LAZY
9039 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9040 #    else
9041 #      ifdef RTLD_NOW
9042 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9043 #      else
9044 #        ifdef DL_NOW
9045 #          define LT_DLLAZY_OR_NOW      DL_NOW
9046 #        else
9047 #          define LT_DLLAZY_OR_NOW      0
9048 #        endif
9049 #      endif
9050 #    endif
9051 #  endif
9052 #endif
9053
9054 #ifdef __cplusplus
9055 extern "C" void exit (int);
9056 #endif
9057
9058 void fnord() { int i=42;}
9059 int main ()
9060 {
9061   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9062   int status = $lt_dlunknown;
9063
9064   if (self)
9065     {
9066       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9067       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9068       /* dlclose (self); */
9069     }
9070   else
9071     puts (dlerror ());
9072
9073     exit (status);
9074 }
9075 EOF
9076   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9077   (eval $ac_link) 2>&5
9078   ac_status=$?
9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9081     (./conftest; exit; ) >&5 2>/dev/null
9082     lt_status=$?
9083     case x$lt_status in
9084       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9085       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9086       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9087     esac
9088   else :
9089     # compilation failed
9090     lt_cv_dlopen_self=no
9091   fi
9092 fi
9093 rm -fr conftest*
9094
9095
9096 fi
9097 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9098 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9099
9100     if test "x$lt_cv_dlopen_self" = xyes; then
9101       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9102       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9103 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9104 if test "${lt_cv_dlopen_self_static+set}" = set; then
9105   echo $ECHO_N "(cached) $ECHO_C" >&6
9106 else
9107           if test "$cross_compiling" = yes; then :
9108   lt_cv_dlopen_self_static=cross
9109 else
9110   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9111   lt_status=$lt_dlunknown
9112   cat > conftest.$ac_ext <<EOF
9113 #line 9113 "configure"
9114 #include "confdefs.h"
9115
9116 #if HAVE_DLFCN_H
9117 #include <dlfcn.h>
9118 #endif
9119
9120 #include <stdio.h>
9121
9122 #ifdef RTLD_GLOBAL
9123 #  define LT_DLGLOBAL           RTLD_GLOBAL
9124 #else
9125 #  ifdef DL_GLOBAL
9126 #    define LT_DLGLOBAL         DL_GLOBAL
9127 #  else
9128 #    define LT_DLGLOBAL         0
9129 #  endif
9130 #endif
9131
9132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9133    find out it does not work in some platform. */
9134 #ifndef LT_DLLAZY_OR_NOW
9135 #  ifdef RTLD_LAZY
9136 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9137 #  else
9138 #    ifdef DL_LAZY
9139 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9140 #    else
9141 #      ifdef RTLD_NOW
9142 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9143 #      else
9144 #        ifdef DL_NOW
9145 #          define LT_DLLAZY_OR_NOW      DL_NOW
9146 #        else
9147 #          define LT_DLLAZY_OR_NOW      0
9148 #        endif
9149 #      endif
9150 #    endif
9151 #  endif
9152 #endif
9153
9154 #ifdef __cplusplus
9155 extern "C" void exit (int);
9156 #endif
9157
9158 void fnord() { int i=42;}
9159 int main ()
9160 {
9161   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9162   int status = $lt_dlunknown;
9163
9164   if (self)
9165     {
9166       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9167       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9168       /* dlclose (self); */
9169     }
9170   else
9171     puts (dlerror ());
9172
9173     exit (status);
9174 }
9175 EOF
9176   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9177   (eval $ac_link) 2>&5
9178   ac_status=$?
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9181     (./conftest; exit; ) >&5 2>/dev/null
9182     lt_status=$?
9183     case x$lt_status in
9184       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9185       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9186       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9187     esac
9188   else :
9189     # compilation failed
9190     lt_cv_dlopen_self_static=no
9191   fi
9192 fi
9193 rm -fr conftest*
9194
9195
9196 fi
9197 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9198 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9199     fi
9200
9201     CPPFLAGS="$save_CPPFLAGS"
9202     LDFLAGS="$save_LDFLAGS"
9203     LIBS="$save_LIBS"
9204     ;;
9205   esac
9206
9207   case $lt_cv_dlopen_self in
9208   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9209   *) enable_dlopen_self=unknown ;;
9210   esac
9211
9212   case $lt_cv_dlopen_self_static in
9213   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9214   *) enable_dlopen_self_static=unknown ;;
9215   esac
9216 fi
9217
9218
9219 # Report which library types will actually be built
9220 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9221 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9222 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9223 echo "${ECHO_T}$can_build_shared" >&6
9224
9225 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9226 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9227 test "$can_build_shared" = "no" && enable_shared=no
9228
9229 # On AIX, shared libraries and static libraries use the same namespace, and
9230 # are all built from PIC.
9231 case $host_os in
9232 aix3*)
9233   test "$enable_shared" = yes && enable_static=no
9234   if test -n "$RANLIB"; then
9235     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9236     postinstall_cmds='$RANLIB $lib'
9237   fi
9238   ;;
9239
9240 aix4* | aix5*)
9241   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9242     test "$enable_shared" = yes && enable_static=no
9243   fi
9244     ;;
9245 esac
9246 echo "$as_me:$LINENO: result: $enable_shared" >&5
9247 echo "${ECHO_T}$enable_shared" >&6
9248
9249 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9250 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9251 # Make sure either enable_shared or enable_static is yes.
9252 test "$enable_shared" = yes || enable_static=yes
9253 echo "$as_me:$LINENO: result: $enable_static" >&5
9254 echo "${ECHO_T}$enable_static" >&6
9255
9256 # The else clause should only fire when bootstrapping the
9257 # libtool distribution, otherwise you forgot to ship ltmain.sh
9258 # with your package, and you will get complaints that there are
9259 # no rules to generate ltmain.sh.
9260 if test -f "$ltmain"; then
9261   # See if we are running on zsh, and set the options which allow our commands through
9262   # without removal of \ escapes.
9263   if test -n "${ZSH_VERSION+set}" ; then
9264     setopt NO_GLOB_SUBST
9265   fi
9266   # Now quote all the things that may contain metacharacters while being
9267   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9268   # variables and quote the copies for generation of the libtool script.
9269   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9270     SED SHELL STRIP \
9271     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9272     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9273     deplibs_check_method reload_flag reload_cmds need_locks \
9274     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9275     lt_cv_sys_global_symbol_to_c_name_address \
9276     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9277     old_postinstall_cmds old_postuninstall_cmds \
9278     compiler \
9279     CC \
9280     LD \
9281     lt_prog_compiler_wl \
9282     lt_prog_compiler_pic \
9283     lt_prog_compiler_static \
9284     lt_prog_compiler_no_builtin_flag \
9285     export_dynamic_flag_spec \
9286     thread_safe_flag_spec \
9287     whole_archive_flag_spec \
9288     enable_shared_with_static_runtimes \
9289     old_archive_cmds \
9290     old_archive_from_new_cmds \
9291     predep_objects \
9292     postdep_objects \
9293     predeps \
9294     postdeps \
9295     compiler_lib_search_path \
9296     archive_cmds \
9297     archive_expsym_cmds \
9298     postinstall_cmds \
9299     postuninstall_cmds \
9300     old_archive_from_expsyms_cmds \
9301     allow_undefined_flag \
9302     no_undefined_flag \
9303     export_symbols_cmds \
9304     hardcode_libdir_flag_spec \
9305     hardcode_libdir_flag_spec_ld \
9306     hardcode_libdir_separator \
9307     hardcode_automatic \
9308     module_cmds \
9309     module_expsym_cmds \
9310     lt_cv_prog_compiler_c_o \
9311     exclude_expsyms \
9312     include_expsyms; do
9313
9314     case $var in
9315     old_archive_cmds | \
9316     old_archive_from_new_cmds | \
9317     archive_cmds | \
9318     archive_expsym_cmds | \
9319     module_cmds | \
9320     module_expsym_cmds | \
9321     old_archive_from_expsyms_cmds | \
9322     export_symbols_cmds | \
9323     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9324     postinstall_cmds | postuninstall_cmds | \
9325     old_postinstall_cmds | old_postuninstall_cmds | \
9326     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9327       # Double-quote double-evaled strings.
9328       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9329       ;;
9330     *)
9331       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9332       ;;
9333     esac
9334   done
9335
9336   case $lt_echo in
9337   *'\$0 --fallback-echo"')
9338     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9339     ;;
9340   esac
9341
9342 cfgfile="${ofile}T"
9343   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9344   $rm -f "$cfgfile"
9345   { echo "$as_me:$LINENO: creating $ofile" >&5
9346 echo "$as_me: creating $ofile" >&6;}
9347
9348   cat <<__EOF__ >> "$cfgfile"
9349 #! $SHELL
9350
9351 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9352 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9353 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9354 #
9355 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9356 # Free Software Foundation, Inc.
9357 #
9358 # This file is part of GNU Libtool:
9359 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9360 #
9361 # This program is free software; you can redistribute it and/or modify
9362 # it under the terms of the GNU General Public License as published by
9363 # the Free Software Foundation; either version 2 of the License, or
9364 # (at your option) any later version.
9365 #
9366 # This program is distributed in the hope that it will be useful, but
9367 # WITHOUT ANY WARRANTY; without even the implied warranty of
9368 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9369 # General Public License for more details.
9370 #
9371 # You should have received a copy of the GNU General Public License
9372 # along with this program; if not, write to the Free Software
9373 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9374 #
9375 # As a special exception to the GNU General Public License, if you
9376 # distribute this file as part of a program that contains a
9377 # configuration script generated by Autoconf, you may include it under
9378 # the same distribution terms that you use for the rest of that program.
9379
9380 # A sed program that does not truncate output.
9381 SED=$lt_SED
9382
9383 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9384 Xsed="$SED -e 1s/^X//"
9385
9386 # The HP-UX ksh and POSIX shell print the target directory to stdout
9387 # if CDPATH is set.
9388 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9389
9390 # The names of the tagged configurations supported by this script.
9391 available_tags=
9392
9393 # ### BEGIN LIBTOOL CONFIG
9394
9395 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9396
9397 # Shell to use when invoking shell scripts.
9398 SHELL=$lt_SHELL
9399
9400 # Whether or not to build shared libraries.
9401 build_libtool_libs=$enable_shared
9402
9403 # Whether or not to build static libraries.
9404 build_old_libs=$enable_static
9405
9406 # Whether or not to add -lc for building shared libraries.
9407 build_libtool_need_lc=$archive_cmds_need_lc
9408
9409 # Whether or not to disallow shared libs when runtime libs are static
9410 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9411
9412 # Whether or not to optimize for fast installation.
9413 fast_install=$enable_fast_install
9414
9415 # The host system.
9416 host_alias=$host_alias
9417 host=$host
9418 host_os=$host_os
9419
9420 # The build system.
9421 build_alias=$build_alias
9422 build=$build
9423 build_os=$build_os
9424
9425 # An echo program that does not interpret backslashes.
9426 echo=$lt_echo
9427
9428 # The archiver.
9429 AR=$lt_AR
9430 AR_FLAGS=$lt_AR_FLAGS
9431
9432 # A C compiler.
9433 LTCC=$lt_LTCC
9434
9435 # LTCC compiler flags.
9436 LTCFLAGS=$lt_LTCFLAGS
9437
9438 # A language-specific compiler.
9439 CC=$lt_compiler
9440
9441 # Is the compiler the GNU C compiler?
9442 with_gcc=$GCC
9443
9444 # An ERE matcher.
9445 EGREP=$lt_EGREP
9446
9447 # The linker used to build libraries.
9448 LD=$lt_LD
9449
9450 # Whether we need hard or soft links.
9451 LN_S=$lt_LN_S
9452
9453 # A BSD-compatible nm program.
9454 NM=$lt_NM
9455
9456 # A symbol stripping program
9457 STRIP=$lt_STRIP
9458
9459 # Used to examine libraries when file_magic_cmd begins "file"
9460 MAGIC_CMD=$MAGIC_CMD
9461
9462 # Used on cygwin: DLL creation program.
9463 DLLTOOL="$DLLTOOL"
9464
9465 # Used on cygwin: object dumper.
9466 OBJDUMP="$OBJDUMP"
9467
9468 # Used on cygwin: assembler.
9469 AS="$AS"
9470
9471 # The name of the directory that contains temporary libtool files.
9472 objdir=$objdir
9473
9474 # How to create reloadable object files.
9475 reload_flag=$lt_reload_flag
9476 reload_cmds=$lt_reload_cmds
9477
9478 # How to pass a linker flag through the compiler.
9479 wl=$lt_lt_prog_compiler_wl
9480
9481 # Object file suffix (normally "o").
9482 objext="$ac_objext"
9483
9484 # Old archive suffix (normally "a").
9485 libext="$libext"
9486
9487 # Shared library suffix (normally ".so").
9488 shrext_cmds='$shrext_cmds'
9489
9490 # Executable file suffix (normally "").
9491 exeext="$exeext"
9492
9493 # Additional compiler flags for building library objects.
9494 pic_flag=$lt_lt_prog_compiler_pic
9495 pic_mode=$pic_mode
9496
9497 # What is the maximum length of a command?
9498 max_cmd_len=$lt_cv_sys_max_cmd_len
9499
9500 # Does compiler simultaneously support -c and -o options?
9501 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9502
9503 # Must we lock files when doing compilation?
9504 need_locks=$lt_need_locks
9505
9506 # Do we need the lib prefix for modules?
9507 need_lib_prefix=$need_lib_prefix
9508
9509 # Do we need a version for libraries?
9510 need_version=$need_version
9511
9512 # Whether dlopen is supported.
9513 dlopen_support=$enable_dlopen
9514
9515 # Whether dlopen of programs is supported.
9516 dlopen_self=$enable_dlopen_self
9517
9518 # Whether dlopen of statically linked programs is supported.
9519 dlopen_self_static=$enable_dlopen_self_static
9520
9521 # Compiler flag to prevent dynamic linking.
9522 link_static_flag=$lt_lt_prog_compiler_static
9523
9524 # Compiler flag to turn off builtin functions.
9525 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9526
9527 # Compiler flag to allow reflexive dlopens.
9528 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9529
9530 # Compiler flag to generate shared objects directly from archives.
9531 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9532
9533 # Compiler flag to generate thread-safe objects.
9534 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9535
9536 # Library versioning type.
9537 version_type=$version_type
9538
9539 # Format of library name prefix.
9540 libname_spec=$lt_libname_spec
9541
9542 # List of archive names.  First name is the real one, the rest are links.
9543 # The last name is the one that the linker finds with -lNAME.
9544 library_names_spec=$lt_library_names_spec
9545
9546 # The coded name of the library, if different from the real name.
9547 soname_spec=$lt_soname_spec
9548
9549 # Commands used to build and install an old-style archive.
9550 RANLIB=$lt_RANLIB
9551 old_archive_cmds=$lt_old_archive_cmds
9552 old_postinstall_cmds=$lt_old_postinstall_cmds
9553 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9554
9555 # Create an old-style archive from a shared archive.
9556 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9557
9558 # Create a temporary old-style archive to link instead of a shared archive.
9559 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9560
9561 # Commands used to build and install a shared archive.
9562 archive_cmds=$lt_archive_cmds
9563 archive_expsym_cmds=$lt_archive_expsym_cmds
9564 postinstall_cmds=$lt_postinstall_cmds
9565 postuninstall_cmds=$lt_postuninstall_cmds
9566
9567 # Commands used to build a loadable module (assumed same as above if empty)
9568 module_cmds=$lt_module_cmds
9569 module_expsym_cmds=$lt_module_expsym_cmds
9570
9571 # Commands to strip libraries.
9572 old_striplib=$lt_old_striplib
9573 striplib=$lt_striplib
9574
9575 # Dependencies to place before the objects being linked to create a
9576 # shared library.
9577 predep_objects=$lt_predep_objects
9578
9579 # Dependencies to place after the objects being linked to create a
9580 # shared library.
9581 postdep_objects=$lt_postdep_objects
9582
9583 # Dependencies to place before the objects being linked to create a
9584 # shared library.
9585 predeps=$lt_predeps
9586
9587 # Dependencies to place after the objects being linked to create a
9588 # shared library.
9589 postdeps=$lt_postdeps
9590
9591 # The library search path used internally by the compiler when linking
9592 # a shared library.
9593 compiler_lib_search_path=$lt_compiler_lib_search_path
9594
9595 # Method to check whether dependent libraries are shared objects.
9596 deplibs_check_method=$lt_deplibs_check_method
9597
9598 # Command to use when deplibs_check_method == file_magic.
9599 file_magic_cmd=$lt_file_magic_cmd
9600
9601 # Flag that allows shared libraries with undefined symbols to be built.
9602 allow_undefined_flag=$lt_allow_undefined_flag
9603
9604 # Flag that forces no undefined symbols.
9605 no_undefined_flag=$lt_no_undefined_flag
9606
9607 # Commands used to finish a libtool library installation in a directory.
9608 finish_cmds=$lt_finish_cmds
9609
9610 # Same as above, but a single script fragment to be evaled but not shown.
9611 finish_eval=$lt_finish_eval
9612
9613 # Take the output of nm and produce a listing of raw symbols and C names.
9614 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9615
9616 # Transform the output of nm in a proper C declaration
9617 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9618
9619 # Transform the output of nm in a C name address pair
9620 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9621
9622 # This is the shared library runtime path variable.
9623 runpath_var=$runpath_var
9624
9625 # This is the shared library path variable.
9626 shlibpath_var=$shlibpath_var
9627
9628 # Is shlibpath searched before the hard-coded library search path?
9629 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9630
9631 # How to hardcode a shared library path into an executable.
9632 hardcode_action=$hardcode_action
9633
9634 # Whether we should hardcode library paths into libraries.
9635 hardcode_into_libs=$hardcode_into_libs
9636
9637 # Flag to hardcode \$libdir into a binary during linking.
9638 # This must work even if \$libdir does not exist.
9639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9640
9641 # If ld is used when linking, flag to hardcode \$libdir into
9642 # a binary during linking. This must work even if \$libdir does
9643 # not exist.
9644 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9645
9646 # Whether we need a single -rpath flag with a separated argument.
9647 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9648
9649 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9650 # resulting binary.
9651 hardcode_direct=$hardcode_direct
9652
9653 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9654 # resulting binary.
9655 hardcode_minus_L=$hardcode_minus_L
9656
9657 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9658 # the resulting binary.
9659 hardcode_shlibpath_var=$hardcode_shlibpath_var
9660
9661 # Set to yes if building a shared library automatically hardcodes DIR into the library
9662 # and all subsequent libraries and executables linked against it.
9663 hardcode_automatic=$hardcode_automatic
9664
9665 # Variables whose values should be saved in libtool wrapper scripts and
9666 # restored at relink time.
9667 variables_saved_for_relink="$variables_saved_for_relink"
9668
9669 # Whether libtool must link a program against all its dependency libraries.
9670 link_all_deplibs=$link_all_deplibs
9671
9672 # Compile-time system search path for libraries
9673 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9674
9675 # Run-time system search path for libraries
9676 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9677
9678 # Fix the shell variable \$srcfile for the compiler.
9679 fix_srcfile_path="$fix_srcfile_path"
9680
9681 # Set to yes if exported symbols are required.
9682 always_export_symbols=$always_export_symbols
9683
9684 # The commands to list exported symbols.
9685 export_symbols_cmds=$lt_export_symbols_cmds
9686
9687 # The commands to extract the exported symbol list from a shared archive.
9688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9689
9690 # Symbols that should not be listed in the preloaded symbols.
9691 exclude_expsyms=$lt_exclude_expsyms
9692
9693 # Symbols that must always be exported.
9694 include_expsyms=$lt_include_expsyms
9695
9696 # ### END LIBTOOL CONFIG
9697
9698 __EOF__
9699
9700
9701   case $host_os in
9702   aix3*)
9703     cat <<\EOF >> "$cfgfile"
9704
9705 # AIX sometimes has problems with the GCC collect2 program.  For some
9706 # reason, if we set the COLLECT_NAMES environment variable, the problems
9707 # vanish in a puff of smoke.
9708 if test "X${COLLECT_NAMES+set}" != Xset; then
9709   COLLECT_NAMES=
9710   export COLLECT_NAMES
9711 fi
9712 EOF
9713     ;;
9714   esac
9715
9716   # We use sed instead of cat because bash on DJGPP gets confused if
9717   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9718   # text mode, it properly converts lines to CR/LF.  This bash problem
9719   # is reportedly fixed, but why not run on old versions too?
9720   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9721
9722   mv -f "$cfgfile" "$ofile" || \
9723     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9724   chmod +x "$ofile"
9725
9726 else
9727   # If there is no Makefile yet, we rely on a make rule to execute
9728   # `config.status --recheck' to rerun these tests and create the
9729   # libtool script then.
9730   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9731   if test -f "$ltmain_in"; then
9732     test -f Makefile && make "$ltmain"
9733   fi
9734 fi
9735
9736
9737 ac_ext=c
9738 ac_cpp='$CPP $CPPFLAGS'
9739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9742
9743 CC="$lt_save_CC"
9744
9745
9746 # Check whether --with-tags or --without-tags was given.
9747 if test "${with_tags+set}" = set; then
9748   withval="$with_tags"
9749   tagnames="$withval"
9750 fi;
9751
9752 if test -f "$ltmain" && test -n "$tagnames"; then
9753   if test ! -f "${ofile}"; then
9754     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9755 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9756   fi
9757
9758   if test -z "$LTCC"; then
9759     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9760     if test -z "$LTCC"; then
9761       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9762 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9763     else
9764       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9765 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9766     fi
9767   fi
9768   if test -z "$LTCFLAGS"; then
9769     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9770   fi
9771
9772   # Extract list of available tagged configurations in $ofile.
9773   # Note that this assumes the entire list is on one line.
9774   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9775
9776   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9777   for tagname in $tagnames; do
9778     IFS="$lt_save_ifs"
9779     # Check whether tagname contains only valid characters
9780     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9781     "") ;;
9782     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9783 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9784    { (exit 1); exit 1; }; }
9785         ;;
9786     esac
9787
9788     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9789     then
9790       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9791 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9792    { (exit 1); exit 1; }; }
9793     fi
9794
9795     # Update the list of available tags.
9796     if test -n "$tagname"; then
9797       echo appending configuration tag \"$tagname\" to $ofile
9798
9799       case $tagname in
9800       CXX)
9801         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9802             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9803             (test "X$CXX" != "Xg++"))) ; then
9804           ac_ext=cc
9805 ac_cpp='$CXXCPP $CPPFLAGS'
9806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9809
9810
9811
9812
9813 archive_cmds_need_lc_CXX=no
9814 allow_undefined_flag_CXX=
9815 always_export_symbols_CXX=no
9816 archive_expsym_cmds_CXX=
9817 export_dynamic_flag_spec_CXX=
9818 hardcode_direct_CXX=no
9819 hardcode_libdir_flag_spec_CXX=
9820 hardcode_libdir_flag_spec_ld_CXX=
9821 hardcode_libdir_separator_CXX=
9822 hardcode_minus_L_CXX=no
9823 hardcode_shlibpath_var_CXX=unsupported
9824 hardcode_automatic_CXX=no
9825 module_cmds_CXX=
9826 module_expsym_cmds_CXX=
9827 link_all_deplibs_CXX=unknown
9828 old_archive_cmds_CXX=$old_archive_cmds
9829 no_undefined_flag_CXX=
9830 whole_archive_flag_spec_CXX=
9831 enable_shared_with_static_runtimes_CXX=no
9832
9833 # Dependencies to place before and after the object being linked:
9834 predep_objects_CXX=
9835 postdep_objects_CXX=
9836 predeps_CXX=
9837 postdeps_CXX=
9838 compiler_lib_search_path_CXX=
9839
9840 # Source file extension for C++ test sources.
9841 ac_ext=cpp
9842
9843 # Object file extension for compiled C++ test sources.
9844 objext=o
9845 objext_CXX=$objext
9846
9847 # Code to be used in simple compile tests
9848 lt_simple_compile_test_code="int some_variable = 0;\n"
9849
9850 # Code to be used in simple link tests
9851 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9852
9853 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9854
9855 # If no C compiler was specified, use CC.
9856 LTCC=${LTCC-"$CC"}
9857
9858 # If no C compiler flags were specified, use CFLAGS.
9859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9860
9861 # Allow CC to be a program name with arguments.
9862 compiler=$CC
9863
9864
9865 # save warnings/boilerplate of simple test code
9866 ac_outfile=conftest.$ac_objext
9867 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9868 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9869 _lt_compiler_boilerplate=`cat conftest.err`
9870 $rm conftest*
9871
9872 ac_outfile=conftest.$ac_objext
9873 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9874 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9875 _lt_linker_boilerplate=`cat conftest.err`
9876 $rm conftest*
9877
9878
9879 # Allow CC to be a program name with arguments.
9880 lt_save_CC=$CC
9881 lt_save_LD=$LD
9882 lt_save_GCC=$GCC
9883 GCC=$GXX
9884 lt_save_with_gnu_ld=$with_gnu_ld
9885 lt_save_path_LD=$lt_cv_path_LD
9886 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9887   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9888 else
9889   $as_unset lt_cv_prog_gnu_ld
9890 fi
9891 if test -n "${lt_cv_path_LDCXX+set}"; then
9892   lt_cv_path_LD=$lt_cv_path_LDCXX
9893 else
9894   $as_unset lt_cv_path_LD
9895 fi
9896 test -z "${LDCXX+set}" || LD=$LDCXX
9897 CC=${CXX-"c++"}
9898 compiler=$CC
9899 compiler_CXX=$CC
9900 for cc_temp in $compiler""; do
9901   case $cc_temp in
9902     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9903     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9904     \-*) ;;
9905     *) break;;
9906   esac
9907 done
9908 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9909
9910
9911 # We don't want -fno-exception wen compiling C++ code, so set the
9912 # no_builtin_flag separately
9913 if test "$GXX" = yes; then
9914   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9915 else
9916   lt_prog_compiler_no_builtin_flag_CXX=
9917 fi
9918
9919 if test "$GXX" = yes; then
9920   # Set up default GNU C++ configuration
9921
9922
9923 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9924 if test "${with_gnu_ld+set}" = set; then
9925   withval="$with_gnu_ld"
9926   test "$withval" = no || with_gnu_ld=yes
9927 else
9928   with_gnu_ld=no
9929 fi;
9930 ac_prog=ld
9931 if test "$GCC" = yes; then
9932   # Check if gcc -print-prog-name=ld gives a path.
9933   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9934 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9935   case $host in
9936   *-*-mingw*)
9937     # gcc leaves a trailing carriage return which upsets mingw
9938     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9939   *)
9940     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9941   esac
9942   case $ac_prog in
9943     # Accept absolute paths.
9944     [\\/]* | ?:[\\/]*)
9945       re_direlt='/[^/][^/]*/\.\./'
9946       # Canonicalize the pathname of ld
9947       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9948       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9949         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9950       done
9951       test -z "$LD" && LD="$ac_prog"
9952       ;;
9953   "")
9954     # If it fails, then pretend we aren't using GCC.
9955     ac_prog=ld
9956     ;;
9957   *)
9958     # If it is relative, then search for the first ld in PATH.
9959     with_gnu_ld=unknown
9960     ;;
9961   esac
9962 elif test "$with_gnu_ld" = yes; then
9963   echo "$as_me:$LINENO: checking for GNU ld" >&5
9964 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9965 else
9966   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9967 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9968 fi
9969 if test "${lt_cv_path_LD+set}" = set; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   if test -z "$LD"; then
9973   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9974   for ac_dir in $PATH; do
9975     IFS="$lt_save_ifs"
9976     test -z "$ac_dir" && ac_dir=.
9977     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9978       lt_cv_path_LD="$ac_dir/$ac_prog"
9979       # Check to see if the program is GNU ld.  I'd rather use --version,
9980       # but apparently some variants of GNU ld only accept -v.
9981       # Break only if it was the GNU/non-GNU ld that we prefer.
9982       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9983       *GNU* | *'with BFD'*)
9984         test "$with_gnu_ld" != no && break
9985         ;;
9986       *)
9987         test "$with_gnu_ld" != yes && break
9988         ;;
9989       esac
9990     fi
9991   done
9992   IFS="$lt_save_ifs"
9993 else
9994   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9995 fi
9996 fi
9997
9998 LD="$lt_cv_path_LD"
9999 if test -n "$LD"; then
10000   echo "$as_me:$LINENO: result: $LD" >&5
10001 echo "${ECHO_T}$LD" >&6
10002 else
10003   echo "$as_me:$LINENO: result: no" >&5
10004 echo "${ECHO_T}no" >&6
10005 fi
10006 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10007 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10008    { (exit 1); exit 1; }; }
10009 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10010 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10011 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10012   echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10015 case `$LD -v 2>&1 </dev/null` in
10016 *GNU* | *'with BFD'*)
10017   lt_cv_prog_gnu_ld=yes
10018   ;;
10019 *)
10020   lt_cv_prog_gnu_ld=no
10021   ;;
10022 esac
10023 fi
10024 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10025 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10026 with_gnu_ld=$lt_cv_prog_gnu_ld
10027
10028
10029
10030   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10031   # archiving commands below assume that GNU ld is being used.
10032   if test "$with_gnu_ld" = yes; then
10033     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10034     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'
10035
10036     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10037     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10038
10039     # If archive_cmds runs LD, not CC, wlarc should be empty
10040     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10041     #     investigate it a little bit more. (MM)
10042     wlarc='${wl}'
10043
10044     # ancient GNU ld didn't support --whole-archive et. al.
10045     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10046         grep 'no-whole-archive' > /dev/null; then
10047       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10048     else
10049       whole_archive_flag_spec_CXX=
10050     fi
10051   else
10052     with_gnu_ld=no
10053     wlarc=
10054
10055     # A generic and very simple default shared library creation
10056     # command for GNU C++ for the case where it uses the native
10057     # linker, instead of GNU ld.  If possible, this setting should
10058     # overridden to take advantage of the native linker features on
10059     # the platform it is being used on.
10060     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10061   fi
10062
10063   # Commands to make compiler produce verbose output that lists
10064   # what "hidden" libraries, object files and flags are used when
10065   # linking a shared library.
10066   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10067
10068 else
10069   GXX=no
10070   with_gnu_ld=no
10071   wlarc=
10072 fi
10073
10074 # PORTME: fill in a description of your system's C++ link characteristics
10075 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10076 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10077 ld_shlibs_CXX=yes
10078 case $host_os in
10079   aix3*)
10080     # FIXME: insert proper C++ library support
10081     ld_shlibs_CXX=no
10082     ;;
10083   aix4* | aix5*)
10084     if test "$host_cpu" = ia64; then
10085       # On IA64, the linker does run time linking by default, so we don't
10086       # have to do anything special.
10087       aix_use_runtimelinking=no
10088       exp_sym_flag='-Bexport'
10089       no_entry_flag=""
10090     else
10091       aix_use_runtimelinking=no
10092
10093       # Test if we are trying to use run time linking or normal
10094       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10095       # need to do runtime linking.
10096       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10097         for ld_flag in $LDFLAGS; do
10098           case $ld_flag in
10099           *-brtl*)
10100             aix_use_runtimelinking=yes
10101             break
10102             ;;
10103           esac
10104         done
10105         ;;
10106       esac
10107
10108       exp_sym_flag='-bexport'
10109       no_entry_flag='-bnoentry'
10110     fi
10111
10112     # When large executables or shared objects are built, AIX ld can
10113     # have problems creating the table of contents.  If linking a library
10114     # or program results in "error TOC overflow" add -mminimal-toc to
10115     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10116     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10117
10118     archive_cmds_CXX=''
10119     hardcode_direct_CXX=yes
10120     hardcode_libdir_separator_CXX=':'
10121     link_all_deplibs_CXX=yes
10122
10123     if test "$GXX" = yes; then
10124       case $host_os in aix4.[012]|aix4.[012].*)
10125       # We only want to do this on AIX 4.2 and lower, the check
10126       # below for broken collect2 doesn't work under 4.3+
10127         collect2name=`${CC} -print-prog-name=collect2`
10128         if test -f "$collect2name" && \
10129            strings "$collect2name" | grep resolve_lib_name >/dev/null
10130         then
10131           # We have reworked collect2
10132           hardcode_direct_CXX=yes
10133         else
10134           # We have old collect2
10135           hardcode_direct_CXX=unsupported
10136           # It fails to find uninstalled libraries when the uninstalled
10137           # path is not listed in the libpath.  Setting hardcode_minus_L
10138           # to unsupported forces relinking
10139           hardcode_minus_L_CXX=yes
10140           hardcode_libdir_flag_spec_CXX='-L$libdir'
10141           hardcode_libdir_separator_CXX=
10142         fi
10143         ;;
10144       esac
10145       shared_flag='-shared'
10146       if test "$aix_use_runtimelinking" = yes; then
10147         shared_flag="$shared_flag "'${wl}-G'
10148       fi
10149     else
10150       # not using gcc
10151       if test "$host_cpu" = ia64; then
10152         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10153         # chokes on -Wl,-G. The following line is correct:
10154         shared_flag='-G'
10155       else
10156         if test "$aix_use_runtimelinking" = yes; then
10157           shared_flag='${wl}-G'
10158         else
10159           shared_flag='${wl}-bM:SRE'
10160         fi
10161       fi
10162     fi
10163
10164     # It seems that -bexpall does not export symbols beginning with
10165     # underscore (_), so it is better to generate a list of symbols to export.
10166     always_export_symbols_CXX=yes
10167     if test "$aix_use_runtimelinking" = yes; then
10168       # Warning - without using the other runtime loading flags (-brtl),
10169       # -berok will link without error, but may produce a broken library.
10170       allow_undefined_flag_CXX='-berok'
10171       # Determine the default libpath from the value encoded in an empty executable.
10172       cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h.  */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h.  */
10178
10179 int
10180 main ()
10181 {
10182
10183   ;
10184   return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10189   (eval $ac_link) 2>conftest.er1
10190   ac_status=$?
10191   grep -v '^ *+' conftest.er1 >conftest.err
10192   rm -f conftest.er1
10193   cat conftest.err >&5
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); } &&
10196          { ac_try='test -z "$ac_cxx_werror_flag"
10197                          || test ! -s conftest.err'
10198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199   (eval $ac_try) 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; } &&
10203          { ac_try='test -s conftest$ac_exeext'
10204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205   (eval $ac_try) 2>&5
10206   ac_status=$?
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); }; }; then
10209
10210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10211 }'`
10212 # Check for a 64-bit object if we didn't find anything.
10213 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; }
10214 }'`; fi
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 fi
10220 rm -f conftest.err conftest.$ac_objext \
10221       conftest$ac_exeext conftest.$ac_ext
10222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10223
10224       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10225
10226       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10227      else
10228       if test "$host_cpu" = ia64; then
10229         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10230         allow_undefined_flag_CXX="-z nodefs"
10231         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10232       else
10233         # Determine the default libpath from the value encoded in an empty executable.
10234         cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h.  */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h.  */
10240
10241 int
10242 main ()
10243 {
10244
10245   ;
10246   return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest.$ac_objext conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251   (eval $ac_link) 2>conftest.er1
10252   ac_status=$?
10253   grep -v '^ *+' conftest.er1 >conftest.err
10254   rm -f conftest.er1
10255   cat conftest.err >&5
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); } &&
10258          { ac_try='test -z "$ac_cxx_werror_flag"
10259                          || test ! -s conftest.err'
10260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261   (eval $ac_try) 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; } &&
10265          { ac_try='test -s conftest$ac_exeext'
10266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267   (eval $ac_try) 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); }; }; then
10271
10272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10273 }'`
10274 # Check for a 64-bit object if we didn't find anything.
10275 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; }
10276 }'`; fi
10277 else
10278   echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 fi
10282 rm -f conftest.err conftest.$ac_objext \
10283       conftest$ac_exeext conftest.$ac_ext
10284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10285
10286         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10287         # Warning - without using the other run time loading flags,
10288         # -berok will link without error, but may produce a broken library.
10289         no_undefined_flag_CXX=' ${wl}-bernotok'
10290         allow_undefined_flag_CXX=' ${wl}-berok'
10291         # Exported symbols can be pulled into shared objects from archives
10292         whole_archive_flag_spec_CXX='$convenience'
10293         archive_cmds_need_lc_CXX=yes
10294         # This is similar to how AIX traditionally builds its shared libraries.
10295         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10296       fi
10297     fi
10298     ;;
10299
10300   beos*)
10301     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10302       allow_undefined_flag_CXX=unsupported
10303       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10304       # support --undefined.  This deserves some investigation.  FIXME
10305       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10306     else
10307       ld_shlibs_CXX=no
10308     fi
10309     ;;
10310
10311   chorus*)
10312     case $cc_basename in
10313       *)
10314         # FIXME: insert proper C++ library support
10315         ld_shlibs_CXX=no
10316         ;;
10317     esac
10318     ;;
10319
10320   cygwin* | mingw* | pw32*)
10321     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10322     # as there is no search path for DLLs.
10323     hardcode_libdir_flag_spec_CXX='-L$libdir'
10324     allow_undefined_flag_CXX=unsupported
10325     always_export_symbols_CXX=no
10326     enable_shared_with_static_runtimes_CXX=yes
10327
10328     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10329       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10330       # If the export-symbols file already is a .def file (1st line
10331       # is EXPORTS), use it as is; otherwise, prepend...
10332       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10333         cp $export_symbols $output_objdir/$soname.def;
10334       else
10335         echo EXPORTS > $output_objdir/$soname.def;
10336         cat $export_symbols >> $output_objdir/$soname.def;
10337       fi~
10338       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10339     else
10340       ld_shlibs_CXX=no
10341     fi
10342   ;;
10343       darwin* | rhapsody*)
10344         case $host_os in
10345         rhapsody* | darwin1.[012])
10346          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10347          ;;
10348        *) # Darwin 1.3 on
10349          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10350            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10351          else
10352            case ${MACOSX_DEPLOYMENT_TARGET} in
10353              10.[012])
10354                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10355                ;;
10356              10.*)
10357                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10358                ;;
10359            esac
10360          fi
10361          ;;
10362         esac
10363       archive_cmds_need_lc_CXX=no
10364       hardcode_direct_CXX=no
10365       hardcode_automatic_CXX=yes
10366       hardcode_shlibpath_var_CXX=unsupported
10367       whole_archive_flag_spec_CXX=''
10368       link_all_deplibs_CXX=yes
10369
10370     if test "$GXX" = yes ; then
10371       lt_int_apple_cc_single_mod=no
10372       output_verbose_link_cmd='echo'
10373       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10374        lt_int_apple_cc_single_mod=yes
10375       fi
10376       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10377        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10378       else
10379           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10380         fi
10381         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10382         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10383           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10384             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}'
10385           else
10386             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10387           fi
10388             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}'
10389       else
10390       case $cc_basename in
10391         xlc*)
10392          output_verbose_link_cmd='echo'
10393           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10394           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10395           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10396           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10397           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}'
10398           ;;
10399        *)
10400          ld_shlibs_CXX=no
10401           ;;
10402       esac
10403       fi
10404         ;;
10405
10406   dgux*)
10407     case $cc_basename in
10408       ec++*)
10409         # FIXME: insert proper C++ library support
10410         ld_shlibs_CXX=no
10411         ;;
10412       ghcx*)
10413         # Green Hills C++ Compiler
10414         # FIXME: insert proper C++ library support
10415         ld_shlibs_CXX=no
10416         ;;
10417       *)
10418         # FIXME: insert proper C++ library support
10419         ld_shlibs_CXX=no
10420         ;;
10421     esac
10422     ;;
10423   freebsd[12]*)
10424     # C++ shared libraries reported to be fairly broken before switch to ELF
10425     ld_shlibs_CXX=no
10426     ;;
10427   freebsd-elf*)
10428     archive_cmds_need_lc_CXX=no
10429     ;;
10430   freebsd* | kfreebsd*-gnu | dragonfly*)
10431     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10432     # conventions
10433     ld_shlibs_CXX=yes
10434     ;;
10435   gnu*)
10436     ;;
10437   hpux9*)
10438     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10439     hardcode_libdir_separator_CXX=:
10440     export_dynamic_flag_spec_CXX='${wl}-E'
10441     hardcode_direct_CXX=yes
10442     hardcode_minus_L_CXX=yes # Not in the search PATH,
10443                                 # but as the default
10444                                 # location of the library.
10445
10446     case $cc_basename in
10447     CC*)
10448       # FIXME: insert proper C++ library support
10449       ld_shlibs_CXX=no
10450       ;;
10451     aCC*)
10452       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'
10453       # Commands to make compiler produce verbose output that lists
10454       # what "hidden" libraries, object files and flags are used when
10455       # linking a shared library.
10456       #
10457       # There doesn't appear to be a way to prevent this compiler from
10458       # explicitly linking system object files so we need to strip them
10459       # from the output so that they don't get included in the library
10460       # dependencies.
10461       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'
10462       ;;
10463     *)
10464       if test "$GXX" = yes; then
10465         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'
10466       else
10467         # FIXME: insert proper C++ library support
10468         ld_shlibs_CXX=no
10469       fi
10470       ;;
10471     esac
10472     ;;
10473   hpux10*|hpux11*)
10474     if test $with_gnu_ld = no; then
10475       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10476       hardcode_libdir_separator_CXX=:
10477
10478       case $host_cpu in
10479       hppa*64*|ia64*)
10480         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10481         ;;
10482       *)
10483         export_dynamic_flag_spec_CXX='${wl}-E'
10484         ;;
10485       esac
10486     fi
10487     case $host_cpu in
10488     hppa*64*|ia64*)
10489       hardcode_direct_CXX=no
10490       hardcode_shlibpath_var_CXX=no
10491       ;;
10492     *)
10493       hardcode_direct_CXX=yes
10494       hardcode_minus_L_CXX=yes # Not in the search PATH,
10495                                               # but as the default
10496                                               # location of the library.
10497       ;;
10498     esac
10499
10500     case $cc_basename in
10501       CC*)
10502         # FIXME: insert proper C++ library support
10503         ld_shlibs_CXX=no
10504         ;;
10505       aCC*)
10506         case $host_cpu in
10507         hppa*64*)
10508           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10509           ;;
10510         ia64*)
10511           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10512           ;;
10513         *)
10514           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10515           ;;
10516         esac
10517         # Commands to make compiler produce verbose output that lists
10518         # what "hidden" libraries, object files and flags are used when
10519         # linking a shared library.
10520         #
10521         # There doesn't appear to be a way to prevent this compiler from
10522         # explicitly linking system object files so we need to strip them
10523         # from the output so that they don't get included in the library
10524         # dependencies.
10525         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'
10526         ;;
10527       *)
10528         if test "$GXX" = yes; then
10529           if test $with_gnu_ld = no; then
10530             case $host_cpu in
10531             hppa*64*)
10532               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10533               ;;
10534             ia64*)
10535               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10536               ;;
10537             *)
10538               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'
10539               ;;
10540             esac
10541           fi
10542         else
10543           # FIXME: insert proper C++ library support
10544           ld_shlibs_CXX=no
10545         fi
10546         ;;
10547     esac
10548     ;;
10549   interix3*)
10550     hardcode_direct_CXX=no
10551     hardcode_shlibpath_var_CXX=no
10552     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10553     export_dynamic_flag_spec_CXX='${wl}-E'
10554     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10555     # Instead, shared libraries are loaded at an image base (0x10000000 by
10556     # default) and relocated if they conflict, which is a slow very memory
10557     # consuming and fragmenting process.  To avoid this, we pick a random,
10558     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10559     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10560     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10561     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10562     ;;
10563   irix5* | irix6*)
10564     case $cc_basename in
10565       CC*)
10566         # SGI C++
10567         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10568
10569         # Archives containing C++ object files must be created using
10570         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10571         # necessary to make sure instantiated templates are included
10572         # in the archive.
10573         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10574         ;;
10575       *)
10576         if test "$GXX" = yes; then
10577           if test "$with_gnu_ld" = no; then
10578             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10579           else
10580             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'
10581           fi
10582         fi
10583         link_all_deplibs_CXX=yes
10584         ;;
10585     esac
10586     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10587     hardcode_libdir_separator_CXX=:
10588     ;;
10589   linux*)
10590     case $cc_basename in
10591       KCC*)
10592         # Kuck and Associates, Inc. (KAI) C++ Compiler
10593
10594         # KCC will only create a shared library if the output file
10595         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10596         # to its proper name (with version) after linking.
10597         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'
10598         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'
10599         # Commands to make compiler produce verbose output that lists
10600         # what "hidden" libraries, object files and flags are used when
10601         # linking a shared library.
10602         #
10603         # There doesn't appear to be a way to prevent this compiler from
10604         # explicitly linking system object files so we need to strip them
10605         # from the output so that they don't get included in the library
10606         # dependencies.
10607         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'
10608
10609         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10610         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10611
10612         # Archives containing C++ object files must be created using
10613         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10614         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10615         ;;
10616       icpc*)
10617         # Intel C++
10618         with_gnu_ld=yes
10619         # version 8.0 and above of icpc choke on multiply defined symbols
10620         # if we add $predep_objects and $postdep_objects, however 7.1 and
10621         # earlier do not add the objects themselves.
10622         case `$CC -V 2>&1` in
10623         *"Version 7."*)
10624           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10625           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'
10626           ;;
10627         *)  # Version 8.0 or newer
10628           tmp_idyn=
10629           case $host_cpu in
10630             ia64*) tmp_idyn=' -i_dynamic';;
10631           esac
10632           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10633           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10634           ;;
10635         esac
10636         archive_cmds_need_lc_CXX=no
10637         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10638         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10639         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10640         ;;
10641       pgCC*)
10642         # Portland Group C++ compiler
10643         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10644         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10645
10646         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10647         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10648         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10649         ;;
10650       cxx*)
10651         # Compaq C++
10652         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10653         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'
10654
10655         runpath_var=LD_RUN_PATH
10656         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10657         hardcode_libdir_separator_CXX=:
10658
10659         # Commands to make compiler produce verbose output that lists
10660         # what "hidden" libraries, object files and flags are used when
10661         # linking a shared library.
10662         #
10663         # There doesn't appear to be a way to prevent this compiler from
10664         # explicitly linking system object files so we need to strip them
10665         # from the output so that they don't get included in the library
10666         # dependencies.
10667         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'
10668         ;;
10669     esac
10670     ;;
10671   lynxos*)
10672     # FIXME: insert proper C++ library support
10673     ld_shlibs_CXX=no
10674     ;;
10675   m88k*)
10676     # FIXME: insert proper C++ library support
10677     ld_shlibs_CXX=no
10678     ;;
10679   mvs*)
10680     case $cc_basename in
10681       cxx*)
10682         # FIXME: insert proper C++ library support
10683         ld_shlibs_CXX=no
10684         ;;
10685       *)
10686         # FIXME: insert proper C++ library support
10687         ld_shlibs_CXX=no
10688         ;;
10689     esac
10690     ;;
10691   netbsd*)
10692     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10693       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10694       wlarc=
10695       hardcode_libdir_flag_spec_CXX='-R$libdir'
10696       hardcode_direct_CXX=yes
10697       hardcode_shlibpath_var_CXX=no
10698     fi
10699     # Workaround some broken pre-1.5 toolchains
10700     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10701     ;;
10702   openbsd2*)
10703     # C++ shared libraries are fairly broken
10704     ld_shlibs_CXX=no
10705     ;;
10706   openbsd*)
10707     hardcode_direct_CXX=yes
10708     hardcode_shlibpath_var_CXX=no
10709     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10710     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10711     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10712       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10713       export_dynamic_flag_spec_CXX='${wl}-E'
10714       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10715     fi
10716     output_verbose_link_cmd='echo'
10717     ;;
10718   osf3*)
10719     case $cc_basename in
10720       KCC*)
10721         # Kuck and Associates, Inc. (KAI) C++ Compiler
10722
10723         # KCC will only create a shared library if the output file
10724         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10725         # to its proper name (with version) after linking.
10726         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'
10727
10728         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10729         hardcode_libdir_separator_CXX=:
10730
10731         # Archives containing C++ object files must be created using
10732         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10733         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10734
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=' ${wl}-expect_unresolved ${wl}\*'
10743         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10744
10745         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10746         hardcode_libdir_separator_CXX=:
10747
10748         # Commands to make compiler produce verbose output that lists
10749         # what "hidden" libraries, object files and flags are used when
10750         # linking a shared library.
10751         #
10752         # There doesn't appear to be a way to prevent this compiler from
10753         # explicitly linking system object files so we need to strip them
10754         # from the output so that they don't get included in the library
10755         # dependencies.
10756         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'
10757         ;;
10758       *)
10759         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10760           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10761           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10762
10763           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10764           hardcode_libdir_separator_CXX=:
10765
10766           # Commands to make compiler produce verbose output that lists
10767           # what "hidden" libraries, object files and flags are used when
10768           # linking a shared library.
10769           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10770
10771         else
10772           # FIXME: insert proper C++ library support
10773           ld_shlibs_CXX=no
10774         fi
10775         ;;
10776     esac
10777     ;;
10778   osf4* | osf5*)
10779     case $cc_basename in
10780       KCC*)
10781         # Kuck and Associates, Inc. (KAI) C++ Compiler
10782
10783         # KCC will only create a shared library if the output file
10784         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10785         # to its proper name (with version) after linking.
10786         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'
10787
10788         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10789         hardcode_libdir_separator_CXX=:
10790
10791         # Archives containing C++ object files must be created using
10792         # the KAI C++ compiler.
10793         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10794         ;;
10795       RCC*)
10796         # Rational C++ 2.4.1
10797         # FIXME: insert proper C++ library support
10798         ld_shlibs_CXX=no
10799         ;;
10800       cxx*)
10801         allow_undefined_flag_CXX=' -expect_unresolved \*'
10802         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10803         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10804           echo "-hidden">> $lib.exp~
10805           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10806           $rm $lib.exp'
10807
10808         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10809         hardcode_libdir_separator_CXX=:
10810
10811         # Commands to make compiler produce verbose output that lists
10812         # what "hidden" libraries, object files and flags are used when
10813         # linking a shared library.
10814         #
10815         # There doesn't appear to be a way to prevent this compiler from
10816         # explicitly linking system object files so we need to strip them
10817         # from the output so that they don't get included in the library
10818         # dependencies.
10819         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'
10820         ;;
10821       *)
10822         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10823           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10824          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10825
10826           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10827           hardcode_libdir_separator_CXX=:
10828
10829           # Commands to make compiler produce verbose output that lists
10830           # what "hidden" libraries, object files and flags are used when
10831           # linking a shared library.
10832           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10833
10834         else
10835           # FIXME: insert proper C++ library support
10836           ld_shlibs_CXX=no
10837         fi
10838         ;;
10839     esac
10840     ;;
10841   psos*)
10842     # FIXME: insert proper C++ library support
10843     ld_shlibs_CXX=no
10844     ;;
10845   sunos4*)
10846     case $cc_basename in
10847       CC*)
10848         # Sun C++ 4.x
10849         # FIXME: insert proper C++ library support
10850         ld_shlibs_CXX=no
10851         ;;
10852       lcc*)
10853         # Lucid
10854         # FIXME: insert proper C++ library support
10855         ld_shlibs_CXX=no
10856         ;;
10857       *)
10858         # FIXME: insert proper C++ library support
10859         ld_shlibs_CXX=no
10860         ;;
10861     esac
10862     ;;
10863   solaris*)
10864     case $cc_basename in
10865       CC*)
10866         # Sun C++ 4.2, 5.x and Centerline C++
10867         archive_cmds_need_lc_CXX=yes
10868         no_undefined_flag_CXX=' -zdefs'
10869         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10870         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10871         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10872
10873         hardcode_libdir_flag_spec_CXX='-R$libdir'
10874         hardcode_shlibpath_var_CXX=no
10875         case $host_os in
10876           solaris2.[0-5] | solaris2.[0-5].*) ;;
10877           *)
10878             # The C++ compiler is used as linker so we must use $wl
10879             # flag to pass the commands to the underlying system
10880             # linker. We must also pass each convience library through
10881             # to the system linker between allextract/defaultextract.
10882             # The C++ compiler will combine linker options so we
10883             # cannot just pass the convience library names through
10884             # without $wl.
10885             # Supported since Solaris 2.6 (maybe 2.5.1?)
10886             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10887             ;;
10888         esac
10889         link_all_deplibs_CXX=yes
10890
10891         output_verbose_link_cmd='echo'
10892
10893         # Archives containing C++ object files must be created using
10894         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10895         # necessary to make sure instantiated templates are included
10896         # in the archive.
10897         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10898         ;;
10899       gcx*)
10900         # Green Hills C++ Compiler
10901         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10902
10903         # The C++ compiler must be used to create the archive.
10904         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10905         ;;
10906       *)
10907         # GNU C++ compiler with Solaris linker
10908         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10909           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10910           if $CC --version | grep -v '^2\.7' > /dev/null; then
10911             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10912             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10913                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10914
10915             # Commands to make compiler produce verbose output that lists
10916             # what "hidden" libraries, object files and flags are used when
10917             # linking a shared library.
10918             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10919           else
10920             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10921             # platform.
10922             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10923             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10924                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10925
10926             # Commands to make compiler produce verbose output that lists
10927             # what "hidden" libraries, object files and flags are used when
10928             # linking a shared library.
10929             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10930           fi
10931
10932           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10933         fi
10934         ;;
10935     esac
10936     ;;
10937   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10938     no_undefined_flag_CXX='${wl}-z,text'
10939     archive_cmds_need_lc_CXX=no
10940     hardcode_shlibpath_var_CXX=no
10941     runpath_var='LD_RUN_PATH'
10942
10943     case $cc_basename in
10944       CC*)
10945         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947         ;;
10948       *)
10949         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951         ;;
10952     esac
10953     ;;
10954   sysv5* | sco3.2v5* | sco5v6*)
10955     # Note: We can NOT use -z defs as we might desire, because we do not
10956     # link with -lc, and that would cause any symbols used from libc to
10957     # always be unresolved, which means just about no library would
10958     # ever link correctly.  If we're not using GNU ld we use -z text
10959     # though, which does catch some bad symbols but isn't as heavy-handed
10960     # as -z defs.
10961     # For security reasons, it is highly recommended that you always
10962     # use absolute paths for naming shared libraries, and exclude the
10963     # DT_RUNPATH tag from executables and libraries.  But doing so
10964     # requires that you compile everything twice, which is a pain.
10965     # So that behaviour is only enabled if SCOABSPATH is set to a
10966     # non-empty value in the environment.  Most likely only useful for
10967     # creating official distributions of packages.
10968     # This is a hack until libtool officially supports absolute path
10969     # names for shared libraries.
10970     no_undefined_flag_CXX='${wl}-z,text'
10971     allow_undefined_flag_CXX='${wl}-z,nodefs'
10972     archive_cmds_need_lc_CXX=no
10973     hardcode_shlibpath_var_CXX=no
10974     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10975     hardcode_libdir_separator_CXX=':'
10976     link_all_deplibs_CXX=yes
10977     export_dynamic_flag_spec_CXX='${wl}-Bexport'
10978     runpath_var='LD_RUN_PATH'
10979
10980     case $cc_basename in
10981       CC*)
10982         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10983         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10984         ;;
10985       *)
10986         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10987         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10988         ;;
10989     esac
10990     ;;
10991   tandem*)
10992     case $cc_basename in
10993       NCC*)
10994         # NonStop-UX NCC 3.20
10995         # FIXME: insert proper C++ library support
10996         ld_shlibs_CXX=no
10997         ;;
10998       *)
10999         # FIXME: insert proper C++ library support
11000         ld_shlibs_CXX=no
11001         ;;
11002     esac
11003     ;;
11004   vxworks*)
11005     # FIXME: insert proper C++ library support
11006     ld_shlibs_CXX=no
11007     ;;
11008   *)
11009     # FIXME: insert proper C++ library support
11010     ld_shlibs_CXX=no
11011     ;;
11012 esac
11013 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11014 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11015 test "$ld_shlibs_CXX" = no && can_build_shared=no
11016
11017 GCC_CXX="$GXX"
11018 LD_CXX="$LD"
11019
11020 ## CAVEAT EMPTOR:
11021 ## There is no encapsulation within the following macros, do not change
11022 ## the running order or otherwise move them around unless you know exactly
11023 ## what you are doing...
11024
11025 cat > conftest.$ac_ext <<EOF
11026 class Foo
11027 {
11028 public:
11029   Foo (void) { a = 0; }
11030 private:
11031   int a;
11032 };
11033 EOF
11034
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036   (eval $ac_compile) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; then
11040   # Parse the compiler output and extract the necessary
11041   # objects, libraries and library flags.
11042
11043   # Sentinel used to keep track of whether or not we are before
11044   # the conftest object file.
11045   pre_test_object_deps_done=no
11046
11047   # The `*' in the case matches for architectures that use `case' in
11048   # $output_verbose_cmd can trigger glob expansion during the loop
11049   # eval without this substitution.
11050   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11051
11052   for p in `eval $output_verbose_link_cmd`; do
11053     case $p in
11054
11055     -L* | -R* | -l*)
11056        # Some compilers place space between "-{L,R}" and the path.
11057        # Remove the space.
11058        if test $p = "-L" \
11059           || test $p = "-R"; then
11060          prev=$p
11061          continue
11062        else
11063          prev=
11064        fi
11065
11066        if test "$pre_test_object_deps_done" = no; then
11067          case $p in
11068          -L* | -R*)
11069            # Internal compiler library paths should come after those
11070            # provided the user.  The postdeps already come after the
11071            # user supplied libs so there is no need to process them.
11072            if test -z "$compiler_lib_search_path_CXX"; then
11073              compiler_lib_search_path_CXX="${prev}${p}"
11074            else
11075              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11076            fi
11077            ;;
11078          # The "-l" case would never come before the object being
11079          # linked, so don't bother handling this case.
11080          esac
11081        else
11082          if test -z "$postdeps_CXX"; then
11083            postdeps_CXX="${prev}${p}"
11084          else
11085            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11086          fi
11087        fi
11088        ;;
11089
11090     *.$objext)
11091        # This assumes that the test object file only shows up
11092        # once in the compiler output.
11093        if test "$p" = "conftest.$objext"; then
11094          pre_test_object_deps_done=yes
11095          continue
11096        fi
11097
11098        if test "$pre_test_object_deps_done" = no; then
11099          if test -z "$predep_objects_CXX"; then
11100            predep_objects_CXX="$p"
11101          else
11102            predep_objects_CXX="$predep_objects_CXX $p"
11103          fi
11104        else
11105          if test -z "$postdep_objects_CXX"; then
11106            postdep_objects_CXX="$p"
11107          else
11108            postdep_objects_CXX="$postdep_objects_CXX $p"
11109          fi
11110        fi
11111        ;;
11112
11113     *) ;; # Ignore the rest.
11114
11115     esac
11116   done
11117
11118   # Clean up.
11119   rm -f a.out a.exe
11120 else
11121   echo "libtool.m4: error: problem compiling CXX test program"
11122 fi
11123
11124 $rm -f confest.$objext
11125
11126 # PORTME: override above test on systems where it is broken
11127 case $host_os in
11128 interix3*)
11129   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11130   # hack all around it, let's just trust "g++" to DTRT.
11131   predep_objects_CXX=
11132   postdep_objects_CXX=
11133   postdeps_CXX=
11134   ;;
11135
11136 solaris*)
11137   case $cc_basename in
11138   CC*)
11139     # Adding this requires a known-good setup of shared libraries for
11140     # Sun compiler versions before 5.6, else PIC objects from an old
11141     # archive will be linked into the output, leading to subtle bugs.
11142     postdeps_CXX='-lCstd -lCrun'
11143     ;;
11144   esac
11145   ;;
11146 esac
11147
11148
11149 case " $postdeps_CXX " in
11150 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11151 esac
11152
11153 lt_prog_compiler_wl_CXX=
11154 lt_prog_compiler_pic_CXX=
11155 lt_prog_compiler_static_CXX=
11156
11157 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11158 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11159
11160   # C++ specific cases for pic, static, wl, etc.
11161   if test "$GXX" = yes; then
11162     lt_prog_compiler_wl_CXX='-Wl,'
11163     lt_prog_compiler_static_CXX='-static'
11164
11165     case $host_os in
11166     aix*)
11167       # All AIX code is PIC.
11168       if test "$host_cpu" = ia64; then
11169         # AIX 5 now supports IA64 processor
11170         lt_prog_compiler_static_CXX='-Bstatic'
11171       fi
11172       ;;
11173     amigaos*)
11174       # FIXME: we need at least 68020 code to build shared libraries, but
11175       # adding the `-m68020' flag to GCC prevents building anything better,
11176       # like `-m68040'.
11177       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11178       ;;
11179     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11180       # PIC is the default for these OSes.
11181       ;;
11182     mingw* | os2* | pw32*)
11183       # This hack is so that the source file can tell whether it is being
11184       # built for inclusion in a dll (and should export symbols for example).
11185       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11186       ;;
11187     darwin* | rhapsody*)
11188       # PIC is the default on this platform
11189       # Common symbols not allowed in MH_DYLIB files
11190       lt_prog_compiler_pic_CXX='-fno-common'
11191       ;;
11192     *djgpp*)
11193       # DJGPP does not support shared libraries at all
11194       lt_prog_compiler_pic_CXX=
11195       ;;
11196     interix3*)
11197       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11198       # Instead, we relocate shared libraries at runtime.
11199       ;;
11200     sysv4*MP*)
11201       if test -d /usr/nec; then
11202         lt_prog_compiler_pic_CXX=-Kconform_pic
11203       fi
11204       ;;
11205     hpux*)
11206       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11207       # not for PA HP-UX.
11208       case $host_cpu in
11209       hppa*64*|ia64*)
11210         ;;
11211       *)
11212         lt_prog_compiler_pic_CXX='-fPIC'
11213         ;;
11214       esac
11215       ;;
11216     *)
11217       lt_prog_compiler_pic_CXX='-fPIC'
11218       ;;
11219     esac
11220   else
11221     case $host_os in
11222       aix4* | aix5*)
11223         # All AIX code is PIC.
11224         if test "$host_cpu" = ia64; then
11225           # AIX 5 now supports IA64 processor
11226           lt_prog_compiler_static_CXX='-Bstatic'
11227         else
11228           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11229         fi
11230         ;;
11231       chorus*)
11232         case $cc_basename in
11233         cxch68*)
11234           # Green Hills C++ Compiler
11235           # _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"
11236           ;;
11237         esac
11238         ;;
11239        darwin*)
11240          # PIC is the default on this platform
11241          # Common symbols not allowed in MH_DYLIB files
11242          case $cc_basename in
11243            xlc*)
11244            lt_prog_compiler_pic_CXX='-qnocommon'
11245            lt_prog_compiler_wl_CXX='-Wl,'
11246            ;;
11247          esac
11248        ;;
11249       dgux*)
11250         case $cc_basename in
11251           ec++*)
11252             lt_prog_compiler_pic_CXX='-KPIC'
11253             ;;
11254           ghcx*)
11255             # Green Hills C++ Compiler
11256             lt_prog_compiler_pic_CXX='-pic'
11257             ;;
11258           *)
11259             ;;
11260         esac
11261         ;;
11262       freebsd* | kfreebsd*-gnu | dragonfly*)
11263         # FreeBSD uses GNU C++
11264         ;;
11265       hpux9* | hpux10* | hpux11*)
11266         case $cc_basename in
11267           CC*)
11268             lt_prog_compiler_wl_CXX='-Wl,'
11269             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11270             if test "$host_cpu" != ia64; then
11271               lt_prog_compiler_pic_CXX='+Z'
11272             fi
11273             ;;
11274           aCC*)
11275             lt_prog_compiler_wl_CXX='-Wl,'
11276             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11277             case $host_cpu in
11278             hppa*64*|ia64*)
11279               # +Z the default
11280               ;;
11281             *)
11282               lt_prog_compiler_pic_CXX='+Z'
11283               ;;
11284             esac
11285             ;;
11286           *)
11287             ;;
11288         esac
11289         ;;
11290       interix*)
11291         # This is c89, which is MS Visual C++ (no shared libs)
11292         # Anyone wants to do a port?
11293         ;;
11294       irix5* | irix6* | nonstopux*)
11295         case $cc_basename in
11296           CC*)
11297             lt_prog_compiler_wl_CXX='-Wl,'
11298             lt_prog_compiler_static_CXX='-non_shared'
11299             # CC pic flag -KPIC is the default.
11300             ;;
11301           *)
11302             ;;
11303         esac
11304         ;;
11305       linux*)
11306         case $cc_basename in
11307           KCC*)
11308             # KAI C++ Compiler
11309             lt_prog_compiler_wl_CXX='--backend -Wl,'
11310             lt_prog_compiler_pic_CXX='-fPIC'
11311             ;;
11312           icpc* | ecpc*)
11313             # Intel C++
11314             lt_prog_compiler_wl_CXX='-Wl,'
11315             lt_prog_compiler_pic_CXX='-KPIC'
11316             lt_prog_compiler_static_CXX='-static'
11317             ;;
11318           pgCC*)
11319             # Portland Group C++ compiler.
11320             lt_prog_compiler_wl_CXX='-Wl,'
11321             lt_prog_compiler_pic_CXX='-fpic'
11322             lt_prog_compiler_static_CXX='-Bstatic'
11323             ;;
11324           cxx*)
11325             # Compaq C++
11326             # Make sure the PIC flag is empty.  It appears that all Alpha
11327             # Linux and Compaq Tru64 Unix objects are PIC.
11328             lt_prog_compiler_pic_CXX=
11329             lt_prog_compiler_static_CXX='-non_shared'
11330             ;;
11331           *)
11332             ;;
11333         esac
11334         ;;
11335       lynxos*)
11336         ;;
11337       m88k*)
11338         ;;
11339       mvs*)
11340         case $cc_basename in
11341           cxx*)
11342             lt_prog_compiler_pic_CXX='-W c,exportall'
11343             ;;
11344           *)
11345             ;;
11346         esac
11347         ;;
11348       netbsd*)
11349         ;;
11350       osf3* | osf4* | osf5*)
11351         case $cc_basename in
11352           KCC*)
11353             lt_prog_compiler_wl_CXX='--backend -Wl,'
11354             ;;
11355           RCC*)
11356             # Rational C++ 2.4.1
11357             lt_prog_compiler_pic_CXX='-pic'
11358             ;;
11359           cxx*)
11360             # Digital/Compaq C++
11361             lt_prog_compiler_wl_CXX='-Wl,'
11362             # Make sure the PIC flag is empty.  It appears that all Alpha
11363             # Linux and Compaq Tru64 Unix objects are PIC.
11364             lt_prog_compiler_pic_CXX=
11365             lt_prog_compiler_static_CXX='-non_shared'
11366             ;;
11367           *)
11368             ;;
11369         esac
11370         ;;
11371       psos*)
11372         ;;
11373       solaris*)
11374         case $cc_basename in
11375           CC*)
11376             # Sun C++ 4.2, 5.x and Centerline C++
11377             lt_prog_compiler_pic_CXX='-KPIC'
11378             lt_prog_compiler_static_CXX='-Bstatic'
11379             lt_prog_compiler_wl_CXX='-Qoption ld '
11380             ;;
11381           gcx*)
11382             # Green Hills C++ Compiler
11383             lt_prog_compiler_pic_CXX='-PIC'
11384             ;;
11385           *)
11386             ;;
11387         esac
11388         ;;
11389       sunos4*)
11390         case $cc_basename in
11391           CC*)
11392             # Sun C++ 4.x
11393             lt_prog_compiler_pic_CXX='-pic'
11394             lt_prog_compiler_static_CXX='-Bstatic'
11395             ;;
11396           lcc*)
11397             # Lucid
11398             lt_prog_compiler_pic_CXX='-pic'
11399             ;;
11400           *)
11401             ;;
11402         esac
11403         ;;
11404       tandem*)
11405         case $cc_basename in
11406           NCC*)
11407             # NonStop-UX NCC 3.20
11408             lt_prog_compiler_pic_CXX='-KPIC'
11409             ;;
11410           *)
11411             ;;
11412         esac
11413         ;;
11414       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11415         case $cc_basename in
11416           CC*)
11417             lt_prog_compiler_wl_CXX='-Wl,'
11418             lt_prog_compiler_pic_CXX='-KPIC'
11419             lt_prog_compiler_static_CXX='-Bstatic'
11420             ;;
11421         esac
11422         ;;
11423       vxworks*)
11424         ;;
11425       *)
11426         lt_prog_compiler_can_build_shared_CXX=no
11427         ;;
11428     esac
11429   fi
11430
11431 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11432 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11433
11434 #
11435 # Check to make sure the PIC flag actually works.
11436 #
11437 if test -n "$lt_prog_compiler_pic_CXX"; then
11438
11439 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11440 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11441 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444   lt_prog_compiler_pic_works_CXX=no
11445   ac_outfile=conftest.$ac_objext
11446    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11447    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11448    # Insert the option either (1) after the last *FLAGS variable, or
11449    # (2) before a word containing "conftest.", or (3) at the end.
11450    # Note that $ac_compile itself does not contain backslashes and begins
11451    # with a dollar sign (not a hyphen), so the echo should work correctly.
11452    # The option is referenced via a variable to avoid confusing sed.
11453    lt_compile=`echo "$ac_compile" | $SED \
11454    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11455    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11456    -e 's:$: $lt_compiler_flag:'`
11457    (eval echo "\"\$as_me:11457: $lt_compile\"" >&5)
11458    (eval "$lt_compile" 2>conftest.err)
11459    ac_status=$?
11460    cat conftest.err >&5
11461    echo "$as_me:11461: \$? = $ac_status" >&5
11462    if (exit $ac_status) && test -s "$ac_outfile"; then
11463      # The compiler can only warn and ignore the option if not recognized
11464      # So say no if there are warnings other than the usual output.
11465      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11466      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11467      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11468        lt_prog_compiler_pic_works_CXX=yes
11469      fi
11470    fi
11471    $rm conftest*
11472
11473 fi
11474 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11475 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11476
11477 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11478     case $lt_prog_compiler_pic_CXX in
11479      "" | " "*) ;;
11480      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11481      esac
11482 else
11483     lt_prog_compiler_pic_CXX=
11484      lt_prog_compiler_can_build_shared_CXX=no
11485 fi
11486
11487 fi
11488 case $host_os in
11489   # For platforms which do not support PIC, -DPIC is meaningless:
11490   *djgpp*)
11491     lt_prog_compiler_pic_CXX=
11492     ;;
11493   *)
11494     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11495     ;;
11496 esac
11497
11498 #
11499 # Check to make sure the static flag actually works.
11500 #
11501 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11502 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11503 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11504 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11505   echo $ECHO_N "(cached) $ECHO_C" >&6
11506 else
11507   lt_prog_compiler_static_works_CXX=no
11508    save_LDFLAGS="$LDFLAGS"
11509    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11510    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11511    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11512      # The linker can only warn and ignore the option if not recognized
11513      # So say no if there are warnings
11514      if test -s conftest.err; then
11515        # Append any errors to the config.log.
11516        cat conftest.err 1>&5
11517        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11518        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11519        if diff conftest.exp conftest.er2 >/dev/null; then
11520          lt_prog_compiler_static_works_CXX=yes
11521        fi
11522      else
11523        lt_prog_compiler_static_works_CXX=yes
11524      fi
11525    fi
11526    $rm conftest*
11527    LDFLAGS="$save_LDFLAGS"
11528
11529 fi
11530 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11531 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11532
11533 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11534     :
11535 else
11536     lt_prog_compiler_static_CXX=
11537 fi
11538
11539
11540 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11541 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11542 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11543   echo $ECHO_N "(cached) $ECHO_C" >&6
11544 else
11545   lt_cv_prog_compiler_c_o_CXX=no
11546    $rm -r conftest 2>/dev/null
11547    mkdir conftest
11548    cd conftest
11549    mkdir out
11550    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11551
11552    lt_compiler_flag="-o out/conftest2.$ac_objext"
11553    # Insert the option either (1) after the last *FLAGS variable, or
11554    # (2) before a word containing "conftest.", or (3) at the end.
11555    # Note that $ac_compile itself does not contain backslashes and begins
11556    # with a dollar sign (not a hyphen), so the echo should work correctly.
11557    lt_compile=`echo "$ac_compile" | $SED \
11558    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11559    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11560    -e 's:$: $lt_compiler_flag:'`
11561    (eval echo "\"\$as_me:11561: $lt_compile\"" >&5)
11562    (eval "$lt_compile" 2>out/conftest.err)
11563    ac_status=$?
11564    cat out/conftest.err >&5
11565    echo "$as_me:11565: \$? = $ac_status" >&5
11566    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11567    then
11568      # The compiler can only warn and ignore the option if not recognized
11569      # So say no if there are warnings
11570      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11571      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11572      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11573        lt_cv_prog_compiler_c_o_CXX=yes
11574      fi
11575    fi
11576    chmod u+w . 2>&5
11577    $rm conftest*
11578    # SGI C++ compiler will create directory out/ii_files/ for
11579    # template instantiation
11580    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11581    $rm out/* && rmdir out
11582    cd ..
11583    rmdir conftest
11584    $rm conftest*
11585
11586 fi
11587 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11588 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11589
11590
11591 hard_links="nottested"
11592 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11593   # do not overwrite the value of need_locks provided by the user
11594   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11595 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11596   hard_links=yes
11597   $rm conftest*
11598   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11599   touch conftest.a
11600   ln conftest.a conftest.b 2>&5 || hard_links=no
11601   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11602   echo "$as_me:$LINENO: result: $hard_links" >&5
11603 echo "${ECHO_T}$hard_links" >&6
11604   if test "$hard_links" = no; then
11605     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11606 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11607     need_locks=warn
11608   fi
11609 else
11610   need_locks=no
11611 fi
11612
11613 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11615
11616   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11617   case $host_os in
11618   aix4* | aix5*)
11619     # If we're using GNU nm, then we don't want the "-C" option.
11620     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11621     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11622       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'
11623     else
11624       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'
11625     fi
11626     ;;
11627   pw32*)
11628     export_symbols_cmds_CXX="$ltdll_cmds"
11629   ;;
11630   cygwin* | mingw*)
11631     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11632   ;;
11633   *)
11634     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11635   ;;
11636   esac
11637
11638 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11639 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11640 test "$ld_shlibs_CXX" = no && can_build_shared=no
11641
11642 #
11643 # Do we need to explicitly link libc?
11644 #
11645 case "x$archive_cmds_need_lc_CXX" in
11646 x|xyes)
11647   # Assume -lc should be added
11648   archive_cmds_need_lc_CXX=yes
11649
11650   if test "$enable_shared" = yes && test "$GCC" = yes; then
11651     case $archive_cmds_CXX in
11652     *'~'*)
11653       # FIXME: we may have to deal with multi-command sequences.
11654       ;;
11655     '$CC '*)
11656       # Test whether the compiler implicitly links with -lc since on some
11657       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11658       # to ld, don't add -lc before -lgcc.
11659       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11660 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11661       $rm conftest*
11662       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11663
11664       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11665   (eval $ac_compile) 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); } 2>conftest.err; then
11669         soname=conftest
11670         lib=conftest
11671         libobjs=conftest.$ac_objext
11672         deplibs=
11673         wl=$lt_prog_compiler_wl_CXX
11674         pic_flag=$lt_prog_compiler_pic_CXX
11675         compiler_flags=-v
11676         linker_flags=-v
11677         verstring=
11678         output_objdir=.
11679         libname=conftest
11680         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11681         allow_undefined_flag_CXX=
11682         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11683   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }
11687         then
11688           archive_cmds_need_lc_CXX=no
11689         else
11690           archive_cmds_need_lc_CXX=yes
11691         fi
11692         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11693       else
11694         cat conftest.err 1>&5
11695       fi
11696       $rm conftest*
11697       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11698 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11699       ;;
11700     esac
11701   fi
11702   ;;
11703 esac
11704
11705 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11706 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11707 library_names_spec=
11708 libname_spec='lib$name'
11709 soname_spec=
11710 shrext_cmds=".so"
11711 postinstall_cmds=
11712 postuninstall_cmds=
11713 finish_cmds=
11714 finish_eval=
11715 shlibpath_var=
11716 shlibpath_overrides_runpath=unknown
11717 version_type=none
11718 dynamic_linker="$host_os ld.so"
11719 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11720 if test "$GCC" = yes; then
11721   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11722   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11723     # if the path contains ";" then we assume it to be the separator
11724     # otherwise default to the standard path separator (i.e. ":") - it is
11725     # assumed that no part of a normal pathname contains ";" but that should
11726     # okay in the real world where ";" in dirpaths is itself problematic.
11727     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11728   else
11729     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11730   fi
11731 else
11732   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11733 fi
11734 need_lib_prefix=unknown
11735 hardcode_into_libs=no
11736
11737 # when you set need_version to no, make sure it does not cause -set_version
11738 # flags to be left without arguments
11739 need_version=unknown
11740
11741 case $host_os in
11742 aix3*)
11743   version_type=linux
11744   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11745   shlibpath_var=LIBPATH
11746
11747   # AIX 3 has no versioning support, so we append a major version to the name.
11748   soname_spec='${libname}${release}${shared_ext}$major'
11749   ;;
11750
11751 aix4* | aix5*)
11752   version_type=linux
11753   need_lib_prefix=no
11754   need_version=no
11755   hardcode_into_libs=yes
11756   if test "$host_cpu" = ia64; then
11757     # AIX 5 supports IA64
11758     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11759     shlibpath_var=LD_LIBRARY_PATH
11760   else
11761     # With GCC up to 2.95.x, collect2 would create an import file
11762     # for dependence libraries.  The import file would start with
11763     # the line `#! .'.  This would cause the generated library to
11764     # depend on `.', always an invalid library.  This was fixed in
11765     # development snapshots of GCC prior to 3.0.
11766     case $host_os in
11767       aix4 | aix4.[01] | aix4.[01].*)
11768       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11769            echo ' yes '
11770            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11771         :
11772       else
11773         can_build_shared=no
11774       fi
11775       ;;
11776     esac
11777     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11778     # soname into executable. Probably we can add versioning support to
11779     # collect2, so additional links can be useful in future.
11780     if test "$aix_use_runtimelinking" = yes; then
11781       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11782       # instead of lib<name>.a to let people know that these are not
11783       # typical AIX shared libraries.
11784       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785     else
11786       # We preserve .a as extension for shared libraries through AIX4.2
11787       # and later when we are not doing run time linking.
11788       library_names_spec='${libname}${release}.a $libname.a'
11789       soname_spec='${libname}${release}${shared_ext}$major'
11790     fi
11791     shlibpath_var=LIBPATH
11792   fi
11793   ;;
11794
11795 amigaos*)
11796   library_names_spec='$libname.ixlibrary $libname.a'
11797   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11798   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'
11799   ;;
11800
11801 beos*)
11802   library_names_spec='${libname}${shared_ext}'
11803   dynamic_linker="$host_os ld.so"
11804   shlibpath_var=LIBRARY_PATH
11805   ;;
11806
11807 bsdi[45]*)
11808   version_type=linux
11809   need_version=no
11810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811   soname_spec='${libname}${release}${shared_ext}$major'
11812   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11813   shlibpath_var=LD_LIBRARY_PATH
11814   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11815   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11816   # the default ld.so.conf also contains /usr/contrib/lib and
11817   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11818   # libtool to hard-code these into programs
11819   ;;
11820
11821 cygwin* | mingw* | pw32*)
11822   version_type=windows
11823   shrext_cmds=".dll"
11824   need_version=no
11825   need_lib_prefix=no
11826
11827   case $GCC,$host_os in
11828   yes,cygwin* | yes,mingw* | yes,pw32*)
11829     library_names_spec='$libname.dll.a'
11830     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11831     postinstall_cmds='base_file=`basename \${file}`~
11832       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11833       dldir=$destdir/`dirname \$dlpath`~
11834       test -d \$dldir || mkdir -p \$dldir~
11835       $install_prog $dir/$dlname \$dldir/$dlname~
11836       chmod a+x \$dldir/$dlname'
11837     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11838       dlpath=$dir/\$dldll~
11839        $rm \$dlpath'
11840     shlibpath_overrides_runpath=yes
11841
11842     case $host_os in
11843     cygwin*)
11844       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11845       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11846       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11847       ;;
11848     mingw*)
11849       # MinGW DLLs use traditional 'lib' prefix
11850       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11851       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11852       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11853         # It is most probably a Windows format PATH printed by
11854         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11855         # path with ; separators, and with drive letters. We can handle the
11856         # drive letters (cygwin fileutils understands them), so leave them,
11857         # especially as we might pass files found there to a mingw objdump,
11858         # which wouldn't understand a cygwinified path. Ahh.
11859         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11860       else
11861         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11862       fi
11863       ;;
11864     pw32*)
11865       # pw32 DLLs use 'pw' prefix rather than 'lib'
11866       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11867       ;;
11868     esac
11869     ;;
11870
11871   *)
11872     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11873     ;;
11874   esac
11875   dynamic_linker='Win32 ld.exe'
11876   # FIXME: first we should search . and the directory the executable is in
11877   shlibpath_var=PATH
11878   ;;
11879
11880 darwin* | rhapsody*)
11881   dynamic_linker="$host_os dyld"
11882   version_type=darwin
11883   need_lib_prefix=no
11884   need_version=no
11885   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11886   soname_spec='${libname}${release}${major}$shared_ext'
11887   shlibpath_overrides_runpath=yes
11888   shlibpath_var=DYLD_LIBRARY_PATH
11889   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11890   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11891   if test "$GCC" = yes; then
11892     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"`
11893   else
11894     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11895   fi
11896   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11897   ;;
11898
11899 dgux*)
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   ;;
11907
11908 freebsd1*)
11909   dynamic_linker=no
11910   ;;
11911
11912 kfreebsd*-gnu)
11913   version_type=linux
11914   need_lib_prefix=no
11915   need_version=no
11916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11917   soname_spec='${libname}${release}${shared_ext}$major'
11918   shlibpath_var=LD_LIBRARY_PATH
11919   shlibpath_overrides_runpath=no
11920   hardcode_into_libs=yes
11921   dynamic_linker='GNU ld.so'
11922   ;;
11923
11924 freebsd* | dragonfly*)
11925   # DragonFly does not have aout.  When/if they implement a new
11926   # versioning mechanism, adjust this.
11927   if test -x /usr/bin/objformat; then
11928     objformat=`/usr/bin/objformat`
11929   else
11930     case $host_os in
11931     freebsd[123]*) objformat=aout ;;
11932     *) objformat=elf ;;
11933     esac
11934   fi
11935   version_type=freebsd-$objformat
11936   case $version_type in
11937     freebsd-elf*)
11938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11939       need_version=no
11940       need_lib_prefix=no
11941       ;;
11942     freebsd-*)
11943       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11944       need_version=yes
11945       ;;
11946   esac
11947   shlibpath_var=LD_LIBRARY_PATH
11948   case $host_os in
11949   freebsd2*)
11950     shlibpath_overrides_runpath=yes
11951     ;;
11952   freebsd3.[01]* | freebsdelf3.[01]*)
11953     shlibpath_overrides_runpath=yes
11954     hardcode_into_libs=yes
11955     ;;
11956   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11957   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11958     shlibpath_overrides_runpath=no
11959     hardcode_into_libs=yes
11960     ;;
11961   freebsd*) # from 4.6 on
11962     shlibpath_overrides_runpath=yes
11963     hardcode_into_libs=yes
11964     ;;
11965   esac
11966   ;;
11967
11968 gnu*)
11969   version_type=linux
11970   need_lib_prefix=no
11971   need_version=no
11972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11973   soname_spec='${libname}${release}${shared_ext}$major'
11974   shlibpath_var=LD_LIBRARY_PATH
11975   hardcode_into_libs=yes
11976   ;;
11977
11978 hpux9* | hpux10* | hpux11*)
11979   # Give a soname corresponding to the major version so that dld.sl refuses to
11980   # link against other versions.
11981   version_type=sunos
11982   need_lib_prefix=no
11983   need_version=no
11984   case $host_cpu in
11985   ia64*)
11986     shrext_cmds='.so'
11987     hardcode_into_libs=yes
11988     dynamic_linker="$host_os dld.so"
11989     shlibpath_var=LD_LIBRARY_PATH
11990     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992     soname_spec='${libname}${release}${shared_ext}$major'
11993     if test "X$HPUX_IA64_MODE" = X32; then
11994       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11995     else
11996       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11997     fi
11998     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11999     ;;
12000    hppa*64*)
12001      shrext_cmds='.sl'
12002      hardcode_into_libs=yes
12003      dynamic_linker="$host_os dld.sl"
12004      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12005      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12006      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12007      soname_spec='${libname}${release}${shared_ext}$major'
12008      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12009      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12010      ;;
12011    *)
12012     shrext_cmds='.sl'
12013     dynamic_linker="$host_os dld.sl"
12014     shlibpath_var=SHLIB_PATH
12015     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12017     soname_spec='${libname}${release}${shared_ext}$major'
12018     ;;
12019   esac
12020   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12021   postinstall_cmds='chmod 555 $lib'
12022   ;;
12023
12024 interix3*)
12025   version_type=linux
12026   need_lib_prefix=no
12027   need_version=no
12028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12029   soname_spec='${libname}${release}${shared_ext}$major'
12030   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12031   shlibpath_var=LD_LIBRARY_PATH
12032   shlibpath_overrides_runpath=no
12033   hardcode_into_libs=yes
12034   ;;
12035
12036 irix5* | irix6* | nonstopux*)
12037   case $host_os in
12038     nonstopux*) version_type=nonstopux ;;
12039     *)
12040         if test "$lt_cv_prog_gnu_ld" = yes; then
12041                 version_type=linux
12042         else
12043                 version_type=irix
12044         fi ;;
12045   esac
12046   need_lib_prefix=no
12047   need_version=no
12048   soname_spec='${libname}${release}${shared_ext}$major'
12049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12050   case $host_os in
12051   irix5* | nonstopux*)
12052     libsuff= shlibsuff=
12053     ;;
12054   *)
12055     case $LD in # libtool.m4 will add one of these switches to LD
12056     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12057       libsuff= shlibsuff= libmagic=32-bit;;
12058     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12059       libsuff=32 shlibsuff=N32 libmagic=N32;;
12060     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12061       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12062     *) libsuff= shlibsuff= libmagic=never-match;;
12063     esac
12064     ;;
12065   esac
12066   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12067   shlibpath_overrides_runpath=no
12068   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12069   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12070   hardcode_into_libs=yes
12071   ;;
12072
12073 # No shared lib support for Linux oldld, aout, or coff.
12074 linux*oldld* | linux*aout* | linux*coff*)
12075   dynamic_linker=no
12076   ;;
12077
12078 # This must be Linux ELF.
12079 linux*)
12080   version_type=linux
12081   need_lib_prefix=no
12082   need_version=no
12083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12084   soname_spec='${libname}${release}${shared_ext}$major'
12085   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12086   shlibpath_var=LD_LIBRARY_PATH
12087   shlibpath_overrides_runpath=no
12088   # This implies no fast_install, which is unacceptable.
12089   # Some rework will be needed to allow for fast_install
12090   # before this can be enabled.
12091   hardcode_into_libs=yes
12092
12093   # Append ld.so.conf contents to the search path
12094   if test -f /etc/ld.so.conf; then
12095     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12096     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12097   fi
12098
12099   # We used to test for /lib/ld.so.1 and disable shared libraries on
12100   # powerpc, because MkLinux only supported shared libraries with the
12101   # GNU dynamic linker.  Since this was broken with cross compilers,
12102   # most powerpc-linux boxes support dynamic linking these days and
12103   # people can always --disable-shared, the test was removed, and we
12104   # assume the GNU/Linux dynamic linker is in use.
12105   dynamic_linker='GNU/Linux ld.so'
12106   ;;
12107
12108 knetbsd*-gnu)
12109   version_type=linux
12110   need_lib_prefix=no
12111   need_version=no
12112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12113   soname_spec='${libname}${release}${shared_ext}$major'
12114   shlibpath_var=LD_LIBRARY_PATH
12115   shlibpath_overrides_runpath=no
12116   hardcode_into_libs=yes
12117   dynamic_linker='GNU ld.so'
12118   ;;
12119
12120 netbsd*)
12121   version_type=sunos
12122   need_lib_prefix=no
12123   need_version=no
12124   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12126     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12127     dynamic_linker='NetBSD (a.out) ld.so'
12128   else
12129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12130     soname_spec='${libname}${release}${shared_ext}$major'
12131     dynamic_linker='NetBSD ld.elf_so'
12132   fi
12133   shlibpath_var=LD_LIBRARY_PATH
12134   shlibpath_overrides_runpath=yes
12135   hardcode_into_libs=yes
12136   ;;
12137
12138 newsos6)
12139   version_type=linux
12140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12141   shlibpath_var=LD_LIBRARY_PATH
12142   shlibpath_overrides_runpath=yes
12143   ;;
12144
12145 nto-qnx*)
12146   version_type=linux
12147   need_lib_prefix=no
12148   need_version=no
12149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12150   soname_spec='${libname}${release}${shared_ext}$major'
12151   shlibpath_var=LD_LIBRARY_PATH
12152   shlibpath_overrides_runpath=yes
12153   ;;
12154
12155 openbsd*)
12156   version_type=sunos
12157   sys_lib_dlsearch_path_spec="/usr/lib"
12158   need_lib_prefix=no
12159   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12160   case $host_os in
12161     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12162     *)                         need_version=no  ;;
12163   esac
12164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12165   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12166   shlibpath_var=LD_LIBRARY_PATH
12167   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12168     case $host_os in
12169       openbsd2.[89] | openbsd2.[89].*)
12170         shlibpath_overrides_runpath=no
12171         ;;
12172       *)
12173         shlibpath_overrides_runpath=yes
12174         ;;
12175       esac
12176   else
12177     shlibpath_overrides_runpath=yes
12178   fi
12179   ;;
12180
12181 os2*)
12182   libname_spec='$name'
12183   shrext_cmds=".dll"
12184   need_lib_prefix=no
12185   library_names_spec='$libname${shared_ext} $libname.a'
12186   dynamic_linker='OS/2 ld.exe'
12187   shlibpath_var=LIBPATH
12188   ;;
12189
12190 osf3* | osf4* | osf5*)
12191   version_type=osf
12192   need_lib_prefix=no
12193   need_version=no
12194   soname_spec='${libname}${release}${shared_ext}$major'
12195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12196   shlibpath_var=LD_LIBRARY_PATH
12197   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12198   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12199   ;;
12200
12201 solaris*)
12202   version_type=linux
12203   need_lib_prefix=no
12204   need_version=no
12205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12206   soname_spec='${libname}${release}${shared_ext}$major'
12207   shlibpath_var=LD_LIBRARY_PATH
12208   shlibpath_overrides_runpath=yes
12209   hardcode_into_libs=yes
12210   # ldd complains unless libraries are executable
12211   postinstall_cmds='chmod +x $lib'
12212   ;;
12213
12214 sunos4*)
12215   version_type=sunos
12216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12217   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12218   shlibpath_var=LD_LIBRARY_PATH
12219   shlibpath_overrides_runpath=yes
12220   if test "$with_gnu_ld" = yes; then
12221     need_lib_prefix=no
12222   fi
12223   need_version=yes
12224   ;;
12225
12226 sysv4 | sysv4.3*)
12227   version_type=linux
12228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12229   soname_spec='${libname}${release}${shared_ext}$major'
12230   shlibpath_var=LD_LIBRARY_PATH
12231   case $host_vendor in
12232     sni)
12233       shlibpath_overrides_runpath=no
12234       need_lib_prefix=no
12235       export_dynamic_flag_spec='${wl}-Blargedynsym'
12236       runpath_var=LD_RUN_PATH
12237       ;;
12238     siemens)
12239       need_lib_prefix=no
12240       ;;
12241     motorola)
12242       need_lib_prefix=no
12243       need_version=no
12244       shlibpath_overrides_runpath=no
12245       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12246       ;;
12247   esac
12248   ;;
12249
12250 sysv4*MP*)
12251   if test -d /usr/nec ;then
12252     version_type=linux
12253     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12254     soname_spec='$libname${shared_ext}.$major'
12255     shlibpath_var=LD_LIBRARY_PATH
12256   fi
12257   ;;
12258
12259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12260   version_type=freebsd-elf
12261   need_lib_prefix=no
12262   need_version=no
12263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12264   soname_spec='${libname}${release}${shared_ext}$major'
12265   shlibpath_var=LD_LIBRARY_PATH
12266   hardcode_into_libs=yes
12267   if test "$with_gnu_ld" = yes; then
12268     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12269     shlibpath_overrides_runpath=no
12270   else
12271     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12272     shlibpath_overrides_runpath=yes
12273     case $host_os in
12274       sco3.2v5*)
12275         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12276         ;;
12277     esac
12278   fi
12279   sys_lib_dlsearch_path_spec='/usr/lib'
12280   ;;
12281
12282 uts4*)
12283   version_type=linux
12284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12285   soname_spec='${libname}${release}${shared_ext}$major'
12286   shlibpath_var=LD_LIBRARY_PATH
12287   ;;
12288
12289 *)
12290   dynamic_linker=no
12291   ;;
12292 esac
12293 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12294 echo "${ECHO_T}$dynamic_linker" >&6
12295 test "$dynamic_linker" = no && can_build_shared=no
12296
12297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12298 if test "$GCC" = yes; then
12299   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12300 fi
12301
12302 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12303 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12304 hardcode_action_CXX=
12305 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12306    test -n "$runpath_var_CXX" || \
12307    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12308
12309   # We can hardcode non-existant directories.
12310   if test "$hardcode_direct_CXX" != no &&
12311      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12312      # have to relink, otherwise we might link with an installed library
12313      # when we should be linking with a yet-to-be-installed one
12314      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12315      test "$hardcode_minus_L_CXX" != no; then
12316     # Linking always hardcodes the temporary library directory.
12317     hardcode_action_CXX=relink
12318   else
12319     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12320     hardcode_action_CXX=immediate
12321   fi
12322 else
12323   # We cannot hardcode anything, or else we can only hardcode existing
12324   # directories.
12325   hardcode_action_CXX=unsupported
12326 fi
12327 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12328 echo "${ECHO_T}$hardcode_action_CXX" >&6
12329
12330 if test "$hardcode_action_CXX" = relink; then
12331   # Fast installation is not supported
12332   enable_fast_install=no
12333 elif test "$shlibpath_overrides_runpath" = yes ||
12334      test "$enable_shared" = no; then
12335   # Fast installation is not necessary
12336   enable_fast_install=needless
12337 fi
12338
12339
12340 # The else clause should only fire when bootstrapping the
12341 # libtool distribution, otherwise you forgot to ship ltmain.sh
12342 # with your package, and you will get complaints that there are
12343 # no rules to generate ltmain.sh.
12344 if test -f "$ltmain"; then
12345   # See if we are running on zsh, and set the options which allow our commands through
12346   # without removal of \ escapes.
12347   if test -n "${ZSH_VERSION+set}" ; then
12348     setopt NO_GLOB_SUBST
12349   fi
12350   # Now quote all the things that may contain metacharacters while being
12351   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12352   # variables and quote the copies for generation of the libtool script.
12353   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12354     SED SHELL STRIP \
12355     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12356     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12357     deplibs_check_method reload_flag reload_cmds need_locks \
12358     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12359     lt_cv_sys_global_symbol_to_c_name_address \
12360     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12361     old_postinstall_cmds old_postuninstall_cmds \
12362     compiler_CXX \
12363     CC_CXX \
12364     LD_CXX \
12365     lt_prog_compiler_wl_CXX \
12366     lt_prog_compiler_pic_CXX \
12367     lt_prog_compiler_static_CXX \
12368     lt_prog_compiler_no_builtin_flag_CXX \
12369     export_dynamic_flag_spec_CXX \
12370     thread_safe_flag_spec_CXX \
12371     whole_archive_flag_spec_CXX \
12372     enable_shared_with_static_runtimes_CXX \
12373     old_archive_cmds_CXX \
12374     old_archive_from_new_cmds_CXX \
12375     predep_objects_CXX \
12376     postdep_objects_CXX \
12377     predeps_CXX \
12378     postdeps_CXX \
12379     compiler_lib_search_path_CXX \
12380     archive_cmds_CXX \
12381     archive_expsym_cmds_CXX \
12382     postinstall_cmds_CXX \
12383     postuninstall_cmds_CXX \
12384     old_archive_from_expsyms_cmds_CXX \
12385     allow_undefined_flag_CXX \
12386     no_undefined_flag_CXX \
12387     export_symbols_cmds_CXX \
12388     hardcode_libdir_flag_spec_CXX \
12389     hardcode_libdir_flag_spec_ld_CXX \
12390     hardcode_libdir_separator_CXX \
12391     hardcode_automatic_CXX \
12392     module_cmds_CXX \
12393     module_expsym_cmds_CXX \
12394     lt_cv_prog_compiler_c_o_CXX \
12395     exclude_expsyms_CXX \
12396     include_expsyms_CXX; do
12397
12398     case $var in
12399     old_archive_cmds_CXX | \
12400     old_archive_from_new_cmds_CXX | \
12401     archive_cmds_CXX | \
12402     archive_expsym_cmds_CXX | \
12403     module_cmds_CXX | \
12404     module_expsym_cmds_CXX | \
12405     old_archive_from_expsyms_cmds_CXX | \
12406     export_symbols_cmds_CXX | \
12407     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12408     postinstall_cmds | postuninstall_cmds | \
12409     old_postinstall_cmds | old_postuninstall_cmds | \
12410     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12411       # Double-quote double-evaled strings.
12412       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12413       ;;
12414     *)
12415       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12416       ;;
12417     esac
12418   done
12419
12420   case $lt_echo in
12421   *'\$0 --fallback-echo"')
12422     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12423     ;;
12424   esac
12425
12426 cfgfile="$ofile"
12427
12428   cat <<__EOF__ >> "$cfgfile"
12429 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12430
12431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12432
12433 # Shell to use when invoking shell scripts.
12434 SHELL=$lt_SHELL
12435
12436 # Whether or not to build shared libraries.
12437 build_libtool_libs=$enable_shared
12438
12439 # Whether or not to build static libraries.
12440 build_old_libs=$enable_static
12441
12442 # Whether or not to add -lc for building shared libraries.
12443 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12444
12445 # Whether or not to disallow shared libs when runtime libs are static
12446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12447
12448 # Whether or not to optimize for fast installation.
12449 fast_install=$enable_fast_install
12450
12451 # The host system.
12452 host_alias=$host_alias
12453 host=$host
12454 host_os=$host_os
12455
12456 # The build system.
12457 build_alias=$build_alias
12458 build=$build
12459 build_os=$build_os
12460
12461 # An echo program that does not interpret backslashes.
12462 echo=$lt_echo
12463
12464 # The archiver.
12465 AR=$lt_AR
12466 AR_FLAGS=$lt_AR_FLAGS
12467
12468 # A C compiler.
12469 LTCC=$lt_LTCC
12470
12471 # LTCC compiler flags.
12472 LTCFLAGS=$lt_LTCFLAGS
12473
12474 # A language-specific compiler.
12475 CC=$lt_compiler_CXX
12476
12477 # Is the compiler the GNU C compiler?
12478 with_gcc=$GCC_CXX
12479
12480 # An ERE matcher.
12481 EGREP=$lt_EGREP
12482
12483 # The linker used to build libraries.
12484 LD=$lt_LD_CXX
12485
12486 # Whether we need hard or soft links.
12487 LN_S=$lt_LN_S
12488
12489 # A BSD-compatible nm program.
12490 NM=$lt_NM
12491
12492 # A symbol stripping program
12493 STRIP=$lt_STRIP
12494
12495 # Used to examine libraries when file_magic_cmd begins "file"
12496 MAGIC_CMD=$MAGIC_CMD
12497
12498 # Used on cygwin: DLL creation program.
12499 DLLTOOL="$DLLTOOL"
12500
12501 # Used on cygwin: object dumper.
12502 OBJDUMP="$OBJDUMP"
12503
12504 # Used on cygwin: assembler.
12505 AS="$AS"
12506
12507 # The name of the directory that contains temporary libtool files.
12508 objdir=$objdir
12509
12510 # How to create reloadable object files.
12511 reload_flag=$lt_reload_flag
12512 reload_cmds=$lt_reload_cmds
12513
12514 # How to pass a linker flag through the compiler.
12515 wl=$lt_lt_prog_compiler_wl_CXX
12516
12517 # Object file suffix (normally "o").
12518 objext="$ac_objext"
12519
12520 # Old archive suffix (normally "a").
12521 libext="$libext"
12522
12523 # Shared library suffix (normally ".so").
12524 shrext_cmds='$shrext_cmds'
12525
12526 # Executable file suffix (normally "").
12527 exeext="$exeext"
12528
12529 # Additional compiler flags for building library objects.
12530 pic_flag=$lt_lt_prog_compiler_pic_CXX
12531 pic_mode=$pic_mode
12532
12533 # What is the maximum length of a command?
12534 max_cmd_len=$lt_cv_sys_max_cmd_len
12535
12536 # Does compiler simultaneously support -c and -o options?
12537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12538
12539 # Must we lock files when doing compilation?
12540 need_locks=$lt_need_locks
12541
12542 # Do we need the lib prefix for modules?
12543 need_lib_prefix=$need_lib_prefix
12544
12545 # Do we need a version for libraries?
12546 need_version=$need_version
12547
12548 # Whether dlopen is supported.
12549 dlopen_support=$enable_dlopen
12550
12551 # Whether dlopen of programs is supported.
12552 dlopen_self=$enable_dlopen_self
12553
12554 # Whether dlopen of statically linked programs is supported.
12555 dlopen_self_static=$enable_dlopen_self_static
12556
12557 # Compiler flag to prevent dynamic linking.
12558 link_static_flag=$lt_lt_prog_compiler_static_CXX
12559
12560 # Compiler flag to turn off builtin functions.
12561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12562
12563 # Compiler flag to allow reflexive dlopens.
12564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12565
12566 # Compiler flag to generate shared objects directly from archives.
12567 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12568
12569 # Compiler flag to generate thread-safe objects.
12570 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12571
12572 # Library versioning type.
12573 version_type=$version_type
12574
12575 # Format of library name prefix.
12576 libname_spec=$lt_libname_spec
12577
12578 # List of archive names.  First name is the real one, the rest are links.
12579 # The last name is the one that the linker finds with -lNAME.
12580 library_names_spec=$lt_library_names_spec
12581
12582 # The coded name of the library, if different from the real name.
12583 soname_spec=$lt_soname_spec
12584
12585 # Commands used to build and install an old-style archive.
12586 RANLIB=$lt_RANLIB
12587 old_archive_cmds=$lt_old_archive_cmds_CXX
12588 old_postinstall_cmds=$lt_old_postinstall_cmds
12589 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12590
12591 # Create an old-style archive from a shared archive.
12592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12593
12594 # Create a temporary old-style archive to link instead of a shared archive.
12595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12596
12597 # Commands used to build and install a shared archive.
12598 archive_cmds=$lt_archive_cmds_CXX
12599 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12600 postinstall_cmds=$lt_postinstall_cmds
12601 postuninstall_cmds=$lt_postuninstall_cmds
12602
12603 # Commands used to build a loadable module (assumed same as above if empty)
12604 module_cmds=$lt_module_cmds_CXX
12605 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12606
12607 # Commands to strip libraries.
12608 old_striplib=$lt_old_striplib
12609 striplib=$lt_striplib
12610
12611 # Dependencies to place before the objects being linked to create a
12612 # shared library.
12613 predep_objects=$lt_predep_objects_CXX
12614
12615 # Dependencies to place after the objects being linked to create a
12616 # shared library.
12617 postdep_objects=$lt_postdep_objects_CXX
12618
12619 # Dependencies to place before the objects being linked to create a
12620 # shared library.
12621 predeps=$lt_predeps_CXX
12622
12623 # Dependencies to place after the objects being linked to create a
12624 # shared library.
12625 postdeps=$lt_postdeps_CXX
12626
12627 # The library search path used internally by the compiler when linking
12628 # a shared library.
12629 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12630
12631 # Method to check whether dependent libraries are shared objects.
12632 deplibs_check_method=$lt_deplibs_check_method
12633
12634 # Command to use when deplibs_check_method == file_magic.
12635 file_magic_cmd=$lt_file_magic_cmd
12636
12637 # Flag that allows shared libraries with undefined symbols to be built.
12638 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12639
12640 # Flag that forces no undefined symbols.
12641 no_undefined_flag=$lt_no_undefined_flag_CXX
12642
12643 # Commands used to finish a libtool library installation in a directory.
12644 finish_cmds=$lt_finish_cmds
12645
12646 # Same as above, but a single script fragment to be evaled but not shown.
12647 finish_eval=$lt_finish_eval
12648
12649 # Take the output of nm and produce a listing of raw symbols and C names.
12650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12651
12652 # Transform the output of nm in a proper C declaration
12653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12654
12655 # Transform the output of nm in a C name address pair
12656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12657
12658 # This is the shared library runtime path variable.
12659 runpath_var=$runpath_var
12660
12661 # This is the shared library path variable.
12662 shlibpath_var=$shlibpath_var
12663
12664 # Is shlibpath searched before the hard-coded library search path?
12665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12666
12667 # How to hardcode a shared library path into an executable.
12668 hardcode_action=$hardcode_action_CXX
12669
12670 # Whether we should hardcode library paths into libraries.
12671 hardcode_into_libs=$hardcode_into_libs
12672
12673 # Flag to hardcode \$libdir into a binary during linking.
12674 # This must work even if \$libdir does not exist.
12675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12676
12677 # If ld is used when linking, flag to hardcode \$libdir into
12678 # a binary during linking. This must work even if \$libdir does
12679 # not exist.
12680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12681
12682 # Whether we need a single -rpath flag with a separated argument.
12683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12684
12685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12686 # resulting binary.
12687 hardcode_direct=$hardcode_direct_CXX
12688
12689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12690 # resulting binary.
12691 hardcode_minus_L=$hardcode_minus_L_CXX
12692
12693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12694 # the resulting binary.
12695 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12696
12697 # Set to yes if building a shared library automatically hardcodes DIR into the library
12698 # and all subsequent libraries and executables linked against it.
12699 hardcode_automatic=$hardcode_automatic_CXX
12700
12701 # Variables whose values should be saved in libtool wrapper scripts and
12702 # restored at relink time.
12703 variables_saved_for_relink="$variables_saved_for_relink"
12704
12705 # Whether libtool must link a program against all its dependency libraries.
12706 link_all_deplibs=$link_all_deplibs_CXX
12707
12708 # Compile-time system search path for libraries
12709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12710
12711 # Run-time system search path for libraries
12712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12713
12714 # Fix the shell variable \$srcfile for the compiler.
12715 fix_srcfile_path="$fix_srcfile_path_CXX"
12716
12717 # Set to yes if exported symbols are required.
12718 always_export_symbols=$always_export_symbols_CXX
12719
12720 # The commands to list exported symbols.
12721 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12722
12723 # The commands to extract the exported symbol list from a shared archive.
12724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12725
12726 # Symbols that should not be listed in the preloaded symbols.
12727 exclude_expsyms=$lt_exclude_expsyms_CXX
12728
12729 # Symbols that must always be exported.
12730 include_expsyms=$lt_include_expsyms_CXX
12731
12732 # ### END LIBTOOL TAG CONFIG: $tagname
12733
12734 __EOF__
12735
12736
12737 else
12738   # If there is no Makefile yet, we rely on a make rule to execute
12739   # `config.status --recheck' to rerun these tests and create the
12740   # libtool script then.
12741   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12742   if test -f "$ltmain_in"; then
12743     test -f Makefile && make "$ltmain"
12744   fi
12745 fi
12746
12747
12748 ac_ext=c
12749 ac_cpp='$CPP $CPPFLAGS'
12750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12753
12754 CC=$lt_save_CC
12755 LDCXX=$LD
12756 LD=$lt_save_LD
12757 GCC=$lt_save_GCC
12758 with_gnu_ldcxx=$with_gnu_ld
12759 with_gnu_ld=$lt_save_with_gnu_ld
12760 lt_cv_path_LDCXX=$lt_cv_path_LD
12761 lt_cv_path_LD=$lt_save_path_LD
12762 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12763 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12764
12765         else
12766           tagname=""
12767         fi
12768         ;;
12769
12770       F77)
12771         if test -n "$F77" && test "X$F77" != "Xno"; then
12772
12773 ac_ext=f
12774 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12775 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12776 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12777
12778
12779 archive_cmds_need_lc_F77=no
12780 allow_undefined_flag_F77=
12781 always_export_symbols_F77=no
12782 archive_expsym_cmds_F77=
12783 export_dynamic_flag_spec_F77=
12784 hardcode_direct_F77=no
12785 hardcode_libdir_flag_spec_F77=
12786 hardcode_libdir_flag_spec_ld_F77=
12787 hardcode_libdir_separator_F77=
12788 hardcode_minus_L_F77=no
12789 hardcode_automatic_F77=no
12790 module_cmds_F77=
12791 module_expsym_cmds_F77=
12792 link_all_deplibs_F77=unknown
12793 old_archive_cmds_F77=$old_archive_cmds
12794 no_undefined_flag_F77=
12795 whole_archive_flag_spec_F77=
12796 enable_shared_with_static_runtimes_F77=no
12797
12798 # Source file extension for f77 test sources.
12799 ac_ext=f
12800
12801 # Object file extension for compiled f77 test sources.
12802 objext=o
12803 objext_F77=$objext
12804
12805 # Code to be used in simple compile tests
12806 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12807
12808 # Code to be used in simple link tests
12809 lt_simple_link_test_code="      program t\n      end\n"
12810
12811 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12812
12813 # If no C compiler was specified, use CC.
12814 LTCC=${LTCC-"$CC"}
12815
12816 # If no C compiler flags were specified, use CFLAGS.
12817 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12818
12819 # Allow CC to be a program name with arguments.
12820 compiler=$CC
12821
12822
12823 # save warnings/boilerplate of simple test code
12824 ac_outfile=conftest.$ac_objext
12825 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12826 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12827 _lt_compiler_boilerplate=`cat conftest.err`
12828 $rm conftest*
12829
12830 ac_outfile=conftest.$ac_objext
12831 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12832 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12833 _lt_linker_boilerplate=`cat conftest.err`
12834 $rm conftest*
12835
12836
12837 # Allow CC to be a program name with arguments.
12838 lt_save_CC="$CC"
12839 CC=${F77-"f77"}
12840 compiler=$CC
12841 compiler_F77=$CC
12842 for cc_temp in $compiler""; do
12843   case $cc_temp in
12844     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12845     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12846     \-*) ;;
12847     *) break;;
12848   esac
12849 done
12850 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12851
12852
12853 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12854 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12855 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12856 echo "${ECHO_T}$can_build_shared" >&6
12857
12858 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12859 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12860 test "$can_build_shared" = "no" && enable_shared=no
12861
12862 # On AIX, shared libraries and static libraries use the same namespace, and
12863 # are all built from PIC.
12864 case $host_os in
12865 aix3*)
12866   test "$enable_shared" = yes && enable_static=no
12867   if test -n "$RANLIB"; then
12868     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12869     postinstall_cmds='$RANLIB $lib'
12870   fi
12871   ;;
12872 aix4* | aix5*)
12873   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12874     test "$enable_shared" = yes && enable_static=no
12875   fi
12876   ;;
12877 esac
12878 echo "$as_me:$LINENO: result: $enable_shared" >&5
12879 echo "${ECHO_T}$enable_shared" >&6
12880
12881 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12882 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12883 # Make sure either enable_shared or enable_static is yes.
12884 test "$enable_shared" = yes || enable_static=yes
12885 echo "$as_me:$LINENO: result: $enable_static" >&5
12886 echo "${ECHO_T}$enable_static" >&6
12887
12888 GCC_F77="$G77"
12889 LD_F77="$LD"
12890
12891 lt_prog_compiler_wl_F77=
12892 lt_prog_compiler_pic_F77=
12893 lt_prog_compiler_static_F77=
12894
12895 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12896 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12897
12898   if test "$GCC" = yes; then
12899     lt_prog_compiler_wl_F77='-Wl,'
12900     lt_prog_compiler_static_F77='-static'
12901
12902     case $host_os in
12903       aix*)
12904       # All AIX code is PIC.
12905       if test "$host_cpu" = ia64; then
12906         # AIX 5 now supports IA64 processor
12907         lt_prog_compiler_static_F77='-Bstatic'
12908       fi
12909       ;;
12910
12911     amigaos*)
12912       # FIXME: we need at least 68020 code to build shared libraries, but
12913       # adding the `-m68020' flag to GCC prevents building anything better,
12914       # like `-m68040'.
12915       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12916       ;;
12917
12918     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12919       # PIC is the default for these OSes.
12920       ;;
12921
12922     mingw* | pw32* | os2*)
12923       # This hack is so that the source file can tell whether it is being
12924       # built for inclusion in a dll (and should export symbols for example).
12925       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12926       ;;
12927
12928     darwin* | rhapsody*)
12929       # PIC is the default on this platform
12930       # Common symbols not allowed in MH_DYLIB files
12931       lt_prog_compiler_pic_F77='-fno-common'
12932       ;;
12933
12934     interix3*)
12935       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12936       # Instead, we relocate shared libraries at runtime.
12937       ;;
12938
12939     msdosdjgpp*)
12940       # Just because we use GCC doesn't mean we suddenly get shared libraries
12941       # on systems that don't support them.
12942       lt_prog_compiler_can_build_shared_F77=no
12943       enable_shared=no
12944       ;;
12945
12946     sysv4*MP*)
12947       if test -d /usr/nec; then
12948         lt_prog_compiler_pic_F77=-Kconform_pic
12949       fi
12950       ;;
12951
12952     hpux*)
12953       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12954       # not for PA HP-UX.
12955       case $host_cpu in
12956       hppa*64*|ia64*)
12957         # +Z the default
12958         ;;
12959       *)
12960         lt_prog_compiler_pic_F77='-fPIC'
12961         ;;
12962       esac
12963       ;;
12964
12965     *)
12966       lt_prog_compiler_pic_F77='-fPIC'
12967       ;;
12968     esac
12969   else
12970     # PORTME Check for flag to pass linker flags through the system compiler.
12971     case $host_os in
12972     aix*)
12973       lt_prog_compiler_wl_F77='-Wl,'
12974       if test "$host_cpu" = ia64; then
12975         # AIX 5 now supports IA64 processor
12976         lt_prog_compiler_static_F77='-Bstatic'
12977       else
12978         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12979       fi
12980       ;;
12981       darwin*)
12982         # PIC is the default on this platform
12983         # Common symbols not allowed in MH_DYLIB files
12984        case $cc_basename in
12985          xlc*)
12986          lt_prog_compiler_pic_F77='-qnocommon'
12987          lt_prog_compiler_wl_F77='-Wl,'
12988          ;;
12989        esac
12990        ;;
12991
12992     mingw* | pw32* | os2*)
12993       # This hack is so that the source file can tell whether it is being
12994       # built for inclusion in a dll (and should export symbols for example).
12995       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12996       ;;
12997
12998     hpux9* | hpux10* | hpux11*)
12999       lt_prog_compiler_wl_F77='-Wl,'
13000       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13001       # not for PA HP-UX.
13002       case $host_cpu in
13003       hppa*64*|ia64*)
13004         # +Z the default
13005         ;;
13006       *)
13007         lt_prog_compiler_pic_F77='+Z'
13008         ;;
13009       esac
13010       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13011       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13012       ;;
13013
13014     irix5* | irix6* | nonstopux*)
13015       lt_prog_compiler_wl_F77='-Wl,'
13016       # PIC (with -KPIC) is the default.
13017       lt_prog_compiler_static_F77='-non_shared'
13018       ;;
13019
13020     newsos6)
13021       lt_prog_compiler_pic_F77='-KPIC'
13022       lt_prog_compiler_static_F77='-Bstatic'
13023       ;;
13024
13025     linux*)
13026       case $cc_basename in
13027       icc* | ecc*)
13028         lt_prog_compiler_wl_F77='-Wl,'
13029         lt_prog_compiler_pic_F77='-KPIC'
13030         lt_prog_compiler_static_F77='-static'
13031         ;;
13032       pgcc* | pgf77* | pgf90* | pgf95*)
13033         # Portland Group compilers (*not* the Pentium gcc compiler,
13034         # which looks to be a dead project)
13035         lt_prog_compiler_wl_F77='-Wl,'
13036         lt_prog_compiler_pic_F77='-fpic'
13037         lt_prog_compiler_static_F77='-Bstatic'
13038         ;;
13039       ccc*)
13040         lt_prog_compiler_wl_F77='-Wl,'
13041         # All Alpha code is PIC.
13042         lt_prog_compiler_static_F77='-non_shared'
13043         ;;
13044       esac
13045       ;;
13046
13047     osf3* | osf4* | osf5*)
13048       lt_prog_compiler_wl_F77='-Wl,'
13049       # All OSF/1 code is PIC.
13050       lt_prog_compiler_static_F77='-non_shared'
13051       ;;
13052
13053     solaris*)
13054       lt_prog_compiler_pic_F77='-KPIC'
13055       lt_prog_compiler_static_F77='-Bstatic'
13056       case $cc_basename in
13057       f77* | f90* | f95*)
13058         lt_prog_compiler_wl_F77='-Qoption ld ';;
13059       *)
13060         lt_prog_compiler_wl_F77='-Wl,';;
13061       esac
13062       ;;
13063
13064     sunos4*)
13065       lt_prog_compiler_wl_F77='-Qoption ld '
13066       lt_prog_compiler_pic_F77='-PIC'
13067       lt_prog_compiler_static_F77='-Bstatic'
13068       ;;
13069
13070     sysv4 | sysv4.2uw2* | sysv4.3*)
13071       lt_prog_compiler_wl_F77='-Wl,'
13072       lt_prog_compiler_pic_F77='-KPIC'
13073       lt_prog_compiler_static_F77='-Bstatic'
13074       ;;
13075
13076     sysv4*MP*)
13077       if test -d /usr/nec ;then
13078         lt_prog_compiler_pic_F77='-Kconform_pic'
13079         lt_prog_compiler_static_F77='-Bstatic'
13080       fi
13081       ;;
13082
13083     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13084       lt_prog_compiler_wl_F77='-Wl,'
13085       lt_prog_compiler_pic_F77='-KPIC'
13086       lt_prog_compiler_static_F77='-Bstatic'
13087       ;;
13088
13089     unicos*)
13090       lt_prog_compiler_wl_F77='-Wl,'
13091       lt_prog_compiler_can_build_shared_F77=no
13092       ;;
13093
13094     uts4*)
13095       lt_prog_compiler_pic_F77='-pic'
13096       lt_prog_compiler_static_F77='-Bstatic'
13097       ;;
13098
13099     *)
13100       lt_prog_compiler_can_build_shared_F77=no
13101       ;;
13102     esac
13103   fi
13104
13105 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13106 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13107
13108 #
13109 # Check to make sure the PIC flag actually works.
13110 #
13111 if test -n "$lt_prog_compiler_pic_F77"; then
13112
13113 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13114 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13115 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13116   echo $ECHO_N "(cached) $ECHO_C" >&6
13117 else
13118   lt_prog_compiler_pic_works_F77=no
13119   ac_outfile=conftest.$ac_objext
13120    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13121    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13122    # Insert the option either (1) after the last *FLAGS variable, or
13123    # (2) before a word containing "conftest.", or (3) at the end.
13124    # Note that $ac_compile itself does not contain backslashes and begins
13125    # with a dollar sign (not a hyphen), so the echo should work correctly.
13126    # The option is referenced via a variable to avoid confusing sed.
13127    lt_compile=`echo "$ac_compile" | $SED \
13128    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13129    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13130    -e 's:$: $lt_compiler_flag:'`
13131    (eval echo "\"\$as_me:13131: $lt_compile\"" >&5)
13132    (eval "$lt_compile" 2>conftest.err)
13133    ac_status=$?
13134    cat conftest.err >&5
13135    echo "$as_me:13135: \$? = $ac_status" >&5
13136    if (exit $ac_status) && test -s "$ac_outfile"; then
13137      # The compiler can only warn and ignore the option if not recognized
13138      # So say no if there are warnings other than the usual output.
13139      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13140      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13141      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13142        lt_prog_compiler_pic_works_F77=yes
13143      fi
13144    fi
13145    $rm conftest*
13146
13147 fi
13148 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13149 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13150
13151 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13152     case $lt_prog_compiler_pic_F77 in
13153      "" | " "*) ;;
13154      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13155      esac
13156 else
13157     lt_prog_compiler_pic_F77=
13158      lt_prog_compiler_can_build_shared_F77=no
13159 fi
13160
13161 fi
13162 case $host_os in
13163   # For platforms which do not support PIC, -DPIC is meaningless:
13164   *djgpp*)
13165     lt_prog_compiler_pic_F77=
13166     ;;
13167   *)
13168     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13169     ;;
13170 esac
13171
13172 #
13173 # Check to make sure the static flag actually works.
13174 #
13175 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13176 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13177 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13178 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13179   echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181   lt_prog_compiler_static_works_F77=no
13182    save_LDFLAGS="$LDFLAGS"
13183    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13184    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13185    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13186      # The linker can only warn and ignore the option if not recognized
13187      # So say no if there are warnings
13188      if test -s conftest.err; then
13189        # Append any errors to the config.log.
13190        cat conftest.err 1>&5
13191        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13192        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13193        if diff conftest.exp conftest.er2 >/dev/null; then
13194          lt_prog_compiler_static_works_F77=yes
13195        fi
13196      else
13197        lt_prog_compiler_static_works_F77=yes
13198      fi
13199    fi
13200    $rm conftest*
13201    LDFLAGS="$save_LDFLAGS"
13202
13203 fi
13204 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13205 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13206
13207 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13208     :
13209 else
13210     lt_prog_compiler_static_F77=
13211 fi
13212
13213
13214 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13216 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13217   echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219   lt_cv_prog_compiler_c_o_F77=no
13220    $rm -r conftest 2>/dev/null
13221    mkdir conftest
13222    cd conftest
13223    mkdir out
13224    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13225
13226    lt_compiler_flag="-o out/conftest2.$ac_objext"
13227    # Insert the option either (1) after the last *FLAGS variable, or
13228    # (2) before a word containing "conftest.", or (3) at the end.
13229    # Note that $ac_compile itself does not contain backslashes and begins
13230    # with a dollar sign (not a hyphen), so the echo should work correctly.
13231    lt_compile=`echo "$ac_compile" | $SED \
13232    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13234    -e 's:$: $lt_compiler_flag:'`
13235    (eval echo "\"\$as_me:13235: $lt_compile\"" >&5)
13236    (eval "$lt_compile" 2>out/conftest.err)
13237    ac_status=$?
13238    cat out/conftest.err >&5
13239    echo "$as_me:13239: \$? = $ac_status" >&5
13240    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13241    then
13242      # The compiler can only warn and ignore the option if not recognized
13243      # So say no if there are warnings
13244      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13245      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13246      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13247        lt_cv_prog_compiler_c_o_F77=yes
13248      fi
13249    fi
13250    chmod u+w . 2>&5
13251    $rm conftest*
13252    # SGI C++ compiler will create directory out/ii_files/ for
13253    # template instantiation
13254    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13255    $rm out/* && rmdir out
13256    cd ..
13257    rmdir conftest
13258    $rm conftest*
13259
13260 fi
13261 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13262 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13263
13264
13265 hard_links="nottested"
13266 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13267   # do not overwrite the value of need_locks provided by the user
13268   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13269 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13270   hard_links=yes
13271   $rm conftest*
13272   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13273   touch conftest.a
13274   ln conftest.a conftest.b 2>&5 || hard_links=no
13275   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13276   echo "$as_me:$LINENO: result: $hard_links" >&5
13277 echo "${ECHO_T}$hard_links" >&6
13278   if test "$hard_links" = no; then
13279     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13280 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13281     need_locks=warn
13282   fi
13283 else
13284   need_locks=no
13285 fi
13286
13287 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13288 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13289
13290   runpath_var=
13291   allow_undefined_flag_F77=
13292   enable_shared_with_static_runtimes_F77=no
13293   archive_cmds_F77=
13294   archive_expsym_cmds_F77=
13295   old_archive_From_new_cmds_F77=
13296   old_archive_from_expsyms_cmds_F77=
13297   export_dynamic_flag_spec_F77=
13298   whole_archive_flag_spec_F77=
13299   thread_safe_flag_spec_F77=
13300   hardcode_libdir_flag_spec_F77=
13301   hardcode_libdir_flag_spec_ld_F77=
13302   hardcode_libdir_separator_F77=
13303   hardcode_direct_F77=no
13304   hardcode_minus_L_F77=no
13305   hardcode_shlibpath_var_F77=unsupported
13306   link_all_deplibs_F77=unknown
13307   hardcode_automatic_F77=no
13308   module_cmds_F77=
13309   module_expsym_cmds_F77=
13310   always_export_symbols_F77=no
13311   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13312   # include_expsyms should be a list of space-separated symbols to be *always*
13313   # included in the symbol list
13314   include_expsyms_F77=
13315   # exclude_expsyms can be an extended regexp of symbols to exclude
13316   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13317   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13318   # as well as any symbol that contains `d'.
13319   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13320   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13321   # platforms (ab)use it in PIC code, but their linkers get confused if
13322   # the symbol is explicitly referenced.  Since portable code cannot
13323   # rely on this symbol name, it's probably fine to never include it in
13324   # preloaded symbol tables.
13325   extract_expsyms_cmds=
13326   # Just being paranoid about ensuring that cc_basename is set.
13327   for cc_temp in $compiler""; do
13328   case $cc_temp in
13329     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13330     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13331     \-*) ;;
13332     *) break;;
13333   esac
13334 done
13335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13336
13337   case $host_os in
13338   cygwin* | mingw* | pw32*)
13339     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13340     # When not using gcc, we currently assume that we are using
13341     # Microsoft Visual C++.
13342     if test "$GCC" != yes; then
13343       with_gnu_ld=no
13344     fi
13345     ;;
13346   interix*)
13347     # we just hope/assume this is gcc and not c89 (= MSVC++)
13348     with_gnu_ld=yes
13349     ;;
13350   openbsd*)
13351     with_gnu_ld=no
13352     ;;
13353   esac
13354
13355   ld_shlibs_F77=yes
13356   if test "$with_gnu_ld" = yes; then
13357     # If archive_cmds runs LD, not CC, wlarc should be empty
13358     wlarc='${wl}'
13359
13360     # Set some defaults for GNU ld with shared library support. These
13361     # are reset later if shared libraries are not supported. Putting them
13362     # here allows them to be overridden if necessary.
13363     runpath_var=LD_RUN_PATH
13364     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13365     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13366     # ancient GNU ld didn't support --whole-archive et. al.
13367     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13368         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13369       else
13370         whole_archive_flag_spec_F77=
13371     fi
13372     supports_anon_versioning=no
13373     case `$LD -v 2>/dev/null` in
13374       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13375       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13376       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13377       *\ 2.11.*) ;; # other 2.11 versions
13378       *) supports_anon_versioning=yes ;;
13379     esac
13380
13381     # See if GNU ld supports shared libraries.
13382     case $host_os in
13383     aix3* | aix4* | aix5*)
13384       # On AIX/PPC, the GNU linker is very broken
13385       if test "$host_cpu" != ia64; then
13386         ld_shlibs_F77=no
13387         cat <<EOF 1>&2
13388
13389 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13390 *** to be unable to reliably create shared libraries on AIX.
13391 *** Therefore, libtool is disabling shared libraries support.  If you
13392 *** really care for shared libraries, you may want to modify your PATH
13393 *** so that a non-GNU linker is found, and then restart.
13394
13395 EOF
13396       fi
13397       ;;
13398
13399     amigaos*)
13400       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)'
13401       hardcode_libdir_flag_spec_F77='-L$libdir'
13402       hardcode_minus_L_F77=yes
13403
13404       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13405       # that the semantics of dynamic libraries on AmigaOS, at least up
13406       # to version 4, is to share data among multiple programs linked
13407       # with the same dynamic library.  Since this doesn't match the
13408       # behavior of shared libraries on other platforms, we can't use
13409       # them.
13410       ld_shlibs_F77=no
13411       ;;
13412
13413     beos*)
13414       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13415         allow_undefined_flag_F77=unsupported
13416         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13417         # support --undefined.  This deserves some investigation.  FIXME
13418         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13419       else
13420         ld_shlibs_F77=no
13421       fi
13422       ;;
13423
13424     cygwin* | mingw* | pw32*)
13425       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13426       # as there is no search path for DLLs.
13427       hardcode_libdir_flag_spec_F77='-L$libdir'
13428       allow_undefined_flag_F77=unsupported
13429       always_export_symbols_F77=no
13430       enable_shared_with_static_runtimes_F77=yes
13431       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13432
13433       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13434         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13435         # If the export-symbols file already is a .def file (1st line
13436         # is EXPORTS), use it as is; otherwise, prepend...
13437         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13438           cp $export_symbols $output_objdir/$soname.def;
13439         else
13440           echo EXPORTS > $output_objdir/$soname.def;
13441           cat $export_symbols >> $output_objdir/$soname.def;
13442         fi~
13443         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13444       else
13445         ld_shlibs_F77=no
13446       fi
13447       ;;
13448
13449     interix3*)
13450       hardcode_direct_F77=no
13451       hardcode_shlibpath_var_F77=no
13452       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13453       export_dynamic_flag_spec_F77='${wl}-E'
13454       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13455       # Instead, shared libraries are loaded at an image base (0x10000000 by
13456       # default) and relocated if they conflict, which is a slow very memory
13457       # consuming and fragmenting process.  To avoid this, we pick a random,
13458       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13459       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13460       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13461       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13462       ;;
13463
13464     linux*)
13465       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13466         tmp_addflag=
13467         case $cc_basename,$host_cpu in
13468         pgcc*)                          # Portland Group C compiler
13469           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13470           tmp_addflag=' $pic_flag'
13471           ;;
13472         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13473           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13474           tmp_addflag=' $pic_flag -Mnomain' ;;
13475         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13476           tmp_addflag=' -i_dynamic' ;;
13477         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13478           tmp_addflag=' -i_dynamic -nofor_main' ;;
13479         ifc* | ifort*)                  # Intel Fortran compiler
13480           tmp_addflag=' -nofor_main' ;;
13481         esac
13482         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13483
13484         if test $supports_anon_versioning = yes; then
13485           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13486   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13487   $echo "local: *; };" >> $output_objdir/$libname.ver~
13488           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13489         fi
13490       else
13491         ld_shlibs_F77=no
13492       fi
13493       ;;
13494
13495     netbsd*)
13496       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13497         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13498         wlarc=
13499       else
13500         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13501         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13502       fi
13503       ;;
13504
13505     solaris*)
13506       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13507         ld_shlibs_F77=no
13508         cat <<EOF 1>&2
13509
13510 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13511 *** create shared libraries on Solaris systems.  Therefore, libtool
13512 *** is disabling shared libraries support.  We urge you to upgrade GNU
13513 *** binutils to release 2.9.1 or newer.  Another option is to modify
13514 *** your PATH or compiler configuration so that the native linker is
13515 *** used, and then restart.
13516
13517 EOF
13518       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13519         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13521       else
13522         ld_shlibs_F77=no
13523       fi
13524       ;;
13525
13526     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13527       case `$LD -v 2>&1` in
13528         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13529         ld_shlibs_F77=no
13530         cat <<_LT_EOF 1>&2
13531
13532 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13533 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13534 *** is disabling shared libraries support.  We urge you to upgrade GNU
13535 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13536 *** your PATH or compiler configuration so that the native linker is
13537 *** used, and then restart.
13538
13539 _LT_EOF
13540         ;;
13541         *)
13542           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13543             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13544             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13545             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13546           else
13547             ld_shlibs_F77=no
13548           fi
13549         ;;
13550       esac
13551       ;;
13552
13553     sunos4*)
13554       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13555       wlarc=
13556       hardcode_direct_F77=yes
13557       hardcode_shlibpath_var_F77=no
13558       ;;
13559
13560     *)
13561       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13562         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13563         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13564       else
13565         ld_shlibs_F77=no
13566       fi
13567       ;;
13568     esac
13569
13570     if test "$ld_shlibs_F77" = no; then
13571       runpath_var=
13572       hardcode_libdir_flag_spec_F77=
13573       export_dynamic_flag_spec_F77=
13574       whole_archive_flag_spec_F77=
13575     fi
13576   else
13577     # PORTME fill in a description of your system's linker (not GNU ld)
13578     case $host_os in
13579     aix3*)
13580       allow_undefined_flag_F77=unsupported
13581       always_export_symbols_F77=yes
13582       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'
13583       # Note: this linker hardcodes the directories in LIBPATH if there
13584       # are no directories specified by -L.
13585       hardcode_minus_L_F77=yes
13586       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13587         # Neither direct hardcoding nor static linking is supported with a
13588         # broken collect2.
13589         hardcode_direct_F77=unsupported
13590       fi
13591       ;;
13592
13593     aix4* | aix5*)
13594       if test "$host_cpu" = ia64; then
13595         # On IA64, the linker does run time linking by default, so we don't
13596         # have to do anything special.
13597         aix_use_runtimelinking=no
13598         exp_sym_flag='-Bexport'
13599         no_entry_flag=""
13600       else
13601         # If we're using GNU nm, then we don't want the "-C" option.
13602         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13603         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13604           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'
13605         else
13606           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'
13607         fi
13608         aix_use_runtimelinking=no
13609
13610         # Test if we are trying to use run time linking or normal
13611         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13612         # need to do runtime linking.
13613         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13614           for ld_flag in $LDFLAGS; do
13615           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13616             aix_use_runtimelinking=yes
13617             break
13618           fi
13619           done
13620           ;;
13621         esac
13622
13623         exp_sym_flag='-bexport'
13624         no_entry_flag='-bnoentry'
13625       fi
13626
13627       # When large executables or shared objects are built, AIX ld can
13628       # have problems creating the table of contents.  If linking a library
13629       # or program results in "error TOC overflow" add -mminimal-toc to
13630       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13631       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13632
13633       archive_cmds_F77=''
13634       hardcode_direct_F77=yes
13635       hardcode_libdir_separator_F77=':'
13636       link_all_deplibs_F77=yes
13637
13638       if test "$GCC" = yes; then
13639         case $host_os in aix4.[012]|aix4.[012].*)
13640         # We only want to do this on AIX 4.2 and lower, the check
13641         # below for broken collect2 doesn't work under 4.3+
13642           collect2name=`${CC} -print-prog-name=collect2`
13643           if test -f "$collect2name" && \
13644            strings "$collect2name" | grep resolve_lib_name >/dev/null
13645           then
13646           # We have reworked collect2
13647           hardcode_direct_F77=yes
13648           else
13649           # We have old collect2
13650           hardcode_direct_F77=unsupported
13651           # It fails to find uninstalled libraries when the uninstalled
13652           # path is not listed in the libpath.  Setting hardcode_minus_L
13653           # to unsupported forces relinking
13654           hardcode_minus_L_F77=yes
13655           hardcode_libdir_flag_spec_F77='-L$libdir'
13656           hardcode_libdir_separator_F77=
13657           fi
13658           ;;
13659         esac
13660         shared_flag='-shared'
13661         if test "$aix_use_runtimelinking" = yes; then
13662           shared_flag="$shared_flag "'${wl}-G'
13663         fi
13664       else
13665         # not using gcc
13666         if test "$host_cpu" = ia64; then
13667         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13668         # chokes on -Wl,-G. The following line is correct:
13669           shared_flag='-G'
13670         else
13671           if test "$aix_use_runtimelinking" = yes; then
13672             shared_flag='${wl}-G'
13673           else
13674             shared_flag='${wl}-bM:SRE'
13675           fi
13676         fi
13677       fi
13678
13679       # It seems that -bexpall does not export symbols beginning with
13680       # underscore (_), so it is better to generate a list of symbols to export.
13681       always_export_symbols_F77=yes
13682       if test "$aix_use_runtimelinking" = yes; then
13683         # Warning - without using the other runtime loading flags (-brtl),
13684         # -berok will link without error, but may produce a broken library.
13685         allow_undefined_flag_F77='-berok'
13686        # Determine the default libpath from the value encoded in an empty executable.
13687        cat >conftest.$ac_ext <<_ACEOF
13688       program main
13689
13690       end
13691 _ACEOF
13692 rm -f conftest.$ac_objext conftest$ac_exeext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13694   (eval $ac_link) 2>conftest.er1
13695   ac_status=$?
13696   grep -v '^ *+' conftest.er1 >conftest.err
13697   rm -f conftest.er1
13698   cat conftest.err >&5
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); } &&
13701          { ac_try='test -z "$ac_f77_werror_flag"
13702                          || test ! -s conftest.err'
13703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704   (eval $ac_try) 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); }; } &&
13708          { ac_try='test -s conftest$ac_exeext'
13709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710   (eval $ac_try) 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; }; then
13714
13715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13716 }'`
13717 # Check for a 64-bit object if we didn't find anything.
13718 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; }
13719 }'`; fi
13720 else
13721   echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13723
13724 fi
13725 rm -f conftest.err conftest.$ac_objext \
13726       conftest$ac_exeext conftest.$ac_ext
13727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13728
13729        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13730         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13731        else
13732         if test "$host_cpu" = ia64; then
13733           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13734           allow_undefined_flag_F77="-z nodefs"
13735           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13736         else
13737          # Determine the default libpath from the value encoded in an empty executable.
13738          cat >conftest.$ac_ext <<_ACEOF
13739       program main
13740
13741       end
13742 _ACEOF
13743 rm -f conftest.$ac_objext conftest$ac_exeext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745   (eval $ac_link) 2>conftest.er1
13746   ac_status=$?
13747   grep -v '^ *+' conftest.er1 >conftest.err
13748   rm -f conftest.er1
13749   cat conftest.err >&5
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); } &&
13752          { ac_try='test -z "$ac_f77_werror_flag"
13753                          || test ! -s conftest.err'
13754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755   (eval $ac_try) 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; } &&
13759          { ac_try='test -s conftest$ac_exeext'
13760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761   (eval $ac_try) 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; }; then
13765
13766 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13767 }'`
13768 # Check for a 64-bit object if we didn't find anything.
13769 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; }
13770 }'`; fi
13771 else
13772   echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13774
13775 fi
13776 rm -f conftest.err conftest.$ac_objext \
13777       conftest$ac_exeext conftest.$ac_ext
13778 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13779
13780          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13781           # Warning - without using the other run time loading flags,
13782           # -berok will link without error, but may produce a broken library.
13783           no_undefined_flag_F77=' ${wl}-bernotok'
13784           allow_undefined_flag_F77=' ${wl}-berok'
13785           # Exported symbols can be pulled into shared objects from archives
13786           whole_archive_flag_spec_F77='$convenience'
13787           archive_cmds_need_lc_F77=yes
13788           # This is similar to how AIX traditionally builds its shared libraries.
13789           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13790         fi
13791       fi
13792       ;;
13793
13794     amigaos*)
13795       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)'
13796       hardcode_libdir_flag_spec_F77='-L$libdir'
13797       hardcode_minus_L_F77=yes
13798       # see comment about different semantics on the GNU ld section
13799       ld_shlibs_F77=no
13800       ;;
13801
13802     bsdi[45]*)
13803       export_dynamic_flag_spec_F77=-rdynamic
13804       ;;
13805
13806     cygwin* | mingw* | pw32*)
13807       # When not using gcc, we currently assume that we are using
13808       # Microsoft Visual C++.
13809       # hardcode_libdir_flag_spec is actually meaningless, as there is
13810       # no search path for DLLs.
13811       hardcode_libdir_flag_spec_F77=' '
13812       allow_undefined_flag_F77=unsupported
13813       # Tell ltmain to make .lib files, not .a files.
13814       libext=lib
13815       # Tell ltmain to make .dll files, not .so files.
13816       shrext_cmds=".dll"
13817       # FIXME: Setting linknames here is a bad hack.
13818       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13819       # The linker will automatically build a .lib file if we build a DLL.
13820       old_archive_From_new_cmds_F77='true'
13821       # FIXME: Should let the user specify the lib program.
13822       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13823       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13824       enable_shared_with_static_runtimes_F77=yes
13825       ;;
13826
13827     darwin* | rhapsody*)
13828       case $host_os in
13829         rhapsody* | darwin1.[012])
13830          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13831          ;;
13832        *) # Darwin 1.3 on
13833          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13834            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13835          else
13836            case ${MACOSX_DEPLOYMENT_TARGET} in
13837              10.[012])
13838                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13839                ;;
13840              10.*)
13841                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13842                ;;
13843            esac
13844          fi
13845          ;;
13846       esac
13847       archive_cmds_need_lc_F77=no
13848       hardcode_direct_F77=no
13849       hardcode_automatic_F77=yes
13850       hardcode_shlibpath_var_F77=unsupported
13851       whole_archive_flag_spec_F77=''
13852       link_all_deplibs_F77=yes
13853     if test "$GCC" = yes ; then
13854         output_verbose_link_cmd='echo'
13855         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13856       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13857       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13858       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13859       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}'
13860     else
13861       case $cc_basename in
13862         xlc*)
13863          output_verbose_link_cmd='echo'
13864          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13865          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13866           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13867          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13868           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}'
13869           ;;
13870        *)
13871          ld_shlibs_F77=no
13872           ;;
13873       esac
13874     fi
13875       ;;
13876
13877     dgux*)
13878       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13879       hardcode_libdir_flag_spec_F77='-L$libdir'
13880       hardcode_shlibpath_var_F77=no
13881       ;;
13882
13883     freebsd1*)
13884       ld_shlibs_F77=no
13885       ;;
13886
13887     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13888     # support.  Future versions do this automatically, but an explicit c++rt0.o
13889     # does not break anything, and helps significantly (at the cost of a little
13890     # extra space).
13891     freebsd2.2*)
13892       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13893       hardcode_libdir_flag_spec_F77='-R$libdir'
13894       hardcode_direct_F77=yes
13895       hardcode_shlibpath_var_F77=no
13896       ;;
13897
13898     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13899     freebsd2*)
13900       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13901       hardcode_direct_F77=yes
13902       hardcode_minus_L_F77=yes
13903       hardcode_shlibpath_var_F77=no
13904       ;;
13905
13906     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13907     freebsd* | kfreebsd*-gnu | dragonfly*)
13908       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13909       hardcode_libdir_flag_spec_F77='-R$libdir'
13910       hardcode_direct_F77=yes
13911       hardcode_shlibpath_var_F77=no
13912       ;;
13913
13914     hpux9*)
13915       if test "$GCC" = yes; then
13916         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'
13917       else
13918         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'
13919       fi
13920       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13921       hardcode_libdir_separator_F77=:
13922       hardcode_direct_F77=yes
13923
13924       # hardcode_minus_L: Not really in the search PATH,
13925       # but as the default location of the library.
13926       hardcode_minus_L_F77=yes
13927       export_dynamic_flag_spec_F77='${wl}-E'
13928       ;;
13929
13930     hpux10*)
13931       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13932         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13933       else
13934         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13935       fi
13936       if test "$with_gnu_ld" = no; then
13937         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13938         hardcode_libdir_separator_F77=:
13939
13940         hardcode_direct_F77=yes
13941         export_dynamic_flag_spec_F77='${wl}-E'
13942
13943         # hardcode_minus_L: Not really in the search PATH,
13944         # but as the default location of the library.
13945         hardcode_minus_L_F77=yes
13946       fi
13947       ;;
13948
13949     hpux11*)
13950       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13951         case $host_cpu in
13952         hppa*64*)
13953           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13954           ;;
13955         ia64*)
13956           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13957           ;;
13958         *)
13959           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13960           ;;
13961         esac
13962       else
13963         case $host_cpu in
13964         hppa*64*)
13965           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13966           ;;
13967         ia64*)
13968           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13969           ;;
13970         *)
13971           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13972           ;;
13973         esac
13974       fi
13975       if test "$with_gnu_ld" = no; then
13976         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13977         hardcode_libdir_separator_F77=:
13978
13979         case $host_cpu in
13980         hppa*64*|ia64*)
13981           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13982           hardcode_direct_F77=no
13983           hardcode_shlibpath_var_F77=no
13984           ;;
13985         *)
13986           hardcode_direct_F77=yes
13987           export_dynamic_flag_spec_F77='${wl}-E'
13988
13989           # hardcode_minus_L: Not really in the search PATH,
13990           # but as the default location of the library.
13991           hardcode_minus_L_F77=yes
13992           ;;
13993         esac
13994       fi
13995       ;;
13996
13997     irix5* | irix6* | nonstopux*)
13998       if test "$GCC" = yes; then
13999         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'
14000       else
14001         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'
14002         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14003       fi
14004       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14005       hardcode_libdir_separator_F77=:
14006       link_all_deplibs_F77=yes
14007       ;;
14008
14009     netbsd*)
14010       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14011         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14012       else
14013         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14014       fi
14015       hardcode_libdir_flag_spec_F77='-R$libdir'
14016       hardcode_direct_F77=yes
14017       hardcode_shlibpath_var_F77=no
14018       ;;
14019
14020     newsos6)
14021       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14022       hardcode_direct_F77=yes
14023       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14024       hardcode_libdir_separator_F77=:
14025       hardcode_shlibpath_var_F77=no
14026       ;;
14027
14028     openbsd*)
14029       hardcode_direct_F77=yes
14030       hardcode_shlibpath_var_F77=no
14031       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14032         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14033         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14034         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14035         export_dynamic_flag_spec_F77='${wl}-E'
14036       else
14037        case $host_os in
14038          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14039            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14040            hardcode_libdir_flag_spec_F77='-R$libdir'
14041            ;;
14042          *)
14043            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14044            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14045            ;;
14046        esac
14047       fi
14048       ;;
14049
14050     os2*)
14051       hardcode_libdir_flag_spec_F77='-L$libdir'
14052       hardcode_minus_L_F77=yes
14053       allow_undefined_flag_F77=unsupported
14054       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'
14055       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14056       ;;
14057
14058     osf3*)
14059       if test "$GCC" = yes; then
14060         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14061         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'
14062       else
14063         allow_undefined_flag_F77=' -expect_unresolved \*'
14064         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'
14065       fi
14066       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14067       hardcode_libdir_separator_F77=:
14068       ;;
14069
14070     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14071       if test "$GCC" = yes; then
14072         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14073         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'
14074         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14075       else
14076         allow_undefined_flag_F77=' -expect_unresolved \*'
14077         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'
14078         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~
14079         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14080
14081         # Both c and cxx compiler support -rpath directly
14082         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14083       fi
14084       hardcode_libdir_separator_F77=:
14085       ;;
14086
14087     solaris*)
14088       no_undefined_flag_F77=' -z text'
14089       if test "$GCC" = yes; then
14090         wlarc='${wl}'
14091         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14092         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14093           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14094       else
14095         wlarc=''
14096         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14097         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14098         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14099       fi
14100       hardcode_libdir_flag_spec_F77='-R$libdir'
14101       hardcode_shlibpath_var_F77=no
14102       case $host_os in
14103       solaris2.[0-5] | solaris2.[0-5].*) ;;
14104       *)
14105         # The compiler driver will combine linker options so we
14106         # cannot just pass the convience library names through
14107         # without $wl, iff we do not link with $LD.
14108         # Luckily, gcc supports the same syntax we need for Sun Studio.
14109         # Supported since Solaris 2.6 (maybe 2.5.1?)
14110         case $wlarc in
14111         '')
14112           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14113         *)
14114           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14115         esac ;;
14116       esac
14117       link_all_deplibs_F77=yes
14118       ;;
14119
14120     sunos4*)
14121       if test "x$host_vendor" = xsequent; then
14122         # Use $CC to link under sequent, because it throws in some extra .o
14123         # files that make .init and .fini sections work.
14124         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14125       else
14126         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14127       fi
14128       hardcode_libdir_flag_spec_F77='-L$libdir'
14129       hardcode_direct_F77=yes
14130       hardcode_minus_L_F77=yes
14131       hardcode_shlibpath_var_F77=no
14132       ;;
14133
14134     sysv4)
14135       case $host_vendor in
14136         sni)
14137           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14138           hardcode_direct_F77=yes # is this really true???
14139         ;;
14140         siemens)
14141           ## LD is ld it makes a PLAMLIB
14142           ## CC just makes a GrossModule.
14143           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14144           reload_cmds_F77='$CC -r -o $output$reload_objs'
14145           hardcode_direct_F77=no
14146         ;;
14147         motorola)
14148           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14149           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14150         ;;
14151       esac
14152       runpath_var='LD_RUN_PATH'
14153       hardcode_shlibpath_var_F77=no
14154       ;;
14155
14156     sysv4.3*)
14157       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14158       hardcode_shlibpath_var_F77=no
14159       export_dynamic_flag_spec_F77='-Bexport'
14160       ;;
14161
14162     sysv4*MP*)
14163       if test -d /usr/nec; then
14164         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14165         hardcode_shlibpath_var_F77=no
14166         runpath_var=LD_RUN_PATH
14167         hardcode_runpath_var=yes
14168         ld_shlibs_F77=yes
14169       fi
14170       ;;
14171
14172     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14173       no_undefined_flag_F77='${wl}-z,text'
14174       archive_cmds_need_lc_F77=no
14175       hardcode_shlibpath_var_F77=no
14176       runpath_var='LD_RUN_PATH'
14177
14178       if test "$GCC" = yes; then
14179         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14181       else
14182         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184       fi
14185       ;;
14186
14187     sysv5* | sco3.2v5* | sco5v6*)
14188       # Note: We can NOT use -z defs as we might desire, because we do not
14189       # link with -lc, and that would cause any symbols used from libc to
14190       # always be unresolved, which means just about no library would
14191       # ever link correctly.  If we're not using GNU ld we use -z text
14192       # though, which does catch some bad symbols but isn't as heavy-handed
14193       # as -z defs.
14194       no_undefined_flag_F77='${wl}-z,text'
14195       allow_undefined_flag_F77='${wl}-z,nodefs'
14196       archive_cmds_need_lc_F77=no
14197       hardcode_shlibpath_var_F77=no
14198       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14199       hardcode_libdir_separator_F77=':'
14200       link_all_deplibs_F77=yes
14201       export_dynamic_flag_spec_F77='${wl}-Bexport'
14202       runpath_var='LD_RUN_PATH'
14203
14204       if test "$GCC" = yes; then
14205         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14206         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14207       else
14208         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14209         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14210       fi
14211       ;;
14212
14213     uts4*)
14214       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14215       hardcode_libdir_flag_spec_F77='-L$libdir'
14216       hardcode_shlibpath_var_F77=no
14217       ;;
14218
14219     *)
14220       ld_shlibs_F77=no
14221       ;;
14222     esac
14223   fi
14224
14225 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14226 echo "${ECHO_T}$ld_shlibs_F77" >&6
14227 test "$ld_shlibs_F77" = no && can_build_shared=no
14228
14229 #
14230 # Do we need to explicitly link libc?
14231 #
14232 case "x$archive_cmds_need_lc_F77" in
14233 x|xyes)
14234   # Assume -lc should be added
14235   archive_cmds_need_lc_F77=yes
14236
14237   if test "$enable_shared" = yes && test "$GCC" = yes; then
14238     case $archive_cmds_F77 in
14239     *'~'*)
14240       # FIXME: we may have to deal with multi-command sequences.
14241       ;;
14242     '$CC '*)
14243       # Test whether the compiler implicitly links with -lc since on some
14244       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14245       # to ld, don't add -lc before -lgcc.
14246       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14247 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14248       $rm conftest*
14249       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14250
14251       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252   (eval $ac_compile) 2>&5
14253   ac_status=$?
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); } 2>conftest.err; then
14256         soname=conftest
14257         lib=conftest
14258         libobjs=conftest.$ac_objext
14259         deplibs=
14260         wl=$lt_prog_compiler_wl_F77
14261         pic_flag=$lt_prog_compiler_pic_F77
14262         compiler_flags=-v
14263         linker_flags=-v
14264         verstring=
14265         output_objdir=.
14266         libname=conftest
14267         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14268         allow_undefined_flag_F77=
14269         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14270   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14271   ac_status=$?
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); }
14274         then
14275           archive_cmds_need_lc_F77=no
14276         else
14277           archive_cmds_need_lc_F77=yes
14278         fi
14279         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14280       else
14281         cat conftest.err 1>&5
14282       fi
14283       $rm conftest*
14284       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14285 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14286       ;;
14287     esac
14288   fi
14289   ;;
14290 esac
14291
14292 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14293 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14294 library_names_spec=
14295 libname_spec='lib$name'
14296 soname_spec=
14297 shrext_cmds=".so"
14298 postinstall_cmds=
14299 postuninstall_cmds=
14300 finish_cmds=
14301 finish_eval=
14302 shlibpath_var=
14303 shlibpath_overrides_runpath=unknown
14304 version_type=none
14305 dynamic_linker="$host_os ld.so"
14306 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14307 if test "$GCC" = yes; then
14308   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14309   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14310     # if the path contains ";" then we assume it to be the separator
14311     # otherwise default to the standard path separator (i.e. ":") - it is
14312     # assumed that no part of a normal pathname contains ";" but that should
14313     # okay in the real world where ";" in dirpaths is itself problematic.
14314     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14315   else
14316     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14317   fi
14318 else
14319   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14320 fi
14321 need_lib_prefix=unknown
14322 hardcode_into_libs=no
14323
14324 # when you set need_version to no, make sure it does not cause -set_version
14325 # flags to be left without arguments
14326 need_version=unknown
14327
14328 case $host_os in
14329 aix3*)
14330   version_type=linux
14331   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14332   shlibpath_var=LIBPATH
14333
14334   # AIX 3 has no versioning support, so we append a major version to the name.
14335   soname_spec='${libname}${release}${shared_ext}$major'
14336   ;;
14337
14338 aix4* | aix5*)
14339   version_type=linux
14340   need_lib_prefix=no
14341   need_version=no
14342   hardcode_into_libs=yes
14343   if test "$host_cpu" = ia64; then
14344     # AIX 5 supports IA64
14345     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14346     shlibpath_var=LD_LIBRARY_PATH
14347   else
14348     # With GCC up to 2.95.x, collect2 would create an import file
14349     # for dependence libraries.  The import file would start with
14350     # the line `#! .'.  This would cause the generated library to
14351     # depend on `.', always an invalid library.  This was fixed in
14352     # development snapshots of GCC prior to 3.0.
14353     case $host_os in
14354       aix4 | aix4.[01] | aix4.[01].*)
14355       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14356            echo ' yes '
14357            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14358         :
14359       else
14360         can_build_shared=no
14361       fi
14362       ;;
14363     esac
14364     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14365     # soname into executable. Probably we can add versioning support to
14366     # collect2, so additional links can be useful in future.
14367     if test "$aix_use_runtimelinking" = yes; then
14368       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14369       # instead of lib<name>.a to let people know that these are not
14370       # typical AIX shared libraries.
14371       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14372     else
14373       # We preserve .a as extension for shared libraries through AIX4.2
14374       # and later when we are not doing run time linking.
14375       library_names_spec='${libname}${release}.a $libname.a'
14376       soname_spec='${libname}${release}${shared_ext}$major'
14377     fi
14378     shlibpath_var=LIBPATH
14379   fi
14380   ;;
14381
14382 amigaos*)
14383   library_names_spec='$libname.ixlibrary $libname.a'
14384   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14385   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'
14386   ;;
14387
14388 beos*)
14389   library_names_spec='${libname}${shared_ext}'
14390   dynamic_linker="$host_os ld.so"
14391   shlibpath_var=LIBRARY_PATH
14392   ;;
14393
14394 bsdi[45]*)
14395   version_type=linux
14396   need_version=no
14397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14398   soname_spec='${libname}${release}${shared_ext}$major'
14399   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14400   shlibpath_var=LD_LIBRARY_PATH
14401   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14402   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14403   # the default ld.so.conf also contains /usr/contrib/lib and
14404   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14405   # libtool to hard-code these into programs
14406   ;;
14407
14408 cygwin* | mingw* | pw32*)
14409   version_type=windows
14410   shrext_cmds=".dll"
14411   need_version=no
14412   need_lib_prefix=no
14413
14414   case $GCC,$host_os in
14415   yes,cygwin* | yes,mingw* | yes,pw32*)
14416     library_names_spec='$libname.dll.a'
14417     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14418     postinstall_cmds='base_file=`basename \${file}`~
14419       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14420       dldir=$destdir/`dirname \$dlpath`~
14421       test -d \$dldir || mkdir -p \$dldir~
14422       $install_prog $dir/$dlname \$dldir/$dlname~
14423       chmod a+x \$dldir/$dlname'
14424     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14425       dlpath=$dir/\$dldll~
14426        $rm \$dlpath'
14427     shlibpath_overrides_runpath=yes
14428
14429     case $host_os in
14430     cygwin*)
14431       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14432       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14433       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14434       ;;
14435     mingw*)
14436       # MinGW DLLs use traditional 'lib' prefix
14437       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14438       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14439       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14440         # It is most probably a Windows format PATH printed by
14441         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14442         # path with ; separators, and with drive letters. We can handle the
14443         # drive letters (cygwin fileutils understands them), so leave them,
14444         # especially as we might pass files found there to a mingw objdump,
14445         # which wouldn't understand a cygwinified path. Ahh.
14446         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14447       else
14448         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14449       fi
14450       ;;
14451     pw32*)
14452       # pw32 DLLs use 'pw' prefix rather than 'lib'
14453       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14454       ;;
14455     esac
14456     ;;
14457
14458   *)
14459     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14460     ;;
14461   esac
14462   dynamic_linker='Win32 ld.exe'
14463   # FIXME: first we should search . and the directory the executable is in
14464   shlibpath_var=PATH
14465   ;;
14466
14467 darwin* | rhapsody*)
14468   dynamic_linker="$host_os dyld"
14469   version_type=darwin
14470   need_lib_prefix=no
14471   need_version=no
14472   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14473   soname_spec='${libname}${release}${major}$shared_ext'
14474   shlibpath_overrides_runpath=yes
14475   shlibpath_var=DYLD_LIBRARY_PATH
14476   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14477   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14478   if test "$GCC" = yes; then
14479     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"`
14480   else
14481     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14482   fi
14483   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14484   ;;
14485
14486 dgux*)
14487   version_type=linux
14488   need_lib_prefix=no
14489   need_version=no
14490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14491   soname_spec='${libname}${release}${shared_ext}$major'
14492   shlibpath_var=LD_LIBRARY_PATH
14493   ;;
14494
14495 freebsd1*)
14496   dynamic_linker=no
14497   ;;
14498
14499 kfreebsd*-gnu)
14500   version_type=linux
14501   need_lib_prefix=no
14502   need_version=no
14503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14504   soname_spec='${libname}${release}${shared_ext}$major'
14505   shlibpath_var=LD_LIBRARY_PATH
14506   shlibpath_overrides_runpath=no
14507   hardcode_into_libs=yes
14508   dynamic_linker='GNU ld.so'
14509   ;;
14510
14511 freebsd* | dragonfly*)
14512   # DragonFly does not have aout.  When/if they implement a new
14513   # versioning mechanism, adjust this.
14514   if test -x /usr/bin/objformat; then
14515     objformat=`/usr/bin/objformat`
14516   else
14517     case $host_os in
14518     freebsd[123]*) objformat=aout ;;
14519     *) objformat=elf ;;
14520     esac
14521   fi
14522   version_type=freebsd-$objformat
14523   case $version_type in
14524     freebsd-elf*)
14525       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14526       need_version=no
14527       need_lib_prefix=no
14528       ;;
14529     freebsd-*)
14530       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14531       need_version=yes
14532       ;;
14533   esac
14534   shlibpath_var=LD_LIBRARY_PATH
14535   case $host_os in
14536   freebsd2*)
14537     shlibpath_overrides_runpath=yes
14538     ;;
14539   freebsd3.[01]* | freebsdelf3.[01]*)
14540     shlibpath_overrides_runpath=yes
14541     hardcode_into_libs=yes
14542     ;;
14543   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14544   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14545     shlibpath_overrides_runpath=no
14546     hardcode_into_libs=yes
14547     ;;
14548   freebsd*) # from 4.6 on
14549     shlibpath_overrides_runpath=yes
14550     hardcode_into_libs=yes
14551     ;;
14552   esac
14553   ;;
14554
14555 gnu*)
14556   version_type=linux
14557   need_lib_prefix=no
14558   need_version=no
14559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14560   soname_spec='${libname}${release}${shared_ext}$major'
14561   shlibpath_var=LD_LIBRARY_PATH
14562   hardcode_into_libs=yes
14563   ;;
14564
14565 hpux9* | hpux10* | hpux11*)
14566   # Give a soname corresponding to the major version so that dld.sl refuses to
14567   # link against other versions.
14568   version_type=sunos
14569   need_lib_prefix=no
14570   need_version=no
14571   case $host_cpu in
14572   ia64*)
14573     shrext_cmds='.so'
14574     hardcode_into_libs=yes
14575     dynamic_linker="$host_os dld.so"
14576     shlibpath_var=LD_LIBRARY_PATH
14577     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579     soname_spec='${libname}${release}${shared_ext}$major'
14580     if test "X$HPUX_IA64_MODE" = X32; then
14581       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14582     else
14583       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14584     fi
14585     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14586     ;;
14587    hppa*64*)
14588      shrext_cmds='.sl'
14589      hardcode_into_libs=yes
14590      dynamic_linker="$host_os dld.sl"
14591      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14592      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14593      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14594      soname_spec='${libname}${release}${shared_ext}$major'
14595      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14596      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14597      ;;
14598    *)
14599     shrext_cmds='.sl'
14600     dynamic_linker="$host_os dld.sl"
14601     shlibpath_var=SHLIB_PATH
14602     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14603     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14604     soname_spec='${libname}${release}${shared_ext}$major'
14605     ;;
14606   esac
14607   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14608   postinstall_cmds='chmod 555 $lib'
14609   ;;
14610
14611 interix3*)
14612   version_type=linux
14613   need_lib_prefix=no
14614   need_version=no
14615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616   soname_spec='${libname}${release}${shared_ext}$major'
14617   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14618   shlibpath_var=LD_LIBRARY_PATH
14619   shlibpath_overrides_runpath=no
14620   hardcode_into_libs=yes
14621   ;;
14622
14623 irix5* | irix6* | nonstopux*)
14624   case $host_os in
14625     nonstopux*) version_type=nonstopux ;;
14626     *)
14627         if test "$lt_cv_prog_gnu_ld" = yes; then
14628                 version_type=linux
14629         else
14630                 version_type=irix
14631         fi ;;
14632   esac
14633   need_lib_prefix=no
14634   need_version=no
14635   soname_spec='${libname}${release}${shared_ext}$major'
14636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14637   case $host_os in
14638   irix5* | nonstopux*)
14639     libsuff= shlibsuff=
14640     ;;
14641   *)
14642     case $LD in # libtool.m4 will add one of these switches to LD
14643     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14644       libsuff= shlibsuff= libmagic=32-bit;;
14645     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14646       libsuff=32 shlibsuff=N32 libmagic=N32;;
14647     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14648       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14649     *) libsuff= shlibsuff= libmagic=never-match;;
14650     esac
14651     ;;
14652   esac
14653   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14654   shlibpath_overrides_runpath=no
14655   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14656   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14657   hardcode_into_libs=yes
14658   ;;
14659
14660 # No shared lib support for Linux oldld, aout, or coff.
14661 linux*oldld* | linux*aout* | linux*coff*)
14662   dynamic_linker=no
14663   ;;
14664
14665 # This must be Linux ELF.
14666 linux*)
14667   version_type=linux
14668   need_lib_prefix=no
14669   need_version=no
14670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671   soname_spec='${libname}${release}${shared_ext}$major'
14672   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14673   shlibpath_var=LD_LIBRARY_PATH
14674   shlibpath_overrides_runpath=no
14675   # This implies no fast_install, which is unacceptable.
14676   # Some rework will be needed to allow for fast_install
14677   # before this can be enabled.
14678   hardcode_into_libs=yes
14679
14680   # Append ld.so.conf contents to the search path
14681   if test -f /etc/ld.so.conf; then
14682     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14683     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14684   fi
14685
14686   # We used to test for /lib/ld.so.1 and disable shared libraries on
14687   # powerpc, because MkLinux only supported shared libraries with the
14688   # GNU dynamic linker.  Since this was broken with cross compilers,
14689   # most powerpc-linux boxes support dynamic linking these days and
14690   # people can always --disable-shared, the test was removed, and we
14691   # assume the GNU/Linux dynamic linker is in use.
14692   dynamic_linker='GNU/Linux ld.so'
14693   ;;
14694
14695 knetbsd*-gnu)
14696   version_type=linux
14697   need_lib_prefix=no
14698   need_version=no
14699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14700   soname_spec='${libname}${release}${shared_ext}$major'
14701   shlibpath_var=LD_LIBRARY_PATH
14702   shlibpath_overrides_runpath=no
14703   hardcode_into_libs=yes
14704   dynamic_linker='GNU ld.so'
14705   ;;
14706
14707 netbsd*)
14708   version_type=sunos
14709   need_lib_prefix=no
14710   need_version=no
14711   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14713     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14714     dynamic_linker='NetBSD (a.out) ld.so'
14715   else
14716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14717     soname_spec='${libname}${release}${shared_ext}$major'
14718     dynamic_linker='NetBSD ld.elf_so'
14719   fi
14720   shlibpath_var=LD_LIBRARY_PATH
14721   shlibpath_overrides_runpath=yes
14722   hardcode_into_libs=yes
14723   ;;
14724
14725 newsos6)
14726   version_type=linux
14727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14728   shlibpath_var=LD_LIBRARY_PATH
14729   shlibpath_overrides_runpath=yes
14730   ;;
14731
14732 nto-qnx*)
14733   version_type=linux
14734   need_lib_prefix=no
14735   need_version=no
14736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737   soname_spec='${libname}${release}${shared_ext}$major'
14738   shlibpath_var=LD_LIBRARY_PATH
14739   shlibpath_overrides_runpath=yes
14740   ;;
14741
14742 openbsd*)
14743   version_type=sunos
14744   sys_lib_dlsearch_path_spec="/usr/lib"
14745   need_lib_prefix=no
14746   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14747   case $host_os in
14748     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14749     *)                         need_version=no  ;;
14750   esac
14751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14752   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14753   shlibpath_var=LD_LIBRARY_PATH
14754   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14755     case $host_os in
14756       openbsd2.[89] | openbsd2.[89].*)
14757         shlibpath_overrides_runpath=no
14758         ;;
14759       *)
14760         shlibpath_overrides_runpath=yes
14761         ;;
14762       esac
14763   else
14764     shlibpath_overrides_runpath=yes
14765   fi
14766   ;;
14767
14768 os2*)
14769   libname_spec='$name'
14770   shrext_cmds=".dll"
14771   need_lib_prefix=no
14772   library_names_spec='$libname${shared_ext} $libname.a'
14773   dynamic_linker='OS/2 ld.exe'
14774   shlibpath_var=LIBPATH
14775   ;;
14776
14777 osf3* | osf4* | osf5*)
14778   version_type=osf
14779   need_lib_prefix=no
14780   need_version=no
14781   soname_spec='${libname}${release}${shared_ext}$major'
14782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783   shlibpath_var=LD_LIBRARY_PATH
14784   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14785   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14786   ;;
14787
14788 solaris*)
14789   version_type=linux
14790   need_lib_prefix=no
14791   need_version=no
14792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793   soname_spec='${libname}${release}${shared_ext}$major'
14794   shlibpath_var=LD_LIBRARY_PATH
14795   shlibpath_overrides_runpath=yes
14796   hardcode_into_libs=yes
14797   # ldd complains unless libraries are executable
14798   postinstall_cmds='chmod +x $lib'
14799   ;;
14800
14801 sunos4*)
14802   version_type=sunos
14803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14804   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14805   shlibpath_var=LD_LIBRARY_PATH
14806   shlibpath_overrides_runpath=yes
14807   if test "$with_gnu_ld" = yes; then
14808     need_lib_prefix=no
14809   fi
14810   need_version=yes
14811   ;;
14812
14813 sysv4 | sysv4.3*)
14814   version_type=linux
14815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14816   soname_spec='${libname}${release}${shared_ext}$major'
14817   shlibpath_var=LD_LIBRARY_PATH
14818   case $host_vendor in
14819     sni)
14820       shlibpath_overrides_runpath=no
14821       need_lib_prefix=no
14822       export_dynamic_flag_spec='${wl}-Blargedynsym'
14823       runpath_var=LD_RUN_PATH
14824       ;;
14825     siemens)
14826       need_lib_prefix=no
14827       ;;
14828     motorola)
14829       need_lib_prefix=no
14830       need_version=no
14831       shlibpath_overrides_runpath=no
14832       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14833       ;;
14834   esac
14835   ;;
14836
14837 sysv4*MP*)
14838   if test -d /usr/nec ;then
14839     version_type=linux
14840     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14841     soname_spec='$libname${shared_ext}.$major'
14842     shlibpath_var=LD_LIBRARY_PATH
14843   fi
14844   ;;
14845
14846 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14847   version_type=freebsd-elf
14848   need_lib_prefix=no
14849   need_version=no
14850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14851   soname_spec='${libname}${release}${shared_ext}$major'
14852   shlibpath_var=LD_LIBRARY_PATH
14853   hardcode_into_libs=yes
14854   if test "$with_gnu_ld" = yes; then
14855     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14856     shlibpath_overrides_runpath=no
14857   else
14858     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14859     shlibpath_overrides_runpath=yes
14860     case $host_os in
14861       sco3.2v5*)
14862         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14863         ;;
14864     esac
14865   fi
14866   sys_lib_dlsearch_path_spec='/usr/lib'
14867   ;;
14868
14869 uts4*)
14870   version_type=linux
14871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872   soname_spec='${libname}${release}${shared_ext}$major'
14873   shlibpath_var=LD_LIBRARY_PATH
14874   ;;
14875
14876 *)
14877   dynamic_linker=no
14878   ;;
14879 esac
14880 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14881 echo "${ECHO_T}$dynamic_linker" >&6
14882 test "$dynamic_linker" = no && can_build_shared=no
14883
14884 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14885 if test "$GCC" = yes; then
14886   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14887 fi
14888
14889 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14890 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14891 hardcode_action_F77=
14892 if test -n "$hardcode_libdir_flag_spec_F77" || \
14893    test -n "$runpath_var_F77" || \
14894    test "X$hardcode_automatic_F77" = "Xyes" ; then
14895
14896   # We can hardcode non-existant directories.
14897   if test "$hardcode_direct_F77" != no &&
14898      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14899      # have to relink, otherwise we might link with an installed library
14900      # when we should be linking with a yet-to-be-installed one
14901      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14902      test "$hardcode_minus_L_F77" != no; then
14903     # Linking always hardcodes the temporary library directory.
14904     hardcode_action_F77=relink
14905   else
14906     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14907     hardcode_action_F77=immediate
14908   fi
14909 else
14910   # We cannot hardcode anything, or else we can only hardcode existing
14911   # directories.
14912   hardcode_action_F77=unsupported
14913 fi
14914 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14915 echo "${ECHO_T}$hardcode_action_F77" >&6
14916
14917 if test "$hardcode_action_F77" = relink; then
14918   # Fast installation is not supported
14919   enable_fast_install=no
14920 elif test "$shlibpath_overrides_runpath" = yes ||
14921      test "$enable_shared" = no; then
14922   # Fast installation is not necessary
14923   enable_fast_install=needless
14924 fi
14925
14926
14927 # The else clause should only fire when bootstrapping the
14928 # libtool distribution, otherwise you forgot to ship ltmain.sh
14929 # with your package, and you will get complaints that there are
14930 # no rules to generate ltmain.sh.
14931 if test -f "$ltmain"; then
14932   # See if we are running on zsh, and set the options which allow our commands through
14933   # without removal of \ escapes.
14934   if test -n "${ZSH_VERSION+set}" ; then
14935     setopt NO_GLOB_SUBST
14936   fi
14937   # Now quote all the things that may contain metacharacters while being
14938   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14939   # variables and quote the copies for generation of the libtool script.
14940   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14941     SED SHELL STRIP \
14942     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14943     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14944     deplibs_check_method reload_flag reload_cmds need_locks \
14945     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14946     lt_cv_sys_global_symbol_to_c_name_address \
14947     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14948     old_postinstall_cmds old_postuninstall_cmds \
14949     compiler_F77 \
14950     CC_F77 \
14951     LD_F77 \
14952     lt_prog_compiler_wl_F77 \
14953     lt_prog_compiler_pic_F77 \
14954     lt_prog_compiler_static_F77 \
14955     lt_prog_compiler_no_builtin_flag_F77 \
14956     export_dynamic_flag_spec_F77 \
14957     thread_safe_flag_spec_F77 \
14958     whole_archive_flag_spec_F77 \
14959     enable_shared_with_static_runtimes_F77 \
14960     old_archive_cmds_F77 \
14961     old_archive_from_new_cmds_F77 \
14962     predep_objects_F77 \
14963     postdep_objects_F77 \
14964     predeps_F77 \
14965     postdeps_F77 \
14966     compiler_lib_search_path_F77 \
14967     archive_cmds_F77 \
14968     archive_expsym_cmds_F77 \
14969     postinstall_cmds_F77 \
14970     postuninstall_cmds_F77 \
14971     old_archive_from_expsyms_cmds_F77 \
14972     allow_undefined_flag_F77 \
14973     no_undefined_flag_F77 \
14974     export_symbols_cmds_F77 \
14975     hardcode_libdir_flag_spec_F77 \
14976     hardcode_libdir_flag_spec_ld_F77 \
14977     hardcode_libdir_separator_F77 \
14978     hardcode_automatic_F77 \
14979     module_cmds_F77 \
14980     module_expsym_cmds_F77 \
14981     lt_cv_prog_compiler_c_o_F77 \
14982     exclude_expsyms_F77 \
14983     include_expsyms_F77; do
14984
14985     case $var in
14986     old_archive_cmds_F77 | \
14987     old_archive_from_new_cmds_F77 | \
14988     archive_cmds_F77 | \
14989     archive_expsym_cmds_F77 | \
14990     module_cmds_F77 | \
14991     module_expsym_cmds_F77 | \
14992     old_archive_from_expsyms_cmds_F77 | \
14993     export_symbols_cmds_F77 | \
14994     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14995     postinstall_cmds | postuninstall_cmds | \
14996     old_postinstall_cmds | old_postuninstall_cmds | \
14997     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14998       # Double-quote double-evaled strings.
14999       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15000       ;;
15001     *)
15002       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15003       ;;
15004     esac
15005   done
15006
15007   case $lt_echo in
15008   *'\$0 --fallback-echo"')
15009     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15010     ;;
15011   esac
15012
15013 cfgfile="$ofile"
15014
15015   cat <<__EOF__ >> "$cfgfile"
15016 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15017
15018 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15019
15020 # Shell to use when invoking shell scripts.
15021 SHELL=$lt_SHELL
15022
15023 # Whether or not to build shared libraries.
15024 build_libtool_libs=$enable_shared
15025
15026 # Whether or not to build static libraries.
15027 build_old_libs=$enable_static
15028
15029 # Whether or not to add -lc for building shared libraries.
15030 build_libtool_need_lc=$archive_cmds_need_lc_F77
15031
15032 # Whether or not to disallow shared libs when runtime libs are static
15033 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15034
15035 # Whether or not to optimize for fast installation.
15036 fast_install=$enable_fast_install
15037
15038 # The host system.
15039 host_alias=$host_alias
15040 host=$host
15041 host_os=$host_os
15042
15043 # The build system.
15044 build_alias=$build_alias
15045 build=$build
15046 build_os=$build_os
15047
15048 # An echo program that does not interpret backslashes.
15049 echo=$lt_echo
15050
15051 # The archiver.
15052 AR=$lt_AR
15053 AR_FLAGS=$lt_AR_FLAGS
15054
15055 # A C compiler.
15056 LTCC=$lt_LTCC
15057
15058 # LTCC compiler flags.
15059 LTCFLAGS=$lt_LTCFLAGS
15060
15061 # A language-specific compiler.
15062 CC=$lt_compiler_F77
15063
15064 # Is the compiler the GNU C compiler?
15065 with_gcc=$GCC_F77
15066
15067 # An ERE matcher.
15068 EGREP=$lt_EGREP
15069
15070 # The linker used to build libraries.
15071 LD=$lt_LD_F77
15072
15073 # Whether we need hard or soft links.
15074 LN_S=$lt_LN_S
15075
15076 # A BSD-compatible nm program.
15077 NM=$lt_NM
15078
15079 # A symbol stripping program
15080 STRIP=$lt_STRIP
15081
15082 # Used to examine libraries when file_magic_cmd begins "file"
15083 MAGIC_CMD=$MAGIC_CMD
15084
15085 # Used on cygwin: DLL creation program.
15086 DLLTOOL="$DLLTOOL"
15087
15088 # Used on cygwin: object dumper.
15089 OBJDUMP="$OBJDUMP"
15090
15091 # Used on cygwin: assembler.
15092 AS="$AS"
15093
15094 # The name of the directory that contains temporary libtool files.
15095 objdir=$objdir
15096
15097 # How to create reloadable object files.
15098 reload_flag=$lt_reload_flag
15099 reload_cmds=$lt_reload_cmds
15100
15101 # How to pass a linker flag through the compiler.
15102 wl=$lt_lt_prog_compiler_wl_F77
15103
15104 # Object file suffix (normally "o").
15105 objext="$ac_objext"
15106
15107 # Old archive suffix (normally "a").
15108 libext="$libext"
15109
15110 # Shared library suffix (normally ".so").
15111 shrext_cmds='$shrext_cmds'
15112
15113 # Executable file suffix (normally "").
15114 exeext="$exeext"
15115
15116 # Additional compiler flags for building library objects.
15117 pic_flag=$lt_lt_prog_compiler_pic_F77
15118 pic_mode=$pic_mode
15119
15120 # What is the maximum length of a command?
15121 max_cmd_len=$lt_cv_sys_max_cmd_len
15122
15123 # Does compiler simultaneously support -c and -o options?
15124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15125
15126 # Must we lock files when doing compilation?
15127 need_locks=$lt_need_locks
15128
15129 # Do we need the lib prefix for modules?
15130 need_lib_prefix=$need_lib_prefix
15131
15132 # Do we need a version for libraries?
15133 need_version=$need_version
15134
15135 # Whether dlopen is supported.
15136 dlopen_support=$enable_dlopen
15137
15138 # Whether dlopen of programs is supported.
15139 dlopen_self=$enable_dlopen_self
15140
15141 # Whether dlopen of statically linked programs is supported.
15142 dlopen_self_static=$enable_dlopen_self_static
15143
15144 # Compiler flag to prevent dynamic linking.
15145 link_static_flag=$lt_lt_prog_compiler_static_F77
15146
15147 # Compiler flag to turn off builtin functions.
15148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15149
15150 # Compiler flag to allow reflexive dlopens.
15151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15152
15153 # Compiler flag to generate shared objects directly from archives.
15154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15155
15156 # Compiler flag to generate thread-safe objects.
15157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15158
15159 # Library versioning type.
15160 version_type=$version_type
15161
15162 # Format of library name prefix.
15163 libname_spec=$lt_libname_spec
15164
15165 # List of archive names.  First name is the real one, the rest are links.
15166 # The last name is the one that the linker finds with -lNAME.
15167 library_names_spec=$lt_library_names_spec
15168
15169 # The coded name of the library, if different from the real name.
15170 soname_spec=$lt_soname_spec
15171
15172 # Commands used to build and install an old-style archive.
15173 RANLIB=$lt_RANLIB
15174 old_archive_cmds=$lt_old_archive_cmds_F77
15175 old_postinstall_cmds=$lt_old_postinstall_cmds
15176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15177
15178 # Create an old-style archive from a shared archive.
15179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15180
15181 # Create a temporary old-style archive to link instead of a shared archive.
15182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15183
15184 # Commands used to build and install a shared archive.
15185 archive_cmds=$lt_archive_cmds_F77
15186 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15187 postinstall_cmds=$lt_postinstall_cmds
15188 postuninstall_cmds=$lt_postuninstall_cmds
15189
15190 # Commands used to build a loadable module (assumed same as above if empty)
15191 module_cmds=$lt_module_cmds_F77
15192 module_expsym_cmds=$lt_module_expsym_cmds_F77
15193
15194 # Commands to strip libraries.
15195 old_striplib=$lt_old_striplib
15196 striplib=$lt_striplib
15197
15198 # Dependencies to place before the objects being linked to create a
15199 # shared library.
15200 predep_objects=$lt_predep_objects_F77
15201
15202 # Dependencies to place after the objects being linked to create a
15203 # shared library.
15204 postdep_objects=$lt_postdep_objects_F77
15205
15206 # Dependencies to place before the objects being linked to create a
15207 # shared library.
15208 predeps=$lt_predeps_F77
15209
15210 # Dependencies to place after the objects being linked to create a
15211 # shared library.
15212 postdeps=$lt_postdeps_F77
15213
15214 # The library search path used internally by the compiler when linking
15215 # a shared library.
15216 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15217
15218 # Method to check whether dependent libraries are shared objects.
15219 deplibs_check_method=$lt_deplibs_check_method
15220
15221 # Command to use when deplibs_check_method == file_magic.
15222 file_magic_cmd=$lt_file_magic_cmd
15223
15224 # Flag that allows shared libraries with undefined symbols to be built.
15225 allow_undefined_flag=$lt_allow_undefined_flag_F77
15226
15227 # Flag that forces no undefined symbols.
15228 no_undefined_flag=$lt_no_undefined_flag_F77
15229
15230 # Commands used to finish a libtool library installation in a directory.
15231 finish_cmds=$lt_finish_cmds
15232
15233 # Same as above, but a single script fragment to be evaled but not shown.
15234 finish_eval=$lt_finish_eval
15235
15236 # Take the output of nm and produce a listing of raw symbols and C names.
15237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15238
15239 # Transform the output of nm in a proper C declaration
15240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15241
15242 # Transform the output of nm in a C name address pair
15243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15244
15245 # This is the shared library runtime path variable.
15246 runpath_var=$runpath_var
15247
15248 # This is the shared library path variable.
15249 shlibpath_var=$shlibpath_var
15250
15251 # Is shlibpath searched before the hard-coded library search path?
15252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15253
15254 # How to hardcode a shared library path into an executable.
15255 hardcode_action=$hardcode_action_F77
15256
15257 # Whether we should hardcode library paths into libraries.
15258 hardcode_into_libs=$hardcode_into_libs
15259
15260 # Flag to hardcode \$libdir into a binary during linking.
15261 # This must work even if \$libdir does not exist.
15262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15263
15264 # If ld is used when linking, flag to hardcode \$libdir into
15265 # a binary during linking. This must work even if \$libdir does
15266 # not exist.
15267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15268
15269 # Whether we need a single -rpath flag with a separated argument.
15270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15271
15272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15273 # resulting binary.
15274 hardcode_direct=$hardcode_direct_F77
15275
15276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15277 # resulting binary.
15278 hardcode_minus_L=$hardcode_minus_L_F77
15279
15280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15281 # the resulting binary.
15282 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15283
15284 # Set to yes if building a shared library automatically hardcodes DIR into the library
15285 # and all subsequent libraries and executables linked against it.
15286 hardcode_automatic=$hardcode_automatic_F77
15287
15288 # Variables whose values should be saved in libtool wrapper scripts and
15289 # restored at relink time.
15290 variables_saved_for_relink="$variables_saved_for_relink"
15291
15292 # Whether libtool must link a program against all its dependency libraries.
15293 link_all_deplibs=$link_all_deplibs_F77
15294
15295 # Compile-time system search path for libraries
15296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15297
15298 # Run-time system search path for libraries
15299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15300
15301 # Fix the shell variable \$srcfile for the compiler.
15302 fix_srcfile_path="$fix_srcfile_path_F77"
15303
15304 # Set to yes if exported symbols are required.
15305 always_export_symbols=$always_export_symbols_F77
15306
15307 # The commands to list exported symbols.
15308 export_symbols_cmds=$lt_export_symbols_cmds_F77
15309
15310 # The commands to extract the exported symbol list from a shared archive.
15311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15312
15313 # Symbols that should not be listed in the preloaded symbols.
15314 exclude_expsyms=$lt_exclude_expsyms_F77
15315
15316 # Symbols that must always be exported.
15317 include_expsyms=$lt_include_expsyms_F77
15318
15319 # ### END LIBTOOL TAG CONFIG: $tagname
15320
15321 __EOF__
15322
15323
15324 else
15325   # If there is no Makefile yet, we rely on a make rule to execute
15326   # `config.status --recheck' to rerun these tests and create the
15327   # libtool script then.
15328   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15329   if test -f "$ltmain_in"; then
15330     test -f Makefile && make "$ltmain"
15331   fi
15332 fi
15333
15334
15335 ac_ext=c
15336 ac_cpp='$CPP $CPPFLAGS'
15337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15340
15341 CC="$lt_save_CC"
15342
15343         else
15344           tagname=""
15345         fi
15346         ;;
15347
15348       GCJ)
15349         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15350
15351
15352
15353 # Source file extension for Java test sources.
15354 ac_ext=java
15355
15356 # Object file extension for compiled Java test sources.
15357 objext=o
15358 objext_GCJ=$objext
15359
15360 # Code to be used in simple compile tests
15361 lt_simple_compile_test_code="class foo {}\n"
15362
15363 # Code to be used in simple link tests
15364 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15365
15366 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15367
15368 # If no C compiler was specified, use CC.
15369 LTCC=${LTCC-"$CC"}
15370
15371 # If no C compiler flags were specified, use CFLAGS.
15372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15373
15374 # Allow CC to be a program name with arguments.
15375 compiler=$CC
15376
15377
15378 # save warnings/boilerplate of simple test code
15379 ac_outfile=conftest.$ac_objext
15380 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15381 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15382 _lt_compiler_boilerplate=`cat conftest.err`
15383 $rm conftest*
15384
15385 ac_outfile=conftest.$ac_objext
15386 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15387 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15388 _lt_linker_boilerplate=`cat conftest.err`
15389 $rm conftest*
15390
15391
15392 # Allow CC to be a program name with arguments.
15393 lt_save_CC="$CC"
15394 CC=${GCJ-"gcj"}
15395 compiler=$CC
15396 compiler_GCJ=$CC
15397 for cc_temp in $compiler""; do
15398   case $cc_temp in
15399     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15400     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15401     \-*) ;;
15402     *) break;;
15403   esac
15404 done
15405 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15406
15407
15408 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15409 archive_cmds_need_lc_GCJ=no
15410
15411 old_archive_cmds_GCJ=$old_archive_cmds
15412
15413 ## CAVEAT EMPTOR:
15414 ## There is no encapsulation within the following macros, do not change
15415 ## the running order or otherwise move them around unless you know exactly
15416 ## what you are doing...
15417
15418 lt_prog_compiler_no_builtin_flag_GCJ=
15419
15420 if test "$GCC" = yes; then
15421   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15422
15423
15424 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15425 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15426 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15427   echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429   lt_cv_prog_compiler_rtti_exceptions=no
15430   ac_outfile=conftest.$ac_objext
15431    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15432    lt_compiler_flag="-fno-rtti -fno-exceptions"
15433    # Insert the option either (1) after the last *FLAGS variable, or
15434    # (2) before a word containing "conftest.", or (3) at the end.
15435    # Note that $ac_compile itself does not contain backslashes and begins
15436    # with a dollar sign (not a hyphen), so the echo should work correctly.
15437    # The option is referenced via a variable to avoid confusing sed.
15438    lt_compile=`echo "$ac_compile" | $SED \
15439    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15440    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15441    -e 's:$: $lt_compiler_flag:'`
15442    (eval echo "\"\$as_me:15442: $lt_compile\"" >&5)
15443    (eval "$lt_compile" 2>conftest.err)
15444    ac_status=$?
15445    cat conftest.err >&5
15446    echo "$as_me:15446: \$? = $ac_status" >&5
15447    if (exit $ac_status) && test -s "$ac_outfile"; then
15448      # The compiler can only warn and ignore the option if not recognized
15449      # So say no if there are warnings other than the usual output.
15450      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15451      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15452      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15453        lt_cv_prog_compiler_rtti_exceptions=yes
15454      fi
15455    fi
15456    $rm conftest*
15457
15458 fi
15459 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15460 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15461
15462 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15463     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15464 else
15465     :
15466 fi
15467
15468 fi
15469
15470 lt_prog_compiler_wl_GCJ=
15471 lt_prog_compiler_pic_GCJ=
15472 lt_prog_compiler_static_GCJ=
15473
15474 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15476
15477   if test "$GCC" = yes; then
15478     lt_prog_compiler_wl_GCJ='-Wl,'
15479     lt_prog_compiler_static_GCJ='-static'
15480
15481     case $host_os in
15482       aix*)
15483       # All AIX code is PIC.
15484       if test "$host_cpu" = ia64; then
15485         # AIX 5 now supports IA64 processor
15486         lt_prog_compiler_static_GCJ='-Bstatic'
15487       fi
15488       ;;
15489
15490     amigaos*)
15491       # FIXME: we need at least 68020 code to build shared libraries, but
15492       # adding the `-m68020' flag to GCC prevents building anything better,
15493       # like `-m68040'.
15494       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15495       ;;
15496
15497     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15498       # PIC is the default for these OSes.
15499       ;;
15500
15501     mingw* | pw32* | os2*)
15502       # This hack is so that the source file can tell whether it is being
15503       # built for inclusion in a dll (and should export symbols for example).
15504       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15505       ;;
15506
15507     darwin* | rhapsody*)
15508       # PIC is the default on this platform
15509       # Common symbols not allowed in MH_DYLIB files
15510       lt_prog_compiler_pic_GCJ='-fno-common'
15511       ;;
15512
15513     interix3*)
15514       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15515       # Instead, we relocate shared libraries at runtime.
15516       ;;
15517
15518     msdosdjgpp*)
15519       # Just because we use GCC doesn't mean we suddenly get shared libraries
15520       # on systems that don't support them.
15521       lt_prog_compiler_can_build_shared_GCJ=no
15522       enable_shared=no
15523       ;;
15524
15525     sysv4*MP*)
15526       if test -d /usr/nec; then
15527         lt_prog_compiler_pic_GCJ=-Kconform_pic
15528       fi
15529       ;;
15530
15531     hpux*)
15532       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15533       # not for PA HP-UX.
15534       case $host_cpu in
15535       hppa*64*|ia64*)
15536         # +Z the default
15537         ;;
15538       *)
15539         lt_prog_compiler_pic_GCJ='-fPIC'
15540         ;;
15541       esac
15542       ;;
15543
15544     *)
15545       lt_prog_compiler_pic_GCJ='-fPIC'
15546       ;;
15547     esac
15548   else
15549     # PORTME Check for flag to pass linker flags through the system compiler.
15550     case $host_os in
15551     aix*)
15552       lt_prog_compiler_wl_GCJ='-Wl,'
15553       if test "$host_cpu" = ia64; then
15554         # AIX 5 now supports IA64 processor
15555         lt_prog_compiler_static_GCJ='-Bstatic'
15556       else
15557         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15558       fi
15559       ;;
15560       darwin*)
15561         # PIC is the default on this platform
15562         # Common symbols not allowed in MH_DYLIB files
15563        case $cc_basename in
15564          xlc*)
15565          lt_prog_compiler_pic_GCJ='-qnocommon'
15566          lt_prog_compiler_wl_GCJ='-Wl,'
15567          ;;
15568        esac
15569        ;;
15570
15571     mingw* | pw32* | os2*)
15572       # This hack is so that the source file can tell whether it is being
15573       # built for inclusion in a dll (and should export symbols for example).
15574       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15575       ;;
15576
15577     hpux9* | hpux10* | hpux11*)
15578       lt_prog_compiler_wl_GCJ='-Wl,'
15579       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15580       # not for PA HP-UX.
15581       case $host_cpu in
15582       hppa*64*|ia64*)
15583         # +Z the default
15584         ;;
15585       *)
15586         lt_prog_compiler_pic_GCJ='+Z'
15587         ;;
15588       esac
15589       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15590       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15591       ;;
15592
15593     irix5* | irix6* | nonstopux*)
15594       lt_prog_compiler_wl_GCJ='-Wl,'
15595       # PIC (with -KPIC) is the default.
15596       lt_prog_compiler_static_GCJ='-non_shared'
15597       ;;
15598
15599     newsos6)
15600       lt_prog_compiler_pic_GCJ='-KPIC'
15601       lt_prog_compiler_static_GCJ='-Bstatic'
15602       ;;
15603
15604     linux*)
15605       case $cc_basename in
15606       icc* | ecc*)
15607         lt_prog_compiler_wl_GCJ='-Wl,'
15608         lt_prog_compiler_pic_GCJ='-KPIC'
15609         lt_prog_compiler_static_GCJ='-static'
15610         ;;
15611       pgcc* | pgf77* | pgf90* | pgf95*)
15612         # Portland Group compilers (*not* the Pentium gcc compiler,
15613         # which looks to be a dead project)
15614         lt_prog_compiler_wl_GCJ='-Wl,'
15615         lt_prog_compiler_pic_GCJ='-fpic'
15616         lt_prog_compiler_static_GCJ='-Bstatic'
15617         ;;
15618       ccc*)
15619         lt_prog_compiler_wl_GCJ='-Wl,'
15620         # All Alpha code is PIC.
15621         lt_prog_compiler_static_GCJ='-non_shared'
15622         ;;
15623       esac
15624       ;;
15625
15626     osf3* | osf4* | osf5*)
15627       lt_prog_compiler_wl_GCJ='-Wl,'
15628       # All OSF/1 code is PIC.
15629       lt_prog_compiler_static_GCJ='-non_shared'
15630       ;;
15631
15632     solaris*)
15633       lt_prog_compiler_pic_GCJ='-KPIC'
15634       lt_prog_compiler_static_GCJ='-Bstatic'
15635       case $cc_basename in
15636       f77* | f90* | f95*)
15637         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15638       *)
15639         lt_prog_compiler_wl_GCJ='-Wl,';;
15640       esac
15641       ;;
15642
15643     sunos4*)
15644       lt_prog_compiler_wl_GCJ='-Qoption ld '
15645       lt_prog_compiler_pic_GCJ='-PIC'
15646       lt_prog_compiler_static_GCJ='-Bstatic'
15647       ;;
15648
15649     sysv4 | sysv4.2uw2* | sysv4.3*)
15650       lt_prog_compiler_wl_GCJ='-Wl,'
15651       lt_prog_compiler_pic_GCJ='-KPIC'
15652       lt_prog_compiler_static_GCJ='-Bstatic'
15653       ;;
15654
15655     sysv4*MP*)
15656       if test -d /usr/nec ;then
15657         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15658         lt_prog_compiler_static_GCJ='-Bstatic'
15659       fi
15660       ;;
15661
15662     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15663       lt_prog_compiler_wl_GCJ='-Wl,'
15664       lt_prog_compiler_pic_GCJ='-KPIC'
15665       lt_prog_compiler_static_GCJ='-Bstatic'
15666       ;;
15667
15668     unicos*)
15669       lt_prog_compiler_wl_GCJ='-Wl,'
15670       lt_prog_compiler_can_build_shared_GCJ=no
15671       ;;
15672
15673     uts4*)
15674       lt_prog_compiler_pic_GCJ='-pic'
15675       lt_prog_compiler_static_GCJ='-Bstatic'
15676       ;;
15677
15678     *)
15679       lt_prog_compiler_can_build_shared_GCJ=no
15680       ;;
15681     esac
15682   fi
15683
15684 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15685 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15686
15687 #
15688 # Check to make sure the PIC flag actually works.
15689 #
15690 if test -n "$lt_prog_compiler_pic_GCJ"; then
15691
15692 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15693 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15694 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15695   echo $ECHO_N "(cached) $ECHO_C" >&6
15696 else
15697   lt_prog_compiler_pic_works_GCJ=no
15698   ac_outfile=conftest.$ac_objext
15699    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15700    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15701    # Insert the option either (1) after the last *FLAGS variable, or
15702    # (2) before a word containing "conftest.", or (3) at the end.
15703    # Note that $ac_compile itself does not contain backslashes and begins
15704    # with a dollar sign (not a hyphen), so the echo should work correctly.
15705    # The option is referenced via a variable to avoid confusing sed.
15706    lt_compile=`echo "$ac_compile" | $SED \
15707    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15709    -e 's:$: $lt_compiler_flag:'`
15710    (eval echo "\"\$as_me:15710: $lt_compile\"" >&5)
15711    (eval "$lt_compile" 2>conftest.err)
15712    ac_status=$?
15713    cat conftest.err >&5
15714    echo "$as_me:15714: \$? = $ac_status" >&5
15715    if (exit $ac_status) && test -s "$ac_outfile"; then
15716      # The compiler can only warn and ignore the option if not recognized
15717      # So say no if there are warnings other than the usual output.
15718      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15719      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15720      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15721        lt_prog_compiler_pic_works_GCJ=yes
15722      fi
15723    fi
15724    $rm conftest*
15725
15726 fi
15727 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15728 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15729
15730 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15731     case $lt_prog_compiler_pic_GCJ in
15732      "" | " "*) ;;
15733      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15734      esac
15735 else
15736     lt_prog_compiler_pic_GCJ=
15737      lt_prog_compiler_can_build_shared_GCJ=no
15738 fi
15739
15740 fi
15741 case $host_os in
15742   # For platforms which do not support PIC, -DPIC is meaningless:
15743   *djgpp*)
15744     lt_prog_compiler_pic_GCJ=
15745     ;;
15746   *)
15747     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15748     ;;
15749 esac
15750
15751 #
15752 # Check to make sure the static flag actually works.
15753 #
15754 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15755 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15756 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15757 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15758   echo $ECHO_N "(cached) $ECHO_C" >&6
15759 else
15760   lt_prog_compiler_static_works_GCJ=no
15761    save_LDFLAGS="$LDFLAGS"
15762    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15763    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15764    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15765      # The linker can only warn and ignore the option if not recognized
15766      # So say no if there are warnings
15767      if test -s conftest.err; then
15768        # Append any errors to the config.log.
15769        cat conftest.err 1>&5
15770        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15771        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15772        if diff conftest.exp conftest.er2 >/dev/null; then
15773          lt_prog_compiler_static_works_GCJ=yes
15774        fi
15775      else
15776        lt_prog_compiler_static_works_GCJ=yes
15777      fi
15778    fi
15779    $rm conftest*
15780    LDFLAGS="$save_LDFLAGS"
15781
15782 fi
15783 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15784 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15785
15786 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15787     :
15788 else
15789     lt_prog_compiler_static_GCJ=
15790 fi
15791
15792
15793 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15794 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15795 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15796   echo $ECHO_N "(cached) $ECHO_C" >&6
15797 else
15798   lt_cv_prog_compiler_c_o_GCJ=no
15799    $rm -r conftest 2>/dev/null
15800    mkdir conftest
15801    cd conftest
15802    mkdir out
15803    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15804
15805    lt_compiler_flag="-o out/conftest2.$ac_objext"
15806    # Insert the option either (1) after the last *FLAGS variable, or
15807    # (2) before a word containing "conftest.", or (3) at the end.
15808    # Note that $ac_compile itself does not contain backslashes and begins
15809    # with a dollar sign (not a hyphen), so the echo should work correctly.
15810    lt_compile=`echo "$ac_compile" | $SED \
15811    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15812    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15813    -e 's:$: $lt_compiler_flag:'`
15814    (eval echo "\"\$as_me:15814: $lt_compile\"" >&5)
15815    (eval "$lt_compile" 2>out/conftest.err)
15816    ac_status=$?
15817    cat out/conftest.err >&5
15818    echo "$as_me:15818: \$? = $ac_status" >&5
15819    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15820    then
15821      # The compiler can only warn and ignore the option if not recognized
15822      # So say no if there are warnings
15823      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15824      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15825      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15826        lt_cv_prog_compiler_c_o_GCJ=yes
15827      fi
15828    fi
15829    chmod u+w . 2>&5
15830    $rm conftest*
15831    # SGI C++ compiler will create directory out/ii_files/ for
15832    # template instantiation
15833    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15834    $rm out/* && rmdir out
15835    cd ..
15836    rmdir conftest
15837    $rm conftest*
15838
15839 fi
15840 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15841 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15842
15843
15844 hard_links="nottested"
15845 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15846   # do not overwrite the value of need_locks provided by the user
15847   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15848 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15849   hard_links=yes
15850   $rm conftest*
15851   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15852   touch conftest.a
15853   ln conftest.a conftest.b 2>&5 || hard_links=no
15854   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15855   echo "$as_me:$LINENO: result: $hard_links" >&5
15856 echo "${ECHO_T}$hard_links" >&6
15857   if test "$hard_links" = no; then
15858     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15859 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15860     need_locks=warn
15861   fi
15862 else
15863   need_locks=no
15864 fi
15865
15866 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15867 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15868
15869   runpath_var=
15870   allow_undefined_flag_GCJ=
15871   enable_shared_with_static_runtimes_GCJ=no
15872   archive_cmds_GCJ=
15873   archive_expsym_cmds_GCJ=
15874   old_archive_From_new_cmds_GCJ=
15875   old_archive_from_expsyms_cmds_GCJ=
15876   export_dynamic_flag_spec_GCJ=
15877   whole_archive_flag_spec_GCJ=
15878   thread_safe_flag_spec_GCJ=
15879   hardcode_libdir_flag_spec_GCJ=
15880   hardcode_libdir_flag_spec_ld_GCJ=
15881   hardcode_libdir_separator_GCJ=
15882   hardcode_direct_GCJ=no
15883   hardcode_minus_L_GCJ=no
15884   hardcode_shlibpath_var_GCJ=unsupported
15885   link_all_deplibs_GCJ=unknown
15886   hardcode_automatic_GCJ=no
15887   module_cmds_GCJ=
15888   module_expsym_cmds_GCJ=
15889   always_export_symbols_GCJ=no
15890   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15891   # include_expsyms should be a list of space-separated symbols to be *always*
15892   # included in the symbol list
15893   include_expsyms_GCJ=
15894   # exclude_expsyms can be an extended regexp of symbols to exclude
15895   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15896   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15897   # as well as any symbol that contains `d'.
15898   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15899   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15900   # platforms (ab)use it in PIC code, but their linkers get confused if
15901   # the symbol is explicitly referenced.  Since portable code cannot
15902   # rely on this symbol name, it's probably fine to never include it in
15903   # preloaded symbol tables.
15904   extract_expsyms_cmds=
15905   # Just being paranoid about ensuring that cc_basename is set.
15906   for cc_temp in $compiler""; do
15907   case $cc_temp in
15908     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15909     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15910     \-*) ;;
15911     *) break;;
15912   esac
15913 done
15914 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15915
15916   case $host_os in
15917   cygwin* | mingw* | pw32*)
15918     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15919     # When not using gcc, we currently assume that we are using
15920     # Microsoft Visual C++.
15921     if test "$GCC" != yes; then
15922       with_gnu_ld=no
15923     fi
15924     ;;
15925   interix*)
15926     # we just hope/assume this is gcc and not c89 (= MSVC++)
15927     with_gnu_ld=yes
15928     ;;
15929   openbsd*)
15930     with_gnu_ld=no
15931     ;;
15932   esac
15933
15934   ld_shlibs_GCJ=yes
15935   if test "$with_gnu_ld" = yes; then
15936     # If archive_cmds runs LD, not CC, wlarc should be empty
15937     wlarc='${wl}'
15938
15939     # Set some defaults for GNU ld with shared library support. These
15940     # are reset later if shared libraries are not supported. Putting them
15941     # here allows them to be overridden if necessary.
15942     runpath_var=LD_RUN_PATH
15943     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15944     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15945     # ancient GNU ld didn't support --whole-archive et. al.
15946     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15947         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15948       else
15949         whole_archive_flag_spec_GCJ=
15950     fi
15951     supports_anon_versioning=no
15952     case `$LD -v 2>/dev/null` in
15953       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15954       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15955       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15956       *\ 2.11.*) ;; # other 2.11 versions
15957       *) supports_anon_versioning=yes ;;
15958     esac
15959
15960     # See if GNU ld supports shared libraries.
15961     case $host_os in
15962     aix3* | aix4* | aix5*)
15963       # On AIX/PPC, the GNU linker is very broken
15964       if test "$host_cpu" != ia64; then
15965         ld_shlibs_GCJ=no
15966         cat <<EOF 1>&2
15967
15968 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15969 *** to be unable to reliably create shared libraries on AIX.
15970 *** Therefore, libtool is disabling shared libraries support.  If you
15971 *** really care for shared libraries, you may want to modify your PATH
15972 *** so that a non-GNU linker is found, and then restart.
15973
15974 EOF
15975       fi
15976       ;;
15977
15978     amigaos*)
15979       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)'
15980       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15981       hardcode_minus_L_GCJ=yes
15982
15983       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15984       # that the semantics of dynamic libraries on AmigaOS, at least up
15985       # to version 4, is to share data among multiple programs linked
15986       # with the same dynamic library.  Since this doesn't match the
15987       # behavior of shared libraries on other platforms, we can't use
15988       # them.
15989       ld_shlibs_GCJ=no
15990       ;;
15991
15992     beos*)
15993       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15994         allow_undefined_flag_GCJ=unsupported
15995         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15996         # support --undefined.  This deserves some investigation.  FIXME
15997         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15998       else
15999         ld_shlibs_GCJ=no
16000       fi
16001       ;;
16002
16003     cygwin* | mingw* | pw32*)
16004       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16005       # as there is no search path for DLLs.
16006       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16007       allow_undefined_flag_GCJ=unsupported
16008       always_export_symbols_GCJ=no
16009       enable_shared_with_static_runtimes_GCJ=yes
16010       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16011
16012       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16013         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16014         # If the export-symbols file already is a .def file (1st line
16015         # is EXPORTS), use it as is; otherwise, prepend...
16016         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16017           cp $export_symbols $output_objdir/$soname.def;
16018         else
16019           echo EXPORTS > $output_objdir/$soname.def;
16020           cat $export_symbols >> $output_objdir/$soname.def;
16021         fi~
16022         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16023       else
16024         ld_shlibs_GCJ=no
16025       fi
16026       ;;
16027
16028     interix3*)
16029       hardcode_direct_GCJ=no
16030       hardcode_shlibpath_var_GCJ=no
16031       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16032       export_dynamic_flag_spec_GCJ='${wl}-E'
16033       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16034       # Instead, shared libraries are loaded at an image base (0x10000000 by
16035       # default) and relocated if they conflict, which is a slow very memory
16036       # consuming and fragmenting process.  To avoid this, we pick a random,
16037       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16038       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16039       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16040       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16041       ;;
16042
16043     linux*)
16044       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16045         tmp_addflag=
16046         case $cc_basename,$host_cpu in
16047         pgcc*)                          # Portland Group C compiler
16048           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16049           tmp_addflag=' $pic_flag'
16050           ;;
16051         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16052           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16053           tmp_addflag=' $pic_flag -Mnomain' ;;
16054         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16055           tmp_addflag=' -i_dynamic' ;;
16056         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16057           tmp_addflag=' -i_dynamic -nofor_main' ;;
16058         ifc* | ifort*)                  # Intel Fortran compiler
16059           tmp_addflag=' -nofor_main' ;;
16060         esac
16061         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16062
16063         if test $supports_anon_versioning = yes; then
16064           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16065   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16066   $echo "local: *; };" >> $output_objdir/$libname.ver~
16067           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16068         fi
16069       else
16070         ld_shlibs_GCJ=no
16071       fi
16072       ;;
16073
16074     netbsd*)
16075       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16076         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16077         wlarc=
16078       else
16079         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16080         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16081       fi
16082       ;;
16083
16084     solaris*)
16085       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16086         ld_shlibs_GCJ=no
16087         cat <<EOF 1>&2
16088
16089 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16090 *** create shared libraries on Solaris systems.  Therefore, libtool
16091 *** is disabling shared libraries support.  We urge you to upgrade GNU
16092 *** binutils to release 2.9.1 or newer.  Another option is to modify
16093 *** your PATH or compiler configuration so that the native linker is
16094 *** used, and then restart.
16095
16096 EOF
16097       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16098         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16099         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16100       else
16101         ld_shlibs_GCJ=no
16102       fi
16103       ;;
16104
16105     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16106       case `$LD -v 2>&1` in
16107         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16108         ld_shlibs_GCJ=no
16109         cat <<_LT_EOF 1>&2
16110
16111 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16112 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16113 *** is disabling shared libraries support.  We urge you to upgrade GNU
16114 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16115 *** your PATH or compiler configuration so that the native linker is
16116 *** used, and then restart.
16117
16118 _LT_EOF
16119         ;;
16120         *)
16121           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16122             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16123             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16124             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16125           else
16126             ld_shlibs_GCJ=no
16127           fi
16128         ;;
16129       esac
16130       ;;
16131
16132     sunos4*)
16133       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16134       wlarc=
16135       hardcode_direct_GCJ=yes
16136       hardcode_shlibpath_var_GCJ=no
16137       ;;
16138
16139     *)
16140       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16141         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16142         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16143       else
16144         ld_shlibs_GCJ=no
16145       fi
16146       ;;
16147     esac
16148
16149     if test "$ld_shlibs_GCJ" = no; then
16150       runpath_var=
16151       hardcode_libdir_flag_spec_GCJ=
16152       export_dynamic_flag_spec_GCJ=
16153       whole_archive_flag_spec_GCJ=
16154     fi
16155   else
16156     # PORTME fill in a description of your system's linker (not GNU ld)
16157     case $host_os in
16158     aix3*)
16159       allow_undefined_flag_GCJ=unsupported
16160       always_export_symbols_GCJ=yes
16161       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'
16162       # Note: this linker hardcodes the directories in LIBPATH if there
16163       # are no directories specified by -L.
16164       hardcode_minus_L_GCJ=yes
16165       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16166         # Neither direct hardcoding nor static linking is supported with a
16167         # broken collect2.
16168         hardcode_direct_GCJ=unsupported
16169       fi
16170       ;;
16171
16172     aix4* | aix5*)
16173       if test "$host_cpu" = ia64; then
16174         # On IA64, the linker does run time linking by default, so we don't
16175         # have to do anything special.
16176         aix_use_runtimelinking=no
16177         exp_sym_flag='-Bexport'
16178         no_entry_flag=""
16179       else
16180         # If we're using GNU nm, then we don't want the "-C" option.
16181         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16182         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16183           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'
16184         else
16185           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'
16186         fi
16187         aix_use_runtimelinking=no
16188
16189         # Test if we are trying to use run time linking or normal
16190         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16191         # need to do runtime linking.
16192         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16193           for ld_flag in $LDFLAGS; do
16194           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16195             aix_use_runtimelinking=yes
16196             break
16197           fi
16198           done
16199           ;;
16200         esac
16201
16202         exp_sym_flag='-bexport'
16203         no_entry_flag='-bnoentry'
16204       fi
16205
16206       # When large executables or shared objects are built, AIX ld can
16207       # have problems creating the table of contents.  If linking a library
16208       # or program results in "error TOC overflow" add -mminimal-toc to
16209       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16210       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16211
16212       archive_cmds_GCJ=''
16213       hardcode_direct_GCJ=yes
16214       hardcode_libdir_separator_GCJ=':'
16215       link_all_deplibs_GCJ=yes
16216
16217       if test "$GCC" = yes; then
16218         case $host_os in aix4.[012]|aix4.[012].*)
16219         # We only want to do this on AIX 4.2 and lower, the check
16220         # below for broken collect2 doesn't work under 4.3+
16221           collect2name=`${CC} -print-prog-name=collect2`
16222           if test -f "$collect2name" && \
16223            strings "$collect2name" | grep resolve_lib_name >/dev/null
16224           then
16225           # We have reworked collect2
16226           hardcode_direct_GCJ=yes
16227           else
16228           # We have old collect2
16229           hardcode_direct_GCJ=unsupported
16230           # It fails to find uninstalled libraries when the uninstalled
16231           # path is not listed in the libpath.  Setting hardcode_minus_L
16232           # to unsupported forces relinking
16233           hardcode_minus_L_GCJ=yes
16234           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16235           hardcode_libdir_separator_GCJ=
16236           fi
16237           ;;
16238         esac
16239         shared_flag='-shared'
16240         if test "$aix_use_runtimelinking" = yes; then
16241           shared_flag="$shared_flag "'${wl}-G'
16242         fi
16243       else
16244         # not using gcc
16245         if test "$host_cpu" = ia64; then
16246         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16247         # chokes on -Wl,-G. The following line is correct:
16248           shared_flag='-G'
16249         else
16250           if test "$aix_use_runtimelinking" = yes; then
16251             shared_flag='${wl}-G'
16252           else
16253             shared_flag='${wl}-bM:SRE'
16254           fi
16255         fi
16256       fi
16257
16258       # It seems that -bexpall does not export symbols beginning with
16259       # underscore (_), so it is better to generate a list of symbols to export.
16260       always_export_symbols_GCJ=yes
16261       if test "$aix_use_runtimelinking" = yes; then
16262         # Warning - without using the other runtime loading flags (-brtl),
16263         # -berok will link without error, but may produce a broken library.
16264         allow_undefined_flag_GCJ='-berok'
16265        # Determine the default libpath from the value encoded in an empty executable.
16266        cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h.  */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h.  */
16272
16273 int
16274 main ()
16275 {
16276
16277   ;
16278   return 0;
16279 }
16280 _ACEOF
16281 rm -f conftest.$ac_objext conftest$ac_exeext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283   (eval $ac_link) 2>conftest.er1
16284   ac_status=$?
16285   grep -v '^ *+' conftest.er1 >conftest.err
16286   rm -f conftest.er1
16287   cat conftest.err >&5
16288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   (exit $ac_status); } &&
16290          { ac_try='test -z "$ac_c_werror_flag"
16291                          || test ! -s conftest.err'
16292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293   (eval $ac_try) 2>&5
16294   ac_status=$?
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); }; } &&
16297          { ac_try='test -s conftest$ac_exeext'
16298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299   (eval $ac_try) 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); }; }; then
16303
16304 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16305 }'`
16306 # Check for a 64-bit object if we didn't find anything.
16307 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; }
16308 }'`; fi
16309 else
16310   echo "$as_me: failed program was:" >&5
16311 sed 's/^/| /' conftest.$ac_ext >&5
16312
16313 fi
16314 rm -f conftest.err conftest.$ac_objext \
16315       conftest$ac_exeext conftest.$ac_ext
16316 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16317
16318        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16319         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16320        else
16321         if test "$host_cpu" = ia64; then
16322           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16323           allow_undefined_flag_GCJ="-z nodefs"
16324           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16325         else
16326          # Determine the default libpath from the value encoded in an empty executable.
16327          cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h.  */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h.  */
16333
16334 int
16335 main ()
16336 {
16337
16338   ;
16339   return 0;
16340 }
16341 _ACEOF
16342 rm -f conftest.$ac_objext conftest$ac_exeext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344   (eval $ac_link) 2>conftest.er1
16345   ac_status=$?
16346   grep -v '^ *+' conftest.er1 >conftest.err
16347   rm -f conftest.er1
16348   cat conftest.err >&5
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); } &&
16351          { ac_try='test -z "$ac_c_werror_flag"
16352                          || test ! -s conftest.err'
16353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354   (eval $ac_try) 2>&5
16355   ac_status=$?
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); }; } &&
16358          { ac_try='test -s conftest$ac_exeext'
16359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360   (eval $ac_try) 2>&5
16361   ac_status=$?
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); }; }; then
16364
16365 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16366 }'`
16367 # Check for a 64-bit object if we didn't find anything.
16368 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; }
16369 }'`; fi
16370 else
16371   echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374 fi
16375 rm -f conftest.err conftest.$ac_objext \
16376       conftest$ac_exeext conftest.$ac_ext
16377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16378
16379          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16380           # Warning - without using the other run time loading flags,
16381           # -berok will link without error, but may produce a broken library.
16382           no_undefined_flag_GCJ=' ${wl}-bernotok'
16383           allow_undefined_flag_GCJ=' ${wl}-berok'
16384           # Exported symbols can be pulled into shared objects from archives
16385           whole_archive_flag_spec_GCJ='$convenience'
16386           archive_cmds_need_lc_GCJ=yes
16387           # This is similar to how AIX traditionally builds its shared libraries.
16388           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16389         fi
16390       fi
16391       ;;
16392
16393     amigaos*)
16394       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)'
16395       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16396       hardcode_minus_L_GCJ=yes
16397       # see comment about different semantics on the GNU ld section
16398       ld_shlibs_GCJ=no
16399       ;;
16400
16401     bsdi[45]*)
16402       export_dynamic_flag_spec_GCJ=-rdynamic
16403       ;;
16404
16405     cygwin* | mingw* | pw32*)
16406       # When not using gcc, we currently assume that we are using
16407       # Microsoft Visual C++.
16408       # hardcode_libdir_flag_spec is actually meaningless, as there is
16409       # no search path for DLLs.
16410       hardcode_libdir_flag_spec_GCJ=' '
16411       allow_undefined_flag_GCJ=unsupported
16412       # Tell ltmain to make .lib files, not .a files.
16413       libext=lib
16414       # Tell ltmain to make .dll files, not .so files.
16415       shrext_cmds=".dll"
16416       # FIXME: Setting linknames here is a bad hack.
16417       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16418       # The linker will automatically build a .lib file if we build a DLL.
16419       old_archive_From_new_cmds_GCJ='true'
16420       # FIXME: Should let the user specify the lib program.
16421       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16422       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16423       enable_shared_with_static_runtimes_GCJ=yes
16424       ;;
16425
16426     darwin* | rhapsody*)
16427       case $host_os in
16428         rhapsody* | darwin1.[012])
16429          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16430          ;;
16431        *) # Darwin 1.3 on
16432          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16433            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16434          else
16435            case ${MACOSX_DEPLOYMENT_TARGET} in
16436              10.[012])
16437                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16438                ;;
16439              10.*)
16440                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16441                ;;
16442            esac
16443          fi
16444          ;;
16445       esac
16446       archive_cmds_need_lc_GCJ=no
16447       hardcode_direct_GCJ=no
16448       hardcode_automatic_GCJ=yes
16449       hardcode_shlibpath_var_GCJ=unsupported
16450       whole_archive_flag_spec_GCJ=''
16451       link_all_deplibs_GCJ=yes
16452     if test "$GCC" = yes ; then
16453         output_verbose_link_cmd='echo'
16454         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16455       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16456       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16457       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16458       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}'
16459     else
16460       case $cc_basename in
16461         xlc*)
16462          output_verbose_link_cmd='echo'
16463          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16464          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16465           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16466          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16467           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}'
16468           ;;
16469        *)
16470          ld_shlibs_GCJ=no
16471           ;;
16472       esac
16473     fi
16474       ;;
16475
16476     dgux*)
16477       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16478       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16479       hardcode_shlibpath_var_GCJ=no
16480       ;;
16481
16482     freebsd1*)
16483       ld_shlibs_GCJ=no
16484       ;;
16485
16486     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16487     # support.  Future versions do this automatically, but an explicit c++rt0.o
16488     # does not break anything, and helps significantly (at the cost of a little
16489     # extra space).
16490     freebsd2.2*)
16491       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16492       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16493       hardcode_direct_GCJ=yes
16494       hardcode_shlibpath_var_GCJ=no
16495       ;;
16496
16497     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16498     freebsd2*)
16499       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16500       hardcode_direct_GCJ=yes
16501       hardcode_minus_L_GCJ=yes
16502       hardcode_shlibpath_var_GCJ=no
16503       ;;
16504
16505     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16506     freebsd* | kfreebsd*-gnu | dragonfly*)
16507       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16508       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16509       hardcode_direct_GCJ=yes
16510       hardcode_shlibpath_var_GCJ=no
16511       ;;
16512
16513     hpux9*)
16514       if test "$GCC" = yes; then
16515         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'
16516       else
16517         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'
16518       fi
16519       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16520       hardcode_libdir_separator_GCJ=:
16521       hardcode_direct_GCJ=yes
16522
16523       # hardcode_minus_L: Not really in the search PATH,
16524       # but as the default location of the library.
16525       hardcode_minus_L_GCJ=yes
16526       export_dynamic_flag_spec_GCJ='${wl}-E'
16527       ;;
16528
16529     hpux10*)
16530       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16531         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16532       else
16533         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16534       fi
16535       if test "$with_gnu_ld" = no; then
16536         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16537         hardcode_libdir_separator_GCJ=:
16538
16539         hardcode_direct_GCJ=yes
16540         export_dynamic_flag_spec_GCJ='${wl}-E'
16541
16542         # hardcode_minus_L: Not really in the search PATH,
16543         # but as the default location of the library.
16544         hardcode_minus_L_GCJ=yes
16545       fi
16546       ;;
16547
16548     hpux11*)
16549       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16550         case $host_cpu in
16551         hppa*64*)
16552           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16553           ;;
16554         ia64*)
16555           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16556           ;;
16557         *)
16558           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16559           ;;
16560         esac
16561       else
16562         case $host_cpu in
16563         hppa*64*)
16564           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16565           ;;
16566         ia64*)
16567           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16568           ;;
16569         *)
16570           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16571           ;;
16572         esac
16573       fi
16574       if test "$with_gnu_ld" = no; then
16575         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16576         hardcode_libdir_separator_GCJ=:
16577
16578         case $host_cpu in
16579         hppa*64*|ia64*)
16580           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16581           hardcode_direct_GCJ=no
16582           hardcode_shlibpath_var_GCJ=no
16583           ;;
16584         *)
16585           hardcode_direct_GCJ=yes
16586           export_dynamic_flag_spec_GCJ='${wl}-E'
16587
16588           # hardcode_minus_L: Not really in the search PATH,
16589           # but as the default location of the library.
16590           hardcode_minus_L_GCJ=yes
16591           ;;
16592         esac
16593       fi
16594       ;;
16595
16596     irix5* | irix6* | nonstopux*)
16597       if test "$GCC" = yes; then
16598         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'
16599       else
16600         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'
16601         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16602       fi
16603       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16604       hardcode_libdir_separator_GCJ=:
16605       link_all_deplibs_GCJ=yes
16606       ;;
16607
16608     netbsd*)
16609       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16610         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16611       else
16612         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16613       fi
16614       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16615       hardcode_direct_GCJ=yes
16616       hardcode_shlibpath_var_GCJ=no
16617       ;;
16618
16619     newsos6)
16620       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16621       hardcode_direct_GCJ=yes
16622       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16623       hardcode_libdir_separator_GCJ=:
16624       hardcode_shlibpath_var_GCJ=no
16625       ;;
16626
16627     openbsd*)
16628       hardcode_direct_GCJ=yes
16629       hardcode_shlibpath_var_GCJ=no
16630       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16631         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16632         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16633         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16634         export_dynamic_flag_spec_GCJ='${wl}-E'
16635       else
16636        case $host_os in
16637          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16638            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16639            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16640            ;;
16641          *)
16642            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16643            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16644            ;;
16645        esac
16646       fi
16647       ;;
16648
16649     os2*)
16650       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16651       hardcode_minus_L_GCJ=yes
16652       allow_undefined_flag_GCJ=unsupported
16653       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'
16654       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16655       ;;
16656
16657     osf3*)
16658       if test "$GCC" = yes; then
16659         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16660         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'
16661       else
16662         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16663         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'
16664       fi
16665       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16666       hardcode_libdir_separator_GCJ=:
16667       ;;
16668
16669     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16670       if test "$GCC" = yes; then
16671         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16672         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'
16673         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16674       else
16675         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16676         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'
16677         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~
16678         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16679
16680         # Both c and cxx compiler support -rpath directly
16681         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16682       fi
16683       hardcode_libdir_separator_GCJ=:
16684       ;;
16685
16686     solaris*)
16687       no_undefined_flag_GCJ=' -z text'
16688       if test "$GCC" = yes; then
16689         wlarc='${wl}'
16690         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16691         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16692           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16693       else
16694         wlarc=''
16695         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16696         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16697         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16698       fi
16699       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16700       hardcode_shlibpath_var_GCJ=no
16701       case $host_os in
16702       solaris2.[0-5] | solaris2.[0-5].*) ;;
16703       *)
16704         # The compiler driver will combine linker options so we
16705         # cannot just pass the convience library names through
16706         # without $wl, iff we do not link with $LD.
16707         # Luckily, gcc supports the same syntax we need for Sun Studio.
16708         # Supported since Solaris 2.6 (maybe 2.5.1?)
16709         case $wlarc in
16710         '')
16711           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16712         *)
16713           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16714         esac ;;
16715       esac
16716       link_all_deplibs_GCJ=yes
16717       ;;
16718
16719     sunos4*)
16720       if test "x$host_vendor" = xsequent; then
16721         # Use $CC to link under sequent, because it throws in some extra .o
16722         # files that make .init and .fini sections work.
16723         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16724       else
16725         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16726       fi
16727       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16728       hardcode_direct_GCJ=yes
16729       hardcode_minus_L_GCJ=yes
16730       hardcode_shlibpath_var_GCJ=no
16731       ;;
16732
16733     sysv4)
16734       case $host_vendor in
16735         sni)
16736           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737           hardcode_direct_GCJ=yes # is this really true???
16738         ;;
16739         siemens)
16740           ## LD is ld it makes a PLAMLIB
16741           ## CC just makes a GrossModule.
16742           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16743           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16744           hardcode_direct_GCJ=no
16745         ;;
16746         motorola)
16747           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16748           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16749         ;;
16750       esac
16751       runpath_var='LD_RUN_PATH'
16752       hardcode_shlibpath_var_GCJ=no
16753       ;;
16754
16755     sysv4.3*)
16756       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16757       hardcode_shlibpath_var_GCJ=no
16758       export_dynamic_flag_spec_GCJ='-Bexport'
16759       ;;
16760
16761     sysv4*MP*)
16762       if test -d /usr/nec; then
16763         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16764         hardcode_shlibpath_var_GCJ=no
16765         runpath_var=LD_RUN_PATH
16766         hardcode_runpath_var=yes
16767         ld_shlibs_GCJ=yes
16768       fi
16769       ;;
16770
16771     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16772       no_undefined_flag_GCJ='${wl}-z,text'
16773       archive_cmds_need_lc_GCJ=no
16774       hardcode_shlibpath_var_GCJ=no
16775       runpath_var='LD_RUN_PATH'
16776
16777       if test "$GCC" = yes; then
16778         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16779         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16780       else
16781         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16782         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16783       fi
16784       ;;
16785
16786     sysv5* | sco3.2v5* | sco5v6*)
16787       # Note: We can NOT use -z defs as we might desire, because we do not
16788       # link with -lc, and that would cause any symbols used from libc to
16789       # always be unresolved, which means just about no library would
16790       # ever link correctly.  If we're not using GNU ld we use -z text
16791       # though, which does catch some bad symbols but isn't as heavy-handed
16792       # as -z defs.
16793       no_undefined_flag_GCJ='${wl}-z,text'
16794       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16795       archive_cmds_need_lc_GCJ=no
16796       hardcode_shlibpath_var_GCJ=no
16797       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16798       hardcode_libdir_separator_GCJ=':'
16799       link_all_deplibs_GCJ=yes
16800       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16801       runpath_var='LD_RUN_PATH'
16802
16803       if test "$GCC" = yes; then
16804         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16805         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16806       else
16807         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16808         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16809       fi
16810       ;;
16811
16812     uts4*)
16813       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16814       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16815       hardcode_shlibpath_var_GCJ=no
16816       ;;
16817
16818     *)
16819       ld_shlibs_GCJ=no
16820       ;;
16821     esac
16822   fi
16823
16824 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16825 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16826 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16827
16828 #
16829 # Do we need to explicitly link libc?
16830 #
16831 case "x$archive_cmds_need_lc_GCJ" in
16832 x|xyes)
16833   # Assume -lc should be added
16834   archive_cmds_need_lc_GCJ=yes
16835
16836   if test "$enable_shared" = yes && test "$GCC" = yes; then
16837     case $archive_cmds_GCJ in
16838     *'~'*)
16839       # FIXME: we may have to deal with multi-command sequences.
16840       ;;
16841     '$CC '*)
16842       # Test whether the compiler implicitly links with -lc since on some
16843       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16844       # to ld, don't add -lc before -lgcc.
16845       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16846 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16847       $rm conftest*
16848       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16849
16850       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16851   (eval $ac_compile) 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); } 2>conftest.err; then
16855         soname=conftest
16856         lib=conftest
16857         libobjs=conftest.$ac_objext
16858         deplibs=
16859         wl=$lt_prog_compiler_wl_GCJ
16860         pic_flag=$lt_prog_compiler_pic_GCJ
16861         compiler_flags=-v
16862         linker_flags=-v
16863         verstring=
16864         output_objdir=.
16865         libname=conftest
16866         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16867         allow_undefined_flag_GCJ=
16868         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16869   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16870   ac_status=$?
16871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); }
16873         then
16874           archive_cmds_need_lc_GCJ=no
16875         else
16876           archive_cmds_need_lc_GCJ=yes
16877         fi
16878         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16879       else
16880         cat conftest.err 1>&5
16881       fi
16882       $rm conftest*
16883       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16884 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16885       ;;
16886     esac
16887   fi
16888   ;;
16889 esac
16890
16891 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16892 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16893 library_names_spec=
16894 libname_spec='lib$name'
16895 soname_spec=
16896 shrext_cmds=".so"
16897 postinstall_cmds=
16898 postuninstall_cmds=
16899 finish_cmds=
16900 finish_eval=
16901 shlibpath_var=
16902 shlibpath_overrides_runpath=unknown
16903 version_type=none
16904 dynamic_linker="$host_os ld.so"
16905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16906 if test "$GCC" = yes; then
16907   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16908   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16909     # if the path contains ";" then we assume it to be the separator
16910     # otherwise default to the standard path separator (i.e. ":") - it is
16911     # assumed that no part of a normal pathname contains ";" but that should
16912     # okay in the real world where ";" in dirpaths is itself problematic.
16913     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16914   else
16915     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16916   fi
16917 else
16918   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16919 fi
16920 need_lib_prefix=unknown
16921 hardcode_into_libs=no
16922
16923 # when you set need_version to no, make sure it does not cause -set_version
16924 # flags to be left without arguments
16925 need_version=unknown
16926
16927 case $host_os in
16928 aix3*)
16929   version_type=linux
16930   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16931   shlibpath_var=LIBPATH
16932
16933   # AIX 3 has no versioning support, so we append a major version to the name.
16934   soname_spec='${libname}${release}${shared_ext}$major'
16935   ;;
16936
16937 aix4* | aix5*)
16938   version_type=linux
16939   need_lib_prefix=no
16940   need_version=no
16941   hardcode_into_libs=yes
16942   if test "$host_cpu" = ia64; then
16943     # AIX 5 supports IA64
16944     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16945     shlibpath_var=LD_LIBRARY_PATH
16946   else
16947     # With GCC up to 2.95.x, collect2 would create an import file
16948     # for dependence libraries.  The import file would start with
16949     # the line `#! .'.  This would cause the generated library to
16950     # depend on `.', always an invalid library.  This was fixed in
16951     # development snapshots of GCC prior to 3.0.
16952     case $host_os in
16953       aix4 | aix4.[01] | aix4.[01].*)
16954       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16955            echo ' yes '
16956            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16957         :
16958       else
16959         can_build_shared=no
16960       fi
16961       ;;
16962     esac
16963     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16964     # soname into executable. Probably we can add versioning support to
16965     # collect2, so additional links can be useful in future.
16966     if test "$aix_use_runtimelinking" = yes; then
16967       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16968       # instead of lib<name>.a to let people know that these are not
16969       # typical AIX shared libraries.
16970       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971     else
16972       # We preserve .a as extension for shared libraries through AIX4.2
16973       # and later when we are not doing run time linking.
16974       library_names_spec='${libname}${release}.a $libname.a'
16975       soname_spec='${libname}${release}${shared_ext}$major'
16976     fi
16977     shlibpath_var=LIBPATH
16978   fi
16979   ;;
16980
16981 amigaos*)
16982   library_names_spec='$libname.ixlibrary $libname.a'
16983   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16984   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'
16985   ;;
16986
16987 beos*)
16988   library_names_spec='${libname}${shared_ext}'
16989   dynamic_linker="$host_os ld.so"
16990   shlibpath_var=LIBRARY_PATH
16991   ;;
16992
16993 bsdi[45]*)
16994   version_type=linux
16995   need_version=no
16996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997   soname_spec='${libname}${release}${shared_ext}$major'
16998   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16999   shlibpath_var=LD_LIBRARY_PATH
17000   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17001   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17002   # the default ld.so.conf also contains /usr/contrib/lib and
17003   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17004   # libtool to hard-code these into programs
17005   ;;
17006
17007 cygwin* | mingw* | pw32*)
17008   version_type=windows
17009   shrext_cmds=".dll"
17010   need_version=no
17011   need_lib_prefix=no
17012
17013   case $GCC,$host_os in
17014   yes,cygwin* | yes,mingw* | yes,pw32*)
17015     library_names_spec='$libname.dll.a'
17016     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17017     postinstall_cmds='base_file=`basename \${file}`~
17018       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17019       dldir=$destdir/`dirname \$dlpath`~
17020       test -d \$dldir || mkdir -p \$dldir~
17021       $install_prog $dir/$dlname \$dldir/$dlname~
17022       chmod a+x \$dldir/$dlname'
17023     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17024       dlpath=$dir/\$dldll~
17025        $rm \$dlpath'
17026     shlibpath_overrides_runpath=yes
17027
17028     case $host_os in
17029     cygwin*)
17030       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17031       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17032       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17033       ;;
17034     mingw*)
17035       # MinGW DLLs use traditional 'lib' prefix
17036       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17037       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17038       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17039         # It is most probably a Windows format PATH printed by
17040         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17041         # path with ; separators, and with drive letters. We can handle the
17042         # drive letters (cygwin fileutils understands them), so leave them,
17043         # especially as we might pass files found there to a mingw objdump,
17044         # which wouldn't understand a cygwinified path. Ahh.
17045         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17046       else
17047         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17048       fi
17049       ;;
17050     pw32*)
17051       # pw32 DLLs use 'pw' prefix rather than 'lib'
17052       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17053       ;;
17054     esac
17055     ;;
17056
17057   *)
17058     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17059     ;;
17060   esac
17061   dynamic_linker='Win32 ld.exe'
17062   # FIXME: first we should search . and the directory the executable is in
17063   shlibpath_var=PATH
17064   ;;
17065
17066 darwin* | rhapsody*)
17067   dynamic_linker="$host_os dyld"
17068   version_type=darwin
17069   need_lib_prefix=no
17070   need_version=no
17071   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17072   soname_spec='${libname}${release}${major}$shared_ext'
17073   shlibpath_overrides_runpath=yes
17074   shlibpath_var=DYLD_LIBRARY_PATH
17075   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17076   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17077   if test "$GCC" = yes; then
17078     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"`
17079   else
17080     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17081   fi
17082   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17083   ;;
17084
17085 dgux*)
17086   version_type=linux
17087   need_lib_prefix=no
17088   need_version=no
17089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17090   soname_spec='${libname}${release}${shared_ext}$major'
17091   shlibpath_var=LD_LIBRARY_PATH
17092   ;;
17093
17094 freebsd1*)
17095   dynamic_linker=no
17096   ;;
17097
17098 kfreebsd*-gnu)
17099   version_type=linux
17100   need_lib_prefix=no
17101   need_version=no
17102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17103   soname_spec='${libname}${release}${shared_ext}$major'
17104   shlibpath_var=LD_LIBRARY_PATH
17105   shlibpath_overrides_runpath=no
17106   hardcode_into_libs=yes
17107   dynamic_linker='GNU ld.so'
17108   ;;
17109
17110 freebsd* | dragonfly*)
17111   # DragonFly does not have aout.  When/if they implement a new
17112   # versioning mechanism, adjust this.
17113   if test -x /usr/bin/objformat; then
17114     objformat=`/usr/bin/objformat`
17115   else
17116     case $host_os in
17117     freebsd[123]*) objformat=aout ;;
17118     *) objformat=elf ;;
17119     esac
17120   fi
17121   version_type=freebsd-$objformat
17122   case $version_type in
17123     freebsd-elf*)
17124       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17125       need_version=no
17126       need_lib_prefix=no
17127       ;;
17128     freebsd-*)
17129       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17130       need_version=yes
17131       ;;
17132   esac
17133   shlibpath_var=LD_LIBRARY_PATH
17134   case $host_os in
17135   freebsd2*)
17136     shlibpath_overrides_runpath=yes
17137     ;;
17138   freebsd3.[01]* | freebsdelf3.[01]*)
17139     shlibpath_overrides_runpath=yes
17140     hardcode_into_libs=yes
17141     ;;
17142   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17143   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17144     shlibpath_overrides_runpath=no
17145     hardcode_into_libs=yes
17146     ;;
17147   freebsd*) # from 4.6 on
17148     shlibpath_overrides_runpath=yes
17149     hardcode_into_libs=yes
17150     ;;
17151   esac
17152   ;;
17153
17154 gnu*)
17155   version_type=linux
17156   need_lib_prefix=no
17157   need_version=no
17158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17159   soname_spec='${libname}${release}${shared_ext}$major'
17160   shlibpath_var=LD_LIBRARY_PATH
17161   hardcode_into_libs=yes
17162   ;;
17163
17164 hpux9* | hpux10* | hpux11*)
17165   # Give a soname corresponding to the major version so that dld.sl refuses to
17166   # link against other versions.
17167   version_type=sunos
17168   need_lib_prefix=no
17169   need_version=no
17170   case $host_cpu in
17171   ia64*)
17172     shrext_cmds='.so'
17173     hardcode_into_libs=yes
17174     dynamic_linker="$host_os dld.so"
17175     shlibpath_var=LD_LIBRARY_PATH
17176     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17177     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178     soname_spec='${libname}${release}${shared_ext}$major'
17179     if test "X$HPUX_IA64_MODE" = X32; then
17180       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17181     else
17182       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17183     fi
17184     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17185     ;;
17186    hppa*64*)
17187      shrext_cmds='.sl'
17188      hardcode_into_libs=yes
17189      dynamic_linker="$host_os dld.sl"
17190      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17191      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17192      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193      soname_spec='${libname}${release}${shared_ext}$major'
17194      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17195      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17196      ;;
17197    *)
17198     shrext_cmds='.sl'
17199     dynamic_linker="$host_os dld.sl"
17200     shlibpath_var=SHLIB_PATH
17201     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17203     soname_spec='${libname}${release}${shared_ext}$major'
17204     ;;
17205   esac
17206   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17207   postinstall_cmds='chmod 555 $lib'
17208   ;;
17209
17210 interix3*)
17211   version_type=linux
17212   need_lib_prefix=no
17213   need_version=no
17214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17215   soname_spec='${libname}${release}${shared_ext}$major'
17216   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17217   shlibpath_var=LD_LIBRARY_PATH
17218   shlibpath_overrides_runpath=no
17219   hardcode_into_libs=yes
17220   ;;
17221
17222 irix5* | irix6* | nonstopux*)
17223   case $host_os in
17224     nonstopux*) version_type=nonstopux ;;
17225     *)
17226         if test "$lt_cv_prog_gnu_ld" = yes; then
17227                 version_type=linux
17228         else
17229                 version_type=irix
17230         fi ;;
17231   esac
17232   need_lib_prefix=no
17233   need_version=no
17234   soname_spec='${libname}${release}${shared_ext}$major'
17235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17236   case $host_os in
17237   irix5* | nonstopux*)
17238     libsuff= shlibsuff=
17239     ;;
17240   *)
17241     case $LD in # libtool.m4 will add one of these switches to LD
17242     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17243       libsuff= shlibsuff= libmagic=32-bit;;
17244     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17245       libsuff=32 shlibsuff=N32 libmagic=N32;;
17246     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17247       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17248     *) libsuff= shlibsuff= libmagic=never-match;;
17249     esac
17250     ;;
17251   esac
17252   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17253   shlibpath_overrides_runpath=no
17254   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17255   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17256   hardcode_into_libs=yes
17257   ;;
17258
17259 # No shared lib support for Linux oldld, aout, or coff.
17260 linux*oldld* | linux*aout* | linux*coff*)
17261   dynamic_linker=no
17262   ;;
17263
17264 # This must be Linux ELF.
17265 linux*)
17266   version_type=linux
17267   need_lib_prefix=no
17268   need_version=no
17269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270   soname_spec='${libname}${release}${shared_ext}$major'
17271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17272   shlibpath_var=LD_LIBRARY_PATH
17273   shlibpath_overrides_runpath=no
17274   # This implies no fast_install, which is unacceptable.
17275   # Some rework will be needed to allow for fast_install
17276   # before this can be enabled.
17277   hardcode_into_libs=yes
17278
17279   # Append ld.so.conf contents to the search path
17280   if test -f /etc/ld.so.conf; then
17281     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17282     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17283   fi
17284
17285   # We used to test for /lib/ld.so.1 and disable shared libraries on
17286   # powerpc, because MkLinux only supported shared libraries with the
17287   # GNU dynamic linker.  Since this was broken with cross compilers,
17288   # most powerpc-linux boxes support dynamic linking these days and
17289   # people can always --disable-shared, the test was removed, and we
17290   # assume the GNU/Linux dynamic linker is in use.
17291   dynamic_linker='GNU/Linux ld.so'
17292   ;;
17293
17294 knetbsd*-gnu)
17295   version_type=linux
17296   need_lib_prefix=no
17297   need_version=no
17298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17299   soname_spec='${libname}${release}${shared_ext}$major'
17300   shlibpath_var=LD_LIBRARY_PATH
17301   shlibpath_overrides_runpath=no
17302   hardcode_into_libs=yes
17303   dynamic_linker='GNU ld.so'
17304   ;;
17305
17306 netbsd*)
17307   version_type=sunos
17308   need_lib_prefix=no
17309   need_version=no
17310   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17312     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17313     dynamic_linker='NetBSD (a.out) ld.so'
17314   else
17315     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17316     soname_spec='${libname}${release}${shared_ext}$major'
17317     dynamic_linker='NetBSD ld.elf_so'
17318   fi
17319   shlibpath_var=LD_LIBRARY_PATH
17320   shlibpath_overrides_runpath=yes
17321   hardcode_into_libs=yes
17322   ;;
17323
17324 newsos6)
17325   version_type=linux
17326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327   shlibpath_var=LD_LIBRARY_PATH
17328   shlibpath_overrides_runpath=yes
17329   ;;
17330
17331 nto-qnx*)
17332   version_type=linux
17333   need_lib_prefix=no
17334   need_version=no
17335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336   soname_spec='${libname}${release}${shared_ext}$major'
17337   shlibpath_var=LD_LIBRARY_PATH
17338   shlibpath_overrides_runpath=yes
17339   ;;
17340
17341 openbsd*)
17342   version_type=sunos
17343   sys_lib_dlsearch_path_spec="/usr/lib"
17344   need_lib_prefix=no
17345   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17346   case $host_os in
17347     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17348     *)                         need_version=no  ;;
17349   esac
17350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17352   shlibpath_var=LD_LIBRARY_PATH
17353   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17354     case $host_os in
17355       openbsd2.[89] | openbsd2.[89].*)
17356         shlibpath_overrides_runpath=no
17357         ;;
17358       *)
17359         shlibpath_overrides_runpath=yes
17360         ;;
17361       esac
17362   else
17363     shlibpath_overrides_runpath=yes
17364   fi
17365   ;;
17366
17367 os2*)
17368   libname_spec='$name'
17369   shrext_cmds=".dll"
17370   need_lib_prefix=no
17371   library_names_spec='$libname${shared_ext} $libname.a'
17372   dynamic_linker='OS/2 ld.exe'
17373   shlibpath_var=LIBPATH
17374   ;;
17375
17376 osf3* | osf4* | osf5*)
17377   version_type=osf
17378   need_lib_prefix=no
17379   need_version=no
17380   soname_spec='${libname}${release}${shared_ext}$major'
17381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17382   shlibpath_var=LD_LIBRARY_PATH
17383   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17384   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17385   ;;
17386
17387 solaris*)
17388   version_type=linux
17389   need_lib_prefix=no
17390   need_version=no
17391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17392   soname_spec='${libname}${release}${shared_ext}$major'
17393   shlibpath_var=LD_LIBRARY_PATH
17394   shlibpath_overrides_runpath=yes
17395   hardcode_into_libs=yes
17396   # ldd complains unless libraries are executable
17397   postinstall_cmds='chmod +x $lib'
17398   ;;
17399
17400 sunos4*)
17401   version_type=sunos
17402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17403   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17404   shlibpath_var=LD_LIBRARY_PATH
17405   shlibpath_overrides_runpath=yes
17406   if test "$with_gnu_ld" = yes; then
17407     need_lib_prefix=no
17408   fi
17409   need_version=yes
17410   ;;
17411
17412 sysv4 | sysv4.3*)
17413   version_type=linux
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   case $host_vendor in
17418     sni)
17419       shlibpath_overrides_runpath=no
17420       need_lib_prefix=no
17421       export_dynamic_flag_spec='${wl}-Blargedynsym'
17422       runpath_var=LD_RUN_PATH
17423       ;;
17424     siemens)
17425       need_lib_prefix=no
17426       ;;
17427     motorola)
17428       need_lib_prefix=no
17429       need_version=no
17430       shlibpath_overrides_runpath=no
17431       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17432       ;;
17433   esac
17434   ;;
17435
17436 sysv4*MP*)
17437   if test -d /usr/nec ;then
17438     version_type=linux
17439     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17440     soname_spec='$libname${shared_ext}.$major'
17441     shlibpath_var=LD_LIBRARY_PATH
17442   fi
17443   ;;
17444
17445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17446   version_type=freebsd-elf
17447   need_lib_prefix=no
17448   need_version=no
17449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17450   soname_spec='${libname}${release}${shared_ext}$major'
17451   shlibpath_var=LD_LIBRARY_PATH
17452   hardcode_into_libs=yes
17453   if test "$with_gnu_ld" = yes; then
17454     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17455     shlibpath_overrides_runpath=no
17456   else
17457     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17458     shlibpath_overrides_runpath=yes
17459     case $host_os in
17460       sco3.2v5*)
17461         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17462         ;;
17463     esac
17464   fi
17465   sys_lib_dlsearch_path_spec='/usr/lib'
17466   ;;
17467
17468 uts4*)
17469   version_type=linux
17470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471   soname_spec='${libname}${release}${shared_ext}$major'
17472   shlibpath_var=LD_LIBRARY_PATH
17473   ;;
17474
17475 *)
17476   dynamic_linker=no
17477   ;;
17478 esac
17479 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17480 echo "${ECHO_T}$dynamic_linker" >&6
17481 test "$dynamic_linker" = no && can_build_shared=no
17482
17483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17484 if test "$GCC" = yes; then
17485   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17486 fi
17487
17488 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17489 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17490 hardcode_action_GCJ=
17491 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17492    test -n "$runpath_var_GCJ" || \
17493    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17494
17495   # We can hardcode non-existant directories.
17496   if test "$hardcode_direct_GCJ" != no &&
17497      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17498      # have to relink, otherwise we might link with an installed library
17499      # when we should be linking with a yet-to-be-installed one
17500      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17501      test "$hardcode_minus_L_GCJ" != no; then
17502     # Linking always hardcodes the temporary library directory.
17503     hardcode_action_GCJ=relink
17504   else
17505     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17506     hardcode_action_GCJ=immediate
17507   fi
17508 else
17509   # We cannot hardcode anything, or else we can only hardcode existing
17510   # directories.
17511   hardcode_action_GCJ=unsupported
17512 fi
17513 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17514 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17515
17516 if test "$hardcode_action_GCJ" = relink; then
17517   # Fast installation is not supported
17518   enable_fast_install=no
17519 elif test "$shlibpath_overrides_runpath" = yes ||
17520      test "$enable_shared" = no; then
17521   # Fast installation is not necessary
17522   enable_fast_install=needless
17523 fi
17524
17525
17526 # The else clause should only fire when bootstrapping the
17527 # libtool distribution, otherwise you forgot to ship ltmain.sh
17528 # with your package, and you will get complaints that there are
17529 # no rules to generate ltmain.sh.
17530 if test -f "$ltmain"; then
17531   # See if we are running on zsh, and set the options which allow our commands through
17532   # without removal of \ escapes.
17533   if test -n "${ZSH_VERSION+set}" ; then
17534     setopt NO_GLOB_SUBST
17535   fi
17536   # Now quote all the things that may contain metacharacters while being
17537   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17538   # variables and quote the copies for generation of the libtool script.
17539   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17540     SED SHELL STRIP \
17541     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17542     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17543     deplibs_check_method reload_flag reload_cmds need_locks \
17544     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17545     lt_cv_sys_global_symbol_to_c_name_address \
17546     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17547     old_postinstall_cmds old_postuninstall_cmds \
17548     compiler_GCJ \
17549     CC_GCJ \
17550     LD_GCJ \
17551     lt_prog_compiler_wl_GCJ \
17552     lt_prog_compiler_pic_GCJ \
17553     lt_prog_compiler_static_GCJ \
17554     lt_prog_compiler_no_builtin_flag_GCJ \
17555     export_dynamic_flag_spec_GCJ \
17556     thread_safe_flag_spec_GCJ \
17557     whole_archive_flag_spec_GCJ \
17558     enable_shared_with_static_runtimes_GCJ \
17559     old_archive_cmds_GCJ \
17560     old_archive_from_new_cmds_GCJ \
17561     predep_objects_GCJ \
17562     postdep_objects_GCJ \
17563     predeps_GCJ \
17564     postdeps_GCJ \
17565     compiler_lib_search_path_GCJ \
17566     archive_cmds_GCJ \
17567     archive_expsym_cmds_GCJ \
17568     postinstall_cmds_GCJ \
17569     postuninstall_cmds_GCJ \
17570     old_archive_from_expsyms_cmds_GCJ \
17571     allow_undefined_flag_GCJ \
17572     no_undefined_flag_GCJ \
17573     export_symbols_cmds_GCJ \
17574     hardcode_libdir_flag_spec_GCJ \
17575     hardcode_libdir_flag_spec_ld_GCJ \
17576     hardcode_libdir_separator_GCJ \
17577     hardcode_automatic_GCJ \
17578     module_cmds_GCJ \
17579     module_expsym_cmds_GCJ \
17580     lt_cv_prog_compiler_c_o_GCJ \
17581     exclude_expsyms_GCJ \
17582     include_expsyms_GCJ; do
17583
17584     case $var in
17585     old_archive_cmds_GCJ | \
17586     old_archive_from_new_cmds_GCJ | \
17587     archive_cmds_GCJ | \
17588     archive_expsym_cmds_GCJ | \
17589     module_cmds_GCJ | \
17590     module_expsym_cmds_GCJ | \
17591     old_archive_from_expsyms_cmds_GCJ | \
17592     export_symbols_cmds_GCJ | \
17593     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17594     postinstall_cmds | postuninstall_cmds | \
17595     old_postinstall_cmds | old_postuninstall_cmds | \
17596     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17597       # Double-quote double-evaled strings.
17598       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17599       ;;
17600     *)
17601       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17602       ;;
17603     esac
17604   done
17605
17606   case $lt_echo in
17607   *'\$0 --fallback-echo"')
17608     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17609     ;;
17610   esac
17611
17612 cfgfile="$ofile"
17613
17614   cat <<__EOF__ >> "$cfgfile"
17615 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17616
17617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17618
17619 # Shell to use when invoking shell scripts.
17620 SHELL=$lt_SHELL
17621
17622 # Whether or not to build shared libraries.
17623 build_libtool_libs=$enable_shared
17624
17625 # Whether or not to build static libraries.
17626 build_old_libs=$enable_static
17627
17628 # Whether or not to add -lc for building shared libraries.
17629 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17630
17631 # Whether or not to disallow shared libs when runtime libs are static
17632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17633
17634 # Whether or not to optimize for fast installation.
17635 fast_install=$enable_fast_install
17636
17637 # The host system.
17638 host_alias=$host_alias
17639 host=$host
17640 host_os=$host_os
17641
17642 # The build system.
17643 build_alias=$build_alias
17644 build=$build
17645 build_os=$build_os
17646
17647 # An echo program that does not interpret backslashes.
17648 echo=$lt_echo
17649
17650 # The archiver.
17651 AR=$lt_AR
17652 AR_FLAGS=$lt_AR_FLAGS
17653
17654 # A C compiler.
17655 LTCC=$lt_LTCC
17656
17657 # LTCC compiler flags.
17658 LTCFLAGS=$lt_LTCFLAGS
17659
17660 # A language-specific compiler.
17661 CC=$lt_compiler_GCJ
17662
17663 # Is the compiler the GNU C compiler?
17664 with_gcc=$GCC_GCJ
17665
17666 # An ERE matcher.
17667 EGREP=$lt_EGREP
17668
17669 # The linker used to build libraries.
17670 LD=$lt_LD_GCJ
17671
17672 # Whether we need hard or soft links.
17673 LN_S=$lt_LN_S
17674
17675 # A BSD-compatible nm program.
17676 NM=$lt_NM
17677
17678 # A symbol stripping program
17679 STRIP=$lt_STRIP
17680
17681 # Used to examine libraries when file_magic_cmd begins "file"
17682 MAGIC_CMD=$MAGIC_CMD
17683
17684 # Used on cygwin: DLL creation program.
17685 DLLTOOL="$DLLTOOL"
17686
17687 # Used on cygwin: object dumper.
17688 OBJDUMP="$OBJDUMP"
17689
17690 # Used on cygwin: assembler.
17691 AS="$AS"
17692
17693 # The name of the directory that contains temporary libtool files.
17694 objdir=$objdir
17695
17696 # How to create reloadable object files.
17697 reload_flag=$lt_reload_flag
17698 reload_cmds=$lt_reload_cmds
17699
17700 # How to pass a linker flag through the compiler.
17701 wl=$lt_lt_prog_compiler_wl_GCJ
17702
17703 # Object file suffix (normally "o").
17704 objext="$ac_objext"
17705
17706 # Old archive suffix (normally "a").
17707 libext="$libext"
17708
17709 # Shared library suffix (normally ".so").
17710 shrext_cmds='$shrext_cmds'
17711
17712 # Executable file suffix (normally "").
17713 exeext="$exeext"
17714
17715 # Additional compiler flags for building library objects.
17716 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17717 pic_mode=$pic_mode
17718
17719 # What is the maximum length of a command?
17720 max_cmd_len=$lt_cv_sys_max_cmd_len
17721
17722 # Does compiler simultaneously support -c and -o options?
17723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17724
17725 # Must we lock files when doing compilation?
17726 need_locks=$lt_need_locks
17727
17728 # Do we need the lib prefix for modules?
17729 need_lib_prefix=$need_lib_prefix
17730
17731 # Do we need a version for libraries?
17732 need_version=$need_version
17733
17734 # Whether dlopen is supported.
17735 dlopen_support=$enable_dlopen
17736
17737 # Whether dlopen of programs is supported.
17738 dlopen_self=$enable_dlopen_self
17739
17740 # Whether dlopen of statically linked programs is supported.
17741 dlopen_self_static=$enable_dlopen_self_static
17742
17743 # Compiler flag to prevent dynamic linking.
17744 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17745
17746 # Compiler flag to turn off builtin functions.
17747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17748
17749 # Compiler flag to allow reflexive dlopens.
17750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17751
17752 # Compiler flag to generate shared objects directly from archives.
17753 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17754
17755 # Compiler flag to generate thread-safe objects.
17756 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17757
17758 # Library versioning type.
17759 version_type=$version_type
17760
17761 # Format of library name prefix.
17762 libname_spec=$lt_libname_spec
17763
17764 # List of archive names.  First name is the real one, the rest are links.
17765 # The last name is the one that the linker finds with -lNAME.
17766 library_names_spec=$lt_library_names_spec
17767
17768 # The coded name of the library, if different from the real name.
17769 soname_spec=$lt_soname_spec
17770
17771 # Commands used to build and install an old-style archive.
17772 RANLIB=$lt_RANLIB
17773 old_archive_cmds=$lt_old_archive_cmds_GCJ
17774 old_postinstall_cmds=$lt_old_postinstall_cmds
17775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17776
17777 # Create an old-style archive from a shared archive.
17778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17779
17780 # Create a temporary old-style archive to link instead of a shared archive.
17781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17782
17783 # Commands used to build and install a shared archive.
17784 archive_cmds=$lt_archive_cmds_GCJ
17785 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17786 postinstall_cmds=$lt_postinstall_cmds
17787 postuninstall_cmds=$lt_postuninstall_cmds
17788
17789 # Commands used to build a loadable module (assumed same as above if empty)
17790 module_cmds=$lt_module_cmds_GCJ
17791 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17792
17793 # Commands to strip libraries.
17794 old_striplib=$lt_old_striplib
17795 striplib=$lt_striplib
17796
17797 # Dependencies to place before the objects being linked to create a
17798 # shared library.
17799 predep_objects=$lt_predep_objects_GCJ
17800
17801 # Dependencies to place after the objects being linked to create a
17802 # shared library.
17803 postdep_objects=$lt_postdep_objects_GCJ
17804
17805 # Dependencies to place before the objects being linked to create a
17806 # shared library.
17807 predeps=$lt_predeps_GCJ
17808
17809 # Dependencies to place after the objects being linked to create a
17810 # shared library.
17811 postdeps=$lt_postdeps_GCJ
17812
17813 # The library search path used internally by the compiler when linking
17814 # a shared library.
17815 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17816
17817 # Method to check whether dependent libraries are shared objects.
17818 deplibs_check_method=$lt_deplibs_check_method
17819
17820 # Command to use when deplibs_check_method == file_magic.
17821 file_magic_cmd=$lt_file_magic_cmd
17822
17823 # Flag that allows shared libraries with undefined symbols to be built.
17824 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17825
17826 # Flag that forces no undefined symbols.
17827 no_undefined_flag=$lt_no_undefined_flag_GCJ
17828
17829 # Commands used to finish a libtool library installation in a directory.
17830 finish_cmds=$lt_finish_cmds
17831
17832 # Same as above, but a single script fragment to be evaled but not shown.
17833 finish_eval=$lt_finish_eval
17834
17835 # Take the output of nm and produce a listing of raw symbols and C names.
17836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17837
17838 # Transform the output of nm in a proper C declaration
17839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17840
17841 # Transform the output of nm in a C name address pair
17842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17843
17844 # This is the shared library runtime path variable.
17845 runpath_var=$runpath_var
17846
17847 # This is the shared library path variable.
17848 shlibpath_var=$shlibpath_var
17849
17850 # Is shlibpath searched before the hard-coded library search path?
17851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17852
17853 # How to hardcode a shared library path into an executable.
17854 hardcode_action=$hardcode_action_GCJ
17855
17856 # Whether we should hardcode library paths into libraries.
17857 hardcode_into_libs=$hardcode_into_libs
17858
17859 # Flag to hardcode \$libdir into a binary during linking.
17860 # This must work even if \$libdir does not exist.
17861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17862
17863 # If ld is used when linking, flag to hardcode \$libdir into
17864 # a binary during linking. This must work even if \$libdir does
17865 # not exist.
17866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17867
17868 # Whether we need a single -rpath flag with a separated argument.
17869 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17870
17871 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17872 # resulting binary.
17873 hardcode_direct=$hardcode_direct_GCJ
17874
17875 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17876 # resulting binary.
17877 hardcode_minus_L=$hardcode_minus_L_GCJ
17878
17879 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17880 # the resulting binary.
17881 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17882
17883 # Set to yes if building a shared library automatically hardcodes DIR into the library
17884 # and all subsequent libraries and executables linked against it.
17885 hardcode_automatic=$hardcode_automatic_GCJ
17886
17887 # Variables whose values should be saved in libtool wrapper scripts and
17888 # restored at relink time.
17889 variables_saved_for_relink="$variables_saved_for_relink"
17890
17891 # Whether libtool must link a program against all its dependency libraries.
17892 link_all_deplibs=$link_all_deplibs_GCJ
17893
17894 # Compile-time system search path for libraries
17895 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17896
17897 # Run-time system search path for libraries
17898 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17899
17900 # Fix the shell variable \$srcfile for the compiler.
17901 fix_srcfile_path="$fix_srcfile_path_GCJ"
17902
17903 # Set to yes if exported symbols are required.
17904 always_export_symbols=$always_export_symbols_GCJ
17905
17906 # The commands to list exported symbols.
17907 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17908
17909 # The commands to extract the exported symbol list from a shared archive.
17910 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17911
17912 # Symbols that should not be listed in the preloaded symbols.
17913 exclude_expsyms=$lt_exclude_expsyms_GCJ
17914
17915 # Symbols that must always be exported.
17916 include_expsyms=$lt_include_expsyms_GCJ
17917
17918 # ### END LIBTOOL TAG CONFIG: $tagname
17919
17920 __EOF__
17921
17922
17923 else
17924   # If there is no Makefile yet, we rely on a make rule to execute
17925   # `config.status --recheck' to rerun these tests and create the
17926   # libtool script then.
17927   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17928   if test -f "$ltmain_in"; then
17929     test -f Makefile && make "$ltmain"
17930   fi
17931 fi
17932
17933
17934 ac_ext=c
17935 ac_cpp='$CPP $CPPFLAGS'
17936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17939
17940 CC="$lt_save_CC"
17941
17942         else
17943           tagname=""
17944         fi
17945         ;;
17946
17947       RC)
17948
17949
17950
17951 # Source file extension for RC test sources.
17952 ac_ext=rc
17953
17954 # Object file extension for compiled RC test sources.
17955 objext=o
17956 objext_RC=$objext
17957
17958 # Code to be used in simple compile tests
17959 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17960
17961 # Code to be used in simple link tests
17962 lt_simple_link_test_code="$lt_simple_compile_test_code"
17963
17964 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17965
17966 # If no C compiler was specified, use CC.
17967 LTCC=${LTCC-"$CC"}
17968
17969 # If no C compiler flags were specified, use CFLAGS.
17970 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17971
17972 # Allow CC to be a program name with arguments.
17973 compiler=$CC
17974
17975
17976 # save warnings/boilerplate of simple test code
17977 ac_outfile=conftest.$ac_objext
17978 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17979 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17980 _lt_compiler_boilerplate=`cat conftest.err`
17981 $rm conftest*
17982
17983 ac_outfile=conftest.$ac_objext
17984 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17985 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17986 _lt_linker_boilerplate=`cat conftest.err`
17987 $rm conftest*
17988
17989
17990 # Allow CC to be a program name with arguments.
17991 lt_save_CC="$CC"
17992 CC=${RC-"windres"}
17993 compiler=$CC
17994 compiler_RC=$CC
17995 for cc_temp in $compiler""; do
17996   case $cc_temp in
17997     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17998     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17999     \-*) ;;
18000     *) break;;
18001   esac
18002 done
18003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18004
18005 lt_cv_prog_compiler_c_o_RC=yes
18006
18007 # The else clause should only fire when bootstrapping the
18008 # libtool distribution, otherwise you forgot to ship ltmain.sh
18009 # with your package, and you will get complaints that there are
18010 # no rules to generate ltmain.sh.
18011 if test -f "$ltmain"; then
18012   # See if we are running on zsh, and set the options which allow our commands through
18013   # without removal of \ escapes.
18014   if test -n "${ZSH_VERSION+set}" ; then
18015     setopt NO_GLOB_SUBST
18016   fi
18017   # Now quote all the things that may contain metacharacters while being
18018   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18019   # variables and quote the copies for generation of the libtool script.
18020   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18021     SED SHELL STRIP \
18022     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18023     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18024     deplibs_check_method reload_flag reload_cmds need_locks \
18025     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18026     lt_cv_sys_global_symbol_to_c_name_address \
18027     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18028     old_postinstall_cmds old_postuninstall_cmds \
18029     compiler_RC \
18030     CC_RC \
18031     LD_RC \
18032     lt_prog_compiler_wl_RC \
18033     lt_prog_compiler_pic_RC \
18034     lt_prog_compiler_static_RC \
18035     lt_prog_compiler_no_builtin_flag_RC \
18036     export_dynamic_flag_spec_RC \
18037     thread_safe_flag_spec_RC \
18038     whole_archive_flag_spec_RC \
18039     enable_shared_with_static_runtimes_RC \
18040     old_archive_cmds_RC \
18041     old_archive_from_new_cmds_RC \
18042     predep_objects_RC \
18043     postdep_objects_RC \
18044     predeps_RC \
18045     postdeps_RC \
18046     compiler_lib_search_path_RC \
18047     archive_cmds_RC \
18048     archive_expsym_cmds_RC \
18049     postinstall_cmds_RC \
18050     postuninstall_cmds_RC \
18051     old_archive_from_expsyms_cmds_RC \
18052     allow_undefined_flag_RC \
18053     no_undefined_flag_RC \
18054     export_symbols_cmds_RC \
18055     hardcode_libdir_flag_spec_RC \
18056     hardcode_libdir_flag_spec_ld_RC \
18057     hardcode_libdir_separator_RC \
18058     hardcode_automatic_RC \
18059     module_cmds_RC \
18060     module_expsym_cmds_RC \
18061     lt_cv_prog_compiler_c_o_RC \
18062     exclude_expsyms_RC \
18063     include_expsyms_RC; do
18064
18065     case $var in
18066     old_archive_cmds_RC | \
18067     old_archive_from_new_cmds_RC | \
18068     archive_cmds_RC | \
18069     archive_expsym_cmds_RC | \
18070     module_cmds_RC | \
18071     module_expsym_cmds_RC | \
18072     old_archive_from_expsyms_cmds_RC | \
18073     export_symbols_cmds_RC | \
18074     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18075     postinstall_cmds | postuninstall_cmds | \
18076     old_postinstall_cmds | old_postuninstall_cmds | \
18077     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18078       # Double-quote double-evaled strings.
18079       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18080       ;;
18081     *)
18082       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18083       ;;
18084     esac
18085   done
18086
18087   case $lt_echo in
18088   *'\$0 --fallback-echo"')
18089     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18090     ;;
18091   esac
18092
18093 cfgfile="$ofile"
18094
18095   cat <<__EOF__ >> "$cfgfile"
18096 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18097
18098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18099
18100 # Shell to use when invoking shell scripts.
18101 SHELL=$lt_SHELL
18102
18103 # Whether or not to build shared libraries.
18104 build_libtool_libs=$enable_shared
18105
18106 # Whether or not to build static libraries.
18107 build_old_libs=$enable_static
18108
18109 # Whether or not to add -lc for building shared libraries.
18110 build_libtool_need_lc=$archive_cmds_need_lc_RC
18111
18112 # Whether or not to disallow shared libs when runtime libs are static
18113 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18114
18115 # Whether or not to optimize for fast installation.
18116 fast_install=$enable_fast_install
18117
18118 # The host system.
18119 host_alias=$host_alias
18120 host=$host
18121 host_os=$host_os
18122
18123 # The build system.
18124 build_alias=$build_alias
18125 build=$build
18126 build_os=$build_os
18127
18128 # An echo program that does not interpret backslashes.
18129 echo=$lt_echo
18130
18131 # The archiver.
18132 AR=$lt_AR
18133 AR_FLAGS=$lt_AR_FLAGS
18134
18135 # A C compiler.
18136 LTCC=$lt_LTCC
18137
18138 # LTCC compiler flags.
18139 LTCFLAGS=$lt_LTCFLAGS
18140
18141 # A language-specific compiler.
18142 CC=$lt_compiler_RC
18143
18144 # Is the compiler the GNU C compiler?
18145 with_gcc=$GCC_RC
18146
18147 # An ERE matcher.
18148 EGREP=$lt_EGREP
18149
18150 # The linker used to build libraries.
18151 LD=$lt_LD_RC
18152
18153 # Whether we need hard or soft links.
18154 LN_S=$lt_LN_S
18155
18156 # A BSD-compatible nm program.
18157 NM=$lt_NM
18158
18159 # A symbol stripping program
18160 STRIP=$lt_STRIP
18161
18162 # Used to examine libraries when file_magic_cmd begins "file"
18163 MAGIC_CMD=$MAGIC_CMD
18164
18165 # Used on cygwin: DLL creation program.
18166 DLLTOOL="$DLLTOOL"
18167
18168 # Used on cygwin: object dumper.
18169 OBJDUMP="$OBJDUMP"
18170
18171 # Used on cygwin: assembler.
18172 AS="$AS"
18173
18174 # The name of the directory that contains temporary libtool files.
18175 objdir=$objdir
18176
18177 # How to create reloadable object files.
18178 reload_flag=$lt_reload_flag
18179 reload_cmds=$lt_reload_cmds
18180
18181 # How to pass a linker flag through the compiler.
18182 wl=$lt_lt_prog_compiler_wl_RC
18183
18184 # Object file suffix (normally "o").
18185 objext="$ac_objext"
18186
18187 # Old archive suffix (normally "a").
18188 libext="$libext"
18189
18190 # Shared library suffix (normally ".so").
18191 shrext_cmds='$shrext_cmds'
18192
18193 # Executable file suffix (normally "").
18194 exeext="$exeext"
18195
18196 # Additional compiler flags for building library objects.
18197 pic_flag=$lt_lt_prog_compiler_pic_RC
18198 pic_mode=$pic_mode
18199
18200 # What is the maximum length of a command?
18201 max_cmd_len=$lt_cv_sys_max_cmd_len
18202
18203 # Does compiler simultaneously support -c and -o options?
18204 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18205
18206 # Must we lock files when doing compilation?
18207 need_locks=$lt_need_locks
18208
18209 # Do we need the lib prefix for modules?
18210 need_lib_prefix=$need_lib_prefix
18211
18212 # Do we need a version for libraries?
18213 need_version=$need_version
18214
18215 # Whether dlopen is supported.
18216 dlopen_support=$enable_dlopen
18217
18218 # Whether dlopen of programs is supported.
18219 dlopen_self=$enable_dlopen_self
18220
18221 # Whether dlopen of statically linked programs is supported.
18222 dlopen_self_static=$enable_dlopen_self_static
18223
18224 # Compiler flag to prevent dynamic linking.
18225 link_static_flag=$lt_lt_prog_compiler_static_RC
18226
18227 # Compiler flag to turn off builtin functions.
18228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18229
18230 # Compiler flag to allow reflexive dlopens.
18231 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18232
18233 # Compiler flag to generate shared objects directly from archives.
18234 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18235
18236 # Compiler flag to generate thread-safe objects.
18237 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18238
18239 # Library versioning type.
18240 version_type=$version_type
18241
18242 # Format of library name prefix.
18243 libname_spec=$lt_libname_spec
18244
18245 # List of archive names.  First name is the real one, the rest are links.
18246 # The last name is the one that the linker finds with -lNAME.
18247 library_names_spec=$lt_library_names_spec
18248
18249 # The coded name of the library, if different from the real name.
18250 soname_spec=$lt_soname_spec
18251
18252 # Commands used to build and install an old-style archive.
18253 RANLIB=$lt_RANLIB
18254 old_archive_cmds=$lt_old_archive_cmds_RC
18255 old_postinstall_cmds=$lt_old_postinstall_cmds
18256 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18257
18258 # Create an old-style archive from a shared archive.
18259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18260
18261 # Create a temporary old-style archive to link instead of a shared archive.
18262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18263
18264 # Commands used to build and install a shared archive.
18265 archive_cmds=$lt_archive_cmds_RC
18266 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18267 postinstall_cmds=$lt_postinstall_cmds
18268 postuninstall_cmds=$lt_postuninstall_cmds
18269
18270 # Commands used to build a loadable module (assumed same as above if empty)
18271 module_cmds=$lt_module_cmds_RC
18272 module_expsym_cmds=$lt_module_expsym_cmds_RC
18273
18274 # Commands to strip libraries.
18275 old_striplib=$lt_old_striplib
18276 striplib=$lt_striplib
18277
18278 # Dependencies to place before the objects being linked to create a
18279 # shared library.
18280 predep_objects=$lt_predep_objects_RC
18281
18282 # Dependencies to place after the objects being linked to create a
18283 # shared library.
18284 postdep_objects=$lt_postdep_objects_RC
18285
18286 # Dependencies to place before the objects being linked to create a
18287 # shared library.
18288 predeps=$lt_predeps_RC
18289
18290 # Dependencies to place after the objects being linked to create a
18291 # shared library.
18292 postdeps=$lt_postdeps_RC
18293
18294 # The library search path used internally by the compiler when linking
18295 # a shared library.
18296 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18297
18298 # Method to check whether dependent libraries are shared objects.
18299 deplibs_check_method=$lt_deplibs_check_method
18300
18301 # Command to use when deplibs_check_method == file_magic.
18302 file_magic_cmd=$lt_file_magic_cmd
18303
18304 # Flag that allows shared libraries with undefined symbols to be built.
18305 allow_undefined_flag=$lt_allow_undefined_flag_RC
18306
18307 # Flag that forces no undefined symbols.
18308 no_undefined_flag=$lt_no_undefined_flag_RC
18309
18310 # Commands used to finish a libtool library installation in a directory.
18311 finish_cmds=$lt_finish_cmds
18312
18313 # Same as above, but a single script fragment to be evaled but not shown.
18314 finish_eval=$lt_finish_eval
18315
18316 # Take the output of nm and produce a listing of raw symbols and C names.
18317 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18318
18319 # Transform the output of nm in a proper C declaration
18320 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18321
18322 # Transform the output of nm in a C name address pair
18323 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18324
18325 # This is the shared library runtime path variable.
18326 runpath_var=$runpath_var
18327
18328 # This is the shared library path variable.
18329 shlibpath_var=$shlibpath_var
18330
18331 # Is shlibpath searched before the hard-coded library search path?
18332 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18333
18334 # How to hardcode a shared library path into an executable.
18335 hardcode_action=$hardcode_action_RC
18336
18337 # Whether we should hardcode library paths into libraries.
18338 hardcode_into_libs=$hardcode_into_libs
18339
18340 # Flag to hardcode \$libdir into a binary during linking.
18341 # This must work even if \$libdir does not exist.
18342 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18343
18344 # If ld is used when linking, flag to hardcode \$libdir into
18345 # a binary during linking. This must work even if \$libdir does
18346 # not exist.
18347 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18348
18349 # Whether we need a single -rpath flag with a separated argument.
18350 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18351
18352 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18353 # resulting binary.
18354 hardcode_direct=$hardcode_direct_RC
18355
18356 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18357 # resulting binary.
18358 hardcode_minus_L=$hardcode_minus_L_RC
18359
18360 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18361 # the resulting binary.
18362 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18363
18364 # Set to yes if building a shared library automatically hardcodes DIR into the library
18365 # and all subsequent libraries and executables linked against it.
18366 hardcode_automatic=$hardcode_automatic_RC
18367
18368 # Variables whose values should be saved in libtool wrapper scripts and
18369 # restored at relink time.
18370 variables_saved_for_relink="$variables_saved_for_relink"
18371
18372 # Whether libtool must link a program against all its dependency libraries.
18373 link_all_deplibs=$link_all_deplibs_RC
18374
18375 # Compile-time system search path for libraries
18376 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18377
18378 # Run-time system search path for libraries
18379 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18380
18381 # Fix the shell variable \$srcfile for the compiler.
18382 fix_srcfile_path="$fix_srcfile_path_RC"
18383
18384 # Set to yes if exported symbols are required.
18385 always_export_symbols=$always_export_symbols_RC
18386
18387 # The commands to list exported symbols.
18388 export_symbols_cmds=$lt_export_symbols_cmds_RC
18389
18390 # The commands to extract the exported symbol list from a shared archive.
18391 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18392
18393 # Symbols that should not be listed in the preloaded symbols.
18394 exclude_expsyms=$lt_exclude_expsyms_RC
18395
18396 # Symbols that must always be exported.
18397 include_expsyms=$lt_include_expsyms_RC
18398
18399 # ### END LIBTOOL TAG CONFIG: $tagname
18400
18401 __EOF__
18402
18403
18404 else
18405   # If there is no Makefile yet, we rely on a make rule to execute
18406   # `config.status --recheck' to rerun these tests and create the
18407   # libtool script then.
18408   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18409   if test -f "$ltmain_in"; then
18410     test -f Makefile && make "$ltmain"
18411   fi
18412 fi
18413
18414
18415 ac_ext=c
18416 ac_cpp='$CPP $CPPFLAGS'
18417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18420
18421 CC="$lt_save_CC"
18422
18423         ;;
18424
18425       *)
18426         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18427 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18428    { (exit 1); exit 1; }; }
18429         ;;
18430       esac
18431
18432       # Append the new tag name to the list of available tags.
18433       if test -n "$tagname" ; then
18434       available_tags="$available_tags $tagname"
18435     fi
18436     fi
18437   done
18438   IFS="$lt_save_ifs"
18439
18440   # Now substitute the updated list of available tags.
18441   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18442     mv "${ofile}T" "$ofile"
18443     chmod +x "$ofile"
18444   else
18445     rm -f "${ofile}T"
18446     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18447 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18448    { (exit 1); exit 1; }; }
18449   fi
18450 fi
18451
18452
18453
18454 # This can be used to rebuild libtool when needed
18455 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18456
18457 # Always use our own libtool.
18458 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18459
18460 # Prevent multiple expansion
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473 # Check whether --with-system-libtool or --without-system-libtool was given.
18474 if test "${with_system_libtool+set}" = set; then
18475   withval="$with_system_libtool"
18476    # Extract the first word of "libtool", so it can be a program name with args.
18477 set dummy libtool; ac_word=$2
18478 echo "$as_me:$LINENO: checking for $ac_word" >&5
18479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18480 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18481   echo $ECHO_N "(cached) $ECHO_C" >&6
18482 else
18483   case $LIBTOOL in
18484   [\\/]* | ?:[\\/]*)
18485   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18486   ;;
18487   *)
18488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18489 as_dummy="$PATH:/usr/local/bin"
18490 for as_dir in $as_dummy
18491 do
18492   IFS=$as_save_IFS
18493   test -z "$as_dir" && as_dir=.
18494   for ac_exec_ext in '' $ac_executable_extensions; do
18495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18496     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18498     break 2
18499   fi
18500 done
18501 done
18502
18503   ;;
18504 esac
18505 fi
18506 LIBTOOL=$ac_cv_path_LIBTOOL
18507
18508 if test -n "$LIBTOOL"; then
18509   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18510 echo "${ECHO_T}$LIBTOOL" >&6
18511 else
18512   echo "$as_me:$LINENO: result: no" >&5
18513 echo "${ECHO_T}no" >&6
18514 fi
18515
18516 else
18517
18518   LIBTOOL="`pwd`/libtool"
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533 fi;
18534
18535
18536
18537 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18538 if test "${enable_strict_dependencies+set}" = set; then
18539   enableval="$enable_strict_dependencies"
18540
18541 fi;
18542
18543 logdir='${localstatedir}/log/radius'
18544 echo "$as_me:$LINENO: checking logdir" >&5
18545 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18546
18547 # Check whether --with-logdir or --without-logdir was given.
18548 if test "${with_logdir+set}" = set; then
18549   withval="$with_logdir"
18550    case "$withval" in
18551     no)
18552         { { echo "$as_me:$LINENO: error: Need logdir" >&5
18553 echo "$as_me: error: Need logdir" >&2;}
18554    { (exit 1); exit 1; }; }
18555         ;;
18556     yes)
18557         ;;
18558     *)
18559         logdir="$withval"
18560         ;;
18561   esac
18562
18563 fi;
18564
18565 echo "$as_me:$LINENO: result: $logdir" >&5
18566 echo "${ECHO_T}$logdir" >&6
18567
18568 radacctdir='${logdir}/radacct'
18569 echo "$as_me:$LINENO: checking radacctdir" >&5
18570 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18571
18572 # Check whether --with-radacctdir or --without-radacctdir was given.
18573 if test "${with_radacctdir+set}" = set; then
18574   withval="$with_radacctdir"
18575    case "$withval" in
18576     no)
18577         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18578 echo "$as_me: error: Need radacctdir" >&2;}
18579    { (exit 1); exit 1; }; }
18580         ;;
18581     yes)
18582         ;;
18583     *)
18584         radacctdir="$withval"
18585         ;;
18586   esac
18587
18588 fi;
18589
18590 echo "$as_me:$LINENO: result: $radacctdir" >&5
18591 echo "${ECHO_T}$radacctdir" >&6
18592
18593 raddbdir='${sysconfdir}/raddb'
18594 echo "$as_me:$LINENO: checking raddbdir" >&5
18595 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18596
18597 # Check whether --with-raddbdir or --without-raddbdir was given.
18598 if test "${with_raddbdir+set}" = set; then
18599   withval="$with_raddbdir"
18600    case "$withval" in
18601     no)
18602         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18603 echo "$as_me: error: Need raddbdir" >&2;}
18604    { (exit 1); exit 1; }; }
18605         ;;
18606     yes)
18607         ;;
18608     *)
18609         raddbdir="$withval"
18610         ;;
18611   esac
18612
18613 fi;
18614
18615 echo "$as_me:$LINENO: result: $raddbdir" >&5
18616 echo "${ECHO_T}$raddbdir" >&6
18617
18618 ASCEND_BINARY=yes
18619
18620 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18621 if test "${with_ascend_binary+set}" = set; then
18622   withval="$with_ascend_binary"
18623    case "$withval" in
18624     yes)
18625         ;;
18626     *)
18627         ASCEND_BINARY=""
18628   esac
18629
18630 fi;
18631 if test "X$ASCEND_BINARY" = "Xyes"; then
18632   cat >>confdefs.h <<\_ACEOF
18633 #define ASCEND_BINARY 1
18634 _ACEOF
18635
18636 fi
18637
18638 WITH_THREADS=yes
18639
18640 # Check whether --with-threads or --without-threads was given.
18641 if test "${with_threads+set}" = set; then
18642   withval="$with_threads"
18643    case "$withval" in
18644     yes)
18645         ;;
18646     *)
18647         WITH_THREADS=""
18648   esac
18649
18650 fi;
18651
18652 WITH_SNMP=yes
18653
18654 # Check whether --with-snmp or --without-snmp was given.
18655 if test "${with_snmp+set}" = set; then
18656   withval="$with_snmp"
18657    case "$withval" in
18658     yes)
18659         ;;
18660     *)
18661         WITH_SNMP=no
18662   esac
18663
18664 fi;
18665
18666 rad_enable_largefiles=no
18667
18668 # Check whether --with-large-files or --without-large-files was given.
18669 if test "${with_large_files+set}" = set; then
18670   withval="$with_large_files"
18671    case "$withval" in
18672     yes)
18673         rad_enable_largefiles=yes
18674         ;;
18675     *)
18676         ;;
18677   esac
18678
18679 fi;
18680
18681
18682 STATIC_MODULES=
18683
18684 # Check whether --with-static_modules or --without-static_modules was given.
18685 if test "${with_static_modules+set}" = set; then
18686   withval="$with_static_modules"
18687
18688   for i in $withval; do
18689     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
18690   done
18691
18692 fi;
18693
18694 MODULES=
18695
18696 # Check whether --with-modules or --without-modules was given.
18697 if test "${with_modules+set}" = set; then
18698   withval="$with_modules"
18699
18700  for i in $withval; do
18701    MODULES="$MODULES $i"
18702  done
18703
18704 fi;
18705
18706 # Check whether --enable-developer or --disable-developer was given.
18707 if test "${enable_developer+set}" = set; then
18708   enableval="$enable_developer"
18709    case "$enableval" in
18710     no)
18711         developer=no
18712         ;;
18713     *)
18714         developer=yes
18715   esac
18716
18717 fi;
18718
18719 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
18720     developer="yes"
18721 fi
18722
18723 EXPERIMENTAL=
18724
18725 # Check whether --with-experimental-modules or --without-experimental-modules was given.
18726 if test "${with_experimental_modules+set}" = set; then
18727   withval="$with_experimental_modules"
18728    case "$withval" in
18729     yes)
18730         EXPERIMENTAL=yes
18731         ;;
18732     *)
18733   esac
18734
18735 fi;
18736
18737 OPENSSL_INCLUDE_DIR=
18738
18739 # Check whether --with-openssl-includes or --without-openssl-includes was given.
18740 if test "${with_openssl_includes+set}" = set; then
18741   withval="$with_openssl_includes"
18742    case "$withval" in
18743     *) OPENSSL_INCLUDE_DIR="$withval"
18744         ;;
18745   esac
18746
18747 fi;
18748
18749 OPENSSL_LIB_DIR=
18750
18751 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
18752 if test "${with_openssl_libraries+set}" = set; then
18753   withval="$with_openssl_libraries"
18754    case "$withval" in
18755     *) OPENSSL_LIB_DIR="$withval"
18756         ;;
18757   esac
18758
18759 fi;
18760
18761
18762
18763 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
18764 if test "${with_rlm_FOO_lib_dir+set}" = set; then
18765   withval="$with_rlm_FOO_lib_dir"
18766    case "$withval" in
18767     *)
18768         ;;
18769   esac
18770
18771 fi;
18772
18773
18774 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
18775 if test "${with_rlm_FOO_include_dir+set}" = set; then
18776   withval="$with_rlm_FOO_include_dir"
18777    case "$withval" in
18778     *)
18779         ;;
18780   esac
18781
18782 fi;
18783
18784
18785 WITH_UDPFROMTO=no
18786
18787 # Check whether --with-udpfromto or --without-udpfromto was given.
18788 if test "${with_udpfromto+set}" = set; then
18789   withval="$with_udpfromto"
18790    case "$withval" in
18791     yes)
18792         WITH_UDPFROMTO=yes
18793         ;;
18794     *)
18795         WITH_UDPFROMTO=no
18796   esac
18797
18798 fi;
18799
18800 if test "x$WITH_UDPFROMTO" = "xyes"; then
18801         cat >>confdefs.h <<\_ACEOF
18802 #define WITH_UDPFROMTO 1
18803 _ACEOF
18804
18805 fi
18806
18807
18808 # Check whether --with-edir or --without-edir was given.
18809 if test "${with_edir+set}" = set; then
18810   withval="$with_edir"
18811
18812 fi;
18813
18814
18815 CHECKRAD=checkrad.pl
18816 # Extract the first word of "perl", so it can be a program name with args.
18817 set dummy perl; ac_word=$2
18818 echo "$as_me:$LINENO: checking for $ac_word" >&5
18819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18820 if test "${ac_cv_path_PERL+set}" = set; then
18821   echo $ECHO_N "(cached) $ECHO_C" >&6
18822 else
18823   case $PERL in
18824   [\\/]* | ?:[\\/]*)
18825   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18826   ;;
18827   *)
18828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18829 for as_dir in $PATH
18830 do
18831   IFS=$as_save_IFS
18832   test -z "$as_dir" && as_dir=.
18833   for ac_exec_ext in '' $ac_executable_extensions; do
18834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18835     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18837     break 2
18838   fi
18839 done
18840 done
18841
18842   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
18843   ;;
18844 esac
18845 fi
18846 PERL=$ac_cv_path_PERL
18847
18848 if test -n "$PERL"; then
18849   echo "$as_me:$LINENO: result: $PERL" >&5
18850 echo "${ECHO_T}$PERL" >&6
18851 else
18852   echo "$as_me:$LINENO: result: no" >&5
18853 echo "${ECHO_T}no" >&6
18854 fi
18855
18856 if test "x$ac_cv_path_PERL" = "x"; then
18857   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
18858 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18859 fi
18860 # Extract the first word of "snmpget", so it can be a program name with args.
18861 set dummy snmpget; ac_word=$2
18862 echo "$as_me:$LINENO: checking for $ac_word" >&5
18863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18864 if test "${ac_cv_path_SNMPGET+set}" = set; then
18865   echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867   case $SNMPGET in
18868   [\\/]* | ?:[\\/]*)
18869   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
18870   ;;
18871   *)
18872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18873 for as_dir in $PATH
18874 do
18875   IFS=$as_save_IFS
18876   test -z "$as_dir" && as_dir=.
18877   for ac_exec_ext in '' $ac_executable_extensions; do
18878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18879     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
18880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18881     break 2
18882   fi
18883 done
18884 done
18885
18886   ;;
18887 esac
18888 fi
18889 SNMPGET=$ac_cv_path_SNMPGET
18890
18891 if test -n "$SNMPGET"; then
18892   echo "$as_me:$LINENO: result: $SNMPGET" >&5
18893 echo "${ECHO_T}$SNMPGET" >&6
18894 else
18895   echo "$as_me:$LINENO: result: no" >&5
18896 echo "${ECHO_T}no" >&6
18897 fi
18898
18899 if test "x$ac_cv_path_SNMPGET" = "x"; then
18900   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
18901 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18902 fi
18903
18904 # Extract the first word of "snmpwalk", so it can be a program name with args.
18905 set dummy snmpwalk; ac_word=$2
18906 echo "$as_me:$LINENO: checking for $ac_word" >&5
18907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18908 if test "${ac_cv_path_SNMPWALK+set}" = set; then
18909   echo $ECHO_N "(cached) $ECHO_C" >&6
18910 else
18911   case $SNMPWALK in
18912   [\\/]* | ?:[\\/]*)
18913   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
18914   ;;
18915   *)
18916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18917 for as_dir in $PATH
18918 do
18919   IFS=$as_save_IFS
18920   test -z "$as_dir" && as_dir=.
18921   for ac_exec_ext in '' $ac_executable_extensions; do
18922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18923     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
18924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18925     break 2
18926   fi
18927 done
18928 done
18929
18930   ;;
18931 esac
18932 fi
18933 SNMPWALK=$ac_cv_path_SNMPWALK
18934
18935 if test -n "$SNMPWALK"; then
18936   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
18937 echo "${ECHO_T}$SNMPWALK" >&6
18938 else
18939   echo "$as_me:$LINENO: result: no" >&5
18940 echo "${ECHO_T}no" >&6
18941 fi
18942
18943 if test "x$ac_cv_path_SNMPWALK" = "x"; then
18944   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
18945 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18946 fi
18947
18948 # Extract the first word of "rusers", so it can be a program name with args.
18949 set dummy rusers; ac_word=$2
18950 echo "$as_me:$LINENO: checking for $ac_word" >&5
18951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18952 if test "${ac_cv_path_RUSERS+set}" = set; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955   case $RUSERS in
18956   [\\/]* | ?:[\\/]*)
18957   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
18958   ;;
18959   *)
18960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18961 for as_dir in $PATH
18962 do
18963   IFS=$as_save_IFS
18964   test -z "$as_dir" && as_dir=.
18965   for ac_exec_ext in '' $ac_executable_extensions; do
18966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18967     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
18968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18969     break 2
18970   fi
18971 done
18972 done
18973
18974   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
18975   ;;
18976 esac
18977 fi
18978 RUSERS=$ac_cv_path_RUSERS
18979
18980 if test -n "$RUSERS"; then
18981   echo "$as_me:$LINENO: result: $RUSERS" >&5
18982 echo "${ECHO_T}$RUSERS" >&6
18983 else
18984   echo "$as_me:$LINENO: result: no" >&5
18985 echo "${ECHO_T}no" >&6
18986 fi
18987
18988
18989 missing_dir=`cd $ac_aux_dir && pwd`
18990 echo "$as_me:$LINENO: checking for working aclocal" >&5
18991 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
18992 # Run test in a subshell; some versions of sh will print an error if
18993 # an executable is not found, even if stderr is redirected.
18994 # Redirect stdin to placate older versions of autoconf.  Sigh.
18995 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
18996    ACLOCAL=aclocal
18997    echo "$as_me:$LINENO: result: found" >&5
18998 echo "${ECHO_T}found" >&6
18999 else
19000    ACLOCAL="$missing_dir/missing aclocal"
19001    echo "$as_me:$LINENO: result: missing" >&5
19002 echo "${ECHO_T}missing" >&6
19003 fi
19004
19005 echo "$as_me:$LINENO: checking for working autoconf" >&5
19006 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
19007 # Run test in a subshell; some versions of sh will print an error if
19008 # an executable is not found, even if stderr is redirected.
19009 # Redirect stdin to placate older versions of autoconf.  Sigh.
19010 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19011    AUTOCONF=autoconf
19012    echo "$as_me:$LINENO: result: found" >&5
19013 echo "${ECHO_T}found" >&6
19014 else
19015    AUTOCONF="$missing_dir/missing autoconf"
19016    echo "$as_me:$LINENO: result: missing" >&5
19017 echo "${ECHO_T}missing" >&6
19018 fi
19019
19020 echo "$as_me:$LINENO: checking for working autoheader" >&5
19021 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
19022 # Run test in a subshell; some versions of sh will print an error if
19023 # an executable is not found, even if stderr is redirected.
19024 # Redirect stdin to placate older versions of autoconf.  Sigh.
19025 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19026    AUTOHEADER=autoheader
19027    echo "$as_me:$LINENO: result: found" >&5
19028 echo "${ECHO_T}found" >&6
19029 else
19030    AUTOHEADER="$missing_dir/missing autoheader"
19031    echo "$as_me:$LINENO: result: missing" >&5
19032 echo "${ECHO_T}missing" >&6
19033 fi
19034
19035
19036 # Extract the first word of "locate", so it can be a program name with args.
19037 set dummy locate; ac_word=$2
19038 echo "$as_me:$LINENO: checking for $ac_word" >&5
19039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19040 if test "${ac_cv_path_LOCATE+set}" = set; then
19041   echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043   case $LOCATE in
19044   [\\/]* | ?:[\\/]*)
19045   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19046   ;;
19047   *)
19048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19049 for as_dir in $PATH
19050 do
19051   IFS=$as_save_IFS
19052   test -z "$as_dir" && as_dir=.
19053   for ac_exec_ext in '' $ac_executable_extensions; do
19054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19055     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19057     break 2
19058   fi
19059 done
19060 done
19061
19062   ;;
19063 esac
19064 fi
19065 LOCATE=$ac_cv_path_LOCATE
19066
19067 if test -n "$LOCATE"; then
19068   echo "$as_me:$LINENO: result: $LOCATE" >&5
19069 echo "${ECHO_T}$LOCATE" >&6
19070 else
19071   echo "$as_me:$LINENO: result: no" >&5
19072 echo "${ECHO_T}no" >&6
19073 fi
19074
19075 # Extract the first word of "dirname", so it can be a program name with args.
19076 set dummy dirname; ac_word=$2
19077 echo "$as_me:$LINENO: checking for $ac_word" >&5
19078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19079 if test "${ac_cv_path_DIRNAME+set}" = set; then
19080   echo $ECHO_N "(cached) $ECHO_C" >&6
19081 else
19082   case $DIRNAME in
19083   [\\/]* | ?:[\\/]*)
19084   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19085   ;;
19086   *)
19087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19088 for as_dir in $PATH
19089 do
19090   IFS=$as_save_IFS
19091   test -z "$as_dir" && as_dir=.
19092   for ac_exec_ext in '' $ac_executable_extensions; do
19093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19094     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19096     break 2
19097   fi
19098 done
19099 done
19100
19101   ;;
19102 esac
19103 fi
19104 DIRNAME=$ac_cv_path_DIRNAME
19105
19106 if test -n "$DIRNAME"; then
19107   echo "$as_me:$LINENO: result: $DIRNAME" >&5
19108 echo "${ECHO_T}$DIRNAME" >&6
19109 else
19110   echo "$as_me:$LINENO: result: no" >&5
19111 echo "${ECHO_T}no" >&6
19112 fi
19113
19114 # Extract the first word of "grep", so it can be a program name with args.
19115 set dummy grep; ac_word=$2
19116 echo "$as_me:$LINENO: checking for $ac_word" >&5
19117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19118 if test "${ac_cv_path_GREP+set}" = set; then
19119   echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121   case $GREP in
19122   [\\/]* | ?:[\\/]*)
19123   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19124   ;;
19125   *)
19126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19127 for as_dir in $PATH
19128 do
19129   IFS=$as_save_IFS
19130   test -z "$as_dir" && as_dir=.
19131   for ac_exec_ext in '' $ac_executable_extensions; do
19132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19133     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19135     break 2
19136   fi
19137 done
19138 done
19139
19140   ;;
19141 esac
19142 fi
19143 GREP=$ac_cv_path_GREP
19144
19145 if test -n "$GREP"; then
19146   echo "$as_me:$LINENO: result: $GREP" >&5
19147 echo "${ECHO_T}$GREP" >&6
19148 else
19149   echo "$as_me:$LINENO: result: no" >&5
19150 echo "${ECHO_T}no" >&6
19151 fi
19152
19153
19154
19155 old_CFLAGS=$CFLAGS
19156 if test "x$WITH_THREADS" = "xyes"; then
19157   if test $ac_cv_prog_suncc = "yes"; then
19158     CFLAGS="$CFLAGS -mt"
19159   fi
19160
19161
19162 for ac_header in pthread.h
19163 do
19164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19166   echo "$as_me:$LINENO: checking for $ac_header" >&5
19167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19169   echo $ECHO_N "(cached) $ECHO_C" >&6
19170 fi
19171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19173 else
19174   # Is the header compilable?
19175 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19177 cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h.  */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h.  */
19183 $ac_includes_default
19184 #include <$ac_header>
19185 _ACEOF
19186 rm -f conftest.$ac_objext
19187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19188   (eval $ac_compile) 2>conftest.er1
19189   ac_status=$?
19190   grep -v '^ *+' conftest.er1 >conftest.err
19191   rm -f conftest.er1
19192   cat conftest.err >&5
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); } &&
19195          { ac_try='test -z "$ac_c_werror_flag"
19196                          || test ! -s conftest.err'
19197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198   (eval $ac_try) 2>&5
19199   ac_status=$?
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); }; } &&
19202          { ac_try='test -s conftest.$ac_objext'
19203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204   (eval $ac_try) 2>&5
19205   ac_status=$?
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); }; }; then
19208   ac_header_compiler=yes
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213 ac_header_compiler=no
19214 fi
19215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19217 echo "${ECHO_T}$ac_header_compiler" >&6
19218
19219 # Is the header present?
19220 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19222 cat >conftest.$ac_ext <<_ACEOF
19223 /* confdefs.h.  */
19224 _ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h.  */
19228 #include <$ac_header>
19229 _ACEOF
19230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19232   ac_status=$?
19233   grep -v '^ *+' conftest.er1 >conftest.err
19234   rm -f conftest.er1
19235   cat conftest.err >&5
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); } >/dev/null; then
19238   if test -s conftest.err; then
19239     ac_cpp_err=$ac_c_preproc_warn_flag
19240     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19241   else
19242     ac_cpp_err=
19243   fi
19244 else
19245   ac_cpp_err=yes
19246 fi
19247 if test -z "$ac_cpp_err"; then
19248   ac_header_preproc=yes
19249 else
19250   echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19252
19253   ac_header_preproc=no
19254 fi
19255 rm -f conftest.err conftest.$ac_ext
19256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19257 echo "${ECHO_T}$ac_header_preproc" >&6
19258
19259 # So?  What about this header?
19260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19261   yes:no: )
19262     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19266     ac_header_preproc=yes
19267     ;;
19268   no:yes:* )
19269     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19271     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19272 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19273     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19274 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19275     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19276 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19279     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19280 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19281     (
19282       cat <<\_ASBOX
19283 ## ------------------------------------------ ##
19284 ## Report this to the AC_PACKAGE_NAME lists.  ##
19285 ## ------------------------------------------ ##
19286 _ASBOX
19287     ) |
19288       sed "s/^/$as_me: WARNING:     /" >&2
19289     ;;
19290 esac
19291 echo "$as_me:$LINENO: checking for $ac_header" >&5
19292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19294   echo $ECHO_N "(cached) $ECHO_C" >&6
19295 else
19296   eval "$as_ac_Header=\$ac_header_preproc"
19297 fi
19298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19300
19301 fi
19302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19303   cat >>confdefs.h <<_ACEOF
19304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19305 _ACEOF
19306
19307 else
19308    WITH_THREADS="no"
19309 fi
19310
19311 done
19312
19313
19314   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19315 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19316 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19317   echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319   ac_check_lib_save_LIBS=$LIBS
19320 LIBS="-lpthread  $LIBS"
19321 cat >conftest.$ac_ext <<_ACEOF
19322 /* confdefs.h.  */
19323 _ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h.  */
19327
19328 /* Override any gcc2 internal prototype to avoid an error.  */
19329 #ifdef __cplusplus
19330 extern "C"
19331 #endif
19332 /* We use char because int might match the return type of a gcc2
19333    builtin and then its argument prototype would still apply.  */
19334 char pthread_create ();
19335 int
19336 main ()
19337 {
19338 pthread_create ();
19339   ;
19340   return 0;
19341 }
19342 _ACEOF
19343 rm -f conftest.$ac_objext conftest$ac_exeext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19345   (eval $ac_link) 2>conftest.er1
19346   ac_status=$?
19347   grep -v '^ *+' conftest.er1 >conftest.err
19348   rm -f conftest.er1
19349   cat conftest.err >&5
19350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351   (exit $ac_status); } &&
19352          { ac_try='test -z "$ac_c_werror_flag"
19353                          || test ! -s conftest.err'
19354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355   (eval $ac_try) 2>&5
19356   ac_status=$?
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); }; } &&
19359          { ac_try='test -s conftest$ac_exeext'
19360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361   (eval $ac_try) 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; }; then
19365   ac_cv_lib_pthread_pthread_create=yes
19366 else
19367   echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370 ac_cv_lib_pthread_pthread_create=no
19371 fi
19372 rm -f conftest.err conftest.$ac_objext \
19373       conftest$ac_exeext conftest.$ac_ext
19374 LIBS=$ac_check_lib_save_LIBS
19375 fi
19376 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19377 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19378 if test $ac_cv_lib_pthread_pthread_create = yes; then
19379    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19380                   LIBS="$LIBS -lpthread"
19381 else
19382   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19383 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19384 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19385   echo $ECHO_N "(cached) $ECHO_C" >&6
19386 else
19387   ac_check_lib_save_LIBS=$LIBS
19388 LIBS="-lc_r  $LIBS"
19389 cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h.  */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h.  */
19395
19396 /* Override any gcc2 internal prototype to avoid an error.  */
19397 #ifdef __cplusplus
19398 extern "C"
19399 #endif
19400 /* We use char because int might match the return type of a gcc2
19401    builtin and then its argument prototype would still apply.  */
19402 char pthread_create ();
19403 int
19404 main ()
19405 {
19406 pthread_create ();
19407   ;
19408   return 0;
19409 }
19410 _ACEOF
19411 rm -f conftest.$ac_objext conftest$ac_exeext
19412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19413   (eval $ac_link) 2>conftest.er1
19414   ac_status=$?
19415   grep -v '^ *+' conftest.er1 >conftest.err
19416   rm -f conftest.er1
19417   cat conftest.err >&5
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); } &&
19420          { ac_try='test -z "$ac_c_werror_flag"
19421                          || test ! -s conftest.err'
19422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423   (eval $ac_try) 2>&5
19424   ac_status=$?
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); }; } &&
19427          { ac_try='test -s conftest$ac_exeext'
19428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429   (eval $ac_try) 2>&5
19430   ac_status=$?
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); }; }; then
19433   ac_cv_lib_c_r_pthread_create=yes
19434 else
19435   echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19437
19438 ac_cv_lib_c_r_pthread_create=no
19439 fi
19440 rm -f conftest.err conftest.$ac_objext \
19441       conftest$ac_exeext conftest.$ac_ext
19442 LIBS=$ac_check_lib_save_LIBS
19443 fi
19444 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19445 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19446 if test $ac_cv_lib_c_r_pthread_create = yes; then
19447    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19448 else
19449    WITH_THREADS="no"
19450
19451 fi
19452
19453
19454 fi
19455
19456 fi
19457
19458 if test "x$WITH_THREADS" != "xyes"; then
19459   CFLAGS=$old_CFLAGS
19460   ac_cv_header_pthread_h="no"
19461   WITH_THREADS=no
19462 else
19463
19464   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19465 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19466 if test "${ac_cv_search_sem_init+set}" = set; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469   ac_func_search_save_LIBS=$LIBS
19470 ac_cv_search_sem_init=no
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h.  */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h.  */
19477
19478 /* Override any gcc2 internal prototype to avoid an error.  */
19479 #ifdef __cplusplus
19480 extern "C"
19481 #endif
19482 /* We use char because int might match the return type of a gcc2
19483    builtin and then its argument prototype would still apply.  */
19484 char sem_init ();
19485 int
19486 main ()
19487 {
19488 sem_init ();
19489   ;
19490   return 0;
19491 }
19492 _ACEOF
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19495   (eval $ac_link) 2>conftest.er1
19496   ac_status=$?
19497   grep -v '^ *+' conftest.er1 >conftest.err
19498   rm -f conftest.er1
19499   cat conftest.err >&5
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); } &&
19502          { ac_try='test -z "$ac_c_werror_flag"
19503                          || test ! -s conftest.err'
19504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505   (eval $ac_try) 2>&5
19506   ac_status=$?
19507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508   (exit $ac_status); }; } &&
19509          { ac_try='test -s conftest$ac_exeext'
19510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511   (eval $ac_try) 2>&5
19512   ac_status=$?
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); }; }; then
19515   ac_cv_search_sem_init="none required"
19516 else
19517   echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19519
19520 fi
19521 rm -f conftest.err conftest.$ac_objext \
19522       conftest$ac_exeext conftest.$ac_ext
19523 if test "$ac_cv_search_sem_init" = no; then
19524   for ac_lib in pthread sem posix4 rt; do
19525     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19526     cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h.  */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h.  */
19532
19533 /* Override any gcc2 internal prototype to avoid an error.  */
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 /* We use char because int might match the return type of a gcc2
19538    builtin and then its argument prototype would still apply.  */
19539 char sem_init ();
19540 int
19541 main ()
19542 {
19543 sem_init ();
19544   ;
19545   return 0;
19546 }
19547 _ACEOF
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550   (eval $ac_link) 2>conftest.er1
19551   ac_status=$?
19552   grep -v '^ *+' conftest.er1 >conftest.err
19553   rm -f conftest.er1
19554   cat conftest.err >&5
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); } &&
19557          { ac_try='test -z "$ac_c_werror_flag"
19558                          || test ! -s conftest.err'
19559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560   (eval $ac_try) 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; } &&
19564          { ac_try='test -s conftest$ac_exeext'
19565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566   (eval $ac_try) 2>&5
19567   ac_status=$?
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); }; }; then
19570   ac_cv_search_sem_init="-l$ac_lib"
19571 break
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 fi
19577 rm -f conftest.err conftest.$ac_objext \
19578       conftest$ac_exeext conftest.$ac_ext
19579   done
19580 fi
19581 LIBS=$ac_func_search_save_LIBS
19582 fi
19583 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19584 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19585 if test "$ac_cv_search_sem_init" != no; then
19586   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19587
19588 else
19589   { { 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
19590 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;}
19591    { (exit 1); exit 1; }; }
19592
19593 fi
19594
19595 fi
19596
19597
19598 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19599 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19600 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19601   echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603   ac_check_lib_save_LIBS=$LIBS
19604 LIBS="-lsocket  $LIBS"
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h.  */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h.  */
19611
19612 /* Override any gcc2 internal prototype to avoid an error.  */
19613 #ifdef __cplusplus
19614 extern "C"
19615 #endif
19616 /* We use char because int might match the return type of a gcc2
19617    builtin and then its argument prototype would still apply.  */
19618 char getsockname ();
19619 int
19620 main ()
19621 {
19622 getsockname ();
19623   ;
19624   return 0;
19625 }
19626 _ACEOF
19627 rm -f conftest.$ac_objext conftest$ac_exeext
19628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19629   (eval $ac_link) 2>conftest.er1
19630   ac_status=$?
19631   grep -v '^ *+' conftest.er1 >conftest.err
19632   rm -f conftest.er1
19633   cat conftest.err >&5
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); } &&
19636          { ac_try='test -z "$ac_c_werror_flag"
19637                          || test ! -s conftest.err'
19638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639   (eval $ac_try) 2>&5
19640   ac_status=$?
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); }; } &&
19643          { ac_try='test -s conftest$ac_exeext'
19644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645   (eval $ac_try) 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }; }; then
19649   ac_cv_lib_socket_getsockname=yes
19650 else
19651   echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654 ac_cv_lib_socket_getsockname=no
19655 fi
19656 rm -f conftest.err conftest.$ac_objext \
19657       conftest$ac_exeext conftest.$ac_ext
19658 LIBS=$ac_check_lib_save_LIBS
19659 fi
19660 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19661 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19662 if test $ac_cv_lib_socket_getsockname = yes; then
19663   cat >>confdefs.h <<_ACEOF
19664 #define HAVE_LIBSOCKET 1
19665 _ACEOF
19666
19667   LIBS="-lsocket $LIBS"
19668
19669 fi
19670
19671
19672
19673 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19674 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19675 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678   ac_check_lib_save_LIBS=$LIBS
19679 LIBS="-lresolv  $LIBS"
19680 cat >conftest.$ac_ext <<_ACEOF
19681 /* confdefs.h.  */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h.  */
19686
19687 /* Override any gcc2 internal prototype to avoid an error.  */
19688 #ifdef __cplusplus
19689 extern "C"
19690 #endif
19691 /* We use char because int might match the return type of a gcc2
19692    builtin and then its argument prototype would still apply.  */
19693 char inet_aton ();
19694 int
19695 main ()
19696 {
19697 inet_aton ();
19698   ;
19699   return 0;
19700 }
19701 _ACEOF
19702 rm -f conftest.$ac_objext conftest$ac_exeext
19703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19704   (eval $ac_link) 2>conftest.er1
19705   ac_status=$?
19706   grep -v '^ *+' conftest.er1 >conftest.err
19707   rm -f conftest.er1
19708   cat conftest.err >&5
19709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710   (exit $ac_status); } &&
19711          { ac_try='test -z "$ac_c_werror_flag"
19712                          || test ! -s conftest.err'
19713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714   (eval $ac_try) 2>&5
19715   ac_status=$?
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); }; } &&
19718          { ac_try='test -s conftest$ac_exeext'
19719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720   (eval $ac_try) 2>&5
19721   ac_status=$?
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); }; }; then
19724   ac_cv_lib_resolv_inet_aton=yes
19725 else
19726   echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19728
19729 ac_cv_lib_resolv_inet_aton=no
19730 fi
19731 rm -f conftest.err conftest.$ac_objext \
19732       conftest$ac_exeext conftest.$ac_ext
19733 LIBS=$ac_check_lib_save_LIBS
19734 fi
19735 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19736 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19737 if test $ac_cv_lib_resolv_inet_aton = yes; then
19738   cat >>confdefs.h <<_ACEOF
19739 #define HAVE_LIBRESOLV 1
19740 _ACEOF
19741
19742   LIBS="-lresolv $LIBS"
19743
19744 fi
19745
19746
19747
19748 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19749 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19750 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753   ac_check_lib_save_LIBS=$LIBS
19754 LIBS="-lnsl  $LIBS"
19755 cat >conftest.$ac_ext <<_ACEOF
19756 /* confdefs.h.  */
19757 _ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h.  */
19761
19762 /* Override any gcc2 internal prototype to avoid an error.  */
19763 #ifdef __cplusplus
19764 extern "C"
19765 #endif
19766 /* We use char because int might match the return type of a gcc2
19767    builtin and then its argument prototype would still apply.  */
19768 char inet_ntoa ();
19769 int
19770 main ()
19771 {
19772 inet_ntoa ();
19773   ;
19774   return 0;
19775 }
19776 _ACEOF
19777 rm -f conftest.$ac_objext conftest$ac_exeext
19778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19779   (eval $ac_link) 2>conftest.er1
19780   ac_status=$?
19781   grep -v '^ *+' conftest.er1 >conftest.err
19782   rm -f conftest.er1
19783   cat conftest.err >&5
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); } &&
19786          { ac_try='test -z "$ac_c_werror_flag"
19787                          || test ! -s conftest.err'
19788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789   (eval $ac_try) 2>&5
19790   ac_status=$?
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); }; } &&
19793          { ac_try='test -s conftest$ac_exeext'
19794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795   (eval $ac_try) 2>&5
19796   ac_status=$?
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); }; }; then
19799   ac_cv_lib_nsl_inet_ntoa=yes
19800 else
19801   echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804 ac_cv_lib_nsl_inet_ntoa=no
19805 fi
19806 rm -f conftest.err conftest.$ac_objext \
19807       conftest$ac_exeext conftest.$ac_ext
19808 LIBS=$ac_check_lib_save_LIBS
19809 fi
19810 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
19811 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
19812 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
19813   cat >>confdefs.h <<_ACEOF
19814 #define HAVE_LIBNSL 1
19815 _ACEOF
19816
19817   LIBS="-lnsl $LIBS"
19818
19819 fi
19820
19821
19822 OPENSSL_LIBS=
19823 old_LIBS=$LIBS
19824 if test "x$OPENSSL_LIB_DIR" != "x"; then
19825     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
19826 fi
19827 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
19828 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
19829 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
19830   echo $ECHO_N "(cached) $ECHO_C" >&6
19831 else
19832   ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-lcrypto  $LIBS"
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840
19841 /* Override any gcc2 internal prototype to avoid an error.  */
19842 #ifdef __cplusplus
19843 extern "C"
19844 #endif
19845 /* We use char because int might match the return type of a gcc2
19846    builtin and then its argument prototype would still apply.  */
19847 char DH_new ();
19848 int
19849 main ()
19850 {
19851 DH_new ();
19852   ;
19853   return 0;
19854 }
19855 _ACEOF
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19858   (eval $ac_link) 2>conftest.er1
19859   ac_status=$?
19860   grep -v '^ *+' conftest.er1 >conftest.err
19861   rm -f conftest.er1
19862   cat conftest.err >&5
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); } &&
19865          { ac_try='test -z "$ac_c_werror_flag"
19866                          || test ! -s conftest.err'
19867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868   (eval $ac_try) 2>&5
19869   ac_status=$?
19870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871   (exit $ac_status); }; } &&
19872          { ac_try='test -s conftest$ac_exeext'
19873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874   (eval $ac_try) 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); }; }; then
19878   ac_cv_lib_crypto_DH_new=yes
19879 else
19880   echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19882
19883 ac_cv_lib_crypto_DH_new=no
19884 fi
19885 rm -f conftest.err conftest.$ac_objext \
19886       conftest$ac_exeext conftest.$ac_ext
19887 LIBS=$ac_check_lib_save_LIBS
19888 fi
19889 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
19890 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6
19891 if test $ac_cv_lib_crypto_DH_new = yes; then
19892
19893
19894 cat >>confdefs.h <<\_ACEOF
19895 #define HAVE_LIBCRYPTO 1
19896 _ACEOF
19897
19898         echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
19899 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
19900 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
19901   echo $ECHO_N "(cached) $ECHO_C" >&6
19902 else
19903   ac_check_lib_save_LIBS=$LIBS
19904 LIBS="-lssl  $LIBS"
19905 cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h.  */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h.  */
19911
19912 /* Override any gcc2 internal prototype to avoid an error.  */
19913 #ifdef __cplusplus
19914 extern "C"
19915 #endif
19916 /* We use char because int might match the return type of a gcc2
19917    builtin and then its argument prototype would still apply.  */
19918 char SSL_new ();
19919 int
19920 main ()
19921 {
19922 SSL_new ();
19923   ;
19924   return 0;
19925 }
19926 _ACEOF
19927 rm -f conftest.$ac_objext conftest$ac_exeext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929   (eval $ac_link) 2>conftest.er1
19930   ac_status=$?
19931   grep -v '^ *+' conftest.er1 >conftest.err
19932   rm -f conftest.er1
19933   cat conftest.err >&5
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); } &&
19936          { ac_try='test -z "$ac_c_werror_flag"
19937                          || test ! -s conftest.err'
19938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939   (eval $ac_try) 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); }; } &&
19943          { ac_try='test -s conftest$ac_exeext'
19944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945   (eval $ac_try) 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); }; }; then
19949   ac_cv_lib_ssl_SSL_new=yes
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19953
19954 ac_cv_lib_ssl_SSL_new=no
19955 fi
19956 rm -f conftest.err conftest.$ac_objext \
19957       conftest$ac_exeext conftest.$ac_ext
19958 LIBS=$ac_check_lib_save_LIBS
19959 fi
19960 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
19961 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
19962 if test $ac_cv_lib_ssl_SSL_new = yes; then
19963
19964
19965 cat >>confdefs.h <<\_ACEOF
19966 #define HAVE_LIBSSL 1
19967 _ACEOF
19968
19969                 if test "x$OPENSSL_LIB_DIR" != "x"; then
19970                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
19971                 fi
19972                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
19973
19974 fi
19975
19976
19977 fi
19978
19979 LIBS=$old_LIBS
19980
19981
19982 case "$host" in
19983 *-interix*)
19984         CFLAGS="$CFLAGS -D_ALL_SOURCE"
19985         ;;
19986 *-darwin*)
19987         CFLAGS="$CFLAGS -DDARWIN"
19988         ;;
19989 esac
19990
19991
19992
19993
19994
19995
19996 ac_header_dirent=no
19997 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19998   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19999 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20000 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20002   echo $ECHO_N "(cached) $ECHO_C" >&6
20003 else
20004   cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h.  */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h.  */
20010 #include <sys/types.h>
20011 #include <$ac_hdr>
20012
20013 int
20014 main ()
20015 {
20016 if ((DIR *) 0)
20017 return 0;
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 rm -f conftest.$ac_objext
20023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20024   (eval $ac_compile) 2>conftest.er1
20025   ac_status=$?
20026   grep -v '^ *+' conftest.er1 >conftest.err
20027   rm -f conftest.er1
20028   cat conftest.err >&5
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); } &&
20031          { ac_try='test -z "$ac_c_werror_flag"
20032                          || test ! -s conftest.err'
20033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034   (eval $ac_try) 2>&5
20035   ac_status=$?
20036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037   (exit $ac_status); }; } &&
20038          { ac_try='test -s conftest.$ac_objext'
20039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040   (eval $ac_try) 2>&5
20041   ac_status=$?
20042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); }; }; then
20044   eval "$as_ac_Header=yes"
20045 else
20046   echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20048
20049 eval "$as_ac_Header=no"
20050 fi
20051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20052 fi
20053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20056   cat >>confdefs.h <<_ACEOF
20057 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20058 _ACEOF
20059
20060 ac_header_dirent=$ac_hdr; break
20061 fi
20062
20063 done
20064 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20065 if test $ac_header_dirent = dirent.h; then
20066   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20067 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20068 if test "${ac_cv_search_opendir+set}" = set; then
20069   echo $ECHO_N "(cached) $ECHO_C" >&6
20070 else
20071   ac_func_search_save_LIBS=$LIBS
20072 ac_cv_search_opendir=no
20073 cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h.  */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h.  */
20079
20080 /* Override any gcc2 internal prototype to avoid an error.  */
20081 #ifdef __cplusplus
20082 extern "C"
20083 #endif
20084 /* We use char because int might match the return type of a gcc2
20085    builtin and then its argument prototype would still apply.  */
20086 char opendir ();
20087 int
20088 main ()
20089 {
20090 opendir ();
20091   ;
20092   return 0;
20093 }
20094 _ACEOF
20095 rm -f conftest.$ac_objext conftest$ac_exeext
20096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20097   (eval $ac_link) 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); } &&
20104          { ac_try='test -z "$ac_c_werror_flag"
20105                          || test ! -s conftest.err'
20106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107   (eval $ac_try) 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); }; } &&
20111          { ac_try='test -s conftest$ac_exeext'
20112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113   (eval $ac_try) 2>&5
20114   ac_status=$?
20115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116   (exit $ac_status); }; }; then
20117   ac_cv_search_opendir="none required"
20118 else
20119   echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20121
20122 fi
20123 rm -f conftest.err conftest.$ac_objext \
20124       conftest$ac_exeext conftest.$ac_ext
20125 if test "$ac_cv_search_opendir" = no; then
20126   for ac_lib in dir; do
20127     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20128     cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h.  */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h.  */
20134
20135 /* Override any gcc2 internal prototype to avoid an error.  */
20136 #ifdef __cplusplus
20137 extern "C"
20138 #endif
20139 /* We use char because int might match the return type of a gcc2
20140    builtin and then its argument prototype would still apply.  */
20141 char opendir ();
20142 int
20143 main ()
20144 {
20145 opendir ();
20146   ;
20147   return 0;
20148 }
20149 _ACEOF
20150 rm -f conftest.$ac_objext conftest$ac_exeext
20151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20152   (eval $ac_link) 2>conftest.er1
20153   ac_status=$?
20154   grep -v '^ *+' conftest.er1 >conftest.err
20155   rm -f conftest.er1
20156   cat conftest.err >&5
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); } &&
20159          { ac_try='test -z "$ac_c_werror_flag"
20160                          || test ! -s conftest.err'
20161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162   (eval $ac_try) 2>&5
20163   ac_status=$?
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); }; } &&
20166          { ac_try='test -s conftest$ac_exeext'
20167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168   (eval $ac_try) 2>&5
20169   ac_status=$?
20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); }; }; then
20172   ac_cv_search_opendir="-l$ac_lib"
20173 break
20174 else
20175   echo "$as_me: failed program was:" >&5
20176 sed 's/^/| /' conftest.$ac_ext >&5
20177
20178 fi
20179 rm -f conftest.err conftest.$ac_objext \
20180       conftest$ac_exeext conftest.$ac_ext
20181   done
20182 fi
20183 LIBS=$ac_func_search_save_LIBS
20184 fi
20185 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20186 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20187 if test "$ac_cv_search_opendir" != no; then
20188   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20189
20190 fi
20191
20192 else
20193   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20194 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20195 if test "${ac_cv_search_opendir+set}" = set; then
20196   echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198   ac_func_search_save_LIBS=$LIBS
20199 ac_cv_search_opendir=no
20200 cat >conftest.$ac_ext <<_ACEOF
20201 /* confdefs.h.  */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h.  */
20206
20207 /* Override any gcc2 internal prototype to avoid an error.  */
20208 #ifdef __cplusplus
20209 extern "C"
20210 #endif
20211 /* We use char because int might match the return type of a gcc2
20212    builtin and then its argument prototype would still apply.  */
20213 char opendir ();
20214 int
20215 main ()
20216 {
20217 opendir ();
20218   ;
20219   return 0;
20220 }
20221 _ACEOF
20222 rm -f conftest.$ac_objext conftest$ac_exeext
20223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20224   (eval $ac_link) 2>conftest.er1
20225   ac_status=$?
20226   grep -v '^ *+' conftest.er1 >conftest.err
20227   rm -f conftest.er1
20228   cat conftest.err >&5
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); } &&
20231          { ac_try='test -z "$ac_c_werror_flag"
20232                          || test ! -s conftest.err'
20233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234   (eval $ac_try) 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; } &&
20238          { ac_try='test -s conftest$ac_exeext'
20239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240   (eval $ac_try) 2>&5
20241   ac_status=$?
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); }; }; then
20244   ac_cv_search_opendir="none required"
20245 else
20246   echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 fi
20250 rm -f conftest.err conftest.$ac_objext \
20251       conftest$ac_exeext conftest.$ac_ext
20252 if test "$ac_cv_search_opendir" = no; then
20253   for ac_lib in x; do
20254     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20255     cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h.  */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h.  */
20261
20262 /* Override any gcc2 internal prototype to avoid an error.  */
20263 #ifdef __cplusplus
20264 extern "C"
20265 #endif
20266 /* We use char because int might match the return type of a gcc2
20267    builtin and then its argument prototype would still apply.  */
20268 char opendir ();
20269 int
20270 main ()
20271 {
20272 opendir ();
20273   ;
20274   return 0;
20275 }
20276 _ACEOF
20277 rm -f conftest.$ac_objext conftest$ac_exeext
20278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20279   (eval $ac_link) 2>conftest.er1
20280   ac_status=$?
20281   grep -v '^ *+' conftest.er1 >conftest.err
20282   rm -f conftest.er1
20283   cat conftest.err >&5
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); } &&
20286          { ac_try='test -z "$ac_c_werror_flag"
20287                          || test ! -s conftest.err'
20288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289   (eval $ac_try) 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); }; } &&
20293          { ac_try='test -s conftest$ac_exeext'
20294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295   (eval $ac_try) 2>&5
20296   ac_status=$?
20297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); }; }; then
20299   ac_cv_search_opendir="-l$ac_lib"
20300 break
20301 else
20302   echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305 fi
20306 rm -f conftest.err conftest.$ac_objext \
20307       conftest$ac_exeext conftest.$ac_ext
20308   done
20309 fi
20310 LIBS=$ac_func_search_save_LIBS
20311 fi
20312 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20313 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20314 if test "$ac_cv_search_opendir" != no; then
20315   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20316
20317 fi
20318
20319 fi
20320
20321 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20322 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20323 if test "${ac_cv_header_stdc+set}" = set; then
20324   echo $ECHO_N "(cached) $ECHO_C" >&6
20325 else
20326   cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h.  */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h.  */
20332 #include <stdlib.h>
20333 #include <stdarg.h>
20334 #include <string.h>
20335 #include <float.h>
20336
20337 int
20338 main ()
20339 {
20340
20341   ;
20342   return 0;
20343 }
20344 _ACEOF
20345 rm -f conftest.$ac_objext
20346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20347   (eval $ac_compile) 2>conftest.er1
20348   ac_status=$?
20349   grep -v '^ *+' conftest.er1 >conftest.err
20350   rm -f conftest.er1
20351   cat conftest.err >&5
20352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353   (exit $ac_status); } &&
20354          { ac_try='test -z "$ac_c_werror_flag"
20355                          || test ! -s conftest.err'
20356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357   (eval $ac_try) 2>&5
20358   ac_status=$?
20359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360   (exit $ac_status); }; } &&
20361          { ac_try='test -s conftest.$ac_objext'
20362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363   (eval $ac_try) 2>&5
20364   ac_status=$?
20365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366   (exit $ac_status); }; }; then
20367   ac_cv_header_stdc=yes
20368 else
20369   echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20371
20372 ac_cv_header_stdc=no
20373 fi
20374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375
20376 if test $ac_cv_header_stdc = yes; then
20377   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20378   cat >conftest.$ac_ext <<_ACEOF
20379 /* confdefs.h.  */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h.  */
20384 #include <string.h>
20385
20386 _ACEOF
20387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20388   $EGREP "memchr" >/dev/null 2>&1; then
20389   :
20390 else
20391   ac_cv_header_stdc=no
20392 fi
20393 rm -f conftest*
20394
20395 fi
20396
20397 if test $ac_cv_header_stdc = yes; then
20398   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20399   cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405 #include <stdlib.h>
20406
20407 _ACEOF
20408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20409   $EGREP "free" >/dev/null 2>&1; then
20410   :
20411 else
20412   ac_cv_header_stdc=no
20413 fi
20414 rm -f conftest*
20415
20416 fi
20417
20418 if test $ac_cv_header_stdc = yes; then
20419   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20420   if test "$cross_compiling" = yes; then
20421   :
20422 else
20423   cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h.  */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h.  */
20429 #include <ctype.h>
20430 #if ((' ' & 0x0FF) == 0x020)
20431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20433 #else
20434 # define ISLOWER(c) \
20435                    (('a' <= (c) && (c) <= 'i') \
20436                      || ('j' <= (c) && (c) <= 'r') \
20437                      || ('s' <= (c) && (c) <= 'z'))
20438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20439 #endif
20440
20441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20442 int
20443 main ()
20444 {
20445   int i;
20446   for (i = 0; i < 256; i++)
20447     if (XOR (islower (i), ISLOWER (i))
20448         || toupper (i) != TOUPPER (i))
20449       exit(2);
20450   exit (0);
20451 }
20452 _ACEOF
20453 rm -f conftest$ac_exeext
20454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20455   (eval $ac_link) 2>&5
20456   ac_status=$?
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460   (eval $ac_try) 2>&5
20461   ac_status=$?
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); }; }; then
20464   :
20465 else
20466   echo "$as_me: program exited with status $ac_status" >&5
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20469
20470 ( exit $ac_status )
20471 ac_cv_header_stdc=no
20472 fi
20473 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20474 fi
20475 fi
20476 fi
20477 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20478 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20479 if test $ac_cv_header_stdc = yes; then
20480
20481 cat >>confdefs.h <<\_ACEOF
20482 #define STDC_HEADERS 1
20483 _ACEOF
20484
20485 fi
20486
20487 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20488 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20489 if test "${ac_cv_header_time+set}" = set; then
20490   echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492   cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498 #include <sys/types.h>
20499 #include <sys/time.h>
20500 #include <time.h>
20501
20502 int
20503 main ()
20504 {
20505 if ((struct tm *) 0)
20506 return 0;
20507   ;
20508   return 0;
20509 }
20510 _ACEOF
20511 rm -f conftest.$ac_objext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20513   (eval $ac_compile) 2>conftest.er1
20514   ac_status=$?
20515   grep -v '^ *+' conftest.er1 >conftest.err
20516   rm -f conftest.er1
20517   cat conftest.err >&5
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); } &&
20520          { ac_try='test -z "$ac_c_werror_flag"
20521                          || test ! -s conftest.err'
20522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523   (eval $ac_try) 2>&5
20524   ac_status=$?
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); }; } &&
20527          { ac_try='test -s conftest.$ac_objext'
20528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529   (eval $ac_try) 2>&5
20530   ac_status=$?
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); }; }; then
20533   ac_cv_header_time=yes
20534 else
20535   echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20537
20538 ac_cv_header_time=no
20539 fi
20540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20541 fi
20542 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20543 echo "${ECHO_T}$ac_cv_header_time" >&6
20544 if test $ac_cv_header_time = yes; then
20545
20546 cat >>confdefs.h <<\_ACEOF
20547 #define TIME_WITH_SYS_TIME 1
20548 _ACEOF
20549
20550 fi
20551
20552 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20553 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20554 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20555   echo $ECHO_N "(cached) $ECHO_C" >&6
20556 else
20557   cat >conftest.$ac_ext <<_ACEOF
20558 /* confdefs.h.  */
20559 _ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h.  */
20563 #include <sys/types.h>
20564 #include <sys/wait.h>
20565 #ifndef WEXITSTATUS
20566 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20567 #endif
20568 #ifndef WIFEXITED
20569 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20570 #endif
20571
20572 int
20573 main ()
20574 {
20575   int s;
20576   wait (&s);
20577   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20578   ;
20579   return 0;
20580 }
20581 _ACEOF
20582 rm -f conftest.$ac_objext
20583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20584   (eval $ac_compile) 2>conftest.er1
20585   ac_status=$?
20586   grep -v '^ *+' conftest.er1 >conftest.err
20587   rm -f conftest.er1
20588   cat conftest.err >&5
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); } &&
20591          { ac_try='test -z "$ac_c_werror_flag"
20592                          || test ! -s conftest.err'
20593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594   (eval $ac_try) 2>&5
20595   ac_status=$?
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); }; } &&
20598          { ac_try='test -s conftest.$ac_objext'
20599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600   (eval $ac_try) 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); }; }; then
20604   ac_cv_header_sys_wait_h=yes
20605 else
20606   echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20608
20609 ac_cv_header_sys_wait_h=no
20610 fi
20611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20612 fi
20613 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20614 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20615 if test $ac_cv_header_sys_wait_h = yes; then
20616
20617 cat >>confdefs.h <<\_ACEOF
20618 #define HAVE_SYS_WAIT_H 1
20619 _ACEOF
20620
20621 fi
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654 for ac_header in \
20655         unistd.h \
20656         crypt.h \
20657         errno.h \
20658         resource.h \
20659         getopt.h \
20660         malloc.h \
20661         utmp.h \
20662         utmpx.h \
20663         signal.h \
20664         sys/select.h \
20665         syslog.h \
20666         inttypes.h \
20667         stdint.h \
20668         stdio.h \
20669         netdb.h \
20670         semaphore.h \
20671         arpa/inet.h \
20672         netinet/in.h \
20673         sys/types.h \
20674         sys/socket.h \
20675         sys/time.h \
20676         sys/wait.h \
20677         sys/security.h \
20678         fcntl.h \
20679         sys/fcntl.h \
20680         sys/stat.h \
20681         sys/prctl.h \
20682         prot.h \
20683         sia.h \
20684         siad.h
20685
20686 do
20687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20689   echo "$as_me:$LINENO: checking for $ac_header" >&5
20690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20692   echo $ECHO_N "(cached) $ECHO_C" >&6
20693 fi
20694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20696 else
20697   # Is the header compilable?
20698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20700 cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h.  */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h.  */
20706 $ac_includes_default
20707 #include <$ac_header>
20708 _ACEOF
20709 rm -f conftest.$ac_objext
20710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20711   (eval $ac_compile) 2>conftest.er1
20712   ac_status=$?
20713   grep -v '^ *+' conftest.er1 >conftest.err
20714   rm -f conftest.er1
20715   cat conftest.err >&5
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } &&
20718          { ac_try='test -z "$ac_c_werror_flag"
20719                          || test ! -s conftest.err'
20720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721   (eval $ac_try) 2>&5
20722   ac_status=$?
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); }; } &&
20725          { ac_try='test -s conftest.$ac_objext'
20726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727   (eval $ac_try) 2>&5
20728   ac_status=$?
20729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730   (exit $ac_status); }; }; then
20731   ac_header_compiler=yes
20732 else
20733   echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20735
20736 ac_header_compiler=no
20737 fi
20738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20740 echo "${ECHO_T}$ac_header_compiler" >&6
20741
20742 # Is the header present?
20743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20745 cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h.  */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h.  */
20751 #include <$ac_header>
20752 _ACEOF
20753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20754   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20755   ac_status=$?
20756   grep -v '^ *+' conftest.er1 >conftest.err
20757   rm -f conftest.er1
20758   cat conftest.err >&5
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); } >/dev/null; then
20761   if test -s conftest.err; then
20762     ac_cpp_err=$ac_c_preproc_warn_flag
20763     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20764   else
20765     ac_cpp_err=
20766   fi
20767 else
20768   ac_cpp_err=yes
20769 fi
20770 if test -z "$ac_cpp_err"; then
20771   ac_header_preproc=yes
20772 else
20773   echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20775
20776   ac_header_preproc=no
20777 fi
20778 rm -f conftest.err conftest.$ac_ext
20779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20780 echo "${ECHO_T}$ac_header_preproc" >&6
20781
20782 # So?  What about this header?
20783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20784   yes:no: )
20785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20789     ac_header_preproc=yes
20790     ;;
20791   no:yes:* )
20792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20794     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20795 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20796     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20798     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20799 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20802     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20804     (
20805       cat <<\_ASBOX
20806 ## ------------------------------------------ ##
20807 ## Report this to the AC_PACKAGE_NAME lists.  ##
20808 ## ------------------------------------------ ##
20809 _ASBOX
20810     ) |
20811       sed "s/^/$as_me: WARNING:     /" >&2
20812     ;;
20813 esac
20814 echo "$as_me:$LINENO: checking for $ac_header" >&5
20815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20817   echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819   eval "$as_ac_Header=\$ac_header_preproc"
20820 fi
20821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20823
20824 fi
20825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20826   cat >>confdefs.h <<_ACEOF
20827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20828 _ACEOF
20829
20830 fi
20831
20832 done
20833
20834
20835 REGEX=no
20836 if test "${ac_cv_header_regex_h+set}" = set; then
20837   echo "$as_me:$LINENO: checking for regex.h" >&5
20838 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20839 if test "${ac_cv_header_regex_h+set}" = set; then
20840   echo $ECHO_N "(cached) $ECHO_C" >&6
20841 fi
20842 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20843 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20844 else
20845   # Is the header compilable?
20846 echo "$as_me:$LINENO: checking regex.h usability" >&5
20847 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20848 cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h.  */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h.  */
20854 $ac_includes_default
20855 #include <regex.h>
20856 _ACEOF
20857 rm -f conftest.$ac_objext
20858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20859   (eval $ac_compile) 2>conftest.er1
20860   ac_status=$?
20861   grep -v '^ *+' conftest.er1 >conftest.err
20862   rm -f conftest.er1
20863   cat conftest.err >&5
20864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865   (exit $ac_status); } &&
20866          { ac_try='test -z "$ac_c_werror_flag"
20867                          || test ! -s conftest.err'
20868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869   (eval $ac_try) 2>&5
20870   ac_status=$?
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); }; } &&
20873          { ac_try='test -s conftest.$ac_objext'
20874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875   (eval $ac_try) 2>&5
20876   ac_status=$?
20877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878   (exit $ac_status); }; }; then
20879   ac_header_compiler=yes
20880 else
20881   echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20883
20884 ac_header_compiler=no
20885 fi
20886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20888 echo "${ECHO_T}$ac_header_compiler" >&6
20889
20890 # Is the header present?
20891 echo "$as_me:$LINENO: checking regex.h presence" >&5
20892 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20893 cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h.  */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h.  */
20899 #include <regex.h>
20900 _ACEOF
20901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20902   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20903   ac_status=$?
20904   grep -v '^ *+' conftest.er1 >conftest.err
20905   rm -f conftest.er1
20906   cat conftest.err >&5
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); } >/dev/null; then
20909   if test -s conftest.err; then
20910     ac_cpp_err=$ac_c_preproc_warn_flag
20911     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20912   else
20913     ac_cpp_err=
20914   fi
20915 else
20916   ac_cpp_err=yes
20917 fi
20918 if test -z "$ac_cpp_err"; then
20919   ac_header_preproc=yes
20920 else
20921   echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20923
20924   ac_header_preproc=no
20925 fi
20926 rm -f conftest.err conftest.$ac_ext
20927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20928 echo "${ECHO_T}$ac_header_preproc" >&6
20929
20930 # So?  What about this header?
20931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20932   yes:no: )
20933     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20934 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20935     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20936 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20937     ac_header_preproc=yes
20938     ;;
20939   no:yes:* )
20940     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20941 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20942     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
20943 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
20944     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20945 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20946     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
20947 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20948     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20949 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20950     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20951 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
20952     (
20953       cat <<\_ASBOX
20954 ## ------------------------------------------ ##
20955 ## Report this to the AC_PACKAGE_NAME lists.  ##
20956 ## ------------------------------------------ ##
20957 _ASBOX
20958     ) |
20959       sed "s/^/$as_me: WARNING:     /" >&2
20960     ;;
20961 esac
20962 echo "$as_me:$LINENO: checking for regex.h" >&5
20963 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20964 if test "${ac_cv_header_regex_h+set}" = set; then
20965   echo $ECHO_N "(cached) $ECHO_C" >&6
20966 else
20967   ac_cv_header_regex_h=$ac_header_preproc
20968 fi
20969 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20970 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20971
20972 fi
20973 if test $ac_cv_header_regex_h = yes; then
20974   cat >>confdefs.h <<\_ACEOF
20975 #define HAVE_REGEX_H 1
20976 _ACEOF
20977
20978 fi
20979
20980
20981 if test "x$ac_cv_header_regex_h" = "xyes"; then
20982   REGEX_EXTENDED=no
20983   REGEX=yes
20984   cat >conftest.$ac_ext <<_ACEOF
20985 /* confdefs.h.  */
20986 _ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h.  */
20990 #include <regex.h>
20991      #ifdef REG_EXTENDED
20992        yes
20993      #endif
20994
20995 _ACEOF
20996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20997   $EGREP "yes" >/dev/null 2>&1; then
20998   cat >>confdefs.h <<\_ACEOF
20999 #define HAVE_REG_EXTENDED 1
21000 _ACEOF
21001  REGEX_EXTENDED=yes
21002 fi
21003 rm -f conftest*
21004
21005 fi
21006
21007
21008
21009 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21010 then
21011   cat >>confdefs.h <<\_ACEOF
21012 #define OSFC2 1
21013 _ACEOF
21014
21015 fi
21016
21017 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21018 then
21019   cat >>confdefs.h <<\_ACEOF
21020 #define OSFSIA 1
21021 _ACEOF
21022
21023 fi
21024
21025 OPENSSL_INCLUDE="-DNO_OPENSSL"
21026 if test "x$OPENSSL_LIBS" = "x"; then
21027     { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
21028 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
21029 else
21030     old_CPPFLAGS=$CPPFLAGS
21031     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21032         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21033     fi
21034         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21035
21036
21037
21038
21039 for ac_header in \
21040         openssl/ssl.h \
21041         openssl/crypto.h \
21042         openssl/err.h \
21043         openssl/engine.h
21044 do
21045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21047   echo "$as_me:$LINENO: checking for $ac_header" >&5
21048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21050   echo $ECHO_N "(cached) $ECHO_C" >&6
21051 fi
21052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21054 else
21055   # Is the header compilable?
21056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21058 cat >conftest.$ac_ext <<_ACEOF
21059 /* confdefs.h.  */
21060 _ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h.  */
21064 $ac_includes_default
21065 #include <$ac_header>
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21069   (eval $ac_compile) 2>conftest.er1
21070   ac_status=$?
21071   grep -v '^ *+' conftest.er1 >conftest.err
21072   rm -f conftest.er1
21073   cat conftest.err >&5
21074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075   (exit $ac_status); } &&
21076          { ac_try='test -z "$ac_c_werror_flag"
21077                          || test ! -s conftest.err'
21078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079   (eval $ac_try) 2>&5
21080   ac_status=$?
21081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082   (exit $ac_status); }; } &&
21083          { ac_try='test -s conftest.$ac_objext'
21084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085   (eval $ac_try) 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); }; }; then
21089   ac_header_compiler=yes
21090 else
21091   echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094 ac_header_compiler=no
21095 fi
21096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21098 echo "${ECHO_T}$ac_header_compiler" >&6
21099
21100 # Is the header present?
21101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21103 cat >conftest.$ac_ext <<_ACEOF
21104 /* confdefs.h.  */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h.  */
21109 #include <$ac_header>
21110 _ACEOF
21111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21113   ac_status=$?
21114   grep -v '^ *+' conftest.er1 >conftest.err
21115   rm -f conftest.er1
21116   cat conftest.err >&5
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); } >/dev/null; then
21119   if test -s conftest.err; then
21120     ac_cpp_err=$ac_c_preproc_warn_flag
21121     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21122   else
21123     ac_cpp_err=
21124   fi
21125 else
21126   ac_cpp_err=yes
21127 fi
21128 if test -z "$ac_cpp_err"; then
21129   ac_header_preproc=yes
21130 else
21131   echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21133
21134   ac_header_preproc=no
21135 fi
21136 rm -f conftest.err conftest.$ac_ext
21137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21138 echo "${ECHO_T}$ac_header_preproc" >&6
21139
21140 # So?  What about this header?
21141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21142   yes:no: )
21143     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21147     ac_header_preproc=yes
21148     ;;
21149   no:yes:* )
21150     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21152     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21153 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21154     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21156     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21157 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21160     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21162     (
21163       cat <<\_ASBOX
21164 ## ------------------------------------------ ##
21165 ## Report this to the AC_PACKAGE_NAME lists.  ##
21166 ## ------------------------------------------ ##
21167 _ASBOX
21168     ) |
21169       sed "s/^/$as_me: WARNING:     /" >&2
21170     ;;
21171 esac
21172 echo "$as_me:$LINENO: checking for $ac_header" >&5
21173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21175   echo $ECHO_N "(cached) $ECHO_C" >&6
21176 else
21177   eval "$as_ac_Header=\$ac_header_preproc"
21178 fi
21179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21181
21182 fi
21183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21184   cat >>confdefs.h <<_ACEOF
21185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21186 _ACEOF
21187
21188 else
21189   OPENSSL_LIBS=
21190
21191 fi
21192
21193 done
21194
21195     if test "x$OPENSSL_LIBS" != "x"; then
21196         echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21197 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21198         cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204 #include <openssl/crypto.h>
21205              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21206              yes
21207              #endif
21208
21209 _ACEOF
21210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21211   $EGREP "yes" >/dev/null 2>&1; then
21212   goodssl="yes"
21213 fi
21214 rm -f conftest*
21215
21216         if test "x$goodssl" != "xyes"; then
21217             echo "$as_me:$LINENO: result: no" >&5
21218 echo "${ECHO_T}no" >&6
21219             OPENSSL_LIBS=
21220         else
21221             echo "$as_me:$LINENO: result: yes" >&5
21222 echo "${ECHO_T}yes" >&6
21223             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21224                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21225             else
21226                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21227             fi
21228         fi
21229     fi
21230     CPPFLAGS=$old_CPPFLAGS
21231 fi
21232
21233
21234 export OPENSSL_LIBS
21235
21236
21237 echo "$as_me:$LINENO: checking for off_t" >&5
21238 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21239 if test "${ac_cv_type_off_t+set}" = set; then
21240   echo $ECHO_N "(cached) $ECHO_C" >&6
21241 else
21242   cat >conftest.$ac_ext <<_ACEOF
21243 /* confdefs.h.  */
21244 _ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h.  */
21248 $ac_includes_default
21249 int
21250 main ()
21251 {
21252 if ((off_t *) 0)
21253   return 0;
21254 if (sizeof (off_t))
21255   return 0;
21256   ;
21257   return 0;
21258 }
21259 _ACEOF
21260 rm -f conftest.$ac_objext
21261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21262   (eval $ac_compile) 2>conftest.er1
21263   ac_status=$?
21264   grep -v '^ *+' conftest.er1 >conftest.err
21265   rm -f conftest.er1
21266   cat conftest.err >&5
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } &&
21269          { ac_try='test -z "$ac_c_werror_flag"
21270                          || test ! -s conftest.err'
21271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272   (eval $ac_try) 2>&5
21273   ac_status=$?
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); }; } &&
21276          { ac_try='test -s conftest.$ac_objext'
21277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278   (eval $ac_try) 2>&5
21279   ac_status=$?
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); }; }; then
21282   ac_cv_type_off_t=yes
21283 else
21284   echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21286
21287 ac_cv_type_off_t=no
21288 fi
21289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21290 fi
21291 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21292 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21293 if test $ac_cv_type_off_t = yes; then
21294   :
21295 else
21296
21297 cat >>confdefs.h <<_ACEOF
21298 #define off_t long
21299 _ACEOF
21300
21301 fi
21302
21303 echo "$as_me:$LINENO: checking for pid_t" >&5
21304 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21305 if test "${ac_cv_type_pid_t+set}" = set; then
21306   echo $ECHO_N "(cached) $ECHO_C" >&6
21307 else
21308   cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h.  */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h.  */
21314 $ac_includes_default
21315 int
21316 main ()
21317 {
21318 if ((pid_t *) 0)
21319   return 0;
21320 if (sizeof (pid_t))
21321   return 0;
21322   ;
21323   return 0;
21324 }
21325 _ACEOF
21326 rm -f conftest.$ac_objext
21327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21328   (eval $ac_compile) 2>conftest.er1
21329   ac_status=$?
21330   grep -v '^ *+' conftest.er1 >conftest.err
21331   rm -f conftest.er1
21332   cat conftest.err >&5
21333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); } &&
21335          { ac_try='test -z "$ac_c_werror_flag"
21336                          || test ! -s conftest.err'
21337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338   (eval $ac_try) 2>&5
21339   ac_status=$?
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); }; } &&
21342          { ac_try='test -s conftest.$ac_objext'
21343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344   (eval $ac_try) 2>&5
21345   ac_status=$?
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); }; }; then
21348   ac_cv_type_pid_t=yes
21349 else
21350   echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21352
21353 ac_cv_type_pid_t=no
21354 fi
21355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21356 fi
21357 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21358 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21359 if test $ac_cv_type_pid_t = yes; then
21360   :
21361 else
21362
21363 cat >>confdefs.h <<_ACEOF
21364 #define pid_t int
21365 _ACEOF
21366
21367 fi
21368
21369 echo "$as_me:$LINENO: checking for size_t" >&5
21370 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21371 if test "${ac_cv_type_size_t+set}" = set; then
21372   echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374   cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h.  */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h.  */
21380 $ac_includes_default
21381 int
21382 main ()
21383 {
21384 if ((size_t *) 0)
21385   return 0;
21386 if (sizeof (size_t))
21387   return 0;
21388   ;
21389   return 0;
21390 }
21391 _ACEOF
21392 rm -f conftest.$ac_objext
21393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21394   (eval $ac_compile) 2>conftest.er1
21395   ac_status=$?
21396   grep -v '^ *+' conftest.er1 >conftest.err
21397   rm -f conftest.er1
21398   cat conftest.err >&5
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); } &&
21401          { ac_try='test -z "$ac_c_werror_flag"
21402                          || test ! -s conftest.err'
21403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404   (eval $ac_try) 2>&5
21405   ac_status=$?
21406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407   (exit $ac_status); }; } &&
21408          { ac_try='test -s conftest.$ac_objext'
21409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410   (eval $ac_try) 2>&5
21411   ac_status=$?
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); }; }; then
21414   ac_cv_type_size_t=yes
21415 else
21416   echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21418
21419 ac_cv_type_size_t=no
21420 fi
21421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21422 fi
21423 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21424 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21425 if test $ac_cv_type_size_t = yes; then
21426   :
21427 else
21428
21429 cat >>confdefs.h <<_ACEOF
21430 #define size_t unsigned
21431 _ACEOF
21432
21433 fi
21434
21435 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21436 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21437 if test "${ac_cv_type_uid_t+set}" = set; then
21438   echo $ECHO_N "(cached) $ECHO_C" >&6
21439 else
21440   cat >conftest.$ac_ext <<_ACEOF
21441 /* confdefs.h.  */
21442 _ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h.  */
21446 #include <sys/types.h>
21447
21448 _ACEOF
21449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21450   $EGREP "uid_t" >/dev/null 2>&1; then
21451   ac_cv_type_uid_t=yes
21452 else
21453   ac_cv_type_uid_t=no
21454 fi
21455 rm -f conftest*
21456
21457 fi
21458 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21459 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21460 if test $ac_cv_type_uid_t = no; then
21461
21462 cat >>confdefs.h <<\_ACEOF
21463 #define uid_t int
21464 _ACEOF
21465
21466
21467 cat >>confdefs.h <<\_ACEOF
21468 #define gid_t int
21469 _ACEOF
21470
21471 fi
21472
21473
21474
21475   echo "$as_me:$LINENO: checking for socklen_t" >&5
21476 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21477 if test "${ac_cv_type_socklen_t+set}" = set; then
21478   echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480    ac_cv_type_socklen_t=no
21481       cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487 #ifdef HAVE_SYS_TYPES_H
21488 #include <sys/types.h>
21489 #endif
21490 #ifdef HAVE_SYS_SOCKET_H
21491 #include <sys/socket.h>
21492 #endif
21493
21494 int
21495 main ()
21496 {
21497 socklen_t foo
21498   ;
21499   return 0;
21500 }
21501 _ACEOF
21502 rm -f conftest.$ac_objext
21503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21504   (eval $ac_compile) 2>conftest.er1
21505   ac_status=$?
21506   grep -v '^ *+' conftest.er1 >conftest.err
21507   rm -f conftest.er1
21508   cat conftest.err >&5
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); } &&
21511          { ac_try='test -z "$ac_c_werror_flag"
21512                          || test ! -s conftest.err'
21513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514   (eval $ac_try) 2>&5
21515   ac_status=$?
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); }; } &&
21518          { ac_try='test -s conftest.$ac_objext'
21519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520   (eval $ac_try) 2>&5
21521   ac_status=$?
21522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523   (exit $ac_status); }; }; then
21524   ac_cv_type_socklen_t=yes
21525 else
21526   echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21528
21529 fi
21530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21531
21532
21533 fi
21534 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21535 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21536
21537   if test "$ac_cv_type_socklen_t" != "yes"; then
21538          cat >>confdefs.h <<\_ACEOF
21539 #define socklen_t int
21540 _ACEOF
21541
21542   fi
21543
21544
21545
21546   echo "$as_me:$LINENO: checking for uint8_t" >&5
21547 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21548 if test "${ac_cv_type_uint8_t+set}" = set; then
21549   echo $ECHO_N "(cached) $ECHO_C" >&6
21550 else
21551    ac_cv_type_uint8_t=no
21552       cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h.  */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h.  */
21558 #ifdef HAVE_INTTYPES_H
21559 #include <inttypes.h>
21560 #endif
21561 #ifdef HAVE_STDINT_H
21562 #include <stdint.h>
21563 #endif
21564
21565 int
21566 main ()
21567 {
21568 uint8_t foo
21569   ;
21570   return 0;
21571 }
21572 _ACEOF
21573 rm -f conftest.$ac_objext
21574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21575   (eval $ac_compile) 2>conftest.er1
21576   ac_status=$?
21577   grep -v '^ *+' conftest.er1 >conftest.err
21578   rm -f conftest.er1
21579   cat conftest.err >&5
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); } &&
21582          { ac_try='test -z "$ac_c_werror_flag"
21583                          || test ! -s conftest.err'
21584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585   (eval $ac_try) 2>&5
21586   ac_status=$?
21587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588   (exit $ac_status); }; } &&
21589          { ac_try='test -s conftest.$ac_objext'
21590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591   (eval $ac_try) 2>&5
21592   ac_status=$?
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); }; }; then
21595   ac_cv_type_uint8_t=yes
21596 else
21597   echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600 fi
21601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21602
21603
21604 fi
21605 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21606 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21607
21608   if test "$ac_cv_type_uint8_t" != "yes"; then
21609          cat >>confdefs.h <<\_ACEOF
21610 #define uint8_t unsigned char
21611 _ACEOF
21612
21613   fi
21614
21615
21616
21617   echo "$as_me:$LINENO: checking for uint16_t" >&5
21618 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21619 if test "${ac_cv_type_uint16_t+set}" = set; then
21620   echo $ECHO_N "(cached) $ECHO_C" >&6
21621 else
21622    ac_cv_type_uint16_t=no
21623       cat >conftest.$ac_ext <<_ACEOF
21624 /* confdefs.h.  */
21625 _ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h.  */
21629 #ifdef HAVE_INTTYPES_H
21630 #include <inttypes.h>
21631 #endif
21632 #ifdef HAVE_STDINT_H
21633 #include <stdint.h>
21634 #endif
21635
21636 int
21637 main ()
21638 {
21639 uint16_t foo
21640   ;
21641   return 0;
21642 }
21643 _ACEOF
21644 rm -f conftest.$ac_objext
21645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21646   (eval $ac_compile) 2>conftest.er1
21647   ac_status=$?
21648   grep -v '^ *+' conftest.er1 >conftest.err
21649   rm -f conftest.er1
21650   cat conftest.err >&5
21651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652   (exit $ac_status); } &&
21653          { ac_try='test -z "$ac_c_werror_flag"
21654                          || test ! -s conftest.err'
21655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656   (eval $ac_try) 2>&5
21657   ac_status=$?
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); }; } &&
21660          { ac_try='test -s conftest.$ac_objext'
21661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662   (eval $ac_try) 2>&5
21663   ac_status=$?
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); }; }; then
21666   ac_cv_type_uint16_t=yes
21667 else
21668   echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21670
21671 fi
21672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21673
21674
21675 fi
21676 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21677 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
21678
21679   if test "$ac_cv_type_uint16_t" != "yes"; then
21680          cat >>confdefs.h <<\_ACEOF
21681 #define uint16_t unsigned short
21682 _ACEOF
21683
21684   fi
21685
21686
21687
21688   echo "$as_me:$LINENO: checking for uint32_t" >&5
21689 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
21690 if test "${ac_cv_type_uint32_t+set}" = set; then
21691   echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693    ac_cv_type_uint32_t=no
21694       cat >conftest.$ac_ext <<_ACEOF
21695 /* confdefs.h.  */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h.  */
21700 #ifdef HAVE_INTTYPES_H
21701 #include <inttypes.h>
21702 #endif
21703 #ifdef HAVE_STDINT_H
21704 #include <stdint.h>
21705 #endif
21706
21707 int
21708 main ()
21709 {
21710 uint32_t foo
21711   ;
21712   return 0;
21713 }
21714 _ACEOF
21715 rm -f conftest.$ac_objext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717   (eval $ac_compile) 2>conftest.er1
21718   ac_status=$?
21719   grep -v '^ *+' conftest.er1 >conftest.err
21720   rm -f conftest.er1
21721   cat conftest.err >&5
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); } &&
21724          { ac_try='test -z "$ac_c_werror_flag"
21725                          || test ! -s conftest.err'
21726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727   (eval $ac_try) 2>&5
21728   ac_status=$?
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); }; } &&
21731          { ac_try='test -s conftest.$ac_objext'
21732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733   (eval $ac_try) 2>&5
21734   ac_status=$?
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); }; }; then
21737   ac_cv_type_uint32_t=yes
21738 else
21739   echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21741
21742 fi
21743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21744
21745
21746 fi
21747 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21748 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
21749
21750   if test "$ac_cv_type_uint32_t" != "yes"; then
21751          cat >>confdefs.h <<\_ACEOF
21752 #define uint32_t unsigned int
21753 _ACEOF
21754
21755   fi
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782 for ac_func in \
21783         getopt_long \
21784         lockf \
21785         strsignal \
21786         sigaction \
21787         sigprocmask \
21788         pthread_sigmask \
21789         snprintf \
21790         vsnprintf \
21791         setsid \
21792         strncasecmp \
21793         strcasecmp \
21794         localtime_r \
21795         ctime_r \
21796         gmtime_r \
21797         strsep \
21798         inet_aton \
21799         inet_pton \
21800         inet_ntop \
21801         gethostname \
21802         setlinebuf \
21803         setvbuf \
21804         getusershell \
21805         initgroups \
21806         closefrom
21807
21808 do
21809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21810 echo "$as_me:$LINENO: checking for $ac_func" >&5
21811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21812 if eval "test \"\${$as_ac_var+set}\" = set"; then
21813   echo $ECHO_N "(cached) $ECHO_C" >&6
21814 else
21815   cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h.  */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h.  */
21821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21823 #define $ac_func innocuous_$ac_func
21824
21825 /* System header to define __stub macros and hopefully few prototypes,
21826     which can conflict with char $ac_func (); below.
21827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21828     <limits.h> exists even on freestanding compilers.  */
21829
21830 #ifdef __STDC__
21831 # include <limits.h>
21832 #else
21833 # include <assert.h>
21834 #endif
21835
21836 #undef $ac_func
21837
21838 /* Override any gcc2 internal prototype to avoid an error.  */
21839 #ifdef __cplusplus
21840 extern "C"
21841 {
21842 #endif
21843 /* We use char because int might match the return type of a gcc2
21844    builtin and then its argument prototype would still apply.  */
21845 char $ac_func ();
21846 /* The GNU C library defines this for functions which it implements
21847     to always fail with ENOSYS.  Some functions are actually named
21848     something starting with __ and the normal name is an alias.  */
21849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21850 choke me
21851 #else
21852 char (*f) () = $ac_func;
21853 #endif
21854 #ifdef __cplusplus
21855 }
21856 #endif
21857
21858 int
21859 main ()
21860 {
21861 return f != $ac_func;
21862   ;
21863   return 0;
21864 }
21865 _ACEOF
21866 rm -f conftest.$ac_objext conftest$ac_exeext
21867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21868   (eval $ac_link) 2>conftest.er1
21869   ac_status=$?
21870   grep -v '^ *+' conftest.er1 >conftest.err
21871   rm -f conftest.er1
21872   cat conftest.err >&5
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); } &&
21875          { ac_try='test -z "$ac_c_werror_flag"
21876                          || test ! -s conftest.err'
21877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878   (eval $ac_try) 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; } &&
21882          { ac_try='test -s conftest$ac_exeext'
21883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884   (eval $ac_try) 2>&5
21885   ac_status=$?
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); }; }; then
21888   eval "$as_ac_var=yes"
21889 else
21890   echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21892
21893 eval "$as_ac_var=no"
21894 fi
21895 rm -f conftest.err conftest.$ac_objext \
21896       conftest$ac_exeext conftest.$ac_ext
21897 fi
21898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21900 if test `eval echo '${'$as_ac_var'}'` = yes; then
21901   cat >>confdefs.h <<_ACEOF
21902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21903 _ACEOF
21904
21905 fi
21906 done
21907
21908 for ac_func in \
21909         crypt \
21910         strncasecmp \
21911         strcasecmp \
21912         inet_aton \
21913         gethostname \
21914         setlinebuf \
21915         getusershell \
21916         endusershell
21917
21918 do
21919 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
21920 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
21921 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
21922   echo $ECHO_N "(cached) $ECHO_C" >&6
21923 else
21924   cat >conftest.$ac_ext <<_ACEOF
21925 /* confdefs.h.  */
21926 _ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h.  */
21930
21931 #include <stdio.h>
21932 #include <string.h>
21933 #ifdef HAVE_UNISTD_H
21934 #include <unistd.h>
21935 #endif
21936 #ifdef HAVE_CRYPT_H
21937 #include <crypt.h>
21938 #endif
21939 #ifdef HAVE_ERRNO_H
21940 #include <errno.h>
21941 #endif
21942 #ifdef HAVE_RESOURCE_H
21943 #include <resource.h>
21944 #endif
21945 #ifdef HAVE_GETOPT_H
21946 #include <getopt.h>
21947 #endif
21948 #ifdef HAVE_MALLOC_H
21949 #include <malloc.h>
21950 #endif
21951 #ifdef HAVE_UTMP_H
21952 #include <utmp.h>
21953 #endif
21954 #ifdef HAVE_UTMPX_H
21955 #include <utmpx.h>
21956 #endif
21957 #ifdef HAVE_SYS_SELECT_H
21958 #include <sys/select.h>
21959 #endif
21960 #ifdef HAVE_DLFCN_H
21961 #include <dlfcn.h>
21962 #endif
21963 #ifdef HAVE_REGEX_H
21964 #include <regex.h>
21965 #endif
21966 #ifdef HAVE_SYSLOG_H
21967 #include <syslog.h>
21968 #endif
21969 #ifdef HAVE_INTTYPES_H
21970 #include <inttypes.h>
21971 #endif
21972 #ifdef HAVE_STDINT_H
21973 #include <stdint.h>
21974 #endif
21975 #ifdef HAVE_ARPA_INET_H
21976 #include <arpa/inet.h>
21977 #endif
21978
21979 int
21980 main ()
21981 {
21982 char *(*pfn) = (char *(*)) $ac_func
21983   ;
21984   return 0;
21985 }
21986 _ACEOF
21987 rm -f conftest.$ac_objext
21988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21989   (eval $ac_compile) 2>conftest.er1
21990   ac_status=$?
21991   grep -v '^ *+' conftest.er1 >conftest.err
21992   rm -f conftest.er1
21993   cat conftest.err >&5
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); } &&
21996          { ac_try='test -z "$ac_c_werror_flag"
21997                          || test ! -s conftest.err'
21998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999   (eval $ac_try) 2>&5
22000   ac_status=$?
22001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002   (exit $ac_status); }; } &&
22003          { ac_try='test -s conftest.$ac_objext'
22004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22005   (eval $ac_try) 2>&5
22006   ac_status=$?
22007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008   (exit $ac_status); }; }; then
22009   eval "radius_cv_decl_needed_$ac_func=no"
22010 else
22011   echo "$as_me: failed program was:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22013
22014 eval "radius_cv_decl_needed_$ac_func=yes"
22015 fi
22016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22017 fi
22018
22019 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22020   echo "$as_me:$LINENO: result: yes" >&5
22021 echo "${ECHO_T}yes" >&6
22022   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22023   cat >>confdefs.h <<_ACEOF
22024 #define $radius_tr_decl 1
22025 _ACEOF
22026
22027 else
22028   echo "$as_me:$LINENO: result: no" >&5
22029 echo "${ECHO_T}no" >&6
22030 fi
22031
22032 done
22033
22034
22035 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22036 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22037 if test "${ac_cv_type_signal+set}" = set; then
22038   echo $ECHO_N "(cached) $ECHO_C" >&6
22039 else
22040   cat >conftest.$ac_ext <<_ACEOF
22041 /* confdefs.h.  */
22042 _ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h.  */
22046 #include <sys/types.h>
22047 #include <signal.h>
22048 #ifdef signal
22049 # undef signal
22050 #endif
22051 #ifdef __cplusplus
22052 extern "C" void (*signal (int, void (*)(int)))(int);
22053 #else
22054 void (*signal ()) ();
22055 #endif
22056
22057 int
22058 main ()
22059 {
22060 int i;
22061   ;
22062   return 0;
22063 }
22064 _ACEOF
22065 rm -f conftest.$ac_objext
22066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22067   (eval $ac_compile) 2>conftest.er1
22068   ac_status=$?
22069   grep -v '^ *+' conftest.er1 >conftest.err
22070   rm -f conftest.er1
22071   cat conftest.err >&5
22072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073   (exit $ac_status); } &&
22074          { ac_try='test -z "$ac_c_werror_flag"
22075                          || test ! -s conftest.err'
22076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077   (eval $ac_try) 2>&5
22078   ac_status=$?
22079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080   (exit $ac_status); }; } &&
22081          { ac_try='test -s conftest.$ac_objext'
22082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083   (eval $ac_try) 2>&5
22084   ac_status=$?
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); }; }; then
22087   ac_cv_type_signal=void
22088 else
22089   echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22091
22092 ac_cv_type_signal=int
22093 fi
22094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22095 fi
22096 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22097 echo "${ECHO_T}$ac_cv_type_signal" >&6
22098
22099 cat >>confdefs.h <<_ACEOF
22100 #define RETSIGTYPE $ac_cv_type_signal
22101 _ACEOF
22102
22103
22104
22105 if test "x$ac_cv_header_utmpx_h" = "xyes"
22106 then
22107
22108   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22109 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
22110
22111
22112   cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h.  */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h.  */
22118
22119 #include <utmpx.h>
22120 #ifndef offsetof
22121 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22122 #endif
22123
22124 int
22125 main ()
22126 {
22127  int foo = offsetof(struct utmpx, ut_xtime)
22128   ;
22129   return 0;
22130 }
22131 _ACEOF
22132 rm -f conftest.$ac_objext
22133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22134   (eval $ac_compile) 2>conftest.er1
22135   ac_status=$?
22136   grep -v '^ *+' conftest.er1 >conftest.err
22137   rm -f conftest.er1
22138   cat conftest.err >&5
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); } &&
22141          { ac_try='test -z "$ac_c_werror_flag"
22142                          || test ! -s conftest.err'
22143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144   (eval $ac_try) 2>&5
22145   ac_status=$?
22146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147   (exit $ac_status); }; } &&
22148          { ac_try='test -s conftest.$ac_objext'
22149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150   (eval $ac_try) 2>&5
22151   ac_status=$?
22152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153   (exit $ac_status); }; }; then
22154   has_element=" "
22155 else
22156   echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22158
22159 has_element=
22160 fi
22161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22162
22163   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22164   if test "x$has_element" != "x"; then
22165     echo "$as_me:$LINENO: result: yes" >&5
22166 echo "${ECHO_T}yes" >&6
22167     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22168   else
22169     echo "$as_me:$LINENO: result: no" >&5
22170 echo "${ECHO_T}no" >&6
22171     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22172  fi
22173
22174  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22175  then
22176    cat >>confdefs.h <<\_ACEOF
22177 #define ut_xtime ut_tv.tv_sec
22178 _ACEOF
22179
22180  fi
22181 fi
22182
22183
22184   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22185 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
22186
22187
22188   cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h.  */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h.  */
22194
22195 #include <netinet/in.h>
22196 #ifndef offsetof
22197 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22198 #endif
22199
22200 int
22201 main ()
22202 {
22203  int foo = offsetof(struct in_pktinfo, ipi_addr)
22204   ;
22205   return 0;
22206 }
22207 _ACEOF
22208 rm -f conftest.$ac_objext
22209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22210   (eval $ac_compile) 2>conftest.er1
22211   ac_status=$?
22212   grep -v '^ *+' conftest.er1 >conftest.err
22213   rm -f conftest.er1
22214   cat conftest.err >&5
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); } &&
22217          { ac_try='test -z "$ac_c_werror_flag"
22218                          || test ! -s conftest.err'
22219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22220   (eval $ac_try) 2>&5
22221   ac_status=$?
22222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); }; } &&
22224          { ac_try='test -s conftest.$ac_objext'
22225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226   (eval $ac_try) 2>&5
22227   ac_status=$?
22228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229   (exit $ac_status); }; }; then
22230   has_element=" "
22231 else
22232   echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22234
22235 has_element=
22236 fi
22237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22238
22239   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22240   if test "x$has_element" != "x"; then
22241     echo "$as_me:$LINENO: result: yes" >&5
22242 echo "${ECHO_T}yes" >&6
22243     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22244   else
22245     echo "$as_me:$LINENO: result: no" >&5
22246 echo "${ECHO_T}no" >&6
22247     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22248  fi
22249
22250 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22251 then
22252         cat >>confdefs.h <<\_ACEOF
22253 #define HAVE_IP_PKTINFO 1
22254 _ACEOF
22255
22256 fi
22257
22258
22259 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22260 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22261 if test "${ac_cv_c_const+set}" = set; then
22262   echo $ECHO_N "(cached) $ECHO_C" >&6
22263 else
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
22271 int
22272 main ()
22273 {
22274 /* FIXME: Include the comments suggested by Paul. */
22275 #ifndef __cplusplus
22276   /* Ultrix mips cc rejects this.  */
22277   typedef int charset[2];
22278   const charset x;
22279   /* SunOS 4.1.1 cc rejects this.  */
22280   char const *const *ccp;
22281   char **p;
22282   /* NEC SVR4.0.2 mips cc rejects this.  */
22283   struct point {int x, y;};
22284   static struct point const zero = {0,0};
22285   /* AIX XL C 1.02.0.0 rejects this.
22286      It does not let you subtract one const X* pointer from another in
22287      an arm of an if-expression whose if-part is not a constant
22288      expression */
22289   const char *g = "string";
22290   ccp = &g + (g ? g-g : 0);
22291   /* HPUX 7.0 cc rejects these. */
22292   ++ccp;
22293   p = (char**) ccp;
22294   ccp = (char const *const *) p;
22295   { /* SCO 3.2v4 cc rejects this.  */
22296     char *t;
22297     char const *s = 0 ? (char *) 0 : (char const *) 0;
22298
22299     *t++ = 0;
22300   }
22301   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22302     int x[] = {25, 17};
22303     const int *foo = &x[0];
22304     ++foo;
22305   }
22306   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22307     typedef const int *iptr;
22308     iptr p = 0;
22309     ++p;
22310   }
22311   { /* AIX XL C 1.02.0.0 rejects this saying
22312        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22313     struct s { int j; const int *ap[3]; };
22314     struct s *b; b->j = 5;
22315   }
22316   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22317     const int foo = 10;
22318   }
22319 #endif
22320
22321   ;
22322   return 0;
22323 }
22324 _ACEOF
22325 rm -f conftest.$ac_objext
22326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22327   (eval $ac_compile) 2>conftest.er1
22328   ac_status=$?
22329   grep -v '^ *+' conftest.er1 >conftest.err
22330   rm -f conftest.er1
22331   cat conftest.err >&5
22332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333   (exit $ac_status); } &&
22334          { ac_try='test -z "$ac_c_werror_flag"
22335                          || test ! -s conftest.err'
22336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337   (eval $ac_try) 2>&5
22338   ac_status=$?
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); }; } &&
22341          { ac_try='test -s conftest.$ac_objext'
22342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343   (eval $ac_try) 2>&5
22344   ac_status=$?
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); }; }; then
22347   ac_cv_c_const=yes
22348 else
22349   echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22351
22352 ac_cv_c_const=no
22353 fi
22354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22355 fi
22356 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22357 echo "${ECHO_T}$ac_cv_c_const" >&6
22358 if test $ac_cv_c_const = no; then
22359
22360 cat >>confdefs.h <<\_ACEOF
22361 #define const
22362 _ACEOF
22363
22364 fi
22365
22366
22367 echo "$as_me:$LINENO: checking type of OS" >&5
22368 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22369 OS=`uname -s`
22370 echo "$as_me:$LINENO: result: $OS" >&5
22371 echo "${ECHO_T}$OS" >&6
22372 if test "$OS" = "OS/2"; then
22373         LIBPREFIX=
22374 else
22375         LIBPREFIX=lib
22376 fi
22377
22378
22379 if test "x$GCC" = "xyes"; then
22380     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22381 fi
22382
22383 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22384 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22385 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22386   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22387   CFLAGS="$CFLAGS $devflags"
22388   INSTALLSTRIP=""
22389   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
22390 echo "${ECHO_T}yes.  Using $devflags" >&6
22391 else
22392   devflags=""
22393   CFLAGS="$CFLAGS -DNDEBUG"
22394   INSTALLSTRIP="-s"
22395   echo "$as_me:$LINENO: result: no." >&5
22396 echo "${ECHO_T}no." >&6
22397 fi
22398
22399
22400 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22401 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22402 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22403   echo $ECHO_N "(cached) $ECHO_C" >&6
22404 else
22405   ac_check_lib_save_LIBS=$LIBS
22406 LIBS="-lcrypt  $LIBS"
22407 cat >conftest.$ac_ext <<_ACEOF
22408 /* confdefs.h.  */
22409 _ACEOF
22410 cat confdefs.h >>conftest.$ac_ext
22411 cat >>conftest.$ac_ext <<_ACEOF
22412 /* end confdefs.h.  */
22413
22414 /* Override any gcc2 internal prototype to avoid an error.  */
22415 #ifdef __cplusplus
22416 extern "C"
22417 #endif
22418 /* We use char because int might match the return type of a gcc2
22419    builtin and then its argument prototype would still apply.  */
22420 char crypt ();
22421 int
22422 main ()
22423 {
22424 crypt ();
22425   ;
22426   return 0;
22427 }
22428 _ACEOF
22429 rm -f conftest.$ac_objext conftest$ac_exeext
22430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22431   (eval $ac_link) 2>conftest.er1
22432   ac_status=$?
22433   grep -v '^ *+' conftest.er1 >conftest.err
22434   rm -f conftest.er1
22435   cat conftest.err >&5
22436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437   (exit $ac_status); } &&
22438          { ac_try='test -z "$ac_c_werror_flag"
22439                          || test ! -s conftest.err'
22440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441   (eval $ac_try) 2>&5
22442   ac_status=$?
22443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444   (exit $ac_status); }; } &&
22445          { ac_try='test -s conftest$ac_exeext'
22446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22447   (eval $ac_try) 2>&5
22448   ac_status=$?
22449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450   (exit $ac_status); }; }; then
22451   ac_cv_lib_crypt_crypt=yes
22452 else
22453   echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22455
22456 ac_cv_lib_crypt_crypt=no
22457 fi
22458 rm -f conftest.err conftest.$ac_objext \
22459       conftest$ac_exeext conftest.$ac_ext
22460 LIBS=$ac_check_lib_save_LIBS
22461 fi
22462 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22463 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22464 if test $ac_cv_lib_crypt_crypt = yes; then
22465   CRYPTLIB="-lcrypt"
22466
22467 fi
22468
22469 if test "$CRYPTLIB" != ""; then
22470   cat >>confdefs.h <<\_ACEOF
22471 #define HAVE_CRYPT 1
22472 _ACEOF
22473
22474 else
22475   echo "$as_me:$LINENO: checking for crypt" >&5
22476 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
22477 if test "${ac_cv_func_crypt+set}" = set; then
22478   echo $ECHO_N "(cached) $ECHO_C" >&6
22479 else
22480   cat >conftest.$ac_ext <<_ACEOF
22481 /* confdefs.h.  */
22482 _ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h.  */
22486 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22488 #define crypt innocuous_crypt
22489
22490 /* System header to define __stub macros and hopefully few prototypes,
22491     which can conflict with char crypt (); below.
22492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22493     <limits.h> exists even on freestanding compilers.  */
22494
22495 #ifdef __STDC__
22496 # include <limits.h>
22497 #else
22498 # include <assert.h>
22499 #endif
22500
22501 #undef crypt
22502
22503 /* Override any gcc2 internal prototype to avoid an error.  */
22504 #ifdef __cplusplus
22505 extern "C"
22506 {
22507 #endif
22508 /* We use char because int might match the return type of a gcc2
22509    builtin and then its argument prototype would still apply.  */
22510 char crypt ();
22511 /* The GNU C library defines this for functions which it implements
22512     to always fail with ENOSYS.  Some functions are actually named
22513     something starting with __ and the normal name is an alias.  */
22514 #if defined (__stub_crypt) || defined (__stub___crypt)
22515 choke me
22516 #else
22517 char (*f) () = crypt;
22518 #endif
22519 #ifdef __cplusplus
22520 }
22521 #endif
22522
22523 int
22524 main ()
22525 {
22526 return f != crypt;
22527   ;
22528   return 0;
22529 }
22530 _ACEOF
22531 rm -f conftest.$ac_objext conftest$ac_exeext
22532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22533   (eval $ac_link) 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } &&
22540          { ac_try='test -z "$ac_c_werror_flag"
22541                          || test ! -s conftest.err'
22542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543   (eval $ac_try) 2>&5
22544   ac_status=$?
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); }; } &&
22547          { ac_try='test -s conftest$ac_exeext'
22548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549   (eval $ac_try) 2>&5
22550   ac_status=$?
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); }; }; then
22553   ac_cv_func_crypt=yes
22554 else
22555   echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22557
22558 ac_cv_func_crypt=no
22559 fi
22560 rm -f conftest.err conftest.$ac_objext \
22561       conftest$ac_exeext conftest.$ac_ext
22562 fi
22563 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22564 echo "${ECHO_T}$ac_cv_func_crypt" >&6
22565 if test $ac_cv_func_crypt = yes; then
22566   cat >>confdefs.h <<\_ACEOF
22567 #define HAVE_CRYPT 1
22568 _ACEOF
22569
22570 fi
22571
22572 fi
22573
22574 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
22575 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
22576 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
22577   echo $ECHO_N "(cached) $ECHO_C" >&6
22578 else
22579   ac_check_lib_save_LIBS=$LIBS
22580 LIBS="-lcipher  $LIBS"
22581 cat >conftest.$ac_ext <<_ACEOF
22582 /* confdefs.h.  */
22583 _ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h.  */
22587
22588 /* Override any gcc2 internal prototype to avoid an error.  */
22589 #ifdef __cplusplus
22590 extern "C"
22591 #endif
22592 /* We use char because int might match the return type of a gcc2
22593    builtin and then its argument prototype would still apply.  */
22594 char setkey ();
22595 int
22596 main ()
22597 {
22598 setkey ();
22599   ;
22600   return 0;
22601 }
22602 _ACEOF
22603 rm -f conftest.$ac_objext conftest$ac_exeext
22604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22605   (eval $ac_link) 2>conftest.er1
22606   ac_status=$?
22607   grep -v '^ *+' conftest.er1 >conftest.err
22608   rm -f conftest.er1
22609   cat conftest.err >&5
22610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); } &&
22612          { ac_try='test -z "$ac_c_werror_flag"
22613                          || test ! -s conftest.err'
22614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615   (eval $ac_try) 2>&5
22616   ac_status=$?
22617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618   (exit $ac_status); }; } &&
22619          { ac_try='test -s conftest$ac_exeext'
22620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22621   (eval $ac_try) 2>&5
22622   ac_status=$?
22623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624   (exit $ac_status); }; }; then
22625   ac_cv_lib_cipher_setkey=yes
22626 else
22627   echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22629
22630 ac_cv_lib_cipher_setkey=no
22631 fi
22632 rm -f conftest.err conftest.$ac_objext \
22633       conftest$ac_exeext conftest.$ac_ext
22634 LIBS=$ac_check_lib_save_LIBS
22635 fi
22636 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
22637 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
22638 if test $ac_cv_lib_cipher_setkey = yes; then
22639   CRYPTLIB="${CRYPTLIB} -lcipher"
22640
22641 fi
22642
22643
22644
22645 if test "x$WITH_SNMP" = "xyes"; then
22646
22647
22648
22649
22650 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
22651 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
22652
22653 cat >conftest.$ac_ext <<_ACEOF
22654 /* confdefs.h.  */
22655 _ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h.  */
22659
22660 #ifdef HAVE_SYS_TYPES_H
22661 #include <sys/types.h>
22662 #endif
22663 #ifdef HAVE_STDINT_H
22664 #include <stdint.h>
22665 #endif
22666 #ifdef HAVE_STDIO_H
22667 #include <stdio.h>
22668 #endif
22669 #ifdef HAVE_NETDB_H
22670 #include <netdb.h>
22671 #endif
22672 #ifdef HAVE_UNISTD_H
22673 #include <unistd.h>
22674 #endif
22675 #include <ucd-snmp/ucd-snmp-config.h>
22676 #include <ucd-snmp/asn1.h>
22677 #include <ucd-snmp/snmp.h>
22678 #include <ucd-snmp/snmp_impl.h>
22679 int
22680 main ()
22681 {
22682  int a = 1;
22683   ;
22684   return 0;
22685 }
22686 _ACEOF
22687 rm -f conftest.$ac_objext
22688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22689   (eval $ac_compile) 2>conftest.er1
22690   ac_status=$?
22691   grep -v '^ *+' conftest.er1 >conftest.err
22692   rm -f conftest.er1
22693   cat conftest.err >&5
22694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695   (exit $ac_status); } &&
22696          { ac_try='test -z "$ac_c_werror_flag"
22697                          || test ! -s conftest.err'
22698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22699   (eval $ac_try) 2>&5
22700   ac_status=$?
22701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702   (exit $ac_status); }; } &&
22703          { ac_try='test -s conftest.$ac_objext'
22704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705   (eval $ac_try) 2>&5
22706   ac_status=$?
22707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708   (exit $ac_status); }; }; then
22709   SNMP_INCLUDE="";ucdsnmp=yes
22710 else
22711   echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22713
22714 ucdsnmp=
22715 fi
22716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22717
22718 if test "x$ucdsnmp" = "x"; then
22719   old_CFLAGS="$CFLAGS"
22720   for try in /usr/include /usr/local/include $with_snmp_include_dir; do
22721     CFLAGS="$old_CFLAGS -I$try"
22722     cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h.  */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h.  */
22728
22729 #ifdef HAVE_SYS_TYPES_H
22730 #include <sys/types.h>
22731 #endif
22732 #ifdef HAVE_STDINT_H
22733 #include <stdint.h>
22734 #endif
22735 #ifdef HAVE_STDIO_H
22736 #include <stdio.h>
22737 #endif
22738 #ifdef HAVE_NETDB_H
22739 #include <netdb.h>
22740 #endif
22741 #ifdef HAVE_UNISTD_H
22742 #include <unistd.h>
22743 #endif
22744 #include <ucd-snmp/ucd-snmp-config.h>
22745 #include <ucd-snmp/asn1.h>
22746 #include <ucd-snmp/snmp.h>
22747 #include <ucd-snmp/snmp_impl.h>
22748 int
22749 main ()
22750 {
22751  int a = 1;
22752   ;
22753   return 0;
22754 }
22755 _ACEOF
22756 rm -f conftest.$ac_objext
22757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22758   (eval $ac_compile) 2>conftest.er1
22759   ac_status=$?
22760   grep -v '^ *+' conftest.er1 >conftest.err
22761   rm -f conftest.er1
22762   cat conftest.err >&5
22763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); } &&
22765          { ac_try='test -z "$ac_c_werror_flag"
22766                          || test ! -s conftest.err'
22767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768   (eval $ac_try) 2>&5
22769   ac_status=$?
22770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771   (exit $ac_status); }; } &&
22772          { ac_try='test -s conftest.$ac_objext'
22773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774   (eval $ac_try) 2>&5
22775   ac_status=$?
22776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777   (exit $ac_status); }; }; then
22778   SNMP_INCLUDE="-I$try";ucdsnmp=yes
22779 else
22780   echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22782
22783 ucdsnmp=
22784 fi
22785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22786     if test "x$ucdsnmp" != "x"; then
22787       break;
22788     fi
22789   done
22790   CFLAGS="$old_CFLAGS"
22791 fi
22792
22793 if test "x$ucdsnmp" = "x"; then
22794   old_CFLAGS="$CFLAGS"
22795   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
22796     CFLAGS="$old_CFLAGS -I$try"
22797 cat >conftest.$ac_ext <<_ACEOF
22798 /* confdefs.h.  */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h.  */
22803
22804 #ifdef HAVE_SYS_TYPES_H
22805 #include <sys/types.h>
22806 #endif
22807 #ifdef HAVE_STDINT_H
22808 #include <stdint.h>
22809 #endif
22810 #ifdef HAVE_STDIO_H
22811 #include <stdio.h>
22812 #endif
22813 #ifdef HAVE_NETDB_H
22814 #include <netdb.h>
22815 #endif
22816 #ifdef HAVE_UNISTD_H
22817 #include <unistd.h>
22818 #endif
22819 #include <asn1.h>
22820 #include <snmp.h>
22821 #include <snmp_impl.h>
22822 int
22823 main ()
22824 {
22825  int a = 1;
22826   ;
22827   return 0;
22828 }
22829 _ACEOF
22830 rm -f conftest.$ac_objext
22831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22832   (eval $ac_compile) 2>conftest.er1
22833   ac_status=$?
22834   grep -v '^ *+' conftest.er1 >conftest.err
22835   rm -f conftest.er1
22836   cat conftest.err >&5
22837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838   (exit $ac_status); } &&
22839          { ac_try='test -z "$ac_c_werror_flag"
22840                          || test ! -s conftest.err'
22841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842   (eval $ac_try) 2>&5
22843   ac_status=$?
22844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845   (exit $ac_status); }; } &&
22846          { ac_try='test -s conftest.$ac_objext'
22847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848   (eval $ac_try) 2>&5
22849   ac_status=$?
22850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851   (exit $ac_status); }; }; then
22852   SNMP_INCLUDE="";ucdsnmp=no
22853 else
22854   echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22856
22857 ucdsnmp=
22858 fi
22859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22860     if test "x$ucdsnmp" != "x"; then
22861       break;
22862     fi
22863   done
22864   CFLAGS="$old_CFLAGS"
22865 fi
22866
22867 if test "x$ucdsnmp" = "x"; then
22868   old_CFLAGS="$CFLAGS"
22869   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
22870     CFLAGS="$old_CFLAGS -I$try"
22871     cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h.  */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h.  */
22877
22878 #ifdef HAVE_SYS_TYPES_H
22879 #include <sys/types.h>
22880 #endif
22881 #ifdef HAVE_STDINT_H
22882 #include <stdint.h>
22883 #endif
22884 #ifdef HAVE_STDIO_H
22885 #include <stdio.h>
22886 #endif
22887 #ifdef HAVE_NETDB_H
22888 #include <netdb.h>
22889 #endif
22890 #ifdef HAVE_UNISTD_H
22891 #include <unistd.h>
22892 #endif
22893 #include <asn1.h>
22894 #include <snmp.h>
22895 #include <snmp_impl.h>
22896 int
22897 main ()
22898 {
22899  int a = 1;
22900   ;
22901   return 0;
22902 }
22903 _ACEOF
22904 rm -f conftest.$ac_objext
22905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22906   (eval $ac_compile) 2>conftest.er1
22907   ac_status=$?
22908   grep -v '^ *+' conftest.er1 >conftest.err
22909   rm -f conftest.er1
22910   cat conftest.err >&5
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); } &&
22913          { ac_try='test -z "$ac_c_werror_flag"
22914                          || test ! -s conftest.err'
22915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916   (eval $ac_try) 2>&5
22917   ac_status=$?
22918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919   (exit $ac_status); }; } &&
22920          { ac_try='test -s conftest.$ac_objext'
22921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922   (eval $ac_try) 2>&5
22923   ac_status=$?
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); }; }; then
22926   SNMP_INCLUDE="-I$try";ucdsnmp=no
22927 else
22928   echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22930
22931 ucdsnmp=
22932 fi
22933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22934     if test "x$ucdsnmp" != "x"; then
22935       break;
22936     fi
22937   done
22938   CFLAGS="$old_CFLAGS"
22939 fi
22940
22941 if test "x$ucdsnmp" = "x"; then
22942   echo "$as_me:$LINENO: result: no" >&5
22943 echo "${ECHO_T}no" >&6
22944 else
22945   if test "x$ucdsnmp" = "xyes"; then
22946     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
22947 echo "${ECHO_T}(ucd-snmp)yes" >&6
22948     cat >>confdefs.h <<\_ACEOF
22949 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
22950 _ACEOF
22951
22952   else
22953     echo "$as_me:$LINENO: result: yes" >&5
22954 echo "${ECHO_T}yes" >&6
22955     cat >>confdefs.h <<\_ACEOF
22956 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
22957 _ACEOF
22958
22959   fi
22960   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
22961 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
22962
22963   old_LIBS="$LIBS"
22964   LIBS="$old_LIBS -lsnmp"
22965   cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h.  */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h.  */
22971 extern char snmp_build_var_op();
22972 int
22973 main ()
22974 {
22975  snmp_build_var_op()
22976   ;
22977   return 0;
22978 }
22979 _ACEOF
22980 rm -f conftest.$ac_objext conftest$ac_exeext
22981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22982   (eval $ac_link) 2>conftest.er1
22983   ac_status=$?
22984   grep -v '^ *+' conftest.er1 >conftest.err
22985   rm -f conftest.er1
22986   cat conftest.err >&5
22987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988   (exit $ac_status); } &&
22989          { ac_try='test -z "$ac_c_werror_flag"
22990                          || test ! -s conftest.err'
22991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992   (eval $ac_try) 2>&5
22993   ac_status=$?
22994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995   (exit $ac_status); }; } &&
22996          { ac_try='test -s conftest$ac_exeext'
22997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22998   (eval $ac_try) 2>&5
22999   ac_status=$?
23000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001   (exit $ac_status); }; }; then
23002   SNMP_LIBS="-lsnmp"
23003 else
23004   echo "$as_me: failed program was:" >&5
23005 sed 's/^/| /' conftest.$ac_ext >&5
23006
23007 SNMP_LIBS=
23008 fi
23009 rm -f conftest.err conftest.$ac_objext \
23010       conftest$ac_exeext conftest.$ac_ext
23011
23012   if test "x$SNMP_LIBS" = "x"; then
23013     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23014       LIBS="$old_LIBS -L$try -lsnmp"
23015       cat >conftest.$ac_ext <<_ACEOF
23016 /* confdefs.h.  */
23017 _ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h.  */
23021 extern char snmp_build_var_op();
23022 int
23023 main ()
23024 {
23025  snmp_build_var_op()
23026   ;
23027   return 0;
23028 }
23029 _ACEOF
23030 rm -f conftest.$ac_objext conftest$ac_exeext
23031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23032   (eval $ac_link) 2>conftest.er1
23033   ac_status=$?
23034   grep -v '^ *+' conftest.er1 >conftest.err
23035   rm -f conftest.er1
23036   cat conftest.err >&5
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); } &&
23039          { ac_try='test -z "$ac_c_werror_flag"
23040                          || test ! -s conftest.err'
23041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042   (eval $ac_try) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); }; } &&
23046          { ac_try='test -s conftest$ac_exeext'
23047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048   (eval $ac_try) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); }; }; then
23052   SNMP_LIBS="-L$try -lsnmp"
23053 else
23054   echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057 SNMP_LIBS=
23058 fi
23059 rm -f conftest.err conftest.$ac_objext \
23060       conftest$ac_exeext conftest.$ac_ext
23061       if test "x$SNMP_LIBS" != "x"; then
23062         break;
23063       fi
23064       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23065       cat >conftest.$ac_ext <<_ACEOF
23066 /* confdefs.h.  */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h.  */
23071 extern char snmp_build_var_op();
23072 int
23073 main ()
23074 {
23075  snmp_build_var_op()
23076   ;
23077   return 0;
23078 }
23079 _ACEOF
23080 rm -f conftest.$ac_objext conftest$ac_exeext
23081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23082   (eval $ac_link) 2>conftest.er1
23083   ac_status=$?
23084   grep -v '^ *+' conftest.er1 >conftest.err
23085   rm -f conftest.er1
23086   cat conftest.err >&5
23087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088   (exit $ac_status); } &&
23089          { ac_try='test -z "$ac_c_werror_flag"
23090                          || test ! -s conftest.err'
23091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092   (eval $ac_try) 2>&5
23093   ac_status=$?
23094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095   (exit $ac_status); }; } &&
23096          { ac_try='test -s conftest$ac_exeext'
23097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098   (eval $ac_try) 2>&5
23099   ac_status=$?
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); }; }; then
23102   SNMP_LIBS="-L$try -lsnmp -lcrypto"
23103 else
23104   echo "$as_me: failed program was:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23106
23107 SNMP_LIBS=
23108 fi
23109 rm -f conftest.err conftest.$ac_objext \
23110       conftest$ac_exeext conftest.$ac_ext
23111       if test "x$SNMP_LIBS" != "x"; then
23112         break;
23113       fi
23114       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23115       cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h.  */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h.  */
23121 extern char snmp_build_var_op();
23122 int
23123 main ()
23124 {
23125  snmp_build_var_op()
23126   ;
23127   return 0;
23128 }
23129 _ACEOF
23130 rm -f conftest.$ac_objext conftest$ac_exeext
23131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23132   (eval $ac_link) 2>conftest.er1
23133   ac_status=$?
23134   grep -v '^ *+' conftest.er1 >conftest.err
23135   rm -f conftest.er1
23136   cat conftest.err >&5
23137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); } &&
23139          { ac_try='test -z "$ac_c_werror_flag"
23140                          || test ! -s conftest.err'
23141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142   (eval $ac_try) 2>&5
23143   ac_status=$?
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); }; } &&
23146          { ac_try='test -s conftest$ac_exeext'
23147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148   (eval $ac_try) 2>&5
23149   ac_status=$?
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); }; }; then
23152   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23153 else
23154   echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23156
23157 SNMP_LIBS=
23158 fi
23159 rm -f conftest.err conftest.$ac_objext \
23160       conftest$ac_exeext conftest.$ac_ext
23161       if test "x$SNMP_LIBS" != "x"; then
23162         break;
23163       fi
23164     done
23165   fi
23166   LIBS="$old_LIBS"
23167
23168           CFLAGS="$old_CFLAGS"
23169   if test "x$SNMP_LIBS" = "x"; then
23170     echo "$as_me:$LINENO: result: no" >&5
23171 echo "${ECHO_T}no" >&6
23172     SNMP_INCLUDE=
23173   else
23174     echo "$as_me:$LINENO: result: yes" >&5
23175 echo "${ECHO_T}yes" >&6
23176     cat >>confdefs.h <<\_ACEOF
23177 #define WITH_SNMP 1
23178 _ACEOF
23179
23180     cat >>confdefs.h <<\_ACEOF
23181 #define HAVE_LIBSNMP 1
23182 _ACEOF
23183
23184   fi
23185 fi
23186
23187 fi
23188
23189 gethostbyaddrrstyle=""
23190 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23191 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
23192 case "$host" in
23193 *-freebsd*)
23194         cat >>confdefs.h <<\_ACEOF
23195 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23196 _ACEOF
23197
23198         gethostbyaddrrstyle=BSD
23199         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23200 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23201         ;;
23202 esac
23203 if test "x$gethostbyaddrrstyle" = "x"; then
23204         cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h.  */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h.  */
23210
23211 #include <stdio.h>
23212 #include <netdb.h>
23213
23214 int
23215 main ()
23216 {
23217  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23218   ;
23219   return 0;
23220 }
23221 _ACEOF
23222 rm -f conftest.$ac_objext conftest$ac_exeext
23223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23224   (eval $ac_link) 2>conftest.er1
23225   ac_status=$?
23226   grep -v '^ *+' conftest.er1 >conftest.err
23227   rm -f conftest.er1
23228   cat conftest.err >&5
23229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); } &&
23231          { ac_try='test -z "$ac_c_werror_flag"
23232                          || test ! -s conftest.err'
23233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23234   (eval $ac_try) 2>&5
23235   ac_status=$?
23236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237   (exit $ac_status); }; } &&
23238          { ac_try='test -s conftest$ac_exeext'
23239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240   (eval $ac_try) 2>&5
23241   ac_status=$?
23242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243   (exit $ac_status); }; }; then
23244
23245         cat >>confdefs.h <<\_ACEOF
23246 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23247 _ACEOF
23248
23249         gethostbyaddrrstyle=GNU
23250
23251 else
23252   echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23254
23255 fi
23256 rm -f conftest.err conftest.$ac_objext \
23257       conftest$ac_exeext conftest.$ac_ext
23258 fi
23259 if test "x$gethostbyaddrrstyle" = "x"; then
23260         cat >conftest.$ac_ext <<_ACEOF
23261 /* confdefs.h.  */
23262 _ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h.  */
23266
23267 #include <stdio.h>
23268 #include <netdb.h>
23269
23270 int
23271 main ()
23272 {
23273  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23274   ;
23275   return 0;
23276 }
23277 _ACEOF
23278 rm -f conftest.$ac_objext conftest$ac_exeext
23279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23280   (eval $ac_link) 2>conftest.er1
23281   ac_status=$?
23282   grep -v '^ *+' conftest.er1 >conftest.err
23283   rm -f conftest.er1
23284   cat conftest.err >&5
23285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286   (exit $ac_status); } &&
23287          { ac_try='test -z "$ac_c_werror_flag"
23288                          || test ! -s conftest.err'
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); }; } &&
23294          { ac_try='test -s conftest$ac_exeext'
23295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296   (eval $ac_try) 2>&5
23297   ac_status=$?
23298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299   (exit $ac_status); }; }; then
23300
23301                 cat >>confdefs.h <<\_ACEOF
23302 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23303 _ACEOF
23304
23305                 gethostbyaddrrstyle=SYSV
23306
23307 else
23308   echo "$as_me: failed program was:" >&5
23309 sed 's/^/| /' conftest.$ac_ext >&5
23310
23311 fi
23312 rm -f conftest.err conftest.$ac_objext \
23313       conftest$ac_exeext conftest.$ac_ext
23314 fi
23315 if test "x$gethostbyaddrrstyle" = "x"; then
23316         cat >conftest.$ac_ext <<_ACEOF
23317 /* confdefs.h.  */
23318 _ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h.  */
23322
23323 #include <stdio.h>
23324 #include <netdb.h>
23325
23326 int
23327 main ()
23328 {
23329  gethostbyaddr(NULL, 0, 0)
23330   ;
23331   return 0;
23332 }
23333 _ACEOF
23334 rm -f conftest.$ac_objext conftest$ac_exeext
23335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23336   (eval $ac_link) 2>conftest.er1
23337   ac_status=$?
23338   grep -v '^ *+' conftest.er1 >conftest.err
23339   rm -f conftest.er1
23340   cat conftest.err >&5
23341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342   (exit $ac_status); } &&
23343          { ac_try='test -z "$ac_c_werror_flag"
23344                          || test ! -s conftest.err'
23345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346   (eval $ac_try) 2>&5
23347   ac_status=$?
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); }; } &&
23350          { ac_try='test -s conftest$ac_exeext'
23351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352   (eval $ac_try) 2>&5
23353   ac_status=$?
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); }; }; then
23356
23357                 cat >>confdefs.h <<\_ACEOF
23358 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23359 _ACEOF
23360
23361                 gethostbyaddrrstyle=BSD
23362
23363 else
23364   echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23366
23367 fi
23368 rm -f conftest.err conftest.$ac_objext \
23369       conftest$ac_exeext conftest.$ac_ext
23370 fi
23371
23372 if test "x$gethostbyaddrrstyle" = "x"; then
23373         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23374 echo "${ECHO_T}none!  It must not exist, here." >&6
23375 else
23376         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23377 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
23378 fi
23379
23380 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23381         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23382 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23383 fi
23384
23385 gethostbynamerstyle=""
23386 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23387 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
23388 cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h.  */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h.  */
23394
23395 #include <stdio.h>
23396 #include <netdb.h>
23397
23398 int
23399 main ()
23400 {
23401  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23402   ;
23403   return 0;
23404 }
23405 _ACEOF
23406 rm -f conftest.$ac_objext conftest$ac_exeext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23408   (eval $ac_link) 2>conftest.er1
23409   ac_status=$?
23410   grep -v '^ *+' conftest.er1 >conftest.err
23411   rm -f conftest.er1
23412   cat conftest.err >&5
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); } &&
23415          { ac_try='test -z "$ac_c_werror_flag"
23416                          || test ! -s conftest.err'
23417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418   (eval $ac_try) 2>&5
23419   ac_status=$?
23420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421   (exit $ac_status); }; } &&
23422          { ac_try='test -s conftest$ac_exeext'
23423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424   (eval $ac_try) 2>&5
23425   ac_status=$?
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); }; }; then
23428
23429         cat >>confdefs.h <<\_ACEOF
23430 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23431 _ACEOF
23432
23433         gethostbynamerstyle=GNU
23434
23435 else
23436   echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23438
23439 fi
23440 rm -f conftest.err conftest.$ac_objext \
23441       conftest$ac_exeext conftest.$ac_ext
23442 if test "x$gethostbynamerstyle" = "x"; then
23443         cat >conftest.$ac_ext <<_ACEOF
23444 /* confdefs.h.  */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h.  */
23449
23450 #include <stdio.h>
23451 #include <netdb.h>
23452
23453 int
23454 main ()
23455 {
23456  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23457   ;
23458   return 0;
23459 }
23460 _ACEOF
23461 rm -f conftest.$ac_objext conftest$ac_exeext
23462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23463   (eval $ac_link) 2>conftest.er1
23464   ac_status=$?
23465   grep -v '^ *+' conftest.er1 >conftest.err
23466   rm -f conftest.er1
23467   cat conftest.err >&5
23468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469   (exit $ac_status); } &&
23470          { ac_try='test -z "$ac_c_werror_flag"
23471                          || test ! -s conftest.err'
23472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473   (eval $ac_try) 2>&5
23474   ac_status=$?
23475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476   (exit $ac_status); }; } &&
23477          { ac_try='test -s conftest$ac_exeext'
23478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479   (eval $ac_try) 2>&5
23480   ac_status=$?
23481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); }; }; then
23483
23484                 cat >>confdefs.h <<\_ACEOF
23485 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23486 _ACEOF
23487
23488                 gethostbynamerstyle=SYSV
23489
23490 else
23491   echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23493
23494 fi
23495 rm -f conftest.err conftest.$ac_objext \
23496       conftest$ac_exeext conftest.$ac_ext
23497 fi
23498 if test "x$gethostbynamerstyle" = "x"; then
23499         cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h.  */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h.  */
23505
23506 #include <stdio.h>
23507 #include <netdb.h>
23508
23509 int
23510 main ()
23511 {
23512  gethostbyname(NULL)
23513   ;
23514   return 0;
23515 }
23516 _ACEOF
23517 rm -f conftest.$ac_objext conftest$ac_exeext
23518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23519   (eval $ac_link) 2>conftest.er1
23520   ac_status=$?
23521   grep -v '^ *+' conftest.er1 >conftest.err
23522   rm -f conftest.er1
23523   cat conftest.err >&5
23524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525   (exit $ac_status); } &&
23526          { ac_try='test -z "$ac_c_werror_flag"
23527                          || test ! -s conftest.err'
23528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23529   (eval $ac_try) 2>&5
23530   ac_status=$?
23531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532   (exit $ac_status); }; } &&
23533          { ac_try='test -s conftest$ac_exeext'
23534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535   (eval $ac_try) 2>&5
23536   ac_status=$?
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); }; }; then
23539
23540                 cat >>confdefs.h <<\_ACEOF
23541 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23542 _ACEOF
23543
23544                 gethostbynamerstyle=BSD
23545
23546 else
23547   echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23549
23550 fi
23551 rm -f conftest.err conftest.$ac_objext \
23552       conftest$ac_exeext conftest.$ac_ext
23553 fi
23554
23555 if test "x$gethostbynamerstyle" = "x"; then
23556         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23557 echo "${ECHO_T}none!  It must not exist, here." >&6
23558 else
23559         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23560 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
23561 fi
23562
23563 if test "x$gethostbynamerstyle" = "xBSD"; then
23564         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23565 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23566 fi
23567
23568 ctimerstyle=""
23569 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23570 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
23571 cat >conftest.$ac_ext <<_ACEOF
23572 /* confdefs.h.  */
23573 _ACEOF
23574 cat confdefs.h >>conftest.$ac_ext
23575 cat >>conftest.$ac_ext <<_ACEOF
23576 /* end confdefs.h.  */
23577
23578 #include <time.h>
23579
23580 int
23581 main ()
23582 {
23583  ctime_r(NULL, NULL, 0)
23584   ;
23585   return 0;
23586 }
23587 _ACEOF
23588 rm -f conftest.$ac_objext conftest$ac_exeext
23589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23590   (eval $ac_link) 2>conftest.er1
23591   ac_status=$?
23592   grep -v '^ *+' conftest.er1 >conftest.err
23593   rm -f conftest.er1
23594   cat conftest.err >&5
23595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596   (exit $ac_status); } &&
23597          { ac_try='test -z "$ac_c_werror_flag"
23598                          || test ! -s conftest.err'
23599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600   (eval $ac_try) 2>&5
23601   ac_status=$?
23602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603   (exit $ac_status); }; } &&
23604          { ac_try='test -s conftest$ac_exeext'
23605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606   (eval $ac_try) 2>&5
23607   ac_status=$?
23608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609   (exit $ac_status); }; }; then
23610
23611         cat >>confdefs.h <<\_ACEOF
23612 #define CTIMERSTYLE SOLARISSTYLE
23613 _ACEOF
23614
23615         ctimerstyle="SOLARIS"
23616
23617 else
23618   echo "$as_me: failed program was:" >&5
23619 sed 's/^/| /' conftest.$ac_ext >&5
23620
23621 fi
23622 rm -f conftest.err conftest.$ac_objext \
23623       conftest$ac_exeext conftest.$ac_ext
23624 if test "x$ctimerstyle" = "x"; then
23625         cat >conftest.$ac_ext <<_ACEOF
23626 /* confdefs.h.  */
23627 _ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h.  */
23631
23632 #include <time.h>
23633
23634 int
23635 main ()
23636 {
23637  ctime_r(NULL, NULL)
23638   ;
23639   return 0;
23640 }
23641 _ACEOF
23642 rm -f conftest.$ac_objext conftest$ac_exeext
23643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23644   (eval $ac_link) 2>conftest.er1
23645   ac_status=$?
23646   grep -v '^ *+' conftest.er1 >conftest.err
23647   rm -f conftest.er1
23648   cat conftest.err >&5
23649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650   (exit $ac_status); } &&
23651          { ac_try='test -z "$ac_c_werror_flag"
23652                          || test ! -s conftest.err'
23653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23654   (eval $ac_try) 2>&5
23655   ac_status=$?
23656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657   (exit $ac_status); }; } &&
23658          { ac_try='test -s conftest$ac_exeext'
23659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660   (eval $ac_try) 2>&5
23661   ac_status=$?
23662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663   (exit $ac_status); }; }; then
23664
23665                 cat >>confdefs.h <<\_ACEOF
23666 #define CTIMERSTYLE POSIXSTYLE
23667 _ACEOF
23668
23669                 ctimerstyle="POSIX"
23670
23671 else
23672   echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23674
23675 fi
23676 rm -f conftest.err conftest.$ac_objext \
23677       conftest$ac_exeext conftest.$ac_ext
23678 fi
23679
23680 if test "x$ctimerstyle" = "x"; then
23681         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23682 echo "${ECHO_T}none!  It must not exist, here." >&6
23683 else
23684         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
23685 echo "${ECHO_T}${ctimerstyle}-style" >&6
23686 fi
23687
23688
23689 if test x"$rad_enable_largefiles" = xyes ; then
23690     echo "$as_me:$LINENO: checking for largefile linkage" >&5
23691 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6
23692     case "$host" in
23693     *-aix4.01*)
23694         echo "$as_me:$LINENO: result: no" >&5
23695 echo "${ECHO_T}no" >&6
23696         { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
23697 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
23698    { (exit 1); exit 1; }; }
23699         ;;
23700     *-aix4*)
23701         echo "$as_me:$LINENO: result: ok" >&5
23702 echo "${ECHO_T}ok" >&6
23703         LFS_CFLAGS="-D_LARGE_FILES"
23704         LFS_LDFLAGS=""
23705         LFS_LIBS=""
23706         ;;
23707     *-hpux*)
23708         echo "$as_me:$LINENO: result: ok" >&5
23709 echo "${ECHO_T}ok" >&6
23710         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23711         LFS_LDFLAGS=""
23712         LFS_LIBS=""
23713         ;;
23714     *-irix*)
23715         echo "$as_me:$LINENO: result: no" >&5
23716 echo "${ECHO_T}no" >&6
23717         { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
23718 echo "$as_me: error: Large files not supported on this platform" >&2;}
23719    { (exit 1); exit 1; }; }
23720         ;;
23721     *-linux*)
23722         echo "$as_me:$LINENO: result: maybe" >&5
23723 echo "${ECHO_T}maybe" >&6
23724         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23725         LFS_LDFLAGS=""
23726         LFS_LIBS=""
23727
23728 cat >>confdefs.h <<\_ACEOF
23729 #define _GNU_SOURCE 1
23730 _ACEOF
23731
23732         ;;
23733     *-solaris*)
23734         echo "$as_me:$LINENO: result: ok" >&5
23735 echo "${ECHO_T}ok" >&6
23736         # Extract the first word of "getconf", so it can be a program name with args.
23737 set dummy getconf; ac_word=$2
23738 echo "$as_me:$LINENO: checking for $ac_word" >&5
23739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23740 if test "${ac_cv_path_GETCONF+set}" = set; then
23741   echo $ECHO_N "(cached) $ECHO_C" >&6
23742 else
23743   case $GETCONF in
23744   [\\/]* | ?:[\\/]*)
23745   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
23746   ;;
23747   *)
23748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23749 for as_dir in $PATH
23750 do
23751   IFS=$as_save_IFS
23752   test -z "$as_dir" && as_dir=.
23753   for ac_exec_ext in '' $ac_executable_extensions; do
23754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23755     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
23756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23757     break 2
23758   fi
23759 done
23760 done
23761
23762   ;;
23763 esac
23764 fi
23765 GETCONF=$ac_cv_path_GETCONF
23766
23767 if test -n "$GETCONF"; then
23768   echo "$as_me:$LINENO: result: $GETCONF" >&5
23769 echo "${ECHO_T}$GETCONF" >&6
23770 else
23771   echo "$as_me:$LINENO: result: no" >&5
23772 echo "${ECHO_T}no" >&6
23773 fi
23774
23775         if test -z "$GETCONF" ; then
23776             { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
23777 echo "$as_me: error: getconf required to configure large file support" >&2;}
23778    { (exit 1); exit 1; }; }
23779         fi
23780         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
23781         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
23782         LFS_LIBS=`$GETCONF LFS_LIBS`
23783         ;;
23784     *)
23785         echo "$as_me:$LINENO: result: maybe" >&5
23786 echo "${ECHO_T}maybe" >&6
23787         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23788         LFS_LDFLAGS=""
23789         LFS_LIBS=""
23790         ;;
23791     esac
23792
23793
23794
23795 fi
23796
23797 HOSTINFO=$host
23798
23799
23800
23801 top_builddir=`pwd`
23802 export top_builddir
23803 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
23804 echo "${ECHO_T}top_builddir=$top_builddir" >&6
23805
23806
23807
23808
23809
23810 mysubdirs=
23811 if test "x$EXPERIMENTAL" = "xyes"; then
23812   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
23813     mysubdirs=`echo $bar`
23814 else
23815         for bar in `cat src/modules/stable`; do
23816     if test -f src/modules/$bar/configure; then
23817       mysubdirs="$mysubdirs src/modules/$bar"
23818     fi
23819   done
23820 fi
23821
23822 if test "x$EXPERIMENTAL" = "xyes"; then
23823   for foo in `ls -1 src/modules | grep rlm_`; do
23824     MODULES="$MODULES $foo"
23825   done
23826 else
23827             for foo in `cat src/modules/stable`; do
23828     MODULES="$MODULES $foo"
23829    done
23830 fi
23831
23832
23833
23834 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
23835
23836
23837
23838
23839
23840
23841
23842 USE_SHARED_LIBS=$enable_shared
23843
23844 USE_STATIC_LIBS=$enable_static
23845
23846
23847
23848
23849
23850 export CFLAGS LIBS
23851
23852                                                                                                                                             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"
23853 cat >confcache <<\_ACEOF
23854 # This file is a shell script that caches the results of configure
23855 # tests run on this system so they can be shared between configure
23856 # scripts and configure runs, see configure's option --config-cache.
23857 # It is not useful on other systems.  If it contains results you don't
23858 # want to keep, you may remove or edit it.
23859 #
23860 # config.status only pays attention to the cache file if you give it
23861 # the --recheck option to rerun configure.
23862 #
23863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23865 # following values.
23866
23867 _ACEOF
23868
23869 # The following way of writing the cache mishandles newlines in values,
23870 # but we know of no workaround that is simple, portable, and efficient.
23871 # So, don't put newlines in cache variables' values.
23872 # Ultrix sh set writes to stderr and can't be redirected directly,
23873 # and sets the high bit in the cache file unless we assign to the vars.
23874 {
23875   (set) 2>&1 |
23876     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23877     *ac_space=\ *)
23878       # `set' does not quote correctly, so add quotes (double-quote
23879       # substitution turns \\\\ into \\, and sed turns \\ into \).
23880       sed -n \
23881         "s/'/'\\\\''/g;
23882           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23883       ;;
23884     *)
23885       # `set' quotes correctly as required by POSIX, so do not add quotes.
23886       sed -n \
23887         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23888       ;;
23889     esac;
23890 } |
23891   sed '
23892      t clear
23893      : clear
23894      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23895      t end
23896      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23897      : end' >>confcache
23898 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23899   if test -w $cache_file; then
23900     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23901     cat confcache >$cache_file
23902   else
23903     echo "not updating unwritable cache $cache_file"
23904   fi
23905 fi
23906 rm -f confcache
23907
23908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23909 # Let make expand exec_prefix.
23910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23911
23912 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23913 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23914 # trailing colons and then remove the whole line if VPATH becomes empty
23915 # (actually we leave an empty line to preserve line numbers).
23916 if test "x$srcdir" = x.; then
23917   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23918 s/:*\$(srcdir):*/:/;
23919 s/:*\${srcdir}:*/:/;
23920 s/:*@srcdir@:*/:/;
23921 s/^\([^=]*=[     ]*\):*/\1/;
23922 s/:*$//;
23923 s/^[^=]*=[       ]*$//;
23924 }'
23925 fi
23926
23927 DEFS=-DHAVE_CONFIG_H
23928
23929 ac_libobjs=
23930 ac_ltlibobjs=
23931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23932   # 1. Remove the extension, and $U if already installed.
23933   ac_i=`echo "$ac_i" |
23934          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23935   # 2. Add them.
23936   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23937   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23938 done
23939 LIBOBJS=$ac_libobjs
23940
23941 LTLIBOBJS=$ac_ltlibobjs
23942
23943
23944
23945 : ${CONFIG_STATUS=./config.status}
23946 ac_clean_files_save=$ac_clean_files
23947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23948 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23949 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23950 cat >$CONFIG_STATUS <<_ACEOF
23951 #! $SHELL
23952 # Generated by $as_me.
23953 # Run this file to recreate the current configuration.
23954 # Compiler output produced by configure, useful for debugging
23955 # configure, is in config.log if it exists.
23956
23957 debug=false
23958 ac_cs_recheck=false
23959 ac_cs_silent=false
23960 SHELL=\${CONFIG_SHELL-$SHELL}
23961 _ACEOF
23962
23963 cat >>$CONFIG_STATUS <<\_ACEOF
23964 ## --------------------- ##
23965 ## M4sh Initialization.  ##
23966 ## --------------------- ##
23967
23968 # Be Bourne compatible
23969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23970   emulate sh
23971   NULLCMD=:
23972   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23973   # is contrary to our usage.  Disable this feature.
23974   alias -g '${1+"$@"}'='"$@"'
23975 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23976   set -o posix
23977 fi
23978 DUALCASE=1; export DUALCASE # for MKS sh
23979
23980 # Support unset when possible.
23981 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23982   as_unset=unset
23983 else
23984   as_unset=false
23985 fi
23986
23987
23988 # Work around bugs in pre-3.0 UWIN ksh.
23989 $as_unset ENV MAIL MAILPATH
23990 PS1='$ '
23991 PS2='> '
23992 PS4='+ '
23993
23994 # NLS nuisances.
23995 for as_var in \
23996   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23997   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23998   LC_TELEPHONE LC_TIME
23999 do
24000   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24001     eval $as_var=C; export $as_var
24002   else
24003     $as_unset $as_var
24004   fi
24005 done
24006
24007 # Required to use basename.
24008 if expr a : '\(a\)' >/dev/null 2>&1; then
24009   as_expr=expr
24010 else
24011   as_expr=false
24012 fi
24013
24014 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24015   as_basename=basename
24016 else
24017   as_basename=false
24018 fi
24019
24020
24021 # Name of the executable.
24022 as_me=`$as_basename "$0" ||
24023 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24024          X"$0" : 'X\(//\)$' \| \
24025          X"$0" : 'X\(/\)$' \| \
24026          .     : '\(.\)' 2>/dev/null ||
24027 echo X/"$0" |
24028     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24029           /^X\/\(\/\/\)$/{ s//\1/; q; }
24030           /^X\/\(\/\).*/{ s//\1/; q; }
24031           s/.*/./; q'`
24032
24033
24034 # PATH needs CR, and LINENO needs CR and PATH.
24035 # Avoid depending upon Character Ranges.
24036 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24037 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24038 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24039 as_cr_digits='0123456789'
24040 as_cr_alnum=$as_cr_Letters$as_cr_digits
24041
24042 # The user is always right.
24043 if test "${PATH_SEPARATOR+set}" != set; then
24044   echo "#! /bin/sh" >conf$$.sh
24045   echo  "exit 0"   >>conf$$.sh
24046   chmod +x conf$$.sh
24047   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24048     PATH_SEPARATOR=';'
24049   else
24050     PATH_SEPARATOR=:
24051   fi
24052   rm -f conf$$.sh
24053 fi
24054
24055
24056   as_lineno_1=$LINENO
24057   as_lineno_2=$LINENO
24058   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24059   test "x$as_lineno_1" != "x$as_lineno_2" &&
24060   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24061   # Find who we are.  Look in the path if we contain no path at all
24062   # relative or not.
24063   case $0 in
24064     *[\\/]* ) as_myself=$0 ;;
24065     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24066 for as_dir in $PATH
24067 do
24068   IFS=$as_save_IFS
24069   test -z "$as_dir" && as_dir=.
24070   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24071 done
24072
24073        ;;
24074   esac
24075   # We did not find ourselves, most probably we were run as `sh COMMAND'
24076   # in which case we are not to be found in the path.
24077   if test "x$as_myself" = x; then
24078     as_myself=$0
24079   fi
24080   if test ! -f "$as_myself"; then
24081     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24082 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24083    { (exit 1); exit 1; }; }
24084   fi
24085   case $CONFIG_SHELL in
24086   '')
24087     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24088 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24089 do
24090   IFS=$as_save_IFS
24091   test -z "$as_dir" && as_dir=.
24092   for as_base in sh bash ksh sh5; do
24093          case $as_dir in
24094          /*)
24095            if ("$as_dir/$as_base" -c '
24096   as_lineno_1=$LINENO
24097   as_lineno_2=$LINENO
24098   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24099   test "x$as_lineno_1" != "x$as_lineno_2" &&
24100   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24101              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24102              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24103              CONFIG_SHELL=$as_dir/$as_base
24104              export CONFIG_SHELL
24105              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24106            fi;;
24107          esac
24108        done
24109 done
24110 ;;
24111   esac
24112
24113   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24114   # uniformly replaced by the line number.  The first 'sed' inserts a
24115   # line-number line before each line; the second 'sed' does the real
24116   # work.  The second script uses 'N' to pair each line-number line
24117   # with the numbered line, and appends trailing '-' during
24118   # substitution so that $LINENO is not a special case at line end.
24119   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24120   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24121   sed '=' <$as_myself |
24122     sed '
24123       N
24124       s,$,-,
24125       : loop
24126       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24127       t loop
24128       s,-$,,
24129       s,^['$as_cr_digits']*\n,,
24130     ' >$as_me.lineno &&
24131   chmod +x $as_me.lineno ||
24132     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24133 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24134    { (exit 1); exit 1; }; }
24135
24136   # Don't try to exec as it changes $[0], causing all sort of problems
24137   # (the dirname of $[0] is not the place where we might find the
24138   # original and so on.  Autoconf is especially sensible to this).
24139   . ./$as_me.lineno
24140   # Exit status is that of the last command.
24141   exit
24142 }
24143
24144
24145 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24146   *c*,-n*) ECHO_N= ECHO_C='
24147 ' ECHO_T='      ' ;;
24148   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24149   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24150 esac
24151
24152 if expr a : '\(a\)' >/dev/null 2>&1; then
24153   as_expr=expr
24154 else
24155   as_expr=false
24156 fi
24157
24158 rm -f conf$$ conf$$.exe conf$$.file
24159 echo >conf$$.file
24160 if ln -s conf$$.file conf$$ 2>/dev/null; then
24161   # We could just check for DJGPP; but this test a) works b) is more generic
24162   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24163   if test -f conf$$.exe; then
24164     # Don't use ln at all; we don't have any links
24165     as_ln_s='cp -p'
24166   else
24167     as_ln_s='ln -s'
24168   fi
24169 elif ln conf$$.file conf$$ 2>/dev/null; then
24170   as_ln_s=ln
24171 else
24172   as_ln_s='cp -p'
24173 fi
24174 rm -f conf$$ conf$$.exe conf$$.file
24175
24176 if mkdir -p . 2>/dev/null; then
24177   as_mkdir_p=:
24178 else
24179   test -d ./-p && rmdir ./-p
24180   as_mkdir_p=false
24181 fi
24182
24183 as_executable_p="test -f"
24184
24185 # Sed expression to map a string onto a valid CPP name.
24186 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24187
24188 # Sed expression to map a string onto a valid variable name.
24189 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24190
24191
24192 # IFS
24193 # We need space, tab and new line, in precisely that order.
24194 as_nl='
24195 '
24196 IFS="   $as_nl"
24197
24198 # CDPATH.
24199 $as_unset CDPATH
24200
24201 exec 6>&1
24202
24203 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24204 # report actual input values of CONFIG_FILES etc. instead of their
24205 # values after options handling.  Logging --version etc. is OK.
24206 exec 5>>config.log
24207 {
24208   echo
24209   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24210 ## Running $as_me. ##
24211 _ASBOX
24212 } >&5
24213 cat >&5 <<_CSEOF
24214
24215 This file was extended by $as_me, which was
24216 generated by GNU Autoconf 2.59.  Invocation command line was
24217
24218   CONFIG_FILES    = $CONFIG_FILES
24219   CONFIG_HEADERS  = $CONFIG_HEADERS
24220   CONFIG_LINKS    = $CONFIG_LINKS
24221   CONFIG_COMMANDS = $CONFIG_COMMANDS
24222   $ $0 $@
24223
24224 _CSEOF
24225 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24226 echo >&5
24227 _ACEOF
24228
24229 # Files that config.status was made for.
24230 if test -n "$ac_config_files"; then
24231   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24232 fi
24233
24234 if test -n "$ac_config_headers"; then
24235   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24236 fi
24237
24238 if test -n "$ac_config_links"; then
24239   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24240 fi
24241
24242 if test -n "$ac_config_commands"; then
24243   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24244 fi
24245
24246 cat >>$CONFIG_STATUS <<\_ACEOF
24247
24248 ac_cs_usage="\
24249 \`$as_me' instantiates files from templates according to the
24250 current configuration.
24251
24252 Usage: $0 [OPTIONS] [FILE]...
24253
24254   -h, --help       print this help, then exit
24255   -V, --version    print version number, then exit
24256   -q, --quiet      do not print progress messages
24257   -d, --debug      don't remove temporary files
24258       --recheck    update $as_me by reconfiguring in the same conditions
24259   --file=FILE[:TEMPLATE]
24260                    instantiate the configuration file FILE
24261   --header=FILE[:TEMPLATE]
24262                    instantiate the configuration header FILE
24263
24264 Configuration files:
24265 $config_files
24266
24267 Configuration headers:
24268 $config_headers
24269
24270 Report bugs to <bug-autoconf@gnu.org>."
24271 _ACEOF
24272
24273 cat >>$CONFIG_STATUS <<_ACEOF
24274 ac_cs_version="\\
24275 config.status
24276 configured by $0, generated by GNU Autoconf 2.59,
24277   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24278
24279 Copyright (C) 2003 Free Software Foundation, Inc.
24280 This config.status script is free software; the Free Software Foundation
24281 gives unlimited permission to copy, distribute and modify it."
24282 srcdir=$srcdir
24283 _ACEOF
24284
24285 cat >>$CONFIG_STATUS <<\_ACEOF
24286 # If no file are specified by the user, then we need to provide default
24287 # value.  By we need to know if files were specified by the user.
24288 ac_need_defaults=:
24289 while test $# != 0
24290 do
24291   case $1 in
24292   --*=*)
24293     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24294     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24295     ac_shift=:
24296     ;;
24297   -*)
24298     ac_option=$1
24299     ac_optarg=$2
24300     ac_shift=shift
24301     ;;
24302   *) # This is not an option, so the user has probably given explicit
24303      # arguments.
24304      ac_option=$1
24305      ac_need_defaults=false;;
24306   esac
24307
24308   case $ac_option in
24309   # Handling of the options.
24310 _ACEOF
24311 cat >>$CONFIG_STATUS <<\_ACEOF
24312   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24313     ac_cs_recheck=: ;;
24314   --version | --vers* | -V )
24315     echo "$ac_cs_version"; exit 0 ;;
24316   --he | --h)
24317     # Conflict between --help and --header
24318     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24319 Try \`$0 --help' for more information." >&5
24320 echo "$as_me: error: ambiguous option: $1
24321 Try \`$0 --help' for more information." >&2;}
24322    { (exit 1); exit 1; }; };;
24323   --help | --hel | -h )
24324     echo "$ac_cs_usage"; exit 0 ;;
24325   --debug | --d* | -d )
24326     debug=: ;;
24327   --file | --fil | --fi | --f )
24328     $ac_shift
24329     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24330     ac_need_defaults=false;;
24331   --header | --heade | --head | --hea )
24332     $ac_shift
24333     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24334     ac_need_defaults=false;;
24335   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24336   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24337     ac_cs_silent=: ;;
24338
24339   # This is an error.
24340   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24341 Try \`$0 --help' for more information." >&5
24342 echo "$as_me: error: unrecognized option: $1
24343 Try \`$0 --help' for more information." >&2;}
24344    { (exit 1); exit 1; }; } ;;
24345
24346   *) ac_config_targets="$ac_config_targets $1" ;;
24347
24348   esac
24349   shift
24350 done
24351
24352 ac_configure_extra_args=
24353
24354 if $ac_cs_silent; then
24355   exec 6>/dev/null
24356   ac_configure_extra_args="$ac_configure_extra_args --silent"
24357 fi
24358
24359 _ACEOF
24360 cat >>$CONFIG_STATUS <<_ACEOF
24361 if \$ac_cs_recheck; then
24362   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24363   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24364 fi
24365
24366 _ACEOF
24367
24368
24369
24370
24371
24372 cat >>$CONFIG_STATUS <<\_ACEOF
24373 for ac_config_target in $ac_config_targets
24374 do
24375   case "$ac_config_target" in
24376   # Handling of arguments.
24377   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24378   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24379   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24380   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24381   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24382   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24383   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24384   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24385   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24386   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24387   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24388   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24389   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24390   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24391   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24392   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24393 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24394    { (exit 1); exit 1; }; };;
24395   esac
24396 done
24397
24398 # If the user did not use the arguments to specify the items to instantiate,
24399 # then the envvar interface is used.  Set only those that are not.
24400 # We use the long form for the default assignment because of an extremely
24401 # bizarre bug on SunOS 4.1.3.
24402 if $ac_need_defaults; then
24403   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24404   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24405 fi
24406
24407 # Have a temporary directory for convenience.  Make it in the build tree
24408 # simply because there is no reason to put it here, and in addition,
24409 # creating and moving files from /tmp can sometimes cause problems.
24410 # Create a temporary directory, and hook for its removal unless debugging.
24411 $debug ||
24412 {
24413   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24414   trap '{ (exit 1); exit 1; }' 1 2 13 15
24415 }
24416
24417 # Create a (secure) tmp directory for tmp files.
24418
24419 {
24420   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24421   test -n "$tmp" && test -d "$tmp"
24422 }  ||
24423 {
24424   tmp=./confstat$$-$RANDOM
24425   (umask 077 && mkdir $tmp)
24426 } ||
24427 {
24428    echo "$me: cannot create a temporary directory in ." >&2
24429    { (exit 1); exit 1; }
24430 }
24431
24432 _ACEOF
24433
24434 cat >>$CONFIG_STATUS <<_ACEOF
24435
24436 #
24437 # CONFIG_FILES section.
24438 #
24439
24440 # No need to generate the scripts if there are no CONFIG_FILES.
24441 # This happens for instance when ./config.status config.h
24442 if test -n "\$CONFIG_FILES"; then
24443   # Protect against being on the right side of a sed subst in config.status.
24444   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24445    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24446 s,@SHELL@,$SHELL,;t t
24447 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24448 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24449 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24450 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24451 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24452 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24453 s,@exec_prefix@,$exec_prefix,;t t
24454 s,@prefix@,$prefix,;t t
24455 s,@program_transform_name@,$program_transform_name,;t t
24456 s,@bindir@,$bindir,;t t
24457 s,@sbindir@,$sbindir,;t t
24458 s,@libexecdir@,$libexecdir,;t t
24459 s,@datadir@,$datadir,;t t
24460 s,@sysconfdir@,$sysconfdir,;t t
24461 s,@sharedstatedir@,$sharedstatedir,;t t
24462 s,@localstatedir@,$localstatedir,;t t
24463 s,@libdir@,$libdir,;t t
24464 s,@includedir@,$includedir,;t t
24465 s,@oldincludedir@,$oldincludedir,;t t
24466 s,@infodir@,$infodir,;t t
24467 s,@mandir@,$mandir,;t t
24468 s,@build_alias@,$build_alias,;t t
24469 s,@host_alias@,$host_alias,;t t
24470 s,@target_alias@,$target_alias,;t t
24471 s,@DEFS@,$DEFS,;t t
24472 s,@ECHO_C@,$ECHO_C,;t t
24473 s,@ECHO_N@,$ECHO_N,;t t
24474 s,@ECHO_T@,$ECHO_T,;t t
24475 s,@LIBS@,$LIBS,;t t
24476 s,@CC@,$CC,;t t
24477 s,@CFLAGS@,$CFLAGS,;t t
24478 s,@LDFLAGS@,$LDFLAGS,;t t
24479 s,@CPPFLAGS@,$CPPFLAGS,;t t
24480 s,@ac_ct_CC@,$ac_ct_CC,;t t
24481 s,@EXEEXT@,$EXEEXT,;t t
24482 s,@OBJEXT@,$OBJEXT,;t t
24483 s,@CPP@,$CPP,;t t
24484 s,@EGREP@,$EGREP,;t t
24485 s,@RANLIB@,$RANLIB,;t t
24486 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24487 s,@abs_top_builddir@,$abs_top_builddir,;t t
24488 s,@GMAKE@,$GMAKE,;t t
24489 s,@MAKE@,$MAKE,;t t
24490 s,@LTDL_SUBDIRS@,$LTDL_SUBDIRS,;t t
24491 s,@LIBTOOL@,$LIBTOOL,;t t
24492 s,@build@,$build,;t t
24493 s,@build_cpu@,$build_cpu,;t t
24494 s,@build_vendor@,$build_vendor,;t t
24495 s,@build_os@,$build_os,;t t
24496 s,@host@,$host,;t t
24497 s,@host_cpu@,$host_cpu,;t t
24498 s,@host_vendor@,$host_vendor,;t t
24499 s,@host_os@,$host_os,;t t
24500 s,@LN_S@,$LN_S,;t t
24501 s,@ECHO@,$ECHO,;t t
24502 s,@AR@,$AR,;t t
24503 s,@ac_ct_AR@,$ac_ct_AR,;t t
24504 s,@STRIP@,$STRIP,;t t
24505 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24506 s,@CXX@,$CXX,;t t
24507 s,@CXXFLAGS@,$CXXFLAGS,;t t
24508 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24509 s,@CXXCPP@,$CXXCPP,;t t
24510 s,@F77@,$F77,;t t
24511 s,@FFLAGS@,$FFLAGS,;t t
24512 s,@ac_ct_F77@,$ac_ct_F77,;t t
24513 s,@logdir@,$logdir,;t t
24514 s,@radacctdir@,$radacctdir,;t t
24515 s,@raddbdir@,$raddbdir,;t t
24516 s,@PERL@,$PERL,;t t
24517 s,@SNMPGET@,$SNMPGET,;t t
24518 s,@SNMPWALK@,$SNMPWALK,;t t
24519 s,@RUSERS@,$RUSERS,;t t
24520 s,@ACLOCAL@,$ACLOCAL,;t t
24521 s,@AUTOCONF@,$AUTOCONF,;t t
24522 s,@AUTOHEADER@,$AUTOHEADER,;t t
24523 s,@LOCATE@,$LOCATE,;t t
24524 s,@DIRNAME@,$DIRNAME,;t t
24525 s,@GREP@,$GREP,;t t
24526 s,@REGEX@,$REGEX,;t t
24527 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
24528 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
24529 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24530 s,@LIBPREFIX@,$LIBPREFIX,;t t
24531 s,@CRYPTLIB@,$CRYPTLIB,;t t
24532 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
24533 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
24534 s,@GETCONF@,$GETCONF,;t t
24535 s,@LFS_CFLAGS@,$LFS_CFLAGS,;t t
24536 s,@LFS_LDFLAGS@,$LFS_LDFLAGS,;t t
24537 s,@LFS_LIBS@,$LFS_LIBS,;t t
24538 s,@HOSTINFO@,$HOSTINFO,;t t
24539 s,@LIBLTDL@,$LIBLTDL,;t t
24540 s,@INCLTDL@,$INCLTDL,;t t
24541 s,@subdirs@,$subdirs,;t t
24542 s,@MODULES@,$MODULES,;t t
24543 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
24544 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
24545 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
24546 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
24547 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
24548 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
24549 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
24550 s,@LIBOBJS@,$LIBOBJS,;t t
24551 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24552 CEOF
24553
24554 _ACEOF
24555
24556   cat >>$CONFIG_STATUS <<\_ACEOF
24557   # Split the substitutions into bite-sized pieces for seds with
24558   # small command number limits, like on Digital OSF/1 and HP-UX.
24559   ac_max_sed_lines=48
24560   ac_sed_frag=1 # Number of current file.
24561   ac_beg=1 # First line for current file.
24562   ac_end=$ac_max_sed_lines # Line after last line for current file.
24563   ac_more_lines=:
24564   ac_sed_cmds=
24565   while $ac_more_lines; do
24566     if test $ac_beg -gt 1; then
24567       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24568     else
24569       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24570     fi
24571     if test ! -s $tmp/subs.frag; then
24572       ac_more_lines=false
24573     else
24574       # The purpose of the label and of the branching condition is to
24575       # speed up the sed processing (if there are no `@' at all, there
24576       # is no need to browse any of the substitutions).
24577       # These are the two extra sed commands mentioned above.
24578       (echo ':t
24579   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24580       if test -z "$ac_sed_cmds"; then
24581         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24582       else
24583         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24584       fi
24585       ac_sed_frag=`expr $ac_sed_frag + 1`
24586       ac_beg=$ac_end
24587       ac_end=`expr $ac_end + $ac_max_sed_lines`
24588     fi
24589   done
24590   if test -z "$ac_sed_cmds"; then
24591     ac_sed_cmds=cat
24592   fi
24593 fi # test -n "$CONFIG_FILES"
24594
24595 _ACEOF
24596 cat >>$CONFIG_STATUS <<\_ACEOF
24597 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24598   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24599   case $ac_file in
24600   - | *:- | *:-:* ) # input from stdin
24601         cat >$tmp/stdin
24602         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24603         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24604   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24605         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24606   * )   ac_file_in=$ac_file.in ;;
24607   esac
24608
24609   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24610   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24612          X"$ac_file" : 'X\(//\)[^/]' \| \
24613          X"$ac_file" : 'X\(//\)$' \| \
24614          X"$ac_file" : 'X\(/\)' \| \
24615          .     : '\(.\)' 2>/dev/null ||
24616 echo X"$ac_file" |
24617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24618           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24619           /^X\(\/\/\)$/{ s//\1/; q; }
24620           /^X\(\/\).*/{ s//\1/; q; }
24621           s/.*/./; q'`
24622   { if $as_mkdir_p; then
24623     mkdir -p "$ac_dir"
24624   else
24625     as_dir="$ac_dir"
24626     as_dirs=
24627     while test ! -d "$as_dir"; do
24628       as_dirs="$as_dir $as_dirs"
24629       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24631          X"$as_dir" : 'X\(//\)[^/]' \| \
24632          X"$as_dir" : 'X\(//\)$' \| \
24633          X"$as_dir" : 'X\(/\)' \| \
24634          .     : '\(.\)' 2>/dev/null ||
24635 echo X"$as_dir" |
24636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24637           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24638           /^X\(\/\/\)$/{ s//\1/; q; }
24639           /^X\(\/\).*/{ s//\1/; q; }
24640           s/.*/./; q'`
24641     done
24642     test ! -n "$as_dirs" || mkdir $as_dirs
24643   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24644 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24645    { (exit 1); exit 1; }; }; }
24646
24647   ac_builddir=.
24648
24649 if test "$ac_dir" != .; then
24650   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24651   # A "../" for each directory in $ac_dir_suffix.
24652   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24653 else
24654   ac_dir_suffix= ac_top_builddir=
24655 fi
24656
24657 case $srcdir in
24658   .)  # No --srcdir option.  We are building in place.
24659     ac_srcdir=.
24660     if test -z "$ac_top_builddir"; then
24661        ac_top_srcdir=.
24662     else
24663        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24664     fi ;;
24665   [\\/]* | ?:[\\/]* )  # Absolute path.
24666     ac_srcdir=$srcdir$ac_dir_suffix;
24667     ac_top_srcdir=$srcdir ;;
24668   *) # Relative path.
24669     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24670     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24671 esac
24672
24673 # Do not use `cd foo && pwd` to compute absolute paths, because
24674 # the directories may not exist.
24675 case `pwd` in
24676 .) ac_abs_builddir="$ac_dir";;
24677 *)
24678   case "$ac_dir" in
24679   .) ac_abs_builddir=`pwd`;;
24680   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24681   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24682   esac;;
24683 esac
24684 case $ac_abs_builddir in
24685 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24686 *)
24687   case ${ac_top_builddir}. in
24688   .) ac_abs_top_builddir=$ac_abs_builddir;;
24689   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24690   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24691   esac;;
24692 esac
24693 case $ac_abs_builddir in
24694 .) ac_abs_srcdir=$ac_srcdir;;
24695 *)
24696   case $ac_srcdir in
24697   .) ac_abs_srcdir=$ac_abs_builddir;;
24698   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24699   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24700   esac;;
24701 esac
24702 case $ac_abs_builddir in
24703 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24704 *)
24705   case $ac_top_srcdir in
24706   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24707   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24708   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24709   esac;;
24710 esac
24711
24712
24713
24714   if test x"$ac_file" != x-; then
24715     { echo "$as_me:$LINENO: creating $ac_file" >&5
24716 echo "$as_me: creating $ac_file" >&6;}
24717     rm -f "$ac_file"
24718   fi
24719   # Let's still pretend it is `configure' which instantiates (i.e., don't
24720   # use $as_me), people would be surprised to read:
24721   #    /* config.h.  Generated by config.status.  */
24722   if test x"$ac_file" = x-; then
24723     configure_input=
24724   else
24725     configure_input="$ac_file.  "
24726   fi
24727   configure_input=$configure_input"Generated from `echo $ac_file_in |
24728                                      sed 's,.*/,,'` by configure."
24729
24730   # First look for the input files in the build tree, otherwise in the
24731   # src tree.
24732   ac_file_inputs=`IFS=:
24733     for f in $ac_file_in; do
24734       case $f in
24735       -) echo $tmp/stdin ;;
24736       [\\/$]*)
24737          # Absolute (can't be DOS-style, as IFS=:)
24738          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24739 echo "$as_me: error: cannot find input file: $f" >&2;}
24740    { (exit 1); exit 1; }; }
24741          echo "$f";;
24742       *) # Relative
24743          if test -f "$f"; then
24744            # Build tree
24745            echo "$f"
24746          elif test -f "$srcdir/$f"; then
24747            # Source tree
24748            echo "$srcdir/$f"
24749          else
24750            # /dev/null tree
24751            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24752 echo "$as_me: error: cannot find input file: $f" >&2;}
24753    { (exit 1); exit 1; }; }
24754          fi;;
24755       esac
24756     done` || { (exit 1); exit 1; }
24757 _ACEOF
24758 cat >>$CONFIG_STATUS <<_ACEOF
24759   sed "$ac_vpsub
24760 $extrasub
24761 _ACEOF
24762 cat >>$CONFIG_STATUS <<\_ACEOF
24763 :t
24764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24765 s,@configure_input@,$configure_input,;t t
24766 s,@srcdir@,$ac_srcdir,;t t
24767 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24768 s,@top_srcdir@,$ac_top_srcdir,;t t
24769 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24770 s,@builddir@,$ac_builddir,;t t
24771 s,@abs_builddir@,$ac_abs_builddir,;t t
24772 s,@top_builddir@,$ac_top_builddir,;t t
24773 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24774 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24775   rm -f $tmp/stdin
24776   if test x"$ac_file" != x-; then
24777     mv $tmp/out $ac_file
24778   else
24779     cat $tmp/out
24780     rm -f $tmp/out
24781   fi
24782
24783 done
24784 _ACEOF
24785 cat >>$CONFIG_STATUS <<\_ACEOF
24786
24787 #
24788 # CONFIG_HEADER section.
24789 #
24790
24791 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24792 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24793 #
24794 # ac_d sets the value in "#define NAME VALUE" lines.
24795 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24796 ac_dB='[         ].*$,\1#\2'
24797 ac_dC=' '
24798 ac_dD=',;t'
24799 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24800 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24801 ac_uB='$,\1#\2define\3'
24802 ac_uC=' '
24803 ac_uD=',;t'
24804
24805 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24806   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24807   case $ac_file in
24808   - | *:- | *:-:* ) # input from stdin
24809         cat >$tmp/stdin
24810         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24811         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24812   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24813         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24814   * )   ac_file_in=$ac_file.in ;;
24815   esac
24816
24817   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24818 echo "$as_me: creating $ac_file" >&6;}
24819
24820   # First look for the input files in the build tree, otherwise in the
24821   # src tree.
24822   ac_file_inputs=`IFS=:
24823     for f in $ac_file_in; do
24824       case $f in
24825       -) echo $tmp/stdin ;;
24826       [\\/$]*)
24827          # Absolute (can't be DOS-style, as IFS=:)
24828          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24829 echo "$as_me: error: cannot find input file: $f" >&2;}
24830    { (exit 1); exit 1; }; }
24831          # Do quote $f, to prevent DOS paths from being IFS'd.
24832          echo "$f";;
24833       *) # Relative
24834          if test -f "$f"; then
24835            # Build tree
24836            echo "$f"
24837          elif test -f "$srcdir/$f"; then
24838            # Source tree
24839            echo "$srcdir/$f"
24840          else
24841            # /dev/null tree
24842            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24843 echo "$as_me: error: cannot find input file: $f" >&2;}
24844    { (exit 1); exit 1; }; }
24845          fi;;
24846       esac
24847     done` || { (exit 1); exit 1; }
24848   # Remove the trailing spaces.
24849   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24850
24851 _ACEOF
24852
24853 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24854 # `conftest.undefs', that substitutes the proper values into
24855 # config.h.in to produce config.h.  The first handles `#define'
24856 # templates, and the second `#undef' templates.
24857 # And first: Protect against being on the right side of a sed subst in
24858 # config.status.  Protect against being in an unquoted here document
24859 # in config.status.
24860 rm -f conftest.defines conftest.undefs
24861 # Using a here document instead of a string reduces the quoting nightmare.
24862 # Putting comments in sed scripts is not portable.
24863 #
24864 # `end' is used to avoid that the second main sed command (meant for
24865 # 0-ary CPP macros) applies to n-ary macro definitions.
24866 # See the Autoconf documentation for `clear'.
24867 cat >confdef2sed.sed <<\_ACEOF
24868 s/[\\&,]/\\&/g
24869 s,[\\$`],\\&,g
24870 t clear
24871 : clear
24872 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24873 t end
24874 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24875 : end
24876 _ACEOF
24877 # If some macros were called several times there might be several times
24878 # the same #defines, which is useless.  Nevertheless, we may not want to
24879 # sort them, since we want the *last* AC-DEFINE to be honored.
24880 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24881 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24882 rm -f confdef2sed.sed
24883
24884 # This sed command replaces #undef with comments.  This is necessary, for
24885 # example, in the case of _POSIX_SOURCE, which is predefined and required
24886 # on some systems where configure will not decide to define it.
24887 cat >>conftest.undefs <<\_ACEOF
24888 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24889 _ACEOF
24890
24891 # Break up conftest.defines because some shells have a limit on the size
24892 # of here documents, and old seds have small limits too (100 cmds).
24893 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24894 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24895 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24896 echo '  :' >>$CONFIG_STATUS
24897 rm -f conftest.tail
24898 while grep . conftest.defines >/dev/null
24899 do
24900   # Write a limited-size here document to $tmp/defines.sed.
24901   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24902   # Speed up: don't consider the non `#define' lines.
24903   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24904   # Work around the forget-to-reset-the-flag bug.
24905   echo 't clr' >>$CONFIG_STATUS
24906   echo ': clr' >>$CONFIG_STATUS
24907   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24908   echo 'CEOF
24909   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24910   rm -f $tmp/in
24911   mv $tmp/out $tmp/in
24912 ' >>$CONFIG_STATUS
24913   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24914   rm -f conftest.defines
24915   mv conftest.tail conftest.defines
24916 done
24917 rm -f conftest.defines
24918 echo '  fi # grep' >>$CONFIG_STATUS
24919 echo >>$CONFIG_STATUS
24920
24921 # Break up conftest.undefs because some shells have a limit on the size
24922 # of here documents, and old seds have small limits too (100 cmds).
24923 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24924 rm -f conftest.tail
24925 while grep . conftest.undefs >/dev/null
24926 do
24927   # Write a limited-size here document to $tmp/undefs.sed.
24928   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24929   # Speed up: don't consider the non `#undef'
24930   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24931   # Work around the forget-to-reset-the-flag bug.
24932   echo 't clr' >>$CONFIG_STATUS
24933   echo ': clr' >>$CONFIG_STATUS
24934   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24935   echo 'CEOF
24936   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24937   rm -f $tmp/in
24938   mv $tmp/out $tmp/in
24939 ' >>$CONFIG_STATUS
24940   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24941   rm -f conftest.undefs
24942   mv conftest.tail conftest.undefs
24943 done
24944 rm -f conftest.undefs
24945
24946 cat >>$CONFIG_STATUS <<\_ACEOF
24947   # Let's still pretend it is `configure' which instantiates (i.e., don't
24948   # use $as_me), people would be surprised to read:
24949   #    /* config.h.  Generated by config.status.  */
24950   if test x"$ac_file" = x-; then
24951     echo "/* Generated by configure.  */" >$tmp/config.h
24952   else
24953     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24954   fi
24955   cat $tmp/in >>$tmp/config.h
24956   rm -f $tmp/in
24957   if test x"$ac_file" != x-; then
24958     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24959       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24960 echo "$as_me: $ac_file is unchanged" >&6;}
24961     else
24962       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24964          X"$ac_file" : 'X\(//\)[^/]' \| \
24965          X"$ac_file" : 'X\(//\)$' \| \
24966          X"$ac_file" : 'X\(/\)' \| \
24967          .     : '\(.\)' 2>/dev/null ||
24968 echo X"$ac_file" |
24969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24970           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24971           /^X\(\/\/\)$/{ s//\1/; q; }
24972           /^X\(\/\).*/{ s//\1/; q; }
24973           s/.*/./; q'`
24974       { if $as_mkdir_p; then
24975     mkdir -p "$ac_dir"
24976   else
24977     as_dir="$ac_dir"
24978     as_dirs=
24979     while test ! -d "$as_dir"; do
24980       as_dirs="$as_dir $as_dirs"
24981       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24983          X"$as_dir" : 'X\(//\)[^/]' \| \
24984          X"$as_dir" : 'X\(//\)$' \| \
24985          X"$as_dir" : 'X\(/\)' \| \
24986          .     : '\(.\)' 2>/dev/null ||
24987 echo X"$as_dir" |
24988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24989           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24990           /^X\(\/\/\)$/{ s//\1/; q; }
24991           /^X\(\/\).*/{ s//\1/; q; }
24992           s/.*/./; q'`
24993     done
24994     test ! -n "$as_dirs" || mkdir $as_dirs
24995   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24996 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24997    { (exit 1); exit 1; }; }; }
24998
24999       rm -f $ac_file
25000       mv $tmp/config.h $ac_file
25001     fi
25002   else
25003     cat $tmp/config.h
25004     rm -f $tmp/config.h
25005   fi
25006 done
25007 _ACEOF
25008
25009 cat >>$CONFIG_STATUS <<\_ACEOF
25010
25011 { (exit 0); exit 0; }
25012 _ACEOF
25013 chmod +x $CONFIG_STATUS
25014 ac_clean_files=$ac_clean_files_save
25015
25016
25017 # configure is writing to config.log, and then calls config.status.
25018 # config.status does its own redirection, appending to config.log.
25019 # Unfortunately, on DOS this fails, as config.log is still kept open
25020 # by configure, so config.status won't be able to write to it; its
25021 # output is simply discarded.  So we exec the FD to /dev/null,
25022 # effectively closing config.log, so it can be properly (re)opened and
25023 # appended to by config.status.  When coming back to configure, we
25024 # need to make the FD available again.
25025 if test "$no_create" != yes; then
25026   ac_cs_success=:
25027   ac_config_status_args=
25028   test "$silent" = yes &&
25029     ac_config_status_args="$ac_config_status_args --quiet"
25030   exec 5>/dev/null
25031   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25032   exec 5>>config.log
25033   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25034   # would make configure fail if this is the last instruction.
25035   $ac_cs_success || { (exit 1); exit 1; }
25036 fi
25037
25038 #
25039 # CONFIG_SUBDIRS section.
25040 #
25041 if test "$no_recursion" != yes; then
25042
25043   # Remove --cache-file and --srcdir arguments so they do not pile up.
25044   ac_sub_configure_args=
25045   ac_prev=
25046   for ac_arg in $ac_configure_args; do
25047     if test -n "$ac_prev"; then
25048       ac_prev=
25049       continue
25050     fi
25051     case $ac_arg in
25052     -cache-file | --cache-file | --cache-fil | --cache-fi \
25053     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25054       ac_prev=cache_file ;;
25055     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25056     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25057     | --c=*)
25058       ;;
25059     --config-cache | -C)
25060       ;;
25061     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25062       ac_prev=srcdir ;;
25063     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25064       ;;
25065     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25066       ac_prev=prefix ;;
25067     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25068       ;;
25069     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25070     esac
25071   done
25072
25073   # Always prepend --prefix to ensure using the same prefix
25074   # in subdir configurations.
25075   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25076
25077   ac_popdir=`pwd`
25078   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25079
25080     # Do not complain, so a configure script can configure whichever
25081     # parts of a large source tree are present.
25082     test -d $srcdir/$ac_dir || continue
25083
25084     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25085 echo "$as_me: configuring in $ac_dir" >&6;}
25086     { if $as_mkdir_p; then
25087     mkdir -p "$ac_dir"
25088   else
25089     as_dir="$ac_dir"
25090     as_dirs=
25091     while test ! -d "$as_dir"; do
25092       as_dirs="$as_dir $as_dirs"
25093       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25095          X"$as_dir" : 'X\(//\)[^/]' \| \
25096          X"$as_dir" : 'X\(//\)$' \| \
25097          X"$as_dir" : 'X\(/\)' \| \
25098          .     : '\(.\)' 2>/dev/null ||
25099 echo X"$as_dir" |
25100     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25101           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25102           /^X\(\/\/\)$/{ s//\1/; q; }
25103           /^X\(\/\).*/{ s//\1/; q; }
25104           s/.*/./; q'`
25105     done
25106     test ! -n "$as_dirs" || mkdir $as_dirs
25107   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25108 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25109    { (exit 1); exit 1; }; }; }
25110
25111     ac_builddir=.
25112
25113 if test "$ac_dir" != .; then
25114   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25115   # A "../" for each directory in $ac_dir_suffix.
25116   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25117 else
25118   ac_dir_suffix= ac_top_builddir=
25119 fi
25120
25121 case $srcdir in
25122   .)  # No --srcdir option.  We are building in place.
25123     ac_srcdir=.
25124     if test -z "$ac_top_builddir"; then
25125        ac_top_srcdir=.
25126     else
25127        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25128     fi ;;
25129   [\\/]* | ?:[\\/]* )  # Absolute path.
25130     ac_srcdir=$srcdir$ac_dir_suffix;
25131     ac_top_srcdir=$srcdir ;;
25132   *) # Relative path.
25133     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25134     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25135 esac
25136
25137 # Do not use `cd foo && pwd` to compute absolute paths, because
25138 # the directories may not exist.
25139 case `pwd` in
25140 .) ac_abs_builddir="$ac_dir";;
25141 *)
25142   case "$ac_dir" in
25143   .) ac_abs_builddir=`pwd`;;
25144   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25145   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25146   esac;;
25147 esac
25148 case $ac_abs_builddir in
25149 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25150 *)
25151   case ${ac_top_builddir}. in
25152   .) ac_abs_top_builddir=$ac_abs_builddir;;
25153   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25154   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25155   esac;;
25156 esac
25157 case $ac_abs_builddir in
25158 .) ac_abs_srcdir=$ac_srcdir;;
25159 *)
25160   case $ac_srcdir in
25161   .) ac_abs_srcdir=$ac_abs_builddir;;
25162   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25163   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25164   esac;;
25165 esac
25166 case $ac_abs_builddir in
25167 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25168 *)
25169   case $ac_top_srcdir in
25170   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25171   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25172   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25173   esac;;
25174 esac
25175
25176
25177     cd $ac_dir
25178
25179     # Check for guested configure; otherwise get Cygnus style configure.
25180     if test -f $ac_srcdir/configure.gnu; then
25181       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25182     elif test -f $ac_srcdir/configure; then
25183       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25184     elif test -f $ac_srcdir/configure.in; then
25185       ac_sub_configure=$ac_configure
25186     else
25187       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25188 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25189       ac_sub_configure=
25190     fi
25191
25192     # The recursion is here.
25193     if test -n "$ac_sub_configure"; then
25194       # Make the cache file name correct relative to the subdirectory.
25195       case $cache_file in
25196       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25197       *) # Relative path.
25198         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25199       esac
25200
25201       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25202 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25203       # The eval makes quoting arguments work.
25204       eval $ac_sub_configure $ac_sub_configure_args \
25205            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25206         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25207 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25208    { (exit 1); exit 1; }; }
25209     fi
25210
25211     cd $ac_popdir
25212   done
25213 fi
25214
25215
25216           ac_config_commands="$ac_config_commands default-1"
25217
25218           ac_config_commands="$ac_config_commands default-2"
25219
25220           ac_config_commands="$ac_config_commands default-3"
25221
25222           ac_config_commands="$ac_config_commands default-4"
25223