source: ThirdParty/Glpk/trunk/configure @ 2297

Last change on this file since 2297 was 2297, checked in by stefan, 8 years ago

rerun autotools

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