source: ThirdParty/SoPlex/stable/1.2/configure @ 2997

Last change on this file since 2997 was 2997, checked in by tkr, 8 years ago

Re-running the autotools

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