source: ThirdParty/ASL/trunk/configure @ 1548

Last change on this file since 1548 was 1548, checked in by stefan, 10 years ago

copy over pkg-config setup and making thirdparty projects installable projects from split branch

  • Property svn:executable set to *
File size: 706.4 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.0trunk.
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 Common 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.0trunk'
433PACKAGE_STRING='ThirdPartyASL 1.0trunk'
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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion _SVN_REV EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH AMPLSOLVER_A ABSPATH_AMPLSOLVER_INSTALLED ABSPATH_AMPLSOLVER_UNINSTALLED ASLMAKEFLAGS MSVC_COMPILE_TRUE MSVC_COMPILE_FALSE 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.0trunk 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.0trunk:";;
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  --enable-debug-asl compile this project (ASL) with debug options
1067  --enable-doscompile     Under Cygwin, compile so that executables run under
1068                          DOS. Set to mingw to use gcc/g++/ld with
1069                          -mno-cygwin. Set to msvc to use cl/link (or
1070                          icl/link). Default when mentioned: mingw. Default
1071                          when not mentioned: disabled.
1072  --enable-static[=PKGS]
1073                          build static libraries [default=no]
1074  --disable-dependency-tracking  speeds up one-time build
1075  --enable-dependency-tracking   do not reject slow dependency extractors
1076  --enable-maintainer-mode  enable make rules and dependencies not useful
1077                          (and sometimes confusing) to the casual installer
1078  --enable-shared[=PKGS]
1079                          build shared libraries [default=yes]
1080  --enable-fast-install[=PKGS]
1081                          optimize for fast installation [default=yes]
1082  --disable-libtool-lock  avoid locking (might break parallel builds)
1083  --enable-pkg-config     use pkg-config if available (default is yes)
1084
1085Optional Packages:
1086  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1087  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1088  --with-asl-verbosity specify the debug verbosity level for project ASL
1089  --with-asl-checklevel specify the sanity check level for project ASL
1090  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1091  --with-pic              try to use only PIC/non-PIC objects [default=use
1092                          both]
1093  --with-tags[=TAGS]
1094                          include additional configurations [automatic]
1095  --with-coin-instdir     prefix of installation directory for precompiled
1096                          COIN packages
1097
1098Some influential environment variables:
1099  CDEFS       Additional -D flags to be used when compiling C code.
1100  ADD_CFLAGS  Additional C compiler options
1101  DBG_CFLAGS  Debug C compiler options
1102  OPT_CFLAGS  Optimize C compiler options
1103  CC          C compiler command
1104  CFLAGS      C compiler flags
1105  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1106              nonstandard directory <lib dir>
1107  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108              headers in a nonstandard directory <include dir>
1109  MPICC       C MPI Compiler
1110  CPP         C preprocessor
1111  CXX         C++ compiler command
1112  CXXFLAGS    C++ compiler flags
1113  CXXCPP      C++ preprocessor
1114  F77         Fortran 77 compiler command
1115  FFLAGS      Fortran 77 compiler flags
1116  PKG_CONFIG  path to pkg-config utility
1117  ASLMAKEFLAGS
1118              Compilation flags necessary for compiling the AMPL solver
1119              library
1120
1121Use these variables to override the choices made by `configure' or to help
1122it to find libraries and programs with nonstandard names/locations.
1123
1124Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1125_ACEOF
1126fi
1127
1128if test "$ac_init_help" = "recursive"; then
1129  # If there are subdirs, report their specific --help.
1130  ac_popdir=`pwd`
1131  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1132    test -d $ac_dir || continue
1133    ac_builddir=.
1134
1135if test "$ac_dir" != .; then
1136  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1137  # A "../" for each directory in $ac_dir_suffix.
1138  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1139else
1140  ac_dir_suffix= ac_top_builddir=
1141fi
1142
1143case $srcdir in
1144  .)  # No --srcdir option.  We are building in place.
1145    ac_srcdir=.
1146    if test -z "$ac_top_builddir"; then
1147       ac_top_srcdir=.
1148    else
1149       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1150    fi ;;
1151  [\\/]* | ?:[\\/]* )  # Absolute path.
1152    ac_srcdir=$srcdir$ac_dir_suffix;
1153    ac_top_srcdir=$srcdir ;;
1154  *) # Relative path.
1155    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1156    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1157esac
1158
1159# Do not use `cd foo && pwd` to compute absolute paths, because
1160# the directories may not exist.
1161case `pwd` in
1162.) ac_abs_builddir="$ac_dir";;
1163*)
1164  case "$ac_dir" in
1165  .) ac_abs_builddir=`pwd`;;
1166  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1167  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1168  esac;;
1169esac
1170case $ac_abs_builddir in
1171.) ac_abs_top_builddir=${ac_top_builddir}.;;
1172*)
1173  case ${ac_top_builddir}. in
1174  .) ac_abs_top_builddir=$ac_abs_builddir;;
1175  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1176  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1177  esac;;
1178esac
1179case $ac_abs_builddir in
1180.) ac_abs_srcdir=$ac_srcdir;;
1181*)
1182  case $ac_srcdir in
1183  .) ac_abs_srcdir=$ac_abs_builddir;;
1184  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1185  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1186  esac;;
1187esac
1188case $ac_abs_builddir in
1189.) ac_abs_top_srcdir=$ac_top_srcdir;;
1190*)
1191  case $ac_top_srcdir in
1192  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1193  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1194  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1195  esac;;
1196esac
1197
1198    cd $ac_dir
1199    # Check for guested configure; otherwise get Cygnus style configure.
1200    if test -f $ac_srcdir/configure.gnu; then
1201      echo
1202      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1203    elif test -f $ac_srcdir/configure; then
1204      echo
1205      $SHELL $ac_srcdir/configure  --help=recursive
1206    elif test -f $ac_srcdir/configure.ac ||
1207           test -f $ac_srcdir/configure.in; then
1208      echo
1209      $ac_configure --help
1210    else
1211      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1212    fi
1213    cd $ac_popdir
1214  done
1215fi
1216
1217test -n "$ac_init_help" && exit 0
1218if $ac_init_version; then
1219  cat <<\_ACEOF
1220ThirdPartyASL configure 1.0trunk
1221generated by GNU Autoconf 2.59
1222
1223Copyright (C) 2003 Free Software Foundation, Inc.
1224This configure script is free software; the Free Software Foundation
1225gives unlimited permission to copy, distribute and modify it.
1226
1227
1228Copyright 2006, 2007, 2009 International Business Machines and others.
1229All Rights Reserved.
1230This file is part of the open source package Coin which is distributed
1231under the Common Public License.
1232_ACEOF
1233  exit 0
1234fi
1235exec 5>config.log
1236cat >&5 <<_ACEOF
1237This file contains any messages produced by compilers while
1238running configure, to aid debugging if configure makes a mistake.
1239
1240It was created by ThirdPartyASL $as_me 1.0trunk, which was
1241generated by GNU Autoconf 2.59.  Invocation command line was
1242
1243  $ $0 $@
1244
1245_ACEOF
1246{
1247cat <<_ASUNAME
1248## --------- ##
1249## Platform. ##
1250## --------- ##
1251
1252hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1253uname -m = `(uname -m) 2>/dev/null || echo unknown`
1254uname -r = `(uname -r) 2>/dev/null || echo unknown`
1255uname -s = `(uname -s) 2>/dev/null || echo unknown`
1256uname -v = `(uname -v) 2>/dev/null || echo unknown`
1257
1258/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1259/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1260
1261/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1262/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1263/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1264hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1265/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1266/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1267/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1268
1269_ASUNAME
1270
1271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1272for as_dir in $PATH
1273do
1274  IFS=$as_save_IFS
1275  test -z "$as_dir" && as_dir=.
1276  echo "PATH: $as_dir"
1277done
1278
1279} >&5
1280
1281cat >&5 <<_ACEOF
1282
1283
1284## ----------- ##
1285## Core tests. ##
1286## ----------- ##
1287
1288_ACEOF
1289
1290
1291# Keep a trace of the command line.
1292# Strip out --no-create and --no-recursion so they do not pile up.
1293# Strip out --silent because we don't want to record it for future runs.
1294# Also quote any args containing shell meta-characters.
1295# Make two passes to allow for proper duplicate-argument suppression.
1296ac_configure_args=
1297ac_configure_args0=
1298ac_configure_args1=
1299ac_sep=
1300ac_must_keep_next=false
1301for ac_pass in 1 2
1302do
1303  for ac_arg
1304  do
1305    case $ac_arg in
1306    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1307    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1308    | -silent | --silent | --silen | --sile | --sil)
1309      continue ;;
1310    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1312    esac
1313    case $ac_pass in
1314    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1315    2)
1316      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1317      if test $ac_must_keep_next = true; then
1318        ac_must_keep_next=false # Got value, back to normal.
1319      else
1320        case $ac_arg in
1321          *=* | --config-cache | -C | -disable-* | --disable-* \
1322          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1323          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1324          | -with-* | --with-* | -without-* | --without-* | --x)
1325            case "$ac_configure_args0 " in
1326              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1327            esac
1328            ;;
1329          -* ) ac_must_keep_next=true ;;
1330        esac
1331      fi
1332      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1333      # Get rid of the leading space.
1334      ac_sep=" "
1335      ;;
1336    esac
1337  done
1338done
1339$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1340$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1341
1342# When interrupted or exit'd, cleanup temporary files, and complete
1343# config.log.  We remove comments because anyway the quotes in there
1344# would cause problems or look ugly.
1345# WARNING: Be sure not to use single quotes in there, as some shells,
1346# such as our DU 5.0 friend, will then `close' the trap.
1347trap 'exit_status=$?
1348  # Save into config.log some information that might help in debugging.
1349  {
1350    echo
1351
1352    cat <<\_ASBOX
1353## ---------------- ##
1354## Cache variables. ##
1355## ---------------- ##
1356_ASBOX
1357    echo
1358    # The following way of writing the cache mishandles newlines in values,
1359{
1360  (set) 2>&1 |
1361    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1362    *ac_space=\ *)
1363      sed -n \
1364        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1365          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1366      ;;
1367    *)
1368      sed -n \
1369        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1370      ;;
1371    esac;
1372}
1373    echo
1374
1375    cat <<\_ASBOX
1376## ----------------- ##
1377## Output variables. ##
1378## ----------------- ##
1379_ASBOX
1380    echo
1381    for ac_var in $ac_subst_vars
1382    do
1383      eval ac_val=$`echo $ac_var`
1384      echo "$ac_var='"'"'$ac_val'"'"'"
1385    done | sort
1386    echo
1387
1388    if test -n "$ac_subst_files"; then
1389      cat <<\_ASBOX
1390## ------------- ##
1391## Output files. ##
1392## ------------- ##
1393_ASBOX
1394      echo
1395      for ac_var in $ac_subst_files
1396      do
1397        eval ac_val=$`echo $ac_var`
1398        echo "$ac_var='"'"'$ac_val'"'"'"
1399      done | sort
1400      echo
1401    fi
1402
1403    if test -s confdefs.h; then
1404      cat <<\_ASBOX
1405## ----------- ##
1406## confdefs.h. ##
1407## ----------- ##
1408_ASBOX
1409      echo
1410      sed "/^$/d" confdefs.h | sort
1411      echo
1412    fi
1413    test "$ac_signal" != 0 &&
1414      echo "$as_me: caught signal $ac_signal"
1415    echo "$as_me: exit $exit_status"
1416  } >&5
1417  rm -f core *.core &&
1418  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1419    exit $exit_status
1420     ' 0
1421for ac_signal in 1 2 13 15; do
1422  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1423done
1424ac_signal=0
1425
1426# confdefs.h avoids OS command line length limits that DEFS can exceed.
1427rm -rf conftest* confdefs.h
1428# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1429echo >confdefs.h
1430
1431# Predefined preprocessor variables.
1432
1433cat >>confdefs.h <<_ACEOF
1434#define PACKAGE_NAME "$PACKAGE_NAME"
1435_ACEOF
1436
1437
1438cat >>confdefs.h <<_ACEOF
1439#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1440_ACEOF
1441
1442
1443cat >>confdefs.h <<_ACEOF
1444#define PACKAGE_VERSION "$PACKAGE_VERSION"
1445_ACEOF
1446
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_STRING "$PACKAGE_STRING"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1455_ACEOF
1456
1457
1458# Let the site file select an alternate cache file if it wants to.
1459# Prefer explicitly selected file to automatically selected ones.
1460if test -z "$CONFIG_SITE"; then
1461  if test "x$prefix" != xNONE; then
1462    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1463  else
1464    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1465  fi
1466fi
1467for ac_site_file in $CONFIG_SITE; do
1468  if test -r "$ac_site_file"; then
1469    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1470echo "$as_me: loading site script $ac_site_file" >&6;}
1471    sed 's/^/| /' "$ac_site_file" >&5
1472    . "$ac_site_file"
1473  fi
1474done
1475
1476if test -r "$cache_file"; then
1477  # Some versions of bash will fail to source /dev/null (special
1478  # files actually), so we avoid doing that.
1479  if test -f "$cache_file"; then
1480    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1481echo "$as_me: loading cache $cache_file" >&6;}
1482    case $cache_file in
1483      [\\/]* | ?:[\\/]* ) . $cache_file;;
1484      *)                      . ./$cache_file;;
1485    esac
1486  fi
1487else
1488  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1489echo "$as_me: creating cache $cache_file" >&6;}
1490  >$cache_file
1491fi
1492
1493# Check that the precious variables saved in the cache have kept the same
1494# value.
1495ac_cache_corrupted=false
1496for ac_var in `(set) 2>&1 |
1497               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1498  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1499  eval ac_new_set=\$ac_env_${ac_var}_set
1500  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1501  eval ac_new_val="\$ac_env_${ac_var}_value"
1502  case $ac_old_set,$ac_new_set in
1503    set,)
1504      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1505echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1506      ac_cache_corrupted=: ;;
1507    ,set)
1508      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1509echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1510      ac_cache_corrupted=: ;;
1511    ,);;
1512    *)
1513      if test "x$ac_old_val" != "x$ac_new_val"; then
1514        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1515echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1516        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1517echo "$as_me:   former value:  $ac_old_val" >&2;}
1518        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1519echo "$as_me:   current value: $ac_new_val" >&2;}
1520        ac_cache_corrupted=:
1521      fi;;
1522  esac
1523  # Pass precious variables to config.status.
1524  if test "$ac_new_set" = set; then
1525    case $ac_new_val in
1526    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1527      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1528    *) ac_arg=$ac_var=$ac_new_val ;;
1529    esac
1530    case " $ac_configure_args " in
1531      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1532      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1533    esac
1534  fi
1535done
1536if $ac_cache_corrupted; then
1537  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1538echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1539  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1540echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1541   { (exit 1); exit 1; }; }
1542fi
1543
1544ac_ext=c
1545ac_cpp='$CPP $CPPFLAGS'
1546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1548ac_compiler_gnu=$ac_cv_c_compiler_gnu
1549
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# List one file in the package so that the configure script can test
1580# whether the package is actually there
1581
1582
1583# Where should everything be installed by default?  Here, we want it
1584# to be installed directly in 'bin', 'lib', 'include' subdirectories
1585# of the directory where configure is run.  The default would be
1586# /usr/local.
1587
1588
1589#############################################################################
1590#                         Standard build tool stuff                         #
1591#############################################################################
1592
1593# Get the system type
1594ac_aux_dir=
1595for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1596  if test -f $ac_dir/install-sh; then
1597    ac_aux_dir=$ac_dir
1598    ac_install_sh="$ac_aux_dir/install-sh -c"
1599    break
1600  elif test -f $ac_dir/install.sh; then
1601    ac_aux_dir=$ac_dir
1602    ac_install_sh="$ac_aux_dir/install.sh -c"
1603    break
1604  elif test -f $ac_dir/shtool; then
1605    ac_aux_dir=$ac_dir
1606    ac_install_sh="$ac_aux_dir/shtool install -c"
1607    break
1608  fi
1609done
1610if test -z "$ac_aux_dir"; then
1611  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1612echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1613   { (exit 1); exit 1; }; }
1614fi
1615ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1616ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1617ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1618
1619# Make sure we can run config.sub.
1620$ac_config_sub sun4 >/dev/null 2>&1 ||
1621  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623   { (exit 1); exit 1; }; }
1624
1625echo "$as_me:$LINENO: checking build system type" >&5
1626echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627if test "${ac_cv_build+set}" = set; then
1628  echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630  ac_cv_build_alias=$build_alias
1631test -z "$ac_cv_build_alias" &&
1632  ac_cv_build_alias=`$ac_config_guess`
1633test -z "$ac_cv_build_alias" &&
1634  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636   { (exit 1); exit 1; }; }
1637ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640   { (exit 1); exit 1; }; }
1641
1642fi
1643echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644echo "${ECHO_T}$ac_cv_build" >&6
1645build=$ac_cv_build
1646build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651
1652# A bit of initial setup.
1653# Initialize the ADDLIBS variable
1654ADDLIBS="-lm $LIBS"
1655
1656
1657# As backup, we make sure we don't loose an FLIBS if it has been set
1658# by the user
1659save_FLIBS="$FLIBS"
1660
1661# Initialize the FADDLIBS variable (which is to be used with a fortran
1662# compiler and will not include FLIBS)
1663FADDLIBS="$LIBS"
1664
1665
1666# A useful makefile conditional that is always false
1667
1668
1669if false; then
1670  ALWAYS_FALSE_TRUE=
1671  ALWAYS_FALSE_FALSE='#'
1672else
1673  ALWAYS_FALSE_TRUE='#'
1674  ALWAYS_FALSE_FALSE=
1675fi
1676
1677
1678#Set the project's version number
1679if test "x" != x; then
1680
1681cat >>confdefs.h <<_ACEOF
1682#define _VERSION "$PACKAGE_VERSION"
1683_ACEOF
1684
1685fi
1686
1687#Set the project's SVN revision number
1688# Extract the first word of "svnversion", so it can be a program name with args.
1689set dummy svnversion; ac_word=$2
1690echo "$as_me:$LINENO: checking for $ac_word" >&5
1691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692if test "${ac_cv_prog_have_svnversion+set}" = set; then
1693  echo $ECHO_N "(cached) $ECHO_C" >&6
1694else
1695  if test -n "$have_svnversion"; then
1696  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1697else
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701  IFS=$as_save_IFS
1702  test -z "$as_dir" && as_dir=.
1703  for ac_exec_ext in '' $ac_executable_extensions; do
1704  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705    ac_cv_prog_have_svnversion="yes"
1706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707    break 2
1708  fi
1709done
1710done
1711
1712  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1713fi
1714fi
1715have_svnversion=$ac_cv_prog_have_svnversion
1716if test -n "$have_svnversion"; then
1717  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1718echo "${ECHO_T}$have_svnversion" >&6
1719else
1720  echo "$as_me:$LINENO: result: no" >&5
1721echo "${ECHO_T}no" >&6
1722fi
1723
1724if test "x$have_svnversion" = xyes && test "x" != x; then
1725
1726  _SVN_REV=`cd $srcdir/$coin_has_ ; svnversion`
1727  if test $_SVN_REV != exported; then
1728
1729cat >>confdefs.h <<_ACEOF
1730#define _SVN_REV "$_SVN_REV"
1731_ACEOF
1732
1733  fi
1734fi
1735
1736# We set the following variable so that we know later in AC_COIN_FINALIZE
1737# that we are in a project main directory
1738coin_projectdir=yes
1739
1740# Check if a library version is set for libtool
1741
1742
1743
1744# Turn off warnings and pedantic mode since they could make trouble on some
1745# platforms, and we can't fix issues in third-party code.
1746coin_skip_warn_cflags=yes
1747
1748# Check if user wants to produce debugging code
1749
1750echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1751echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1752
1753# Check whether --enable-debug or --disable-debug was given.
1754if test "${enable_debug+set}" = set; then
1755  enableval="$enable_debug"
1756  case "${enableval}" in
1757   yes) coin_debug_compile=true
1758        if test "${enable_shared+set}" = set; then :; else
1759          enable_shared=no
1760        fi
1761        ;;
1762   no)  coin_debug_compile=false
1763        ;;
1764   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1765echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1766   { (exit 1); exit 1; }; }
1767        ;;
1768esac
1769else
1770  coin_debug_compile=false
1771fi;
1772
1773# Check whether --enable-debug-asl or --disable-debug-asl was given.
1774if test "${enable_debug_asl+set}" = set; then
1775  enableval="$enable_debug_asl"
1776  case "${enableval}" in
1777    yes) coin_debug_compile=true
1778         enable_shared=no
1779         ;;
1780    no)  coin_debug_compile=false
1781         ;;
1782    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-asl" >&5
1783echo "$as_me: error: bad value ${enableval} for --enable-debug-asl" >&2;}
1784   { (exit 1); exit 1; }; }
1785         ;;
1786 esac
1787else
1788  :
1789fi;
1790
1791 # m4_ifvaln([ASL],
1792
1793if test $coin_debug_compile = true; then
1794  echo "$as_me:$LINENO: result: yes" >&5
1795echo "${ECHO_T}yes" >&6
1796else
1797  echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799fi
1800
1801
1802# Check whether --with-asl-verbosity or --without-asl-verbosity was given.
1803if test "${with_asl_verbosity+set}" = set; then
1804  withval="$with_asl_verbosity"
1805  if test "$withval" = yes; then
1806                withval=1
1807              fi
1808              coin_asl_verbosity=$withval
1809else
1810  coin_asl_verbosity=0
1811fi;
1812
1813cat >>confdefs.h <<_ACEOF
1814#define COIN_ASL_VERBOSITY $coin_asl_verbosity
1815_ACEOF
1816
1817
1818
1819# Check whether --with-asl-checklevel or --without-asl-checklevel was given.
1820if test "${with_asl_checklevel+set}" = set; then
1821  withval="$with_asl_checklevel"
1822  if test "$withval" = yes; then
1823                withval=1
1824              fi
1825              coin_asl_checklevel=$withval
1826else
1827  coin_asl_checklevel=0
1828fi;
1829
1830cat >>confdefs.h <<_ACEOF
1831#define COIN_ASL_CHECKLEVEL $coin_asl_checklevel
1832_ACEOF
1833
1834
1835# We use the following variable to have a string with the upper case
1836# version of the project name
1837COIN_PRJCT=ASL
1838
1839
1840 # m4_ifvaln([ASL],
1841
1842
1843
1844# We need egrep and ln -s somewhere
1845echo "$as_me:$LINENO: checking for egrep" >&5
1846echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1847if test "${ac_cv_prog_egrep+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1851    then ac_cv_prog_egrep='grep -E'
1852    else ac_cv_prog_egrep='egrep'
1853    fi
1854fi
1855echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1856echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1857 EGREP=$ac_cv_prog_egrep
1858
1859
1860echo "$as_me:$LINENO: checking whether ln -s works" >&5
1861echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1862LN_S=$as_ln_s
1863if test "$LN_S" = "ln -s"; then
1864  echo "$as_me:$LINENO: result: yes" >&5
1865echo "${ECHO_T}yes" >&6
1866else
1867  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1868echo "${ECHO_T}no, using $LN_S" >&6
1869fi
1870
1871
1872# Get the name of the C compiler and compiler flags
1873case $build in
1874  *-mingw*)
1875    if test "${LD+set}" = set; then :; else
1876      LD=link
1877    fi
1878    ;;
1879 esac
1880 case $enable_doscompile in
1881   msvc)
1882     if test "x${LD+set}" = xset; then :; else
1883       LD=link
1884     fi
1885     ;;
1886 esac
1887
1888
1889 # Check whether --enable-doscompile or --disable-doscompile was given.
1890if test "${enable_doscompile+set}" = set; then
1891  enableval="$enable_doscompile"
1892  if test "$enable_doscompile" != no; then
1893     case $build in
1894       *-cygwin* | *-mingw*) ;;
1895       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1896echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1897   { (exit 1); exit 1; }; } ;;
1898     esac
1899   fi
1900else
1901  enable_doscompile=no
1902fi;
1903 case "$enable_doscompile" in
1904   mingw)
1905     case $build in
1906       *-mingw*) enable_doscompile=no ;;
1907     esac
1908     ;;
1909   msvc|no) ;;
1910   yes) enable_doscompile=mingw ;;
1911   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1912                    Try configure --help=recursive." >&5
1913echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1914                    Try configure --help=recursive." >&2;}
1915   { (exit 1); exit 1; }; }
1916      ;;
1917  esac
1918  if test "$enable_doscompile" != no ; then
1919    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1920echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1921  fi
1922
1923
1924
1925
1926ac_ext=c
1927ac_cpp='$CPP $CPPFLAGS'
1928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931
1932
1933# For consistency, we set the C compiler to the same value of the C++
1934# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1935if test x"$CXX" != x; then
1936  case "$CXX" in
1937    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1938      if test x"$CC" = x; then
1939        CC="$CXX"
1940        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1941echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1942      fi
1943      ;;
1944  esac
1945fi
1946
1947
1948
1949
1950
1951
1952coin_has_cc=yes
1953
1954save_cflags="$CFLAGS"
1955
1956# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1957# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1958# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1959# compiler. In this case, put cc after gcc.
1960
1961case $build in
1962  *-cygwin* | *-mingw*)
1963             if test "$enable_doscompile" = msvc ; then
1964               comps="icl cl"
1965             else
1966               comps="gcc cl"
1967             fi ;;
1968  *-*-solaris*)
1969             # Extract the first word of "cc", so it can be a program name with args.
1970set dummy cc; ac_word=$2
1971echo "$as_me:$LINENO: checking for $ac_word" >&5
1972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1974  echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
1976  if test -n "$sol_cc_compiler"; then
1977  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1978else
1979  ac_prog_rejected=no
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983  IFS=$as_save_IFS
1984  test -z "$as_dir" && as_dir=.
1985  for ac_exec_ext in '' $ac_executable_extensions; do
1986  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1988       ac_prog_rejected=yes
1989       continue
1990     fi
1991    ac_cv_prog_sol_cc_compiler="cc"
1992    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993    break 2
1994  fi
1995done
1996done
1997
1998if test $ac_prog_rejected = yes; then
1999  # We found a bogon in the path, so make sure we never use it.
2000  set dummy $ac_cv_prog_sol_cc_compiler
2001  shift
2002  if test $# != 0; then
2003    # We chose a different compiler from the bogus one.
2004    # However, it has the same basename, so the bogon will be chosen
2005    # first if we set sol_cc_compiler to just the basename; use the full file name.
2006    shift
2007    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2008  fi
2009fi
2010fi
2011fi
2012sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2013if test -n "$sol_cc_compiler"; then
2014  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2015echo "${ECHO_T}$sol_cc_compiler" >&6
2016else
2017  echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
2021             if test "$sol_cc_compiler" = "cc" ; then
2022               comps="cc xlc gcc pgcc icc"
2023             else
2024               comps="xlc gcc pgcc icc cc"
2025             fi
2026             ;;
2027  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2028  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2029esac
2030
2031# We delete the cached value, since the test might not have been
2032# performed with our choice of compilers earlier
2033$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2034# AC_MSG_NOTICE([C compiler candidates: $comps])
2035ac_ext=c
2036ac_cpp='$CPP $CPPFLAGS'
2037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040if test -n "$ac_tool_prefix"; then
2041  for ac_prog in $comps
2042  do
2043    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045echo "$as_me:$LINENO: checking for $ac_word" >&5
2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047if test "${ac_cv_prog_CC+set}" = set; then
2048  echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
2050  if test -n "$CC"; then
2051  ac_cv_prog_CC="$CC" # Let the user override the test.
2052else
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056  IFS=$as_save_IFS
2057  test -z "$as_dir" && as_dir=.
2058  for ac_exec_ext in '' $ac_executable_extensions; do
2059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062    break 2
2063  fi
2064done
2065done
2066
2067fi
2068fi
2069CC=$ac_cv_prog_CC
2070if test -n "$CC"; then
2071  echo "$as_me:$LINENO: result: $CC" >&5
2072echo "${ECHO_T}$CC" >&6
2073else
2074  echo "$as_me:$LINENO: result: no" >&5
2075echo "${ECHO_T}no" >&6
2076fi
2077
2078    test -n "$CC" && break
2079  done
2080fi
2081if test -z "$CC"; then
2082  ac_ct_CC=$CC
2083  for ac_prog in $comps
2084do
2085  # Extract the first word of "$ac_prog", so it can be a program name with args.
2086set dummy $ac_prog; ac_word=$2
2087echo "$as_me:$LINENO: checking for $ac_word" >&5
2088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090  echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
2092  if test -n "$ac_ct_CC"; then
2093  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094else
2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096for as_dir in $PATH
2097do
2098  IFS=$as_save_IFS
2099  test -z "$as_dir" && as_dir=.
2100  for ac_exec_ext in '' $ac_executable_extensions; do
2101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102    ac_cv_prog_ac_ct_CC="$ac_prog"
2103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104    break 2
2105  fi
2106done
2107done
2108
2109fi
2110fi
2111ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112if test -n "$ac_ct_CC"; then
2113  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114echo "${ECHO_T}$ac_ct_CC" >&6
2115else
2116  echo "$as_me:$LINENO: result: no" >&5
2117echo "${ECHO_T}no" >&6
2118fi
2119
2120  test -n "$ac_ct_CC" && break
2121done
2122
2123  CC=$ac_ct_CC
2124fi
2125
2126
2127test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2128See \`config.log' for more details." >&5
2129echo "$as_me: error: no acceptable C compiler found in \$PATH
2130See \`config.log' for more details." >&2;}
2131   { (exit 1); exit 1; }; }
2132
2133# Provide some information about the compiler.
2134echo "$as_me:$LINENO:" \
2135     "checking for C compiler version" >&5
2136ac_compiler=`set X $ac_compile; echo $2`
2137{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2138  (eval $ac_compiler --version </dev/null >&5) 2>&5
2139  ac_status=$?
2140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141  (exit $ac_status); }
2142{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2143  (eval $ac_compiler -v </dev/null >&5) 2>&5
2144  ac_status=$?
2145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146  (exit $ac_status); }
2147{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2148  (eval $ac_compiler -V </dev/null >&5) 2>&5
2149  ac_status=$?
2150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151  (exit $ac_status); }
2152
2153cat >conftest.$ac_ext <<_ACEOF
2154/* confdefs.h.  */
2155_ACEOF
2156cat confdefs.h >>conftest.$ac_ext
2157cat >>conftest.$ac_ext <<_ACEOF
2158/* end confdefs.h.  */
2159
2160int
2161main ()
2162{
2163
2164  ;
2165  return 0;
2166}
2167_ACEOF
2168ac_clean_files_save=$ac_clean_files
2169ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170# Try to create an executable without -o first, disregard a.out.
2171# It will help us diagnose broken compilers, and finding out an intuition
2172# of exeext.
2173echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2175ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2176if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2177  (eval $ac_link_default) 2>&5
2178  ac_status=$?
2179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180  (exit $ac_status); }; then
2181  # Find the output, starting from the most likely.  This scheme is
2182# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2183# resort.
2184
2185# Be careful to initialize this variable, since it used to be cached.
2186# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2187ac_cv_exeext=
2188# b.out is created by i960 compilers.
2189for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2190do
2191  test -f "$ac_file" || continue
2192  case $ac_file in
2193    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2194        ;;
2195    conftest.$ac_ext )
2196        # This is the source file.
2197        ;;
2198    [ab].out )
2199        # We found the default executable, but exeext='' is most
2200        # certainly right.
2201        break;;
2202    *.* )
2203        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204        # FIXME: I believe we export ac_cv_exeext for Libtool,
2205        # but it would be cool to find out if it's true.  Does anybody
2206        # maintain Libtool? --akim.
2207        export ac_cv_exeext
2208        break;;
2209    * )
2210        break;;
2211  esac
2212done
2213else
2214  echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2218See \`config.log' for more details." >&5
2219echo "$as_me: error: C compiler cannot create executables
2220See \`config.log' for more details." >&2;}
2221   { (exit 77); exit 77; }; }
2222fi
2223
2224ac_exeext=$ac_cv_exeext
2225echo "$as_me:$LINENO: result: $ac_file" >&5
2226echo "${ECHO_T}$ac_file" >&6
2227
2228# Check the compiler produces executables we can run.  If not, either
2229# the compiler is broken, or we cross compile.
2230echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2231echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2232# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2233# If not cross compiling, check that we can run a simple program.
2234if test "$cross_compiling" != yes; then
2235  if { ac_try='./$ac_file'
2236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237  (eval $ac_try) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }; }; then
2241    cross_compiling=no
2242  else
2243    if test "$cross_compiling" = maybe; then
2244        cross_compiling=yes
2245    else
2246        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2247If you meant to cross compile, use \`--host'.
2248See \`config.log' for more details." >&5
2249echo "$as_me: error: cannot run C compiled programs.
2250If you meant to cross compile, use \`--host'.
2251See \`config.log' for more details." >&2;}
2252   { (exit 1); exit 1; }; }
2253    fi
2254  fi
2255fi
2256echo "$as_me:$LINENO: result: yes" >&5
2257echo "${ECHO_T}yes" >&6
2258
2259rm -f a.out a.exe conftest$ac_cv_exeext b.out
2260ac_clean_files=$ac_clean_files_save
2261# Check the compiler produces executables we can run.  If not, either
2262# the compiler is broken, or we cross compile.
2263echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2264echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2265echo "$as_me:$LINENO: result: $cross_compiling" >&5
2266echo "${ECHO_T}$cross_compiling" >&6
2267
2268echo "$as_me:$LINENO: checking for suffix of executables" >&5
2269echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2271  (eval $ac_link) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; then
2275  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2277# work properly (i.e., refer to `conftest.exe'), while it won't with
2278# `rm'.
2279for ac_file in conftest.exe conftest conftest.*; do
2280  test -f "$ac_file" || continue
2281  case $ac_file in
2282    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2283    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284          export ac_cv_exeext
2285          break;;
2286    * ) break;;
2287  esac
2288done
2289else
2290  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2291See \`config.log' for more details." >&5
2292echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2293See \`config.log' for more details." >&2;}
2294   { (exit 1); exit 1; }; }
2295fi
2296
2297rm -f conftest$ac_cv_exeext
2298echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2299echo "${ECHO_T}$ac_cv_exeext" >&6
2300
2301rm -f conftest.$ac_ext
2302EXEEXT=$ac_cv_exeext
2303ac_exeext=$EXEEXT
2304echo "$as_me:$LINENO: checking for suffix of object files" >&5
2305echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2306if test "${ac_cv_objext+set}" = set; then
2307  echo $ECHO_N "(cached) $ECHO_C" >&6
2308else
2309  cat >conftest.$ac_ext <<_ACEOF
2310/* confdefs.h.  */
2311_ACEOF
2312cat confdefs.h >>conftest.$ac_ext
2313cat >>conftest.$ac_ext <<_ACEOF
2314/* end confdefs.h.  */
2315
2316int
2317main ()
2318{
2319
2320  ;
2321  return 0;
2322}
2323_ACEOF
2324rm -f conftest.o conftest.obj
2325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326  (eval $ac_compile) 2>&5
2327  ac_status=$?
2328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329  (exit $ac_status); }; then
2330  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2331  case $ac_file in
2332    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2333    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334       break;;
2335  esac
2336done
2337else
2338  echo "$as_me: failed program was:" >&5
2339sed 's/^/| /' conftest.$ac_ext >&5
2340
2341{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2342See \`config.log' for more details." >&5
2343echo "$as_me: error: cannot compute suffix of object files: cannot compile
2344See \`config.log' for more details." >&2;}
2345   { (exit 1); exit 1; }; }
2346fi
2347
2348rm -f conftest.$ac_cv_objext conftest.$ac_ext
2349fi
2350echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2351echo "${ECHO_T}$ac_cv_objext" >&6
2352OBJEXT=$ac_cv_objext
2353ac_objext=$OBJEXT
2354echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2355echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2356if test "${ac_cv_c_compiler_gnu+set}" = set; then
2357  echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359  cat >conftest.$ac_ext <<_ACEOF
2360/* confdefs.h.  */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h.  */
2365
2366int
2367main ()
2368{
2369#ifndef __GNUC__
2370       choke me
2371#endif
2372
2373  ;
2374  return 0;
2375}
2376_ACEOF
2377rm -f conftest.$ac_objext
2378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379  (eval $ac_compile) 2>conftest.er1
2380  ac_status=$?
2381  grep -v '^ *+' conftest.er1 >conftest.err
2382  rm -f conftest.er1
2383  cat conftest.err >&5
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); } &&
2386         { ac_try='test -z "$ac_c_werror_flag"
2387                         || test ! -s conftest.err'
2388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389  (eval $ac_try) 2>&5
2390  ac_status=$?
2391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392  (exit $ac_status); }; } &&
2393         { ac_try='test -s conftest.$ac_objext'
2394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395  (eval $ac_try) 2>&5
2396  ac_status=$?
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); }; }; then
2399  ac_compiler_gnu=yes
2400else
2401  echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404ac_compiler_gnu=no
2405fi
2406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408
2409fi
2410echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2411echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2412GCC=`test $ac_compiler_gnu = yes && echo yes`
2413ac_test_CFLAGS=${CFLAGS+set}
2414ac_save_CFLAGS=$CFLAGS
2415CFLAGS="-g"
2416echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2417echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2418if test "${ac_cv_prog_cc_g+set}" = set; then
2419  echo $ECHO_N "(cached) $ECHO_C" >&6
2420else
2421  cat >conftest.$ac_ext <<_ACEOF
2422/* confdefs.h.  */
2423_ACEOF
2424cat confdefs.h >>conftest.$ac_ext
2425cat >>conftest.$ac_ext <<_ACEOF
2426/* end confdefs.h.  */
2427
2428int
2429main ()
2430{
2431
2432  ;
2433  return 0;
2434}
2435_ACEOF
2436rm -f conftest.$ac_objext
2437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438  (eval $ac_compile) 2>conftest.er1
2439  ac_status=$?
2440  grep -v '^ *+' conftest.er1 >conftest.err
2441  rm -f conftest.er1
2442  cat conftest.err >&5
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); } &&
2445         { ac_try='test -z "$ac_c_werror_flag"
2446                         || test ! -s conftest.err'
2447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448  (eval $ac_try) 2>&5
2449  ac_status=$?
2450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451  (exit $ac_status); }; } &&
2452         { ac_try='test -s conftest.$ac_objext'
2453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454  (eval $ac_try) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; }; then
2458  ac_cv_prog_cc_g=yes
2459else
2460  echo "$as_me: failed program was:" >&5
2461sed 's/^/| /' conftest.$ac_ext >&5
2462
2463ac_cv_prog_cc_g=no
2464fi
2465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2466fi
2467echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2468echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2469if test "$ac_test_CFLAGS" = set; then
2470  CFLAGS=$ac_save_CFLAGS
2471elif test $ac_cv_prog_cc_g = yes; then
2472  if test "$GCC" = yes; then
2473    CFLAGS="-g -O2"
2474  else
2475    CFLAGS="-g"
2476  fi
2477else
2478  if test "$GCC" = yes; then
2479    CFLAGS="-O2"
2480  else
2481    CFLAGS=
2482  fi
2483fi
2484echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2485echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2486if test "${ac_cv_prog_cc_stdc+set}" = set; then
2487  echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489  ac_cv_prog_cc_stdc=no
2490ac_save_CC=$CC
2491cat >conftest.$ac_ext <<_ACEOF
2492/* confdefs.h.  */
2493_ACEOF
2494cat confdefs.h >>conftest.$ac_ext
2495cat >>conftest.$ac_ext <<_ACEOF
2496/* end confdefs.h.  */
2497#include <stdarg.h>
2498#include <stdio.h>
2499#include <sys/types.h>
2500#include <sys/stat.h>
2501/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2502struct buf { int x; };
2503FILE * (*rcsopen) (struct buf *, struct stat *, int);
2504static char *e (p, i)
2505     char **p;
2506     int i;
2507{
2508  return p[i];
2509}
2510static char *f (char * (*g) (char **, int), char **p, ...)
2511{
2512  char *s;
2513  va_list v;
2514  va_start (v,p);
2515  s = g (p, va_arg (v,int));
2516  va_end (v);
2517  return s;
2518}
2519
2520/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2521   function prototypes and stuff, but not '\xHH' hex character constants.
2522   These don't provoke an error unfortunately, instead are silently treated
2523   as 'x'.  The following induces an error, until -std1 is added to get
2524   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2525   array size at least.  It's necessary to write '\x00'==0 to get something
2526   that's true only with -std1.  */
2527int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2528
2529int test (int i, double x);
2530struct s1 {int (*f) (int a);};
2531struct s2 {int (*f) (double a);};
2532int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2533int argc;
2534char **argv;
2535int
2536main ()
2537{
2538return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2539  ;
2540  return 0;
2541}
2542_ACEOF
2543# Don't try gcc -ansi; that turns off useful extensions and
2544# breaks some systems' header files.
2545# AIX                   -qlanglvl=ansi
2546# Ultrix and OSF/1      -std1
2547# HP-UX 10.20 and later -Ae
2548# HP-UX older versions  -Aa -D_HPUX_SOURCE
2549# SVR4                  -Xc -D__EXTENSIONS__
2550for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2551do
2552  CC="$ac_save_CC $ac_arg"
2553  rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555  (eval $ac_compile) 2>conftest.er1
2556  ac_status=$?
2557  grep -v '^ *+' conftest.er1 >conftest.err
2558  rm -f conftest.er1
2559  cat conftest.err >&5
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); } &&
2562         { ac_try='test -z "$ac_c_werror_flag"
2563                         || test ! -s conftest.err'
2564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565  (eval $ac_try) 2>&5
2566  ac_status=$?
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); }; } &&
2569         { ac_try='test -s conftest.$ac_objext'
2570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571  (eval $ac_try) 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); }; }; then
2575  ac_cv_prog_cc_stdc=$ac_arg
2576break
2577else
2578  echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581fi
2582rm -f conftest.err conftest.$ac_objext
2583done
2584rm -f conftest.$ac_ext conftest.$ac_objext
2585CC=$ac_save_CC
2586
2587fi
2588
2589case "x$ac_cv_prog_cc_stdc" in
2590  x|xno)
2591    echo "$as_me:$LINENO: result: none needed" >&5
2592echo "${ECHO_T}none needed" >&6 ;;
2593  *)
2594    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2595echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2596    CC="$CC $ac_cv_prog_cc_stdc" ;;
2597esac
2598
2599# Some people use a C++ compiler to compile C.  Since we use `exit',
2600# in C++ we need to declare it.  In case someone uses the same compiler
2601# for both compiling C and C++ we need to have the C++ compiler decide
2602# the declaration of exit, since it's the most demanding environment.
2603cat >conftest.$ac_ext <<_ACEOF
2604#ifndef __cplusplus
2605  choke me
2606#endif
2607_ACEOF
2608rm -f conftest.$ac_objext
2609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610  (eval $ac_compile) 2>conftest.er1
2611  ac_status=$?
2612  grep -v '^ *+' conftest.er1 >conftest.err
2613  rm -f conftest.er1
2614  cat conftest.err >&5
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); } &&
2617         { ac_try='test -z "$ac_c_werror_flag"
2618                         || test ! -s conftest.err'
2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620  (eval $ac_try) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }; } &&
2624         { ac_try='test -s conftest.$ac_objext'
2625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626  (eval $ac_try) 2>&5
2627  ac_status=$?
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); }; }; then
2630  for ac_declaration in \
2631   '' \
2632   'extern "C" void std::exit (int) throw (); using std::exit;' \
2633   'extern "C" void std::exit (int); using std::exit;' \
2634   'extern "C" void exit (int) throw ();' \
2635   'extern "C" void exit (int);' \
2636   'void exit (int);'
2637do
2638  cat >conftest.$ac_ext <<_ACEOF
2639/* confdefs.h.  */
2640_ACEOF
2641cat confdefs.h >>conftest.$ac_ext
2642cat >>conftest.$ac_ext <<_ACEOF
2643/* end confdefs.h.  */
2644$ac_declaration
2645#include <stdlib.h>
2646int
2647main ()
2648{
2649exit (42);
2650  ;
2651  return 0;
2652}
2653_ACEOF
2654rm -f conftest.$ac_objext
2655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656  (eval $ac_compile) 2>conftest.er1
2657  ac_status=$?
2658  grep -v '^ *+' conftest.er1 >conftest.err
2659  rm -f conftest.er1
2660  cat conftest.err >&5
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); } &&
2663         { ac_try='test -z "$ac_c_werror_flag"
2664                         || test ! -s conftest.err'
2665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666  (eval $ac_try) 2>&5
2667  ac_status=$?
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); }; } &&
2670         { ac_try='test -s conftest.$ac_objext'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; }; then
2676  :
2677else
2678  echo "$as_me: failed program was:" >&5
2679sed 's/^/| /' conftest.$ac_ext >&5
2680
2681continue
2682fi
2683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684  cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h.  */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h.  */
2690$ac_declaration
2691int
2692main ()
2693{
2694exit (42);
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext
2700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701  (eval $ac_compile) 2>conftest.er1
2702  ac_status=$?
2703  grep -v '^ *+' conftest.er1 >conftest.err
2704  rm -f conftest.er1
2705  cat conftest.err >&5
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); } &&
2708         { ac_try='test -z "$ac_c_werror_flag"
2709                         || test ! -s conftest.err'
2710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711  (eval $ac_try) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }; } &&
2715         { ac_try='test -s conftest.$ac_objext'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; }; then
2721  break
2722else
2723  echo "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726fi
2727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728done
2729rm -f conftest*
2730if test -n "$ac_declaration"; then
2731  echo '#ifdef __cplusplus' >>confdefs.h
2732  echo $ac_declaration      >>confdefs.h
2733  echo '#endif'             >>confdefs.h
2734fi
2735
2736else
2737  echo "$as_me: failed program was:" >&5
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
2740fi
2741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742ac_ext=c
2743ac_cpp='$CPP $CPPFLAGS'
2744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747
2748if test -z "$CC" ; then
2749  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2750echo "$as_me: error: Failed to find a C compiler!" >&2;}
2751   { (exit 1); exit 1; }; }
2752fi
2753# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2754case "$CC" in
2755  cl* | */cl* | CL* | */CL* )
2756    if test "$ac_cv_prog_cc_g" = yes ; then
2757      ac_cv_prog_cc_g=no
2758      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2759echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2760    fi ;;
2761esac
2762CFLAGS="$save_cflags"
2763
2764# Check if a project specific CFLAGS variable has been set
2765if test x$COIN_PRJCT != x; then
2766  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2767  if test x$coin_tmp = xset; then
2768    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2769  fi
2770fi
2771
2772if test x"$CFLAGS" = x; then
2773
2774  coin_add_cflags=
2775  coin_opt_cflags=
2776  coin_dbg_cflags=
2777  coin_warn_cflags=
2778
2779  if test "$GCC" = "yes"; then
2780    case "$CC" in
2781      icc* | */icc*)
2782        ;;
2783      *)
2784        coin_opt_cflags="-O3 -fomit-frame-pointer"
2785        coin_add_cflags="-pipe"
2786        coin_dbg_cflags="-g"
2787        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2788        case $build in
2789          *-darwin*)
2790            ;;
2791          *)
2792            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2793            ;;
2794        esac
2795        case $enable_doscompile in
2796          mingw)
2797            CFLAGS="-mno-cygwin"
2798            cat >conftest.$ac_ext <<_ACEOF
2799/* confdefs.h.  */
2800_ACEOF
2801cat confdefs.h >>conftest.$ac_ext
2802cat >>conftest.$ac_ext <<_ACEOF
2803/* end confdefs.h.  */
2804
2805int
2806main ()
2807{
2808int i=0; i++;
2809  ;
2810  return 0;
2811}
2812_ACEOF
2813rm -f conftest.$ac_objext conftest$ac_exeext
2814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2815  (eval $ac_link) 2>conftest.er1
2816  ac_status=$?
2817  grep -v '^ *+' conftest.er1 >conftest.err
2818  rm -f conftest.er1
2819  cat conftest.err >&5
2820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821  (exit $ac_status); } &&
2822         { ac_try='test -z "$ac_c_werror_flag"
2823                         || test ! -s conftest.err'
2824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825  (eval $ac_try) 2>&5
2826  ac_status=$?
2827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828  (exit $ac_status); }; } &&
2829         { ac_try='test -s conftest$ac_exeext'
2830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831  (eval $ac_try) 2>&5
2832  ac_status=$?
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); }; }; then
2835  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2836else
2837  echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
2840fi
2841rm -f conftest.err conftest.$ac_objext \
2842      conftest$ac_exeext conftest.$ac_ext
2843            CFLAGS=
2844          ;;
2845        esac
2846    esac
2847  fi
2848  if test -z "$coin_opt_cflags"; then
2849    case $build in
2850      *-cygwin* | *-mingw*)
2851        case "$CC" in
2852          cl* | */cl* | CL* | */CL*)
2853            coin_opt_cflags='-MT -O2'
2854            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2855            coin_dbg_cflags='-MTd'
2856            ;;
2857          icl* | */icl* | ICL* | */ICL*)
2858            coin_opt_cflags='-MT -Ox'
2859            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2860            coin_dbg_cflags='-MTd -debug'
2861            ;;
2862        esac
2863        ;;
2864      *-linux-*)
2865        case "$CC" in
2866          icc* | */icc*)
2867            coin_opt_cflags="-O3 -ip -mp1"
2868            coin_add_cflags=""
2869            coin_dbg_cflags="-g"
2870            # Check if -i_dynamic is necessary (for new glibc library)
2871            CFLAGS=
2872            cat >conftest.$ac_ext <<_ACEOF
2873/* confdefs.h.  */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h.  */
2878
2879int
2880main ()
2881{
2882int i=0; i++;
2883  ;
2884  return 0;
2885}
2886_ACEOF
2887rm -f conftest.$ac_objext conftest$ac_exeext
2888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2889  (eval $ac_link) 2>conftest.er1
2890  ac_status=$?
2891  grep -v '^ *+' conftest.er1 >conftest.err
2892  rm -f conftest.er1
2893  cat conftest.err >&5
2894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); } &&
2896         { ac_try='test -z "$ac_c_werror_flag"
2897                         || test ! -s conftest.err'
2898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899  (eval $ac_try) 2>&5
2900  ac_status=$?
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); }; } &&
2903         { ac_try='test -s conftest$ac_exeext'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; }; then
2909  :
2910else
2911  echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914coin_add_cflags="-i_dynamic $coin_add_cflags"
2915fi
2916rm -f conftest.err conftest.$ac_objext \
2917      conftest$ac_exeext conftest.$ac_ext
2918            ;;
2919          pgcc* | */pgcc*)
2920            coin_opt_cflags="-fast"
2921            coin_add_cflags="-Kieee -pc 64"
2922            coin_dbg_cflags="-g"
2923            ;;
2924        esac
2925        ;;
2926      *-ibm-*)
2927        case "$CC" in
2928          xlc* | */xlc* | mpxlc* | */mpxlc*)
2929            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2930            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2931            coin_dbg_cflags="-g"
2932          ;;
2933        esac
2934        ;;
2935      *-hp-*)
2936        coin_opt_cflags="-O"
2937        coin_add_cflags="-Ae"
2938        coin_dbg_cflags="-g"
2939        ;;
2940      *-*-solaris*)
2941        coin_opt_cflags="-xO4"
2942        coin_dbg_cflags="-g"
2943        ;;
2944      *-sgi-*)
2945        coin_opt_cflags="-O -OPT:Olimit=0"
2946        coin_dbg_cflags="-g"
2947        ;;
2948    esac
2949  fi
2950
2951  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2952    coin_dbg_cflags="-g"
2953  fi
2954
2955  if test -z "$coin_opt_cflags"; then
2956    # Try if -O option works if nothing else is set
2957    CFLAGS="-O"
2958    cat >conftest.$ac_ext <<_ACEOF
2959/* confdefs.h.  */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h.  */
2964
2965int
2966main ()
2967{
2968int i=0; i++;
2969  ;
2970  return 0;
2971}
2972_ACEOF
2973rm -f conftest.$ac_objext conftest$ac_exeext
2974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2975  (eval $ac_link) 2>conftest.er1
2976  ac_status=$?
2977  grep -v '^ *+' conftest.er1 >conftest.err
2978  rm -f conftest.er1
2979  cat conftest.err >&5
2980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981  (exit $ac_status); } &&
2982         { ac_try='test -z "$ac_c_werror_flag"
2983                         || test ! -s conftest.err'
2984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985  (eval $ac_try) 2>&5
2986  ac_status=$?
2987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988  (exit $ac_status); }; } &&
2989         { ac_try='test -s conftest$ac_exeext'
2990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991  (eval $ac_try) 2>&5
2992  ac_status=$?
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); }; }; then
2995  coin_opt_cflags="-O"
2996else
2997  echo "$as_me: failed program was:" >&5
2998sed 's/^/| /' conftest.$ac_ext >&5
2999
3000fi
3001rm -f conftest.err conftest.$ac_objext \
3002      conftest$ac_exeext conftest.$ac_ext
3003  fi
3004
3005  # if PM doesn't want the warning messages, take them out
3006  if test x"$coin_skip_warn_cflags" = xyes; then
3007    coin_warn_cflags=
3008  fi
3009
3010  if test x${DBG_CFLAGS+set} != xset; then
3011    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3012  fi
3013  if test x${OPT_CFLAGS+set} != xset; then
3014    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3015  fi
3016
3017  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3018  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3019
3020  if test "$coin_debug_compile" = "true"; then
3021    CFLAGS="$DBG_CFLAGS"
3022  else
3023    CFLAGS="$OPT_CFLAGS"
3024  fi
3025else
3026  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3027  if test x${DBG_CFLAGS+set} != xset; then
3028    DBG_CFLAGS="$CFLAGS"
3029  fi
3030  if test x${OPT_CFLAGS+set} != xset; then
3031    OPT_CFLAGS="$CFLAGS"
3032  fi
3033fi
3034
3035# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3036
3037case "$CFLAGS" in
3038  *-mno-cygwin*)
3039    if test x${CPPFLAGS+set} != xset ; then
3040      CPPFLAGS="-mno-cygwin"
3041    else
3042      case "$CPPFLAGS" in
3043        *-mno-cygwin*)
3044          ;;
3045        *)
3046          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3047          ;;
3048      esac
3049    fi ;;
3050esac
3051
3052# Try if CFLAGS works
3053save_CFLAGS="$CFLAGS"
3054cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h.  */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h.  */
3060
3061int
3062main ()
3063{
3064int i=0; i++;
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext conftest$ac_exeext
3070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071  (eval $ac_link) 2>conftest.er1
3072  ac_status=$?
3073  grep -v '^ *+' conftest.er1 >conftest.err
3074  rm -f conftest.er1
3075  cat conftest.err >&5
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); } &&
3078         { ac_try='test -z "$ac_c_werror_flag"
3079                         || test ! -s conftest.err'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; } &&
3085         { ac_try='test -s conftest$ac_exeext'
3086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087  (eval $ac_try) 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; }; then
3091  :
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096CFLAGS=
3097fi
3098rm -f conftest.err conftest.$ac_objext \
3099      conftest$ac_exeext conftest.$ac_ext
3100if test -z "$CFLAGS"; then
3101  { 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
3102echo "$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;}
3103  CFLAGS='-O'
3104  cat >conftest.$ac_ext <<_ACEOF
3105/* confdefs.h.  */
3106_ACEOF
3107cat confdefs.h >>conftest.$ac_ext
3108cat >>conftest.$ac_ext <<_ACEOF
3109/* end confdefs.h.  */
3110
3111int
3112main ()
3113{
3114int i=0; i++;
3115  ;
3116  return 0;
3117}
3118_ACEOF
3119rm -f conftest.$ac_objext conftest$ac_exeext
3120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3121  (eval $ac_link) 2>conftest.er1
3122  ac_status=$?
3123  grep -v '^ *+' conftest.er1 >conftest.err
3124  rm -f conftest.er1
3125  cat conftest.err >&5
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); } &&
3128         { ac_try='test -z "$ac_c_werror_flag"
3129                         || test ! -s conftest.err'
3130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131  (eval $ac_try) 2>&5
3132  ac_status=$?
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }; } &&
3135         { ac_try='test -s conftest$ac_exeext'
3136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137  (eval $ac_try) 2>&5
3138  ac_status=$?
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); }; }; then
3141  :
3142else
3143  echo "$as_me: failed program was:" >&5
3144sed 's/^/| /' conftest.$ac_ext >&5
3145
3146CFLAGS=
3147fi
3148rm -f conftest.err conftest.$ac_objext \
3149      conftest$ac_exeext conftest.$ac_ext
3150  if test -z "$CFLAGS"; then
3151    { 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
3152echo "$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;}
3153  fi
3154fi
3155
3156{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3157echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3158
3159
3160if test x"$MPICC" = x; then :; else
3161  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3162echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3163  CC="$MPICC"
3164fi
3165
3166# Correct ADDLIBS initialization if we are using the MS compiler
3167case "$CC" in
3168  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3169    ADDLIBS=
3170    case $build in
3171  *-mingw*)
3172    if test "${LD+set}" = set; then :; else
3173      LD=link
3174    fi
3175    ;;
3176 esac
3177 case $enable_doscompile in
3178   msvc)
3179     if test "x${LD+set}" = xset; then :; else
3180       LD=link
3181     fi
3182     ;;
3183 esac
3184
3185    ;;
3186esac
3187
3188ac_ext=c
3189ac_cpp='$CPP $CPPFLAGS'
3190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193
3194
3195
3196# Initialize automake and libtool
3197{
3198
3199
3200
3201# START
3202
3203# Test if force_shared has been set
3204if test "x" = xforce_shared; then
3205  if test x$enable_shared = xno; then
3206    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3207echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3208   { (exit 1); exit 1; }; }
3209  fi
3210  enable_shared=yes;
3211else
3212  # On Cygwin and AIX, building DLLs doesn't work
3213  case $build in
3214    *-cygwin*)
3215      coin_disable_shared=yes
3216      platform=Cygwin
3217    ;;
3218    *-aix*)
3219      coin_disable_shared=yes
3220      platform=AIX
3221    ;;
3222    *-mingw*)
3223      coin_disable_shared=yes
3224      platform="Msys"
3225#      case "$CXX" in
3226#        cl*)
3227#          coin_disable_shared=yes
3228#          platform="Msys with cl"
3229#      ;;
3230#      esac
3231    ;;
3232  esac
3233fi
3234if test x"$coin_disable_shared" = xyes; then
3235  if test x"$enable_shared" = xyes; then
3236    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3237echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3238  fi
3239  enable_shared=no
3240fi
3241# By default, we only want the shared objects to be compiled
3242# Check whether --enable-static or --disable-static was given.
3243if test "${enable_static+set}" = set; then
3244  enableval="$enable_static"
3245  p=${PACKAGE-default}
3246    case $enableval in
3247    yes) enable_static=yes ;;
3248    no) enable_static=no ;;
3249    *)
3250     enable_static=no
3251      # Look at the argument we got.  We use all the common list separators.
3252      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3253      for pkg in $enableval; do
3254        IFS="$lt_save_ifs"
3255        if test "X$pkg" = "X$p"; then
3256          enable_static=yes
3257        fi
3258      done
3259      IFS="$lt_save_ifs"
3260      ;;
3261    esac
3262else
3263  enable_static=no
3264fi;
3265
3266
3267
3268
3269# Initialize automake
3270am__api_version="1.9"
3271# Find a good install program.  We prefer a C program (faster),
3272# so one script is as good as another.  But avoid the broken or
3273# incompatible versions:
3274# SysV /etc/install, /usr/sbin/install
3275# SunOS /usr/etc/install
3276# IRIX /sbin/install
3277# AIX /bin/install
3278# AmigaOS /C/install, which installs bootblocks on floppy discs
3279# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3280# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3281# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3282# OS/2's system install, which has a completely different semantic
3283# ./install, which can be erroneously created by make from ./install.sh.
3284echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3285echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3286if test -z "$INSTALL"; then
3287if test "${ac_cv_path_install+set}" = set; then
3288  echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293  IFS=$as_save_IFS
3294  test -z "$as_dir" && as_dir=.
3295  # Account for people who put trailing slashes in PATH elements.
3296case $as_dir/ in
3297  ./ | .// | /cC/* | \
3298  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3299  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3300  /usr/ucb/* ) ;;
3301  *)
3302    # OSF1 and SCO ODT 3.0 have their own names for install.
3303    # Don't use installbsd from OSF since it installs stuff as root
3304    # by default.
3305    for ac_prog in ginstall scoinst install; do
3306      for ac_exec_ext in '' $ac_executable_extensions; do
3307        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3308          if test $ac_prog = install &&
3309            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3310            # AIX install.  It has an incompatible calling convention.
3311            :
3312          elif test $ac_prog = install &&
3313            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3314            # program-specific install script used by HP pwplus--don't use.
3315            :
3316          else
3317            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3318            break 3
3319          fi
3320        fi
3321      done
3322    done
3323    ;;
3324esac
3325done
3326
3327
3328fi
3329  if test "${ac_cv_path_install+set}" = set; then
3330    INSTALL=$ac_cv_path_install
3331  else
3332    # As a last resort, use the slow shell script.  We don't cache a
3333    # path for INSTALL within a source directory, because that will
3334    # break other packages using the cache if that directory is
3335    # removed, or if the path is relative.
3336    INSTALL=$ac_install_sh
3337  fi
3338fi
3339echo "$as_me:$LINENO: result: $INSTALL" >&5
3340echo "${ECHO_T}$INSTALL" >&6
3341
3342# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3343# It thinks the first close brace ends the variable substitution.
3344test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3345
3346test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3347
3348test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3349
3350echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3351echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3352# Just in case
3353sleep 1
3354echo timestamp > conftest.file
3355# Do `set' in a subshell so we don't clobber the current shell's
3356# arguments.  Must try -L first in case configure is actually a
3357# symlink; some systems play weird games with the mod time of symlinks
3358# (eg FreeBSD returns the mod time of the symlink's containing
3359# directory).
3360if (
3361   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3362   if test "$*" = "X"; then
3363      # -L didn't work.
3364      set X `ls -t $srcdir/configure conftest.file`
3365   fi
3366   rm -f conftest.file
3367   if test "$*" != "X $srcdir/configure conftest.file" \
3368      && test "$*" != "X conftest.file $srcdir/configure"; then
3369
3370      # If neither matched, then we have a broken ls.  This can happen
3371      # if, for instance, CONFIG_SHELL is bash and it inherits a
3372      # broken ls alias from the environment.  This has actually
3373      # happened.  Such a system could not be considered "sane".
3374      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3375alias in your environment" >&5
3376echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3377alias in your environment" >&2;}
3378   { (exit 1); exit 1; }; }
3379   fi
3380
3381   test "$2" = conftest.file
3382   )
3383then
3384   # Ok.
3385   :
3386else
3387   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3388Check your system clock" >&5
3389echo "$as_me: error: newly created file is older than distributed files!
3390Check your system clock" >&2;}
3391   { (exit 1); exit 1; }; }
3392fi
3393echo "$as_me:$LINENO: result: yes" >&5
3394echo "${ECHO_T}yes" >&6
3395test "$program_prefix" != NONE &&
3396  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3397# Use a double $ so make ignores it.
3398test "$program_suffix" != NONE &&
3399  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3400# Double any \ or $.  echo might interpret backslashes.
3401# By default was `s,x,x', remove it if useless.
3402cat <<\_ACEOF >conftest.sed
3403s/[\\$]/&&/g;s/;s,x,x,$//
3404_ACEOF
3405program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3406rm conftest.sed
3407
3408# expand $ac_aux_dir to an absolute path
3409am_aux_dir=`cd $ac_aux_dir && pwd`
3410
3411test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3412# Use eval to expand $SHELL
3413if eval "$MISSING --run true"; then
3414  am_missing_run="$MISSING --run "
3415else
3416  am_missing_run=
3417  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3418echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3419fi
3420
3421if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3422  # We used to keeping the `.' as first argument, in order to
3423  # allow $(mkdir_p) to be used without argument.  As in
3424  #   $(mkdir_p) $(somedir)
3425  # where $(somedir) is conditionally defined.  However this is wrong
3426  # for two reasons:
3427  #  1. if the package is installed by a user who cannot write `.'
3428  #     make install will fail,
3429  #  2. the above comment should most certainly read
3430  #     $(mkdir_p) $(DESTDIR)$(somedir)
3431  #     so it does not work when $(somedir) is undefined and
3432  #     $(DESTDIR) is not.
3433  #  To support the latter case, we have to write
3434  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3435  #  so the `.' trick is pointless.
3436  mkdir_p='mkdir -p --'
3437else
3438  # On NextStep and OpenStep, the `mkdir' command does not
3439  # recognize any option.  It will interpret all options as
3440  # directories to create, and then abort because `.' already
3441  # exists.
3442  for d in ./-p ./--version;
3443  do
3444    test -d $d && rmdir $d
3445  done
3446  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3447  if test -f "$ac_aux_dir/mkinstalldirs"; then
3448    mkdir_p='$(mkinstalldirs)'
3449  else
3450    mkdir_p='$(install_sh) -d'
3451  fi
3452fi
3453
3454for ac_prog in gawk mawk nawk awk
3455do
3456  # Extract the first word of "$ac_prog", so it can be a program name with args.
3457set dummy $ac_prog; ac_word=$2
3458echo "$as_me:$LINENO: checking for $ac_word" >&5
3459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460if test "${ac_cv_prog_AWK+set}" = set; then
3461  echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463  if test -n "$AWK"; then
3464  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3465else
3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467for as_dir in $PATH
3468do
3469  IFS=$as_save_IFS
3470  test -z "$as_dir" && as_dir=.
3471  for ac_exec_ext in '' $ac_executable_extensions; do
3472  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473    ac_cv_prog_AWK="$ac_prog"
3474    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475    break 2
3476  fi
3477done
3478done
3479
3480fi
3481fi
3482AWK=$ac_cv_prog_AWK
3483if test -n "$AWK"; then
3484  echo "$as_me:$LINENO: result: $AWK" >&5
3485echo "${ECHO_T}$AWK" >&6
3486else
3487  echo "$as_me:$LINENO: result: no" >&5
3488echo "${ECHO_T}no" >&6
3489fi
3490
3491  test -n "$AWK" && break
3492done
3493
3494echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3495echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3496set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3497if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3498  echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500  cat >conftest.make <<\_ACEOF
3501all:
3502        @echo 'ac_maketemp="$(MAKE)"'
3503_ACEOF
3504# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3505eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3506if test -n "$ac_maketemp"; then
3507  eval ac_cv_prog_make_${ac_make}_set=yes
3508else
3509  eval ac_cv_prog_make_${ac_make}_set=no
3510fi
3511rm -f conftest.make
3512fi
3513if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3514  echo "$as_me:$LINENO: result: yes" >&5
3515echo "${ECHO_T}yes" >&6
3516  SET_MAKE=
3517else
3518  echo "$as_me:$LINENO: result: no" >&5
3519echo "${ECHO_T}no" >&6
3520  SET_MAKE="MAKE=${MAKE-make}"
3521fi
3522
3523rm -rf .tst 2>/dev/null
3524mkdir .tst 2>/dev/null
3525if test -d .tst; then
3526  am__leading_dot=.
3527else
3528  am__leading_dot=_
3529fi
3530rmdir .tst 2>/dev/null
3531
3532DEPDIR="${am__leading_dot}deps"
3533
3534          ac_config_commands="$ac_config_commands depfiles"
3535
3536
3537am_make=${MAKE-make}
3538cat > confinc << 'END'
3539am__doit:
3540        @echo done
3541.PHONY: am__doit
3542END
3543# If we don't find an include directive, just comment out the code.
3544echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3545echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3546am__include="#"
3547am__quote=
3548_am_result=none
3549# First try GNU make style include.
3550echo "include confinc" > confmf
3551# We grep out `Entering directory' and `Leaving directory'
3552# messages which can occur if `w' ends up in MAKEFLAGS.
3553# In particular we don't look at `^make:' because GNU make might
3554# be invoked under some other name (usually "gmake"), in which
3555# case it prints its new name instead of `make'.
3556if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3557   am__include=include
3558   am__quote=
3559   _am_result=GNU
3560fi
3561# Now try BSD make style include.
3562if test "$am__include" = "#"; then
3563   echo '.include "confinc"' > confmf
3564   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3565      am__include=.include
3566      am__quote="\""
3567      _am_result=BSD
3568   fi
3569fi
3570
3571
3572echo "$as_me:$LINENO: result: $_am_result" >&5
3573echo "${ECHO_T}$_am_result" >&6
3574rm -f confinc confmf
3575
3576# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3577if test "${enable_dependency_tracking+set}" = set; then
3578  enableval="$enable_dependency_tracking"
3579
3580fi;
3581if test "x$enable_dependency_tracking" != xno; then
3582  am_depcomp="$ac_aux_dir/depcomp"
3583  AMDEPBACKSLASH='\'
3584fi
3585
3586
3587if test "x$enable_dependency_tracking" != xno; then
3588  AMDEP_TRUE=
3589  AMDEP_FALSE='#'
3590else
3591  AMDEP_TRUE='#'
3592  AMDEP_FALSE=
3593fi
3594
3595
3596
3597
3598
3599# AC_MSG_NOTICE([Beginning automake initialisation.])
3600# Stuff for automake
3601# test to see if srcdir already configured
3602if test "`cd $srcdir && pwd`" != "`pwd`" &&
3603   test -f $srcdir/config.status; then
3604  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3605echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3606   { (exit 1); exit 1; }; }
3607fi
3608
3609# test whether we have cygpath
3610if test -z "$CYGPATH_W"; then
3611  if (cygpath --version) >/dev/null 2>/dev/null; then
3612    CYGPATH_W='cygpath -w'
3613  else
3614    CYGPATH_W=echo
3615  fi
3616fi
3617
3618
3619# Define the identity of the package.
3620 PACKAGE='thirdpartyasl'
3621 VERSION='1.0trunk'
3622
3623
3624cat >>confdefs.h <<_ACEOF
3625#define PACKAGE "$PACKAGE"
3626_ACEOF
3627
3628
3629cat >>confdefs.h <<_ACEOF
3630#define VERSION "$VERSION"
3631_ACEOF
3632
3633# Some tools Automake needs.
3634
3635ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3636
3637
3638AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3639
3640
3641AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3642
3643
3644AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3645
3646
3647MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3648
3649install_sh=${install_sh-"$am_aux_dir/install-sh"}
3650
3651# Installed binaries are usually stripped using `strip' when the user
3652# run `make install-strip'.  However `strip' might not be the right
3653# tool to use in cross-compilation environments, therefore Automake
3654# will honor the `STRIP' environment variable to overrule this program.
3655if test "$cross_compiling" != no; then
3656  if test -n "$ac_tool_prefix"; then
3657  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3658set dummy ${ac_tool_prefix}strip; ac_word=$2
3659echo "$as_me:$LINENO: checking for $ac_word" >&5
3660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3661if test "${ac_cv_prog_STRIP+set}" = set; then
3662  echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
3664  if test -n "$STRIP"; then
3665  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3666else
3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670  IFS=$as_save_IFS
3671  test -z "$as_dir" && as_dir=.
3672  for ac_exec_ext in '' $ac_executable_extensions; do
3673  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676    break 2
3677  fi
3678done
3679done
3680
3681fi
3682fi
3683STRIP=$ac_cv_prog_STRIP
3684if test -n "$STRIP"; then
3685  echo "$as_me:$LINENO: result: $STRIP" >&5
3686echo "${ECHO_T}$STRIP" >&6
3687else
3688  echo "$as_me:$LINENO: result: no" >&5
3689echo "${ECHO_T}no" >&6
3690fi
3691
3692fi
3693if test -z "$ac_cv_prog_STRIP"; then
3694  ac_ct_STRIP=$STRIP
3695  # Extract the first word of "strip", so it can be a program name with args.
3696set dummy strip; ac_word=$2
3697echo "$as_me:$LINENO: checking for $ac_word" >&5
3698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3700  echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702  if test -n "$ac_ct_STRIP"; then
3703  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708  IFS=$as_save_IFS
3709  test -z "$as_dir" && as_dir=.
3710  for ac_exec_ext in '' $ac_executable_extensions; do
3711  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712    ac_cv_prog_ac_ct_STRIP="strip"
3713    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714    break 2
3715  fi
3716done
3717done
3718
3719  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3720fi
3721fi
3722ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3723if test -n "$ac_ct_STRIP"; then
3724  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3725echo "${ECHO_T}$ac_ct_STRIP" >&6
3726else
3727  echo "$as_me:$LINENO: result: no" >&5
3728echo "${ECHO_T}no" >&6
3729fi
3730
3731  STRIP=$ac_ct_STRIP
3732else
3733  STRIP="$ac_cv_prog_STRIP"
3734fi
3735
3736fi
3737INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3738
3739# We need awk for the "check" target.  The system "awk" is bad on
3740# some platforms.
3741# Always define AMTAR for backward compatibility.
3742
3743AMTAR=${AMTAR-"${am_missing_run}tar"}
3744
3745am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3746
3747
3748
3749
3750depcc="$CC"   am_compiler_list=
3751
3752echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3753echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3754if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3755  echo $ECHO_N "(cached) $ECHO_C" >&6
3756else
3757  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3758  # We make a subdir and do the tests there.  Otherwise we can end up
3759  # making bogus files that we don't know about and never remove.  For
3760  # instance it was reported that on HP-UX the gcc test will end up
3761  # making a dummy file named `D' -- because `-MD' means `put the output
3762  # in D'.
3763  mkdir conftest.dir
3764  # Copy depcomp to subdir because otherwise we won't find it if we're
3765  # using a relative directory.
3766  cp "$am_depcomp" conftest.dir
3767  cd conftest.dir
3768  # We will build objects and dependencies in a subdirectory because
3769  # it helps to detect inapplicable dependency modes.  For instance
3770  # both Tru64's cc and ICC support -MD to output dependencies as a
3771  # side effect of compilation, but ICC will put the dependencies in
3772  # the current directory while Tru64 will put them in the object
3773  # directory.
3774  mkdir sub
3775
3776  am_cv_CC_dependencies_compiler_type=none
3777  if test "$am_compiler_list" = ""; then
3778     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3779  fi
3780  for depmode in $am_compiler_list; do
3781    # Setup a source with many dependencies, because some compilers
3782    # like to wrap large dependency lists on column 80 (with \), and
3783    # we should not choose a depcomp mode which is confused by this.
3784    #
3785    # We need to recreate these files for each test, as the compiler may
3786    # overwrite some of them when testing with obscure command lines.
3787    # This happens at least with the AIX C compiler.
3788    : > sub/conftest.c
3789    for i in 1 2 3 4 5 6; do
3790      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3791      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3792      # Solaris 8's {/usr,}/bin/sh.
3793      touch sub/conftst$i.h
3794    done
3795    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3796
3797    case $depmode in
3798    nosideeffect)
3799      # after this tag, mechanisms are not by side-effect, so they'll
3800      # only be used when explicitly requested
3801      if test "x$enable_dependency_tracking" = xyes; then
3802        continue
3803      else
3804        break
3805      fi
3806      ;;
3807    none) break ;;
3808    esac
3809    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3810    # mode.  It turns out that the SunPro C++ compiler does not properly
3811    # handle `-M -o', and we need to detect this.
3812    if depmode=$depmode \
3813       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3814       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3815       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3816         >/dev/null 2>conftest.err &&
3817       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3818       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3819       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3820      # icc doesn't choke on unknown options, it will just issue warnings
3821      # or remarks (even with -Werror).  So we grep stderr for any message
3822      # that says an option was ignored or not supported.
3823      # When given -MP, icc 7.0 and 7.1 complain thusly:
3824      #   icc: Command line warning: ignoring option '-M'; no argument required
3825      # The diagnosis changed in icc 8.0:
3826      #   icc: Command line remark: option '-MP' not supported
3827      if (grep 'ignoring option' conftest.err ||
3828          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3829        am_cv_CC_dependencies_compiler_type=$depmode
3830        break
3831      fi
3832    fi
3833  done
3834
3835  cd ..
3836  rm -rf conftest.dir
3837else
3838  am_cv_CC_dependencies_compiler_type=none
3839fi
3840
3841fi
3842echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3843echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3844CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3845
3846
3847
3848if
3849  test "x$enable_dependency_tracking" != xno \
3850  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3851  am__fastdepCC_TRUE=
3852  am__fastdepCC_FALSE='#'
3853else
3854  am__fastdepCC_TRUE='#'
3855  am__fastdepCC_FALSE=
3856fi
3857
3858
3859
3860echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3861echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3862    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3863if test "${enable_maintainer_mode+set}" = set; then
3864  enableval="$enable_maintainer_mode"
3865  USE_MAINTAINER_MODE=$enableval
3866else
3867  USE_MAINTAINER_MODE=no
3868fi;
3869  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3870echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3871
3872
3873if test $USE_MAINTAINER_MODE = yes; then
3874  MAINTAINER_MODE_TRUE=
3875  MAINTAINER_MODE_FALSE='#'
3876else
3877  MAINTAINER_MODE_TRUE='#'
3878  MAINTAINER_MODE_FALSE=
3879fi
3880
3881  MAINT=$MAINTAINER_MODE_TRUE
3882
3883
3884
3885coin_have_externals=no
3886if test "$enable_maintainer_mode" = yes; then
3887
3888  # If maintainer mode is chosen, we make sure that the correct versions
3889  # of the tools are used, and that we know where libtool.m4 is (to
3890  # recreate acinclude.m4)
3891
3892
3893  LIBTOOLM4=
3894  # Normally, $HOME
3895  AUTOTOOLS_DFLT=$HOME
3896
3897  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
3898echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
3899if test "${ac_cv_use_correct_autotools+set}" = set; then
3900  echo $ECHO_N "(cached) $ECHO_C" >&6
3901else
3902  ac_cv_use_correct_autotools=check
3903fi
3904echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
3905echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
3906
3907  if test $ac_cv_use_correct_autotools = check; then
3908    ac_cv_use_correct_autotools=yes
3909    # Check if we have autoconf
3910    # Extract the first word of "autoconf", so it can be a program name with args.
3911set dummy autoconf; ac_word=$2
3912echo "$as_me:$LINENO: checking for $ac_word" >&5
3913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914if test "${ac_cv_prog_have_autoconf+set}" = set; then
3915  echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917  if test -n "$have_autoconf"; then
3918  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
3919else
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923  IFS=$as_save_IFS
3924  test -z "$as_dir" && as_dir=.
3925  for ac_exec_ext in '' $ac_executable_extensions; do
3926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927    ac_cv_prog_have_autoconf="yes"
3928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929    break 2
3930  fi
3931done
3932done
3933
3934  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
3935fi
3936fi
3937have_autoconf=$ac_cv_prog_have_autoconf
3938if test -n "$have_autoconf"; then
3939  echo "$as_me:$LINENO: result: $have_autoconf" >&5
3940echo "${ECHO_T}$have_autoconf" >&6
3941else
3942  echo "$as_me:$LINENO: result: no" >&5
3943echo "${ECHO_T}no" >&6
3944fi
3945
3946    if test $have_autoconf = no; then
3947      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
3948echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
3949   { (exit 1); exit 1; }; }
3950    fi
3951
3952    # Check whether autoconf is the correct version
3953    correct_version='2.59'
3954    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
3955    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
3956echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
3957    autoconf --version > confauto.out 2>&1
3958    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
3959      echo "$as_me:$LINENO: result: yes" >&5
3960echo "${ECHO_T}yes" >&6
3961    else
3962      rm -f confauto.out
3963      echo "$as_me:$LINENO: result: no" >&5
3964echo "${ECHO_T}no" >&6
3965      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
3966echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
3967   { (exit 1); exit 1; }; }
3968    fi
3969    rm -f confauto.out
3970
3971    # Check if the executable autoconf is picked up from the correct location
3972    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
3973echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
3974    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
3975    autoconf_dir=`cd $autoconf_dir; pwd`
3976    if test x$AUTOTOOLS_DIR = x; then
3977      want_dir=$AUTOTOOLS_DFLT/bin
3978    else
3979      want_dir=$AUTOTOOLS_DIR/bin
3980    fi
3981    if test $autoconf_dir = `cd $want_dir; pwd`; then
3982      echo "$as_me:$LINENO: result: yes" >&5
3983echo "${ECHO_T}yes" >&6
3984    else
3985      rm -f confauto.out
3986      echo "$as_me:$LINENO: result: no" >&5
3987echo "${ECHO_T}no" >&6
3988      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
3989echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
3990   { (exit 1); exit 1; }; }
3991    fi
3992
3993    # Check if we have automake
3994    # Extract the first word of "automake", so it can be a program name with args.
3995set dummy automake; ac_word=$2
3996echo "$as_me:$LINENO: checking for $ac_word" >&5
3997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3998if test "${ac_cv_prog_have_automake+set}" = set; then
3999  echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
4001  if test -n "$have_automake"; then
4002  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4003else
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007  IFS=$as_save_IFS
4008  test -z "$as_dir" && as_dir=.
4009  for ac_exec_ext in '' $ac_executable_extensions; do
4010  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011    ac_cv_prog_have_automake="yes"
4012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4013    break 2
4014  fi
4015done
4016done
4017
4018  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4019fi
4020fi
4021have_automake=$ac_cv_prog_have_automake
4022if test -n "$have_automake"; then
4023  echo "$as_me:$LINENO: result: $have_automake" >&5
4024echo "${ECHO_T}$have_automake" >&6
4025else
4026  echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
4028fi
4029
4030    if test $have_automake = no; then
4031      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4032echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4033   { (exit 1); exit 1; }; }
4034    fi
4035
4036    # Check whether automake is the correct version
4037    correct_version='1.9.6'
4038    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4039    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4040echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4041    automake --version > confauto.out 2>&1
4042    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4043      echo "$as_me:$LINENO: result: yes" >&5
4044echo "${ECHO_T}yes" >&6
4045    else
4046      rm -f confauto.out
4047      echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
4049      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4050echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4051   { (exit 1); exit 1; }; }
4052    fi
4053    rm -f confauto.out
4054
4055    # Check if the executable automake is picked up from the correct location
4056    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4057echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4058    automake_dir=`which automake | sed -e 's=/automake=='`
4059    automake_dir=`cd $automake_dir; pwd`
4060    if test x$AUTOTOOLS_DIR = x; then
4061      want_dir=$AUTOTOOLS_DFLT/bin
4062    else
4063      want_dir=$AUTOTOOLS_DIR/bin
4064    fi
4065    if test $automake_dir = `cd $want_dir; pwd`; then
4066      echo "$as_me:$LINENO: result: yes" >&5
4067echo "${ECHO_T}yes" >&6
4068    else
4069      rm -f confauto.out
4070      echo "$as_me:$LINENO: result: no" >&5
4071echo "${ECHO_T}no" >&6
4072      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4073echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4074   { (exit 1); exit 1; }; }
4075    fi
4076
4077    # Check if this is the correct version of libtool (with escaped dots)
4078    if test x$AUTOTOOLS_DIR = x; then
4079      want_dir=$AUTOTOOLS_DFLT/share
4080    else
4081      want_dir=$AUTOTOOLS_DIR/share
4082    fi
4083    correct_version='1.5.22'
4084    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4085    if test -r $want_dir/libtool/ltmain.sh; then
4086  have_ltmain=yes
4087  :
4088else
4089  have_ltmain=no
4090  :
4091fi
4092
4093    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4094echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4095    if test $have_ltmain = yes; then
4096    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4097        echo "$as_me:$LINENO: result: yes" >&5
4098echo "${ECHO_T}yes" >&6
4099      else
4100        echo "$as_me:$LINENO: result: no" >&5
4101echo "${ECHO_T}no" >&6
4102        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4103echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4104   { (exit 1); exit 1; }; }
4105      fi
4106    else
4107      echo "$as_me:$LINENO: result: no" >&5
4108echo "${ECHO_T}no" >&6
4109      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4110echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4111   { (exit 1); exit 1; }; }
4112    fi
4113  fi
4114
4115  # Check if we can find the libtool file
4116  if test x$AUTOTOOLS_DIR = x; then
4117    want_dir=$AUTOTOOLS_DFLT/share
4118  else
4119    want_dir=$AUTOTOOLS_DIR/share
4120  fi
4121  if test -r $want_dir/aclocal/libtool.m4; then
4122  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4123  :
4124else
4125  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4126echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4127   { (exit 1); exit 1; }; }
4128  :
4129fi
4130
4131
4132  # Check if we have an Externals file
4133  if test -r $srcdir/Externals; then
4134    coin_have_externals=yes
4135  fi
4136  # Check if subversion is installed and understands https
4137  # Extract the first word of "svn", so it can be a program name with args.
4138set dummy svn; ac_word=$2
4139echo "$as_me:$LINENO: checking for $ac_word" >&5
4140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141if test "${ac_cv_prog_have_svn+set}" = set; then
4142  echo $ECHO_N "(cached) $ECHO_C" >&6
4143else
4144  if test -n "$have_svn"; then
4145  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4146else
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150  IFS=$as_save_IFS
4151  test -z "$as_dir" && as_dir=.
4152  for ac_exec_ext in '' $ac_executable_extensions; do
4153  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154    ac_cv_prog_have_svn="yes"
4155    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4156    break 2
4157  fi
4158done
4159done
4160
4161  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4162fi
4163fi
4164have_svn=$ac_cv_prog_have_svn
4165if test -n "$have_svn"; then
4166  echo "$as_me:$LINENO: result: $have_svn" >&5
4167echo "${ECHO_T}$have_svn" >&6
4168else
4169  echo "$as_me:$LINENO: result: no" >&5
4170echo "${ECHO_T}no" >&6
4171fi
4172
4173  if test x$have_svn = xyes; then
4174    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4175echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4176if test "${ac_cv_svn_understands_https+set}" = set; then
4177  echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179  svn --version > confauto.out 2>&1
4180                    if $EGREP https confauto.out >/dev/null 2>&1; then
4181                      ac_cv_svn_understands_https=yes
4182                    else
4183                      ac_cv_svn_understands_https=no
4184                      have_svn=no
4185                      ac_cv_prog_have_svn=no
4186                    fi
4187                    rm -f confauto.out
4188fi
4189echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4190echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4191  fi
4192
4193  # Find the location of the BuildTools directory
4194  BUILDTOOLSDIR=
4195  if test -r $srcdir/BuildTools/coin.m4; then
4196    BUILDTOOLSDIR=$srcdir/BuildTools
4197  else
4198    if test -r $srcdir/../BuildTools/coin.m4; then
4199      BUILDTOOLSDIR=$srcdir/../BuildTools
4200    else
4201      if test -r $srcdir/../../BuildTools/coin.m4; then
4202        BUILDTOOLSDIR=$srcdir/../../BuildTools
4203      else
4204        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4205echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4206   { (exit 1); exit 1; }; }
4207      fi
4208    fi
4209  fi
4210
4211
4212  # The following variable is set to the name of the directory where
4213  # the autotool scripts are located
4214
4215  AUX_DIR=$ac_aux_dir
4216fi
4217
4218# helpful variable for the base directory of this package
4219abs_source_dir=`cd $srcdir; pwd`
4220
4221
4222# Stuff for example Makefiles
4223if test x$prefix = xNONE; then
4224  full_prefix=$ac_default_prefix
4225else
4226  full_prefix=$prefix
4227fi
4228full_prefix=`cd $full_prefix ; pwd`
4229
4230abs_lib_dir=$full_prefix/lib
4231
4232abs_include_dir=$full_prefix/include
4233
4234abs_bin_dir=$full_prefix/bin
4235
4236
4237
4238if test $coin_have_externals = yes && test x$have_svn = xyes; then
4239  HAVE_EXTERNALS_TRUE=
4240  HAVE_EXTERNALS_FALSE='#'
4241else
4242  HAVE_EXTERNALS_TRUE='#'
4243  HAVE_EXTERNALS_FALSE=
4244fi
4245
4246
4247# AC_MSG_NOTICE([End automake initialisation.])
4248
4249
4250
4251LIBTOOL=
4252if test -r ../libtool; then
4253  coin_config_dir=..
4254  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4255fi
4256if test "x$LIBTOOL" = x; then
4257  if test -r ../../libtool; then
4258    coin_config_dir=../..
4259    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4260  fi
4261fi
4262
4263if test "x$LIBTOOL" = x; then
4264# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4265  # Stuff for libtool
4266  # Check whether --enable-shared or --disable-shared was given.
4267if test "${enable_shared+set}" = set; then
4268  enableval="$enable_shared"
4269  p=${PACKAGE-default}
4270    case $enableval in
4271    yes) enable_shared=yes ;;
4272    no) enable_shared=no ;;
4273    *)
4274      enable_shared=no
4275      # Look at the argument we got.  We use all the common list separators.
4276      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4277      for pkg in $enableval; do
4278        IFS="$lt_save_ifs"
4279        if test "X$pkg" = "X$p"; then
4280          enable_shared=yes
4281        fi
4282      done
4283      IFS="$lt_save_ifs"
4284      ;;
4285    esac
4286else
4287  enable_shared=yes
4288fi;
4289
4290# Check whether --enable-fast-install or --disable-fast-install was given.
4291if test "${enable_fast_install+set}" = set; then
4292  enableval="$enable_fast_install"
4293  p=${PACKAGE-default}
4294    case $enableval in
4295    yes) enable_fast_install=yes ;;
4296    no) enable_fast_install=no ;;
4297    *)
4298      enable_fast_install=no
4299      # Look at the argument we got.  We use all the common list separators.
4300      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4301      for pkg in $enableval; do
4302        IFS="$lt_save_ifs"
4303        if test "X$pkg" = "X$p"; then
4304          enable_fast_install=yes
4305        fi
4306      done
4307      IFS="$lt_save_ifs"
4308      ;;
4309    esac
4310else
4311  enable_fast_install=yes
4312fi;
4313
4314echo "$as_me:$LINENO: checking host system type" >&5
4315echo $ECHO_N "checking host system type... $ECHO_C" >&6
4316if test "${ac_cv_host+set}" = set; then
4317  echo $ECHO_N "(cached) $ECHO_C" >&6
4318else
4319  ac_cv_host_alias=$host_alias
4320test -z "$ac_cv_host_alias" &&
4321  ac_cv_host_alias=$ac_cv_build_alias
4322ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4323  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4324echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4325   { (exit 1); exit 1; }; }
4326
4327fi
4328echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4329echo "${ECHO_T}$ac_cv_host" >&6
4330host=$ac_cv_host
4331host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4332host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4333host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4334
4335
4336echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4337echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4338if test "${lt_cv_path_SED+set}" = set; then
4339  echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341  # Loop through the user's path and test for sed and gsed.
4342# Then use that list of sed's as ones to test for truncation.
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346  IFS=$as_save_IFS
4347  test -z "$as_dir" && as_dir=.
4348  for lt_ac_prog in sed gsed; do
4349    for ac_exec_ext in '' $ac_executable_extensions; do
4350      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4351        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4352      fi
4353    done
4354  done
4355done
4356lt_ac_max=0
4357lt_ac_count=0
4358# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4359# along with /bin/sed that truncates output.
4360for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4361  test ! -f $lt_ac_sed && continue
4362  cat /dev/null > conftest.in
4363  lt_ac_count=0
4364  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4365  # Check for GNU sed and select it if it is found.
4366  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4367    lt_cv_path_SED=$lt_ac_sed
4368    break
4369  fi
4370  while true; do
4371    cat conftest.in conftest.in >conftest.tmp
4372    mv conftest.tmp conftest.in
4373    cp conftest.in conftest.nl
4374    echo >>conftest.nl
4375    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4376    cmp -s conftest.out conftest.nl || break
4377    # 10000 chars as input seems more than enough
4378    test $lt_ac_count -gt 10 && break
4379    lt_ac_count=`expr $lt_ac_count + 1`
4380    if test $lt_ac_count -gt $lt_ac_max; then
4381      lt_ac_max=$lt_ac_count
4382      lt_cv_path_SED=$lt_ac_sed
4383    fi
4384  done
4385done
4386
4387fi
4388
4389SED=$lt_cv_path_SED
4390echo "$as_me:$LINENO: result: $SED" >&5
4391echo "${ECHO_T}$SED" >&6
4392
4393
4394# Check whether --with-gnu-ld or --without-gnu-ld was given.
4395if test "${with_gnu_ld+set}" = set; then
4396  withval="$with_gnu_ld"
4397  test "$withval" = no || with_gnu_ld=yes
4398else
4399  with_gnu_ld=no
4400fi;
4401ac_prog=ld
4402if test "$GCC" = yes; then
4403  # Check if gcc -print-prog-name=ld gives a path.
4404  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4405echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4406  case $host in
4407  *-*-mingw*)
4408    # gcc leaves a trailing carriage return which upsets mingw
4409    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4410  *)
4411    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4412  esac
4413  case $ac_prog in
4414    # Accept absolute paths.
4415    [\\/]* | ?:[\\/]*)
4416      re_direlt='/[^/][^/]*/\.\./'
4417      # Canonicalize the pathname of ld
4418      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4419      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4420        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4421      done
4422      test -z "$LD" && LD="$ac_prog"
4423      ;;
4424  "")
4425    # If it fails, then pretend we aren't using GCC.
4426    ac_prog=ld
4427    ;;
4428  *)
4429    # If it is relative, then search for the first ld in PATH.
4430    with_gnu_ld=unknown
4431    ;;
4432  esac
4433elif test "$with_gnu_ld" = yes; then
4434  echo "$as_me:$LINENO: checking for GNU ld" >&5
4435echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4436else
4437  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4438echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4439fi
4440if test "${lt_cv_path_LD+set}" = set; then
4441  echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443  if test -z "$LD"; then
4444  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4445  for ac_dir in $PATH; do
4446    IFS="$lt_save_ifs"
4447    test -z "$ac_dir" && ac_dir=.
4448    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4449      lt_cv_path_LD="$ac_dir/$ac_prog"
4450      # Check to see if the program is GNU ld.  I'd rather use --version,
4451      # but apparently some variants of GNU ld only accept -v.
4452      # Break only if it was the GNU/non-GNU ld that we prefer.
4453      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4454      *GNU* | *'with BFD'*)
4455        test "$with_gnu_ld" != no && break
4456        ;;
4457      *)
4458        test "$with_gnu_ld" != yes && break
4459        ;;
4460      esac
4461    fi
4462  done
4463  IFS="$lt_save_ifs"
4464else
4465  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4466fi
4467fi
4468
4469LD="$lt_cv_path_LD"
4470if test -n "$LD"; then
4471  echo "$as_me:$LINENO: result: $LD" >&5
4472echo "${ECHO_T}$LD" >&6
4473else
4474  echo "$as_me:$LINENO: result: no" >&5
4475echo "${ECHO_T}no" >&6
4476fi
4477test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4478echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4479   { (exit 1); exit 1; }; }
4480echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4481echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4482if test "${lt_cv_prog_gnu_ld+set}" = set; then
4483  echo $ECHO_N "(cached) $ECHO_C" >&6
4484else
4485  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4486case `$LD -v 2>&1 </dev/null` in
4487*GNU* | *'with BFD'*)
4488  lt_cv_prog_gnu_ld=yes
4489  ;;
4490*)
4491  lt_cv_prog_gnu_ld=no
4492  ;;
4493esac
4494fi
4495echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4496echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4497with_gnu_ld=$lt_cv_prog_gnu_ld
4498
4499
4500echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4501echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4502if test "${lt_cv_ld_reload_flag+set}" = set; then
4503  echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505  lt_cv_ld_reload_flag='-r'
4506fi
4507echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4508echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4509reload_flag=$lt_cv_ld_reload_flag
4510case $reload_flag in
4511"" | " "*) ;;
4512*) reload_flag=" $reload_flag" ;;
4513esac
4514reload_cmds='$LD$reload_flag -o $output$reload_objs'
4515case $host_os in
4516  darwin*)
4517    if test "$GCC" = yes; then
4518      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4519    else
4520      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4521    fi
4522    ;;
4523esac
4524
4525echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4526echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4527if test "${lt_cv_path_NM+set}" = set; then
4528  echo $ECHO_N "(cached) $ECHO_C" >&6
4529else
4530  if test -n "$NM"; then
4531  # Let the user override the test.
4532  lt_cv_path_NM="$NM"
4533else
4534  lt_nm_to_check="${ac_tool_prefix}nm"
4535  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4536    lt_nm_to_check="$lt_nm_to_check nm"
4537  fi
4538  for lt_tmp_nm in $lt_nm_to_check; do
4539    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4540    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4541      IFS="$lt_save_ifs"
4542      test -z "$ac_dir" && ac_dir=.
4543      tmp_nm="$ac_dir/$lt_tmp_nm"
4544      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4545        # Check to see if the nm accepts a BSD-compat flag.
4546        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4547        #   nm: unknown option "B" ignored
4548        # Tru64's nm complains that /dev/null is an invalid object file
4549        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4550        */dev/null* | *'Invalid file or object type'*)
4551          lt_cv_path_NM="$tmp_nm -B"
4552          break
4553          ;;
4554        *)
4555          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4556          */dev/null*)
4557            lt_cv_path_NM="$tmp_nm -p"
4558            break
4559            ;;
4560          *)
4561            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4562            continue # so that we can try to find one that supports BSD flags
4563            ;;
4564          esac
4565          ;;
4566        esac
4567      fi
4568    done
4569    IFS="$lt_save_ifs"
4570  done
4571  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4572fi
4573fi
4574echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4575echo "${ECHO_T}$lt_cv_path_NM" >&6
4576NM="$lt_cv_path_NM"
4577
4578echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4579echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4580if test "${lt_cv_deplibs_check_method+set}" = set; then
4581  echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583  lt_cv_file_magic_cmd='$MAGIC_CMD'
4584lt_cv_file_magic_test_file=
4585lt_cv_deplibs_check_method='unknown'
4586# Need to set the preceding variable on all platforms that support
4587# interlibrary dependencies.
4588# 'none' -- dependencies not supported.
4589# `unknown' -- same as none, but documents that we really don't know.
4590# 'pass_all' -- all dependencies passed with no checks.
4591# 'test_compile' -- check by making test program.
4592# 'file_magic [[regex]]' -- check by looking for files in library path
4593# which responds to the $file_magic_cmd with a given extended regex.
4594# If you have `file' or equivalent on your system and you're not sure
4595# whether `pass_all' will *always* work, you probably want this one.
4596
4597case $host_os in
4598aix4* | aix5*)
4599  lt_cv_deplibs_check_method=pass_all
4600  ;;
4601
4602beos*)
4603  lt_cv_deplibs_check_method=pass_all
4604  ;;
4605
4606bsdi[45]*)
4607  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4608  lt_cv_file_magic_cmd='/usr/bin/file -L'
4609  lt_cv_file_magic_test_file=/shlib/libc.so
4610  ;;
4611
4612cygwin*)
4613  # func_win32_libid is a shell function defined in ltmain.sh
4614  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4615  lt_cv_file_magic_cmd='func_win32_libid'
4616  ;;
4617
4618mingw* | pw32*)
4619  # Base MSYS/MinGW do not provide the 'file' command needed by
4620  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4621  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4622  lt_cv_file_magic_cmd='$OBJDUMP -f'
4623  ;;
4624
4625darwin* | rhapsody*)
4626  lt_cv_deplibs_check_method=pass_all
4627  ;;
4628
4629freebsd* | kfreebsd*-gnu | dragonfly*)
4630  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4631    case $host_cpu in
4632    i*86 )
4633      # Not sure whether the presence of OpenBSD here was a mistake.
4634      # Let's accept both of them until this is cleared up.
4635      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4636      lt_cv_file_magic_cmd=/usr/bin/file
4637      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4638      ;;
4639    esac
4640  else
4641    lt_cv_deplibs_check_method=pass_all
4642  fi
4643  ;;
4644
4645gnu*)
4646  lt_cv_deplibs_check_method=pass_all
4647  ;;
4648
4649hpux10.20* | hpux11*)
4650  lt_cv_file_magic_cmd=/usr/bin/file
4651  case $host_cpu in
4652  ia64*)
4653    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4654    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4655    ;;
4656  hppa*64*)
4657    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]'
4658    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4659    ;;
4660  *)
4661    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4662    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4663    ;;
4664  esac
4665  ;;
4666
4667interix3*)
4668  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4669  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4670  ;;
4671
4672irix5* | irix6* | nonstopux*)
4673  case $LD in
4674  *-32|*"-32 ") libmagic=32-bit;;
4675  *-n32|*"-n32 ") libmagic=N32;;
4676  *-64|*"-64 ") libmagic=64-bit;;
4677  *) libmagic=never-match;;
4678  esac
4679  lt_cv_deplibs_check_method=pass_all
4680  ;;
4681
4682# This must be Linux ELF.
4683linux*)
4684  lt_cv_deplibs_check_method=pass_all
4685  ;;
4686
4687netbsd*)
4688  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4689    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4690  else
4691    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4692  fi
4693  ;;
4694
4695newos6*)
4696  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4697  lt_cv_file_magic_cmd=/usr/bin/file
4698  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4699  ;;
4700
4701nto-qnx*)
4702  lt_cv_deplibs_check_method=unknown
4703  ;;
4704
4705openbsd*)
4706  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4707    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4708  else
4709    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4710  fi
4711  ;;
4712
4713osf3* | osf4* | osf5*)
4714  lt_cv_deplibs_check_method=pass_all
4715  ;;
4716
4717solaris*)
4718  lt_cv_deplibs_check_method=pass_all
4719  ;;
4720
4721sysv4 | sysv4.3*)
4722  case $host_vendor in
4723  motorola)
4724    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]'
4725    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4726    ;;
4727  ncr)
4728    lt_cv_deplibs_check_method=pass_all
4729    ;;
4730  sequent)
4731    lt_cv_file_magic_cmd='/bin/file'
4732    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4733    ;;
4734  sni)
4735    lt_cv_file_magic_cmd='/bin/file'
4736    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4737    lt_cv_file_magic_test_file=/lib/libc.so
4738    ;;
4739  siemens)
4740    lt_cv_deplibs_check_method=pass_all
4741    ;;
4742  pc)
4743    lt_cv_deplibs_check_method=pass_all
4744    ;;
4745  esac
4746  ;;
4747
4748sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4749  lt_cv_deplibs_check_method=pass_all
4750  ;;
4751esac
4752
4753fi
4754echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4755echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4756file_magic_cmd=$lt_cv_file_magic_cmd
4757deplibs_check_method=$lt_cv_deplibs_check_method
4758test -z "$deplibs_check_method" && deplibs_check_method=unknown
4759
4760
4761
4762
4763# If no C compiler was specified, use CC.
4764LTCC=${LTCC-"$CC"}
4765
4766# If no C compiler flags were specified, use CFLAGS.
4767LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4768
4769# Allow CC to be a program name with arguments.
4770compiler=$CC
4771
4772# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4773if test "${enable_libtool_lock+set}" = set; then
4774  enableval="$enable_libtool_lock"
4775
4776fi;
4777test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4778
4779# Some flags need to be propagated to the compiler or linker for good
4780# libtool support.
4781case $host in
4782ia64-*-hpux*)
4783  # Find out which ABI we are using.
4784  echo 'int i;' > conftest.$ac_ext
4785  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786  (eval $ac_compile) 2>&5
4787  ac_status=$?
4788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789  (exit $ac_status); }; then
4790    case `/usr/bin/file conftest.$ac_objext` in
4791    *ELF-32*)
4792      HPUX_IA64_MODE="32"
4793      ;;
4794    *ELF-64*)
4795      HPUX_IA64_MODE="64"
4796      ;;
4797    esac
4798  fi
4799  rm -rf conftest*
4800  ;;
4801*-*-irix6*)
4802  # Find out which ABI we are using.
4803  echo '#line 4803 "configure"' > conftest.$ac_ext
4804  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805  (eval $ac_compile) 2>&5
4806  ac_status=$?
4807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808  (exit $ac_status); }; then
4809   if test "$lt_cv_prog_gnu_ld" = yes; then
4810    case `/usr/bin/file conftest.$ac_objext` in
4811    *32-bit*)
4812      LD="${LD-ld} -melf32bsmip"
4813      ;;
4814    *N32*)
4815      LD="${LD-ld} -melf32bmipn32"
4816      ;;
4817    *64-bit*)
4818      LD="${LD-ld} -melf64bmip"
4819      ;;
4820    esac
4821   else
4822    case `/usr/bin/file conftest.$ac_objext` in
4823    *32-bit*)
4824      LD="${LD-ld} -32"
4825      ;;
4826    *N32*)
4827      LD="${LD-ld} -n32"
4828      ;;
4829    *64-bit*)
4830      LD="${LD-ld} -64"
4831      ;;
4832    esac
4833   fi
4834  fi
4835  rm -rf conftest*
4836  ;;
4837
4838x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4839  # Find out which ABI we are using.
4840  echo 'int i;' > conftest.$ac_ext
4841  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842  (eval $ac_compile) 2>&5
4843  ac_status=$?
4844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845  (exit $ac_status); }; then
4846    case `/usr/bin/file conftest.o` in
4847    *32-bit*)
4848      case $host in
4849        x86_64-*linux*)
4850          LD="${LD-ld} -m elf_i386"
4851          ;;
4852        ppc64-*linux*|powerpc64-*linux*)
4853          LD="${LD-ld} -m elf32ppclinux"
4854          ;;
4855        s390x-*linux*)
4856          LD="${LD-ld} -m elf_s390"
4857          ;;
4858        sparc64-*linux*)
4859          LD="${LD-ld} -m elf32_sparc"
4860          ;;
4861      esac
4862      ;;
4863    *64-bit*)
4864      case $host in
4865        x86_64-*linux*)
4866          LD="${LD-ld} -m elf_x86_64"
4867          ;;
4868        ppc*-*linux*|powerpc*-*linux*)
4869          LD="${LD-ld} -m elf64ppc"
4870          ;;
4871        s390*-*linux*)
4872          LD="${LD-ld} -m elf64_s390"
4873          ;;
4874        sparc*-*linux*)
4875          LD="${LD-ld} -m elf64_sparc"
4876          ;;
4877      esac
4878      ;;
4879    esac
4880  fi
4881  rm -rf conftest*
4882  ;;
4883
4884*-*-sco3.2v5*)
4885  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4886  SAVE_CFLAGS="$CFLAGS"
4887  CFLAGS="$CFLAGS -belf"
4888  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4889echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4890if test "${lt_cv_cc_needs_belf+set}" = set; then
4891  echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
4893  ac_ext=c
4894ac_cpp='$CPP $CPPFLAGS'
4895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898
4899     cat >conftest.$ac_ext <<_ACEOF
4900/* confdefs.h.  */
4901_ACEOF
4902cat confdefs.h >>conftest.$ac_ext
4903cat >>conftest.$ac_ext <<_ACEOF
4904/* end confdefs.h.  */
4905
4906int
4907main ()
4908{
4909
4910  ;
4911  return 0;
4912}
4913_ACEOF
4914rm -f conftest.$ac_objext conftest$ac_exeext
4915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4916  (eval $ac_link) 2>conftest.er1
4917  ac_status=$?
4918  grep -v '^ *+' conftest.er1 >conftest.err
4919  rm -f conftest.er1
4920  cat conftest.err >&5
4921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922  (exit $ac_status); } &&
4923         { ac_try='test -z "$ac_c_werror_flag"
4924                         || test ! -s conftest.err'
4925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926  (eval $ac_try) 2>&5
4927  ac_status=$?
4928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929  (exit $ac_status); }; } &&
4930         { ac_try='test -s conftest$ac_exeext'
4931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932  (eval $ac_try) 2>&5
4933  ac_status=$?
4934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935  (exit $ac_status); }; }; then
4936  lt_cv_cc_needs_belf=yes
4937else
4938  echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941lt_cv_cc_needs_belf=no
4942fi
4943rm -f conftest.err conftest.$ac_objext \
4944      conftest$ac_exeext conftest.$ac_ext
4945     ac_ext=c
4946ac_cpp='$CPP $CPPFLAGS'
4947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950
4951fi
4952echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4953echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4954  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4955    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4956    CFLAGS="$SAVE_CFLAGS"
4957  fi
4958  ;;
4959sparc*-*solaris*)
4960  # Find out which ABI we are using.
4961  echo 'int i;' > conftest.$ac_ext
4962  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963  (eval $ac_compile) 2>&5
4964  ac_status=$?
4965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966  (exit $ac_status); }; then
4967    case `/usr/bin/file conftest.o` in
4968    *64-bit*)
4969      case $lt_cv_prog_gnu_ld in
4970      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4971      *)    LD="${LD-ld} -64" ;;
4972      esac
4973      ;;
4974    esac
4975  fi
4976  rm -rf conftest*
4977  ;;
4978
4979
4980esac
4981
4982need_locks="$enable_libtool_lock"
4983
4984
4985ac_ext=c
4986ac_cpp='$CPP $CPPFLAGS'
4987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4991echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4992# On Suns, sometimes $CPP names a directory.
4993if test -n "$CPP" && test -d "$CPP"; then
4994  CPP=
4995fi
4996if test -z "$CPP"; then
4997  if test "${ac_cv_prog_CPP+set}" = set; then
4998  echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000      # Double quotes because CPP needs to be expanded
5001    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5002    do
5003      ac_preproc_ok=false
5004for ac_c_preproc_warn_flag in '' yes
5005do
5006  # Use a header file that comes with gcc, so configuring glibc
5007  # with a fresh cross-compiler works.
5008  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5009  # <limits.h> exists even on freestanding compilers.
5010  # On the NeXT, cc -E runs the code through the compiler's parser,
5011  # not just through cpp. "Syntax error" is here to catch this case.
5012  cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h.  */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h.  */
5018#ifdef __STDC__
5019# include <limits.h>
5020#else
5021# include <assert.h>
5022#endif
5023                     Syntax error
5024_ACEOF
5025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5026  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5027  ac_status=$?
5028  grep -v '^ *+' conftest.er1 >conftest.err
5029  rm -f conftest.er1
5030  cat conftest.err >&5
5031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032  (exit $ac_status); } >/dev/null; then
5033  if test -s conftest.err; then
5034    ac_cpp_err=$ac_c_preproc_warn_flag
5035    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5036  else
5037    ac_cpp_err=
5038  fi
5039else
5040  ac_cpp_err=yes
5041fi
5042if test -z "$ac_cpp_err"; then
5043  :
5044else
5045  echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
5048  # Broken: fails on valid input.
5049continue
5050fi
5051rm -f conftest.err conftest.$ac_ext
5052
5053  # OK, works on sane cases.  Now check whether non-existent headers
5054  # can be detected and how.
5055  cat >conftest.$ac_ext <<_ACEOF
5056/* confdefs.h.  */
5057_ACEOF
5058cat confdefs.h >>conftest.$ac_ext
5059cat >>conftest.$ac_ext <<_ACEOF
5060/* end confdefs.h.  */
5061#include <ac_nonexistent.h>
5062_ACEOF
5063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5064  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5065  ac_status=$?
5066  grep -v '^ *+' conftest.er1 >conftest.err
5067  rm -f conftest.er1
5068  cat conftest.err >&5
5069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070  (exit $ac_status); } >/dev/null; then
5071  if test -s conftest.err; then
5072    ac_cpp_err=$ac_c_preproc_warn_flag
5073    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5074  else
5075    ac_cpp_err=
5076  fi
5077else
5078  ac_cpp_err=yes
5079fi
5080if test -z "$ac_cpp_err"; then
5081  # Broken: success on invalid input.
5082continue
5083else
5084  echo "$as_me: failed program was:" >&5
5085sed 's/^/| /' conftest.$ac_ext >&5
5086
5087  # Passes both tests.
5088ac_preproc_ok=:
5089break
5090fi
5091rm -f conftest.err conftest.$ac_ext
5092
5093done
5094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095rm -f conftest.err conftest.$ac_ext
5096if $ac_preproc_ok; then
5097  break
5098fi
5099
5100    done
5101    ac_cv_prog_CPP=$CPP
5102
5103fi
5104  CPP=$ac_cv_prog_CPP
5105else
5106  ac_cv_prog_CPP=$CPP
5107fi
5108echo "$as_me:$LINENO: result: $CPP" >&5
5109echo "${ECHO_T}$CPP" >&6
5110ac_preproc_ok=false
5111for ac_c_preproc_warn_flag in '' yes
5112do
5113  # Use a header file that comes with gcc, so configuring glibc
5114  # with a fresh cross-compiler works.
5115  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116  # <limits.h> exists even on freestanding compilers.
5117  # On the NeXT, cc -E runs the code through the compiler's parser,
5118  # not just through cpp. "Syntax error" is here to catch this case.
5119  cat >conftest.$ac_ext <<_ACEOF
5120/* confdefs.h.  */
5121_ACEOF
5122cat confdefs.h >>conftest.$ac_ext
5123cat >>conftest.$ac_ext <<_ACEOF
5124/* end confdefs.h.  */
5125#ifdef __STDC__
5126# include <limits.h>
5127#else
5128# include <assert.h>
5129#endif
5130                     Syntax error
5131_ACEOF
5132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5133  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5134  ac_status=$?
5135  grep -v '^ *+' conftest.er1 >conftest.err
5136  rm -f conftest.er1
5137  cat conftest.err >&5
5138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139  (exit $ac_status); } >/dev/null; then
5140  if test -s conftest.err; then
5141    ac_cpp_err=$ac_c_preproc_warn_flag
5142    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5143  else
5144    ac_cpp_err=
5145  fi
5146else
5147  ac_cpp_err=yes
5148fi
5149if test -z "$ac_cpp_err"; then
5150  :
5151else
5152  echo "$as_me: failed program was:" >&5
5153sed 's/^/| /' conftest.$ac_ext >&5
5154
5155  # Broken: fails on valid input.
5156continue
5157fi
5158rm -f conftest.err conftest.$ac_ext
5159
5160  # OK, works on sane cases.  Now check whether non-existent headers
5161  # can be detected and how.
5162  cat >conftest.$ac_ext <<_ACEOF
5163/* confdefs.h.  */
5164_ACEOF
5165cat confdefs.h >>conftest.$ac_ext
5166cat >>conftest.$ac_ext <<_ACEOF
5167/* end confdefs.h.  */
5168#include <ac_nonexistent.h>
5169_ACEOF
5170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5171  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5172  ac_status=$?
5173  grep -v '^ *+' conftest.er1 >conftest.err
5174  rm -f conftest.er1
5175  cat conftest.err >&5
5176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177  (exit $ac_status); } >/dev/null; then
5178  if test -s conftest.err; then
5179    ac_cpp_err=$ac_c_preproc_warn_flag
5180    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5181  else
5182    ac_cpp_err=
5183  fi
5184else
5185  ac_cpp_err=yes
5186fi
5187if test -z "$ac_cpp_err"; then
5188  # Broken: success on invalid input.
5189continue
5190else
5191  echo "$as_me: failed program was:" >&5
5192sed 's/^/| /' conftest.$ac_ext >&5
5193
5194  # Passes both tests.
5195ac_preproc_ok=:
5196break
5197fi
5198rm -f conftest.err conftest.$ac_ext
5199
5200done
5201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5202rm -f conftest.err conftest.$ac_ext
5203if $ac_preproc_ok; then
5204  :
5205else
5206  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5207See \`config.log' for more details." >&5
5208echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5209See \`config.log' for more details." >&2;}
5210   { (exit 1); exit 1; }; }
5211fi
5212
5213ac_ext=c
5214ac_cpp='$CPP $CPPFLAGS'
5215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217ac_compiler_gnu=$ac_cv_c_compiler_gnu
5218
5219
5220echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5221echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5222if test "${ac_cv_header_stdc+set}" = set; then
5223  echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225  cat >conftest.$ac_ext <<_ACEOF
5226/* confdefs.h.  */
5227_ACEOF
5228cat confdefs.h >>conftest.$ac_ext
5229cat >>conftest.$ac_ext <<_ACEOF
5230/* end confdefs.h.  */
5231#include <stdlib.h>
5232#include <stdarg.h>
5233#include <string.h>
5234#include <float.h>
5235
5236int
5237main ()
5238{
5239
5240  ;
5241  return 0;
5242}
5243_ACEOF
5244rm -f conftest.$ac_objext
5245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5246  (eval $ac_compile) 2>conftest.er1
5247  ac_status=$?
5248  grep -v '^ *+' conftest.er1 >conftest.err
5249  rm -f conftest.er1
5250  cat conftest.err >&5
5251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252  (exit $ac_status); } &&
5253         { ac_try='test -z "$ac_c_werror_flag"
5254                         || test ! -s conftest.err'
5255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256  (eval $ac_try) 2>&5
5257  ac_status=$?
5258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259  (exit $ac_status); }; } &&
5260         { ac_try='test -s conftest.$ac_objext'
5261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262  (eval $ac_try) 2>&5
5263  ac_status=$?
5264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265  (exit $ac_status); }; }; then
5266  ac_cv_header_stdc=yes
5267else
5268  echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271ac_cv_header_stdc=no
5272fi
5273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5274
5275if test $ac_cv_header_stdc = yes; then
5276  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5277  cat >conftest.$ac_ext <<_ACEOF
5278/* confdefs.h.  */
5279_ACEOF
5280cat confdefs.h >>conftest.$ac_ext
5281cat >>conftest.$ac_ext <<_ACEOF
5282/* end confdefs.h.  */
5283#include <string.h>
5284
5285_ACEOF
5286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5287  $EGREP "memchr" >/dev/null 2>&1; then
5288  :
5289else
5290  ac_cv_header_stdc=no
5291fi
5292rm -f conftest*
5293
5294fi
5295
5296if test $ac_cv_header_stdc = yes; then
5297  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5298  cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h.  */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h.  */
5304#include <stdlib.h>
5305
5306_ACEOF
5307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5308  $EGREP "free" >/dev/null 2>&1; then
5309  :
5310else
5311  ac_cv_header_stdc=no
5312fi
5313rm -f conftest*
5314
5315fi
5316
5317if test $ac_cv_header_stdc = yes; then
5318  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5319  if test "$cross_compiling" = yes; then
5320  :
5321else
5322  cat >conftest.$ac_ext <<_ACEOF
5323/* confdefs.h.  */
5324_ACEOF
5325cat confdefs.h >>conftest.$ac_ext
5326cat >>conftest.$ac_ext <<_ACEOF
5327/* end confdefs.h.  */
5328#include <ctype.h>
5329#if ((' ' & 0x0FF) == 0x020)
5330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5331# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5332#else
5333# define ISLOWER(c) \
5334                   (('a' <= (c) && (c) <= 'i') \
5335                     || ('j' <= (c) && (c) <= 'r') \
5336                     || ('s' <= (c) && (c) <= 'z'))
5337# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5338#endif
5339
5340#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5341int
5342main ()
5343{
5344  int i;
5345  for (i = 0; i < 256; i++)
5346    if (XOR (islower (i), ISLOWER (i))
5347        || toupper (i) != TOUPPER (i))
5348      exit(2);
5349  exit (0);
5350}
5351_ACEOF
5352rm -f conftest$ac_exeext
5353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5354  (eval $ac_link) 2>&5
5355  ac_status=$?
5356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359  (eval $ac_try) 2>&5
5360  ac_status=$?
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); }; }; then
5363  :
5364else
5365  echo "$as_me: program exited with status $ac_status" >&5
5366echo "$as_me: failed program was:" >&5
5367sed 's/^/| /' conftest.$ac_ext >&5
5368
5369( exit $ac_status )
5370ac_cv_header_stdc=no
5371fi
5372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5373fi
5374fi
5375fi
5376echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5377echo "${ECHO_T}$ac_cv_header_stdc" >&6
5378if test $ac_cv_header_stdc = yes; then
5379
5380cat >>confdefs.h <<\_ACEOF
5381#define STDC_HEADERS 1
5382_ACEOF
5383
5384fi
5385
5386# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5397                  inttypes.h stdint.h unistd.h
5398do
5399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5400echo "$as_me:$LINENO: checking for $ac_header" >&5
5401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5402if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403  echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405  cat >conftest.$ac_ext <<_ACEOF
5406/* confdefs.h.  */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h.  */
5411$ac_includes_default
5412
5413#include <$ac_header>
5414_ACEOF
5415rm -f conftest.$ac_objext
5416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417  (eval $ac_compile) 2>conftest.er1
5418  ac_status=$?
5419  grep -v '^ *+' conftest.er1 >conftest.err
5420  rm -f conftest.er1
5421  cat conftest.err >&5
5422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423  (exit $ac_status); } &&
5424         { ac_try='test -z "$ac_c_werror_flag"
5425                         || test ! -s conftest.err'
5426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427  (eval $ac_try) 2>&5
5428  ac_status=$?
5429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430  (exit $ac_status); }; } &&
5431         { ac_try='test -s conftest.$ac_objext'
5432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433  (eval $ac_try) 2>&5
5434  ac_status=$?
5435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436  (exit $ac_status); }; }; then
5437  eval "$as_ac_Header=yes"
5438else
5439  echo "$as_me: failed program was:" >&5
5440sed 's/^/| /' conftest.$ac_ext >&5
5441
5442eval "$as_ac_Header=no"
5443fi
5444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5445fi
5446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5448if test `eval echo '${'$as_ac_Header'}'` = yes; then
5449  cat >>confdefs.h <<_ACEOF
5450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5451_ACEOF
5452
5453fi
5454
5455done
5456
5457
5458
5459for ac_header in dlfcn.h
5460do
5461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5462if eval "test \"\${$as_ac_Header+set}\" = set"; then
5463  echo "$as_me:$LINENO: checking for $ac_header" >&5
5464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5465if eval "test \"\${$as_ac_Header+set}\" = set"; then
5466  echo $ECHO_N "(cached) $ECHO_C" >&6
5467fi
5468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5470else
5471  # Is the header compilable?
5472echo "$as_me:$LINENO: checking $ac_header usability" >&5
5473echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5474cat >conftest.$ac_ext <<_ACEOF
5475/* confdefs.h.  */
5476_ACEOF
5477cat confdefs.h >>conftest.$ac_ext
5478cat >>conftest.$ac_ext <<_ACEOF
5479/* end confdefs.h.  */
5480$ac_includes_default
5481#include <$ac_header>
5482_ACEOF
5483rm -f conftest.$ac_objext
5484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485  (eval $ac_compile) 2>conftest.er1
5486  ac_status=$?
5487  grep -v '^ *+' conftest.er1 >conftest.err
5488  rm -f conftest.er1
5489  cat conftest.err >&5
5490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491  (exit $ac_status); } &&
5492         { ac_try='test -z "$ac_c_werror_flag"
5493                         || test ! -s conftest.err'
5494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495  (eval $ac_try) 2>&5
5496  ac_status=$?
5497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498  (exit $ac_status); }; } &&
5499         { ac_try='test -s conftest.$ac_objext'
5500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501  (eval $ac_try) 2>&5
5502  ac_status=$?
5503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504  (exit $ac_status); }; }; then
5505  ac_header_compiler=yes
5506else
5507  echo "$as_me: failed program was:" >&5
5508sed 's/^/| /' conftest.$ac_ext >&5
5509
5510ac_header_compiler=no
5511fi
5512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5514echo "${ECHO_T}$ac_header_compiler" >&6
5515
5516# Is the header present?
5517echo "$as_me:$LINENO: checking $ac_header presence" >&5
5518echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5519cat >conftest.$ac_ext <<_ACEOF
5520/* confdefs.h.  */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h.  */
5525#include <$ac_header>
5526_ACEOF
5527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5528  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5529  ac_status=$?
5530  grep -v '^ *+' conftest.er1 >conftest.err
5531  rm -f conftest.er1
5532  cat conftest.err >&5
5533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534  (exit $ac_status); } >/dev/null; then
5535  if test -s conftest.err; then
5536    ac_cpp_err=$ac_c_preproc_warn_flag
5537    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5538  else
5539    ac_cpp_err=
5540  fi
5541else
5542  ac_cpp_err=yes
5543fi
5544if test -z "$ac_cpp_err"; then
5545  ac_header_preproc=yes
5546else
5547  echo "$as_me: failed program was:" >&5
5548sed 's/^/| /' conftest.$ac_ext >&5
5549
5550  ac_header_preproc=no
5551fi
5552rm -f conftest.err conftest.$ac_ext
5553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5554echo "${ECHO_T}$ac_header_preproc" >&6
5555
5556# So?  What about this header?
5557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5558  yes:no: )
5559    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5560echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5561    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5562echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5563    ac_header_preproc=yes
5564    ;;
5565  no:yes:* )
5566    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5567echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5568    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5569echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5570    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5571echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5572    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5573echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5574    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5576    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5577echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5578    (
5579      cat <<\_ASBOX
5580## --------------------------------------------------------------- ##
5581## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5582## --------------------------------------------------------------- ##
5583_ASBOX
5584    ) |
5585      sed "s/^/$as_me: WARNING:     /" >&2
5586    ;;
5587esac
5588echo "$as_me:$LINENO: checking for $ac_header" >&5
5589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5590if eval "test \"\${$as_ac_Header+set}\" = set"; then
5591  echo $ECHO_N "(cached) $ECHO_C" >&6
5592else
5593  eval "$as_ac_Header=\$ac_header_preproc"
5594fi
5595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5597
5598fi
5599if test `eval echo '${'$as_ac_Header'}'` = yes; then
5600  cat >>confdefs.h <<_ACEOF
5601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5602_ACEOF
5603
5604fi
5605
5606done
5607
5608ac_ext=cc
5609ac_cpp='$CXXCPP $CPPFLAGS'
5610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5613if test -n "$ac_tool_prefix"; then
5614  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5615  do
5616    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5618echo "$as_me:$LINENO: checking for $ac_word" >&5
5619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5620if test "${ac_cv_prog_CXX+set}" = set; then
5621  echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623  if test -n "$CXX"; then
5624  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5625else
5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629  IFS=$as_save_IFS
5630  test -z "$as_dir" && as_dir=.
5631  for ac_exec_ext in '' $ac_executable_extensions; do
5632  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5634    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5635    break 2
5636  fi
5637done
5638done
5639
5640fi
5641fi
5642CXX=$ac_cv_prog_CXX
5643if test -n "$CXX"; then
5644  echo "$as_me:$LINENO: result: $CXX" >&5
5645echo "${ECHO_T}$CXX" >&6
5646else
5647  echo "$as_me:$LINENO: result: no" >&5
5648echo "${ECHO_T}no" >&6
5649fi
5650
5651    test -n "$CXX" && break
5652  done
5653fi
5654if test -z "$CXX"; then
5655  ac_ct_CXX=$CXX
5656  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5657do
5658  # Extract the first word of "$ac_prog", so it can be a program name with args.
5659set dummy $ac_prog; ac_word=$2
5660echo "$as_me:$LINENO: checking for $ac_word" >&5
5661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5662if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5663  echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665  if test -n "$ac_ct_CXX"; then
5666  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5667else
5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669for as_dir in $PATH
5670do
5671  IFS=$as_save_IFS
5672  test -z "$as_dir" && as_dir=.
5673  for ac_exec_ext in '' $ac_executable_extensions; do
5674  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675    ac_cv_prog_ac_ct_CXX="$ac_prog"
5676    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677    break 2
5678  fi
5679done
5680done
5681
5682fi
5683fi
5684ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5685if test -n "$ac_ct_CXX"; then
5686  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5687echo "${ECHO_T}$ac_ct_CXX" >&6
5688else
5689  echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6
5691fi
5692
5693  test -n "$ac_ct_CXX" && break
5694done
5695test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5696
5697  CXX=$ac_ct_CXX
5698fi
5699
5700
5701# Provide some information about the compiler.
5702echo "$as_me:$LINENO:" \
5703     "checking for C++ compiler version" >&5
5704ac_compiler=`set X $ac_compile; echo $2`
5705{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5706  (eval $ac_compiler --version </dev/null >&5) 2>&5
5707  ac_status=$?
5708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709  (exit $ac_status); }
5710{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5711  (eval $ac_compiler -v </dev/null >&5) 2>&5
5712  ac_status=$?
5713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714  (exit $ac_status); }
5715{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5716  (eval $ac_compiler -V </dev/null >&5) 2>&5
5717  ac_status=$?
5718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719  (exit $ac_status); }
5720
5721echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5722echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5723if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5724  echo $ECHO_N "(cached) $ECHO_C" >&6
5725else
5726  cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h.  */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h.  */
5732
5733int
5734main ()
5735{
5736#ifndef __GNUC__
5737       choke me
5738#endif
5739
5740  ;
5741  return 0;
5742}
5743_ACEOF
5744rm -f conftest.$ac_objext
5745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746  (eval $ac_compile) 2>conftest.er1
5747  ac_status=$?
5748  grep -v '^ *+' conftest.er1 >conftest.err
5749  rm -f conftest.er1
5750  cat conftest.err >&5
5751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752  (exit $ac_status); } &&
5753         { ac_try='test -z "$ac_cxx_werror_flag"
5754                         || test ! -s conftest.err'
5755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756  (eval $ac_try) 2>&5
5757  ac_status=$?
5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759  (exit $ac_status); }; } &&
5760         { ac_try='test -s conftest.$ac_objext'
5761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762  (eval $ac_try) 2>&5
5763  ac_status=$?
5764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765  (exit $ac_status); }; }; then
5766  ac_compiler_gnu=yes
5767else
5768  echo "$as_me: failed program was:" >&5
5769sed 's/^/| /' conftest.$ac_ext >&5
5770
5771ac_compiler_gnu=no
5772fi
5773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5774ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5775
5776fi
5777echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5778echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5779GXX=`test $ac_compiler_gnu = yes && echo yes`
5780ac_test_CXXFLAGS=${CXXFLAGS+set}
5781ac_save_CXXFLAGS=$CXXFLAGS
5782CXXFLAGS="-g"
5783echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5784echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5785if test "${ac_cv_prog_cxx_g+set}" = set; then
5786  echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788  cat >conftest.$ac_ext <<_ACEOF
5789/* confdefs.h.  */
5790_ACEOF
5791cat confdefs.h >>conftest.$ac_ext
5792cat >>conftest.$ac_ext <<_ACEOF
5793/* end confdefs.h.  */
5794
5795int
5796main ()
5797{
5798
5799  ;
5800  return 0;
5801}
5802_ACEOF
5803rm -f conftest.$ac_objext
5804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805  (eval $ac_compile) 2>conftest.er1
5806  ac_status=$?
5807  grep -v '^ *+' conftest.er1 >conftest.err
5808  rm -f conftest.er1
5809  cat conftest.err >&5
5810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811  (exit $ac_status); } &&
5812         { ac_try='test -z "$ac_cxx_werror_flag"
5813                         || test ! -s conftest.err'
5814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815  (eval $ac_try) 2>&5
5816  ac_status=$?
5817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818  (exit $ac_status); }; } &&
5819         { ac_try='test -s conftest.$ac_objext'
5820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821  (eval $ac_try) 2>&5
5822  ac_status=$?
5823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824  (exit $ac_status); }; }; then
5825  ac_cv_prog_cxx_g=yes
5826else
5827  echo "$as_me: failed program was:" >&5
5828sed 's/^/| /' conftest.$ac_ext >&5
5829
5830ac_cv_prog_cxx_g=no
5831fi
5832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5833fi
5834echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5835echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5836if test "$ac_test_CXXFLAGS" = set; then
5837  CXXFLAGS=$ac_save_CXXFLAGS
5838elif test $ac_cv_prog_cxx_g = yes; then
5839  if test "$GXX" = yes; then
5840    CXXFLAGS="-g -O2"
5841  else
5842    CXXFLAGS="-g"
5843  fi
5844else
5845  if test "$GXX" = yes; then
5846    CXXFLAGS="-O2"
5847  else
5848    CXXFLAGS=
5849  fi
5850fi
5851for ac_declaration in \
5852   '' \
5853   'extern "C" void std::exit (int) throw (); using std::exit;' \
5854   'extern "C" void std::exit (int); using std::exit;' \
5855   'extern "C" void exit (int) throw ();' \
5856   'extern "C" void exit (int);' \
5857   'void exit (int);'
5858do
5859  cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h.  */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h.  */
5865$ac_declaration
5866#include <stdlib.h>
5867int
5868main ()
5869{
5870exit (42);
5871  ;
5872  return 0;
5873}
5874_ACEOF
5875rm -f conftest.$ac_objext
5876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877  (eval $ac_compile) 2>conftest.er1
5878  ac_status=$?
5879  grep -v '^ *+' conftest.er1 >conftest.err
5880  rm -f conftest.er1
5881  cat conftest.err >&5
5882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883  (exit $ac_status); } &&
5884         { ac_try='test -z "$ac_cxx_werror_flag"
5885                         || test ! -s conftest.err'
5886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887  (eval $ac_try) 2>&5
5888  ac_status=$?
5889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890  (exit $ac_status); }; } &&
5891         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5897  :
5898else
5899  echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902continue
5903fi
5904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5905  cat >conftest.$ac_ext <<_ACEOF
5906/* confdefs.h.  */
5907_ACEOF
5908cat confdefs.h >>conftest.$ac_ext
5909cat >>conftest.$ac_ext <<_ACEOF
5910/* end confdefs.h.  */
5911$ac_declaration
5912int
5913main ()
5914{
5915exit (42);
5916  ;
5917  return 0;
5918}
5919_ACEOF
5920rm -f conftest.$ac_objext
5921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922  (eval $ac_compile) 2>conftest.er1
5923  ac_status=$?
5924  grep -v '^ *+' conftest.er1 >conftest.err
5925  rm -f conftest.er1
5926  cat conftest.err >&5
5927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928  (exit $ac_status); } &&
5929         { ac_try='test -z "$ac_cxx_werror_flag"
5930                         || test ! -s conftest.err'
5931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932  (eval $ac_try) 2>&5
5933  ac_status=$?
5934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935  (exit $ac_status); }; } &&
5936         { ac_try='test -s conftest.$ac_objext'
5937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938  (eval $ac_try) 2>&5
5939  ac_status=$?
5940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941  (exit $ac_status); }; }; then
5942  break
5943else
5944  echo "$as_me: failed program was:" >&5
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
5947fi
5948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949done
5950rm -f conftest*
5951if test -n "$ac_declaration"; then
5952  echo '#ifdef __cplusplus' >>confdefs.h
5953  echo $ac_declaration      >>confdefs.h
5954  echo '#endif'             >>confdefs.h
5955fi
5956
5957ac_ext=cc
5958ac_cpp='$CXXCPP $CPPFLAGS'
5959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5962
5963depcc="$CXX"  am_compiler_list=
5964
5965echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5966echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5967if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5968  echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5971  # We make a subdir and do the tests there.  Otherwise we can end up
5972  # making bogus files that we don't know about and never remove.  For
5973  # instance it was reported that on HP-UX the gcc test will end up
5974  # making a dummy file named `D' -- because `-MD' means `put the output
5975  # in D'.
5976  mkdir conftest.dir
5977  # Copy depcomp to subdir because otherwise we won't find it if we're
5978  # using a relative directory.
5979  cp "$am_depcomp" conftest.dir
5980  cd conftest.dir
5981  # We will build objects and dependencies in a subdirectory because
5982  # it helps to detect inapplicable dependency modes.  For instance
5983  # both Tru64's cc and ICC support -MD to output dependencies as a
5984  # side effect of compilation, but ICC will put the dependencies in
5985  # the current directory while Tru64 will put them in the object
5986  # directory.
5987  mkdir sub
5988
5989  am_cv_CXX_dependencies_compiler_type=none
5990  if test "$am_compiler_list" = ""; then
5991     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5992  fi
5993  for depmode in $am_compiler_list; do
5994    # Setup a source with many dependencies, because some compilers
5995    # like to wrap large dependency lists on column 80 (with \), and
5996    # we should not choose a depcomp mode which is confused by this.
5997    #
5998    # We need to recreate these files for each test, as the compiler may
5999    # overwrite some of them when testing with obscure command lines.
6000    # This happens at least with the AIX C compiler.
6001    : > sub/conftest.c
6002    for i in 1 2 3 4 5 6; do
6003      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6004      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6005      # Solaris 8's {/usr,}/bin/sh.
6006      touch sub/conftst$i.h
6007    done
6008    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6009
6010    case $depmode in
6011    nosideeffect)
6012      # after this tag, mechanisms are not by side-effect, so they'll
6013      # only be used when explicitly requested
6014      if test "x$enable_dependency_tracking" = xyes; then
6015        continue
6016      else
6017        break
6018      fi
6019      ;;
6020    none) break ;;
6021    esac
6022    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6023    # mode.  It turns out that the SunPro C++ compiler does not properly
6024    # handle `-M -o', and we need to detect this.
6025    if depmode=$depmode \
6026       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6027       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6028       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6029         >/dev/null 2>conftest.err &&
6030       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6031       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6032       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6033      # icc doesn't choke on unknown options, it will just issue warnings
6034      # or remarks (even with -Werror).  So we grep stderr for any message
6035      # that says an option was ignored or not supported.
6036      # When given -MP, icc 7.0 and 7.1 complain thusly:
6037      #   icc: Command line warning: ignoring option '-M'; no argument required
6038      # The diagnosis changed in icc 8.0:
6039      #   icc: Command line remark: option '-MP' not supported
6040      if (grep 'ignoring option' conftest.err ||
6041          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6042        am_cv_CXX_dependencies_compiler_type=$depmode
6043        break
6044      fi
6045    fi
6046  done
6047
6048  cd ..
6049  rm -rf conftest.dir
6050else
6051  am_cv_CXX_dependencies_compiler_type=none
6052fi
6053
6054fi
6055echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6056echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6057CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6058
6059
6060
6061if
6062  test "x$enable_dependency_tracking" != xno \
6063  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6064  am__fastdepCXX_TRUE=
6065  am__fastdepCXX_FALSE='#'
6066else
6067  am__fastdepCXX_TRUE='#'
6068  am__fastdepCXX_FALSE=
6069fi
6070
6071
6072
6073
6074if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6075    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6076    (test "X$CXX" != "Xg++"))) ; then
6077  ac_ext=cc
6078ac_cpp='$CXXCPP $CPPFLAGS'
6079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6082echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6083echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6084if test -z "$CXXCPP"; then
6085  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6086  echo $ECHO_N "(cached) $ECHO_C" >&6
6087else
6088      # Double quotes because CXXCPP needs to be expanded
6089    for CXXCPP in "$CXX -E" "/lib/cpp"
6090    do
6091      ac_preproc_ok=false
6092for ac_cxx_preproc_warn_flag in '' yes
6093do
6094  # Use a header file that comes with gcc, so configuring glibc
6095  # with a fresh cross-compiler works.
6096  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6097  # <limits.h> exists even on freestanding compilers.
6098  # On the NeXT, cc -E runs the code through the compiler's parser,
6099  # not just through cpp. "Syntax error" is here to catch this case.
6100  cat >conftest.$ac_ext <<_ACEOF
6101/* confdefs.h.  */
6102_ACEOF
6103cat confdefs.h >>conftest.$ac_ext
6104cat >>conftest.$ac_ext <<_ACEOF
6105/* end confdefs.h.  */
6106#ifdef __STDC__
6107# include <limits.h>
6108#else
6109# include <assert.h>
6110#endif
6111                     Syntax error
6112_ACEOF
6113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6114  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6115  ac_status=$?
6116  grep -v '^ *+' conftest.er1 >conftest.err
6117  rm -f conftest.er1
6118  cat conftest.err >&5
6119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); } >/dev/null; then
6121  if test -s conftest.err; then
6122    ac_cpp_err=$ac_cxx_preproc_warn_flag
6123    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6124  else
6125    ac_cpp_err=
6126  fi
6127else
6128  ac_cpp_err=yes
6129fi
6130if test -z "$ac_cpp_err"; then
6131  :
6132else
6133  echo "$as_me: failed program was:" >&5
6134sed 's/^/| /' conftest.$ac_ext >&5
6135
6136  # Broken: fails on valid input.
6137continue
6138fi
6139rm -f conftest.err conftest.$ac_ext
6140
6141  # OK, works on sane cases.  Now check whether non-existent headers
6142  # can be detected and how.
6143  cat >conftest.$ac_ext <<_ACEOF
6144/* confdefs.h.  */
6145_ACEOF
6146cat confdefs.h >>conftest.$ac_ext
6147cat >>conftest.$ac_ext <<_ACEOF
6148/* end confdefs.h.  */
6149#include <ac_nonexistent.h>
6150_ACEOF
6151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6152  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6153  ac_status=$?
6154  grep -v '^ *+' conftest.er1 >conftest.err
6155  rm -f conftest.er1
6156  cat conftest.err >&5
6157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158  (exit $ac_status); } >/dev/null; then
6159  if test -s conftest.err; then
6160    ac_cpp_err=$ac_cxx_preproc_warn_flag
6161    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6162  else
6163    ac_cpp_err=
6164  fi
6165else
6166  ac_cpp_err=yes
6167fi
6168if test -z "$ac_cpp_err"; then
6169  # Broken: success on invalid input.
6170continue
6171else
6172  echo "$as_me: failed program was:" >&5
6173sed 's/^/| /' conftest.$ac_ext >&5
6174
6175  # Passes both tests.
6176ac_preproc_ok=:
6177break
6178fi
6179rm -f conftest.err conftest.$ac_ext
6180
6181done
6182# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6183rm -f conftest.err conftest.$ac_ext
6184if $ac_preproc_ok; then
6185  break
6186fi
6187
6188    done
6189    ac_cv_prog_CXXCPP=$CXXCPP
6190
6191fi
6192  CXXCPP=$ac_cv_prog_CXXCPP
6193else
6194  ac_cv_prog_CXXCPP=$CXXCPP
6195fi
6196echo "$as_me:$LINENO: result: $CXXCPP" >&5
6197echo "${ECHO_T}$CXXCPP" >&6
6198ac_preproc_ok=false
6199for ac_cxx_preproc_warn_flag in '' yes
6200do
6201  # Use a header file that comes with gcc, so configuring glibc
6202  # with a fresh cross-compiler works.
6203  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6204  # <limits.h> exists even on freestanding compilers.
6205  # On the NeXT, cc -E runs the code through the compiler's parser,
6206  # not just through cpp. "Syntax error" is here to catch this case.
6207  cat >conftest.$ac_ext <<_ACEOF
6208/* confdefs.h.  */
6209_ACEOF
6210cat confdefs.h >>conftest.$ac_ext
6211cat >>conftest.$ac_ext <<_ACEOF
6212/* end confdefs.h.  */
6213#ifdef __STDC__
6214# include <limits.h>
6215#else
6216# include <assert.h>
6217#endif
6218                     Syntax error
6219_ACEOF
6220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6221  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6222  ac_status=$?
6223  grep -v '^ *+' conftest.er1 >conftest.err
6224  rm -f conftest.er1
6225  cat conftest.err >&5
6226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227  (exit $ac_status); } >/dev/null; then
6228  if test -s conftest.err; then
6229    ac_cpp_err=$ac_cxx_preproc_warn_flag
6230    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6231  else
6232    ac_cpp_err=
6233  fi
6234else
6235  ac_cpp_err=yes
6236fi
6237if test -z "$ac_cpp_err"; then
6238  :
6239else
6240  echo "$as_me: failed program was:" >&5
6241sed 's/^/| /' conftest.$ac_ext >&5
6242
6243  # Broken: fails on valid input.
6244continue
6245fi
6246rm -f conftest.err conftest.$ac_ext
6247
6248  # OK, works on sane cases.  Now check whether non-existent headers
6249  # can be detected and how.
6250  cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h.  */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h.  */
6256#include <ac_nonexistent.h>
6257_ACEOF
6258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6259  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6260  ac_status=$?
6261  grep -v '^ *+' conftest.er1 >conftest.err
6262  rm -f conftest.er1
6263  cat conftest.err >&5
6264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265  (exit $ac_status); } >/dev/null; then
6266  if test -s conftest.err; then
6267    ac_cpp_err=$ac_cxx_preproc_warn_flag
6268    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6269  else
6270    ac_cpp_err=
6271  fi
6272else
6273  ac_cpp_err=yes
6274fi
6275if test -z "$ac_cpp_err"; then
6276  # Broken: success on invalid input.
6277continue
6278else
6279  echo "$as_me: failed program was:" >&5
6280sed 's/^/| /' conftest.$ac_ext >&5
6281
6282  # Passes both tests.
6283ac_preproc_ok=:
6284break
6285fi
6286rm -f conftest.err conftest.$ac_ext
6287
6288done
6289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6290rm -f conftest.err conftest.$ac_ext
6291if $ac_preproc_ok; then
6292  :
6293else
6294  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6295See \`config.log' for more details." >&5
6296echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6297See \`config.log' for more details." >&2;}
6298   { (exit 1); exit 1; }; }
6299fi
6300
6301ac_ext=cc
6302ac_cpp='$CXXCPP $CPPFLAGS'
6303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6306
6307fi
6308
6309
6310ac_ext=f
6311ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6312ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6314if test -n "$ac_tool_prefix"; then
6315  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6316  do
6317    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6318set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6319echo "$as_me:$LINENO: checking for $ac_word" >&5
6320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6321if test "${ac_cv_prog_F77+set}" = set; then
6322  echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324  if test -n "$F77"; then
6325  ac_cv_prog_F77="$F77" # Let the user override the test.
6326else
6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330  IFS=$as_save_IFS
6331  test -z "$as_dir" && as_dir=.
6332  for ac_exec_ext in '' $ac_executable_extensions; do
6333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336    break 2
6337  fi
6338done
6339done
6340
6341fi
6342fi
6343F77=$ac_cv_prog_F77
6344if test -n "$F77"; then
6345  echo "$as_me:$LINENO: result: $F77" >&5
6346echo "${ECHO_T}$F77" >&6
6347else
6348  echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6
6350fi
6351
6352    test -n "$F77" && break
6353  done
6354fi
6355if test -z "$F77"; then
6356  ac_ct_F77=$F77
6357  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6358do
6359  # Extract the first word of "$ac_prog", so it can be a program name with args.
6360set dummy $ac_prog; ac_word=$2
6361echo "$as_me:$LINENO: checking for $ac_word" >&5
6362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6363if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6364  echo $ECHO_N "(cached) $ECHO_C" >&6
6365else
6366  if test -n "$ac_ct_F77"; then
6367  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6368else
6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370for as_dir in $PATH
6371do
6372  IFS=$as_save_IFS
6373  test -z "$as_dir" && as_dir=.
6374  for ac_exec_ext in '' $ac_executable_extensions; do
6375  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376    ac_cv_prog_ac_ct_F77="$ac_prog"
6377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378    break 2
6379  fi
6380done
6381done
6382
6383fi
6384fi
6385ac_ct_F77=$ac_cv_prog_ac_ct_F77
6386if test -n "$ac_ct_F77"; then
6387  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6388echo "${ECHO_T}$ac_ct_F77" >&6
6389else
6390  echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6
6392fi
6393
6394  test -n "$ac_ct_F77" && break
6395done
6396
6397  F77=$ac_ct_F77
6398fi
6399
6400
6401# Provide some information about the compiler.
6402echo "$as_me:6402:" \
6403     "checking for Fortran 77 compiler version" >&5
6404ac_compiler=`set X $ac_compile; echo $2`
6405{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6406  (eval $ac_compiler --version </dev/null >&5) 2>&5
6407  ac_status=$?
6408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409  (exit $ac_status); }
6410{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6411  (eval $ac_compiler -v </dev/null >&5) 2>&5
6412  ac_status=$?
6413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414  (exit $ac_status); }
6415{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6416  (eval $ac_compiler -V </dev/null >&5) 2>&5
6417  ac_status=$?
6418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419  (exit $ac_status); }
6420rm -f a.out
6421
6422# If we don't use `.F' as extension, the preprocessor is not run on the
6423# input file.  (Note that this only needs to work for GNU compilers.)
6424ac_save_ext=$ac_ext
6425ac_ext=F
6426echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6427echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6428if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6429  echo $ECHO_N "(cached) $ECHO_C" >&6
6430else
6431  cat >conftest.$ac_ext <<_ACEOF
6432      program main
6433#ifndef __GNUC__
6434       choke me
6435#endif
6436
6437      end
6438_ACEOF
6439rm -f conftest.$ac_objext
6440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441  (eval $ac_compile) 2>conftest.er1
6442  ac_status=$?
6443  grep -v '^ *+' conftest.er1 >conftest.err
6444  rm -f conftest.er1
6445  cat conftest.err >&5
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); } &&
6448         { ac_try='test -z "$ac_f77_werror_flag"
6449                         || test ! -s conftest.err'
6450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451  (eval $ac_try) 2>&5
6452  ac_status=$?
6453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); }; } &&
6455         { ac_try='test -s conftest.$ac_objext'
6456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457  (eval $ac_try) 2>&5
6458  ac_status=$?
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); }; }; then
6461  ac_compiler_gnu=yes
6462else
6463  echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466ac_compiler_gnu=no
6467fi
6468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6469ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6470
6471fi
6472echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6473echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6474ac_ext=$ac_save_ext
6475ac_test_FFLAGS=${FFLAGS+set}
6476ac_save_FFLAGS=$FFLAGS
6477FFLAGS=
6478echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6479echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6480if test "${ac_cv_prog_f77_g+set}" = set; then
6481  echo $ECHO_N "(cached) $ECHO_C" >&6
6482else
6483  FFLAGS=-g
6484cat >conftest.$ac_ext <<_ACEOF
6485      program main
6486
6487      end
6488_ACEOF
6489rm -f conftest.$ac_objext
6490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491  (eval $ac_compile) 2>conftest.er1
6492  ac_status=$?
6493  grep -v '^ *+' conftest.er1 >conftest.err
6494  rm -f conftest.er1
6495  cat conftest.err >&5
6496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497  (exit $ac_status); } &&
6498         { ac_try='test -z "$ac_f77_werror_flag"
6499                         || test ! -s conftest.err'
6500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501  (eval $ac_try) 2>&5
6502  ac_status=$?
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); }; } &&
6505         { ac_try='test -s conftest.$ac_objext'
6506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507  (eval $ac_try) 2>&5
6508  ac_status=$?
6509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510  (exit $ac_status); }; }; then
6511  ac_cv_prog_f77_g=yes
6512else
6513  echo "$as_me: failed program was:" >&5
6514sed 's/^/| /' conftest.$ac_ext >&5
6515
6516ac_cv_prog_f77_g=no
6517fi
6518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6519
6520fi
6521echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6522echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6523if test "$ac_test_FFLAGS" = set; then
6524  FFLAGS=$ac_save_FFLAGS
6525elif test $ac_cv_prog_f77_g = yes; then
6526  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6527    FFLAGS="-g -O2"
6528  else
6529    FFLAGS="-g"
6530  fi
6531else
6532  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6533    FFLAGS="-O2"
6534  else
6535    FFLAGS=
6536  fi
6537fi
6538
6539G77=`test $ac_compiler_gnu = yes && echo yes`
6540ac_ext=c
6541ac_cpp='$CPP $CPPFLAGS'
6542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544ac_compiler_gnu=$ac_cv_c_compiler_gnu
6545
6546
6547
6548# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6549
6550# find the maximum length of command line arguments
6551echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6552echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6553if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6554  echo $ECHO_N "(cached) $ECHO_C" >&6
6555else
6556    i=0
6557  teststring="ABCD"
6558
6559  case $build_os in
6560  msdosdjgpp*)
6561    # On DJGPP, this test can blow up pretty badly due to problems in libc
6562    # (any single argument exceeding 2000 bytes causes a buffer overrun
6563    # during glob expansion).  Even if it were fixed, the result of this
6564    # check would be larger than it should be.
6565    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6566    ;;
6567
6568  gnu*)
6569    # Under GNU Hurd, this test is not required because there is
6570    # no limit to the length of command line arguments.
6571    # Libtool will interpret -1 as no limit whatsoever
6572    lt_cv_sys_max_cmd_len=-1;
6573    ;;
6574
6575  cygwin* | mingw*)
6576    # On Win9x/ME, this test blows up -- it succeeds, but takes
6577    # about 5 minutes as the teststring grows exponentially.
6578    # Worse, since 9x/ME are not pre-emptively multitasking,
6579    # you end up with a "frozen" computer, even though with patience
6580    # the test eventually succeeds (with a max line length of 256k).
6581    # Instead, let's just punt: use the minimum linelength reported by
6582    # all of the supported platforms: 8192 (on NT/2K/XP).
6583    lt_cv_sys_max_cmd_len=8192;
6584    ;;
6585
6586  amigaos*)
6587    # On AmigaOS with pdksh, this test takes hours, literally.
6588    # So we just punt and use a minimum line length of 8192.
6589    lt_cv_sys_max_cmd_len=8192;
6590    ;;
6591
6592  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6593    # This has been around since 386BSD, at least.  Likely further.
6594    if test -x /sbin/sysctl; then
6595      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6596    elif test -x /usr/sbin/sysctl; then
6597      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6598    else
6599      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6600    fi
6601    # And add a safety zone
6602    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6603    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6604    ;;
6605
6606  interix*)
6607    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6608    lt_cv_sys_max_cmd_len=196608
6609    ;;
6610
6611  osf*)
6612    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6613    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6614    # nice to cause kernel panics so lets avoid the loop below.
6615    # First set a reasonable default.
6616    lt_cv_sys_max_cmd_len=16384
6617    #
6618    if test -x /sbin/sysconfig; then
6619      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6620        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6621      esac
6622    fi
6623    ;;
6624  sco3.2v5*)
6625    lt_cv_sys_max_cmd_len=102400
6626    ;;
6627  sysv5* | sco5v6* | sysv4.2uw2*)
6628    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6629    if test -n "$kargmax"; then
6630      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6631    else
6632      lt_cv_sys_max_cmd_len=32768
6633    fi
6634    ;;
6635  *)
6636    # If test is not a shell built-in, we'll probably end up computing a
6637    # maximum length that is only half of the actual maximum length, but
6638    # we can't tell.
6639    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6640    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6641               = "XX$teststring") >/dev/null 2>&1 &&
6642            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6643            lt_cv_sys_max_cmd_len=$new_result &&
6644            test $i != 17 # 1/2 MB should be enough
6645    do
6646      i=`expr $i + 1`
6647      teststring=$teststring$teststring
6648    done
6649    teststring=
6650    # Add a significant safety factor because C++ compilers can tack on massive
6651    # amounts of additional arguments before passing them to the linker.
6652    # It appears as though 1/2 is a usable value.
6653    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6654    ;;
6655  esac
6656
6657fi
6658
6659if test -n $lt_cv_sys_max_cmd_len ; then
6660  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6661echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6662else
6663  echo "$as_me:$LINENO: result: none" >&5
6664echo "${ECHO_T}none" >&6
6665fi
6666
6667
6668
6669
6670# Check for command to grab the raw symbol name followed by C symbol from nm.
6671echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6672echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6673if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6674  echo $ECHO_N "(cached) $ECHO_C" >&6
6675else
6676
6677# These are sane defaults that work on at least a few old systems.
6678# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6679
6680# Character class describing NM global symbol codes.
6681symcode='[BCDEGRST]'
6682
6683# Regexp to match symbols that can be accessed directly from C.
6684sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6685
6686# Transform an extracted symbol line into a proper C declaration
6687lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6688
6689# Transform an extracted symbol line into symbol name and symbol address
6690lt_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'"
6691
6692# Define system-specific variables.
6693case $host_os in
6694aix*)
6695  symcode='[BCDT]'
6696  ;;
6697cygwin* | mingw* | pw32*)
6698  symcode='[ABCDGISTW]'
6699  ;;
6700hpux*) # Its linker distinguishes data from code symbols
6701  if test "$host_cpu" = ia64; then
6702    symcode='[ABCDEGRST]'
6703  fi
6704  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6705  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'"
6706  ;;
6707linux*)
6708  if test "$host_cpu" = ia64; then
6709    symcode='[ABCDGIRSTW]'
6710    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6711    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'"
6712  fi
6713  ;;
6714irix* | nonstopux*)
6715  symcode='[BCDEGRST]'
6716  ;;
6717osf*)
6718  symcode='[BCDEGQRST]'
6719  ;;
6720solaris*)
6721  symcode='[BDRT]'
6722  ;;
6723sco3.2v5*)
6724  symcode='[DT]'
6725  ;;
6726sysv4.2uw2*)
6727  symcode='[DT]'
6728  ;;
6729sysv5* | sco5v6* | unixware* | OpenUNIX*)
6730  symcode='[ABDT]'
6731  ;;
6732sysv4)
6733  symcode='[DFNSTU]'
6734  ;;
6735esac
6736
6737# Handle CRLF in mingw tool chain
6738opt_cr=
6739case $build_os in
6740mingw*)
6741  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6742  ;;
6743esac
6744
6745# If we're using GNU nm, then use its standard symbol codes.
6746case `$NM -V 2>&1` in
6747*GNU* | *'with BFD'*)
6748  symcode='[ABCDGIRSTW]' ;;
6749esac
6750
6751# Try without a prefix undercore, then with it.
6752for ac_symprfx in "" "_"; do
6753
6754  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6755  symxfrm="\\1 $ac_symprfx\\2 \\2"
6756
6757  # Write the raw and C identifiers.
6758  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6759
6760  # Check to see that the pipe works correctly.
6761  pipe_works=no
6762
6763  rm -f conftest*
6764  cat > conftest.$ac_ext <<EOF
6765#ifdef __cplusplus
6766extern "C" {
6767#endif
6768char nm_test_var;
6769void nm_test_func(){}
6770#ifdef __cplusplus
6771}
6772#endif
6773int main(){nm_test_var='a';nm_test_func();return(0);}
6774EOF
6775
6776  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777  (eval $ac_compile) 2>&5
6778  ac_status=$?
6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780  (exit $ac_status); }; then
6781    # Now try to grab the symbols.
6782    nlist=conftest.nm
6783    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6784  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6785  ac_status=$?
6786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787  (exit $ac_status); } && test -s "$nlist"; then
6788      # Try sorting and uniquifying the output.
6789      if sort "$nlist" | uniq > "$nlist"T; then
6790        mv -f "$nlist"T "$nlist"
6791      else
6792        rm -f "$nlist"T
6793      fi
6794
6795      # Make sure that we snagged all the symbols we need.
6796      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6797        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6798          cat <<EOF > conftest.$ac_ext
6799#ifdef __cplusplus
6800extern "C" {
6801#endif
6802
6803EOF
6804          # Now generate the symbol file.
6805          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6806
6807          cat <<EOF >> conftest.$ac_ext
6808#if defined (__STDC__) && __STDC__
6809# define lt_ptr_t void *
6810#else
6811# define lt_ptr_t char *
6812# define const
6813#endif
6814
6815/* The mapping between symbol names and symbols. */
6816const struct {
6817  const char *name;
6818  lt_ptr_t address;
6819}
6820lt_preloaded_symbols[] =
6821{
6822EOF
6823          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6824          cat <<\EOF >> conftest.$ac_ext
6825  {0, (lt_ptr_t) 0}
6826};
6827
6828#ifdef __cplusplus
6829}
6830#endif
6831EOF
6832          # Now try linking the two files.
6833          mv conftest.$ac_objext conftstm.$ac_objext
6834          lt_save_LIBS="$LIBS"
6835          lt_save_CFLAGS="$CFLAGS"
6836          LIBS="conftstm.$ac_objext"
6837          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6838          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6839  (eval $ac_link) 2>&5
6840  ac_status=$?
6841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6843            pipe_works=yes
6844          fi
6845          LIBS="$lt_save_LIBS"
6846          CFLAGS="$lt_save_CFLAGS"
6847        else
6848          echo "cannot find nm_test_func in $nlist" >&5
6849        fi
6850      else
6851        echo "cannot find nm_test_var in $nlist" >&5
6852      fi
6853    else
6854      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6855    fi
6856  else
6857    echo "$progname: failed program was:" >&5
6858    cat conftest.$ac_ext >&5
6859  fi
6860  rm -f conftest* conftst*
6861
6862  # Do not use the global_symbol_pipe unless it works.
6863  if test "$pipe_works" = yes; then
6864    break
6865  else
6866    lt_cv_sys_global_symbol_pipe=
6867  fi
6868done
6869
6870fi
6871
6872if test -z "$lt_cv_sys_global_symbol_pipe"; then
6873  lt_cv_sys_global_symbol_to_cdecl=
6874fi
6875if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6876  echo "$as_me:$LINENO: result: failed" >&5
6877echo "${ECHO_T}failed" >&6
6878else
6879  echo "$as_me:$LINENO: result: ok" >&5
6880echo "${ECHO_T}ok" >&6
6881fi
6882
6883echo "$as_me:$LINENO: checking for objdir" >&5
6884echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6885if test "${lt_cv_objdir+set}" = set; then
6886  echo $ECHO_N "(cached) $ECHO_C" >&6
6887else
6888  rm -f .libs 2>/dev/null
6889mkdir .libs 2>/dev/null
6890if test -d .libs; then
6891  lt_cv_objdir=.libs
6892else
6893  # MS-DOS does not allow filenames that begin with a dot.
6894  lt_cv_objdir=_libs
6895fi
6896rmdir .libs 2>/dev/null
6897fi
6898echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6899echo "${ECHO_T}$lt_cv_objdir" >&6
6900objdir=$lt_cv_objdir
6901
6902
6903
6904
6905
6906case $host_os in
6907aix3*)
6908  # AIX sometimes has problems with the GCC collect2 program.  For some
6909  # reason, if we set the COLLECT_NAMES environment variable, the problems
6910  # vanish in a puff of smoke.
6911  if test "X${COLLECT_NAMES+set}" != Xset; then
6912    COLLECT_NAMES=
6913    export COLLECT_NAMES
6914  fi
6915  ;;
6916esac
6917
6918# Sed substitution that helps us do robust quoting.  It backslashifies
6919# metacharacters that are still active within double-quoted strings.
6920Xsed='sed -e 1s/^X//'
6921sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6922
6923# Same as above, but do not quote variable references.
6924double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6925
6926# Sed substitution to delay expansion of an escaped shell variable in a
6927# double_quote_subst'ed string.
6928delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6929
6930# Sed substitution to avoid accidental globbing in evaled expressions
6931no_glob_subst='s/\*/\\\*/g'
6932
6933# Constants:
6934rm="rm -f"
6935
6936# Global variables:
6937default_ofile=libtool
6938can_build_shared=yes
6939
6940# All known linkers require a `.a' archive for static linking (except MSVC,
6941# which needs '.lib').
6942libext=a
6943ltmain="$ac_aux_dir/ltmain.sh"
6944ofile="$default_ofile"
6945with_gnu_ld="$lt_cv_prog_gnu_ld"
6946
6947if test -n "$ac_tool_prefix"; then
6948  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6949set dummy ${ac_tool_prefix}ar; ac_word=$2
6950echo "$as_me:$LINENO: checking for $ac_word" >&5
6951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6952if test "${ac_cv_prog_AR+set}" = set; then
6953  echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955  if test -n "$AR"; then
6956  ac_cv_prog_AR="$AR" # Let the user override the test.
6957else
6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961  IFS=$as_save_IFS
6962  test -z "$as_dir" && as_dir=.
6963  for ac_exec_ext in '' $ac_executable_extensions; do
6964  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965    ac_cv_prog_AR="${ac_tool_prefix}ar"
6966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967    break 2
6968  fi
6969done
6970done
6971
6972fi
6973fi
6974AR=$ac_cv_prog_AR
6975if test -n "$AR"; then
6976  echo "$as_me:$LINENO: result: $AR" >&5
6977echo "${ECHO_T}$AR" >&6
6978else
6979  echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6
6981fi
6982
6983fi
6984if test -z "$ac_cv_prog_AR"; then
6985  ac_ct_AR=$AR
6986  # Extract the first word of "ar", so it can be a program name with args.
6987set dummy ar; ac_word=$2
6988echo "$as_me:$LINENO: checking for $ac_word" >&5
6989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6990if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6991  echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993  if test -n "$ac_ct_AR"; then
6994  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999  IFS=$as_save_IFS
7000  test -z "$as_dir" && as_dir=.
7001  for ac_exec_ext in '' $ac_executable_extensions; do
7002  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003    ac_cv_prog_ac_ct_AR="ar"
7004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005    break 2
7006  fi
7007done
7008done
7009
7010  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7011fi
7012fi
7013ac_ct_AR=$ac_cv_prog_ac_ct_AR
7014if test -n "$ac_ct_AR"; then
7015  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7016echo "${ECHO_T}$ac_ct_AR" >&6
7017else
7018  echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6
7020fi
7021
7022  AR=$ac_ct_AR
7023else
7024  AR="$ac_cv_prog_AR"
7025fi
7026
7027if test -n "$ac_tool_prefix"; then
7028  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7029set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7030echo "$as_me:$LINENO: checking for $ac_word" >&5
7031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7032if test "${ac_cv_prog_RANLIB+set}" = set; then
7033  echo $ECHO_N "(cached) $ECHO_C" >&6
7034else
7035  if test -n "$RANLIB"; then
7036  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041  IFS=$as_save_IFS
7042  test -z "$as_dir" && as_dir=.
7043  for ac_exec_ext in '' $ac_executable_extensions; do
7044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047    break 2
7048  fi
7049done
7050done
7051
7052fi
7053fi
7054RANLIB=$ac_cv_prog_RANLIB
7055if test -n "$RANLIB"; then
7056  echo "$as_me:$LINENO: result: $RANLIB" >&5
7057echo "${ECHO_T}$RANLIB" >&6
7058else
7059  echo "$as_me:$LINENO: result: no" >&5
7060echo "${ECHO_T}no" >&6
7061fi
7062
7063fi
7064if test -z "$ac_cv_prog_RANLIB"; then
7065  ac_ct_RANLIB=$RANLIB
7066  # Extract the first word of "ranlib", so it can be a program name with args.
7067set dummy ranlib; ac_word=$2
7068echo "$as_me:$LINENO: checking for $ac_word" >&5
7069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7070if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7071  echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073  if test -n "$ac_ct_RANLIB"; then
7074  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7075else
7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079  IFS=$as_save_IFS
7080  test -z "$as_dir" && as_dir=.
7081  for ac_exec_ext in '' $ac_executable_extensions; do
7082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083    ac_cv_prog_ac_ct_RANLIB="ranlib"
7084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085    break 2
7086  fi
7087done
7088done
7089
7090  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7091fi
7092fi
7093ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7094if test -n "$ac_ct_RANLIB"; then
7095  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7096echo "${ECHO_T}$ac_ct_RANLIB" >&6
7097else
7098  echo "$as_me:$LINENO: result: no" >&5
7099echo "${ECHO_T}no" >&6
7100fi
7101
7102  RANLIB=$ac_ct_RANLIB
7103else
7104  RANLIB="$ac_cv_prog_RANLIB"
7105fi
7106
7107if test -n "$ac_tool_prefix"; then
7108  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7109set dummy ${ac_tool_prefix}strip; ac_word=$2
7110echo "$as_me:$LINENO: checking for $ac_word" >&5
7111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7112if test "${ac_cv_prog_STRIP+set}" = set; then
7113  echo $ECHO_N "(cached) $ECHO_C" >&6
7114else
7115  if test -n "$STRIP"; then
7116  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121  IFS=$as_save_IFS
7122  test -z "$as_dir" && as_dir=.
7123  for ac_exec_ext in '' $ac_executable_extensions; do
7124  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7125    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7126    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127    break 2
7128  fi
7129done
7130done
7131
7132fi
7133fi
7134STRIP=$ac_cv_prog_STRIP
7135if test -n "$STRIP"; then
7136  echo "$as_me:$LINENO: result: $STRIP" >&5
7137echo "${ECHO_T}$STRIP" >&6
7138else
7139  echo "$as_me:$LINENO: result: no" >&5
7140echo "${ECHO_T}no" >&6
7141fi
7142
7143fi
7144if test -z "$ac_cv_prog_STRIP"; then
7145  ac_ct_STRIP=$STRIP
7146  # Extract the first word of "strip", so it can be a program name with args.
7147set dummy strip; ac_word=$2
7148echo "$as_me:$LINENO: checking for $ac_word" >&5
7149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7150if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7151  echo $ECHO_N "(cached) $ECHO_C" >&6
7152else
7153  if test -n "$ac_ct_STRIP"; then
7154  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7155else
7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159  IFS=$as_save_IFS
7160  test -z "$as_dir" && as_dir=.
7161  for ac_exec_ext in '' $ac_executable_extensions; do
7162  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163    ac_cv_prog_ac_ct_STRIP="strip"
7164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165    break 2
7166  fi
7167done
7168done
7169
7170  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7171fi
7172fi
7173ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7174if test -n "$ac_ct_STRIP"; then
7175  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7176echo "${ECHO_T}$ac_ct_STRIP" >&6
7177else
7178  echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6
7180fi
7181
7182  STRIP=$ac_ct_STRIP
7183else
7184  STRIP="$ac_cv_prog_STRIP"
7185fi
7186
7187
7188old_CC="$CC"
7189old_CFLAGS="$CFLAGS"
7190
7191# Set sane defaults for various variables
7192test -z "$AR" && AR=ar
7193test -z "$AR_FLAGS" && AR_FLAGS=cru
7194test -z "$AS" && AS=as
7195test -z "$CC" && CC=cc
7196test -z "$LTCC" && LTCC=$CC
7197test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7198test -z "$DLLTOOL" && DLLTOOL=dlltool
7199test -z "$LD" && LD=ld
7200test -z "$LN_S" && LN_S="ln -s"
7201test -z "$MAGIC_CMD" && MAGIC_CMD=file
7202test -z "$NM" && NM=nm
7203test -z "$SED" && SED=sed
7204test -z "$OBJDUMP" && OBJDUMP=objdump
7205test -z "$RANLIB" && RANLIB=:
7206test -z "$STRIP" && STRIP=:
7207test -z "$ac_objext" && ac_objext=o
7208
7209# Determine commands to create old-style static archives.
7210old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7211old_postinstall_cmds='chmod 644 $oldlib'
7212old_postuninstall_cmds=
7213
7214if test -n "$RANLIB"; then
7215  case $host_os in
7216  openbsd*)
7217    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7218    ;;
7219  *)
7220    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7221    ;;
7222  esac
7223  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7224fi
7225
7226for cc_temp in $compiler""; do
7227  case $cc_temp in
7228    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7229    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7230    \-*) ;;
7231    *) break;;
7232  esac
7233done
7234cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7235
7236
7237# Only perform the check for file, if the check method requires it
7238case $deplibs_check_method in
7239file_magic*)
7240  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7241    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7242echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7243if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7244  echo $ECHO_N "(cached) $ECHO_C" >&6
7245else
7246  case $MAGIC_CMD in
7247[\\/*] |  ?:[\\/]*)
7248  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7249  ;;
7250*)
7251  lt_save_MAGIC_CMD="$MAGIC_CMD"
7252  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7253  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7254  for ac_dir in $ac_dummy; do
7255    IFS="$lt_save_ifs"
7256    test -z "$ac_dir" && ac_dir=.
7257    if test -f $ac_dir/${ac_tool_prefix}file; then
7258      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7259      if test -n "$file_magic_test_file"; then
7260        case $deplibs_check_method in
7261        "file_magic "*)
7262          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7263          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7264          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7265            $EGREP "$file_magic_regex" > /dev/null; then
7266            :
7267          else
7268            cat <<EOF 1>&2
7269
7270*** Warning: the command libtool uses to detect shared libraries,
7271*** $file_magic_cmd, produces output that libtool cannot recognize.
7272*** The result is that libtool may fail to recognize shared libraries
7273*** as such.  This will affect the creation of libtool libraries that
7274*** depend on shared libraries, but programs linked with such libtool
7275*** libraries will work regardless of this problem.  Nevertheless, you
7276*** may want to report the problem to your system manager and/or to
7277*** bug-libtool@gnu.org
7278
7279EOF
7280          fi ;;
7281        esac
7282      fi
7283      break
7284    fi
7285  done
7286  IFS="$lt_save_ifs"
7287  MAGIC_CMD="$lt_save_MAGIC_CMD"
7288  ;;
7289esac
7290fi
7291
7292MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7293if test -n "$MAGIC_CMD"; then
7294  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7295echo "${ECHO_T}$MAGIC_CMD" >&6
7296else
7297  echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6
7299fi
7300
7301if test -z "$lt_cv_path_MAGIC_CMD"; then
7302  if test -n "$ac_tool_prefix"; then
7303    echo "$as_me:$LINENO: checking for file" >&5
7304echo $ECHO_N "checking for file... $ECHO_C" >&6
7305if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7306  echo $ECHO_N "(cached) $ECHO_C" >&6
7307else
7308  case $MAGIC_CMD in
7309[\\/*] |  ?:[\\/]*)
7310  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7311  ;;
7312*)
7313  lt_save_MAGIC_CMD="$MAGIC_CMD"
7314  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7315  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7316  for ac_dir in $ac_dummy; do
7317    IFS="$lt_save_ifs"
7318    test -z "$ac_dir" && ac_dir=.
7319    if test -f $ac_dir/file; then
7320      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7321      if test -n "$file_magic_test_file"; then
7322        case $deplibs_check_method in
7323        "file_magic "*)
7324          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7325          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7326          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7327            $EGREP "$file_magic_regex" > /dev/null; then
7328            :
7329          else
7330            cat <<EOF 1>&2
7331
7332*** Warning: the command libtool uses to detect shared libraries,
7333*** $file_magic_cmd, produces output that libtool cannot recognize.
7334*** The result is that libtool may fail to recognize shared libraries
7335*** as such.  This will affect the creation of libtool libraries that
7336*** depend on shared libraries, but programs linked with such libtool
7337*** libraries will work regardless of this problem.  Nevertheless, you
7338*** may want to report the problem to your system manager and/or to
7339*** bug-libtool@gnu.org
7340
7341EOF
7342          fi ;;
7343        esac
7344      fi
7345      break
7346    fi
7347  done
7348  IFS="$lt_save_ifs"
7349  MAGIC_CMD="$lt_save_MAGIC_CMD"
7350  ;;
7351esac
7352fi
7353
7354MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7355if test -n "$MAGIC_CMD"; then
7356  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7357echo "${ECHO_T}$MAGIC_CMD" >&6
7358else
7359  echo "$as_me:$LINENO: result: no" >&5
7360echo "${ECHO_T}no" >&6
7361fi
7362
7363  else
7364    MAGIC_CMD=:
7365  fi
7366fi
7367
7368  fi
7369  ;;
7370esac
7371
7372enable_dlopen=no
7373enable_win32_dll=no
7374
7375# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7376if test "${enable_libtool_lock+set}" = set; then
7377  enableval="$enable_libtool_lock"
7378
7379fi;
7380test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7381
7382
7383# Check whether --with-pic or --without-pic was given.
7384if test "${with_pic+set}" = set; then
7385  withval="$with_pic"
7386  pic_mode="$withval"
7387else
7388  pic_mode=default
7389fi;
7390test -z "$pic_mode" && pic_mode=default
7391
7392# Use C for the default configuration in the libtool script
7393tagname=
7394lt_save_CC="$CC"
7395ac_ext=c
7396ac_cpp='$CPP $CPPFLAGS'
7397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399ac_compiler_gnu=$ac_cv_c_compiler_gnu
7400
7401
7402# Source file extension for C test sources.
7403ac_ext=c
7404
7405# Object file extension for compiled C test sources.
7406objext=o
7407objext=$objext
7408
7409# Code to be used in simple compile tests
7410lt_simple_compile_test_code="int some_variable = 0;\n"
7411
7412# Code to be used in simple link tests
7413lt_simple_link_test_code='int main(){return(0);}\n'
7414
7415
7416# If no C compiler was specified, use CC.
7417LTCC=${LTCC-"$CC"}
7418
7419# If no C compiler flags were specified, use CFLAGS.
7420LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7421
7422# Allow CC to be a program name with arguments.
7423compiler=$CC
7424
7425
7426# save warnings/boilerplate of simple test code
7427ac_outfile=conftest.$ac_objext
7428printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7429eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7430_lt_compiler_boilerplate=`cat conftest.err`
7431$rm conftest*
7432
7433ac_outfile=conftest.$ac_objext
7434printf "$lt_simple_link_test_code" >conftest.$ac_ext
7435eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7436_lt_linker_boilerplate=`cat conftest.err`
7437$rm conftest*
7438
7439
7440## CAVEAT EMPTOR:
7441## There is no encapsulation within the following macros, do not change
7442## the running order or otherwise move them around unless you know exactly
7443## what you are doing...
7444
7445lt_prog_compiler_no_builtin_flag=
7446
7447if test "$GCC" = yes; then
7448  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7449
7450
7451echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7452echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7453if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7454  echo $ECHO_N "(cached) $ECHO_C" >&6
7455else
7456  lt_cv_prog_compiler_rtti_exceptions=no
7457  ac_outfile=conftest.$ac_objext
7458   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7459   lt_compiler_flag="-fno-rtti -fno-exceptions"
7460   # Insert the option either (1) after the last *FLAGS variable, or
7461   # (2) before a word containing "conftest.", or (3) at the end.
7462   # Note that $ac_compile itself does not contain backslashes and begins
7463   # with a dollar sign (not a hyphen), so the echo should work correctly.
7464   # The option is referenced via a variable to avoid confusing sed.
7465   lt_compile=`echo "$ac_compile" | $SED \
7466   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7467   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7468   -e 's:$: $lt_compiler_flag:'`
7469   (eval echo "\"\$as_me:7469: $lt_compile\"" >&5)
7470   (eval "$lt_compile" 2>conftest.err)
7471   ac_status=$?
7472   cat conftest.err >&5
7473   echo "$as_me:7473: \$? = $ac_status" >&5
7474   if (exit $ac_status) && test -s "$ac_outfile"; then
7475     # The compiler can only warn and ignore the option if not recognized
7476     # So say no if there are warnings other than the usual output.
7477     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7478     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7479     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7480       lt_cv_prog_compiler_rtti_exceptions=yes
7481     fi
7482   fi
7483   $rm conftest*
7484
7485fi
7486echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7487echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7488
7489if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7490    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7491else
7492    :
7493fi
7494
7495fi
7496
7497lt_prog_compiler_wl=
7498lt_prog_compiler_pic=
7499lt_prog_compiler_static=
7500
7501echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7502echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7503
7504  if test "$GCC" = yes; then
7505    lt_prog_compiler_wl='-Wl,'
7506    lt_prog_compiler_static='-static'
7507
7508    case $host_os in
7509      aix*)
7510      # All AIX code is PIC.
7511      if test "$host_cpu" = ia64; then
7512        # AIX 5 now supports IA64 processor
7513        lt_prog_compiler_static='-Bstatic'
7514      fi
7515      ;;
7516
7517    amigaos*)
7518      # FIXME: we need at least 68020 code to build shared libraries, but
7519      # adding the `-m68020' flag to GCC prevents building anything better,
7520      # like `-m68040'.
7521      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7522      ;;
7523
7524    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7525      # PIC is the default for these OSes.
7526      ;;
7527
7528    mingw* | pw32* | os2*)
7529      # This hack is so that the source file can tell whether it is being
7530      # built for inclusion in a dll (and should export symbols for example).
7531      lt_prog_compiler_pic='-DDLL_EXPORT'
7532      ;;
7533
7534    darwin* | rhapsody*)
7535      # PIC is the default on this platform
7536      # Common symbols not allowed in MH_DYLIB files
7537      lt_prog_compiler_pic='-fno-common'
7538      ;;
7539
7540    interix3*)
7541      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7542      # Instead, we relocate shared libraries at runtime.
7543      ;;
7544
7545    msdosdjgpp*)
7546      # Just because we use GCC doesn't mean we suddenly get shared libraries
7547      # on systems that don't support them.
7548      lt_prog_compiler_can_build_shared=no
7549      enable_shared=no
7550      ;;
7551
7552    sysv4*MP*)
7553      if test -d /usr/nec; then
7554        lt_prog_compiler_pic=-Kconform_pic
7555      fi
7556      ;;
7557
7558    hpux*)
7559      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7560      # not for PA HP-UX.
7561      case $host_cpu in
7562      hppa*64*|ia64*)
7563        # +Z the default
7564        ;;
7565      *)
7566        lt_prog_compiler_pic='-fPIC'
7567        ;;
7568      esac
7569      ;;
7570
7571    *)
7572      lt_prog_compiler_pic='-fPIC'
7573      ;;
7574    esac
7575  else
7576    # PORTME Check for flag to pass linker flags through the system compiler.
7577    case $host_os in
7578    aix*)
7579      lt_prog_compiler_wl='-Wl,'
7580      if test "$host_cpu" = ia64; then
7581        # AIX 5 now supports IA64 processor
7582        lt_prog_compiler_static='-Bstatic'
7583      else
7584        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7585      fi
7586      ;;
7587      darwin*)
7588        # PIC is the default on this platform
7589        # Common symbols not allowed in MH_DYLIB files
7590       case $cc_basename in
7591         xlc*)
7592         lt_prog_compiler_pic='-qnocommon'
7593         lt_prog_compiler_wl='-Wl,'
7594         ;;
7595       esac
7596       ;;
7597
7598    mingw* | pw32* | os2*)
7599      # This hack is so that the source file can tell whether it is being
7600      # built for inclusion in a dll (and should export symbols for example).
7601      lt_prog_compiler_pic='-DDLL_EXPORT'
7602      ;;
7603
7604    hpux9* | hpux10* | hpux11*)
7605      lt_prog_compiler_wl='-Wl,'
7606      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7607      # not for PA HP-UX.
7608      case $host_cpu in
7609      hppa*64*|ia64*)
7610        # +Z the default
7611        ;;
7612      *)
7613        lt_prog_compiler_pic='+Z'
7614        ;;
7615      esac
7616      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7617      lt_prog_compiler_static='${wl}-a ${wl}archive'
7618      ;;
7619
7620    irix5* | irix6* | nonstopux*)
7621      lt_prog_compiler_wl='-Wl,'
7622      # PIC (with -KPIC) is the default.
7623      lt_prog_compiler_static='-non_shared'
7624      ;;
7625
7626    newsos6)
7627      lt_prog_compiler_pic='-KPIC'
7628      lt_prog_compiler_static='-Bstatic'
7629      ;;
7630
7631    linux*)
7632      case $cc_basename in
7633      icc* | ecc*)
7634        lt_prog_compiler_wl='-Wl,'
7635        lt_prog_compiler_pic='-KPIC'
7636        lt_prog_compiler_static='-static'
7637        ;;
7638      pgcc* | pgf77* | pgf90* | pgf95*)
7639        # Portland Group compilers (*not* the Pentium gcc compiler,
7640        # which looks to be a dead project)
7641        lt_prog_compiler_wl='-Wl,'
7642        lt_prog_compiler_pic='-fpic'
7643        lt_prog_compiler_static='-Bstatic'
7644        ;;
7645      ccc*)
7646        lt_prog_compiler_wl='-Wl,'
7647        # All Alpha code is PIC.
7648        lt_prog_compiler_static='-non_shared'
7649        ;;
7650      esac
7651      ;;
7652
7653    osf3* | osf4* | osf5*)
7654      lt_prog_compiler_wl='-Wl,'
7655      # All OSF/1 code is PIC.
7656      lt_prog_compiler_static='-non_shared'
7657      ;;
7658
7659    solaris*)
7660      lt_prog_compiler_pic='-KPIC'
7661      lt_prog_compiler_static='-Bstatic'
7662      case $cc_basename in
7663      f77* | f90* | f95*)
7664        lt_prog_compiler_wl='-Qoption ld ';;
7665      *)
7666        lt_prog_compiler_wl='-Wl,';;
7667      esac
7668      ;;
7669
7670    sunos4*)
7671      lt_prog_compiler_wl='-Qoption ld '
7672      lt_prog_compiler_pic='-PIC'
7673      lt_prog_compiler_static='-Bstatic'
7674      ;;
7675
7676    sysv4 | sysv4.2uw2* | sysv4.3*)
7677      lt_prog_compiler_wl='-Wl,'
7678      lt_prog_compiler_pic='-KPIC'
7679      lt_prog_compiler_static='-Bstatic'
7680      ;;
7681
7682    sysv4*MP*)
7683      if test -d /usr/nec ;then
7684        lt_prog_compiler_pic='-Kconform_pic'
7685        lt_prog_compiler_static='-Bstatic'
7686      fi
7687      ;;
7688
7689    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7690      lt_prog_compiler_wl='-Wl,'
7691      lt_prog_compiler_pic='-KPIC'
7692      lt_prog_compiler_static='-Bstatic'
7693      ;;
7694
7695    unicos*)
7696      lt_prog_compiler_wl='-Wl,'
7697      lt_prog_compiler_can_build_shared=no
7698      ;;
7699
7700    uts4*)
7701      lt_prog_compiler_pic='-pic'
7702      lt_prog_compiler_static='-Bstatic'
7703      ;;
7704
7705    *)
7706      lt_prog_compiler_can_build_shared=no
7707      ;;
7708    esac
7709  fi
7710
7711echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7712echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7713
7714#
7715# Check to make sure the PIC flag actually works.
7716#
7717if test -n "$lt_prog_compiler_pic"; then
7718
7719echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7720echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7721if test "${lt_prog_compiler_pic_works+set}" = set; then
7722  echo $ECHO_N "(cached) $ECHO_C" >&6
7723else
7724  lt_prog_compiler_pic_works=no
7725  ac_outfile=conftest.$ac_objext
7726   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7727   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7728   # Insert the option either (1) after the last *FLAGS variable, or
7729   # (2) before a word containing "conftest.", or (3) at the end.
7730   # Note that $ac_compile itself does not contain backslashes and begins
7731   # with a dollar sign (not a hyphen), so the echo should work correctly.
7732   # The option is referenced via a variable to avoid confusing sed.
7733   lt_compile=`echo "$ac_compile" | $SED \
7734   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7735   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7736   -e 's:$: $lt_compiler_flag:'`
7737   (eval echo "\"\$as_me:7737: $lt_compile\"" >&5)
7738   (eval "$lt_compile" 2>conftest.err)
7739   ac_status=$?
7740   cat conftest.err >&5
7741   echo "$as_me:7741: \$? = $ac_status" >&5
7742   if (exit $ac_status) && test -s "$ac_outfile"; then
7743     # The compiler can only warn and ignore the option if not recognized
7744     # So say no if there are warnings other than the usual output.
7745     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7746     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7747     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7748       lt_prog_compiler_pic_works=yes
7749     fi
7750   fi
7751   $rm conftest*
7752
7753fi
7754echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7755echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7756
7757if test x"$lt_prog_compiler_pic_works" = xyes; then
7758    case $lt_prog_compiler_pic in
7759     "" | " "*) ;;
7760     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7761     esac
7762else
7763    lt_prog_compiler_pic=
7764     lt_prog_compiler_can_build_shared=no
7765fi
7766
7767fi
7768case $host_os in
7769  # For platforms which do not support PIC, -DPIC is meaningless:
7770  *djgpp*)
7771    lt_prog_compiler_pic=
7772    ;;
7773  *)
7774    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7775    ;;
7776esac
7777
7778#
7779# Check to make sure the static flag actually works.
7780#
7781wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7782echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7783echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7784if test "${lt_prog_compiler_static_works+set}" = set; then
7785  echo $ECHO_N "(cached) $ECHO_C" >&6
7786else
7787  lt_prog_compiler_static_works=no
7788   save_LDFLAGS="$LDFLAGS"
7789   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7790   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7791   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7792     # The linker can only warn and ignore the option if not recognized
7793     # So say no if there are warnings
7794     if test -s conftest.err; then
7795       # Append any errors to the config.log.
7796       cat conftest.err 1>&5
7797       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7798       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7799       if diff conftest.exp conftest.er2 >/dev/null; then
7800         lt_prog_compiler_static_works=yes
7801       fi
7802     else
7803       lt_prog_compiler_static_works=yes
7804     fi
7805   fi
7806   $rm conftest*
7807   LDFLAGS="$save_LDFLAGS"
7808
7809fi
7810echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7811echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7812
7813if test x"$lt_prog_compiler_static_works" = xyes; then
7814    :
7815else
7816    lt_prog_compiler_static=
7817fi
7818
7819
7820echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7821echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7822if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7823  echo $ECHO_N "(cached) $ECHO_C" >&6
7824else
7825  lt_cv_prog_compiler_c_o=no
7826   $rm -r conftest 2>/dev/null
7827   mkdir conftest
7828   cd conftest
7829   mkdir out
7830   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7831
7832   lt_compiler_flag="-o out/conftest2.$ac_objext"
7833   # Insert the option either (1) after the last *FLAGS variable, or
7834   # (2) before a word containing "conftest.", or (3) at the end.
7835   # Note that $ac_compile itself does not contain backslashes and begins
7836   # with a dollar sign (not a hyphen), so the echo should work correctly.
7837   lt_compile=`echo "$ac_compile" | $SED \
7838   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7839   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7840   -e 's:$: $lt_compiler_flag:'`
7841   (eval echo "\"\$as_me:7841: $lt_compile\"" >&5)
7842   (eval "$lt_compile" 2>out/conftest.err)
7843   ac_status=$?
7844   cat out/conftest.err >&5
7845   echo "$as_me:7845: \$? = $ac_status" >&5
7846   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7847   then
7848     # The compiler can only warn and ignore the option if not recognized
7849     # So say no if there are warnings
7850     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7851     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7852     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7853       lt_cv_prog_compiler_c_o=yes
7854     fi
7855   fi
7856   chmod u+w . 2>&5
7857   $rm conftest*
7858   # SGI C++ compiler will create directory out/ii_files/ for
7859   # template instantiation
7860   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7861   $rm out/* && rmdir out
7862   cd ..
7863   rmdir conftest
7864   $rm conftest*
7865
7866fi
7867echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7868echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7869
7870
7871hard_links="nottested"
7872if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7873  # do not overwrite the value of need_locks provided by the user
7874  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7875echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7876  hard_links=yes
7877  $rm conftest*
7878  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7879  touch conftest.a
7880  ln conftest.a conftest.b 2>&5 || hard_links=no
7881  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7882  echo "$as_me:$LINENO: result: $hard_links" >&5
7883echo "${ECHO_T}$hard_links" >&6
7884  if test "$hard_links" = no; then
7885    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7886echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7887    need_locks=warn
7888  fi
7889else
7890  need_locks=no
7891fi
7892
7893echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7894echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7895
7896  runpath_var=
7897  allow_undefined_flag=
7898  enable_shared_with_static_runtimes=no
7899  archive_cmds=
7900  archive_expsym_cmds=
7901  old_archive_From_new_cmds=
7902  old_archive_from_expsyms_cmds=
7903  export_dynamic_flag_spec=
7904  whole_archive_flag_spec=
7905  thread_safe_flag_spec=
7906  hardcode_libdir_flag_spec=
7907  hardcode_libdir_flag_spec_ld=
7908  hardcode_libdir_separator=
7909  hardcode_direct=no
7910  hardcode_minus_L=no
7911  hardcode_shlibpath_var=unsupported
7912  link_all_deplibs=unknown
7913  hardcode_automatic=no
7914  module_cmds=
7915  module_expsym_cmds=
7916  always_export_symbols=no
7917  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7918  # include_expsyms should be a list of space-separated symbols to be *always*
7919  # included in the symbol list
7920  include_expsyms=
7921  # exclude_expsyms can be an extended regexp of symbols to exclude
7922  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7923  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7924  # as well as any symbol that contains `d'.
7925  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7926  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7927  # platforms (ab)use it in PIC code, but their linkers get confused if
7928  # the symbol is explicitly referenced.  Since portable code cannot
7929  # rely on this symbol name, it's probably fine to never include it in
7930  # preloaded symbol tables.
7931  extract_expsyms_cmds=
7932  # Just being paranoid about ensuring that cc_basename is set.
7933  for cc_temp in $compiler""; do
7934  case $cc_temp in
7935    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7936    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7937    \-*) ;;
7938    *) break;;
7939  esac
7940done
7941cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7942
7943  case $host_os in
7944  cygwin* | mingw* | pw32*)
7945    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7946    # When not using gcc, we currently assume that we are using
7947    # Microsoft Visual C++.
7948    if test "$GCC" != yes; then
7949      with_gnu_ld=no
7950    fi
7951    ;;
7952  interix*)
7953    # we just hope/assume this is gcc and not c89 (= MSVC++)
7954    with_gnu_ld=yes
7955    ;;
7956  openbsd*)
7957    with_gnu_ld=no
7958    ;;
7959  esac
7960
7961  ld_shlibs=yes
7962  if test "$with_gnu_ld" = yes; then
7963    # If archive_cmds runs LD, not CC, wlarc should be empty
7964    wlarc='${wl}'
7965
7966    # Set some defaults for GNU ld with shared library support. These
7967    # are reset later if shared libraries are not supported. Putting them
7968    # here allows them to be overridden if necessary.
7969    runpath_var=LD_RUN_PATH
7970    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7971    export_dynamic_flag_spec='${wl}--export-dynamic'
7972    # ancient GNU ld didn't support --whole-archive et. al.
7973    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7974        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7975      else
7976        whole_archive_flag_spec=
7977    fi
7978    supports_anon_versioning=no
7979    case `$LD -v 2>/dev/null` in
7980      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7981      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7982      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7983      *\ 2.11.*) ;; # other 2.11 versions
7984      *) supports_anon_versioning=yes ;;
7985    esac
7986
7987    # See if GNU ld supports shared libraries.
7988    case $host_os in
7989    aix3* | aix4* | aix5*)
7990      # On AIX/PPC, the GNU linker is very broken
7991      if test "$host_cpu" != ia64; then
7992        ld_shlibs=no
7993        cat <<EOF 1>&2
7994
7995*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7996*** to be unable to reliably create shared libraries on AIX.
7997*** Therefore, libtool is disabling shared libraries support.  If you
7998*** really care for shared libraries, you may want to modify your PATH
7999*** so that a non-GNU linker is found, and then restart.
8000
8001EOF
8002      fi
8003      ;;
8004
8005    amigaos*)
8006      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)'
8007      hardcode_libdir_flag_spec='-L$libdir'
8008      hardcode_minus_L=yes
8009
8010      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8011      # that the semantics of dynamic libraries on AmigaOS, at least up
8012      # to version 4, is to share data among multiple programs linked
8013      # with the same dynamic library.  Since this doesn't match the
8014      # behavior of shared libraries on other platforms, we can't use
8015      # them.
8016      ld_shlibs=no
8017      ;;
8018
8019    beos*)
8020      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8021        allow_undefined_flag=unsupported
8022        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8023        # support --undefined.  This deserves some investigation.  FIXME
8024        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8025      else
8026        ld_shlibs=no
8027      fi
8028      ;;
8029
8030    cygwin* | mingw* | pw32*)
8031      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8032      # as there is no search path for DLLs.
8033      hardcode_libdir_flag_spec='-L$libdir'
8034      allow_undefined_flag=unsupported
8035      always_export_symbols=no
8036      enable_shared_with_static_runtimes=yes
8037      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8038
8039      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8040        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8041        # If the export-symbols file already is a .def file (1st line
8042        # is EXPORTS), use it as is; otherwise, prepend...
8043        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8044          cp $export_symbols $output_objdir/$soname.def;
8045        else
8046          echo EXPORTS > $output_objdir/$soname.def;
8047          cat $export_symbols >> $output_objdir/$soname.def;
8048        fi~
8049        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8050      else
8051        ld_shlibs=no
8052      fi
8053      ;;
8054
8055    interix3*)
8056      hardcode_direct=no
8057      hardcode_shlibpath_var=no
8058      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8059      export_dynamic_flag_spec='${wl}-E'
8060      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8061      # Instead, shared libraries are loaded at an image base (0x10000000 by
8062      # default) and relocated if they conflict, which is a slow very memory
8063      # consuming and fragmenting process.  To avoid this, we pick a random,
8064      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8065      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8066      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8067      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'
8068      ;;
8069
8070    linux*)
8071      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8072        tmp_addflag=
8073        case $cc_basename,$host_cpu in
8074        pgcc*)                          # Portland Group C compiler
8075          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'
8076          tmp_addflag=' $pic_flag'
8077          ;;
8078        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8079          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'
8080          tmp_addflag=' $pic_flag -Mnomain' ;;
8081        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8082          tmp_addflag=' -i_dynamic' ;;
8083        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8084          tmp_addflag=' -i_dynamic -nofor_main' ;;
8085        ifc* | ifort*)                  # Intel Fortran compiler
8086          tmp_addflag=' -nofor_main' ;;
8087        esac
8088        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8089
8090        if test $supports_anon_versioning = yes; then
8091          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8092  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8093  $echo "local: *; };" >> $output_objdir/$libname.ver~
8094          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8095        fi
8096      else
8097        ld_shlibs=no
8098      fi
8099      ;;
8100
8101    netbsd*)
8102      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8103        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8104        wlarc=
8105      else
8106        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8107        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8108      fi
8109      ;;
8110
8111    solaris*)
8112      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8113        ld_shlibs=no
8114        cat <<EOF 1>&2
8115
8116*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8117*** create shared libraries on Solaris systems.  Therefore, libtool
8118*** is disabling shared libraries support.  We urge you to upgrade GNU
8119*** binutils to release 2.9.1 or newer.  Another option is to modify
8120*** your PATH or compiler configuration so that the native linker is
8121*** used, and then restart.
8122
8123EOF
8124      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8125        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8126        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8127      else
8128        ld_shlibs=no
8129      fi
8130      ;;
8131
8132    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8133      case `$LD -v 2>&1` in
8134        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8135        ld_shlibs=no
8136        cat <<_LT_EOF 1>&2
8137
8138*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8139*** reliably create shared libraries on SCO systems.  Therefore, libtool
8140*** is disabling shared libraries support.  We urge you to upgrade GNU
8141*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8142*** your PATH or compiler configuration so that the native linker is
8143*** used, and then restart.
8144
8145_LT_EOF
8146        ;;
8147        *)
8148          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8149            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8150            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8151            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8152          else
8153            ld_shlibs=no
8154          fi
8155        ;;
8156      esac
8157      ;;
8158
8159    sunos4*)
8160      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8161      wlarc=
8162      hardcode_direct=yes
8163      hardcode_shlibpath_var=no
8164      ;;
8165
8166    *)
8167      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8168        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8169        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8170      else
8171        ld_shlibs=no
8172      fi
8173      ;;
8174    esac
8175
8176    if test "$ld_shlibs" = no; then
8177      runpath_var=
8178      hardcode_libdir_flag_spec=
8179      export_dynamic_flag_spec=
8180      whole_archive_flag_spec=
8181    fi
8182  else
8183    # PORTME fill in a description of your system's linker (not GNU ld)
8184    case $host_os in
8185    aix3*)
8186      allow_undefined_flag=unsupported
8187      always_export_symbols=yes
8188      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'
8189      # Note: this linker hardcodes the directories in LIBPATH if there
8190      # are no directories specified by -L.
8191      hardcode_minus_L=yes
8192      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8193        # Neither direct hardcoding nor static linking is supported with a
8194        # broken collect2.
8195        hardcode_direct=unsupported
8196      fi
8197      ;;
8198
8199    aix4* | aix5*)
8200      if test "$host_cpu" = ia64; then
8201        # On IA64, the linker does run time linking by default, so we don't
8202        # have to do anything special.
8203        aix_use_runtimelinking=no
8204        exp_sym_flag='-Bexport'
8205        no_entry_flag=""
8206      else
8207        # If we're using GNU nm, then we don't want the "-C" option.
8208        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8209        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8210          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'
8211        else
8212          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'
8213        fi
8214        aix_use_runtimelinking=no
8215
8216        # Test if we are trying to use run time linking or normal
8217        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8218        # need to do runtime linking.
8219        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8220          for ld_flag in $LDFLAGS; do
8221          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8222            aix_use_runtimelinking=yes
8223            break
8224          fi
8225          done
8226          ;;
8227        esac
8228
8229        exp_sym_flag='-bexport'
8230        no_entry_flag='-bnoentry'
8231      fi
8232
8233      # When large executables or shared objects are built, AIX ld can
8234      # have problems creating the table of contents.  If linking a library
8235      # or program results in "error TOC overflow" add -mminimal-toc to
8236      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8237      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8238
8239      archive_cmds=''
8240      hardcode_direct=yes
8241      hardcode_libdir_separator=':'
8242      link_all_deplibs=yes
8243
8244      if test "$GCC" = yes; then
8245        case $host_os in aix4.[012]|aix4.[012].*)
8246        # We only want to do this on AIX 4.2 and lower, the check
8247        # below for broken collect2 doesn't work under 4.3+
8248          collect2name=`${CC} -print-prog-name=collect2`
8249          if test -f "$collect2name" && \
8250           strings "$collect2name" | grep resolve_lib_name >/dev/null
8251          then
8252          # We have reworked collect2
8253          hardcode_direct=yes
8254          else
8255          # We have old collect2
8256          hardcode_direct=unsupported
8257          # It fails to find uninstalled libraries when the uninstalled
8258          # path is not listed in the libpath.  Setting hardcode_minus_L
8259          # to unsupported forces relinking
8260          hardcode_minus_L=yes
8261          hardcode_libdir_flag_spec='-L$libdir'
8262          hardcode_libdir_separator=
8263          fi
8264          ;;
8265        esac
8266        shared_flag='-shared'
8267        if test "$aix_use_runtimelinking" = yes; then
8268          shared_flag="$shared_flag "'${wl}-G'
8269        fi
8270      else
8271        # not using gcc
8272        if test "$host_cpu" = ia64; then
8273        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8274        # chokes on -Wl,-G. The following line is correct:
8275          shared_flag='-G'
8276        else
8277          if test "$aix_use_runtimelinking" = yes; then
8278            shared_flag='${wl}-G'
8279          else
8280            shared_flag='${wl}-bM:SRE'
8281          fi
8282        fi
8283      fi
8284
8285      # It seems that -bexpall does not export symbols beginning with
8286      # underscore (_), so it is better to generate a list of symbols to export.
8287      always_export_symbols=yes
8288      if test "$aix_use_runtimelinking" = yes; then
8289        # Warning - without using the other runtime loading flags (-brtl),
8290        # -berok will link without error, but may produce a broken library.
8291        allow_undefined_flag='-berok'
8292       # Determine the default libpath from the value encoded in an empty executable.
8293       cat >conftest.$ac_ext <<_ACEOF
8294/* confdefs.h.  */
8295_ACEOF
8296cat confdefs.h >>conftest.$ac_ext
8297cat >>conftest.$ac_ext <<_ACEOF
8298/* end confdefs.h.  */
8299
8300int
8301main ()
8302{
8303
8304  ;
8305  return 0;
8306}
8307_ACEOF
8308rm -f conftest.$ac_objext conftest$ac_exeext
8309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310  (eval $ac_link) 2>conftest.er1
8311  ac_status=$?
8312  grep -v '^ *+' conftest.er1 >conftest.err
8313  rm -f conftest.er1
8314  cat conftest.err >&5
8315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316  (exit $ac_status); } &&
8317         { ac_try='test -z "$ac_c_werror_flag"
8318                         || test ! -s conftest.err'
8319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320  (eval $ac_try) 2>&5
8321  ac_status=$?
8322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323  (exit $ac_status); }; } &&
8324         { ac_try='test -s conftest$ac_exeext'
8325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326  (eval $ac_try) 2>&5
8327  ac_status=$?
8328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329  (exit $ac_status); }; }; then
8330
8331aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8332}'`
8333# Check for a 64-bit object if we didn't find anything.
8334if 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; }
8335}'`; fi
8336else
8337  echo "$as_me: failed program was:" >&5
8338sed 's/^/| /' conftest.$ac_ext >&5
8339
8340fi
8341rm -f conftest.err conftest.$ac_objext \
8342      conftest$ac_exeext conftest.$ac_ext
8343if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8344
8345       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8346        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"
8347       else
8348        if test "$host_cpu" = ia64; then
8349          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8350          allow_undefined_flag="-z nodefs"
8351          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"
8352        else
8353         # Determine the default libpath from the value encoded in an empty executable.
8354         cat >conftest.$ac_ext <<_ACEOF
8355/* confdefs.h.  */
8356_ACEOF
8357cat confdefs.h >>conftest.$ac_ext
8358cat >>conftest.$ac_ext <<_ACEOF
8359/* end confdefs.h.  */
8360
8361int
8362main ()
8363{
8364
8365  ;
8366  return 0;
8367}
8368_ACEOF
8369rm -f conftest.$ac_objext conftest$ac_exeext
8370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371  (eval $ac_link) 2>conftest.er1
8372  ac_status=$?
8373  grep -v '^ *+' conftest.er1 >conftest.err
8374  rm -f conftest.er1
8375  cat conftest.err >&5
8376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377  (exit $ac_status); } &&
8378         { ac_try='test -z "$ac_c_werror_flag"
8379                         || test ! -s conftest.err'
8380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381  (eval $ac_try) 2>&5
8382  ac_status=$?
8383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384  (exit $ac_status); }; } &&
8385         { ac_try='test -s conftest$ac_exeext'
8386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387  (eval $ac_try) 2>&5
8388  ac_status=$?
8389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390  (exit $ac_status); }; }; then
8391
8392aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8393}'`
8394# Check for a 64-bit object if we didn't find anything.
8395if 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; }
8396}'`; fi
8397else
8398  echo "$as_me: failed program was:" >&5
8399sed 's/^/| /' conftest.$ac_ext >&5
8400
8401fi
8402rm -f conftest.err conftest.$ac_objext \
8403      conftest$ac_exeext conftest.$ac_ext
8404if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8405
8406         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8407          # Warning - without using the other run time loading flags,
8408          # -berok will link without error, but may produce a broken library.
8409          no_undefined_flag=' ${wl}-bernotok'
8410          allow_undefined_flag=' ${wl}-berok'
8411          # Exported symbols can be pulled into shared objects from archives
8412          whole_archive_flag_spec='$convenience'
8413          archive_cmds_need_lc=yes
8414          # This is similar to how AIX traditionally builds its shared libraries.
8415          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'
8416        fi
8417      fi
8418      ;;
8419
8420    amigaos*)
8421      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)'
8422      hardcode_libdir_flag_spec='-L$libdir'
8423      hardcode_minus_L=yes
8424      # see comment about different semantics on the GNU ld section
8425      ld_shlibs=no
8426      ;;
8427
8428    bsdi[45]*)
8429      export_dynamic_flag_spec=-rdynamic
8430      ;;
8431
8432    cygwin* | mingw* | pw32*)
8433      # When not using gcc, we currently assume that we are using
8434      # Microsoft Visual C++.
8435      # hardcode_libdir_flag_spec is actually meaningless, as there is
8436      # no search path for DLLs.
8437      hardcode_libdir_flag_spec=' '
8438      allow_undefined_flag=unsupported
8439      # Tell ltmain to make .lib files, not .a files.
8440      libext=lib
8441      # Tell ltmain to make .dll files, not .so files.
8442      shrext_cmds=".dll"
8443      # FIXME: Setting linknames here is a bad hack.
8444      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8445      # The linker will automatically build a .lib file if we build a DLL.
8446      old_archive_From_new_cmds='true'
8447      # FIXME: Should let the user specify the lib program.
8448      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8449      fix_srcfile_path='`cygpath -w "$srcfile"`'
8450      enable_shared_with_static_runtimes=yes
8451      ;;
8452
8453    darwin* | rhapsody*)
8454      case $host_os in
8455        rhapsody* | darwin1.[012])
8456         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8457         ;;
8458       *) # Darwin 1.3 on
8459         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8460           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8461         else
8462           case ${MACOSX_DEPLOYMENT_TARGET} in
8463             10.[012])
8464               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8465               ;;
8466             10.*)
8467               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8468               ;;
8469           esac
8470         fi
8471         ;;
8472      esac
8473      archive_cmds_need_lc=no
8474      hardcode_direct=no
8475      hardcode_automatic=yes
8476      hardcode_shlibpath_var=unsupported
8477      whole_archive_flag_spec=''
8478      link_all_deplibs=yes
8479    if test "$GCC" = yes ; then
8480        output_verbose_link_cmd='echo'
8481        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8482      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8483      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8484      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}'
8485      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}'
8486    else
8487      case $cc_basename in
8488        xlc*)
8489         output_verbose_link_cmd='echo'
8490         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8491         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8492          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8493         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}'
8494          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}'
8495          ;;
8496       *)
8497         ld_shlibs=no
8498          ;;
8499      esac
8500    fi
8501      ;;
8502
8503    dgux*)
8504      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8505      hardcode_libdir_flag_spec='-L$libdir'
8506      hardcode_shlibpath_var=no
8507      ;;
8508
8509    freebsd1*)
8510      ld_shlibs=no
8511      ;;
8512
8513    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8514    # support.  Future versions do this automatically, but an explicit c++rt0.o
8515    # does not break anything, and helps significantly (at the cost of a little
8516    # extra space).
8517    freebsd2.2*)
8518      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8519      hardcode_libdir_flag_spec='-R$libdir'
8520      hardcode_direct=yes
8521      hardcode_shlibpath_var=no
8522      ;;
8523
8524    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8525    freebsd2*)
8526      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8527      hardcode_direct=yes
8528      hardcode_minus_L=yes
8529      hardcode_shlibpath_var=no
8530      ;;
8531
8532    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8533    freebsd* | kfreebsd*-gnu | dragonfly*)
8534      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8535      hardcode_libdir_flag_spec='-R$libdir'
8536      hardcode_direct=yes
8537      hardcode_shlibpath_var=no
8538      ;;
8539
8540    hpux9*)
8541      if test "$GCC" = yes; then
8542        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'
8543      else
8544        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'
8545      fi
8546      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8547      hardcode_libdir_separator=:
8548      hardcode_direct=yes
8549
8550      # hardcode_minus_L: Not really in the search PATH,
8551      # but as the default location of the library.
8552      hardcode_minus_L=yes
8553      export_dynamic_flag_spec='${wl}-E'
8554      ;;
8555
8556    hpux10*)
8557      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8558        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8559      else
8560        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8561      fi
8562      if test "$with_gnu_ld" = no; then
8563        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8564        hardcode_libdir_separator=:
8565
8566        hardcode_direct=yes
8567        export_dynamic_flag_spec='${wl}-E'
8568
8569        # hardcode_minus_L: Not really in the search PATH,
8570        # but as the default location of the library.
8571        hardcode_minus_L=yes
8572      fi
8573      ;;
8574
8575    hpux11*)
8576      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8577        case $host_cpu in
8578        hppa*64*)
8579          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8580          ;;
8581        ia64*)
8582          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8583          ;;
8584        *)
8585          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8586          ;;
8587        esac
8588      else
8589        case $host_cpu in
8590        hppa*64*)
8591          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8592          ;;
8593        ia64*)
8594          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8595          ;;
8596        *)
8597          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8598          ;;
8599        esac
8600      fi
8601      if test "$with_gnu_ld" = no; then
8602        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8603        hardcode_libdir_separator=:
8604
8605        case $host_cpu in
8606        hppa*64*|ia64*)
8607          hardcode_libdir_flag_spec_ld='+b $libdir'
8608          hardcode_direct=no
8609          hardcode_shlibpath_var=no
8610          ;;
8611        *)
8612          hardcode_direct=yes
8613          export_dynamic_flag_spec='${wl}-E'
8614
8615          # hardcode_minus_L: Not really in the search PATH,
8616          # but as the default location of the library.
8617          hardcode_minus_L=yes
8618          ;;
8619        esac
8620      fi
8621      ;;
8622
8623    irix5* | irix6* | nonstopux*)
8624      if test "$GCC" = yes; then
8625        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'
8626      else
8627        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'
8628        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8629      fi
8630      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8631      hardcode_libdir_separator=:
8632      link_all_deplibs=yes
8633      ;;
8634
8635    netbsd*)
8636      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8637        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8638      else
8639        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8640      fi
8641      hardcode_libdir_flag_spec='-R$libdir'
8642      hardcode_direct=yes
8643      hardcode_shlibpath_var=no
8644      ;;
8645
8646    newsos6)
8647      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8648      hardcode_direct=yes
8649      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8650      hardcode_libdir_separator=:
8651      hardcode_shlibpath_var=no
8652      ;;
8653
8654    openbsd*)
8655      hardcode_direct=yes
8656      hardcode_shlibpath_var=no
8657      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8658        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8659        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8660        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8661        export_dynamic_flag_spec='${wl}-E'
8662      else
8663       case $host_os in
8664         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8665           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8666           hardcode_libdir_flag_spec='-R$libdir'
8667           ;;
8668         *)
8669           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8670           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8671           ;;
8672       esac
8673      fi
8674      ;;
8675
8676    os2*)
8677      hardcode_libdir_flag_spec='-L$libdir'
8678      hardcode_minus_L=yes
8679      allow_undefined_flag=unsupported
8680      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'
8681      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8682      ;;
8683
8684    osf3*)
8685      if test "$GCC" = yes; then
8686        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8687        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'
8688      else
8689        allow_undefined_flag=' -expect_unresolved \*'
8690        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'
8691      fi
8692      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8693      hardcode_libdir_separator=:
8694      ;;
8695
8696    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8697      if test "$GCC" = yes; then
8698        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8699        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'
8700        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8701      else
8702        allow_undefined_flag=' -expect_unresolved \*'
8703        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'
8704        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8705        $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'
8706
8707        # Both c and cxx compiler support -rpath directly
8708        hardcode_libdir_flag_spec='-rpath $libdir'
8709      fi
8710      hardcode_libdir_separator=:
8711      ;;
8712
8713    solaris*)
8714      no_undefined_flag=' -z text'
8715      if test "$GCC" = yes; then
8716        wlarc='${wl}'
8717        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8719          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8720      else
8721        wlarc=''
8722        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8723        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8724        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8725      fi
8726      hardcode_libdir_flag_spec='-R$libdir'
8727      hardcode_shlibpath_var=no
8728      case $host_os in
8729      solaris2.[0-5] | solaris2.[0-5].*) ;;
8730      *)
8731        # The compiler driver will combine linker options so we
8732        # cannot just pass the convience library names through
8733        # without $wl, iff we do not link with $LD.
8734        # Luckily, gcc supports the same syntax we need for Sun Studio.
8735        # Supported since Solaris 2.6 (maybe 2.5.1?)
8736        case $wlarc in
8737        '')
8738          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8739        *)
8740          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' ;;
8741        esac ;;
8742      esac
8743      link_all_deplibs=yes
8744      ;;
8745
8746    sunos4*)
8747      if test "x$host_vendor" = xsequent; then
8748        # Use $CC to link under sequent, because it throws in some extra .o
8749        # files that make .init and .fini sections work.
8750        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8751      else
8752        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8753      fi
8754      hardcode_libdir_flag_spec='-L$libdir'
8755      hardcode_direct=yes
8756      hardcode_minus_L=yes
8757      hardcode_shlibpath_var=no
8758      ;;
8759
8760    sysv4)
8761      case $host_vendor in
8762        sni)
8763          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8764          hardcode_direct=yes # is this really true???
8765        ;;
8766        siemens)
8767          ## LD is ld it makes a PLAMLIB
8768          ## CC just makes a GrossModule.
8769          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8770          reload_cmds='$CC -r -o $output$reload_objs'
8771          hardcode_direct=no
8772        ;;
8773        motorola)
8774          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8776        ;;
8777      esac
8778      runpath_var='LD_RUN_PATH'
8779      hardcode_shlibpath_var=no
8780      ;;
8781
8782    sysv4.3*)
8783      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784      hardcode_shlibpath_var=no
8785      export_dynamic_flag_spec='-Bexport'
8786      ;;
8787
8788    sysv4*MP*)
8789      if test -d /usr/nec; then
8790        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791        hardcode_shlibpath_var=no
8792        runpath_var=LD_RUN_PATH
8793        hardcode_runpath_var=yes
8794        ld_shlibs=yes
8795      fi
8796      ;;
8797
8798    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8799      no_undefined_flag='${wl}-z,text'
8800      archive_cmds_need_lc=no
8801      hardcode_shlibpath_var=no
8802      runpath_var='LD_RUN_PATH'
8803
8804      if test "$GCC" = yes; then
8805        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8806        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8807      else
8808        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8809        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8810      fi
8811      ;;
8812
8813    sysv5* | sco3.2v5* | sco5v6*)
8814      # Note: We can NOT use -z defs as we might desire, because we do not
8815      # link with -lc, and that would cause any symbols used from libc to
8816      # always be unresolved, which means just about no library would
8817      # ever link correctly.  If we're not using GNU ld we use -z text
8818      # though, which does catch some bad symbols but isn't as heavy-handed
8819      # as -z defs.
8820      no_undefined_flag='${wl}-z,text'
8821      allow_undefined_flag='${wl}-z,nodefs'
8822      archive_cmds_need_lc=no
8823      hardcode_shlibpath_var=no
8824      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8825      hardcode_libdir_separator=':'
8826      link_all_deplibs=yes
8827      export_dynamic_flag_spec='${wl}-Bexport'
8828      runpath_var='LD_RUN_PATH'
8829
8830      if test "$GCC" = yes; then
8831        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8833      else
8834        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8835        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8836      fi
8837      ;;
8838
8839    uts4*)
8840      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8841      hardcode_libdir_flag_spec='-L$libdir'
8842      hardcode_shlibpath_var=no
8843      ;;
8844
8845    *)
8846      ld_shlibs=no
8847      ;;
8848    esac
8849  fi
8850
8851echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8852echo "${ECHO_T}$ld_shlibs" >&6
8853test "$ld_shlibs" = no && can_build_shared=no
8854
8855#
8856# Do we need to explicitly link libc?
8857#
8858case "x$archive_cmds_need_lc" in
8859x|xyes)
8860  # Assume -lc should be added
8861  archive_cmds_need_lc=yes
8862
8863  if test "$enable_shared" = yes && test "$GCC" = yes; then
8864    case $archive_cmds in
8865    *'~'*)
8866      # FIXME: we may have to deal with multi-command sequences.
8867      ;;
8868    '$CC '*)
8869      # Test whether the compiler implicitly links with -lc since on some
8870      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8871      # to ld, don't add -lc before -lgcc.
8872      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8873echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8874      $rm conftest*
8875      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8876
8877      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878  (eval $ac_compile) 2>&5
8879  ac_status=$?
8880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881  (exit $ac_status); } 2>conftest.err; then
8882        soname=conftest
8883        lib=conftest
8884        libobjs=conftest.$ac_objext
8885        deplibs=
8886        wl=$lt_prog_compiler_wl
8887        pic_flag=$lt_prog_compiler_pic
8888        compiler_flags=-v
8889        linker_flags=-v
8890        verstring=
8891        output_objdir=.
8892        libname=conftest
8893        lt_save_allow_undefined_flag=$allow_undefined_flag
8894        allow_undefined_flag=
8895        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8896  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8897  ac_status=$?
8898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899  (exit $ac_status); }
8900        then
8901          archive_cmds_need_lc=no
8902        else
8903          archive_cmds_need_lc=yes
8904        fi
8905        allow_undefined_flag=$lt_save_allow_undefined_flag
8906      else
8907        cat conftest.err 1>&5
8908      fi
8909      $rm conftest*
8910      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8911echo "${ECHO_T}$archive_cmds_need_lc" >&6
8912      ;;
8913    esac
8914  fi
8915  ;;
8916esac
8917
8918echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8919echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8920library_names_spec=
8921libname_spec='lib$name'
8922soname_spec=
8923shrext_cmds=".so"
8924postinstall_cmds=
8925postuninstall_cmds=
8926finish_cmds=
8927finish_eval=
8928shlibpath_var=
8929shlibpath_overrides_runpath=unknown
8930version_type=none
8931dynamic_linker="$host_os ld.so"
8932sys_lib_dlsearch_path_spec="/lib /usr/lib"
8933if test "$GCC" = yes; then
8934  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8935  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8936    # if the path contains ";" then we assume it to be the separator
8937    # otherwise default to the standard path separator (i.e. ":") - it is
8938    # assumed that no part of a normal pathname contains ";" but that should
8939    # okay in the real world where ";" in dirpaths is itself problematic.
8940    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8941  else
8942    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8943  fi
8944else
8945  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8946fi
8947need_lib_prefix=unknown
8948hardcode_into_libs=no
8949
8950# when you set need_version to no, make sure it does not cause -set_version
8951# flags to be left without arguments
8952need_version=unknown
8953
8954case $host_os in
8955aix3*)
8956  version_type=linux
8957  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8958  shlibpath_var=LIBPATH
8959
8960  # AIX 3 has no versioning support, so we append a major version to the name.
8961  soname_spec='${libname}${release}${shared_ext}$major'
8962  ;;
8963
8964aix4* | aix5*)
8965  version_type=linux
8966  need_lib_prefix=no
8967  need_version=no
8968  hardcode_into_libs=yes
8969  if test "$host_cpu" = ia64; then
8970    # AIX 5 supports IA64
8971    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8972    shlibpath_var=LD_LIBRARY_PATH
8973  else
8974    # With GCC up to 2.95.x, collect2 would create an import file
8975    # for dependence libraries.  The import file would start with
8976    # the line `#! .'.  This would cause the generated library to
8977    # depend on `.', always an invalid library.  This was fixed in
8978    # development snapshots of GCC prior to 3.0.
8979    case $host_os in
8980      aix4 | aix4.[01] | aix4.[01].*)
8981      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8982           echo ' yes '
8983           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8984        :
8985      else
8986        can_build_shared=no
8987      fi
8988      ;;
8989    esac
8990    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8991    # soname into executable. Probably we can add versioning support to
8992    # collect2, so additional links can be useful in future.
8993    if test "$aix_use_runtimelinking" = yes; then
8994      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8995      # instead of lib<name>.a to let people know that these are not
8996      # typical AIX shared libraries.
8997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998    else
8999      # We preserve .a as extension for shared libraries through AIX4.2
9000      # and later when we are not doing run time linking.
9001      library_names_spec='${libname}${release}.a $libname.a'
9002      soname_spec='${libname}${release}${shared_ext}$major'
9003    fi
9004    shlibpath_var=LIBPATH
9005  fi
9006  ;;
9007
9008amigaos*)
9009  library_names_spec='$libname.ixlibrary $libname.a'
9010  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9011  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'
9012  ;;
9013
9014beos*)
9015  library_names_spec='${libname}${shared_ext}'
9016  dynamic_linker="$host_os ld.so"
9017  shlibpath_var=LIBRARY_PATH
9018  ;;
9019
9020bsdi[45]*)
9021  version_type=linux
9022  need_version=no
9023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024  soname_spec='${libname}${release}${shared_ext}$major'
9025  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9026  shlibpath_var=LD_LIBRARY_PATH
9027  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9028  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9029  # the default ld.so.conf also contains /usr/contrib/lib and
9030  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9031  # libtool to hard-code these into programs
9032  ;;
9033
9034cygwin* | mingw* | pw32*)
9035  version_type=windows
9036  shrext_cmds=".dll"
9037  need_version=no
9038  need_lib_prefix=no
9039
9040  case $GCC,$host_os in
9041  yes,cygwin* | yes,mingw* | yes,pw32*)
9042    library_names_spec='$libname.dll.a'
9043    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9044    postinstall_cmds='base_file=`basename \${file}`~
9045      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9046      dldir=$destdir/`dirname \$dlpath`~
9047      test -d \$dldir || mkdir -p \$dldir~
9048      $install_prog $dir/$dlname \$dldir/$dlname~
9049      chmod a+x \$dldir/$dlname'
9050    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9051      dlpath=$dir/\$dldll~
9052       $rm \$dlpath'
9053    shlibpath_overrides_runpath=yes
9054
9055    case $host_os in
9056    cygwin*)
9057      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9058      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9059      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9060      ;;
9061    mingw*)
9062      # MinGW DLLs use traditional 'lib' prefix
9063      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9064      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9065      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9066        # It is most probably a Windows format PATH printed by
9067        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9068        # path with ; separators, and with drive letters. We can handle the
9069        # drive letters (cygwin fileutils understands them), so leave them,
9070        # especially as we might pass files found there to a mingw objdump,
9071        # which wouldn't understand a cygwinified path. Ahh.
9072        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9073      else
9074        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9075      fi
9076      ;;
9077    pw32*)
9078      # pw32 DLLs use 'pw' prefix rather than 'lib'
9079      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9080      ;;
9081    esac
9082    ;;
9083
9084  *)
9085    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9086    ;;
9087  esac
9088  dynamic_linker='Win32 ld.exe'
9089  # FIXME: first we should search . and the directory the executable is in
9090  shlibpath_var=PATH
9091  ;;
9092
9093darwin* | rhapsody*)
9094  dynamic_linker="$host_os dyld"
9095  version_type=darwin
9096  need_lib_prefix=no
9097  need_version=no
9098  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9099  soname_spec='${libname}${release}${major}$shared_ext'
9100  shlibpath_overrides_runpath=yes
9101  shlibpath_var=DYLD_LIBRARY_PATH
9102  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9103  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9104  if test "$GCC" = yes; then
9105    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"`
9106  else
9107    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9108  fi
9109  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9110  ;;
9111
9112dgux*)
9113  version_type=linux
9114  need_lib_prefix=no
9115  need_version=no
9116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9117  soname_spec='${libname}${release}${shared_ext}$major'
9118  shlibpath_var=LD_LIBRARY_PATH
9119  ;;
9120
9121freebsd1*)
9122  dynamic_linker=no
9123  ;;
9124
9125kfreebsd*-gnu)
9126  version_type=linux
9127  need_lib_prefix=no
9128  need_version=no
9129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9130  soname_spec='${libname}${release}${shared_ext}$major'
9131  shlibpath_var=LD_LIBRARY_PATH
9132  shlibpath_overrides_runpath=no
9133  hardcode_into_libs=yes
9134  dynamic_linker='GNU ld.so'
9135  ;;
9136
9137freebsd* | dragonfly*)
9138  # DragonFly does not have aout.  When/if they implement a new
9139  # versioning mechanism, adjust this.
9140  if test -x /usr/bin/objformat; then
9141    objformat=`/usr/bin/objformat`
9142  else
9143    case $host_os in
9144    freebsd[123]*) objformat=aout ;;
9145    *) objformat=elf ;;
9146    esac
9147  fi
9148  version_type=freebsd-$objformat
9149  case $version_type in
9150    freebsd-elf*)
9151      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9152      need_version=no
9153      need_lib_prefix=no
9154      ;;
9155    freebsd-*)
9156      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9157      need_version=yes
9158      ;;
9159  esac
9160  shlibpath_var=LD_LIBRARY_PATH
9161  case $host_os in
9162  freebsd2*)
9163    shlibpath_overrides_runpath=yes
9164    ;;
9165  freebsd3.[01]* | freebsdelf3.[01]*)
9166    shlibpath_overrides_runpath=yes
9167    hardcode_into_libs=yes
9168    ;;
9169  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9170  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9171    shlibpath_overrides_runpath=no
9172    hardcode_into_libs=yes
9173    ;;
9174  freebsd*) # from 4.6 on
9175    shlibpath_overrides_runpath=yes
9176    hardcode_into_libs=yes
9177    ;;
9178  esac
9179  ;;
9180
9181gnu*)
9182  version_type=linux
9183  need_lib_prefix=no
9184  need_version=no
9185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9186  soname_spec='${libname}${release}${shared_ext}$major'
9187  shlibpath_var=LD_LIBRARY_PATH
9188  hardcode_into_libs=yes
9189  ;;
9190
9191hpux9* | hpux10* | hpux11*)
9192  # Give a soname corresponding to the major version so that dld.sl refuses to
9193  # link against other versions.
9194  version_type=sunos
9195  need_lib_prefix=no
9196  need_version=no
9197  case $host_cpu in
9198  ia64*)
9199    shrext_cmds='.so'
9200    hardcode_into_libs=yes
9201    dynamic_linker="$host_os dld.so"
9202    shlibpath_var=LD_LIBRARY_PATH
9203    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9204    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205    soname_spec='${libname}${release}${shared_ext}$major'
9206    if test "X$HPUX_IA64_MODE" = X32; then
9207      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9208    else
9209      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9210    fi
9211    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9212    ;;
9213   hppa*64*)
9214     shrext_cmds='.sl'
9215     hardcode_into_libs=yes
9216     dynamic_linker="$host_os dld.sl"
9217     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9218     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220     soname_spec='${libname}${release}${shared_ext}$major'
9221     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9222     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9223     ;;
9224   *)
9225    shrext_cmds='.sl'
9226    dynamic_linker="$host_os dld.sl"
9227    shlibpath_var=SHLIB_PATH
9228    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9229    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230    soname_spec='${libname}${release}${shared_ext}$major'
9231    ;;
9232  esac
9233  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9234  postinstall_cmds='chmod 555 $lib'
9235  ;;
9236
9237interix3*)
9238  version_type=linux
9239  need_lib_prefix=no
9240  need_version=no
9241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9242  soname_spec='${libname}${release}${shared_ext}$major'
9243  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9244  shlibpath_var=LD_LIBRARY_PATH
9245  shlibpath_overrides_runpath=no
9246  hardcode_into_libs=yes
9247  ;;
9248
9249irix5* | irix6* | nonstopux*)
9250  case $host_os in
9251    nonstopux*) version_type=nonstopux ;;
9252    *)
9253        if test "$lt_cv_prog_gnu_ld" = yes; then
9254                version_type=linux
9255        else
9256                version_type=irix
9257        fi ;;
9258  esac
9259  need_lib_prefix=no
9260  need_version=no
9261  soname_spec='${libname}${release}${shared_ext}$major'
9262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9263  case $host_os in
9264  irix5* | nonstopux*)
9265    libsuff= shlibsuff=
9266    ;;
9267  *)
9268    case $LD in # libtool.m4 will add one of these switches to LD
9269    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9270      libsuff= shlibsuff= libmagic=32-bit;;
9271    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9272      libsuff=32 shlibsuff=N32 libmagic=N32;;
9273    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9274      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9275    *) libsuff= shlibsuff= libmagic=never-match;;
9276    esac
9277    ;;
9278  esac
9279  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9280  shlibpath_overrides_runpath=no
9281  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9282  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9283  hardcode_into_libs=yes
9284  ;;
9285
9286# No shared lib support for Linux oldld, aout, or coff.
9287linux*oldld* | linux*aout* | linux*coff*)
9288  dynamic_linker=no
9289  ;;
9290
9291# This must be Linux ELF.
9292linux*)
9293  version_type=linux
9294  need_lib_prefix=no
9295  need_version=no
9296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297  soname_spec='${libname}${release}${shared_ext}$major'
9298  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9299  shlibpath_var=LD_LIBRARY_PATH
9300  shlibpath_overrides_runpath=no
9301  # This implies no fast_install, which is unacceptable.
9302  # Some rework will be needed to allow for fast_install
9303  # before this can be enabled.
9304  hardcode_into_libs=yes
9305
9306  # Append ld.so.conf contents to the search path
9307  if test -f /etc/ld.so.conf; then
9308    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' ' '`
9309    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9310  fi
9311
9312  # We used to test for /lib/ld.so.1 and disable shared libraries on
9313  # powerpc, because MkLinux only supported shared libraries with the
9314  # GNU dynamic linker.  Since this was broken with cross compilers,
9315  # most powerpc-linux boxes support dynamic linking these days and
9316  # people can always --disable-shared, the test was removed, and we
9317  # assume the GNU/Linux dynamic linker is in use.
9318  dynamic_linker='GNU/Linux ld.so'
9319  ;;
9320
9321knetbsd*-gnu)
9322  version_type=linux
9323  need_lib_prefix=no
9324  need_version=no
9325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9326  soname_spec='${libname}${release}${shared_ext}$major'
9327  shlibpath_var=LD_LIBRARY_PATH
9328  shlibpath_overrides_runpath=no
9329  hardcode_into_libs=yes
9330  dynamic_linker='GNU ld.so'
9331  ;;
9332
9333netbsd*)
9334  version_type=sunos
9335  need_lib_prefix=no
9336  need_version=no
9337  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9338    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9339    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9340    dynamic_linker='NetBSD (a.out) ld.so'
9341  else
9342    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9343    soname_spec='${libname}${release}${shared_ext}$major'
9344    dynamic_linker='NetBSD ld.elf_so'
9345  fi
9346  shlibpath_var=LD_LIBRARY_PATH
9347  shlibpath_overrides_runpath=yes
9348  hardcode_into_libs=yes
9349  ;;
9350
9351newsos6)
9352  version_type=linux
9353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354  shlibpath_var=LD_LIBRARY_PATH
9355  shlibpath_overrides_runpath=yes
9356  ;;
9357
9358nto-qnx*)
9359  version_type=linux
9360  need_lib_prefix=no
9361  need_version=no
9362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363  soname_spec='${libname}${release}${shared_ext}$major'
9364  shlibpath_var=LD_LIBRARY_PATH
9365  shlibpath_overrides_runpath=yes
9366  ;;
9367
9368openbsd*)
9369  version_type=sunos
9370  sys_lib_dlsearch_path_spec="/usr/lib"
9371  need_lib_prefix=no
9372  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9373  case $host_os in
9374    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9375    *)                         need_version=no  ;;
9376  esac
9377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9378  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9379  shlibpath_var=LD_LIBRARY_PATH
9380  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9381    case $host_os in
9382      openbsd2.[89] | openbsd2.[89].*)
9383        shlibpath_overrides_runpath=no
9384        ;;
9385      *)
9386        shlibpath_overrides_runpath=yes
9387        ;;
9388      esac
9389  else
9390    shlibpath_overrides_runpath=yes
9391  fi
9392  ;;
9393
9394os2*)
9395  libname_spec='$name'
9396  shrext_cmds=".dll"
9397  need_lib_prefix=no
9398  library_names_spec='$libname${shared_ext} $libname.a'
9399  dynamic_linker='OS/2 ld.exe'
9400  shlibpath_var=LIBPATH
9401  ;;
9402
9403osf3* | osf4* | osf5*)
9404  version_type=osf
9405  need_lib_prefix=no
9406  need_version=no
9407  soname_spec='${libname}${release}${shared_ext}$major'
9408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409  shlibpath_var=LD_LIBRARY_PATH
9410  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9411  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9412  ;;
9413
9414solaris*)
9415  version_type=linux
9416  need_lib_prefix=no
9417  need_version=no
9418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419  soname_spec='${libname}${release}${shared_ext}$major'
9420  shlibpath_var=LD_LIBRARY_PATH
9421  shlibpath_overrides_runpath=yes
9422  hardcode_into_libs=yes
9423  # ldd complains unless libraries are executable
9424  postinstall_cmds='chmod +x $lib'
9425  ;;
9426
9427sunos4*)
9428  version_type=sunos
9429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9430  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9431  shlibpath_var=LD_LIBRARY_PATH
9432  shlibpath_overrides_runpath=yes
9433  if test "$with_gnu_ld" = yes; then
9434    need_lib_prefix=no
9435  fi
9436  need_version=yes
9437  ;;
9438
9439sysv4 | sysv4.3*)
9440  version_type=linux
9441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442  soname_spec='${libname}${release}${shared_ext}$major'
9443  shlibpath_var=LD_LIBRARY_PATH
9444  case $host_vendor in
9445    sni)
9446      shlibpath_overrides_runpath=no
9447      need_lib_prefix=no
9448      export_dynamic_flag_spec='${wl}-Blargedynsym'
9449      runpath_var=LD_RUN_PATH
9450      ;;
9451    siemens)
9452      need_lib_prefix=no
9453      ;;
9454    motorola)
9455      need_lib_prefix=no
9456      need_version=no
9457      shlibpath_overrides_runpath=no
9458      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9459      ;;
9460  esac
9461  ;;
9462
9463sysv4*MP*)
9464  if test -d /usr/nec ;then
9465    version_type=linux
9466    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9467    soname_spec='$libname${shared_ext}.$major'
9468    shlibpath_var=LD_LIBRARY_PATH
9469  fi
9470  ;;
9471
9472sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9473  version_type=freebsd-elf
9474  need_lib_prefix=no
9475  need_version=no
9476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9477  soname_spec='${libname}${release}${shared_ext}$major'
9478  shlibpath_var=LD_LIBRARY_PATH
9479  hardcode_into_libs=yes
9480  if test "$with_gnu_ld" = yes; then
9481    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9482    shlibpath_overrides_runpath=no
9483  else
9484    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9485    shlibpath_overrides_runpath=yes
9486    case $host_os in
9487      sco3.2v5*)
9488        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9489        ;;
9490    esac
9491  fi
9492  sys_lib_dlsearch_path_spec='/usr/lib'
9493  ;;
9494
9495uts4*)
9496  version_type=linux
9497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498  soname_spec='${libname}${release}${shared_ext}$major'
9499  shlibpath_var=LD_LIBRARY_PATH
9500  ;;
9501
9502*)
9503  dynamic_linker=no
9504  ;;
9505esac
9506echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9507echo "${ECHO_T}$dynamic_linker" >&6
9508test "$dynamic_linker" = no && can_build_shared=no
9509
9510variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9511if test "$GCC" = yes; then
9512  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9513fi
9514
9515echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9516echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9517hardcode_action=
9518if test -n "$hardcode_libdir_flag_spec" || \
9519   test -n "$runpath_var" || \
9520   test "X$hardcode_automatic" = "Xyes" ; then
9521
9522  # We can hardcode non-existant directories.
9523  if test "$hardcode_direct" != no &&
9524     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9525     # have to relink, otherwise we might link with an installed library
9526     # when we should be linking with a yet-to-be-installed one
9527     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9528     test "$hardcode_minus_L" != no; then
9529    # Linking always hardcodes the temporary library directory.
9530    hardcode_action=relink
9531  else
9532    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9533    hardcode_action=immediate
9534  fi
9535else
9536  # We cannot hardcode anything, or else we can only hardcode existing
9537  # directories.
9538  hardcode_action=unsupported
9539fi
9540echo "$as_me:$LINENO: result: $hardcode_action" >&5
9541echo "${ECHO_T}$hardcode_action" >&6
9542
9543if test "$hardcode_action" = relink; then
9544  # Fast installation is not supported
9545  enable_fast_install=no
9546elif test "$shlibpath_overrides_runpath" = yes ||
9547     test "$enable_shared" = no; then
9548  # Fast installation is not necessary
9549  enable_fast_install=needless
9550fi
9551
9552striplib=
9553old_striplib=
9554echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9555echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9556if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9557  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9558  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9559  echo "$as_me:$LINENO: result: yes" >&5
9560echo "${ECHO_T}yes" >&6
9561else
9562# FIXME - insert some real tests, host_os isn't really good enough
9563  case $host_os in
9564   darwin*)
9565       if test -n "$STRIP" ; then
9566         striplib="$STRIP -x"
9567         echo "$as_me:$LINENO: result: yes" >&5
9568echo "${ECHO_T}yes" >&6
9569       else
9570  echo "$as_me:$LINENO: result: no" >&5
9571echo "${ECHO_T}no" >&6
9572fi
9573       ;;
9574   *)
9575  echo "$as_me:$LINENO: result: no" >&5
9576echo "${ECHO_T}no" >&6
9577    ;;
9578  esac
9579fi
9580
9581if test "x$enable_dlopen" != xyes; then
9582  enable_dlopen=unknown
9583  enable_dlopen_self=unknown
9584  enable_dlopen_self_static=unknown
9585else
9586  lt_cv_dlopen=no
9587  lt_cv_dlopen_libs=
9588
9589  case $host_os in
9590  beos*)
9591    lt_cv_dlopen="load_add_on"
9592    lt_cv_dlopen_libs=
9593    lt_cv_dlopen_self=yes
9594    ;;
9595
9596  mingw* | pw32*)
9597    lt_cv_dlopen="LoadLibrary"
9598    lt_cv_dlopen_libs=
9599   ;;
9600
9601  cygwin*)
9602    lt_cv_dlopen="dlopen"
9603    lt_cv_dlopen_libs=
9604   ;;
9605
9606  darwin*)
9607  # if libdl is installed we need to link against it
9608    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9609echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9610if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9611  echo $ECHO_N "(cached) $ECHO_C" >&6
9612else
9613  ac_check_lib_save_LIBS=$LIBS
9614LIBS="-ldl  $LIBS"
9615cat >conftest.$ac_ext <<_ACEOF
9616/* confdefs.h.  */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
9620/* end confdefs.h.  */
9621
9622/* Override any gcc2 internal prototype to avoid an error.  */
9623#ifdef __cplusplus
9624extern "C"
9625#endif
9626/* We use char because int might match the return type of a gcc2
9627   builtin and then its argument prototype would still apply.  */
9628char dlopen ();
9629int
9630main ()
9631{
9632dlopen ();
9633  ;
9634  return 0;
9635}
9636_ACEOF
9637rm -f conftest.$ac_objext conftest$ac_exeext
9638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9639  (eval $ac_link) 2>conftest.er1
9640  ac_status=$?
9641  grep -v '^ *+' conftest.er1 >conftest.err
9642  rm -f conftest.er1
9643  cat conftest.err >&5
9644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645  (exit $ac_status); } &&
9646         { ac_try='test -z "$ac_c_werror_flag"
9647                         || test ! -s conftest.err'
9648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649  (eval $ac_try) 2>&5
9650  ac_status=$?
9651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652  (exit $ac_status); }; } &&
9653         { ac_try='test -s conftest$ac_exeext'
9654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655  (eval $ac_try) 2>&5
9656  ac_status=$?
9657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658  (exit $ac_status); }; }; then
9659  ac_cv_lib_dl_dlopen=yes
9660else
9661  echo "$as_me: failed program was:" >&5
9662sed 's/^/| /' conftest.$ac_ext >&5
9663
9664ac_cv_lib_dl_dlopen=no
9665fi
9666rm -f conftest.err conftest.$ac_objext \
9667      conftest$ac_exeext conftest.$ac_ext
9668LIBS=$ac_check_lib_save_LIBS
9669fi
9670echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9671echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9672if test $ac_cv_lib_dl_dlopen = yes; then
9673  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9674else
9675
9676    lt_cv_dlopen="dyld"
9677    lt_cv_dlopen_libs=
9678    lt_cv_dlopen_self=yes
9679
9680fi
9681
9682   ;;
9683
9684  *)
9685    echo "$as_me:$LINENO: checking for shl_load" >&5
9686echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9687if test "${ac_cv_func_shl_load+set}" = set; then
9688  echo $ECHO_N "(cached) $ECHO_C" >&6
9689else
9690  cat >conftest.$ac_ext <<_ACEOF
9691/* confdefs.h.  */
9692_ACEOF
9693cat confdefs.h >>conftest.$ac_ext
9694cat >>conftest.$ac_ext <<_ACEOF
9695/* end confdefs.h.  */
9696/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9697   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9698#define shl_load innocuous_shl_load
9699
9700/* System header to define __stub macros and hopefully few prototypes,
9701    which can conflict with char shl_load (); below.
9702    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9703    <limits.h> exists even on freestanding compilers.  */
9704
9705#ifdef __STDC__
9706# include <limits.h>
9707#else
9708# include <assert.h>
9709#endif
9710
9711#undef shl_load
9712
9713/* Override any gcc2 internal prototype to avoid an error.  */
9714#ifdef __cplusplus
9715extern "C"
9716{
9717#endif
9718/* We use char because int might match the return type of a gcc2
9719   builtin and then its argument prototype would still apply.  */
9720char shl_load ();
9721/* The GNU C library defines this for functions which it implements
9722    to always fail with ENOSYS.  Some functions are actually named
9723    something starting with __ and the normal name is an alias.  */
9724#if defined (__stub_shl_load) || defined (__stub___shl_load)
9725choke me
9726#else
9727char (*f) () = shl_load;
9728#endif
9729#ifdef __cplusplus
9730}
9731#endif
9732
9733int
9734main ()
9735{
9736return f != shl_load;
9737  ;
9738  return 0;
9739}
9740_ACEOF
9741rm -f conftest.$ac_objext conftest$ac_exeext
9742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743  (eval $ac_link) 2>conftest.er1
9744  ac_status=$?
9745  grep -v '^ *+' conftest.er1 >conftest.err
9746  rm -f conftest.er1
9747  cat conftest.err >&5
9748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749  (exit $ac_status); } &&
9750         { ac_try='test -z "$ac_c_werror_flag"
9751                         || test ! -s conftest.err'
9752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753  (eval $ac_try) 2>&5
9754  ac_status=$?
9755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756  (exit $ac_status); }; } &&
9757         { ac_try='test -s conftest$ac_exeext'
9758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759  (eval $ac_try) 2>&5
9760  ac_status=$?
9761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762  (exit $ac_status); }; }; then
9763  ac_cv_func_shl_load=yes
9764else
9765  echo "$as_me: failed program was:" >&5
9766sed 's/^/| /' conftest.$ac_ext >&5
9767
9768ac_cv_func_shl_load=no
9769fi
9770rm -f conftest.err conftest.$ac_objext \
9771      conftest$ac_exeext conftest.$ac_ext
9772fi
9773echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9774echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9775if test $ac_cv_func_shl_load = yes; then
9776  lt_cv_dlopen="shl_load"
9777else
9778  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9779echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9780if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9781  echo $ECHO_N "(cached) $ECHO_C" >&6
9782else
9783  ac_check_lib_save_LIBS=$LIBS
9784LIBS="-ldld  $LIBS"
9785cat >conftest.$ac_ext <<_ACEOF
9786/* confdefs.h.  */
9787_ACEOF
9788cat confdefs.h >>conftest.$ac_ext
9789cat >>conftest.$ac_ext <<_ACEOF
9790/* end confdefs.h.  */
9791
9792/* Override any gcc2 internal prototype to avoid an error.  */
9793#ifdef __cplusplus
9794extern "C"
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 ();
9799int
9800main ()
9801{
9802shl_load ();
9803  ;
9804  return 0;
9805}
9806_ACEOF
9807rm -f conftest.$ac_objext conftest$ac_exeext
9808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9809  (eval $ac_link) 2>conftest.er1
9810  ac_status=$?
9811  grep -v '^ *+' conftest.er1 >conftest.err
9812  rm -f conftest.er1
9813  cat conftest.err >&5
9814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815  (exit $ac_status); } &&
9816         { ac_try='test -z "$ac_c_werror_flag"
9817                         || test ! -s conftest.err'
9818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819  (eval $ac_try) 2>&5
9820  ac_status=$?
9821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822  (exit $ac_status); }; } &&
9823         { ac_try='test -s conftest$ac_exeext'
9824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825  (eval $ac_try) 2>&5
9826  ac_status=$?
9827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828  (exit $ac_status); }; }; then
9829  ac_cv_lib_dld_shl_load=yes
9830else
9831  echo "$as_me: failed program was:" >&5
9832sed 's/^/| /' conftest.$ac_ext >&5
9833
9834ac_cv_lib_dld_shl_load=no
9835fi
9836rm -f conftest.err conftest.$ac_objext \
9837      conftest$ac_exeext conftest.$ac_ext
9838LIBS=$ac_check_lib_save_LIBS
9839fi
9840echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9841echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9842if test $ac_cv_lib_dld_shl_load = yes; then
9843  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9844else
9845  echo "$as_me:$LINENO: checking for dlopen" >&5
9846echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9847if test "${ac_cv_func_dlopen+set}" = set; then
9848  echo $ECHO_N "(cached) $ECHO_C" >&6
9849else
9850  cat >conftest.$ac_ext <<_ACEOF
9851/* confdefs.h.  */
9852_ACEOF
9853cat confdefs.h >>conftest.$ac_ext
9854cat >>conftest.$ac_ext <<_ACEOF
9855/* end confdefs.h.  */
9856/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9857   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9858#define dlopen innocuous_dlopen
9859
9860/* System header to define __stub macros and hopefully few prototypes,
9861    which can conflict with char dlopen (); below.
9862    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863    <limits.h> exists even on freestanding compilers.  */
9864
9865#ifdef __STDC__
9866# include <limits.h>
9867#else
9868# include <assert.h>
9869#endif
9870
9871#undef dlopen
9872
9873/* Override any gcc2 internal prototype to avoid an error.  */
9874#ifdef __cplusplus
9875extern "C"
9876{
9877#endif
9878/* We use char because int might match the return type of a gcc2
9879   builtin and then its argument prototype would still apply.  */
9880char dlopen ();
9881/* The GNU C library defines this for functions which it implements
9882    to always fail with ENOSYS.  Some functions are actually named
9883    something starting with __ and the normal name is an alias.  */
9884#if defined (__stub_dlopen) || defined (__stub___dlopen)
9885choke me
9886#else
9887char (*f) () = dlopen;
9888#endif
9889#ifdef __cplusplus
9890}
9891#endif
9892
9893int
9894main ()
9895{
9896return f != dlopen;
9897  ;
9898  return 0;
9899}
9900_ACEOF
9901rm -f conftest.$ac_objext conftest$ac_exeext
9902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903  (eval $ac_link) 2>conftest.er1
9904  ac_status=$?
9905  grep -v '^ *+' conftest.er1 >conftest.err
9906  rm -f conftest.er1
9907  cat conftest.err >&5
9908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909  (exit $ac_status); } &&
9910         { ac_try='test -z "$ac_c_werror_flag"
9911                         || test ! -s conftest.err'
9912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913  (eval $ac_try) 2>&5
9914  ac_status=$?
9915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916  (exit $ac_status); }; } &&
9917         { ac_try='test -s conftest$ac_exeext'
9918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919  (eval $ac_try) 2>&5
9920  ac_status=$?
9921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922  (exit $ac_status); }; }; then
9923  ac_cv_func_dlopen=yes
9924else
9925  echo "$as_me: failed program was:" >&5
9926sed 's/^/| /' conftest.$ac_ext >&5
9927
9928ac_cv_func_dlopen=no
9929fi
9930rm -f conftest.err conftest.$ac_objext \
9931      conftest$ac_exeext conftest.$ac_ext
9932fi
9933echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9934echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9935if test $ac_cv_func_dlopen = yes; then
9936  lt_cv_dlopen="dlopen"
9937else
9938  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9939echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9940if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9941  echo $ECHO_N "(cached) $ECHO_C" >&6
9942else
9943  ac_check_lib_save_LIBS=$LIBS
9944LIBS="-ldl  $LIBS"
9945cat >conftest.$ac_ext <<_ACEOF
9946/* confdefs.h.  */
9947_ACEOF
9948cat confdefs.h >>conftest.$ac_ext
9949cat >>conftest.$ac_ext <<_ACEOF
9950/* end confdefs.h.  */
9951
9952/* Override any gcc2 internal prototype to avoid an error.  */
9953#ifdef __cplusplus
9954extern "C"
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 ();
9959int
9960main ()
9961{
9962dlopen ();
9963  ;
9964  return 0;
9965}
9966_ACEOF
9967rm -f conftest.$ac_objext conftest$ac_exeext
9968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969  (eval $ac_link) 2>conftest.er1
9970  ac_status=$?
9971  grep -v '^ *+' conftest.er1 >conftest.err
9972  rm -f conftest.er1
9973  cat conftest.err >&5
9974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975  (exit $ac_status); } &&
9976         { ac_try='test -z "$ac_c_werror_flag"
9977                         || test ! -s conftest.err'
9978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979  (eval $ac_try) 2>&5
9980  ac_status=$?
9981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982  (exit $ac_status); }; } &&
9983         { ac_try='test -s conftest$ac_exeext'
9984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985  (eval $ac_try) 2>&5
9986  ac_status=$?
9987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988  (exit $ac_status); }; }; then
9989  ac_cv_lib_dl_dlopen=yes
9990else
9991  echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5
9993
9994ac_cv_lib_dl_dlopen=no
9995fi
9996rm -f conftest.err conftest.$ac_objext \
9997      conftest$ac_exeext conftest.$ac_ext
9998LIBS=$ac_check_lib_save_LIBS
9999fi
10000echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10001echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10002if test $ac_cv_lib_dl_dlopen = yes; then
10003  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10004else
10005  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10006echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10007if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10008  echo $ECHO_N "(cached) $ECHO_C" >&6
10009else
10010  ac_check_lib_save_LIBS=$LIBS
10011LIBS="-lsvld  $LIBS"
10012cat >conftest.$ac_ext <<_ACEOF
10013/* confdefs.h.  */
10014_ACEOF
10015cat confdefs.h >>conftest.$ac_ext
10016cat >>conftest.$ac_ext <<_ACEOF
10017/* end confdefs.h.  */
10018
10019/* Override any gcc2 internal prototype to avoid an error.  */
10020#ifdef __cplusplus
10021extern "C"
10022#endif
10023/* We use char because int might match the return type of a gcc2
10024   builtin and then its argument prototype would still apply.  */
10025char dlopen ();
10026int
10027main ()
10028{
10029dlopen ();
10030  ;
10031  return 0;
10032}
10033_ACEOF
10034rm -f conftest.$ac_objext conftest$ac_exeext
10035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036  (eval $ac_link) 2>conftest.er1
10037  ac_status=$?
10038  grep -v '^ *+' conftest.er1 >conftest.err
10039  rm -f conftest.er1
10040  cat conftest.err >&5
10041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042  (exit $ac_status); } &&
10043         { ac_try='test -z "$ac_c_werror_flag"
10044                         || test ! -s conftest.err'
10045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046  (eval $ac_try) 2>&5
10047  ac_status=$?
10048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049  (exit $ac_status); }; } &&
10050         { ac_try='test -s conftest$ac_exeext'
10051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052  (eval $ac_try) 2>&5
10053  ac_status=$?
10054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055  (exit $ac_status); }; }; then
10056  ac_cv_lib_svld_dlopen=yes
10057else
10058  echo "$as_me: failed program was:" >&5
10059sed 's/^/| /' conftest.$ac_ext >&5
10060
10061ac_cv_lib_svld_dlopen=no
10062fi
10063rm -f conftest.err conftest.$ac_objext \
10064      conftest$ac_exeext conftest.$ac_ext
10065LIBS=$ac_check_lib_save_LIBS
10066fi
10067echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10068echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10069if test $ac_cv_lib_svld_dlopen = yes; then
10070  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10071else
10072  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10073echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10074if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10075  echo $ECHO_N "(cached) $ECHO_C" >&6
10076else
10077  ac_check_lib_save_LIBS=$LIBS
10078LIBS="-ldld  $LIBS"
10079cat >conftest.$ac_ext <<_ACEOF
10080/* confdefs.h.  */
10081_ACEOF
10082cat confdefs.h >>conftest.$ac_ext
10083cat >>conftest.$ac_ext <<_ACEOF
10084/* end confdefs.h.  */
10085
10086/* Override any gcc2 internal prototype to avoid an error.  */
10087#ifdef __cplusplus
10088extern "C"
10089#endif
10090/* We use char because int might match the return type of a gcc2
10091   builtin and then its argument prototype would still apply.  */
10092char dld_link ();
10093int
10094main ()
10095{
10096dld_link ();
10097  ;
10098  return 0;
10099}
10100_ACEOF
10101rm -f conftest.$ac_objext conftest$ac_exeext
10102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103  (eval $ac_link) 2>conftest.er1
10104  ac_status=$?
10105  grep -v '^ *+' conftest.er1 >conftest.err
10106  rm -f conftest.er1
10107  cat conftest.err >&5
10108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109  (exit $ac_status); } &&
10110         { ac_try='test -z "$ac_c_werror_flag"
10111                         || test ! -s conftest.err'
10112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113  (eval $ac_try) 2>&5
10114  ac_status=$?
10115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116  (exit $ac_status); }; } &&
10117         { ac_try='test -s conftest$ac_exeext'
10118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119  (eval $ac_try) 2>&5
10120  ac_status=$?
10121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122  (exit $ac_status); }; }; then
10123  ac_cv_lib_dld_dld_link=yes
10124else
10125  echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
10128ac_cv_lib_dld_dld_link=no
10129fi
10130rm -f conftest.err conftest.$ac_objext \
10131      conftest$ac_exeext conftest.$ac_ext
10132LIBS=$ac_check_lib_save_LIBS
10133fi
10134echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10135echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10136if test $ac_cv_lib_dld_dld_link = yes; then
10137  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10138fi
10139
10140
10141fi
10142
10143
10144fi
10145
10146
10147fi
10148
10149
10150fi
10151
10152
10153fi
10154
10155    ;;
10156  esac
10157
10158  if test "x$lt_cv_dlopen" != xno; then
10159    enable_dlopen=yes
10160  else
10161    enable_dlopen=no
10162  fi
10163
10164  case $lt_cv_dlopen in
10165  dlopen)
10166    save_CPPFLAGS="$CPPFLAGS"
10167    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10168
10169    save_LDFLAGS="$LDFLAGS"
10170    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10171
10172    save_LIBS="$LIBS"
10173    LIBS="$lt_cv_dlopen_libs $LIBS"
10174
10175    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10176echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10177if test "${lt_cv_dlopen_self+set}" = set; then
10178  echo $ECHO_N "(cached) $ECHO_C" >&6
10179else
10180          if test "$cross_compiling" = yes; then :
10181  lt_cv_dlopen_self=cross
10182else
10183  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10184  lt_status=$lt_dlunknown
10185  cat > conftest.$ac_ext <<EOF
10186#line 10186 "configure"
10187#include "confdefs.h"
10188
10189#if HAVE_DLFCN_H
10190#include <dlfcn.h>
10191#endif
10192
10193#include <stdio.h>
10194
10195#ifdef RTLD_GLOBAL
10196#  define LT_DLGLOBAL           RTLD_GLOBAL
10197#else
10198#  ifdef DL_GLOBAL
10199#    define LT_DLGLOBAL         DL_GLOBAL
10200#  else
10201#    define LT_DLGLOBAL         0
10202#  endif
10203#endif
10204
10205/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10206   find out it does not work in some platform. */
10207#ifndef LT_DLLAZY_OR_NOW
10208#  ifdef RTLD_LAZY
10209#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10210#  else
10211#    ifdef DL_LAZY
10212#      define LT_DLLAZY_OR_NOW          DL_LAZY
10213#    else
10214#      ifdef RTLD_NOW
10215#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10216#      else
10217#        ifdef DL_NOW
10218#          define LT_DLLAZY_OR_NOW      DL_NOW
10219#        else
10220#          define LT_DLLAZY_OR_NOW      0
10221#        endif
10222#      endif
10223#    endif
10224#  endif
10225#endif
10226
10227#ifdef __cplusplus
10228extern "C" void exit (int);
10229#endif
10230
10231void fnord() { int i=42;}
10232int main ()
10233{
10234  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10235  int status = $lt_dlunknown;
10236
10237  if (self)
10238    {
10239      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10240      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10241      /* dlclose (self); */
10242    }
10243  else
10244    puts (dlerror ());
10245
10246    exit (status);
10247}
10248EOF
10249  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250  (eval $ac_link) 2>&5
10251  ac_status=$?
10252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10254    (./conftest; exit; ) >&5 2>/dev/null
10255    lt_status=$?
10256    case x$lt_status in
10257      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10258      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10259      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10260    esac
10261  else :
10262    # compilation failed
10263    lt_cv_dlopen_self=no
10264  fi
10265fi
10266rm -fr conftest*
10267
10268
10269fi
10270echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10271echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10272
10273    if test "x$lt_cv_dlopen_self" = xyes; then
10274      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10275      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10276echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10277if test "${lt_cv_dlopen_self_static+set}" = set; then
10278  echo $ECHO_N "(cached) $ECHO_C" >&6
10279else
10280          if test "$cross_compiling" = yes; then :
10281  lt_cv_dlopen_self_static=cross
10282else
10283  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10284  lt_status=$lt_dlunknown
10285  cat > conftest.$ac_ext <<EOF
10286#line 10286 "configure"
10287#include "confdefs.h"
10288
10289#if HAVE_DLFCN_H
10290#include <dlfcn.h>
10291#endif
10292
10293#include <stdio.h>
10294
10295#ifdef RTLD_GLOBAL
10296#  define LT_DLGLOBAL           RTLD_GLOBAL
10297#else
10298#  ifdef DL_GLOBAL
10299#    define LT_DLGLOBAL         DL_GLOBAL
10300#  else
10301#    define LT_DLGLOBAL         0
10302#  endif
10303#endif
10304
10305/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10306   find out it does not work in some platform. */
10307#ifndef LT_DLLAZY_OR_NOW
10308#  ifdef RTLD_LAZY
10309#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10310#  else
10311#    ifdef DL_LAZY
10312#      define LT_DLLAZY_OR_NOW          DL_LAZY
10313#    else
10314#      ifdef RTLD_NOW
10315#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10316#      else
10317#        ifdef DL_NOW
10318#          define LT_DLLAZY_OR_NOW      DL_NOW
10319#        else
10320#          define LT_DLLAZY_OR_NOW      0
10321#        endif
10322#      endif
10323#    endif
10324#  endif
10325#endif
10326
10327#ifdef __cplusplus
10328extern "C" void exit (int);
10329#endif
10330
10331void fnord() { int i=42;}
10332int main ()
10333{
10334  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10335  int status = $lt_dlunknown;
10336
10337  if (self)
10338    {
10339      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10340      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10341      /* dlclose (self); */
10342    }
10343  else
10344    puts (dlerror ());
10345
10346    exit (status);
10347}
10348EOF
10349  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350  (eval $ac_link) 2>&5
10351  ac_status=$?
10352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10354    (./conftest; exit; ) >&5 2>/dev/null
10355    lt_status=$?
10356    case x$lt_status in
10357      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10358      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10359      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10360    esac
10361  else :
10362    # compilation failed
10363    lt_cv_dlopen_self_static=no
10364  fi
10365fi
10366rm -fr conftest*
10367
10368
10369fi
10370echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10371echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10372    fi
10373
10374    CPPFLAGS="$save_CPPFLAGS"
10375    LDFLAGS="$save_LDFLAGS"
10376    LIBS="$save_LIBS"
10377    ;;
10378  esac
10379
10380  case $lt_cv_dlopen_self in
10381  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10382  *) enable_dlopen_self=unknown ;;
10383  esac
10384
10385  case $lt_cv_dlopen_self_static in
10386  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10387  *) enable_dlopen_self_static=unknown ;;
10388  esac
10389fi
10390
10391
10392# Report which library types will actually be built
10393echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10394echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10395echo "$as_me:$LINENO: result: $can_build_shared" >&5
10396echo "${ECHO_T}$can_build_shared" >&6
10397
10398echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10399echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10400test "$can_build_shared" = "no" && enable_shared=no
10401
10402# On AIX, shared libraries and static libraries use the same namespace, and
10403# are all built from PIC.
10404case $host_os in
10405aix3*)
10406  test "$enable_shared" = yes && enable_static=no
10407  if test -n "$RANLIB"; then
10408    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10409    postinstall_cmds='$RANLIB $lib'
10410  fi
10411  ;;
10412
10413aix4* | aix5*)
10414  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10415    test "$enable_shared" = yes && enable_static=no
10416  fi
10417    ;;
10418esac
10419echo "$as_me:$LINENO: result: $enable_shared" >&5
10420echo "${ECHO_T}$enable_shared" >&6
10421
10422echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10423echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10424# Make sure either enable_shared or enable_static is yes.
10425test "$enable_shared" = yes || enable_static=yes
10426echo "$as_me:$LINENO: result: $enable_static" >&5
10427echo "${ECHO_T}$enable_static" >&6
10428
10429# The else clause should only fire when bootstrapping the
10430# libtool distribution, otherwise you forgot to ship ltmain.sh
10431# with your package, and you will get complaints that there are
10432# no rules to generate ltmain.sh.
10433if test -f "$ltmain"; then
10434  # See if we are running on zsh, and set the options which allow our commands through
10435  # without removal of \ escapes.
10436  if test -n "${ZSH_VERSION+set}" ; then
10437    setopt NO_GLOB_SUBST
10438  fi
10439  # Now quote all the things that may contain metacharacters while being
10440  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10441  # variables and quote the copies for generation of the libtool script.
10442  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10443    SED SHELL STRIP \
10444    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10445    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10446    deplibs_check_method reload_flag reload_cmds need_locks \
10447    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10448    lt_cv_sys_global_symbol_to_c_name_address \
10449    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10450    old_postinstall_cmds old_postuninstall_cmds \
10451    compiler \
10452    CC \
10453    LD \
10454    lt_prog_compiler_wl \
10455    lt_prog_compiler_pic \
10456    lt_prog_compiler_static \
10457    lt_prog_compiler_no_builtin_flag \
10458    export_dynamic_flag_spec \
10459    thread_safe_flag_spec \
10460    whole_archive_flag_spec \
10461    enable_shared_with_static_runtimes \
10462    old_archive_cmds \
10463    old_archive_from_new_cmds \
10464    predep_objects \
10465    postdep_objects \
10466    predeps \
10467    postdeps \
10468    compiler_lib_search_path \
10469    archive_cmds \
10470    archive_expsym_cmds \
10471    postinstall_cmds \
10472    postuninstall_cmds \
10473    old_archive_from_expsyms_cmds \
10474    allow_undefined_flag \
10475    no_undefined_flag \
10476    export_symbols_cmds \
10477    hardcode_libdir_flag_spec \
10478    hardcode_libdir_flag_spec_ld \
10479    hardcode_libdir_separator \
10480    hardcode_automatic \
10481    module_cmds \
10482    module_expsym_cmds \
10483    lt_cv_prog_compiler_c_o \
10484    exclude_expsyms \
10485    include_expsyms; do
10486
10487    case $var in
10488    old_archive_cmds | \
10489    old_archive_from_new_cmds | \
10490    archive_cmds | \
10491    archive_expsym_cmds | \
10492    module_cmds | \
10493    module_expsym_cmds | \
10494    old_archive_from_expsyms_cmds | \
10495    export_symbols_cmds | \
10496    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10497    postinstall_cmds | postuninstall_cmds | \
10498    old_postinstall_cmds | old_postuninstall_cmds | \
10499    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10500      # Double-quote double-evaled strings.
10501      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10502      ;;
10503    *)
10504      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10505      ;;
10506    esac
10507  done
10508
10509  case $lt_echo in
10510  *'\$0 --fallback-echo"')
10511    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10512    ;;
10513  esac
10514
10515cfgfile="${ofile}T"
10516  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10517  $rm -f "$cfgfile"
10518  { echo "$as_me:$LINENO: creating $ofile" >&5
10519echo "$as_me: creating $ofile" >&6;}
10520
10521  cat <<__EOF__ >> "$cfgfile"
10522#! $SHELL
10523
10524# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10525# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10526# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10527#
10528# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10529# Free Software Foundation, Inc.
10530#
10531# This file is part of GNU Libtool:
10532# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10533#
10534# This program is free software; you can redistribute it and/or modify
10535# it under the terms of the GNU General Public License as published by
10536# the Free Software Foundation; either version 2 of the License, or
10537# (at your option) any later version.
10538#
10539# This program is distributed in the hope that it will be useful, but
10540# WITHOUT ANY WARRANTY; without even the implied warranty of
10541# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10542# General Public License for more details.
10543#
10544# You should have received a copy of the GNU General Public License
10545# along with this program; if not, write to the Free Software
10546# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10547#
10548# As a special exception to the GNU General Public License, if you
10549# distribute this file as part of a program that contains a
10550# configuration script generated by Autoconf, you may include it under
10551# the same distribution terms that you use for the rest of that program.
10552
10553# A sed program that does not truncate output.
10554SED=$lt_SED
10555
10556# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10557Xsed="$SED -e 1s/^X//"
10558
10559# The HP-UX ksh and POSIX shell print the target directory to stdout
10560# if CDPATH is set.
10561(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10562
10563# The names of the tagged configurations supported by this script.
10564available_tags=
10565
10566# ### BEGIN LIBTOOL CONFIG
10567
10568# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10569
10570# Shell to use when invoking shell scripts.
10571SHELL=$lt_SHELL
10572
10573# Whether or not to build shared libraries.
10574build_libtool_libs=$enable_shared
10575
10576# Whether or not to build static libraries.
10577build_old_libs=$enable_static
10578
10579# Whether or not to add -lc for building shared libraries.
10580build_libtool_need_lc=$archive_cmds_need_lc
10581
10582# Whether or not to disallow shared libs when runtime libs are static
10583allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10584
10585# Whether or not to optimize for fast installation.
10586fast_install=$enable_fast_install
10587
10588# The host system.
10589host_alias=$host_alias
10590host=$host
10591host_os=$host_os
10592
10593# The build system.
10594build_alias=$build_alias
10595build=$build
10596build_os=$build_os
10597
10598# An echo program that does not interpret backslashes.
10599echo=$lt_echo
10600
10601# The archiver.
10602AR=$lt_AR
10603AR_FLAGS=$lt_AR_FLAGS
10604
10605# A C compiler.
10606LTCC=$lt_LTCC
10607
10608# LTCC compiler flags.
10609LTCFLAGS=$lt_LTCFLAGS
10610
10611# A language-specific compiler.
10612CC=$lt_compiler
10613
10614# Is the compiler the GNU C compiler?
10615with_gcc=$GCC
10616
10617# An ERE matcher.
10618EGREP=$lt_EGREP
10619
10620# The linker used to build libraries.
10621LD=$lt_LD
10622
10623# Whether we need hard or soft links.
10624LN_S=$lt_LN_S
10625
10626# A BSD-compatible nm program.
10627NM=$lt_NM
10628
10629# A symbol stripping program
10630STRIP=$lt_STRIP
10631
10632# Used to examine libraries when file_magic_cmd begins "file"
10633MAGIC_CMD=$MAGIC_CMD
10634
10635# Used on cygwin: DLL creation program.
10636DLLTOOL="$DLLTOOL"
10637
10638# Used on cygwin: object dumper.
10639OBJDUMP="$OBJDUMP"
10640
10641# Used on cygwin: assembler.
10642AS="$AS"
10643
10644# The name of the directory that contains temporary libtool files.
10645objdir=$objdir
10646
10647# How to create reloadable object files.
10648reload_flag=$lt_reload_flag
10649reload_cmds=$lt_reload_cmds
10650
10651# How to pass a linker flag through the compiler.
10652wl=$lt_lt_prog_compiler_wl
10653
10654# Object file suffix (normally "o").
10655objext="$ac_objext"
10656
10657# Old archive suffix (normally "a").
10658libext="$libext"
10659
10660# Shared library suffix (normally ".so").
10661shrext_cmds='$shrext_cmds'
10662
10663# Executable file suffix (normally "").
10664exeext="$exeext"
10665
10666# Additional compiler flags for building library objects.
10667pic_flag=$lt_lt_prog_compiler_pic
10668pic_mode=$pic_mode
10669
10670# What is the maximum length of a command?
10671max_cmd_len=$lt_cv_sys_max_cmd_len
10672
10673# Does compiler simultaneously support -c and -o options?
10674compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10675
10676# Must we lock files when doing compilation?
10677need_locks=$lt_need_locks
10678
10679# Do we need the lib prefix for modules?
10680need_lib_prefix=$need_lib_prefix
10681
10682# Do we need a version for libraries?
10683need_version=$need_version
10684
10685# Whether dlopen is supported.
10686dlopen_support=$enable_dlopen
10687
10688# Whether dlopen of programs is supported.
10689dlopen_self=$enable_dlopen_self
10690
10691# Whether dlopen of statically linked programs is supported.
10692dlopen_self_static=$enable_dlopen_self_static
10693
10694# Compiler flag to prevent dynamic linking.
10695link_static_flag=$lt_lt_prog_compiler_static
10696
10697# Compiler flag to turn off builtin functions.
10698no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10699
10700# Compiler flag to allow reflexive dlopens.
10701export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10702
10703# Compiler flag to generate shared objects directly from archives.
10704whole_archive_flag_spec=$lt_whole_archive_flag_spec
10705
10706# Compiler flag to generate thread-safe objects.
10707thread_safe_flag_spec=$lt_thread_safe_flag_spec
10708
10709# Library versioning type.
10710version_type=$version_type
10711
10712# Format of library name prefix.
10713libname_spec=$lt_libname_spec
10714
10715# List of archive names.  First name is the real one, the rest are links.
10716# The last name is the one that the linker finds with -lNAME.
10717library_names_spec=$lt_library_names_spec
10718
10719# The coded name of the library, if different from the real name.
10720soname_spec=$lt_soname_spec
10721
10722# Commands used to build and install an old-style archive.
10723RANLIB=$lt_RANLIB
10724old_archive_cmds=$lt_old_archive_cmds
10725old_postinstall_cmds=$lt_old_postinstall_cmds
10726old_postuninstall_cmds=$lt_old_postuninstall_cmds
10727
10728# Create an old-style archive from a shared archive.
10729old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10730
10731# Create a temporary old-style archive to link instead of a shared archive.
10732old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10733
10734# Commands used to build and install a shared archive.
10735archive_cmds=$lt_archive_cmds
10736archive_expsym_cmds=$lt_archive_expsym_cmds
10737postinstall_cmds=$lt_postinstall_cmds
10738postuninstall_cmds=$lt_postuninstall_cmds
10739
10740# Commands used to build a loadable module (assumed same as above if empty)
10741module_cmds=$lt_module_cmds
10742module_expsym_cmds=$lt_module_expsym_cmds
10743
10744# Commands to strip libraries.
10745old_striplib=$lt_old_striplib
10746striplib=$lt_striplib
10747
10748# Dependencies to place before the objects being linked to create a
10749# shared library.
10750predep_objects=$lt_predep_objects
10751
10752# Dependencies to place after the objects being linked to create a
10753# shared library.
10754postdep_objects=$lt_postdep_objects
10755
10756# Dependencies to place before the objects being linked to create a
10757# shared library.
10758predeps=$lt_predeps
10759
10760# Dependencies to place after the objects being linked to create a
10761# shared library.
10762postdeps=$lt_postdeps
10763
10764# The library search path used internally by the compiler when linking
10765# a shared library.
10766compiler_lib_search_path=$lt_compiler_lib_search_path
10767
10768# Method to check whether dependent libraries are shared objects.
10769deplibs_check_method=$lt_deplibs_check_method
10770
10771# Command to use when deplibs_check_method == file_magic.
10772file_magic_cmd=$lt_file_magic_cmd
10773
10774# Flag that allows shared libraries with undefined symbols to be built.
10775allow_undefined_flag=$lt_allow_undefined_flag
10776
10777# Flag that forces no undefined symbols.
10778no_undefined_flag=$lt_no_undefined_flag
10779
10780# Commands used to finish a libtool library installation in a directory.
10781finish_cmds=$lt_finish_cmds
10782
10783# Same as above, but a single script fragment to be evaled but not shown.
10784finish_eval=$lt_finish_eval
10785
10786# Take the output of nm and produce a listing of raw symbols and C names.
10787global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10788
10789# Transform the output of nm in a proper C declaration
10790global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10791
10792# Transform the output of nm in a C name address pair
10793global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address