source: trunk/Clp/configure @ 1688

Last change on this file since 1688 was 1688, checked in by stefan, 9 years ago

add -Wno-long-long in case someone compiles with AMD UFL; rerun autotools

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