source: ThirdParty/Glpk/trunk/configure @ 3059

Last change on this file since 3059 was 3059, checked in by stefan, 6 years ago

add missing Glpk argument to AC_COIN_CHECK_LIBM (see #105:9)

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