source: ThirdParty/Glpk/trunk/configure @ 3758

Last change on this file since 3758 was 3758, checked in by lou, 3 years ago

Incorporate BuildTools changeset 3701 (remove -pedantic-errors).

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