source: ThirdParty/ASL/stable/1.2/configure @ 2869

Last change on this file since 2869 was 2869, checked in by stefan, 7 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 713.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyASL 1.2.8.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2007, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyASL'
431PACKAGE_TARNAME='thirdpartyasl'
432PACKAGE_VERSION='1.2.8'
433PACKAGE_STRING='ThirdPartyASL 1.2.8'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="solvers/asl.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion ASL_SVN_REV EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED AMPLSOLVER_A ASLMAKEFLAGS ASL_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CPP_set=${CPP+set}
953ac_env_CPP_value=$CPP
954ac_cv_env_CPP_set=${CPP+set}
955ac_cv_env_CPP_value=$CPP
956ac_env_CXX_set=${CXX+set}
957ac_env_CXX_value=$CXX
958ac_cv_env_CXX_set=${CXX+set}
959ac_cv_env_CXX_value=$CXX
960ac_env_CXXFLAGS_set=${CXXFLAGS+set}
961ac_env_CXXFLAGS_value=$CXXFLAGS
962ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
963ac_cv_env_CXXFLAGS_value=$CXXFLAGS
964ac_env_CXXCPP_set=${CXXCPP+set}
965ac_env_CXXCPP_value=$CXXCPP
966ac_cv_env_CXXCPP_set=${CXXCPP+set}
967ac_cv_env_CXXCPP_value=$CXXCPP
968ac_env_F77_set=${F77+set}
969ac_env_F77_value=$F77
970ac_cv_env_F77_set=${F77+set}
971ac_cv_env_F77_value=$F77
972ac_env_FFLAGS_set=${FFLAGS+set}
973ac_env_FFLAGS_value=$FFLAGS
974ac_cv_env_FFLAGS_set=${FFLAGS+set}
975ac_cv_env_FFLAGS_value=$FFLAGS
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
981ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
982ac_cv_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
983ac_cv_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
984
985#
986# Report the --help message.
987#
988if test "$ac_init_help" = "long"; then
989  # Omit some internal or obsolete options to make the list less imposing.
990  # This message is too long to be a string in the A/UX 3.1 sh.
991  cat <<_ACEOF
992\`configure' configures ThirdPartyASL 1.2.8 to adapt to many kinds of systems.
993
994Usage: $0 [OPTION]... [VAR=VALUE]...
995
996To assign environment variables (e.g., CC, CFLAGS...), specify them as
997VAR=VALUE.  See below for descriptions of some of the useful variables.
998
999Defaults for the options are specified in brackets.
1000
1001Configuration:
1002  -h, --help              display this help and exit
1003      --help=short        display options specific to this package
1004      --help=recursive    display the short help of all the included packages
1005  -V, --version           display version information and exit
1006  -q, --quiet, --silent   do not print \`checking...' messages
1007      --cache-file=FILE   cache test results in FILE [disabled]
1008  -C, --config-cache      alias for \`--cache-file=config.cache'
1009  -n, --no-create         do not create output files
1010      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1011
1012_ACEOF
1013
1014  cat <<_ACEOF
1015Installation directories:
1016  --prefix=PREFIX         install architecture-independent files in PREFIX
1017                          [$ac_default_prefix]
1018  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1019                          [PREFIX]
1020
1021By default, \`make install' will install all the files in
1022\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1023an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1024for instance \`--prefix=\$HOME'.
1025
1026For better control, use the options below.
1027
1028Fine tuning of the installation directories:
1029  --bindir=DIR           user executables [EPREFIX/bin]
1030  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1031  --libexecdir=DIR       program executables [EPREFIX/libexec]
1032  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1033  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1034  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1035  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1036  --libdir=DIR           object code libraries [EPREFIX/lib]
1037  --includedir=DIR       C header files [PREFIX/include]
1038  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1039  --infodir=DIR          info documentation [PREFIX/info]
1040  --mandir=DIR           man documentation [PREFIX/man]
1041_ACEOF
1042
1043  cat <<\_ACEOF
1044
1045Program names:
1046  --program-prefix=PREFIX            prepend PREFIX to installed program names
1047  --program-suffix=SUFFIX            append SUFFIX to installed program names
1048  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1049
1050System types:
1051  --build=BUILD     configure for building on BUILD [guessed]
1052  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1053_ACEOF
1054fi
1055
1056if test -n "$ac_init_help"; then
1057  case $ac_init_help in
1058     short | recursive ) echo "Configuration of ThirdPartyASL 1.2.8:";;
1059   esac
1060  cat <<\_ACEOF
1061
1062Optional Features:
1063  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1064  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1065  --enable-debug          compile all projects with debug options tests
1066                          (implies --disable-shared)
1067  --enable-debug-asl compile project ASL with debug compiler flags
1068  --enable-doscompile     Under Cygwin, compile so that executables run under
1069                          DOS. Set to mingw to use gcc/g++/ld with
1070                          -mno-cygwin. Set to msvc to use cl/link (or
1071                          icl/link). Default when mentioned: mingw. Default
1072                          when not mentioned: disabled.
1073  --enable-static[=PKGS]
1074                          build static libraries [default=no]
1075  --disable-dependency-tracking  speeds up one-time build
1076  --enable-dependency-tracking   do not reject slow dependency extractors
1077  --enable-maintainer-mode  enable make rules and dependencies not useful
1078                          (and sometimes confusing) to the casual installer
1079  --enable-shared[=PKGS]
1080                          build shared libraries [default=yes]
1081  --enable-fast-install[=PKGS]
1082                          optimize for fast installation [default=yes]
1083  --disable-libtool-lock  avoid locking (might break parallel builds)
1084  --disable-pkg-config    disable use of pkg-config (if available)
1085
1086Optional Packages:
1087  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1088  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1089  --with-asl-verbosity specify the debug verbosity level for project ASL
1090  --with-asl-checklevel specify the sanity check level for project ASL
1091  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1092  --with-pic              try to use only PIC/non-PIC objects [default=use
1093                          both]
1094  --with-tags[=TAGS]
1095                          include additional configurations [automatic]
1096  --with-coin-instdir     prefix of installation directory for precompiled
1097                          COIN packages
1098
1099Some influential environment variables:
1100  CDEFS       Additional -D flags to be used when compiling C code.
1101  ADD_CFLAGS  Additional C compiler options
1102  DBG_CFLAGS  Debug C compiler options
1103  OPT_CFLAGS  Optimize C compiler options
1104  CC          C compiler command
1105  CFLAGS      C compiler flags
1106  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1107              nonstandard directory <lib dir>
1108  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1109              headers in a nonstandard directory <include dir>
1110  MPICC       C MPI Compiler
1111  CPP         C preprocessor
1112  CXX         C++ compiler command
1113  CXXFLAGS    C++ compiler flags
1114  CXXCPP      C++ preprocessor
1115  F77         Fortran 77 compiler command
1116  FFLAGS      Fortran 77 compiler flags
1117  PKG_CONFIG  path to pkg-config utility
1118  ASLMAKEFLAGS
1119              Compilation flags necessary for compiling the AMPL solver
1120              library
1121
1122Use these variables to override the choices made by `configure' or to help
1123it to find libraries and programs with nonstandard names/locations.
1124
1125Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1126_ACEOF
1127fi
1128
1129if test "$ac_init_help" = "recursive"; then
1130  # If there are subdirs, report their specific --help.
1131  ac_popdir=`pwd`
1132  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1133    test -d $ac_dir || continue
1134    ac_builddir=.
1135
1136if test "$ac_dir" != .; then
1137  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1138  # A "../" for each directory in $ac_dir_suffix.
1139  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1140else
1141  ac_dir_suffix= ac_top_builddir=
1142fi
1143
1144case $srcdir in
1145  .)  # No --srcdir option.  We are building in place.
1146    ac_srcdir=.
1147    if test -z "$ac_top_builddir"; then
1148       ac_top_srcdir=.
1149    else
1150       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1151    fi ;;
1152  [\\/]* | ?:[\\/]* )  # Absolute path.
1153    ac_srcdir=$srcdir$ac_dir_suffix;
1154    ac_top_srcdir=$srcdir ;;
1155  *) # Relative path.
1156    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1157    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1158esac
1159
1160# Do not use `cd foo && pwd` to compute absolute paths, because
1161# the directories may not exist.
1162case `pwd` in
1163.) ac_abs_builddir="$ac_dir";;
1164*)
1165  case "$ac_dir" in
1166  .) ac_abs_builddir=`pwd`;;
1167  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1168  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1169  esac;;
1170esac
1171case $ac_abs_builddir in
1172.) ac_abs_top_builddir=${ac_top_builddir}.;;
1173*)
1174  case ${ac_top_builddir}. in
1175  .) ac_abs_top_builddir=$ac_abs_builddir;;
1176  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1177  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1178  esac;;
1179esac
1180case $ac_abs_builddir in
1181.) ac_abs_srcdir=$ac_srcdir;;
1182*)
1183  case $ac_srcdir in
1184  .) ac_abs_srcdir=$ac_abs_builddir;;
1185  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1186  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1187  esac;;
1188esac
1189case $ac_abs_builddir in
1190.) ac_abs_top_srcdir=$ac_top_srcdir;;
1191*)
1192  case $ac_top_srcdir in
1193  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1194  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1195  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1196  esac;;
1197esac
1198
1199    cd $ac_dir
1200    # Check for guested configure; otherwise get Cygnus style configure.
1201    if test -f $ac_srcdir/configure.gnu; then
1202      echo
1203      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1204    elif test -f $ac_srcdir/configure; then
1205      echo
1206      $SHELL $ac_srcdir/configure  --help=recursive
1207    elif test -f $ac_srcdir/configure.ac ||
1208           test -f $ac_srcdir/configure.in; then
1209      echo
1210      $ac_configure --help
1211    else
1212      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1213    fi
1214    cd $ac_popdir
1215  done
1216fi
1217
1218test -n "$ac_init_help" && exit 0
1219if $ac_init_version; then
1220  cat <<\_ACEOF
1221ThirdPartyASL configure 1.2.8
1222generated by GNU Autoconf 2.59
1223
1224Copyright (C) 2003 Free Software Foundation, Inc.
1225This configure script is free software; the Free Software Foundation
1226gives unlimited permission to copy, distribute and modify it.
1227
1228
1229Copyright 2006, 2007, 2009 International Business Machines and others.
1230All Rights Reserved.
1231This file is part of the open source package Coin which is distributed
1232under the Eclipse Public License.
1233_ACEOF
1234  exit 0
1235fi
1236exec 5>config.log
1237cat >&5 <<_ACEOF
1238This file contains any messages produced by compilers while
1239running configure, to aid debugging if configure makes a mistake.
1240
1241It was created by ThirdPartyASL $as_me 1.2.8, which was
1242generated by GNU Autoconf 2.59.  Invocation command line was
1243
1244  $ $0 $@
1245
1246_ACEOF
1247{
1248cat <<_ASUNAME
1249## --------- ##
1250## Platform. ##
1251## --------- ##
1252
1253hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1254uname -m = `(uname -m) 2>/dev/null || echo unknown`
1255uname -r = `(uname -r) 2>/dev/null || echo unknown`
1256uname -s = `(uname -s) 2>/dev/null || echo unknown`
1257uname -v = `(uname -v) 2>/dev/null || echo unknown`
1258
1259/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1260/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1261
1262/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1263/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1264/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1265hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1266/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1267/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1268/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1269
1270_ASUNAME
1271
1272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1273for as_dir in $PATH
1274do
1275  IFS=$as_save_IFS
1276  test -z "$as_dir" && as_dir=.
1277  echo "PATH: $as_dir"
1278done
1279
1280} >&5
1281
1282cat >&5 <<_ACEOF
1283
1284
1285## ----------- ##
1286## Core tests. ##
1287## ----------- ##
1288
1289_ACEOF
1290
1291
1292# Keep a trace of the command line.
1293# Strip out --no-create and --no-recursion so they do not pile up.
1294# Strip out --silent because we don't want to record it for future runs.
1295# Also quote any args containing shell meta-characters.
1296# Make two passes to allow for proper duplicate-argument suppression.
1297ac_configure_args=
1298ac_configure_args0=
1299ac_configure_args1=
1300ac_sep=
1301ac_must_keep_next=false
1302for ac_pass in 1 2
1303do
1304  for ac_arg
1305  do
1306    case $ac_arg in
1307    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1308    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1309    | -silent | --silent | --silen | --sile | --sil)
1310      continue ;;
1311    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1313    esac
1314    case $ac_pass in
1315    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1316    2)
1317      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1318      if test $ac_must_keep_next = true; then
1319        ac_must_keep_next=false # Got value, back to normal.
1320      else
1321        case $ac_arg in
1322          *=* | --config-cache | -C | -disable-* | --disable-* \
1323          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1324          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1325          | -with-* | --with-* | -without-* | --without-* | --x)
1326            case "$ac_configure_args0 " in
1327              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1328            esac
1329            ;;
1330          -* ) ac_must_keep_next=true ;;
1331        esac
1332      fi
1333      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1334      # Get rid of the leading space.
1335      ac_sep=" "
1336      ;;
1337    esac
1338  done
1339done
1340$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1341$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1342
1343# When interrupted or exit'd, cleanup temporary files, and complete
1344# config.log.  We remove comments because anyway the quotes in there
1345# would cause problems or look ugly.
1346# WARNING: Be sure not to use single quotes in there, as some shells,
1347# such as our DU 5.0 friend, will then `close' the trap.
1348trap 'exit_status=$?
1349  # Save into config.log some information that might help in debugging.
1350  {
1351    echo
1352
1353    cat <<\_ASBOX
1354## ---------------- ##
1355## Cache variables. ##
1356## ---------------- ##
1357_ASBOX
1358    echo
1359    # The following way of writing the cache mishandles newlines in values,
1360{
1361  (set) 2>&1 |
1362    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1363    *ac_space=\ *)
1364      sed -n \
1365        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1366          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1367      ;;
1368    *)
1369      sed -n \
1370        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1371      ;;
1372    esac;
1373}
1374    echo
1375
1376    cat <<\_ASBOX
1377## ----------------- ##
1378## Output variables. ##
1379## ----------------- ##
1380_ASBOX
1381    echo
1382    for ac_var in $ac_subst_vars
1383    do
1384      eval ac_val=$`echo $ac_var`
1385      echo "$ac_var='"'"'$ac_val'"'"'"
1386    done | sort
1387    echo
1388
1389    if test -n "$ac_subst_files"; then
1390      cat <<\_ASBOX
1391## ------------- ##
1392## Output files. ##
1393## ------------- ##
1394_ASBOX
1395      echo
1396      for ac_var in $ac_subst_files
1397      do
1398        eval ac_val=$`echo $ac_var`
1399        echo "$ac_var='"'"'$ac_val'"'"'"
1400      done | sort
1401      echo
1402    fi
1403
1404    if test -s confdefs.h; then
1405      cat <<\_ASBOX
1406## ----------- ##
1407## confdefs.h. ##
1408## ----------- ##
1409_ASBOX
1410      echo
1411      sed "/^$/d" confdefs.h | sort
1412      echo
1413    fi
1414    test "$ac_signal" != 0 &&
1415      echo "$as_me: caught signal $ac_signal"
1416    echo "$as_me: exit $exit_status"
1417  } >&5
1418  rm -f core *.core &&
1419  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1420    exit $exit_status
1421     ' 0
1422for ac_signal in 1 2 13 15; do
1423  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1424done
1425ac_signal=0
1426
1427# confdefs.h avoids OS command line length limits that DEFS can exceed.
1428rm -rf conftest* confdefs.h
1429# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1430echo >confdefs.h
1431
1432# Predefined preprocessor variables.
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_NAME "$PACKAGE_NAME"
1436_ACEOF
1437
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_VERSION "$PACKAGE_VERSION"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_STRING "$PACKAGE_STRING"
1451_ACEOF
1452
1453
1454cat >>confdefs.h <<_ACEOF
1455#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1456_ACEOF
1457
1458
1459# Let the site file select an alternate cache file if it wants to.
1460# Prefer explicitly selected file to automatically selected ones.
1461if test -z "$CONFIG_SITE"; then
1462  if test "x$prefix" != xNONE; then
1463    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1464  else
1465    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1466  fi
1467fi
1468for ac_site_file in $CONFIG_SITE; do
1469  if test -r "$ac_site_file"; then
1470    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1471echo "$as_me: loading site script $ac_site_file" >&6;}
1472    sed 's/^/| /' "$ac_site_file" >&5
1473    . "$ac_site_file"
1474  fi
1475done
1476
1477if test -r "$cache_file"; then
1478  # Some versions of bash will fail to source /dev/null (special
1479  # files actually), so we avoid doing that.
1480  if test -f "$cache_file"; then
1481    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1482echo "$as_me: loading cache $cache_file" >&6;}
1483    case $cache_file in
1484      [\\/]* | ?:[\\/]* ) . $cache_file;;
1485      *)                      . ./$cache_file;;
1486    esac
1487  fi
1488else
1489  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1490echo "$as_me: creating cache $cache_file" >&6;}
1491  >$cache_file
1492fi
1493
1494# Check that the precious variables saved in the cache have kept the same
1495# value.
1496ac_cache_corrupted=false
1497for ac_var in `(set) 2>&1 |
1498               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1499  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1500  eval ac_new_set=\$ac_env_${ac_var}_set
1501  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1502  eval ac_new_val="\$ac_env_${ac_var}_value"
1503  case $ac_old_set,$ac_new_set in
1504    set,)
1505      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1506echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1507      ac_cache_corrupted=: ;;
1508    ,set)
1509      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1510echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1511      ac_cache_corrupted=: ;;
1512    ,);;
1513    *)
1514      if test "x$ac_old_val" != "x$ac_new_val"; then
1515        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1516echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1517        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1518echo "$as_me:   former value:  $ac_old_val" >&2;}
1519        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1520echo "$as_me:   current value: $ac_new_val" >&2;}
1521        ac_cache_corrupted=:
1522      fi;;
1523  esac
1524  # Pass precious variables to config.status.
1525  if test "$ac_new_set" = set; then
1526    case $ac_new_val in
1527    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1528      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1529    *) ac_arg=$ac_var=$ac_new_val ;;
1530    esac
1531    case " $ac_configure_args " in
1532      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1533      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1534    esac
1535  fi
1536done
1537if $ac_cache_corrupted; then
1538  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1539echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1540  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1541echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1542   { (exit 1); exit 1; }; }
1543fi
1544
1545ac_ext=c
1546ac_cpp='$CPP $CPPFLAGS'
1547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1549ac_compiler_gnu=$ac_cv_c_compiler_gnu
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580# List one file in the package so that the configure script can test
1581# whether the package is actually there
1582
1583
1584# Where should everything be installed by default?  Here, we want it
1585# to be installed directly in 'bin', 'lib', 'include' subdirectories
1586# of the directory where configure is run.  The default would be
1587# /usr/local.
1588
1589
1590#############################################################################
1591#                         Standard build tool stuff                         #
1592#############################################################################
1593
1594# Get the system type
1595ac_aux_dir=
1596for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1597  if test -f $ac_dir/install-sh; then
1598    ac_aux_dir=$ac_dir
1599    ac_install_sh="$ac_aux_dir/install-sh -c"
1600    break
1601  elif test -f $ac_dir/install.sh; then
1602    ac_aux_dir=$ac_dir
1603    ac_install_sh="$ac_aux_dir/install.sh -c"
1604    break
1605  elif test -f $ac_dir/shtool; then
1606    ac_aux_dir=$ac_dir
1607    ac_install_sh="$ac_aux_dir/shtool install -c"
1608    break
1609  fi
1610done
1611if test -z "$ac_aux_dir"; then
1612  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1613echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1614   { (exit 1); exit 1; }; }
1615fi
1616ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1617ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1618ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1619
1620# Make sure we can run config.sub.
1621$ac_config_sub sun4 >/dev/null 2>&1 ||
1622  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1623echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1624   { (exit 1); exit 1; }; }
1625
1626echo "$as_me:$LINENO: checking build system type" >&5
1627echo $ECHO_N "checking build system type... $ECHO_C" >&6
1628if test "${ac_cv_build+set}" = set; then
1629  echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631  ac_cv_build_alias=$build_alias
1632test -z "$ac_cv_build_alias" &&
1633  ac_cv_build_alias=`$ac_config_guess`
1634test -z "$ac_cv_build_alias" &&
1635  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1636echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1637   { (exit 1); exit 1; }; }
1638ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1639  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1641   { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1645echo "${ECHO_T}$ac_cv_build" >&6
1646build=$ac_cv_build
1647build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652
1653# A bit of initial setup.
1654
1655# As backup, we make sure we don't loose an FLIBS if it has been set
1656# by the user
1657save_FLIBS="$FLIBS"
1658
1659# A useful makefile conditional that is always false
1660
1661
1662if false; then
1663  ALWAYS_FALSE_TRUE=
1664  ALWAYS_FALSE_FALSE='#'
1665else
1666  ALWAYS_FALSE_TRUE='#'
1667  ALWAYS_FALSE_FALSE=
1668fi
1669
1670
1671# We set the following variable so that we know later in AC_COIN_FINALIZE
1672# that we are in a project main directory
1673coin_projectdir=yes
1674
1675# Set the project's version numbers
1676
1677
1678cat >>confdefs.h <<_ACEOF
1679#define ASL_VERSION "$PACKAGE_VERSION"
1680_ACEOF
1681
1682
1683  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1684  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1685  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1686  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1687  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1688  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1689
1690cat >>confdefs.h <<_ACEOF
1691#define ASL_VERSION_MAJOR $coin_majorver
1692_ACEOF
1693
1694
1695cat >>confdefs.h <<_ACEOF
1696#define ASL_VERSION_MINOR $coin_minorver
1697_ACEOF
1698
1699
1700cat >>confdefs.h <<_ACEOF
1701#define ASL_VERSION_RELEASE $coin_releasever
1702_ACEOF
1703
1704
1705  # We use the following variable to have a string with the upper case
1706  # version of the project name
1707  COIN_PRJCT=ASL
1708
1709  # Set the project's SVN revision number. The complicated sed expression
1710  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1711  # as a single number.
1712  # Extract the first word of "svnversion", so it can be a program name with args.
1713set dummy svnversion; ac_word=$2
1714echo "$as_me:$LINENO: checking for $ac_word" >&5
1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716if test "${ac_cv_prog_have_svnversion+set}" = set; then
1717  echo $ECHO_N "(cached) $ECHO_C" >&6
1718else
1719  if test -n "$have_svnversion"; then
1720  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1721else
1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725  IFS=$as_save_IFS
1726  test -z "$as_dir" && as_dir=.
1727  for ac_exec_ext in '' $ac_executable_extensions; do
1728  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729    ac_cv_prog_have_svnversion="yes"
1730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731    break 2
1732  fi
1733done
1734done
1735
1736  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1737fi
1738fi
1739have_svnversion=$ac_cv_prog_have_svnversion
1740if test -n "$have_svnversion"; then
1741  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1742echo "${ECHO_T}$have_svnversion" >&6
1743else
1744  echo "$as_me:$LINENO: result: no" >&5
1745echo "${ECHO_T}no" >&6
1746fi
1747
1748  if test "x$have_svnversion" = xyes; then
1749
1750    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1751    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1752      ASL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1753
1754cat >>confdefs.h <<_ACEOF
1755#define ASL_SVN_REV $ASL_SVN_REV
1756_ACEOF
1757
1758    fi
1759  fi
1760
1761
1762
1763# Capture libtool library version, if given.
1764 coin_libversion=3:8:2
1765
1766
1767
1768
1769# Turn off warnings and pedantic mode since they could make trouble on some
1770# platforms, and we can't fix issues in third-party code.
1771coin_skip_warn_cflags=yes
1772
1773# Check if user wants to produce debugging code
1774
1775echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1776echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1777
1778# Check whether --enable-debug or --disable-debug was given.
1779if test "${enable_debug+set}" = set; then
1780  enableval="$enable_debug"
1781  case "${enableval}" in
1782   yes) coin_debug_compile=true
1783        if test "${enable_shared+set}" = set; then :; else
1784          enable_shared=no
1785        fi
1786        ;;
1787   no)  coin_debug_compile=false
1788        ;;
1789   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1790echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1791   { (exit 1); exit 1; }; }
1792        ;;
1793esac
1794else
1795  coin_debug_compile=false
1796fi;
1797
1798# Check whether --enable-debug-asl or --disable-debug-asl was given.
1799if test "${enable_debug_asl+set}" = set; then
1800  enableval="$enable_debug_asl"
1801  case "${enableval}" in
1802    yes) coin_debug_compile=true
1803         ;;
1804    no)  coin_debug_compile=false
1805         ;;
1806    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-asl" >&5
1807echo "$as_me: error: bad value ${enableval} for --enable-debug-asl" >&2;}
1808   { (exit 1); exit 1; }; }
1809         ;;
1810 esac
1811else
1812  :
1813fi;
1814
1815 # m4_ifvaln([ASL],
1816
1817if test $coin_debug_compile = true; then
1818  echo "$as_me:$LINENO: result: yes" >&5
1819echo "${ECHO_T}yes" >&6
1820else
1821  echo "$as_me:$LINENO: result: no" >&5
1822echo "${ECHO_T}no" >&6
1823fi
1824
1825
1826# Check whether --with-asl-verbosity or --without-asl-verbosity was given.
1827if test "${with_asl_verbosity+set}" = set; then
1828  withval="$with_asl_verbosity"
1829  if test "$withval" = yes; then
1830                withval=1
1831              fi
1832              coin_asl_verbosity=$withval
1833else
1834  coin_asl_verbosity=0
1835fi;
1836
1837cat >>confdefs.h <<_ACEOF
1838#define COIN_ASL_VERBOSITY $coin_asl_verbosity
1839_ACEOF
1840
1841
1842
1843# Check whether --with-asl-checklevel or --without-asl-checklevel was given.
1844if test "${with_asl_checklevel+set}" = set; then
1845  withval="$with_asl_checklevel"
1846  if test "$withval" = yes; then
1847                withval=1
1848              fi
1849              coin_asl_checklevel=$withval
1850else
1851  coin_asl_checklevel=0
1852fi;
1853
1854cat >>confdefs.h <<_ACEOF
1855#define COIN_ASL_CHECKLEVEL $coin_asl_checklevel
1856_ACEOF
1857
1858
1859 # m4_ifvaln([ASL],
1860
1861
1862
1863# We need egrep and ln -s somewhere
1864echo "$as_me:$LINENO: checking for egrep" >&5
1865echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1866if test "${ac_cv_prog_egrep+set}" = set; then
1867  echo $ECHO_N "(cached) $ECHO_C" >&6
1868else
1869  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1870    then ac_cv_prog_egrep='grep -E'
1871    else ac_cv_prog_egrep='egrep'
1872    fi
1873fi
1874echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1875echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1876 EGREP=$ac_cv_prog_egrep
1877
1878
1879echo "$as_me:$LINENO: checking whether ln -s works" >&5
1880echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1881LN_S=$as_ln_s
1882if test "$LN_S" = "ln -s"; then
1883  echo "$as_me:$LINENO: result: yes" >&5
1884echo "${ECHO_T}yes" >&6
1885else
1886  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1887echo "${ECHO_T}no, using $LN_S" >&6
1888fi
1889
1890
1891# Get the name of the C compiler and compiler flags
1892case $build in
1893  *-mingw*)
1894    if test "${LD+set}" = set; then :; else
1895      LD=link
1896    fi
1897    ;;
1898 esac
1899 case $enable_doscompile in
1900   msvc)
1901     if test "x${LD+set}" = xset; then :; else
1902       LD=link
1903     fi
1904     ;;
1905 esac
1906
1907
1908 # Check whether --enable-doscompile or --disable-doscompile was given.
1909if test "${enable_doscompile+set}" = set; then
1910  enableval="$enable_doscompile"
1911  if test "$enable_doscompile" != no; then
1912     case $build in
1913       *-cygwin* | *-mingw*) ;;
1914       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1915echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1916   { (exit 1); exit 1; }; } ;;
1917     esac
1918   fi
1919else
1920  enable_doscompile=no
1921fi;
1922 case "$enable_doscompile" in
1923   mingw)
1924     case $build in
1925       *-mingw*) enable_doscompile=no ;;
1926     esac
1927     ;;
1928   msvc|no) ;;
1929   yes) enable_doscompile=mingw ;;
1930   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1931                    Try configure --help=recursive." >&5
1932echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1933                    Try configure --help=recursive." >&2;}
1934   { (exit 1); exit 1; }; }
1935      ;;
1936  esac
1937  if test "$enable_doscompile" != no ; then
1938    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1939echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1940  fi
1941
1942
1943
1944
1945ac_ext=c
1946ac_cpp='$CPP $CPPFLAGS'
1947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1949ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950
1951
1952# For consistency, we set the C compiler to the same value of the C++
1953# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1954if test x"$CXX" != x; then
1955  case "$CXX" in
1956    clang* ) ;;
1957    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1958      if test x"$CC" = x; then
1959        CC="$CXX"
1960        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1961echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1962      fi
1963      ;;
1964  esac
1965fi
1966
1967
1968
1969
1970
1971
1972coin_has_cc=yes
1973
1974save_cflags="$CFLAGS"
1975
1976# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1977# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1978# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1979# compiler. In this case, put cc after gcc.
1980
1981case $build in
1982  *-cygwin* | *-mingw*)
1983             if test "$enable_doscompile" = msvc ; then
1984               comps="icl cl"
1985             else
1986               comps="gcc cl"
1987             fi ;;
1988  *-*-solaris*)
1989             # Extract the first word of "cc", so it can be a program name with args.
1990set dummy cc; ac_word=$2
1991echo "$as_me:$LINENO: checking for $ac_word" >&5
1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1994  echo $ECHO_N "(cached) $ECHO_C" >&6
1995else
1996  if test -n "$sol_cc_compiler"; then
1997  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1998else
1999  ac_prog_rejected=no
2000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003  IFS=$as_save_IFS
2004  test -z "$as_dir" && as_dir=.
2005  for ac_exec_ext in '' $ac_executable_extensions; do
2006  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2008       ac_prog_rejected=yes
2009       continue
2010     fi
2011    ac_cv_prog_sol_cc_compiler="cc"
2012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013    break 2
2014  fi
2015done
2016done
2017
2018if test $ac_prog_rejected = yes; then
2019  # We found a bogon in the path, so make sure we never use it.
2020  set dummy $ac_cv_prog_sol_cc_compiler
2021  shift
2022  if test $# != 0; then
2023    # We chose a different compiler from the bogus one.
2024    # However, it has the same basename, so the bogon will be chosen
2025    # first if we set sol_cc_compiler to just the basename; use the full file name.
2026    shift
2027    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2028  fi
2029fi
2030fi
2031fi
2032sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2033if test -n "$sol_cc_compiler"; then
2034  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2035echo "${ECHO_T}$sol_cc_compiler" >&6
2036else
2037  echo "$as_me:$LINENO: result: no" >&5
2038echo "${ECHO_T}no" >&6
2039fi
2040
2041             if test "$sol_cc_compiler" = "cc" ; then
2042               comps="cc xlc gcc pgcc icc"
2043             else
2044               comps="xlc gcc pgcc icc cc"
2045             fi
2046             ;;
2047  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2048  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2049  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2050esac
2051
2052# We delete the cached value, since the test might not have been
2053# performed with our choice of compilers earlier
2054$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2055# AC_MSG_NOTICE([C compiler candidates: $comps])
2056ac_ext=c
2057ac_cpp='$CPP $CPPFLAGS'
2058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2060ac_compiler_gnu=$ac_cv_c_compiler_gnu
2061if test -n "$ac_tool_prefix"; then
2062  for ac_prog in $comps
2063  do
2064    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2065set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2066echo "$as_me:$LINENO: checking for $ac_word" >&5
2067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068if test "${ac_cv_prog_CC+set}" = set; then
2069  echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071  if test -n "$CC"; then
2072  ac_cv_prog_CC="$CC" # Let the user override the test.
2073else
2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077  IFS=$as_save_IFS
2078  test -z "$as_dir" && as_dir=.
2079  for ac_exec_ext in '' $ac_executable_extensions; do
2080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083    break 2
2084  fi
2085done
2086done
2087
2088fi
2089fi
2090CC=$ac_cv_prog_CC
2091if test -n "$CC"; then
2092  echo "$as_me:$LINENO: result: $CC" >&5
2093echo "${ECHO_T}$CC" >&6
2094else
2095  echo "$as_me:$LINENO: result: no" >&5
2096echo "${ECHO_T}no" >&6
2097fi
2098
2099    test -n "$CC" && break
2100  done
2101fi
2102if test -z "$CC"; then
2103  ac_ct_CC=$CC
2104  for ac_prog in $comps
2105do
2106  # Extract the first word of "$ac_prog", so it can be a program name with args.
2107set dummy $ac_prog; ac_word=$2
2108echo "$as_me:$LINENO: checking for $ac_word" >&5
2109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111  echo $ECHO_N "(cached) $ECHO_C" >&6
2112else
2113  if test -n "$ac_ct_CC"; then
2114  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2115else
2116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117for as_dir in $PATH
2118do
2119  IFS=$as_save_IFS
2120  test -z "$as_dir" && as_dir=.
2121  for ac_exec_ext in '' $ac_executable_extensions; do
2122  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123    ac_cv_prog_ac_ct_CC="$ac_prog"
2124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125    break 2
2126  fi
2127done
2128done
2129
2130fi
2131fi
2132ac_ct_CC=$ac_cv_prog_ac_ct_CC
2133if test -n "$ac_ct_CC"; then
2134  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135echo "${ECHO_T}$ac_ct_CC" >&6
2136else
2137  echo "$as_me:$LINENO: result: no" >&5
2138echo "${ECHO_T}no" >&6
2139fi
2140
2141  test -n "$ac_ct_CC" && break
2142done
2143
2144  CC=$ac_ct_CC
2145fi
2146
2147
2148test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2149See \`config.log' for more details." >&5
2150echo "$as_me: error: no acceptable C compiler found in \$PATH
2151See \`config.log' for more details." >&2;}
2152   { (exit 1); exit 1; }; }
2153
2154# Provide some information about the compiler.
2155echo "$as_me:$LINENO:" \
2156     "checking for C compiler version" >&5
2157ac_compiler=`set X $ac_compile; echo $2`
2158{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2159  (eval $ac_compiler --version </dev/null >&5) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }
2163{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2164  (eval $ac_compiler -v </dev/null >&5) 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }
2168{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2169  (eval $ac_compiler -V </dev/null >&5) 2>&5
2170  ac_status=$?
2171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172  (exit $ac_status); }
2173
2174cat >conftest.$ac_ext <<_ACEOF
2175/* confdefs.h.  */
2176_ACEOF
2177cat confdefs.h >>conftest.$ac_ext
2178cat >>conftest.$ac_ext <<_ACEOF
2179/* end confdefs.h.  */
2180
2181int
2182main ()
2183{
2184
2185  ;
2186  return 0;
2187}
2188_ACEOF
2189ac_clean_files_save=$ac_clean_files
2190ac_clean_files="$ac_clean_files a.out a.exe b.out"
2191# Try to create an executable without -o first, disregard a.out.
2192# It will help us diagnose broken compilers, and finding out an intuition
2193# of exeext.
2194echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2195echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2196ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2197if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2198  (eval $ac_link_default) 2>&5
2199  ac_status=$?
2200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201  (exit $ac_status); }; then
2202  # Find the output, starting from the most likely.  This scheme is
2203# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2204# resort.
2205
2206# Be careful to initialize this variable, since it used to be cached.
2207# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2208ac_cv_exeext=
2209# b.out is created by i960 compilers.
2210for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2211do
2212  test -f "$ac_file" || continue
2213  case $ac_file in
2214    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2215        ;;
2216    conftest.$ac_ext )
2217        # This is the source file.
2218        ;;
2219    [ab].out )
2220        # We found the default executable, but exeext='' is most
2221        # certainly right.
2222        break;;
2223    *.* )
2224        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2225        # FIXME: I believe we export ac_cv_exeext for Libtool,
2226        # but it would be cool to find out if it's true.  Does anybody
2227        # maintain Libtool? --akim.
2228        export ac_cv_exeext
2229        break;;
2230    * )
2231        break;;
2232  esac
2233done
2234else
2235  echo "$as_me: failed program was:" >&5
2236sed 's/^/| /' conftest.$ac_ext >&5
2237
2238{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2239See \`config.log' for more details." >&5
2240echo "$as_me: error: C compiler cannot create executables
2241See \`config.log' for more details." >&2;}
2242   { (exit 77); exit 77; }; }
2243fi
2244
2245ac_exeext=$ac_cv_exeext
2246echo "$as_me:$LINENO: result: $ac_file" >&5
2247echo "${ECHO_T}$ac_file" >&6
2248
2249# Check the compiler produces executables we can run.  If not, either
2250# the compiler is broken, or we cross compile.
2251echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2252echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2253# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2254# If not cross compiling, check that we can run a simple program.
2255if test "$cross_compiling" != yes; then
2256  if { ac_try='./$ac_file'
2257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258  (eval $ac_try) 2>&5
2259  ac_status=$?
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); }; }; then
2262    cross_compiling=no
2263  else
2264    if test "$cross_compiling" = maybe; then
2265        cross_compiling=yes
2266    else
2267        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2268If you meant to cross compile, use \`--host'.
2269See \`config.log' for more details." >&5
2270echo "$as_me: error: cannot run C compiled programs.
2271If you meant to cross compile, use \`--host'.
2272See \`config.log' for more details." >&2;}
2273   { (exit 1); exit 1; }; }
2274    fi
2275  fi
2276fi
2277echo "$as_me:$LINENO: result: yes" >&5
2278echo "${ECHO_T}yes" >&6
2279
2280rm -f a.out a.exe conftest$ac_cv_exeext b.out
2281ac_clean_files=$ac_clean_files_save
2282# Check the compiler produces executables we can run.  If not, either
2283# the compiler is broken, or we cross compile.
2284echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2285echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2286echo "$as_me:$LINENO: result: $cross_compiling" >&5
2287echo "${ECHO_T}$cross_compiling" >&6
2288
2289echo "$as_me:$LINENO: checking for suffix of executables" >&5
2290echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2292  (eval $ac_link) 2>&5
2293  ac_status=$?
2294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295  (exit $ac_status); }; then
2296  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2297# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2298# work properly (i.e., refer to `conftest.exe'), while it won't with
2299# `rm'.
2300for ac_file in conftest.exe conftest conftest.*; do
2301  test -f "$ac_file" || continue
2302  case $ac_file in
2303    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2304    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2305          export ac_cv_exeext
2306          break;;
2307    * ) break;;
2308  esac
2309done
2310else
2311  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2312See \`config.log' for more details." >&5
2313echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2314See \`config.log' for more details." >&2;}
2315   { (exit 1); exit 1; }; }
2316fi
2317
2318rm -f conftest$ac_cv_exeext
2319echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2320echo "${ECHO_T}$ac_cv_exeext" >&6
2321
2322rm -f conftest.$ac_ext
2323EXEEXT=$ac_cv_exeext
2324ac_exeext=$EXEEXT
2325echo "$as_me:$LINENO: checking for suffix of object files" >&5
2326echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2327if test "${ac_cv_objext+set}" = set; then
2328  echo $ECHO_N "(cached) $ECHO_C" >&6
2329else
2330  cat >conftest.$ac_ext <<_ACEOF
2331/* confdefs.h.  */
2332_ACEOF
2333cat confdefs.h >>conftest.$ac_ext
2334cat >>conftest.$ac_ext <<_ACEOF
2335/* end confdefs.h.  */
2336
2337int
2338main ()
2339{
2340
2341  ;
2342  return 0;
2343}
2344_ACEOF
2345rm -f conftest.o conftest.obj
2346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347  (eval $ac_compile) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; then
2351  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2352  case $ac_file in
2353    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2354    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2355       break;;
2356  esac
2357done
2358else
2359  echo "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2363See \`config.log' for more details." >&5
2364echo "$as_me: error: cannot compute suffix of object files: cannot compile
2365See \`config.log' for more details." >&2;}
2366   { (exit 1); exit 1; }; }
2367fi
2368
2369rm -f conftest.$ac_cv_objext conftest.$ac_ext
2370fi
2371echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2372echo "${ECHO_T}$ac_cv_objext" >&6
2373OBJEXT=$ac_cv_objext
2374ac_objext=$OBJEXT
2375echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2376echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2377if test "${ac_cv_c_compiler_gnu+set}" = set; then
2378  echo $ECHO_N "(cached) $ECHO_C" >&6
2379else
2380  cat >conftest.$ac_ext <<_ACEOF
2381/* confdefs.h.  */
2382_ACEOF
2383cat confdefs.h >>conftest.$ac_ext
2384cat >>conftest.$ac_ext <<_ACEOF
2385/* end confdefs.h.  */
2386
2387int
2388main ()
2389{
2390#ifndef __GNUC__
2391       choke me
2392#endif
2393
2394  ;
2395  return 0;
2396}
2397_ACEOF
2398rm -f conftest.$ac_objext
2399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400  (eval $ac_compile) 2>conftest.er1
2401  ac_status=$?
2402  grep -v '^ *+' conftest.er1 >conftest.err
2403  rm -f conftest.er1
2404  cat conftest.err >&5
2405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406  (exit $ac_status); } &&
2407         { ac_try='test -z "$ac_c_werror_flag"
2408                         || test ! -s conftest.err'
2409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410  (eval $ac_try) 2>&5
2411  ac_status=$?
2412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413  (exit $ac_status); }; } &&
2414         { ac_try='test -s conftest.$ac_objext'
2415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416  (eval $ac_try) 2>&5
2417  ac_status=$?
2418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419  (exit $ac_status); }; }; then
2420  ac_compiler_gnu=yes
2421else
2422  echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425ac_compiler_gnu=no
2426fi
2427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428ac_cv_c_compiler_gnu=$ac_compiler_gnu
2429
2430fi
2431echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2432echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2433GCC=`test $ac_compiler_gnu = yes && echo yes`
2434ac_test_CFLAGS=${CFLAGS+set}
2435ac_save_CFLAGS=$CFLAGS
2436CFLAGS="-g"
2437echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2439if test "${ac_cv_prog_cc_g+set}" = set; then
2440  echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442  cat >conftest.$ac_ext <<_ACEOF
2443/* confdefs.h.  */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
2447/* end confdefs.h.  */
2448
2449int
2450main ()
2451{
2452
2453  ;
2454  return 0;
2455}
2456_ACEOF
2457rm -f conftest.$ac_objext
2458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459  (eval $ac_compile) 2>conftest.er1
2460  ac_status=$?
2461  grep -v '^ *+' conftest.er1 >conftest.err
2462  rm -f conftest.er1
2463  cat conftest.err >&5
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); } &&
2466         { ac_try='test -z "$ac_c_werror_flag"
2467                         || test ! -s conftest.err'
2468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469  (eval $ac_try) 2>&5
2470  ac_status=$?
2471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472  (exit $ac_status); }; } &&
2473         { ac_try='test -s conftest.$ac_objext'
2474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475  (eval $ac_try) 2>&5
2476  ac_status=$?
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); }; }; then
2479  ac_cv_prog_cc_g=yes
2480else
2481  echo "$as_me: failed program was:" >&5
2482sed 's/^/| /' conftest.$ac_ext >&5
2483
2484ac_cv_prog_cc_g=no
2485fi
2486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487fi
2488echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2489echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2490if test "$ac_test_CFLAGS" = set; then
2491  CFLAGS=$ac_save_CFLAGS
2492elif test $ac_cv_prog_cc_g = yes; then
2493  if test "$GCC" = yes; then
2494    CFLAGS="-g -O2"
2495  else
2496    CFLAGS="-g"
2497  fi
2498else
2499  if test "$GCC" = yes; then
2500    CFLAGS="-O2"
2501  else
2502    CFLAGS=
2503  fi
2504fi
2505echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2506echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2507if test "${ac_cv_prog_cc_stdc+set}" = set; then
2508  echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510  ac_cv_prog_cc_stdc=no
2511ac_save_CC=$CC
2512cat >conftest.$ac_ext <<_ACEOF
2513/* confdefs.h.  */
2514_ACEOF
2515cat confdefs.h >>conftest.$ac_ext
2516cat >>conftest.$ac_ext <<_ACEOF
2517/* end confdefs.h.  */
2518#include <stdarg.h>
2519#include <stdio.h>
2520#include <sys/types.h>
2521#include <sys/stat.h>
2522/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2523struct buf { int x; };
2524FILE * (*rcsopen) (struct buf *, struct stat *, int);
2525static char *e (p, i)
2526     char **p;
2527     int i;
2528{
2529  return p[i];
2530}
2531static char *f (char * (*g) (char **, int), char **p, ...)
2532{
2533  char *s;
2534  va_list v;
2535  va_start (v,p);
2536  s = g (p, va_arg (v,int));
2537  va_end (v);
2538  return s;
2539}
2540
2541/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2542   function prototypes and stuff, but not '\xHH' hex character constants.
2543   These don't provoke an error unfortunately, instead are silently treated
2544   as 'x'.  The following induces an error, until -std1 is added to get
2545   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2546   array size at least.  It's necessary to write '\x00'==0 to get something
2547   that's true only with -std1.  */
2548int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2549
2550int test (int i, double x);
2551struct s1 {int (*f) (int a);};
2552struct s2 {int (*f) (double a);};
2553int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2554int argc;
2555char **argv;
2556int
2557main ()
2558{
2559return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2560  ;
2561  return 0;
2562}
2563_ACEOF
2564# Don't try gcc -ansi; that turns off useful extensions and
2565# breaks some systems' header files.
2566# AIX                   -qlanglvl=ansi
2567# Ultrix and OSF/1      -std1
2568# HP-UX 10.20 and later -Ae
2569# HP-UX older versions  -Aa -D_HPUX_SOURCE
2570# SVR4                  -Xc -D__EXTENSIONS__
2571for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2572do
2573  CC="$ac_save_CC $ac_arg"
2574  rm -f conftest.$ac_objext
2575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576  (eval $ac_compile) 2>conftest.er1
2577  ac_status=$?
2578  grep -v '^ *+' conftest.er1 >conftest.err
2579  rm -f conftest.er1
2580  cat conftest.err >&5
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); } &&
2583         { ac_try='test -z "$ac_c_werror_flag"
2584                         || test ! -s conftest.err'
2585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586  (eval $ac_try) 2>&5
2587  ac_status=$?
2588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589  (exit $ac_status); }; } &&
2590         { ac_try='test -s conftest.$ac_objext'
2591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592  (eval $ac_try) 2>&5
2593  ac_status=$?
2594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595  (exit $ac_status); }; }; then
2596  ac_cv_prog_cc_stdc=$ac_arg
2597break
2598else
2599  echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602fi
2603rm -f conftest.err conftest.$ac_objext
2604done
2605rm -f conftest.$ac_ext conftest.$ac_objext
2606CC=$ac_save_CC
2607
2608fi
2609
2610case "x$ac_cv_prog_cc_stdc" in
2611  x|xno)
2612    echo "$as_me:$LINENO: result: none needed" >&5
2613echo "${ECHO_T}none needed" >&6 ;;
2614  *)
2615    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2616echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2617    CC="$CC $ac_cv_prog_cc_stdc" ;;
2618esac
2619
2620# Some people use a C++ compiler to compile C.  Since we use `exit',
2621# in C++ we need to declare it.  In case someone uses the same compiler
2622# for both compiling C and C++ we need to have the C++ compiler decide
2623# the declaration of exit, since it's the most demanding environment.
2624cat >conftest.$ac_ext <<_ACEOF
2625#ifndef __cplusplus
2626  choke me
2627#endif
2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631  (eval $ac_compile) 2>conftest.er1
2632  ac_status=$?
2633  grep -v '^ *+' conftest.er1 >conftest.err
2634  rm -f conftest.er1
2635  cat conftest.err >&5
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); } &&
2638         { ac_try='test -z "$ac_c_werror_flag"
2639                         || test ! -s conftest.err'
2640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641  (eval $ac_try) 2>&5
2642  ac_status=$?
2643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644  (exit $ac_status); }; } &&
2645         { ac_try='test -s conftest.$ac_objext'
2646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647  (eval $ac_try) 2>&5
2648  ac_status=$?
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); }; }; then
2651  for ac_declaration in \
2652   '' \
2653   'extern "C" void std::exit (int) throw (); using std::exit;' \
2654   'extern "C" void std::exit (int); using std::exit;' \
2655   'extern "C" void exit (int) throw ();' \
2656   'extern "C" void exit (int);' \
2657   'void exit (int);'
2658do
2659  cat >conftest.$ac_ext <<_ACEOF
2660/* confdefs.h.  */
2661_ACEOF
2662cat confdefs.h >>conftest.$ac_ext
2663cat >>conftest.$ac_ext <<_ACEOF
2664/* end confdefs.h.  */
2665$ac_declaration
2666#include <stdlib.h>
2667int
2668main ()
2669{
2670exit (42);
2671  ;
2672  return 0;
2673}
2674_ACEOF
2675rm -f conftest.$ac_objext
2676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677  (eval $ac_compile) 2>conftest.er1
2678  ac_status=$?
2679  grep -v '^ *+' conftest.er1 >conftest.err
2680  rm -f conftest.er1
2681  cat conftest.err >&5
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); } &&
2684         { ac_try='test -z "$ac_c_werror_flag"
2685                         || test ! -s conftest.err'
2686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687  (eval $ac_try) 2>&5
2688  ac_status=$?
2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690  (exit $ac_status); }; } &&
2691         { ac_try='test -s conftest.$ac_objext'
2692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693  (eval $ac_try) 2>&5
2694  ac_status=$?
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); }; }; then
2697  :
2698else
2699  echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702continue
2703fi
2704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2705  cat >conftest.$ac_ext <<_ACEOF
2706/* confdefs.h.  */
2707_ACEOF
2708cat confdefs.h >>conftest.$ac_ext
2709cat >>conftest.$ac_ext <<_ACEOF
2710/* end confdefs.h.  */
2711$ac_declaration
2712int
2713main ()
2714{
2715exit (42);
2716  ;
2717  return 0;
2718}
2719_ACEOF
2720rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722  (eval $ac_compile) 2>conftest.er1
2723  ac_status=$?
2724  grep -v '^ *+' conftest.er1 >conftest.err
2725  rm -f conftest.er1
2726  cat conftest.err >&5
2727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728  (exit $ac_status); } &&
2729         { ac_try='test -z "$ac_c_werror_flag"
2730                         || test ! -s conftest.err'
2731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732  (eval $ac_try) 2>&5
2733  ac_status=$?
2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735  (exit $ac_status); }; } &&
2736         { ac_try='test -s conftest.$ac_objext'
2737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738  (eval $ac_try) 2>&5
2739  ac_status=$?
2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741  (exit $ac_status); }; }; then
2742  break
2743else
2744  echo "$as_me: failed program was:" >&5
2745sed 's/^/| /' conftest.$ac_ext >&5
2746
2747fi
2748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2749done
2750rm -f conftest*
2751if test -n "$ac_declaration"; then
2752  echo '#ifdef __cplusplus' >>confdefs.h
2753  echo $ac_declaration      >>confdefs.h
2754  echo '#endif'             >>confdefs.h
2755fi
2756
2757else
2758  echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761fi
2762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2763ac_ext=c
2764ac_cpp='$CPP $CPPFLAGS'
2765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768
2769if test -z "$CC" ; then
2770  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2771echo "$as_me: error: Failed to find a C compiler!" >&2;}
2772   { (exit 1); exit 1; }; }
2773fi
2774# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2775case "$CC" in
2776  clang* ) ;;
2777  cl* | */cl* | CL* | */CL* )
2778    if test "$ac_cv_prog_cc_g" = yes ; then
2779      ac_cv_prog_cc_g=no
2780      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2781echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2782    fi ;;
2783  * )
2784    CYGPATH_W=echo
2785    ;;
2786esac
2787CFLAGS="$save_cflags"
2788
2789# add automake conditional so we can recognize cl compiler in makefile
2790coin_cc_is_cl=false
2791case "$CC" in
2792  clang* ) ;;
2793  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2794    coin_cc_is_cl=true
2795    ;;
2796esac
2797
2798
2799if test $coin_cc_is_cl = true; then
2800  COIN_CC_IS_CL_TRUE=
2801  COIN_CC_IS_CL_FALSE='#'
2802else
2803  COIN_CC_IS_CL_TRUE='#'
2804  COIN_CC_IS_CL_FALSE=
2805fi
2806
2807
2808# Check if a project specific CFLAGS variable has been set
2809if test x$COIN_PRJCT != x; then
2810  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2811  if test x$coin_tmp = xset; then
2812    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2813  fi
2814fi
2815
2816if test x"$CFLAGS" = x; then
2817
2818  coin_add_cflags=
2819  coin_opt_cflags=
2820  coin_dbg_cflags=
2821  coin_warn_cflags=
2822
2823  if test "$GCC" = "yes"; then
2824    case "$CC" in
2825      icc* | */icc*)
2826        ;;
2827      *)
2828        coin_opt_cflags="-O3"
2829        coin_add_cflags="-pipe"
2830        coin_dbg_cflags="-g -O0"
2831        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2832        case $build in
2833          *-darwin*)
2834            ;;
2835          *)
2836            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2837            ;;
2838        esac
2839        case $enable_doscompile in
2840          mingw)
2841            CFLAGS="-mno-cygwin"
2842            cat >conftest.$ac_ext <<_ACEOF
2843/* confdefs.h.  */
2844_ACEOF
2845cat confdefs.h >>conftest.$ac_ext
2846cat >>conftest.$ac_ext <<_ACEOF
2847/* end confdefs.h.  */
2848
2849int
2850main ()
2851{
2852int i=0; i++;
2853  ;
2854  return 0;
2855}
2856_ACEOF
2857rm -f conftest.$ac_objext conftest$ac_exeext
2858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2859  (eval $ac_link) 2>conftest.er1
2860  ac_status=$?
2861  grep -v '^ *+' conftest.er1 >conftest.err
2862  rm -f conftest.er1
2863  cat conftest.err >&5
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); } &&
2866         { ac_try='test -z "$ac_c_werror_flag"
2867                         || test ! -s conftest.err'
2868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869  (eval $ac_try) 2>&5
2870  ac_status=$?
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); }; } &&
2873         { ac_try='test -s conftest$ac_exeext'
2874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875  (eval $ac_try) 2>&5
2876  ac_status=$?
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); }; }; then
2879  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2880else
2881  echo "$as_me: failed program was:" >&5
2882sed 's/^/| /' conftest.$ac_ext >&5
2883
2884fi
2885rm -f conftest.err conftest.$ac_objext \
2886      conftest$ac_exeext conftest.$ac_ext
2887            CFLAGS=
2888          ;;
2889        esac
2890    esac
2891  fi
2892  if test -z "$coin_opt_cflags"; then
2893    case $build in
2894      *-cygwin* | *-mingw*)
2895        case "$CC" in
2896          clang* ) ;;
2897          cl* | */cl* | CL* | */CL*)
2898            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2899              coin_opt_cflags='-MD -O2'
2900              coin_dbg_cflags='-MDd'
2901            else
2902              coin_opt_cflags='-MT -O2'
2903              coin_dbg_cflags='-MTd'
2904            fi
2905            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2906            ;;
2907          icl* | */icl* | ICL* | */ICL*)
2908            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2909              coin_opt_cflags='-MD -Ox'
2910              coin_dbg_cflags='-MDd -debug'
2911            else
2912              coin_opt_cflags='-MT -Ox'
2913              coin_dbg_cflags='-MTd -debug'
2914            fi
2915            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2916            ;;
2917        esac
2918        ;;
2919      *-linux-*)
2920        case "$CC" in
2921          icc* | */icc*)
2922            coin_opt_cflags="-O3 -ip -mp1"
2923            coin_add_cflags=""
2924            coin_dbg_cflags="-g"
2925            # Check if -i_dynamic is necessary (for new glibc library)
2926            CFLAGS=
2927            cat >conftest.$ac_ext <<_ACEOF
2928/* confdefs.h.  */
2929_ACEOF
2930cat confdefs.h >>conftest.$ac_ext
2931cat >>conftest.$ac_ext <<_ACEOF
2932/* end confdefs.h.  */
2933
2934int
2935main ()
2936{
2937int i=0; i++;
2938  ;
2939  return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext conftest$ac_exeext
2943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2944  (eval $ac_link) 2>conftest.er1
2945  ac_status=$?
2946  grep -v '^ *+' conftest.er1 >conftest.err
2947  rm -f conftest.er1
2948  cat conftest.err >&5
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); } &&
2951         { ac_try='test -z "$ac_c_werror_flag"
2952                         || test ! -s conftest.err'
2953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954  (eval $ac_try) 2>&5
2955  ac_status=$?
2956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957  (exit $ac_status); }; } &&
2958         { ac_try='test -s conftest$ac_exeext'
2959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960  (eval $ac_try) 2>&5
2961  ac_status=$?
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); }; }; then
2964  :
2965else
2966  echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969coin_add_cflags="-i_dynamic $coin_add_cflags"
2970fi
2971rm -f conftest.err conftest.$ac_objext \
2972      conftest$ac_exeext conftest.$ac_ext
2973            ;;
2974          pgcc* | */pgcc*)
2975            coin_opt_cflags="-fast"
2976            coin_add_cflags="-Kieee -pc 64"
2977            coin_dbg_cflags="-g"
2978            ;;
2979        esac
2980        ;;
2981      *-ibm-*)
2982        case "$CC" in
2983          xlc* | */xlc* | mpxlc* | */mpxlc*)
2984            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2985            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2986            coin_dbg_cflags="-g"
2987          ;;
2988        esac
2989        ;;
2990      *-hp-*)
2991        coin_opt_cflags="-O"
2992        coin_add_cflags="-Ae"
2993        coin_dbg_cflags="-g"
2994        ;;
2995      *-*-solaris*)
2996        coin_opt_cflags="-xO4"
2997        coin_dbg_cflags="-g"
2998        ;;
2999      *-sgi-*)
3000        coin_opt_cflags="-O -OPT:Olimit=0"
3001        coin_dbg_cflags="-g"
3002        ;;
3003    esac
3004  fi
3005
3006  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3007    coin_dbg_cflags="-g"
3008  fi
3009
3010  if test -z "$coin_opt_cflags"; then
3011    # Try if -O option works if nothing else is set
3012    CFLAGS="-O"
3013    cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023int i=0; i++;
3024  ;
3025  return 0;
3026}
3027_ACEOF
3028rm -f conftest.$ac_objext conftest$ac_exeext
3029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3030  (eval $ac_link) 2>conftest.er1
3031  ac_status=$?
3032  grep -v '^ *+' conftest.er1 >conftest.err
3033  rm -f conftest.er1
3034  cat conftest.err >&5
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); } &&
3037         { ac_try='test -z "$ac_c_werror_flag"
3038                         || test ! -s conftest.err'
3039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040  (eval $ac_try) 2>&5
3041  ac_status=$?
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); }; } &&
3044         { ac_try='test -s conftest$ac_exeext'
3045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046  (eval $ac_try) 2>&5
3047  ac_status=$?
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); }; }; then
3050  coin_opt_cflags="-O"
3051else
3052  echo "$as_me: failed program was:" >&5
3053sed 's/^/| /' conftest.$ac_ext >&5
3054
3055fi
3056rm -f conftest.err conftest.$ac_objext \
3057      conftest$ac_exeext conftest.$ac_ext
3058  fi
3059
3060  # if PM doesn't want the warning messages, take them out
3061  if test x"$coin_skip_warn_cflags" = xyes; then
3062    coin_warn_cflags=
3063  fi
3064
3065  if test x${DBG_CFLAGS+set} != xset; then
3066    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3067  fi
3068  if test x${OPT_CFLAGS+set} != xset; then
3069    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3070  fi
3071
3072  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3073  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3074
3075  if test "$coin_debug_compile" = "true"; then
3076    CFLAGS="$DBG_CFLAGS"
3077  else
3078    CFLAGS="$OPT_CFLAGS"
3079  fi
3080else
3081  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3082  if test x${DBG_CFLAGS+set} != xset; then
3083    DBG_CFLAGS="$CFLAGS"
3084  fi
3085  if test x${OPT_CFLAGS+set} != xset; then
3086    OPT_CFLAGS="$CFLAGS"
3087  fi
3088fi
3089
3090# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3091
3092case "$CFLAGS" in
3093  *-mno-cygwin*)
3094    if test x${CPPFLAGS+set} != xset ; then
3095      CPPFLAGS="-mno-cygwin"
3096    else
3097      case "$CPPFLAGS" in
3098        *-mno-cygwin*)
3099          ;;
3100        *)
3101          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3102          ;;
3103      esac
3104    fi ;;
3105esac
3106
3107# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3108if test x$COIN_PRJCT != x; then
3109  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3110fi
3111
3112# Try if CFLAGS works
3113save_CFLAGS="$CFLAGS"
3114cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h.  */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h.  */
3120
3121int
3122main ()
3123{
3124int i=0; i++;
3125  ;
3126  return 0;
3127}
3128_ACEOF
3129rm -f conftest.$ac_objext conftest$ac_exeext
3130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3131  (eval $ac_link) 2>conftest.er1
3132  ac_status=$?
3133  grep -v '^ *+' conftest.er1 >conftest.err
3134  rm -f conftest.er1
3135  cat conftest.err >&5
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); } &&
3138         { ac_try='test -z "$ac_c_werror_flag"
3139                         || test ! -s conftest.err'
3140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141  (eval $ac_try) 2>&5
3142  ac_status=$?
3143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144  (exit $ac_status); }; } &&
3145         { ac_try='test -s conftest$ac_exeext'
3146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147  (eval $ac_try) 2>&5
3148  ac_status=$?
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); }; }; then
3151  :
3152else
3153  echo "$as_me: failed program was:" >&5
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
3156CFLAGS=
3157fi
3158rm -f conftest.err conftest.$ac_objext \
3159      conftest$ac_exeext conftest.$ac_ext
3160if test -z "$CFLAGS"; then
3161  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3162echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3163  CFLAGS='-O'
3164  cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h.  */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h.  */
3170
3171int
3172main ()
3173{
3174int i=0; i++;
3175  ;
3176  return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext conftest$ac_exeext
3180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3181  (eval $ac_link) 2>conftest.er1
3182  ac_status=$?
3183  grep -v '^ *+' conftest.er1 >conftest.err
3184  rm -f conftest.er1
3185  cat conftest.err >&5
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); } &&
3188         { ac_try='test -z "$ac_c_werror_flag"
3189                         || test ! -s conftest.err'
3190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191  (eval $ac_try) 2>&5
3192  ac_status=$?
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); }; } &&
3195         { ac_try='test -s conftest$ac_exeext'
3196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197  (eval $ac_try) 2>&5
3198  ac_status=$?
3199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200  (exit $ac_status); }; }; then
3201  :
3202else
3203  echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206CFLAGS=
3207fi
3208rm -f conftest.err conftest.$ac_objext \
3209      conftest$ac_exeext conftest.$ac_ext
3210  if test -z "$CFLAGS"; then
3211    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3212echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3213  fi
3214fi
3215
3216{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3217echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3218
3219
3220if test x"$MPICC" = x; then :; else
3221  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3222echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3223  CC="$MPICC"
3224fi
3225
3226# Correct the LD variable if we are using the MS or Intel-windows compiler
3227case "$CC" in
3228  clang* ) ;;
3229  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3230    case $build in
3231  *-mingw*)
3232    if test "${LD+set}" = set; then :; else
3233      LD=link
3234    fi
3235    ;;
3236 esac
3237 case $enable_doscompile in
3238   msvc)
3239     if test "x${LD+set}" = xset; then :; else
3240       LD=link
3241     fi
3242     ;;
3243 esac
3244
3245    ;;
3246esac
3247
3248ac_ext=c
3249ac_cpp='$CPP $CPPFLAGS'
3250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253
3254
3255
3256# Initialize automake and libtool
3257{
3258
3259
3260
3261# START
3262
3263coin_disable_shared=no
3264# Test if force_shared has been set
3265if test "x" = xforce_shared; then
3266  if test x$enable_shared = xno; then
3267    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3268echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3269   { (exit 1); exit 1; }; }
3270  fi
3271  enable_shared=yes;
3272else
3273  # On Cygwin and AIX, building DLLs doesn't work
3274  case $build in
3275    *-cygwin* | *-mingw*)
3276      coin_disable_shared=yes
3277      if test x"$enable_shared" = xyes; then
3278        case "$CXX" in
3279          clang* )
3280            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3281echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3282            ;;
3283          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3284            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
3285echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
3286            ;;
3287          *)
3288            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3289echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3290            ;;
3291        esac
3292      fi
3293    ;;
3294    *-aix*)
3295      coin_disable_shared=yes
3296      platform=AIX
3297      if test x"$enable_shared" = xyes; then
3298        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
3299echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
3300      fi
3301    ;;
3302  esac
3303fi
3304if test x"$coin_disable_shared" = xyes; then
3305  if test x"$enable_shared" = xyes; then
3306    :
3307  else
3308    # we don't disable shared, because it was not selected anyway
3309    coin_disable_shared=no
3310  fi
3311  enable_shared=no
3312fi
3313# By default, we only want the shared objects to be compiled
3314# Check whether --enable-static or --disable-static was given.
3315if test "${enable_static+set}" = set; then
3316  enableval="$enable_static"
3317  p=${PACKAGE-default}
3318    case $enableval in
3319    yes) enable_static=yes ;;
3320    no) enable_static=no ;;
3321    *)
3322     enable_static=no
3323      # Look at the argument we got.  We use all the common list separators.
3324      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3325      for pkg in $enableval; do
3326        IFS="$lt_save_ifs"
3327        if test "X$pkg" = "X$p"; then
3328          enable_static=yes
3329        fi
3330      done
3331      IFS="$lt_save_ifs"
3332      ;;
3333    esac
3334else
3335  enable_static=no
3336fi;
3337
3338
3339
3340
3341# Initialize automake
3342am__api_version="1.9"
3343# Find a good install program.  We prefer a C program (faster),
3344# so one script is as good as another.  But avoid the broken or
3345# incompatible versions:
3346# SysV /etc/install, /usr/sbin/install
3347# SunOS /usr/etc/install
3348# IRIX /sbin/install
3349# AIX /bin/install
3350# AmigaOS /C/install, which installs bootblocks on floppy discs
3351# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3352# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3353# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3354# OS/2's system install, which has a completely different semantic
3355# ./install, which can be erroneously created by make from ./install.sh.
3356echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3357echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3358if test -z "$INSTALL"; then
3359if test "${ac_cv_path_install+set}" = set; then
3360  echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367  # Account for people who put trailing slashes in PATH elements.
3368case $as_dir/ in
3369  ./ | .// | /cC/* | \
3370  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3371  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3372  /usr/ucb/* ) ;;
3373  *)
3374    # OSF1 and SCO ODT 3.0 have their own names for install.
3375    # Don't use installbsd from OSF since it installs stuff as root
3376    # by default.
3377    for ac_prog in ginstall scoinst install; do
3378      for ac_exec_ext in '' $ac_executable_extensions; do
3379        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3380          if test $ac_prog = install &&
3381            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3382            # AIX install.  It has an incompatible calling convention.
3383            :
3384          elif test $ac_prog = install &&
3385            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3386            # program-specific install script used by HP pwplus--don't use.
3387            :
3388          else
3389            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3390            break 3
3391          fi
3392        fi
3393      done
3394    done
3395    ;;
3396esac
3397done
3398
3399
3400fi
3401  if test "${ac_cv_path_install+set}" = set; then
3402    INSTALL=$ac_cv_path_install
3403  else
3404    # As a last resort, use the slow shell script.  We don't cache a
3405    # path for INSTALL within a source directory, because that will
3406    # break other packages using the cache if that directory is
3407    # removed, or if the path is relative.
3408    INSTALL=$ac_install_sh
3409  fi
3410fi
3411echo "$as_me:$LINENO: result: $INSTALL" >&5
3412echo "${ECHO_T}$INSTALL" >&6
3413
3414# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3415# It thinks the first close brace ends the variable substitution.
3416test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3417
3418test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3419
3420test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3421
3422echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3423echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3424# Just in case
3425sleep 1
3426echo timestamp > conftest.file
3427# Do `set' in a subshell so we don't clobber the current shell's
3428# arguments.  Must try -L first in case configure is actually a
3429# symlink; some systems play weird games with the mod time of symlinks
3430# (eg FreeBSD returns the mod time of the symlink's containing
3431# directory).
3432if (
3433   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3434   if test "$*" = "X"; then
3435      # -L didn't work.
3436      set X `ls -t $srcdir/configure conftest.file`
3437   fi
3438   rm -f conftest.file
3439   if test "$*" != "X $srcdir/configure conftest.file" \
3440      && test "$*" != "X conftest.file $srcdir/configure"; then
3441
3442      # If neither matched, then we have a broken ls.  This can happen
3443      # if, for instance, CONFIG_SHELL is bash and it inherits a
3444      # broken ls alias from the environment.  This has actually
3445      # happened.  Such a system could not be considered "sane".
3446      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3447alias in your environment" >&5
3448echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3449alias in your environment" >&2;}
3450   { (exit 1); exit 1; }; }
3451   fi
3452
3453   test "$2" = conftest.file
3454   )
3455then
3456   # Ok.
3457   :
3458else
3459   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3460Check your system clock" >&5
3461echo "$as_me: error: newly created file is older than distributed files!
3462Check your system clock" >&2;}
3463   { (exit 1); exit 1; }; }
3464fi
3465echo "$as_me:$LINENO: result: yes" >&5
3466echo "${ECHO_T}yes" >&6
3467test "$program_prefix" != NONE &&
3468  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3469# Use a double $ so make ignores it.
3470test "$program_suffix" != NONE &&
3471  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3472# Double any \ or $.  echo might interpret backslashes.
3473# By default was `s,x,x', remove it if useless.
3474cat <<\_ACEOF >conftest.sed
3475s/[\\$]/&&/g;s/;s,x,x,$//
3476_ACEOF
3477program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3478rm conftest.sed
3479
3480# expand $ac_aux_dir to an absolute path
3481am_aux_dir=`cd $ac_aux_dir && pwd`
3482
3483test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3484# Use eval to expand $SHELL
3485if eval "$MISSING --run true"; then
3486  am_missing_run="$MISSING --run "
3487else
3488  am_missing_run=
3489  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3490echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3491fi
3492
3493if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3494  # We used to keeping the `.' as first argument, in order to
3495  # allow $(mkdir_p) to be used without argument.  As in
3496  #   $(mkdir_p) $(somedir)
3497  # where $(somedir) is conditionally defined.  However this is wrong
3498  # for two reasons:
3499  #  1. if the package is installed by a user who cannot write `.'
3500  #     make install will fail,
3501  #  2. the above comment should most certainly read
3502  #     $(mkdir_p) $(DESTDIR)$(somedir)
3503  #     so it does not work when $(somedir) is undefined and
3504  #     $(DESTDIR) is not.
3505  #  To support the latter case, we have to write
3506  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3507  #  so the `.' trick is pointless.
3508  mkdir_p='mkdir -p --'
3509else
3510  # On NextStep and OpenStep, the `mkdir' command does not
3511  # recognize any option.  It will interpret all options as
3512  # directories to create, and then abort because `.' already
3513  # exists.
3514  for d in ./-p ./--version;
3515  do
3516    test -d $d && rmdir $d
3517  done
3518  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3519  if test -f "$ac_aux_dir/mkinstalldirs"; then
3520    mkdir_p='$(mkinstalldirs)'
3521  else
3522    mkdir_p='$(install_sh) -d'
3523  fi
3524fi
3525
3526for ac_prog in gawk mawk nawk awk
3527do
3528  # Extract the first word of "$ac_prog", so it can be a program name with args.
3529set dummy $ac_prog; ac_word=$2
3530echo "$as_me:$LINENO: checking for $ac_word" >&5
3531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3532if test "${ac_cv_prog_AWK+set}" = set; then
3533  echo $ECHO_N "(cached) $ECHO_C" >&6
3534else
3535  if test -n "$AWK"; then
3536  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3537else
3538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539for as_dir in $PATH
3540do
3541  IFS=$as_save_IFS
3542  test -z "$as_dir" && as_dir=.
3543  for ac_exec_ext in '' $ac_executable_extensions; do
3544  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545    ac_cv_prog_AWK="$ac_prog"
3546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547    break 2
3548  fi
3549done
3550done
3551
3552fi
3553fi
3554AWK=$ac_cv_prog_AWK
3555if test -n "$AWK"; then
3556  echo "$as_me:$LINENO: result: $AWK" >&5
3557echo "${ECHO_T}$AWK" >&6
3558else
3559  echo "$as_me:$LINENO: result: no" >&5
3560echo "${ECHO_T}no" >&6
3561fi
3562
3563  test -n "$AWK" && break
3564done
3565
3566echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3567echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3568set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3569if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3570  echo $ECHO_N "(cached) $ECHO_C" >&6
3571else
3572  cat >conftest.make <<\_ACEOF
3573all:
3574        @echo 'ac_maketemp="$(MAKE)"'
3575_ACEOF
3576# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3577eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3578if test -n "$ac_maketemp"; then
3579  eval ac_cv_prog_make_${ac_make}_set=yes
3580else
3581  eval ac_cv_prog_make_${ac_make}_set=no
3582fi
3583rm -f conftest.make
3584fi
3585if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3586  echo "$as_me:$LINENO: result: yes" >&5
3587echo "${ECHO_T}yes" >&6
3588  SET_MAKE=
3589else
3590  echo "$as_me:$LINENO: result: no" >&5
3591echo "${ECHO_T}no" >&6
3592  SET_MAKE="MAKE=${MAKE-make}"
3593fi
3594
3595rm -rf .tst 2>/dev/null
3596mkdir .tst 2>/dev/null
3597if test -d .tst; then
3598  am__leading_dot=.
3599else
3600  am__leading_dot=_
3601fi
3602rmdir .tst 2>/dev/null
3603
3604DEPDIR="${am__leading_dot}deps"
3605
3606          ac_config_commands="$ac_config_commands depfiles"
3607
3608
3609am_make=${MAKE-make}
3610cat > confinc << 'END'
3611am__doit:
3612        @echo done
3613.PHONY: am__doit
3614END
3615# If we don't find an include directive, just comment out the code.
3616echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3617echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3618am__include="#"
3619am__quote=
3620_am_result=none
3621# First try GNU make style include.
3622echo "include confinc" > confmf
3623# We grep out `Entering directory' and `Leaving directory'
3624# messages which can occur if `w' ends up in MAKEFLAGS.
3625# In particular we don't look at `^make:' because GNU make might
3626# be invoked under some other name (usually "gmake"), in which
3627# case it prints its new name instead of `make'.
3628if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3629   am__include=include
3630   am__quote=
3631   _am_result=GNU
3632fi
3633# Now try BSD make style include.
3634if test "$am__include" = "#"; then
3635   echo '.include "confinc"' > confmf
3636   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3637      am__include=.include
3638      am__quote="\""
3639      _am_result=BSD
3640   fi
3641fi
3642
3643
3644echo "$as_me:$LINENO: result: $_am_result" >&5
3645echo "${ECHO_T}$_am_result" >&6
3646rm -f confinc confmf
3647
3648# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3649if test "${enable_dependency_tracking+set}" = set; then
3650  enableval="$enable_dependency_tracking"
3651
3652fi;
3653if test "x$enable_dependency_tracking" != xno; then
3654  am_depcomp="$ac_aux_dir/depcomp"
3655  AMDEPBACKSLASH='\'
3656fi
3657
3658
3659if test "x$enable_dependency_tracking" != xno; then
3660  AMDEP_TRUE=
3661  AMDEP_FALSE='#'
3662else
3663  AMDEP_TRUE='#'
3664  AMDEP_FALSE=
3665fi
3666
3667
3668
3669
3670
3671
3672# AC_MSG_NOTICE([Beginning automake initialisation.])
3673# Stuff for automake
3674# test to see if srcdir already configured
3675if test "`cd $srcdir && pwd`" != "`pwd`" &&
3676   test -f $srcdir/config.status; then
3677  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3678echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3679   { (exit 1); exit 1; }; }
3680fi
3681
3682# test whether we have cygpath
3683if test -z "$CYGPATH_W"; then
3684  if (cygpath --version) >/dev/null 2>/dev/null; then
3685    CYGPATH_W='cygpath -w'
3686  else
3687    CYGPATH_W=echo
3688  fi
3689fi
3690
3691
3692# Define the identity of the package.
3693 PACKAGE='thirdpartyasl'
3694 VERSION='1.2.8'
3695
3696
3697cat >>confdefs.h <<_ACEOF
3698#define PACKAGE "$PACKAGE"
3699_ACEOF
3700
3701
3702cat >>confdefs.h <<_ACEOF
3703#define VERSION "$VERSION"
3704_ACEOF
3705
3706# Some tools Automake needs.
3707
3708ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3709
3710
3711AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3712
3713
3714AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3715
3716
3717AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3718
3719
3720MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3721
3722install_sh=${install_sh-"$am_aux_dir/install-sh"}
3723
3724# Installed binaries are usually stripped using `strip' when the user
3725# run `make install-strip'.  However `strip' might not be the right
3726# tool to use in cross-compilation environments, therefore Automake
3727# will honor the `STRIP' environment variable to overrule this program.
3728if test "$cross_compiling" != no; then
3729  if test -n "$ac_tool_prefix"; then
3730  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3731set dummy ${ac_tool_prefix}strip; ac_word=$2
3732echo "$as_me:$LINENO: checking for $ac_word" >&5
3733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734if test "${ac_cv_prog_STRIP+set}" = set; then
3735  echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
3737  if test -n "$STRIP"; then
3738  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3739else
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741for as_dir in $PATH
3742do
3743  IFS=$as_save_IFS
3744  test -z "$as_dir" && as_dir=.
3745  for ac_exec_ext in '' $ac_executable_extensions; do
3746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749    break 2
3750  fi
3751done
3752done
3753
3754fi
3755fi
3756STRIP=$ac_cv_prog_STRIP
3757if test -n "$STRIP"; then
3758  echo "$as_me:$LINENO: result: $STRIP" >&5
3759echo "${ECHO_T}$STRIP" >&6
3760else
3761  echo "$as_me:$LINENO: result: no" >&5
3762echo "${ECHO_T}no" >&6
3763fi
3764
3765fi
3766if test -z "$ac_cv_prog_STRIP"; then
3767  ac_ct_STRIP=$STRIP
3768  # Extract the first word of "strip", so it can be a program name with args.
3769set dummy strip; ac_word=$2
3770echo "$as_me:$LINENO: checking for $ac_word" >&5
3771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3773  echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775  if test -n "$ac_ct_STRIP"; then
3776  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3777else
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781  IFS=$as_save_IFS
3782  test -z "$as_dir" && as_dir=.
3783  for ac_exec_ext in '' $ac_executable_extensions; do
3784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785    ac_cv_prog_ac_ct_STRIP="strip"
3786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787    break 2
3788  fi
3789done
3790done
3791
3792  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3793fi
3794fi
3795ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3796if test -n "$ac_ct_STRIP"; then
3797  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3798echo "${ECHO_T}$ac_ct_STRIP" >&6
3799else
3800  echo "$as_me:$LINENO: result: no" >&5
3801echo "${ECHO_T}no" >&6
3802fi
3803
3804  STRIP=$ac_ct_STRIP
3805else
3806  STRIP="$ac_cv_prog_STRIP"
3807fi
3808
3809fi
3810INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3811
3812# We need awk for the "check" target.  The system "awk" is bad on
3813# some platforms.
3814# Always define AMTAR for backward compatibility.
3815
3816AMTAR=${AMTAR-"${am_missing_run}tar"}
3817
3818am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3819
3820
3821
3822
3823depcc="$CC"   am_compiler_list=
3824
3825echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3826echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3827if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3828  echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3831  # We make a subdir and do the tests there.  Otherwise we can end up
3832  # making bogus files that we don't know about and never remove.  For
3833  # instance it was reported that on HP-UX the gcc test will end up
3834  # making a dummy file named `D' -- because `-MD' means `put the output
3835  # in D'.
3836  mkdir conftest.dir
3837  # Copy depcomp to subdir because otherwise we won't find it if we're
3838  # using a relative directory.
3839  cp "$am_depcomp" conftest.dir
3840  cd conftest.dir
3841  # We will build objects and dependencies in a subdirectory because
3842  # it helps to detect inapplicable dependency modes.  For instance
3843  # both Tru64's cc and ICC support -MD to output dependencies as a
3844  # side effect of compilation, but ICC will put the dependencies in
3845  # the current directory while Tru64 will put them in the object
3846  # directory.
3847  mkdir sub
3848
3849  am_cv_CC_dependencies_compiler_type=none
3850  if test "$am_compiler_list" = ""; then
3851     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3852  fi
3853  for depmode in $am_compiler_list; do
3854    # Setup a source with many dependencies, because some compilers
3855    # like to wrap large dependency lists on column 80 (with \), and
3856    # we should not choose a depcomp mode which is confused by this.
3857    #
3858    # We need to recreate these files for each test, as the compiler may
3859    # overwrite some of them when testing with obscure command lines.
3860    # This happens at least with the AIX C compiler.
3861    : > sub/conftest.c
3862    for i in 1 2 3 4 5 6; do
3863      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3864      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3865      # Solaris 8's {/usr,}/bin/sh.
3866      touch sub/conftst$i.h
3867    done
3868    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3869
3870    case $depmode in
3871    nosideeffect)
3872      # after this tag, mechanisms are not by side-effect, so they'll
3873      # only be used when explicitly requested
3874      if test "x$enable_dependency_tracking" = xyes; then
3875        continue
3876      else
3877        break
3878      fi
3879      ;;
3880    none) break ;;
3881    esac
3882    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3883    # mode.  It turns out that the SunPro C++ compiler does not properly
3884    # handle `-M -o', and we need to detect this.
3885    if depmode=$depmode \
3886       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3887       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3888       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3889         >/dev/null 2>conftest.err &&
3890       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3891       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3892       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3893      # icc doesn't choke on unknown options, it will just issue warnings
3894      # or remarks (even with -Werror).  So we grep stderr for any message
3895      # that says an option was ignored or not supported.
3896      # When given -MP, icc 7.0 and 7.1 complain thusly:
3897      #   icc: Command line warning: ignoring option '-M'; no argument required
3898      # The diagnosis changed in icc 8.0:
3899      #   icc: Command line remark: option '-MP' not supported
3900      if (grep 'ignoring option' conftest.err ||
3901          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3902        am_cv_CC_dependencies_compiler_type=$depmode
3903        break
3904      fi
3905    fi
3906  done
3907
3908  cd ..
3909  rm -rf conftest.dir
3910else
3911  am_cv_CC_dependencies_compiler_type=none
3912fi
3913
3914fi
3915echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3916echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3917CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3918
3919
3920
3921if
3922  test "x$enable_dependency_tracking" != xno \
3923  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3924  am__fastdepCC_TRUE=
3925  am__fastdepCC_FALSE='#'
3926else
3927  am__fastdepCC_TRUE='#'
3928  am__fastdepCC_FALSE=
3929fi
3930
3931
3932
3933echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3934echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3935    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3936if test "${enable_maintainer_mode+set}" = set; then
3937  enableval="$enable_maintainer_mode"
3938  USE_MAINTAINER_MODE=$enableval
3939else
3940  USE_MAINTAINER_MODE=no
3941fi;
3942  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3943echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3944
3945
3946if test $USE_MAINTAINER_MODE = yes; then
3947  MAINTAINER_MODE_TRUE=
3948  MAINTAINER_MODE_FALSE='#'
3949else
3950  MAINTAINER_MODE_TRUE='#'
3951  MAINTAINER_MODE_FALSE=
3952fi
3953
3954  MAINT=$MAINTAINER_MODE_TRUE
3955
3956
3957
3958coin_have_externals=no
3959if test "$enable_maintainer_mode" = yes; then
3960
3961  # If maintainer mode is chosen, we make sure that the correct versions
3962  # of the tools are used, and that we know where libtool.m4 is (to
3963  # recreate acinclude.m4)
3964
3965
3966  LIBTOOLM4=
3967  # Normally, $HOME
3968  AUTOTOOLS_DFLT=$HOME
3969
3970  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
3971echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
3972if test "${ac_cv_use_correct_autotools+set}" = set; then
3973  echo $ECHO_N "(cached) $ECHO_C" >&6
3974else
3975  ac_cv_use_correct_autotools=check
3976fi
3977echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
3978echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
3979
3980  if test $ac_cv_use_correct_autotools = check; then
3981    ac_cv_use_correct_autotools=yes
3982    # Check if we have autoconf
3983    # Extract the first word of "autoconf", so it can be a program name with args.
3984set dummy autoconf; ac_word=$2
3985echo "$as_me:$LINENO: checking for $ac_word" >&5
3986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3987if test "${ac_cv_prog_have_autoconf+set}" = set; then
3988  echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990  if test -n "$have_autoconf"; then
3991  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
3992else
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996  IFS=$as_save_IFS
3997  test -z "$as_dir" && as_dir=.
3998  for ac_exec_ext in '' $ac_executable_extensions; do
3999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000    ac_cv_prog_have_autoconf="yes"
4001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002    break 2
4003  fi
4004done
4005done
4006
4007  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4008fi
4009fi
4010have_autoconf=$ac_cv_prog_have_autoconf
4011if test -n "$have_autoconf"; then
4012  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4013echo "${ECHO_T}$have_autoconf" >&6
4014else
4015  echo "$as_me:$LINENO: result: no" >&5
4016echo "${ECHO_T}no" >&6
4017fi
4018
4019    if test $have_autoconf = no; then
4020      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4021echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4022   { (exit 1); exit 1; }; }
4023    fi
4024
4025    # Check whether autoconf is the correct version
4026    correct_version='2.59'
4027    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4028    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4029echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4030    autoconf --version > confauto.out 2>&1
4031    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4032      echo "$as_me:$LINENO: result: yes" >&5
4033echo "${ECHO_T}yes" >&6
4034    else
4035      rm -f confauto.out
4036      echo "$as_me:$LINENO: result: no" >&5
4037echo "${ECHO_T}no" >&6
4038      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4039echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4040   { (exit 1); exit 1; }; }
4041    fi
4042    rm -f confauto.out
4043
4044    # Check if the executable autoconf is picked up from the correct location
4045    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4046echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4047    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4048    autoconf_dir=`cd $autoconf_dir; pwd`
4049    if test x$AUTOTOOLS_DIR = x; then
4050      want_dir=$AUTOTOOLS_DFLT/bin
4051    else
4052      want_dir=$AUTOTOOLS_DIR/bin
4053    fi
4054    if test $autoconf_dir = `cd $want_dir; pwd`; then
4055      echo "$as_me:$LINENO: result: yes" >&5
4056echo "${ECHO_T}yes" >&6
4057    else
4058      rm -f confauto.out
4059      echo "$as_me:$LINENO: result: no" >&5
4060echo "${ECHO_T}no" >&6
4061      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4062echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4063   { (exit 1); exit 1; }; }
4064    fi
4065
4066    # Check if we have automake
4067    # Extract the first word of "automake", so it can be a program name with args.
4068set dummy automake; ac_word=$2
4069echo "$as_me:$LINENO: checking for $ac_word" >&5
4070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071if test "${ac_cv_prog_have_automake+set}" = set; then
4072  echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074  if test -n "$have_automake"; then
4075  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4076else
4077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH
4079do
4080  IFS=$as_save_IFS
4081  test -z "$as_dir" && as_dir=.
4082  for ac_exec_ext in '' $ac_executable_extensions; do
4083  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084    ac_cv_prog_have_automake="yes"
4085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086    break 2
4087  fi
4088done
4089done
4090
4091  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4092fi
4093fi
4094have_automake=$ac_cv_prog_have_automake
4095if test -n "$have_automake"; then
4096  echo "$as_me:$LINENO: result: $have_automake" >&5
4097echo "${ECHO_T}$have_automake" >&6
4098else
4099  echo "$as_me:$LINENO: result: no" >&5
4100echo "${ECHO_T}no" >&6
4101fi
4102
4103    if test $have_automake = no; then
4104      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4105echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4106   { (exit 1); exit 1; }; }
4107    fi
4108
4109    # Check whether automake is the correct version
4110    correct_version='1.9.6'
4111    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4112    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4113echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4114    automake --version > confauto.out 2>&1
4115    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4116      echo "$as_me:$LINENO: result: yes" >&5
4117echo "${ECHO_T}yes" >&6
4118    else
4119      rm -f confauto.out
4120      echo "$as_me:$LINENO: result: no" >&5
4121echo "${ECHO_T}no" >&6
4122      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4123echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4124   { (exit 1); exit 1; }; }
4125    fi
4126    rm -f confauto.out
4127
4128    # Check if the executable automake is picked up from the correct location
4129    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4130echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4131    automake_dir=`which automake | sed -e 's=/automake=='`
4132    automake_dir=`cd $automake_dir; pwd`
4133    if test x$AUTOTOOLS_DIR = x; then
4134      want_dir=$AUTOTOOLS_DFLT/bin
4135    else
4136      want_dir=$AUTOTOOLS_DIR/bin
4137    fi
4138    if test $automake_dir = `cd $want_dir; pwd`; then
4139      echo "$as_me:$LINENO: result: yes" >&5
4140echo "${ECHO_T}yes" >&6
4141    else
4142      rm -f confauto.out
4143      echo "$as_me:$LINENO: result: no" >&5
4144echo "${ECHO_T}no" >&6
4145      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4146echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4147   { (exit 1); exit 1; }; }
4148    fi
4149
4150    # Check if this is the correct version of libtool (with escaped dots)
4151    if test x$AUTOTOOLS_DIR = x; then
4152      want_dir=$AUTOTOOLS_DFLT/share
4153    else
4154      want_dir=$AUTOTOOLS_DIR/share
4155    fi
4156    correct_version='1.5.22'
4157    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4158    if test -r $want_dir/libtool/ltmain.sh; then
4159  have_ltmain=yes
4160  :
4161else
4162  have_ltmain=no
4163  :
4164fi
4165
4166    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4167echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4168    if test $have_ltmain = yes; then
4169    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4170        echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
4172      else
4173        echo "$as_me:$LINENO: result: no" >&5
4174echo "${ECHO_T}no" >&6
4175        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4176echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4177   { (exit 1); exit 1; }; }
4178      fi
4179    else
4180      echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
4182      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4183echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4184   { (exit 1); exit 1; }; }
4185    fi
4186  fi
4187
4188  # Check if we can find the libtool file
4189  if test x$AUTOTOOLS_DIR = x; then
4190    want_dir=$AUTOTOOLS_DFLT/share
4191  else
4192    want_dir=$AUTOTOOLS_DIR/share
4193  fi
4194  if test -r $want_dir/aclocal/libtool.m4; then
4195  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4196  :
4197else
4198  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4199echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4200   { (exit 1); exit 1; }; }
4201  :
4202fi
4203
4204
4205  # Check if we have an Dependencies file
4206  if test -r $srcdir/Dependencies; then
4207    coin_have_externals=yes
4208  fi
4209  # Check if subversion is installed and understands https
4210  # Extract the first word of "svn", so it can be a program name with args.
4211set dummy svn; ac_word=$2
4212echo "$as_me:$LINENO: checking for $ac_word" >&5
4213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4214if test "${ac_cv_prog_have_svn+set}" = set; then
4215  echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217  if test -n "$have_svn"; then
4218  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225  for ac_exec_ext in '' $ac_executable_extensions; do
4226  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227    ac_cv_prog_have_svn="yes"
4228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229    break 2
4230  fi
4231done
4232done
4233
4234  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4235fi
4236fi
4237have_svn=$ac_cv_prog_have_svn
4238if test -n "$have_svn"; then
4239  echo "$as_me:$LINENO: result: $have_svn" >&5
4240echo "${ECHO_T}$have_svn" >&6
4241else
4242  echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244fi
4245
4246  if test x$have_svn = xyes; then
4247    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4248echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4249if test "${ac_cv_svn_understands_https+set}" = set; then
4250  echo $ECHO_N "(cached) $ECHO_C" >&6
4251else
4252  svn --version > confauto.out 2>&1
4253                    if $EGREP https confauto.out >/dev/null 2>&1; then
4254                      ac_cv_svn_understands_https=yes
4255                    else
4256                      ac_cv_svn_understands_https=no
4257                      have_svn=no
4258                      ac_cv_prog_have_svn=no
4259                    fi
4260                    rm -f confauto.out
4261fi
4262echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4263echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4264  fi
4265
4266  # Find the location of the BuildTools directory
4267  BUILDTOOLSDIR=
4268  if test -r $srcdir/BuildTools/coin.m4; then
4269    BUILDTOOLSDIR=$srcdir/BuildTools
4270  else
4271    if test -r $srcdir/../BuildTools/coin.m4; then
4272      BUILDTOOLSDIR=$srcdir/../BuildTools
4273    else
4274      if test -r $srcdir/../../BuildTools/coin.m4; then
4275        BUILDTOOLSDIR=$srcdir/../../BuildTools
4276      else
4277        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4278echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4279   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4280      fi
4281    fi
4282  fi
4283
4284
4285  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4286  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4287    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4288  fi
4289
4290  # The following variable is set to the name of the directory where
4291  # the autotool scripts are located
4292
4293  AUX_DIR=$ac_aux_dir
4294fi
4295
4296# helpful variable for the base directory of this package
4297abs_source_dir=`cd $srcdir; pwd`
4298
4299
4300# Stuff for example Makefiles
4301if test x$prefix = xNONE; then
4302  full_prefix=$ac_default_prefix
4303else
4304  full_prefix=$prefix
4305fi
4306full_prefix=`cd $full_prefix ; pwd`
4307
4308abs_lib_dir=$full_prefix/lib
4309
4310abs_include_dir=$full_prefix/include
4311
4312abs_bin_dir=$full_prefix/bin
4313
4314
4315
4316if test $coin_have_externals = yes && test x$have_svn = xyes; then
4317  HAVE_EXTERNALS_TRUE=
4318  HAVE_EXTERNALS_FALSE='#'
4319else
4320  HAVE_EXTERNALS_TRUE='#'
4321  HAVE_EXTERNALS_FALSE=
4322fi
4323
4324
4325# AC_MSG_NOTICE([End automake initialisation.])
4326
4327
4328
4329LIBTOOL=
4330if test -r ../libtool; then
4331  coin_config_dir=..
4332  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4333fi
4334if test "x$LIBTOOL" = x; then
4335  if test -r ../../libtool; then
4336    coin_config_dir=../..
4337    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4338  fi
4339fi
4340
4341if test "x$LIBTOOL" = x; then
4342# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4343  # Stuff for libtool
4344  # Check whether --enable-shared or --disable-shared was given.
4345if test "${enable_shared+set}" = set; then
4346  enableval="$enable_shared"
4347  p=${PACKAGE-default}
4348    case $enableval in
4349    yes) enable_shared=yes ;;
4350    no) enable_shared=no ;;
4351    *)
4352      enable_shared=no
4353      # Look at the argument we got.  We use all the common list separators.
4354      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4355      for pkg in $enableval; do
4356        IFS="$lt_save_ifs"
4357        if test "X$pkg" = "X$p"; then
4358          enable_shared=yes
4359        fi
4360      done
4361      IFS="$lt_save_ifs"
4362      ;;
4363    esac
4364else
4365  enable_shared=yes
4366fi;
4367
4368# Check whether --enable-fast-install or --disable-fast-install was given.
4369if test "${enable_fast_install+set}" = set; then
4370  enableval="$enable_fast_install"
4371  p=${PACKAGE-default}
4372    case $enableval in
4373    yes) enable_fast_install=yes ;;
4374    no) enable_fast_install=no ;;
4375    *)
4376      enable_fast_install=no
4377      # Look at the argument we got.  We use all the common list separators.
4378      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4379      for pkg in $enableval; do
4380        IFS="$lt_save_ifs"
4381        if test "X$pkg" = "X$p"; then
4382          enable_fast_install=yes
4383        fi
4384      done
4385      IFS="$lt_save_ifs"
4386      ;;
4387    esac
4388else
4389  enable_fast_install=yes
4390fi;
4391
4392echo "$as_me:$LINENO: checking host system type" >&5
4393echo $ECHO_N "checking host system type... $ECHO_C" >&6
4394if test "${ac_cv_host+set}" = set; then
4395  echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397  ac_cv_host_alias=$host_alias
4398test -z "$ac_cv_host_alias" &&
4399  ac_cv_host_alias=$ac_cv_build_alias
4400ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4401  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4402echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4403   { (exit 1); exit 1; }; }
4404
4405fi
4406echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4407echo "${ECHO_T}$ac_cv_host" >&6
4408host=$ac_cv_host
4409host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4410host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4411host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4412
4413
4414echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4415echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4416if test "${lt_cv_path_SED+set}" = set; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419  # Loop through the user's path and test for sed and gsed.
4420# Then use that list of sed's as ones to test for truncation.
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424  IFS=$as_save_IFS
4425  test -z "$as_dir" && as_dir=.
4426  for lt_ac_prog in sed gsed; do
4427    for ac_exec_ext in '' $ac_executable_extensions; do
4428      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4429        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4430      fi
4431    done
4432  done
4433done
4434lt_ac_max=0
4435lt_ac_count=0
4436# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4437# along with /bin/sed that truncates output.
4438for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4439  test ! -f $lt_ac_sed && continue
4440  cat /dev/null > conftest.in
4441  lt_ac_count=0
4442  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4443  # Check for GNU sed and select it if it is found.
4444  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4445    lt_cv_path_SED=$lt_ac_sed
4446    break
4447  fi
4448  while true; do
4449    cat conftest.in conftest.in >conftest.tmp
4450    mv conftest.tmp conftest.in
4451    cp conftest.in conftest.nl
4452    echo >>conftest.nl
4453    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4454    cmp -s conftest.out conftest.nl || break
4455    # 10000 chars as input seems more than enough
4456    test $lt_ac_count -gt 10 && break
4457    lt_ac_count=`expr $lt_ac_count + 1`
4458    if test $lt_ac_count -gt $lt_ac_max; then
4459      lt_ac_max=$lt_ac_count
4460      lt_cv_path_SED=$lt_ac_sed
4461    fi
4462  done
4463done
4464
4465fi
4466
4467SED=$lt_cv_path_SED
4468echo "$as_me:$LINENO: result: $SED" >&5
4469echo "${ECHO_T}$SED" >&6
4470
4471
4472# Check whether --with-gnu-ld or --without-gnu-ld was given.
4473if test "${with_gnu_ld+set}" = set; then
4474  withval="$with_gnu_ld"
4475  test "$withval" = no || with_gnu_ld=yes
4476else
4477  with_gnu_ld=no
4478fi;
4479ac_prog=ld
4480if test "$GCC" = yes; then
4481  # Check if gcc -print-prog-name=ld gives a path.
4482  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4483echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4484  case $host in
4485  *-*-mingw*)
4486    # gcc leaves a trailing carriage return which upsets mingw
4487    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4488  *)
4489    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4490  esac
4491  case $ac_prog in
4492    # Accept absolute paths.
4493    [\\/]* | ?:[\\/]*)
4494      re_direlt='/[^/][^/]*/\.\./'
4495      # Canonicalize the pathname of ld
4496      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4497      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4498        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4499      done
4500      test -z "$LD" && LD="$ac_prog"
4501      ;;
4502  "")
4503    # If it fails, then pretend we aren't using GCC.
4504    ac_prog=ld
4505    ;;
4506  *)
4507    # If it is relative, then search for the first ld in PATH.
4508    with_gnu_ld=unknown
4509    ;;
4510  esac
4511elif test "$with_gnu_ld" = yes; then
4512  echo "$as_me:$LINENO: checking for GNU ld" >&5
4513echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4514else
4515  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4516echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4517fi
4518if test "${lt_cv_path_LD+set}" = set; then
4519  echo $ECHO_N "(cached) $ECHO_C" >&6
4520else
4521  if test -z "$LD"; then
4522  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4523  for ac_dir in $PATH; do
4524    IFS="$lt_save_ifs"
4525    test -z "$ac_dir" && ac_dir=.
4526    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4527      lt_cv_path_LD="$ac_dir/$ac_prog"
4528      # Check to see if the program is GNU ld.  I'd rather use --version,
4529      # but apparently some variants of GNU ld only accept -v.
4530      # Break only if it was the GNU/non-GNU ld that we prefer.
4531      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4532      *GNU* | *'with BFD'*)
4533        test "$with_gnu_ld" != no && break
4534        ;;
4535      *)
4536        test "$with_gnu_ld" != yes && break
4537        ;;
4538      esac
4539    fi
4540  done
4541  IFS="$lt_save_ifs"
4542else
4543  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4544fi
4545fi
4546
4547LD="$lt_cv_path_LD"
4548if test -n "$LD"; then
4549  echo "$as_me:$LINENO: result: $LD" >&5
4550echo "${ECHO_T}$LD" >&6
4551else
4552  echo "$as_me:$LINENO: result: no" >&5
4553echo "${ECHO_T}no" >&6
4554fi
4555test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4556echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4557   { (exit 1); exit 1; }; }
4558echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4559echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4560if test "${lt_cv_prog_gnu_ld+set}" = set; then
4561  echo $ECHO_N "(cached) $ECHO_C" >&6
4562else
4563  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4564case `$LD -v 2>&1 </dev/null` in
4565*GNU* | *'with BFD'*)
4566  lt_cv_prog_gnu_ld=yes
4567  ;;
4568*)
4569  lt_cv_prog_gnu_ld=no
4570  ;;
4571esac
4572fi
4573echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4574echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4575with_gnu_ld=$lt_cv_prog_gnu_ld
4576
4577
4578echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4579echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4580if test "${lt_cv_ld_reload_flag+set}" = set; then
4581  echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583  lt_cv_ld_reload_flag='-r'
4584fi
4585echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4586echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4587reload_flag=$lt_cv_ld_reload_flag
4588case $reload_flag in
4589"" | " "*) ;;
4590*) reload_flag=" $reload_flag" ;;
4591esac
4592reload_cmds='$LD$reload_flag -o $output$reload_objs'
4593case $host_os in
4594  darwin*)
4595    if test "$GCC" = yes; then
4596      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4597    else
4598      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4599    fi
4600    ;;
4601esac
4602
4603echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4604echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4605if test "${lt_cv_path_NM+set}" = set; then
4606  echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608  if test -n "$NM"; then
4609  # Let the user override the test.
4610  lt_cv_path_NM="$NM"
4611else
4612  lt_nm_to_check="${ac_tool_prefix}nm"
4613  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4614    lt_nm_to_check="$lt_nm_to_check nm"
4615  fi
4616  for lt_tmp_nm in $lt_nm_to_check; do
4617    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4618    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4619      IFS="$lt_save_ifs"
4620      test -z "$ac_dir" && ac_dir=.
4621      tmp_nm="$ac_dir/$lt_tmp_nm"
4622      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4623        # Check to see if the nm accepts a BSD-compat flag.
4624        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4625        #   nm: unknown option "B" ignored
4626        # Tru64's nm complains that /dev/null is an invalid object file
4627        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4628        */dev/null* | *'Invalid file or object type'*)
4629          lt_cv_path_NM="$tmp_nm -B"
4630          break
4631          ;;
4632        *)
4633          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4634          */dev/null*)
4635            lt_cv_path_NM="$tmp_nm -p"
4636            break
4637            ;;
4638          *)
4639            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4640            continue # so that we can try to find one that supports BSD flags
4641            ;;
4642          esac
4643          ;;
4644        esac
4645      fi
4646    done
4647    IFS="$lt_save_ifs"
4648  done
4649  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4650fi
4651fi
4652echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4653echo "${ECHO_T}$lt_cv_path_NM" >&6
4654NM="$lt_cv_path_NM"
4655
4656echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4657echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4658if test "${lt_cv_deplibs_check_method+set}" = set; then
4659  echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661  lt_cv_file_magic_cmd='$MAGIC_CMD'
4662lt_cv_file_magic_test_file=
4663lt_cv_deplibs_check_method='unknown'
4664# Need to set the preceding variable on all platforms that support
4665# interlibrary dependencies.
4666# 'none' -- dependencies not supported.
4667# `unknown' -- same as none, but documents that we really don't know.
4668# 'pass_all' -- all dependencies passed with no checks.
4669# 'test_compile' -- check by making test program.
4670# 'file_magic [[regex]]' -- check by looking for files in library path
4671# which responds to the $file_magic_cmd with a given extended regex.
4672# If you have `file' or equivalent on your system and you're not sure
4673# whether `pass_all' will *always* work, you probably want this one.
4674
4675case $host_os in
4676aix4* | aix5*)
4677  lt_cv_deplibs_check_method=pass_all
4678  ;;
4679
4680beos*)
4681  lt_cv_deplibs_check_method=pass_all
4682  ;;
4683
4684bsdi[45]*)
4685  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4686  lt_cv_file_magic_cmd='/usr/bin/file -L'
4687  lt_cv_file_magic_test_file=/shlib/libc.so
4688  ;;
4689
4690cygwin*)
4691  # func_win32_libid is a shell function defined in ltmain.sh
4692  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4693  lt_cv_file_magic_cmd='func_win32_libid'
4694  ;;
4695
4696mingw* | pw32*)
4697  # Base MSYS/MinGW do not provide the 'file' command needed by
4698  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4699  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4700  lt_cv_file_magic_cmd='$OBJDUMP -f'
4701  ;;
4702
4703darwin* | rhapsody*)
4704  lt_cv_deplibs_check_method=pass_all
4705  ;;
4706
4707freebsd* | kfreebsd*-gnu | dragonfly*)
4708  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4709    case $host_cpu in
4710    i*86 )
4711      # Not sure whether the presence of OpenBSD here was a mistake.
4712      # Let's accept both of them until this is cleared up.
4713      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4714      lt_cv_file_magic_cmd=/usr/bin/file
4715      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4716      ;;
4717    esac
4718  else
4719    lt_cv_deplibs_check_method=pass_all
4720  fi
4721  ;;
4722
4723gnu*)
4724  lt_cv_deplibs_check_method=pass_all
4725  ;;
4726
4727hpux10.20* | hpux11*)
4728  lt_cv_file_magic_cmd=/usr/bin/file
4729  case $host_cpu in
4730  ia64*)
4731    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4732    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4733    ;;
4734  hppa*64*)
4735    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]'
4736    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4737    ;;
4738  *)
4739    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4740    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4741    ;;
4742  esac
4743  ;;
4744
4745interix3*)
4746  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4747  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4748  ;;
4749
4750irix5* | irix6* | nonstopux*)
4751  case $LD in
4752  *-32|*"-32 ") libmagic=32-bit;;
4753  *-n32|*"-n32 ") libmagic=N32;;
4754  *-64|*"-64 ") libmagic=64-bit;;
4755  *) libmagic=never-match;;
4756  esac
4757  lt_cv_deplibs_check_method=pass_all
4758  ;;
4759
4760# This must be Linux ELF.
4761linux*)
4762  lt_cv_deplibs_check_method=pass_all
4763  ;;
4764
4765netbsd*)
4766  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4767    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4768  else
4769    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4770  fi
4771  ;;
4772
4773newos6*)
4774  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4775  lt_cv_file_magic_cmd=/usr/bin/file
4776  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4777  ;;
4778
4779nto-qnx*)
4780  lt_cv_deplibs_check_method=unknown
4781  ;;
4782
4783openbsd*)
4784  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4785    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4786  else
4787    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4788  fi
4789  ;;
4790
4791osf3* | osf4* | osf5*)
4792  lt_cv_deplibs_check_method=pass_all
4793  ;;
4794
4795solaris*)
4796  lt_cv_deplibs_check_method=pass_all
4797  ;;
4798
4799sysv4 | sysv4.3*)
4800  case $host_vendor in
4801  motorola)
4802    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]'
4803    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4804    ;;
4805  ncr)
4806    lt_cv_deplibs_check_method=pass_all
4807    ;;
4808  sequent)
4809    lt_cv_file_magic_cmd='/bin/file'
4810    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4811    ;;
4812  sni)
4813    lt_cv_file_magic_cmd='/bin/file'
4814    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4815    lt_cv_file_magic_test_file=/lib/libc.so
4816    ;;
4817  siemens)
4818    lt_cv_deplibs_check_method=pass_all
4819    ;;
4820  pc)
4821    lt_cv_deplibs_check_method=pass_all
4822    ;;
4823  esac
4824  ;;
4825
4826sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4827  lt_cv_deplibs_check_method=pass_all
4828  ;;
4829esac
4830
4831fi
4832echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4833echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4834file_magic_cmd=$lt_cv_file_magic_cmd
4835deplibs_check_method=$lt_cv_deplibs_check_method
4836test -z "$deplibs_check_method" && deplibs_check_method=unknown
4837
4838
4839
4840
4841# If no C compiler was specified, use CC.
4842LTCC=${LTCC-"$CC"}
4843
4844# If no C compiler flags were specified, use CFLAGS.
4845LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4846
4847# Allow CC to be a program name with arguments.
4848compiler=$CC
4849
4850# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4851if test "${enable_libtool_lock+set}" = set; then
4852  enableval="$enable_libtool_lock"
4853
4854fi;
4855test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4856
4857# Some flags need to be propagated to the compiler or linker for good
4858# libtool support.
4859case $host in
4860ia64-*-hpux*)
4861  # Find out which ABI we are using.
4862  echo 'int i;' > conftest.$ac_ext
4863  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4864  (eval $ac_compile) 2>&5
4865  ac_status=$?
4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867  (exit $ac_status); }; then
4868    case `/usr/bin/file conftest.$ac_objext` in
4869    *ELF-32*)
4870      HPUX_IA64_MODE="32"
4871      ;;
4872    *ELF-64*)
4873      HPUX_IA64_MODE="64"
4874      ;;
4875    esac
4876  fi
4877  rm -rf conftest*
4878  ;;
4879*-*-irix6*)
4880  # Find out which ABI we are using.
4881  echo '#line 4881 "configure"' > conftest.$ac_ext
4882  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883  (eval $ac_compile) 2>&5
4884  ac_status=$?
4885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886  (exit $ac_status); }; then
4887   if test "$lt_cv_prog_gnu_ld" = yes; then
4888    case `/usr/bin/file conftest.$ac_objext` in
4889    *32-bit*)
4890      LD="${LD-ld} -melf32bsmip"
4891      ;;
4892    *N32*)
4893      LD="${LD-ld} -melf32bmipn32"
4894      ;;
4895    *64-bit*)
4896      LD="${LD-ld} -melf64bmip"
4897      ;;
4898    esac
4899   else
4900    case `/usr/bin/file conftest.$ac_objext` in
4901    *32-bit*)
4902      LD="${LD-ld} -32"
4903      ;;
4904    *N32*)
4905      LD="${LD-ld} -n32"
4906      ;;
4907    *64-bit*)
4908      LD="${LD-ld} -64"
4909      ;;
4910    esac
4911   fi
4912  fi
4913  rm -rf conftest*
4914  ;;
4915
4916x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4917  # Find out which ABI we are using.
4918  echo 'int i;' > conftest.$ac_ext
4919  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920  (eval $ac_compile) 2>&5
4921  ac_status=$?
4922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923  (exit $ac_status); }; then
4924    case `/usr/bin/file conftest.o` in
4925    *32-bit*)
4926      case $host in
4927        x86_64-*linux*)
4928          LD="${LD-ld} -m elf_i386"
4929          ;;
4930        ppc64-*linux*|powerpc64-*linux*)
4931          LD="${LD-ld} -m elf32ppclinux"
4932          ;;
4933        s390x-*linux*)
4934          LD="${LD-ld} -m elf_s390"
4935          ;;
4936        sparc64-*linux*)
4937          LD="${LD-ld} -m elf32_sparc"
4938          ;;
4939      esac
4940      ;;
4941    *64-bit*)
4942      case $host in
4943        x86_64-*linux*)
4944          LD="${LD-ld} -m elf_x86_64"
4945          ;;
4946        ppc*-*linux*|powerpc*-*linux*)
4947          LD="${LD-ld} -m elf64ppc"
4948          ;;
4949        s390*-*linux*)
4950          LD="${LD-ld} -m elf64_s390"
4951          ;;
4952        sparc*-*linux*)
4953          LD="${LD-ld} -m elf64_sparc"
4954          ;;
4955      esac
4956      ;;
4957    esac
4958  fi
4959  rm -rf conftest*
4960  ;;
4961
4962*-*-sco3.2v5*)
4963  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4964  SAVE_CFLAGS="$CFLAGS"
4965  CFLAGS="$CFLAGS -belf"
4966  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4967echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4968if test "${lt_cv_cc_needs_belf+set}" = set; then
4969  echo $ECHO_N "(cached) $ECHO_C" >&6
4970else
4971  ac_ext=c
4972ac_cpp='$CPP $CPPFLAGS'
4973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976
4977     cat >conftest.$ac_ext <<_ACEOF
4978/* confdefs.h.  */
4979_ACEOF
4980cat confdefs.h >>conftest.$ac_ext
4981cat >>conftest.$ac_ext <<_ACEOF
4982/* end confdefs.h.  */
4983
4984int
4985main ()
4986{
4987
4988  ;
4989  return 0;
4990}
4991_ACEOF
4992rm -f conftest.$ac_objext conftest$ac_exeext
4993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4994  (eval $ac_link) 2>conftest.er1
4995  ac_status=$?
4996  grep -v '^ *+' conftest.er1 >conftest.err
4997  rm -f conftest.er1
4998  cat conftest.err >&5
4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000  (exit $ac_status); } &&
5001         { ac_try='test -z "$ac_c_werror_flag"
5002                         || test ! -s conftest.err'
5003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004  (eval $ac_try) 2>&5
5005  ac_status=$?
5006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007  (exit $ac_status); }; } &&
5008         { ac_try='test -s conftest$ac_exeext'
5009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010  (eval $ac_try) 2>&5
5011  ac_status=$?
5012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013  (exit $ac_status); }; }; then
5014  lt_cv_cc_needs_belf=yes
5015else
5016  echo "$as_me: failed program was:" >&5
5017sed 's/^/| /' conftest.$ac_ext >&5
5018
5019lt_cv_cc_needs_belf=no
5020fi
5021rm -f conftest.err conftest.$ac_objext \
5022      conftest$ac_exeext conftest.$ac_ext
5023     ac_ext=c
5024ac_cpp='$CPP $CPPFLAGS'
5025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5027ac_compiler_gnu=$ac_cv_c_compiler_gnu
5028
5029fi
5030echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5031echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5032  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5033    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5034    CFLAGS="$SAVE_CFLAGS"
5035  fi
5036  ;;
5037sparc*-*solaris*)
5038  # Find out which ABI we are using.
5039  echo 'int i;' > conftest.$ac_ext
5040  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041  (eval $ac_compile) 2>&5
5042  ac_status=$?
5043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044  (exit $ac_status); }; then
5045    case `/usr/bin/file conftest.o` in
5046    *64-bit*)
5047      case $lt_cv_prog_gnu_ld in
5048      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5049      *)    LD="${LD-ld} -64" ;;
5050      esac
5051      ;;
5052    esac
5053  fi
5054  rm -rf conftest*
5055  ;;
5056
5057
5058esac
5059
5060need_locks="$enable_libtool_lock"
5061
5062
5063ac_ext=c
5064ac_cpp='$CPP $CPPFLAGS'
5065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067ac_compiler_gnu=$ac_cv_c_compiler_gnu
5068echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5069echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5070# On Suns, sometimes $CPP names a directory.
5071if test -n "$CPP" && test -d "$CPP"; then
5072  CPP=
5073fi
5074if test -z "$CPP"; then
5075  if test "${ac_cv_prog_CPP+set}" = set; then
5076  echo $ECHO_N "(cached) $ECHO_C" >&6
5077else
5078      # Double quotes because CPP needs to be expanded
5079    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5080    do
5081      ac_preproc_ok=false
5082for ac_c_preproc_warn_flag in '' yes
5083do
5084  # Use a header file that comes with gcc, so configuring glibc
5085  # with a fresh cross-compiler works.
5086  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5087  # <limits.h> exists even on freestanding compilers.
5088  # On the NeXT, cc -E runs the code through the compiler's parser,
5089  # not just through cpp. "Syntax error" is here to catch this case.
5090  cat >conftest.$ac_ext <<_ACEOF
5091/* confdefs.h.  */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h.  */
5096#ifdef __STDC__
5097# include <limits.h>
5098#else
5099# include <assert.h>
5100#endif
5101                     Syntax error
5102_ACEOF
5103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5104  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5105  ac_status=$?
5106  grep -v '^ *+' conftest.er1 >conftest.err
5107  rm -f conftest.er1
5108  cat conftest.err >&5
5109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110  (exit $ac_status); } >/dev/null; then
5111  if test -s conftest.err; then
5112    ac_cpp_err=$ac_c_preproc_warn_flag
5113    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5114  else
5115    ac_cpp_err=
5116  fi
5117else
5118  ac_cpp_err=yes
5119fi
5120if test -z "$ac_cpp_err"; then
5121  :
5122else
5123  echo "$as_me: failed program was:" >&5
5124sed 's/^/| /' conftest.$ac_ext >&5
5125
5126  # Broken: fails on valid input.
5127continue
5128fi
5129rm -f conftest.err conftest.$ac_ext
5130
5131  # OK, works on sane cases.  Now check whether non-existent headers
5132  # can be detected and how.
5133  cat >conftest.$ac_ext <<_ACEOF
5134/* confdefs.h.  */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h.  */
5139#include <ac_nonexistent.h>
5140_ACEOF
5141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5142  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5143  ac_status=$?
5144  grep -v '^ *+' conftest.er1 >conftest.err
5145  rm -f conftest.er1
5146  cat conftest.err >&5
5147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148  (exit $ac_status); } >/dev/null; then
5149  if test -s conftest.err; then
5150    ac_cpp_err=$ac_c_preproc_warn_flag
5151    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5152  else
5153    ac_cpp_err=
5154  fi
5155else
5156  ac_cpp_err=yes
5157fi
5158if test -z "$ac_cpp_err"; then
5159  # Broken: success on invalid input.
5160continue
5161else
5162  echo "$as_me: failed program was:" >&5
5163sed 's/^/| /' conftest.$ac_ext >&5
5164
5165  # Passes both tests.
5166ac_preproc_ok=:
5167break
5168fi
5169rm -f conftest.err conftest.$ac_ext
5170
5171done
5172# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5173rm -f conftest.err conftest.$ac_ext
5174if $ac_preproc_ok; then
5175  break
5176fi
5177
5178    done
5179    ac_cv_prog_CPP=$CPP
5180
5181fi
5182  CPP=$ac_cv_prog_CPP
5183else
5184  ac_cv_prog_CPP=$CPP
5185fi
5186echo "$as_me:$LINENO: result: $CPP" >&5
5187echo "${ECHO_T}$CPP" >&6
5188ac_preproc_ok=false
5189for ac_c_preproc_warn_flag in '' yes
5190do
5191  # Use a header file that comes with gcc, so configuring glibc
5192  # with a fresh cross-compiler works.
5193  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194  # <limits.h> exists even on freestanding compilers.
5195  # On the NeXT, cc -E runs the code through the compiler's parser,
5196  # not just through cpp. "Syntax error" is here to catch this case.
5197  cat >conftest.$ac_ext <<_ACEOF
5198/* confdefs.h.  */
5199_ACEOF
5200cat confdefs.h >>conftest.$ac_ext
5201cat >>conftest.$ac_ext <<_ACEOF
5202/* end confdefs.h.  */
5203#ifdef __STDC__
5204# include <limits.h>
5205#else
5206# include <assert.h>
5207#endif
5208                     Syntax error
5209_ACEOF
5210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5211  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5212  ac_status=$?
5213  grep -v '^ *+' conftest.er1 >conftest.err
5214  rm -f conftest.er1
5215  cat conftest.err >&5
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); } >/dev/null; then
5218  if test -s conftest.err; then
5219    ac_cpp_err=$ac_c_preproc_warn_flag
5220    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5221  else
5222    ac_cpp_err=
5223  fi
5224else
5225  ac_cpp_err=yes
5226fi
5227if test -z "$ac_cpp_err"; then
5228  :
5229else
5230  echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
5232
5233  # Broken: fails on valid input.
5234continue
5235fi
5236rm -f conftest.err conftest.$ac_ext
5237
5238  # OK, works on sane cases.  Now check whether non-existent headers
5239  # can be detected and how.
5240  cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h.  */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h.  */
5246#include <ac_nonexistent.h>
5247_ACEOF
5248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5249  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5250  ac_status=$?
5251  grep -v '^ *+' conftest.er1 >conftest.err
5252  rm -f conftest.er1
5253  cat conftest.err >&5
5254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255  (exit $ac_status); } >/dev/null; then
5256  if test -s conftest.err; then
5257    ac_cpp_err=$ac_c_preproc_warn_flag
5258    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5259  else
5260    ac_cpp_err=
5261  fi
5262else
5263  ac_cpp_err=yes
5264fi
5265if test -z "$ac_cpp_err"; then
5266  # Broken: success on invalid input.
5267continue
5268else
5269  echo "$as_me: failed program was:" >&5
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
5272  # Passes both tests.
5273ac_preproc_ok=:
5274break
5275fi
5276rm -f conftest.err conftest.$ac_ext
5277
5278done
5279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5280rm -f conftest.err conftest.$ac_ext
5281if $ac_preproc_ok; then
5282  :
5283else
5284  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5285See \`config.log' for more details." >&5
5286echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5287See \`config.log' for more details." >&2;}
5288   { (exit 1); exit 1; }; }
5289fi
5290
5291ac_ext=c
5292ac_cpp='$CPP $CPPFLAGS'
5293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296
5297
5298echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5299echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5300if test "${ac_cv_header_stdc+set}" = set; then
5301  echo $ECHO_N "(cached) $ECHO_C" >&6
5302else
5303  cat >conftest.$ac_ext <<_ACEOF
5304/* confdefs.h.  */
5305_ACEOF
5306cat confdefs.h >>conftest.$ac_ext
5307cat >>conftest.$ac_ext <<_ACEOF
5308/* end confdefs.h.  */
5309#include <stdlib.h>
5310#include <stdarg.h>
5311#include <string.h>
5312#include <float.h>
5313
5314int
5315main ()
5316{
5317
5318  ;
5319  return 0;
5320}
5321_ACEOF
5322rm -f conftest.$ac_objext
5323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324  (eval $ac_compile) 2>conftest.er1
5325  ac_status=$?
5326  grep -v '^ *+' conftest.er1 >conftest.err
5327  rm -f conftest.er1
5328  cat conftest.err >&5
5329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330  (exit $ac_status); } &&
5331         { ac_try='test -z "$ac_c_werror_flag"
5332                         || test ! -s conftest.err'
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); }; } &&
5338         { ac_try='test -s conftest.$ac_objext'
5339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340  (eval $ac_try) 2>&5
5341  ac_status=$?
5342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343  (exit $ac_status); }; }; then
5344  ac_cv_header_stdc=yes
5345else
5346  echo "$as_me: failed program was:" >&5
5347sed 's/^/| /' conftest.$ac_ext >&5
5348
5349ac_cv_header_stdc=no
5350fi
5351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5352
5353if test $ac_cv_header_stdc = yes; then
5354  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5355  cat >conftest.$ac_ext <<_ACEOF
5356/* confdefs.h.  */
5357_ACEOF
5358cat confdefs.h >>conftest.$ac_ext
5359cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h.  */
5361#include <string.h>
5362
5363_ACEOF
5364if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5365  $EGREP "memchr" >/dev/null 2>&1; then
5366  :
5367else
5368  ac_cv_header_stdc=no
5369fi
5370rm -f conftest*
5371
5372fi
5373
5374if test $ac_cv_header_stdc = yes; then
5375  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5376  cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h.  */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h.  */
5382#include <stdlib.h>
5383
5384_ACEOF
5385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5386  $EGREP "free" >/dev/null 2>&1; then
5387  :
5388else
5389  ac_cv_header_stdc=no
5390fi
5391rm -f conftest*
5392
5393fi
5394
5395if test $ac_cv_header_stdc = yes; then
5396  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5397  if test "$cross_compiling" = yes; then
5398  :
5399else
5400  cat >conftest.$ac_ext <<_ACEOF
5401/* confdefs.h.  */
5402_ACEOF
5403cat confdefs.h >>conftest.$ac_ext
5404cat >>conftest.$ac_ext <<_ACEOF
5405/* end confdefs.h.  */
5406#include <ctype.h>
5407#if ((' ' & 0x0FF) == 0x020)
5408# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5409# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5410#else
5411# define ISLOWER(c) \
5412                   (('a' <= (c) && (c) <= 'i') \
5413                     || ('j' <= (c) && (c) <= 'r') \
5414                     || ('s' <= (c) && (c) <= 'z'))
5415# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5416#endif
5417
5418#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5419int
5420main ()
5421{
5422  int i;
5423  for (i = 0; i < 256; i++)
5424    if (XOR (islower (i), ISLOWER (i))
5425        || toupper (i) != TOUPPER (i))
5426      exit(2);
5427  exit (0);
5428}
5429_ACEOF
5430rm -f conftest$ac_exeext
5431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5432  (eval $ac_link) 2>&5
5433  ac_status=$?
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437  (eval $ac_try) 2>&5
5438  ac_status=$?
5439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440  (exit $ac_status); }; }; then
5441  :
5442else
5443  echo "$as_me: program exited with status $ac_status" >&5
5444echo "$as_me: failed program was:" >&5
5445sed 's/^/| /' conftest.$ac_ext >&5
5446
5447( exit $ac_status )
5448ac_cv_header_stdc=no
5449fi
5450rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5451fi
5452fi
5453fi
5454echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5455echo "${ECHO_T}$ac_cv_header_stdc" >&6
5456if test $ac_cv_header_stdc = yes; then
5457
5458cat >>confdefs.h <<\_ACEOF
5459#define STDC_HEADERS 1
5460_ACEOF
5461
5462fi
5463
5464# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5475                  inttypes.h stdint.h unistd.h
5476do
5477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5478echo "$as_me:$LINENO: checking for $ac_header" >&5
5479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5480if eval "test \"\${$as_ac_Header+set}\" = set"; then
5481  echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483  cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h.  */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h.  */
5489$ac_includes_default
5490
5491#include <$ac_header>
5492_ACEOF
5493rm -f conftest.$ac_objext
5494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495  (eval $ac_compile) 2>conftest.er1
5496  ac_status=$?
5497  grep -v '^ *+' conftest.er1 >conftest.err
5498  rm -f conftest.er1
5499  cat conftest.err >&5
5500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501  (exit $ac_status); } &&
5502         { ac_try='test -z "$ac_c_werror_flag"
5503                         || test ! -s conftest.err'
5504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505  (eval $ac_try) 2>&5
5506  ac_status=$?
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); }; } &&
5509         { ac_try='test -s conftest.$ac_objext'
5510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511  (eval $ac_try) 2>&5
5512  ac_status=$?
5513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); }; }; then
5515  eval "$as_ac_Header=yes"
5516else
5517  echo "$as_me: failed program was:" >&5
5518sed 's/^/| /' conftest.$ac_ext >&5
5519
5520eval "$as_ac_Header=no"
5521fi
5522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5523fi
5524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5525echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5526if test `eval echo '${'$as_ac_Header'}'` = yes; then
5527  cat >>confdefs.h <<_ACEOF
5528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5529_ACEOF
5530
5531fi
5532
5533done
5534
5535
5536
5537for ac_header in dlfcn.h
5538do
5539as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5540if eval "test \"\${$as_ac_Header+set}\" = set"; then
5541  echo "$as_me:$LINENO: checking for $ac_header" >&5
5542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5543if eval "test \"\${$as_ac_Header+set}\" = set"; then
5544  echo $ECHO_N "(cached) $ECHO_C" >&6
5545fi
5546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5548else
5549  # Is the header compilable?
5550echo "$as_me:$LINENO: checking $ac_header usability" >&5
5551echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5552cat >conftest.$ac_ext <<_ACEOF
5553/* confdefs.h.  */
5554_ACEOF
5555cat confdefs.h >>conftest.$ac_ext
5556cat >>conftest.$ac_ext <<_ACEOF
5557/* end confdefs.h.  */
5558$ac_includes_default
5559#include <$ac_header>
5560_ACEOF
5561rm -f conftest.$ac_objext
5562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563  (eval $ac_compile) 2>conftest.er1
5564  ac_status=$?
5565  grep -v '^ *+' conftest.er1 >conftest.err
5566  rm -f conftest.er1
5567  cat conftest.err >&5
5568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569  (exit $ac_status); } &&
5570         { ac_try='test -z "$ac_c_werror_flag"
5571                         || test ! -s conftest.err'
5572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573  (eval $ac_try) 2>&5
5574  ac_status=$?
5575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576  (exit $ac_status); }; } &&
5577         { ac_try='test -s conftest.$ac_objext'
5578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579  (eval $ac_try) 2>&5
5580  ac_status=$?
5581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582  (exit $ac_status); }; }; then
5583  ac_header_compiler=yes
5584else
5585  echo "$as_me: failed program was:" >&5
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
5588ac_header_compiler=no
5589fi
5590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5591echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5592echo "${ECHO_T}$ac_header_compiler" >&6
5593
5594# Is the header present?
5595echo "$as_me:$LINENO: checking $ac_header presence" >&5
5596echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5597cat >conftest.$ac_ext <<_ACEOF
5598/* confdefs.h.  */
5599_ACEOF
5600cat confdefs.h >>conftest.$ac_ext
5601cat >>conftest.$ac_ext <<_ACEOF
5602/* end confdefs.h.  */
5603#include <$ac_header>
5604_ACEOF
5605if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5606  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5607  ac_status=$?
5608  grep -v '^ *+' conftest.er1 >conftest.err
5609  rm -f conftest.er1
5610  cat conftest.err >&5
5611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612  (exit $ac_status); } >/dev/null; then
5613  if test -s conftest.err; then
5614    ac_cpp_err=$ac_c_preproc_warn_flag
5615    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5616  else
5617    ac_cpp_err=
5618  fi
5619else
5620  ac_cpp_err=yes
5621fi
5622if test -z "$ac_cpp_err"; then
5623  ac_header_preproc=yes
5624else
5625  echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628  ac_header_preproc=no
5629fi
5630rm -f conftest.err conftest.$ac_ext
5631echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5632echo "${ECHO_T}$ac_header_preproc" >&6
5633
5634# So?  What about this header?
5635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5636  yes:no: )
5637    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5638echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5639    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5640echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5641    ac_header_preproc=yes
5642    ;;
5643  no:yes:* )
5644    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5645echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5646    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5647echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5648    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5649echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5650    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5651echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5652    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5653echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5654    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5655echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5656    (
5657      cat <<\_ASBOX
5658## --------------------------------------------------------------- ##
5659## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5660## --------------------------------------------------------------- ##
5661_ASBOX
5662    ) |
5663      sed "s/^/$as_me: WARNING:     /" >&2
5664    ;;
5665esac
5666echo "$as_me:$LINENO: checking for $ac_header" >&5
5667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5668if eval "test \"\${$as_ac_Header+set}\" = set"; then
5669  echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671  eval "$as_ac_Header=\$ac_header_preproc"
5672fi
5673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5675
5676fi
5677if test `eval echo '${'$as_ac_Header'}'` = yes; then
5678  cat >>confdefs.h <<_ACEOF
5679#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5680_ACEOF
5681
5682fi
5683
5684done
5685
5686ac_ext=cc
5687ac_cpp='$CXXCPP $CPPFLAGS'
5688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5691if test -n "$ac_tool_prefix"; then
5692  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5693  do
5694    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5696echo "$as_me:$LINENO: checking for $ac_word" >&5
5697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698if test "${ac_cv_prog_CXX+set}" = set; then
5699  echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701  if test -n "$CXX"; then
5702  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5703else
5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705for as_dir in $PATH
5706do
5707  IFS=$as_save_IFS
5708  test -z "$as_dir" && as_dir=.
5709  for ac_exec_ext in '' $ac_executable_extensions; do
5710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713    break 2
5714  fi
5715done
5716done
5717
5718fi
5719fi
5720CXX=$ac_cv_prog_CXX
5721if test -n "$CXX"; then
5722  echo "$as_me:$LINENO: result: $CXX" >&5
5723echo "${ECHO_T}$CXX" >&6
5724else
5725  echo "$as_me:$LINENO: result: no" >&5
5726echo "${ECHO_T}no" >&6
5727fi
5728
5729    test -n "$CXX" && break
5730  done
5731fi
5732if test -z "$CXX"; then
5733  ac_ct_CXX=$CXX
5734  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5735do
5736  # Extract the first word of "$ac_prog", so it can be a program name with args.
5737set dummy $ac_prog; ac_word=$2
5738echo "$as_me:$LINENO: checking for $ac_word" >&5
5739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5740if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5741  echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
5743  if test -n "$ac_ct_CXX"; then
5744  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5745else
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749  IFS=$as_save_IFS
5750  test -z "$as_dir" && as_dir=.
5751  for ac_exec_ext in '' $ac_executable_extensions; do
5752  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753    ac_cv_prog_ac_ct_CXX="$ac_prog"
5754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755    break 2
5756  fi
5757done
5758done
5759
5760fi
5761fi
5762ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5763if test -n "$ac_ct_CXX"; then
5764  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5765echo "${ECHO_T}$ac_ct_CXX" >&6
5766else
5767  echo "$as_me:$LINENO: result: no" >&5
5768echo "${ECHO_T}no" >&6
5769fi
5770
5771  test -n "$ac_ct_CXX" && break
5772done
5773test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5774
5775  CXX=$ac_ct_CXX
5776fi
5777
5778
5779# Provide some information about the compiler.
5780echo "$as_me:$LINENO:" \
5781     "checking for C++ compiler version" >&5
5782ac_compiler=`set X $ac_compile; echo $2`
5783{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5784  (eval $ac_compiler --version </dev/null >&5) 2>&5
5785  ac_status=$?
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); }
5788{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5789  (eval $ac_compiler -v </dev/null >&5) 2>&5
5790  ac_status=$?
5791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792  (exit $ac_status); }
5793{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5794  (eval $ac_compiler -V </dev/null >&5) 2>&5
5795  ac_status=$?
5796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797  (exit $ac_status); }
5798
5799echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5800echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5801if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5802  echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804  cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h.  */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h.  */
5810
5811int
5812main ()
5813{
5814#ifndef __GNUC__
5815       choke me
5816#endif
5817
5818  ;
5819  return 0;
5820}
5821_ACEOF
5822rm -f conftest.$ac_objext
5823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824  (eval $ac_compile) 2>conftest.er1
5825  ac_status=$?
5826  grep -v '^ *+' conftest.er1 >conftest.err
5827  rm -f conftest.er1
5828  cat conftest.err >&5
5829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830  (exit $ac_status); } &&
5831         { ac_try='test -z "$ac_cxx_werror_flag"
5832                         || test ! -s conftest.err'
5833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834  (eval $ac_try) 2>&5
5835  ac_status=$?
5836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837  (exit $ac_status); }; } &&
5838         { ac_try='test -s conftest.$ac_objext'
5839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840  (eval $ac_try) 2>&5
5841  ac_status=$?
5842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843  (exit $ac_status); }; }; then
5844  ac_compiler_gnu=yes
5845else
5846  echo "$as_me: failed program was:" >&5
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
5849ac_compiler_gnu=no
5850fi
5851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5853
5854fi
5855echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5856echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5857GXX=`test $ac_compiler_gnu = yes && echo yes`
5858ac_test_CXXFLAGS=${CXXFLAGS+set}
5859ac_save_CXXFLAGS=$CXXFLAGS
5860CXXFLAGS="-g"
5861echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5862echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5863if test "${ac_cv_prog_cxx_g+set}" = set; then
5864  echo $ECHO_N "(cached) $ECHO_C" >&6
5865else
5866  cat >conftest.$ac_ext <<_ACEOF
5867/* confdefs.h.  */
5868_ACEOF
5869cat confdefs.h >>conftest.$ac_ext
5870cat >>conftest.$ac_ext <<_ACEOF
5871/* end confdefs.h.  */
5872
5873int
5874main ()
5875{
5876
5877  ;
5878  return 0;
5879}
5880_ACEOF
5881rm -f conftest.$ac_objext
5882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883  (eval $ac_compile) 2>conftest.er1
5884  ac_status=$?
5885  grep -v '^ *+' conftest.er1 >conftest.err
5886  rm -f conftest.er1
5887  cat conftest.err >&5
5888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889  (exit $ac_status); } &&
5890         { ac_try='test -z "$ac_cxx_werror_flag"
5891                         || test ! -s conftest.err'
5892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893  (eval $ac_try) 2>&5
5894  ac_status=$?
5895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896  (exit $ac_status); }; } &&
5897         { ac_try='test -s conftest.$ac_objext'
5898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899  (eval $ac_try) 2>&5
5900  ac_status=$?
5901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902  (exit $ac_status); }; }; then
5903  ac_cv_prog_cxx_g=yes
5904else
5905  echo "$as_me: failed program was:" >&5
5906sed 's/^/| /' conftest.$ac_ext >&5
5907
5908ac_cv_prog_cxx_g=no
5909fi
5910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5911fi
5912echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5913echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5914if test "$ac_test_CXXFLAGS" = set; then
5915  CXXFLAGS=$ac_save_CXXFLAGS
5916elif test $ac_cv_prog_cxx_g = yes; then
5917  if test "$GXX" = yes; then
5918    CXXFLAGS="-g -O2"
5919  else
5920    CXXFLAGS="-g"
5921  fi
5922else
5923  if test "$GXX" = yes; then
5924    CXXFLAGS="-O2"
5925  else
5926    CXXFLAGS=
5927  fi
5928fi
5929for ac_declaration in \
5930   '' \
5931   'extern "C" void std::exit (int) throw (); using std::exit;' \
5932   'extern "C" void std::exit (int); using std::exit;' \
5933   'extern "C" void exit (int) throw ();' \
5934   'extern "C" void exit (int);' \
5935   'void exit (int);'
5936do
5937  cat >conftest.$ac_ext <<_ACEOF
5938/* confdefs.h.  */
5939_ACEOF
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h.  */
5943$ac_declaration
5944#include <stdlib.h>
5945int
5946main ()
5947{
5948exit (42);
5949  ;
5950  return 0;
5951}
5952_ACEOF
5953rm -f conftest.$ac_objext
5954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955  (eval $ac_compile) 2>conftest.er1
5956  ac_status=$?
5957  grep -v '^ *+' conftest.er1 >conftest.err
5958  rm -f conftest.er1
5959  cat conftest.err >&5
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); } &&
5962         { ac_try='test -z "$ac_cxx_werror_flag"
5963                         || test ! -s conftest.err'
5964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965  (eval $ac_try) 2>&5
5966  ac_status=$?
5967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968  (exit $ac_status); }; } &&
5969         { ac_try='test -s conftest.$ac_objext'
5970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971  (eval $ac_try) 2>&5
5972  ac_status=$?
5973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974  (exit $ac_status); }; }; then
5975  :
5976else
5977  echo "$as_me: failed program was:" >&5
5978sed 's/^/| /' conftest.$ac_ext >&5
5979
5980continue
5981fi
5982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5983  cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h.  */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h.  */
5989$ac_declaration
5990int
5991main ()
5992{
5993exit (42);
5994  ;
5995  return 0;
5996}
5997_ACEOF
5998rm -f conftest.$ac_objext
5999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000  (eval $ac_compile) 2>conftest.er1
6001  ac_status=$?
6002  grep -v '^ *+' conftest.er1 >conftest.err
6003  rm -f conftest.er1
6004  cat conftest.err >&5
6005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006  (exit $ac_status); } &&
6007         { ac_try='test -z "$ac_cxx_werror_flag"
6008                         || test ! -s conftest.err'
6009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010  (eval $ac_try) 2>&5
6011  ac_status=$?
6012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013  (exit $ac_status); }; } &&
6014         { ac_try='test -s conftest.$ac_objext'
6015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016  (eval $ac_try) 2>&5
6017  ac_status=$?
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); }; }; then
6020  break
6021else
6022  echo "$as_me: failed program was:" >&5
6023sed 's/^/| /' conftest.$ac_ext >&5
6024
6025fi
6026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6027done
6028rm -f conftest*
6029if test -n "$ac_declaration"; then
6030  echo '#ifdef __cplusplus' >>confdefs.h
6031  echo $ac_declaration      >>confdefs.h
6032  echo '#endif'             >>confdefs.h
6033fi
6034
6035ac_ext=cc
6036ac_cpp='$CXXCPP $CPPFLAGS'
6037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6040
6041depcc="$CXX"  am_compiler_list=
6042
6043echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6044echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6045if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6046  echo $ECHO_N "(cached) $ECHO_C" >&6
6047else
6048  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6049  # We make a subdir and do the tests there.  Otherwise we can end up
6050  # making bogus files that we don't know about and never remove.  For
6051  # instance it was reported that on HP-UX the gcc test will end up
6052  # making a dummy file named `D' -- because `-MD' means `put the output
6053  # in D'.
6054  mkdir conftest.dir
6055  # Copy depcomp to subdir because otherwise we won't find it if we're
6056  # using a relative directory.
6057  cp "$am_depcomp" conftest.dir
6058  cd conftest.dir
6059  # We will build objects and dependencies in a subdirectory because
6060  # it helps to detect inapplicable dependency modes.  For instance
6061  # both Tru64's cc and ICC support -MD to output dependencies as a
6062  # side effect of compilation, but ICC will put the dependencies in
6063  # the current directory while Tru64 will put them in the object
6064  # directory.
6065  mkdir sub
6066
6067  am_cv_CXX_dependencies_compiler_type=none
6068  if test "$am_compiler_list" = ""; then
6069     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6070  fi
6071  for depmode in $am_compiler_list; do
6072    # Setup a source with many dependencies, because some compilers
6073    # like to wrap large dependency lists on column 80 (with \), and
6074    # we should not choose a depcomp mode which is confused by this.
6075    #
6076    # We need to recreate these files for each test, as the compiler may
6077    # overwrite some of them when testing with obscure command lines.
6078    # This happens at least with the AIX C compiler.
6079    : > sub/conftest.c
6080    for i in 1 2 3 4 5 6; do
6081      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6082      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6083      # Solaris 8's {/usr,}/bin/sh.
6084      touch sub/conftst$i.h
6085    done
6086    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6087
6088    case $depmode in
6089    nosideeffect)
6090      # after this tag, mechanisms are not by side-effect, so they'll
6091      # only be used when explicitly requested
6092      if test "x$enable_dependency_tracking" = xyes; then
6093        continue
6094      else
6095        break
6096      fi
6097      ;;
6098    none) break ;;
6099    esac
6100    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6101    # mode.  It turns out that the SunPro C++ compiler does not properly
6102    # handle `-M -o', and we need to detect this.
6103    if depmode=$depmode \
6104       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6105       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6106       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6107         >/dev/null 2>conftest.err &&
6108       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6109       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6110       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6111      # icc doesn't choke on unknown options, it will just issue warnings
6112      # or remarks (even with -Werror).  So we grep stderr for any message
6113      # that says an option was ignored or not supported.
6114      # When given -MP, icc 7.0 and 7.1 complain thusly:
6115      #   icc: Command line warning: ignoring option '-M'; no argument required
6116      # The diagnosis changed in icc 8.0:
6117      #   icc: Command line remark: option '-MP' not supported
6118      if (grep 'ignoring option' conftest.err ||
6119          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6120        am_cv_CXX_dependencies_compiler_type=$depmode
6121        break
6122      fi
6123    fi
6124  done
6125
6126  cd ..
6127  rm -rf conftest.dir
6128else
6129  am_cv_CXX_dependencies_compiler_type=none
6130fi
6131
6132fi
6133echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6134echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6135CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6136
6137
6138
6139if
6140  test "x$enable_dependency_tracking" != xno \
6141  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6142  am__fastdepCXX_TRUE=
6143  am__fastdepCXX_FALSE='#'
6144else
6145  am__fastdepCXX_TRUE='#'
6146  am__fastdepCXX_FALSE=
6147fi
6148
6149
6150
6151
6152if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6153    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6154    (test "X$CXX" != "Xg++"))) ; then
6155  ac_ext=cc
6156ac_cpp='$CXXCPP $CPPFLAGS'
6157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6160echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6161echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6162if test -z "$CXXCPP"; then
6163  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6164  echo $ECHO_N "(cached) $ECHO_C" >&6
6165else
6166      # Double quotes because CXXCPP needs to be expanded
6167    for CXXCPP in "$CXX -E" "/lib/cpp"
6168    do
6169      ac_preproc_ok=false
6170for ac_cxx_preproc_warn_flag in '' yes
6171do
6172  # Use a header file that comes with gcc, so configuring glibc
6173  # with a fresh cross-compiler works.
6174  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6175  # <limits.h> exists even on freestanding compilers.
6176  # On the NeXT, cc -E runs the code through the compiler's parser,
6177  # not just through cpp. "Syntax error" is here to catch this case.
6178  cat >conftest.$ac_ext <<_ACEOF
6179/* confdefs.h.  */
6180_ACEOF
6181cat confdefs.h >>conftest.$ac_ext
6182cat >>conftest.$ac_ext <<_ACEOF
6183/* end confdefs.h.  */
6184#ifdef __STDC__
6185# include <limits.h>
6186#else
6187# include <assert.h>
6188#endif
6189                     Syntax error
6190_ACEOF
6191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6192  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6193  ac_status=$?
6194  grep -v '^ *+' conftest.er1 >conftest.err
6195  rm -f conftest.er1
6196  cat conftest.err >&5
6197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198  (exit $ac_status); } >/dev/null; then
6199  if test -s conftest.err; then
6200    ac_cpp_err=$ac_cxx_preproc_warn_flag
6201    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6202  else
6203    ac_cpp_err=
6204  fi
6205else
6206  ac_cpp_err=yes
6207fi
6208if test -z "$ac_cpp_err"; then
6209  :
6210else
6211  echo "$as_me: failed program was:" >&5
6212sed 's/^/| /' conftest.$ac_ext >&5
6213
6214  # Broken: fails on valid input.
6215continue
6216fi
6217rm -f conftest.err conftest.$ac_ext
6218
6219  # OK, works on sane cases.  Now check whether non-existent headers
6220  # can be detected and how.
6221  cat >conftest.$ac_ext <<_ACEOF
6222/* confdefs.h.  */
6223_ACEOF
6224cat confdefs.h >>conftest.$ac_ext
6225cat >>conftest.$ac_ext <<_ACEOF
6226/* end confdefs.h.  */
6227#include <ac_nonexistent.h>
6228_ACEOF
6229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6230  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6231  ac_status=$?
6232  grep -v '^ *+' conftest.er1 >conftest.err
6233  rm -f conftest.er1
6234  cat conftest.err >&5
6235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); } >/dev/null; then
6237  if test -s conftest.err; then
6238    ac_cpp_err=$ac_cxx_preproc_warn_flag
6239    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6240  else
6241    ac_cpp_err=
6242  fi
6243else
6244  ac_cpp_err=yes
6245fi
6246if test -z "$ac_cpp_err"; then
6247  # Broken: success on invalid input.
6248continue
6249else
6250  echo "$as_me: failed program was:" >&5
6251sed 's/^/| /' conftest.$ac_ext >&5
6252
6253  # Passes both tests.
6254ac_preproc_ok=:
6255break
6256fi
6257rm -f conftest.err conftest.$ac_ext
6258
6259done
6260# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6261rm -f conftest.err conftest.$ac_ext
6262if $ac_preproc_ok; then
6263  break
6264fi
6265
6266    done
6267    ac_cv_prog_CXXCPP=$CXXCPP
6268
6269fi
6270  CXXCPP=$ac_cv_prog_CXXCPP
6271else
6272  ac_cv_prog_CXXCPP=$CXXCPP
6273fi
6274echo "$as_me:$LINENO: result: $CXXCPP" >&5
6275echo "${ECHO_T}$CXXCPP" >&6
6276ac_preproc_ok=false
6277for ac_cxx_preproc_warn_flag in '' yes
6278do
6279  # Use a header file that comes with gcc, so configuring glibc
6280  # with a fresh cross-compiler works.
6281  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6282  # <limits.h> exists even on freestanding compilers.
6283  # On the NeXT, cc -E runs the code through the compiler's parser,
6284  # not just through cpp. "Syntax error" is here to catch this case.
6285  cat >conftest.$ac_ext <<_ACEOF
6286/* confdefs.h.  */
6287_ACEOF
6288cat confdefs.h >>conftest.$ac_ext
6289cat >>conftest.$ac_ext <<_ACEOF
6290/* end confdefs.h.  */
6291#ifdef __STDC__
6292# include <limits.h>
6293#else
6294# include <assert.h>
6295#endif
6296                     Syntax error
6297_ACEOF
6298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6299  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6300  ac_status=$?
6301  grep -v '^ *+' conftest.er1 >conftest.err
6302  rm -f conftest.er1
6303  cat conftest.err >&5
6304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305  (exit $ac_status); } >/dev/null; then
6306  if test -s conftest.err; then
6307    ac_cpp_err=$ac_cxx_preproc_warn_flag
6308    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6309  else
6310    ac_cpp_err=
6311  fi
6312else
6313  ac_cpp_err=yes
6314fi
6315if test -z "$ac_cpp_err"; then
6316  :
6317else
6318  echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
6321  # Broken: fails on valid input.
6322continue
6323fi
6324rm -f conftest.err conftest.$ac_ext
6325
6326  # OK, works on sane cases.  Now check whether non-existent headers
6327  # can be detected and how.
6328  cat >conftest.$ac_ext <<_ACEOF
6329/* confdefs.h.  */
6330_ACEOF
6331cat confdefs.h >>conftest.$ac_ext
6332cat >>conftest.$ac_ext <<_ACEOF
6333/* end confdefs.h.  */
6334#include <ac_nonexistent.h>
6335_ACEOF
6336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6338  ac_status=$?
6339  grep -v '^ *+' conftest.er1 >conftest.err
6340  rm -f conftest.er1
6341  cat conftest.err >&5
6342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343  (exit $ac_status); } >/dev/null; then
6344  if test -s conftest.err; then
6345    ac_cpp_err=$ac_cxx_preproc_warn_flag
6346    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6347  else
6348    ac_cpp_err=
6349  fi
6350else
6351  ac_cpp_err=yes
6352fi
6353if test -z "$ac_cpp_err"; then
6354  # Broken: success on invalid input.
6355continue
6356else
6357  echo "$as_me: failed program was:" >&5
6358sed 's/^/| /' conftest.$ac_ext >&5
6359
6360  # Passes both tests.
6361ac_preproc_ok=:
6362break
6363fi
6364rm -f conftest.err conftest.$ac_ext
6365
6366done
6367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6368rm -f conftest.err conftest.$ac_ext
6369if $ac_preproc_ok; then
6370  :
6371else
6372  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6373See \`config.log' for more details." >&5
6374echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6375See \`config.log' for more details." >&2;}
6376   { (exit 1); exit 1; }; }
6377fi
6378
6379ac_ext=cc
6380ac_cpp='$CXXCPP $CPPFLAGS'
6381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6384
6385fi
6386
6387
6388ac_ext=f
6389ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6390ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6391ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6392if test -n "$ac_tool_prefix"; then
6393  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6394  do
6395    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6396set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6397echo "$as_me:$LINENO: checking for $ac_word" >&5
6398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6399if test "${ac_cv_prog_F77+set}" = set; then
6400  echo $ECHO_N "(cached) $ECHO_C" >&6
6401else
6402  if test -n "$F77"; then
6403  ac_cv_prog_F77="$F77" # Let the user override the test.
6404else
6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408  IFS=$as_save_IFS
6409  test -z "$as_dir" && as_dir=.
6410  for ac_exec_ext in '' $ac_executable_extensions; do
6411  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6413    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414    break 2
6415  fi
6416done
6417done
6418
6419fi
6420fi
6421F77=$ac_cv_prog_F77
6422if test -n "$F77"; then
6423  echo "$as_me:$LINENO: result: $F77" >&5
6424echo "${ECHO_T}$F77" >&6
6425else
6426  echo "$as_me:$LINENO: result: no" >&5
6427echo "${ECHO_T}no" >&6
6428fi
6429
6430    test -n "$F77" && break
6431  done
6432fi
6433if test -z "$F77"; then
6434  ac_ct_F77=$F77
6435  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6436do
6437  # Extract the first word of "$ac_prog", so it can be a program name with args.
6438set dummy $ac_prog; ac_word=$2
6439echo "$as_me:$LINENO: checking for $ac_word" >&5
6440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6441if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6442  echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444  if test -n "$ac_ct_F77"; then
6445  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6446else
6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448for as_dir in $PATH
6449do
6450  IFS=$as_save_IFS
6451  test -z "$as_dir" && as_dir=.
6452  for ac_exec_ext in '' $ac_executable_extensions; do
6453  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454    ac_cv_prog_ac_ct_F77="$ac_prog"
6455    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456    break 2
6457  fi
6458done
6459done
6460
6461fi
6462fi
6463ac_ct_F77=$ac_cv_prog_ac_ct_F77
6464if test -n "$ac_ct_F77"; then
6465  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6466echo "${ECHO_T}$ac_ct_F77" >&6
6467else
6468  echo "$as_me:$LINENO: result: no" >&5
6469echo "${ECHO_T}no" >&6
6470fi
6471
6472  test -n "$ac_ct_F77" && break
6473done
6474
6475  F77=$ac_ct_F77
6476fi
6477
6478
6479# Provide some information about the compiler.
6480echo "$as_me:6480:" \
6481     "checking for Fortran 77 compiler version" >&5
6482ac_compiler=`set X $ac_compile; echo $2`
6483{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6484  (eval $ac_compiler --version </dev/null >&5) 2>&5
6485  ac_status=$?
6486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487  (exit $ac_status); }
6488{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6489  (eval $ac_compiler -v </dev/null >&5) 2>&5
6490  ac_status=$?
6491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492  (exit $ac_status); }
6493{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6494  (eval $ac_compiler -V </dev/null >&5) 2>&5
6495  ac_status=$?
6496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497  (exit $ac_status); }
6498rm -f a.out
6499
6500# If we don't use `.F' as extension, the preprocessor is not run on the
6501# input file.  (Note that this only needs to work for GNU compilers.)
6502ac_save_ext=$ac_ext
6503ac_ext=F
6504echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6505echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6506if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6507  echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509  cat >conftest.$ac_ext <<_ACEOF
6510      program main
6511#ifndef __GNUC__
6512       choke me
6513#endif
6514
6515      end
6516_ACEOF
6517rm -f conftest.$ac_objext
6518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6519  (eval $ac_compile) 2>conftest.er1
6520  ac_status=$?
6521  grep -v '^ *+' conftest.er1 >conftest.err
6522  rm -f conftest.er1
6523  cat conftest.err >&5
6524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525  (exit $ac_status); } &&
6526         { ac_try='test -z "$ac_f77_werror_flag"
6527                         || test ! -s conftest.err'
6528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529  (eval $ac_try) 2>&5
6530  ac_status=$?
6531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532  (exit $ac_status); }; } &&
6533         { ac_try='test -s conftest.$ac_objext'
6534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535  (eval $ac_try) 2>&5
6536  ac_status=$?
6537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538  (exit $ac_status); }; }; then
6539  ac_compiler_gnu=yes
6540else
6541  echo "$as_me: failed program was:" >&5
6542sed 's/^/| /' conftest.$ac_ext >&5
6543
6544ac_compiler_gnu=no
6545fi
6546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6547ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6548
6549fi
6550echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6551echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6552ac_ext=$ac_save_ext
6553ac_test_FFLAGS=${FFLAGS+set}
6554ac_save_FFLAGS=$FFLAGS
6555FFLAGS=
6556echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6557echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6558if test "${ac_cv_prog_f77_g+set}" = set; then
6559  echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561  FFLAGS=-g
6562cat >conftest.$ac_ext <<_ACEOF
6563      program main
6564
6565      end
6566_ACEOF
6567rm -f conftest.$ac_objext
6568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569  (eval $ac_compile) 2>conftest.er1
6570  ac_status=$?
6571  grep -v '^ *+' conftest.er1 >conftest.err
6572  rm -f conftest.er1
6573  cat conftest.err >&5
6574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575  (exit $ac_status); } &&
6576         { ac_try='test -z "$ac_f77_werror_flag"
6577                         || test ! -s conftest.err'
6578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579  (eval $ac_try) 2>&5
6580  ac_status=$?
6581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582  (exit $ac_status); }; } &&
6583         { ac_try='test -s conftest.$ac_objext'
6584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585  (eval $ac_try) 2>&5
6586  ac_status=$?
6587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588  (exit $ac_status); }; }; then
6589  ac_cv_prog_f77_g=yes
6590else
6591  echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594ac_cv_prog_f77_g=no
6595fi
6596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6597
6598fi
6599echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6600echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6601if test "$ac_test_FFLAGS" = set; then
6602  FFLAGS=$ac_save_FFLAGS
6603elif test $ac_cv_prog_f77_g = yes; then
6604  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6605    FFLAGS="-g -O2"
6606  else
6607    FFLAGS="-g"
6608  fi
6609else
6610  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6611    FFLAGS="-O2"
6612  else
6613    FFLAGS=
6614  fi
6615fi
6616
6617G77=`test $ac_compiler_gnu = yes && echo yes`
6618ac_ext=c
6619ac_cpp='$CPP $CPPFLAGS'
6620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622ac_compiler_gnu=$ac_cv_c_compiler_gnu
6623
6624
6625
6626# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6627
6628# find the maximum length of command line arguments
6629echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6630echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6631if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6632  echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
6634    i=0
6635  teststring="ABCD"
6636
6637  case $build_os in
6638  msdosdjgpp*)
6639    # On DJGPP, this test can blow up pretty badly due to problems in libc
6640    # (any single argument exceeding 2000 bytes causes a buffer overrun
6641    # during glob expansion).  Even if it were fixed, the result of this
6642    # check would be larger than it should be.
6643    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6644    ;;
6645
6646  gnu*)
6647    # Under GNU Hurd, this test is not required because there is
6648    # no limit to the length of command line arguments.
6649    # Libtool will interpret -1 as no limit whatsoever
6650    lt_cv_sys_max_cmd_len=-1;
6651    ;;
6652
6653  cygwin* | mingw*)
6654    # On Win9x/ME, this test blows up -- it succeeds, but takes
6655    # about 5 minutes as the teststring grows exponentially.
6656    # Worse, since 9x/ME are not pre-emptively multitasking,
6657    # you end up with a "frozen" computer, even though with patience
6658    # the test eventually succeeds (with a max line length of 256k).
6659    # Instead, let's just punt: use the minimum linelength reported by
6660    # all of the supported platforms: 8192 (on NT/2K/XP).
6661    lt_cv_sys_max_cmd_len=8192;
6662    ;;
6663
6664  amigaos*)
6665    # On AmigaOS with pdksh, this test takes hours, literally.
6666    # So we just punt and use a minimum line length of 8192.
6667    lt_cv_sys_max_cmd_len=8192;
6668    ;;
6669
6670  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6671    # This has been around since 386BSD, at least.  Likely further.
6672    if test -x /sbin/sysctl; then
6673      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6674    elif test -x /usr/sbin/sysctl; then
6675      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6676    else
6677      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6678    fi
6679    # And add a safety zone
6680    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6681    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6682    ;;
6683
6684  interix*)
6685    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6686    lt_cv_sys_max_cmd_len=196608
6687    ;;
6688
6689  osf*)
6690    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6691    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6692    # nice to cause kernel panics so lets avoid the loop below.
6693    # First set a reasonable default.
6694    lt_cv_sys_max_cmd_len=16384
6695    #
6696    if test -x /sbin/sysconfig; then
6697      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6698        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6699      esac
6700    fi
6701    ;;
6702  sco3.2v5*)
6703    lt_cv_sys_max_cmd_len=102400
6704    ;;
6705  sysv5* | sco5v6* | sysv4.2uw2*)
6706    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6707    if test -n "$kargmax"; then
6708      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6709    else
6710      lt_cv_sys_max_cmd_len=32768
6711    fi
6712    ;;
6713  *)
6714    # If test is not a shell built-in, we'll probably end up computing a
6715    # maximum length that is only half of the actual maximum length, but
6716    # we can't tell.
6717    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6718    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6719               = "XX$teststring") >/dev/null 2>&1 &&
6720            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6721            lt_cv_sys_max_cmd_len=$new_result &&
6722            test $i != 17 # 1/2 MB should be enough
6723    do
6724      i=`expr $i + 1`
6725      teststring=$teststring$teststring
6726    done
6727    teststring=
6728    # Add a significant safety factor because C++ compilers can tack on massive
6729    # amounts of additional arguments before passing them to the linker.
6730    # It appears as though 1/2 is a usable value.
6731    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6732    ;;
6733  esac
6734
6735fi
6736
6737if test -n $lt_cv_sys_max_cmd_len ; then
6738  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6739echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6740else
6741  echo "$as_me:$LINENO: result: none" >&5
6742echo "${ECHO_T}none" >&6
6743fi
6744
6745
6746
6747
6748# Check for command to grab the raw symbol name followed by C symbol from nm.
6749echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6750echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6751if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6752  echo $ECHO_N "(cached) $ECHO_C" >&6
6753else
6754
6755# These are sane defaults that work on at least a few old systems.
6756# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6757
6758# Character class describing NM global symbol codes.
6759symcode='[BCDEGRST]'
6760
6761# Regexp to match symbols that can be accessed directly from C.
6762sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6763
6764# Transform an extracted symbol line into a proper C declaration
6765lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6766
6767# Transform an extracted symbol line into symbol name and symbol address
6768lt_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'"
6769
6770# Define system-specific variables.
6771case $host_os in
6772aix*)
6773  symcode='[BCDT]'
6774  ;;
6775cygwin* | mingw* | pw32*)
6776  symcode='[ABCDGISTW]'
6777  ;;
6778hpux*) # Its linker distinguishes data from code symbols
6779  if test "$host_cpu" = ia64; then
6780    symcode='[ABCDEGRST]'
6781  fi
6782  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6783  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'"
6784  ;;
6785linux*)
6786  if test "$host_cpu" = ia64; then
6787    symcode='[ABCDGIRSTW]'
6788    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6789    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'"
6790  fi
6791  ;;
6792irix* | nonstopux*)
6793  symcode='[BCDEGRST]'
6794  ;;
6795osf*)
6796  symcode='[BCDEGQRST]'
6797  ;;
6798solaris*)
6799  symcode='[BDRT]'
6800  ;;
6801sco3.2v5*)
6802  symcode='[DT]'
6803  ;;
6804sysv4.2uw2*)
6805  symcode='[DT]'
6806  ;;
6807sysv5* | sco5v6* | unixware* | OpenUNIX*)
6808  symcode='[ABDT]'
6809  ;;
6810sysv4)
6811  symcode='[DFNSTU]'
6812  ;;
6813esac
6814
6815# Handle CRLF in mingw tool chain
6816opt_cr=
6817case $build_os in
6818mingw*)
6819  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6820  ;;
6821esac
6822
6823# If we're using GNU nm, then use its standard symbol codes.
6824case `$NM -V 2>&1` in
6825*GNU* | *'with BFD'*)
6826  symcode='[ABCDGIRSTW]' ;;
6827esac
6828
6829# Try without a prefix undercore, then with it.
6830for ac_symprfx in "" "_"; do
6831
6832  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6833  symxfrm="\\1 $ac_symprfx\\2 \\2"
6834
6835  # Write the raw and C identifiers.
6836  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6837
6838  # Check to see that the pipe works correctly.
6839  pipe_works=no
6840
6841  rm -f conftest*
6842  cat > conftest.$ac_ext <<EOF
6843#ifdef __cplusplus
6844extern "C" {
6845#endif
6846char nm_test_var;
6847void nm_test_func(){}
6848#ifdef __cplusplus
6849}
6850#endif
6851int main(){nm_test_var='a';nm_test_func();return(0);}
6852EOF
6853
6854  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855  (eval $ac_compile) 2>&5
6856  ac_status=$?
6857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858  (exit $ac_status); }; then
6859    # Now try to grab the symbols.
6860    nlist=conftest.nm
6861    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6862  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6863  ac_status=$?
6864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865  (exit $ac_status); } && test -s "$nlist"; then
6866      # Try sorting and uniquifying the output.
6867      if sort "$nlist" | uniq > "$nlist"T; then
6868        mv -f "$nlist"T "$nlist"
6869      else
6870        rm -f "$nlist"T
6871      fi
6872
6873      # Make sure that we snagged all the symbols we need.
6874      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6875        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6876          cat <<EOF > conftest.$ac_ext
6877#ifdef __cplusplus
6878extern "C" {
6879#endif
6880
6881EOF
6882          # Now generate the symbol file.
6883          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6884
6885          cat <<EOF >> conftest.$ac_ext
6886#if defined (__STDC__) && __STDC__
6887# define lt_ptr_t void *
6888#else
6889# define lt_ptr_t char *
6890# define const
6891#endif
6892
6893/* The mapping between symbol names and symbols. */
6894const struct {
6895  const char *name;
6896  lt_ptr_t address;
6897}
6898lt_preloaded_symbols[] =
6899{
6900EOF
6901          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6902          cat <<\EOF >> conftest.$ac_ext
6903  {0, (lt_ptr_t) 0}
6904};
6905
6906#ifdef __cplusplus
6907}
6908#endif
6909EOF
6910          # Now try linking the two files.
6911          mv conftest.$ac_objext conftstm.$ac_objext
6912          lt_save_LIBS="$LIBS"
6913          lt_save_CFLAGS="$CFLAGS"
6914          LIBS="conftstm.$ac_objext"
6915          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6916          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6917  (eval $ac_link) 2>&5
6918  ac_status=$?
6919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6921            pipe_works=yes
6922          fi
6923          LIBS="$lt_save_LIBS"
6924          CFLAGS="$lt_save_CFLAGS"
6925        else
6926          echo "cannot find nm_test_func in $nlist" >&5
6927        fi
6928      else
6929        echo "cannot find nm_test_var in $nlist" >&5
6930      fi
6931    else
6932      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6933    fi
6934  else
6935    echo "$progname: failed program was:" >&5
6936    cat conftest.$ac_ext >&5
6937  fi
6938  rm -f conftest* conftst*
6939
6940  # Do not use the global_symbol_pipe unless it works.
6941  if test "$pipe_works" = yes; then
6942    break
6943  else
6944    lt_cv_sys_global_symbol_pipe=
6945  fi
6946done
6947
6948fi
6949
6950if test -z "$lt_cv_sys_global_symbol_pipe"; then
6951  lt_cv_sys_global_symbol_to_cdecl=
6952fi
6953if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6954  echo "$as_me:$LINENO: result: failed" >&5
6955echo "${ECHO_T}failed" >&6
6956else
6957  echo "$as_me:$LINENO: result: ok" >&5
6958echo "${ECHO_T}ok" >&6
6959fi
6960
6961echo "$as_me:$LINENO: checking for objdir" >&5
6962echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6963if test "${lt_cv_objdir+set}" = set; then
6964  echo $ECHO_N "(cached) $ECHO_C" >&6
6965else
6966  rm -f .libs 2>/dev/null
6967mkdir .libs 2>/dev/null
6968if test -d .libs; then
6969  lt_cv_objdir=.libs
6970else
6971  # MS-DOS does not allow filenames that begin with a dot.
6972  lt_cv_objdir=_libs
6973fi
6974rmdir .libs 2>/dev/null
6975fi
6976echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6977echo "${ECHO_T}$lt_cv_objdir" >&6
6978objdir=$lt_cv_objdir
6979
6980
6981
6982
6983
6984case $host_os in
6985aix3*)
6986  # AIX sometimes has problems with the GCC collect2 program.  For some
6987  # reason, if we set the COLLECT_NAMES environment variable, the problems
6988  # vanish in a puff of smoke.
6989  if test "X${COLLECT_NAMES+set}" != Xset; then
6990    COLLECT_NAMES=
6991    export COLLECT_NAMES
6992  fi
6993  ;;
6994esac
6995
6996# Sed substitution that helps us do robust quoting.  It backslashifies
6997# metacharacters that are still active within double-quoted strings.
6998Xsed='sed -e 1s/^X//'
6999sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7000
7001# Same as above, but do not quote variable references.
7002double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7003
7004# Sed substitution to delay expansion of an escaped shell variable in a
7005# double_quote_subst'ed string.
7006delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7007
7008# Sed substitution to avoid accidental globbing in evaled expressions
7009no_glob_subst='s/\*/\\\*/g'
7010
7011# Constants:
7012rm="rm -f"
7013
7014# Global variables:
7015default_ofile=libtool
7016can_build_shared=yes
7017
7018# All known linkers require a `.a' archive for static linking (except MSVC,
7019# which needs '.lib').
7020libext=a
7021ltmain="$ac_aux_dir/ltmain.sh"
7022ofile="$default_ofile"
7023with_gnu_ld="$lt_cv_prog_gnu_ld"
7024
7025if test -n "$ac_tool_prefix"; then
7026  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7027set dummy ${ac_tool_prefix}ar; ac_word=$2
7028echo "$as_me:$LINENO: checking for $ac_word" >&5
7029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7030if test "${ac_cv_prog_AR+set}" = set; then
7031  echo $ECHO_N "(cached) $ECHO_C" >&6
7032else
7033  if test -n "$AR"; then
7034  ac_cv_prog_AR="$AR" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039  IFS=$as_save_IFS
7040  test -z "$as_dir" && as_dir=.
7041  for ac_exec_ext in '' $ac_executable_extensions; do
7042  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043    ac_cv_prog_AR="${ac_tool_prefix}ar"
7044    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045    break 2
7046  fi
7047done
7048done
7049
7050fi
7051fi
7052AR=$ac_cv_prog_AR
7053if test -n "$AR"; then
7054  echo "$as_me:$LINENO: result: $AR" >&5
7055echo "${ECHO_T}$AR" >&6
7056else
7057  echo "$as_me:$LINENO: result: no" >&5
7058echo "${ECHO_T}no" >&6
7059fi
7060
7061fi
7062if test -z "$ac_cv_prog_AR"; then
7063  ac_ct_AR=$AR
7064  # Extract the first word of "ar", so it can be a program name with args.
7065set dummy ar; ac_word=$2
7066echo "$as_me:$LINENO: checking for $ac_word" >&5
7067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7068if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7069  echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071  if test -n "$ac_ct_AR"; then
7072  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077  IFS=$as_save_IFS
7078  test -z "$as_dir" && as_dir=.
7079  for ac_exec_ext in '' $ac_executable_extensions; do
7080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081    ac_cv_prog_ac_ct_AR="ar"
7082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083    break 2
7084  fi
7085done
7086done
7087
7088  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7089fi
7090fi
7091ac_ct_AR=$ac_cv_prog_ac_ct_AR
7092if test -n "$ac_ct_AR"; then
7093  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7094echo "${ECHO_T}$ac_ct_AR" >&6
7095else
7096  echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6
7098fi
7099
7100  AR=$ac_ct_AR
7101else
7102  AR="$ac_cv_prog_AR"
7103fi
7104
7105if test -n "$ac_tool_prefix"; then
7106  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7107set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7108echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7110if test "${ac_cv_prog_RANLIB+set}" = set; then
7111  echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113  if test -n "$RANLIB"; then
7114  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119  IFS=$as_save_IFS
7120  test -z "$as_dir" && as_dir=.
7121  for ac_exec_ext in '' $ac_executable_extensions; do
7122  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125    break 2
7126  fi
7127done
7128done
7129
7130fi
7131fi
7132RANLIB=$ac_cv_prog_RANLIB
7133if test -n "$RANLIB"; then
7134  echo "$as_me:$LINENO: result: $RANLIB" >&5
7135echo "${ECHO_T}$RANLIB" >&6
7136else
7137  echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6
7139fi
7140
7141fi
7142if test -z "$ac_cv_prog_RANLIB"; then
7143  ac_ct_RANLIB=$RANLIB
7144  # Extract the first word of "ranlib", so it can be a program name with args.
7145set dummy ranlib; ac_word=$2
7146echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7148if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7149  echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151  if test -n "$ac_ct_RANLIB"; then
7152  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7153else
7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157  IFS=$as_save_IFS
7158  test -z "$as_dir" && as_dir=.
7159  for ac_exec_ext in '' $ac_executable_extensions; do
7160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161    ac_cv_prog_ac_ct_RANLIB="ranlib"
7162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163    break 2
7164  fi
7165done
7166done
7167
7168  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7169fi
7170fi
7171ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7172if test -n "$ac_ct_RANLIB"; then
7173  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7174echo "${ECHO_T}$ac_ct_RANLIB" >&6
7175else
7176  echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6
7178fi
7179
7180  RANLIB=$ac_ct_RANLIB
7181else
7182  RANLIB="$ac_cv_prog_RANLIB"
7183fi
7184
7185if test -n "$ac_tool_prefix"; then
7186  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7187set dummy ${ac_tool_prefix}strip; ac_word=$2
7188echo "$as_me:$LINENO: checking for $ac_word" >&5
7189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7190if test "${ac_cv_prog_STRIP+set}" = set; then
7191  echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193  if test -n "$STRIP"; then
7194  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199  IFS=$as_save_IFS
7200  test -z "$as_dir" && as_dir=.
7201  for ac_exec_ext in '' $ac_executable_extensions; do
7202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205    break 2
7206  fi
7207done
7208done
7209
7210fi
7211fi
7212STRIP=$ac_cv_prog_STRIP
7213if test -n "$STRIP"; then
7214  echo "$as_me:$LINENO: result: $STRIP" >&5
7215echo "${ECHO_T}$STRIP" >&6
7216else
7217  echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6
7219fi
7220
7221fi
7222if test -z "$ac_cv_prog_STRIP"; then
7223  ac_ct_STRIP=$STRIP
7224  # Extract the first word of "strip", so it can be a program name with args.
7225set dummy strip; ac_word=$2
7226echo "$as_me:$LINENO: checking for $ac_word" >&5
7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7229  echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231  if test -n "$ac_ct_STRIP"; then
7232  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237  IFS=$as_save_IFS
7238  test -z "$as_dir" && as_dir=.
7239  for ac_exec_ext in '' $ac_executable_extensions; do
7240  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241    ac_cv_prog_ac_ct_STRIP="strip"
7242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243    break 2
7244  fi
7245done
7246done
7247
7248  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7249fi
7250fi
7251ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7252if test -n "$ac_ct_STRIP"; then
7253  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7254echo "${ECHO_T}$ac_ct_STRIP" >&6
7255else
7256  echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6
7258fi
7259
7260  STRIP=$ac_ct_STRIP
7261else
7262  STRIP="$ac_cv_prog_STRIP"
7263fi
7264
7265
7266old_CC="$CC"
7267old_CFLAGS="$CFLAGS"
7268
7269# Set sane defaults for various variables
7270test -z "$AR" && AR=ar
7271test -z "$AR_FLAGS" && AR_FLAGS=cru
7272test -z "$AS" && AS=as
7273test -z "$CC" && CC=cc
7274test -z "$LTCC" && LTCC=$CC
7275test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7276test -z "$DLLTOOL" && DLLTOOL=dlltool
7277test -z "$LD" && LD=ld
7278test -z "$LN_S" && LN_S="ln -s"
7279test -z "$MAGIC_CMD" && MAGIC_CMD=file
7280test -z "$NM" && NM=nm
7281test -z "$SED" && SED=sed
7282test -z "$OBJDUMP" && OBJDUMP=objdump
7283test -z "$RANLIB" && RANLIB=:
7284test -z "$STRIP" && STRIP=:
7285test -z "$ac_objext" && ac_objext=o
7286
7287# Determine commands to create old-style static archives.
7288old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7289old_postinstall_cmds='chmod 644 $oldlib'
7290old_postuninstall_cmds=
7291
7292if test -n "$RANLIB"; then
7293  case $host_os in
7294  openbsd*)
7295    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7296    ;;
7297  *)
7298    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7299    ;;
7300  esac
7301  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7302fi
7303
7304for cc_temp in $compiler""; do
7305  case $cc_temp in
7306    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7307    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7308    \-*) ;;
7309    *) break;;
7310  esac
7311done
7312cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7313
7314
7315# Only perform the check for file, if the check method requires it
7316case $deplibs_check_method in
7317file_magic*)
7318  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7319    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7320echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7321if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7322  echo $ECHO_N "(cached) $ECHO_C" >&6
7323else
7324  case $MAGIC_CMD in
7325[\\/*] |  ?:[\\/]*)
7326  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7327  ;;
7328*)
7329  lt_save_MAGIC_CMD="$MAGIC_CMD"
7330  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7331  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7332  for ac_dir in $ac_dummy; do
7333    IFS="$lt_save_ifs"
7334    test -z "$ac_dir" && ac_dir=.
7335    if test -f $ac_dir/${ac_tool_prefix}file; then
7336      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7337      if test -n "$file_magic_test_file"; then
7338        case $deplibs_check_method in
7339        "file_magic "*)
7340          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7341          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7342          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7343            $EGREP "$file_magic_regex" > /dev/null; then
7344            :
7345          else
7346            cat <<EOF 1>&2
7347
7348*** Warning: the command libtool uses to detect shared libraries,
7349*** $file_magic_cmd, produces output that libtool cannot recognize.
7350*** The result is that libtool may fail to recognize shared libraries
7351*** as such.  This will affect the creation of libtool libraries that
7352*** depend on shared libraries, but programs linked with such libtool
7353*** libraries will work regardless of this problem.  Nevertheless, you
7354*** may want to report the problem to your system manager and/or to
7355*** bug-libtool@gnu.org
7356
7357EOF
7358          fi ;;
7359        esac
7360      fi
7361      break
7362    fi
7363  done
7364  IFS="$lt_save_ifs"
7365  MAGIC_CMD="$lt_save_MAGIC_CMD"
7366  ;;
7367esac
7368fi
7369
7370MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7371if test -n "$MAGIC_CMD"; then
7372  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7373echo "${ECHO_T}$MAGIC_CMD" >&6
7374else
7375  echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
7377fi
7378
7379if test -z "$lt_cv_path_MAGIC_CMD"; then
7380  if test -n "$ac_tool_prefix"; then
7381    echo "$as_me:$LINENO: checking for file" >&5
7382echo $ECHO_N "checking for file... $ECHO_C" >&6
7383if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7384  echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386  case $MAGIC_CMD in
7387[\\/*] |  ?:[\\/]*)
7388  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7389  ;;
7390*)
7391  lt_save_MAGIC_CMD="$MAGIC_CMD"
7392  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7393  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7394  for ac_dir in $ac_dummy; do
7395    IFS="$lt_save_ifs"
7396    test -z "$ac_dir" && ac_dir=.
7397    if test -f $ac_dir/file; then
7398      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7399      if test -n "$file_magic_test_file"; then
7400        case $deplibs_check_method in
7401        "file_magic "*)
7402          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7403          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7404          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7405            $EGREP "$file_magic_regex" > /dev/null; then
7406            :
7407          else
7408            cat <<EOF 1>&2
7409
7410*** Warning: the command libtool uses to detect shared libraries,
7411*** $file_magic_cmd, produces output that libtool cannot recognize.
7412*** The result is that libtool may fail to recognize shared libraries
7413*** as such.  This will affect the creation of libtool libraries that
7414*** depend on shared libraries, but programs linked with such libtool
7415*** libraries will work regardless of this problem.  Nevertheless, you
7416*** may want to report the problem to your system manager and/or to
7417*** bug-libtool@gnu.org
7418
7419EOF
7420          fi ;;
7421        esac
7422      fi
7423      break
7424    fi
7425  done
7426  IFS="$lt_save_ifs"
7427  MAGIC_CMD="$lt_save_MAGIC_CMD"
7428  ;;
7429esac
7430fi
7431
7432MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7433if test -n "$MAGIC_CMD"; then
7434  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7435echo "${ECHO_T}$MAGIC_CMD" >&6
7436else
7437  echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6
7439fi
7440
7441  else
7442    MAGIC_CMD=:
7443  fi
7444fi
7445
7446  fi
7447  ;;
7448esac
7449
7450enable_dlopen=no
7451enable_win32_dll=no
7452
7453# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7454if test "${enable_libtool_lock+set}" = set; then
7455  enableval="$enable_libtool_lock"
7456
7457fi;
7458test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7459
7460
7461# Check whether --with-pic or --without-pic was given.
7462if test "${with_pic+set}" = set; then
7463  withval="$with_pic"
7464  pic_mode="$withval"
7465else
7466  pic_mode=default
7467fi;
7468test -z "$pic_mode" && pic_mode=default
7469
7470# Use C for the default configuration in the libtool script
7471tagname=
7472lt_save_CC="$CC"
7473ac_ext=c
7474ac_cpp='$CPP $CPPFLAGS'
7475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7477ac_compiler_gnu=$ac_cv_c_compiler_gnu
7478
7479
7480# Source file extension for C test sources.
7481ac_ext=c
7482
7483# Object file extension for compiled C test sources.
7484objext=o
7485objext=$objext
7486
7487# Code to be used in simple compile tests
7488lt_simple_compile_test_code="int some_variable = 0;\n"
7489
7490# Code to be used in simple link tests
7491lt_simple_link_test_code='int main(){return(0);}\n'
7492
7493
7494# If no C compiler was specified, use CC.
7495LTCC=${LTCC-"$CC"}
7496
7497# If no C compiler flags were specified, use CFLAGS.
7498LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7499
7500# Allow CC to be a program name with arguments.
7501compiler=$CC
7502
7503
7504# save warnings/boilerplate of simple test code
7505ac_outfile=conftest.$ac_objext
7506printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7507eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7508_lt_compiler_boilerplate=`cat conftest.err`
7509$rm conftest*
7510
7511ac_outfile=conftest.$ac_objext
7512printf "$lt_simple_link_test_code" >conftest.$ac_ext
7513eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7514_lt_linker_boilerplate=`cat conftest.err`
7515$rm conftest*
7516
7517
7518## CAVEAT EMPTOR:
7519## There is no encapsulation within the following macros, do not change
7520## the running order or otherwise move them around unless you know exactly
7521## what you are doing...
7522
7523lt_prog_compiler_no_builtin_flag=
7524
7525if test "$GCC" = yes; then
7526  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7527
7528
7529echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7530echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7531if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7532  echo $ECHO_N "(cached) $ECHO_C" >&6
7533else
7534  lt_cv_prog_compiler_rtti_exceptions=no
7535  ac_outfile=conftest.$ac_objext
7536   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7537   lt_compiler_flag="-fno-rtti -fno-exceptions"
7538   # Insert the option either (1) after the last *FLAGS variable, or
7539   # (2) before a word containing "conftest.", or (3) at the end.
7540   # Note that $ac_compile itself does not contain backslashes and begins
7541   # with a dollar sign (not a hyphen), so the echo should work correctly.
7542   # The option is referenced via a variable to avoid confusing sed.
7543   lt_compile=`echo "$ac_compile" | $SED \
7544   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7545   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7546   -e 's:$: $lt_compiler_flag:'`
7547   (eval echo "\"\$as_me:7547: $lt_compile\"" >&5)
7548   (eval "$lt_compile" 2>conftest.err)
7549   ac_status=$?
7550   cat conftest.err >&5
7551   echo "$as_me:7551: \$? = $ac_status" >&5
7552   if (exit $ac_status) && test -s "$ac_outfile"; then
7553     # The compiler can only warn and ignore the option if not recognized
7554     # So say no if there are warnings other than the usual output.
7555     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7556     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7557     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7558       lt_cv_prog_compiler_rtti_exceptions=yes
7559     fi
7560   fi
7561   $rm conftest*
7562
7563fi
7564echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7565echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7566
7567if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7568    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7569else
7570    :
7571fi
7572
7573fi
7574
7575lt_prog_compiler_wl=
7576lt_prog_compiler_pic=
7577lt_prog_compiler_static=
7578
7579echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7580echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7581
7582  if test "$GCC" = yes; then
7583    lt_prog_compiler_wl='-Wl,'
7584    lt_prog_compiler_static='-static'
7585
7586    case $host_os in
7587      aix*)
7588      # All AIX code is PIC.
7589      if test "$host_cpu" = ia64; then
7590        # AIX 5 now supports IA64 processor
7591        lt_prog_compiler_static='-Bstatic'
7592      fi
7593      ;;
7594
7595    amigaos*)
7596      # FIXME: we need at least 68020 code to build shared libraries, but
7597      # adding the `-m68020' flag to GCC prevents building anything better,
7598      # like `-m68040'.
7599      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7600      ;;
7601
7602    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7603      # PIC is the default for these OSes.
7604      ;;
7605
7606    mingw* | pw32* | os2*)
7607      # This hack is so that the source file can tell whether it is being
7608      # built for inclusion in a dll (and should export symbols for example).
7609      lt_prog_compiler_pic='-DDLL_EXPORT'
7610      ;;
7611
7612    darwin* | rhapsody*)
7613      # PIC is the default on this platform
7614      # Common symbols not allowed in MH_DYLIB files
7615      lt_prog_compiler_pic='-fno-common'
7616      ;;
7617
7618    interix3*)
7619      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7620      # Instead, we relocate shared libraries at runtime.
7621      ;;
7622
7623    msdosdjgpp*)
7624      # Just because we use GCC doesn't mean we suddenly get shared libraries
7625      # on systems that don't support them.
7626      lt_prog_compiler_can_build_shared=no
7627      enable_shared=no
7628      ;;
7629
7630    sysv4*MP*)
7631      if test -d /usr/nec; then
7632        lt_prog_compiler_pic=-Kconform_pic
7633      fi
7634      ;;
7635
7636    hpux*)
7637      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7638      # not for PA HP-UX.
7639      case $host_cpu in
7640      hppa*64*|ia64*)
7641        # +Z the default
7642        ;;
7643      *)
7644        lt_prog_compiler_pic='-fPIC'
7645        ;;
7646      esac
7647      ;;
7648
7649    *)
7650      lt_prog_compiler_pic='-fPIC'
7651      ;;
7652    esac
7653  else
7654    # PORTME Check for flag to pass linker flags through the system compiler.
7655    case $host_os in
7656    aix*)
7657      lt_prog_compiler_wl='-Wl,'
7658      if test "$host_cpu" = ia64; then
7659        # AIX 5 now supports IA64 processor
7660        lt_prog_compiler_static='-Bstatic'
7661      else
7662        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7663      fi
7664      ;;
7665      darwin*)
7666        # PIC is the default on this platform
7667        # Common symbols not allowed in MH_DYLIB files
7668       case $cc_basename in
7669         xlc*)
7670         lt_prog_compiler_pic='-qnocommon'
7671         lt_prog_compiler_wl='-Wl,'
7672         ;;
7673       esac
7674       ;;
7675
7676    mingw* | pw32* | os2*)
7677      # This hack is so that the source file can tell whether it is being
7678      # built for inclusion in a dll (and should export symbols for example).
7679      lt_prog_compiler_pic='-DDLL_EXPORT'
7680      ;;
7681
7682    hpux9* | hpux10* | hpux11*)
7683      lt_prog_compiler_wl='-Wl,'
7684      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7685      # not for PA HP-UX.
7686      case $host_cpu in
7687      hppa*64*|ia64*)
7688        # +Z the default
7689        ;;
7690      *)
7691        lt_prog_compiler_pic='+Z'
7692        ;;
7693      esac
7694      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7695      lt_prog_compiler_static='${wl}-a ${wl}archive'
7696      ;;
7697
7698    irix5* | irix6* | nonstopux*)
7699      lt_prog_compiler_wl='-Wl,'
7700      # PIC (with -KPIC) is the default.
7701      lt_prog_compiler_static='-non_shared'
7702      ;;
7703
7704    newsos6)
7705      lt_prog_compiler_pic='-KPIC'
7706      lt_prog_compiler_static='-Bstatic'
7707      ;;
7708
7709    linux*)
7710      case $cc_basename in
7711      icc* | ecc*)
7712        lt_prog_compiler_wl='-Wl,'
7713        lt_prog_compiler_pic='-KPIC'
7714        lt_prog_compiler_static='-static'
7715        ;;
7716      pgcc* | pgf77* | pgf90* | pgf95*)
7717        # Portland Group compilers (*not* the Pentium gcc compiler,
7718        # which looks to be a dead project)
7719        lt_prog_compiler_wl='-Wl,'
7720        lt_prog_compiler_pic='-fpic'
7721        lt_prog_compiler_static='-Bstatic'
7722        ;;
7723      ccc*)
7724        lt_prog_compiler_wl='-Wl,'
7725        # All Alpha code is PIC.
7726        lt_prog_compiler_static='-non_shared'
7727        ;;
7728      esac
7729      ;;
7730
7731    osf3* | osf4* | osf5*)
7732      lt_prog_compiler_wl='-Wl,'
7733      # All OSF/1 code is PIC.
7734      lt_prog_compiler_static='-non_shared'
7735      ;;
7736
7737    solaris*)
7738      lt_prog_compiler_pic='-KPIC'
7739      lt_prog_compiler_static='-Bstatic'
7740      case $cc_basename in
7741      f77* | f90* | f95*)
7742        lt_prog_compiler_wl='-Qoption ld ';;
7743      *)
7744        lt_prog_compiler_wl='-Wl,';;
7745      esac
7746      ;;
7747
7748    sunos4*)
7749      lt_prog_compiler_wl='-Qoption ld '
7750      lt_prog_compiler_pic='-PIC'
7751      lt_prog_compiler_static='-Bstatic'
7752      ;;
7753
7754    sysv4 | sysv4.2uw2* | sysv4.3*)
7755      lt_prog_compiler_wl='-Wl,'
7756      lt_prog_compiler_pic='-KPIC'
7757      lt_prog_compiler_static='-Bstatic'
7758      ;;
7759
7760    sysv4*MP*)
7761      if test -d /usr/nec ;then
7762        lt_prog_compiler_pic='-Kconform_pic'
7763        lt_prog_compiler_static='-Bstatic'
7764      fi
7765      ;;
7766
7767    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7768      lt_prog_compiler_wl='-Wl,'
7769      lt_prog_compiler_pic='-KPIC'
7770      lt_prog_compiler_static='-Bstatic'
7771      ;;
7772
7773    unicos*)
7774      lt_prog_compiler_wl='-Wl,'
7775      lt_prog_compiler_can_build_shared=no
7776      ;;
7777
7778    uts4*)
7779      lt_prog_compiler_pic='-pic'
7780      lt_prog_compiler_static='-Bstatic'
7781      ;;
7782
7783    *)
7784      lt_prog_compiler_can_build_shared=no
7785      ;;
7786    esac
7787  fi
7788
7789echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7790echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7791
7792#
7793# Check to make sure the PIC flag actually works.
7794#
7795if test -n "$lt_prog_compiler_pic"; then
7796
7797echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7798echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7799if test "${lt_prog_compiler_pic_works+set}" = set; then
7800  echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802  lt_prog_compiler_pic_works=no
7803  ac_outfile=conftest.$ac_objext
7804   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7805   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7806   # Insert the option either (1) after the last *FLAGS variable, or
7807   # (2) before a word containing "conftest.", or (3) at the end.
7808   # Note that $ac_compile itself does not contain backslashes and begins
7809   # with a dollar sign (not a hyphen), so the echo should work correctly.
7810   # The option is referenced via a variable to avoid confusing sed.
7811   lt_compile=`echo "$ac_compile" | $SED \
7812   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7813   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7814   -e 's:$: $lt_compiler_flag:'`
7815   (eval echo "\"\$as_me:7815: $lt_compile\"" >&5)
7816   (eval "$lt_compile" 2>conftest.err)
7817   ac_status=$?
7818   cat conftest.err >&5
7819   echo "$as_me:7819: \$? = $ac_status" >&5
7820   if (exit $ac_status) && test -s "$ac_outfile"; then
7821     # The compiler can only warn and ignore the option if not recognized
7822     # So say no if there are warnings other than the usual output.
7823     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7824     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7825     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7826       lt_prog_compiler_pic_works=yes
7827     fi
7828   fi
7829   $rm conftest*
7830
7831fi
7832echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7833echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7834
7835if test x"$lt_prog_compiler_pic_works" = xyes; then
7836    case $lt_prog_compiler_pic in
7837     "" | " "*) ;;
7838     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7839     esac
7840else
7841    lt_prog_compiler_pic=
7842     lt_prog_compiler_can_build_shared=no
7843fi
7844
7845fi
7846case $host_os in
7847  # For platforms which do not support PIC, -DPIC is meaningless:
7848  *djgpp*)
7849    lt_prog_compiler_pic=
7850    ;;
7851  *)
7852    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7853    ;;
7854esac
7855
7856#
7857# Check to make sure the static flag actually works.
7858#
7859wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7860echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7861echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7862if test "${lt_prog_compiler_static_works+set}" = set; then
7863  echo $ECHO_N "(cached) $ECHO_C" >&6
7864else
7865  lt_prog_compiler_static_works=no
7866   save_LDFLAGS="$LDFLAGS"
7867   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7868   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7869   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7870     # The linker can only warn and ignore the option if not recognized
7871     # So say no if there are warnings
7872     if test -s conftest.err; then
7873       # Append any errors to the config.log.
7874       cat conftest.err 1>&5
7875       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7876       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7877       if diff conftest.exp conftest.er2 >/dev/null; then
7878         lt_prog_compiler_static_works=yes
7879       fi
7880     else
7881       lt_prog_compiler_static_works=yes
7882     fi
7883   fi
7884   $rm conftest*
7885   LDFLAGS="$save_LDFLAGS"
7886
7887fi
7888echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7889echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7890
7891if test x"$lt_prog_compiler_static_works" = xyes; then
7892    :
7893else
7894    lt_prog_compiler_static=
7895fi
7896
7897
7898echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7899echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7900if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7901  echo $ECHO_N "(cached) $ECHO_C" >&6
7902else
7903  lt_cv_prog_compiler_c_o=no
7904   $rm -r conftest 2>/dev/null
7905   mkdir conftest
7906   cd conftest
7907   mkdir out
7908   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7909
7910   lt_compiler_flag="-o out/conftest2.$ac_objext"
7911   # Insert the option either (1) after the last *FLAGS variable, or
7912   # (2) before a word containing "conftest.", or (3) at the end.
7913   # Note that $ac_compile itself does not contain backslashes and begins
7914   # with a dollar sign (not a hyphen), so the echo should work correctly.
7915   lt_compile=`echo "$ac_compile" | $SED \
7916   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7917   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7918   -e 's:$: $lt_compiler_flag:'`
7919   (eval echo "\"\$as_me:7919: $lt_compile\"" >&5)
7920   (eval "$lt_compile" 2>out/conftest.err)
7921   ac_status=$?
7922   cat out/conftest.err >&5
7923   echo "$as_me:7923: \$? = $ac_status" >&5
7924   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7925   then
7926     # The compiler can only warn and ignore the option if not recognized
7927     # So say no if there are warnings
7928     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7929     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7930     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7931       lt_cv_prog_compiler_c_o=yes
7932     fi
7933   fi
7934   chmod u+w . 2>&5
7935   $rm conftest*
7936   # SGI C++ compiler will create directory out/ii_files/ for
7937   # template instantiation
7938   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7939   $rm out/* && rmdir out
7940   cd ..
7941   rmdir conftest
7942   $rm conftest*
7943
7944fi
7945echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7946echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7947
7948
7949hard_links="nottested"
7950if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7951  # do not overwrite the value of need_locks provided by the user
7952  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7953echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7954  hard_links=yes
7955  $rm conftest*
7956  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7957  touch conftest.a
7958  ln conftest.a conftest.b 2>&5 || hard_links=no
7959  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7960  echo "$as_me:$LINENO: result: $hard_links" >&5
7961echo "${ECHO_T}$hard_links" >&6
7962  if test "$hard_links" = no; then
7963    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7964echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7965    need_locks=warn
7966  fi
7967else
7968  need_locks=no
7969fi
7970
7971echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7972echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7973
7974  runpath_var=
7975  allow_undefined_flag=
7976  enable_shared_with_static_runtimes=no
7977  archive_cmds=
7978  archive_expsym_cmds=
7979  old_archive_From_new_cmds=
7980  old_archive_from_expsyms_cmds=
7981  export_dynamic_flag_spec=
7982  whole_archive_flag_spec=
7983  thread_safe_flag_spec=
7984  hardcode_libdir_flag_spec=
7985  hardcode_libdir_flag_spec_ld=
7986  hardcode_libdir_separator=
7987  hardcode_direct=no
7988  hardcode_minus_L=no
7989  hardcode_shlibpath_var=unsupported
7990  link_all_deplibs=unknown
7991  hardcode_automatic=no
7992  module_cmds=
7993  module_expsym_cmds=
7994  always_export_symbols=no
7995  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7996  # include_expsyms should be a list of space-separated symbols to be *always*
7997  # included in the symbol list
7998  include_expsyms=
7999  # exclude_expsyms can be an extended regexp of symbols to exclude
8000  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8001  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8002  # as well as any symbol that contains `d'.
8003  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8004  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8005  # platforms (ab)use it in PIC code, but their linkers get confused if
8006  # the symbol is explicitly referenced.  Since portable code cannot
8007  # rely on this symbol name, it's probably fine to never include it in
8008  # preloaded symbol tables.
8009  extract_expsyms_cmds=
8010  # Just being paranoid about ensuring that cc_basename is set.
8011  for cc_temp in $compiler""; do
8012  case $cc_temp in
8013    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8014    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8015    \-*) ;;
8016    *) break;;
8017  esac
8018done
8019cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8020
8021  case $host_os in
8022  cygwin* | mingw* | pw32*)
8023    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8024    # When not using gcc, we currently assume that we are using
8025    # Microsoft Visual C++.
8026    if test "$GCC" != yes; then
8027      with_gnu_ld=no
8028    fi
8029    ;;
8030  interix*)
8031    # we just hope/assume this is gcc and not c89 (= MSVC++)
8032    with_gnu_ld=yes
8033    ;;
8034  openbsd*)
8035    with_gnu_ld=no
8036    ;;
8037  esac
8038
8039  ld_shlibs=yes
8040  if test "$with_gnu_ld" = yes; then
8041    # If archive_cmds runs LD, not CC, wlarc should be empty
8042    wlarc='${wl}'
8043
8044    # Set some defaults for GNU ld with shared library support. These
8045    # are reset later if shared libraries are not supported. Putting them
8046    # here allows them to be overridden if necessary.
8047    runpath_var=LD_RUN_PATH
8048    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8049    export_dynamic_flag_spec='${wl}--export-dynamic'
8050    # ancient GNU ld didn't support --whole-archive et. al.
8051    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8052        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8053      else
8054        whole_archive_flag_spec=
8055    fi
8056    supports_anon_versioning=no
8057    case `$LD -v 2>/dev/null` in
8058      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8059      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8060      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8061      *\ 2.11.*) ;; # other 2.11 versions
8062      *) supports_anon_versioning=yes ;;
8063    esac
8064
8065    # See if GNU ld supports shared libraries.
8066    case $host_os in
8067    aix3* | aix4* | aix5*)
8068      # On AIX/PPC, the GNU linker is very broken
8069      if test "$host_cpu" != ia64; then
8070        ld_shlibs=no
8071        cat <<EOF 1>&2
8072
8073*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8074*** to be unable to reliably create shared libraries on AIX.
8075*** Therefore, libtool is disabling shared libraries support.  If you
8076*** really care for shared libraries, you may want to modify your PATH
8077*** so that a non-GNU linker is found, and then restart.
8078
8079EOF
8080      fi
8081      ;;
8082
8083    amigaos*)
8084      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)'
8085      hardcode_libdir_flag_spec='-L$libdir'
8086      hardcode_minus_L=yes
8087
8088      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8089      # that the semantics of dynamic libraries on AmigaOS, at least up
8090      # to version 4, is to share data among multiple programs linked
8091      # with the same dynamic library.  Since this doesn't match the
8092      # behavior of shared libraries on other platforms, we can't use
8093      # them.
8094      ld_shlibs=no
8095      ;;
8096
8097    beos*)
8098      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8099        allow_undefined_flag=unsupported
8100        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8101        # support --undefined.  This deserves some investigation.  FIXME
8102        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103      else
8104        ld_shlibs=no
8105      fi
8106      ;;
8107
8108    cygwin* | mingw* | pw32*)
8109      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8110      # as there is no search path for DLLs.
8111      hardcode_libdir_flag_spec='-L$libdir'
8112      allow_undefined_flag=unsupported
8113      always_export_symbols=no
8114      enable_shared_with_static_runtimes=yes
8115      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8116
8117      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8118        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8119        # If the export-symbols file already is a .def file (1st line
8120        # is EXPORTS), use it as is; otherwise, prepend...
8121        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8122          cp $export_symbols $output_objdir/$soname.def;
8123        else
8124          echo EXPORTS > $output_objdir/$soname.def;
8125          cat $export_symbols >> $output_objdir/$soname.def;
8126        fi~
8127        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8128      else
8129        ld_shlibs=no
8130      fi
8131      ;;
8132
8133    interix3*)
8134      hardcode_direct=no
8135      hardcode_shlibpath_var=no
8136      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8137      export_dynamic_flag_spec='${wl}-E'
8138      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8139      # Instead, shared libraries are loaded at an image base (0x10000000 by
8140      # default) and relocated if they conflict, which is a slow very memory
8141      # consuming and fragmenting process.  To avoid this, we pick a random,
8142      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8143      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8144      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8145      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'
8146      ;;
8147
8148    linux*)
8149      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8150        tmp_addflag=
8151        case $cc_basename,$host_cpu in
8152        pgcc*)                          # Portland Group C compiler
8153          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'
8154          tmp_addflag=' $pic_flag'
8155          ;;
8156        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8157          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'
8158          tmp_addflag=' $pic_flag -Mnomain' ;;
8159        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8160          tmp_addflag=' -i_dynamic' ;;
8161        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8162          tmp_addflag=' -i_dynamic -nofor_main' ;;
8163        ifc* | ifort*)                  # Intel Fortran compiler
8164          tmp_addflag=' -nofor_main' ;;
8165        esac
8166        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8167
8168        if test $supports_anon_versioning = yes; then
8169          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8170  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8171  $echo "local: *; };" >> $output_objdir/$libname.ver~
8172          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8173        fi
8174      else
8175        ld_shlibs=no
8176      fi
8177      ;;
8178
8179    netbsd*)
8180      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8181        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8182        wlarc=
8183      else
8184        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8185        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8186      fi
8187      ;;
8188
8189    solaris*)
8190      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8191        ld_shlibs=no
8192        cat <<EOF 1>&2
8193
8194*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8195*** create shared libraries on Solaris systems.  Therefore, libtool
8196*** is disabling shared libraries support.  We urge you to upgrade GNU
8197*** binutils to release 2.9.1 or newer.  Another option is to modify
8198*** your PATH or compiler configuration so that the native linker is
8199*** used, and then restart.
8200
8201EOF
8202      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8203        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8205      else
8206        ld_shlibs=no
8207      fi
8208      ;;
8209
8210    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8211      case `$LD -v 2>&1` in
8212        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8213        ld_shlibs=no
8214        cat <<_LT_EOF 1>&2
8215
8216*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8217*** reliably create shared libraries on SCO systems.  Therefore, libtool
8218*** is disabling shared libraries support.  We urge you to upgrade GNU
8219*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8220*** your PATH or compiler configuration so that the native linker is
8221*** used, and then restart.
8222
8223_LT_EOF
8224        ;;
8225        *)
8226          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8227            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8228            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8229            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8230          else
8231            ld_shlibs=no
8232          fi
8233        ;;
8234      esac
8235      ;;
8236
8237    sunos4*)
8238      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8239      wlarc=
8240      hardcode_direct=yes
8241      hardcode_shlibpath_var=no
8242      ;;
8243
8244    *)
8245      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8246        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8247        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8248      else
8249        ld_shlibs=no
8250      fi
8251      ;;
8252    esac
8253
8254    if test "$ld_shlibs" = no; then
8255      runpath_var=
8256      hardcode_libdir_flag_spec=
8257      export_dynamic_flag_spec=
8258      whole_archive_flag_spec=
8259    fi
8260  else
8261    # PORTME fill in a description of your system's linker (not GNU ld)
8262    case $host_os in
8263    aix3*)
8264      allow_undefined_flag=unsupported
8265      always_export_symbols=yes
8266      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'
8267      # Note: this linker hardcodes the directories in LIBPATH if there
8268      # are no directories specified by -L.
8269      hardcode_minus_L=yes
8270      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8271        # Neither direct hardcoding nor static linking is supported with a
8272        # broken collect2.
8273        hardcode_direct=unsupported
8274      fi
8275      ;;
8276
8277    aix4* | aix5*)
8278      if test "$host_cpu" = ia64; then
8279        # On IA64, the linker does run time linking by default, so we don't
8280        # have to do anything special.
8281        aix_use_runtimelinking=no
8282        exp_sym_flag='-Bexport'
8283        no_entry_flag=""
8284      else
8285        # If we're using GNU nm, then we don't want the "-C" option.
8286        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8287        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8288          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'
8289        else
8290          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'
8291        fi
8292        aix_use_runtimelinking=no
8293
8294        # Test if we are trying to use run time linking or normal
8295        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8296        # need to do runtime linking.
8297        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8298          for ld_flag in $LDFLAGS; do
8299          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8300            aix_use_runtimelinking=yes
8301            break
8302          fi
8303          done
8304          ;;
8305        esac
8306
8307        exp_sym_flag='-bexport'
8308        no_entry_flag='-bnoentry'
8309      fi
8310
8311      # When large executables or shared objects are built, AIX ld can
8312      # have problems creating the table of contents.  If linking a library
8313      # or program results in "error TOC overflow" add -mminimal-toc to
8314      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8315      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8316
8317      archive_cmds=''
8318      hardcode_direct=yes
8319      hardcode_libdir_separator=':'
8320      link_all_deplibs=yes
8321
8322      if test "$GCC" = yes; then
8323        case $host_os in aix4.[012]|aix4.[012].*)
8324        # We only want to do this on AIX 4.2 and lower, the check
8325        # below for broken collect2 doesn't work under 4.3+
8326          collect2name=`${CC} -print-prog-name=collect2`
8327          if test -f "$collect2name" && \
8328           strings "$collect2name" | grep resolve_lib_name >/dev/null
8329          then
8330          # We have reworked collect2
8331          hardcode_direct=yes
8332          else
8333          # We have old collect2
8334          hardcode_direct=unsupported
8335          # It fails to find uninstalled libraries when the uninstalled
8336          # path is not listed in the libpath.  Setting hardcode_minus_L
8337          # to unsupported forces relinking
8338          hardcode_minus_L=yes
8339          hardcode_libdir_flag_spec='-L$libdir'
8340          hardcode_libdir_separator=
8341          fi
8342          ;;
8343        esac
8344        shared_flag='-shared'
8345        if test "$aix_use_runtimelinking" = yes; then
8346          shared_flag="$shared_flag "'${wl}-G'
8347        fi
8348      else
8349        # not using gcc
8350        if test "$host_cpu" = ia64; then
8351        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8352        # chokes on -Wl,-G. The following line is correct:
8353          shared_flag='-G'
8354        else
8355          if test "$aix_use_runtimelinking" = yes; then
8356            shared_flag='${wl}-G'
8357          else
8358            shared_flag='${wl}-bM:SRE'
8359          fi
8360        fi
8361      fi
8362
8363      # It seems that -bexpall does not export symbols beginning with
8364      # underscore (_), so it is better to generate a list of symbols to export.
8365      always_export_symbols=yes
8366      if test "$aix_use_runtimelinking" = yes; then
8367        # Warning - without using the other runtime loading flags (-brtl),
8368        # -berok will link without error, but may produce a broken library.
8369        allow_undefined_flag='-berok'
8370       # Determine the default libpath from the value encoded in an empty executable.
8371       cat >conftest.$ac_ext <<_ACEOF
8372/* confdefs.h.  */
8373_ACEOF
8374cat confdefs.h >>conftest.$ac_ext
8375cat >>conftest.$ac_ext <<_ACEOF
8376/* end confdefs.h.  */
8377
8378int
8379main ()
8380{
8381
8382  ;
8383  return 0;
8384}
8385_ACEOF
8386rm -f conftest.$ac_objext conftest$ac_exeext
8387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388  (eval $ac_link) 2>conftest.er1
8389  ac_status=$?
8390  grep -v '^ *+' conftest.er1 >conftest.err
8391  rm -f conftest.er1
8392  cat conftest.err >&5
8393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394  (exit $ac_status); } &&
8395         { ac_try='test -z "$ac_c_werror_flag"
8396                         || test ! -s conftest.err'
8397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398  (eval $ac_try) 2>&5
8399  ac_status=$?
8400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401  (exit $ac_status); }; } &&
8402         { ac_try='test -s conftest$ac_exeext'
8403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404  (eval $ac_try) 2>&5
8405  ac_status=$?
8406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407  (exit $ac_status); }; }; then
8408
8409aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8410}'`
8411# Check for a 64-bit object if we didn't find anything.
8412if 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; }
8413}'`; fi
8414else
8415  echo "$as_me: failed program was:" >&5
8416sed 's/^/| /' conftest.$ac_ext >&5
8417
8418fi
8419rm -f conftest.err conftest.$ac_objext \
8420      conftest$ac_exeext conftest.$ac_ext
8421if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8422
8423       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8424        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"
8425       else
8426        if test "$host_cpu" = ia64; then
8427          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8428          allow_undefined_flag="-z nodefs"
8429          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"
8430        else
8431         # Determine the default libpath from the value encoded in an empty executable.
8432         cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h.  */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h.  */
8438
8439int
8440main ()
8441{
8442
8443  ;
8444  return 0;
8445}
8446_ACEOF
8447rm -f conftest.$ac_objext conftest$ac_exeext
8448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449  (eval $ac_link) 2>conftest.er1
8450  ac_status=$?
8451  grep -v '^ *+' conftest.er1 >conftest.err
8452  rm -f conftest.er1
8453  cat conftest.err >&5
8454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455  (exit $ac_status); } &&
8456         { ac_try='test -z "$ac_c_werror_flag"
8457                         || test ! -s conftest.err'
8458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459  (eval $ac_try) 2>&5
8460  ac_status=$?
8461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462  (exit $ac_status); }; } &&
8463         { ac_try='test -s conftest$ac_exeext'
8464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465  (eval $ac_try) 2>&5
8466  ac_status=$?
8467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468  (exit $ac_status); }; }; then
8469
8470aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8471}'`
8472# Check for a 64-bit object if we didn't find anything.
8473if 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; }
8474}'`; fi
8475else
8476  echo "$as_me: failed program was:" >&5
8477sed 's/^/| /' conftest.$ac_ext >&5
8478
8479fi
8480rm -f conftest.err conftest.$ac_objext \
8481      conftest$ac_exeext conftest.$ac_ext
8482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8483
8484         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8485          # Warning - without using the other run time loading flags,
8486          # -berok will link without error, but may produce a broken library.
8487          no_undefined_flag=' ${wl}-bernotok'
8488          allow_undefined_flag=' ${wl}-berok'
8489          # Exported symbols can be pulled into shared objects from archives
8490          whole_archive_flag_spec='$convenience'
8491          archive_cmds_need_lc=yes
8492          # This is similar to how AIX traditionally builds its shared libraries.
8493          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'
8494        fi
8495      fi
8496      ;;
8497
8498    amigaos*)
8499      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)'
8500      hardcode_libdir_flag_spec='-L$libdir'
8501      hardcode_minus_L=yes
8502      # see comment about different semantics on the GNU ld section
8503      ld_shlibs=no
8504      ;;
8505
8506    bsdi[45]*)
8507      export_dynamic_flag_spec=-rdynamic
8508      ;;
8509
8510    cygwin* | mingw* | pw32*)
8511      # When not using gcc, we currently assume that we are using
8512      # Microsoft Visual C++.
8513      # hardcode_libdir_flag_spec is actually meaningless, as there is
8514      # no search path for DLLs.
8515      hardcode_libdir_flag_spec=' '
8516      allow_undefined_flag=unsupported
8517      # Tell ltmain to make .lib files, not .a files.
8518      libext=lib
8519      # Tell ltmain to make .dll files, not .so files.
8520      shrext_cmds=".dll"
8521      # FIXME: Setting linknames here is a bad hack.
8522      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8523      # The linker will automatically build a .lib file if we build a DLL.
8524      old_archive_From_new_cmds='true'
8525      # FIXME: Should let the user specify the lib program.
8526      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8527      fix_srcfile_path='`cygpath -w "$srcfile"`'
8528      enable_shared_with_static_runtimes=yes
8529      ;;
8530
8531    darwin* | rhapsody*)
8532      case $host_os in
8533        rhapsody* | darwin1.[012])
8534         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8535         ;;
8536       *) # Darwin 1.3 on
8537         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8538           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8539         else
8540           case ${MACOSX_DEPLOYMENT_TARGET} in
8541             10.[012])
8542               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8543               ;;
8544             10.*)
8545               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8546               ;;
8547           esac
8548         fi
8549         ;;
8550      esac
8551      archive_cmds_need_lc=no
8552      hardcode_direct=no
8553      hardcode_automatic=yes
8554      hardcode_shlibpath_var=unsupported
8555      whole_archive_flag_spec=''
8556      link_all_deplibs=yes
8557    if test "$GCC" = yes ; then
8558        output_verbose_link_cmd='echo'
8559        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8560      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8561      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8562      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}'
8563      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}'
8564    else
8565      case $cc_basename in
8566        xlc*)
8567         output_verbose_link_cmd='echo'
8568         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8569         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8570          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8571         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}'
8572          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}'
8573          ;;
8574       *)
8575         ld_shlibs=no
8576          ;;
8577      esac
8578    fi
8579      ;;
8580
8581    dgux*)
8582      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8583      hardcode_libdir_flag_spec='-L$libdir'
8584      hardcode_shlibpath_var=no
8585      ;;
8586
8587    freebsd1*)
8588      ld_shlibs=no
8589      ;;
8590
8591    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8592    # support.  Future versions do this automatically, but an explicit c++rt0.o
8593    # does not break anything, and helps significantly (at the cost of a little
8594    # extra space).
8595    freebsd2.2*)
8596      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8597      hardcode_libdir_flag_spec='-R$libdir'
8598      hardcode_direct=yes
8599      hardcode_shlibpath_var=no
8600      ;;
8601
8602    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8603    freebsd2*)
8604      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8605      hardcode_direct=yes
8606      hardcode_minus_L=yes
8607      hardcode_shlibpath_var=no
8608      ;;
8609
8610    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8611    freebsd* | kfreebsd*-gnu | dragonfly*)
8612      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8613      hardcode_libdir_flag_spec='-R$libdir'
8614      hardcode_direct=yes
8615      hardcode_shlibpath_var=no
8616      ;;
8617
8618    hpux9*)
8619      if test "$GCC" = yes; then
8620        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'
8621      else
8622        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'
8623      fi
8624      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8625      hardcode_libdir_separator=:
8626      hardcode_direct=yes
8627
8628      # hardcode_minus_L: Not really in the search PATH,
8629      # but as the default location of the library.
8630      hardcode_minus_L=yes
8631      export_dynamic_flag_spec='${wl}-E'
8632      ;;
8633
8634    hpux10*)
8635      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8636        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8637      else
8638        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8639      fi
8640      if test "$with_gnu_ld" = no; then
8641        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8642        hardcode_libdir_separator=:
8643
8644        hardcode_direct=yes
8645        export_dynamic_flag_spec='${wl}-E'
8646
8647        # hardcode_minus_L: Not really in the search PATH,
8648        # but as the default location of the library.
8649        hardcode_minus_L=yes
8650      fi
8651      ;;
8652
8653    hpux11*)
8654      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8655        case $host_cpu in
8656        hppa*64*)
8657          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8658          ;;
8659        ia64*)
8660          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8661          ;;
8662        *)
8663          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8664          ;;
8665        esac
8666      else
8667        case $host_cpu in
8668        hppa*64*)
8669          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8670          ;;
8671        ia64*)
8672          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8673          ;;
8674        *)
8675          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8676          ;;
8677        esac
8678      fi
8679      if test "$with_gnu_ld" = no; then
8680        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8681        hardcode_libdir_separator=:
8682
8683        case $host_cpu in
8684        hppa*64*|ia64*)
8685          hardcode_libdir_flag_spec_ld='+b $libdir'
8686          hardcode_direct=no
8687          hardcode_shlibpath_var=no
8688          ;;
8689        *)
8690          hardcode_direct=yes
8691          export_dynamic_flag_spec='${wl}-E'
8692
8693          # hardcode_minus_L: Not really in the search PATH,
8694          # but as the default location of the library.
8695          hardcode_minus_L=yes
8696          ;;
8697        esac
8698      fi
8699      ;;
8700
8701    irix5* | irix6* | nonstopux*)
8702      if test "$GCC" = yes; then
8703        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'
8704      else
8705        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'
8706        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8707      fi
8708      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709      hardcode_libdir_separator=:
8710      link_all_deplibs=yes
8711      ;;
8712
8713    netbsd*)
8714      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8715        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8716      else
8717        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8718      fi
8719      hardcode_libdir_flag_spec='-R$libdir'
8720      hardcode_direct=yes
8721      hardcode_shlibpath_var=no
8722      ;;
8723
8724    newsos6)
8725      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8726      hardcode_direct=yes
8727      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8728      hardcode_libdir_separator=:
8729      hardcode_shlibpath_var=no
8730      ;;
8731
8732    openbsd*)
8733      hardcode_direct=yes
8734      hardcode_shlibpath_var=no
8735      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8736        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8737        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8738        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8739        export_dynamic_flag_spec='${wl}-E'
8740      else
8741       case $host_os in
8742         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8743           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8744           hardcode_libdir_flag_spec='-R$libdir'
8745           ;;
8746         *)
8747           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8748           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8749           ;;
8750       esac
8751      fi
8752      ;;
8753
8754    os2*)
8755      hardcode_libdir_flag_spec='-L$libdir'
8756      hardcode_minus_L=yes
8757      allow_undefined_flag=unsupported
8758      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'
8759      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8760      ;;
8761
8762    osf3*)
8763      if test "$GCC" = yes; then
8764        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8765        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'
8766      else
8767        allow_undefined_flag=' -expect_unresolved \*'
8768        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'
8769      fi
8770      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8771      hardcode_libdir_separator=:
8772      ;;
8773
8774    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8775      if test "$GCC" = yes; then
8776        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8777        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'
8778        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8779      else
8780        allow_undefined_flag=' -expect_unresolved \*'
8781        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'
8782        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8783        $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'
8784
8785        # Both c and cxx compiler support -rpath directly
8786        hardcode_libdir_flag_spec='-rpath $libdir'
8787      fi
8788      hardcode_libdir_separator=:
8789      ;;
8790
8791    solaris*)
8792      no_undefined_flag=' -z text'
8793      if test "$GCC" = yes; then
8794        wlarc='${wl}'
8795        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8796        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8797          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8798      else
8799        wlarc=''
8800        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8801        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8802        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8803      fi
8804      hardcode_libdir_flag_spec='-R$libdir'
8805      hardcode_shlibpath_var=no
8806      case $host_os in
8807      solaris2.[0-5] | solaris2.[0-5].*) ;;
8808      *)
8809        # The compiler driver will combine linker options so we
8810        # cannot just pass the convience library names through
8811        # without $wl, iff we do not link with $LD.
8812        # Luckily, gcc supports the same syntax we need for Sun Studio.
8813        # Supported since Solaris 2.6 (maybe 2.5.1?)
8814        case $wlarc in
8815        '')
8816          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8817        *)
8818          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' ;;
8819        esac ;;
8820      esac
8821      link_all_deplibs=yes
8822      ;;
8823
8824    sunos4*)
8825      if test "x$host_vendor" = xsequent; then
8826        # Use $CC to link under sequent, because it throws in some extra .o
8827        # files that make .init and .fini sections work.
8828        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8829      else
8830        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8831      fi
8832      hardcode_libdir_flag_spec='-L$libdir'
8833      hardcode_direct=yes
8834      hardcode_minus_L=yes
8835      hardcode_shlibpath_var=no
8836      ;;
8837
8838    sysv4)
8839      case $host_vendor in
8840        sni)
8841          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8842          hardcode_direct=yes # is this really true???
8843        ;;
8844        siemens)
8845          ## LD is ld it makes a PLAMLIB
8846          ## CC just makes a GrossModule.
8847          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8848          reload_cmds='$CC -r -o $output$reload_objs'
8849          hardcode_direct=no
8850        ;;
8851        motorola)
8852          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8854        ;;
8855      esac
8856      runpath_var='LD_RUN_PATH'
8857      hardcode_shlibpath_var=no
8858      ;;
8859
8860    sysv4.3*)
8861      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862      hardcode_shlibpath_var=no
8863      export_dynamic_flag_spec='-Bexport'
8864      ;;
8865
8866    sysv4*MP*)
8867      if test -d /usr/nec; then
8868        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8869        hardcode_shlibpath_var=no
8870        runpath_var=LD_RUN_PATH
8871        hardcode_runpath_var=yes
8872        ld_shlibs=yes
8873      fi
8874      ;;
8875
8876    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8877      no_undefined_flag='${wl}-z,text'
8878      archive_cmds_need_lc=no
8879      hardcode_shlibpath_var=no
8880      runpath_var='LD_RUN_PATH'
8881
8882      if test "$GCC" = yes; then
8883        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8884        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8885      else
8886        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8887        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8888      fi
8889      ;;
8890
8891    sysv5* | sco3.2v5* | sco5v6*)
8892      # Note: We can NOT use -z defs as we might desire, because we do not
8893      # link with -lc, and that would cause any symbols used from libc to
8894      # always be unresolved, which means just about no library would
8895      # ever link correctly.  If we're not using GNU ld we use -z text
8896      # though, which does catch some bad symbols but isn't as heavy-handed
8897      # as -z defs.
8898      no_undefined_flag='${wl}-z,text'
8899      allow_undefined_flag='${wl}-z,nodefs'
8900      archive_cmds_need_lc=no
8901      hardcode_shlibpath_var=no
8902      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8903      hardcode_libdir_separator=':'
8904      link_all_deplibs=yes
8905      export_dynamic_flag_spec='${wl}-Bexport'
8906      runpath_var='LD_RUN_PATH'
8907
8908      if test "$GCC" = yes; then
8909        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8910        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8911      else
8912        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8914      fi
8915      ;;
8916
8917    uts4*)
8918      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8919      hardcode_libdir_flag_spec='-L$libdir'
8920      hardcode_shlibpath_var=no
8921      ;;
8922
8923    *)
8924      ld_shlibs=no
8925      ;;
8926    esac
8927  fi
8928
8929echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8930echo "${ECHO_T}$ld_shlibs" >&6
8931test "$ld_shlibs" = no && can_build_shared=no
8932
8933#
8934# Do we need to explicitly link libc?
8935#
8936case "x$archive_cmds_need_lc" in
8937x|xyes)
8938  # Assume -lc should be added
8939  archive_cmds_need_lc=yes
8940
8941  if test "$enable_shared" = yes && test "$GCC" = yes; then
8942    case $archive_cmds in
8943    *'~'*)
8944      # FIXME: we may have to deal with multi-command sequences.
8945      ;;
8946    '$CC '*)
8947      # Test whether the compiler implicitly links with -lc since on some
8948      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8949      # to ld, don't add -lc before -lgcc.
8950      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8951echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8952      $rm conftest*
8953      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8954
8955      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8956  (eval $ac_compile) 2>&5
8957  ac_status=$?
8958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959  (exit $ac_status); } 2>conftest.err; then
8960        soname=conftest
8961        lib=conftest
8962        libobjs=conftest.$ac_objext
8963        deplibs=
8964        wl=$lt_prog_compiler_wl
8965        pic_flag=$lt_prog_compiler_pic
8966        compiler_flags=-v
8967        linker_flags=-v
8968        verstring=
8969        output_objdir=.
8970        libname=conftest
8971        lt_save_allow_undefined_flag=$allow_undefined_flag
8972        allow_undefined_flag=
8973        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8974  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8975  ac_status=$?
8976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977  (exit $ac_status); }
8978        then
8979          archive_cmds_need_lc=no
8980        else
8981          archive_cmds_need_lc=yes
8982        fi
8983        allow_undefined_flag=$lt_save_allow_undefined_flag
8984      else
8985        cat conftest.err 1>&5
8986      fi
8987      $rm conftest*
8988      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8989echo "${ECHO_T}$archive_cmds_need_lc" >&6
8990      ;;
8991    esac
8992  fi
8993  ;;
8994esac
8995
8996echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8997echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8998library_names_spec=
8999libname_spec='lib$name'
9000soname_spec=
9001shrext_cmds=".so"
9002postinstall_cmds=
9003postuninstall_cmds=
9004finish_cmds=
9005finish_eval=
9006shlibpath_var=
9007shlibpath_overrides_runpath=unknown
9008version_type=none
9009dynamic_linker="$host_os ld.so"
9010sys_lib_dlsearch_path_spec="/lib /usr/lib"
9011if test "$GCC" = yes; then
9012  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9013  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9014    # if the path contains ";" then we assume it to be the separator
9015    # otherwise default to the standard path separator (i.e. ":") - it is
9016    # assumed that no part of a normal pathname contains ";" but that should
9017    # okay in the real world where ";" in dirpaths is itself problematic.
9018    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9019  else
9020    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9021  fi
9022else
9023  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9024fi
9025need_lib_prefix=unknown
9026hardcode_into_libs=no
9027
9028# when you set need_version to no, make sure it does not cause -set_version
9029# flags to be left without arguments
9030need_version=unknown
9031
9032case $host_os in
9033aix3*)
9034  version_type=linux
9035  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9036  shlibpath_var=LIBPATH
9037
9038  # AIX 3 has no versioning support, so we append a major version to the name.
9039  soname_spec='${libname}${release}${shared_ext}$major'
9040  ;;
9041
9042aix4* | aix5*)
9043  version_type=linux
9044  need_lib_prefix=no
9045  need_version=no
9046  hardcode_into_libs=yes
9047  if test "$host_cpu" = ia64; then
9048    # AIX 5 supports IA64
9049    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9050    shlibpath_var=LD_LIBRARY_PATH
9051  else
9052    # With GCC up to 2.95.x, collect2 would create an import file
9053    # for dependence libraries.  The import file would start with
9054    # the line `#! .'.  This would cause the generated library to
9055    # depend on `.', always an invalid library.  This was fixed in
9056    # development snapshots of GCC prior to 3.0.
9057    case $host_os in
9058      aix4 | aix4.[01] | aix4.[01].*)
9059      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9060           echo ' yes '
9061           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9062        :
9063      else
9064        can_build_shared=no
9065      fi
9066      ;;
9067    esac
9068    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9069    # soname into executable. Probably we can add versioning support to
9070    # collect2, so additional links can be useful in future.
9071    if test "$aix_use_runtimelinking" = yes; then
9072      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9073      # instead of lib<name>.a to let people know that these are not
9074      # typical AIX shared libraries.
9075      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076    else
9077      # We preserve .a as extension for shared libraries through AIX4.2
9078      # and later when we are not doing run time linking.
9079      library_names_spec='${libname}${release}.a $libname.a'
9080      soname_spec='${libname}${release}${shared_ext}$major'
9081    fi
9082    shlibpath_var=LIBPATH
9083  fi
9084  ;;
9085
9086amigaos*)
9087  library_names_spec='$libname.ixlibrary $libname.a'
9088  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9089  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'
9090  ;;
9091
9092beos*)
9093  library_names_spec='${libname}${shared_ext}'
9094  dynamic_linker="$host_os ld.so"
9095  shlibpath_var=LIBRARY_PATH
9096  ;;
9097
9098bsdi[45]*)
9099  version_type=linux
9100  need_version=no
9101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102  soname_spec='${libname}${release}${shared_ext}$major'
9103  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9104  shlibpath_var=LD_LIBRARY_PATH
9105  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9106  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9107  # the default ld.so.conf also contains /usr/contrib/lib and
9108  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9109  # libtool to hard-code these into programs
9110  ;;
9111
9112cygwin* | mingw* | pw32*)
9113  version_type=windows
9114  shrext_cmds=".dll"
9115  need_version=no
9116  need_lib_prefix=no
9117
9118  case $GCC,$host_os in
9119  yes,cygwin* | yes,mingw* | yes,pw32*)
9120    library_names_spec='$libname.dll.a'
9121    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9122    postinstall_cmds='base_file=`basename \${file}`~
9123      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9124      dldir=$destdir/`dirname \$dlpath`~
9125      test -d \$dldir || mkdir -p \$dldir~
9126      $install_prog $dir/$dlname \$dldir/$dlname~
9127      chmod a+x \$dldir/$dlname'
9128    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9129      dlpath=$dir/\$dldll~
9130       $rm \$dlpath'
9131    shlibpath_overrides_runpath=yes
9132
9133    case $host_os in
9134    cygwin*)
9135      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9136      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9137      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9138      ;;
9139    mingw*)
9140      # MinGW DLLs use traditional 'lib' prefix
9141      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9142      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9143      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9144        # It is most probably a Windows format PATH printed by
9145        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9146        # path with ; separators, and with drive letters. We can handle the
9147        # drive letters (cygwin fileutils understands them), so leave them,
9148        # especially as we might pass files found there to a mingw objdump,
9149        # which wouldn't understand a cygwinified path. Ahh.
9150        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9151      else
9152        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9153      fi
9154      ;;
9155    pw32*)
9156      # pw32 DLLs use 'pw' prefix rather than 'lib'
9157      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9158      ;;
9159    esac
9160    ;;
9161
9162  *)
9163    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9164    ;;
9165  esac
9166  dynamic_linker='Win32 ld.exe'
9167  # FIXME: first we should search . and the directory the executable is in
9168  shlibpath_var=PATH
9169  ;;
9170
9171darwin* | rhapsody*)
9172  dynamic_linker="$host_os dyld"
9173  version_type=darwin
9174  need_lib_prefix=no
9175  need_version=no
9176  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9177  soname_spec='${libname}${release}${major}$shared_ext'
9178  shlibpath_overrides_runpath=yes
9179  shlibpath_var=DYLD_LIBRARY_PATH
9180  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9181  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9182  if test "$GCC" = yes; then
9183    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"`
9184  else
9185    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9186  fi
9187  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9188  ;;
9189
9190dgux*)
9191  version_type=linux
9192  need_lib_prefix=no
9193  need_version=no
9194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9195  soname_spec='${libname}${release}${shared_ext}$major'
9196  shlibpath_var=LD_LIBRARY_PATH
9197  ;;
9198
9199freebsd1*)
9200  dynamic_linker=no
9201  ;;
9202
9203kfreebsd*-gnu)
9204  version_type=linux
9205  need_lib_prefix=no
9206  need_version=no
9207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9208  soname_spec='${libname}${release}${shared_ext}$major'
9209  shlibpath_var=LD_LIBRARY_PATH
9210  shlibpath_overrides_runpath=no
9211  hardcode_into_libs=yes
9212  dynamic_linker='GNU ld.so'
9213  ;;
9214
9215freebsd* | dragonfly*)
9216  # DragonFly does not have aout.  When/if they implement a new
9217  # versioning mechanism, adjust this.
9218  if test -x /usr/bin/objformat; then
9219    objformat=`/usr/bin/objformat`
9220  else
9221    case $host_os in
9222    freebsd[123]*) objformat=aout ;;
9223    *) objformat=elf ;;
9224    esac
9225  fi
9226  version_type=freebsd-$objformat
9227  case $version_type in
9228    freebsd-elf*)
9229      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9230      need_version=no
9231      need_lib_prefix=no
9232      ;;
9233    freebsd-*)
9234      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9235      need_version=yes
9236      ;;
9237  esac
9238  shlibpath_var=LD_LIBRARY_PATH
9239  case $host_os in
9240  freebsd2*)
9241    shlibpath_overrides_runpath=yes
9242    ;;
9243  freebsd3.[01]* | freebsdelf3.[01]*)
9244    shlibpath_overrides_runpath=yes
9245    hardcode_into_libs=yes
9246    ;;
9247  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9248  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9249    shlibpath_overrides_runpath=no
9250    hardcode_into_libs=yes
9251    ;;
9252  freebsd*) # from 4.6 on
9253    shlibpath_overrides_runpath=yes
9254    hardcode_into_libs=yes
9255    ;;
9256  esac
9257  ;;
9258
9259gnu*)
9260  version_type=linux
9261  need_lib_prefix=no
9262  need_version=no
9263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9264  soname_spec='${libname}${release}${shared_ext}$major'
9265  shlibpath_var=LD_LIBRARY_PATH
9266  hardcode_into_libs=yes
9267  ;;
9268
9269hpux9* | hpux10* | hpux11*)
9270  # Give a soname corresponding to the major version so that dld.sl refuses to
9271  # link against other versions.
9272  version_type=sunos
9273  need_lib_prefix=no
9274  need_version=no
9275  case $host_cpu in
9276  ia64*)
9277    shrext_cmds='.so'
9278    hardcode_into_libs=yes
9279    dynamic_linker="$host_os dld.so"
9280    shlibpath_var=LD_LIBRARY_PATH
9281    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9282    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283    soname_spec='${libname}${release}${shared_ext}$major'
9284    if test "X$HPUX_IA64_MODE" = X32; then
9285      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9286    else
9287      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9288    fi
9289    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9290    ;;
9291   hppa*64*)
9292     shrext_cmds='.sl'
9293     hardcode_into_libs=yes
9294     dynamic_linker="$host_os dld.sl"
9295     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9296     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298     soname_spec='${libname}${release}${shared_ext}$major'
9299     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9300     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9301     ;;
9302   *)
9303    shrext_cmds='.sl'
9304    dynamic_linker="$host_os dld.sl"
9305    shlibpath_var=SHLIB_PATH
9306    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9307    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9308    soname_spec='${libname}${release}${shared_ext}$major'
9309    ;;
9310  esac
9311  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9312  postinstall_cmds='chmod 555 $lib'
9313  ;;
9314
9315interix3*)
9316  version_type=linux
9317  need_lib_prefix=no
9318  need_version=no
9319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9320  soname_spec='${libname}${release}${shared_ext}$major'
9321  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9322  shlibpath_var=LD_LIBRARY_PATH
9323  shlibpath_overrides_runpath=no
9324  hardcode_into_libs=yes
9325  ;;
9326
9327irix5* | irix6* | nonstopux*)
9328  case $host_os in
9329    nonstopux*) version_type=nonstopux ;;
9330    *)
9331        if test "$lt_cv_prog_gnu_ld" = yes; then
9332                version_type=linux
9333        else
9334                version_type=irix
9335        fi ;;
9336  esac
9337  need_lib_prefix=no
9338  need_version=no
9339  soname_spec='${libname}${release}${shared_ext}$major'
9340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9341  case $host_os in
9342  irix5* | nonstopux*)
9343    libsuff= shlibsuff=
9344    ;;
9345  *)
9346    case $LD in # libtool.m4 will add one of these switches to LD
9347    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9348      libsuff= shlibsuff= libmagic=32-bit;;
9349    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9350      libsuff=32 shlibsuff=N32 libmagic=N32;;
9351    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9352      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9353    *) libsuff= shlibsuff= libmagic=never-match;;
9354    esac
9355    ;;
9356  esac
9357  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9358  shlibpath_overrides_runpath=no
9359  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9360  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9361  hardcode_into_libs=yes
9362  ;;
9363
9364# No shared lib support for Linux oldld, aout, or coff.
9365linux*oldld* | linux*aout* | linux*coff*)
9366  dynamic_linker=no
9367  ;;
9368
9369# This must be Linux ELF.
9370linux*)
9371  version_type=linux
9372  need_lib_prefix=no
9373  need_version=no
9374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375  soname_spec='${libname}${release}${shared_ext}$major'
9376  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9377  shlibpath_var=LD_LIBRARY_PATH
9378  shlibpath_overrides_runpath=no
9379  # This implies no fast_install, which is unacceptable.
9380  # Some rework will be needed to allow for fast_install
9381  # before this can be enabled.
9382  hardcode_into_libs=yes
9383
9384  # Append ld.so.conf contents to the search path
9385  if test -f /etc/ld.so.conf; then
9386    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' ' '`
9387    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9388  fi
9389
9390  # We used to test for /lib/ld.so.1 and disable shared libraries on
9391  # powerpc, because MkLinux only supported shared libraries with the
9392  # GNU dynamic linker.  Since this was broken with cross compilers,
9393  # most powerpc-linux boxes support dynamic linking these days and
9394  # people can always --disable-shared, the test was removed, and we
9395  # assume the GNU/Linux dynamic linker is in use.
9396  dynamic_linker='GNU/Linux ld.so'
9397  ;;
9398
9399knetbsd*-gnu)
9400  version_type=linux
9401  need_lib_prefix=no
9402  need_version=no
9403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9404  soname_spec='${libname}${release}${shared_ext}$major'
9405  shlibpath_var=LD_LIBRARY_PATH
9406  shlibpath_overrides_runpath=no
9407  hardcode_into_libs=yes
9408  dynamic_linker='GNU ld.so'
9409  ;;
9410
9411netbsd*)
9412  version_type=sunos
9413  need_lib_prefix=no
9414  need_version=no
9415  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9416    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9417    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9418    dynamic_linker='NetBSD (a.out) ld.so'
9419  else
9420    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9421    soname_spec='${libname}${release}${shared_ext}$major'
9422    dynamic_linker='NetBSD ld.elf_so'
9423  fi
9424  shlibpath_var=LD_LIBRARY_PATH
9425  shlibpath_overrides_runpath=yes
9426  hardcode_into_libs=yes
9427  ;;
9428
9429newsos6)
9430  version_type=linux
9431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432  shlibpath_var=LD_LIBRARY_PATH
9433  shlibpath_overrides_runpath=yes
9434  ;;
9435
9436nto-qnx*)
9437  version_type=linux
9438  need_lib_prefix=no
9439  need_version=no
9440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441  soname_spec='${libname}${release}${shared_ext}$major'
9442  shlibpath_var=LD_LIBRARY_PATH
9443  shlibpath_overrides_runpath=yes
9444  ;;
9445
9446openbsd*)
9447  version_type=sunos
9448  sys_lib_dlsearch_path_spec="/usr/lib"
9449  need_lib_prefix=no
9450  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9451  case $host_os in
9452    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9453    *)                         need_version=no  ;;
9454  esac
9455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9456  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9457  shlibpath_var=LD_LIBRARY_PATH
9458  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9459    case $host_os in
9460      openbsd2.[89] | openbsd2.[89].*)
9461        shlibpath_overrides_runpath=no
9462        ;;
9463      *)
9464        shlibpath_overrides_runpath=yes
9465        ;;
9466      esac
9467  else
9468    shlibpath_overrides_runpath=yes
9469  fi
9470  ;;
9471
9472os2*)
9473  libname_spec='$name'
9474  shrext_cmds=".dll"
9475  need_lib_prefix=no
9476  library_names_spec='$libname${shared_ext} $libname.a'
9477  dynamic_linker='OS/2 ld.exe'
9478  shlibpath_var=LIBPATH
9479  ;;
9480
9481osf3* | osf4* | osf5*)
9482  version_type=osf
9483  need_lib_prefix=no
9484  need_version=no
9485  soname_spec='${libname}${release}${shared_ext}$major'
9486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487  shlibpath_var=LD_LIBRARY_PATH
9488  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9489  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9490  ;;
9491
9492solaris*)
9493  version_type=linux
9494  need_lib_prefix=no
9495  need_version=no
9496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9497  soname_spec='${libname}${release}${shared_ext}$major'
9498  shlibpath_var=LD_LIBRARY_PATH
9499  shlibpath_overrides_runpath=yes
9500  hardcode_into_libs=yes
9501  # ldd complains unless libraries are executable
9502  postinstall_cmds='chmod +x $lib'
9503  ;;
9504
9505sunos4*)
9506  version_type=sunos
9507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9508  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9509  shlibpath_var=LD_LIBRARY_PATH
9510  shlibpath_overrides_runpath=yes
9511  if test "$with_gnu_ld" = yes; then
9512    need_lib_prefix=no
9513  fi
9514  need_version=yes
9515  ;;
9516
9517sysv4 | sysv4.3*)
9518  version_type=linux
9519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520  soname_spec='${libname}${release}${shared_ext}$major'
9521  shlibpath_var=LD_LIBRARY_PATH
9522  case $host_vendor in
9523    sni)
9524      shlibpath_overrides_runpath=no
9525      need_lib_prefix=no
9526      export_dynamic_flag_spec='${wl}-Blargedynsym'
9527      runpath_var=LD_RUN_PATH
9528      ;;
9529    siemens)
9530      need_lib_prefix=no
9531      ;;
9532    motorola)
9533      need_lib_prefix=no
9534      need_version=no
9535      shlibpath_overrides_runpath=no
9536      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9537      ;;
9538  esac
9539  ;;
9540
9541sysv4*MP*)
9542  if test -d /usr/nec ;then
9543    version_type=linux
9544    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9545    soname_spec='$libname${shared_ext}.$major'
9546    shlibpath_var=LD_LIBRARY_PATH
9547  fi
9548  ;;
9549
9550sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9551  version_type=freebsd-elf
9552  need_lib_prefix=no
9553  need_version=no
9554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9555  soname_spec='${libname}${release}${shared_ext}$major'
9556  shlibpath_var=LD_LIBRARY_PATH
9557  hardcode_into_libs=yes
9558  if test "$with_gnu_ld" = yes; then
9559    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9560    shlibpath_overrides_runpath=no
9561  else
9562    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9563    shlibpath_overrides_runpath=yes
9564    case $host_os in
9565      sco3.2v5*)
9566        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9567        ;;
9568    esac
9569  fi
9570  sys_lib_dlsearch_path_spec='/usr/lib'
9571  ;;
9572
9573uts4*)
9574  version_type=linux
9575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576  soname_spec='${libname}${release}${shared_ext}$major'
9577  shlibpath_var=LD_LIBRARY_PATH
9578  ;;
9579
9580*)
9581  dynamic_linker=no
9582  ;;
9583esac
9584echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9585echo "${ECHO_T}$dynamic_linker" >&6
9586test "$dynamic_linker" = no && can_build_shared=no
9587
9588variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9589if test "$GCC" = yes; then
9590  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9591fi
9592
9593echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9594echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9595hardcode_action=
9596if test -n "$hardcode_libdir_flag_spec" || \
9597   test -n "$runpath_var" || \
9598   test "X$hardcode_automatic" = "Xyes" ; then
9599
9600  # We can hardcode non-existant directories.
9601  if test "$hardcode_direct" != no &&
9602     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9603     # have to relink, otherwise we might link with an installed library
9604     # when we should be linking with a yet-to-be-installed one
9605     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9606     test "$hardcode_minus_L" != no; then
9607    # Linking always hardcodes the temporary library directory.
9608    hardcode_action=relink
9609  else
9610    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9611    hardcode_action=immediate
9612  fi
9613else
9614  # We cannot hardcode anything, or else we can only hardcode existing
9615  # directories.
9616  hardcode_action=unsupported
9617fi
9618echo "$as_me:$LINENO: result: $hardcode_action" >&5
9619echo "${ECHO_T}$hardcode_action" >&6
9620
9621if test "$hardcode_action" = relink; then
9622  # Fast installation is not supported
9623  enable_fast_install=no
9624elif test "$shlibpath_overrides_runpath" = yes ||
9625     test "$enable_shared" = no; then
9626  # Fast installation is not necessary
9627  enable_fast_install=needless
9628fi
9629
9630striplib=
9631old_striplib=
9632echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9633echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9634if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9635  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9636  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9637  echo "$as_me:$LINENO: result: yes" >&5
9638echo "${ECHO_T}yes" >&6
9639else
9640# FIXME - insert some real tests, host_os isn't really good enough
9641  case $host_os in
9642   darwin*)
9643       if test -n "$STRIP" ; then
9644         striplib="$STRIP -x"
9645         echo "$as_me:$LINENO: result: yes" >&5
9646echo "${ECHO_T}yes" >&6
9647       else
9648  echo "$as_me:$LINENO: result: no" >&5
9649echo "${ECHO_T}no" >&6
9650fi
9651       ;;
9652   *)
9653  echo "$as_me:$LINENO: result: no" >&5
9654echo "${ECHO_T}no" >&6
9655    ;;
9656  esac
9657fi
9658
9659if test "x$enable_dlopen" != xyes; then
9660  enable_dlopen=unknown
9661  enable_dlopen_self=unknown
9662  enable_dlopen_self_static=unknown
9663else
9664  lt_cv_dlopen=no
9665  lt_cv_dlopen_libs=
9666
9667  case $host_os in
9668  beos*)
9669    lt_cv_dlopen="load_add_on"
9670    lt_cv_dlopen_libs=
9671    lt_cv_dlopen_self=yes
9672    ;;
9673
9674  mingw* | pw32*)
9675    lt_cv_dlopen="LoadLibrary"
9676    lt_cv_dlopen_libs=
9677   ;;
9678
9679  cygwin*)
9680    lt_cv_dlopen="dlopen"
9681    lt_cv_dlopen_libs=
9682   ;;
9683
9684  darwin*)
9685  # if libdl is installed we need to link against it
9686    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9687echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9688if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9689  echo $ECHO_N "(cached) $ECHO_C" >&6
9690else
9691  ac_check_lib_save_LIBS=$LIBS
9692LIBS="-ldl  $LIBS"
9693cat >conftest.$ac_ext <<_ACEOF
9694/* confdefs.h.  */
9695_ACEOF
9696cat confdefs.h >>conftest.$ac_ext
9697cat >>conftest.$ac_ext <<_ACEOF
9698/* end confdefs.h.  */
9699
9700/* Override any gcc2 internal prototype to avoid an error.  */
9701#ifdef __cplusplus
9702extern "C"
9703#endif
9704/* We use char because int might match the return type of a gcc2
9705   builtin and then its argument prototype would still apply.  */
9706char dlopen ();
9707int
9708main ()
9709{
9710dlopen ();
9711  ;
9712  return 0;
9713}
9714_ACEOF
9715rm -f conftest.$ac_objext conftest$ac_exeext
9716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717  (eval $ac_link) 2>conftest.er1
9718  ac_status=$?
9719  grep -v '^ *+' conftest.er1 >conftest.err
9720  rm -f conftest.er1
9721  cat conftest.err >&5
9722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723  (exit $ac_status); } &&
9724         { ac_try='test -z "$ac_c_werror_flag"
9725                         || test ! -s conftest.err'
9726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727  (eval $ac_try) 2>&5
9728  ac_status=$?
9729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730  (exit $ac_status); }; } &&
9731         { ac_try='test -s conftest$ac_exeext'
9732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733  (eval $ac_try) 2>&5
9734  ac_status=$?
9735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736  (exit $ac_status); }; }; then
9737  ac_cv_lib_dl_dlopen=yes
9738else
9739  echo "$as_me: failed program was:" >&5
9740sed 's/^/| /' conftest.$ac_ext >&5
9741
9742ac_cv_lib_dl_dlopen=no
9743fi
9744rm -f conftest.err conftest.$ac_objext \
9745      conftest$ac_exeext conftest.$ac_ext
9746LIBS=$ac_check_lib_save_LIBS
9747fi
9748echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9749echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9750if test $ac_cv_lib_dl_dlopen = yes; then
9751  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9752else
9753
9754    lt_cv_dlopen="dyld"
9755    lt_cv_dlopen_libs=
9756    lt_cv_dlopen_self=yes
9757
9758fi
9759
9760   ;;
9761
9762  *)
9763    echo "$as_me:$LINENO: checking for shl_load" >&5
9764echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9765if test "${ac_cv_func_shl_load+set}" = set; then
9766  echo $ECHO_N "(cached) $ECHO_C" >&6
9767else
9768  cat >conftest.$ac_ext <<_ACEOF
9769/* confdefs.h.  */
9770_ACEOF
9771cat confdefs.h >>conftest.$ac_ext
9772cat >>conftest.$ac_ext <<_ACEOF
9773/* end confdefs.h.  */
9774/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9775   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9776#define shl_load innocuous_shl_load
9777
9778/* System header to define __stub macros and hopefully few prototypes,
9779    which can conflict with char shl_load (); below.
9780    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9781    <limits.h> exists even on freestanding compilers.  */
9782
9783#ifdef __STDC__
9784# include <limits.h>
9785#else
9786# include <assert.h>
9787#endif
9788
9789#undef shl_load
9790
9791/* Override any gcc2 internal prototype to avoid an error.  */
9792#ifdef __cplusplus
9793extern "C"
9794{
9795#endif
9796/* We use char because int might match the return type of a gcc2
9797   builtin and then its argument prototype would still apply.  */
9798char shl_load ();
9799/* The GNU C library defines this for functions which it implements
9800    to always fail with ENOSYS.  Some functions are actually named
9801    something starting with __ and the normal name is an alias.  */
9802#if defined (__stub_shl_load) || defined (__stub___shl_load)
9803choke me
9804#else
9805char (*f) () = shl_load;
9806#endif
9807#ifdef __cplusplus
9808}
9809#endif
9810
9811int
9812main ()
9813{
9814return f != shl_load;
9815  ;
9816  return 0;
9817}
9818_ACEOF
9819rm -f conftest.$ac_objext conftest$ac_exeext
9820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9821  (eval $ac_link) 2>conftest.er1
9822  ac_status=$?
9823  grep -v '^ *+' conftest.er1 >conftest.err
9824  rm -f conftest.er1
9825  cat conftest.err >&5
9826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827  (exit $ac_status); } &&
9828         { ac_try='test -z "$ac_c_werror_flag"
9829                         || test ! -s conftest.err'
9830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831  (eval $ac_try) 2>&5
9832  ac_status=$?
9833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834  (exit $ac_status); }; } &&
9835         { ac_try='test -s conftest$ac_exeext'
9836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837  (eval $ac_try) 2>&5
9838  ac_status=$?
9839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840  (exit $ac_status); }; }; then
9841  ac_cv_func_shl_load=yes
9842else
9843  echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846ac_cv_func_shl_load=no
9847fi
9848rm -f conftest.err conftest.$ac_objext \
9849      conftest$ac_exeext conftest.$ac_ext
9850fi
9851echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9852echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9853if test $ac_cv_func_shl_load = yes; then
9854  lt_cv_dlopen="shl_load"
9855else
9856  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9857echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9858if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9859  echo $ECHO_N "(cached) $ECHO_C" >&6
9860else
9861  ac_check_lib_save_LIBS=$LIBS
9862LIBS="-ldld  $LIBS"
9863cat >conftest.$ac_ext <<_ACEOF
9864/* confdefs.h.  */
9865_ACEOF
9866cat confdefs.h >>conftest.$ac_ext
9867cat >>conftest.$ac_ext <<_ACEOF
9868/* end confdefs.h.  */
9869
9870/* Override any gcc2 internal prototype to avoid an error.  */
9871#ifdef __cplusplus
9872extern "C"
9873#endif
9874/* We use char because int might match the return type of a gcc2
9875   builtin and then its argument prototype would still apply.  */
9876char shl_load ();
9877int
9878main ()
9879{
9880shl_load ();
9881  ;
9882  return 0;
9883}
9884_ACEOF
9885rm -f conftest.$ac_objext conftest$ac_exeext
9886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887  (eval $ac_link) 2>conftest.er1
9888  ac_status=$?
9889  grep -v '^ *+' conftest.er1 >conftest.err
9890  rm -f conftest.er1
9891  cat conftest.err >&5
9892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893  (exit $ac_status); } &&
9894         { ac_try='test -z "$ac_c_werror_flag"
9895                         || test ! -s conftest.err'
9896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897  (eval $ac_try) 2>&5
9898  ac_status=$?
9899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900  (exit $ac_status); }; } &&
9901         { ac_try='test -s conftest$ac_exeext'
9902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903  (eval $ac_try) 2>&5
9904  ac_status=$?
9905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906  (exit $ac_status); }; }; then
9907  ac_cv_lib_dld_shl_load=yes
9908else
9909  echo "$as_me: failed program was:" >&5
9910sed 's/^/| /' conftest.$ac_ext >&5
9911
9912ac_cv_lib_dld_shl_load=no
9913fi
9914rm -f conftest.err conftest.$ac_objext \
9915      conftest$ac_exeext conftest.$ac_ext
9916LIBS=$ac_check_lib_save_LIBS
9917fi
9918echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9919echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9920if test $ac_cv_lib_dld_shl_load = yes; then
9921  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9922else
9923  echo "$as_me:$LINENO: checking for dlopen" >&5
9924echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9925if test "${ac_cv_func_dlopen+set}" = set; then
9926  echo $ECHO_N "(cached) $ECHO_C" >&6
9927else
9928  cat >conftest.$ac_ext <<_ACEOF
9929/* confdefs.h.  */
9930_ACEOF
9931cat confdefs.h >>conftest.$ac_ext
9932cat >>conftest.$ac_ext <<_ACEOF
9933/* end confdefs.h.  */
9934/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9935   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9936#define dlopen innocuous_dlopen
9937
9938/* System header to define __stub macros and hopefully few prototypes,
9939    which can conflict with char dlopen (); below.
9940    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9941    <limits.h> exists even on freestanding compilers.  */
9942
9943#ifdef __STDC__
9944# include <limits.h>
9945#else
9946# include <assert.h>
9947#endif
9948
9949#undef dlopen
9950
9951/* Override any gcc2 internal prototype to avoid an error.  */
9952#ifdef __cplusplus
9953extern "C"
9954{
9955#endif
9956/* We use char because int might match the return type of a gcc2
9957   builtin and then its argument prototype would still apply.  */
9958char dlopen ();
9959/* The GNU C library defines this for functions which it implements
9960    to always fail with ENOSYS.  Some functions are actually named
9961    something starting with __ and the normal name is an alias.  */
9962#if defined (__stub_dlopen) || defined (__stub___dlopen)
9963choke me
9964#else
9965char (*f) () = dlopen;
9966#endif
9967#ifdef __cplusplus
9968}
9969#endif
9970
9971int
9972main ()
9973{
9974return f != dlopen;
9975  ;
9976  return 0;
9977}
9978_ACEOF
9979rm -f conftest.$ac_objext conftest$ac_exeext
9980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9981  (eval $ac_link) 2>conftest.er1
9982  ac_status=$?
9983  grep -v '^ *+' conftest.er1 >conftest.err
9984  rm -f conftest.er1
9985  cat conftest.err >&5
9986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987  (exit $ac_status); } &&
9988         { ac_try='test -z "$ac_c_werror_flag"
9989                         || test ! -s conftest.err'
9990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991  (eval $ac_try) 2>&5
9992  ac_status=$?
9993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994  (exit $ac_status); }; } &&
9995         { ac_try='test -s conftest$ac_exeext'
9996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997  (eval $ac_try) 2>&5
9998  ac_status=$?
9999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000  (exit $ac_status); }; }; then
10001  ac_cv_func_dlopen=yes
10002else
10003  echo "$as_me: failed program was:" >&5
10004sed 's/^/| /' conftest.$ac_ext >&5
10005
10006ac_cv_func_dlopen=no
10007fi
10008rm -f conftest.err conftest.$ac_objext \
10009      conftest$ac_exeext conftest.$ac_ext
10010fi
10011echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10012echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10013if test $ac_cv_func_dlopen = yes; then
10014  lt_cv_dlopen="dlopen"
10015else
10016  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10017echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10018if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10019  echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021  ac_check_lib_save_LIBS=$LIBS
10022LIBS="-ldl  $LIBS"
10023cat >conftest.$ac_ext <<_ACEOF
10024/* confdefs.h.  */
10025_ACEOF
10026cat confdefs.h >>conftest.$ac_ext
10027cat >>conftest.$ac_ext <<_ACEOF
10028/* end confdefs.h.  */
10029
10030/* Override any gcc2 internal prototype to avoid an error.  */
10031#ifdef __cplusplus
10032extern "C"
10033#endif
10034/* We use char because int might match the return type of a gcc2
10035   builtin and then its argument prototype would still apply.  */
10036char dlopen ();
10037int
10038main ()
10039{
10040dlopen ();
10041  ;
10042  return 0;
10043}
10044_ACEOF
10045rm -f conftest.$ac_objext conftest$ac_exeext
10046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047  (eval $ac_link) 2>conftest.er1
10048  ac_status=$?
10049  grep -v '^ *+' conftest.er1 >conftest.err
10050  rm -f conftest.er1
10051  cat conftest.err >&5
10052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053  (exit $ac_status); } &&
10054         { ac_try='test -z "$ac_c_werror_flag"
10055                         || test ! -s conftest.err'
10056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057  (eval $ac_try) 2>&5
10058  ac_status=$?
10059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060  (exit $ac_status); }; } &&
10061         { ac_try='test -s conftest$ac_exeext'
10062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063  (eval $ac_try) 2>&5
10064  ac_status=$?
10065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066  (exit $ac_status); }; }; then
10067  ac_cv_lib_dl_dlopen=yes
10068else
10069  echo "$as_me: failed program was:" >&5
10070sed 's/^/| /' conftest.$ac_ext >&5
10071
10072ac_cv_lib_dl_dlopen=no
10073fi
10074rm -f conftest.err conftest.$ac_objext \
10075      conftest$ac_exeext conftest.$ac_ext
10076LIBS=$ac_check_lib_save_LIBS
10077fi
10078echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10079echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10080if test $ac_cv_lib_dl_dlopen = yes; then
10081  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10082else
10083  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10084echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10085if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10086  echo $ECHO_N "(cached) $ECHO_C" >&6
10087else
10088  ac_check_lib_save_LIBS=$LIBS
10089LIBS="-lsvld  $LIBS"
10090cat >conftest.$ac_ext <<_ACEOF
10091/* confdefs.h.  */
10092_ACEOF
10093cat confdefs.h >>conftest.$ac_ext
10094cat >>conftest.$ac_ext <<_ACEOF
10095/* end confdefs.h.  */
10096
10097/* Override any gcc2 internal prototype to avoid an error.  */
10098#ifdef __cplusplus
10099extern "C"
10100#endif
10101/* We use char because int might match the return type of a gcc2
10102   builtin and then its argument prototype would still apply.  */
10103char dlopen ();
10104int
10105main ()
10106{
10107dlopen ();
10108  ;
10109  return 0;
10110}
10111_ACEOF
10112rm -f conftest.$ac_objext conftest$ac_exeext
10113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114  (eval $ac_link) 2>conftest.er1
10115  ac_status=$?
10116  grep -v '^ *+' conftest.er1 >conftest.err
10117  rm -f conftest.er1
10118  cat conftest.err >&5
10119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120  (exit $ac_status); } &&
10121         { ac_try='test -z "$ac_c_werror_flag"
10122                         || test ! -s conftest.err'
10123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124  (eval $ac_try) 2>&5
10125  ac_status=$?
10126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127  (exit $ac_status); }; } &&
10128         { ac_try='test -s conftest$ac_exeext'
10129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130  (eval $ac_try) 2>&5
10131  ac_status=$?
10132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133  (exit $ac_status); }; }; then
10134  ac_cv_lib_svld_dlopen=yes
10135else
10136  echo "$as_me: failed program was:" >&5
10137sed 's/^/| /' conftest.$ac_ext >&5
10138
10139ac_cv_lib_svld_dlopen=no
10140fi
10141rm -f conftest.err conftest.$ac_objext \
10142      conftest$ac_exeext conftest.$ac_ext
10143LIBS=$ac_check_lib_save_LIBS
10144fi
10145echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10146echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10147if test $ac_cv_lib_svld_dlopen = yes; then
10148  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10149else
10150  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10151echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10152if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10153  echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155  ac_check_lib_save_LIBS=$LIBS
10156LIBS="-ldld  $LIBS"
10157cat >conftest.$ac_ext <<_ACEOF
10158/* confdefs.h.  */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h.  */
10163
10164/* Override any gcc2 internal prototype to avoid an error.  */
10165#ifdef __cplusplus
10166extern "C"
10167#endif
10168/* We use char because int might match the return type of a gcc2
10169   builtin and then its argument prototype would still apply.  */
10170char dld_link ();
10171int
10172main ()
10173{
10174dld_link ();
10175  ;
10176  return 0;
10177}
10178_ACEOF
10179rm -f conftest.$ac_objext conftest$ac_exeext
10180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181  (eval $ac_link) 2>conftest.er1
10182  ac_status=$?
10183  grep -v '^ *+' conftest.er1 >conftest.err
10184  rm -f conftest.er1
10185  cat conftest.err >&5
10186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187  (exit $ac_status); } &&
10188         { ac_try='test -z "$ac_c_werror_flag"
10189                         || test ! -s conftest.err'
10190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191  (eval $ac_try) 2>&5
10192  ac_status=$?
10193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194  (exit $ac_status); }; } &&
10195         { ac_try='test -s conftest$ac_exeext'
10196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197  (eval $ac_try) 2>&5
10198  ac_status=$?
10199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200  (exit $ac_status); }; }; then
10201  ac_cv_lib_dld_dld_link=yes
10202else
10203  echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206ac_cv_lib_dld_dld_link=no
10207fi
10208rm -f conftest.err conftest.$ac_objext \
10209      conftest$ac_exeext conftest.$ac_ext
10210LIBS=$ac_check_lib_save_LIBS
10211fi
10212echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10213echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10214if test $ac_cv_lib_dld_dld_link = yes; then
10215  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10216fi
10217
10218
10219fi
10220
10221
10222fi
10223
10224
10225fi
10226
10227
10228fi
10229
10230
10231fi
10232
10233    ;;
10234  esac
10235
10236  if test "x$lt_cv_dlopen" != xno; then
10237    enable_dlopen=yes
10238  else
10239    enable_dlopen=no
10240  fi
10241
10242  case $lt_cv_dlopen in
10243  dlopen)
10244    save_CPPFLAGS="$CPPFLAGS"
10245    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10246
10247    save_LDFLAGS="$LDFLAGS"
10248    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10249
10250    save_LIBS="$LIBS"
10251    LIBS="$lt_cv_dlopen_libs $LIBS"
10252
10253    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10254echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10255if test "${lt_cv_dlopen_self+set}" = set; then
10256  echo $ECHO_N "(cached) $ECHO_C" >&6
10257else
10258          if test "$cross_compiling" = yes; then :
10259  lt_cv_dlopen_self=cross
10260else
10261  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10262  lt_status=$lt_dlunknown
10263  cat > conftest.$ac_ext <<EOF
10264#line 10264 "configure"
10265#include "confdefs.h"
10266
10267#if HAVE_DLFCN_H
10268#include <dlfcn.h>
10269#endif
10270
10271#include <stdio.h>
10272
10273#ifdef RTLD_GLOBAL
10274#  define LT_DLGLOBAL           RTLD_GLOBAL
10275#else
10276#  ifdef DL_GLOBAL
10277#    define LT_DLGLOBAL         DL_GLOBAL
10278#  else
10279#    define LT_DLGLOBAL         0
10280#  endif
10281#endif
10282
10283/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10284   find out it does not work in some platform. */
10285#ifndef LT_DLLAZY_OR_NOW
10286#  ifdef RTLD_LAZY
10287#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10288#  else
10289#    ifdef DL_LAZY
10290#      define LT_DLLAZY_OR_NOW          DL_LAZY
10291#    else
10292#      ifdef RTLD_NOW
10293#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10294#      else
10295#        ifdef DL_NOW
10296#          define LT_DLLAZY_OR_NOW      DL_NOW
10297#        else
10298#          define LT_DLLAZY_OR_NOW      0
10299#        endif
10300#      endif
10301#    endif
10302#  endif
10303#endif
10304
10305#ifdef __cplusplus
10306extern "C" void exit (int);
10307#endif
10308
10309void fnord() { int i=42;}
10310int main ()
10311{
10312  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10313  int status = $lt_dlunknown;
10314
10315  if (self)
10316    {
10317      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10318      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10319      /* dlclose (self); */
10320    }
10321  else
10322    puts (dlerror ());
10323
10324    exit (status);
10325}
10326EOF
10327  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10328  (eval $ac_link) 2>&5
10329  ac_status=$?
10330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10332    (./conftest; exit; ) >&5 2>/dev/null
10333    lt_status=$?
10334    case x$lt_status in
10335      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10336      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10337      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10338    esac
10339  else :
10340    # compilation failed
10341    lt_cv_dlopen_self=no
10342  fi
10343fi
10344rm -fr conftest*
10345
10346
10347fi
10348echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10349echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10350
10351    if test "x$lt_cv_dlopen_self" = xyes; then
10352      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10353      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10354echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10355if test "${lt_cv_dlopen_self_static+set}" = set; then
10356  echo $ECHO_N "(cached) $ECHO_C" >&6
10357else
10358          if test "$cross_compiling" = yes; then :
10359  lt_cv_dlopen_self_static=cross
10360else
10361  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10362  lt_status=$lt_dlunknown
10363  cat > conftest.$ac_ext <<EOF
10364#line 10364 "configure"
10365#include "confdefs.h"
10366
10367#if HAVE_DLFCN_H
10368#include <dlfcn.h>
10369#endif
10370
10371#include <stdio.h>
10372
10373#ifdef RTLD_GLOBAL
10374#  define LT_DLGLOBAL           RTLD_GLOBAL
10375#else
10376#  ifdef DL_GLOBAL
10377#    define LT_DLGLOBAL         DL_GLOBAL
10378#  else
10379#    define LT_DLGLOBAL         0
10380#  endif
10381#endif
10382
10383/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10384   find out it does not work in some platform. */
10385#ifndef LT_DLLAZY_OR_NOW
10386#  ifdef RTLD_LAZY
10387#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10388#  else
10389#    ifdef DL_LAZY
10390#      define LT_DLLAZY_OR_NOW          DL_LAZY
10391#    else
10392#      ifdef RTLD_NOW
10393#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10394#      else
10395#        ifdef DL_NOW
10396#          define LT_DLLAZY_OR_NOW      DL_NOW
10397#        else
10398#          define LT_DLLAZY_OR_NOW      0
10399#        endif
10400#      endif
10401#    endif
10402#  endif
10403#endif
10404
10405#ifdef __cplusplus
10406extern "C" void exit (int);
10407#endif
10408
10409void fnord() { int i=42;}
10410int main ()
10411{
10412  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10413  int status = $lt_dlunknown;
10414
10415  if (self)
10416    {
10417      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10418      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10419      /* dlclose (self); */
10420    }
10421  else
10422    puts (dlerror ());
10423
10424    exit (status);
10425}
10426EOF
10427  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428  (eval $ac_link) 2>&5
10429  ac_status=$?
10430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10432    (./conftest; exit; ) >&5 2>/dev/null
10433    lt_status=$?
10434    case x$lt_status in
10435      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10436      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10437      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10438    esac
10439  else :
10440    # compilation failed
10441    lt_cv_dlopen_self_static=no
10442  fi
10443fi
10444rm -fr conftest*
10445
10446
10447fi
10448echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10449echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10450    fi
10451
10452    CPPFLAGS="$save_CPPFLAGS"
10453    LDFLAGS="$save_LDFLAGS"
10454    LIBS="$save_LIBS"
10455    ;;
10456  esac
10457
10458  case $lt_cv_dlopen_self in
10459  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10460  *) enable_dlopen_self=unknown ;;
10461  esac
10462
10463  case $lt_cv_dlopen_self_static in
10464  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10465  *) enable_dlopen_self_static=unknown ;;
10466  esac
10467fi
10468
10469
10470# Report which library types will actually be built
10471echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10472echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10473echo "$as_me:$LINENO: result: $can_build_shared" >&5
10474echo "${ECHO_T}$can_build_shared" >&6
10475
10476echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10477echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10478test "$can_build_shared" = "no" && enable_shared=no
10479
10480# On AIX, shared libraries and static libraries use the same namespace, and
10481# are all built from PIC.
10482case $host_os in
10483aix3*)
10484  test "$enable_shared" = yes && enable_static=no
10485  if test -n "$RANLIB"; then
10486    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10487    postinstall_cmds='$RANLIB $lib'
10488  fi
10489  ;;
10490
10491aix4* | aix5*)
10492  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10493    test "$enable_shared" = yes && enable_static=no
10494  fi
10495    ;;
10496esac
10497echo "$as_me:$LINENO: result: $enable_shared" >&5
10498echo "${ECHO_T}$enable_shared" >&6
10499
10500echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10501echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10502# Make sure either enable_shared or enable_static is yes.
10503test "$enable_shared" = yes || enable_static=yes
10504echo "$as_me:$LINENO: result: $enable_static" >&5
10505echo "${ECHO_T}$enable_static" >&6
10506
10507# The else clause should only fire when bootstrapping the
10508# libtool distribution, otherwise you forgot to ship ltmain.sh
10509# with your package, and you will get complaints that there are
10510# no rules to generate ltmain.sh.
10511if test -f "$ltmain"; then
10512  # See if we are running on zsh, and set the options which allow our commands through
10513  # without removal of \ escapes.
10514  if test -n "${ZSH_VERSION+set}" ; then
10515    setopt NO_GLOB_SUBST
10516  fi
10517  # Now quote all the things that may contain metacharacters while being
10518  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10519  # variables and quote the copies for generation of the libtool script.
10520  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10521    SED SHELL STRIP \
10522    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10523    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10524    deplibs_check_method reload_flag reload_cmds need_locks \
10525    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10526    lt_cv_sys_global_symbol_to_c_name_address \
10527    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10528    old_postinstall_cmds old_postuninstall_cmds \
10529    compiler \
10530    CC \
10531    LD \
10532    lt_prog_compiler_wl \
10533    lt_prog_compiler_pic \
10534    lt_prog_compiler_static \
10535    lt_prog_compiler_no_builtin_flag \
10536    export_dynamic_flag_spec \
10537    thread_safe_flag_spec \
10538    whole_archive_flag_spec \
10539    enable_shared_with_static_runtimes \
10540    old_archive_cmds \
10541    old_archive_from_new_cmds \
10542    predep_objects \
10543    postdep_objects \
10544    predeps \
10545    postdeps \
10546    compiler_lib_search_path \
10547    archive_cmds \
10548    archive_expsym_cmds \
10549    postinstall_cmds \
10550    postuninstall_cmds \
10551    old_archive_from_expsyms_cmds \
10552    allow_undefined_flag \
10553    no_undefined_flag \
10554    export_symbols_cmds \
10555    hardcode_libdir_flag_spec \
10556    hardcode_libdir_flag_spec_ld \
10557    hardcode_libdir_separator \
10558    hardcode_automatic \
10559    module_cmds \
10560    module_expsym_cmds \
10561    lt_cv_prog_compiler_c_o \
10562    exclude_expsyms \
10563    include_expsyms; do
10564
10565    case $var in
10566    old_archive_cmds | \
10567    old_archive_from_new_cmds | \
10568    archive_cmds | \
10569    archive_expsym_cmds | \
10570    module_cmds | \
10571    module_expsym_cmds | \
10572    old_archive_from_expsyms_cmds | \
10573    export_symbols_cmds | \
10574    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10575    postinstall_cmds | postuninstall_cmds | \
10576    old_postinstall_cmds | old_postuninstall_cmds | \
10577    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10578      # Double-quote double-evaled strings.
10579      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10580      ;;
10581    *)
10582      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10583      ;;
10584    esac
10585  done
10586
10587  case $lt_echo in
10588  *'\$0 --fallback-echo"')
10589    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10590    ;;
10591  esac
10592
10593cfgfile="${ofile}T"
10594  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10595  $rm -f "$cfgfile"
10596  { echo "$as_me:$LINENO: creating $ofile" >&5
10597echo "$as_me: creating $ofile" >&6;}
10598
10599  cat <<__EOF__ >> "$cfgfile"
10600#! $SHELL
10601
10602# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10603# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10604# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10605#
10606# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10607# Free Software Foundation, Inc.
10608#
10609# This file is part of GNU Libtool:
10610# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10611#
10612# This program is free software; you can redistribute it and/or modify
10613# it under the terms of the GNU General Public License as published by
10614# the Free Software Foundation; either version 2 of the License, or
10615# (at your option) any later version.
10616#
10617# This program is distributed in the hope that it will be useful, but
10618# WITHOUT ANY WARRANTY; without even the implied warranty of
10619# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10620# General Public License for more details.
10621#
10622# You should have received a copy of the GNU General Public License
10623# along with this program; if not, write to the Free Software
10624# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10625#
10626# As a special exception to the GNU General Public License, if you
10627# distribute this file as part of a program that contains a
10628# configuration script generated by Autoconf, you may include it under
10629# the same distribution terms that you use for the rest of that program.
10630
10631# A sed program that does not truncate output.
10632SED=$lt_SED
10633
10634# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10635Xsed="$SED -e 1s/^X//"
10636
10637# The HP-UX ksh and POSIX shell print the target directory to stdout
10638# if CDPATH is set.
10639(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10640
10641# The names of the tagged configurations supported by this script.
10642available_tags=
10643
10644# ### BEGIN LIBTOOL CONFIG
10645
10646# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10647
10648# Shell to use when invoking shell scripts.
10649SHELL=$lt_SHELL
10650
10651# Whether or not to build shared libraries.
10652build_libtool_libs=$enable_shared
10653
10654# Whether or not to build static libraries.
10655build_old_libs=$enable_static
10656
10657# Whether or not to add -lc for building shared libraries.
10658build_libtool_need_lc=$archive_cmds_need_lc
10659
10660# Whether or not to disallow shared libs when runtime libs are static
10661allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10662
10663# Whether or not to optimize for fast installation.
10664fast_install=$enable_fast_install
10665
10666# The host system.
10667host_alias=$host_alias
10668host=$host
10669host_os=$host_os
10670
10671# The build system.
10672build_alias=$build_alias
10673build=$build
10674build_os=$build_os
10675
10676# An echo program that does not interpret backslashes.
10677echo=$lt_echo
10678
10679# The archiver.
10680AR=$lt_AR
10681AR_FLAGS=$lt_AR_FLAGS
10682
10683# A C compiler.
10684LTCC=$lt_LTCC
10685
10686# LTCC compiler flags.
10687LTCFLAGS=$lt_LTCFLAGS
10688
10689# A language-specific compiler.
10690CC=$lt_compiler
10691
10692# Is the compiler the GNU C compiler?
10693with_gcc=$GCC
10694
10695# An ERE matcher.
10696EGREP=$lt_EGREP
10697
10698# The linker used to build libraries.
10699LD=$lt_LD
10700
10701# Whether we need hard or soft links.
10702LN_S=$lt_LN_S
10703
10704# A BSD-compatible nm program.
10705NM=$lt_NM
10706
10707# A symbol stripping program
10708STRIP=$lt_STRIP
10709
10710# Used to examine libraries when file_magic_cmd begins "file"
10711MAGIC_CMD=$MAGIC_CMD
10712
10713# Used on cygwin: DLL creation program.
10714DLLTOOL="$DLLTOOL"
10715
10716# Used on cygwin: object dumper.
10717OBJDUMP="$OBJDUMP"
10718
10719# Used on cygwin: assembler.
10720AS="$AS"
10721
10722# The name of the directory that contains temporary libtool files.
10723objdir=$objdir
10724
10725# How to create reloadable object files.
10726reload_flag=$lt_reload_flag
10727reload_cmds=$lt_reload_cmds
10728
10729# How to pass a linker flag through the compiler.
10730wl=$lt_lt_prog_compiler_wl
10731
10732# Object file suffix (normally "o").
10733objext="$ac_objext"
10734
10735# Old archive suffix (normally "a").
10736libext="$libext"
10737
10738# Shared library suffix (normally ".so").
10739shrext_cmds='$shrext_cmds'
10740
10741# Executable file suffix (normally "").
10742exeext="$exeext"
10743
10744# Additional compiler flags for building library objects.
10745pic_flag=$lt_lt_prog_compiler_pic
10746pic_mode=$pic_mode
10747
10748# What is the maximum length of a command?
10749max_cmd_len=$lt_cv_sys_max_cmd_len
10750
10751# Does compiler simultaneously support -c and -o options?
10752compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10753
10754# Must we lock files when doing compilation?
10755need_locks=$lt_need_locks
10756
10757# Do we need the lib prefix for modules?
10758need_lib_prefix=$need_lib_prefix
10759
10760# Do we need a version for libraries?
10761need_version=$need_version
10762
10763# Whether dlopen is supported.
10764dlopen_support=$enable_dlopen
10765
10766# Whether dlopen of programs is supported.
10767dlopen_self=$enable_dlopen_self
10768
10769# Whether dlopen of statically linked programs is supported.
10770dlopen_self_static=$enable_dlopen_self_static
10771
10772# Compiler flag to prevent dynamic linking.
10773link_static_flag=$lt_lt_prog_compiler_static
10774
10775# Compiler flag to turn off builtin functions.
10776no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10777
10778# Compiler flag to allow reflexive dlopens.
10779export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10780
10781# Compiler flag to generate shared objects directly from archives.
10782whole_archive_flag_spec=$lt_whole_archive_flag_spec
10783
10784# Compiler flag to generate thread-safe objects.
10785thread_safe_flag_spec=$lt_thread_safe_flag_spec