source: stable/1.1/CoinMP/configure @ 119

Last change on this file since 119 was 119, checked in by bjarni, 11 years ago

add External copies for release and stable

  • Property svn:executable set to *
File size: 720.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for CoinMP 1.1.
4#
5# Report bugs to <coin-discuss@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='CoinMP'
431PACKAGE_TARNAME='coinmp'
432PACKAGE_VERSION='1.1'
433PACKAGE_STRING='CoinMP 1.1'
434PACKAGE_BUGREPORT='coin-discuss@list.coin-or.org'
435
436ac_unique_file="src/CoinMP.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP 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 LN_S 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 COINMPSRCDIR COINMPOBJDIR COIN_HAS_COINMP_TRUE COIN_HAS_COINMP_FALSE CBCSRCDIR CBCOBJDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSISRCDIR OSIOBJDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures CoinMP 1.1 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of CoinMP 1.1:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-doscompile     Under Cygwin, compile so that executables run under
1079                          DOS. Set to mingw to use gcc/g++/ld with
1080                          -mno-cygwin. Set to msvc to use cl/link. Default
1081                          when mentioned: mingw. Default when not mentioned:
1082                          disabled.
1083  --enable-static[=PKGS]
1084                          build static libraries [default=no]
1085  --disable-dependency-tracking  speeds up one-time build
1086  --enable-dependency-tracking   do not reject slow dependency extractors
1087  --enable-maintainer-mode  enable make rules and dependencies not useful
1088                          (and sometimes confusing) to the casual installer
1089  --enable-shared[=PKGS]
1090                          build shared libraries [default=yes]
1091  --enable-fast-install[=PKGS]
1092                          optimize for fast installation [default=yes]
1093  --disable-libtool-lock  avoid locking (might break parallel builds)
1094
1095Optional Packages:
1096  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1097  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1098  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1099  --with-pic              try to use only PIC/non-PIC objects [default=use
1100                          both]
1101  --with-tags[=TAGS]
1102                          include additional configurations [automatic]
1103
1104Some influential environment variables:
1105  CDEFS       Additional -D flags to be used when compiling C code.
1106  ADD_CFLAGS  Additional C compiler options
1107  DBG_CFLAGS  Debug C compiler options
1108  OPT_CFLAGS  Optimize C compiler options
1109  CC          C compiler command
1110  CFLAGS      C compiler flags
1111  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1112              nonstandard directory <lib dir>
1113  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1114              headers in a nonstandard directory <include dir>
1115  MPICC       C MPI Compiler
1116  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1117  ADD_CXXFLAGS
1118              Additional C++ compiler options
1119  DBG_CXXFLAGS
1120              Debug C++ compiler options
1121  OPT_CXXFLAGS
1122              Optimize C++ compiler options
1123  CXX         C++ compiler command
1124  CXXFLAGS    C++ compiler flags
1125  MPICXX      C++ MPI Compiler
1126  CPP         C preprocessor
1127  CXXCPP      C++ preprocessor
1128  F77         Fortran 77 compiler command
1129  FFLAGS      Fortran 77 compiler flags
1130
1131Use these variables to override the choices made by `configure' or to help
1132it to find libraries and programs with nonstandard names/locations.
1133
1134Report bugs to <coin-discuss@list.coin-or.org>.
1135_ACEOF
1136fi
1137
1138if test "$ac_init_help" = "recursive"; then
1139  # If there are subdirs, report their specific --help.
1140  ac_popdir=`pwd`
1141  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1142    test -d $ac_dir || continue
1143    ac_builddir=.
1144
1145if test "$ac_dir" != .; then
1146  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1147  # A "../" for each directory in $ac_dir_suffix.
1148  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1149else
1150  ac_dir_suffix= ac_top_builddir=
1151fi
1152
1153case $srcdir in
1154  .)  # No --srcdir option.  We are building in place.
1155    ac_srcdir=.
1156    if test -z "$ac_top_builddir"; then
1157       ac_top_srcdir=.
1158    else
1159       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1160    fi ;;
1161  [\\/]* | ?:[\\/]* )  # Absolute path.
1162    ac_srcdir=$srcdir$ac_dir_suffix;
1163    ac_top_srcdir=$srcdir ;;
1164  *) # Relative path.
1165    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1166    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1167esac
1168
1169# Do not use `cd foo && pwd` to compute absolute paths, because
1170# the directories may not exist.
1171case `pwd` in
1172.) ac_abs_builddir="$ac_dir";;
1173*)
1174  case "$ac_dir" in
1175  .) ac_abs_builddir=`pwd`;;
1176  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1177  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1178  esac;;
1179esac
1180case $ac_abs_builddir in
1181.) ac_abs_top_builddir=${ac_top_builddir}.;;
1182*)
1183  case ${ac_top_builddir}. in
1184  .) ac_abs_top_builddir=$ac_abs_builddir;;
1185  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1186  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1187  esac;;
1188esac
1189case $ac_abs_builddir in
1190.) ac_abs_srcdir=$ac_srcdir;;
1191*)
1192  case $ac_srcdir in
1193  .) ac_abs_srcdir=$ac_abs_builddir;;
1194  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1195  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1196  esac;;
1197esac
1198case $ac_abs_builddir in
1199.) ac_abs_top_srcdir=$ac_top_srcdir;;
1200*)
1201  case $ac_top_srcdir in
1202  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1203  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1204  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1205  esac;;
1206esac
1207
1208    cd $ac_dir
1209    # Check for guested configure; otherwise get Cygnus style configure.
1210    if test -f $ac_srcdir/configure.gnu; then
1211      echo
1212      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1213    elif test -f $ac_srcdir/configure; then
1214      echo
1215      $SHELL $ac_srcdir/configure  --help=recursive
1216    elif test -f $ac_srcdir/configure.ac ||
1217           test -f $ac_srcdir/configure.in; then
1218      echo
1219      $ac_configure --help
1220    else
1221      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1222    fi
1223    cd $ac_popdir
1224  done
1225fi
1226
1227test -n "$ac_init_help" && exit 0
1228if $ac_init_version; then
1229  cat <<\_ACEOF
1230CoinMP configure 1.1
1231generated by GNU Autoconf 2.59
1232
1233Copyright (C) 2003 Free Software Foundation, Inc.
1234This configure script is free software; the Free Software Foundation
1235gives unlimited permission to copy, distribute and modify it.
1236
1237
1238Copyright 2006 International Business Machines and others.
1239All Rights Reserved.
1240This file is part of the open source package Coin which is distributed
1241under the Common Public License.
1242_ACEOF
1243  exit 0
1244fi
1245exec 5>config.log
1246cat >&5 <<_ACEOF
1247This file contains any messages produced by compilers while
1248running configure, to aid debugging if configure makes a mistake.
1249
1250It was created by CoinMP $as_me 1.1, which was
1251generated by GNU Autoconf 2.59.  Invocation command line was
1252
1253  $ $0 $@
1254
1255_ACEOF
1256{
1257cat <<_ASUNAME
1258## --------- ##
1259## Platform. ##
1260## --------- ##
1261
1262hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1263uname -m = `(uname -m) 2>/dev/null || echo unknown`
1264uname -r = `(uname -r) 2>/dev/null || echo unknown`
1265uname -s = `(uname -s) 2>/dev/null || echo unknown`
1266uname -v = `(uname -v) 2>/dev/null || echo unknown`
1267
1268/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1269/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1270
1271/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1272/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1273/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1274hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1275/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1276/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1277/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1278
1279_ASUNAME
1280
1281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282for as_dir in $PATH
1283do
1284  IFS=$as_save_IFS
1285  test -z "$as_dir" && as_dir=.
1286  echo "PATH: $as_dir"
1287done
1288
1289} >&5
1290
1291cat >&5 <<_ACEOF
1292
1293
1294## ----------- ##
1295## Core tests. ##
1296## ----------- ##
1297
1298_ACEOF
1299
1300
1301# Keep a trace of the command line.
1302# Strip out --no-create and --no-recursion so they do not pile up.
1303# Strip out --silent because we don't want to record it for future runs.
1304# Also quote any args containing shell meta-characters.
1305# Make two passes to allow for proper duplicate-argument suppression.
1306ac_configure_args=
1307ac_configure_args0=
1308ac_configure_args1=
1309ac_sep=
1310ac_must_keep_next=false
1311for ac_pass in 1 2
1312do
1313  for ac_arg
1314  do
1315    case $ac_arg in
1316    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1317    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318    | -silent | --silent | --silen | --sile | --sil)
1319      continue ;;
1320    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1322    esac
1323    case $ac_pass in
1324    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1325    2)
1326      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1327      if test $ac_must_keep_next = true; then
1328        ac_must_keep_next=false # Got value, back to normal.
1329      else
1330        case $ac_arg in
1331          *=* | --config-cache | -C | -disable-* | --disable-* \
1332          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1333          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1334          | -with-* | --with-* | -without-* | --without-* | --x)
1335            case "$ac_configure_args0 " in
1336              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1337            esac
1338            ;;
1339          -* ) ac_must_keep_next=true ;;
1340        esac
1341      fi
1342      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1343      # Get rid of the leading space.
1344      ac_sep=" "
1345      ;;
1346    esac
1347  done
1348done
1349$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1350$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1351
1352# When interrupted or exit'd, cleanup temporary files, and complete
1353# config.log.  We remove comments because anyway the quotes in there
1354# would cause problems or look ugly.
1355# WARNING: Be sure not to use single quotes in there, as some shells,
1356# such as our DU 5.0 friend, will then `close' the trap.
1357trap 'exit_status=$?
1358  # Save into config.log some information that might help in debugging.
1359  {
1360    echo
1361
1362    cat <<\_ASBOX
1363## ---------------- ##
1364## Cache variables. ##
1365## ---------------- ##
1366_ASBOX
1367    echo
1368    # The following way of writing the cache mishandles newlines in values,
1369{
1370  (set) 2>&1 |
1371    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1372    *ac_space=\ *)
1373      sed -n \
1374        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1375          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1376      ;;
1377    *)
1378      sed -n \
1379        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1380      ;;
1381    esac;
1382}
1383    echo
1384
1385    cat <<\_ASBOX
1386## ----------------- ##
1387## Output variables. ##
1388## ----------------- ##
1389_ASBOX
1390    echo
1391    for ac_var in $ac_subst_vars
1392    do
1393      eval ac_val=$`echo $ac_var`
1394      echo "$ac_var='"'"'$ac_val'"'"'"
1395    done | sort
1396    echo
1397
1398    if test -n "$ac_subst_files"; then
1399      cat <<\_ASBOX
1400## ------------- ##
1401## Output files. ##
1402## ------------- ##
1403_ASBOX
1404      echo
1405      for ac_var in $ac_subst_files
1406      do
1407        eval ac_val=$`echo $ac_var`
1408        echo "$ac_var='"'"'$ac_val'"'"'"
1409      done | sort
1410      echo
1411    fi
1412
1413    if test -s confdefs.h; then
1414      cat <<\_ASBOX
1415## ----------- ##
1416## confdefs.h. ##
1417## ----------- ##
1418_ASBOX
1419      echo
1420      sed "/^$/d" confdefs.h | sort
1421      echo
1422    fi
1423    test "$ac_signal" != 0 &&
1424      echo "$as_me: caught signal $ac_signal"
1425    echo "$as_me: exit $exit_status"
1426  } >&5
1427  rm -f core *.core &&
1428  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1429    exit $exit_status
1430     ' 0
1431for ac_signal in 1 2 13 15; do
1432  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1433done
1434ac_signal=0
1435
1436# confdefs.h avoids OS command line length limits that DEFS can exceed.
1437rm -rf conftest* confdefs.h
1438# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1439echo >confdefs.h
1440
1441# Predefined preprocessor variables.
1442
1443cat >>confdefs.h <<_ACEOF
1444#define PACKAGE_NAME "$PACKAGE_NAME"
1445_ACEOF
1446
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_VERSION "$PACKAGE_VERSION"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_STRING "$PACKAGE_STRING"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1465_ACEOF
1466
1467
1468# Let the site file select an alternate cache file if it wants to.
1469# Prefer explicitly selected file to automatically selected ones.
1470if test -z "$CONFIG_SITE"; then
1471  if test "x$prefix" != xNONE; then
1472    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1473  else
1474    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1475  fi
1476fi
1477for ac_site_file in $CONFIG_SITE; do
1478  if test -r "$ac_site_file"; then
1479    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1480echo "$as_me: loading site script $ac_site_file" >&6;}
1481    sed 's/^/| /' "$ac_site_file" >&5
1482    . "$ac_site_file"
1483  fi
1484done
1485
1486if test -r "$cache_file"; then
1487  # Some versions of bash will fail to source /dev/null (special
1488  # files actually), so we avoid doing that.
1489  if test -f "$cache_file"; then
1490    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1491echo "$as_me: loading cache $cache_file" >&6;}
1492    case $cache_file in
1493      [\\/]* | ?:[\\/]* ) . $cache_file;;
1494      *)                      . ./$cache_file;;
1495    esac
1496  fi
1497else
1498  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1499echo "$as_me: creating cache $cache_file" >&6;}
1500  >$cache_file
1501fi
1502
1503# Check that the precious variables saved in the cache have kept the same
1504# value.
1505ac_cache_corrupted=false
1506for ac_var in `(set) 2>&1 |
1507               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1508  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1509  eval ac_new_set=\$ac_env_${ac_var}_set
1510  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1511  eval ac_new_val="\$ac_env_${ac_var}_value"
1512  case $ac_old_set,$ac_new_set in
1513    set,)
1514      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1515echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1516      ac_cache_corrupted=: ;;
1517    ,set)
1518      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1519echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1520      ac_cache_corrupted=: ;;
1521    ,);;
1522    *)
1523      if test "x$ac_old_val" != "x$ac_new_val"; then
1524        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1525echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1526        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1527echo "$as_me:   former value:  $ac_old_val" >&2;}
1528        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1529echo "$as_me:   current value: $ac_new_val" >&2;}
1530        ac_cache_corrupted=:
1531      fi;;
1532  esac
1533  # Pass precious variables to config.status.
1534  if test "$ac_new_set" = set; then
1535    case $ac_new_val in
1536    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1537      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1538    *) ac_arg=$ac_var=$ac_new_val ;;
1539    esac
1540    case " $ac_configure_args " in
1541      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1542      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1543    esac
1544  fi
1545done
1546if $ac_cache_corrupted; then
1547  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1548echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1549  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1550echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1551   { (exit 1); exit 1; }; }
1552fi
1553
1554ac_ext=c
1555ac_cpp='$CPP $CPPFLAGS'
1556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1558ac_compiler_gnu=$ac_cv_c_compiler_gnu
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589# List one file in the package so that the configure script can test
1590# whether the package is actually there
1591
1592
1593# Where should everything be installed by default?  Here, we want it
1594# to be installed directly in 'bin', 'lib', 'include' subdirectories
1595# of the directory where configure is run.  The default would be
1596# /usr/local.
1597
1598
1599#############################################################################
1600#                         Standard build tool stuff                         #
1601#############################################################################
1602
1603# Get the system type
1604ac_aux_dir=
1605for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1606  if test -f $ac_dir/install-sh; then
1607    ac_aux_dir=$ac_dir
1608    ac_install_sh="$ac_aux_dir/install-sh -c"
1609    break
1610  elif test -f $ac_dir/install.sh; then
1611    ac_aux_dir=$ac_dir
1612    ac_install_sh="$ac_aux_dir/install.sh -c"
1613    break
1614  elif test -f $ac_dir/shtool; then
1615    ac_aux_dir=$ac_dir
1616    ac_install_sh="$ac_aux_dir/shtool install -c"
1617    break
1618  fi
1619done
1620if test -z "$ac_aux_dir"; then
1621  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1622echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1623   { (exit 1); exit 1; }; }
1624fi
1625ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1626ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1627ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1628
1629# Make sure we can run config.sub.
1630$ac_config_sub sun4 >/dev/null 2>&1 ||
1631  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1632echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1633   { (exit 1); exit 1; }; }
1634
1635echo "$as_me:$LINENO: checking build system type" >&5
1636echo $ECHO_N "checking build system type... $ECHO_C" >&6
1637if test "${ac_cv_build+set}" = set; then
1638  echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640  ac_cv_build_alias=$build_alias
1641test -z "$ac_cv_build_alias" &&
1642  ac_cv_build_alias=`$ac_config_guess`
1643test -z "$ac_cv_build_alias" &&
1644  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1645echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1646   { (exit 1); exit 1; }; }
1647ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1648  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1649echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1650   { (exit 1); exit 1; }; }
1651
1652fi
1653echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1654echo "${ECHO_T}$ac_cv_build" >&6
1655build=$ac_cv_build
1656build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1657build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1658build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659
1660
1661
1662# If this project depends on external projects, the Externals file in
1663# the source root directory contains definition of where to find those
1664# externals.  The following macro ensures that those externals are
1665# retrieved by svn if they are not there yet.
1666# Initialize the ADDLIBS variable
1667ADDLIBS="-lm $LIBS"
1668
1669
1670# Initialize the FADDLIBS variable (which is to be used with a fortran
1671# compiler and will not include FLIBS)
1672FADDLIBS="$LIBS"
1673
1674
1675# A useful makefile conditional that is always false
1676
1677
1678if false; then
1679  ALWAYS_FALSE_TRUE=
1680  ALWAYS_FALSE_FALSE='#'
1681else
1682  ALWAYS_FALSE_TRUE='#'
1683  ALWAYS_FALSE_FALSE=
1684fi
1685
1686
1687# We set the following variable so that we know later in AC_COIN_FINALIZE
1688# that we are in a project main directory
1689coin_projectdir=yes
1690
1691
1692# Check if user wants to produce debugging code
1693
1694echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1695echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1696
1697# Check whether --enable-debug or --disable-debug was given.
1698if test "${enable_debug+set}" = set; then
1699  enableval="$enable_debug"
1700  case "${enableval}" in
1701   yes) coin_debug_compile=true
1702        enable_shared=no
1703        ;;
1704   no)  coin_debug_compile=false
1705        ;;
1706   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1707echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1708   { (exit 1); exit 1; }; }
1709        ;;
1710esac
1711else
1712  coin_debug_compile=false
1713fi;
1714
1715 # m4_ifvaln([],
1716
1717if test $coin_debug_compile = true; then
1718  echo "$as_me:$LINENO: result: yes" >&5
1719echo "${ECHO_T}yes" >&6
1720else
1721  echo "$as_me:$LINENO: result: no" >&5
1722echo "${ECHO_T}no" >&6
1723fi
1724
1725 # m4_ifvaln([],
1726
1727
1728
1729# Get the name of the C++ compiler and appropriate compiler options
1730case $build in
1731  *-mingw*)
1732    if test "${LD+set}" = set; then :; else
1733      LD=link
1734    fi
1735    ;;
1736 esac
1737 case $enable_doscompile in
1738   msvc)
1739     if test "x${LD+set}" = xset; then :; else
1740       LD=link
1741     fi
1742     ;;
1743 esac
1744
1745
1746 # Check whether --enable-doscompile or --disable-doscompile was given.
1747if test "${enable_doscompile+set}" = set; then
1748  enableval="$enable_doscompile"
1749  if test "$enable_doscompile" != no; then
1750     case $build in
1751       *-cygwin*) ;;
1752       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1753echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1754   { (exit 1); exit 1; }; } ;;
1755     esac
1756   fi
1757else
1758  enable_doscompile=no
1759fi;
1760 case "$enable_doscompile" in
1761   msvc|mingw|no) ;;
1762   yes) enable_doscompile=mingw ;;
1763   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1764                    Try configure --help=recursive." >&5
1765echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1766                    Try configure --help=recursive." >&2;}
1767   { (exit 1); exit 1; }; }
1768      ;;
1769  esac
1770  if test "$enable_doscompile" != no ; then
1771    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1772echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1773  fi
1774
1775
1776
1777
1778ac_ext=c
1779ac_cpp='$CPP $CPPFLAGS'
1780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1782ac_compiler_gnu=$ac_cv_c_compiler_gnu
1783
1784
1785# For consistency, we set the C compiler to the same value of the C++
1786# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1787if test x"$CXX" != x; then
1788  case "$CXX" in
1789    cl* | */cl* | CL* | */CL*)
1790      if test x"$CC" = x; then
1791        CC="$CXX"
1792        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1793echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1794      fi
1795      ;;
1796  esac
1797fi
1798
1799
1800
1801
1802
1803
1804coin_has_cc=yes
1805
1806save_cflags="$CFLAGS"
1807# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1808# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1809# is likely to be a non-functional shell. But many installations will have
1810# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1811case $build in
1812  *-cygwin* | *-mingw*)
1813             if test "$enable_doscompile" = msvc ; then
1814               comps="cl"
1815             else
1816               comps="gcc cl"
1817             fi ;;
1818  sparc-sun-solaris*)
1819             comps="cc xlc gcc pgcc icc" ;;
1820  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1821  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1822esac
1823
1824# We delete the cached value, since the test might not have been
1825# performed with our choice of compilers earlier
1826$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1827# AC_MSG_NOTICE([C compiler candidates: $comps])
1828ac_ext=c
1829ac_cpp='$CPP $CPPFLAGS'
1830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833if test -n "$ac_tool_prefix"; then
1834  for ac_prog in $comps
1835  do
1836    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1838echo "$as_me:$LINENO: checking for $ac_word" >&5
1839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840if test "${ac_cv_prog_CC+set}" = set; then
1841  echo $ECHO_N "(cached) $ECHO_C" >&6
1842else
1843  if test -n "$CC"; then
1844  ac_cv_prog_CC="$CC" # Let the user override the test.
1845else
1846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847for as_dir in $PATH
1848do
1849  IFS=$as_save_IFS
1850  test -z "$as_dir" && as_dir=.
1851  for ac_exec_ext in '' $ac_executable_extensions; do
1852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855    break 2
1856  fi
1857done
1858done
1859
1860fi
1861fi
1862CC=$ac_cv_prog_CC
1863if test -n "$CC"; then
1864  echo "$as_me:$LINENO: result: $CC" >&5
1865echo "${ECHO_T}$CC" >&6
1866else
1867  echo "$as_me:$LINENO: result: no" >&5
1868echo "${ECHO_T}no" >&6
1869fi
1870
1871    test -n "$CC" && break
1872  done
1873fi
1874if test -z "$CC"; then
1875  ac_ct_CC=$CC
1876  for ac_prog in $comps
1877do
1878  # Extract the first word of "$ac_prog", so it can be a program name with args.
1879set dummy $ac_prog; ac_word=$2
1880echo "$as_me:$LINENO: checking for $ac_word" >&5
1881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1883  echo $ECHO_N "(cached) $ECHO_C" >&6
1884else
1885  if test -n "$ac_ct_CC"; then
1886  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1887else
1888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889for as_dir in $PATH
1890do
1891  IFS=$as_save_IFS
1892  test -z "$as_dir" && as_dir=.
1893  for ac_exec_ext in '' $ac_executable_extensions; do
1894  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895    ac_cv_prog_ac_ct_CC="$ac_prog"
1896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897    break 2
1898  fi
1899done
1900done
1901
1902fi
1903fi
1904ac_ct_CC=$ac_cv_prog_ac_ct_CC
1905if test -n "$ac_ct_CC"; then
1906  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1907echo "${ECHO_T}$ac_ct_CC" >&6
1908else
1909  echo "$as_me:$LINENO: result: no" >&5
1910echo "${ECHO_T}no" >&6
1911fi
1912
1913  test -n "$ac_ct_CC" && break
1914done
1915
1916  CC=$ac_ct_CC
1917fi
1918
1919
1920test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1921See \`config.log' for more details." >&5
1922echo "$as_me: error: no acceptable C compiler found in \$PATH
1923See \`config.log' for more details." >&2;}
1924   { (exit 1); exit 1; }; }
1925
1926# Provide some information about the compiler.
1927echo "$as_me:$LINENO:" \
1928     "checking for C compiler version" >&5
1929ac_compiler=`set X $ac_compile; echo $2`
1930{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1931  (eval $ac_compiler --version </dev/null >&5) 2>&5
1932  ac_status=$?
1933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934  (exit $ac_status); }
1935{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1936  (eval $ac_compiler -v </dev/null >&5) 2>&5
1937  ac_status=$?
1938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939  (exit $ac_status); }
1940{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1941  (eval $ac_compiler -V </dev/null >&5) 2>&5
1942  ac_status=$?
1943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944  (exit $ac_status); }
1945
1946cat >conftest.$ac_ext <<_ACEOF
1947/* confdefs.h.  */
1948_ACEOF
1949cat confdefs.h >>conftest.$ac_ext
1950cat >>conftest.$ac_ext <<_ACEOF
1951/* end confdefs.h.  */
1952
1953int
1954main ()
1955{
1956
1957  ;
1958  return 0;
1959}
1960_ACEOF
1961ac_clean_files_save=$ac_clean_files
1962ac_clean_files="$ac_clean_files a.out a.exe b.out"
1963# Try to create an executable without -o first, disregard a.out.
1964# It will help us diagnose broken compilers, and finding out an intuition
1965# of exeext.
1966echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1967echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1968ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970  (eval $ac_link_default) 2>&5
1971  ac_status=$?
1972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973  (exit $ac_status); }; then
1974  # Find the output, starting from the most likely.  This scheme is
1975# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976# resort.
1977
1978# Be careful to initialize this variable, since it used to be cached.
1979# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1980ac_cv_exeext=
1981# b.out is created by i960 compilers.
1982for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1983do
1984  test -f "$ac_file" || continue
1985  case $ac_file in
1986    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1987        ;;
1988    conftest.$ac_ext )
1989        # This is the source file.
1990        ;;
1991    [ab].out )
1992        # We found the default executable, but exeext='' is most
1993        # certainly right.
1994        break;;
1995    *.* )
1996        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1997        # FIXME: I believe we export ac_cv_exeext for Libtool,
1998        # but it would be cool to find out if it's true.  Does anybody
1999        # maintain Libtool? --akim.
2000        export ac_cv_exeext
2001        break;;
2002    * )
2003        break;;
2004  esac
2005done
2006else
2007  echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2011See \`config.log' for more details." >&5
2012echo "$as_me: error: C compiler cannot create executables
2013See \`config.log' for more details." >&2;}
2014   { (exit 77); exit 77; }; }
2015fi
2016
2017ac_exeext=$ac_cv_exeext
2018echo "$as_me:$LINENO: result: $ac_file" >&5
2019echo "${ECHO_T}$ac_file" >&6
2020
2021# Check the compiler produces executables we can run.  If not, either
2022# the compiler is broken, or we cross compile.
2023echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2024echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2025# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2026# If not cross compiling, check that we can run a simple program.
2027if test "$cross_compiling" != yes; then
2028  if { ac_try='./$ac_file'
2029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030  (eval $ac_try) 2>&5
2031  ac_status=$?
2032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033  (exit $ac_status); }; }; then
2034    cross_compiling=no
2035  else
2036    if test "$cross_compiling" = maybe; then
2037        cross_compiling=yes
2038    else
2039        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2040If you meant to cross compile, use \`--host'.
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: cannot run C compiled programs.
2043If you meant to cross compile, use \`--host'.
2044See \`config.log' for more details." >&2;}
2045   { (exit 1); exit 1; }; }
2046    fi
2047  fi
2048fi
2049echo "$as_me:$LINENO: result: yes" >&5
2050echo "${ECHO_T}yes" >&6
2051
2052rm -f a.out a.exe conftest$ac_cv_exeext b.out
2053ac_clean_files=$ac_clean_files_save
2054# Check the compiler produces executables we can run.  If not, either
2055# the compiler is broken, or we cross compile.
2056echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2057echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2058echo "$as_me:$LINENO: result: $cross_compiling" >&5
2059echo "${ECHO_T}$cross_compiling" >&6
2060
2061echo "$as_me:$LINENO: checking for suffix of executables" >&5
2062echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2064  (eval $ac_link) 2>&5
2065  ac_status=$?
2066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067  (exit $ac_status); }; then
2068  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2069# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2070# work properly (i.e., refer to `conftest.exe'), while it won't with
2071# `rm'.
2072for ac_file in conftest.exe conftest conftest.*; do
2073  test -f "$ac_file" || continue
2074  case $ac_file in
2075    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2076    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2077          export ac_cv_exeext
2078          break;;
2079    * ) break;;
2080  esac
2081done
2082else
2083  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2084See \`config.log' for more details." >&5
2085echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2086See \`config.log' for more details." >&2;}
2087   { (exit 1); exit 1; }; }
2088fi
2089
2090rm -f conftest$ac_cv_exeext
2091echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2092echo "${ECHO_T}$ac_cv_exeext" >&6
2093
2094rm -f conftest.$ac_ext
2095EXEEXT=$ac_cv_exeext
2096ac_exeext=$EXEEXT
2097echo "$as_me:$LINENO: checking for suffix of object files" >&5
2098echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2099if test "${ac_cv_objext+set}" = set; then
2100  echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102  cat >conftest.$ac_ext <<_ACEOF
2103/* confdefs.h.  */
2104_ACEOF
2105cat confdefs.h >>conftest.$ac_ext
2106cat >>conftest.$ac_ext <<_ACEOF
2107/* end confdefs.h.  */
2108
2109int
2110main ()
2111{
2112
2113  ;
2114  return 0;
2115}
2116_ACEOF
2117rm -f conftest.o conftest.obj
2118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2119  (eval $ac_compile) 2>&5
2120  ac_status=$?
2121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122  (exit $ac_status); }; then
2123  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2124  case $ac_file in
2125    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2126    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2127       break;;
2128  esac
2129done
2130else
2131  echo "$as_me: failed program was:" >&5
2132sed 's/^/| /' conftest.$ac_ext >&5
2133
2134{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2135See \`config.log' for more details." >&5
2136echo "$as_me: error: cannot compute suffix of object files: cannot compile
2137See \`config.log' for more details." >&2;}
2138   { (exit 1); exit 1; }; }
2139fi
2140
2141rm -f conftest.$ac_cv_objext conftest.$ac_ext
2142fi
2143echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2144echo "${ECHO_T}$ac_cv_objext" >&6
2145OBJEXT=$ac_cv_objext
2146ac_objext=$OBJEXT
2147echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2148echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2149if test "${ac_cv_c_compiler_gnu+set}" = set; then
2150  echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152  cat >conftest.$ac_ext <<_ACEOF
2153/* confdefs.h.  */
2154_ACEOF
2155cat confdefs.h >>conftest.$ac_ext
2156cat >>conftest.$ac_ext <<_ACEOF
2157/* end confdefs.h.  */
2158
2159int
2160main ()
2161{
2162#ifndef __GNUC__
2163       choke me
2164#endif
2165
2166  ;
2167  return 0;
2168}
2169_ACEOF
2170rm -f conftest.$ac_objext
2171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172  (eval $ac_compile) 2>conftest.er1
2173  ac_status=$?
2174  grep -v '^ *+' conftest.er1 >conftest.err
2175  rm -f conftest.er1
2176  cat conftest.err >&5
2177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178  (exit $ac_status); } &&
2179         { ac_try='test -z "$ac_c_werror_flag"
2180                         || test ! -s conftest.err'
2181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182  (eval $ac_try) 2>&5
2183  ac_status=$?
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); }; } &&
2186         { ac_try='test -s conftest.$ac_objext'
2187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188  (eval $ac_try) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; }; then
2192  ac_compiler_gnu=yes
2193else
2194  echo "$as_me: failed program was:" >&5
2195sed 's/^/| /' conftest.$ac_ext >&5
2196
2197ac_compiler_gnu=no
2198fi
2199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2200ac_cv_c_compiler_gnu=$ac_compiler_gnu
2201
2202fi
2203echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2204echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2205GCC=`test $ac_compiler_gnu = yes && echo yes`
2206ac_test_CFLAGS=${CFLAGS+set}
2207ac_save_CFLAGS=$CFLAGS
2208CFLAGS="-g"
2209echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2210echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2211if test "${ac_cv_prog_cc_g+set}" = set; then
2212  echo $ECHO_N "(cached) $ECHO_C" >&6
2213else
2214  cat >conftest.$ac_ext <<_ACEOF
2215/* confdefs.h.  */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h.  */
2220
2221int
2222main ()
2223{
2224
2225  ;
2226  return 0;
2227}
2228_ACEOF
2229rm -f conftest.$ac_objext
2230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231  (eval $ac_compile) 2>conftest.er1
2232  ac_status=$?
2233  grep -v '^ *+' conftest.er1 >conftest.err
2234  rm -f conftest.er1
2235  cat conftest.err >&5
2236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237  (exit $ac_status); } &&
2238         { ac_try='test -z "$ac_c_werror_flag"
2239                         || test ! -s conftest.err'
2240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241  (eval $ac_try) 2>&5
2242  ac_status=$?
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); }; } &&
2245         { ac_try='test -s conftest.$ac_objext'
2246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247  (eval $ac_try) 2>&5
2248  ac_status=$?
2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250  (exit $ac_status); }; }; then
2251  ac_cv_prog_cc_g=yes
2252else
2253  echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256ac_cv_prog_cc_g=no
2257fi
2258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259fi
2260echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2261echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2262if test "$ac_test_CFLAGS" = set; then
2263  CFLAGS=$ac_save_CFLAGS
2264elif test $ac_cv_prog_cc_g = yes; then
2265  if test "$GCC" = yes; then
2266    CFLAGS="-g -O2"
2267  else
2268    CFLAGS="-g"
2269  fi
2270else
2271  if test "$GCC" = yes; then
2272    CFLAGS="-O2"
2273  else
2274    CFLAGS=
2275  fi
2276fi
2277echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2278echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2279if test "${ac_cv_prog_cc_stdc+set}" = set; then
2280  echo $ECHO_N "(cached) $ECHO_C" >&6
2281else
2282  ac_cv_prog_cc_stdc=no
2283ac_save_CC=$CC
2284cat >conftest.$ac_ext <<_ACEOF
2285/* confdefs.h.  */
2286_ACEOF
2287cat confdefs.h >>conftest.$ac_ext
2288cat >>conftest.$ac_ext <<_ACEOF
2289/* end confdefs.h.  */
2290#include <stdarg.h>
2291#include <stdio.h>
2292#include <sys/types.h>
2293#include <sys/stat.h>
2294/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2295struct buf { int x; };
2296FILE * (*rcsopen) (struct buf *, struct stat *, int);
2297static char *e (p, i)
2298     char **p;
2299     int i;
2300{
2301  return p[i];
2302}
2303static char *f (char * (*g) (char **, int), char **p, ...)
2304{
2305  char *s;
2306  va_list v;
2307  va_start (v,p);
2308  s = g (p, va_arg (v,int));
2309  va_end (v);
2310  return s;
2311}
2312
2313/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2314   function prototypes and stuff, but not '\xHH' hex character constants.
2315   These don't provoke an error unfortunately, instead are silently treated
2316   as 'x'.  The following induces an error, until -std1 is added to get
2317   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2318   array size at least.  It's necessary to write '\x00'==0 to get something
2319   that's true only with -std1.  */
2320int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2321
2322int test (int i, double x);
2323struct s1 {int (*f) (int a);};
2324struct s2 {int (*f) (double a);};
2325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2326int argc;
2327char **argv;
2328int
2329main ()
2330{
2331return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2332  ;
2333  return 0;
2334}
2335_ACEOF
2336# Don't try gcc -ansi; that turns off useful extensions and
2337# breaks some systems' header files.
2338# AIX                   -qlanglvl=ansi
2339# Ultrix and OSF/1      -std1
2340# HP-UX 10.20 and later -Ae
2341# HP-UX older versions  -Aa -D_HPUX_SOURCE
2342# SVR4                  -Xc -D__EXTENSIONS__
2343for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2344do
2345  CC="$ac_save_CC $ac_arg"
2346  rm -f conftest.$ac_objext
2347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348  (eval $ac_compile) 2>conftest.er1
2349  ac_status=$?
2350  grep -v '^ *+' conftest.er1 >conftest.err
2351  rm -f conftest.er1
2352  cat conftest.err >&5
2353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354  (exit $ac_status); } &&
2355         { ac_try='test -z "$ac_c_werror_flag"
2356                         || test ! -s conftest.err'
2357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358  (eval $ac_try) 2>&5
2359  ac_status=$?
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); }; } &&
2362         { ac_try='test -s conftest.$ac_objext'
2363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364  (eval $ac_try) 2>&5
2365  ac_status=$?
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); }; }; then
2368  ac_cv_prog_cc_stdc=$ac_arg
2369break
2370else
2371  echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374fi
2375rm -f conftest.err conftest.$ac_objext
2376done
2377rm -f conftest.$ac_ext conftest.$ac_objext
2378CC=$ac_save_CC
2379
2380fi
2381
2382case "x$ac_cv_prog_cc_stdc" in
2383  x|xno)
2384    echo "$as_me:$LINENO: result: none needed" >&5
2385echo "${ECHO_T}none needed" >&6 ;;
2386  *)
2387    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2388echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2389    CC="$CC $ac_cv_prog_cc_stdc" ;;
2390esac
2391
2392# Some people use a C++ compiler to compile C.  Since we use `exit',
2393# in C++ we need to declare it.  In case someone uses the same compiler
2394# for both compiling C and C++ we need to have the C++ compiler decide
2395# the declaration of exit, since it's the most demanding environment.
2396cat >conftest.$ac_ext <<_ACEOF
2397#ifndef __cplusplus
2398  choke me
2399#endif
2400_ACEOF
2401rm -f conftest.$ac_objext
2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403  (eval $ac_compile) 2>conftest.er1
2404  ac_status=$?
2405  grep -v '^ *+' conftest.er1 >conftest.err
2406  rm -f conftest.er1
2407  cat conftest.err >&5
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); } &&
2410         { ac_try='test -z "$ac_c_werror_flag"
2411                         || test ! -s conftest.err'
2412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413  (eval $ac_try) 2>&5
2414  ac_status=$?
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); }; } &&
2417         { ac_try='test -s conftest.$ac_objext'
2418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419  (eval $ac_try) 2>&5
2420  ac_status=$?
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); }; }; then
2423  for ac_declaration in \
2424   '' \
2425   'extern "C" void std::exit (int) throw (); using std::exit;' \
2426   'extern "C" void std::exit (int); using std::exit;' \
2427   'extern "C" void exit (int) throw ();' \
2428   'extern "C" void exit (int);' \
2429   'void exit (int);'
2430do
2431  cat >conftest.$ac_ext <<_ACEOF
2432/* confdefs.h.  */
2433_ACEOF
2434cat confdefs.h >>conftest.$ac_ext
2435cat >>conftest.$ac_ext <<_ACEOF
2436/* end confdefs.h.  */
2437$ac_declaration
2438#include <stdlib.h>
2439int
2440main ()
2441{
2442exit (42);
2443  ;
2444  return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext
2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449  (eval $ac_compile) 2>conftest.er1
2450  ac_status=$?
2451  grep -v '^ *+' conftest.er1 >conftest.err
2452  rm -f conftest.er1
2453  cat conftest.err >&5
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); } &&
2456         { ac_try='test -z "$ac_c_werror_flag"
2457                         || test ! -s conftest.err'
2458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459  (eval $ac_try) 2>&5
2460  ac_status=$?
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); }; } &&
2463         { ac_try='test -s conftest.$ac_objext'
2464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465  (eval $ac_try) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }; }; then
2469  :
2470else
2471  echo "$as_me: failed program was:" >&5
2472sed 's/^/| /' conftest.$ac_ext >&5
2473
2474continue
2475fi
2476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477  cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h.  */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h.  */
2483$ac_declaration
2484int
2485main ()
2486{
2487exit (42);
2488  ;
2489  return 0;
2490}
2491_ACEOF
2492rm -f conftest.$ac_objext
2493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494  (eval $ac_compile) 2>conftest.er1
2495  ac_status=$?
2496  grep -v '^ *+' conftest.er1 >conftest.err
2497  rm -f conftest.er1
2498  cat conftest.err >&5
2499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500  (exit $ac_status); } &&
2501         { ac_try='test -z "$ac_c_werror_flag"
2502                         || test ! -s conftest.err'
2503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504  (eval $ac_try) 2>&5
2505  ac_status=$?
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); }; } &&
2508         { ac_try='test -s conftest.$ac_objext'
2509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510  (eval $ac_try) 2>&5
2511  ac_status=$?
2512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513  (exit $ac_status); }; }; then
2514  break
2515else
2516  echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5
2518
2519fi
2520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521done
2522rm -f conftest*
2523if test -n "$ac_declaration"; then
2524  echo '#ifdef __cplusplus' >>confdefs.h
2525  echo $ac_declaration      >>confdefs.h
2526  echo '#endif'             >>confdefs.h
2527fi
2528
2529else
2530  echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533fi
2534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2535ac_ext=c
2536ac_cpp='$CPP $CPPFLAGS'
2537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541if test -z "$CC" ; then
2542  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2543echo "$as_me: error: Failed to find a C compiler!" >&2;}
2544   { (exit 1); exit 1; }; }
2545fi
2546# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2547case "$CC" in
2548  cl* | */cl* | CL* | */CL* )
2549    if test "$ac_cv_prog_cc_g" = yes ; then
2550      ac_cv_prog_cc_g=no
2551      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2552echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2553    fi ;;
2554esac
2555CFLAGS="$save_cflags"
2556
2557# Check if a project specific CFLAGS variable has been set
2558if test x$COIN_PRJCT != x; then
2559  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2560  if test x$coin_tmp = xset; then
2561    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2562  fi
2563fi
2564
2565if test x"$CFLAGS" = x; then
2566
2567  coin_add_cflags=
2568  coin_opt_cflags=
2569  coin_dbg_cflags=
2570  coin_warn_cflags=
2571
2572  if test "$GCC" = "yes"; then
2573    case "$CC" in
2574      icc* | */icc*)
2575        ;;
2576      *)
2577        coin_opt_cflags="-O3 -fomit-frame-pointer"
2578        coin_add_cflags="-pipe"
2579        coin_dbg_cflags="-g"
2580        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2581        case $enable_doscompile in
2582          mingw)
2583            CFLAGS="-mno-cygwin"
2584            cat >conftest.$ac_ext <<_ACEOF
2585/* confdefs.h.  */
2586_ACEOF
2587cat confdefs.h >>conftest.$ac_ext
2588cat >>conftest.$ac_ext <<_ACEOF
2589/* end confdefs.h.  */
2590
2591int
2592main ()
2593{
2594int i=0; i++;
2595  ;
2596  return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext conftest$ac_exeext
2600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2601  (eval $ac_link) 2>conftest.er1
2602  ac_status=$?
2603  grep -v '^ *+' conftest.er1 >conftest.err
2604  rm -f conftest.er1
2605  cat conftest.err >&5
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); } &&
2608         { ac_try='test -z "$ac_c_werror_flag"
2609                         || test ! -s conftest.err'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; } &&
2615         { ac_try='test -s conftest$ac_exeext'
2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617  (eval $ac_try) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; }; then
2621  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2622else
2623  echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626fi
2627rm -f conftest.err conftest.$ac_objext \
2628      conftest$ac_exeext conftest.$ac_ext
2629            CFLAGS=
2630          ;;
2631        esac
2632    esac
2633  fi
2634  if test -z "$coin_opt_cflags"; then
2635    case $build in
2636      *-cygwin* | *-mingw*)
2637        case "$CC" in
2638          cl* | */cl* | CL* | */CL*)
2639            coin_opt_cflags='-MT -O2'
2640            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2641            coin_dbg_cflags='-MTd'
2642            ;;
2643        esac
2644        ;;
2645      *-linux-*)
2646        case "$CC" in
2647          icc* | */icc*)
2648            coin_opt_cflags="-O3 -ip"
2649            coin_add_cflags=""
2650            coin_dbg_cflags="-g"
2651            # Check if -i_dynamic is necessary (for new glibc library)
2652            CFLAGS=
2653            cat >conftest.$ac_ext <<_ACEOF
2654/* confdefs.h.  */
2655_ACEOF
2656cat confdefs.h >>conftest.$ac_ext
2657cat >>conftest.$ac_ext <<_ACEOF
2658/* end confdefs.h.  */
2659
2660int
2661main ()
2662{
2663int i=0; i++;
2664  ;
2665  return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext conftest$ac_exeext
2669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670  (eval $ac_link) 2>conftest.er1
2671  ac_status=$?
2672  grep -v '^ *+' conftest.er1 >conftest.err
2673  rm -f conftest.er1
2674  cat conftest.err >&5
2675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); } &&
2677         { ac_try='test -z "$ac_c_werror_flag"
2678                         || test ! -s conftest.err'
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); }; } &&
2684         { ac_try='test -s conftest$ac_exeext'
2685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686  (eval $ac_try) 2>&5
2687  ac_status=$?
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); }; }; then
2690  :
2691else
2692  echo "$as_me: failed program was:" >&5
2693sed 's/^/| /' conftest.$ac_ext >&5
2694
2695coin_add_cflags="-i_dynamic $coin_add_cflags"
2696fi
2697rm -f conftest.err conftest.$ac_objext \
2698      conftest$ac_exeext conftest.$ac_ext
2699            ;;
2700          pgcc* | */pgcc*)
2701            coin_opt_cflags="-fast"
2702            coin_add_cflags="-Kieee -pc 64"
2703            coin_dbg_cflags="-g"
2704            ;;
2705        esac
2706        ;;
2707      *-ibm-*)
2708        case "$CC" in
2709          xlc* | */xlc* | mpxlc* | */mpxlc*)
2710            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2711            coin_add_cflags="-bmaxdata:0x80000000"
2712            coin_dbg_cflags="-g"
2713          ;;
2714        esac
2715        ;;
2716      *-hp-*)
2717        coin_opt_cflags="-O"
2718        coin_add_cflags="-Ae"
2719        coin_dbg_cflags="-g"
2720        ;;
2721      *-sun-*)
2722        coin_opt_cflags="-xO4"
2723        coin_dbg_cflags="-g"
2724        ;;
2725      *-sgi-*)
2726        coin_opt_cflags="-O -OPT:Olimit=0"
2727        coin_dbg_cflags="-g"
2728        ;;
2729    esac
2730  fi
2731
2732  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2733    coin_dbg_cflags="-g"
2734  fi
2735
2736  if test -z "$coin_opt_cflags"; then
2737    # Try if -O option works if nothing else is set
2738    CFLAGS="-O"
2739    cat >conftest.$ac_ext <<_ACEOF
2740/* confdefs.h.  */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
2744/* end confdefs.h.  */
2745
2746int
2747main ()
2748{
2749int i=0; i++;
2750  ;
2751  return 0;
2752}
2753_ACEOF
2754rm -f conftest.$ac_objext conftest$ac_exeext
2755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2756  (eval $ac_link) 2>conftest.er1
2757  ac_status=$?
2758  grep -v '^ *+' conftest.er1 >conftest.err
2759  rm -f conftest.er1
2760  cat conftest.err >&5
2761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762  (exit $ac_status); } &&
2763         { ac_try='test -z "$ac_c_werror_flag"
2764                         || test ! -s conftest.err'
2765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766  (eval $ac_try) 2>&5
2767  ac_status=$?
2768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769  (exit $ac_status); }; } &&
2770         { ac_try='test -s conftest$ac_exeext'
2771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772  (eval $ac_try) 2>&5
2773  ac_status=$?
2774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775  (exit $ac_status); }; }; then
2776  coin_opt_cflags="-O"
2777else
2778  echo "$as_me: failed program was:" >&5
2779sed 's/^/| /' conftest.$ac_ext >&5
2780
2781fi
2782rm -f conftest.err conftest.$ac_objext \
2783      conftest$ac_exeext conftest.$ac_ext
2784  fi
2785
2786  # if PM doesn't want the warning messages, take them out
2787  if test x"$coin_skip_warn_cflags" = xyes; then
2788    coin_warn_cflags=
2789  fi
2790
2791  if test x${DBG_CFLAGS+set} != xset; then
2792    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2793  fi
2794  if test x${OPT_CFLAGS+set} != xset; then
2795    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2796  fi
2797
2798  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2799  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2800
2801  if test "$coin_debug_compile" = "true"; then
2802    CFLAGS="$DBG_CFLAGS"
2803  else
2804    CFLAGS="$OPT_CFLAGS"
2805  fi
2806else
2807  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2808  if test x${DBG_CFLAGS+set} != xset; then
2809    DBG_CFLAGS="$CFLAGS"
2810  fi
2811  if test x${OPT_CFLAGS+set} != xset; then
2812    OPT_CFLAGS="$CFLAGS"
2813  fi
2814fi
2815
2816# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2817
2818case "$CFLAGS" in
2819  *-mno-cygwin*)
2820    if test x${CPPFLAGS+set} != xset ; then
2821      CPPFLAGS="-mno-cygwin"
2822    else
2823      case "$CPPFLAGS" in
2824        *-mno-cygwin*)
2825          ;;
2826        *)
2827          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2828          ;;
2829      esac
2830    fi ;;
2831esac
2832
2833# Try if CFLAGS works
2834save_CFLAGS="$CFLAGS"
2835cat >conftest.$ac_ext <<_ACEOF
2836/* confdefs.h.  */
2837_ACEOF
2838cat confdefs.h >>conftest.$ac_ext
2839cat >>conftest.$ac_ext <<_ACEOF
2840/* end confdefs.h.  */
2841
2842int
2843main ()
2844{
2845int i=0; i++;
2846  ;
2847  return 0;
2848}
2849_ACEOF
2850rm -f conftest.$ac_objext conftest$ac_exeext
2851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2852  (eval $ac_link) 2>conftest.er1
2853  ac_status=$?
2854  grep -v '^ *+' conftest.er1 >conftest.err
2855  rm -f conftest.er1
2856  cat conftest.err >&5
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); } &&
2859         { ac_try='test -z "$ac_c_werror_flag"
2860                         || test ! -s conftest.err'
2861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862  (eval $ac_try) 2>&5
2863  ac_status=$?
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); }; } &&
2866         { ac_try='test -s conftest$ac_exeext'
2867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868  (eval $ac_try) 2>&5
2869  ac_status=$?
2870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871  (exit $ac_status); }; }; then
2872  :
2873else
2874  echo "$as_me: failed program was:" >&5
2875sed 's/^/| /' conftest.$ac_ext >&5
2876
2877CFLAGS=
2878fi
2879rm -f conftest.err conftest.$ac_objext \
2880      conftest$ac_exeext conftest.$ac_ext
2881if test -z "$CFLAGS"; then
2882  { 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
2883echo "$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;}
2884  CFLAGS='-O'
2885  cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h.  */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h.  */
2891
2892int
2893main ()
2894{
2895int i=0; i++;
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900rm -f conftest.$ac_objext conftest$ac_exeext
2901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2902  (eval $ac_link) 2>conftest.er1
2903  ac_status=$?
2904  grep -v '^ *+' conftest.er1 >conftest.err
2905  rm -f conftest.er1
2906  cat conftest.err >&5
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); } &&
2909         { ac_try='test -z "$ac_c_werror_flag"
2910                         || test ! -s conftest.err'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; } &&
2916         { ac_try='test -s conftest$ac_exeext'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; }; then
2922  :
2923else
2924  echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927CFLAGS=
2928fi
2929rm -f conftest.err conftest.$ac_objext \
2930      conftest$ac_exeext conftest.$ac_ext
2931  if test -z "$CFLAGS"; then
2932    { 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
2933echo "$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;}
2934  fi
2935fi
2936
2937{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2938echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2939
2940
2941if test x"$MPICC" = x; then :; else
2942  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2943echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2944  CC="$MPICC"
2945fi
2946
2947# Correct ADDLIBS initialization if we are using the MS compiler
2948case "$CC" in
2949  cl* | */cl* | CL* | */CL*)
2950    ADDLIBS=
2951    case $build in
2952  *-mingw*)
2953    if test "${LD+set}" = set; then :; else
2954      LD=link
2955    fi
2956    ;;
2957 esac
2958 case $enable_doscompile in
2959   msvc)
2960     if test "x${LD+set}" = xset; then :; else
2961       LD=link
2962     fi
2963     ;;
2964 esac
2965
2966    ;;
2967esac
2968
2969ac_ext=c
2970ac_cpp='$CPP $CPPFLAGS'
2971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974
2975
2976
2977 #Let's try if that overcomes configuration problem with VC++ 6.0
2978
2979ac_ext=cc
2980ac_cpp='$CXXCPP $CPPFLAGS'
2981ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2984
2985
2986
2987
2988
2989
2990
2991coin_has_cxx=yes
2992
2993save_cxxflags="$CXXFLAGS"
2994# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
2995case $build in
2996  *-cygwin* | *-mingw*)
2997             if test "$enable_doscompile" = msvc ; then
2998               comps="cl"
2999             else
3000               comps="g++ cl"
3001             fi ;;
3002  sparc-sun-solaris*)
3003             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3004  *-darwin*) comps="g++ c++ CC" ;;
3005          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3006esac
3007
3008# We delete the cached value, since the test might not have been
3009# performed with our choice of compilers earlier
3010$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3011# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3012ac_ext=cc
3013ac_cpp='$CXXCPP $CPPFLAGS'
3014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3017if test -n "$ac_tool_prefix"; then
3018  for ac_prog in $CCC $comps
3019  do
3020    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3022echo "$as_me:$LINENO: checking for $ac_word" >&5
3023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3024if test "${ac_cv_prog_CXX+set}" = set; then
3025  echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027  if test -n "$CXX"; then
3028  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3029else
3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031for as_dir in $PATH
3032do
3033  IFS=$as_save_IFS
3034  test -z "$as_dir" && as_dir=.
3035  for ac_exec_ext in '' $ac_executable_extensions; do
3036  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039    break 2
3040  fi
3041done
3042done
3043
3044fi
3045fi
3046CXX=$ac_cv_prog_CXX
3047if test -n "$CXX"; then
3048  echo "$as_me:$LINENO: result: $CXX" >&5
3049echo "${ECHO_T}$CXX" >&6
3050else
3051  echo "$as_me:$LINENO: result: no" >&5
3052echo "${ECHO_T}no" >&6
3053fi
3054
3055    test -n "$CXX" && break
3056  done
3057fi
3058if test -z "$CXX"; then
3059  ac_ct_CXX=$CXX
3060  for ac_prog in $CCC $comps
3061do
3062  # Extract the first word of "$ac_prog", so it can be a program name with args.
3063set dummy $ac_prog; ac_word=$2
3064echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3067  echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
3069  if test -n "$ac_ct_CXX"; then
3070  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3071else
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075  IFS=$as_save_IFS
3076  test -z "$as_dir" && as_dir=.
3077  for ac_exec_ext in '' $ac_executable_extensions; do
3078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079    ac_cv_prog_ac_ct_CXX="$ac_prog"
3080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081    break 2
3082  fi
3083done
3084done
3085
3086fi
3087fi
3088ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3089if test -n "$ac_ct_CXX"; then
3090  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3091echo "${ECHO_T}$ac_ct_CXX" >&6
3092else
3093  echo "$as_me:$LINENO: result: no" >&5
3094echo "${ECHO_T}no" >&6
3095fi
3096
3097  test -n "$ac_ct_CXX" && break
3098done
3099test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3100
3101  CXX=$ac_ct_CXX
3102fi
3103
3104
3105# Provide some information about the compiler.
3106echo "$as_me:$LINENO:" \
3107     "checking for C++ compiler version" >&5
3108ac_compiler=`set X $ac_compile; echo $2`
3109{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3110  (eval $ac_compiler --version </dev/null >&5) 2>&5
3111  ac_status=$?
3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); }
3114{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3115  (eval $ac_compiler -v </dev/null >&5) 2>&5
3116  ac_status=$?
3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }
3119{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3120  (eval $ac_compiler -V </dev/null >&5) 2>&5
3121  ac_status=$?
3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123  (exit $ac_status); }
3124
3125echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3126echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3127if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3128  echo $ECHO_N "(cached) $ECHO_C" >&6
3129else
3130  cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h.  */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h.  */
3136
3137int
3138main ()
3139{
3140#ifndef __GNUC__
3141       choke me
3142#endif
3143
3144  ;
3145  return 0;
3146}
3147_ACEOF
3148rm -f conftest.$ac_objext
3149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150  (eval $ac_compile) 2>conftest.er1
3151  ac_status=$?
3152  grep -v '^ *+' conftest.er1 >conftest.err
3153  rm -f conftest.er1
3154  cat conftest.err >&5
3155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); } &&
3157         { ac_try='test -z "$ac_cxx_werror_flag"
3158                         || test ! -s conftest.err'
3159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160  (eval $ac_try) 2>&5
3161  ac_status=$?
3162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); }; } &&
3164         { ac_try='test -s conftest.$ac_objext'
3165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166  (eval $ac_try) 2>&5
3167  ac_status=$?
3168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169  (exit $ac_status); }; }; then
3170  ac_compiler_gnu=yes
3171else
3172  echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175ac_compiler_gnu=no
3176fi
3177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3178ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3179
3180fi
3181echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3182echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3183GXX=`test $ac_compiler_gnu = yes && echo yes`
3184ac_test_CXXFLAGS=${CXXFLAGS+set}
3185ac_save_CXXFLAGS=$CXXFLAGS
3186CXXFLAGS="-g"
3187echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3188echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3189if test "${ac_cv_prog_cxx_g+set}" = set; then
3190  echo $ECHO_N "(cached) $ECHO_C" >&6
3191else
3192  cat >conftest.$ac_ext <<_ACEOF
3193/* confdefs.h.  */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h.  */
3198
3199int
3200main ()
3201{
3202
3203  ;
3204  return 0;
3205}
3206_ACEOF
3207rm -f conftest.$ac_objext
3208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209  (eval $ac_compile) 2>conftest.er1
3210  ac_status=$?
3211  grep -v '^ *+' conftest.er1 >conftest.err
3212  rm -f conftest.er1
3213  cat conftest.err >&5
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); } &&
3216         { ac_try='test -z "$ac_cxx_werror_flag"
3217                         || test ! -s conftest.err'
3218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219  (eval $ac_try) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; } &&
3223         { ac_try='test -s conftest.$ac_objext'
3224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225  (eval $ac_try) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; }; then
3229  ac_cv_prog_cxx_g=yes
3230else
3231  echo "$as_me: failed program was:" >&5
3232sed 's/^/| /' conftest.$ac_ext >&5
3233
3234ac_cv_prog_cxx_g=no
3235fi
3236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3237fi
3238echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3239echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3240if test "$ac_test_CXXFLAGS" = set; then
3241  CXXFLAGS=$ac_save_CXXFLAGS
3242elif test $ac_cv_prog_cxx_g = yes; then
3243  if test "$GXX" = yes; then
3244    CXXFLAGS="-g -O2"
3245  else
3246    CXXFLAGS="-g"
3247  fi
3248else
3249  if test "$GXX" = yes; then
3250    CXXFLAGS="-O2"
3251  else
3252    CXXFLAGS=
3253  fi
3254fi
3255for ac_declaration in \
3256   '' \
3257   'extern "C" void std::exit (int) throw (); using std::exit;' \
3258   'extern "C" void std::exit (int); using std::exit;' \
3259   'extern "C" void exit (int) throw ();' \
3260   'extern "C" void exit (int);' \
3261   'void exit (int);'
3262do
3263  cat >conftest.$ac_ext <<_ACEOF
3264/* confdefs.h.  */
3265_ACEOF
3266cat confdefs.h >>conftest.$ac_ext
3267cat >>conftest.$ac_ext <<_ACEOF
3268/* end confdefs.h.  */
3269$ac_declaration
3270#include <stdlib.h>
3271int
3272main ()
3273{
3274exit (42);
3275  ;
3276  return 0;
3277}
3278_ACEOF
3279rm -f conftest.$ac_objext
3280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281  (eval $ac_compile) 2>conftest.er1
3282  ac_status=$?
3283  grep -v '^ *+' conftest.er1 >conftest.err
3284  rm -f conftest.er1
3285  cat conftest.err >&5
3286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); } &&
3288         { ac_try='test -z "$ac_cxx_werror_flag"
3289                         || test ! -s conftest.err'
3290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291  (eval $ac_try) 2>&5
3292  ac_status=$?
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); }; } &&
3295         { ac_try='test -s conftest.$ac_objext'
3296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297  (eval $ac_try) 2>&5
3298  ac_status=$?
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); }; }; then
3301  :
3302else
3303  echo "$as_me: failed program was:" >&5
3304sed 's/^/| /' conftest.$ac_ext >&5
3305
3306continue
3307fi
3308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3309  cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h.  */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h.  */
3315$ac_declaration
3316int
3317main ()
3318{
3319exit (42);
3320  ;
3321  return 0;
3322}
3323_ACEOF
3324rm -f conftest.$ac_objext
3325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326  (eval $ac_compile) 2>conftest.er1
3327  ac_status=$?
3328  grep -v '^ *+' conftest.er1 >conftest.err
3329  rm -f conftest.er1
3330  cat conftest.err >&5
3331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332  (exit $ac_status); } &&
3333         { ac_try='test -z "$ac_cxx_werror_flag"
3334                         || test ! -s conftest.err'
3335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336  (eval $ac_try) 2>&5
3337  ac_status=$?
3338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339  (exit $ac_status); }; } &&
3340         { ac_try='test -s conftest.$ac_objext'
3341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342  (eval $ac_try) 2>&5
3343  ac_status=$?
3344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345  (exit $ac_status); }; }; then
3346  break
3347else
3348  echo "$as_me: failed program was:" >&5
3349sed 's/^/| /' conftest.$ac_ext >&5
3350
3351fi
3352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3353done
3354rm -f conftest*
3355if test -n "$ac_declaration"; then
3356  echo '#ifdef __cplusplus' >>confdefs.h
3357  echo $ac_declaration      >>confdefs.h
3358  echo '#endif'             >>confdefs.h
3359fi
3360
3361ac_ext=cc
3362ac_cpp='$CXXCPP $CPPFLAGS'
3363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3366
3367if test -z "$CXX" ; then
3368  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
3369echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
3370   { (exit 1); exit 1; }; }
3371fi
3372
3373# It seems that we need to cleanup something here for the Windows
3374case "$CXX" in
3375  cl* | */cl* | CL* | */CL* )
3376    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3377    mv confdefs.hh confdefs.h
3378    ;;
3379esac
3380
3381# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3382case "$CXX" in
3383  cl* | */cl* | CL* | */CL* )
3384    if test "$ac_cv_prog_cxx_g" = yes ; then
3385      ac_cv_prog_cxx_g=no
3386      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3387echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3388    fi ;;
3389esac
3390CXXFLAGS="$save_cxxflags"
3391
3392# Check if a project specific CXXFLAGS variable has been set
3393if test x$COIN_PRJCT != x; then
3394  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3395  if test x$coin_tmp = xset; then
3396    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3397  fi
3398fi
3399
3400if test x"$CXXFLAGS" = x; then
3401
3402# ToDo decide whether we want -DNDEBUG for optimization
3403  coin_add_cxxflags=
3404  coin_opt_cxxflags=
3405  coin_dbg_cxxflags=
3406  coin_warn_cxxflags=
3407
3408  if test "$GXX" = "yes"; then
3409    case "$CXX" in
3410      icpc* | */icpc*)
3411        ;;
3412      *)
3413# ToDo decide about unroll-loops
3414        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3415        coin_add_cxxflags="-pipe"
3416        coin_dbg_cxxflags="-g"
3417        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3418        case $enable_doscompile in
3419          mingw)
3420            CXXFLAGS="-mno-cygwin"
3421            cat >conftest.$ac_ext <<_ACEOF
3422/* confdefs.h.  */
3423_ACEOF
3424cat confdefs.h >>conftest.$ac_ext
3425cat >>conftest.$ac_ext <<_ACEOF
3426/* end confdefs.h.  */
3427
3428int
3429main ()
3430{
3431int i=0; i++;
3432  ;
3433  return 0;
3434}
3435_ACEOF
3436rm -f conftest.$ac_objext conftest$ac_exeext
3437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438  (eval $ac_link) 2>conftest.er1
3439  ac_status=$?
3440  grep -v '^ *+' conftest.er1 >conftest.err
3441  rm -f conftest.er1
3442  cat conftest.err >&5
3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444  (exit $ac_status); } &&
3445         { ac_try='test -z "$ac_cxx_werror_flag"
3446                         || test ! -s conftest.err'
3447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448  (eval $ac_try) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }; } &&
3452         { ac_try='test -s conftest$ac_exeext'
3453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454  (eval $ac_try) 2>&5
3455  ac_status=$?
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); }; }; then
3458  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3459else
3460  echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463fi
3464rm -f conftest.err conftest.$ac_objext \
3465      conftest$ac_exeext conftest.$ac_ext
3466            CXXFLAGS=
3467            ;;
3468        esac
3469    esac
3470  fi
3471
3472# Note that we do not need to cover GCC in the following tests.
3473
3474  if test -z "$coin_opt_cxxflags"; then
3475    case $build in
3476      *-cygwin* | *-mingw*)
3477        case "$CXX" in
3478          cl* | */cl* | CL* | */CL*)
3479            # The MT and MTd options are mutually exclusive
3480            coin_opt_cxxflags='-MT -O2'
3481            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3482            coin_dbg_cxxflags='-MTd'
3483            ;;
3484        esac
3485        ;;
3486      *-linux-*)
3487        case "$CXX" in
3488          icpc* | */icpc*)
3489            coin_opt_cxxflags="-O3 -ip"
3490            coin_add_cxxflags=""
3491            coin_dbg_cxxflags="-g"
3492            # Check if -i_dynamic is necessary (for new glibc library)
3493            CXXFLAGS=
3494            cat >conftest.$ac_ext <<_ACEOF
3495/* confdefs.h.  */
3496_ACEOF
3497cat confdefs.h >>conftest.$ac_ext
3498cat >>conftest.$ac_ext <<_ACEOF
3499/* end confdefs.h.  */
3500
3501int
3502main ()
3503{
3504int i=0; i++;
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509rm -f conftest.$ac_objext conftest$ac_exeext
3510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3511  (eval $ac_link) 2>conftest.er1
3512  ac_status=$?
3513  grep -v '^ *+' conftest.er1 >conftest.err
3514  rm -f conftest.er1
3515  cat conftest.err >&5
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); } &&
3518         { ac_try='test -z "$ac_cxx_werror_flag"
3519                         || test ! -s conftest.err'
3520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521  (eval $ac_try) 2>&5
3522  ac_status=$?
3523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524  (exit $ac_status); }; } &&
3525         { ac_try='test -s conftest$ac_exeext'
3526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527  (eval $ac_try) 2>&5
3528  ac_status=$?
3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); }; }; then
3531  :
3532else
3533  echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3537fi
3538rm -f conftest.err conftest.$ac_objext \
3539      conftest$ac_exeext conftest.$ac_ext
3540            ;;
3541          pgCC* | */pgCC*)
3542            coin_opt_cxxflags="-fast"
3543            coin_add_cxxflags="-Kieee -pc 64"
3544            coin_dbg_cxxflags="-g"
3545            ;;
3546        esac
3547        ;;
3548      *-ibm-*)
3549        case "$CXX" in
3550          xlC* | */xlC* | mpxlC* | */mpxlC*)
3551            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3552            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
3553            coin_dbg_cxxflags="-g"
3554            ;;
3555        esac
3556        ;;
3557      *-hp-*)
3558        case "$CXX" in
3559          aCC* | */aCC* )
3560            coin_opt_cxxflags="-O"
3561            coin_add_cxxflags="-AA"
3562            coin_dbg_cxxflags="-g"
3563            ;;
3564        esac
3565        ;;
3566      *-sun-*)
3567          coin_opt_cxxflags="-O4"
3568          coin_dbg_cxxflags="-g"
3569        ;;
3570    esac
3571  fi
3572
3573# Generic flag settings. If these don't work, add a case above.
3574
3575  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3576    coin_dbg_cxxflags="-g"
3577  fi
3578
3579  if test -z "$coin_opt_cxxflags"; then
3580    # Try if -O option works if nothing else is set
3581    CXXFLAGS=-O
3582    cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588
3589int
3590main ()
3591{
3592int i=0; i++;
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597rm -f conftest.$ac_objext conftest$ac_exeext
3598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3599  (eval $ac_link) 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } &&
3606         { ac_try='test -z "$ac_cxx_werror_flag"
3607                         || test ! -s conftest.err'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; } &&
3613         { ac_try='test -s conftest$ac_exeext'
3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615  (eval $ac_try) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); }; }; then
3619  coin_opt_cxxflags="-O"
3620else
3621  echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624fi
3625rm -f conftest.err conftest.$ac_objext \
3626      conftest$ac_exeext conftest.$ac_ext
3627  fi
3628
3629  # if PM doesn't want the warning messages, take them out
3630  if test x"$coin_skip_warn_cxxflags" = xyes; then
3631    coin_warn_cxxflags=
3632  fi
3633
3634# Do final setup of flags based on values determined above.
3635
3636  if test x${DBG_CXXFLAGS+set} != xset; then
3637    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3638  fi
3639  if test x${OPT_CXXFLAGS+set} != xset; then
3640    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3641  fi
3642
3643  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3644  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3645
3646  if test "$coin_debug_compile" = "true"; then
3647    CXXFLAGS="$DBG_CXXFLAGS"
3648  else
3649    CXXFLAGS="$OPT_CXXFLAGS"
3650  fi
3651
3652# Handle the case where CXXFLAGS was set externally.
3653else
3654  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3655  if test x${DBG_CXXFLAGS+set} != xset; then
3656    DBG_CXXFLAGS="$CXXFLAGS"
3657  fi
3658  if test x${OPT_CXXFLAGS+set} != xset; then
3659    OPT_CXXFLAGS="$CXXFLAGS"
3660  fi
3661fi
3662
3663# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3664
3665case "$CXXFLAGS" in
3666  *-mno-cygwin*)
3667    if test x${CPPFLAGS+set} != xset ; then
3668      CPPFLAGS="-mno-cygwin"
3669    else
3670      case "$CPPFLAGS" in
3671        *-mno-cygwin*)
3672          ;;
3673        *)
3674          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3675          ;;
3676      esac
3677    fi ;;
3678esac
3679
3680# Try if CXXFLAGS works
3681save_CXXFLAGS="$CXXFLAGS"
3682cat >conftest.$ac_ext <<_ACEOF
3683/* confdefs.h.  */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h.  */
3688
3689int
3690main ()
3691{
3692int i=0; i++;
3693  ;
3694  return 0;
3695}
3696_ACEOF
3697rm -f conftest.$ac_objext conftest$ac_exeext
3698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3699  (eval $ac_link) 2>conftest.er1
3700  ac_status=$?
3701  grep -v '^ *+' conftest.er1 >conftest.err
3702  rm -f conftest.er1
3703  cat conftest.err >&5
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); } &&
3706         { ac_try='test -z "$ac_cxx_werror_flag"
3707                         || test ! -s conftest.err'
3708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709  (eval $ac_try) 2>&5
3710  ac_status=$?
3711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712  (exit $ac_status); }; } &&
3713         { ac_try='test -s conftest$ac_exeext'
3714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715  (eval $ac_try) 2>&5
3716  ac_status=$?
3717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718  (exit $ac_status); }; }; then
3719  :
3720else
3721  echo "$as_me: failed program was:" >&5
3722sed 's/^/| /' conftest.$ac_ext >&5
3723
3724CXXFLAGS=
3725fi
3726rm -f conftest.err conftest.$ac_objext \
3727      conftest$ac_exeext conftest.$ac_ext
3728if test -z "$CXXFLAGS"; then
3729  { 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
3730echo "$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;}
3731  CXXFLAGS='-O'
3732  cat >conftest.$ac_ext <<_ACEOF
3733/* confdefs.h.  */
3734_ACEOF
3735cat confdefs.h >>conftest.$ac_ext
3736cat >>conftest.$ac_ext <<_ACEOF
3737/* end confdefs.h.  */
3738
3739int
3740main ()
3741{
3742int i=0; i++;
3743  ;
3744  return 0;
3745}
3746_ACEOF
3747rm -f conftest.$ac_objext conftest$ac_exeext
3748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749  (eval $ac_link) 2>conftest.er1
3750  ac_status=$?
3751  grep -v '^ *+' conftest.er1 >conftest.err
3752  rm -f conftest.er1
3753  cat conftest.err >&5
3754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755  (exit $ac_status); } &&
3756         { ac_try='test -z "$ac_cxx_werror_flag"
3757                         || test ! -s conftest.err'
3758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759  (eval $ac_try) 2>&5
3760  ac_status=$?
3761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762  (exit $ac_status); }; } &&
3763         { ac_try='test -s conftest$ac_exeext'
3764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765  (eval $ac_try) 2>&5
3766  ac_status=$?
3767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768  (exit $ac_status); }; }; then
3769  :
3770else
3771  echo "$as_me: failed program was:" >&5
3772sed 's/^/| /' conftest.$ac_ext >&5
3773
3774CXXFLAGS=
3775fi
3776rm -f conftest.err conftest.$ac_objext \
3777      conftest$ac_exeext conftest.$ac_ext
3778  if test -z "$CXXFLAGS"; then
3779    { 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
3780echo "$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;}
3781  fi
3782fi
3783
3784{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3785echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3786
3787
3788if test x"$MPICXX" = x; then :; else
3789  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3790echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3791  CXX="$MPICXX"
3792fi
3793
3794case "$CXX" in
3795  cl* | */cl* | CL* | */CL* )
3796    case $build in
3797  *-mingw*)
3798    if test "${LD+set}" = set; then :; else
3799      LD=link
3800    fi
3801    ;;
3802 esac
3803 case $enable_doscompile in
3804   msvc)
3805     if test "x${LD+set}" = xset; then :; else
3806       LD=link
3807     fi
3808     ;;
3809 esac
3810
3811    ;;
3812esac
3813
3814ac_ext=c
3815ac_cpp='$CPP $CPPFLAGS'
3816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819
3820
3821
3822# Initialize automake and libtool
3823{
3824
3825
3826
3827# START
3828
3829# On Cygwin, building DLLs doesn't work
3830case $build in
3831  *-cygwin*)
3832    coin_disable_shared=yes
3833    platform=Cygwin
3834  ;;
3835  *-mingw*)
3836    coin_disable_shared=yes
3837    platform="Msys"
3838#    case "$CXX" in
3839#      cl*)
3840#        coin_disable_shared=yes
3841#        platform="Msys with cl"
3842#    ;;
3843#    esac
3844  ;;
3845esac
3846if test x"$coin_disable_shared" = xyes; then
3847  if test x"$enable_shared" = xyes; then
3848    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3849echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3850  fi
3851  enable_shared=no
3852fi
3853# By default, we only want the shared objects to be compiled
3854# Check whether --enable-static or --disable-static was given.
3855if test "${enable_static+set}" = set; then
3856  enableval="$enable_static"
3857  p=${PACKAGE-default}
3858    case $enableval in
3859    yes) enable_static=yes ;;
3860    no) enable_static=no ;;
3861    *)
3862     enable_static=no
3863      # Look at the argument we got.  We use all the common list separators.
3864      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3865      for pkg in $enableval; do
3866        IFS="$lt_save_ifs"
3867        if test "X$pkg" = "X$p"; then
3868          enable_static=yes
3869        fi
3870      done
3871      IFS="$lt_save_ifs"
3872      ;;
3873    esac
3874else
3875  enable_static=no
3876fi;
3877
3878
3879
3880
3881# Initialize automake
3882echo "$as_me:$LINENO: checking for egrep" >&5
3883echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3884if test "${ac_cv_prog_egrep+set}" = set; then
3885  echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3888    then ac_cv_prog_egrep='grep -E'
3889    else ac_cv_prog_egrep='egrep'
3890    fi
3891fi
3892echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3893echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3894 EGREP=$ac_cv_prog_egrep
3895
3896
3897am__api_version="1.9"
3898# Find a good install program.  We prefer a C program (faster),
3899# so one script is as good as another.  But avoid the broken or
3900# incompatible versions:
3901# SysV /etc/install, /usr/sbin/install
3902# SunOS /usr/etc/install
3903# IRIX /sbin/install
3904# AIX /bin/install
3905# AmigaOS /C/install, which installs bootblocks on floppy discs
3906# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3907# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3908# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3909# OS/2's system install, which has a completely different semantic
3910# ./install, which can be erroneously created by make from ./install.sh.
3911echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3912echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3913if test -z "$INSTALL"; then
3914if test "${ac_cv_path_install+set}" = set; then
3915  echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920  IFS=$as_save_IFS
3921  test -z "$as_dir" && as_dir=.
3922  # Account for people who put trailing slashes in PATH elements.
3923case $as_dir/ in
3924  ./ | .// | /cC/* | \
3925  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3926  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3927  /usr/ucb/* ) ;;
3928  *)
3929    # OSF1 and SCO ODT 3.0 have their own names for install.
3930    # Don't use installbsd from OSF since it installs stuff as root
3931    # by default.
3932    for ac_prog in ginstall scoinst install; do
3933      for ac_exec_ext in '' $ac_executable_extensions; do
3934        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3935          if test $ac_prog = install &&
3936            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3937            # AIX install.  It has an incompatible calling convention.
3938            :
3939          elif test $ac_prog = install &&
3940            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3941            # program-specific install script used by HP pwplus--don't use.
3942            :
3943          else
3944            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3945            break 3
3946          fi
3947        fi
3948      done
3949    done
3950    ;;
3951esac
3952done
3953
3954
3955fi
3956  if test "${ac_cv_path_install+set}" = set; then
3957    INSTALL=$ac_cv_path_install
3958  else
3959    # As a last resort, use the slow shell script.  We don't cache a
3960    # path for INSTALL within a source directory, because that will
3961    # break other packages using the cache if that directory is
3962    # removed, or if the path is relative.
3963    INSTALL=$ac_install_sh
3964  fi
3965fi
3966echo "$as_me:$LINENO: result: $INSTALL" >&5
3967echo "${ECHO_T}$INSTALL" >&6
3968
3969# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3970# It thinks the first close brace ends the variable substitution.
3971test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3972
3973test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3974
3975test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3976
3977echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3978echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3979# Just in case
3980sleep 1
3981echo timestamp > conftest.file
3982# Do `set' in a subshell so we don't clobber the current shell's
3983# arguments.  Must try -L first in case configure is actually a
3984# symlink; some systems play weird games with the mod time of symlinks
3985# (eg FreeBSD returns the mod time of the symlink's containing
3986# directory).
3987if (
3988   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3989   if test "$*" = "X"; then
3990      # -L didn't work.
3991      set X `ls -t $srcdir/configure conftest.file`
3992   fi
3993   rm -f conftest.file
3994   if test "$*" != "X $srcdir/configure conftest.file" \
3995      && test "$*" != "X conftest.file $srcdir/configure"; then
3996
3997      # If neither matched, then we have a broken ls.  This can happen
3998      # if, for instance, CONFIG_SHELL is bash and it inherits a
3999      # broken ls alias from the environment.  This has actually
4000      # happened.  Such a system could not be considered "sane".
4001      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4002alias in your environment" >&5
4003echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4004alias in your environment" >&2;}
4005   { (exit 1); exit 1; }; }
4006   fi
4007
4008   test "$2" = conftest.file
4009   )
4010then
4011   # Ok.
4012   :
4013else
4014   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4015Check your system clock" >&5
4016echo "$as_me: error: newly created file is older than distributed files!
4017Check your system clock" >&2;}
4018   { (exit 1); exit 1; }; }
4019fi
4020echo "$as_me:$LINENO: result: yes" >&5
4021echo "${ECHO_T}yes" >&6
4022test "$program_prefix" != NONE &&
4023  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4024# Use a double $ so make ignores it.
4025test "$program_suffix" != NONE &&
4026  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4027# Double any \ or $.  echo might interpret backslashes.
4028# By default was `s,x,x', remove it if useless.
4029cat <<\_ACEOF >conftest.sed
4030s/[\\$]/&&/g;s/;s,x,x,$//
4031_ACEOF
4032program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4033rm conftest.sed
4034
4035# expand $ac_aux_dir to an absolute path
4036am_aux_dir=`cd $ac_aux_dir && pwd`
4037
4038test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4039# Use eval to expand $SHELL
4040if eval "$MISSING --run true"; then
4041  am_missing_run="$MISSING --run "
4042else
4043  am_missing_run=
4044  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4045echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4046fi
4047
4048if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4049  # We used to keeping the `.' as first argument, in order to
4050  # allow $(mkdir_p) to be used without argument.  As in
4051  #   $(mkdir_p) $(somedir)
4052  # where $(somedir) is conditionally defined.  However this is wrong
4053  # for two reasons:
4054  #  1. if the package is installed by a user who cannot write `.'
4055  #     make install will fail,
4056  #  2. the above comment should most certainly read
4057  #     $(mkdir_p) $(DESTDIR)$(somedir)
4058  #     so it does not work when $(somedir) is undefined and
4059  #     $(DESTDIR) is not.
4060  #  To support the latter case, we have to write
4061  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4062  #  so the `.' trick is pointless.
4063  mkdir_p='mkdir -p --'
4064else
4065  # On NextStep and OpenStep, the `mkdir' command does not
4066  # recognize any option.  It will interpret all options as
4067  # directories to create, and then abort because `.' already
4068  # exists.
4069  for d in ./-p ./--version;
4070  do
4071    test -d $d && rmdir $d
4072  done
4073  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4074  if test -f "$ac_aux_dir/mkinstalldirs"; then
4075    mkdir_p='$(mkinstalldirs)'
4076  else
4077    mkdir_p='$(install_sh) -d'
4078  fi
4079fi
4080
4081for ac_prog in gawk mawk nawk awk
4082do
4083  # Extract the first word of "$ac_prog", so it can be a program name with args.
4084set dummy $ac_prog; ac_word=$2
4085echo "$as_me:$LINENO: checking for $ac_word" >&5
4086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087if test "${ac_cv_prog_AWK+set}" = set; then
4088  echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090  if test -n "$AWK"; then
4091  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4092else
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096  IFS=$as_save_IFS
4097  test -z "$as_dir" && as_dir=.
4098  for ac_exec_ext in '' $ac_executable_extensions; do
4099  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100    ac_cv_prog_AWK="$ac_prog"
4101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102    break 2
4103  fi
4104done
4105done
4106
4107fi
4108fi
4109AWK=$ac_cv_prog_AWK
4110if test -n "$AWK"; then
4111  echo "$as_me:$LINENO: result: $AWK" >&5
4112echo "${ECHO_T}$AWK" >&6
4113else
4114  echo "$as_me:$LINENO: result: no" >&5
4115echo "${ECHO_T}no" >&6
4116fi
4117
4118  test -n "$AWK" && break
4119done
4120
4121echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4122echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4123set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4124if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4125  echo $ECHO_N "(cached) $ECHO_C" >&6
4126else
4127  cat >conftest.make <<\_ACEOF
4128all:
4129        @echo 'ac_maketemp="$(MAKE)"'
4130_ACEOF
4131# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4132eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4133if test -n "$ac_maketemp"; then
4134  eval ac_cv_prog_make_${ac_make}_set=yes
4135else
4136  eval ac_cv_prog_make_${ac_make}_set=no
4137fi
4138rm -f conftest.make
4139fi
4140if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4141  echo "$as_me:$LINENO: result: yes" >&5
4142echo "${ECHO_T}yes" >&6
4143  SET_MAKE=
4144else
4145  echo "$as_me:$LINENO: result: no" >&5
4146echo "${ECHO_T}no" >&6
4147  SET_MAKE="MAKE=${MAKE-make}"
4148fi
4149
4150rm -rf .tst 2>/dev/null
4151mkdir .tst 2>/dev/null
4152if test -d .tst; then
4153  am__leading_dot=.
4154else
4155  am__leading_dot=_
4156fi
4157rmdir .tst 2>/dev/null
4158
4159DEPDIR="${am__leading_dot}deps"
4160
4161          ac_config_commands="$ac_config_commands depfiles"
4162
4163
4164am_make=${MAKE-make}
4165cat > confinc << 'END'
4166am__doit:
4167        @echo done
4168.PHONY: am__doit
4169END
4170# If we don't find an include directive, just comment out the code.
4171echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4172echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4173am__include="#"
4174am__quote=
4175_am_result=none
4176# First try GNU make style include.
4177echo "include confinc" > confmf
4178# We grep out `Entering directory' and `Leaving directory'
4179# messages which can occur if `w' ends up in MAKEFLAGS.
4180# In particular we don't look at `^make:' because GNU make might
4181# be invoked under some other name (usually "gmake"), in which
4182# case it prints its new name instead of `make'.
4183if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4184   am__include=include
4185   am__quote=
4186   _am_result=GNU
4187fi
4188# Now try BSD make style include.
4189if test "$am__include" = "#"; then
4190   echo '.include "confinc"' > confmf
4191   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4192      am__include=.include
4193      am__quote="\""
4194      _am_result=BSD
4195   fi
4196fi
4197
4198
4199echo "$as_me:$LINENO: result: $_am_result" >&5
4200echo "${ECHO_T}$_am_result" >&6
4201rm -f confinc confmf
4202
4203# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4204if test "${enable_dependency_tracking+set}" = set; then
4205  enableval="$enable_dependency_tracking"
4206
4207fi;
4208if test "x$enable_dependency_tracking" != xno; then
4209  am_depcomp="$ac_aux_dir/depcomp"
4210  AMDEPBACKSLASH='\'
4211fi
4212
4213
4214if test "x$enable_dependency_tracking" != xno; then
4215  AMDEP_TRUE=
4216  AMDEP_FALSE='#'
4217else
4218  AMDEP_TRUE='#'
4219  AMDEP_FALSE=
4220fi
4221
4222
4223
4224
4225
4226# AC_MSG_NOTICE([Beginning automake initialisation.])
4227# Stuff for automake
4228# test to see if srcdir already configured
4229if test "`cd $srcdir && pwd`" != "`pwd`" &&
4230   test -f $srcdir/config.status; then
4231  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4232echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4233   { (exit 1); exit 1; }; }
4234fi
4235
4236# test whether we have cygpath
4237if test -z "$CYGPATH_W"; then
4238  if (cygpath --version) >/dev/null 2>/dev/null; then
4239    CYGPATH_W='cygpath -w'
4240  else
4241    CYGPATH_W=echo
4242  fi
4243fi
4244
4245
4246# Define the identity of the package.
4247 PACKAGE='coinmp'
4248 VERSION='1.1'
4249
4250
4251cat >>confdefs.h <<_ACEOF
4252#define PACKAGE "$PACKAGE"
4253_ACEOF
4254
4255
4256cat >>confdefs.h <<_ACEOF
4257#define VERSION "$VERSION"
4258_ACEOF
4259
4260# Some tools Automake needs.
4261
4262ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4263
4264
4265AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4266
4267
4268AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4269
4270
4271AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4272
4273
4274MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4275
4276install_sh=${install_sh-"$am_aux_dir/install-sh"}
4277
4278# Installed binaries are usually stripped using `strip' when the user
4279# run `make install-strip'.  However `strip' might not be the right
4280# tool to use in cross-compilation environments, therefore Automake
4281# will honor the `STRIP' environment variable to overrule this program.
4282if test "$cross_compiling" != no; then
4283  if test -n "$ac_tool_prefix"; then
4284  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4285set dummy ${ac_tool_prefix}strip; ac_word=$2
4286echo "$as_me:$LINENO: checking for $ac_word" >&5
4287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288if test "${ac_cv_prog_STRIP+set}" = set; then
4289  echo $ECHO_N "(cached) $ECHO_C" >&6
4290else
4291  if test -n "$STRIP"; then
4292  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4293else
4294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295for as_dir in $PATH
4296do
4297  IFS=$as_save_IFS
4298  test -z "$as_dir" && as_dir=.
4299  for ac_exec_ext in '' $ac_executable_extensions; do
4300  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4302    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303    break 2
4304  fi
4305done
4306done
4307
4308fi
4309fi
4310STRIP=$ac_cv_prog_STRIP
4311if test -n "$STRIP"; then
4312  echo "$as_me:$LINENO: result: $STRIP" >&5
4313echo "${ECHO_T}$STRIP" >&6
4314else
4315  echo "$as_me:$LINENO: result: no" >&5
4316echo "${ECHO_T}no" >&6
4317fi
4318
4319fi
4320if test -z "$ac_cv_prog_STRIP"; then
4321  ac_ct_STRIP=$STRIP
4322  # Extract the first word of "strip", so it can be a program name with args.
4323set dummy strip; ac_word=$2
4324echo "$as_me:$LINENO: checking for $ac_word" >&5
4325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4326if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4327  echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4329  if test -n "$ac_ct_STRIP"; then
4330  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4331else
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335  IFS=$as_save_IFS
4336  test -z "$as_dir" && as_dir=.
4337  for ac_exec_ext in '' $ac_executable_extensions; do
4338  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4339    ac_cv_prog_ac_ct_STRIP="strip"
4340    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341    break 2
4342  fi
4343done
4344done
4345
4346  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4347fi
4348fi
4349ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4350if test -n "$ac_ct_STRIP"; then
4351  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4352echo "${ECHO_T}$ac_ct_STRIP" >&6
4353else
4354  echo "$as_me:$LINENO: result: no" >&5
4355echo "${ECHO_T}no" >&6
4356fi
4357
4358  STRIP=$ac_ct_STRIP
4359else
4360  STRIP="$ac_cv_prog_STRIP"
4361fi
4362
4363fi
4364INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4365
4366# We need awk for the "check" target.  The system "awk" is bad on
4367# some platforms.
4368# Always define AMTAR for backward compatibility.
4369
4370AMTAR=${AMTAR-"${am_missing_run}tar"}
4371
4372am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4373
4374
4375
4376
4377depcc="$CC"   am_compiler_list=
4378
4379echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4380echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4381if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4382  echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4385  # We make a subdir and do the tests there.  Otherwise we can end up
4386  # making bogus files that we don't know about and never remove.  For
4387  # instance it was reported that on HP-UX the gcc test will end up
4388  # making a dummy file named `D' -- because `-MD' means `put the output
4389  # in D'.
4390  mkdir conftest.dir
4391  # Copy depcomp to subdir because otherwise we won't find it if we're
4392  # using a relative directory.
4393  cp "$am_depcomp" conftest.dir
4394  cd conftest.dir
4395  # We will build objects and dependencies in a subdirectory because
4396  # it helps to detect inapplicable dependency modes.  For instance
4397  # both Tru64's cc and ICC support -MD to output dependencies as a
4398  # side effect of compilation, but ICC will put the dependencies in
4399  # the current directory while Tru64 will put them in the object
4400  # directory.
4401  mkdir sub
4402
4403  am_cv_CC_dependencies_compiler_type=none
4404  if test "$am_compiler_list" = ""; then
4405     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4406  fi
4407  for depmode in $am_compiler_list; do
4408    # Setup a source with many dependencies, because some compilers
4409    # like to wrap large dependency lists on column 80 (with \), and
4410    # we should not choose a depcomp mode which is confused by this.
4411    #
4412    # We need to recreate these files for each test, as the compiler may
4413    # overwrite some of them when testing with obscure command lines.
4414    # This happens at least with the AIX C compiler.
4415    : > sub/conftest.c
4416    for i in 1 2 3 4 5 6; do
4417      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4418      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4419      # Solaris 8's {/usr,}/bin/sh.
4420      touch sub/conftst$i.h
4421    done
4422    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4423
4424    case $depmode in
4425    nosideeffect)
4426      # after this tag, mechanisms are not by side-effect, so they'll
4427      # only be used when explicitly requested
4428      if test "x$enable_dependency_tracking" = xyes; then
4429        continue
4430      else
4431        break
4432      fi
4433      ;;
4434    none) break ;;
4435    esac
4436    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4437    # mode.  It turns out that the SunPro C++ compiler does not properly
4438    # handle `-M -o', and we need to detect this.
4439    if depmode=$depmode \
4440       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4441       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4442       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4443         >/dev/null 2>conftest.err &&
4444       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4445       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4446       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4447      # icc doesn't choke on unknown options, it will just issue warnings
4448      # or remarks (even with -Werror).  So we grep stderr for any message
4449      # that says an option was ignored or not supported.
4450      # When given -MP, icc 7.0 and 7.1 complain thusly:
4451      #   icc: Command line warning: ignoring option '-M'; no argument required
4452      # The diagnosis changed in icc 8.0:
4453      #   icc: Command line remark: option '-MP' not supported
4454      if (grep 'ignoring option' conftest.err ||
4455          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4456        am_cv_CC_dependencies_compiler_type=$depmode
4457        break
4458      fi
4459    fi
4460  done
4461
4462  cd ..
4463  rm -rf conftest.dir
4464else
4465  am_cv_CC_dependencies_compiler_type=none
4466fi
4467
4468fi
4469echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4470echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4471CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4472
4473
4474
4475if
4476  test "x$enable_dependency_tracking" != xno \
4477  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4478  am__fastdepCC_TRUE=
4479  am__fastdepCC_FALSE='#'
4480else
4481  am__fastdepCC_TRUE='#'
4482  am__fastdepCC_FALSE=
4483fi
4484
4485
4486depcc="$CXX"  am_compiler_list=
4487
4488echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4489echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4490if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4491  echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4494  # We make a subdir and do the tests there.  Otherwise we can end up
4495  # making bogus files that we don't know about and never remove.  For
4496  # instance it was reported that on HP-UX the gcc test will end up
4497  # making a dummy file named `D' -- because `-MD' means `put the output
4498  # in D'.
4499  mkdir conftest.dir
4500  # Copy depcomp to subdir because otherwise we won't find it if we're
4501  # using a relative directory.
4502  cp "$am_depcomp" conftest.dir
4503  cd conftest.dir
4504  # We will build objects and dependencies in a subdirectory because
4505  # it helps to detect inapplicable dependency modes.  For instance
4506  # both Tru64's cc and ICC support -MD to output dependencies as a
4507  # side effect of compilation, but ICC will put the dependencies in
4508  # the current directory while Tru64 will put them in the object
4509  # directory.
4510  mkdir sub
4511
4512  am_cv_CXX_dependencies_compiler_type=none
4513  if test "$am_compiler_list" = ""; then
4514     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4515  fi
4516  for depmode in $am_compiler_list; do
4517    # Setup a source with many dependencies, because some compilers
4518    # like to wrap large dependency lists on column 80 (with \), and
4519    # we should not choose a depcomp mode which is confused by this.
4520    #
4521    # We need to recreate these files for each test, as the compiler may
4522    # overwrite some of them when testing with obscure command lines.
4523    # This happens at least with the AIX C compiler.
4524    : > sub/conftest.c
4525    for i in 1 2 3 4 5 6; do
4526      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4527      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4528      # Solaris 8's {/usr,}/bin/sh.
4529      touch sub/conftst$i.h
4530    done
4531    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4532
4533    case $depmode in
4534    nosideeffect)
4535      # after this tag, mechanisms are not by side-effect, so they'll
4536      # only be used when explicitly requested
4537      if test "x$enable_dependency_tracking" = xyes; then
4538        continue
4539      else
4540        break
4541      fi
4542      ;;
4543    none) break ;;
4544    esac
4545    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4546    # mode.  It turns out that the SunPro C++ compiler does not properly
4547    # handle `-M -o', and we need to detect this.
4548    if depmode=$depmode \
4549       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4550       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4551       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4552         >/dev/null 2>conftest.err &&
4553       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4554       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4555       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4556      # icc doesn't choke on unknown options, it will just issue warnings
4557      # or remarks (even with -Werror).  So we grep stderr for any message
4558      # that says an option was ignored or not supported.
4559      # When given -MP, icc 7.0 and 7.1 complain thusly:
4560      #   icc: Command line warning: ignoring option '-M'; no argument required
4561      # The diagnosis changed in icc 8.0:
4562      #   icc: Command line remark: option '-MP' not supported
4563      if (grep 'ignoring option' conftest.err ||
4564          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4565        am_cv_CXX_dependencies_compiler_type=$depmode
4566        break
4567      fi
4568    fi
4569  done
4570
4571  cd ..
4572  rm -rf conftest.dir
4573else
4574  am_cv_CXX_dependencies_compiler_type=none
4575fi
4576
4577fi
4578echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4579echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4580CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4581
4582
4583
4584if
4585  test "x$enable_dependency_tracking" != xno \
4586  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4587  am__fastdepCXX_TRUE=
4588  am__fastdepCXX_FALSE='#'
4589else
4590  am__fastdepCXX_TRUE='#'
4591  am__fastdepCXX_FALSE=
4592fi
4593
4594
4595
4596echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4597echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4598    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4599if test "${enable_maintainer_mode+set}" = set; then
4600  enableval="$enable_maintainer_mode"
4601  USE_MAINTAINER_MODE=$enableval
4602else
4603  USE_MAINTAINER_MODE=no
4604fi;
4605  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4606echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4607
4608
4609if test $USE_MAINTAINER_MODE = yes; then
4610  MAINTAINER_MODE_TRUE=
4611  MAINTAINER_MODE_FALSE='#'
4612else
4613  MAINTAINER_MODE_TRUE='#'
4614  MAINTAINER_MODE_FALSE=
4615fi
4616
4617  MAINT=$MAINTAINER_MODE_TRUE
4618
4619
4620
4621coin_have_externals=no
4622if test "$enable_maintainer_mode" = yes; then
4623
4624  # If maintainer mode is chosen, we make sure that the correct versions
4625  # of the tools are used, and that we know where libtool.m4 is (to
4626  # recreate acinclude.m4)
4627
4628
4629  LIBTOOLM4=
4630  # Normally, $HOME
4631  AUTOTOOLS_DFLT=$HOME
4632
4633  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4634echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4635if test "${ac_cv_use_correct_autotools+set}" = set; then
4636  echo $ECHO_N "(cached) $ECHO_C" >&6
4637else
4638  ac_cv_use_correct_autotools=check
4639fi
4640echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4641echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4642
4643  if test $ac_cv_use_correct_autotools = check; then
4644    ac_cv_use_correct_autotools=yes
4645    # Check if we have autoconf
4646    # Extract the first word of "autoconf", so it can be a program name with args.
4647set dummy autoconf; ac_word=$2
4648echo "$as_me:$LINENO: checking for $ac_word" >&5
4649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650if test "${ac_cv_prog_have_autoconf+set}" = set; then
4651  echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653  if test -n "$have_autoconf"; then
4654  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659  IFS=$as_save_IFS
4660  test -z "$as_dir" && as_dir=.
4661  for ac_exec_ext in '' $ac_executable_extensions; do
4662  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663    ac_cv_prog_have_autoconf="yes"
4664    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665    break 2
4666  fi
4667done
4668done
4669
4670  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4671fi
4672fi
4673have_autoconf=$ac_cv_prog_have_autoconf
4674if test -n "$have_autoconf"; then
4675  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4676echo "${ECHO_T}$have_autoconf" >&6
4677else
4678  echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6
4680fi
4681
4682    if test $have_autoconf = no; then
4683      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4684echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4685   { (exit 1); exit 1; }; }
4686    fi
4687
4688    # Check whether autoconf is the correct version
4689    correct_version='2.59'
4690    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4691    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4692echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4693    autoconf --version > confauto.out 2>&1
4694    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4695      echo "$as_me:$LINENO: result: yes" >&5
4696echo "${ECHO_T}yes" >&6
4697    else
4698      rm -f confauto.out
4699      echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6
4701      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4702echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4703   { (exit 1); exit 1; }; }
4704    fi
4705    rm -f confauto.out
4706
4707    # Check if the executable autoconf is picked up from the correct location
4708    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4709echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4710    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4711    autoconf_dir=`cd $autoconf_dir; pwd`
4712    if test x$AUTOTOOLS_DIR = x; then
4713      want_dir=$AUTOTOOLS_DFLT/bin
4714    else
4715      want_dir=$AUTOTOOLS_DIR/bin
4716    fi
4717    if test $autoconf_dir = `cd $want_dir; pwd`; then
4718      echo "$as_me:$LINENO: result: yes" >&5
4719echo "${ECHO_T}yes" >&6
4720    else
4721      rm -f confauto.out
4722      echo "$as_me:$LINENO: result: no" >&5
4723echo "${ECHO_T}no" >&6
4724      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4725echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4726   { (exit 1); exit 1; }; }
4727    fi
4728
4729    # Check if we have automake
4730    # Extract the first word of "automake", so it can be a program name with args.
4731set dummy automake; ac_word=$2
4732echo "$as_me:$LINENO: checking for $ac_word" >&5
4733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4734if test "${ac_cv_prog_have_automake+set}" = set; then
4735  echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737  if test -n "$have_automake"; then
4738  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4739else
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743  IFS=$as_save_IFS
4744  test -z "$as_dir" && as_dir=.
4745  for ac_exec_ext in '' $ac_executable_extensions; do
4746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747    ac_cv_prog_have_automake="yes"
4748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749    break 2
4750  fi
4751done
4752done
4753
4754  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4755fi
4756fi
4757have_automake=$ac_cv_prog_have_automake
4758if test -n "$have_automake"; then
4759  echo "$as_me:$LINENO: result: $have_automake" >&5
4760echo "${ECHO_T}$have_automake" >&6
4761else
4762  echo "$as_me:$LINENO: result: no" >&5
4763echo "${ECHO_T}no" >&6
4764fi
4765
4766    if test $have_automake = no; then
4767      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4768echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4769   { (exit 1); exit 1; }; }
4770    fi
4771
4772    # Check whether automake is the correct version
4773    correct_version='1.9.6'
4774    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4775    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4776echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4777    automake --version > confauto.out 2>&1
4778    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4779      echo "$as_me:$LINENO: result: yes" >&5
4780echo "${ECHO_T}yes" >&6
4781    else
4782      rm -f confauto.out
4783      echo "$as_me:$LINENO: result: no" >&5
4784echo "${ECHO_T}no" >&6
4785      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4786echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4787   { (exit 1); exit 1; }; }
4788    fi
4789    rm -f confauto.out
4790
4791    # Check if the executable automake is picked up from the correct location
4792    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4793echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4794    automake_dir=`which automake | sed -e 's=/automake=='`
4795    automake_dir=`cd $automake_dir; pwd`
4796    if test x$AUTOTOOLS_DIR = x; then
4797      want_dir=$AUTOTOOLS_DFLT/bin
4798    else
4799      want_dir=$AUTOTOOLS_DIR/bin
4800    fi
4801    if test $automake_dir = `cd $want_dir; pwd`; then
4802      echo "$as_me:$LINENO: result: yes" >&5
4803echo "${ECHO_T}yes" >&6
4804    else
4805      rm -f confauto.out
4806      echo "$as_me:$LINENO: result: no" >&5
4807echo "${ECHO_T}no" >&6
4808      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4809echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4810   { (exit 1); exit 1; }; }
4811    fi
4812
4813    # Check if this is the correct version of libtool (with escaped dots)
4814    if test x$AUTOTOOLS_DIR = x; then
4815      want_dir=$AUTOTOOLS_DFLT/share
4816    else
4817      want_dir=$AUTOTOOLS_DIR/share
4818    fi
4819    correct_version='1.5.22'
4820    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4821    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4822echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4823echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4824if eval "test \"\${$as_ac_File+set}\" = set"; then
4825  echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827  test "$cross_compiling" = yes &&
4828  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4829echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4830   { (exit 1); exit 1; }; }
4831if test -r "$want_dir/libtool/ltmain.sh"; then
4832  eval "$as_ac_File=yes"
4833else
4834  eval "$as_ac_File=no"
4835fi
4836fi
4837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4838echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4839if test `eval echo '${'$as_ac_File'}'` = yes; then
4840  have_ltmain=yes
4841else
4842  have_ltmain=no
4843fi
4844
4845    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4846echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4847    if test $have_ltmain = yes; then
4848    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4849        echo "$as_me:$LINENO: result: yes" >&5
4850echo "${ECHO_T}yes" >&6
4851      else
4852        echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6
4854        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4855echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4856   { (exit 1); exit 1; }; }
4857      fi
4858    else
4859      echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
4861      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4862echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4863   { (exit 1); exit 1; }; }
4864    fi
4865  fi
4866
4867  # Check if we can find the libtool file
4868  if test x$AUTOTOOLS_DIR = x; then
4869    want_dir=$AUTOTOOLS_DFLT/share
4870  else
4871    want_dir=$AUTOTOOLS_DIR/share
4872  fi
4873  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4874echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4875echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4876if eval "test \"\${$as_ac_File+set}\" = set"; then
4877  echo $ECHO_N "(cached) $ECHO_C" >&6
4878else
4879  test "$cross_compiling" = yes &&
4880  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4881echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4882   { (exit 1); exit 1; }; }
4883if test -r "$want_dir/aclocal/libtool.m4"; then
4884  eval "$as_ac_File=yes"
4885else
4886  eval "$as_ac_File=no"
4887fi
4888fi
4889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4890echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4891if test `eval echo '${'$as_ac_File'}'` = yes; then
4892  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4893else
4894  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4895echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4896   { (exit 1); exit 1; }; }
4897fi
4898
4899
4900  # Check if we have an Externals file
4901  if test -r $srcdir/Externals; then
4902    coin_have_externals=yes
4903  fi
4904  # Check if subversion is installed and understands https
4905  # Extract the first word of "svn", so it can be a program name with args.
4906set dummy svn; ac_word=$2
4907echo "$as_me:$LINENO: checking for $ac_word" >&5
4908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4909if test "${ac_cv_prog_have_svn+set}" = set; then
4910  echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912  if test -n "$have_svn"; then
4913  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4914else
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918  IFS=$as_save_IFS
4919  test -z "$as_dir" && as_dir=.
4920  for ac_exec_ext in '' $ac_executable_extensions; do
4921  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4922    ac_cv_prog_have_svn="yes"
4923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924    break 2
4925  fi
4926done
4927done
4928
4929  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4930fi
4931fi
4932have_svn=$ac_cv_prog_have_svn
4933if test -n "$have_svn"; then
4934  echo "$as_me:$LINENO: result: $have_svn" >&5
4935echo "${ECHO_T}$have_svn" >&6
4936else
4937  echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6
4939fi
4940
4941  if test x$have_svn = xyes; then
4942    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4943echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4944if test "${ac_cv_svn_understands_https+set}" = set; then
4945  echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947  svn --version > confauto.out 2>&1
4948                    if $EGREP https confauto.out >/dev/null 2>&1; then
4949                      ac_cv_svn_understands_https=yes
4950                    else
4951                      ac_cv_svn_understands_https=no
4952                      have_svn=no
4953                      ac_cv_prog_have_svn=no
4954                    fi
4955                    rm -f confauto.out
4956fi
4957echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4958echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4959  fi
4960
4961  # Find the location of the BuildTools directory
4962  BUILDTOOLSDIR=
4963  if test -r $srcdir/BuildTools/coin.m4; then
4964    BUILDTOOLSDIR=$srcdir/BuildTools
4965  else
4966    if test -r $srcdir/../BuildTools/coin.m4; then
4967      BUILDTOOLSDIR=$srcdir/../BuildTools
4968    else
4969      if test -r $srcdir/../../BuildTools/coin.m4; then
4970        BUILDTOOLSDIR=$srcdir/../../BuildTools
4971      else
4972        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4973echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4974   { (exit 1); exit 1; }; }
4975      fi
4976    fi
4977  fi
4978
4979
4980  # The following variable is set to the name of the directory where
4981  # the autotool scripts are located
4982
4983  AUX_DIR=$ac_aux_dir
4984fi
4985
4986# helpful variable for the base directory of this package
4987abs_source_dir=`cd $srcdir; pwd`
4988
4989
4990# Stuff for example Makefiles
4991if test x$prefix = xNONE; then
4992  full_prefix=$ac_default_prefix
4993else
4994  full_prefix=$prefix
4995fi
4996full_prefix=`cd $full_prefix ; pwd`
4997
4998abs_lib_dir=$full_prefix/lib
4999
5000abs_include_dir=$full_prefix/include
5001
5002abs_bin_dir=$full_prefix/bin
5003
5004
5005
5006if test $coin_have_externals = yes && test x$have_svn = xyes; then
5007  HAVE_EXTERNALS_TRUE=
5008  HAVE_EXTERNALS_FALSE='#'
5009else
5010  HAVE_EXTERNALS_TRUE='#'
5011  HAVE_EXTERNALS_FALSE=
5012fi
5013
5014
5015# AC_MSG_NOTICE([End automake initialisation.])
5016
5017
5018
5019LIBTOOL=
5020if test -r ../libtool; then
5021  coin_config_dir=..
5022  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5023fi
5024if test "x$LIBTOOL" = x; then
5025  if test -r ../../libtool; then
5026    coin_config_dir=../..
5027    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5028  fi
5029fi
5030
5031if test "x$LIBTOOL" = x; then
5032# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5033  # Stuff for libtool
5034  # Check whether --enable-shared or --disable-shared was given.
5035if test "${enable_shared+set}" = set; then
5036  enableval="$enable_shared"
5037  p=${PACKAGE-default}
5038    case $enableval in
5039    yes) enable_shared=yes ;;
5040    no) enable_shared=no ;;
5041    *)
5042      enable_shared=no
5043      # Look at the argument we got.  We use all the common list separators.
5044      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5045      for pkg in $enableval; do
5046        IFS="$lt_save_ifs"
5047        if test "X$pkg" = "X$p"; then
5048          enable_shared=yes
5049        fi
5050      done
5051      IFS="$lt_save_ifs"
5052      ;;
5053    esac
5054else
5055  enable_shared=yes
5056fi;
5057
5058# Check whether --enable-fast-install or --disable-fast-install was given.
5059if test "${enable_fast_install+set}" = set; then
5060  enableval="$enable_fast_install"
5061  p=${PACKAGE-default}
5062    case $enableval in
5063    yes) enable_fast_install=yes ;;
5064    no) enable_fast_install=no ;;
5065    *)
5066      enable_fast_install=no
5067      # Look at the argument we got.  We use all the common list separators.
5068      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5069      for pkg in $enableval; do
5070        IFS="$lt_save_ifs"
5071        if test "X$pkg" = "X$p"; then
5072          enable_fast_install=yes
5073        fi
5074      done
5075      IFS="$lt_save_ifs"
5076      ;;
5077    esac
5078else
5079  enable_fast_install=yes
5080fi;
5081
5082echo "$as_me:$LINENO: checking host system type" >&5
5083echo $ECHO_N "checking host system type... $ECHO_C" >&6
5084if test "${ac_cv_host+set}" = set; then
5085  echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087  ac_cv_host_alias=$host_alias
5088test -z "$ac_cv_host_alias" &&
5089  ac_cv_host_alias=$ac_cv_build_alias
5090ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5091  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5092echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5093   { (exit 1); exit 1; }; }
5094
5095fi
5096echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5097echo "${ECHO_T}$ac_cv_host" >&6
5098host=$ac_cv_host
5099host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5100host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5101host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5102
5103
5104echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5105echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5106if test "${lt_cv_path_SED+set}" = set; then
5107  echo $ECHO_N "(cached) $ECHO_C" >&6
5108else
5109  # Loop through the user's path and test for sed and gsed.
5110# Then use that list of sed's as ones to test for truncation.
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114  IFS=$as_save_IFS
5115  test -z "$as_dir" && as_dir=.
5116  for lt_ac_prog in sed gsed; do
5117    for ac_exec_ext in '' $ac_executable_extensions; do
5118      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5119        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5120      fi
5121    done
5122  done
5123done
5124lt_ac_max=0
5125lt_ac_count=0
5126# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5127# along with /bin/sed that truncates output.
5128for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5129  test ! -f $lt_ac_sed && continue
5130  cat /dev/null > conftest.in
5131  lt_ac_count=0
5132  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5133  # Check for GNU sed and select it if it is found.
5134  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5135    lt_cv_path_SED=$lt_ac_sed
5136    break
5137  fi
5138  while true; do
5139    cat conftest.in conftest.in >conftest.tmp
5140    mv conftest.tmp conftest.in
5141    cp conftest.in conftest.nl
5142    echo >>conftest.nl
5143    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5144    cmp -s conftest.out conftest.nl || break
5145    # 10000 chars as input seems more than enough
5146    test $lt_ac_count -gt 10 && break
5147    lt_ac_count=`expr $lt_ac_count + 1`
5148    if test $lt_ac_count -gt $lt_ac_max; then
5149      lt_ac_max=$lt_ac_count
5150      lt_cv_path_SED=$lt_ac_sed
5151    fi
5152  done
5153done
5154
5155fi
5156
5157SED=$lt_cv_path_SED
5158echo "$as_me:$LINENO: result: $SED" >&5
5159echo "${ECHO_T}$SED" >&6
5160
5161
5162# Check whether --with-gnu-ld or --without-gnu-ld was given.
5163if test "${with_gnu_ld+set}" = set; then
5164  withval="$with_gnu_ld"
5165  test "$withval" = no || with_gnu_ld=yes
5166else
5167  with_gnu_ld=no
5168fi;
5169ac_prog=ld
5170if test "$GCC" = yes; then
5171  # Check if gcc -print-prog-name=ld gives a path.
5172  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5173echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5174  case $host in
5175  *-*-mingw*)
5176    # gcc leaves a trailing carriage return which upsets mingw
5177    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5178  *)
5179    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5180  esac
5181  case $ac_prog in
5182    # Accept absolute paths.
5183    [\\/]* | ?:[\\/]*)
5184      re_direlt='/[^/][^/]*/\.\./'
5185      # Canonicalize the pathname of ld
5186      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5187      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5188        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5189      done
5190      test -z "$LD" && LD="$ac_prog"
5191      ;;
5192  "")
5193    # If it fails, then pretend we aren't using GCC.
5194    ac_prog=ld
5195    ;;
5196  *)
5197    # If it is relative, then search for the first ld in PATH.
5198    with_gnu_ld=unknown
5199    ;;
5200  esac
5201elif test "$with_gnu_ld" = yes; then
5202  echo "$as_me:$LINENO: checking for GNU ld" >&5
5203echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5204else
5205  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5206echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5207fi
5208if test "${lt_cv_path_LD+set}" = set; then
5209  echo $ECHO_N "(cached) $ECHO_C" >&6
5210else
5211  if test -z "$LD"; then
5212  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5213  for ac_dir in $PATH; do
5214    IFS="$lt_save_ifs"
5215    test -z "$ac_dir" && ac_dir=.
5216    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5217      lt_cv_path_LD="$ac_dir/$ac_prog"
5218      # Check to see if the program is GNU ld.  I'd rather use --version,
5219      # but apparently some variants of GNU ld only accept -v.
5220      # Break only if it was the GNU/non-GNU ld that we prefer.
5221      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5222      *GNU* | *'with BFD'*)
5223        test "$with_gnu_ld" != no && break
5224        ;;
5225      *)
5226        test "$with_gnu_ld" != yes && break
5227        ;;
5228      esac
5229    fi
5230  done
5231  IFS="$lt_save_ifs"
5232else
5233  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5234fi
5235fi
5236
5237LD="$lt_cv_path_LD"
5238if test -n "$LD"; then
5239  echo "$as_me:$LINENO: result: $LD" >&5
5240echo "${ECHO_T}$LD" >&6
5241else
5242  echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6
5244fi
5245test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5246echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5247   { (exit 1); exit 1; }; }
5248echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5249echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5250if test "${lt_cv_prog_gnu_ld+set}" = set; then
5251  echo $ECHO_N "(cached) $ECHO_C" >&6
5252else
5253  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5254case `$LD -v 2>&1 </dev/null` in
5255*GNU* | *'with BFD'*)
5256  lt_cv_prog_gnu_ld=yes
5257  ;;
5258*)
5259  lt_cv_prog_gnu_ld=no
5260  ;;
5261esac
5262fi
5263echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5264echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5265with_gnu_ld=$lt_cv_prog_gnu_ld
5266
5267
5268echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5269echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5270if test "${lt_cv_ld_reload_flag+set}" = set; then
5271  echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273  lt_cv_ld_reload_flag='-r'
5274fi
5275echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5276echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5277reload_flag=$lt_cv_ld_reload_flag
5278case $reload_flag in
5279"" | " "*) ;;
5280*) reload_flag=" $reload_flag" ;;
5281esac
5282reload_cmds='$LD$reload_flag -o $output$reload_objs'
5283case $host_os in
5284  darwin*)
5285    if test "$GCC" = yes; then
5286      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5287    else
5288      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5289    fi
5290    ;;
5291esac
5292
5293echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5294echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5295if test "${lt_cv_path_NM+set}" = set; then
5296  echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298  if test -n "$NM"; then
5299  # Let the user override the test.
5300  lt_cv_path_NM="$NM"
5301else
5302  lt_nm_to_check="${ac_tool_prefix}nm"
5303  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5304    lt_nm_to_check="$lt_nm_to_check nm"
5305  fi
5306  for lt_tmp_nm in $lt_nm_to_check; do
5307    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5308    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5309      IFS="$lt_save_ifs"
5310      test -z "$ac_dir" && ac_dir=.
5311      tmp_nm="$ac_dir/$lt_tmp_nm"
5312      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5313        # Check to see if the nm accepts a BSD-compat flag.
5314        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5315        #   nm: unknown option "B" ignored
5316        # Tru64's nm complains that /dev/null is an invalid object file
5317        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5318        */dev/null* | *'Invalid file or object type'*)
5319          lt_cv_path_NM="$tmp_nm -B"
5320          break
5321          ;;
5322        *)
5323          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5324          */dev/null*)
5325            lt_cv_path_NM="$tmp_nm -p"
5326            break
5327            ;;
5328          *)
5329            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5330            continue # so that we can try to find one that supports BSD flags
5331            ;;
5332          esac
5333          ;;
5334        esac
5335      fi
5336    done
5337    IFS="$lt_save_ifs"
5338  done
5339  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5340fi
5341fi
5342echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5343echo "${ECHO_T}$lt_cv_path_NM" >&6
5344NM="$lt_cv_path_NM"
5345
5346echo "$as_me:$LINENO: checking whether ln -s works" >&5
5347echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5348LN_S=$as_ln_s
5349if test "$LN_S" = "ln -s"; then
5350  echo "$as_me:$LINENO: result: yes" >&5
5351echo "${ECHO_T}yes" >&6
5352else
5353  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5354echo "${ECHO_T}no, using $LN_S" >&6
5355fi
5356
5357echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5358echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5359if test "${lt_cv_deplibs_check_method+set}" = set; then
5360  echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362  lt_cv_file_magic_cmd='$MAGIC_CMD'
5363lt_cv_file_magic_test_file=
5364lt_cv_deplibs_check_method='unknown'
5365# Need to set the preceding variable on all platforms that support
5366# interlibrary dependencies.
5367# 'none' -- dependencies not supported.
5368# `unknown' -- same as none, but documents that we really don't know.
5369# 'pass_all' -- all dependencies passed with no checks.
5370# 'test_compile' -- check by making test program.
5371# 'file_magic [[regex]]' -- check by looking for files in library path
5372# which responds to the $file_magic_cmd with a given extended regex.
5373# If you have `file' or equivalent on your system and you're not sure
5374# whether `pass_all' will *always* work, you probably want this one.
5375
5376case $host_os in
5377aix4* | aix5*)
5378  lt_cv_deplibs_check_method=pass_all
5379  ;;
5380
5381beos*)
5382  lt_cv_deplibs_check_method=pass_all
5383  ;;
5384
5385bsdi[45]*)
5386  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5387  lt_cv_file_magic_cmd='/usr/bin/file -L'
5388  lt_cv_file_magic_test_file=/shlib/libc.so
5389  ;;
5390
5391cygwin*)
5392  # func_win32_libid is a shell function defined in ltmain.sh
5393  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5394  lt_cv_file_magic_cmd='func_win32_libid'
5395  ;;
5396
5397mingw* | pw32*)
5398  # Base MSYS/MinGW do not provide the 'file' command needed by
5399  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5400  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5401  lt_cv_file_magic_cmd='$OBJDUMP -f'
5402  ;;
5403
5404darwin* | rhapsody*)
5405  lt_cv_deplibs_check_method=pass_all
5406  ;;
5407
5408freebsd* | kfreebsd*-gnu | dragonfly*)
5409  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5410    case $host_cpu in
5411    i*86 )
5412      # Not sure whether the presence of OpenBSD here was a mistake.
5413      # Let's accept both of them until this is cleared up.
5414      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5415      lt_cv_file_magic_cmd=/usr/bin/file
5416      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5417      ;;
5418    esac
5419  else
5420    lt_cv_deplibs_check_method=pass_all
5421  fi
5422  ;;
5423
5424gnu*)
5425  lt_cv_deplibs_check_method=pass_all
5426  ;;
5427
5428hpux10.20* | hpux11*)
5429  lt_cv_file_magic_cmd=/usr/bin/file
5430  case $host_cpu in
5431  ia64*)
5432    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5433    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5434    ;;
5435  hppa*64*)
5436    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]'
5437    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5438    ;;
5439  *)
5440    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5441    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5442    ;;
5443  esac
5444  ;;
5445
5446interix3*)
5447  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5448  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5449  ;;
5450
5451irix5* | irix6* | nonstopux*)
5452  case $LD in
5453  *-32|*"-32 ") libmagic=32-bit;;
5454  *-n32|*"-n32 ") libmagic=N32;;
5455  *-64|*"-64 ") libmagic=64-bit;;
5456  *) libmagic=never-match;;
5457  esac
5458  lt_cv_deplibs_check_method=pass_all
5459  ;;
5460
5461# This must be Linux ELF.
5462linux*)
5463  lt_cv_deplibs_check_method=pass_all
5464  ;;
5465
5466netbsd*)
5467  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5468    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5469  else
5470    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5471  fi
5472  ;;
5473
5474newos6*)
5475  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5476  lt_cv_file_magic_cmd=/usr/bin/file
5477  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5478  ;;
5479
5480nto-qnx*)
5481  lt_cv_deplibs_check_method=unknown
5482  ;;
5483
5484openbsd*)
5485  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5486    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5487  else
5488    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5489  fi
5490  ;;
5491
5492osf3* | osf4* | osf5*)
5493  lt_cv_deplibs_check_method=pass_all
5494  ;;
5495
5496solaris*)
5497  lt_cv_deplibs_check_method=pass_all
5498  ;;
5499
5500sysv4 | sysv4.3*)
5501  case $host_vendor in
5502  motorola)
5503    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]'
5504    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5505    ;;
5506  ncr)
5507    lt_cv_deplibs_check_method=pass_all
5508    ;;
5509  sequent)
5510    lt_cv_file_magic_cmd='/bin/file'
5511    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5512    ;;
5513  sni)
5514    lt_cv_file_magic_cmd='/bin/file'
5515    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5516    lt_cv_file_magic_test_file=/lib/libc.so
5517    ;;
5518  siemens)
5519    lt_cv_deplibs_check_method=pass_all
5520    ;;
5521  pc)
5522    lt_cv_deplibs_check_method=pass_all
5523    ;;
5524  esac
5525  ;;
5526
5527sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5528  lt_cv_deplibs_check_method=pass_all
5529  ;;
5530esac
5531
5532fi
5533echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5534echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5535file_magic_cmd=$lt_cv_file_magic_cmd
5536deplibs_check_method=$lt_cv_deplibs_check_method
5537test -z "$deplibs_check_method" && deplibs_check_method=unknown
5538
5539
5540
5541
5542# If no C compiler was specified, use CC.
5543LTCC=${LTCC-"$CC"}
5544
5545# If no C compiler flags were specified, use CFLAGS.
5546LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5547
5548# Allow CC to be a program name with arguments.
5549compiler=$CC
5550
5551# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5552if test "${enable_libtool_lock+set}" = set; then
5553  enableval="$enable_libtool_lock"
5554
5555fi;
5556test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5557
5558# Some flags need to be propagated to the compiler or linker for good
5559# libtool support.
5560case $host in
5561ia64-*-hpux*)
5562  # Find out which ABI we are using.
5563  echo 'int i;' > conftest.$ac_ext
5564  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565  (eval $ac_compile) 2>&5
5566  ac_status=$?
5567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568  (exit $ac_status); }; then
5569    case `/usr/bin/file conftest.$ac_objext` in
5570    *ELF-32*)
5571      HPUX_IA64_MODE="32"
5572      ;;
5573    *ELF-64*)
5574      HPUX_IA64_MODE="64"
5575      ;;
5576    esac
5577  fi
5578  rm -rf conftest*
5579  ;;
5580*-*-irix6*)
5581  # Find out which ABI we are using.
5582  echo '#line 5582 "configure"' > conftest.$ac_ext
5583  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584  (eval $ac_compile) 2>&5
5585  ac_status=$?
5586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587  (exit $ac_status); }; then
5588   if test "$lt_cv_prog_gnu_ld" = yes; then
5589    case `/usr/bin/file conftest.$ac_objext` in
5590    *32-bit*)
5591      LD="${LD-ld} -melf32bsmip"
5592      ;;
5593    *N32*)
5594      LD="${LD-ld} -melf32bmipn32"
5595      ;;
5596    *64-bit*)
5597      LD="${LD-ld} -melf64bmip"
5598      ;;
5599    esac
5600   else
5601    case `/usr/bin/file conftest.$ac_objext` in
5602    *32-bit*)
5603      LD="${LD-ld} -32"
5604      ;;
5605    *N32*)
5606      LD="${LD-ld} -n32"
5607      ;;
5608    *64-bit*)
5609      LD="${LD-ld} -64"
5610      ;;
5611    esac
5612   fi
5613  fi
5614  rm -rf conftest*
5615  ;;
5616
5617x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5618  # Find out which ABI we are using.
5619  echo 'int i;' > conftest.$ac_ext
5620  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621  (eval $ac_compile) 2>&5
5622  ac_status=$?
5623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624  (exit $ac_status); }; then
5625    case `/usr/bin/file conftest.o` in
5626    *32-bit*)
5627      case $host in
5628        x86_64-*linux*)
5629          LD="${LD-ld} -m elf_i386"
5630          ;;
5631        ppc64-*linux*|powerpc64-*linux*)
5632          LD="${LD-ld} -m elf32ppclinux"
5633          ;;
5634        s390x-*linux*)
5635          LD="${LD-ld} -m elf_s390"
5636          ;;
5637        sparc64-*linux*)
5638          LD="${LD-ld} -m elf32_sparc"
5639          ;;
5640      esac
5641      ;;
5642    *64-bit*)
5643      case $host in
5644        x86_64-*linux*)
5645          LD="${LD-ld} -m elf_x86_64"
5646          ;;
5647        ppc*-*linux*|powerpc*-*linux*)
5648          LD="${LD-ld} -m elf64ppc"
5649          ;;
5650        s390*-*linux*)
5651          LD="${LD-ld} -m elf64_s390"
5652          ;;
5653        sparc*-*linux*)
5654          LD="${LD-ld} -m elf64_sparc"
5655          ;;
5656      esac
5657      ;;
5658    esac
5659  fi
5660  rm -rf conftest*
5661  ;;
5662
5663*-*-sco3.2v5*)
5664  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5665  SAVE_CFLAGS="$CFLAGS"
5666  CFLAGS="$CFLAGS -belf"
5667  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5668echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5669if test "${lt_cv_cc_needs_belf+set}" = set; then
5670  echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672  ac_ext=c
5673ac_cpp='$CPP $CPPFLAGS'
5674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677
5678     cat >conftest.$ac_ext <<_ACEOF
5679/* confdefs.h.  */
5680_ACEOF
5681cat confdefs.h >>conftest.$ac_ext
5682cat >>conftest.$ac_ext <<_ACEOF
5683/* end confdefs.h.  */
5684
5685int
5686main ()
5687{
5688
5689  ;
5690  return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext conftest$ac_exeext
5694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5695  (eval $ac_link) 2>conftest.er1
5696  ac_status=$?
5697  grep -v '^ *+' conftest.er1 >conftest.err
5698  rm -f conftest.er1
5699  cat conftest.err >&5
5700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701  (exit $ac_status); } &&
5702         { ac_try='test -z "$ac_c_werror_flag"
5703                         || test ! -s conftest.err'
5704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705  (eval $ac_try) 2>&5
5706  ac_status=$?
5707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708  (exit $ac_status); }; } &&
5709         { ac_try='test -s conftest$ac_exeext'
5710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711  (eval $ac_try) 2>&5
5712  ac_status=$?
5713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714  (exit $ac_status); }; }; then
5715  lt_cv_cc_needs_belf=yes
5716else
5717  echo "$as_me: failed program was:" >&5
5718sed 's/^/| /' conftest.$ac_ext >&5
5719
5720lt_cv_cc_needs_belf=no
5721fi
5722rm -f conftest.err conftest.$ac_objext \
5723      conftest$ac_exeext conftest.$ac_ext
5724     ac_ext=c
5725ac_cpp='$CPP $CPPFLAGS'
5726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5728ac_compiler_gnu=$ac_cv_c_compiler_gnu
5729
5730fi
5731echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5732echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5733  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5734    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5735    CFLAGS="$SAVE_CFLAGS"
5736  fi
5737  ;;
5738sparc*-*solaris*)
5739  # Find out which ABI we are using.
5740  echo 'int i;' > conftest.$ac_ext
5741  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742  (eval $ac_compile) 2>&5
5743  ac_status=$?
5744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745  (exit $ac_status); }; then
5746    case `/usr/bin/file conftest.o` in
5747    *64-bit*)
5748      case $lt_cv_prog_gnu_ld in
5749      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5750      *)    LD="${LD-ld} -64" ;;
5751      esac
5752      ;;
5753    esac
5754  fi
5755  rm -rf conftest*
5756  ;;
5757
5758
5759esac
5760
5761need_locks="$enable_libtool_lock"
5762
5763
5764ac_ext=c
5765ac_cpp='$CPP $CPPFLAGS'
5766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5768ac_compiler_gnu=$ac_cv_c_compiler_gnu
5769echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5770echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5771# On Suns, sometimes $CPP names a directory.
5772if test -n "$CPP" && test -d "$CPP"; then
5773  CPP=
5774fi
5775if test -z "$CPP"; then
5776  if test "${ac_cv_prog_CPP+set}" = set; then
5777  echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779      # Double quotes because CPP needs to be expanded
5780    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5781    do
5782      ac_preproc_ok=false
5783for ac_c_preproc_warn_flag in '' yes
5784do
5785  # Use a header file that comes with gcc, so configuring glibc
5786  # with a fresh cross-compiler works.
5787  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5788  # <limits.h> exists even on freestanding compilers.
5789  # On the NeXT, cc -E runs the code through the compiler's parser,
5790  # not just through cpp. "Syntax error" is here to catch this case.
5791  cat >conftest.$ac_ext <<_ACEOF
5792/* confdefs.h.  */
5793_ACEOF
5794cat confdefs.h >>conftest.$ac_ext
5795cat >>conftest.$ac_ext <<_ACEOF
5796/* end confdefs.h.  */
5797#ifdef __STDC__
5798# include <limits.h>
5799#else
5800# include <assert.h>
5801#endif
5802                     Syntax error
5803_ACEOF
5804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5805  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5806  ac_status=$?
5807  grep -v '^ *+' conftest.er1 >conftest.err
5808  rm -f conftest.er1
5809  cat conftest.err >&5
5810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811  (exit $ac_status); } >/dev/null; then
5812  if test -s conftest.err; then
5813    ac_cpp_err=$ac_c_preproc_warn_flag
5814    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5815  else
5816    ac_cpp_err=
5817  fi
5818else
5819  ac_cpp_err=yes
5820fi
5821if test -z "$ac_cpp_err"; then
5822  :
5823else
5824  echo "$as_me: failed program was:" >&5
5825sed 's/^/| /' conftest.$ac_ext >&5
5826
5827  # Broken: fails on valid input.
5828continue
5829fi
5830rm -f conftest.err conftest.$ac_ext
5831
5832  # OK, works on sane cases.  Now check whether non-existent headers
5833  # can be detected and how.
5834  cat >conftest.$ac_ext <<_ACEOF
5835/* confdefs.h.  */
5836_ACEOF
5837cat confdefs.h >>conftest.$ac_ext
5838cat >>conftest.$ac_ext <<_ACEOF
5839/* end confdefs.h.  */
5840#include <ac_nonexistent.h>
5841_ACEOF
5842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5843  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5844  ac_status=$?
5845  grep -v '^ *+' conftest.er1 >conftest.err
5846  rm -f conftest.er1
5847  cat conftest.err >&5
5848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849  (exit $ac_status); } >/dev/null; then
5850  if test -s conftest.err; then
5851    ac_cpp_err=$ac_c_preproc_warn_flag
5852    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5853  else
5854    ac_cpp_err=
5855  fi
5856else
5857  ac_cpp_err=yes
5858fi
5859if test -z "$ac_cpp_err"; then
5860  # Broken: success on invalid input.
5861continue
5862else
5863  echo "$as_me: failed program was:" >&5
5864sed 's/^/| /' conftest.$ac_ext >&5
5865
5866  # Passes both tests.
5867ac_preproc_ok=:
5868break
5869fi
5870rm -f conftest.err conftest.$ac_ext
5871
5872done
5873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5874rm -f conftest.err conftest.$ac_ext
5875if $ac_preproc_ok; then
5876  break
5877fi
5878
5879    done
5880    ac_cv_prog_CPP=$CPP
5881
5882fi
5883  CPP=$ac_cv_prog_CPP
5884else
5885  ac_cv_prog_CPP=$CPP
5886fi
5887echo "$as_me:$LINENO: result: $CPP" >&5
5888echo "${ECHO_T}$CPP" >&6
5889ac_preproc_ok=false
5890for ac_c_preproc_warn_flag in '' yes
5891do
5892  # Use a header file that comes with gcc, so configuring glibc
5893  # with a fresh cross-compiler works.
5894  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5895  # <limits.h> exists even on freestanding compilers.
5896  # On the NeXT, cc -E runs the code through the compiler's parser,
5897  # not just through cpp. "Syntax error" is here to catch this case.
5898  cat >conftest.$ac_ext <<_ACEOF
5899/* confdefs.h.  */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
5903/* end confdefs.h.  */
5904#ifdef __STDC__
5905# include <limits.h>
5906#else
5907# include <assert.h>
5908#endif
5909                     Syntax error
5910_ACEOF
5911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5912  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5913  ac_status=$?
5914  grep -v '^ *+' conftest.er1 >conftest.err
5915  rm -f conftest.er1
5916  cat conftest.err >&5
5917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918  (exit $ac_status); } >/dev/null; then
5919  if test -s conftest.err; then
5920    ac_cpp_err=$ac_c_preproc_warn_flag
5921    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5922  else
5923    ac_cpp_err=
5924  fi
5925else
5926  ac_cpp_err=yes
5927fi
5928if test -z "$ac_cpp_err"; then
5929  :
5930else
5931  echo "$as_me: failed program was:" >&5
5932sed 's/^/| /' conftest.$ac_ext >&5
5933
5934  # Broken: fails on valid input.
5935continue
5936fi
5937rm -f conftest.err conftest.$ac_ext
5938
5939  # OK, works on sane cases.  Now check whether non-existent headers
5940  # can be detected and how.
5941  cat >conftest.$ac_ext <<_ACEOF
5942/* confdefs.h.  */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h.  */
5947#include <ac_nonexistent.h>
5948_ACEOF
5949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5950  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5951  ac_status=$?
5952  grep -v '^ *+' conftest.er1 >conftest.err
5953  rm -f conftest.er1
5954  cat conftest.err >&5
5955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956  (exit $ac_status); } >/dev/null; then
5957  if test -s conftest.err; then
5958    ac_cpp_err=$ac_c_preproc_warn_flag
5959    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5960  else
5961    ac_cpp_err=
5962  fi
5963else
5964  ac_cpp_err=yes
5965fi
5966if test -z "$ac_cpp_err"; then
5967  # Broken: success on invalid input.
5968continue
5969else
5970  echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
5973  # Passes both tests.
5974ac_preproc_ok=:
5975break
5976fi
5977rm -f conftest.err conftest.$ac_ext
5978
5979done
5980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5981rm -f conftest.err conftest.$ac_ext
5982if $ac_preproc_ok; then
5983  :
5984else
5985  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5986See \`config.log' for more details." >&5
5987echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5988See \`config.log' for more details." >&2;}
5989   { (exit 1); exit 1; }; }
5990fi
5991
5992ac_ext=c
5993ac_cpp='$CPP $CPPFLAGS'
5994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997
5998
5999echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6000echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6001if test "${ac_cv_header_stdc+set}" = set; then
6002  echo $ECHO_N "(cached) $ECHO_C" >&6
6003else
6004  cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h.  */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h.  */
6010#include <stdlib.h>
6011#include <stdarg.h>
6012#include <string.h>
6013#include <float.h>
6014
6015int
6016main ()
6017{
6018
6019  ;
6020  return 0;
6021}
6022_ACEOF
6023rm -f conftest.$ac_objext
6024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6025  (eval $ac_compile) 2>conftest.er1
6026  ac_status=$?
6027  grep -v '^ *+' conftest.er1 >conftest.err
6028  rm -f conftest.er1
6029  cat conftest.err >&5
6030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031  (exit $ac_status); } &&
6032         { ac_try='test -z "$ac_c_werror_flag"
6033                         || test ! -s conftest.err'
6034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035  (eval $ac_try) 2>&5
6036  ac_status=$?
6037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038  (exit $ac_status); }; } &&
6039         { ac_try='test -s conftest.$ac_objext'
6040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041  (eval $ac_try) 2>&5
6042  ac_status=$?
6043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044  (exit $ac_status); }; }; then
6045  ac_cv_header_stdc=yes
6046else
6047  echo "$as_me: failed program was:" >&5
6048sed 's/^/| /' conftest.$ac_ext >&5
6049
6050ac_cv_header_stdc=no
6051fi
6052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6053
6054if test $ac_cv_header_stdc = yes; then
6055  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6056  cat >conftest.$ac_ext <<_ACEOF
6057/* confdefs.h.  */
6058_ACEOF
6059cat confdefs.h >>conftest.$ac_ext
6060cat >>conftest.$ac_ext <<_ACEOF
6061/* end confdefs.h.  */
6062#include <string.h>
6063
6064_ACEOF
6065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6066  $EGREP "memchr" >/dev/null 2>&1; then
6067  :
6068else
6069  ac_cv_header_stdc=no
6070fi
6071rm -f conftest*
6072
6073fi
6074
6075if test $ac_cv_header_stdc = yes; then
6076  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6077  cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h.  */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
6082/* end confdefs.h.  */
6083#include <stdlib.h>
6084
6085_ACEOF
6086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087  $EGREP "free" >/dev/null 2>&1; then
6088  :
6089else
6090  ac_cv_header_stdc=no
6091fi
6092rm -f conftest*
6093
6094fi
6095
6096if test $ac_cv_header_stdc = yes; then
6097  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6098  if test "$cross_compiling" = yes; then
6099  :
6100else
6101  cat >conftest.$ac_ext <<_ACEOF
6102/* confdefs.h.  */
6103_ACEOF
6104cat confdefs.h >>conftest.$ac_ext
6105cat >>conftest.$ac_ext <<_ACEOF
6106/* end confdefs.h.  */
6107#include <ctype.h>
6108#if ((' ' & 0x0FF) == 0x020)
6109# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6110# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6111#else
6112# define ISLOWER(c) \
6113                   (('a' <= (c) && (c) <= 'i') \
6114                     || ('j' <= (c) && (c) <= 'r') \
6115                     || ('s' <= (c) && (c) <= 'z'))
6116# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6117#endif
6118
6119#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6120int
6121main ()
6122{
6123  int i;
6124  for (i = 0; i < 256; i++)
6125    if (XOR (islower (i), ISLOWER (i))
6126        || toupper (i) != TOUPPER (i))
6127      exit(2);
6128  exit (0);
6129}
6130_ACEOF
6131rm -f conftest$ac_exeext
6132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6133  (eval $ac_link) 2>&5
6134  ac_status=$?
6135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138  (eval $ac_try) 2>&5
6139  ac_status=$?
6140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141  (exit $ac_status); }; }; then
6142  :
6143else
6144  echo "$as_me: program exited with status $ac_status" >&5
6145echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148( exit $ac_status )
6149ac_cv_header_stdc=no
6150fi
6151rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6152fi
6153fi
6154fi
6155echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6156echo "${ECHO_T}$ac_cv_header_stdc" >&6
6157if test $ac_cv_header_stdc = yes; then
6158
6159cat >>confdefs.h <<\_ACEOF
6160#define STDC_HEADERS 1
6161_ACEOF
6162
6163fi
6164
6165# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6176                  inttypes.h stdint.h unistd.h
6177do
6178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6179echo "$as_me:$LINENO: checking for $ac_header" >&5
6180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6181if eval "test \"\${$as_ac_Header+set}\" = set"; then
6182  echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184  cat >conftest.$ac_ext <<_ACEOF
6185/* confdefs.h.  */
6186_ACEOF
6187cat confdefs.h >>conftest.$ac_ext
6188cat >>conftest.$ac_ext <<_ACEOF
6189/* end confdefs.h.  */
6190$ac_includes_default
6191
6192#include <$ac_header>
6193_ACEOF
6194rm -f conftest.$ac_objext
6195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196  (eval $ac_compile) 2>conftest.er1
6197  ac_status=$?
6198  grep -v '^ *+' conftest.er1 >conftest.err
6199  rm -f conftest.er1
6200  cat conftest.err >&5
6201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202  (exit $ac_status); } &&
6203         { ac_try='test -z "$ac_c_werror_flag"
6204                         || test ! -s conftest.err'
6205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206  (eval $ac_try) 2>&5
6207  ac_status=$?
6208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209  (exit $ac_status); }; } &&
6210         { ac_try='test -s conftest.$ac_objext'
6211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212  (eval $ac_try) 2>&5
6213  ac_status=$?
6214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215  (exit $ac_status); }; }; then
6216  eval "$as_ac_Header=yes"
6217else
6218  echo "$as_me: failed program was:" >&5
6219sed 's/^/| /' conftest.$ac_ext >&5
6220
6221eval "$as_ac_Header=no"
6222fi
6223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6224fi
6225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6227if test `eval echo '${'$as_ac_Header'}'` = yes; then
6228  cat >>confdefs.h <<_ACEOF
6229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6230_ACEOF
6231
6232fi
6233
6234done
6235
6236
6237
6238for ac_header in dlfcn.h
6239do
6240as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6241if eval "test \"\${$as_ac_Header+set}\" = set"; then
6242  echo "$as_me:$LINENO: checking for $ac_header" >&5
6243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6244if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245  echo $ECHO_N "(cached) $ECHO_C" >&6
6246fi
6247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6249else
6250  # Is the header compilable?
6251echo "$as_me:$LINENO: checking $ac_header usability" >&5
6252echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6253cat >conftest.$ac_ext <<_ACEOF
6254/* confdefs.h.  */
6255_ACEOF
6256cat confdefs.h >>conftest.$ac_ext
6257cat >>conftest.$ac_ext <<_ACEOF
6258/* end confdefs.h.  */
6259$ac_includes_default
6260#include <$ac_header>
6261_ACEOF
6262rm -f conftest.$ac_objext
6263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6264  (eval $ac_compile) 2>conftest.er1
6265  ac_status=$?
6266  grep -v '^ *+' conftest.er1 >conftest.err
6267  rm -f conftest.er1
6268  cat conftest.err >&5
6269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270  (exit $ac_status); } &&
6271         { ac_try='test -z "$ac_c_werror_flag"
6272                         || test ! -s conftest.err'
6273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274  (eval $ac_try) 2>&5
6275  ac_status=$?
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); }; } &&
6278         { ac_try='test -s conftest.$ac_objext'
6279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280  (eval $ac_try) 2>&5
6281  ac_status=$?
6282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283  (exit $ac_status); }; }; then
6284  ac_header_compiler=yes
6285else
6286  echo "$as_me: failed program was:" >&5
6287sed 's/^/| /' conftest.$ac_ext >&5
6288
6289ac_header_compiler=no
6290fi
6291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6292echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6293echo "${ECHO_T}$ac_header_compiler" >&6
6294
6295# Is the header present?
6296echo "$as_me:$LINENO: checking $ac_header presence" >&5
6297echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6298cat >conftest.$ac_ext <<_ACEOF
6299/* confdefs.h.  */
6300_ACEOF
6301cat confdefs.h >>conftest.$ac_ext
6302cat >>conftest.$ac_ext <<_ACEOF
6303/* end confdefs.h.  */
6304#include <$ac_header>
6305_ACEOF
6306if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6307  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6308  ac_status=$?
6309  grep -v '^ *+' conftest.er1 >conftest.err
6310  rm -f conftest.er1
6311  cat conftest.err >&5
6312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313  (exit $ac_status); } >/dev/null; then
6314  if test -s conftest.err; then
6315    ac_cpp_err=$ac_c_preproc_warn_flag
6316    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6317  else
6318    ac_cpp_err=
6319  fi
6320else
6321  ac_cpp_err=yes
6322fi
6323if test -z "$ac_cpp_err"; then
6324  ac_header_preproc=yes
6325else
6326  echo "$as_me: failed program was:" >&5
6327sed 's/^/| /' conftest.$ac_ext >&5
6328
6329  ac_header_preproc=no
6330fi
6331rm -f conftest.err conftest.$ac_ext
6332echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6333echo "${ECHO_T}$ac_header_preproc" >&6
6334
6335# So?  What about this header?
6336case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6337  yes:no: )
6338    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6339echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6340    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6341echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6342    ac_header_preproc=yes
6343    ;;
6344  no:yes:* )
6345    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6346echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6347    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6348echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6349    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6350echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6351    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6352echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6353    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6354echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6355    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6356echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6357    (
6358      cat <<\_ASBOX
6359## -------------------------------------------- ##
6360## Report this to coin-discuss@list.coin-or.org ##
6361## -------------------------------------------- ##
6362_ASBOX
6363    ) |
6364      sed "s/^/$as_me: WARNING:     /" >&2
6365    ;;
6366esac
6367echo "$as_me:$LINENO: checking for $ac_header" >&5
6368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6369if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370  echo $ECHO_N "(cached) $ECHO_C" >&6
6371else
6372  eval "$as_ac_Header=\$ac_header_preproc"
6373fi
6374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6376
6377fi
6378if test `eval echo '${'$as_ac_Header'}'` = yes; then
6379  cat >>confdefs.h <<_ACEOF
6380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6381_ACEOF
6382
6383fi
6384
6385done
6386
6387
6388
6389if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6390    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6391    (test "X$CXX" != "Xg++"))) ; then
6392  ac_ext=cc
6393ac_cpp='$CXXCPP $CPPFLAGS'
6394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6397echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6398echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6399if test -z "$CXXCPP"; then
6400  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6401  echo $ECHO_N "(cached) $ECHO_C" >&6
6402else
6403      # Double quotes because CXXCPP needs to be expanded
6404    for CXXCPP in "$CXX -E" "/lib/cpp"
6405    do
6406      ac_preproc_ok=false
6407for ac_cxx_preproc_warn_flag in '' yes
6408do
6409  # Use a header file that comes with gcc, so configuring glibc
6410  # with a fresh cross-compiler works.
6411  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6412  # <limits.h> exists even on freestanding compilers.
6413  # On the NeXT, cc -E runs the code through the compiler's parser,
6414  # not just through cpp. "Syntax error" is here to catch this case.
6415  cat >conftest.$ac_ext <<_ACEOF
6416/* confdefs.h.  */
6417_ACEOF
6418cat confdefs.h >>conftest.$ac_ext
6419cat >>conftest.$ac_ext <<_ACEOF
6420/* end confdefs.h.  */
6421#ifdef __STDC__
6422# include <limits.h>
6423#else
6424# include <assert.h>
6425#endif
6426                     Syntax error
6427_ACEOF
6428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6429  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6430  ac_status=$?
6431  grep -v '^ *+' conftest.er1 >conftest.err
6432  rm -f conftest.er1
6433  cat conftest.err >&5
6434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435  (exit $ac_status); } >/dev/null; then
6436  if test -s conftest.err; then
6437    ac_cpp_err=$ac_cxx_preproc_warn_flag
6438    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6439  else
6440    ac_cpp_err=
6441  fi
6442else
6443  ac_cpp_err=yes
6444fi
6445if test -z "$ac_cpp_err"; then
6446  :
6447else
6448  echo "$as_me: failed program was:" >&5
6449sed 's/^/| /' conftest.$ac_ext >&5
6450
6451  # Broken: fails on valid input.
6452continue
6453fi
6454rm -f conftest.err conftest.$ac_ext
6455
6456  # OK, works on sane cases.  Now check whether non-existent headers
6457  # can be detected and how.
6458  cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h.  */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h.  */
6464#include <ac_nonexistent.h>
6465_ACEOF
6466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468  ac_status=$?
6469  grep -v '^ *+' conftest.er1 >conftest.err
6470  rm -f conftest.er1
6471  cat conftest.err >&5
6472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473  (exit $ac_status); } >/dev/null; then
6474  if test -s conftest.err; then
6475    ac_cpp_err=$ac_cxx_preproc_warn_flag
6476    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6477  else
6478    ac_cpp_err=
6479  fi
6480else
6481  ac_cpp_err=yes
6482fi
6483if test -z "$ac_cpp_err"; then
6484  # Broken: success on invalid input.
6485continue
6486else
6487  echo "$as_me: failed program was:" >&5
6488sed 's/^/| /' conftest.$ac_ext >&5
6489
6490  # Passes both tests.
6491ac_preproc_ok=:
6492break
6493fi
6494rm -f conftest.err conftest.$ac_ext
6495
6496done
6497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6498rm -f conftest.err conftest.$ac_ext
6499if $ac_preproc_ok; then
6500  break
6501fi
6502
6503    done
6504    ac_cv_prog_CXXCPP=$CXXCPP
6505
6506fi
6507  CXXCPP=$ac_cv_prog_CXXCPP
6508else
6509  ac_cv_prog_CXXCPP=$CXXCPP
6510fi
6511echo "$as_me:$LINENO: result: $CXXCPP" >&5
6512echo "${ECHO_T}$CXXCPP" >&6
6513ac_preproc_ok=false
6514for ac_cxx_preproc_warn_flag in '' yes
6515do
6516  # Use a header file that comes with gcc, so configuring glibc
6517  # with a fresh cross-compiler works.
6518  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6519  # <limits.h> exists even on freestanding compilers.
6520  # On the NeXT, cc -E runs the code through the compiler's parser,
6521  # not just through cpp. "Syntax error" is here to catch this case.
6522  cat >conftest.$ac_ext <<_ACEOF
6523/* confdefs.h.  */
6524_ACEOF
6525cat confdefs.h >>conftest.$ac_ext
6526cat >>conftest.$ac_ext <<_ACEOF
6527/* end confdefs.h.  */
6528#ifdef __STDC__
6529# include <limits.h>
6530#else
6531# include <assert.h>
6532#endif
6533                     Syntax error
6534_ACEOF
6535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6536  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6537  ac_status=$?
6538  grep -v '^ *+' conftest.er1 >conftest.err
6539  rm -f conftest.er1
6540  cat conftest.err >&5
6541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542  (exit $ac_status); } >/dev/null; then
6543  if test -s conftest.err; then
6544    ac_cpp_err=$ac_cxx_preproc_warn_flag
6545    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6546  else
6547    ac_cpp_err=
6548  fi
6549else
6550  ac_cpp_err=yes
6551fi
6552if test -z "$ac_cpp_err"; then
6553  :
6554else
6555  echo "$as_me: failed program was:" >&5
6556sed 's/^/| /' conftest.$ac_ext >&5
6557
6558  # Broken: fails on valid input.
6559continue
6560fi
6561rm -f conftest.err conftest.$ac_ext
6562
6563  # OK, works on sane cases.  Now check whether non-existent headers
6564  # can be detected and how.
6565  cat >conftest.$ac_ext <<_ACEOF
6566/* confdefs.h.  */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h.  */
6571#include <ac_nonexistent.h>
6572_ACEOF
6573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6574  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6575  ac_status=$?
6576  grep -v '^ *+' conftest.er1 >conftest.err
6577  rm -f conftest.er1
6578  cat conftest.err >&5
6579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580  (exit $ac_status); } >/dev/null; then
6581  if test -s conftest.err; then
6582    ac_cpp_err=$ac_cxx_preproc_warn_flag
6583    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6584  else
6585    ac_cpp_err=
6586  fi
6587else
6588  ac_cpp_err=yes
6589fi
6590if test -z "$ac_cpp_err"; then
6591  # Broken: success on invalid input.
6592continue
6593else
6594  echo "$as_me: failed program was:" >&5
6595sed 's/^/| /' conftest.$ac_ext >&5
6596
6597  # Passes both tests.
6598ac_preproc_ok=:
6599break
6600fi
6601rm -f conftest.err conftest.$ac_ext
6602
6603done
6604# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6605rm -f conftest.err conftest.$ac_ext
6606if $ac_preproc_ok; then
6607  :
6608else
6609  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6610See \`config.log' for more details." >&5
6611echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6612See \`config.log' for more details." >&2;}
6613   { (exit 1); exit 1; }; }
6614fi
6615
6616ac_ext=cc
6617ac_cpp='$CXXCPP $CPPFLAGS'
6618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6621
6622fi
6623
6624ac_ext=f
6625ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6626ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6627ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6628if test -n "$ac_tool_prefix"; then
6629  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6630  do
6631    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6632set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6633echo "$as_me:$LINENO: checking for $ac_word" >&5
6634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6635if test "${ac_cv_prog_F77+set}" = set; then
6636  echo $ECHO_N "(cached) $ECHO_C" >&6
6637else
6638  if test -n "$F77"; then
6639  ac_cv_prog_F77="$F77" # Let the user override the test.
6640else
6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644  IFS=$as_save_IFS
6645  test -z "$as_dir" && as_dir=.
6646  for ac_exec_ext in '' $ac_executable_extensions; do
6647  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650    break 2
6651  fi
6652done
6653done
6654
6655fi
6656fi
6657F77=$ac_cv_prog_F77
6658if test -n "$F77"; then
6659  echo "$as_me:$LINENO: result: $F77" >&5
6660echo "${ECHO_T}$F77" >&6
6661else
6662  echo "$as_me:$LINENO: result: no" >&5
6663echo "${ECHO_T}no" >&6
6664fi
6665
6666    test -n "$F77" && break
6667  done
6668fi
6669if test -z "$F77"; then
6670  ac_ct_F77=$F77
6671  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6672do
6673  # Extract the first word of "$ac_prog", so it can be a program name with args.
6674set dummy $ac_prog; ac_word=$2
6675echo "$as_me:$LINENO: checking for $ac_word" >&5
6676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6677if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6678  echo $ECHO_N "(cached) $ECHO_C" >&6
6679else
6680  if test -n "$ac_ct_F77"; then
6681  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6682else
6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686  IFS=$as_save_IFS
6687  test -z "$as_dir" && as_dir=.
6688  for ac_exec_ext in '' $ac_executable_extensions; do
6689  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690    ac_cv_prog_ac_ct_F77="$ac_prog"
6691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692    break 2
6693  fi
6694done
6695done
6696
6697fi
6698fi
6699ac_ct_F77=$ac_cv_prog_ac_ct_F77
6700if test -n "$ac_ct_F77"; then
6701  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6702echo "${ECHO_T}$ac_ct_F77" >&6
6703else
6704  echo "$as_me:$LINENO: result: no" >&5
6705echo "${ECHO_T}no" >&6
6706fi
6707
6708  test -n "$ac_ct_F77" && break
6709done
6710
6711  F77=$ac_ct_F77
6712fi
6713
6714
6715# Provide some information about the compiler.
6716echo "$as_me:6716:" \
6717     "checking for Fortran 77 compiler version" >&5
6718ac_compiler=`set X $ac_compile; echo $2`
6719{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6720  (eval $ac_compiler --version </dev/null >&5) 2>&5
6721  ac_status=$?
6722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723  (exit $ac_status); }
6724{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6725  (eval $ac_compiler -v </dev/null >&5) 2>&5
6726  ac_status=$?
6727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728  (exit $ac_status); }
6729{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6730  (eval $ac_compiler -V </dev/null >&5) 2>&5
6731  ac_status=$?
6732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); }
6734rm -f a.out
6735
6736# If we don't use `.F' as extension, the preprocessor is not run on the
6737# input file.  (Note that this only needs to work for GNU compilers.)
6738ac_save_ext=$ac_ext
6739ac_ext=F
6740echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6741echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6742if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6743  echo $ECHO_N "(cached) $ECHO_C" >&6
6744else
6745  cat >conftest.$ac_ext <<_ACEOF
6746      program main
6747#ifndef __GNUC__
6748       choke me
6749#endif
6750
6751      end
6752_ACEOF
6753rm -f conftest.$ac_objext
6754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6755  (eval $ac_compile) 2>conftest.er1
6756  ac_status=$?
6757  grep -v '^ *+' conftest.er1 >conftest.err
6758  rm -f conftest.er1
6759  cat conftest.err >&5
6760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761  (exit $ac_status); } &&
6762         { ac_try='test -z "$ac_f77_werror_flag"
6763                         || test ! -s conftest.err'
6764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765  (eval $ac_try) 2>&5
6766  ac_status=$?
6767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768  (exit $ac_status); }; } &&
6769         { ac_try='test -s conftest.$ac_objext'
6770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771  (eval $ac_try) 2>&5
6772  ac_status=$?
6773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774  (exit $ac_status); }; }; then
6775  ac_compiler_gnu=yes
6776else
6777  echo "$as_me: failed program was:" >&5
6778sed 's/^/| /' conftest.$ac_ext >&5
6779
6780ac_compiler_gnu=no
6781fi
6782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6783ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6784
6785fi
6786echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6787echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6788ac_ext=$ac_save_ext
6789ac_test_FFLAGS=${FFLAGS+set}
6790ac_save_FFLAGS=$FFLAGS
6791FFLAGS=
6792echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6793echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6794if test "${ac_cv_prog_f77_g+set}" = set; then
6795  echo $ECHO_N "(cached) $ECHO_C" >&6
6796else
6797  FFLAGS=-g
6798cat >conftest.$ac_ext <<_ACEOF
6799      program main
6800
6801      end
6802_ACEOF
6803rm -f conftest.$ac_objext
6804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6805  (eval $ac_compile) 2>conftest.er1
6806  ac_status=$?
6807  grep -v '^ *+' conftest.er1 >conftest.err
6808  rm -f conftest.er1
6809  cat conftest.err >&5
6810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811  (exit $ac_status); } &&
6812         { ac_try='test -z "$ac_f77_werror_flag"
6813                         || test ! -s conftest.err'
6814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815  (eval $ac_try) 2>&5
6816  ac_status=$?
6817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818  (exit $ac_status); }; } &&
6819         { ac_try='test -s conftest.$ac_objext'
6820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821  (eval $ac_try) 2>&5
6822  ac_status=$?
6823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824  (exit $ac_status); }; }; then
6825  ac_cv_prog_f77_g=yes
6826else
6827  echo "$as_me: failed program was:" >&5
6828sed 's/^/| /' conftest.$ac_ext >&5
6829
6830ac_cv_prog_f77_g=no
6831fi
6832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6833
6834fi
6835echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6836echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6837if test "$ac_test_FFLAGS" = set; then
6838  FFLAGS=$ac_save_FFLAGS
6839elif test $ac_cv_prog_f77_g = yes; then
6840  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6841    FFLAGS="-g -O2"
6842  else
6843    FFLAGS="-g"
6844  fi
6845else
6846  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6847    FFLAGS="-O2"
6848  else
6849    FFLAGS=
6850  fi
6851fi
6852
6853G77=`test $ac_compiler_gnu = yes && echo yes`
6854ac_ext=c
6855ac_cpp='$CPP $CPPFLAGS'
6856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858ac_compiler_gnu=$ac_cv_c_compiler_gnu
6859
6860
6861
6862# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6863
6864# find the maximum length of command line arguments
6865echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6866echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6867if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6868  echo $ECHO_N "(cached) $ECHO_C" >&6
6869else
6870    i=0
6871  teststring="ABCD"
6872
6873  case $build_os in
6874  msdosdjgpp*)
6875    # On DJGPP, this test can blow up pretty badly due to problems in libc
6876    # (any single argument exceeding 2000 bytes causes a buffer overrun
6877    # during glob expansion).  Even if it were fixed, the result of this
6878    # check would be larger than it should be.
6879    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6880    ;;
6881
6882  gnu*)
6883    # Under GNU Hurd, this test is not required because there is
6884    # no limit to the length of command line arguments.
6885    # Libtool will interpret -1 as no limit whatsoever
6886    lt_cv_sys_max_cmd_len=-1;
6887    ;;
6888
6889  cygwin* | mingw*)
6890    # On Win9x/ME, this test blows up -- it succeeds, but takes
6891    # about 5 minutes as the teststring grows exponentially.
6892    # Worse, since 9x/ME are not pre-emptively multitasking,
6893    # you end up with a "frozen" computer, even though with patience
6894    # the test eventually succeeds (with a max line length of 256k).
6895    # Instead, let's just punt: use the minimum linelength reported by
6896    # all of the supported platforms: 8192 (on NT/2K/XP).
6897    lt_cv_sys_max_cmd_len=8192;
6898    ;;
6899
6900  amigaos*)
6901    # On AmigaOS with pdksh, this test takes hours, literally.
6902    # So we just punt and use a minimum line length of 8192.
6903    lt_cv_sys_max_cmd_len=8192;
6904    ;;
6905
6906  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6907    # This has been around since 386BSD, at least.  Likely further.
6908    if test -x /sbin/sysctl; then
6909      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6910    elif test -x /usr/sbin/sysctl; then
6911      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6912    else
6913      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6914    fi
6915    # And add a safety zone
6916    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6917    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6918    ;;
6919
6920  interix*)
6921    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6922    lt_cv_sys_max_cmd_len=196608
6923    ;;
6924
6925  osf*)
6926    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6927    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6928    # nice to cause kernel panics so lets avoid the loop below.
6929    # First set a reasonable default.
6930    lt_cv_sys_max_cmd_len=16384
6931    #
6932    if test -x /sbin/sysconfig; then
6933      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6934        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6935      esac
6936    fi
6937    ;;
6938  sco3.2v5*)
6939    lt_cv_sys_max_cmd_len=102400
6940    ;;
6941  sysv5* | sco5v6* | sysv4.2uw2*)
6942    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6943    if test -n "$kargmax"; then
6944      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6945    else
6946      lt_cv_sys_max_cmd_len=32768
6947    fi
6948    ;;
6949  *)
6950    # If test is not a shell built-in, we'll probably end up computing a
6951    # maximum length that is only half of the actual maximum length, but
6952    # we can't tell.
6953    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6954    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6955               = "XX$teststring") >/dev/null 2>&1 &&
6956            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6957            lt_cv_sys_max_cmd_len=$new_result &&
6958            test $i != 17 # 1/2 MB should be enough
6959    do
6960      i=`expr $i + 1`
6961      teststring=$teststring$teststring
6962    done
6963    teststring=
6964    # Add a significant safety factor because C++ compilers can tack on massive
6965    # amounts of additional arguments before passing them to the linker.
6966    # It appears as though 1/2 is a usable value.
6967    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6968    ;;
6969  esac
6970
6971fi
6972
6973if test -n $lt_cv_sys_max_cmd_len ; then
6974  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6975echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6976else
6977  echo "$as_me:$LINENO: result: none" >&5
6978echo "${ECHO_T}none" >&6
6979fi
6980
6981
6982
6983
6984# Check for command to grab the raw symbol name followed by C symbol from nm.
6985echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6986echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6987if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6988  echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990
6991# These are sane defaults that work on at least a few old systems.
6992# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6993
6994# Character class describing NM global symbol codes.
6995symcode='[BCDEGRST]'
6996
6997# Regexp to match symbols that can be accessed directly from C.
6998sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6999
7000# Transform an extracted symbol line into a proper C declaration
7001lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7002
7003# Transform an extracted symbol line into symbol name and symbol address
7004lt_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'"
7005
7006# Define system-specific variables.
7007case $host_os in
7008aix*)
7009  symcode='[BCDT]'
7010  ;;
7011cygwin* | mingw* | pw32*)
7012  symcode='[ABCDGISTW]'
7013  ;;
7014hpux*) # Its linker distinguishes data from code symbols
7015  if test "$host_cpu" = ia64; then
7016    symcode='[ABCDEGRST]'
7017  fi
7018  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7019  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'"
7020  ;;
7021linux*)
7022  if test "$host_cpu" = ia64; then
7023    symcode='[ABCDGIRSTW]'
7024    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7025    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'"
7026  fi
7027  ;;
7028irix* | nonstopux*)
7029  symcode='[BCDEGRST]'
7030  ;;
7031osf*)
7032  symcode='[BCDEGQRST]'
7033  ;;
7034solaris*)
7035  symcode='[BDRT]'
7036  ;;
7037sco3.2v5*)
7038  symcode='[DT]'
7039  ;;
7040sysv4.2uw2*)
7041  symcode='[DT]'
7042  ;;
7043sysv5* | sco5v6* | unixware* | OpenUNIX*)
7044  symcode='[ABDT]'
7045  ;;
7046sysv4)
7047  symcode='[DFNSTU]'
7048  ;;
7049esac
7050
7051# Handle CRLF in mingw tool chain
7052opt_cr=
7053case $build_os in
7054mingw*)
7055  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7056  ;;
7057esac
7058
7059# If we're using GNU nm, then use its standard symbol codes.
7060case `$NM -V 2>&1` in
7061*GNU* | *'with BFD'*)
7062  symcode='[ABCDGIRSTW]' ;;
7063esac
7064
7065# Try without a prefix undercore, then with it.
7066for ac_symprfx in "" "_"; do
7067
7068  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7069  symxfrm="\\1 $ac_symprfx\\2 \\2"
7070
7071  # Write the raw and C identifiers.
7072  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7073
7074  # Check to see that the pipe works correctly.
7075  pipe_works=no
7076
7077  rm -f conftest*
7078  cat > conftest.$ac_ext <<EOF
7079#ifdef __cplusplus
7080extern "C" {
7081#endif
7082char nm_test_var;
7083void nm_test_func(){}
7084#ifdef __cplusplus
7085}
7086#endif
7087int main(){nm_test_var='a';nm_test_func();return(0);}
7088EOF
7089
7090  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7091  (eval $ac_compile) 2>&5
7092  ac_status=$?
7093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094  (exit $ac_status); }; then
7095    # Now try to grab the symbols.
7096    nlist=conftest.nm
7097    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7098  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7099  ac_status=$?
7100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101  (exit $ac_status); } && test -s "$nlist"; then
7102      # Try sorting and uniquifying the output.
7103      if sort "$nlist" | uniq > "$nlist"T; then
7104        mv -f "$nlist"T "$nlist"
7105      else
7106        rm -f "$nlist"T
7107      fi
7108
7109      # Make sure that we snagged all the symbols we need.
7110      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7111        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7112          cat <<EOF > conftest.$ac_ext
7113#ifdef __cplusplus
7114extern "C" {
7115#endif
7116
7117EOF
7118          # Now generate the symbol file.
7119          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7120
7121          cat <<EOF >> conftest.$ac_ext
7122#if defined (__STDC__) && __STDC__
7123# define lt_ptr_t void *
7124#else
7125# define lt_ptr_t char *
7126# define const
7127#endif
7128
7129/* The mapping between symbol names and symbols. */
7130const struct {
7131  const char *name;
7132  lt_ptr_t address;
7133}
7134lt_preloaded_symbols[] =
7135{
7136EOF
7137          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7138          cat <<\EOF >> conftest.$ac_ext
7139  {0, (lt_ptr_t) 0}
7140};
7141
7142#ifdef __cplusplus
7143}
7144#endif
7145EOF
7146          # Now try linking the two files.
7147          mv conftest.$ac_objext conftstm.$ac_objext
7148          lt_save_LIBS="$LIBS"
7149          lt_save_CFLAGS="$CFLAGS"
7150          LIBS="conftstm.$ac_objext"
7151          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7152          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7153  (eval $ac_link) 2>&5
7154  ac_status=$?
7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7157            pipe_works=yes
7158          fi
7159          LIBS="$lt_save_LIBS"
7160          CFLAGS="$lt_save_CFLAGS"
7161        else
7162          echo "cannot find nm_test_func in $nlist" >&5
7163        fi
7164      else
7165        echo "cannot find nm_test_var in $nlist" >&5
7166      fi
7167    else
7168      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7169    fi
7170  else
7171    echo "$progname: failed program was:" >&5
7172    cat conftest.$ac_ext >&5
7173  fi
7174  rm -f conftest* conftst*
7175
7176  # Do not use the global_symbol_pipe unless it works.
7177  if test "$pipe_works" = yes; then
7178    break
7179  else
7180    lt_cv_sys_global_symbol_pipe=
7181  fi
7182done
7183
7184fi
7185
7186if test -z "$lt_cv_sys_global_symbol_pipe"; then
7187  lt_cv_sys_global_symbol_to_cdecl=
7188fi
7189if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7190  echo "$as_me:$LINENO: result: failed" >&5
7191echo "${ECHO_T}failed" >&6
7192else
7193  echo "$as_me:$LINENO: result: ok" >&5
7194echo "${ECHO_T}ok" >&6
7195fi
7196
7197echo "$as_me:$LINENO: checking for objdir" >&5
7198echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7199if test "${lt_cv_objdir+set}" = set; then
7200  echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202  rm -f .libs 2>/dev/null
7203mkdir .libs 2>/dev/null
7204if test -d .libs; then
7205  lt_cv_objdir=.libs
7206else
7207  # MS-DOS does not allow filenames that begin with a dot.
7208  lt_cv_objdir=_libs
7209fi
7210rmdir .libs 2>/dev/null
7211fi
7212echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7213echo "${ECHO_T}$lt_cv_objdir" >&6
7214objdir=$lt_cv_objdir
7215
7216
7217
7218
7219
7220case $host_os in
7221aix3*)
7222  # AIX sometimes has problems with the GCC collect2 program.  For some
7223  # reason, if we set the COLLECT_NAMES environment variable, the problems
7224  # vanish in a puff of smoke.
7225  if test "X${COLLECT_NAMES+set}" != Xset; then
7226    COLLECT_NAMES=
7227    export COLLECT_NAMES
7228  fi
7229  ;;
7230esac
7231
7232# Sed substitution that helps us do robust quoting.  It backslashifies
7233# metacharacters that are still active within double-quoted strings.
7234Xsed='sed -e 1s/^X//'
7235sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7236
7237# Same as above, but do not quote variable references.
7238double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7239
7240# Sed substitution to delay expansion of an escaped shell variable in a
7241# double_quote_subst'ed string.
7242delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7243
7244# Sed substitution to avoid accidental globbing in evaled expressions
7245no_glob_subst='s/\*/\\\*/g'
7246
7247# Constants:
7248rm="rm -f"
7249
7250# Global variables:
7251default_ofile=libtool
7252can_build_shared=yes
7253
7254# All known linkers require a `.a' archive for static linking (except MSVC,
7255# which needs '.lib').
7256libext=a
7257ltmain="$ac_aux_dir/ltmain.sh"
7258ofile="$default_ofile"
7259with_gnu_ld="$lt_cv_prog_gnu_ld"
7260
7261if test -n "$ac_tool_prefix"; then
7262  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7263set dummy ${ac_tool_prefix}ar; ac_word=$2
7264echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7266if test "${ac_cv_prog_AR+set}" = set; then
7267  echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269  if test -n "$AR"; then
7270  ac_cv_prog_AR="$AR" # Let the user override the test.
7271else
7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275  IFS=$as_save_IFS
7276  test -z "$as_dir" && as_dir=.
7277  for ac_exec_ext in '' $ac_executable_extensions; do
7278  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279    ac_cv_prog_AR="${ac_tool_prefix}ar"
7280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281    break 2
7282  fi
7283done
7284done
7285
7286fi
7287fi
7288AR=$ac_cv_prog_AR
7289if test -n "$AR"; then
7290  echo "$as_me:$LINENO: result: $AR" >&5
7291echo "${ECHO_T}$AR" >&6
7292else
7293  echo "$as_me:$LINENO: result: no" >&5
7294echo "${ECHO_T}no" >&6
7295fi
7296
7297fi
7298if test -z "$ac_cv_prog_AR"; then
7299  ac_ct_AR=$AR
7300  # Extract the first word of "ar", so it can be a program name with args.
7301set dummy ar; ac_word=$2
7302echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7304if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7305  echo $ECHO_N "(cached) $ECHO_C" >&6
7306else
7307  if test -n "$ac_ct_AR"; then
7308  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313  IFS=$as_save_IFS
7314  test -z "$as_dir" && as_dir=.
7315  for ac_exec_ext in '' $ac_executable_extensions; do
7316  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317    ac_cv_prog_ac_ct_AR="ar"
7318    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319    break 2
7320  fi
7321done
7322done
7323
7324  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7325fi
7326fi
7327ac_ct_AR=$ac_cv_prog_ac_ct_AR
7328if test -n "$ac_ct_AR"; then
7329  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7330echo "${ECHO_T}$ac_ct_AR" >&6
7331else
7332  echo "$as_me:$LINENO: result: no" >&5
7333echo "${ECHO_T}no" >&6
7334fi
7335
7336  AR=$ac_ct_AR
7337else
7338  AR="$ac_cv_prog_AR"
7339fi
7340
7341if test -n "$ac_tool_prefix"; then
7342  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7343set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7344echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346if test "${ac_cv_prog_RANLIB+set}" = set; then
7347  echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349  if test -n "$RANLIB"; then
7350  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7351else
7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355  IFS=$as_save_IFS
7356  test -z "$as_dir" && as_dir=.
7357  for ac_exec_ext in '' $ac_executable_extensions; do
7358  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361    break 2
7362  fi
7363done
7364done
7365
7366fi
7367fi
7368RANLIB=$ac_cv_prog_RANLIB
7369if test -n "$RANLIB"; then
7370  echo "$as_me:$LINENO: result: $RANLIB" >&5
7371echo "${ECHO_T}$RANLIB" >&6
7372else
7373  echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375fi
7376
7377fi
7378if test -z "$ac_cv_prog_RANLIB"; then
7379  ac_ct_RANLIB=$RANLIB
7380  # Extract the first word of "ranlib", so it can be a program name with args.
7381set dummy ranlib; ac_word=$2
7382echo "$as_me:$LINENO: checking for $ac_word" >&5
7383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7384if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7385  echo $ECHO_N "(cached) $ECHO_C" >&6
7386else
7387  if test -n "$ac_ct_RANLIB"; then
7388  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7389else
7390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393  IFS=$as_save_IFS
7394  test -z "$as_dir" && as_dir=.
7395  for ac_exec_ext in '' $ac_executable_extensions; do
7396  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397    ac_cv_prog_ac_ct_RANLIB="ranlib"
7398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399    break 2
7400  fi
7401done
7402done
7403
7404  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7405fi
7406fi
7407ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7408if test -n "$ac_ct_RANLIB"; then
7409  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7410echo "${ECHO_T}$ac_ct_RANLIB" >&6
7411else
7412  echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6
7414fi
7415
7416  RANLIB=$ac_ct_RANLIB
7417else
7418  RANLIB="$ac_cv_prog_RANLIB"
7419fi
7420
7421if test -n "$ac_tool_prefix"; then
7422  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7423set dummy ${ac_tool_prefix}strip; ac_word=$2
7424echo "$as_me:$LINENO: checking for $ac_word" >&5
7425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7426if test "${ac_cv_prog_STRIP+set}" = set; then
7427  echo $ECHO_N "(cached) $ECHO_C" >&6
7428else
7429  if test -n "$STRIP"; then
7430  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7431else
7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH
7434do
7435  IFS=$as_save_IFS
7436  test -z "$as_dir" && as_dir=.
7437  for ac_exec_ext in '' $ac_executable_extensions; do
7438  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7440    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441    break 2
7442  fi
7443done
7444done
7445
7446fi
7447fi
7448STRIP=$ac_cv_prog_STRIP
7449if test -n "$STRIP"; then
7450  echo "$as_me:$LINENO: result: $STRIP" >&5
7451echo "${ECHO_T}$STRIP" >&6
7452else
7453  echo "$as_me:$LINENO: result: no" >&5
7454echo "${ECHO_T}no" >&6
7455fi
7456
7457fi
7458if test -z "$ac_cv_prog_STRIP"; then
7459  ac_ct_STRIP=$STRIP
7460  # Extract the first word of "strip", so it can be a program name with args.
7461set dummy strip; ac_word=$2
7462echo "$as_me:$LINENO: checking for $ac_word" >&5
7463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7464if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7465  echo $ECHO_N "(cached) $ECHO_C" >&6
7466else
7467  if test -n "$ac_ct_STRIP"; then
7468  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7469else
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473  IFS=$as_save_IFS
7474  test -z "$as_dir" && as_dir=.
7475  for ac_exec_ext in '' $ac_executable_extensions; do
7476  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477    ac_cv_prog_ac_ct_STRIP="strip"
7478    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479    break 2
7480  fi
7481done
7482done
7483
7484  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7485fi
7486fi
7487ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7488if test -n "$ac_ct_STRIP"; then
7489  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7490echo "${ECHO_T}$ac_ct_STRIP" >&6
7491else
7492  echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6
7494fi
7495
7496  STRIP=$ac_ct_STRIP
7497else
7498  STRIP="$ac_cv_prog_STRIP"
7499fi
7500
7501
7502old_CC="$CC"
7503old_CFLAGS="$CFLAGS"
7504
7505# Set sane defaults for various variables
7506test -z "$AR" && AR=ar
7507test -z "$AR_FLAGS" && AR_FLAGS=cru
7508test -z "$AS" && AS=as
7509test -z "$CC" && CC=cc
7510test -z "$LTCC" && LTCC=$CC
7511test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7512test -z "$DLLTOOL" && DLLTOOL=dlltool
7513test -z "$LD" && LD=ld
7514test -z "$LN_S" && LN_S="ln -s"
7515test -z "$MAGIC_CMD" && MAGIC_CMD=file
7516test -z "$NM" && NM=nm
7517test -z "$SED" && SED=sed
7518test -z "$OBJDUMP" && OBJDUMP=objdump
7519test -z "$RANLIB" && RANLIB=:
7520test -z "$STRIP" && STRIP=:
7521test -z "$ac_objext" && ac_objext=o
7522
7523# Determine commands to create old-style static archives.
7524old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7525old_postinstall_cmds='chmod 644 $oldlib'
7526old_postuninstall_cmds=
7527
7528if test -n "$RANLIB"; then
7529  case $host_os in
7530  openbsd*)
7531    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7532    ;;
7533  *)
7534    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7535    ;;
7536  esac
7537  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7538fi
7539
7540for cc_temp in $compiler""; do
7541  case $cc_temp in
7542    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7543    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7544    \-*) ;;
7545    *) break;;
7546  esac
7547done
7548cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7549
7550
7551# Only perform the check for file, if the check method requires it
7552case $deplibs_check_method in
7553file_magic*)
7554  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7555    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7556echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7557if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7558  echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560  case $MAGIC_CMD in
7561[\\/*] |  ?:[\\/]*)
7562  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7563  ;;
7564*)
7565  lt_save_MAGIC_CMD="$MAGIC_CMD"
7566  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7567  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7568  for ac_dir in $ac_dummy; do
7569    IFS="$lt_save_ifs"
7570    test -z "$ac_dir" && ac_dir=.
7571    if test -f $ac_dir/${ac_tool_prefix}file; then
7572      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7573      if test -n "$file_magic_test_file"; then
7574        case $deplibs_check_method in
7575        "file_magic "*)
7576          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7577          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7578          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7579            $EGREP "$file_magic_regex" > /dev/null; then
7580            :
7581          else
7582            cat <<EOF 1>&2
7583
7584*** Warning: the command libtool uses to detect shared libraries,
7585*** $file_magic_cmd, produces output that libtool cannot recognize.
7586*** The result is that libtool may fail to recognize shared libraries
7587*** as such.  This will affect the creation of libtool libraries that
7588*** depend on shared libraries, but programs linked with such libtool
7589*** libraries will work regardless of this problem.  Nevertheless, you
7590*** may want to report the problem to your system manager and/or to
7591*** bug-libtool@gnu.org
7592
7593EOF
7594          fi ;;
7595        esac
7596      fi
7597      break
7598    fi
7599  done
7600  IFS="$lt_save_ifs"
7601  MAGIC_CMD="$lt_save_MAGIC_CMD"
7602  ;;
7603esac
7604fi
7605
7606MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7607if test -n "$MAGIC_CMD"; then
7608  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7609echo "${ECHO_T}$MAGIC_CMD" >&6
7610else
7611  echo "$as_me:$LINENO: result: no" >&5
7612echo "${ECHO_T}no" >&6
7613fi
7614
7615if test -z "$lt_cv_path_MAGIC_CMD"; then
7616  if test -n "$ac_tool_prefix"; then
7617    echo "$as_me:$LINENO: checking for file" >&5
7618echo $ECHO_N "checking for file... $ECHO_C" >&6
7619if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7620  echo $ECHO_N "(cached) $ECHO_C" >&6
7621else
7622  case $MAGIC_CMD in
7623[\\/*] |  ?:[\\/]*)
7624  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7625  ;;
7626*)
7627  lt_save_MAGIC_CMD="$MAGIC_CMD"
7628  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7629  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7630  for ac_dir in $ac_dummy; do
7631    IFS="$lt_save_ifs"
7632    test -z "$ac_dir" && ac_dir=.
7633    if test -f $ac_dir/file; then
7634      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7635      if test -n "$file_magic_test_file"; then
7636        case $deplibs_check_method in
7637        "file_magic "*)
7638          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7639          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7640          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7641            $EGREP "$file_magic_regex" > /dev/null; then
7642            :
7643          else
7644            cat <<EOF 1>&2
7645
7646*** Warning: the command libtool uses to detect shared libraries,
7647*** $file_magic_cmd, produces output that libtool cannot recognize.
7648*** The result is that libtool may fail to recognize shared libraries
7649*** as such.  This will affect the creation of libtool libraries that
7650*** depend on shared libraries, but programs linked with such libtool
7651*** libraries will work regardless of this problem.  Nevertheless, you
7652*** may want to report the problem to your system manager and/or to
7653*** bug-libtool@gnu.org
7654
7655EOF
7656          fi ;;
7657        esac
7658      fi
7659      break
7660    fi
7661  done
7662  IFS="$lt_save_ifs"
7663  MAGIC_CMD="$lt_save_MAGIC_CMD"
7664  ;;
7665esac
7666fi
7667
7668MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7669if test -n "$MAGIC_CMD"; then
7670  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7671echo "${ECHO_T}$MAGIC_CMD" >&6
7672else
7673  echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
7675fi
7676
7677  else
7678    MAGIC_CMD=:
7679  fi
7680fi
7681
7682  fi
7683  ;;
7684esac
7685
7686enable_dlopen=no
7687enable_win32_dll=no
7688
7689# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7690if test "${enable_libtool_lock+set}" = set; then
7691  enableval="$enable_libtool_lock"
7692
7693fi;
7694test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7695
7696
7697# Check whether --with-pic or --without-pic was given.
7698if test "${with_pic+set}" = set; then
7699  withval="$with_pic"
7700  pic_mode="$withval"
7701else
7702  pic_mode=default
7703fi;
7704test -z "$pic_mode" && pic_mode=default
7705
7706# Use C for the default configuration in the libtool script
7707tagname=
7708lt_save_CC="$CC"
7709ac_ext=c
7710ac_cpp='$CPP $CPPFLAGS'
7711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7713ac_compiler_gnu=$ac_cv_c_compiler_gnu
7714
7715
7716# Source file extension for C test sources.
7717ac_ext=c
7718
7719# Object file extension for compiled C test sources.
7720objext=o
7721objext=$objext
7722
7723# Code to be used in simple compile tests
7724lt_simple_compile_test_code="int some_variable = 0;\n"
7725
7726# Code to be used in simple link tests
7727lt_simple_link_test_code='int main(){return(0);}\n'
7728
7729
7730# If no C compiler was specified, use CC.
7731LTCC=${LTCC-"$CC"}
7732
7733# If no C compiler flags were specified, use CFLAGS.
7734LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7735
7736# Allow CC to be a program name with arguments.
7737compiler=$CC
7738
7739
7740# save warnings/boilerplate of simple test code
7741ac_outfile=conftest.$ac_objext
7742printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7743eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7744_lt_compiler_boilerplate=`cat conftest.err`
7745$rm conftest*
7746
7747ac_outfile=conftest.$ac_objext
7748printf "$lt_simple_link_test_code" >conftest.$ac_ext
7749eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7750_lt_linker_boilerplate=`cat conftest.err`
7751$rm conftest*
7752
7753
7754## CAVEAT EMPTOR:
7755## There is no encapsulation within the following macros, do not change
7756## the running order or otherwise move them around unless you know exactly
7757## what you are doing...
7758
7759lt_prog_compiler_no_builtin_flag=
7760
7761if test "$GCC" = yes; then
7762  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7763
7764
7765echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7766echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7767if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7768  echo $ECHO_N "(cached) $ECHO_C" >&6
7769else
7770  lt_cv_prog_compiler_rtti_exceptions=no
7771  ac_outfile=conftest.$ac_objext
7772   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7773   lt_compiler_flag="-fno-rtti -fno-exceptions"
7774   # Insert the option either (1) after the last *FLAGS variable, or
7775   # (2) before a word containing "conftest.", or (3) at the end.
7776   # Note that $ac_compile itself does not contain backslashes and begins
7777   # with a dollar sign (not a hyphen), so the echo should work correctly.
7778   # The option is referenced via a variable to avoid confusing sed.
7779   lt_compile=`echo "$ac_compile" | $SED \
7780   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7781   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7782   -e 's:$: $lt_compiler_flag:'`
7783   (eval echo "\"\$as_me:7783: $lt_compile\"" >&5)
7784   (eval "$lt_compile" 2>conftest.err)
7785   ac_status=$?
7786   cat conftest.err >&5
7787   echo "$as_me:7787: \$? = $ac_status" >&5
7788   if (exit $ac_status) && test -s "$ac_outfile"; then
7789     # The compiler can only warn and ignore the option if not recognized
7790     # So say no if there are warnings other than the usual output.
7791     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7792     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7793     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7794       lt_cv_prog_compiler_rtti_exceptions=yes
7795     fi
7796   fi
7797   $rm conftest*
7798
7799fi
7800echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7801echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7802
7803if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7804    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7805else
7806    :
7807fi
7808
7809fi
7810
7811lt_prog_compiler_wl=
7812lt_prog_compiler_pic=
7813lt_prog_compiler_static=
7814
7815echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7816echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7817
7818  if test "$GCC" = yes; then
7819    lt_prog_compiler_wl='-Wl,'
7820    lt_prog_compiler_static='-static'
7821
7822    case $host_os in
7823      aix*)
7824      # All AIX code is PIC.
7825      if test "$host_cpu" = ia64; then
7826        # AIX 5 now supports IA64 processor
7827        lt_prog_compiler_static='-Bstatic'
7828      fi
7829      ;;
7830
7831    amigaos*)
7832      # FIXME: we need at least 68020 code to build shared libraries, but
7833      # adding the `-m68020' flag to GCC prevents building anything better,
7834      # like `-m68040'.
7835      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7836      ;;
7837
7838    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7839      # PIC is the default for these OSes.
7840      ;;
7841
7842    mingw* | pw32* | os2*)
7843      # This hack is so that the source file can tell whether it is being
7844      # built for inclusion in a dll (and should export symbols for example).
7845      lt_prog_compiler_pic='-DDLL_EXPORT'
7846      ;;
7847
7848    darwin* | rhapsody*)
7849      # PIC is the default on this platform
7850      # Common symbols not allowed in MH_DYLIB files
7851      lt_prog_compiler_pic='-fno-common'
7852      ;;
7853
7854    interix3*)
7855      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7856      # Instead, we relocate shared libraries at runtime.
7857      ;;
7858
7859    msdosdjgpp*)
7860      # Just because we use GCC doesn't mean we suddenly get shared libraries
7861      # on systems that don't support them.
7862      lt_prog_compiler_can_build_shared=no
7863      enable_shared=no
7864      ;;
7865
7866    sysv4*MP*)
7867      if test -d /usr/nec; then
7868        lt_prog_compiler_pic=-Kconform_pic
7869      fi
7870      ;;
7871
7872    hpux*)
7873      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7874      # not for PA HP-UX.
7875      case $host_cpu in
7876      hppa*64*|ia64*)
7877        # +Z the default
7878        ;;
7879      *)
7880        lt_prog_compiler_pic='-fPIC'
7881        ;;
7882      esac
7883      ;;
7884
7885    *)
7886      lt_prog_compiler_pic='-fPIC'
7887      ;;
7888    esac
7889  else
7890    # PORTME Check for flag to pass linker flags through the system compiler.
7891    case $host_os in
7892    aix*)
7893      lt_prog_compiler_wl='-Wl,'
7894      if test "$host_cpu" = ia64; then
7895        # AIX 5 now supports IA64 processor
7896        lt_prog_compiler_static='-Bstatic'
7897      else
7898        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7899      fi
7900      ;;
7901      darwin*)
7902        # PIC is the default on this platform
7903        # Common symbols not allowed in MH_DYLIB files
7904       case $cc_basename in
7905         xlc*)
7906         lt_prog_compiler_pic='-qnocommon'
7907         lt_prog_compiler_wl='-Wl,'
7908         ;;
7909       esac
7910       ;;
7911
7912    mingw* | pw32* | os2*)
7913      # This hack is so that the source file can tell whether it is being
7914      # built for inclusion in a dll (and should export symbols for example).
7915      lt_prog_compiler_pic='-DDLL_EXPORT'
7916      ;;
7917
7918    hpux9* | hpux10* | hpux11*)
7919      lt_prog_compiler_wl='-Wl,'
7920      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7921      # not for PA HP-UX.
7922      case $host_cpu in
7923      hppa*64*|ia64*)
7924        # +Z the default
7925        ;;
7926      *)
7927        lt_prog_compiler_pic='+Z'
7928        ;;
7929      esac
7930      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7931      lt_prog_compiler_static='${wl}-a ${wl}archive'
7932      ;;
7933
7934    irix5* | irix6* | nonstopux*)
7935      lt_prog_compiler_wl='-Wl,'
7936      # PIC (with -KPIC) is the default.
7937      lt_prog_compiler_static='-non_shared'
7938      ;;
7939
7940    newsos6)
7941      lt_prog_compiler_pic='-KPIC'
7942      lt_prog_compiler_static='-Bstatic'
7943      ;;
7944
7945    linux*)
7946      case $cc_basename in
7947      icc* | ecc*)
7948        lt_prog_compiler_wl='-Wl,'
7949        lt_prog_compiler_pic='-KPIC'
7950        lt_prog_compiler_static='-static'
7951        ;;
7952      pgcc* | pgf77* | pgf90* | pgf95*)
7953        # Portland Group compilers (*not* the Pentium gcc compiler,
7954        # which looks to be a dead project)
7955        lt_prog_compiler_wl='-Wl,'
7956        lt_prog_compiler_pic='-fpic'
7957        lt_prog_compiler_static='-Bstatic'
7958        ;;
7959      ccc*)
7960        lt_prog_compiler_wl='-Wl,'
7961        # All Alpha code is PIC.
7962        lt_prog_compiler_static='-non_shared'
7963        ;;
7964      esac
7965      ;;
7966
7967    osf3* | osf4* | osf5*)
7968      lt_prog_compiler_wl='-Wl,'
7969      # All OSF/1 code is PIC.
7970      lt_prog_compiler_static='-non_shared'
7971      ;;
7972
7973    solaris*)
7974      lt_prog_compiler_pic='-KPIC'
7975      lt_prog_compiler_static='-Bstatic'
7976      case $cc_basename in
7977      f77* | f90* | f95*)
7978        lt_prog_compiler_wl='-Qoption ld ';;
7979      *)
7980        lt_prog_compiler_wl='-Wl,';;
7981      esac
7982      ;;
7983
7984    sunos4*)
7985      lt_prog_compiler_wl='-Qoption ld '
7986      lt_prog_compiler_pic='-PIC'
7987      lt_prog_compiler_static='-Bstatic'
7988      ;;
7989
7990    sysv4 | sysv4.2uw2* | sysv4.3*)
7991      lt_prog_compiler_wl='-Wl,'
7992      lt_prog_compiler_pic='-KPIC'
7993      lt_prog_compiler_static='-Bstatic'
7994      ;;
7995
7996    sysv4*MP*)
7997      if test -d /usr/nec ;then
7998        lt_prog_compiler_pic='-Kconform_pic'
7999        lt_prog_compiler_static='-Bstatic'
8000      fi
8001      ;;
8002
8003    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8004      lt_prog_compiler_wl='-Wl,'
8005      lt_prog_compiler_pic='-KPIC'
8006      lt_prog_compiler_static='-Bstatic'
8007      ;;
8008
8009    unicos*)
8010      lt_prog_compiler_wl='-Wl,'
8011      lt_prog_compiler_can_build_shared=no
8012      ;;
8013
8014    uts4*)
8015      lt_prog_compiler_pic='-pic'
8016      lt_prog_compiler_static='-Bstatic'
8017      ;;
8018
8019    *)
8020      lt_prog_compiler_can_build_shared=no
8021      ;;
8022    esac
8023  fi
8024
8025echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8026echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8027
8028#
8029# Check to make sure the PIC flag actually works.
8030#
8031if test -n "$lt_prog_compiler_pic"; then
8032
8033echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8034echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8035if test "${lt_prog_compiler_pic_works+set}" = set; then
8036  echo $ECHO_N "(cached) $ECHO_C" >&6
8037else
8038  lt_prog_compiler_pic_works=no
8039  ac_outfile=conftest.$ac_objext
8040   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8041   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8042   # Insert the option either (1) after the last *FLAGS variable, or
8043   # (2) before a word containing "conftest.", or (3) at the end.
8044   # Note that $ac_compile itself does not contain backslashes and begins
8045   # with a dollar sign (not a hyphen), so the echo should work correctly.
8046   # The option is referenced via a variable to avoid confusing sed.
8047   lt_compile=`echo "$ac_compile" | $SED \
8048   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8049   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8050   -e 's:$: $lt_compiler_flag:'`
8051   (eval echo "\"\$as_me:8051: $lt_compile\"" >&5)
8052   (eval "$lt_compile" 2>conftest.err)
8053   ac_status=$?
8054   cat conftest.err >&5
8055   echo "$as_me:8055: \$? = $ac_status" >&5
8056   if (exit $ac_status) && test -s "$ac_outfile"; then
8057     # The compiler can only warn and ignore the option if not recognized
8058     # So say no if there are warnings other than the usual output.
8059     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8060     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8061     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8062       lt_prog_compiler_pic_works=yes
8063     fi
8064   fi
8065   $rm conftest*
8066
8067fi
8068echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8069echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8070
8071if test x"$lt_prog_compiler_pic_works" = xyes; then
8072    case $lt_prog_compiler_pic in
8073     "" | " "*) ;;
8074     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8075     esac
8076else
8077    lt_prog_compiler_pic=
8078     lt_prog_compiler_can_build_shared=no
8079fi
8080
8081fi
8082case $host_os in
8083  # For platforms which do not support PIC, -DPIC is meaningless:
8084  *djgpp*)
8085    lt_prog_compiler_pic=
8086    ;;
8087  *)
8088    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8089    ;;
8090esac
8091
8092#
8093# Check to make sure the static flag actually works.
8094#
8095wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8096echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8097echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8098if test "${lt_prog_compiler_static_works+set}" = set; then
8099  echo $ECHO_N "(cached) $ECHO_C" >&6
8100else
8101  lt_prog_compiler_static_works=no
8102   save_LDFLAGS="$LDFLAGS"
8103   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8104   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8105   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8106     # The linker can only warn and ignore the option if not recognized
8107     # So say no if there are warnings
8108     if test -s conftest.err; then
8109       # Append any errors to the config.log.
8110       cat conftest.err 1>&5
8111       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8112       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8113       if diff conftest.exp conftest.er2 >/dev/null; then
8114         lt_prog_compiler_static_works=yes
8115       fi
8116     else
8117       lt_prog_compiler_static_works=yes
8118     fi
8119   fi
8120   $rm conftest*
8121   LDFLAGS="$save_LDFLAGS"
8122
8123fi
8124echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8125echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8126
8127if test x"$lt_prog_compiler_static_works" = xyes; then
8128    :
8129else
8130    lt_prog_compiler_static=
8131fi
8132
8133
8134echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8135echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8136if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8137  echo $ECHO_N "(cached) $ECHO_C" >&6
8138else
8139  lt_cv_prog_compiler_c_o=no
8140   $rm -r conftest 2>/dev/null
8141   mkdir conftest
8142   cd conftest
8143   mkdir out
8144   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8145
8146   lt_compiler_flag="-o out/conftest2.$ac_objext"
8147   # Insert the option either (1) after the last *FLAGS variable, or
8148   # (2) before a word containing "conftest.", or (3) at the end.
8149   # Note that $ac_compile itself does not contain backslashes and begins
8150   # with a dollar sign (not a hyphen), so the echo should work correctly.
8151   lt_compile=`echo "$ac_compile" | $SED \
8152   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8153   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8154   -e 's:$: $lt_compiler_flag:'`
8155   (eval echo "\"\$as_me:8155: $lt_compile\"" >&5)
8156   (eval "$lt_compile" 2>out/conftest.err)
8157   ac_status=$?
8158   cat out/conftest.err >&5
8159   echo "$as_me:8159: \$? = $ac_status" >&5
8160   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8161   then
8162     # The compiler can only warn and ignore the option if not recognized
8163     # So say no if there are warnings
8164     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8165     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8166     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8167       lt_cv_prog_compiler_c_o=yes
8168     fi
8169   fi
8170   chmod u+w . 2>&5
8171   $rm conftest*
8172   # SGI C++ compiler will create directory out/ii_files/ for
8173   # template instantiation
8174   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8175   $rm out/* && rmdir out
8176   cd ..
8177   rmdir conftest
8178   $rm conftest*
8179
8180fi
8181echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8182echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8183
8184
8185hard_links="nottested"
8186if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8187  # do not overwrite the value of need_locks provided by the user
8188  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8189echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8190  hard_links=yes
8191  $rm conftest*
8192  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8193  touch conftest.a
8194  ln conftest.a conftest.b 2>&5 || hard_links=no
8195  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8196  echo "$as_me:$LINENO: result: $hard_links" >&5
8197echo "${ECHO_T}$hard_links" >&6
8198  if test "$hard_links" = no; then
8199    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8200echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8201    need_locks=warn
8202  fi
8203else
8204  need_locks=no
8205fi
8206
8207echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8208echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8209
8210  runpath_var=
8211  allow_undefined_flag=
8212  enable_shared_with_static_runtimes=no
8213  archive_cmds=
8214  archive_expsym_cmds=
8215  old_archive_From_new_cmds=
8216  old_archive_from_expsyms_cmds=
8217  export_dynamic_flag_spec=
8218  whole_archive_flag_spec=
8219  thread_safe_flag_spec=
8220  hardcode_libdir_flag_spec=
8221  hardcode_libdir_flag_spec_ld=
8222  hardcode_libdir_separator=
8223  hardcode_direct=no
8224  hardcode_minus_L=no
8225  hardcode_shlibpath_var=unsupported
8226  link_all_deplibs=unknown
8227  hardcode_automatic=no
8228  module_cmds=
8229  module_expsym_cmds=
8230  always_export_symbols=no
8231  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8232  # include_expsyms should be a list of space-separated symbols to be *always*
8233  # included in the symbol list
8234  include_expsyms=
8235  # exclude_expsyms can be an extended regexp of symbols to exclude
8236  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8237  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8238  # as well as any symbol that contains `d'.
8239  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8240  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8241  # platforms (ab)use it in PIC code, but their linkers get confused if
8242  # the symbol is explicitly referenced.  Since portable code cannot
8243  # rely on this symbol name, it's probably fine to never include it in
8244  # preloaded symbol tables.
8245  extract_expsyms_cmds=
8246  # Just being paranoid about ensuring that cc_basename is set.
8247  for cc_temp in $compiler""; do
8248  case $cc_temp in
8249    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8250    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8251    \-*) ;;
8252    *) break;;
8253  esac
8254done
8255cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8256
8257  case $host_os in
8258  cygwin* | mingw* | pw32*)
8259    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8260    # When not using gcc, we currently assume that we are using
8261    # Microsoft Visual C++.
8262    if test "$GCC" != yes; then
8263      with_gnu_ld=no
8264    fi
8265    ;;
8266  interix*)
8267    # we just hope/assume this is gcc and not c89 (= MSVC++)
8268    with_gnu_ld=yes
8269    ;;
8270  openbsd*)
8271    with_gnu_ld=no
8272    ;;
8273  esac
8274
8275  ld_shlibs=yes
8276  if test "$with_gnu_ld" = yes; then
8277    # If archive_cmds runs LD, not CC, wlarc should be empty
8278    wlarc='${wl}'
8279
8280    # Set some defaults for GNU ld with shared library support. These
8281    # are reset later if shared libraries are not supported. Putting them
8282    # here allows them to be overridden if necessary.
8283    runpath_var=LD_RUN_PATH
8284    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8285    export_dynamic_flag_spec='${wl}--export-dynamic'
8286    # ancient GNU ld didn't support --whole-archive et. al.
8287    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8288        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8289      else
8290        whole_archive_flag_spec=
8291    fi
8292    supports_anon_versioning=no
8293    case `$LD -v 2>/dev/null` in
8294      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8295      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8296      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8297      *\ 2.11.*) ;; # other 2.11 versions
8298      *) supports_anon_versioning=yes ;;
8299    esac
8300
8301    # See if GNU ld supports shared libraries.
8302    case $host_os in
8303    aix3* | aix4* | aix5*)
8304      # On AIX/PPC, the GNU linker is very broken
8305      if test "$host_cpu" != ia64; then
8306        ld_shlibs=no
8307        cat <<EOF 1>&2
8308
8309*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8310*** to be unable to reliably create shared libraries on AIX.
8311*** Therefore, libtool is disabling shared libraries support.  If you
8312*** really care for shared libraries, you may want to modify your PATH
8313*** so that a non-GNU linker is found, and then restart.
8314
8315EOF
8316      fi
8317      ;;
8318
8319    amigaos*)
8320      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)'
8321      hardcode_libdir_flag_spec='-L$libdir'
8322      hardcode_minus_L=yes
8323
8324      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8325      # that the semantics of dynamic libraries on AmigaOS, at least up
8326      # to version 4, is to share data among multiple programs linked
8327      # with the same dynamic library.  Since this doesn't match the
8328      # behavior of shared libraries on other platforms, we can't use
8329      # them.
8330      ld_shlibs=no
8331      ;;
8332
8333    beos*)
8334      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8335        allow_undefined_flag=unsupported
8336        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8337        # support --undefined.  This deserves some investigation.  FIXME
8338        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8339      else
8340        ld_shlibs=no
8341      fi
8342      ;;
8343
8344    cygwin* | mingw* | pw32*)
8345      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8346      # as there is no search path for DLLs.
8347      hardcode_libdir_flag_spec='-L$libdir'
8348      allow_undefined_flag=unsupported
8349      always_export_symbols=no
8350      enable_shared_with_static_runtimes=yes
8351      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8352
8353      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8354        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8355        # If the export-symbols file already is a .def file (1st line
8356        # is EXPORTS), use it as is; otherwise, prepend...
8357        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8358          cp $export_symbols $output_objdir/$soname.def;
8359        else
8360          echo EXPORTS > $output_objdir/$soname.def;
8361          cat $export_symbols >> $output_objdir/$soname.def;
8362        fi~
8363        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8364      else
8365        ld_shlibs=no
8366      fi
8367      ;;
8368
8369    interix3*)
8370      hardcode_direct=no
8371      hardcode_shlibpath_var=no
8372      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8373      export_dynamic_flag_spec='${wl}-E'
8374      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8375      # Instead, shared libraries are loaded at an image base (0x10000000 by
8376      # default) and relocated if they conflict, which is a slow very memory
8377      # consuming and fragmenting process.  To avoid this, we pick a random,
8378      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8379      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8380      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8381      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'
8382      ;;
8383
8384    linux*)
8385      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8386        tmp_addflag=
8387        case $cc_basename,$host_cpu in
8388        pgcc*)                          # Portland Group C compiler
8389          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'
8390          tmp_addflag=' $pic_flag'
8391          ;;
8392        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8393          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'
8394          tmp_addflag=' $pic_flag -Mnomain' ;;
8395        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8396          tmp_addflag=' -i_dynamic' ;;
8397        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8398          tmp_addflag=' -i_dynamic -nofor_main' ;;
8399        ifc* | ifort*)                  # Intel Fortran compiler
8400          tmp_addflag=' -nofor_main' ;;
8401        esac
8402        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8403
8404        if test $supports_anon_versioning = yes; then
8405          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8406  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8407  $echo "local: *; };" >> $output_objdir/$libname.ver~
8408          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8409        fi
8410      else
8411        ld_shlibs=no
8412      fi
8413      ;;
8414
8415    netbsd*)
8416      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8417        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8418        wlarc=
8419      else
8420        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8422      fi
8423      ;;
8424
8425    solaris*)
8426      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8427        ld_shlibs=no
8428        cat <<EOF 1>&2
8429
8430*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8431*** create shared libraries on Solaris systems.  Therefore, libtool
8432*** is disabling shared libraries support.  We urge you to upgrade GNU
8433*** binutils to release 2.9.1 or newer.  Another option is to modify
8434*** your PATH or compiler configuration so that the native linker is
8435*** used, and then restart.
8436
8437EOF
8438      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8439        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8440        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8441      else
8442        ld_shlibs=no
8443      fi
8444      ;;
8445
8446    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8447      case `$LD -v 2>&1` in
8448        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8449        ld_shlibs=no
8450        cat <<_LT_EOF 1>&2
8451
8452*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8453*** reliably create shared libraries on SCO systems.  Therefore, libtool
8454*** is disabling shared libraries support.  We urge you to upgrade GNU
8455*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8456*** your PATH or compiler configuration so that the native linker is
8457*** used, and then restart.
8458
8459_LT_EOF
8460        ;;
8461        *)
8462          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8463            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8464            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8465            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8466          else
8467            ld_shlibs=no
8468          fi
8469        ;;
8470      esac
8471      ;;
8472
8473    sunos4*)
8474      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8475      wlarc=
8476      hardcode_direct=yes
8477      hardcode_shlibpath_var=no
8478      ;;
8479
8480    *)
8481      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8482        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8484      else
8485        ld_shlibs=no
8486      fi
8487      ;;
8488    esac
8489
8490    if test "$ld_shlibs" = no; then
8491      runpath_var=
8492      hardcode_libdir_flag_spec=
8493      export_dynamic_flag_spec=
8494      whole_archive_flag_spec=
8495    fi
8496  else
8497    # PORTME fill in a description of your system's linker (not GNU ld)
8498    case $host_os in
8499    aix3*)
8500      allow_undefined_flag=unsupported
8501      always_export_symbols=yes
8502      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'
8503      # Note: this linker hardcodes the directories in LIBPATH if there
8504      # are no directories specified by -L.
8505      hardcode_minus_L=yes
8506      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8507        # Neither direct hardcoding nor static linking is supported with a
8508        # broken collect2.
8509        hardcode_direct=unsupported
8510      fi
8511      ;;
8512
8513    aix4* | aix5*)
8514      if test "$host_cpu" = ia64; then
8515        # On IA64, the linker does run time linking by default, so we don't
8516        # have to do anything special.
8517        aix_use_runtimelinking=no
8518        exp_sym_flag='-Bexport'
8519        no_entry_flag=""
8520      else
8521        # If we're using GNU nm, then we don't want the "-C" option.
8522        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8523        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8524          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'
8525        else
8526          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'
8527        fi
8528        aix_use_runtimelinking=no
8529
8530        # Test if we are trying to use run time linking or normal
8531        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8532        # need to do runtime linking.
8533        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8534          for ld_flag in $LDFLAGS; do
8535          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8536            aix_use_runtimelinking=yes
8537            break
8538          fi
8539          done
8540          ;;
8541        esac
8542
8543        exp_sym_flag='-bexport'
8544        no_entry_flag='-bnoentry'
8545      fi
8546
8547      # When large executables or shared objects are built, AIX ld can
8548      # have problems creating the table of contents.  If linking a library
8549      # or program results in "error TOC overflow" add -mminimal-toc to
8550      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8551      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8552
8553      archive_cmds=''
8554      hardcode_direct=yes
8555      hardcode_libdir_separator=':'
8556      link_all_deplibs=yes
8557
8558      if test "$GCC" = yes; then
8559        case $host_os in aix4.[012]|aix4.[012].*)
8560        # We only want to do this on AIX 4.2 and lower, the check
8561        # below for broken collect2 doesn't work under 4.3+
8562          collect2name=`${CC} -print-prog-name=collect2`
8563          if test -f "$collect2name" && \
8564           strings "$collect2name" | grep resolve_lib_name >/dev/null
8565          then
8566          # We have reworked collect2
8567          hardcode_direct=yes
8568          else
8569          # We have old collect2
8570          hardcode_direct=unsupported
8571          # It fails to find uninstalled libraries when the uninstalled
8572          # path is not listed in the libpath.  Setting hardcode_minus_L
8573          # to unsupported forces relinking
8574          hardcode_minus_L=yes
8575          hardcode_libdir_flag_spec='-L$libdir'
8576          hardcode_libdir_separator=
8577          fi
8578          ;;
8579        esac
8580        shared_flag='-shared'
8581        if test "$aix_use_runtimelinking" = yes; then
8582          shared_flag="$shared_flag "'${wl}-G'
8583        fi
8584      else
8585        # not using gcc
8586        if test "$host_cpu" = ia64; then
8587        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8588        # chokes on -Wl,-G. The following line is correct:
8589          shared_flag='-G'
8590        else
8591          if test "$aix_use_runtimelinking" = yes; then
8592            shared_flag='${wl}-G'
8593          else
8594            shared_flag='${wl}-bM:SRE'
8595          fi
8596        fi
8597      fi
8598
8599      # It seems that -bexpall does not export symbols beginning with
8600      # underscore (_), so it is better to generate a list of symbols to export.
8601      always_export_symbols=yes
8602      if test "$aix_use_runtimelinking" = yes; then
8603        # Warning - without using the other runtime loading flags (-brtl),
8604        # -berok will link without error, but may produce a broken library.
8605        allow_undefined_flag='-berok'
8606       # Determine the default libpath from the value encoded in an empty executable.
8607       cat >conftest.$ac_ext <<_ACEOF
8608/* confdefs.h.  */
8609_ACEOF
8610cat confdefs.h >>conftest.$ac_ext
8611cat >>conftest.$ac_ext <<_ACEOF
8612/* end confdefs.h.  */
8613
8614int
8615main ()
8616{
8617
8618  ;
8619  return 0;
8620}
8621_ACEOF
8622rm -f conftest.$ac_objext conftest$ac_exeext
8623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624  (eval $ac_link) 2>conftest.er1
8625  ac_status=$?
8626  grep -v '^ *+' conftest.er1 >conftest.err
8627  rm -f conftest.er1
8628  cat conftest.err >&5
8629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630  (exit $ac_status); } &&
8631         { ac_try='test -z "$ac_c_werror_flag"
8632                         || test ! -s conftest.err'
8633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634  (eval $ac_try) 2>&5
8635  ac_status=$?
8636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637  (exit $ac_status); }; } &&
8638         { ac_try='test -s conftest$ac_exeext'
8639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640  (eval $ac_try) 2>&5
8641  ac_status=$?
8642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643  (exit $ac_status); }; }; then
8644
8645aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8646}'`
8647# Check for a 64-bit object if we didn't find anything.
8648if 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; }
8649}'`; fi
8650else
8651  echo "$as_me: failed program was:" >&5
8652sed 's/^/| /' conftest.$ac_ext >&5
8653
8654fi
8655rm -f conftest.err conftest.$ac_objext \
8656      conftest$ac_exeext conftest.$ac_ext
8657if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8658
8659       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8660        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"
8661       else
8662        if test "$host_cpu" = ia64; then
8663          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8664          allow_undefined_flag="-z nodefs"
8665          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"
8666        else
8667         # Determine the default libpath from the value encoded in an empty executable.
8668         cat >conftest.$ac_ext <<_ACEOF
8669/* confdefs.h.  */
8670_ACEOF
8671cat confdefs.h >>conftest.$ac_ext
8672cat >>conftest.$ac_ext <<_ACEOF
8673/* end confdefs.h.  */
8674
8675int
8676main ()
8677{
8678
8679  ;
8680  return 0;
8681}
8682_ACEOF
8683rm -f conftest.$ac_objext conftest$ac_exeext
8684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685  (eval $ac_link) 2>conftest.er1
8686  ac_status=$?
8687  grep -v '^ *+' conftest.er1 >conftest.err
8688  rm -f conftest.er1
8689  cat conftest.err >&5
8690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691  (exit $ac_status); } &&
8692         { ac_try='test -z "$ac_c_werror_flag"
8693                         || test ! -s conftest.err'
8694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695  (eval $ac_try) 2>&5
8696  ac_status=$?
8697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698  (exit $ac_status); }; } &&
8699         { ac_try='test -s conftest$ac_exeext'
8700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701  (eval $ac_try) 2>&5
8702  ac_status=$?
8703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704  (exit $ac_status); }; }; then
8705
8706aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8707}'`
8708# Check for a 64-bit object if we didn't find anything.
8709if 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; }
8710}'`; fi
8711else
8712  echo "$as_me: failed program was:" >&5
8713sed 's/^/| /' conftest.$ac_ext >&5
8714
8715fi
8716rm -f conftest.err conftest.$ac_objext \
8717      conftest$ac_exeext conftest.$ac_ext
8718if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8719
8720         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8721          # Warning - without using the other run time loading flags,
8722          # -berok will link without error, but may produce a broken library.
8723          no_undefined_flag=' ${wl}-bernotok'
8724          allow_undefined_flag=' ${wl}-berok'
8725          # Exported symbols can be pulled into shared objects from archives
8726          whole_archive_flag_spec='$convenience'
8727          archive_cmds_need_lc=yes
8728          # This is similar to how AIX traditionally builds its shared libraries.
8729          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'
8730        fi
8731      fi
8732      ;;
8733
8734    amigaos*)
8735      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)'
8736      hardcode_libdir_flag_spec='-L$libdir'
8737      hardcode_minus_L=yes
8738      # see comment about different semantics on the GNU ld section
8739      ld_shlibs=no
8740      ;;
8741
8742    bsdi[45]*)
8743      export_dynamic_flag_spec=-rdynamic
8744      ;;
8745
8746    cygwin* | mingw* | pw32*)
8747      # When not using gcc, we currently assume that we are using
8748      # Microsoft Visual C++.
8749      # hardcode_libdir_flag_spec is actually meaningless, as there is
8750      # no search path for DLLs.
8751      hardcode_libdir_flag_spec=' '
8752      allow_undefined_flag=unsupported
8753      # Tell ltmain to make .lib files, not .a files.
8754      libext=lib
8755      # Tell ltmain to make .dll files, not .so files.
8756      shrext_cmds=".dll"
8757      # FIXME: Setting linknames here is a bad hack.
8758      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8759      # The linker will automatically build a .lib file if we build a DLL.
8760      old_archive_From_new_cmds='true'
8761      # FIXME: Should let the user specify the lib program.
8762      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8763      fix_srcfile_path='`cygpath -w "$srcfile"`'
8764      enable_shared_with_static_runtimes=yes
8765      ;;
8766
8767    darwin* | rhapsody*)
8768      case $host_os in
8769        rhapsody* | darwin1.[012])
8770         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8771         ;;
8772       *) # Darwin 1.3 on
8773         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8774           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8775         else
8776           case ${MACOSX_DEPLOYMENT_TARGET} in
8777             10.[012])
8778               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8779               ;;
8780             10.*)
8781               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8782               ;;
8783           esac
8784         fi
8785         ;;
8786      esac
8787      archive_cmds_need_lc=no
8788      hardcode_direct=no
8789      hardcode_automatic=yes
8790      hardcode_shlibpath_var=unsupported
8791      whole_archive_flag_spec=''
8792      link_all_deplibs=yes
8793    if test "$GCC" = yes ; then
8794        output_verbose_link_cmd='echo'
8795        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8796      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8797      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8798      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}'
8799      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}'
8800    else
8801      case $cc_basename in
8802        xlc*)
8803         output_verbose_link_cmd='echo'
8804         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8805         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8806          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8807         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}'
8808          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}'
8809          ;;
8810       *)
8811         ld_shlibs=no
8812          ;;
8813      esac
8814    fi
8815      ;;
8816
8817    dgux*)
8818      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8819      hardcode_libdir_flag_spec='-L$libdir'
8820      hardcode_shlibpath_var=no
8821      ;;
8822
8823    freebsd1*)
8824      ld_shlibs=no
8825      ;;
8826
8827    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8828    # support.  Future versions do this automatically, but an explicit c++rt0.o
8829    # does not break anything, and helps significantly (at the cost of a little
8830    # extra space).
8831    freebsd2.2*)
8832      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8833      hardcode_libdir_flag_spec='-R$libdir'
8834      hardcode_direct=yes
8835      hardcode_shlibpath_var=no
8836      ;;
8837
8838    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8839    freebsd2*)
8840      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8841      hardcode_direct=yes
8842      hardcode_minus_L=yes
8843      hardcode_shlibpath_var=no
8844      ;;
8845
8846    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8847    freebsd* | kfreebsd*-gnu | dragonfly*)
8848      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8849      hardcode_libdir_flag_spec='-R$libdir'
8850      hardcode_direct=yes
8851      hardcode_shlibpath_var=no
8852      ;;
8853
8854    hpux9*)
8855      if test "$GCC" = yes; then
8856        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'
8857      else
8858        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'
8859      fi
8860      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8861      hardcode_libdir_separator=:
8862      hardcode_direct=yes
8863
8864      # hardcode_minus_L: Not really in the search PATH,
8865      # but as the default location of the library.
8866      hardcode_minus_L=yes
8867      export_dynamic_flag_spec='${wl}-E'
8868      ;;
8869
8870    hpux10*)
8871      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8872        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8873      else
8874        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8875      fi
8876      if test "$with_gnu_ld" = no; then
8877        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8878        hardcode_libdir_separator=:
8879
8880        hardcode_direct=yes
8881        export_dynamic_flag_spec='${wl}-E'
8882
8883        # hardcode_minus_L: Not really in the search PATH,
8884        # but as the default location of the library.
8885        hardcode_minus_L=yes
8886      fi
8887      ;;
8888
8889    hpux11*)
8890      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8891        case $host_cpu in
8892        hppa*64*)
8893          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8894          ;;
8895        ia64*)
8896          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8897          ;;
8898        *)
8899          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8900          ;;
8901        esac
8902      else
8903        case $host_cpu in
8904        hppa*64*)
8905          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8906          ;;
8907        ia64*)
8908          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8909          ;;
8910        *)
8911          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8912          ;;
8913        esac
8914      fi
8915      if test "$with_gnu_ld" = no; then
8916        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8917        hardcode_libdir_separator=:
8918
8919        case $host_cpu in
8920        hppa*64*|ia64*)
8921          hardcode_libdir_flag_spec_ld='+b $libdir'
8922          hardcode_direct=no
8923          hardcode_shlibpath_var=no
8924          ;;
8925        *)
8926          hardcode_direct=yes
8927          export_dynamic_flag_spec='${wl}-E'
8928
8929          # hardcode_minus_L: Not really in the search PATH,
8930          # but as the default location of the library.
8931          hardcode_minus_L=yes
8932          ;;
8933        esac
8934      fi
8935      ;;
8936
8937    irix5* | irix6* | nonstopux*)
8938      if test "$GCC" = yes; then
8939        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'
8940      else
8941        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'
8942        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8943      fi
8944      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8945      hardcode_libdir_separator=:
8946      link_all_deplibs=yes
8947      ;;
8948
8949    netbsd*)
8950      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8951        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8952      else
8953        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8954      fi
8955      hardcode_libdir_flag_spec='-R$libdir'
8956      hardcode_direct=yes
8957      hardcode_shlibpath_var=no
8958      ;;
8959
8960    newsos6)
8961      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962      hardcode_direct=yes
8963      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8964      hardcode_libdir_separator=:
8965      hardcode_shlibpath_var=no
8966      ;;
8967
8968    openbsd*)
8969      hardcode_direct=yes
8970      hardcode_shlibpath_var=no
8971      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8972        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8973        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8974        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8975        export_dynamic_flag_spec='${wl}-E'
8976      else
8977       case $host_os in
8978         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8979           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8980           hardcode_libdir_flag_spec='-R$libdir'
8981           ;;
8982         *)
8983           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8984           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8985           ;;
8986       esac
8987      fi
8988      ;;
8989
8990    os2*)
8991      hardcode_libdir_flag_spec='-L$libdir'
8992      hardcode_minus_L=yes
8993      allow_undefined_flag=unsupported
8994      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'
8995      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8996      ;;
8997
8998    osf3*)
8999      if test "$GCC" = yes; then
9000        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9001        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'
9002      else
9003        allow_undefined_flag=' -expect_unresolved \*'
9004        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'
9005      fi
9006      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9007      hardcode_libdir_separator=:
9008      ;;
9009
9010    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9011      if test "$GCC" = yes; then
9012        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9013        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'
9014        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015      else
9016        allow_undefined_flag=' -expect_unresolved \*'
9017        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'
9018        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9019        $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'
9020
9021        # Both c and cxx compiler support -rpath directly
9022        hardcode_libdir_flag_spec='-rpath $libdir'
9023      fi
9024      hardcode_libdir_separator=:
9025      ;;
9026
9027    solaris*)
9028      no_undefined_flag=' -z text'
9029      if test "$GCC" = yes; then
9030        wlarc='${wl}'
9031        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9032        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9033          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9034      else
9035        wlarc=''
9036        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9037        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9038        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9039      fi
9040      hardcode_libdir_flag_spec='-R$libdir'
9041      hardcode_shlibpath_var=no
9042      case $host_os in
9043      solaris2.[0-5] | solaris2.[0-5].*) ;;
9044      *)
9045        # The compiler driver will combine linker options so we
9046        # cannot just pass the convience library names through
9047        # without $wl, iff we do not link with $LD.
9048        # Luckily, gcc supports the same syntax we need for Sun Studio.
9049        # Supported since Solaris 2.6 (maybe 2.5.1?)
9050        case $wlarc in
9051        '')
9052          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9053        *)
9054          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' ;;
9055        esac ;;
9056      esac
9057      link_all_deplibs=yes
9058      ;;
9059
9060    sunos4*)
9061      if test "x$host_vendor" = xsequent; then
9062        # Use $CC to link under sequent, because it throws in some extra .o
9063        # files that make .init and .fini sections work.
9064        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9065      else
9066        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9067      fi
9068      hardcode_libdir_flag_spec='-L$libdir'
9069      hardcode_direct=yes
9070      hardcode_minus_L=yes
9071      hardcode_shlibpath_var=no
9072      ;;
9073
9074    sysv4)
9075      case $host_vendor in
9076        sni)
9077          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9078          hardcode_direct=yes # is this really true???
9079        ;;
9080        siemens)
9081          ## LD is ld it makes a PLAMLIB
9082          ## CC just makes a GrossModule.
9083          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9084          reload_cmds='$CC -r -o $output$reload_objs'
9085          hardcode_direct=no
9086        ;;
9087        motorola)
9088          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9089          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9090        ;;
9091      esac
9092      runpath_var='LD_RUN_PATH'
9093      hardcode_shlibpath_var=no
9094      ;;
9095
9096    sysv4.3*)
9097      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9098      hardcode_shlibpath_var=no
9099      export_dynamic_flag_spec='-Bexport'
9100      ;;
9101
9102    sysv4*MP*)
9103      if test -d /usr/nec; then
9104        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9105        hardcode_shlibpath_var=no
9106        runpath_var=LD_RUN_PATH
9107        hardcode_runpath_var=yes
9108        ld_shlibs=yes
9109      fi
9110      ;;
9111
9112    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9113      no_undefined_flag='${wl}-z,text'
9114      archive_cmds_need_lc=no
9115      hardcode_shlibpath_var=no
9116      runpath_var='LD_RUN_PATH'
9117
9118      if test "$GCC" = yes; then
9119        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121      else
9122        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9123        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9124      fi
9125      ;;
9126
9127    sysv5* | sco3.2v5* | sco5v6*)
9128      # Note: We can NOT use -z defs as we might desire, because we do not
9129      # link with -lc, and that would cause any symbols used from libc to
9130      # always be unresolved, which means just about no library would
9131      # ever link correctly.  If we're not using GNU ld we use -z text
9132      # though, which does catch some bad symbols but isn't as heavy-handed
9133      # as -z defs.
9134      no_undefined_flag='${wl}-z,text'
9135      allow_undefined_flag='${wl}-z,nodefs'
9136      archive_cmds_need_lc=no
9137      hardcode_shlibpath_var=no
9138      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9139      hardcode_libdir_separator=':'
9140      link_all_deplibs=yes
9141      export_dynamic_flag_spec='${wl}-Bexport'
9142      runpath_var='LD_RUN_PATH'
9143
9144      if test "$GCC" = yes; then
9145        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9146        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9147      else
9148        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9149        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9150      fi
9151      ;;
9152
9153    uts4*)
9154      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9155      hardcode_libdir_flag_spec='-L$libdir'
9156      hardcode_shlibpath_var=no
9157      ;;
9158
9159    *)
9160      ld_shlibs=no
9161      ;;
9162    esac
9163  fi
9164
9165echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9166echo "${ECHO_T}$ld_shlibs" >&6
9167test "$ld_shlibs" = no && can_build_shared=no
9168
9169#
9170# Do we need to explicitly link libc?
9171#
9172case "x$archive_cmds_need_lc" in
9173x|xyes)
9174  # Assume -lc should be added
9175  archive_cmds_need_lc=yes
9176
9177  if test "$enable_shared" = yes && test "$GCC" = yes; then
9178    case $archive_cmds in
9179    *'~'*)
9180      # FIXME: we may have to deal with multi-command sequences.
9181      ;;
9182    '$CC '*)
9183      # Test whether the compiler implicitly links with -lc since on some
9184      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9185      # to ld, don't add -lc before -lgcc.
9186      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9187echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9188      $rm conftest*
9189      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9190
9191      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192  (eval $ac_compile) 2>&5
9193  ac_status=$?
9194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195  (exit $ac_status); } 2>conftest.err; then
9196        soname=conftest
9197        lib=conftest
9198        libobjs=conftest.$ac_objext
9199        deplibs=
9200        wl=$lt_prog_compiler_wl
9201        pic_flag=$lt_prog_compiler_pic
9202        compiler_flags=-v
9203        linker_flags=-v
9204        verstring=
9205        output_objdir=.
9206        libname=conftest
9207        lt_save_allow_undefined_flag=$allow_undefined_flag
9208        allow_undefined_flag=
9209        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9210  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9211  ac_status=$?
9212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213  (exit $ac_status); }
9214        then
9215          archive_cmds_need_lc=no
9216        else
9217          archive_cmds_need_lc=yes
9218        fi
9219        allow_undefined_flag=$lt_save_allow_undefined_flag
9220      else
9221        cat conftest.err 1>&5
9222      fi
9223      $rm conftest*
9224      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9225echo "${ECHO_T}$archive_cmds_need_lc" >&6
9226      ;;
9227    esac
9228  fi
9229  ;;
9230esac
9231
9232echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9233echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9234library_names_spec=
9235libname_spec='lib$name'
9236soname_spec=
9237shrext_cmds=".so"
9238postinstall_cmds=
9239postuninstall_cmds=
9240finish_cmds=
9241finish_eval=
9242shlibpath_var=
9243shlibpath_overrides_runpath=unknown
9244version_type=none
9245dynamic_linker="$host_os ld.so"
9246sys_lib_dlsearch_path_spec="/lib /usr/lib"
9247if test "$GCC" = yes; then
9248  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9249  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9250    # if the path contains ";" then we assume it to be the separator
9251    # otherwise default to the standard path separator (i.e. ":") - it is
9252    # assumed that no part of a normal pathname contains ";" but that should
9253    # okay in the real world where ";" in dirpaths is itself problematic.
9254    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9255  else
9256    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9257  fi
9258else
9259  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9260fi
9261need_lib_prefix=unknown
9262hardcode_into_libs=no
9263
9264# when you set need_version to no, make sure it does not cause -set_version
9265# flags to be left without arguments
9266need_version=unknown
9267
9268case $host_os in
9269aix3*)
9270  version_type=linux
9271  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9272  shlibpath_var=LIBPATH
9273
9274  # AIX 3 has no versioning support, so we append a major version to the name.
9275  soname_spec='${libname}${release}${shared_ext}$major'
9276  ;;
9277
9278aix4* | aix5*)
9279  version_type=linux
9280  need_lib_prefix=no
9281  need_version=no
9282  hardcode_into_libs=yes
9283  if test "$host_cpu" = ia64; then
9284    # AIX 5 supports IA64
9285    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9286    shlibpath_var=LD_LIBRARY_PATH
9287  else
9288    # With GCC up to 2.95.x, collect2 would create an import file
9289    # for dependence libraries.  The import file would start with
9290    # the line `#! .'.  This would cause the generated library to
9291    # depend on `.', always an invalid library.  This was fixed in
9292    # development snapshots of GCC prior to 3.0.
9293    case $host_os in
9294      aix4 | aix4.[01] | aix4.[01].*)
9295      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9296           echo ' yes '
9297           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9298        :
9299      else
9300        can_build_shared=no
9301      fi
9302      ;;
9303    esac
9304    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9305    # soname into executable. Probably we can add versioning support to
9306    # collect2, so additional links can be useful in future.
9307    if test "$aix_use_runtimelinking" = yes; then
9308      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9309      # instead of lib<name>.a to let people know that these are not
9310      # typical AIX shared libraries.
9311      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312    else
9313      # We preserve .a as extension for shared libraries through AIX4.2
9314      # and later when we are not doing run time linking.
9315      library_names_spec='${libname}${release}.a $libname.a'
9316      soname_spec='${libname}${release}${shared_ext}$major'
9317    fi
9318    shlibpath_var=LIBPATH
9319  fi
9320  ;;
9321
9322amigaos*)
9323  library_names_spec='$libname.ixlibrary $libname.a'
9324  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9325  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'
9326  ;;
9327
9328beos*)
9329  library_names_spec='${libname}${shared_ext}'
9330  dynamic_linker="$host_os ld.so"
9331  shlibpath_var=LIBRARY_PATH
9332  ;;
9333
9334bsdi[45]*)
9335  version_type=linux
9336  need_version=no
9337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338  soname_spec='${libname}${release}${shared_ext}$major'
9339  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9340  shlibpath_var=LD_LIBRARY_PATH
9341  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9342  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9343  # the default ld.so.conf also contains /usr/contrib/lib and
9344  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9345  # libtool to hard-code these into programs
9346  ;;
9347
9348cygwin* | mingw* | pw32*)
9349  version_type=windows
9350  shrext_cmds=".dll"
9351  need_version=no
9352  need_lib_prefix=no
9353
9354  case $GCC,$host_os in
9355  yes,cygwin* | yes,mingw* | yes,pw32*)
9356    library_names_spec='$libname.dll.a'
9357    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9358    postinstall_cmds='base_file=`basename \${file}`~
9359      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9360      dldir=$destdir/`dirname \$dlpath`~
9361      test -d \$dldir || mkdir -p \$dldir~
9362      $install_prog $dir/$dlname \$dldir/$dlname~
9363      chmod a+x \$dldir/$dlname'
9364    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9365      dlpath=$dir/\$dldll~
9366       $rm \$dlpath'
9367    shlibpath_overrides_runpath=yes
9368
9369    case $host_os in
9370    cygwin*)
9371      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9372      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9373      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9374      ;;
9375    mingw*)
9376      # MinGW DLLs use traditional 'lib' prefix
9377      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9378      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9379      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9380        # It is most probably a Windows format PATH printed by
9381        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9382        # path with ; separators, and with drive letters. We can handle the
9383        # drive letters (cygwin fileutils understands them), so leave them,
9384        # especially as we might pass files found there to a mingw objdump,
9385        # which wouldn't understand a cygwinified path. Ahh.
9386        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9387      else
9388        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9389      fi
9390      ;;
9391    pw32*)
9392      # pw32 DLLs use 'pw' prefix rather than 'lib'
9393      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9394      ;;
9395    esac
9396    ;;
9397
9398  *)
9399    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9400    ;;
9401  esac
9402  dynamic_linker='Win32 ld.exe'
9403  # FIXME: first we should search . and the directory the executable is in
9404  shlibpath_var=PATH
9405  ;;
9406
9407darwin* | rhapsody*)
9408  dynamic_linker="$host_os dyld"
9409  version_type=darwin
9410  need_lib_prefix=no
9411  need_version=no
9412  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9413  soname_spec='${libname}${release}${major}$shared_ext'
9414  shlibpath_overrides_runpath=yes
9415  shlibpath_var=DYLD_LIBRARY_PATH
9416  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9417  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9418  if test "$GCC" = yes; then
9419    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"`
9420  else
9421    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9422  fi
9423  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9424  ;;
9425
9426dgux*)
9427  version_type=linux
9428  need_lib_prefix=no
9429  need_version=no
9430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9431  soname_spec='${libname}${release}${shared_ext}$major'
9432  shlibpath_var=LD_LIBRARY_PATH
9433  ;;
9434
9435freebsd1*)
9436  dynamic_linker=no
9437  ;;
9438
9439kfreebsd*-gnu)
9440  version_type=linux
9441  need_lib_prefix=no
9442  need_version=no
9443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9444  soname_spec='${libname}${release}${shared_ext}$major'
9445  shlibpath_var=LD_LIBRARY_PATH
9446  shlibpath_overrides_runpath=no
9447  hardcode_into_libs=yes
9448  dynamic_linker='GNU ld.so'
9449  ;;
9450
9451freebsd* | dragonfly*)
9452  # DragonFly does not have aout.  When/if they implement a new
9453  # versioning mechanism, adjust this.
9454  if test -x /usr/bin/objformat; then
9455    objformat=`/usr/bin/objformat`
9456  else
9457    case $host_os in
9458    freebsd[123]*) objformat=aout ;;
9459    *) objformat=elf ;;
9460    esac
9461  fi
9462  version_type=freebsd-$objformat
9463  case $version_type in
9464    freebsd-elf*)
9465      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9466      need_version=no
9467      need_lib_prefix=no
9468      ;;
9469    freebsd-*)
9470      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9471      need_version=yes
9472      ;;
9473  esac
9474  shlibpath_var=LD_LIBRARY_PATH
9475  case $host_os in
9476  freebsd2*)
9477    shlibpath_overrides_runpath=yes
9478    ;;
9479  freebsd3.[01]* | freebsdelf3.[01]*)
9480    shlibpath_overrides_runpath=yes
9481    hardcode_into_libs=yes
9482    ;;
9483  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9484  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9485    shlibpath_overrides_runpath=no
9486    hardcode_into_libs=yes
9487    ;;
9488  freebsd*) # from 4.6 on
9489    shlibpath_overrides_runpath=yes
9490    hardcode_into_libs=yes
9491    ;;
9492  esac
9493  ;;
9494
9495gnu*)
9496  version_type=linux
9497  need_lib_prefix=no
9498  need_version=no
9499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9500  soname_spec='${libname}${release}${shared_ext}$major'
9501  shlibpath_var=LD_LIBRARY_PATH
9502  hardcode_into_libs=yes
9503  ;;
9504
9505hpux9* | hpux10* | hpux11*)
9506  # Give a soname corresponding to the major version so that dld.sl refuses to
9507  # link against other versions.
9508  version_type=sunos
9509  need_lib_prefix=no
9510  need_version=no
9511  case $host_cpu in
9512  ia64*)
9513    shrext_cmds='.so'
9514    hardcode_into_libs=yes
9515    dynamic_linker="$host_os dld.so"
9516    shlibpath_var=LD_LIBRARY_PATH
9517    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9518    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519    soname_spec='${libname}${release}${shared_ext}$major'
9520    if test "X$HPUX_IA64_MODE" = X32; then
9521      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9522    else
9523      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9524    fi
9525    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9526    ;;
9527   hppa*64*)
9528     shrext_cmds='.sl'
9529     hardcode_into_libs=yes
9530     dynamic_linker="$host_os dld.sl"
9531     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9532     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534     soname_spec='${libname}${release}${shared_ext}$major'
9535     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9536     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9537     ;;
9538   *)
9539    shrext_cmds='.sl'
9540    dynamic_linker="$host_os dld.sl"
9541    shlibpath_var=SHLIB_PATH
9542    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9543    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544    soname_spec='${libname}${release}${shared_ext}$major'
9545    ;;
9546  esac
9547  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9548  postinstall_cmds='chmod 555 $lib'
9549  ;;
9550
9551interix3*)
9552  version_type=linux
9553  need_lib_prefix=no
9554  need_version=no
9555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9556  soname_spec='${libname}${release}${shared_ext}$major'
9557  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9558  shlibpath_var=LD_LIBRARY_PATH
9559  shlibpath_overrides_runpath=no
9560  hardcode_into_libs=yes
9561  ;;
9562
9563irix5* | irix6* | nonstopux*)
9564  case $host_os in
9565    nonstopux*) version_type=nonstopux ;;
9566    *)
9567        if test "$lt_cv_prog_gnu_ld" = yes; then
9568                version_type=linux
9569        else
9570                version_type=irix
9571        fi ;;
9572  esac
9573  need_lib_prefix=no
9574  need_version=no
9575  soname_spec='${libname}${release}${shared_ext}$major'
9576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9577  case $host_os in
9578  irix5* | nonstopux*)
9579    libsuff= shlibsuff=
9580    ;;
9581  *)
9582    case $LD in # libtool.m4 will add one of these switches to LD
9583    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9584      libsuff= shlibsuff= libmagic=32-bit;;
9585    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9586      libsuff=32 shlibsuff=N32 libmagic=N32;;
9587    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9588      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9589    *) libsuff= shlibsuff= libmagic=never-match;;
9590    esac
9591    ;;
9592  esac
9593  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9594  shlibpath_overrides_runpath=no
9595  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9596  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9597  hardcode_into_libs=yes
9598  ;;
9599
9600# No shared lib support for Linux oldld, aout, or coff.
9601linux*oldld* | linux*aout* | linux*coff*)
9602  dynamic_linker=no
9603  ;;
9604
9605# This must be Linux ELF.
9606linux*)
9607  version_type=linux
9608  need_lib_prefix=no
9609  need_version=no
9610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611  soname_spec='${libname}${release}${shared_ext}$major'
9612  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9613  shlibpath_var=LD_LIBRARY_PATH
9614  shlibpath_overrides_runpath=no
9615  # This implies no fast_install, which is unacceptable.
9616  # Some rework will be needed to allow for fast_install
9617  # before this can be enabled.
9618  hardcode_into_libs=yes
9619
9620  # Append ld.so.conf contents to the search path
9621  if test -f /etc/ld.so.conf; then
9622    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' ' '`
9623    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9624  fi
9625
9626  # We used to test for /lib/ld.so.1 and disable shared libraries on
9627  # powerpc, because MkLinux only supported shared libraries with the
9628  # GNU dynamic linker.  Since this was broken with cross compilers,
9629  # most powerpc-linux boxes support dynamic linking these days and
9630  # people can always --disable-shared, the test was removed, and we
9631  # assume the GNU/Linux dynamic linker is in use.
9632  dynamic_linker='GNU/Linux ld.so'
9633  ;;
9634
9635knetbsd*-gnu)
9636  version_type=linux
9637  need_lib_prefix=no
9638  need_version=no
9639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9640  soname_spec='${libname}${release}${shared_ext}$major'
9641  shlibpath_var=LD_LIBRARY_PATH
9642  shlibpath_overrides_runpath=no
9643  hardcode_into_libs=yes
9644  dynamic_linker='GNU ld.so'
9645  ;;
9646
9647netbsd*)
9648  version_type=sunos
9649  need_lib_prefix=no
9650  need_version=no
9651  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9652    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9653    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9654    dynamic_linker='NetBSD (a.out) ld.so'
9655  else
9656    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9657    soname_spec='${libname}${release}${shared_ext}$major'
9658    dynamic_linker='NetBSD ld.elf_so'
9659  fi
9660  shlibpath_var=LD_LIBRARY_PATH
9661  shlibpath_overrides_runpath=yes
9662  hardcode_into_libs=yes
9663  ;;
9664
9665newsos6)
9666  version_type=linux
9667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668  shlibpath_var=LD_LIBRARY_PATH
9669  shlibpath_overrides_runpath=yes
9670  ;;
9671
9672nto-qnx*)
9673  version_type=linux
9674  need_lib_prefix=no
9675  need_version=no
9676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677  soname_spec='${libname}${release}${shared_ext}$major'
9678  shlibpath_var=LD_LIBRARY_PATH
9679  shlibpath_overrides_runpath=yes
9680  ;;
9681
9682openbsd*)
9683  version_type=sunos
9684  sys_lib_dlsearch_path_spec="/usr/lib"
9685  need_lib_prefix=no
9686  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9687  case $host_os in
9688    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9689    *)                         need_version=no  ;;
9690  esac
9691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9692  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9693  shlibpath_var=LD_LIBRARY_PATH
9694  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9695    case $host_os in
9696      openbsd2.[89] | openbsd2.[89].*)
9697        shlibpath_overrides_runpath=no
9698        ;;
9699      *)
9700        shlibpath_overrides_runpath=yes
9701        ;;
9702      esac
9703  else
9704    shlibpath_overrides_runpath=yes
9705  fi
9706  ;;
9707
9708os2*)
9709  libname_spec='$name'
9710  shrext_cmds=".dll"
9711  need_lib_prefix=no
9712  library_names_spec='$libname${shared_ext} $libname.a'
9713  dynamic_linker='OS/2 ld.exe'
9714  shlibpath_var=LIBPATH
9715  ;;
9716
9717osf3* | osf4* | osf5*)
9718  version_type=osf
9719  need_lib_prefix=no
9720  need_version=no
9721  soname_spec='${libname}${release}${shared_ext}$major'
9722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723  shlibpath_var=LD_LIBRARY_PATH
9724  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9725  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9726  ;;
9727
9728solaris*)
9729  version_type=linux
9730  need_lib_prefix=no
9731  need_version=no
9732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733  soname_spec='${libname}${release}${shared_ext}$major'
9734  shlibpath_var=LD_LIBRARY_PATH
9735  shlibpath_overrides_runpath=yes
9736  hardcode_into_libs=yes
9737  # ldd complains unless libraries are executable
9738  postinstall_cmds='chmod +x $lib'
9739  ;;
9740
9741sunos4*)
9742  version_type=sunos
9743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9744  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9745  shlibpath_var=LD_LIBRARY_PATH
9746  shlibpath_overrides_runpath=yes
9747  if test "$with_gnu_ld" = yes; then
9748    need_lib_prefix=no
9749  fi
9750  need_version=yes
9751  ;;
9752
9753sysv4 | sysv4.3*)
9754  version_type=linux
9755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756  soname_spec='${libname}${release}${shared_ext}$major'
9757  shlibpath_var=LD_LIBRARY_PATH
9758  case $host_vendor in
9759    sni)
9760      shlibpath_overrides_runpath=no
9761      need_lib_prefix=no
9762      export_dynamic_flag_spec='${wl}-Blargedynsym'
9763      runpath_var=LD_RUN_PATH
9764      ;;
9765    siemens)
9766      need_lib_prefix=no
9767      ;;
9768    motorola)
9769      need_lib_prefix=no
9770      need_version=no
9771      shlibpath_overrides_runpath=no
9772      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9773      ;;
9774  esac
9775  ;;
9776
9777sysv4*MP*)
9778  if test -d /usr/nec ;then
9779    version_type=linux
9780    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9781    soname_spec='$libname${shared_ext}.$major'
9782    shlibpath_var=LD_LIBRARY_PATH
9783  fi
9784  ;;
9785
9786sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9787  version_type=freebsd-elf
9788  need_lib_prefix=no
9789  need_version=no
9790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9791  soname_spec='${libname}${release}${shared_ext}$major'
9792  shlibpath_var=LD_LIBRARY_PATH
9793  hardcode_into_libs=yes
9794  if test "$with_gnu_ld" = yes; then
9795    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9796    shlibpath_overrides_runpath=no
9797  else
9798    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9799    shlibpath_overrides_runpath=yes
9800    case $host_os in
9801      sco3.2v5*)
9802        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9803        ;;
9804    esac
9805  fi
9806  sys_lib_dlsearch_path_spec='/usr/lib'
9807  ;;
9808
9809uts4*)
9810  version_type=linux
9811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812  soname_spec='${libname}${release}${shared_ext}$major'
9813  shlibpath_var=LD_LIBRARY_PATH
9814  ;;
9815
9816*)
9817  dynamic_linker=no
9818  ;;
9819esac
9820echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9821echo "${ECHO_T}$dynamic_linker" >&6
9822test "$dynamic_linker" = no && can_build_shared=no
9823
9824variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9825if test "$GCC" = yes; then
9826  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9827fi
9828
9829echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9830echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9831hardcode_action=
9832if test -n "$hardcode_libdir_flag_spec" || \
9833   test -n "$runpath_var" || \
9834   test "X$hardcode_automatic" = "Xyes" ; then
9835
9836  # We can hardcode non-existant directories.
9837  if test "$hardcode_direct" != no &&
9838     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9839     # have to relink, otherwise we might link with an installed library
9840     # when we should be linking with a yet-to-be-installed one
9841     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9842     test "$hardcode_minus_L" != no; then
9843    # Linking always hardcodes the temporary library directory.
9844    hardcode_action=relink
9845  else
9846    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9847    hardcode_action=immediate
9848  fi
9849else
9850  # We cannot hardcode anything, or else we can only hardcode existing
9851  # directories.
9852  hardcode_action=unsupported
9853fi
9854echo "$as_me:$LINENO: result: $hardcode_action" >&5
9855echo "${ECHO_T}$hardcode_action" >&6
9856
9857if test "$hardcode_action" = relink; then
9858  # Fast installation is not supported
9859  enable_fast_install=no
9860elif test "$shlibpath_overrides_runpath" = yes ||
9861     test "$enable_shared" = no; then
9862  # Fast installation is not necessary
9863  enable_fast_install=needless
9864fi
9865
9866striplib=
9867old_striplib=
9868echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9869echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9870if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9871  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9872  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9873  echo "$as_me:$LINENO: result: yes" >&5
9874echo "${ECHO_T}yes" >&6
9875else
9876# FIXME - insert some real tests, host_os isn't really good enough
9877  case $host_os in
9878   darwin*)
9879       if test -n "$STRIP" ; then
9880         striplib="$STRIP -x"
9881         echo "$as_me:$LINENO: result: yes" >&5
9882echo "${ECHO_T}yes" >&6
9883       else
9884  echo "$as_me:$LINENO: result: no" >&5
9885echo "${ECHO_T}no" >&6
9886fi
9887       ;;
9888   *)
9889  echo "$as_me:$LINENO: result: no" >&5
9890echo "${ECHO_T}no" >&6
9891    ;;
9892  esac
9893fi
9894
9895if test "x$enable_dlopen" != xyes; then
9896  enable_dlopen=unknown
9897  enable_dlopen_self=unknown
9898  enable_dlopen_self_static=unknown
9899else
9900  lt_cv_dlopen=no
9901  lt_cv_dlopen_libs=
9902
9903  case $host_os in
9904  beos*)
9905    lt_cv_dlopen="load_add_on"
9906    lt_cv_dlopen_libs=
9907    lt_cv_dlopen_self=yes
9908    ;;
9909
9910  mingw* | pw32*)
9911    lt_cv_dlopen="LoadLibrary"
9912    lt_cv_dlopen_libs=
9913   ;;
9914
9915  cygwin*)
9916    lt_cv_dlopen="dlopen"
9917    lt_cv_dlopen_libs=
9918   ;;
9919
9920  darwin*)
9921  # if libdl is installed we need to link against it
9922    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9923echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9924if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9925  echo $ECHO_N "(cached) $ECHO_C" >&6
9926else
9927  ac_check_lib_save_LIBS=$LIBS
9928LIBS="-ldl  $LIBS"
9929cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h.  */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h.  */
9935
9936/* Override any gcc2 internal prototype to avoid an error.  */
9937#ifdef __cplusplus
9938extern "C"
9939#endif
9940/* We use char because int might match the return type of a gcc2
9941   builtin and then its argument prototype would still apply.  */
9942char dlopen ();
9943int
9944main ()
9945{
9946dlopen ();
9947  ;
9948  return 0;
9949}
9950_ACEOF
9951rm -f conftest.$ac_objext conftest$ac_exeext
9952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9953  (eval $ac_link) 2>conftest.er1
9954  ac_status=$?
9955  grep -v '^ *+' conftest.er1 >conftest.err
9956  rm -f conftest.er1
9957  cat conftest.err >&5
9958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959  (exit $ac_status); } &&
9960         { ac_try='test -z "$ac_c_werror_flag"
9961                         || test ! -s conftest.err'
9962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963  (eval $ac_try) 2>&5
9964  ac_status=$?
9965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966  (exit $ac_status); }; } &&
9967         { ac_try='test -s conftest$ac_exeext'
9968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969  (eval $ac_try) 2>&5
9970  ac_status=$?
9971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972  (exit $ac_status); }; }; then
9973  ac_cv_lib_dl_dlopen=yes
9974else
9975  echo "$as_me: failed program was:" >&5
9976sed 's/^/| /' conftest.$ac_ext >&5
9977
9978ac_cv_lib_dl_dlopen=no
9979fi
9980rm -f conftest.err conftest.$ac_objext \
9981      conftest$ac_exeext conftest.$ac_ext
9982LIBS=$ac_check_lib_save_LIBS
9983fi
9984echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9985echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9986if test $ac_cv_lib_dl_dlopen = yes; then
9987  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9988else
9989
9990    lt_cv_dlopen="dyld"
9991    lt_cv_dlopen_libs=
9992    lt_cv_dlopen_self=yes
9993
9994fi
9995
9996   ;;
9997
9998  *)
9999    echo "$as_me:$LINENO: checking for shl_load" >&5
10000echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10001if test "${ac_cv_func_shl_load+set}" = set; then
10002  echo $ECHO_N "(cached) $ECHO_C" >&6
10003else
10004  cat >conftest.$ac_ext <<_ACEOF
10005/* confdefs.h.  */
10006_ACEOF
10007cat confdefs.h >>conftest.$ac_ext
10008cat >>conftest.$ac_ext <<_ACEOF
10009/* end confdefs.h.  */
10010/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10011   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10012#define shl_load innocuous_shl_load
10013
10014/* System header to define __stub macros and hopefully few prototypes,
10015    which can conflict with char shl_load (); below.
10016    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10017    <limits.h> exists even on freestanding compilers.  */
10018
10019#ifdef __STDC__
10020# include <limits.h>
10021#else
10022# include <assert.h>
10023#endif
10024
10025#undef shl_load
10026
10027/* Override any gcc2 internal prototype to avoid an error.  */
10028#ifdef __cplusplus
10029extern "C"
10030{
10031#endif
10032/* We use char because int might match the return type of a gcc2
10033   builtin and then its argument prototype would still apply.  */
10034char shl_load ();
10035/* The GNU C library defines this for functions which it implements
10036    to always fail with ENOSYS.  Some functions are actually named
10037    something starting with __ and the normal name is an alias.  */
10038#if defined (__stub_shl_load) || defined (__stub___shl_load)
10039choke me
10040#else
10041char (*f) () = shl_load;
10042#endif
10043#ifdef __cplusplus
10044}
10045#endif
10046
10047int
10048main ()
10049{
10050return f != shl_load;
10051  ;
10052  return 0;
10053}
10054_ACEOF
10055rm -f conftest.$ac_objext conftest$ac_exeext
10056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057  (eval $ac_link) 2>conftest.er1
10058  ac_status=$?
10059  grep -v '^ *+' conftest.er1 >conftest.err
10060  rm -f conftest.er1
10061  cat conftest.err >&5
10062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063  (exit $ac_status); } &&
10064         { ac_try='test -z "$ac_c_werror_flag"
10065                         || test ! -s conftest.err'
10066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067  (eval $ac_try) 2>&5
10068  ac_status=$?
10069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070  (exit $ac_status); }; } &&
10071         { ac_try='test -s conftest$ac_exeext'
10072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073  (eval $ac_try) 2>&5
10074  ac_status=$?
10075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076  (exit $ac_status); }; }; then
10077  ac_cv_func_shl_load=yes
10078else
10079  echo "$as_me: failed program was:" >&5
10080sed 's/^/| /' conftest.$ac_ext >&5
10081
10082ac_cv_func_shl_load=no
10083fi
10084rm -f conftest.err conftest.$ac_objext \
10085      conftest$ac_exeext conftest.$ac_ext
10086fi
10087echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10088echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10089if test $ac_cv_func_shl_load = yes; then
10090  lt_cv_dlopen="shl_load"
10091else
10092  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10093echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10094if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10095  echo $ECHO_N "(cached) $ECHO_C" >&6
10096else
10097  ac_check_lib_save_LIBS=$LIBS
10098LIBS="-ldld  $LIBS"
10099cat >conftest.$ac_ext <<_ACEOF
10100/* confdefs.h.  */
10101_ACEOF
10102cat confdefs.h >>conftest.$ac_ext
10103cat >>conftest.$ac_ext <<_ACEOF
10104/* end confdefs.h.  */
10105
10106/* Override any gcc2 internal prototype to avoid an error.  */
10107#ifdef __cplusplus
10108extern "C"
10109#endif
10110/* We use char because int might match the return type of a gcc2
10111   builtin and then its argument prototype would still apply.  */
10112char shl_load ();
10113int
10114main ()
10115{
10116shl_load ();
10117  ;
10118  return 0;
10119}
10120_ACEOF
10121rm -f conftest.$ac_objext conftest$ac_exeext
10122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10123  (eval $ac_link) 2>conftest.er1
10124  ac_status=$?
10125  grep -v '^ *+' conftest.er1 >conftest.err
10126  rm -f conftest.er1
10127  cat conftest.err >&5
10128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129  (exit $ac_status); } &&
10130         { ac_try='test -z "$ac_c_werror_flag"
10131                         || test ! -s conftest.err'
10132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133  (eval $ac_try) 2>&5
10134  ac_status=$?
10135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136  (exit $ac_status); }; } &&
10137         { ac_try='test -s conftest$ac_exeext'
10138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139  (eval $ac_try) 2>&5
10140  ac_status=$?
10141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142  (exit $ac_status); }; }; then
10143  ac_cv_lib_dld_shl_load=yes
10144else
10145  echo "$as_me: failed program was:" >&5
10146sed 's/^/| /' conftest.$ac_ext >&5
10147
10148ac_cv_lib_dld_shl_load=no
10149fi
10150rm -f conftest.err conftest.$ac_objext \
10151      conftest$ac_exeext conftest.$ac_ext
10152LIBS=$ac_check_lib_save_LIBS
10153fi
10154echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10155echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10156if test $ac_cv_lib_dld_shl_load = yes; then
10157  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10158else
10159  echo "$as_me:$LINENO: checking for dlopen" >&5
10160echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10161if test "${ac_cv_func_dlopen+set}" = set; then
10162  echo $ECHO_N "(cached) $ECHO_C" >&6
10163else
10164  cat >conftest.$ac_ext <<_ACEOF
10165/* confdefs.h.  */
10166_ACEOF
10167cat confdefs.h >>conftest.$ac_ext
10168cat >>conftest.$ac_ext <<_ACEOF
10169/* end confdefs.h.  */
10170/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10171   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10172#define dlopen innocuous_dlopen
10173
10174/* System header to define __stub macros and hopefully few prototypes,
10175    which can conflict with char dlopen (); below.
10176    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10177    <limits.h> exists even on freestanding compilers.  */
10178
10179#ifdef __STDC__
10180# include <limits.h>
10181#else
10182# include <assert.h>
10183#endif
10184
10185#undef dlopen
10186
10187/* Override any gcc2 internal prototype to avoid an error.  */
10188#ifdef __cplusplus
10189extern "C"
10190{
10191#endif
10192/* We use char because int might match the return type of a gcc2
10193   builtin and then its argument prototype would still apply.  */
10194char dlopen ();
10195/* The GNU C library defines this for functions which it implements
10196    to always fail with ENOSYS.  Some functions are actually named
10197    something starting with __ and the normal name is an alias.  */
10198#if defined (__stub_dlopen) || defined (__stub___dlopen)
10199choke me
10200#else
10201char (*f) () = dlopen;
10202#endif
10203#ifdef __cplusplus
10204}
10205#endif
10206
10207int
10208main ()
10209{
10210return f != dlopen;
10211  ;
10212  return 0;
10213}
10214_ACEOF
10215rm -f conftest.$ac_objext conftest$ac_exeext
10216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10217  (eval $ac_link) 2>conftest.er1
10218  ac_status=$?
10219  grep -v '^ *+' conftest.er1 >conftest.err
10220  rm -f conftest.er1
10221  cat conftest.err >&5
10222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223  (exit $ac_status); } &&
10224         { ac_try='test -z "$ac_c_werror_flag"
10225                         || test ! -s conftest.err'
10226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227  (eval $ac_try) 2>&5
10228  ac_status=$?
10229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230  (exit $ac_status); }; } &&
10231         { ac_try='test -s conftest$ac_exeext'
10232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233  (eval $ac_try) 2>&5
10234  ac_status=$?
10235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236  (exit $ac_status); }; }; then
10237  ac_cv_func_dlopen=yes
10238else
10239  echo "$as_me: failed program was:" >&5
10240sed 's/^/| /' conftest.$ac_ext >&5
10241
10242ac_cv_func_dlopen=no
10243fi
10244rm -f conftest.err conftest.$ac_objext \
10245      conftest$ac_exeext conftest.$ac_ext
10246fi
10247echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10248echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10249if test $ac_cv_func_dlopen = yes; then
10250  lt_cv_dlopen="dlopen"
10251else
10252  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10253echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10254if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10255  echo $ECHO_N "(cached) $ECHO_C" >&6
10256else
10257  ac_check_lib_save_LIBS=$LIBS
10258LIBS="-ldl  $LIBS"
10259cat >conftest.$ac_ext <<_ACEOF
10260/* confdefs.h.  */
10261_ACEOF
10262cat confdefs.h >>conftest.$ac_ext
10263cat >>conftest.$ac_ext <<_ACEOF
10264/* end confdefs.h.  */
10265
10266/* Override any gcc2 internal prototype to avoid an error.  */
10267#ifdef __cplusplus
10268extern "C"
10269#endif
10270/* We use char because int might match the return type of a gcc2
10271   builtin and then its argument prototype would still apply.  */
10272char dlopen ();
10273int
10274main ()
10275{
10276dlopen ();
10277  ;
10278  return 0;
10279}
10280_ACEOF
10281rm -f conftest.$ac_objext conftest$ac_exeext
10282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283  (eval $ac_link) 2>conftest.er1
10284  ac_status=$?
10285  grep -v '^ *+' conftest.er1 >conftest.err
10286  rm -f conftest.er1
10287  cat conftest.err >&5
10288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289  (exit $ac_status); } &&
10290         { ac_try='test -z "$ac_c_werror_flag"
10291                         || test ! -s conftest.err'
10292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293  (eval $ac_try) 2>&5
10294  ac_status=$?
10295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296  (exit $ac_status); }; } &&
10297         { ac_try='test -s conftest$ac_exeext'
10298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299  (eval $ac_try) 2>&5
10300  ac_status=$?
10301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302  (exit $ac_status); }; }; then
10303  ac_cv_lib_dl_dlopen=yes
10304else
10305  echo "$as_me: failed program was:" >&5
10306sed 's/^/| /' conftest.$ac_ext >&5
10307
10308ac_cv_lib_dl_dlopen=no
10309fi
10310rm -f conftest.err conftest.$ac_objext \
10311      conftest$ac_exeext conftest.$ac_ext
10312LIBS=$ac_check_lib_save_LIBS
10313fi
10314echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10315echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10316if test $ac_cv_lib_dl_dlopen = yes; then
10317  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10318else
10319  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10320echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10321if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10322  echo $ECHO_N "(cached) $ECHO_C" >&6
10323else
10324  ac_check_lib_save_LIBS=$LIBS
10325LIBS="-lsvld  $LIBS"
10326cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h.  */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h.  */
10332
10333/* Override any gcc2 internal prototype to avoid an error.  */
10334#ifdef __cplusplus
10335extern "C"
10336#endif
10337/* We use char because int might match the return type of a gcc2
10338   builtin and then its argument prototype would still apply.  */
10339char dlopen ();
10340int
10341main ()
10342{
10343dlopen ();
10344  ;
10345  return 0;
10346}
10347_ACEOF
10348rm -f conftest.$ac_objext conftest$ac_exeext
10349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350  (eval $ac_link) 2>conftest.er1
10351  ac_status=$?
10352  grep -v '^ *+' conftest.er1 >conftest.err
10353  rm -f conftest.er1
10354  cat conftest.err >&5
10355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356  (exit $ac_status); } &&
10357         { ac_try='test -z "$ac_c_werror_flag"
10358                         || test ! -s conftest.err'
10359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360  (eval $ac_try) 2>&5
10361  ac_status=$?
10362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363  (exit $ac_status); }; } &&
10364         { ac_try='test -s conftest$ac_exeext'
10365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366  (eval $ac_try) 2>&5
10367  ac_status=$?
10368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369  (exit $ac_status); }; }; then
10370  ac_cv_lib_svld_dlopen=yes
10371else
10372  echo "$as_me: failed program was:" >&5
10373sed 's/^/| /' conftest.$ac_ext >&5
10374
10375ac_cv_lib_svld_dlopen=no
10376fi
10377rm -f conftest.err conftest.$ac_objext \
10378      conftest$ac_exeext conftest.$ac_ext
10379LIBS=$ac_check_lib_save_LIBS
10380fi
10381echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10382echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10383if test $ac_cv_lib_svld_dlopen = yes; then
10384  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10385else
10386  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10387echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10388if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10389  echo $ECHO_N "(cached) $ECHO_C" >&6
10390else
10391  ac_check_lib_save_LIBS=$LIBS
10392LIBS="-ldld  $LIBS"
10393cat >conftest.$ac_ext <<_ACEOF
10394/* confdefs.h.  */
10395_ACEOF
10396cat confdefs.h >>conftest.$ac_ext
10397cat >>conftest.$ac_ext <<_ACEOF
10398/* end confdefs.h.  */
10399
10400/* Override any gcc2 internal prototype to avoid an error.  */
10401#ifdef __cplusplus
10402extern "C"
10403#endif
10404/* We use char because int might match the return type of a gcc2
10405   builtin and then its argument prototype would still apply.  */
10406char dld_link ();
10407int
10408main ()
10409{
10410dld_link ();
10411  ;
10412  return 0;
10413}
10414_ACEOF
10415rm -f conftest.$ac_objext conftest$ac_exeext
10416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10417  (eval $ac_link) 2>conftest.er1
10418  ac_status=$?
10419  grep -v '^ *+' conftest.er1 >conftest.err
10420  rm -f conftest.er1
10421  cat conftest.err >&5
10422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423  (exit $ac_status); } &&
10424         { ac_try='test -z "$ac_c_werror_flag"
10425                         || test ! -s conftest.err'
10426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427  (eval $ac_try) 2>&5
10428  ac_status=$?
10429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430  (exit $ac_status); }; } &&
10431         { ac_try='test -s conftest$ac_exeext'
10432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433  (eval $ac_try) 2>&5
10434  ac_status=$?
10435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436  (exit $ac_status); }; }; then
10437  ac_cv_lib_dld_dld_link=yes
10438else
10439  echo "$as_me: failed program was:" >&5
10440sed 's/^/| /' conftest.$ac_ext >&5
10441
10442ac_cv_lib_dld_dld_link=no
10443fi
10444rm -f conftest.err conftest.$ac_objext \
10445      conftest$ac_exeext conftest.$ac_ext
10446LIBS=$ac_check_lib_save_LIBS
10447fi
10448echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10449echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10450if test $ac_cv_lib_dld_dld_link = yes; then
10451  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10452fi
10453
10454
10455fi
10456
10457
10458fi
10459
10460
10461fi
10462
10463
10464fi
10465
10466
10467fi
10468
10469    ;;
10470  esac
10471
10472  if test "x$lt_cv_dlopen" != xno; then
10473    enable_dlopen=yes
10474  else
10475    enable_dlopen=no
10476  fi
10477
10478  case $lt_cv_dlopen in
10479  dlopen)
10480    save_CPPFLAGS="$CPPFLAGS"
10481    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10482
10483    save_LDFLAGS="$LDFLAGS"
10484    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10485
10486    save_LIBS="$LIBS"
10487    LIBS="$lt_cv_dlopen_libs $LIBS"
10488
10489    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10490echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10491if test "${lt_cv_dlopen_self+set}" = set; then
10492  echo $ECHO_N "(cached) $ECHO_C" >&6
10493else
10494          if test "$cross_compiling" = yes; then :
10495  lt_cv_dlopen_self=cross
10496else
10497  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10498  lt_status=$lt_dlunknown
10499  cat > conftest.$ac_ext <<EOF
10500#line 10500 "configure"
10501#include "confdefs.h"
10502
10503#if HAVE_DLFCN_H
10504#include <dlfcn.h>
10505#endif
10506
10507#include <stdio.h>
10508
10509#ifdef RTLD_GLOBAL
10510#  define LT_DLGLOBAL           RTLD_GLOBAL
10511#else
10512#  ifdef DL_GLOBAL
10513#    define LT_DLGLOBAL         DL_GLOBAL
10514#  else
10515#    define LT_DLGLOBAL         0
10516#  endif
10517#endif
10518
10519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10520   find out it does not work in some platform. */
10521#ifndef LT_DLLAZY_OR_NOW
10522#  ifdef RTLD_LAZY
10523#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10524#  else
10525#    ifdef DL_LAZY
10526#      define LT_DLLAZY_OR_NOW          DL_LAZY
10527#    else
10528#      ifdef RTLD_NOW
10529#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10530#      else
10531#        ifdef DL_NOW
10532#          define LT_DLLAZY_OR_NOW      DL_NOW
10533#        else
10534#          define LT_DLLAZY_OR_NOW      0
10535#        endif
10536#      endif
10537#    endif
10538#  endif
10539#endif
10540
10541#ifdef __cplusplus
10542extern "C" void exit (int);
10543#endif
10544
10545void fnord() { int i=42;}
10546int main ()
10547{
10548  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10549  int status = $lt_dlunknown;
10550
10551  if (self)
10552    {
10553      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10554      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10555      /* dlclose (self); */
10556    }
10557  else
10558    puts (dlerror ());
10559
10560    exit (status);
10561}
10562EOF
10563  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564  (eval $ac_link) 2>&5
10565  ac_status=$?
10566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10568    (./conftest; exit; ) >&5 2>/dev/null
10569    lt_status=$?
10570    case x$lt_status in
10571      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10572      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10573      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10574    esac
10575  else :
10576    # compilation failed
10577    lt_cv_dlopen_self=no
10578  fi
10579fi
10580rm -fr conftest*
10581
10582
10583fi
10584echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10585echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10586
10587    if test "x$lt_cv_dlopen_self" = xyes; then
10588      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10589      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10590echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10591if test "${lt_cv_dlopen_self_static+set}" = set; then
10592  echo $ECHO_N "(cached) $ECHO_C" >&6
10593else
10594          if test "$cross_compiling" = yes; then :
10595  lt_cv_dlopen_self_static=cross
10596else
10597  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10598  lt_status=$lt_dlunknown
10599  cat > conftest.$ac_ext <<EOF
10600#line 10600 "configure"
10601#include "confdefs.h"
10602
10603#if HAVE_DLFCN_H
10604#include <dlfcn.h>
10605#endif
10606
10607#include <stdio.h>
10608
10609#ifdef RTLD_GLOBAL
10610#  define LT_DLGLOBAL           RTLD_GLOBAL
10611#else
10612#  ifdef DL_GLOBAL
10613#    define LT_DLGLOBAL         DL_GLOBAL
10614#  else
10615#    define LT_DLGLOBAL         0
10616#  endif
10617#endif
10618
10619/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10620   find out it does not work in some platform. */
10621#ifndef LT_DLLAZY_OR_NOW
10622#  ifdef RTLD_LAZY
10623#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10624#  else
10625#    ifdef DL_LAZY
10626#      define LT_DLLAZY_OR_NOW          DL_LAZY
10627#    else
10628#      ifdef RTLD_NOW
10629#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10630#      else
10631#        ifdef DL_NOW
10632#          define LT_DLLAZY_OR_NOW      DL_NOW
10633#        else
10634#          define LT_DLLAZY_OR_NOW      0
10635#        endif
10636#      endif
10637#    endif
10638#  endif
10639#endif
10640
10641#ifdef __cplusplus
10642extern "C" void exit (int);
10643#endif
10644
10645void fnord() { int i=42;}
10646int main ()
10647{
10648  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10649  int status = $lt_dlunknown;
10650
10651  if (self)
10652    {
10653      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10654      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10655      /* dlclose (self); */
10656    }
10657  else
10658    puts (dlerror ());
10659
10660    exit (status);
10661}
10662EOF
10663  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664  (eval $ac_link) 2>&5
10665  ac_status=$?
10666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10668    (./conftest; exit; ) >&5 2>/dev/null
10669    lt_status=$?
10670    case x$lt_status in
10671      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10672      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10673      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10674    esac
10675  else :
10676    # compilation failed
10677    lt_cv_dlopen_self_static=no
10678  fi
10679fi
10680rm -fr conftest*
10681
10682
10683fi
10684echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10685echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10686    fi
10687
10688    CPPFLAGS="$save_CPPFLAGS"
10689    LDFLAGS="$save_LDFLAGS"
10690    LIBS="$save_LIBS"
10691    ;;
10692  esac
10693
10694  case $lt_cv_dlopen_self in
10695  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10696  *) enable_dlopen_self=unknown ;;
10697  esac
10698
10699  case $lt_cv_dlopen_self_static in
10700  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10701  *) enable_dlopen_self_static=unknown ;;
10702  esac
10703fi
10704
10705
10706# Report which library types will actually be built
10707echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10708echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10709echo "$as_me:$LINENO: result: $can_build_shared" >&5
10710echo "${ECHO_T}$can_build_shared" >&6
10711
10712echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10713echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10714test "$can_build_shared" = "no" && enable_shared=no
10715
10716# On AIX, shared libraries and static libraries use the same namespace, and
10717# are all built from PIC.
10718case $host_os in
10719aix3*)
10720  test "$enable_shared" = yes && enable_static=no
10721  if test -n "$RANLIB"; then
10722    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10723    postinstall_cmds='$RANLIB $lib'
10724  fi
10725  ;;
10726
10727aix4* | aix5*)
10728  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10729    test "$enable_shared" = yes && enable_static=no
10730  fi
10731    ;;
10732esac
10733echo "$as_me:$LINENO: result: $enable_shared" >&5
10734echo "${ECHO_T}$enable_shared" >&6
10735
10736echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10737echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10738# Make sure either enable_shared or enable_static is yes.
10739test "$enable_shared" = yes || enable_static=yes
10740echo "$as_me:$LINENO: result: $enable_static" >&5
10741echo "${ECHO_T}$enable_static" >&6
10742
10743# The else clause should only fire when bootstrapping the
10744# libtool distribution, otherwise you forgot to ship ltmain.sh
10745# with your package, and you will get complaints that there are
10746# no rules to generate ltmain.sh.
10747if test -f "$ltmain"; then
10748  # See if we are running on zsh, and set the options which allow our commands through
10749  # without removal of \ escapes.
10750  if test -n "${ZSH_VERSION+set}" ; then
10751    setopt NO_GLOB_SUBST
10752  fi
10753  # Now quote all the things that may contain metacharacters while being
10754  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10755  # variables and quote the copies for generation of the libtool script.
10756  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10757    SED SHELL STRIP \
10758    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10759    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10760    deplibs_check_method reload_flag reload_cmds need_locks \
10761    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10762    lt_cv_sys_global_symbol_to_c_name_address \
10763    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10764    old_postinstall_cmds old_postuninstall_cmds \
10765    compiler \
10766    CC \
10767    LD \
10768    lt_prog_compiler_wl \
10769    lt_prog_compiler_pic \
10770    lt_prog_compiler_static \
10771    lt_prog_compiler_no_builtin_flag \
10772    export_dynamic_flag_spec \
10773    thread_safe_flag_spec \
10774    whole_archive_flag_spec \
10775    enable_shared_with_static_runtimes \
10776    old_archive_cmds \
10777    old_archive_from_new_cmds \
10778    predep_objects \
10779    postdep_objects \
10780    predeps \
10781    postdeps \
10782    compiler_lib_search_path \
10783    archive_cmds \
10784    archive_expsym_cmds \
10785    postinstall_cmds \
10786    postuninstall_cmds \
10787    old_archive_from_expsyms_cmds \
10788    allow_undefined_flag \