source: ThirdParty/Glpk/stable/1.10/configure @ 3760

Last change on this file since 3760 was 3760, checked in by stefan, 3 years ago

temporarily committing release candidate

File size: 769.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyGlpk 1.10.5.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2010 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyGlpk'
431PACKAGE_TARNAME='thirdpartyglpk'
432PACKAGE_VERSION='1.10.5'
433PACKAGE_STRING='ThirdPartyGlpk 1.10.5'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="glpk/src/glpk.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion GLPK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS glpkmajorver glpkminorver GLPKDIR GLPK_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyGlpk 1.10.5 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyGlpk 1.10.5:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-glpk compile project Glpk with debug compiler flags
1064
1065  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1066  --disable-pkg-config    disable use of pkg-config (if available)
1067  --enable-static[=PKGS]
1068                          build static libraries [default=no]
1069  --disable-dependency-tracking  speeds up one-time build
1070  --enable-dependency-tracking   do not reject slow dependency extractors
1071  --enable-maintainer-mode  enable make rules and dependencies not useful
1072                          (and sometimes confusing) to the casual installer
1073  --enable-shared[=PKGS]
1074                          build shared libraries [default=yes]
1075  --enable-fast-install[=PKGS]
1076                          optimize for fast installation [default=yes]
1077  --disable-libtool-lock  avoid locking (might break parallel builds)
1078  --disable-dependency-linking
1079                          disable linking library dependencies into shared
1080                          libraries
1081  --disable-gmp           do not compile with GNU multiple precision library
1082  --enable-odbc           enable MathProg ODBC support [default=auto]
1083  --enable-mysql          enable MathProg MySQL support [default=auto]
1084
1085Optional Packages:
1086  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1087  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1088  --with-glpk-verbosity specify the debug verbosity level for project Glpk
1089  --with-glpk-checklevel specify the sanity check level for project Glpk
1090  --with-coin-instdir     prefix of installation directory for precompiled
1091                          COIN packages
1092  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1093  --with-pic              try to use only PIC/non-PIC objects [default=use
1094                          both]
1095  --with-tags[=TAGS]
1096                          include additional configurations [automatic]
1097
1098Some influential environment variables:
1099  CDEFS       Additional -D flags to be used when compiling C code.
1100  ADD_CFLAGS  Additional C compiler options
1101  DBG_CFLAGS  Debug C compiler options
1102  OPT_CFLAGS  Optimize C compiler options
1103  CC          C compiler command
1104  CFLAGS      C compiler flags
1105  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1106              nonstandard directory <lib dir>
1107  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108              headers in a nonstandard directory <include dir>
1109  MPICC       C MPI Compiler
1110  PKG_CONFIG  path to pkg-config utility
1111  CPP         C preprocessor
1112  CXX         C++ compiler command
1113  CXXFLAGS    C++ compiler flags
1114  CXXCPP      C++ preprocessor
1115  F77         Fortran 77 compiler command
1116  FFLAGS      Fortran 77 compiler flags
1117
1118Use these variables to override the choices made by `configure' or to help
1119it to find libraries and programs with nonstandard names/locations.
1120
1121Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1122_ACEOF
1123fi
1124
1125if test "$ac_init_help" = "recursive"; then
1126  # If there are subdirs, report their specific --help.
1127  ac_popdir=`pwd`
1128  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1129    test -d $ac_dir || continue
1130    ac_builddir=.
1131
1132if test "$ac_dir" != .; then
1133  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1134  # A "../" for each directory in $ac_dir_suffix.
1135  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1136else
1137  ac_dir_suffix= ac_top_builddir=
1138fi
1139
1140case $srcdir in
1141  .)  # No --srcdir option.  We are building in place.
1142    ac_srcdir=.
1143    if test -z "$ac_top_builddir"; then
1144       ac_top_srcdir=.
1145    else
1146       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1147    fi ;;
1148  [\\/]* | ?:[\\/]* )  # Absolute path.
1149    ac_srcdir=$srcdir$ac_dir_suffix;
1150    ac_top_srcdir=$srcdir ;;
1151  *) # Relative path.
1152    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1153    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1154esac
1155
1156# Do not use `cd foo && pwd` to compute absolute paths, because
1157# the directories may not exist.
1158case `pwd` in
1159.) ac_abs_builddir="$ac_dir";;
1160*)
1161  case "$ac_dir" in
1162  .) ac_abs_builddir=`pwd`;;
1163  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1164  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1165  esac;;
1166esac
1167case $ac_abs_builddir in
1168.) ac_abs_top_builddir=${ac_top_builddir}.;;
1169*)
1170  case ${ac_top_builddir}. in
1171  .) ac_abs_top_builddir=$ac_abs_builddir;;
1172  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1173  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1174  esac;;
1175esac
1176case $ac_abs_builddir in
1177.) ac_abs_srcdir=$ac_srcdir;;
1178*)
1179  case $ac_srcdir in
1180  .) ac_abs_srcdir=$ac_abs_builddir;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1182  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_top_srcdir=$ac_top_srcdir;;
1187*)
1188  case $ac_top_srcdir in
1189  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1191  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1192  esac;;
1193esac
1194
1195    cd $ac_dir
1196    # Check for guested configure; otherwise get Cygnus style configure.
1197    if test -f $ac_srcdir/configure.gnu; then
1198      echo
1199      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1200    elif test -f $ac_srcdir/configure; then
1201      echo
1202      $SHELL $ac_srcdir/configure  --help=recursive
1203    elif test -f $ac_srcdir/configure.ac ||
1204           test -f $ac_srcdir/configure.in; then
1205      echo
1206      $ac_configure --help
1207    else
1208      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1209    fi
1210    cd $ac_popdir
1211  done
1212fi
1213
1214test -n "$ac_init_help" && exit 0
1215if $ac_init_version; then
1216  cat <<\_ACEOF
1217ThirdPartyGlpk configure 1.10.5
1218generated by GNU Autoconf 2.59
1219
1220Copyright (C) 2003 Free Software Foundation, Inc.
1221This configure script is free software; the Free Software Foundation
1222gives unlimited permission to copy, distribute and modify it.
1223
1224
1225Copyright 2007-2010 Stefan Vigerske and others.
1226All Rights Reserved.
1227This file is part of the open source package Coin which is distributed
1228under the Eclipse Public License.
1229_ACEOF
1230  exit 0
1231fi
1232exec 5>config.log
1233cat >&5 <<_ACEOF
1234This file contains any messages produced by compilers while
1235running configure, to aid debugging if configure makes a mistake.
1236
1237It was created by ThirdPartyGlpk $as_me 1.10.5, which was
1238generated by GNU Autoconf 2.59.  Invocation command line was
1239
1240  $ $0 $@
1241
1242_ACEOF
1243{
1244cat <<_ASUNAME
1245## --------- ##
1246## Platform. ##
1247## --------- ##
1248
1249hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1250uname -m = `(uname -m) 2>/dev/null || echo unknown`
1251uname -r = `(uname -r) 2>/dev/null || echo unknown`
1252uname -s = `(uname -s) 2>/dev/null || echo unknown`
1253uname -v = `(uname -v) 2>/dev/null || echo unknown`
1254
1255/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1256/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1257
1258/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1259/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1260/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1261hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1262/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1263/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1264/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1265
1266_ASUNAME
1267
1268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1269for as_dir in $PATH
1270do
1271  IFS=$as_save_IFS
1272  test -z "$as_dir" && as_dir=.
1273  echo "PATH: $as_dir"
1274done
1275
1276} >&5
1277
1278cat >&5 <<_ACEOF
1279
1280
1281## ----------- ##
1282## Core tests. ##
1283## ----------- ##
1284
1285_ACEOF
1286
1287
1288# Keep a trace of the command line.
1289# Strip out --no-create and --no-recursion so they do not pile up.
1290# Strip out --silent because we don't want to record it for future runs.
1291# Also quote any args containing shell meta-characters.
1292# Make two passes to allow for proper duplicate-argument suppression.
1293ac_configure_args=
1294ac_configure_args0=
1295ac_configure_args1=
1296ac_sep=
1297ac_must_keep_next=false
1298for ac_pass in 1 2
1299do
1300  for ac_arg
1301  do
1302    case $ac_arg in
1303    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1304    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1305    | -silent | --silent | --silen | --sile | --sil)
1306      continue ;;
1307    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1309    esac
1310    case $ac_pass in
1311    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1312    2)
1313      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1314      if test $ac_must_keep_next = true; then
1315        ac_must_keep_next=false # Got value, back to normal.
1316      else
1317        case $ac_arg in
1318          *=* | --config-cache | -C | -disable-* | --disable-* \
1319          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1320          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1321          | -with-* | --with-* | -without-* | --without-* | --x)
1322            case "$ac_configure_args0 " in
1323              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1324            esac
1325            ;;
1326          -* ) ac_must_keep_next=true ;;
1327        esac
1328      fi
1329      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1330      # Get rid of the leading space.
1331      ac_sep=" "
1332      ;;
1333    esac
1334  done
1335done
1336$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1337$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1338
1339# When interrupted or exit'd, cleanup temporary files, and complete
1340# config.log.  We remove comments because anyway the quotes in there
1341# would cause problems or look ugly.
1342# WARNING: Be sure not to use single quotes in there, as some shells,
1343# such as our DU 5.0 friend, will then `close' the trap.
1344trap 'exit_status=$?
1345  # Save into config.log some information that might help in debugging.
1346  {
1347    echo
1348
1349    cat <<\_ASBOX
1350## ---------------- ##
1351## Cache variables. ##
1352## ---------------- ##
1353_ASBOX
1354    echo
1355    # The following way of writing the cache mishandles newlines in values,
1356{
1357  (set) 2>&1 |
1358    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1359    *ac_space=\ *)
1360      sed -n \
1361        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1362          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1363      ;;
1364    *)
1365      sed -n \
1366        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1367      ;;
1368    esac;
1369}
1370    echo
1371
1372    cat <<\_ASBOX
1373## ----------------- ##
1374## Output variables. ##
1375## ----------------- ##
1376_ASBOX
1377    echo
1378    for ac_var in $ac_subst_vars
1379    do
1380      eval ac_val=$`echo $ac_var`
1381      echo "$ac_var='"'"'$ac_val'"'"'"
1382    done | sort
1383    echo
1384
1385    if test -n "$ac_subst_files"; then
1386      cat <<\_ASBOX
1387## ------------- ##
1388## Output files. ##
1389## ------------- ##
1390_ASBOX
1391      echo
1392      for ac_var in $ac_subst_files
1393      do
1394        eval ac_val=$`echo $ac_var`
1395        echo "$ac_var='"'"'$ac_val'"'"'"
1396      done | sort
1397      echo
1398    fi
1399
1400    if test -s confdefs.h; then
1401      cat <<\_ASBOX
1402## ----------- ##
1403## confdefs.h. ##
1404## ----------- ##
1405_ASBOX
1406      echo
1407      sed "/^$/d" confdefs.h | sort
1408      echo
1409    fi
1410    test "$ac_signal" != 0 &&
1411      echo "$as_me: caught signal $ac_signal"
1412    echo "$as_me: exit $exit_status"
1413  } >&5
1414  rm -f core *.core &&
1415  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1416    exit $exit_status
1417     ' 0
1418for ac_signal in 1 2 13 15; do
1419  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1420done
1421ac_signal=0
1422
1423# confdefs.h avoids OS command line length limits that DEFS can exceed.
1424rm -rf conftest* confdefs.h
1425# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1426echo >confdefs.h
1427
1428# Predefined preprocessor variables.
1429
1430cat >>confdefs.h <<_ACEOF
1431#define PACKAGE_NAME "$PACKAGE_NAME"
1432_ACEOF
1433
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1437_ACEOF
1438
1439
1440cat >>confdefs.h <<_ACEOF
1441#define PACKAGE_VERSION "$PACKAGE_VERSION"
1442_ACEOF
1443
1444
1445cat >>confdefs.h <<_ACEOF
1446#define PACKAGE_STRING "$PACKAGE_STRING"
1447_ACEOF
1448
1449
1450cat >>confdefs.h <<_ACEOF
1451#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1452_ACEOF
1453
1454
1455# Let the site file select an alternate cache file if it wants to.
1456# Prefer explicitly selected file to automatically selected ones.
1457if test -z "$CONFIG_SITE"; then
1458  if test "x$prefix" != xNONE; then
1459    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1460  else
1461    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1462  fi
1463fi
1464for ac_site_file in $CONFIG_SITE; do
1465  if test -r "$ac_site_file"; then
1466    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1467echo "$as_me: loading site script $ac_site_file" >&6;}
1468    sed 's/^/| /' "$ac_site_file" >&5
1469    . "$ac_site_file"
1470  fi
1471done
1472
1473if test -r "$cache_file"; then
1474  # Some versions of bash will fail to source /dev/null (special
1475  # files actually), so we avoid doing that.
1476  if test -f "$cache_file"; then
1477    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1478echo "$as_me: loading cache $cache_file" >&6;}
1479    case $cache_file in
1480      [\\/]* | ?:[\\/]* ) . $cache_file;;
1481      *)                      . ./$cache_file;;
1482    esac
1483  fi
1484else
1485  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1486echo "$as_me: creating cache $cache_file" >&6;}
1487  >$cache_file
1488fi
1489
1490# Check that the precious variables saved in the cache have kept the same
1491# value.
1492ac_cache_corrupted=false
1493for ac_var in `(set) 2>&1 |
1494               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1495  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1496  eval ac_new_set=\$ac_env_${ac_var}_set
1497  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1498  eval ac_new_val="\$ac_env_${ac_var}_value"
1499  case $ac_old_set,$ac_new_set in
1500    set,)
1501      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1502echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1503      ac_cache_corrupted=: ;;
1504    ,set)
1505      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1506echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1507      ac_cache_corrupted=: ;;
1508    ,);;
1509    *)
1510      if test "x$ac_old_val" != "x$ac_new_val"; then
1511        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1512echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1513        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1514echo "$as_me:   former value:  $ac_old_val" >&2;}
1515        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1516echo "$as_me:   current value: $ac_new_val" >&2;}
1517        ac_cache_corrupted=:
1518      fi;;
1519  esac
1520  # Pass precious variables to config.status.
1521  if test "$ac_new_set" = set; then
1522    case $ac_new_val in
1523    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1524      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1525    *) ac_arg=$ac_var=$ac_new_val ;;
1526    esac
1527    case " $ac_configure_args " in
1528      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1529      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1530    esac
1531  fi
1532done
1533if $ac_cache_corrupted; then
1534  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1535echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1536  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1537echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1538   { (exit 1); exit 1; }; }
1539fi
1540
1541ac_ext=c
1542ac_cpp='$CPP $CPPFLAGS'
1543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576# List one file in the package so that the configure script can test
1577# whether the package is actually there
1578
1579
1580# Where should everything be installed by default?  Here, we want it
1581# to be installed directly in 'bin', 'lib', 'include' subdirectories
1582# of the directory where configure is run.  The default would be
1583# /usr/local.
1584
1585
1586
1587# As backup, we make sure we don't loose an FLIBS if it has been set
1588# by the user
1589save_FLIBS="$FLIBS"
1590
1591# A useful makefile conditional that is always false
1592
1593
1594if false; then
1595  ALWAYS_FALSE_TRUE=
1596  ALWAYS_FALSE_FALSE='#'
1597else
1598  ALWAYS_FALSE_TRUE='#'
1599  ALWAYS_FALSE_FALSE=
1600fi
1601
1602
1603# We set the following variable so that we know later in AC_COIN_FINALIZE
1604# that we are in a project main directory
1605coin_projectdir=yes
1606
1607# Set the project's version numbers
1608
1609
1610cat >>confdefs.h <<_ACEOF
1611#define GLPK_VERSION "$PACKAGE_VERSION"
1612_ACEOF
1613
1614
1615  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1616  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1617  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1618  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1619  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1620  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1621
1622cat >>confdefs.h <<_ACEOF
1623#define GLPK_VERSION_MAJOR $coin_majorver
1624_ACEOF
1625
1626
1627cat >>confdefs.h <<_ACEOF
1628#define GLPK_VERSION_MINOR $coin_minorver
1629_ACEOF
1630
1631
1632cat >>confdefs.h <<_ACEOF
1633#define GLPK_VERSION_RELEASE $coin_releasever
1634_ACEOF
1635
1636
1637  # We use the following variable to have a string with the upper case
1638  # version of the project name
1639  COIN_PRJCT=GLPK
1640
1641  # Set the project's SVN revision number. The complicated sed expression
1642  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1643  # as a single number.
1644  # Extract the first word of "svnversion", so it can be a program name with args.
1645set dummy svnversion; ac_word=$2
1646echo "$as_me:$LINENO: checking for $ac_word" >&5
1647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648if test "${ac_cv_prog_have_svnversion+set}" = set; then
1649  echo $ECHO_N "(cached) $ECHO_C" >&6
1650else
1651  if test -n "$have_svnversion"; then
1652  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1653else
1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657  IFS=$as_save_IFS
1658  test -z "$as_dir" && as_dir=.
1659  for ac_exec_ext in '' $ac_executable_extensions; do
1660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661    ac_cv_prog_have_svnversion="yes"
1662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663    break 2
1664  fi
1665done
1666done
1667
1668  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1669fi
1670fi
1671have_svnversion=$ac_cv_prog_have_svnversion
1672if test -n "$have_svnversion"; then
1673  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1674echo "${ECHO_T}$have_svnversion" >&6
1675else
1676  echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680  if test "x$have_svnversion" = xyes; then
1681
1682    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1683    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1684      GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1685
1686cat >>confdefs.h <<_ACEOF
1687#define GLPK_SVN_REV $GLPK_SVN_REV
1688_ACEOF
1689
1690    fi
1691  fi
1692
1693
1694
1695# Capture libtool library version, if given.
1696 coin_libversion=11:5:10
1697
1698
1699
1700
1701#############################################################################
1702#                         Standard build tool stuff                         #
1703#############################################################################
1704
1705# Get the system type
1706ac_aux_dir=
1707for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1708  if test -f $ac_dir/install-sh; then
1709    ac_aux_dir=$ac_dir
1710    ac_install_sh="$ac_aux_dir/install-sh -c"
1711    break
1712  elif test -f $ac_dir/install.sh; then
1713    ac_aux_dir=$ac_dir
1714    ac_install_sh="$ac_aux_dir/install.sh -c"
1715    break
1716  elif test -f $ac_dir/shtool; then
1717    ac_aux_dir=$ac_dir
1718    ac_install_sh="$ac_aux_dir/shtool install -c"
1719    break
1720  fi
1721done
1722if test -z "$ac_aux_dir"; then
1723  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1724echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1725   { (exit 1); exit 1; }; }
1726fi
1727ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1728ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1729ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1730
1731# Make sure we can run config.sub.
1732$ac_config_sub sun4 >/dev/null 2>&1 ||
1733  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1734echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1735   { (exit 1); exit 1; }; }
1736
1737echo "$as_me:$LINENO: checking build system type" >&5
1738echo $ECHO_N "checking build system type... $ECHO_C" >&6
1739if test "${ac_cv_build+set}" = set; then
1740  echo $ECHO_N "(cached) $ECHO_C" >&6
1741else
1742  ac_cv_build_alias=$build_alias
1743test -z "$ac_cv_build_alias" &&
1744  ac_cv_build_alias=`$ac_config_guess`
1745test -z "$ac_cv_build_alias" &&
1746  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1747echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1748   { (exit 1); exit 1; }; }
1749ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1750  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1751echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1752   { (exit 1); exit 1; }; }
1753
1754fi
1755echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1756echo "${ECHO_T}$ac_cv_build" >&6
1757build=$ac_cv_build
1758build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1761
1762
1763
1764#turn off warnings and pedantic mode since it seem to make trouble on solaris platform
1765#and we couldn't fix it anyway
1766coin_skip_warn_cflags=yes
1767
1768# Check if user wants to produce debugging code
1769
1770echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1771echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1772
1773# Check whether --enable-debug or --disable-debug was given.
1774if test "${enable_debug+set}" = set; then
1775  enableval="$enable_debug"
1776  case "${enableval}" in
1777   yes) coin_debug_compile=true
1778        if test "${enable_shared+set}" = set; then :; else
1779          enable_shared=no
1780        fi
1781        ;;
1782   no)  coin_debug_compile=false
1783        ;;
1784   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1785echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1786   { (exit 1); exit 1; }; }
1787        ;;
1788esac
1789else
1790  coin_debug_compile=false
1791fi;
1792
1793# Check whether --enable-debug-glpk or --disable-debug-glpk was given.
1794if test "${enable_debug_glpk+set}" = set; then
1795  enableval="$enable_debug_glpk"
1796  case "${enableval}" in
1797    yes) coin_debug_compile=true
1798         ;;
1799    no)  coin_debug_compile=false
1800         ;;
1801    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&5
1802echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;}
1803   { (exit 1); exit 1; }; }
1804         ;;
1805 esac
1806else
1807  :
1808fi;
1809
1810 # m4_ifvaln([Glpk],
1811
1812if test $coin_debug_compile = true; then
1813  echo "$as_me:$LINENO: result: yes" >&5
1814echo "${ECHO_T}yes" >&6
1815else
1816  echo "$as_me:$LINENO: result: no" >&5
1817echo "${ECHO_T}no" >&6
1818fi
1819
1820
1821# Check whether --with-glpk-verbosity or --without-glpk-verbosity was given.
1822if test "${with_glpk_verbosity+set}" = set; then
1823  withval="$with_glpk_verbosity"
1824  if test "$withval" = yes; then
1825                withval=1
1826              fi
1827              coin_glpk_verbosity=$withval
1828else
1829  coin_glpk_verbosity=0
1830fi;
1831
1832cat >>confdefs.h <<_ACEOF
1833#define COIN_GLPK_VERBOSITY $coin_glpk_verbosity
1834_ACEOF
1835
1836
1837
1838# Check whether --with-glpk-checklevel or --without-glpk-checklevel was given.
1839if test "${with_glpk_checklevel+set}" = set; then
1840  withval="$with_glpk_checklevel"
1841  if test "$withval" = yes; then
1842                withval=1
1843              fi
1844              coin_glpk_checklevel=$withval
1845else
1846  coin_glpk_checklevel=0
1847fi;
1848
1849cat >>confdefs.h <<_ACEOF
1850#define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel
1851_ACEOF
1852
1853
1854 # m4_ifvaln([Glpk],
1855
1856
1857
1858# Get the name of the C compiler
1859
1860
1861  # for backward compatibility
1862  # Check whether --enable-doscompile or --disable-doscompile was given.
1863if test "${enable_doscompile+set}" = set; then
1864  enableval="$enable_doscompile"
1865  enable_doscompile=$enableval
1866else
1867  enable_doscompile=no
1868fi;
1869
1870  # Check whether --enable-msvc or --disable-msvc was given.
1871if test "${enable_msvc+set}" = set; then
1872  enableval="$enable_msvc"
1873  enable_msvc=$enableval
1874else
1875  enable_msvc=no
1876     if test "$enable_doscompile" = msvc ; then
1877       enable_msvc=yes
1878     elif test "$enable_doscompile" != no ; then
1879       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1880echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1881   { (exit 1); exit 1; }; }
1882     fi
1883
1884fi;
1885
1886  if test "$enable_msvc" = MD; then
1887    enable_shared=yes
1888    enable_msvc=yes
1889  fi
1890
1891  if test "$enable_msvc" = yes; then
1892    case $build in
1893      *-cygwin* | *-mingw*) ;;
1894      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1895echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1896   { (exit 1); exit 1; }; } ;;
1897    esac
1898  fi
1899
1900
1901
1902ac_ext=c
1903ac_cpp='$CPP $CPPFLAGS'
1904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1906ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907
1908
1909# For consistency, we set the C compiler to the same value of the C++
1910# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1911if test x"$CXX" != x; then
1912  case "$CXX" in
1913    clang* ) ;;
1914    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1915      if test x"$CC" = x; then
1916        CC="$CXX"
1917        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1918echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1919      fi
1920      ;;
1921  esac
1922fi
1923
1924
1925
1926
1927
1928
1929coin_has_cc=yes
1930
1931save_cflags="$CFLAGS"
1932
1933# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1934# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1935# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1936# compiler. In this case, put cc after gcc.
1937
1938case $build in
1939  *-cygwin* | *-mingw*)
1940             if test "$enable_msvc" = yes ; then
1941               comps="icl cl gcc"
1942             else
1943               comps="gcc icl cl"
1944             fi ;;
1945  *-*-solaris*)
1946             # Extract the first word of "cc", so it can be a program name with args.
1947set dummy cc; ac_word=$2
1948echo "$as_me:$LINENO: checking for $ac_word" >&5
1949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1951  echo $ECHO_N "(cached) $ECHO_C" >&6
1952else
1953  if test -n "$sol_cc_compiler"; then
1954  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1955else
1956  ac_prog_rejected=no
1957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH
1959do
1960  IFS=$as_save_IFS
1961  test -z "$as_dir" && as_dir=.
1962  for ac_exec_ext in '' $ac_executable_extensions; do
1963  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1965       ac_prog_rejected=yes
1966       continue
1967     fi
1968    ac_cv_prog_sol_cc_compiler="cc"
1969    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970    break 2
1971  fi
1972done
1973done
1974
1975if test $ac_prog_rejected = yes; then
1976  # We found a bogon in the path, so make sure we never use it.
1977  set dummy $ac_cv_prog_sol_cc_compiler
1978  shift
1979  if test $# != 0; then
1980    # We chose a different compiler from the bogus one.
1981    # However, it has the same basename, so the bogon will be chosen
1982    # first if we set sol_cc_compiler to just the basename; use the full file name.
1983    shift
1984    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1985  fi
1986fi
1987fi
1988fi
1989sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1990if test -n "$sol_cc_compiler"; then
1991  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1992echo "${ECHO_T}$sol_cc_compiler" >&6
1993else
1994  echo "$as_me:$LINENO: result: no" >&5
1995echo "${ECHO_T}no" >&6
1996fi
1997
1998             if test "$sol_cc_compiler" = "cc" ; then
1999               comps="cc xlc gcc pgcc icc"
2000             else
2001               comps="xlc gcc pgcc icc cc"
2002             fi
2003             ;;
2004  *-*-darwin*) comps="clang gcc cc" ;;
2005  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2006  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2007  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2008esac
2009
2010# We delete the cached value, since the test might not have been
2011# performed with our choice of compilers earlier
2012$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2013# AC_MSG_NOTICE([C compiler candidates: $comps])
2014ac_ext=c
2015ac_cpp='$CPP $CPPFLAGS'
2016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019if test -n "$ac_tool_prefix"; then
2020  for ac_prog in $comps
2021  do
2022    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2024echo "$as_me:$LINENO: checking for $ac_word" >&5
2025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026if test "${ac_cv_prog_CC+set}" = set; then
2027  echo $ECHO_N "(cached) $ECHO_C" >&6
2028else
2029  if test -n "$CC"; then
2030  ac_cv_prog_CC="$CC" # Let the user override the test.
2031else
2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035  IFS=$as_save_IFS
2036  test -z "$as_dir" && as_dir=.
2037  for ac_exec_ext in '' $ac_executable_extensions; do
2038  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2039    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041    break 2
2042  fi
2043done
2044done
2045
2046fi
2047fi
2048CC=$ac_cv_prog_CC
2049if test -n "$CC"; then
2050  echo "$as_me:$LINENO: result: $CC" >&5
2051echo "${ECHO_T}$CC" >&6
2052else
2053  echo "$as_me:$LINENO: result: no" >&5
2054echo "${ECHO_T}no" >&6
2055fi
2056
2057    test -n "$CC" && break
2058  done
2059fi
2060if test -z "$CC"; then
2061  ac_ct_CC=$CC
2062  for ac_prog in $comps
2063do
2064  # Extract the first word of "$ac_prog", so it can be a program name with args.
2065set dummy $ac_prog; ac_word=$2
2066echo "$as_me:$LINENO: checking for $ac_word" >&5
2067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2069  echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071  if test -n "$ac_ct_CC"; then
2072  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073else
2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077  IFS=$as_save_IFS
2078  test -z "$as_dir" && as_dir=.
2079  for ac_exec_ext in '' $ac_executable_extensions; do
2080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081    ac_cv_prog_ac_ct_CC="$ac_prog"
2082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083    break 2
2084  fi
2085done
2086done
2087
2088fi
2089fi
2090ac_ct_CC=$ac_cv_prog_ac_ct_CC
2091if test -n "$ac_ct_CC"; then
2092  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2093echo "${ECHO_T}$ac_ct_CC" >&6
2094else
2095  echo "$as_me:$LINENO: result: no" >&5
2096echo "${ECHO_T}no" >&6
2097fi
2098
2099  test -n "$ac_ct_CC" && break
2100done
2101
2102  CC=$ac_ct_CC
2103fi
2104
2105
2106test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2107See \`config.log' for more details." >&5
2108echo "$as_me: error: no acceptable C compiler found in \$PATH
2109See \`config.log' for more details." >&2;}
2110   { (exit 1); exit 1; }; }
2111
2112# Provide some information about the compiler.
2113echo "$as_me:$LINENO:" \
2114     "checking for C compiler version" >&5
2115ac_compiler=`set X $ac_compile; echo $2`
2116{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2117  (eval $ac_compiler --version </dev/null >&5) 2>&5
2118  ac_status=$?
2119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120  (exit $ac_status); }
2121{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2122  (eval $ac_compiler -v </dev/null >&5) 2>&5
2123  ac_status=$?
2124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125  (exit $ac_status); }
2126{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2127  (eval $ac_compiler -V </dev/null >&5) 2>&5
2128  ac_status=$?
2129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130  (exit $ac_status); }
2131
2132cat >conftest.$ac_ext <<_ACEOF
2133/* confdefs.h.  */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h.  */
2138
2139int
2140main ()
2141{
2142
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147ac_clean_files_save=$ac_clean_files
2148ac_clean_files="$ac_clean_files a.out a.exe b.out"
2149# Try to create an executable without -o first, disregard a.out.
2150# It will help us diagnose broken compilers, and finding out an intuition
2151# of exeext.
2152echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2153echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2154ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2155if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2156  (eval $ac_link_default) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }; then
2160  # Find the output, starting from the most likely.  This scheme is
2161# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2162# resort.
2163
2164# Be careful to initialize this variable, since it used to be cached.
2165# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2166ac_cv_exeext=
2167# b.out is created by i960 compilers.
2168for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2169do
2170  test -f "$ac_file" || continue
2171  case $ac_file in
2172    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2173        ;;
2174    conftest.$ac_ext )
2175        # This is the source file.
2176        ;;
2177    [ab].out )
2178        # We found the default executable, but exeext='' is most
2179        # certainly right.
2180        break;;
2181    *.* )
2182        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183        # FIXME: I believe we export ac_cv_exeext for Libtool,
2184        # but it would be cool to find out if it's true.  Does anybody
2185        # maintain Libtool? --akim.
2186        export ac_cv_exeext
2187        break;;
2188    * )
2189        break;;
2190  esac
2191done
2192else
2193  echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2197See \`config.log' for more details." >&5
2198echo "$as_me: error: C compiler cannot create executables
2199See \`config.log' for more details." >&2;}
2200   { (exit 77); exit 77; }; }
2201fi
2202
2203ac_exeext=$ac_cv_exeext
2204echo "$as_me:$LINENO: result: $ac_file" >&5
2205echo "${ECHO_T}$ac_file" >&6
2206
2207# Check the compiler produces executables we can run.  If not, either
2208# the compiler is broken, or we cross compile.
2209echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2210echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2211# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2212# If not cross compiling, check that we can run a simple program.
2213if test "$cross_compiling" != yes; then
2214  if { ac_try='./$ac_file'
2215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216  (eval $ac_try) 2>&5
2217  ac_status=$?
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); }; }; then
2220    cross_compiling=no
2221  else
2222    if test "$cross_compiling" = maybe; then
2223        cross_compiling=yes
2224    else
2225        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226If you meant to cross compile, use \`--host'.
2227See \`config.log' for more details." >&5
2228echo "$as_me: error: cannot run C compiled programs.
2229If you meant to cross compile, use \`--host'.
2230See \`config.log' for more details." >&2;}
2231   { (exit 1); exit 1; }; }
2232    fi
2233  fi
2234fi
2235echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6
2237
2238rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239ac_clean_files=$ac_clean_files_save
2240# Check the compiler produces executables we can run.  If not, either
2241# the compiler is broken, or we cross compile.
2242echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2244echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245echo "${ECHO_T}$cross_compiling" >&6
2246
2247echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2250  (eval $ac_link) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; then
2254  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2255# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2256# work properly (i.e., refer to `conftest.exe'), while it won't with
2257# `rm'.
2258for ac_file in conftest.exe conftest conftest.*; do
2259  test -f "$ac_file" || continue
2260  case $ac_file in
2261    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2262    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2263          export ac_cv_exeext
2264          break;;
2265    * ) break;;
2266  esac
2267done
2268else
2269  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2272See \`config.log' for more details." >&2;}
2273   { (exit 1); exit 1; }; }
2274fi
2275
2276rm -f conftest$ac_cv_exeext
2277echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2278echo "${ECHO_T}$ac_cv_exeext" >&6
2279
2280rm -f conftest.$ac_ext
2281EXEEXT=$ac_cv_exeext
2282ac_exeext=$EXEEXT
2283echo "$as_me:$LINENO: checking for suffix of object files" >&5
2284echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2285if test "${ac_cv_objext+set}" = set; then
2286  echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288  cat >conftest.$ac_ext <<_ACEOF
2289/* confdefs.h.  */
2290_ACEOF
2291cat confdefs.h >>conftest.$ac_ext
2292cat >>conftest.$ac_ext <<_ACEOF
2293/* end confdefs.h.  */
2294
2295int
2296main ()
2297{
2298
2299  ;
2300  return 0;
2301}
2302_ACEOF
2303rm -f conftest.o conftest.obj
2304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305  (eval $ac_compile) 2>&5
2306  ac_status=$?
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); }; then
2309  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2310  case $ac_file in
2311    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2312    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2313       break;;
2314  esac
2315done
2316else
2317  echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2321See \`config.log' for more details." >&5
2322echo "$as_me: error: cannot compute suffix of object files: cannot compile
2323See \`config.log' for more details." >&2;}
2324   { (exit 1); exit 1; }; }
2325fi
2326
2327rm -f conftest.$ac_cv_objext conftest.$ac_ext
2328fi
2329echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2330echo "${ECHO_T}$ac_cv_objext" >&6
2331OBJEXT=$ac_cv_objext
2332ac_objext=$OBJEXT
2333echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2334echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2335if test "${ac_cv_c_compiler_gnu+set}" = set; then
2336  echo $ECHO_N "(cached) $ECHO_C" >&6
2337else
2338  cat >conftest.$ac_ext <<_ACEOF
2339/* confdefs.h.  */
2340_ACEOF
2341cat confdefs.h >>conftest.$ac_ext
2342cat >>conftest.$ac_ext <<_ACEOF
2343/* end confdefs.h.  */
2344
2345int
2346main ()
2347{
2348#ifndef __GNUC__
2349       choke me
2350#endif
2351
2352  ;
2353  return 0;
2354}
2355_ACEOF
2356rm -f conftest.$ac_objext
2357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358  (eval $ac_compile) 2>conftest.er1
2359  ac_status=$?
2360  grep -v '^ *+' conftest.er1 >conftest.err
2361  rm -f conftest.er1
2362  cat conftest.err >&5
2363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364  (exit $ac_status); } &&
2365         { ac_try='test -z "$ac_c_werror_flag"
2366                         || test ! -s conftest.err'
2367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368  (eval $ac_try) 2>&5
2369  ac_status=$?
2370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371  (exit $ac_status); }; } &&
2372         { ac_try='test -s conftest.$ac_objext'
2373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374  (eval $ac_try) 2>&5
2375  ac_status=$?
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); }; }; then
2378  ac_compiler_gnu=yes
2379else
2380  echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5
2382
2383ac_compiler_gnu=no
2384fi
2385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2386ac_cv_c_compiler_gnu=$ac_compiler_gnu
2387
2388fi
2389echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2390echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2391GCC=`test $ac_compiler_gnu = yes && echo yes`
2392ac_test_CFLAGS=${CFLAGS+set}
2393ac_save_CFLAGS=$CFLAGS
2394CFLAGS="-g"
2395echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2396echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2397if test "${ac_cv_prog_cc_g+set}" = set; then
2398  echo $ECHO_N "(cached) $ECHO_C" >&6
2399else
2400  cat >conftest.$ac_ext <<_ACEOF
2401/* confdefs.h.  */
2402_ACEOF
2403cat confdefs.h >>conftest.$ac_ext
2404cat >>conftest.$ac_ext <<_ACEOF
2405/* end confdefs.h.  */
2406
2407int
2408main ()
2409{
2410
2411  ;
2412  return 0;
2413}
2414_ACEOF
2415rm -f conftest.$ac_objext
2416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417  (eval $ac_compile) 2>conftest.er1
2418  ac_status=$?
2419  grep -v '^ *+' conftest.er1 >conftest.err
2420  rm -f conftest.er1
2421  cat conftest.err >&5
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); } &&
2424         { ac_try='test -z "$ac_c_werror_flag"
2425                         || test ! -s conftest.err'
2426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427  (eval $ac_try) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; } &&
2431         { ac_try='test -s conftest.$ac_objext'
2432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433  (eval $ac_try) 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }; }; then
2437  ac_cv_prog_cc_g=yes
2438else
2439  echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442ac_cv_prog_cc_g=no
2443fi
2444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445fi
2446echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2447echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2448if test "$ac_test_CFLAGS" = set; then
2449  CFLAGS=$ac_save_CFLAGS
2450elif test $ac_cv_prog_cc_g = yes; then
2451  if test "$GCC" = yes; then
2452    CFLAGS="-g -O2"
2453  else
2454    CFLAGS="-g"
2455  fi
2456else
2457  if test "$GCC" = yes; then
2458    CFLAGS="-O2"
2459  else
2460    CFLAGS=
2461  fi
2462fi
2463echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2464echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2465if test "${ac_cv_prog_cc_stdc+set}" = set; then
2466  echo $ECHO_N "(cached) $ECHO_C" >&6
2467else
2468  ac_cv_prog_cc_stdc=no
2469ac_save_CC=$CC
2470cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h.  */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h.  */
2476#include <stdarg.h>
2477#include <stdio.h>
2478#include <sys/types.h>
2479#include <sys/stat.h>
2480/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2481struct buf { int x; };
2482FILE * (*rcsopen) (struct buf *, struct stat *, int);
2483static char *e (p, i)
2484     char **p;
2485     int i;
2486{
2487  return p[i];
2488}
2489static char *f (char * (*g) (char **, int), char **p, ...)
2490{
2491  char *s;
2492  va_list v;
2493  va_start (v,p);
2494  s = g (p, va_arg (v,int));
2495  va_end (v);
2496  return s;
2497}
2498
2499/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2500   function prototypes and stuff, but not '\xHH' hex character constants.
2501   These don't provoke an error unfortunately, instead are silently treated
2502   as 'x'.  The following induces an error, until -std1 is added to get
2503   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2504   array size at least.  It's necessary to write '\x00'==0 to get something
2505   that's true only with -std1.  */
2506int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2507
2508int test (int i, double x);
2509struct s1 {int (*f) (int a);};
2510struct s2 {int (*f) (double a);};
2511int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2512int argc;
2513char **argv;
2514int
2515main ()
2516{
2517return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2518  ;
2519  return 0;
2520}
2521_ACEOF
2522# Don't try gcc -ansi; that turns off useful extensions and
2523# breaks some systems' header files.
2524# AIX                   -qlanglvl=ansi
2525# Ultrix and OSF/1      -std1
2526# HP-UX 10.20 and later -Ae
2527# HP-UX older versions  -Aa -D_HPUX_SOURCE
2528# SVR4                  -Xc -D__EXTENSIONS__
2529for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2530do
2531  CC="$ac_save_CC $ac_arg"
2532  rm -f conftest.$ac_objext
2533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534  (eval $ac_compile) 2>conftest.er1
2535  ac_status=$?
2536  grep -v '^ *+' conftest.er1 >conftest.err
2537  rm -f conftest.er1
2538  cat conftest.err >&5
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); } &&
2541         { ac_try='test -z "$ac_c_werror_flag"
2542                         || test ! -s conftest.err'
2543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544  (eval $ac_try) 2>&5
2545  ac_status=$?
2546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547  (exit $ac_status); }; } &&
2548         { ac_try='test -s conftest.$ac_objext'
2549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550  (eval $ac_try) 2>&5
2551  ac_status=$?
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); }; }; then
2554  ac_cv_prog_cc_stdc=$ac_arg
2555break
2556else
2557  echo "$as_me: failed program was:" >&5
2558sed 's/^/| /' conftest.$ac_ext >&5
2559
2560fi
2561rm -f conftest.err conftest.$ac_objext
2562done
2563rm -f conftest.$ac_ext conftest.$ac_objext
2564CC=$ac_save_CC
2565
2566fi
2567
2568case "x$ac_cv_prog_cc_stdc" in
2569  x|xno)
2570    echo "$as_me:$LINENO: result: none needed" >&5
2571echo "${ECHO_T}none needed" >&6 ;;
2572  *)
2573    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2574echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2575    CC="$CC $ac_cv_prog_cc_stdc" ;;
2576esac
2577
2578# Some people use a C++ compiler to compile C.  Since we use `exit',
2579# in C++ we need to declare it.  In case someone uses the same compiler
2580# for both compiling C and C++ we need to have the C++ compiler decide
2581# the declaration of exit, since it's the most demanding environment.
2582cat >conftest.$ac_ext <<_ACEOF
2583#ifndef __cplusplus
2584  choke me
2585#endif
2586_ACEOF
2587rm -f conftest.$ac_objext
2588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589  (eval $ac_compile) 2>conftest.er1
2590  ac_status=$?
2591  grep -v '^ *+' conftest.er1 >conftest.err
2592  rm -f conftest.er1
2593  cat conftest.err >&5
2594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595  (exit $ac_status); } &&
2596         { ac_try='test -z "$ac_c_werror_flag"
2597                         || test ! -s conftest.err'
2598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599  (eval $ac_try) 2>&5
2600  ac_status=$?
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); }; } &&
2603         { ac_try='test -s conftest.$ac_objext'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; }; then
2609  for ac_declaration in \
2610   '' \
2611   'extern "C" void std::exit (int) throw (); using std::exit;' \
2612   'extern "C" void std::exit (int); using std::exit;' \
2613   'extern "C" void exit (int) throw ();' \
2614   'extern "C" void exit (int);' \
2615   'void exit (int);'
2616do
2617  cat >conftest.$ac_ext <<_ACEOF
2618/* confdefs.h.  */
2619_ACEOF
2620cat confdefs.h >>conftest.$ac_ext
2621cat >>conftest.$ac_ext <<_ACEOF
2622/* end confdefs.h.  */
2623$ac_declaration
2624#include <stdlib.h>
2625int
2626main ()
2627{
2628exit (42);
2629  ;
2630  return 0;
2631}
2632_ACEOF
2633rm -f conftest.$ac_objext
2634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635  (eval $ac_compile) 2>conftest.er1
2636  ac_status=$?
2637  grep -v '^ *+' conftest.er1 >conftest.err
2638  rm -f conftest.er1
2639  cat conftest.err >&5
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); } &&
2642         { ac_try='test -z "$ac_c_werror_flag"
2643                         || test ! -s conftest.err'
2644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645  (eval $ac_try) 2>&5
2646  ac_status=$?
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); }; } &&
2649         { ac_try='test -s conftest.$ac_objext'
2650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651  (eval $ac_try) 2>&5
2652  ac_status=$?
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); }; }; then
2655  :
2656else
2657  echo "$as_me: failed program was:" >&5
2658sed 's/^/| /' conftest.$ac_ext >&5
2659
2660continue
2661fi
2662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2663  cat >conftest.$ac_ext <<_ACEOF
2664/* confdefs.h.  */
2665_ACEOF
2666cat confdefs.h >>conftest.$ac_ext
2667cat >>conftest.$ac_ext <<_ACEOF
2668/* end confdefs.h.  */
2669$ac_declaration
2670int
2671main ()
2672{
2673exit (42);
2674  ;
2675  return 0;
2676}
2677_ACEOF
2678rm -f conftest.$ac_objext
2679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680  (eval $ac_compile) 2>conftest.er1
2681  ac_status=$?
2682  grep -v '^ *+' conftest.er1 >conftest.err
2683  rm -f conftest.er1
2684  cat conftest.err >&5
2685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686  (exit $ac_status); } &&
2687         { ac_try='test -z "$ac_c_werror_flag"
2688                         || test ! -s conftest.err'
2689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690  (eval $ac_try) 2>&5
2691  ac_status=$?
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); }; } &&
2694         { ac_try='test -s conftest.$ac_objext'
2695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696  (eval $ac_try) 2>&5
2697  ac_status=$?
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); }; }; then
2700  break
2701else
2702  echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705fi
2706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707done
2708rm -f conftest*
2709if test -n "$ac_declaration"; then
2710  echo '#ifdef __cplusplus' >>confdefs.h
2711  echo $ac_declaration      >>confdefs.h
2712  echo '#endif'             >>confdefs.h
2713fi
2714
2715else
2716  echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
2719fi
2720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721ac_ext=c
2722ac_cpp='$CPP $CPPFLAGS'
2723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726
2727if test -z "$CC" ; then
2728  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2729echo "$as_me: error: Failed to find a C compiler!" >&2;}
2730   { (exit 1); exit 1; }; }
2731fi
2732# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2733case "$CC" in
2734  clang* ) ;;
2735  cl* | */cl* | CL* | */CL* )
2736    if test "$ac_cv_prog_cc_g" = yes ; then
2737      ac_cv_prog_cc_g=no
2738      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2739echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2740    fi ;;
2741  * )
2742    if test x"$CYGPATH_W" = x ; then
2743      CYGPATH_W=echo
2744    fi
2745    ;;
2746esac
2747CFLAGS="$save_cflags"
2748
2749# add automake conditional so we can recognize cl compiler in makefile
2750coin_cc_is_cl=false
2751case "$CC" in
2752  clang* ) ;;
2753  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2754    coin_cc_is_cl=true
2755    ;;
2756esac
2757
2758
2759if test $coin_cc_is_cl = true; then
2760  COIN_CC_IS_CL_TRUE=
2761  COIN_CC_IS_CL_FALSE='#'
2762else
2763  COIN_CC_IS_CL_TRUE='#'
2764  COIN_CC_IS_CL_FALSE=
2765fi
2766
2767
2768# Check if a project specific CFLAGS variable has been set
2769if test x$COIN_PRJCT != x; then
2770  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2771  if test x$coin_tmp = xset; then
2772    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2773  fi
2774fi
2775
2776if test x"$CFLAGS" = x; then
2777
2778  coin_add_cflags=
2779  coin_opt_cflags=
2780  coin_dbg_cflags=
2781  coin_warn_cflags=
2782
2783  if test "$GCC" = "yes"; then
2784    case "$CC" in
2785      icc* | */icc*)
2786        ;;
2787      *)
2788        coin_opt_cflags="-O3"
2789        coin_add_cflags="-pipe"
2790        coin_dbg_cflags="-g -O0"
2791        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2792    esac
2793  fi
2794  if test -z "$coin_opt_cflags"; then
2795    case $build in
2796      *-cygwin* | *-mingw*)
2797        case "$CC" in
2798          clang* ) ;;
2799          cl* | */cl* | CL* | */CL*)
2800            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2801              coin_opt_cflags='-MD -O2'
2802              coin_dbg_cflags='-MDd'
2803            else
2804              coin_opt_cflags='-MT -O2'
2805              coin_dbg_cflags='-MTd'
2806            fi
2807            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2808            ;;
2809          icl* | */icl* | ICL* | */ICL*)
2810            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2811              coin_opt_cflags='-MD -Ox'
2812              coin_dbg_cflags='-MDd -debug'
2813            else
2814              coin_opt_cflags='-MT -Ox'
2815              coin_dbg_cflags='-MTd -debug'
2816            fi
2817            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2818            ;;
2819        esac
2820        ;;
2821      *-linux-*)
2822        case "$CC" in
2823          icc* | */icc*)
2824            coin_opt_cflags="-O3 -ip -mp1"
2825            coin_add_cflags=""
2826            coin_dbg_cflags="-g"
2827            # Check if -i_dynamic is necessary (for new glibc library)
2828            CFLAGS=
2829            cat >conftest.$ac_ext <<_ACEOF
2830/* confdefs.h.  */
2831_ACEOF
2832cat confdefs.h >>conftest.$ac_ext
2833cat >>conftest.$ac_ext <<_ACEOF
2834/* end confdefs.h.  */
2835
2836int
2837main ()
2838{
2839int i=0; i++;
2840  ;
2841  return 0;
2842}
2843_ACEOF
2844rm -f conftest.$ac_objext conftest$ac_exeext
2845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2846  (eval $ac_link) 2>conftest.er1
2847  ac_status=$?
2848  grep -v '^ *+' conftest.er1 >conftest.err
2849  rm -f conftest.er1
2850  cat conftest.err >&5
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); } &&
2853         { ac_try='test -z "$ac_c_werror_flag"
2854                         || test ! -s conftest.err'
2855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856  (eval $ac_try) 2>&5
2857  ac_status=$?
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); }; } &&
2860         { ac_try='test -s conftest$ac_exeext'
2861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862  (eval $ac_try) 2>&5
2863  ac_status=$?
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); }; }; then
2866  :
2867else
2868  echo "$as_me: failed program was:" >&5
2869sed 's/^/| /' conftest.$ac_ext >&5
2870
2871coin_add_cflags="-i_dynamic $coin_add_cflags"
2872fi
2873rm -f conftest.err conftest.$ac_objext \
2874      conftest$ac_exeext conftest.$ac_ext
2875            ;;
2876          pgcc* | */pgcc*)
2877            coin_opt_cflags="-fast"
2878            coin_add_cflags="-Kieee -pc 64"
2879            coin_dbg_cflags="-g"
2880            ;;
2881        esac
2882        ;;
2883      *-ibm-*)
2884        case "$CC" in
2885          xlc* | */xlc* | mpxlc* | */mpxlc*)
2886            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2887            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2888            coin_dbg_cflags="-g"
2889          ;;
2890        esac
2891        ;;
2892      *-hp-*)
2893        coin_opt_cflags="-O"
2894        coin_add_cflags="-Ae"
2895        coin_dbg_cflags="-g"
2896        ;;
2897      *-*-solaris*)
2898        coin_opt_cflags="-xO4"
2899        coin_dbg_cflags="-g"
2900        ;;
2901      *-sgi-*)
2902        coin_opt_cflags="-O -OPT:Olimit=0"
2903        coin_dbg_cflags="-g"
2904        ;;
2905    esac
2906  fi
2907
2908  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2909    coin_dbg_cflags="-g"
2910  fi
2911
2912  if test -z "$coin_opt_cflags"; then
2913    # Try if -O option works if nothing else is set
2914    CFLAGS="-O"
2915    cat >conftest.$ac_ext <<_ACEOF
2916/* confdefs.h.  */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h.  */
2921
2922int
2923main ()
2924{
2925int i=0; i++;
2926  ;
2927  return 0;
2928}
2929_ACEOF
2930rm -f conftest.$ac_objext conftest$ac_exeext
2931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2932  (eval $ac_link) 2>conftest.er1
2933  ac_status=$?
2934  grep -v '^ *+' conftest.er1 >conftest.err
2935  rm -f conftest.er1
2936  cat conftest.err >&5
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); } &&
2939         { ac_try='test -z "$ac_c_werror_flag"
2940                         || test ! -s conftest.err'
2941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942  (eval $ac_try) 2>&5
2943  ac_status=$?
2944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); }; } &&
2946         { ac_try='test -s conftest$ac_exeext'
2947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948  (eval $ac_try) 2>&5
2949  ac_status=$?
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); }; }; then
2952  coin_opt_cflags="-O"
2953else
2954  echo "$as_me: failed program was:" >&5
2955sed 's/^/| /' conftest.$ac_ext >&5
2956
2957fi
2958rm -f conftest.err conftest.$ac_objext \
2959      conftest$ac_exeext conftest.$ac_ext
2960  fi
2961
2962  # if PM doesn't want the warning messages, take them out
2963  if test x"$coin_skip_warn_cflags" = xyes; then
2964    coin_warn_cflags=
2965  fi
2966
2967  if test x${DBG_CFLAGS+set} != xset; then
2968    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2969  fi
2970  if test x${OPT_CFLAGS+set} != xset; then
2971    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2972  fi
2973
2974  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2975  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2976
2977  if test "$coin_debug_compile" = "true"; then
2978    CFLAGS="$DBG_CFLAGS"
2979  else
2980    CFLAGS="$OPT_CFLAGS"
2981  fi
2982else
2983  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2984  if test x${DBG_CFLAGS+set} != xset; then
2985    DBG_CFLAGS="$CFLAGS"
2986  fi
2987  if test x${OPT_CFLAGS+set} != xset; then
2988    OPT_CFLAGS="$CFLAGS"
2989  fi
2990fi
2991
2992# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2993if test x$COIN_PRJCT != x; then
2994  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2995fi
2996
2997# Try if CFLAGS works
2998save_CFLAGS="$CFLAGS"
2999cat >conftest.$ac_ext <<_ACEOF
3000/* confdefs.h.  */
3001_ACEOF
3002cat confdefs.h >>conftest.$ac_ext
3003cat >>conftest.$ac_ext <<_ACEOF
3004/* end confdefs.h.  */
3005
3006int
3007main ()
3008{
3009int i=0; i++;
3010  ;
3011  return 0;
3012}
3013_ACEOF
3014rm -f conftest.$ac_objext conftest$ac_exeext
3015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3016  (eval $ac_link) 2>conftest.er1
3017  ac_status=$?
3018  grep -v '^ *+' conftest.er1 >conftest.err
3019  rm -f conftest.er1
3020  cat conftest.err >&5
3021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022  (exit $ac_status); } &&
3023         { ac_try='test -z "$ac_c_werror_flag"
3024                         || test ! -s conftest.err'
3025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026  (eval $ac_try) 2>&5
3027  ac_status=$?
3028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029  (exit $ac_status); }; } &&
3030         { ac_try='test -s conftest$ac_exeext'
3031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032  (eval $ac_try) 2>&5
3033  ac_status=$?
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); }; }; then
3036  :
3037else
3038  echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041CFLAGS=
3042fi
3043rm -f conftest.err conftest.$ac_objext \
3044      conftest$ac_exeext conftest.$ac_ext
3045if test -z "$CFLAGS"; then
3046  { 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
3047echo "$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;}
3048  CFLAGS='-O'
3049  cat >conftest.$ac_ext <<_ACEOF
3050/* confdefs.h.  */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h.  */
3055
3056int
3057main ()
3058{
3059int i=0; i++;
3060  ;
3061  return 0;
3062}
3063_ACEOF
3064rm -f conftest.$ac_objext conftest$ac_exeext
3065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3066  (eval $ac_link) 2>conftest.er1
3067  ac_status=$?
3068  grep -v '^ *+' conftest.er1 >conftest.err
3069  rm -f conftest.er1
3070  cat conftest.err >&5
3071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072  (exit $ac_status); } &&
3073         { ac_try='test -z "$ac_c_werror_flag"
3074                         || test ! -s conftest.err'
3075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076  (eval $ac_try) 2>&5
3077  ac_status=$?
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); }; } &&
3080         { ac_try='test -s conftest$ac_exeext'
3081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082  (eval $ac_try) 2>&5
3083  ac_status=$?
3084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085  (exit $ac_status); }; }; then
3086  :
3087else
3088  echo "$as_me: failed program was:" >&5
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
3091CFLAGS=
3092fi
3093rm -f conftest.err conftest.$ac_objext \
3094      conftest$ac_exeext conftest.$ac_ext
3095  if test -z "$CFLAGS"; then
3096    { 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
3097echo "$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;}
3098  fi
3099fi
3100
3101{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3102echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3103
3104
3105if test x"$MPICC" = x; then :; else
3106  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3107echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3108  CC="$MPICC"
3109fi
3110
3111# Correct the LD variable if we are using the MS or Intel-windows compiler
3112case "$CC" in
3113  clang* ) ;;
3114  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3115    LD=link
3116    ;;
3117esac
3118
3119ac_ext=c
3120ac_cpp='$CPP $CPPFLAGS'
3121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124
3125
3126
3127# Check if pkg-config is available (to setup addlibs file)
3128
3129
3130# Check whether --enable-pkg-config or --disable-pkg-config was given.
3131if test "${enable_pkg_config+set}" = set; then
3132  enableval="$enable_pkg_config"
3133  use_pkgconfig="$enableval"
3134else
3135  if test x$coin_cc_is_cl = xtrue; then
3136     use_pkgconfig=no
3137   else
3138     use_pkgconfig=yes
3139   fi
3140fi;
3141
3142if test $use_pkgconfig = yes ; then
3143  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3144    if test -n "$ac_tool_prefix"; then
3145  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3146set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3147echo "$as_me:$LINENO: checking for $ac_word" >&5
3148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3150  echo $ECHO_N "(cached) $ECHO_C" >&6
3151else
3152  if test -n "$PKG_CONFIG"; then
3153  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3154else
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158  IFS=$as_save_IFS
3159  test -z "$as_dir" && as_dir=.
3160  for ac_exec_ext in '' $ac_executable_extensions; do
3161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3163    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164    break 2
3165  fi
3166done
3167done
3168
3169fi
3170fi
3171PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3172if test -n "$PKG_CONFIG"; then
3173  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3174echo "${ECHO_T}$PKG_CONFIG" >&6
3175else
3176  echo "$as_me:$LINENO: result: no" >&5
3177echo "${ECHO_T}no" >&6
3178fi
3179
3180fi
3181if test -z "$ac_cv_prog_PKG_CONFIG"; then
3182  ac_ct_PKG_CONFIG=$PKG_CONFIG
3183  # Extract the first word of "pkg-config", so it can be a program name with args.
3184set dummy pkg-config; ac_word=$2
3185echo "$as_me:$LINENO: checking for $ac_word" >&5
3186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3187if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3188  echo $ECHO_N "(cached) $ECHO_C" >&6
3189else
3190  if test -n "$ac_ct_PKG_CONFIG"; then
3191  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3192else
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196  IFS=$as_save_IFS
3197  test -z "$as_dir" && as_dir=.
3198  for ac_exec_ext in '' $ac_executable_extensions; do
3199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202    break 2
3203  fi
3204done
3205done
3206
3207fi
3208fi
3209ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3210if test -n "$ac_ct_PKG_CONFIG"; then
3211  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3212echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3213else
3214  echo "$as_me:$LINENO: result: no" >&5
3215echo "${ECHO_T}no" >&6
3216fi
3217
3218  PKG_CONFIG=$ac_ct_PKG_CONFIG
3219else
3220  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3221fi
3222
3223  fi
3224  if test -n "$PKG_CONFIG"; then
3225    _pkg_min_version=0.16.0
3226    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3227echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3228    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3229      echo "$as_me:$LINENO: result: yes" >&5
3230echo "${ECHO_T}yes" >&6
3231    else
3232      echo "$as_me:$LINENO: result: no" >&5
3233echo "${ECHO_T}no" >&6
3234      PKG_CONFIG=""
3235    fi
3236  fi
3237
3238  # check if pkg-config supports the short-errors flag
3239  if test -n "$PKG_CONFIG" && \
3240    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3241    pkg_short_errors=" --short-errors "
3242  else
3243    pkg_short_errors=""
3244  fi
3245fi
3246
3247
3248
3249if test -n "$PKG_CONFIG"; then
3250  COIN_HAS_PKGCONFIG_TRUE=
3251  COIN_HAS_PKGCONFIG_FALSE='#'
3252else
3253  COIN_HAS_PKGCONFIG_TRUE='#'
3254  COIN_HAS_PKGCONFIG_FALSE=
3255fi
3256
3257
3258
3259# assemble pkg-config search path for installed projects
3260COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3261
3262# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
3263# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3264# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3265if test "x${prefix}" = xNONE ; then
3266  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3267else
3268  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3269fi
3270
3271
3272# Check whether --with-coin-instdir or --without-coin-instdir was given.
3273if test "${with_coin_instdir+set}" = set; then
3274  withval="$with_coin_instdir"
3275  if test -d "$withval"; then : ; else
3276     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3277echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3278   { (exit 1); exit 1; }; }
3279   fi
3280   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3281
3282fi;
3283
3284
3285
3286# assemble additional pkg-config search paths for uninstalled projects
3287if test x$coin_projectdir = xyes ; then
3288  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3289  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3290  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3291  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
3292  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3293  if test -f ../coin_subdirs.txt ; then
3294    for i in `cat ../coin_subdirs.txt` ; do
3295      if test -d ../$i ; then
3296        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3297      fi
3298      if test -d ../$i/pkgconfig ; then
3299        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3300      fi
3301    done
3302  fi
3303
3304  if test -f ../../coin_subdirs.txt ; then
3305    for i in `cat ../../coin_subdirs.txt` ; do
3306      if test -d ../../$i ; then
3307        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3308      fi
3309      if test -d ../../$i/pkgconfig ; then
3310        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3311      fi
3312    done
3313  fi
3314
3315
3316fi
3317
3318if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3319  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
3320echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
3321fi
3322
3323
3324
3325# Initialize automake
3326{
3327
3328
3329
3330# START
3331
3332coin_disable_shared=no
3333# Test if force_shared has been set
3334if test "x" = xforce_shared; then
3335  if test x$enable_shared = xno; then
3336    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3337echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3338   { (exit 1); exit 1; }; }
3339  fi
3340  enable_shared=yes;
3341else
3342  case $build in
3343    *-cygwin* | *-mingw*)
3344      coin_disable_shared=yes
3345      if test x"$enable_shared" = xyes; then
3346        case "$CC" in
3347          clang* )
3348            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3349echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3350            ;;
3351          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3352            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
3353echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
3354            ;;
3355          *gcc*)
3356            if test x"$enable_dependency_linking" = xyes; then
3357              coin_disable_shared=no
3358            else
3359              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
3360echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
3361            fi
3362            ;;
3363          *)
3364            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3365echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3366            ;;
3367        esac
3368      fi
3369    ;;
3370    *-aix*)
3371      coin_disable_shared=yes
3372      platform=AIX
3373      if test x"$enable_shared" = xyes; then
3374        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
3375echo "$as_me: WARNING: Shared objects are not supported." >&2;}
3376      fi
3377    ;;
3378  esac
3379fi
3380if test x"$coin_disable_shared" = xyes; then
3381  if test x"$enable_shared" = xyes; then
3382    :
3383  else
3384    # we don't disable shared, because it was not selected anyway
3385    coin_disable_shared=no
3386  fi
3387  enable_shared=no
3388fi
3389# By default, we only want the shared objects to be compiled
3390# Check whether --enable-static or --disable-static was given.
3391if test "${enable_static+set}" = set; then
3392  enableval="$enable_static"
3393  p=${PACKAGE-default}
3394    case $enableval in
3395    yes) enable_static=yes ;;
3396    no) enable_static=no ;;
3397    *)
3398     enable_static=no
3399      # Look at the argument we got.  We use all the common list separators.
3400      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3401      for pkg in $enableval; do
3402        IFS="$lt_save_ifs"
3403        if test "X$pkg" = "X$p"; then
3404          enable_static=yes
3405        fi
3406      done
3407      IFS="$lt_save_ifs"
3408      ;;
3409    esac
3410else
3411  enable_static=no
3412fi;
3413
3414
3415
3416
3417# Initialize automake
3418echo "$as_me:$LINENO: checking for egrep" >&5
3419echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3420if test "${ac_cv_prog_egrep+set}" = set; then
3421  echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3424    then ac_cv_prog_egrep='grep -E'
3425    else ac_cv_prog_egrep='egrep'
3426    fi
3427fi
3428echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3429echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3430 EGREP=$ac_cv_prog_egrep
3431
3432
3433echo "$as_me:$LINENO: checking whether ln -s works" >&5
3434echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3435LN_S=$as_ln_s
3436if test "$LN_S" = "ln -s"; then
3437  echo "$as_me:$LINENO: result: yes" >&5
3438echo "${ECHO_T}yes" >&6
3439else
3440  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3441echo "${ECHO_T}no, using $LN_S" >&6
3442fi
3443
3444am__api_version="1.9"
3445# Find a good install program.  We prefer a C program (faster),
3446# so one script is as good as another.  But avoid the broken or
3447# incompatible versions:
3448# SysV /etc/install, /usr/sbin/install
3449# SunOS /usr/etc/install
3450# IRIX /sbin/install
3451# AIX /bin/install
3452# AmigaOS /C/install, which installs bootblocks on floppy discs
3453# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3454# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3455# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3456# OS/2's system install, which has a completely different semantic
3457# ./install, which can be erroneously created by make from ./install.sh.
3458echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3459echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3460if test -z "$INSTALL"; then
3461if test "${ac_cv_path_install+set}" = set; then
3462  echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465for as_dir in $PATH
3466do
3467  IFS=$as_save_IFS
3468  test -z "$as_dir" && as_dir=.
3469  # Account for people who put trailing slashes in PATH elements.
3470case $as_dir/ in
3471  ./ | .// | /cC/* | \
3472  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3473  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3474  /usr/ucb/* ) ;;
3475  *)
3476    # OSF1 and SCO ODT 3.0 have their own names for install.
3477    # Don't use installbsd from OSF since it installs stuff as root
3478    # by default.
3479    for ac_prog in ginstall scoinst install; do
3480      for ac_exec_ext in '' $ac_executable_extensions; do
3481        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3482          if test $ac_prog = install &&
3483            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3484            # AIX install.  It has an incompatible calling convention.
3485            :
3486          elif test $ac_prog = install &&
3487            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3488            # program-specific install script used by HP pwplus--don't use.
3489            :
3490          else
3491            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3492            break 3
3493          fi
3494        fi
3495      done
3496    done
3497    ;;
3498esac
3499done
3500
3501
3502fi
3503  if test "${ac_cv_path_install+set}" = set; then
3504    INSTALL=$ac_cv_path_install
3505  else
3506    # As a last resort, use the slow shell script.  We don't cache a
3507    # path for INSTALL within a source directory, because that will
3508    # break other packages using the cache if that directory is
3509    # removed, or if the path is relative.
3510    INSTALL=$ac_install_sh
3511  fi
3512fi
3513echo "$as_me:$LINENO: result: $INSTALL" >&5
3514echo "${ECHO_T}$INSTALL" >&6
3515
3516# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3517# It thinks the first close brace ends the variable substitution.
3518test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3519
3520test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3521
3522test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3523
3524echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3525echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3526# Just in case
3527sleep 1
3528echo timestamp > conftest.file
3529# Do `set' in a subshell so we don't clobber the current shell's
3530# arguments.  Must try -L first in case configure is actually a
3531# symlink; some systems play weird games with the mod time of symlinks
3532# (eg FreeBSD returns the mod time of the symlink's containing
3533# directory).
3534if (
3535   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3536   if test "$*" = "X"; then
3537      # -L didn't work.
3538      set X `ls -t $srcdir/configure conftest.file`
3539   fi
3540   rm -f conftest.file
3541   if test "$*" != "X $srcdir/configure conftest.file" \
3542      && test "$*" != "X conftest.file $srcdir/configure"; then
3543
3544      # If neither matched, then we have a broken ls.  This can happen
3545      # if, for instance, CONFIG_SHELL is bash and it inherits a
3546      # broken ls alias from the environment.  This has actually
3547      # happened.  Such a system could not be considered "sane".
3548      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3549alias in your environment" >&5
3550echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3551alias in your environment" >&2;}
3552   { (exit 1); exit 1; }; }
3553   fi
3554
3555   test "$2" = conftest.file
3556   )
3557then
3558   # Ok.
3559   :
3560else
3561   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3562Check your system clock" >&5
3563echo "$as_me: error: newly created file is older than distributed files!
3564Check your system clock" >&2;}
3565   { (exit 1); exit 1; }; }
3566fi
3567echo "$as_me:$LINENO: result: yes" >&5
3568echo "${ECHO_T}yes" >&6
3569test "$program_prefix" != NONE &&
3570  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3571# Use a double $ so make ignores it.
3572test "$program_suffix" != NONE &&
3573  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3574# Double any \ or $.  echo might interpret backslashes.
3575# By default was `s,x,x', remove it if useless.
3576cat <<\_ACEOF >conftest.sed
3577s/[\\$]/&&/g;s/;s,x,x,$//
3578_ACEOF
3579program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3580rm conftest.sed
3581
3582# expand $ac_aux_dir to an absolute path
3583am_aux_dir=`cd $ac_aux_dir && pwd`
3584
3585test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3586# Use eval to expand $SHELL
3587if eval "$MISSING --run true"; then
3588  am_missing_run="$MISSING --run "
3589else
3590  am_missing_run=
3591  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3592echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3593fi
3594
3595if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3596  # We used to keeping the `.' as first argument, in order to
3597  # allow $(mkdir_p) to be used without argument.  As in
3598  #   $(mkdir_p) $(somedir)
3599  # where $(somedir) is conditionally defined.  However this is wrong
3600  # for two reasons:
3601  #  1. if the package is installed by a user who cannot write `.'
3602  #     make install will fail,
3603  #  2. the above comment should most certainly read
3604  #     $(mkdir_p) $(DESTDIR)$(somedir)
3605  #     so it does not work when $(somedir) is undefined and
3606  #     $(DESTDIR) is not.
3607  #  To support the latter case, we have to write
3608  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3609  #  so the `.' trick is pointless.
3610  mkdir_p='mkdir -p --'
3611else
3612  # On NextStep and OpenStep, the `mkdir' command does not
3613  # recognize any option.  It will interpret all options as
3614  # directories to create, and then abort because `.' already
3615  # exists.
3616  for d in ./-p ./--version;
3617  do
3618    test -d $d && rmdir $d
3619  done
3620  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3621  if test -f "$ac_aux_dir/mkinstalldirs"; then
3622    mkdir_p='$(mkinstalldirs)'
3623  else
3624    mkdir_p='$(install_sh) -d'
3625  fi
3626fi
3627
3628for ac_prog in gawk mawk nawk awk
3629do
3630  # Extract the first word of "$ac_prog", so it can be a program name with args.
3631set dummy $ac_prog; ac_word=$2
3632echo "$as_me:$LINENO: checking for $ac_word" >&5
3633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3634if test "${ac_cv_prog_AWK+set}" = set; then
3635  echo $ECHO_N "(cached) $ECHO_C" >&6
3636else
3637  if test -n "$AWK"; then
3638  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3639else
3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH
3642do
3643  IFS=$as_save_IFS
3644  test -z "$as_dir" && as_dir=.
3645  for ac_exec_ext in '' $ac_executable_extensions; do
3646  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647    ac_cv_prog_AWK="$ac_prog"
3648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649    break 2
3650  fi
3651done
3652done
3653
3654fi
3655fi
3656AWK=$ac_cv_prog_AWK
3657if test -n "$AWK"; then
3658  echo "$as_me:$LINENO: result: $AWK" >&5
3659echo "${ECHO_T}$AWK" >&6
3660else
3661  echo "$as_me:$LINENO: result: no" >&5
3662echo "${ECHO_T}no" >&6
3663fi
3664
3665  test -n "$AWK" && break
3666done
3667
3668echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3669echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3670set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3671if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3672  echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674  cat >conftest.make <<\_ACEOF
3675all:
3676        @echo 'ac_maketemp="$(MAKE)"'
3677_ACEOF
3678# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3679eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3680if test -n "$ac_maketemp"; then
3681  eval ac_cv_prog_make_${ac_make}_set=yes
3682else
3683  eval ac_cv_prog_make_${ac_make}_set=no
3684fi
3685rm -f conftest.make
3686fi
3687if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3688  echo "$as_me:$LINENO: result: yes" >&5
3689echo "${ECHO_T}yes" >&6
3690  SET_MAKE=
3691else
3692  echo "$as_me:$LINENO: result: no" >&5
3693echo "${ECHO_T}no" >&6
3694  SET_MAKE="MAKE=${MAKE-make}"
3695fi
3696
3697rm -rf .tst 2>/dev/null
3698mkdir .tst 2>/dev/null
3699if test -d .tst; then
3700  am__leading_dot=.
3701else
3702  am__leading_dot=_
3703fi
3704rmdir .tst 2>/dev/null
3705
3706DEPDIR="${am__leading_dot}deps"
3707
3708          ac_config_commands="$ac_config_commands depfiles"
3709
3710
3711am_make=${MAKE-make}
3712cat > confinc << 'END'
3713am__doit:
3714        @echo done
3715.PHONY: am__doit
3716END
3717# If we don't find an include directive, just comment out the code.
3718echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3719echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3720am__include="#"
3721am__quote=
3722_am_result=none
3723# First try GNU make style include.
3724echo "include confinc" > confmf
3725# We grep out `Entering directory' and `Leaving directory'
3726# messages which can occur if `w' ends up in MAKEFLAGS.
3727# In particular we don't look at `^make:' because GNU make might
3728# be invoked under some other name (usually "gmake"), in which
3729# case it prints its new name instead of `make'.
3730if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3731   am__include=include
3732   am__quote=
3733   _am_result=GNU
3734fi
3735# Now try BSD make style include.
3736if test "$am__include" = "#"; then
3737   echo '.include "confinc"' > confmf
3738   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3739      am__include=.include
3740      am__quote="\""
3741      _am_result=BSD
3742   fi
3743fi
3744
3745
3746echo "$as_me:$LINENO: result: $_am_result" >&5
3747echo "${ECHO_T}$_am_result" >&6
3748rm -f confinc confmf
3749
3750# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3751if test "${enable_dependency_tracking+set}" = set; then
3752  enableval="$enable_dependency_tracking"
3753
3754fi;
3755if test "x$enable_dependency_tracking" != xno; then
3756  am_depcomp="$ac_aux_dir/depcomp"
3757  AMDEPBACKSLASH='\'
3758fi
3759
3760
3761if test "x$enable_dependency_tracking" != xno; then
3762  AMDEP_TRUE=
3763  AMDEP_FALSE='#'
3764else
3765  AMDEP_TRUE='#'
3766  AMDEP_FALSE=
3767fi
3768
3769
3770
3771
3772
3773
3774# AC_MSG_NOTICE([Beginning automake initialisation.])
3775# Stuff for automake
3776# test to see if srcdir already configured
3777if test "`cd $srcdir && pwd`" != "`pwd`" &&
3778   test -f $srcdir/config.status; then
3779  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3780echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3781   { (exit 1); exit 1; }; }
3782fi
3783
3784# test whether we have cygpath
3785if test -z "$CYGPATH_W"; then
3786  if (cygpath --version) >/dev/null 2>/dev/null; then
3787    CYGPATH_W='cygpath -w'
3788  else
3789    CYGPATH_W=echo
3790  fi
3791fi
3792
3793
3794# Define the identity of the package.
3795 PACKAGE='thirdpartyglpk'
3796 VERSION='1.10.5'
3797
3798
3799cat >>confdefs.h <<_ACEOF
3800#define PACKAGE "$PACKAGE"
3801_ACEOF
3802
3803
3804cat >>confdefs.h <<_ACEOF
3805#define VERSION "$VERSION"
3806_ACEOF
3807
3808# Some tools Automake needs.
3809
3810ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3811
3812
3813AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3814
3815
3816AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3817
3818
3819AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3820
3821
3822MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3823
3824install_sh=${install_sh-"$am_aux_dir/install-sh"}
3825
3826# Installed binaries are usually stripped using `strip' when the user
3827# run `make install-strip'.  However `strip' might not be the right
3828# tool to use in cross-compilation environments, therefore Automake
3829# will honor the `STRIP' environment variable to overrule this program.
3830if test "$cross_compiling" != no; then
3831  if test -n "$ac_tool_prefix"; then
3832  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3833set dummy ${ac_tool_prefix}strip; ac_word=$2
3834echo "$as_me:$LINENO: checking for $ac_word" >&5
3835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836if test "${ac_cv_prog_STRIP+set}" = set; then
3837  echo $ECHO_N "(cached) $ECHO_C" >&6
3838else
3839  if test -n "$STRIP"; then
3840  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3841else
3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843for as_dir in $PATH
3844do
3845  IFS=$as_save_IFS
3846  test -z "$as_dir" && as_dir=.
3847  for ac_exec_ext in '' $ac_executable_extensions; do
3848  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3850    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851    break 2
3852  fi
3853done
3854done
3855
3856fi
3857fi
3858STRIP=$ac_cv_prog_STRIP
3859if test -n "$STRIP"; then
3860  echo "$as_me:$LINENO: result: $STRIP" >&5
3861echo "${ECHO_T}$STRIP" >&6
3862else
3863  echo "$as_me:$LINENO: result: no" >&5
3864echo "${ECHO_T}no" >&6
3865fi
3866
3867fi
3868if test -z "$ac_cv_prog_STRIP"; then
3869  ac_ct_STRIP=$STRIP
3870  # Extract the first word of "strip", so it can be a program name with args.
3871set dummy strip; ac_word=$2
3872echo "$as_me:$LINENO: checking for $ac_word" >&5
3873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3874if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3875  echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877  if test -n "$ac_ct_STRIP"; then
3878  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3879else
3880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881for as_dir in $PATH
3882do
3883  IFS=$as_save_IFS
3884  test -z "$as_dir" && as_dir=.
3885  for ac_exec_ext in '' $ac_executable_extensions; do
3886  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3887    ac_cv_prog_ac_ct_STRIP="strip"
3888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889    break 2
3890  fi
3891done
3892done
3893
3894  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3895fi
3896fi
3897ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3898if test -n "$ac_ct_STRIP"; then
3899  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3900echo "${ECHO_T}$ac_ct_STRIP" >&6
3901else
3902  echo "$as_me:$LINENO: result: no" >&5
3903echo "${ECHO_T}no" >&6
3904fi
3905
3906  STRIP=$ac_ct_STRIP
3907else
3908  STRIP="$ac_cv_prog_STRIP"
3909fi
3910
3911fi
3912INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3913
3914# We need awk for the "check" target.  The system "awk" is bad on
3915# some platforms.
3916# Always define AMTAR for backward compatibility.
3917
3918AMTAR=${AMTAR-"${am_missing_run}tar"}
3919
3920am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3921
3922
3923
3924
3925depcc="$CC"   am_compiler_list=
3926
3927echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3928echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3929if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3930  echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3933  # We make a subdir and do the tests there.  Otherwise we can end up
3934  # making bogus files that we don't know about and never remove.  For
3935  # instance it was reported that on HP-UX the gcc test will end up
3936  # making a dummy file named `D' -- because `-MD' means `put the output
3937  # in D'.
3938  mkdir conftest.dir
3939  # Copy depcomp to subdir because otherwise we won't find it if we're
3940  # using a relative directory.
3941  cp "$am_depcomp" conftest.dir
3942  cd conftest.dir
3943  # We will build objects and dependencies in a subdirectory because
3944  # it helps to detect inapplicable dependency modes.  For instance
3945  # both Tru64's cc and ICC support -MD to output dependencies as a
3946  # side effect of compilation, but ICC will put the dependencies in
3947  # the current directory while Tru64 will put them in the object
3948  # directory.
3949  mkdir sub
3950
3951  am_cv_CC_dependencies_compiler_type=none
3952  if test "$am_compiler_list" = ""; then
3953     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3954  fi
3955  for depmode in $am_compiler_list; do
3956    # Setup a source with many dependencies, because some compilers
3957    # like to wrap large dependency lists on column 80 (with \), and
3958    # we should not choose a depcomp mode which is confused by this.
3959    #
3960    # We need to recreate these files for each test, as the compiler may
3961    # overwrite some of them when testing with obscure command lines.
3962    # This happens at least with the AIX C compiler.
3963    : > sub/conftest.c
3964    for i in 1 2 3 4 5 6; do
3965      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3966      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3967      # Solaris 8's {/usr,}/bin/sh.
3968      touch sub/conftst$i.h
3969    done
3970    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3971
3972    case $depmode in
3973    nosideeffect)
3974      # after this tag, mechanisms are not by side-effect, so they'll
3975      # only be used when explicitly requested
3976      if test "x$enable_dependency_tracking" = xyes; then
3977        continue
3978      else
3979        break
3980      fi
3981      ;;
3982    none) break ;;
3983    esac
3984    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3985    # mode.  It turns out that the SunPro C++ compiler does not properly
3986    # handle `-M -o', and we need to detect this.
3987    if depmode=$depmode \
3988       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3989       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3990       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3991         >/dev/null 2>conftest.err &&
3992       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3993       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3994       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3995      # icc doesn't choke on unknown options, it will just issue warnings
3996      # or remarks (even with -Werror).  So we grep stderr for any message
3997      # that says an option was ignored or not supported.
3998      # When given -MP, icc 7.0 and 7.1 complain thusly:
3999      #   icc: Command line warning: ignoring option '-M'; no argument required
4000      # The diagnosis changed in icc 8.0:
4001      #   icc: Command line remark: option '-MP' not supported
4002      if (grep 'ignoring option' conftest.err ||
4003          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4004        am_cv_CC_dependencies_compiler_type=$depmode
4005        break
4006      fi
4007    fi
4008  done
4009
4010  cd ..
4011  rm -rf conftest.dir
4012else
4013  am_cv_CC_dependencies_compiler_type=none
4014fi
4015
4016fi
4017echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4018echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4019CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4020
4021
4022
4023if
4024  test "x$enable_dependency_tracking" != xno \
4025  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4026  am__fastdepCC_TRUE=
4027  am__fastdepCC_FALSE='#'
4028else
4029  am__fastdepCC_TRUE='#'
4030  am__fastdepCC_FALSE=
4031fi
4032
4033
4034
4035echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4036echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4037    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4038if test "${enable_maintainer_mode+set}" = set; then
4039  enableval="$enable_maintainer_mode"
4040  USE_MAINTAINER_MODE=$enableval
4041else
4042  USE_MAINTAINER_MODE=no
4043fi;
4044  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4045echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4046
4047
4048if test $USE_MAINTAINER_MODE = yes; then
4049  MAINTAINER_MODE_TRUE=
4050  MAINTAINER_MODE_FALSE='#'
4051else
4052  MAINTAINER_MODE_TRUE='#'
4053  MAINTAINER_MODE_FALSE=
4054fi
4055
4056  MAINT=$MAINTAINER_MODE_TRUE
4057
4058
4059
4060coin_have_externals=no
4061if test "$enable_maintainer_mode" = yes; then
4062
4063  # If maintainer mode is chosen, we make sure that the correct versions
4064  # of the tools are used, and that we know where libtool.m4 is (to
4065  # recreate acinclude.m4)
4066
4067
4068  LIBTOOLM4=
4069  # Normally, $HOME
4070  AUTOTOOLS_DFLT=$HOME
4071
4072  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4073echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4074if test "${ac_cv_use_correct_autotools+set}" = set; then
4075  echo $ECHO_N "(cached) $ECHO_C" >&6
4076else
4077  ac_cv_use_correct_autotools=check
4078fi
4079echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4080echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4081
4082  if test $ac_cv_use_correct_autotools = check; then
4083    ac_cv_use_correct_autotools=yes
4084    # Check if we have autoconf
4085    # Extract the first word of "autoconf", so it can be a program name with args.
4086set dummy autoconf; ac_word=$2
4087echo "$as_me:$LINENO: checking for $ac_word" >&5
4088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089if test "${ac_cv_prog_have_autoconf+set}" = set; then
4090  echo $ECHO_N "(cached) $ECHO_C" >&6
4091else
4092  if test -n "$have_autoconf"; then
4093  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4094else
4095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098  IFS=$as_save_IFS
4099  test -z "$as_dir" && as_dir=.
4100  for ac_exec_ext in '' $ac_executable_extensions; do
4101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102    ac_cv_prog_have_autoconf="yes"
4103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104    break 2
4105  fi
4106done
4107done
4108
4109  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4110fi
4111fi
4112have_autoconf=$ac_cv_prog_have_autoconf
4113if test -n "$have_autoconf"; then
4114  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4115echo "${ECHO_T}$have_autoconf" >&6
4116else
4117  echo "$as_me:$LINENO: result: no" >&5
4118echo "${ECHO_T}no" >&6
4119fi
4120
4121    if test $have_autoconf = no; then
4122      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4123echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4124   { (exit 1); exit 1; }; }
4125    fi
4126
4127    # Check whether autoconf is the correct version
4128    correct_version='2.59'
4129    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4130    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4131echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4132    autoconf --version > confauto.out 2>&1
4133    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4134      echo "$as_me:$LINENO: result: yes" >&5
4135echo "${ECHO_T}yes" >&6
4136    else
4137      rm -f confauto.out
4138      echo "$as_me:$LINENO: result: no" >&5
4139echo "${ECHO_T}no" >&6
4140      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4141echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4142   { (exit 1); exit 1; }; }
4143    fi
4144    rm -f confauto.out
4145
4146    # Check if the executable autoconf is picked up from the correct location
4147    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4148echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4149    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4150    autoconf_dir=`cd $autoconf_dir; pwd`
4151    if test x$AUTOTOOLS_DIR = x; then
4152      want_dir=$AUTOTOOLS_DFLT/bin
4153    else
4154      want_dir=$AUTOTOOLS_DIR/bin
4155    fi
4156    if test $autoconf_dir = `cd $want_dir; pwd`; then
4157      echo "$as_me:$LINENO: result: yes" >&5
4158echo "${ECHO_T}yes" >&6
4159    else
4160      rm -f confauto.out
4161      echo "$as_me:$LINENO: result: no" >&5
4162echo "${ECHO_T}no" >&6
4163      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4164echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4165   { (exit 1); exit 1; }; }
4166    fi
4167
4168    # Check if we have automake
4169    # Extract the first word of "automake", so it can be a program name with args.
4170set dummy automake; ac_word=$2
4171echo "$as_me:$LINENO: checking for $ac_word" >&5
4172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4173if test "${ac_cv_prog_have_automake+set}" = set; then
4174  echo $ECHO_N "(cached) $ECHO_C" >&6
4175else
4176  if test -n "$have_automake"; then
4177  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4178else
4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH
4181do
4182  IFS=$as_save_IFS
4183  test -z "$as_dir" && as_dir=.
4184  for ac_exec_ext in '' $ac_executable_extensions; do
4185  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186    ac_cv_prog_have_automake="yes"
4187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4188    break 2
4189  fi
4190done
4191done
4192
4193  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4194fi
4195fi
4196have_automake=$ac_cv_prog_have_automake
4197if test -n "$have_automake"; then
4198  echo "$as_me:$LINENO: result: $have_automake" >&5
4199echo "${ECHO_T}$have_automake" >&6
4200else
4201  echo "$as_me:$LINENO: result: no" >&5
4202echo "${ECHO_T}no" >&6
4203fi
4204
4205    if test $have_automake = no; then
4206      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4207echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4208   { (exit 1); exit 1; }; }
4209    fi
4210
4211    # Check whether automake is the correct version
4212    correct_version='1.9.6'
4213    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4214    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4215echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4216    automake --version > confauto.out 2>&1
4217    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4218      echo "$as_me:$LINENO: result: yes" >&5
4219echo "${ECHO_T}yes" >&6
4220    else
4221      rm -f confauto.out
4222      echo "$as_me:$LINENO: result: no" >&5
4223echo "${ECHO_T}no" >&6
4224      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4225echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4226   { (exit 1); exit 1; }; }
4227    fi
4228    rm -f confauto.out
4229
4230    # Check if the executable automake is picked up from the correct location
4231    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4232echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4233    automake_dir=`which automake | sed -e 's=/automake=='`
4234    automake_dir=`cd $automake_dir; pwd`
4235    if test x$AUTOTOOLS_DIR = x; then
4236      want_dir=$AUTOTOOLS_DFLT/bin
4237    else
4238      want_dir=$AUTOTOOLS_DIR/bin
4239    fi
4240    if test $automake_dir = `cd $want_dir; pwd`; then
4241      echo "$as_me:$LINENO: result: yes" >&5
4242echo "${ECHO_T}yes" >&6
4243    else
4244      rm -f confauto.out
4245      echo "$as_me:$LINENO: result: no" >&5
4246echo "${ECHO_T}no" >&6
4247      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4248echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4249   { (exit 1); exit 1; }; }
4250    fi
4251
4252    # Check if this is the correct version of libtool (with escaped dots)
4253    if test x$AUTOTOOLS_DIR = x; then
4254      want_dir=$AUTOTOOLS_DFLT/share
4255    else
4256      want_dir=$AUTOTOOLS_DIR/share
4257    fi
4258    correct_version='1.5.22'
4259    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4260    if test -r $want_dir/libtool/ltmain.sh; then
4261  have_ltmain=yes
4262  :
4263else
4264  have_ltmain=no
4265  :
4266fi
4267
4268    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4269echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4270    if test $have_ltmain = yes; then
4271    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4272        echo "$as_me:$LINENO: result: yes" >&5
4273echo "${ECHO_T}yes" >&6
4274      else
4275        echo "$as_me:$LINENO: result: no" >&5
4276echo "${ECHO_T}no" >&6
4277        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4278echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4279   { (exit 1); exit 1; }; }
4280      fi
4281    else
4282      echo "$as_me:$LINENO: result: no" >&5
4283echo "${ECHO_T}no" >&6
4284      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4285echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4286   { (exit 1); exit 1; }; }
4287    fi
4288  fi
4289
4290  # Check if we can find the libtool file
4291  if test x$AUTOTOOLS_DIR = x; then
4292    want_dir=$AUTOTOOLS_DFLT/share
4293  else
4294    want_dir=$AUTOTOOLS_DIR/share
4295  fi
4296  if test -r $want_dir/aclocal/libtool.m4; then
4297  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4298  :
4299else
4300  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4301echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4302   { (exit 1); exit 1; }; }
4303  :
4304fi
4305
4306
4307  # Check if we have an Dependencies file
4308  if test -r $srcdir/Dependencies; then
4309    coin_have_externals=yes
4310  fi
4311  # Check if subversion is installed and understands https
4312  # Extract the first word of "svn", so it can be a program name with args.
4313set dummy svn; ac_word=$2
4314echo "$as_me:$LINENO: checking for $ac_word" >&5
4315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316if test "${ac_cv_prog_have_svn+set}" = set; then
4317  echo $ECHO_N "(cached) $ECHO_C" >&6
4318else
4319  if test -n "$have_svn"; then
4320  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4321else
4322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325  IFS=$as_save_IFS
4326  test -z "$as_dir" && as_dir=.
4327  for ac_exec_ext in '' $ac_executable_extensions; do
4328  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329    ac_cv_prog_have_svn="yes"
4330    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331    break 2
4332  fi
4333done
4334done
4335
4336  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4337fi
4338fi
4339have_svn=$ac_cv_prog_have_svn
4340if test -n "$have_svn"; then
4341  echo "$as_me:$LINENO: result: $have_svn" >&5
4342echo "${ECHO_T}$have_svn" >&6
4343else
4344  echo "$as_me:$LINENO: result: no" >&5
4345echo "${ECHO_T}no" >&6
4346fi
4347
4348  if test x$have_svn = xyes; then
4349    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4350echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4351if test "${ac_cv_svn_understands_https+set}" = set; then
4352  echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354  svn --version > confauto.out 2>&1
4355                    if $EGREP https confauto.out >/dev/null 2>&1; then
4356                      ac_cv_svn_understands_https=yes
4357                    else
4358                      ac_cv_svn_understands_https=no
4359                      have_svn=no
4360                      ac_cv_prog_have_svn=no
4361                    fi
4362                    rm -f confauto.out
4363fi
4364echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4365echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4366  fi
4367
4368  # Find the location of the BuildTools directory
4369  BUILDTOOLSDIR=
4370  if test -r $srcdir/BuildTools/coin.m4; then
4371    BUILDTOOLSDIR=$srcdir/BuildTools
4372  else
4373    if test -r $srcdir/../BuildTools/coin.m4; then
4374      BUILDTOOLSDIR=$srcdir/../BuildTools
4375    else
4376      if test -r $srcdir/../../BuildTools/coin.m4; then
4377        BUILDTOOLSDIR=$srcdir/../../BuildTools
4378      else
4379        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4380echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4381   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4382      fi
4383    fi
4384  fi
4385
4386
4387  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4388  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4389    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4390  fi
4391
4392  # The following variable is set to the name of the directory where
4393  # the autotool scripts are located
4394
4395  AUX_DIR=$ac_aux_dir
4396fi
4397
4398# helpful variable for the base directory of this package
4399abs_source_dir=`cd $srcdir; pwd`
4400
4401
4402# Stuff for example Makefiles
4403if test x$prefix = xNONE; then
4404  full_prefix=$ac_default_prefix
4405else
4406  full_prefix=$prefix
4407fi
4408full_prefix=`cd $full_prefix ; pwd`
4409
4410abs_lib_dir=$full_prefix/lib
4411
4412abs_include_dir=$full_prefix/include
4413
4414abs_bin_dir=$full_prefix/bin
4415
4416
4417
4418if test $coin_have_externals = yes && test x$have_svn = xyes; then
4419  HAVE_EXTERNALS_TRUE=
4420  HAVE_EXTERNALS_FALSE='#'
4421else
4422  HAVE_EXTERNALS_TRUE='#'
4423  HAVE_EXTERNALS_FALSE=
4424fi
4425
4426
4427# AC_MSG_NOTICE([End automake initialisation.])
4428
4429
4430
4431LIBTOOL=
4432if test -f ../libtool; then
4433  coin_config_dir=..
4434  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4435fi
4436if test "x$LIBTOOL" = x; then
4437  if test -f ../../libtool; then
4438    coin_config_dir=../..
4439    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4440  fi
4441fi
4442
4443if test "x$LIBTOOL" = x; then
4444# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4445  # Stuff for libtool
4446  # Check whether --enable-shared or --disable-shared was given.
4447if test "${enable_shared+set}" = set; then
4448  enableval="$enable_shared"
4449  p=${PACKAGE-default}
4450    case $enableval in
4451    yes) enable_shared=yes ;;
4452    no) enable_shared=no ;;
4453    *)
4454      enable_shared=no
4455      # Look at the argument we got.  We use all the common list separators.
4456      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4457      for pkg in $enableval; do
4458        IFS="$lt_save_ifs"
4459        if test "X$pkg" = "X$p"; then
4460          enable_shared=yes
4461        fi
4462      done
4463      IFS="$lt_save_ifs"
4464      ;;
4465    esac
4466else
4467  enable_shared=yes
4468fi;
4469
4470# Check whether --enable-fast-install or --disable-fast-install was given.
4471if test "${enable_fast_install+set}" = set; then
4472  enableval="$enable_fast_install"
4473  p=${PACKAGE-default}
4474    case $enableval in
4475    yes) enable_fast_install=yes ;;
4476    no) enable_fast_install=no ;;
4477    *)
4478      enable_fast_install=no
4479      # Look at the argument we got.  We use all the common list separators.
4480      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4481      for pkg in $enableval; do
4482        IFS="$lt_save_ifs"
4483        if test "X$pkg" = "X$p"; then
4484          enable_fast_install=yes
4485        fi
4486      done
4487      IFS="$lt_save_ifs"
4488      ;;
4489    esac
4490else
4491  enable_fast_install=yes
4492fi;
4493
4494echo "$as_me:$LINENO: checking host system type" >&5
4495echo $ECHO_N "checking host system type... $ECHO_C" >&6
4496if test "${ac_cv_host+set}" = set; then
4497  echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499  ac_cv_host_alias=$host_alias
4500test -z "$ac_cv_host_alias" &&
4501  ac_cv_host_alias=$ac_cv_build_alias
4502ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4503  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4504echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4505   { (exit 1); exit 1; }; }
4506
4507fi
4508echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4509echo "${ECHO_T}$ac_cv_host" >&6
4510host=$ac_cv_host
4511host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4512host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4513host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4514
4515
4516echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4517echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4518if test "${lt_cv_path_SED+set}" = set; then
4519  echo $ECHO_N "(cached) $ECHO_C" >&6
4520else
4521  # Loop through the user's path and test for sed and gsed.
4522# Then use that list of sed's as ones to test for truncation.
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526  IFS=$as_save_IFS
4527  test -z "$as_dir" && as_dir=.
4528  for lt_ac_prog in sed gsed; do
4529    for ac_exec_ext in '' $ac_executable_extensions; do
4530      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4531        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4532      fi
4533    done
4534  done
4535done
4536lt_ac_max=0
4537lt_ac_count=0
4538# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4539# along with /bin/sed that truncates output.
4540for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4541  test ! -f $lt_ac_sed && continue
4542  cat /dev/null > conftest.in
4543  lt_ac_count=0
4544  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4545  # Check for GNU sed and select it if it is found.
4546  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4547    lt_cv_path_SED=$lt_ac_sed
4548    break
4549  fi
4550  while true; do
4551    cat conftest.in conftest.in >conftest.tmp
4552    mv conftest.tmp conftest.in
4553    cp conftest.in conftest.nl
4554    echo >>conftest.nl
4555    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4556    cmp -s conftest.out conftest.nl || break
4557    # 10000 chars as input seems more than enough
4558    test $lt_ac_count -gt 10 && break
4559    lt_ac_count=`expr $lt_ac_count + 1`
4560    if test $lt_ac_count -gt $lt_ac_max; then
4561      lt_ac_max=$lt_ac_count
4562      lt_cv_path_SED=$lt_ac_sed
4563    fi
4564  done
4565done
4566
4567fi
4568
4569SED=$lt_cv_path_SED
4570echo "$as_me:$LINENO: result: $SED" >&5
4571echo "${ECHO_T}$SED" >&6
4572
4573
4574# Check whether --with-gnu-ld or --without-gnu-ld was given.
4575if test "${with_gnu_ld+set}" = set; then
4576  withval="$with_gnu_ld"
4577  test "$withval" = no || with_gnu_ld=yes
4578else
4579  with_gnu_ld=no
4580fi;
4581ac_prog=ld
4582if test "$GCC" = yes; then
4583  # Check if gcc -print-prog-name=ld gives a path.
4584  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4585echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4586  case $host in
4587  *-*-mingw*)
4588    # gcc leaves a trailing carriage return which upsets mingw
4589    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4590  *)
4591    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4592  esac
4593  case $ac_prog in
4594    # Accept absolute paths.
4595    [\\/]* | ?:[\\/]*)
4596      re_direlt='/[^/][^/]*/\.\./'
4597      # Canonicalize the pathname of ld
4598      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4599      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4600        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4601      done
4602      test -z "$LD" && LD="$ac_prog"
4603      ;;
4604  "")
4605    # If it fails, then pretend we aren't using GCC.
4606    ac_prog=ld
4607    ;;
4608  *)
4609    # If it is relative, then search for the first ld in PATH.
4610    with_gnu_ld=unknown
4611    ;;
4612  esac
4613elif test "$with_gnu_ld" = yes; then
4614  echo "$as_me:$LINENO: checking for GNU ld" >&5
4615echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4616else
4617  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4618echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4619fi
4620if test "${lt_cv_path_LD+set}" = set; then
4621  echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623  if test -z "$LD"; then
4624  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4625  for ac_dir in $PATH; do
4626    IFS="$lt_save_ifs"
4627    test -z "$ac_dir" && ac_dir=.
4628    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4629      lt_cv_path_LD="$ac_dir/$ac_prog"
4630      # Check to see if the program is GNU ld.  I'd rather use --version,
4631      # but apparently some variants of GNU ld only accept -v.
4632      # Break only if it was the GNU/non-GNU ld that we prefer.
4633      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4634      *GNU* | *'with BFD'*)
4635        test "$with_gnu_ld" != no && break
4636        ;;
4637      *)
4638        test "$with_gnu_ld" != yes && break
4639        ;;
4640      esac
4641    fi
4642  done
4643  IFS="$lt_save_ifs"
4644else
4645  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4646fi
4647fi
4648
4649LD="$lt_cv_path_LD"
4650if test -n "$LD"; then
4651  echo "$as_me:$LINENO: result: $LD" >&5
4652echo "${ECHO_T}$LD" >&6
4653else
4654  echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
4656fi
4657test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4658echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4659   { (exit 1); exit 1; }; }
4660echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4661echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4662if test "${lt_cv_prog_gnu_ld+set}" = set; then
4663  echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4666case `$LD -v 2>&1 </dev/null` in
4667*GNU* | *'with BFD'*)
4668  lt_cv_prog_gnu_ld=yes
4669  ;;
4670*)
4671  lt_cv_prog_gnu_ld=no
4672  ;;
4673esac
4674fi
4675echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4676echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4677with_gnu_ld=$lt_cv_prog_gnu_ld
4678
4679
4680echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4681echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4682if test "${lt_cv_ld_reload_flag+set}" = set; then
4683  echo $ECHO_N "(cached) $ECHO_C" >&6
4684else
4685  lt_cv_ld_reload_flag='-r'
4686fi
4687echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4688echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4689reload_flag=$lt_cv_ld_reload_flag
4690case $reload_flag in
4691"" | " "*) ;;
4692*) reload_flag=" $reload_flag" ;;
4693esac
4694reload_cmds='$LD$reload_flag -o $output$reload_objs'
4695case $host_os in
4696  darwin*)
4697    if test "$GCC" = yes; then
4698      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4699    else
4700      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4701    fi
4702    ;;
4703esac
4704
4705echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4706echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4707if test "${lt_cv_path_NM+set}" = set; then
4708  echo $ECHO_N "(cached) $ECHO_C" >&6
4709else
4710  if test -n "$NM"; then
4711  # Let the user override the test.
4712  lt_cv_path_NM="$NM"
4713else
4714  lt_nm_to_check="${ac_tool_prefix}nm"
4715  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4716    lt_nm_to_check="$lt_nm_to_check nm"
4717  fi
4718  for lt_tmp_nm in $lt_nm_to_check; do
4719    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4720    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4721      IFS="$lt_save_ifs"
4722      test -z "$ac_dir" && ac_dir=.
4723      tmp_nm="$ac_dir/$lt_tmp_nm"
4724      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4725        # Check to see if the nm accepts a BSD-compat flag.
4726        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4727        #   nm: unknown option "B" ignored
4728        # Tru64's nm complains that /dev/null is an invalid object file
4729        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4730        */dev/null* | *'Invalid file or object type'*)
4731          lt_cv_path_NM="$tmp_nm -B"
4732          break
4733          ;;
4734        *)
4735          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4736          */dev/null*)
4737            lt_cv_path_NM="$tmp_nm -p"
4738            break
4739            ;;
4740          *)
4741            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4742            continue # so that we can try to find one that supports BSD flags
4743            ;;
4744          esac
4745          ;;
4746        esac
4747      fi
4748    done
4749    IFS="$lt_save_ifs"
4750  done
4751  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4752fi
4753fi
4754echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4755echo "${ECHO_T}$lt_cv_path_NM" >&6
4756NM="$lt_cv_path_NM"
4757
4758echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4759echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4760if test "${lt_cv_deplibs_check_method+set}" = set; then
4761  echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763  lt_cv_file_magic_cmd='$MAGIC_CMD'
4764lt_cv_file_magic_test_file=
4765lt_cv_deplibs_check_method='unknown'
4766# Need to set the preceding variable on all platforms that support
4767# interlibrary dependencies.
4768# 'none' -- dependencies not supported.
4769# `unknown' -- same as none, but documents that we really don't know.
4770# 'pass_all' -- all dependencies passed with no checks.
4771# 'test_compile' -- check by making test program.
4772# 'file_magic [[regex]]' -- check by looking for files in library path
4773# which responds to the $file_magic_cmd with a given extended regex.
4774# If you have `file' or equivalent on your system and you're not sure
4775# whether `pass_all' will *always* work, you probably want this one.
4776
4777case $host_os in
4778aix4* | aix5*)
4779  lt_cv_deplibs_check_method=pass_all
4780  ;;
4781
4782beos*)
4783  lt_cv_deplibs_check_method=pass_all
4784  ;;
4785
4786bsdi[45]*)
4787  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4788  lt_cv_file_magic_cmd='/usr/bin/file -L'
4789  lt_cv_file_magic_test_file=/shlib/libc.so
4790  ;;
4791
4792cygwin*)
4793  # func_win32_libid is a shell function defined in ltmain.sh
4794  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4795  lt_cv_file_magic_cmd='func_win32_libid'
4796  ;;
4797
4798mingw* | pw32*)
4799  # Base MSYS/MinGW do not provide the 'file' command needed by
4800  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4801  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4802  lt_cv_file_magic_cmd='$OBJDUMP -f'
4803  ;;
4804
4805darwin* | rhapsody*)
4806  lt_cv_deplibs_check_method=pass_all
4807  ;;
4808
4809freebsd* | kfreebsd*-gnu | dragonfly*)
4810  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4811    case $host_cpu in
4812    i*86 )
4813      # Not sure whether the presence of OpenBSD here was a mistake.
4814      # Let's accept both of them until this is cleared up.
4815      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4816      lt_cv_file_magic_cmd=/usr/bin/file
4817      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4818      ;;
4819    esac
4820  else
4821    lt_cv_deplibs_check_method=pass_all
4822  fi
4823  ;;
4824
4825gnu*)
4826  lt_cv_deplibs_check_method=pass_all
4827  ;;
4828
4829hpux10.20* | hpux11*)
4830  lt_cv_file_magic_cmd=/usr/bin/file
4831  case $host_cpu in
4832  ia64*)
4833    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4834    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4835    ;;
4836  hppa*64*)
4837    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]'
4838    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4839    ;;
4840  *)
4841    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4842    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4843    ;;
4844  esac
4845  ;;
4846
4847interix3*)
4848  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4849  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4850  ;;
4851
4852irix5* | irix6* | nonstopux*)
4853  case $LD in
4854  *-32|*"-32 ") libmagic=32-bit;;
4855  *-n32|*"-n32 ") libmagic=N32;;
4856  *-64|*"-64 ") libmagic=64-bit;;
4857  *) libmagic=never-match;;
4858  esac
4859  lt_cv_deplibs_check_method=pass_all
4860  ;;
4861
4862# This must be Linux ELF.
4863linux*)
4864  lt_cv_deplibs_check_method=pass_all
4865  ;;
4866
4867netbsd*)
4868  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4869    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4870  else
4871    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4872  fi
4873  ;;
4874
4875newos6*)
4876  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4877  lt_cv_file_magic_cmd=/usr/bin/file
4878  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4879  ;;
4880
4881nto-qnx*)
4882  lt_cv_deplibs_check_method=unknown
4883  ;;
4884
4885openbsd*)
4886  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4887    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4888  else
4889    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4890  fi
4891  ;;
4892
4893osf3* | osf4* | osf5*)
4894  lt_cv_deplibs_check_method=pass_all
4895  ;;
4896
4897solaris*)
4898  lt_cv_deplibs_check_method=pass_all
4899  ;;
4900
4901sysv4 | sysv4.3*)
4902  case $host_vendor in
4903  motorola)
4904    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]'
4905    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4906    ;;
4907  ncr)
4908    lt_cv_deplibs_check_method=pass_all
4909    ;;
4910  sequent)
4911    lt_cv_file_magic_cmd='/bin/file'
4912    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4913    ;;
4914  sni)
4915    lt_cv_file_magic_cmd='/bin/file'
4916    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4917    lt_cv_file_magic_test_file=/lib/libc.so
4918    ;;
4919  siemens)
4920    lt_cv_deplibs_check_method=pass_all
4921    ;;
4922  pc)
4923    lt_cv_deplibs_check_method=pass_all
4924    ;;
4925  esac
4926  ;;
4927
4928sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4929  lt_cv_deplibs_check_method=pass_all
4930  ;;
4931esac
4932
4933fi
4934echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4935echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4936file_magic_cmd=$lt_cv_file_magic_cmd
4937deplibs_check_method=$lt_cv_deplibs_check_method
4938test -z "$deplibs_check_method" && deplibs_check_method=unknown
4939
4940
4941
4942
4943# If no C compiler was specified, use CC.
4944LTCC=${LTCC-"$CC"}
4945
4946# If no C compiler flags were specified, use CFLAGS.
4947LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4948
4949# Allow CC to be a program name with arguments.
4950compiler=$CC
4951
4952# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4953if test "${enable_libtool_lock+set}" = set; then
4954  enableval="$enable_libtool_lock"
4955
4956fi;
4957test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4958
4959# Some flags need to be propagated to the compiler or linker for good
4960# libtool support.
4961case $host in
4962ia64-*-hpux*)
4963  # Find out which ABI we are using.
4964  echo 'int i;' > conftest.$ac_ext
4965  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966  (eval $ac_compile) 2>&5
4967  ac_status=$?
4968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969  (exit $ac_status); }; then
4970    case `/usr/bin/file conftest.$ac_objext` in
4971    *ELF-32*)
4972      HPUX_IA64_MODE="32"
4973      ;;
4974    *ELF-64*)
4975      HPUX_IA64_MODE="64"
4976      ;;
4977    esac
4978  fi
4979  rm -rf conftest*
4980  ;;
4981*-*-irix6*)
4982  # Find out which ABI we are using.
4983  echo '#line 4983 "configure"' > conftest.$ac_ext
4984  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985  (eval $ac_compile) 2>&5
4986  ac_status=$?
4987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988  (exit $ac_status); }; then
4989   if test "$lt_cv_prog_gnu_ld" = yes; then
4990    case `/usr/bin/file conftest.$ac_objext` in
4991    *32-bit*)
4992      LD="${LD-ld} -melf32bsmip"
4993      ;;
4994    *N32*)
4995      LD="${LD-ld} -melf32bmipn32"
4996      ;;
4997    *64-bit*)
4998      LD="${LD-ld} -melf64bmip"
4999      ;;
5000    esac
5001   else
5002    case `/usr/bin/file conftest.$ac_objext` in
5003    *32-bit*)
5004      LD="${LD-ld} -32"
5005      ;;
5006    *N32*)
5007      LD="${LD-ld} -n32"
5008      ;;
5009    *64-bit*)
5010      LD="${LD-ld} -64"
5011      ;;
5012    esac
5013   fi
5014  fi
5015  rm -rf conftest*
5016  ;;
5017
5018x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5019  # Find out which ABI we are using.
5020  echo 'int i;' > conftest.$ac_ext
5021  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022  (eval $ac_compile) 2>&5
5023  ac_status=$?
5024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025  (exit $ac_status); }; then
5026    case `/usr/bin/file conftest.o` in
5027    *32-bit*)
5028      case $host in
5029        x86_64-*linux*)
5030          LD="${LD-ld} -m elf_i386"
5031          ;;
5032        ppc64-*linux*|powerpc64-*linux*)
5033          LD="${LD-ld} -m elf32ppclinux"
5034          ;;
5035        s390x-*linux*)
5036          LD="${LD-ld} -m elf_s390"
5037          ;;
5038        sparc64-*linux*)
5039          LD="${LD-ld} -m elf32_sparc"
5040          ;;
5041      esac
5042      ;;
5043    *64-bit*)
5044      case $host in
5045        x86_64-*linux*)
5046          LD="${LD-ld} -m elf_x86_64"
5047          ;;
5048        ppc*-*linux*|powerpc*-*linux*)
5049          LD="${LD-ld} -m elf64ppc"
5050          ;;
5051        s390*-*linux*)
5052          LD="${LD-ld} -m elf64_s390"
5053          ;;
5054        sparc*-*linux*)
5055          LD="${LD-ld} -m elf64_sparc"
5056          ;;
5057      esac
5058      ;;
5059    esac
5060  fi
5061  rm -rf conftest*
5062  ;;
5063
5064*-*-sco3.2v5*)
5065  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5066  SAVE_CFLAGS="$CFLAGS"
5067  CFLAGS="$CFLAGS -belf"
5068  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5069echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5070if test "${lt_cv_cc_needs_belf+set}" = set; then
5071  echo $ECHO_N "(cached) $ECHO_C" >&6
5072else
5073  ac_ext=c
5074ac_cpp='$CPP $CPPFLAGS'
5075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078
5079     cat >conftest.$ac_ext <<_ACEOF
5080/* confdefs.h.  */
5081_ACEOF
5082cat confdefs.h >>conftest.$ac_ext
5083cat >>conftest.$ac_ext <<_ACEOF
5084/* end confdefs.h.  */
5085
5086int
5087main ()
5088{
5089
5090  ;
5091  return 0;
5092}
5093_ACEOF
5094rm -f conftest.$ac_objext conftest$ac_exeext
5095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5096  (eval $ac_link) 2>conftest.er1
5097  ac_status=$?
5098  grep -v '^ *+' conftest.er1 >conftest.err
5099  rm -f conftest.er1
5100  cat conftest.err >&5
5101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102  (exit $ac_status); } &&
5103         { ac_try='test -z "$ac_c_werror_flag"
5104                         || test ! -s conftest.err'
5105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106  (eval $ac_try) 2>&5
5107  ac_status=$?
5108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109  (exit $ac_status); }; } &&
5110         { ac_try='test -s conftest$ac_exeext'
5111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112  (eval $ac_try) 2>&5
5113  ac_status=$?
5114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115  (exit $ac_status); }; }; then
5116  lt_cv_cc_needs_belf=yes
5117else
5118  echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121lt_cv_cc_needs_belf=no
5122fi
5123rm -f conftest.err conftest.$ac_objext \
5124      conftest$ac_exeext conftest.$ac_ext
5125     ac_ext=c
5126ac_cpp='$CPP $CPPFLAGS'
5127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129ac_compiler_gnu=$ac_cv_c_compiler_gnu
5130
5131fi
5132echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5133echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5134  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5135    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5136    CFLAGS="$SAVE_CFLAGS"
5137  fi
5138  ;;
5139sparc*-*solaris*)
5140  # Find out which ABI we are using.
5141  echo 'int i;' > conftest.$ac_ext
5142  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143  (eval $ac_compile) 2>&5
5144  ac_status=$?
5145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146  (exit $ac_status); }; then
5147    case `/usr/bin/file conftest.o` in
5148    *64-bit*)
5149      case $lt_cv_prog_gnu_ld in
5150      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5151      *)    LD="${LD-ld} -64" ;;
5152      esac
5153      ;;
5154    esac
5155  fi
5156  rm -rf conftest*
5157  ;;
5158
5159
5160esac
5161
5162need_locks="$enable_libtool_lock"
5163
5164
5165ac_ext=c
5166ac_cpp='$CPP $CPPFLAGS'
5167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169ac_compiler_gnu=$ac_cv_c_compiler_gnu
5170echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5171echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5172# On Suns, sometimes $CPP names a directory.
5173if test -n "$CPP" && test -d "$CPP"; then
5174  CPP=
5175fi
5176if test -z "$CPP"; then
5177  if test "${ac_cv_prog_CPP+set}" = set; then
5178  echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180      # Double quotes because CPP needs to be expanded
5181    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5182    do
5183      ac_preproc_ok=false
5184for ac_c_preproc_warn_flag in '' yes
5185do
5186  # Use a header file that comes with gcc, so configuring glibc
5187  # with a fresh cross-compiler works.
5188  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189  # <limits.h> exists even on freestanding compilers.
5190  # On the NeXT, cc -E runs the code through the compiler's parser,
5191  # not just through cpp. "Syntax error" is here to catch this case.
5192  cat >conftest.$ac_ext <<_ACEOF
5193/* confdefs.h.  */
5194_ACEOF
5195cat confdefs.h >>conftest.$ac_ext
5196cat >>conftest.$ac_ext <<_ACEOF
5197/* end confdefs.h.  */
5198#ifdef __STDC__
5199# include <limits.h>
5200#else
5201# include <assert.h>
5202#endif
5203                     Syntax error
5204_ACEOF
5205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5206  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5207  ac_status=$?
5208  grep -v '^ *+' conftest.er1 >conftest.err
5209  rm -f conftest.er1
5210  cat conftest.err >&5
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); } >/dev/null; then
5213  if test -s conftest.err; then
5214    ac_cpp_err=$ac_c_preproc_warn_flag
5215    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5216  else
5217    ac_cpp_err=
5218  fi
5219else
5220  ac_cpp_err=yes
5221fi
5222if test -z "$ac_cpp_err"; then
5223  :
5224else
5225  echo "$as_me: failed program was:" >&5
5226sed 's/^/| /' conftest.$ac_ext >&5
5227
5228  # Broken: fails on valid input.
5229continue
5230fi
5231rm -f conftest.err conftest.$ac_ext
5232
5233  # OK, works on sane cases.  Now check whether non-existent headers
5234  # can be detected and how.
5235  cat >conftest.$ac_ext <<_ACEOF
5236/* confdefs.h.  */
5237_ACEOF
5238cat confdefs.h >>conftest.$ac_ext
5239cat >>conftest.$ac_ext <<_ACEOF
5240/* end confdefs.h.  */
5241#include <ac_nonexistent.h>
5242_ACEOF
5243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5245  ac_status=$?
5246  grep -v '^ *+' conftest.er1 >conftest.err
5247  rm -f conftest.er1
5248  cat conftest.err >&5
5249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); } >/dev/null; then
5251  if test -s conftest.err; then
5252    ac_cpp_err=$ac_c_preproc_warn_flag
5253    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5254  else
5255    ac_cpp_err=
5256  fi
5257else
5258  ac_cpp_err=yes
5259fi
5260if test -z "$ac_cpp_err"; then
5261  # Broken: success on invalid input.
5262continue
5263else
5264  echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267  # Passes both tests.
5268ac_preproc_ok=:
5269break
5270fi
5271rm -f conftest.err conftest.$ac_ext
5272
5273done
5274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5275rm -f conftest.err conftest.$ac_ext
5276if $ac_preproc_ok; then
5277  break
5278fi
5279
5280    done
5281    ac_cv_prog_CPP=$CPP
5282
5283fi
5284  CPP=$ac_cv_prog_CPP
5285else
5286  ac_cv_prog_CPP=$CPP
5287fi
5288echo "$as_me:$LINENO: result: $CPP" >&5
5289echo "${ECHO_T}$CPP" >&6
5290ac_preproc_ok=false
5291for ac_c_preproc_warn_flag in '' yes
5292do
5293  # Use a header file that comes with gcc, so configuring glibc
5294  # with a fresh cross-compiler works.
5295  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5296  # <limits.h> exists even on freestanding compilers.
5297  # On the NeXT, cc -E runs the code through the compiler's parser,
5298  # not just through cpp. "Syntax error" is here to catch this case.
5299  cat >conftest.$ac_ext <<_ACEOF
5300/* confdefs.h.  */
5301_ACEOF
5302cat confdefs.h >>conftest.$ac_ext
5303cat >>conftest.$ac_ext <<_ACEOF
5304/* end confdefs.h.  */
5305#ifdef __STDC__
5306# include <limits.h>
5307#else
5308# include <assert.h>
5309#endif
5310                     Syntax error
5311_ACEOF
5312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5313  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5314  ac_status=$?
5315  grep -v '^ *+' conftest.er1 >conftest.err
5316  rm -f conftest.er1
5317  cat conftest.err >&5
5318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319  (exit $ac_status); } >/dev/null; then
5320  if test -s conftest.err; then
5321    ac_cpp_err=$ac_c_preproc_warn_flag
5322    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5323  else
5324    ac_cpp_err=
5325  fi
5326else
5327  ac_cpp_err=yes
5328fi
5329if test -z "$ac_cpp_err"; then
5330  :
5331else
5332  echo "$as_me: failed program was:" >&5
5333sed 's/^/| /' conftest.$ac_ext >&5
5334
5335  # Broken: fails on valid input.
5336continue
5337fi
5338rm -f conftest.err conftest.$ac_ext
5339
5340  # OK, works on sane cases.  Now check whether non-existent headers
5341  # can be detected and how.
5342  cat >conftest.$ac_ext <<_ACEOF
5343/* confdefs.h.  */
5344_ACEOF
5345cat confdefs.h >>conftest.$ac_ext
5346cat >>conftest.$ac_ext <<_ACEOF
5347/* end confdefs.h.  */
5348#include <ac_nonexistent.h>
5349_ACEOF
5350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5351  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5352  ac_status=$?
5353  grep -v '^ *+' conftest.er1 >conftest.err
5354  rm -f conftest.er1
5355  cat conftest.err >&5
5356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357  (exit $ac_status); } >/dev/null; then
5358  if test -s conftest.err; then
5359    ac_cpp_err=$ac_c_preproc_warn_flag
5360    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5361  else
5362    ac_cpp_err=
5363  fi
5364else
5365  ac_cpp_err=yes
5366fi
5367if test -z "$ac_cpp_err"; then
5368  # Broken: success on invalid input.
5369continue
5370else
5371  echo "$as_me: failed program was:" >&5
5372sed 's/^/| /' conftest.$ac_ext >&5
5373
5374  # Passes both tests.
5375ac_preproc_ok=:
5376break
5377fi
5378rm -f conftest.err conftest.$ac_ext
5379
5380done
5381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5382rm -f conftest.err conftest.$ac_ext
5383if $ac_preproc_ok; then
5384  :
5385else
5386  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5387See \`config.log' for more details." >&5
5388echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5389See \`config.log' for more details." >&2;}
5390   { (exit 1); exit 1; }; }
5391fi
5392
5393ac_ext=c
5394ac_cpp='$CPP $CPPFLAGS'
5395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398
5399
5400echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5401echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5402if test "${ac_cv_header_stdc+set}" = set; then
5403  echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405  cat >conftest.$ac_ext <<_ACEOF
5406/* confdefs.h.  */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h.  */
5411#include <stdlib.h>
5412#include <stdarg.h>
5413#include <string.h>
5414#include <float.h>
5415
5416int
5417main ()
5418{
5419
5420  ;
5421  return 0;
5422}
5423_ACEOF
5424rm -f conftest.$ac_objext
5425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426  (eval $ac_compile) 2>conftest.er1
5427  ac_status=$?
5428  grep -v '^ *+' conftest.er1 >conftest.err
5429  rm -f conftest.er1
5430  cat conftest.err >&5
5431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432  (exit $ac_status); } &&
5433         { ac_try='test -z "$ac_c_werror_flag"
5434                         || test ! -s conftest.err'
5435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436  (eval $ac_try) 2>&5
5437  ac_status=$?
5438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439  (exit $ac_status); }; } &&
5440         { ac_try='test -s conftest.$ac_objext'
5441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442  (eval $ac_try) 2>&5
5443  ac_status=$?
5444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445  (exit $ac_status); }; }; then
5446  ac_cv_header_stdc=yes
5447else
5448  echo "$as_me: failed program was:" >&5
5449sed 's/^/| /' conftest.$ac_ext >&5
5450
5451ac_cv_header_stdc=no
5452fi
5453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5454
5455if test $ac_cv_header_stdc = yes; then
5456  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5457  cat >conftest.$ac_ext <<_ACEOF
5458/* confdefs.h.  */
5459_ACEOF
5460cat confdefs.h >>conftest.$ac_ext
5461cat >>conftest.$ac_ext <<_ACEOF
5462/* end confdefs.h.  */
5463#include <string.h>
5464
5465_ACEOF
5466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5467  $EGREP "memchr" >/dev/null 2>&1; then
5468  :
5469else
5470  ac_cv_header_stdc=no
5471fi
5472rm -f conftest*
5473
5474fi
5475
5476if test $ac_cv_header_stdc = yes; then
5477  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5478  cat >conftest.$ac_ext <<_ACEOF
5479/* confdefs.h.  */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h.  */
5484#include <stdlib.h>
5485
5486_ACEOF
5487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5488  $EGREP "free" >/dev/null 2>&1; then
5489  :
5490else
5491  ac_cv_header_stdc=no
5492fi
5493rm -f conftest*
5494
5495fi
5496
5497if test $ac_cv_header_stdc = yes; then
5498  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5499  if test "$cross_compiling" = yes; then
5500  :
5501else
5502  cat >conftest.$ac_ext <<_ACEOF
5503/* confdefs.h.  */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
5507/* end confdefs.h.  */
5508#include <ctype.h>
5509#if ((' ' & 0x0FF) == 0x020)
5510# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5511# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5512#else
5513# define ISLOWER(c) \
5514                   (('a' <= (c) && (c) <= 'i') \
5515                     || ('j' <= (c) && (c) <= 'r') \
5516                     || ('s' <= (c) && (c) <= 'z'))
5517# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5518#endif
5519
5520#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5521int
5522main ()
5523{
5524  int i;
5525  for (i = 0; i < 256; i++)
5526    if (XOR (islower (i), ISLOWER (i))
5527        || toupper (i) != TOUPPER (i))
5528      exit(2);
5529  exit (0);
5530}
5531_ACEOF
5532rm -f conftest$ac_exeext
5533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534  (eval $ac_link) 2>&5
5535  ac_status=$?
5536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539  (eval $ac_try) 2>&5
5540  ac_status=$?
5541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542  (exit $ac_status); }; }; then
5543  :
5544else
5545  echo "$as_me: program exited with status $ac_status" >&5
5546echo "$as_me: failed program was:" >&5
5547sed 's/^/| /' conftest.$ac_ext >&5
5548
5549( exit $ac_status )
5550ac_cv_header_stdc=no
5551fi
5552rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5553fi
5554fi
5555fi
5556echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5557echo "${ECHO_T}$ac_cv_header_stdc" >&6
5558if test $ac_cv_header_stdc = yes; then
5559
5560cat >>confdefs.h <<\_ACEOF
5561#define STDC_HEADERS 1
5562_ACEOF
5563
5564fi
5565
5566# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5577                  inttypes.h stdint.h unistd.h
5578do
5579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5580echo "$as_me:$LINENO: checking for $ac_header" >&5
5581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5582if eval "test \"\${$as_ac_Header+set}\" = set"; then
5583  echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585  cat >conftest.$ac_ext <<_ACEOF
5586/* confdefs.h.  */
5587_ACEOF
5588cat confdefs.h >>conftest.$ac_ext
5589cat >>conftest.$ac_ext <<_ACEOF
5590/* end confdefs.h.  */
5591$ac_includes_default
5592
5593#include <$ac_header>
5594_ACEOF
5595rm -f conftest.$ac_objext
5596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5597  (eval $ac_compile) 2>conftest.er1
5598  ac_status=$?
5599  grep -v '^ *+' conftest.er1 >conftest.err
5600  rm -f conftest.er1
5601  cat conftest.err >&5
5602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603  (exit $ac_status); } &&
5604         { ac_try='test -z "$ac_c_werror_flag"
5605                         || test ! -s conftest.err'
5606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607  (eval $ac_try) 2>&5
5608  ac_status=$?
5609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610  (exit $ac_status); }; } &&
5611         { ac_try='test -s conftest.$ac_objext'
5612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613  (eval $ac_try) 2>&5
5614  ac_status=$?
5615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616  (exit $ac_status); }; }; then
5617  eval "$as_ac_Header=yes"
5618else
5619  echo "$as_me: failed program was:" >&5
5620sed 's/^/| /' conftest.$ac_ext >&5
5621
5622eval "$as_ac_Header=no"
5623fi
5624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5625fi
5626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5628if test `eval echo '${'$as_ac_Header'}'` = yes; then
5629  cat >>confdefs.h <<_ACEOF
5630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5631_ACEOF
5632
5633fi
5634
5635done
5636
5637
5638
5639for ac_header in dlfcn.h
5640do
5641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5642if eval "test \"\${$as_ac_Header+set}\" = set"; then
5643  echo "$as_me:$LINENO: checking for $ac_header" >&5
5644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5645if eval "test \"\${$as_ac_Header+set}\" = set"; then
5646  echo $ECHO_N "(cached) $ECHO_C" >&6
5647fi
5648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5650else
5651  # Is the header compilable?
5652echo "$as_me:$LINENO: checking $ac_header usability" >&5
5653echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5654cat >conftest.$ac_ext <<_ACEOF
5655/* confdefs.h.  */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h.  */
5660$ac_includes_default
5661#include <$ac_header>
5662_ACEOF
5663rm -f conftest.$ac_objext
5664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665  (eval $ac_compile) 2>conftest.er1
5666  ac_status=$?
5667  grep -v '^ *+' conftest.er1 >conftest.err
5668  rm -f conftest.er1
5669  cat conftest.err >&5
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); } &&
5672         { ac_try='test -z "$ac_c_werror_flag"
5673                         || test ! -s conftest.err'
5674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675  (eval $ac_try) 2>&5
5676  ac_status=$?
5677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678  (exit $ac_status); }; } &&
5679         { ac_try='test -s conftest.$ac_objext'
5680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681  (eval $ac_try) 2>&5
5682  ac_status=$?
5683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684  (exit $ac_status); }; }; then
5685  ac_header_compiler=yes
5686else
5687  echo "$as_me: failed program was:" >&5
5688sed 's/^/| /' conftest.$ac_ext >&5
5689
5690ac_header_compiler=no
5691fi
5692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5693echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5694echo "${ECHO_T}$ac_header_compiler" >&6
5695
5696# Is the header present?
5697echo "$as_me:$LINENO: checking $ac_header presence" >&5
5698echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5699cat >conftest.$ac_ext <<_ACEOF
5700/* confdefs.h.  */
5701_ACEOF
5702cat confdefs.h >>conftest.$ac_ext
5703cat >>conftest.$ac_ext <<_ACEOF
5704/* end confdefs.h.  */
5705#include <$ac_header>
5706_ACEOF
5707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5708  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5709  ac_status=$?
5710  grep -v '^ *+' conftest.er1 >conftest.err
5711  rm -f conftest.er1
5712  cat conftest.err >&5
5713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714  (exit $ac_status); } >/dev/null; then
5715  if test -s conftest.err; then
5716    ac_cpp_err=$ac_c_preproc_warn_flag
5717    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5718  else
5719    ac_cpp_err=
5720  fi
5721else
5722  ac_cpp_err=yes
5723fi
5724if test -z "$ac_cpp_err"; then
5725  ac_header_preproc=yes
5726else
5727  echo "$as_me: failed program was:" >&5
5728sed 's/^/| /' conftest.$ac_ext >&5
5729
5730  ac_header_preproc=no
5731fi
5732rm -f conftest.err conftest.$ac_ext
5733echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5734echo "${ECHO_T}$ac_header_preproc" >&6
5735
5736# So?  What about this header?
5737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5738  yes:no: )
5739    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5740echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5741    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5742echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5743    ac_header_preproc=yes
5744    ;;
5745  no:yes:* )
5746    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5747echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5748    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5749echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5750    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5751echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5752    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5753echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5754    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5756    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5757echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5758    (
5759      cat <<\_ASBOX
5760## --------------------------------------------------------------- ##
5761## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5762## --------------------------------------------------------------- ##
5763_ASBOX
5764    ) |
5765      sed "s/^/$as_me: WARNING:     /" >&2
5766    ;;
5767esac
5768echo "$as_me:$LINENO: checking for $ac_header" >&5
5769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5770if eval "test \"\${$as_ac_Header+set}\" = set"; then
5771  echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773  eval "$as_ac_Header=\$ac_header_preproc"
5774fi
5775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5777
5778fi
5779if test `eval echo '${'$as_ac_Header'}'` = yes; then
5780  cat >>confdefs.h <<_ACEOF
5781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5782_ACEOF
5783
5784fi
5785
5786done
5787
5788ac_ext=cc
5789ac_cpp='$CXXCPP $CPPFLAGS'
5790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5793if test -n "$ac_tool_prefix"; then
5794  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5795  do
5796    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5797set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5798echo "$as_me:$LINENO: checking for $ac_word" >&5
5799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800if test "${ac_cv_prog_CXX+set}" = set; then
5801  echo $ECHO_N "(cached) $ECHO_C" >&6
5802else
5803  if test -n "$CXX"; then
5804  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809  IFS=$as_save_IFS
5810  test -z "$as_dir" && as_dir=.
5811  for ac_exec_ext in '' $ac_executable_extensions; do
5812  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5814    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815    break 2
5816  fi
5817done
5818done
5819
5820fi
5821fi
5822CXX=$ac_cv_prog_CXX
5823if test -n "$CXX"; then
5824  echo "$as_me:$LINENO: result: $CXX" >&5
5825echo "${ECHO_T}$CXX" >&6
5826else
5827  echo "$as_me:$LINENO: result: no" >&5
5828echo "${ECHO_T}no" >&6
5829fi
5830
5831    test -n "$CXX" && break
5832  done
5833fi
5834if test -z "$CXX"; then
5835  ac_ct_CXX=$CXX
5836  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5837do
5838  # Extract the first word of "$ac_prog", so it can be a program name with args.
5839set dummy $ac_prog; ac_word=$2
5840echo "$as_me:$LINENO: checking for $ac_word" >&5
5841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5842if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5843  echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
5845  if test -n "$ac_ct_CXX"; then
5846  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5847else
5848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849for as_dir in $PATH
5850do
5851  IFS=$as_save_IFS
5852  test -z "$as_dir" && as_dir=.
5853  for ac_exec_ext in '' $ac_executable_extensions; do
5854  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855    ac_cv_prog_ac_ct_CXX="$ac_prog"
5856    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857    break 2
5858  fi
5859done
5860done
5861
5862fi
5863fi
5864ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5865if test -n "$ac_ct_CXX"; then
5866  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5867echo "${ECHO_T}$ac_ct_CXX" >&6
5868else
5869  echo "$as_me:$LINENO: result: no" >&5
5870echo "${ECHO_T}no" >&6
5871fi
5872
5873  test -n "$ac_ct_CXX" && break
5874done
5875test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5876
5877  CXX=$ac_ct_CXX
5878fi
5879
5880
5881# Provide some information about the compiler.
5882echo "$as_me:$LINENO:" \
5883     "checking for C++ compiler version" >&5
5884ac_compiler=`set X $ac_compile; echo $2`
5885{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5886  (eval $ac_compiler --version </dev/null >&5) 2>&5
5887  ac_status=$?
5888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889  (exit $ac_status); }
5890{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5891  (eval $ac_compiler -v </dev/null >&5) 2>&5
5892  ac_status=$?
5893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894  (exit $ac_status); }
5895{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5896  (eval $ac_compiler -V </dev/null >&5) 2>&5
5897  ac_status=$?
5898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899  (exit $ac_status); }
5900
5901echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5902echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5903if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5904  echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906  cat >conftest.$ac_ext <<_ACEOF
5907/* confdefs.h.  */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h.  */
5912
5913int
5914main ()
5915{
5916#ifndef __GNUC__
5917       choke me
5918#endif
5919
5920  ;
5921  return 0;
5922}
5923_ACEOF
5924rm -f conftest.$ac_objext
5925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926  (eval $ac_compile) 2>conftest.er1
5927  ac_status=$?
5928  grep -v '^ *+' conftest.er1 >conftest.err
5929  rm -f conftest.er1
5930  cat conftest.err >&5
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); } &&
5933         { ac_try='test -z "$ac_cxx_werror_flag"
5934                         || test ! -s conftest.err'
5935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936  (eval $ac_try) 2>&5
5937  ac_status=$?
5938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939  (exit $ac_status); }; } &&
5940         { ac_try='test -s conftest.$ac_objext'
5941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942  (eval $ac_try) 2>&5
5943  ac_status=$?
5944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945  (exit $ac_status); }; }; then
5946  ac_compiler_gnu=yes
5947else
5948  echo "$as_me: failed program was:" >&5
5949sed 's/^/| /' conftest.$ac_ext >&5
5950
5951ac_compiler_gnu=no
5952fi
5953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5954ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5955
5956fi
5957echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5958echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5959GXX=`test $ac_compiler_gnu = yes && echo yes`
5960ac_test_CXXFLAGS=${CXXFLAGS+set}
5961ac_save_CXXFLAGS=$CXXFLAGS
5962CXXFLAGS="-g"
5963echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5964echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5965if test "${ac_cv_prog_cxx_g+set}" = set; then
5966  echo $ECHO_N "(cached) $ECHO_C" >&6
5967else
5968  cat >conftest.$ac_ext <<_ACEOF
5969/* confdefs.h.  */
5970_ACEOF
5971cat confdefs.h >>conftest.$ac_ext
5972cat >>conftest.$ac_ext <<_ACEOF
5973/* end confdefs.h.  */
5974
5975int
5976main ()
5977{
5978
5979  ;
5980  return 0;
5981}
5982_ACEOF
5983rm -f conftest.$ac_objext
5984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985  (eval $ac_compile) 2>conftest.er1
5986  ac_status=$?
5987  grep -v '^ *+' conftest.er1 >conftest.err
5988  rm -f conftest.er1
5989  cat conftest.err >&5
5990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991  (exit $ac_status); } &&
5992         { ac_try='test -z "$ac_cxx_werror_flag"
5993                         || test ! -s conftest.err'
5994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995  (eval $ac_try) 2>&5
5996  ac_status=$?
5997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998  (exit $ac_status); }; } &&
5999         { ac_try='test -s conftest.$ac_objext'
6000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001  (eval $ac_try) 2>&5
6002  ac_status=$?
6003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004  (exit $ac_status); }; }; then
6005  ac_cv_prog_cxx_g=yes
6006else
6007  echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
6009
6010ac_cv_prog_cxx_g=no
6011fi
6012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013fi
6014echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6015echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6016if test "$ac_test_CXXFLAGS" = set; then
6017  CXXFLAGS=$ac_save_CXXFLAGS
6018elif test $ac_cv_prog_cxx_g = yes; then
6019  if test "$GXX" = yes; then
6020    CXXFLAGS="-g -O2"
6021  else
6022    CXXFLAGS="-g"
6023  fi
6024else
6025  if test "$GXX" = yes; then
6026    CXXFLAGS="-O2"
6027  else
6028    CXXFLAGS=
6029  fi
6030fi
6031for ac_declaration in \
6032   '' \
6033   'extern "C" void std::exit (int) throw (); using std::exit;' \
6034   'extern "C" void std::exit (int); using std::exit;' \
6035   'extern "C" void exit (int) throw ();' \
6036   'extern "C" void exit (int);' \
6037   'void exit (int);'
6038do
6039  cat >conftest.$ac_ext <<_ACEOF
6040/* confdefs.h.  */
6041_ACEOF
6042cat confdefs.h >>conftest.$ac_ext
6043cat >>conftest.$ac_ext <<_ACEOF
6044/* end confdefs.h.  */
6045$ac_declaration
6046#include <stdlib.h>
6047int
6048main ()
6049{
6050exit (42);
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_cxx_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  :
6078else
6079  echo "$as_me: failed program was:" >&5
6080sed 's/^/| /' conftest.$ac_ext >&5
6081
6082continue
6083fi
6084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6085  cat >conftest.$ac_ext <<_ACEOF
6086/* confdefs.h.  */
6087_ACEOF
6088cat confdefs.h >>conftest.$ac_ext
6089cat >>conftest.$ac_ext <<_ACEOF
6090/* end confdefs.h.  */
6091$ac_declaration
6092int
6093main ()
6094{
6095exit (42);
6096  ;
6097  return 0;
6098}
6099_ACEOF
6100rm -f conftest.$ac_objext
6101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102  (eval $ac_compile) 2>conftest.er1
6103  ac_status=$?
6104  grep -v '^ *+' conftest.er1 >conftest.err
6105  rm -f conftest.er1
6106  cat conftest.err >&5
6107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108  (exit $ac_status); } &&
6109         { ac_try='test -z "$ac_cxx_werror_flag"
6110                         || test ! -s conftest.err'
6111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112  (eval $ac_try) 2>&5
6113  ac_status=$?
6114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115  (exit $ac_status); }; } &&
6116         { ac_try='test -s conftest.$ac_objext'
6117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118  (eval $ac_try) 2>&5
6119  ac_status=$?
6120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121  (exit $ac_status); }; }; then
6122  break
6123else
6124  echo "$as_me: failed program was:" >&5
6125sed 's/^/| /' conftest.$ac_ext >&5
6126
6127fi
6128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6129done
6130rm -f conftest*
6131if test -n "$ac_declaration"; then
6132  echo '#ifdef __cplusplus' >>confdefs.h
6133  echo $ac_declaration      >>confdefs.h
6134  echo '#endif'             >>confdefs.h
6135fi
6136
6137ac_ext=cc
6138ac_cpp='$CXXCPP $CPPFLAGS'
6139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6142
6143depcc="$CXX"  am_compiler_list=
6144
6145echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6146echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6147if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6148  echo $ECHO_N "(cached) $ECHO_C" >&6
6149else
6150  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6151  # We make a subdir and do the tests there.  Otherwise we can end up
6152  # making bogus files that we don't know about and never remove.  For
6153  # instance it was reported that on HP-UX the gcc test will end up
6154  # making a dummy file named `D' -- because `-MD' means `put the output
6155  # in D'.
6156  mkdir conftest.dir
6157  # Copy depcomp to subdir because otherwise we won't find it if we're
6158  # using a relative directory.
6159  cp "$am_depcomp" conftest.dir
6160  cd conftest.dir
6161  # We will build objects and dependencies in a subdirectory because
6162  # it helps to detect inapplicable dependency modes.  For instance
6163  # both Tru64's cc and ICC support -MD to output dependencies as a
6164  # side effect of compilation, but ICC will put the dependencies in
6165  # the current directory while Tru64 will put them in the object
6166  # directory.
6167  mkdir sub
6168
6169  am_cv_CXX_dependencies_compiler_type=none
6170  if test "$am_compiler_list" = ""; then
6171     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6172  fi
6173  for depmode in $am_compiler_list; do
6174    # Setup a source with many dependencies, because some compilers
6175    # like to wrap large dependency lists on column 80 (with \), and
6176    # we should not choose a depcomp mode which is confused by this.
6177    #
6178    # We need to recreate these files for each test, as the compiler may
6179    # overwrite some of them when testing with obscure command lines.
6180    # This happens at least with the AIX C compiler.
6181    : > sub/conftest.c
6182    for i in 1 2 3 4 5 6; do
6183      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6184      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6185      # Solaris 8's {/usr,}/bin/sh.
6186      touch sub/conftst$i.h
6187    done
6188    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6189
6190    case $depmode in
6191    nosideeffect)
6192      # after this tag, mechanisms are not by side-effect, so they'll
6193      # only be used when explicitly requested
6194      if test "x$enable_dependency_tracking" = xyes; then
6195        continue
6196      else
6197        break
6198      fi
6199      ;;
6200    none) break ;;
6201    esac
6202    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6203    # mode.  It turns out that the SunPro C++ compiler does not properly
6204    # handle `-M -o', and we need to detect this.
6205    if depmode=$depmode \
6206       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6207       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6208       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6209         >/dev/null 2>conftest.err &&
6210       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6211       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6212       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6213      # icc doesn't choke on unknown options, it will just issue warnings
6214      # or remarks (even with -Werror).  So we grep stderr for any message
6215      # that says an option was ignored or not supported.
6216      # When given -MP, icc 7.0 and 7.1 complain thusly:
6217      #   icc: Command line warning: ignoring option '-M'; no argument required
6218      # The diagnosis changed in icc 8.0:
6219      #   icc: Command line remark: option '-MP' not supported
6220      if (grep 'ignoring option' conftest.err ||
6221          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6222        am_cv_CXX_dependencies_compiler_type=$depmode
6223        break
6224      fi
6225    fi
6226  done
6227
6228  cd ..
6229  rm -rf conftest.dir
6230else
6231  am_cv_CXX_dependencies_compiler_type=none
6232fi
6233
6234fi
6235echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6236echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6237CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6238
6239
6240
6241if
6242  test "x$enable_dependency_tracking" != xno \
6243  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6244  am__fastdepCXX_TRUE=
6245  am__fastdepCXX_FALSE='#'
6246else
6247  am__fastdepCXX_TRUE='#'
6248  am__fastdepCXX_FALSE=
6249fi
6250
6251
6252
6253
6254if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6255    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6256    (test "X$CXX" != "Xg++"))) ; then
6257  ac_ext=cc
6258ac_cpp='$CXXCPP $CPPFLAGS'
6259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6262echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6263echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6264if test -z "$CXXCPP"; then
6265  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6266  echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268      # Double quotes because CXXCPP needs to be expanded
6269    for CXXCPP in "$CXX -E" "/lib/cpp"
6270    do
6271      ac_preproc_ok=false
6272for ac_cxx_preproc_warn_flag in '' yes
6273do
6274  # Use a header file that comes with gcc, so configuring glibc
6275  # with a fresh cross-compiler works.
6276  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6277  # <limits.h> exists even on freestanding compilers.
6278  # On the NeXT, cc -E runs the code through the compiler's parser,
6279  # not just through cpp. "Syntax error" is here to catch this case.
6280  cat >conftest.$ac_ext <<_ACEOF
6281/* confdefs.h.  */
6282_ACEOF
6283cat confdefs.h >>conftest.$ac_ext
6284cat >>conftest.$ac_ext <<_ACEOF
6285/* end confdefs.h.  */
6286#ifdef __STDC__
6287# include <limits.h>
6288#else
6289# include <assert.h>
6290#endif
6291                     Syntax error
6292_ACEOF
6293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6295  ac_status=$?
6296  grep -v '^ *+' conftest.er1 >conftest.err
6297  rm -f conftest.er1
6298  cat conftest.err >&5
6299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300  (exit $ac_status); } >/dev/null; then
6301  if test -s conftest.err; then
6302    ac_cpp_err=$ac_cxx_preproc_warn_flag
6303    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6304  else
6305    ac_cpp_err=
6306  fi
6307else
6308  ac_cpp_err=yes
6309fi
6310if test -z "$ac_cpp_err"; then
6311  :
6312else
6313  echo "$as_me: failed program was:" >&5
6314sed 's/^/| /' conftest.$ac_ext >&5
6315
6316  # Broken: fails on valid input.
6317continue
6318fi
6319rm -f conftest.err conftest.$ac_ext
6320
6321  # OK, works on sane cases.  Now check whether non-existent headers
6322  # can be detected and how.
6323  cat >conftest.$ac_ext <<_ACEOF
6324/* confdefs.h.  */
6325_ACEOF
6326cat confdefs.h >>conftest.$ac_ext
6327cat >>conftest.$ac_ext <<_ACEOF
6328/* end confdefs.h.  */
6329#include <ac_nonexistent.h>
6330_ACEOF
6331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6332  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6333  ac_status=$?
6334  grep -v '^ *+' conftest.er1 >conftest.err
6335  rm -f conftest.er1
6336  cat conftest.err >&5
6337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338  (exit $ac_status); } >/dev/null; then
6339  if test -s conftest.err; then
6340    ac_cpp_err=$ac_cxx_preproc_warn_flag
6341    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6342  else
6343    ac_cpp_err=
6344  fi
6345else
6346  ac_cpp_err=yes
6347fi
6348if test -z "$ac_cpp_err"; then
6349  # Broken: success on invalid input.
6350continue
6351else
6352  echo "$as_me: failed program was:" >&5
6353sed 's/^/| /' conftest.$ac_ext >&5
6354
6355  # Passes both tests.
6356ac_preproc_ok=:
6357break
6358fi
6359rm -f conftest.err conftest.$ac_ext
6360
6361done
6362# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6363rm -f conftest.err conftest.$ac_ext
6364if $ac_preproc_ok; then
6365  break
6366fi
6367
6368    done
6369    ac_cv_prog_CXXCPP=$CXXCPP
6370
6371fi
6372  CXXCPP=$ac_cv_prog_CXXCPP
6373else
6374  ac_cv_prog_CXXCPP=$CXXCPP
6375fi
6376echo "$as_me:$LINENO: result: $CXXCPP" >&5
6377echo "${ECHO_T}$CXXCPP" >&6
6378ac_preproc_ok=false
6379for ac_cxx_preproc_warn_flag in '' yes
6380do
6381  # Use a header file that comes with gcc, so configuring glibc
6382  # with a fresh cross-compiler works.
6383  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6384  # <limits.h> exists even on freestanding compilers.
6385  # On the NeXT, cc -E runs the code through the compiler's parser,
6386  # not just through cpp. "Syntax error" is here to catch this case.
6387  cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h.  */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h.  */
6393#ifdef __STDC__
6394# include <limits.h>
6395#else
6396# include <assert.h>
6397#endif
6398                     Syntax error
6399_ACEOF
6400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6401  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6402  ac_status=$?
6403  grep -v '^ *+' conftest.er1 >conftest.err
6404  rm -f conftest.er1
6405  cat conftest.err >&5
6406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407  (exit $ac_status); } >/dev/null; then
6408  if test -s conftest.err; then
6409    ac_cpp_err=$ac_cxx_preproc_warn_flag
6410    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6411  else
6412    ac_cpp_err=
6413  fi
6414else
6415  ac_cpp_err=yes
6416fi
6417if test -z "$ac_cpp_err"; then
6418  :
6419else
6420  echo "$as_me: failed program was:" >&5
6421sed 's/^/| /' conftest.$ac_ext >&5
6422
6423  # Broken: fails on valid input.
6424continue
6425fi
6426rm -f conftest.err conftest.$ac_ext
6427
6428  # OK, works on sane cases.  Now check whether non-existent headers
6429  # can be detected and how.
6430  cat >conftest.$ac_ext <<_ACEOF
6431/* confdefs.h.  */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
6435/* end confdefs.h.  */
6436#include <ac_nonexistent.h>
6437_ACEOF
6438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6439  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6440  ac_status=$?
6441  grep -v '^ *+' conftest.er1 >conftest.err
6442  rm -f conftest.er1
6443  cat conftest.err >&5
6444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445  (exit $ac_status); } >/dev/null; then
6446  if test -s conftest.err; then
6447    ac_cpp_err=$ac_cxx_preproc_warn_flag
6448    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6449  else
6450    ac_cpp_err=
6451  fi
6452else
6453  ac_cpp_err=yes
6454fi
6455if test -z "$ac_cpp_err"; then
6456  # Broken: success on invalid input.
6457continue
6458else
6459  echo "$as_me: failed program was:" >&5
6460sed 's/^/| /' conftest.$ac_ext >&5
6461
6462  # Passes both tests.
6463ac_preproc_ok=:
6464break
6465fi
6466rm -f conftest.err conftest.$ac_ext
6467
6468done
6469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6470rm -f conftest.err conftest.$ac_ext
6471if $ac_preproc_ok; then
6472  :
6473else
6474  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6475See \`config.log' for more details." >&5
6476echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6477See \`config.log' for more details." >&2;}
6478   { (exit 1); exit 1; }; }
6479fi
6480
6481ac_ext=cc
6482ac_cpp='$CXXCPP $CPPFLAGS'
6483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6486
6487fi
6488
6489
6490ac_ext=f
6491ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6492ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6493ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6494if test -n "$ac_tool_prefix"; then
6495  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6496  do
6497    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6498set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6499echo "$as_me:$LINENO: checking for $ac_word" >&5
6500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6501if test "${ac_cv_prog_F77+set}" = set; then
6502  echo $ECHO_N "(cached) $ECHO_C" >&6
6503else
6504  if test -n "$F77"; then
6505  ac_cv_prog_F77="$F77" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510  IFS=$as_save_IFS
6511  test -z "$as_dir" && as_dir=.
6512  for ac_exec_ext in '' $ac_executable_extensions; do
6513  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6515    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6516    break 2
6517  fi
6518done
6519done
6520
6521fi
6522fi
6523F77=$ac_cv_prog_F77
6524if test -n "$F77"; then
6525  echo "$as_me:$LINENO: result: $F77" >&5
6526echo "${ECHO_T}$F77" >&6
6527else
6528  echo "$as_me:$LINENO: result: no" >&5
6529echo "${ECHO_T}no" >&6
6530fi
6531
6532    test -n "$F77" && break
6533  done
6534fi
6535if test -z "$F77"; then
6536  ac_ct_F77=$F77
6537  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6538do
6539  # Extract the first word of "$ac_prog", so it can be a program name with args.
6540set dummy $ac_prog; ac_word=$2
6541echo "$as_me:$LINENO: checking for $ac_word" >&5
6542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6543if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6544  echo $ECHO_N "(cached) $ECHO_C" >&6
6545else
6546  if test -n "$ac_ct_F77"; then
6547  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6548else
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552  IFS=$as_save_IFS
6553  test -z "$as_dir" && as_dir=.
6554  for ac_exec_ext in '' $ac_executable_extensions; do
6555  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556    ac_cv_prog_ac_ct_F77="$ac_prog"
6557    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558    break 2
6559  fi
6560done
6561done
6562
6563fi
6564fi
6565ac_ct_F77=$ac_cv_prog_ac_ct_F77
6566if test -n "$ac_ct_F77"; then
6567  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6568echo "${ECHO_T}$ac_ct_F77" >&6
6569else
6570  echo "$as_me:$LINENO: result: no" >&5
6571echo "${ECHO_T}no" >&6
6572fi
6573
6574  test -n "$ac_ct_F77" && break
6575done
6576
6577  F77=$ac_ct_F77
6578fi
6579
6580
6581# Provide some information about the compiler.
6582echo "$as_me:6582:" \
6583     "checking for Fortran 77 compiler version" >&5
6584ac_compiler=`set X $ac_compile; echo $2`
6585{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6586  (eval $ac_compiler --version </dev/null >&5) 2>&5
6587  ac_status=$?
6588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589  (exit $ac_status); }
6590{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6591  (eval $ac_compiler -v </dev/null >&5) 2>&5
6592  ac_status=$?
6593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594  (exit $ac_status); }
6595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6596  (eval $ac_compiler -V </dev/null >&5) 2>&5
6597  ac_status=$?
6598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599  (exit $ac_status); }
6600rm -f a.out
6601
6602# If we don't use `.F' as extension, the preprocessor is not run on the
6603# input file.  (Note that this only needs to work for GNU compilers.)
6604ac_save_ext=$ac_ext
6605ac_ext=F
6606echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6607echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6608if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6609  echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611  cat >conftest.$ac_ext <<_ACEOF
6612      program main
6613#ifndef __GNUC__
6614       choke me
6615#endif
6616
6617      end
6618_ACEOF
6619rm -f conftest.$ac_objext
6620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621  (eval $ac_compile) 2>conftest.er1
6622  ac_status=$?
6623  grep -v '^ *+' conftest.er1 >conftest.err
6624  rm -f conftest.er1
6625  cat conftest.err >&5
6626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); } &&
6628         { ac_try='test -z "$ac_f77_werror_flag"
6629                         || test ! -s conftest.err'
6630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631  (eval $ac_try) 2>&5
6632  ac_status=$?
6633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); }; } &&
6635         { ac_try='test -s conftest.$ac_objext'
6636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637  (eval $ac_try) 2>&5
6638  ac_status=$?
6639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640  (exit $ac_status); }; }; then
6641  ac_compiler_gnu=yes
6642else
6643  echo "$as_me: failed program was:" >&5
6644sed 's/^/| /' conftest.$ac_ext >&5
6645
6646ac_compiler_gnu=no
6647fi
6648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6650
6651fi
6652echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6653echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6654ac_ext=$ac_save_ext
6655ac_test_FFLAGS=${FFLAGS+set}
6656ac_save_FFLAGS=$FFLAGS
6657FFLAGS=
6658echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6659echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6660if test "${ac_cv_prog_f77_g+set}" = set; then
6661  echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663  FFLAGS=-g
6664cat >conftest.$ac_ext <<_ACEOF
6665      program main
6666
6667      end
6668_ACEOF
6669rm -f conftest.$ac_objext
6670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671  (eval $ac_compile) 2>conftest.er1
6672  ac_status=$?
6673  grep -v '^ *+' conftest.er1 >conftest.err
6674  rm -f conftest.er1
6675  cat conftest.err >&5
6676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677  (exit $ac_status); } &&
6678         { ac_try='test -z "$ac_f77_werror_flag"
6679                         || test ! -s conftest.err'
6680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681  (eval $ac_try) 2>&5
6682  ac_status=$?
6683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684  (exit $ac_status); }; } &&
6685         { ac_try='test -s conftest.$ac_objext'
6686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687  (eval $ac_try) 2>&5
6688  ac_status=$?
6689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690  (exit $ac_status); }; }; then
6691  ac_cv_prog_f77_g=yes
6692else
6693  echo "$as_me: failed program was:" >&5
6694sed 's/^/| /' conftest.$ac_ext >&5
6695
6696ac_cv_prog_f77_g=no
6697fi
6698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6699
6700fi
6701echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6702echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6703if test "$ac_test_FFLAGS" = set; then
6704  FFLAGS=$ac_save_FFLAGS
6705elif test $ac_cv_prog_f77_g = yes; then
6706  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6707    FFLAGS="-g -O2"
6708  else
6709    FFLAGS="-g"
6710  fi
6711else
6712  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6713    FFLAGS="-O2"
6714  else
6715    FFLAGS=
6716  fi
6717fi
6718
6719G77=`test $ac_compiler_gnu = yes && echo yes`
6720ac_ext=c
6721ac_cpp='$CPP $CPPFLAGS'
6722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6724ac_compiler_gnu=$ac_cv_c_compiler_gnu
6725
6726
6727
6728# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6729
6730# find the maximum length of command line arguments
6731echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6732echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6733if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6734  echo $ECHO_N "(cached) $ECHO_C" >&6
6735else
6736    i=0
6737  teststring="ABCD"
6738
6739  case $build_os in
6740  msdosdjgpp*)
6741    # On DJGPP, this test can blow up pretty badly due to problems in libc
6742    # (any single argument exceeding 2000 bytes causes a buffer overrun
6743    # during glob expansion).  Even if it were fixed, the result of this
6744    # check would be larger than it should be.
6745    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6746    ;;
6747
6748  gnu*)
6749    # Under GNU Hurd, this test is not required because there is
6750    # no limit to the length of command line arguments.
6751    # Libtool will interpret -1 as no limit whatsoever
6752    lt_cv_sys_max_cmd_len=-1;
6753    ;;
6754
6755  cygwin* | mingw*)
6756    # On Win9x/ME, this test blows up -- it succeeds, but takes
6757    # about 5 minutes as the teststring grows exponentially.
6758    # Worse, since 9x/ME are not pre-emptively multitasking,
6759    # you end up with a "frozen" computer, even though with patience
6760    # the test eventually succeeds (with a max line length of 256k).
6761    # Instead, let's just punt: use the minimum linelength reported by
6762    # all of the supported platforms: 8192 (on NT/2K/XP).
6763    lt_cv_sys_max_cmd_len=8192;
6764    ;;
6765
6766  amigaos*)
6767    # On AmigaOS with pdksh, this test takes hours, literally.
6768    # So we just punt and use a minimum line length of 8192.
6769    lt_cv_sys_max_cmd_len=8192;
6770    ;;
6771
6772  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6773    # This has been around since 386BSD, at least.  Likely further.
6774    if test -x /sbin/sysctl; then
6775      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6776    elif test -x /usr/sbin/sysctl; then
6777      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6778    else
6779      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6780    fi
6781    # And add a safety zone
6782    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6783    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6784    ;;
6785
6786  interix*)
6787    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6788    lt_cv_sys_max_cmd_len=196608
6789    ;;
6790
6791  osf*)
6792    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6793    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6794    # nice to cause kernel panics so lets avoid the loop below.
6795    # First set a reasonable default.
6796    lt_cv_sys_max_cmd_len=16384
6797    #
6798    if test -x /sbin/sysconfig; then
6799      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6800        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6801      esac
6802    fi
6803    ;;
6804  sco3.2v5*)
6805    lt_cv_sys_max_cmd_len=102400
6806    ;;
6807  sysv5* | sco5v6* | sysv4.2uw2*)
6808    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6809    if test -n "$kargmax"; then
6810      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6811    else
6812      lt_cv_sys_max_cmd_len=32768
6813    fi
6814    ;;
6815  *)
6816    # If test is not a shell built-in, we'll probably end up computing a
6817    # maximum length that is only half of the actual maximum length, but
6818    # we can't tell.
6819    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6820    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6821               = "XX$teststring") >/dev/null 2>&1 &&
6822            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6823            lt_cv_sys_max_cmd_len=$new_result &&
6824            test $i != 17 # 1/2 MB should be enough
6825    do
6826      i=`expr $i + 1`
6827      teststring=$teststring$teststring
6828    done
6829    teststring=
6830    # Add a significant safety factor because C++ compilers can tack on massive
6831    # amounts of additional arguments before passing them to the linker.
6832    # It appears as though 1/2 is a usable value.
6833    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6834    ;;
6835  esac
6836
6837fi
6838
6839if test -n $lt_cv_sys_max_cmd_len ; then
6840  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6841echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6842else
6843  echo "$as_me:$LINENO: result: none" >&5
6844echo "${ECHO_T}none" >&6
6845fi
6846
6847
6848
6849
6850# Check for command to grab the raw symbol name followed by C symbol from nm.
6851echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6852echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6853if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6854  echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856
6857# These are sane defaults that work on at least a few old systems.
6858# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6859
6860# Character class describing NM global symbol codes.
6861symcode='[BCDEGRST]'
6862
6863# Regexp to match symbols that can be accessed directly from C.
6864sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6865
6866# Transform an extracted symbol line into a proper C declaration
6867lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6868
6869# Transform an extracted symbol line into symbol name and symbol address
6870lt_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'"
6871
6872# Define system-specific variables.
6873case $host_os in
6874aix*)
6875  symcode='[BCDT]'
6876  ;;
6877cygwin* | mingw* | pw32*)
6878  symcode='[ABCDGISTW]'
6879  ;;
6880hpux*) # Its linker distinguishes data from code symbols
6881  if test "$host_cpu" = ia64; then
6882    symcode='[ABCDEGRST]'
6883  fi
6884  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6885  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'"
6886  ;;
6887linux*)
6888  if test "$host_cpu" = ia64; then
6889    symcode='[ABCDGIRSTW]'
6890    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6891    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'"
6892  fi
6893  ;;
6894irix* | nonstopux*)
6895  symcode='[BCDEGRST]'
6896  ;;
6897osf*)
6898  symcode='[BCDEGQRST]'
6899  ;;
6900solaris*)
6901  symcode='[BDRT]'
6902  ;;
6903sco3.2v5*)
6904  symcode='[DT]'
6905  ;;
6906sysv4.2uw2*)
6907  symcode='[DT]'
6908  ;;
6909sysv5* | sco5v6* | unixware* | OpenUNIX*)
6910  symcode='[ABDT]'
6911  ;;
6912sysv4)
6913  symcode='[DFNSTU]'
6914  ;;
6915esac
6916
6917# Handle CRLF in mingw tool chain
6918opt_cr=
6919case $build_os in
6920mingw*)
6921  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6922  ;;
6923esac
6924
6925# If we're using GNU nm, then use its standard symbol codes.
6926case `$NM -V 2>&1` in
6927*GNU* | *'with BFD'*)
6928  symcode='[ABCDGIRSTW]' ;;
6929esac
6930
6931# Try without a prefix undercore, then with it.
6932for ac_symprfx in "" "_"; do
6933
6934  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6935  symxfrm="\\1 $ac_symprfx\\2 \\2"
6936
6937  # Write the raw and C identifiers.
6938  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6939
6940  # Check to see that the pipe works correctly.
6941  pipe_works=no
6942
6943  rm -f conftest*
6944  cat > conftest.$ac_ext <<EOF
6945#ifdef __cplusplus
6946extern "C" {
6947#endif
6948char nm_test_var;
6949void nm_test_func(){}
6950#ifdef __cplusplus
6951}
6952#endif
6953int main(){nm_test_var='a';nm_test_func();return(0);}
6954EOF
6955
6956  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6957  (eval $ac_compile) 2>&5
6958  ac_status=$?
6959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960  (exit $ac_status); }; then
6961    # Now try to grab the symbols.
6962    nlist=conftest.nm
6963    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6964  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6965  ac_status=$?
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); } && test -s "$nlist"; then
6968      # Try sorting and uniquifying the output.
6969      if sort "$nlist" | uniq > "$nlist"T; then
6970        mv -f "$nlist"T "$nlist"
6971      else
6972        rm -f "$nlist"T
6973      fi
6974
6975      # Make sure that we snagged all the symbols we need.
6976      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6977        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6978          cat <<EOF > conftest.$ac_ext
6979#ifdef __cplusplus
6980extern "C" {
6981#endif
6982
6983EOF
6984          # Now generate the symbol file.
6985          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6986
6987          cat <<EOF >> conftest.$ac_ext
6988#if defined (__STDC__) && __STDC__
6989# define lt_ptr_t void *
6990#else
6991# define lt_ptr_t char *
6992# define const
6993#endif
6994
6995/* The mapping between symbol names and symbols. */
6996const struct {
6997  const char *name;
6998  lt_ptr_t address;
6999}
7000lt_preloaded_symbols[] =
7001{
7002EOF
7003          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7004          cat <<\EOF >> conftest.$ac_ext
7005  {0, (lt_ptr_t) 0}
7006};
7007
7008#ifdef __cplusplus
7009}
7010#endif
7011EOF
7012          # Now try linking the two files.
7013          mv conftest.$ac_objext conftstm.$ac_objext
7014          lt_save_LIBS="$LIBS"
7015          lt_save_CFLAGS="$CFLAGS"
7016          LIBS="conftstm.$ac_objext"
7017          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7018          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019  (eval $ac_link) 2>&5
7020  ac_status=$?
7021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7023            pipe_works=yes
7024          fi
7025          LIBS="$lt_save_LIBS"
7026          CFLAGS="$lt_save_CFLAGS"
7027        else
7028          echo "cannot find nm_test_func in $nlist" >&5
7029        fi
7030      else
7031        echo "cannot find nm_test_var in $nlist" >&5
7032      fi
7033    else
7034      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7035    fi
7036  else
7037    echo "$progname: failed program was:" >&5
7038    cat conftest.$ac_ext >&5
7039  fi
7040  rm -f conftest* conftst*
7041
7042  # Do not use the global_symbol_pipe unless it works.
7043  if test "$pipe_works" = yes; then
7044    break
7045  else
7046    lt_cv_sys_global_symbol_pipe=
7047  fi
7048done
7049
7050fi
7051
7052if test -z "$lt_cv_sys_global_symbol_pipe"; then
7053  lt_cv_sys_global_symbol_to_cdecl=
7054fi
7055if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7056  echo "$as_me:$LINENO: result: failed" >&5
7057echo "${ECHO_T}failed" >&6
7058else
7059  echo "$as_me:$LINENO: result: ok" >&5
7060echo "${ECHO_T}ok" >&6
7061fi
7062
7063echo "$as_me:$LINENO: checking for objdir" >&5
7064echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7065if test "${lt_cv_objdir+set}" = set; then
7066  echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7068  rm -f .libs 2>/dev/null
7069mkdir .libs 2>/dev/null
7070if test -d .libs; then
7071  lt_cv_objdir=.libs
7072else
7073  # MS-DOS does not allow filenames that begin with a dot.
7074  lt_cv_objdir=_libs
7075fi
7076rmdir .libs 2>/dev/null
7077fi
7078echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7079echo "${ECHO_T}$lt_cv_objdir" >&6
7080objdir=$lt_cv_objdir
7081
7082
7083
7084
7085
7086case $host_os in
7087aix3*)
7088  # AIX sometimes has problems with the GCC collect2 program.  For some
7089  # reason, if we set the COLLECT_NAMES environment variable, the problems
7090  # vanish in a puff of smoke.
7091  if test "X${COLLECT_NAMES+set}" != Xset; then
7092    COLLECT_NAMES=
7093    export COLLECT_NAMES
7094  fi
7095  ;;
7096esac
7097
7098# Sed substitution that helps us do robust quoting.  It backslashifies
7099# metacharacters that are still active within double-quoted strings.
7100Xsed='sed -e 1s/^X//'
7101sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7102
7103# Same as above, but do not quote variable references.
7104double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7105
7106# Sed substitution to delay expansion of an escaped shell variable in a
7107# double_quote_subst'ed string.
7108delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7109
7110# Sed substitution to avoid accidental globbing in evaled expressions
7111no_glob_subst='s/\*/\\\*/g'
7112
7113# Constants:
7114rm="rm -f"
7115
7116# Global variables:
7117default_ofile=libtool
7118can_build_shared=yes
7119
7120# All known linkers require a `.a' archive for static linking (except MSVC,
7121# which needs '.lib').
7122libext=a
7123ltmain="$ac_aux_dir/ltmain.sh"
7124ofile="$default_ofile"
7125with_gnu_ld="$lt_cv_prog_gnu_ld"
7126
7127if test -n "$ac_tool_prefix"; then
7128  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7129set dummy ${ac_tool_prefix}ar; ac_word=$2
7130echo "$as_me:$LINENO: checking for $ac_word" >&5
7131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7132if test "${ac_cv_prog_AR+set}" = set; then
7133  echo $ECHO_N "(cached) $ECHO_C" >&6
7134else
7135  if test -n "$AR"; then
7136  ac_cv_prog_AR="$AR" # Let the user override the test.
7137else
7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141  IFS=$as_save_IFS
7142  test -z "$as_dir" && as_dir=.
7143  for ac_exec_ext in '' $ac_executable_extensions; do
7144  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145    ac_cv_prog_AR="${ac_tool_prefix}ar"
7146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147    break 2
7148  fi
7149done
7150done
7151
7152fi
7153fi
7154AR=$ac_cv_prog_AR
7155if test -n "$AR"; then
7156  echo "$as_me:$LINENO: result: $AR" >&5
7157echo "${ECHO_T}$AR" >&6
7158else
7159  echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6
7161fi
7162
7163fi
7164if test -z "$ac_cv_prog_AR"; then
7165  ac_ct_AR=$AR
7166  # Extract the first word of "ar", so it can be a program name with args.
7167set dummy ar; ac_word=$2
7168echo "$as_me:$LINENO: checking for $ac_word" >&5
7169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7170if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7171  echo $ECHO_N "(cached) $ECHO_C" >&6
7172else
7173  if test -n "$ac_ct_AR"; then
7174  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7175else
7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179  IFS=$as_save_IFS
7180  test -z "$as_dir" && as_dir=.
7181  for ac_exec_ext in '' $ac_executable_extensions; do
7182  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183    ac_cv_prog_ac_ct_AR="ar"
7184    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185    break 2
7186  fi
7187done
7188done
7189
7190  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7191fi
7192fi
7193ac_ct_AR=$ac_cv_prog_ac_ct_AR
7194if test -n "$ac_ct_AR"; then
7195  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7196echo "${ECHO_T}$ac_ct_AR" >&6
7197else
7198  echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6
7200fi
7201
7202  AR=$ac_ct_AR
7203else
7204  AR="$ac_cv_prog_AR"
7205fi
7206
7207if test -n "$ac_tool_prefix"; then
7208  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7209set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7210echo "$as_me:$LINENO: checking for $ac_word" >&5
7211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7212if test "${ac_cv_prog_RANLIB+set}" = set; then
7213  echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215  if test -n "$RANLIB"; then
7216  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221  IFS=$as_save_IFS
7222  test -z "$as_dir" && as_dir=.
7223  for ac_exec_ext in '' $ac_executable_extensions; do
7224  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7226    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227    break 2
7228  fi
7229done
7230done
7231
7232fi
7233fi
7234RANLIB=$ac_cv_prog_RANLIB
7235if test -n "$RANLIB"; then
7236  echo "$as_me:$LINENO: result: $RANLIB" >&5
7237echo "${ECHO_T}$RANLIB" >&6
7238else
7239  echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6
7241fi
7242
7243fi
7244if test -z "$ac_cv_prog_RANLIB"; then
7245  ac_ct_RANLIB=$RANLIB
7246  # Extract the first word of "ranlib", so it can be a program name with args.
7247set dummy ranlib; ac_word=$2
7248echo "$as_me:$LINENO: checking for $ac_word" >&5
7249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7250if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7251  echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253  if test -n "$ac_ct_RANLIB"; then
7254  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7255else
7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259  IFS=$as_save_IFS
7260  test -z "$as_dir" && as_dir=.
7261  for ac_exec_ext in '' $ac_executable_extensions; do
7262  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263    ac_cv_prog_ac_ct_RANLIB="ranlib"
7264    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265    break 2
7266  fi
7267done
7268done
7269
7270  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7271fi
7272fi
7273ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7274if test -n "$ac_ct_RANLIB"; then
7275  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7276echo "${ECHO_T}$ac_ct_RANLIB" >&6
7277else
7278  echo "$as_me:$LINENO: result: no" >&5
7279echo "${ECHO_T}no" >&6
7280fi
7281
7282  RANLIB=$ac_ct_RANLIB
7283else
7284  RANLIB="$ac_cv_prog_RANLIB"
7285fi
7286
7287if test -n "$ac_tool_prefix"; then
7288  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7289set dummy ${ac_tool_prefix}strip; ac_word=$2
7290echo "$as_me:$LINENO: checking for $ac_word" >&5
7291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7292if test "${ac_cv_prog_STRIP+set}" = set; then
7293  echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295  if test -n "$STRIP"; then
7296  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7297else
7298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301  IFS=$as_save_IFS
7302  test -z "$as_dir" && as_dir=.
7303  for ac_exec_ext in '' $ac_executable_extensions; do
7304  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7306    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307    break 2
7308  fi
7309done
7310done
7311
7312fi
7313fi
7314STRIP=$ac_cv_prog_STRIP
7315if test -n "$STRIP"; then
7316  echo "$as_me:$LINENO: result: $STRIP" >&5
7317echo "${ECHO_T}$STRIP" >&6
7318else
7319  echo "$as_me:$LINENO: result: no" >&5
7320echo "${ECHO_T}no" >&6
7321fi
7322
7323fi
7324if test -z "$ac_cv_prog_STRIP"; then
7325  ac_ct_STRIP=$STRIP
7326  # Extract the first word of "strip", so it can be a program name with args.
7327set dummy strip; ac_word=$2
7328echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7330if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7331  echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333  if test -n "$ac_ct_STRIP"; then
7334  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7335else
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339  IFS=$as_save_IFS
7340  test -z "$as_dir" && as_dir=.
7341  for ac_exec_ext in '' $ac_executable_extensions; do
7342  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343    ac_cv_prog_ac_ct_STRIP="strip"
7344    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345    break 2
7346  fi
7347done
7348done
7349
7350  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7351fi
7352fi
7353ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7354if test -n "$ac_ct_STRIP"; then
7355  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7356echo "${ECHO_T}$ac_ct_STRIP" >&6
7357else
7358  echo "$as_me:$LINENO: result: no" >&5
7359echo "${ECHO_T}no" >&6
7360fi
7361
7362  STRIP=$ac_ct_STRIP
7363else
7364  STRIP="$ac_cv_prog_STRIP"
7365fi
7366
7367
7368old_CC="$CC"
7369old_CFLAGS="$CFLAGS"
7370
7371# Set sane defaults for various variables
7372test -z "$AR" && AR=ar
7373test -z "$AR_FLAGS" && AR_FLAGS=cru
7374test -z "$AS" && AS=as
7375test -z "$CC" && CC=cc
7376test -z "$LTCC" && LTCC=$CC
7377test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7378test -z "$DLLTOOL" && DLLTOOL=dlltool
7379test -z "$LD" && LD=ld
7380test -z "$LN_S" && LN_S="ln -s"
7381test -z "$MAGIC_CMD" && MAGIC_CMD=file
7382test -z "$NM" && NM=nm
7383test -z "$SED" && SED=sed
7384test -z "$OBJDUMP" && OBJDUMP=objdump
7385test -z "$RANLIB" && RANLIB=:
7386test -z "$STRIP" && STRIP=:
7387test -z "$ac_objext" && ac_objext=o
7388
7389# Determine commands to create old-style static archives.
7390old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7391old_postinstall_cmds='chmod 644 $oldlib'
7392old_postuninstall_cmds=
7393
7394if test -n "$RANLIB"; then
7395  case $host_os in
7396  openbsd*)
7397    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7398    ;;
7399  *)
7400    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7401    ;;
7402  esac
7403  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7404fi
7405
7406for cc_temp in $compiler""; do
7407  case $cc_temp in
7408    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7409    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7410    \-*) ;;
7411    *) break;;
7412  esac
7413done
7414cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7415
7416
7417# Only perform the check for file, if the check method requires it
7418case $deplibs_check_method in
7419file_magic*)
7420  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7421    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7422echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7423if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7424  echo $ECHO_N "(cached) $ECHO_C" >&6
7425else
7426  case $MAGIC_CMD in
7427[\\/*] |  ?:[\\/]*)
7428  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7429  ;;
7430*)
7431  lt_save_MAGIC_CMD="$MAGIC_CMD"
7432  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7433  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7434  for ac_dir in $ac_dummy; do
7435    IFS="$lt_save_ifs"
7436    test -z "$ac_dir" && ac_dir=.
7437    if test -f $ac_dir/${ac_tool_prefix}file; then
7438      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7439      if test -n "$file_magic_test_file"; then
7440        case $deplibs_check_method in
7441        "file_magic "*)
7442          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7443          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7444          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7445            $EGREP "$file_magic_regex" > /dev/null; then
7446            :
7447          else
7448            cat <<EOF 1>&2
7449
7450*** Warning: the command libtool uses to detect shared libraries,
7451*** $file_magic_cmd, produces output that libtool cannot recognize.
7452*** The result is that libtool may fail to recognize shared libraries
7453*** as such.  This will affect the creation of libtool libraries that
7454*** depend on shared libraries, but programs linked with such libtool
7455*** libraries will work regardless of this problem.  Nevertheless, you
7456*** may want to report the problem to your system manager and/or to
7457*** bug-libtool@gnu.org
7458
7459EOF
7460          fi ;;
7461        esac
7462      fi
7463      break
7464    fi
7465  done
7466  IFS="$lt_save_ifs"
7467  MAGIC_CMD="$lt_save_MAGIC_CMD"
7468  ;;
7469esac
7470fi
7471
7472MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7473if test -n "$MAGIC_CMD"; then
7474  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7475echo "${ECHO_T}$MAGIC_CMD" >&6
7476else
7477  echo "$as_me:$LINENO: result: no" >&5
7478echo "${ECHO_T}no" >&6
7479fi
7480
7481if test -z "$lt_cv_path_MAGIC_CMD"; then
7482  if test -n "$ac_tool_prefix"; then
7483    echo "$as_me:$LINENO: checking for file" >&5
7484echo $ECHO_N "checking for file... $ECHO_C" >&6
7485if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7486  echo $ECHO_N "(cached) $ECHO_C" >&6
7487else
7488  case $MAGIC_CMD in
7489[\\/*] |  ?:[\\/]*)
7490  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7491  ;;
7492*)
7493  lt_save_MAGIC_CMD="$MAGIC_CMD"
7494  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7495  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7496  for ac_dir in $ac_dummy; do
7497    IFS="$lt_save_ifs"
7498    test -z "$ac_dir" && ac_dir=.
7499    if test -f $ac_dir/file; then
7500      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7501      if test -n "$file_magic_test_file"; then
7502        case $deplibs_check_method in
7503        "file_magic "*)
7504          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7505          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7506          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7507            $EGREP "$file_magic_regex" > /dev/null; then
7508            :
7509          else
7510            cat <<EOF 1>&2
7511
7512*** Warning: the command libtool uses to detect shared libraries,
7513*** $file_magic_cmd, produces output that libtool cannot recognize.
7514*** The result is that libtool may fail to recognize shared libraries
7515*** as such.  This will affect the creation of libtool libraries that
7516*** depend on shared libraries, but programs linked with such libtool
7517*** libraries will work regardless of this problem.  Nevertheless, you
7518*** may want to report the problem to your system manager and/or to
7519*** bug-libtool@gnu.org
7520
7521EOF
7522          fi ;;
7523        esac
7524      fi
7525      break
7526    fi
7527  done
7528  IFS="$lt_save_ifs"
7529  MAGIC_CMD="$lt_save_MAGIC_CMD"
7530  ;;
7531esac
7532fi
7533
7534MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7535if test -n "$MAGIC_CMD"; then
7536  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7537echo "${ECHO_T}$MAGIC_CMD" >&6
7538else
7539  echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6
7541fi
7542
7543  else
7544    MAGIC_CMD=:
7545  fi
7546fi
7547
7548  fi
7549  ;;
7550esac
7551
7552enable_dlopen=no
7553enable_win32_dll=no
7554
7555# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7556if test "${enable_libtool_lock+set}" = set; then
7557  enableval="$enable_libtool_lock"
7558
7559fi;
7560test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7561
7562
7563# Check whether --with-pic or --without-pic was given.
7564if test "${with_pic+set}" = set; then
7565  withval="$with_pic"
7566  pic_mode="$withval"
7567else
7568  pic_mode=default
7569fi;
7570test -z "$pic_mode" && pic_mode=default
7571
7572# Use C for the default configuration in the libtool script
7573tagname=
7574lt_save_CC="$CC"
7575ac_ext=c
7576ac_cpp='$CPP $CPPFLAGS'
7577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7579ac_compiler_gnu=$ac_cv_c_compiler_gnu
7580
7581
7582# Source file extension for C test sources.
7583ac_ext=c
7584
7585# Object file extension for compiled C test sources.
7586objext=o
7587objext=$objext
7588
7589# Code to be used in simple compile tests
7590lt_simple_compile_test_code="int some_variable = 0;\n"
7591
7592# Code to be used in simple link tests
7593lt_simple_link_test_code='int main(){return(0);}\n'
7594
7595
7596# If no C compiler was specified, use CC.
7597LTCC=${LTCC-"$CC"}
7598
7599# If no C compiler flags were specified, use CFLAGS.
7600LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7601
7602# Allow CC to be a program name with arguments.
7603compiler=$CC
7604
7605
7606# save warnings/boilerplate of simple test code
7607ac_outfile=conftest.$ac_objext
7608printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7609eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7610_lt_compiler_boilerplate=`cat conftest.err`
7611$rm conftest*
7612
7613ac_outfile=conftest.$ac_objext
7614printf "$lt_simple_link_test_code" >conftest.$ac_ext
7615eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7616_lt_linker_boilerplate=`cat conftest.err`
7617$rm conftest*
7618
7619
7620## CAVEAT EMPTOR:
7621## There is no encapsulation within the following macros, do not change
7622## the running order or otherwise move them around unless you know exactly
7623## what you are doing...
7624
7625lt_prog_compiler_no_builtin_flag=
7626
7627if test "$GCC" = yes; then
7628  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7629
7630
7631echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7632echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7633if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7634  echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636  lt_cv_prog_compiler_rtti_exceptions=no
7637  ac_outfile=conftest.$ac_objext
7638   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7639   lt_compiler_flag="-fno-rtti -fno-exceptions"
7640   # Insert the option either (1) after the last *FLAGS variable, or
7641   # (2) before a word containing "conftest.", or (3) at the end.
7642   # Note that $ac_compile itself does not contain backslashes and begins
7643   # with a dollar sign (not a hyphen), so the echo should work correctly.
7644   # The option is referenced via a variable to avoid confusing sed.
7645   lt_compile=`echo "$ac_compile" | $SED \
7646   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7647   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7648   -e 's:$: $lt_compiler_flag:'`
7649   (eval echo "\"\$as_me:7649: $lt_compile\"" >&5)
7650   (eval "$lt_compile" 2>conftest.err)
7651   ac_status=$?
7652   cat conftest.err >&5
7653   echo "$as_me:7653: \$? = $ac_status" >&5
7654   if (exit $ac_status) && test -s "$ac_outfile"; then
7655     # The compiler can only warn and ignore the option if not recognized
7656     # So say no if there are warnings other than the usual output.
7657     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7658     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7659     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7660       lt_cv_prog_compiler_rtti_exceptions=yes
7661     fi
7662   fi
7663   $rm conftest*
7664
7665fi
7666echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7667echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7668
7669if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7670    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7671else
7672    :
7673fi
7674
7675fi
7676
7677lt_prog_compiler_wl=
7678lt_prog_compiler_pic=
7679lt_prog_compiler_static=
7680
7681echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7682echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7683
7684  if test "$GCC" = yes; then
7685    lt_prog_compiler_wl='-Wl,'
7686    lt_prog_compiler_static='-static'
7687
7688    case $host_os in
7689      aix*)
7690      # All AIX code is PIC.
7691      if test "$host_cpu" = ia64; then
7692        # AIX 5 now supports IA64 processor
7693        lt_prog_compiler_static='-Bstatic'
7694      fi
7695      ;;
7696
7697    amigaos*)
7698      # FIXME: we need at least 68020 code to build shared libraries, but
7699      # adding the `-m68020' flag to GCC prevents building anything better,
7700      # like `-m68040'.
7701      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7702      ;;
7703
7704    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7705      # PIC is the default for these OSes.
7706      ;;
7707
7708    mingw* | pw32* | os2*)
7709      # This hack is so that the source file can tell whether it is being
7710      # built for inclusion in a dll (and should export symbols for example).
7711      lt_prog_compiler_pic='-DDLL_EXPORT'
7712      ;;
7713
7714    darwin* | rhapsody*)
7715      # PIC is the default on this platform
7716      # Common symbols not allowed in MH_DYLIB files
7717      lt_prog_compiler_pic='-fno-common'
7718      ;;
7719
7720    interix3*)
7721      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7722      # Instead, we relocate shared libraries at runtime.
7723      ;;
7724
7725    msdosdjgpp*)
7726      # Just because we use GCC doesn't mean we suddenly get shared libraries
7727      # on systems that don't support them.
7728      lt_prog_compiler_can_build_shared=no
7729      enable_shared=no
7730      ;;
7731
7732    sysv4*MP*)
7733      if test -d /usr/nec; then
7734        lt_prog_compiler_pic=-Kconform_pic
7735      fi
7736      ;;
7737
7738    hpux*)
7739      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7740      # not for PA HP-UX.
7741      case $host_cpu in
7742      hppa*64*|ia64*)
7743        # +Z the default
7744        ;;
7745      *)
7746        lt_prog_compiler_pic='-fPIC'
7747        ;;
7748      esac
7749      ;;
7750
7751    *)
7752      lt_prog_compiler_pic='-fPIC'
7753      ;;
7754    esac
7755  else
7756    # PORTME Check for flag to pass linker flags through the system compiler.
7757    case $host_os in
7758    aix*)
7759      lt_prog_compiler_wl='-Wl,'
7760      if test "$host_cpu" = ia64; then
7761        # AIX 5 now supports IA64 processor
7762        lt_prog_compiler_static='-Bstatic'
7763      else
7764        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7765      fi
7766      ;;
7767      darwin*)
7768        # PIC is the default on this platform
7769        # Common symbols not allowed in MH_DYLIB files
7770       case $cc_basename in
7771         xlc*)
7772         lt_prog_compiler_pic='-qnocommon'
7773         lt_prog_compiler_wl='-Wl,'
7774         ;;
7775       esac
7776       ;;
7777
7778    mingw* | pw32* | os2*)
7779      # This hack is so that the source file can tell whether it is being
7780      # built for inclusion in a dll (and should export symbols for example).
7781      lt_prog_compiler_pic='-DDLL_EXPORT'
7782      ;;
7783
7784    hpux9* | hpux10* | hpux11*)
7785      lt_prog_compiler_wl='-Wl,'
7786      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7787      # not for PA HP-UX.
7788      case $host_cpu in
7789      hppa*64*|ia64*)
7790        # +Z the default
7791        ;;
7792      *)
7793        lt_prog_compiler_pic='+Z'
7794        ;;
7795      esac
7796      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7797      lt_prog_compiler_static='${wl}-a ${wl}archive'
7798      ;;
7799
7800    irix5* | irix6* | nonstopux*)
7801      lt_prog_compiler_wl='-Wl,'
7802      # PIC (with -KPIC) is the default.
7803      lt_prog_compiler_static='-non_shared'
7804      ;;
7805
7806    newsos6)
7807      lt_prog_compiler_pic='-KPIC'
7808      lt_prog_compiler_static='-Bstatic'
7809      ;;
7810
7811    linux*)
7812      case $cc_basename in
7813      icc* | ecc*)
7814        lt_prog_compiler_wl='-Wl,'
7815        lt_prog_compiler_pic='-KPIC'
7816        lt_prog_compiler_static='-static'
7817        ;;
7818      pgcc* | pgf77* | pgf90* | pgf95*)
7819        # Portland Group compilers (*not* the Pentium gcc compiler,
7820        # which looks to be a dead project)
7821        lt_prog_compiler_wl='-Wl,'
7822        lt_prog_compiler_pic='-fpic'
7823        lt_prog_compiler_static='-Bstatic'
7824        ;;
7825      ccc*)
7826        lt_prog_compiler_wl='-Wl,'
7827        # All Alpha code is PIC.
7828        lt_prog_compiler_static='-non_shared'
7829        ;;
7830      esac
7831      ;;
7832
7833    osf3* | osf4* | osf5*)
7834      lt_prog_compiler_wl='-Wl,'
7835      # All OSF/1 code is PIC.
7836      lt_prog_compiler_static='-non_shared'
7837      ;;
7838
7839    solaris*)
7840      lt_prog_compiler_pic='-KPIC'
7841      lt_prog_compiler_static='-Bstatic'
7842      case $cc_basename in
7843      f77* | f90* | f95*)
7844        lt_prog_compiler_wl='-Qoption ld ';;
7845      *)
7846        lt_prog_compiler_wl='-Wl,';;
7847      esac
7848      ;;
7849
7850    sunos4*)
7851      lt_prog_compiler_wl='-Qoption ld '
7852      lt_prog_compiler_pic='-PIC'
7853      lt_prog_compiler_static='-Bstatic'
7854      ;;
7855
7856    sysv4 | sysv4.2uw2* | sysv4.3*)
7857      lt_prog_compiler_wl='-Wl,'
7858      lt_prog_compiler_pic='-KPIC'
7859      lt_prog_compiler_static='-Bstatic'
7860      ;;
7861
7862    sysv4*MP*)
7863      if test -d /usr/nec ;then
7864        lt_prog_compiler_pic='-Kconform_pic'
7865        lt_prog_compiler_static='-Bstatic'
7866      fi
7867      ;;
7868
7869    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7870      lt_prog_compiler_wl='-Wl,'
7871      lt_prog_compiler_pic='-KPIC'
7872      lt_prog_compiler_static='-Bstatic'
7873      ;;
7874
7875    unicos*)
7876      lt_prog_compiler_wl='-Wl,'
7877      lt_prog_compiler_can_build_shared=no
7878      ;;
7879
7880    uts4*)
7881      lt_prog_compiler_pic='-pic'
7882      lt_prog_compiler_static='-Bstatic'
7883      ;;
7884
7885    *)
7886      lt_prog_compiler_can_build_shared=no
7887      ;;
7888    esac
7889  fi
7890
7891echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7892echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7893
7894#
7895# Check to make sure the PIC flag actually works.
7896#
7897if test -n "$lt_prog_compiler_pic"; then
7898
7899echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7900echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7901if test "${lt_prog_compiler_pic_works+set}" = set; then
7902  echo $ECHO_N "(cached) $ECHO_C" >&6
7903else
7904  lt_prog_compiler_pic_works=no
7905  ac_outfile=conftest.$ac_objext
7906   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7907   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7908   # Insert the option either (1) after the last *FLAGS variable, or
7909   # (2) before a word containing "conftest.", or (3) at the end.
7910   # Note that $ac_compile itself does not contain backslashes and begins
7911   # with a dollar sign (not a hyphen), so the echo should work correctly.
7912   # The option is referenced via a variable to avoid confusing sed.
7913   lt_compile=`echo "$ac_compile" | $SED \
7914   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7915   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7916   -e 's:$: $lt_compiler_flag:'`
7917   (eval echo "\"\$as_me:7917: $lt_compile\"" >&5)
7918   (eval "$lt_compile" 2>conftest.err)
7919   ac_status=$?
7920   cat conftest.err >&5
7921   echo "$as_me:7921: \$? = $ac_status" >&5
7922   if (exit $ac_status) && test -s "$ac_outfile"; then
7923     # The compiler can only warn and ignore the option if not recognized
7924     # So say no if there are warnings other than the usual output.
7925     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7926     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7927     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7928       lt_prog_compiler_pic_works=yes
7929     fi
7930   fi
7931   $rm conftest*
7932
7933fi
7934echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7935echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7936
7937if test x"$lt_prog_compiler_pic_works" = xyes; then
7938    case $lt_prog_compiler_pic in
7939     "" | " "*) ;;
7940     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7941     esac
7942else
7943    lt_prog_compiler_pic=
7944     lt_prog_compiler_can_build_shared=no
7945fi
7946
7947fi
7948case $host_os in
7949  # For platforms which do not support PIC, -DPIC is meaningless:
7950  *djgpp*)
7951    lt_prog_compiler_pic=
7952    ;;
7953  *)
7954    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7955    ;;
7956esac
7957
7958#
7959# Check to make sure the static flag actually works.
7960#
7961wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7962echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7963echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7964if test "${lt_prog_compiler_static_works+set}" = set; then
7965  echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
7967  lt_prog_compiler_static_works=no
7968   save_LDFLAGS="$LDFLAGS"
7969   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7970   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7971   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7972     # The linker can only warn and ignore the option if not recognized
7973     # So say no if there are warnings
7974     if test -s conftest.err; then
7975       # Append any errors to the config.log.
7976       cat conftest.err 1>&5
7977       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7978       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7979       if diff conftest.exp conftest.er2 >/dev/null; then
7980         lt_prog_compiler_static_works=yes
7981       fi
7982     else
7983       lt_prog_compiler_static_works=yes
7984     fi
7985   fi
7986   $rm conftest*
7987   LDFLAGS="$save_LDFLAGS"
7988
7989fi
7990echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7991echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7992
7993if test x"$lt_prog_compiler_static_works" = xyes; then
7994    :
7995else
7996    lt_prog_compiler_static=
7997fi
7998
7999
8000echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8001echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8002if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8003  echo $ECHO_N "(cached) $ECHO_C" >&6
8004else
8005  lt_cv_prog_compiler_c_o=no
8006   $rm -r conftest 2>/dev/null
8007   mkdir conftest
8008   cd conftest
8009   mkdir out
8010   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8011
8012   lt_compiler_flag="-o out/conftest2.$ac_objext"
8013   # Insert the option either (1) after the last *FLAGS variable, or
8014   # (2) before a word containing "conftest.", or (3) at the end.
8015   # Note that $ac_compile itself does not contain backslashes and begins
8016   # with a dollar sign (not a hyphen), so the echo should work correctly.
8017   lt_compile=`echo "$ac_compile" | $SED \
8018   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8019   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8020   -e 's:$: $lt_compiler_flag:'`
8021   (eval echo "\"\$as_me:8021: $lt_compile\"" >&5)
8022   (eval "$lt_compile" 2>out/conftest.err)
8023   ac_status=$?
8024   cat out/conftest.err >&5
8025   echo "$as_me:8025: \$? = $ac_status" >&5
8026   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8027   then
8028     # The compiler can only warn and ignore the option if not recognized
8029     # So say no if there are warnings
8030     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8031     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8032     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8033       lt_cv_prog_compiler_c_o=yes
8034     fi
8035   fi
8036   chmod u+w . 2>&5
8037   $rm conftest*
8038   # SGI C++ compiler will create directory out/ii_files/ for
8039   # template instantiation
8040   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8041   $rm out/* && rmdir out
8042   cd ..
8043   rmdir conftest
8044   $rm conftest*
8045
8046fi
8047echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8048echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8049
8050
8051hard_links="nottested"
8052if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8053  # do not overwrite the value of need_locks provided by the user
8054  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8055echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8056  hard_links=yes
8057  $rm conftest*
8058  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8059  touch conftest.a
8060  ln conftest.a conftest.b 2>&5 || hard_links=no
8061  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8062  echo "$as_me:$LINENO: result: $hard_links" >&5
8063echo "${ECHO_T}$hard_links" >&6
8064  if test "$hard_links" = no; then
8065    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8066echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8067    need_locks=warn
8068  fi
8069else
8070  need_locks=no
8071fi
8072
8073echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8074echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8075
8076  runpath_var=
8077  allow_undefined_flag=
8078  enable_shared_with_static_runtimes=no
8079  archive_cmds=
8080  archive_expsym_cmds=
8081  old_archive_From_new_cmds=
8082  old_archive_from_expsyms_cmds=
8083  export_dynamic_flag_spec=
8084  whole_archive_flag_spec=
8085  thread_safe_flag_spec=
8086  hardcode_libdir_flag_spec=
8087  hardcode_libdir_flag_spec_ld=
8088  hardcode_libdir_separator=
8089  hardcode_direct=no
8090  hardcode_minus_L=no
8091  hardcode_shlibpath_var=unsupported
8092  link_all_deplibs=unknown
8093  hardcode_automatic=no
8094  module_cmds=
8095  module_expsym_cmds=
8096  always_export_symbols=no
8097  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8098  # include_expsyms should be a list of space-separated symbols to be *always*
8099  # included in the symbol list
8100  include_expsyms=
8101  # exclude_expsyms can be an extended regexp of symbols to exclude
8102  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8103  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8104  # as well as any symbol that contains `d'.
8105  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8106  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8107  # platforms (ab)use it in PIC code, but their linkers get confused if
8108  # the symbol is explicitly referenced.  Since portable code cannot
8109  # rely on this symbol name, it's probably fine to never include it in
8110  # preloaded symbol tables.
8111  extract_expsyms_cmds=
8112  # Just being paranoid about ensuring that cc_basename is set.
8113  for cc_temp in $compiler""; do
8114  case $cc_temp in
8115    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8116    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8117    \-*) ;;
8118    *) break;;
8119  esac
8120done
8121cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8122
8123  case $host_os in
8124  cygwin* | mingw* | pw32*)
8125    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8126    # When not using gcc, we currently assume that we are using
8127    # Microsoft Visual C++.
8128    if test "$GCC" != yes; then
8129      with_gnu_ld=no
8130    fi
8131    ;;
8132  interix*)
8133    # we just hope/assume this is gcc and not c89 (= MSVC++)
8134    with_gnu_ld=yes
8135    ;;
8136  openbsd*)
8137    with_gnu_ld=no
8138    ;;
8139  esac
8140
8141  ld_shlibs=yes
8142  if test "$with_gnu_ld" = yes; then
8143    # If archive_cmds runs LD, not CC, wlarc should be empty
8144    wlarc='${wl}'
8145
8146    # Set some defaults for GNU ld with shared library support. These
8147    # are reset later if shared libraries are not supported. Putting them
8148    # here allows them to be overridden if necessary.
8149    runpath_var=LD_RUN_PATH
8150    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8151    export_dynamic_flag_spec='${wl}--export-dynamic'
8152    # ancient GNU ld didn't support --whole-archive et. al.
8153    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8154        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8155      else
8156        whole_archive_flag_spec=
8157    fi
8158    supports_anon_versioning=no
8159    case `$LD -v 2>/dev/null` in
8160      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8161      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8162      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8163      *\ 2.11.*) ;; # other 2.11 versions
8164      *) supports_anon_versioning=yes ;;
8165    esac
8166
8167    # See if GNU ld supports shared libraries.
8168    case $host_os in
8169    aix3* | aix4* | aix5*)
8170      # On AIX/PPC, the GNU linker is very broken
8171      if test "$host_cpu" != ia64; then
8172        ld_shlibs=no
8173        cat <<EOF 1>&2
8174
8175*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8176*** to be unable to reliably create shared libraries on AIX.
8177*** Therefore, libtool is disabling shared libraries support.  If you
8178*** really care for shared libraries, you may want to modify your PATH
8179*** so that a non-GNU linker is found, and then restart.
8180
8181EOF
8182      fi
8183      ;;
8184
8185    amigaos*)
8186      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)'
8187      hardcode_libdir_flag_spec='-L$libdir'
8188      hardcode_minus_L=yes
8189
8190      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8191      # that the semantics of dynamic libraries on AmigaOS, at least up
8192      # to version 4, is to share data among multiple programs linked
8193      # with the same dynamic library.  Since this doesn't match the
8194      # behavior of shared libraries on other platforms, we can't use
8195      # them.
8196      ld_shlibs=no
8197      ;;
8198
8199    beos*)
8200      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8201        allow_undefined_flag=unsupported
8202        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8203        # support --undefined.  This deserves some investigation.  FIXME
8204        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8205      else
8206        ld_shlibs=no
8207      fi
8208      ;;
8209
8210    cygwin* | mingw* | pw32*)
8211      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8212      # as there is no search path for DLLs.
8213      hardcode_libdir_flag_spec='-L$libdir'
8214      allow_undefined_flag=unsupported
8215      always_export_symbols=no
8216      enable_shared_with_static_runtimes=yes
8217      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8218
8219      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8220        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8221        # If the export-symbols file already is a .def file (1st line
8222        # is EXPORTS), use it as is; otherwise, prepend...
8223        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8224          cp $export_symbols $output_objdir/$soname.def;
8225        else
8226          echo EXPORTS > $output_objdir/$soname.def;
8227          cat $export_symbols >> $output_objdir/$soname.def;
8228        fi~
8229        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8230      else
8231        ld_shlibs=no
8232      fi
8233      ;;
8234
8235    interix3*)
8236      hardcode_direct=no
8237      hardcode_shlibpath_var=no
8238      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8239      export_dynamic_flag_spec='${wl}-E'
8240      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8241      # Instead, shared libraries are loaded at an image base (0x10000000 by
8242      # default) and relocated if they conflict, which is a slow very memory
8243      # consuming and fragmenting process.  To avoid this, we pick a random,
8244      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8245      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8246      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8247      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'
8248      ;;
8249
8250    linux*)
8251      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8252        tmp_addflag=
8253        case $cc_basename,$host_cpu in
8254        pgcc*)                          # Portland Group C compiler
8255          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'
8256          tmp_addflag=' $pic_flag'
8257          ;;
8258        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8259          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'
8260          tmp_addflag=' $pic_flag -Mnomain' ;;
8261        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8262          tmp_addflag=' -i_dynamic' ;;
8263        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8264          tmp_addflag=' -i_dynamic -nofor_main' ;;
8265        ifc* | ifort*)                  # Intel Fortran compiler
8266          tmp_addflag=' -nofor_main' ;;
8267        esac
8268        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8269
8270        if test $supports_anon_versioning = yes; then
8271          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8272  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8273  $echo "local: *; };" >> $output_objdir/$libname.ver~
8274          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8275        fi
8276      else
8277        ld_shlibs=no
8278      fi
8279      ;;
8280
8281    netbsd*)
8282      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8283        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8284        wlarc=
8285      else
8286        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8287        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8288      fi
8289      ;;
8290
8291    solaris*)
8292      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8293        ld_shlibs=no
8294        cat <<EOF 1>&2
8295
8296*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8297*** create shared libraries on Solaris systems.  Therefore, libtool
8298*** is disabling shared libraries support.  We urge you to upgrade GNU
8299*** binutils to release 2.9.1 or newer.  Another option is to modify
8300*** your PATH or compiler configuration so that the native linker is
8301*** used, and then restart.
8302
8303EOF
8304      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8305        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8306        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8307      else
8308        ld_shlibs=no
8309      fi
8310      ;;
8311
8312    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8313      case `$LD -v 2>&1` in
8314        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8315        ld_shlibs=no
8316        cat <<_LT_EOF 1>&2
8317
8318*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8319*** reliably create shared libraries on SCO systems.  Therefore, libtool
8320*** is disabling shared libraries support.  We urge you to upgrade GNU
8321*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8322*** your PATH or compiler configuration so that the native linker is
8323*** used, and then restart.
8324
8325_LT_EOF
8326        ;;
8327        *)
8328          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8329            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8330            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8331            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8332          else
8333            ld_shlibs=no
8334          fi
8335        ;;
8336      esac
8337      ;;
8338
8339    sunos4*)
8340      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8341      wlarc=
8342      hardcode_direct=yes
8343      hardcode_shlibpath_var=no
8344      ;;
8345
8346    *)
8347      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8348        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8349        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8350      else
8351        ld_shlibs=no
8352      fi
8353      ;;
8354    esac
8355
8356    if test "$ld_shlibs" = no; then
8357      runpath_var=
8358      hardcode_libdir_flag_spec=
8359      export_dynamic_flag_spec=
8360      whole_archive_flag_spec=
8361    fi
8362  else
8363    # PORTME fill in a description of your system's linker (not GNU ld)
8364    case $host_os in
8365    aix3*)
8366      allow_undefined_flag=unsupported
8367      always_export_symbols=yes
8368      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'
8369      # Note: this linker hardcodes the directories in LIBPATH if there
8370      # are no directories specified by -L.
8371      hardcode_minus_L=yes
8372      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8373        # Neither direct hardcoding nor static linking is supported with a
8374        # broken collect2.
8375        hardcode_direct=unsupported
8376      fi
8377      ;;
8378
8379    aix4* | aix5*)
8380      if test "$host_cpu" = ia64; then
8381        # On IA64, the linker does run time linking by default, so we don't
8382        # have to do anything special.
8383        aix_use_runtimelinking=no
8384        exp_sym_flag='-Bexport'
8385        no_entry_flag=""
8386      else
8387        # If we're using GNU nm, then we don't want the "-C" option.
8388        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8389        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8390          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'
8391        else
8392          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'
8393        fi
8394        aix_use_runtimelinking=no
8395
8396        # Test if we are trying to use run time linking or normal
8397        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8398        # need to do runtime linking.
8399        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8400          for ld_flag in $LDFLAGS; do
8401          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8402            aix_use_runtimelinking=yes
8403            break
8404          fi
8405          done
8406          ;;
8407        esac
8408
8409        exp_sym_flag='-bexport'
8410        no_entry_flag='-bnoentry'
8411      fi
8412
8413      # When large executables or shared objects are built, AIX ld can
8414      # have problems creating the table of contents.  If linking a library
8415      # or program results in "error TOC overflow" add -mminimal-toc to
8416      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8417      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8418
8419      archive_cmds=''
8420      hardcode_direct=yes
8421      hardcode_libdir_separator=':'
8422      link_all_deplibs=yes
8423
8424      if test "$GCC" = yes; then
8425        case $host_os in aix4.[012]|aix4.[012].*)
8426        # We only want to do this on AIX 4.2 and lower, the check
8427        # below for broken collect2 doesn't work under 4.3+
8428          collect2name=`${CC} -print-prog-name=collect2`
8429          if test -f "$collect2name" && \
8430           strings "$collect2name" | grep resolve_lib_name >/dev/null
8431          then
8432          # We have reworked collect2
8433          hardcode_direct=yes
8434          else
8435          # We have old collect2
8436          hardcode_direct=unsupported
8437          # It fails to find uninstalled libraries when the uninstalled
8438          # path is not listed in the libpath.  Setting hardcode_minus_L
8439          # to unsupported forces relinking
8440          hardcode_minus_L=yes
8441          hardcode_libdir_flag_spec='-L$libdir'
8442          hardcode_libdir_separator=
8443          fi
8444          ;;
8445        esac
8446        shared_flag='-shared'
8447        if test "$aix_use_runtimelinking" = yes; then
8448          shared_flag="$shared_flag "'${wl}-G'
8449        fi
8450      else
8451        # not using gcc
8452        if test "$host_cpu" = ia64; then
8453        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8454        # chokes on -Wl,-G. The following line is correct:
8455          shared_flag='-G'
8456        else
8457          if test "$aix_use_runtimelinking" = yes; then
8458            shared_flag='${wl}-G'
8459          else
8460            shared_flag='${wl}-bM:SRE'
8461          fi
8462        fi
8463      fi
8464
8465      # It seems that -bexpall does not export symbols beginning with
8466      # underscore (_), so it is better to generate a list of symbols to export.
8467      always_export_symbols=yes
8468      if test "$aix_use_runtimelinking" = yes; then
8469        # Warning - without using the other runtime loading flags (-brtl),
8470        # -berok will link without error, but may produce a broken library.
8471        allow_undefined_flag='-berok'
8472       # Determine the default libpath from the value encoded in an empty executable.
8473       cat >conftest.$ac_ext <<_ACEOF
8474/* confdefs.h.  */
8475_ACEOF
8476cat confdefs.h >>conftest.$ac_ext
8477cat >>conftest.$ac_ext <<_ACEOF
8478/* end confdefs.h.  */
8479
8480int
8481main ()
8482{
8483
8484  ;
8485  return 0;
8486}
8487_ACEOF
8488rm -f conftest.$ac_objext conftest$ac_exeext
8489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490  (eval $ac_link) 2>conftest.er1
8491  ac_status=$?
8492  grep -v '^ *+' conftest.er1 >conftest.err
8493  rm -f conftest.er1
8494  cat conftest.err >&5
8495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496  (exit $ac_status); } &&
8497         { ac_try='test -z "$ac_c_werror_flag"
8498                         || test ! -s conftest.err'
8499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500  (eval $ac_try) 2>&5
8501  ac_status=$?
8502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503  (exit $ac_status); }; } &&
8504         { ac_try='test -s conftest$ac_exeext'
8505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506  (eval $ac_try) 2>&5
8507  ac_status=$?
8508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509  (exit $ac_status); }; }; then
8510
8511aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8512}'`
8513# Check for a 64-bit object if we didn't find anything.
8514if 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; }
8515}'`; fi
8516else
8517  echo "$as_me: failed program was:" >&5
8518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520fi
8521rm -f conftest.err conftest.$ac_objext \
8522      conftest$ac_exeext conftest.$ac_ext
8523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8524
8525       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8526        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"
8527       else
8528        if test "$host_cpu" = ia64; then
8529          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8530          allow_undefined_flag="-z nodefs"
8531          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"
8532        else
8533         # Determine the default libpath from the value encoded in an empty executable.
8534         cat >conftest.$ac_ext <<_ACEOF
8535/* confdefs.h.  */
8536_ACEOF
8537cat confdefs.h >>conftest.$ac_ext
8538cat >>conftest.$ac_ext <<_ACEOF
8539/* end confdefs.h.  */
8540
8541int
8542main ()
8543{
8544
8545  ;
8546  return 0;
8547}
8548_ACEOF
8549rm -f conftest.$ac_objext conftest$ac_exeext
8550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8551  (eval $ac_link) 2>conftest.er1
8552  ac_status=$?
8553  grep -v '^ *+' conftest.er1 >conftest.err
8554  rm -f conftest.er1
8555  cat conftest.err >&5
8556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557  (exit $ac_status); } &&
8558         { ac_try='test -z "$ac_c_werror_flag"
8559                         || test ! -s conftest.err'
8560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561  (eval $ac_try) 2>&5
8562  ac_status=$?
8563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564  (exit $ac_status); }; } &&
8565         { ac_try='test -s conftest$ac_exeext'
8566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567  (eval $ac_try) 2>&5
8568  ac_status=$?
8569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570  (exit $ac_status); }; }; then
8571
8572aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8573}'`
8574# Check for a 64-bit object if we didn't find anything.
8575if 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; }
8576}'`; fi
8577else
8578  echo "$as_me: failed program was:" >&5
8579sed 's/^/| /' conftest.$ac_ext >&5
8580
8581fi
8582rm -f conftest.err conftest.$ac_objext \
8583      conftest$ac_exeext conftest.$ac_ext
8584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8585
8586         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8587          # Warning - without using the other run time loading flags,
8588          # -berok will link without error, but may produce a broken library.
8589          no_undefined_flag=' ${wl}-bernotok'
8590          allow_undefined_flag=' ${wl}-berok'
8591          # Exported symbols can be pulled into shared objects from archives
8592          whole_archive_flag_spec='$convenience'
8593          archive_cmds_need_lc=yes
8594          # This is similar to how AIX traditionally builds its shared libraries.
8595          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'
8596        fi
8597      fi
8598      ;;
8599
8600    amigaos*)
8601      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)'
8602      hardcode_libdir_flag_spec='-L$libdir'
8603      hardcode_minus_L=yes
8604      # see comment about different semantics on the GNU ld section
8605      ld_shlibs=no
8606      ;;
8607
8608    bsdi[45]*)
8609      export_dynamic_flag_spec=-rdynamic
8610      ;;
8611
8612    cygwin* | mingw* | pw32*)
8613      # When not using gcc, we currently assume that we are using
8614      # Microsoft Visual C++.
8615      # hardcode_libdir_flag_spec is actually meaningless, as there is
8616      # no search path for DLLs.
8617      hardcode_libdir_flag_spec=' '
8618      allow_undefined_flag=unsupported
8619      # Tell ltmain to make .lib files, not .a files.
8620      libext=lib
8621      # Tell ltmain to make .dll files, not .so files.
8622      shrext_cmds=".dll"
8623      # FIXME: Setting linknames here is a bad hack.
8624      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8625      # The linker will automatically build a .lib file if we build a DLL.
8626      old_archive_From_new_cmds='true'
8627      # FIXME: Should let the user specify the lib program.
8628      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8629      fix_srcfile_path='`cygpath -w "$srcfile"`'
8630      enable_shared_with_static_runtimes=yes
8631      ;;
8632
8633    darwin* | rhapsody*)
8634      case $host_os in
8635        rhapsody* | darwin1.[012])
8636         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8637         ;;
8638       *) # Darwin 1.3 on
8639         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8640           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8641         else
8642           case ${MACOSX_DEPLOYMENT_TARGET} in
8643             10.[012])
8644               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8645               ;;
8646             10.*)
8647               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8648               ;;
8649           esac
8650         fi
8651         ;;
8652      esac
8653      archive_cmds_need_lc=no
8654      hardcode_direct=no
8655      hardcode_automatic=yes
8656      hardcode_shlibpath_var=unsupported
8657      whole_archive_flag_spec=''
8658      link_all_deplibs=yes
8659    if test "$GCC" = yes ; then
8660        output_verbose_link_cmd='echo'
8661        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8662      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8663      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8664      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}'
8665      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}'
8666    else
8667      case $cc_basename in
8668        xlc*)
8669         output_verbose_link_cmd='echo'
8670         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8671         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8672          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8673         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}'
8674          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}'
8675          ;;
8676       *)
8677         ld_shlibs=no
8678          ;;
8679      esac
8680    fi
8681      ;;
8682
8683    dgux*)
8684      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8685      hardcode_libdir_flag_spec='-L$libdir'
8686      hardcode_shlibpath_var=no
8687      ;;
8688
8689    freebsd1*)
8690      ld_shlibs=no
8691      ;;
8692
8693    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8694    # support.  Future versions do this automatically, but an explicit c++rt0.o
8695    # does not break anything, and helps significantly (at the cost of a little
8696    # extra space).
8697    freebsd2.2*)
8698      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8699      hardcode_libdir_flag_spec='-R$libdir'
8700      hardcode_direct=yes
8701      hardcode_shlibpath_var=no
8702      ;;
8703
8704    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8705    freebsd2*)
8706      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8707      hardcode_direct=yes
8708      hardcode_minus_L=yes
8709      hardcode_shlibpath_var=no
8710      ;;
8711
8712    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8713    freebsd* | kfreebsd*-gnu | dragonfly*)
8714      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8715      hardcode_libdir_flag_spec='-R$libdir'
8716      hardcode_direct=yes
8717      hardcode_shlibpath_var=no
8718      ;;
8719
8720    hpux9*)
8721      if test "$GCC" = yes; then
8722        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'
8723      else
8724        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'
8725      fi
8726      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8727      hardcode_libdir_separator=:
8728      hardcode_direct=yes
8729
8730      # hardcode_minus_L: Not really in the search PATH,
8731      # but as the default location of the library.
8732      hardcode_minus_L=yes
8733      export_dynamic_flag_spec='${wl}-E'
8734      ;;
8735
8736    hpux10*)
8737      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8738        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8739      else
8740        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8741      fi
8742      if test "$with_gnu_ld" = no; then
8743        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8744        hardcode_libdir_separator=:
8745
8746        hardcode_direct=yes
8747        export_dynamic_flag_spec='${wl}-E'
8748
8749        # hardcode_minus_L: Not really in the search PATH,
8750        # but as the default location of the library.
8751        hardcode_minus_L=yes
8752      fi
8753      ;;
8754
8755    hpux11*)
8756      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8757        case $host_cpu in
8758        hppa*64*)
8759          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8760          ;;
8761        ia64*)
8762          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8763          ;;
8764        *)
8765          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8766          ;;
8767        esac
8768      else
8769        case $host_cpu in
8770        hppa*64*)
8771          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8772          ;;
8773        ia64*)
8774          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8775          ;;
8776        *)
8777          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8778          ;;
8779        esac
8780      fi
8781      if test "$with_gnu_ld" = no; then
8782        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8783        hardcode_libdir_separator=:
8784
8785        case $host_cpu in
8786        hppa*64*|ia64*)
8787          hardcode_libdir_flag_spec_ld='+b $libdir'
8788          hardcode_direct=no
8789          hardcode_shlibpath_var=no
8790          ;;
8791        *)
8792          hardcode_direct=yes
8793          export_dynamic_flag_spec='${wl}-E'
8794
8795          # hardcode_minus_L: Not really in the search PATH,
8796          # but as the default location of the library.
8797          hardcode_minus_L=yes
8798          ;;
8799        esac
8800      fi
8801      ;;
8802
8803    irix5* | irix6* | nonstopux*)
8804      if test "$GCC" = yes; then
8805        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'
8806      else
8807        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'
8808        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8809      fi
8810      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811      hardcode_libdir_separator=:
8812      link_all_deplibs=yes
8813      ;;
8814
8815    netbsd*)
8816      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8817        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8818      else
8819        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8820      fi
8821      hardcode_libdir_flag_spec='-R$libdir'
8822      hardcode_direct=yes
8823      hardcode_shlibpath_var=no
8824      ;;
8825
8826    newsos6)
8827      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8828      hardcode_direct=yes
8829      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8830      hardcode_libdir_separator=:
8831      hardcode_shlibpath_var=no
8832      ;;
8833
8834    openbsd*)
8835      hardcode_direct=yes
8836      hardcode_shlibpath_var=no
8837      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8838        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8839        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8840        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8841        export_dynamic_flag_spec='${wl}-E'
8842      else
8843       case $host_os in
8844         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8845           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8846           hardcode_libdir_flag_spec='-R$libdir'
8847           ;;
8848         *)
8849           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8850           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8851           ;;
8852       esac
8853      fi
8854      ;;
8855
8856    os2*)
8857      hardcode_libdir_flag_spec='-L$libdir'
8858      hardcode_minus_L=yes
8859      allow_undefined_flag=unsupported
8860      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'
8861      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8862      ;;
8863
8864    osf3*)
8865      if test "$GCC" = yes; then
8866        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8867        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'
8868      else
8869        allow_undefined_flag=' -expect_unresolved \*'
8870        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'
8871      fi
8872      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8873      hardcode_libdir_separator=:
8874      ;;
8875
8876    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8877      if test "$GCC" = yes; then
8878        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8879        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'
8880        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8881      else
8882        allow_undefined_flag=' -expect_unresolved \*'
8883        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'
8884        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8885        $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'
8886
8887        # Both c and cxx compiler support -rpath directly
8888        hardcode_libdir_flag_spec='-rpath $libdir'
8889      fi
8890      hardcode_libdir_separator=:
8891      ;;
8892
8893    solaris*)
8894      no_undefined_flag=' -z text'
8895      if test "$GCC" = yes; then
8896        wlarc='${wl}'
8897        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8898        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8899          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8900      else
8901        wlarc=''
8902        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8903        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8904        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8905      fi
8906      hardcode_libdir_flag_spec='-R$libdir'
8907      hardcode_shlibpath_var=no
8908      case $host_os in
8909      solaris2.[0-5] | solaris2.[0-5].*) ;;
8910      *)
8911        # The compiler driver will combine linker options so we
8912        # cannot just pass the convience library names through
8913        # without $wl, iff we do not link with $LD.
8914        # Luckily, gcc supports the same syntax we need for Sun Studio.
8915        # Supported since Solaris 2.6 (maybe 2.5.1?)
8916        case $wlarc in
8917        '')
8918          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8919        *)
8920          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' ;;
8921        esac ;;
8922      esac
8923      link_all_deplibs=yes
8924      ;;
8925
8926    sunos4*)
8927      if test "x$host_vendor" = xsequent; then
8928        # Use $CC to link under sequent, because it throws in some extra .o
8929        # files that make .init and .fini sections work.
8930        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8931      else
8932        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8933      fi
8934      hardcode_libdir_flag_spec='-L$libdir'
8935      hardcode_direct=yes
8936      hardcode_minus_L=yes
8937      hardcode_shlibpath_var=no
8938      ;;
8939
8940    sysv4)
8941      case $host_vendor in
8942        sni)
8943          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944          hardcode_direct=yes # is this really true???
8945        ;;
8946        siemens)
8947          ## LD is ld it makes a PLAMLIB
8948          ## CC just makes a GrossModule.
8949          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8950          reload_cmds='$CC -r -o $output$reload_objs'
8951          hardcode_direct=no
8952        ;;
8953        motorola)
8954          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8955          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8956        ;;
8957      esac
8958      runpath_var='LD_RUN_PATH'
8959      hardcode_shlibpath_var=no
8960      ;;
8961
8962    sysv4.3*)
8963      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8964      hardcode_shlibpath_var=no
8965      export_dynamic_flag_spec='-Bexport'
8966      ;;
8967
8968    sysv4*MP*)
8969      if test -d /usr/nec; then
8970        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971        hardcode_shlibpath_var=no
8972        runpath_var=LD_RUN_PATH
8973        hardcode_runpath_var=yes
8974        ld_shlibs=yes
8975      fi
8976      ;;
8977
8978    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8979      no_undefined_flag='${wl}-z,text'
8980      archive_cmds_need_lc=no
8981      hardcode_shlibpath_var=no
8982      runpath_var='LD_RUN_PATH'
8983
8984      if test "$GCC" = yes; then
8985        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8986        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8987      else
8988        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8989        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8990      fi
8991      ;;
8992
8993    sysv5* | sco3.2v5* | sco5v6*)
8994      # Note: We can NOT use -z defs as we might desire, because we do not
8995      # link with -lc, and that would cause any symbols used from libc to
8996      # always be unresolved, which means just about no library would
8997      # ever link correctly.  If we're not using GNU ld we use -z text
8998      # though, which does catch some bad symbols but isn't as heavy-handed
8999      # as -z defs.
9000      no_undefined_flag='${wl}-z,text'
9001      allow_undefined_flag='${wl}-z,nodefs'
9002      archive_cmds_need_lc=no
9003      hardcode_shlibpath_var=no
9004      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9005      hardcode_libdir_separator=':'
9006      link_all_deplibs=yes
9007      export_dynamic_flag_spec='${wl}-Bexport'
9008      runpath_var='LD_RUN_PATH'
9009
9010      if test "$GCC" = yes; then
9011        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9012        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9013      else
9014        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9015        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9016      fi
9017      ;;
9018
9019    uts4*)
9020      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9021      hardcode_libdir_flag_spec='-L$libdir'
9022      hardcode_shlibpath_var=no
9023      ;;
9024
9025    *)
9026      ld_shlibs=no
9027      ;;
9028    esac
9029  fi
9030
9031echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9032echo "${ECHO_T}$ld_shlibs" >&6
9033test "$ld_shlibs" = no && can_build_shared=no
9034
9035#
9036# Do we need to explicitly link libc?
9037#
9038case "x$archive_cmds_need_lc" in
9039x|xyes)
9040  # Assume -lc should be added
9041  archive_cmds_need_lc=yes
9042
9043  if test "$enable_shared" = yes && test "$GCC" = yes; then
9044    case $archive_cmds in
9045    *'~'*)
9046      # FIXME: we may have to deal with multi-command sequences.
9047      ;;
9048    '$CC '*)
9049      # Test whether the compiler implicitly links with -lc since on some
9050      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9051      # to ld, don't add -lc before -lgcc.
9052      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9053echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9054      $rm conftest*
9055      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9056
9057      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9058  (eval $ac_compile) 2>&5
9059  ac_status=$?
9060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061  (exit $ac_status); } 2>conftest.err; then
9062        soname=conftest
9063        lib=conftest
9064        libobjs=conftest.$ac_objext
9065        deplibs=
9066        wl=$lt_prog_compiler_wl
9067        pic_flag=$lt_prog_compiler_pic
9068        compiler_flags=-v
9069        linker_flags=-v
9070        verstring=
9071        output_objdir=.
9072        libname=conftest
9073        lt_save_allow_undefined_flag=$allow_undefined_flag
9074        allow_undefined_flag=
9075        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9076  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9077  ac_status=$?
9078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079  (exit $ac_status); }
9080        then
9081          archive_cmds_need_lc=no
9082        else
9083          archive_cmds_need_lc=yes
9084        fi
9085        allow_undefined_flag=$lt_save_allow_undefined_flag
9086      else
9087        cat conftest.err 1>&5
9088      fi
9089      $rm conftest*
9090      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9091echo "${ECHO_T}$archive_cmds_need_lc" >&6
9092      ;;
9093    esac
9094  fi
9095  ;;
9096esac
9097
9098echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9099echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9100library_names_spec=
9101libname_spec='lib$name'
9102soname_spec=
9103shrext_cmds=".so"
9104postinstall_cmds=
9105postuninstall_cmds=
9106finish_cmds=
9107finish_eval=
9108shlibpath_var=
9109shlibpath_overrides_runpath=unknown
9110version_type=none
9111dynamic_linker="$host_os ld.so"
9112sys_lib_dlsearch_path_spec="/lib /usr/lib"
9113if test "$GCC" = yes; then
9114  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9115  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9116    # if the path contains ";" then we assume it to be the separator
9117    # otherwise default to the standard path separator (i.e. ":") - it is
9118    # assumed that no part of a normal pathname contains ";" but that should
9119    # okay in the real world where ";" in dirpaths is itself problematic.
9120    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9121  else
9122    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9123  fi
9124else
9125  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9126fi
9127need_lib_prefix=unknown
9128hardcode_into_libs=no
9129
9130# when you set need_version to no, make sure it does not cause -set_version
9131# flags to be left without arguments
9132need_version=unknown
9133
9134case $host_os in
9135aix3*)
9136  version_type=linux
9137  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9138  shlibpath_var=LIBPATH
9139
9140  # AIX 3 has no versioning support, so we append a major version to the name.
9141  soname_spec='${libname}${release}${shared_ext}$major'
9142  ;;
9143
9144aix4* | aix5*)
9145  version_type=linux
9146  need_lib_prefix=no
9147  need_version=no
9148  hardcode_into_libs=yes
9149  if test "$host_cpu" = ia64; then
9150    # AIX 5 supports IA64
9151    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9152    shlibpath_var=LD_LIBRARY_PATH
9153  else
9154    # With GCC up to 2.95.x, collect2 would create an import file
9155    # for dependence libraries.  The import file would start with
9156    # the line `#! .'.  This would cause the generated library to
9157    # depend on `.', always an invalid library.  This was fixed in
9158    # development snapshots of GCC prior to 3.0.
9159    case $host_os in
9160      aix4 | aix4.[01] | aix4.[01].*)
9161      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9162           echo ' yes '
9163           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9164        :
9165      else
9166        can_build_shared=no
9167      fi
9168      ;;
9169    esac
9170    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9171    # soname into executable. Probably we can add versioning support to
9172    # collect2, so additional links can be useful in future.
9173    if test "$aix_use_runtimelinking" = yes; then
9174      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9175      # instead of lib<name>.a to let people know that these are not
9176      # typical AIX shared libraries.
9177      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178    else
9179      # We preserve .a as extension for shared libraries through AIX4.2
9180      # and later when we are not doing run time linking.
9181      library_names_spec='${libname}${release}.a $libname.a'
9182      soname_spec='${libname}${release}${shared_ext}$major'
9183    fi
9184    shlibpath_var=LIBPATH
9185  fi
9186  ;;
9187
9188amigaos*)
9189  library_names_spec='$libname.ixlibrary $libname.a'
9190  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9191  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'
9192  ;;
9193
9194beos*)
9195  library_names_spec='${libname}${shared_ext}'
9196  dynamic_linker="$host_os ld.so"
9197  shlibpath_var=LIBRARY_PATH
9198  ;;
9199
9200bsdi[45]*)
9201  version_type=linux
9202  need_version=no
9203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204  soname_spec='${libname}${release}${shared_ext}$major'
9205  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9206  shlibpath_var=LD_LIBRARY_PATH
9207  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9208  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9209  # the default ld.so.conf also contains /usr/contrib/lib and
9210  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9211  # libtool to hard-code these into programs
9212  ;;
9213
9214cygwin* | mingw* | pw32*)
9215  version_type=windows
9216  shrext_cmds=".dll"
9217  need_version=no
9218  need_lib_prefix=no
9219
9220  case $GCC,$host_os in
9221  yes,cygwin* | yes,mingw* | yes,pw32*)
9222    library_names_spec='$libname.dll.a'
9223    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9224    postinstall_cmds='base_file=`basename \${file}`~
9225      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9226      dldir=$destdir/`dirname \$dlpath`~
9227      test -d \$dldir || mkdir -p \$dldir~
9228      $install_prog $dir/$dlname \$dldir/$dlname~
9229      chmod a+x \$dldir/$dlname'
9230    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9231      dlpath=$dir/\$dldll~
9232       $rm \$dlpath'
9233    shlibpath_overrides_runpath=yes
9234
9235    case $host_os in
9236    cygwin*)
9237      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9238      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9239      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9240      ;;
9241    mingw*)
9242      # MinGW DLLs use traditional 'lib' prefix
9243      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9244      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9245      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9246        # It is most probably a Windows format PATH printed by
9247        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9248        # path with ; separators, and with drive letters. We can handle the
9249        # drive letters (cygwin fileutils understands them), so leave them,
9250        # especially as we might pass files found there to a mingw objdump,
9251        # which wouldn't understand a cygwinified path. Ahh.
9252        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9253      else
9254        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9255      fi
9256      ;;
9257    pw32*)
9258      # pw32 DLLs use 'pw' prefix rather than 'lib'
9259      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9260      ;;
9261    esac
9262    ;;
9263
9264  *)
9265    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9266    ;;
9267  esac
9268  dynamic_linker='Win32 ld.exe'
9269  # FIXME: first we should search . and the directory the executable is in
9270  shlibpath_var=PATH
9271  ;;
9272
9273darwin* | rhapsody*)
9274  dynamic_linker="$host_os dyld"
9275  version_type=darwin
9276  need_lib_prefix=no
9277  need_version=no
9278  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9279  soname_spec='${libname}${release}${major}$shared_ext'
9280  shlibpath_overrides_runpath=yes
9281  shlibpath_var=DYLD_LIBRARY_PATH
9282  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9283  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9284  if test "$GCC" = yes; then
9285    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"`
9286  else
9287    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9288  fi
9289  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9290  ;;
9291
9292dgux*)
9293  version_type=linux
9294  need_lib_prefix=no
9295  need_version=no
9296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9297  soname_spec='${libname}${release}${shared_ext}$major'
9298  shlibpath_var=LD_LIBRARY_PATH
9299  ;;
9300
9301freebsd1*)
9302  dynamic_linker=no
9303  ;;
9304
9305kfreebsd*-gnu)
9306  version_type=linux
9307  need_lib_prefix=no
9308  need_version=no
9309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9310  soname_spec='${libname}${release}${shared_ext}$major'
9311  shlibpath_var=LD_LIBRARY_PATH
9312  shlibpath_overrides_runpath=no
9313  hardcode_into_libs=yes
9314  dynamic_linker='GNU ld.so'
9315  ;;
9316
9317freebsd* | dragonfly*)
9318  # DragonFly does not have aout.  When/if they implement a new
9319  # versioning mechanism, adjust this.
9320  if test -x /usr/bin/objformat; then
9321    objformat=`/usr/bin/objformat`
9322  else
9323    case $host_os in
9324    freebsd[123]*) objformat=aout ;;
9325    *) objformat=elf ;;
9326    esac
9327  fi
9328  version_type=freebsd-$objformat
9329  case $version_type in
9330    freebsd-elf*)
9331      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9332      need_version=no
9333      need_lib_prefix=no
9334      ;;
9335    freebsd-*)
9336      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9337      need_version=yes
9338      ;;
9339  esac
9340  shlibpath_var=LD_LIBRARY_PATH
9341  case $host_os in
9342  freebsd2*)
9343    shlibpath_overrides_runpath=yes
9344    ;;
9345  freebsd3.[01]* | freebsdelf3.[01]*)
9346    shlibpath_overrides_runpath=yes
9347    hardcode_into_libs=yes
9348    ;;
9349  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9350  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9351    shlibpath_overrides_runpath=no
9352    hardcode_into_libs=yes
9353    ;;
9354  freebsd*) # from 4.6 on
9355    shlibpath_overrides_runpath=yes
9356    hardcode_into_libs=yes
9357    ;;
9358  esac
9359  ;;
9360
9361gnu*)
9362  version_type=linux
9363  need_lib_prefix=no
9364  need_version=no
9365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9366  soname_spec='${libname}${release}${shared_ext}$major'
9367  shlibpath_var=LD_LIBRARY_PATH
9368  hardcode_into_libs=yes
9369  ;;
9370
9371hpux9* | hpux10* | hpux11*)
9372  # Give a soname corresponding to the major version so that dld.sl refuses to
9373  # link against other versions.
9374  version_type=sunos
9375  need_lib_prefix=no
9376  need_version=no
9377  case $host_cpu in
9378  ia64*)
9379    shrext_cmds='.so'
9380    hardcode_into_libs=yes
9381    dynamic_linker="$host_os dld.so"
9382    shlibpath_var=LD_LIBRARY_PATH
9383    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9384    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385    soname_spec='${libname}${release}${shared_ext}$major'
9386    if test "X$HPUX_IA64_MODE" = X32; then
9387      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9388    else
9389      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9390    fi
9391    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9392    ;;
9393   hppa*64*)
9394     shrext_cmds='.sl'
9395     hardcode_into_libs=yes
9396     dynamic_linker="$host_os dld.sl"
9397     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9398     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400     soname_spec='${libname}${release}${shared_ext}$major'
9401     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9402     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9403     ;;
9404   *)
9405    shrext_cmds='.sl'
9406    dynamic_linker="$host_os dld.sl"
9407    shlibpath_var=SHLIB_PATH
9408    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9409    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410    soname_spec='${libname}${release}${shared_ext}$major'
9411    ;;
9412  esac
9413  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9414  postinstall_cmds='chmod 555 $lib'
9415  ;;
9416
9417interix3*)
9418  version_type=linux
9419  need_lib_prefix=no
9420  need_version=no
9421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9422  soname_spec='${libname}${release}${shared_ext}$major'
9423  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9424  shlibpath_var=LD_LIBRARY_PATH
9425  shlibpath_overrides_runpath=no
9426  hardcode_into_libs=yes
9427  ;;
9428
9429irix5* | irix6* | nonstopux*)
9430  case $host_os in
9431    nonstopux*) version_type=nonstopux ;;
9432    *)
9433        if test "$lt_cv_prog_gnu_ld" = yes; then
9434                version_type=linux
9435        else
9436                version_type=irix
9437        fi ;;
9438  esac
9439  need_lib_prefix=no
9440  need_version=no
9441  soname_spec='${libname}${release}${shared_ext}$major'
9442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9443  case $host_os in
9444  irix5* | nonstopux*)
9445    libsuff= shlibsuff=
9446    ;;
9447  *)
9448    case $LD in # libtool.m4 will add one of these switches to LD
9449    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9450      libsuff= shlibsuff= libmagic=32-bit;;
9451    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9452      libsuff=32 shlibsuff=N32 libmagic=N32;;
9453    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9454      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9455    *) libsuff= shlibsuff= libmagic=never-match;;
9456    esac
9457    ;;
9458  esac
9459  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9460  shlibpath_overrides_runpath=no
9461  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9462  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9463  hardcode_into_libs=yes
9464  ;;
9465
9466# No shared lib support for Linux oldld, aout, or coff.
9467linux*oldld* | linux*aout* | linux*coff*)
9468  dynamic_linker=no
9469  ;;
9470
9471# This must be Linux ELF.
9472linux*)
9473  version_type=linux
9474  need_lib_prefix=no
9475  need_version=no
9476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477  soname_spec='${libname}${release}${shared_ext}$major'
9478  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9479  shlibpath_var=LD_LIBRARY_PATH
9480  shlibpath_overrides_runpath=no
9481  # This implies no fast_install, which is unacceptable.
9482  # Some rework will be needed to allow for fast_install
9483  # before this can be enabled.
9484  hardcode_into_libs=yes
9485
9486  # Append ld.so.conf contents to the search path
9487  if test -f /etc/ld.so.conf; then
9488    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' ' '`
9489    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9490  fi
9491
9492  # We used to test for /lib/ld.so.1 and disable shared libraries on
9493  # powerpc, because MkLinux only supported shared libraries with the
9494  # GNU dynamic linker.  Since this was broken with cross compilers,
9495  # most powerpc-linux boxes support dynamic linking these days and
9496  # people can always --disable-shared, the test was removed, and we
9497  # assume the GNU/Linux dynamic linker is in use.
9498  dynamic_linker='GNU/Linux ld.so'
9499  ;;
9500
9501knetbsd*-gnu)
9502  version_type=linux
9503  need_lib_prefix=no
9504  need_version=no
9505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9506  soname_spec='${libname}${release}${shared_ext}$major'
9507  shlibpath_var=LD_LIBRARY_PATH
9508  shlibpath_overrides_runpath=no
9509  hardcode_into_libs=yes
9510  dynamic_linker='GNU ld.so'
9511  ;;
9512
9513netbsd*)
9514  version_type=sunos
9515  need_lib_prefix=no
9516  need_version=no
9517  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9518    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9519    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9520    dynamic_linker='NetBSD (a.out) ld.so'
9521  else
9522    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9523    soname_spec='${libname}${release}${shared_ext}$major'
9524    dynamic_linker='NetBSD ld.elf_so'
9525  fi
9526  shlibpath_var=LD_LIBRARY_PATH
9527  shlibpath_overrides_runpath=yes
9528  hardcode_into_libs=yes
9529  ;;
9530
9531newsos6)
9532  version_type=linux
9533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534  shlibpath_var=LD_LIBRARY_PATH
9535  shlibpath_overrides_runpath=yes
9536  ;;
9537
9538nto-qnx*)
9539  version_type=linux
9540  need_lib_prefix=no
9541  need_version=no
9542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543  soname_spec='${libname}${release}${shared_ext}$major'
9544  shlibpath_var=LD_LIBRARY_PATH
9545  shlibpath_overrides_runpath=yes
9546  ;;
9547
9548openbsd*)
9549  version_type=sunos
9550  sys_lib_dlsearch_path_spec="/usr/lib"
9551  need_lib_prefix=no
9552  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9553  case $host_os in
9554    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9555    *)                         need_version=no  ;;
9556  esac
9557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9558  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9559  shlibpath_var=LD_LIBRARY_PATH
9560  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9561    case $host_os in
9562      openbsd2.[89] | openbsd2.[89].*)
9563        shlibpath_overrides_runpath=no
9564        ;;
9565      *)
9566        shlibpath_overrides_runpath=yes
9567        ;;
9568      esac
9569  else
9570    shlibpath_overrides_runpath=yes
9571  fi
9572  ;;
9573
9574os2*)
9575  libname_spec='$name'
9576  shrext_cmds=".dll"
9577  need_lib_prefix=no
9578  library_names_spec='$libname${shared_ext} $libname.a'
9579  dynamic_linker='OS/2 ld.exe'
9580  shlibpath_var=LIBPATH
9581  ;;
9582
9583osf3* | osf4* | osf5*)
9584  version_type=osf
9585  need_lib_prefix=no
9586  need_version=no
9587  soname_spec='${libname}${release}${shared_ext}$major'
9588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589  shlibpath_var=LD_LIBRARY_PATH
9590  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9591  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9592  ;;
9593
9594solaris*)
9595  version_type=linux
9596  need_lib_prefix=no
9597  need_version=no
9598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599  soname_spec='${libname}${release}${shared_ext}$major'
9600  shlibpath_var=LD_LIBRARY_PATH
9601  shlibpath_overrides_runpath=yes
9602  hardcode_into_libs=yes
9603  # ldd complains unless libraries are executable
9604  postinstall_cmds='chmod +x $lib'
9605  ;;
9606
9607sunos4*)
9608  version_type=sunos
9609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9610  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9611  shlibpath_var=LD_LIBRARY_PATH
9612  shlibpath_overrides_runpath=yes
9613  if test "$with_gnu_ld" = yes; then
9614    need_lib_prefix=no
9615  fi
9616  need_version=yes
9617  ;;
9618
9619sysv4 | sysv4.3*)
9620  version_type=linux
9621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622  soname_spec='${libname}${release}${shared_ext}$major'
9623  shlibpath_var=LD_LIBRARY_PATH
9624  case $host_vendor in
9625    sni)
9626      shlibpath_overrides_runpath=no
9627      need_lib_prefix=no
9628      export_dynamic_flag_spec='${wl}-Blargedynsym'
9629      runpath_var=LD_RUN_PATH
9630      ;;
9631    siemens)
9632      need_lib_prefix=no
9633      ;;
9634    motorola)
9635      need_lib_prefix=no
9636      need_version=no
9637      shlibpath_overrides_runpath=no
9638      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9639      ;;
9640  esac
9641  ;;
9642
9643sysv4*MP*)
9644  if test -d /usr/nec ;then
9645    version_type=linux
9646    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9647    soname_spec='$libname${shared_ext}.$major'
9648    shlibpath_var=LD_LIBRARY_PATH
9649  fi
9650  ;;
9651
9652sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9653  version_type=freebsd-elf
9654  need_lib_prefix=no
9655  need_version=no
9656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9657  soname_spec='${libname}${release}${shared_ext}$major'
9658  shlibpath_var=LD_LIBRARY_PATH
9659  hardcode_into_libs=yes
9660  if test "$with_gnu_ld" = yes; then
9661    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9662    shlibpath_overrides_runpath=no
9663  else
9664    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9665    shlibpath_overrides_runpath=yes
9666    case $host_os in
9667      sco3.2v5*)
9668        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9669        ;;
9670    esac
9671  fi
9672  sys_lib_dlsearch_path_spec='/usr/lib'
9673  ;;
9674
9675uts4*)
9676  version_type=linux
9677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678  soname_spec='${libname}${release}${shared_ext}$major'
9679  shlibpath_var=LD_LIBRARY_PATH
9680  ;;
9681
9682*)
9683  dynamic_linker=no
9684  ;;
9685esac
9686echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9687echo "${ECHO_T}$dynamic_linker" >&6
9688test "$dynamic_linker" = no && can_build_shared=no
9689
9690variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9691if test "$GCC" = yes; then
9692  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9693fi
9694
9695echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9696echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9697hardcode_action=
9698if test -n "$hardcode_libdir_flag_spec" || \
9699   test -n "$runpath_var" || \
9700   test "X$hardcode_automatic" = "Xyes" ; then
9701
9702  # We can hardcode non-existant directories.
9703  if test "$hardcode_direct" != no &&
9704     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9705     # have to relink, otherwise we might link with an installed library
9706     # when we should be linking with a yet-to-be-installed one
9707     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9708     test "$hardcode_minus_L" != no; then
9709    # Linking always hardcodes the temporary library directory.
9710    hardcode_action=relink
9711  else
9712    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9713    hardcode_action=immediate
9714  fi
9715else
9716  # We cannot hardcode anything, or else we can only hardcode existing
9717  # directories.
9718  hardcode_action=unsupported
9719fi
9720echo "$as_me:$LINENO: result: $hardcode_action" >&5
9721echo "${ECHO_T}$hardcode_action" >&6
9722
9723if test "$hardcode_action" = relink; then
9724  # Fast installation is not supported
9725  enable_fast_install=no
9726elif test "$shlibpath_overrides_runpath" = yes ||
9727     test "$enable_shared" = no; then
9728  # Fast installation is not necessary
9729  enable_fast_install=needless
9730fi
9731
9732striplib=
9733old_striplib=
9734echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9735echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9736if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9737  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9738  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9739  echo "$as_me:$LINENO: result: yes" >&5
9740echo "${ECHO_T}yes" >&6
9741else
9742# FIXME - insert some real tests, host_os isn't really good enough
9743  case $host_os in
9744   darwin*)
9745       if test -n "$STRIP" ; then
9746         striplib="$STRIP -x"
9747         echo "$as_me:$LINENO: result: yes" >&5
9748echo "${ECHO_T}yes" >&6
9749       else
9750  echo "$as_me:$LINENO: result: no" >&5
9751echo "${ECHO_T}no" >&6
9752fi
9753       ;;
9754   *)
9755  echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
9757    ;;
9758  esac
9759fi
9760
9761if test "x$enable_dlopen" != xyes; then
9762  enable_dlopen=unknown
9763  enable_dlopen_self=unknown
9764  enable_dlopen_self_static=unknown
9765else
9766  lt_cv_dlopen=no
9767  lt_cv_dlopen_libs=
9768
9769  case $host_os in
9770  beos*)
9771    lt_cv_dlopen="load_add_on"
9772    lt_cv_dlopen_libs=
9773    lt_cv_dlopen_self=yes
9774    ;;
9775
9776  mingw* | pw32*)
9777    lt_cv_dlopen="LoadLibrary"
9778    lt_cv_dlopen_libs=
9779   ;;
9780
9781  cygwin*)
9782    lt_cv_dlopen="dlopen"
9783    lt_cv_dlopen_libs=
9784   ;;
9785
9786  darwin*)
9787  # if libdl is installed we need to link against it
9788    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9789echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9790if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9791  echo $ECHO_N "(cached) $ECHO_C" >&6
9792else
9793  ac_check_lib_save_LIBS=$LIBS
9794LIBS="-ldl  $LIBS"
9795cat >conftest.$ac_ext <<_ACEOF
9796/* confdefs.h.  */
9797_ACEOF
9798cat confdefs.h >>conftest.$ac_ext
9799cat >>conftest.$ac_ext <<_ACEOF
9800/* end confdefs.h.  */
9801
9802/* Override any gcc2 internal prototype to avoid an error.  */
9803#ifdef __cplusplus
9804extern "C"
9805#endif
9806/* We use char because int might match the return type of a gcc2
9807   builtin and then its argument prototype would still apply.  */
9808char dlopen ();
9809int
9810main ()
9811{
9812dlopen ();
9813  ;
9814  return 0;
9815}
9816_ACEOF
9817rm -f conftest.$ac_objext conftest$ac_exeext
9818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819  (eval $ac_link) 2>conftest.er1
9820  ac_status=$?
9821  grep -v '^ *+' conftest.er1 >conftest.err
9822  rm -f conftest.er1
9823  cat conftest.err >&5
9824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825  (exit $ac_status); } &&
9826         { ac_try='test -z "$ac_c_werror_flag"
9827                         || test ! -s conftest.err'
9828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829  (eval $ac_try) 2>&5
9830  ac_status=$?
9831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832  (exit $ac_status); }; } &&
9833         { ac_try='test -s conftest$ac_exeext'
9834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835  (eval $ac_try) 2>&5
9836  ac_status=$?
9837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838  (exit $ac_status); }; }; then
9839  ac_cv_lib_dl_dlopen=yes
9840else
9841  echo "$as_me: failed program was:" >&5
9842sed 's/^/| /' conftest.$ac_ext >&5
9843
9844ac_cv_lib_dl_dlopen=no
9845fi
9846rm -f conftest.err conftest.$ac_objext \
9847      conftest$ac_exeext conftest.$ac_ext
9848LIBS=$ac_check_lib_save_LIBS
9849fi
9850echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9851echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9852if test $ac_cv_lib_dl_dlopen = yes; then
9853  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9854else
9855
9856    lt_cv_dlopen="dyld"
9857    lt_cv_dlopen_libs=
9858    lt_cv_dlopen_self=yes
9859
9860fi
9861
9862   ;;
9863
9864  *)
9865    echo "$as_me:$LINENO: checking for shl_load" >&5
9866echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9867if test "${ac_cv_func_shl_load+set}" = set; then
9868  echo $ECHO_N "(cached) $ECHO_C" >&6
9869else
9870  cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h.  */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h.  */
9876/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9877   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9878#define shl_load innocuous_shl_load
9879
9880/* System header to define __stub macros and hopefully few prototypes,
9881    which can conflict with char shl_load (); below.
9882    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9883    <limits.h> exists even on freestanding compilers.  */
9884
9885#ifdef __STDC__
9886# include <limits.h>
9887#else
9888# include <assert.h>
9889#endif
9890
9891#undef shl_load
9892
9893/* Override any gcc2 internal prototype to avoid an error.  */
9894#ifdef __cplusplus
9895extern "C"
9896{
9897#endif
9898/* We use char because int might match the return type of a gcc2
9899   builtin and then its argument prototype would still apply.  */
9900char shl_load ();
9901/* The GNU C library defines this for functions which it implements
9902    to always fail with ENOSYS.  Some functions are actually named
9903    something starting with __ and the normal name is an alias.  */
9904#if defined (__stub_shl_load) || defined (__stub___shl_load)
9905choke me
9906#else
9907char (*f) () = shl_load;
9908#endif
9909#ifdef __cplusplus
9910}
9911#endif
9912
9913int
9914main ()
9915{
9916return f != shl_load;
9917  ;
9918  return 0;
9919}
9920_ACEOF
9921rm -f conftest.$ac_objext conftest$ac_exeext
9922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923  (eval $ac_link) 2>conftest.er1
9924  ac_status=$?
9925  grep -v '^ *+' conftest.er1 >conftest.err
9926  rm -f conftest.er1
9927  cat conftest.err >&5
9928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929  (exit $ac_status); } &&
9930         { ac_try='test -z "$ac_c_werror_flag"
9931                         || test ! -s conftest.err'
9932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933  (eval $ac_try) 2>&5
9934  ac_status=$?
9935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936  (exit $ac_status); }; } &&
9937         { ac_try='test -s conftest$ac_exeext'
9938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939  (eval $ac_try) 2>&5
9940  ac_status=$?
9941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942  (exit $ac_status); }; }; then
9943  ac_cv_func_shl_load=yes
9944else
9945  echo "$as_me: failed program was:" >&5
9946sed 's/^/| /' conftest.$ac_ext >&5
9947
9948ac_cv_func_shl_load=no
9949fi
9950rm -f conftest.err conftest.$ac_objext \
9951      conftest$ac_exeext conftest.$ac_ext
9952fi
9953echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9954echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9955if test $ac_cv_func_shl_load = yes; then
9956  lt_cv_dlopen="shl_load"
9957else
9958  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9959echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9960if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9961  echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963  ac_check_lib_save_LIBS=$LIBS
9964LIBS="-ldld  $LIBS"
9965cat >conftest.$ac_ext <<_ACEOF
9966/* confdefs.h.  */
9967_ACEOF
9968cat confdefs.h >>conftest.$ac_ext
9969cat >>conftest.$ac_ext <<_ACEOF
9970/* end confdefs.h.  */
9971
9972/* Override any gcc2 internal prototype to avoid an error.  */
9973#ifdef __cplusplus
9974extern "C"
9975#endif
9976/* We use char because int might match the return type of a gcc2
9977   builtin and then its argument prototype would still apply.  */
9978char shl_load ();
9979int
9980main ()
9981{
9982shl_load ();
9983  ;
9984  return 0;
9985}
9986_ACEOF
9987rm -f conftest.$ac_objext conftest$ac_exeext
9988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989  (eval $ac_link) 2>conftest.er1
9990  ac_status=$?
9991  grep -v '^ *+' conftest.er1 >conftest.err
9992  rm -f conftest.er1
9993  cat conftest.err >&5
9994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995  (exit $ac_status); } &&
9996         { ac_try='test -z "$ac_c_werror_flag"
9997                         || test ! -s conftest.err'
9998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999  (eval $ac_try) 2>&5
10000  ac_status=$?
10001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002  (exit $ac_status); }; } &&
10003         { ac_try='test -s conftest$ac_exeext'
10004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005  (eval $ac_try) 2>&5
10006  ac_status=$?
10007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008  (exit $ac_status); }; }; then
10009  ac_cv_lib_dld_shl_load=yes
10010else
10011  echo "$as_me: failed program was:" >&5
10012sed 's/^/| /' conftest.$ac_ext >&5
10013
10014ac_cv_lib_dld_shl_load=no
10015fi
10016rm -f conftest.err conftest.$ac_objext \
10017      conftest$ac_exeext conftest.$ac_ext
10018LIBS=$ac_check_lib_save_LIBS
10019fi
10020echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10021echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10022if test $ac_cv_lib_dld_shl_load = yes; then
10023  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10024else
10025  echo "$as_me:$LINENO: checking for dlopen" >&5
10026echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10027if test "${ac_cv_func_dlopen+set}" = set; then
10028  echo $ECHO_N "(cached) $ECHO_C" >&6
10029else
10030  cat >conftest.$ac_ext <<_ACEOF
10031/* confdefs.h.  */
10032_ACEOF
10033cat confdefs.h >>conftest.$ac_ext
10034cat >>conftest.$ac_ext <<_ACEOF
10035/* end confdefs.h.  */
10036/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10037   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10038#define dlopen innocuous_dlopen
10039
10040/* System header to define __stub macros and hopefully few prototypes,
10041    which can conflict with char dlopen (); below.
10042    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10043    <limits.h> exists even on freestanding compilers.  */
10044
10045#ifdef __STDC__
10046# include <limits.h>
10047#else
10048# include <assert.h>
10049#endif
10050
10051#undef dlopen
10052
10053/* Override any gcc2 internal prototype to avoid an error.  */
10054#ifdef __cplusplus
10055extern "C"
10056{
10057#endif
10058/* We use char because int might match the return type of a gcc2
10059   builtin and then its argument prototype would still apply.  */
10060char dlopen ();
10061/* The GNU C library defines this for functions which it implements
10062    to always fail with ENOSYS.  Some functions are actually named
10063    something starting with __ and the normal name is an alias.  */
10064#if defined (__stub_dlopen) || defined (__stub___dlopen)
10065choke me
10066#else
10067char (*f) () = dlopen;
10068#endif
10069#ifdef __cplusplus
10070}
10071#endif
10072
10073int
10074main ()
10075{
10076return f != dlopen;
10077  ;
10078  return 0;
10079}
10080_ACEOF
10081rm -f conftest.$ac_objext conftest$ac_exeext
10082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10083  (eval $ac_link) 2>conftest.er1
10084  ac_status=$?
10085  grep -v '^ *+' conftest.er1 >conftest.err
10086  rm -f conftest.er1
10087  cat conftest.err >&5
10088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089  (exit $ac_status); } &&
10090         { ac_try='test -z "$ac_c_werror_flag"
10091                         || test ! -s conftest.err'
10092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093  (eval $ac_try) 2>&5
10094  ac_status=$?
10095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096  (exit $ac_status); }; } &&
10097         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10103  ac_cv_func_dlopen=yes
10104else
10105  echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
10108ac_cv_func_dlopen=no
10109fi
10110rm -f conftest.err conftest.$ac_objext \
10111      conftest$ac_exeext conftest.$ac_ext
10112fi
10113echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10114echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10115if test $ac_cv_func_dlopen = yes; then
10116  lt_cv_dlopen="dlopen"
10117else
10118  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10119echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10120if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10121  echo $ECHO_N "(cached) $ECHO_C" >&6
10122else
10123  ac_check_lib_save_LIBS=$LIBS
10124LIBS="-ldl  $LIBS"
10125cat >conftest.$ac_ext <<_ACEOF
10126/* confdefs.h.  */
10127_ACEOF
10128cat confdefs.h >>conftest.$ac_ext
10129cat >>conftest.$ac_ext <<_ACEOF
10130/* end confdefs.h.  */
10131
10132/* Override any gcc2 internal prototype to avoid an error.  */
10133#ifdef __cplusplus
10134extern "C"
10135#endif
10136/* We use char because int might match the return type of a gcc2
10137   builtin and then its argument prototype would still apply.  */
10138char dlopen ();
10139int
10140main ()
10141{
10142dlopen ();
10143  ;
10144  return 0;
10145}
10146_ACEOF
10147rm -f conftest.$ac_objext conftest$ac_exeext
10148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10149  (eval $ac_link) 2>conftest.er1
10150  ac_status=$?
10151  grep -v '^ *+' conftest.er1 >conftest.err
10152  rm -f conftest.er1
10153  cat conftest.err >&5
10154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155  (exit $ac_status); } &&
10156         { ac_try='test -z "$ac_c_werror_flag"
10157                         || test ! -s conftest.err'
10158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159  (eval $ac_try) 2>&5
10160  ac_status=$?
10161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162  (exit $ac_status); }; } &&
10163         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10169  ac_cv_lib_dl_dlopen=yes
10170else
10171  echo "$as_me: failed program was:" >&5
10172sed 's/^/| /' conftest.$ac_ext >&5
10173
10174ac_cv_lib_dl_dlopen=no
10175fi
10176rm -f conftest.err conftest.$ac_objext \
10177      conftest$ac_exeext conftest.$ac_ext
10178LIBS=$ac_check_lib_save_LIBS
10179fi
10180echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10181echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10182if test $ac_cv_lib_dl_dlopen = yes; then
10183  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10184else
10185  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10186echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10187if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10188  echo $ECHO_N "(cached) $ECHO_C" >&6
10189else
10190  ac_check_lib_save_LIBS=$LIBS
10191LIBS="-lsvld  $LIBS"
10192cat >conftest.$ac_ext <<_ACEOF
10193/* confdefs.h.  */
10194_ACEOF
10195cat confdefs.h >>conftest.$ac_ext
10196cat >>conftest.$ac_ext <<_ACEOF
10197/* end confdefs.h.  */
10198
10199/* Override any gcc2 internal prototype to avoid an error.  */
10200#ifdef __cplusplus
10201extern "C"
10202#endif
10203/* We use char because int might match the return type of a gcc2
10204   builtin and then its argument prototype would still apply.  */
10205char dlopen ();
10206int
10207main ()
10208{
10209dlopen ();
10210  ;
10211  return 0;
10212}
10213_ACEOF
10214rm -f conftest.$ac_objext conftest$ac_exeext
10215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10216  (eval $ac_link) 2>conftest.er1
10217  ac_status=$?
10218  grep -v '^ *+' conftest.er1 >conftest.err
10219  rm -f conftest.er1
10220  cat conftest.err >&5
10221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222  (exit $ac_status); } &&
10223         { ac_try='test -z "$ac_c_werror_flag"
10224                         || test ! -s conftest.err'
10225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226  (eval $ac_try) 2>&5
10227  ac_status=$?
10228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229  (exit $ac_status); }; } &&
10230         { ac_try='test -s conftest$ac_exeext'
10231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232  (eval $ac_try) 2>&5
10233  ac_status=$?
10234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235  (exit $ac_status); }; }; then
10236  ac_cv_lib_svld_dlopen=yes
10237else
10238  echo "$as_me: failed program was:" >&5
10239sed 's/^/| /' conftest.$ac_ext >&5
10240
10241ac_cv_lib_svld_dlopen=no
10242fi
10243rm -f conftest.err conftest.$ac_objext \
10244      conftest$ac_exeext conftest.$ac_ext
10245LIBS=$ac_check_lib_save_LIBS
10246fi
10247echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10248echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10249if test $ac_cv_lib_svld_dlopen = yes; then
10250  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10251else
10252  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10253echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10254if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10255  echo $ECHO_N "(cached) $ECHO_C" >&6
10256else
10257  ac_check_lib_save_LIBS=$LIBS
10258LIBS="-ldld  $LIBS"
10259cat >conftest.$ac_ext <<_ACEOF
10260/* confdefs.h.  */
10261_ACEOF
10262cat confdefs.h >>conftest.$ac_ext
10263cat >>conftest.$ac_ext <<_ACEOF
10264/* end confdefs.h.  */
10265
10266/* Override any gcc2 internal prototype to avoid an error.  */
10267#ifdef __cplusplus
10268extern "C"
10269#endif
10270/* We use char because int might match the return type of a gcc2
10271   builtin and then its argument prototype would still apply.  */
10272char dld_link ();
10273int
10274main ()
10275{
10276dld_link ();
10277  ;
10278  return 0;
10279}
10280_ACEOF
10281rm -f conftest.$ac_objext conftest$ac_exeext
10282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283  (eval $ac_link) 2>conftest.er1
10284  ac_status=$?
10285  grep -v '^ *+' conftest.er1 >conftest.err
10286  rm -f conftest.er1
10287  cat conftest.err >&5
10288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289  (exit $ac_status); } &&
10290         { ac_try='test -z "$ac_c_werror_flag"
10291                         || test ! -s conftest.err'
10292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293  (eval $ac_try) 2>&5
10294  ac_status=$?
10295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296  (exit $ac_status); }; } &&
10297         { ac_try='test -s conftest$ac_exeext'
10298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299  (eval $ac_try) 2>&5
10300  ac_status=$?
10301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302  (exit $ac_status); }; }; then
10303  ac_cv_lib_dld_dld_link=yes
10304else
10305  echo "$as_me: failed program was:" >&5
10306sed 's/^/| /' conftest.$ac_ext >&5
10307
10308ac_cv_lib_dld_dld_link=no
10309fi
10310rm -f conftest.err conftest.$ac_objext \
10311      conftest$ac_exeext conftest.$ac_ext
10312LIBS=$ac_check_lib_save_LIBS
10313fi
10314echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10315echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10316if test $ac_cv_lib_dld_dld_link = yes; then
10317  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10318fi
10319
10320
10321fi
10322
10323
10324fi
10325
10326
10327fi
10328
10329
10330fi
10331
10332
10333fi
10334
10335    ;;
10336  esac
10337
10338  if test "x$lt_cv_dlopen" != xno; then
10339    enable_dlopen=yes
10340  else
10341    enable_dlopen=no
10342  fi
10343
10344  case $lt_cv_dlopen in
10345  dlopen)
10346    save_CPPFLAGS="$CPPFLAGS"
10347    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10348
10349    save_LDFLAGS="$LDFLAGS"
10350    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10351
10352    save_LIBS="$LIBS"
10353    LIBS="$lt_cv_dlopen_libs $LIBS"
10354
10355    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10356echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10357if test "${lt_cv_dlopen_self+set}" = set; then
10358  echo $ECHO_N "(cached) $ECHO_C" >&6
10359else
10360          if test "$cross_compiling" = yes; then :
10361  lt_cv_dlopen_self=cross
10362else
10363  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10364  lt_status=$lt_dlunknown
10365  cat > conftest.$ac_ext <<EOF
10366#line 10366 "configure"
10367#include "confdefs.h"
10368
10369#if HAVE_DLFCN_H
10370#include <dlfcn.h>
10371#endif
10372
10373#include <stdio.h>
10374
10375#ifdef RTLD_GLOBAL
10376#  define LT_DLGLOBAL           RTLD_GLOBAL
10377#else
10378#  ifdef DL_GLOBAL
10379#    define LT_DLGLOBAL         DL_GLOBAL
10380#  else
10381#    define LT_DLGLOBAL         0
10382#  endif
10383#endif
10384
10385/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10386   find out it does not work in some platform. */
10387#ifndef LT_DLLAZY_OR_NOW
10388#  ifdef RTLD_LAZY
10389#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10390#  else
10391#    ifdef DL_LAZY
10392#      define LT_DLLAZY_OR_NOW          DL_LAZY
10393#    else
10394#      ifdef RTLD_NOW
10395#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10396#      else
10397#        ifdef DL_NOW
10398#          define LT_DLLAZY_OR_NOW      DL_NOW
10399#        else
10400#          define LT_DLLAZY_OR_NOW      0
10401#        endif
10402#      endif
10403#    endif
10404#  endif
10405#endif
10406
10407#ifdef __cplusplus
10408extern "C" void exit (int);
10409#endif
10410
10411void fnord() { int i=42;}
10412int main ()
10413{
10414  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10415  int status = $lt_dlunknown;
10416
10417  if (self)
10418    {
10419      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10420      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10421      /* dlclose (self); */
10422    }
10423  else
10424    puts (dlerror ());
10425
10426    exit (status);
10427}
10428EOF
10429  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10430  (eval $ac_link) 2>&5
10431  ac_status=$?
10432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10434    (./conftest; exit; ) >&5 2>/dev/null
10435    lt_status=$?
10436    case x$lt_status in
10437      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10438      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10439      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10440    esac
10441  else :
10442    # compilation failed
10443    lt_cv_dlopen_self=no
10444  fi
10445fi
10446rm -fr conftest*
10447
10448
10449fi
10450echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10451echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10452
10453    if test "x$lt_cv_dlopen_self" = xyes; then
10454      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10455      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10456echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10457if test "${lt_cv_dlopen_self_static+set}" = set; then
10458  echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460          if test "$cross_compiling" = yes; then :
10461  lt_cv_dlopen_self_static=cross
10462else
10463  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10464  lt_status=$lt_dlunknown
10465  cat > conftest.$ac_ext <<EOF
10466#line 10466 "configure"
10467#include "confdefs.h"
10468
10469#if HAVE_DLFCN_H
10470#include <dlfcn.h>
10471#endif
10472
10473#include <stdio.h>
10474
10475#ifdef RTLD_GLOBAL
10476#  define LT_DLGLOBAL           RTLD_GLOBAL
10477#else
10478#  ifdef DL_GLOBAL
10479#    define LT_DLGLOBAL         DL_GLOBAL
10480#  else
10481#    define LT_DLGLOBAL         0
10482#  endif
10483#endif
10484
10485/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10486   find out it does not work in some platform. */
10487#ifndef LT_DLLAZY_OR_NOW
10488#  ifdef RTLD_LAZY
10489#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10490#  else
10491#    ifdef DL_LAZY
10492#      define LT_DLLAZY_OR_NOW          DL_LAZY
10493#    else
10494#      ifdef RTLD_NOW
10495#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10496#      else
10497#        ifdef DL_NOW
10498#          define LT_DLLAZY_OR_NOW      DL_NOW
10499#        else
10500#          define LT_DLLAZY_OR_NOW      0
10501#        endif
10502#      endif
10503#    endif
10504#  endif
10505#endif
10506
10507#ifdef __cplusplus
10508extern "C" void exit (int);
10509#endif
10510
10511void fnord() { int i=42;}
10512int main ()
10513{
10514  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10515  int status = $lt_dlunknown;
10516
10517  if (self)
10518    {
10519      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10520      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10521      /* dlclose (self); */
10522    }
10523  else
10524    puts (dlerror ());
10525
10526    exit (status);
10527}
10528EOF
10529  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530  (eval $ac_link) 2>&5
10531  ac_status=$?
10532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10534    (./conftest; exit; ) >&5 2>/dev/null
10535    lt_status=$?
10536    case x$lt_status in
10537      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10538      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10539      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10540    esac
10541  else :
10542    # compilation failed
10543    lt_cv_dlopen_self_static=no
10544  fi
10545fi
10546rm -fr conftest*
10547
10548
10549fi
10550echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10551echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10552    fi
10553
10554    CPPFLAGS="$save_CPPFLAGS"
10555    LDFLAGS="$save_LDFLAGS"
10556    LIBS="$save_LIBS"
10557    ;;
10558  esac
10559
10560  case $lt_cv_dlopen_self in
10561  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10562  *) enable_dlopen_self=unknown ;;
10563  esac
10564
10565  case $lt_cv_dlopen_self_static in
10566  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10567  *) enable_dlopen_self_static=unknown ;;
10568  esac
10569fi
10570
10571
10572# Report which library types will actually be built
10573echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10574echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10575echo "$as_me:$LINENO: result: $can_build_shared" >&5
10576echo "${ECHO_T}$can_build_shared" >&6
10577
10578echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10579echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10580test "$can_build_shared" = "no" && enable_shared=no
10581
10582# On AIX, shared libraries and static libraries use the same namespace, and
10583# are all built from PIC.
10584case $host_os in
10585aix3*)
10586  test "$enable_shared" = yes && enable_static=no
10587  if test -n "$RANLIB"; then
10588    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10589    postinstall_cmds='$RANLIB $lib'
10590  fi
10591  ;;
10592
10593aix4* | aix5*)
10594  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10595    test "$enable_shared" = yes && enable_static=no
10596  fi
10597    ;;
10598esac
10599echo "$as_me:$LINENO: result: $enable_shared" >&5
10600echo "${ECHO_T}$enable_shared" >&6
10601
10602echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10603echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10604# Make sure either enable_shared or enable_static is yes.
10605test "$enable_shared" = yes || enable_static=yes
10606echo "$as_me:$LINENO: result: $enable_static" >&5
10607echo "${ECHO_T}$enable_static" >&6
10608
10609# The else clause should only fire when bootstrapping the
10610# libtool distribution, otherwise you forgot to ship ltmain.sh
10611# with your package, and you will get complaints that there are
10612# no rules to generate ltmain.sh.
10613if test -f "$ltmain"; then
10614  # See if we are running on zsh, and set the options which allow our commands through
10615  # without removal of \ escapes.
10616  if test -n "${ZSH_VERSION+set}" ; then
10617    setopt NO_GLOB_SUBST
10618  fi
10619  # Now quote all the things that may contain metacharacters while being
10620  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10621  # variables and quote the copies for generation of the libtool script.
10622  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10623    SED SHELL STRIP \
10624    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10625    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10626    deplibs_check_method reload_flag reload_cmds need_locks \
10627    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10628    lt_cv_sys_global_symbol_to_c_name_address \
10629    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10630    old_postinstall_cmds old_postuninstall_cmds \
10631    compiler \
10632    CC \
10633    LD \
10634    lt_prog_compiler_wl \
10635    lt_prog_compiler_pic \
10636    lt_prog_compiler_static \
10637    lt_prog_compiler_no_builtin_flag \
10638    export_dynamic_flag_spec \
10639    thread_safe_flag_spec \
10640    whole_archive_flag_spec \
10641    enable_shared_with_static_runtimes \
10642    old_archive_cmds \
10643    old_archive_from_new_cmds \
10644    predep_objects \
10645    postdep_objects \
10646    predeps \
10647    postdeps \
10648    compiler_lib_search_path \
10649    archive_cmds \
10650    archive_expsym_cmds \
10651    postinstall_cmds \
10652    postuninstall_cmds \
10653    old_archive_from_expsyms_cmds \
10654    allow_undefined_flag \
10655    no_undefined_flag \
10656    export_symbols_cmds \
10657    hardcode_libdir_flag_spec \
10658    hardcode_libdir_flag_spec_ld \
10659    hardcode_libdir_separator \
10660    hardcode_automatic \
10661    module_cmds \
10662    module_expsym_cmds \
10663    lt_cv_prog_compiler_c_o \
10664    exclude_expsyms \
10665    include_expsyms; do
10666
10667    case $var in
10668    old_archive_cmds | \
10669    old_archive_from_new_cmds | \
10670    archive_cmds | \
10671    archive_expsym_cmds | \
10672    module_cmds | \
10673    module_expsym_cmds | \
10674    old_archive_from_expsyms_cmds | \
10675    export_symbols_cmds | \
10676    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10677    postinstall_cmds | postuninstall_cmds | \
10678    old_postinstall_cmds | old_postuninstall_cmds | \
10679    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10680      # Double-quote double-evaled strings.
10681      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10682      ;;
10683    *)
10684      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10685      ;;
10686    esac
10687  done
10688
10689  case $lt_echo in
10690  *'\$0 --fallback-echo"')
10691    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10692    ;;
10693  esac
10694
10695cfgfile="${ofile}T"
10696  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10697  $rm -f "$cfgfile"
10698  { echo "$as_me:$LINENO: creating $ofile" >&5
10699echo "$as_me: creating $ofile" >&6;}
10700
10701  cat <<__EOF__ >> "$cfgfile"
10702#! $SHELL
10703
10704# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10705# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10706# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10707#
10708# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10709# Free Software Foundation, Inc.
10710#
10711# This file is part of GNU Libtool:
10712# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10713#
10714# This program is free software; you can redistribute it and/or modify
10715# it under the terms of the GNU General Public License as published by
10716# the Free Software Foundation; either version 2 of the License, or
10717# (at your option) any later version.
10718#
10719# This program is distributed in the hope that it will be useful, but
10720# WITHOUT ANY WARRANTY; without even the implied warranty of
10721# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10722# General Public License for more details.
10723#
10724# You should have received a copy of the GNU General Public License
10725# along with this program; if not, write to the Free Software
10726# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10727#
10728# As a special exception to the GNU General Public License, if you
10729# distribute this file as part of a program that contains a
10730# configuration script generated by Autoconf, you may include it under
10731# the same distribution terms that you use for the rest of that program.
10732
10733# A sed program that does not truncate output.
10734SED=$lt_SED
10735
10736# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10737Xsed="$SED -e 1s/^X//"
10738
10739# The HP-UX ksh and POSIX shell print the target directory to stdout
10740# if CDPATH is set.
10741(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10742
10743# The names of the tagged configurations supported by this script.
10744available_tags=
10745
10746# ### BEGIN LIBTOOL CONFIG
10747
10748# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10749
10750# Shell to use when invoking shell scripts.
10751SHELL=$lt_SHELL
10752
10753# Whether or not to build shared libraries.
10754build_libtool_libs=$enable_shared
10755
10756# Whether or not to build static libraries.
10757build_old_libs=$enable_static
10758
10759# Whether or not to add -lc for building shared libraries.
10760build_libtool_need_lc=$archive_cmds_need_lc
10761
10762# Whether or not to disallow shared libs when runtime libs are static