source: stable/1.4/Clp/configure @ 1062

Last change on this file since 1062 was 1062, checked in by andreasw, 13 years ago

regenerated autotools files with latest stable/0.5

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