source: ThirdParty/Glpk/releases/1.9.2/configure @ 2978

Last change on this file since 2978 was 2978, checked in by tkr, 7 years ago

Re-running the autotools

File size: 767.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyGlpk 1.9.2.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2010 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyGlpk'
431PACKAGE_TARNAME='thirdpartyglpk'
432PACKAGE_VERSION='1.9.2'
433PACKAGE_STRING='ThirdPartyGlpk 1.9.2'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="glpk/src/glpk.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion GLPK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS glpkmajorver glpkminorver GLPKDIR GLPK_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyGlpk 1.9.2 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyGlpk 1.9.2:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-glpk compile project Glpk with debug compiler flags
1064
1065  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1066  --disable-pkg-config    disable use of pkg-config (if available)
1067  --enable-static[=PKGS]
1068                          build static libraries [default=no]
1069  --disable-dependency-tracking  speeds up one-time build
1070  --enable-dependency-tracking   do not reject slow dependency extractors
1071  --enable-maintainer-mode  enable make rules and dependencies not useful
1072                          (and sometimes confusing) to the casual installer
1073  --enable-shared[=PKGS]
1074                          build shared libraries [default=yes]
1075  --enable-fast-install[=PKGS]
1076                          optimize for fast installation [default=yes]
1077  --disable-libtool-lock  avoid locking (might break parallel builds)
1078  --disable-gmp           do not compile with GNU multiple precision library
1079  --enable-odbc           enable MathProg ODBC support [default=auto]
1080  --enable-mysql          enable MathProg MySQL support [default=auto]
1081
1082Optional Packages:
1083  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1084  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1085  --with-glpk-verbosity specify the debug verbosity level for project Glpk
1086  --with-glpk-checklevel specify the sanity check level for project Glpk
1087  --with-coin-instdir     prefix of installation directory for precompiled
1088                          COIN packages
1089  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1090  --with-pic              try to use only PIC/non-PIC objects [default=use
1091                          both]
1092  --with-tags[=TAGS]
1093                          include additional configurations [automatic]
1094
1095Some influential environment variables:
1096  CDEFS       Additional -D flags to be used when compiling C code.
1097  ADD_CFLAGS  Additional C compiler options
1098  DBG_CFLAGS  Debug C compiler options
1099  OPT_CFLAGS  Optimize C compiler options
1100  CC          C compiler command
1101  CFLAGS      C compiler flags
1102  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1103              nonstandard directory <lib dir>
1104  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105              headers in a nonstandard directory <include dir>
1106  MPICC       C MPI Compiler
1107  PKG_CONFIG  path to pkg-config utility
1108  CPP         C preprocessor
1109  CXX         C++ compiler command
1110  CXXFLAGS    C++ compiler flags
1111  CXXCPP      C++ preprocessor
1112  F77         Fortran 77 compiler command
1113  FFLAGS      Fortran 77 compiler flags
1114
1115Use these variables to override the choices made by `configure' or to help
1116it to find libraries and programs with nonstandard names/locations.
1117
1118Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1119_ACEOF
1120fi
1121
1122if test "$ac_init_help" = "recursive"; then
1123  # If there are subdirs, report their specific --help.
1124  ac_popdir=`pwd`
1125  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1126    test -d $ac_dir || continue
1127    ac_builddir=.
1128
1129if test "$ac_dir" != .; then
1130  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1131  # A "../" for each directory in $ac_dir_suffix.
1132  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1133else
1134  ac_dir_suffix= ac_top_builddir=
1135fi
1136
1137case $srcdir in
1138  .)  # No --srcdir option.  We are building in place.
1139    ac_srcdir=.
1140    if test -z "$ac_top_builddir"; then
1141       ac_top_srcdir=.
1142    else
1143       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1144    fi ;;
1145  [\\/]* | ?:[\\/]* )  # Absolute path.
1146    ac_srcdir=$srcdir$ac_dir_suffix;
1147    ac_top_srcdir=$srcdir ;;
1148  *) # Relative path.
1149    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1150    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1151esac
1152
1153# Do not use `cd foo && pwd` to compute absolute paths, because
1154# the directories may not exist.
1155case `pwd` in
1156.) ac_abs_builddir="$ac_dir";;
1157*)
1158  case "$ac_dir" in
1159  .) ac_abs_builddir=`pwd`;;
1160  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1161  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1162  esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_builddir=${ac_top_builddir}.;;
1166*)
1167  case ${ac_top_builddir}. in
1168  .) ac_abs_top_builddir=$ac_abs_builddir;;
1169  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1170  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1171  esac;;
1172esac
1173case $ac_abs_builddir in
1174.) ac_abs_srcdir=$ac_srcdir;;
1175*)
1176  case $ac_srcdir in
1177  .) ac_abs_srcdir=$ac_abs_builddir;;
1178  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1179  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1180  esac;;
1181esac
1182case $ac_abs_builddir in
1183.) ac_abs_top_srcdir=$ac_top_srcdir;;
1184*)
1185  case $ac_top_srcdir in
1186  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1187  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1188  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1189  esac;;
1190esac
1191
1192    cd $ac_dir
1193    # Check for guested configure; otherwise get Cygnus style configure.
1194    if test -f $ac_srcdir/configure.gnu; then
1195      echo
1196      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1197    elif test -f $ac_srcdir/configure; then
1198      echo
1199      $SHELL $ac_srcdir/configure  --help=recursive
1200    elif test -f $ac_srcdir/configure.ac ||
1201           test -f $ac_srcdir/configure.in; then
1202      echo
1203      $ac_configure --help
1204    else
1205      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1206    fi
1207    cd $ac_popdir
1208  done
1209fi
1210
1211test -n "$ac_init_help" && exit 0
1212if $ac_init_version; then
1213  cat <<\_ACEOF
1214ThirdPartyGlpk configure 1.9.2
1215generated by GNU Autoconf 2.59
1216
1217Copyright (C) 2003 Free Software Foundation, Inc.
1218This configure script is free software; the Free Software Foundation
1219gives unlimited permission to copy, distribute and modify it.
1220
1221
1222Copyright 2007-2010 Stefan Vigerske and others.
1223All Rights Reserved.
1224This file is part of the open source package Coin which is distributed
1225under the Eclipse Public License.
1226_ACEOF
1227  exit 0
1228fi
1229exec 5>config.log
1230cat >&5 <<_ACEOF
1231This file contains any messages produced by compilers while
1232running configure, to aid debugging if configure makes a mistake.
1233
1234It was created by ThirdPartyGlpk $as_me 1.9.2, which was
1235generated by GNU Autoconf 2.59.  Invocation command line was
1236
1237  $ $0 $@
1238
1239_ACEOF
1240{
1241cat <<_ASUNAME
1242## --------- ##
1243## Platform. ##
1244## --------- ##
1245
1246hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1247uname -m = `(uname -m) 2>/dev/null || echo unknown`
1248uname -r = `(uname -r) 2>/dev/null || echo unknown`
1249uname -s = `(uname -s) 2>/dev/null || echo unknown`
1250uname -v = `(uname -v) 2>/dev/null || echo unknown`
1251
1252/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1253/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1254
1255/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1256/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1257/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1258hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1259/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1260/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1261/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1262
1263_ASUNAME
1264
1265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266for as_dir in $PATH
1267do
1268  IFS=$as_save_IFS
1269  test -z "$as_dir" && as_dir=.
1270  echo "PATH: $as_dir"
1271done
1272
1273} >&5
1274
1275cat >&5 <<_ACEOF
1276
1277
1278## ----------- ##
1279## Core tests. ##
1280## ----------- ##
1281
1282_ACEOF
1283
1284
1285# Keep a trace of the command line.
1286# Strip out --no-create and --no-recursion so they do not pile up.
1287# Strip out --silent because we don't want to record it for future runs.
1288# Also quote any args containing shell meta-characters.
1289# Make two passes to allow for proper duplicate-argument suppression.
1290ac_configure_args=
1291ac_configure_args0=
1292ac_configure_args1=
1293ac_sep=
1294ac_must_keep_next=false
1295for ac_pass in 1 2
1296do
1297  for ac_arg
1298  do
1299    case $ac_arg in
1300    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1301    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302    | -silent | --silent | --silen | --sile | --sil)
1303      continue ;;
1304    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1306    esac
1307    case $ac_pass in
1308    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1309    2)
1310      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1311      if test $ac_must_keep_next = true; then
1312        ac_must_keep_next=false # Got value, back to normal.
1313      else
1314        case $ac_arg in
1315          *=* | --config-cache | -C | -disable-* | --disable-* \
1316          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1317          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1318          | -with-* | --with-* | -without-* | --without-* | --x)
1319            case "$ac_configure_args0 " in
1320              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1321            esac
1322            ;;
1323          -* ) ac_must_keep_next=true ;;
1324        esac
1325      fi
1326      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1327      # Get rid of the leading space.
1328      ac_sep=" "
1329      ;;
1330    esac
1331  done
1332done
1333$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1334$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1335
1336# When interrupted or exit'd, cleanup temporary files, and complete
1337# config.log.  We remove comments because anyway the quotes in there
1338# would cause problems or look ugly.
1339# WARNING: Be sure not to use single quotes in there, as some shells,
1340# such as our DU 5.0 friend, will then `close' the trap.
1341trap 'exit_status=$?
1342  # Save into config.log some information that might help in debugging.
1343  {
1344    echo
1345
1346    cat <<\_ASBOX
1347## ---------------- ##
1348## Cache variables. ##
1349## ---------------- ##
1350_ASBOX
1351    echo
1352    # The following way of writing the cache mishandles newlines in values,
1353{
1354  (set) 2>&1 |
1355    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1356    *ac_space=\ *)
1357      sed -n \
1358        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1359          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1360      ;;
1361    *)
1362      sed -n \
1363        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1364      ;;
1365    esac;
1366}
1367    echo
1368
1369    cat <<\_ASBOX
1370## ----------------- ##
1371## Output variables. ##
1372## ----------------- ##
1373_ASBOX
1374    echo
1375    for ac_var in $ac_subst_vars
1376    do
1377      eval ac_val=$`echo $ac_var`
1378      echo "$ac_var='"'"'$ac_val'"'"'"
1379    done | sort
1380    echo
1381
1382    if test -n "$ac_subst_files"; then
1383      cat <<\_ASBOX
1384## ------------- ##
1385## Output files. ##
1386## ------------- ##
1387_ASBOX
1388      echo
1389      for ac_var in $ac_subst_files
1390      do
1391        eval ac_val=$`echo $ac_var`
1392        echo "$ac_var='"'"'$ac_val'"'"'"
1393      done | sort
1394      echo
1395    fi
1396
1397    if test -s confdefs.h; then
1398      cat <<\_ASBOX
1399## ----------- ##
1400## confdefs.h. ##
1401## ----------- ##
1402_ASBOX
1403      echo
1404      sed "/^$/d" confdefs.h | sort
1405      echo
1406    fi
1407    test "$ac_signal" != 0 &&
1408      echo "$as_me: caught signal $ac_signal"
1409    echo "$as_me: exit $exit_status"
1410  } >&5
1411  rm -f core *.core &&
1412  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1413    exit $exit_status
1414     ' 0
1415for ac_signal in 1 2 13 15; do
1416  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1417done
1418ac_signal=0
1419
1420# confdefs.h avoids OS command line length limits that DEFS can exceed.
1421rm -rf conftest* confdefs.h
1422# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1423echo >confdefs.h
1424
1425# Predefined preprocessor variables.
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_NAME "$PACKAGE_NAME"
1429_ACEOF
1430
1431
1432cat >>confdefs.h <<_ACEOF
1433#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1434_ACEOF
1435
1436
1437cat >>confdefs.h <<_ACEOF
1438#define PACKAGE_VERSION "$PACKAGE_VERSION"
1439_ACEOF
1440
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_STRING "$PACKAGE_STRING"
1444_ACEOF
1445
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1449_ACEOF
1450
1451
1452# Let the site file select an alternate cache file if it wants to.
1453# Prefer explicitly selected file to automatically selected ones.
1454if test -z "$CONFIG_SITE"; then
1455  if test "x$prefix" != xNONE; then
1456    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1457  else
1458    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459  fi
1460fi
1461for ac_site_file in $CONFIG_SITE; do
1462  if test -r "$ac_site_file"; then
1463    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1464echo "$as_me: loading site script $ac_site_file" >&6;}
1465    sed 's/^/| /' "$ac_site_file" >&5
1466    . "$ac_site_file"
1467  fi
1468done
1469
1470if test -r "$cache_file"; then
1471  # Some versions of bash will fail to source /dev/null (special
1472  # files actually), so we avoid doing that.
1473  if test -f "$cache_file"; then
1474    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1475echo "$as_me: loading cache $cache_file" >&6;}
1476    case $cache_file in
1477      [\\/]* | ?:[\\/]* ) . $cache_file;;
1478      *)                      . ./$cache_file;;
1479    esac
1480  fi
1481else
1482  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1483echo "$as_me: creating cache $cache_file" >&6;}
1484  >$cache_file
1485fi
1486
1487# Check that the precious variables saved in the cache have kept the same
1488# value.
1489ac_cache_corrupted=false
1490for ac_var in `(set) 2>&1 |
1491               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493  eval ac_new_set=\$ac_env_${ac_var}_set
1494  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495  eval ac_new_val="\$ac_env_${ac_var}_value"
1496  case $ac_old_set,$ac_new_set in
1497    set,)
1498      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500      ac_cache_corrupted=: ;;
1501    ,set)
1502      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504      ac_cache_corrupted=: ;;
1505    ,);;
1506    *)
1507      if test "x$ac_old_val" != "x$ac_new_val"; then
1508        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511echo "$as_me:   former value:  $ac_old_val" >&2;}
1512        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513echo "$as_me:   current value: $ac_new_val" >&2;}
1514        ac_cache_corrupted=:
1515      fi;;
1516  esac
1517  # Pass precious variables to config.status.
1518  if test "$ac_new_set" = set; then
1519    case $ac_new_val in
1520    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522    *) ac_arg=$ac_var=$ac_new_val ;;
1523    esac
1524    case " $ac_configure_args " in
1525      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527    esac
1528  fi
1529done
1530if $ac_cache_corrupted; then
1531  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535   { (exit 1); exit 1; }; }
1536fi
1537
1538ac_ext=c
1539ac_cpp='$CPP $CPPFLAGS'
1540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573# List one file in the package so that the configure script can test
1574# whether the package is actually there
1575
1576
1577# Where should everything be installed by default?  Here, we want it
1578# to be installed directly in 'bin', 'lib', 'include' subdirectories
1579# of the directory where configure is run.  The default would be
1580# /usr/local.
1581
1582
1583
1584# As backup, we make sure we don't loose an FLIBS if it has been set
1585# by the user
1586save_FLIBS="$FLIBS"
1587
1588# A useful makefile conditional that is always false
1589
1590
1591if false; then
1592  ALWAYS_FALSE_TRUE=
1593  ALWAYS_FALSE_FALSE='#'
1594else
1595  ALWAYS_FALSE_TRUE='#'
1596  ALWAYS_FALSE_FALSE=
1597fi
1598
1599
1600# We set the following variable so that we know later in AC_COIN_FINALIZE
1601# that we are in a project main directory
1602coin_projectdir=yes
1603
1604# Set the project's version numbers
1605
1606
1607cat >>confdefs.h <<_ACEOF
1608#define GLPK_VERSION "$PACKAGE_VERSION"
1609_ACEOF
1610
1611
1612  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1613  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1614  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1615  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1616  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1617  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1618
1619cat >>confdefs.h <<_ACEOF
1620#define GLPK_VERSION_MAJOR $coin_majorver
1621_ACEOF
1622
1623
1624cat >>confdefs.h <<_ACEOF
1625#define GLPK_VERSION_MINOR $coin_minorver
1626_ACEOF
1627
1628
1629cat >>confdefs.h <<_ACEOF
1630#define GLPK_VERSION_RELEASE $coin_releasever
1631_ACEOF
1632
1633
1634  # We use the following variable to have a string with the upper case
1635  # version of the project name
1636  COIN_PRJCT=GLPK
1637
1638  # Set the project's SVN revision number. The complicated sed expression
1639  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1640  # as a single number.
1641  # Extract the first word of "svnversion", so it can be a program name with args.
1642set dummy svnversion; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_have_svnversion+set}" = set; then
1646  echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648  if test -n "$have_svnversion"; then
1649  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654  IFS=$as_save_IFS
1655  test -z "$as_dir" && as_dir=.
1656  for ac_exec_ext in '' $ac_executable_extensions; do
1657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658    ac_cv_prog_have_svnversion="yes"
1659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660    break 2
1661  fi
1662done
1663done
1664
1665  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1666fi
1667fi
1668have_svnversion=$ac_cv_prog_have_svnversion
1669if test -n "$have_svnversion"; then
1670  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1671echo "${ECHO_T}$have_svnversion" >&6
1672else
1673  echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677  if test "x$have_svnversion" = xyes; then
1678
1679    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1680    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1681      GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1682
1683cat >>confdefs.h <<_ACEOF
1684#define GLPK_SVN_REV $GLPK_SVN_REV
1685_ACEOF
1686
1687    fi
1688  fi
1689
1690
1691
1692# Capture libtool library version, if given.
1693 coin_libversion=10:2:9
1694
1695
1696
1697
1698#############################################################################
1699#                         Standard build tool stuff                         #
1700#############################################################################
1701
1702# Get the system type
1703ac_aux_dir=
1704for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1705  if test -f $ac_dir/install-sh; then
1706    ac_aux_dir=$ac_dir
1707    ac_install_sh="$ac_aux_dir/install-sh -c"
1708    break
1709  elif test -f $ac_dir/install.sh; then
1710    ac_aux_dir=$ac_dir
1711    ac_install_sh="$ac_aux_dir/install.sh -c"
1712    break
1713  elif test -f $ac_dir/shtool; then
1714    ac_aux_dir=$ac_dir
1715    ac_install_sh="$ac_aux_dir/shtool install -c"
1716    break
1717  fi
1718done
1719if test -z "$ac_aux_dir"; then
1720  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1721echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1722   { (exit 1); exit 1; }; }
1723fi
1724ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1725ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1726ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1727
1728# Make sure we can run config.sub.
1729$ac_config_sub sun4 >/dev/null 2>&1 ||
1730  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1731echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1732   { (exit 1); exit 1; }; }
1733
1734echo "$as_me:$LINENO: checking build system type" >&5
1735echo $ECHO_N "checking build system type... $ECHO_C" >&6
1736if test "${ac_cv_build+set}" = set; then
1737  echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739  ac_cv_build_alias=$build_alias
1740test -z "$ac_cv_build_alias" &&
1741  ac_cv_build_alias=`$ac_config_guess`
1742test -z "$ac_cv_build_alias" &&
1743  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1744echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1745   { (exit 1); exit 1; }; }
1746ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1747  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1748echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1749   { (exit 1); exit 1; }; }
1750
1751fi
1752echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1753echo "${ECHO_T}$ac_cv_build" >&6
1754build=$ac_cv_build
1755build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1756build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1757build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1758
1759
1760
1761#turn off warnings and pedantic mode since it seem to make trouble on solaris platform
1762#and we couldn't fix it anyway
1763coin_skip_warn_cflags=yes
1764
1765# Check if user wants to produce debugging code
1766
1767echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1768echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1769
1770# Check whether --enable-debug or --disable-debug was given.
1771if test "${enable_debug+set}" = set; then
1772  enableval="$enable_debug"
1773  case "${enableval}" in
1774   yes) coin_debug_compile=true
1775        if test "${enable_shared+set}" = set; then :; else
1776          enable_shared=no
1777        fi
1778        ;;
1779   no)  coin_debug_compile=false
1780        ;;
1781   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1782echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1783   { (exit 1); exit 1; }; }
1784        ;;
1785esac
1786else
1787  coin_debug_compile=false
1788fi;
1789
1790# Check whether --enable-debug-glpk or --disable-debug-glpk was given.
1791if test "${enable_debug_glpk+set}" = set; then
1792  enableval="$enable_debug_glpk"
1793  case "${enableval}" in
1794    yes) coin_debug_compile=true
1795         ;;
1796    no)  coin_debug_compile=false
1797         ;;
1798    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&5
1799echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;}
1800   { (exit 1); exit 1; }; }
1801         ;;
1802 esac
1803else
1804  :
1805fi;
1806
1807 # m4_ifvaln([Glpk],
1808
1809if test $coin_debug_compile = true; then
1810  echo "$as_me:$LINENO: result: yes" >&5
1811echo "${ECHO_T}yes" >&6
1812else
1813  echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
1815fi
1816
1817
1818# Check whether --with-glpk-verbosity or --without-glpk-verbosity was given.
1819if test "${with_glpk_verbosity+set}" = set; then
1820  withval="$with_glpk_verbosity"
1821  if test "$withval" = yes; then
1822                withval=1
1823              fi
1824              coin_glpk_verbosity=$withval
1825else
1826  coin_glpk_verbosity=0
1827fi;
1828
1829cat >>confdefs.h <<_ACEOF
1830#define COIN_GLPK_VERBOSITY $coin_glpk_verbosity
1831_ACEOF
1832
1833
1834
1835# Check whether --with-glpk-checklevel or --without-glpk-checklevel was given.
1836if test "${with_glpk_checklevel+set}" = set; then
1837  withval="$with_glpk_checklevel"
1838  if test "$withval" = yes; then
1839                withval=1
1840              fi
1841              coin_glpk_checklevel=$withval
1842else
1843  coin_glpk_checklevel=0
1844fi;
1845
1846cat >>confdefs.h <<_ACEOF
1847#define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel
1848_ACEOF
1849
1850
1851 # m4_ifvaln([Glpk],
1852
1853
1854
1855# Get the name of the C compiler
1856
1857
1858  # for backward compatibility
1859  # Check whether --enable-doscompile or --disable-doscompile was given.
1860if test "${enable_doscompile+set}" = set; then
1861  enableval="$enable_doscompile"
1862  enable_doscompile=$enableval
1863else
1864  enable_doscompile=no
1865fi;
1866
1867  # Check whether --enable-msvc or --disable-msvc was given.
1868if test "${enable_msvc+set}" = set; then
1869  enableval="$enable_msvc"
1870  enable_msvc=$enableval
1871else
1872  enable_msvc=no
1873     if test "$enable_doscompile" = msvc ; then
1874       enable_msvc=yes
1875     elif test "$enable_doscompile" != no ; then
1876       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1877echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1878   { (exit 1); exit 1; }; }
1879     fi
1880
1881fi;
1882
1883  if test "$enable_msvc" = yes; then
1884    case $build in
1885      *-cygwin* | *-mingw*) ;;
1886      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1887echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1888   { (exit 1); exit 1; }; } ;;
1889    esac
1890  fi
1891
1892
1893 case $build in
1894  *-mingw*)
1895    if test "${LD+set}" = set; then :; else
1896      LD=link
1897    fi
1898    ;;
1899 esac
1900 if test $enable_msvc = yes ; then
1901   if test "x${LD+set}" = xset; then :; else
1902     LD=link
1903   fi
1904 fi
1905
1906
1907
1908
1909ac_ext=c
1910ac_cpp='$CPP $CPPFLAGS'
1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914
1915
1916# For consistency, we set the C compiler to the same value of the C++
1917# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1918if test x"$CXX" != x; then
1919  case "$CXX" in
1920    clang* ) ;;
1921    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1922      if test x"$CC" = x; then
1923        CC="$CXX"
1924        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1925echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1926      fi
1927      ;;
1928  esac
1929fi
1930
1931
1932
1933
1934
1935
1936coin_has_cc=yes
1937
1938save_cflags="$CFLAGS"
1939
1940# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1941# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1942# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1943# compiler. In this case, put cc after gcc.
1944
1945case $build in
1946  *-cygwin* | *-mingw*)
1947             if test "$enable_msvc" = yes ; then
1948               comps="icl cl gcc"
1949             else
1950               comps="gcc icl cl"
1951             fi ;;
1952  *-*-solaris*)
1953             # Extract the first word of "cc", so it can be a program name with args.
1954set dummy cc; ac_word=$2
1955echo "$as_me:$LINENO: checking for $ac_word" >&5
1956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1958  echo $ECHO_N "(cached) $ECHO_C" >&6
1959else
1960  if test -n "$sol_cc_compiler"; then
1961  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1962else
1963  ac_prog_rejected=no
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967  IFS=$as_save_IFS
1968  test -z "$as_dir" && as_dir=.
1969  for ac_exec_ext in '' $ac_executable_extensions; do
1970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1972       ac_prog_rejected=yes
1973       continue
1974     fi
1975    ac_cv_prog_sol_cc_compiler="cc"
1976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977    break 2
1978  fi
1979done
1980done
1981
1982if test $ac_prog_rejected = yes; then
1983  # We found a bogon in the path, so make sure we never use it.
1984  set dummy $ac_cv_prog_sol_cc_compiler
1985  shift
1986  if test $# != 0; then
1987    # We chose a different compiler from the bogus one.
1988    # However, it has the same basename, so the bogon will be chosen
1989    # first if we set sol_cc_compiler to just the basename; use the full file name.
1990    shift
1991    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1992  fi
1993fi
1994fi
1995fi
1996sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1997if test -n "$sol_cc_compiler"; then
1998  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1999echo "${ECHO_T}$sol_cc_compiler" >&6
2000else
2001  echo "$as_me:$LINENO: result: no" >&5
2002echo "${ECHO_T}no" >&6
2003fi
2004
2005             if test "$sol_cc_compiler" = "cc" ; then
2006               comps="cc xlc gcc pgcc icc"
2007             else
2008               comps="xlc gcc pgcc icc cc"
2009             fi
2010             ;;
2011  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2012  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2013  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2014esac
2015
2016# We delete the cached value, since the test might not have been
2017# performed with our choice of compilers earlier
2018$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2019# AC_MSG_NOTICE([C compiler candidates: $comps])
2020ac_ext=c
2021ac_cpp='$CPP $CPPFLAGS'
2022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025if test -n "$ac_tool_prefix"; then
2026  for ac_prog in $comps
2027  do
2028    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2029set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2030echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032if test "${ac_cv_prog_CC+set}" = set; then
2033  echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035  if test -n "$CC"; then
2036  ac_cv_prog_CC="$CC" # Let the user override the test.
2037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041  IFS=$as_save_IFS
2042  test -z "$as_dir" && as_dir=.
2043  for ac_exec_ext in '' $ac_executable_extensions; do
2044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047    break 2
2048  fi
2049done
2050done
2051
2052fi
2053fi
2054CC=$ac_cv_prog_CC
2055if test -n "$CC"; then
2056  echo "$as_me:$LINENO: result: $CC" >&5
2057echo "${ECHO_T}$CC" >&6
2058else
2059  echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6
2061fi
2062
2063    test -n "$CC" && break
2064  done
2065fi
2066if test -z "$CC"; then
2067  ac_ct_CC=$CC
2068  for ac_prog in $comps
2069do
2070  # Extract the first word of "$ac_prog", so it can be a program name with args.
2071set dummy $ac_prog; ac_word=$2
2072echo "$as_me:$LINENO: checking for $ac_word" >&5
2073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2075  echo $ECHO_N "(cached) $ECHO_C" >&6
2076else
2077  if test -n "$ac_ct_CC"; then
2078  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2079else
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083  IFS=$as_save_IFS
2084  test -z "$as_dir" && as_dir=.
2085  for ac_exec_ext in '' $ac_executable_extensions; do
2086  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087    ac_cv_prog_ac_ct_CC="$ac_prog"
2088    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089    break 2
2090  fi
2091done
2092done
2093
2094fi
2095fi
2096ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097if test -n "$ac_ct_CC"; then
2098  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099echo "${ECHO_T}$ac_ct_CC" >&6
2100else
2101  echo "$as_me:$LINENO: result: no" >&5
2102echo "${ECHO_T}no" >&6
2103fi
2104
2105  test -n "$ac_ct_CC" && break
2106done
2107
2108  CC=$ac_ct_CC
2109fi
2110
2111
2112test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2113See \`config.log' for more details." >&5
2114echo "$as_me: error: no acceptable C compiler found in \$PATH
2115See \`config.log' for more details." >&2;}
2116   { (exit 1); exit 1; }; }
2117
2118# Provide some information about the compiler.
2119echo "$as_me:$LINENO:" \
2120     "checking for C compiler version" >&5
2121ac_compiler=`set X $ac_compile; echo $2`
2122{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2123  (eval $ac_compiler --version </dev/null >&5) 2>&5
2124  ac_status=$?
2125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126  (exit $ac_status); }
2127{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2128  (eval $ac_compiler -v </dev/null >&5) 2>&5
2129  ac_status=$?
2130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131  (exit $ac_status); }
2132{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2133  (eval $ac_compiler -V </dev/null >&5) 2>&5
2134  ac_status=$?
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); }
2137
2138cat >conftest.$ac_ext <<_ACEOF
2139/* confdefs.h.  */
2140_ACEOF
2141cat confdefs.h >>conftest.$ac_ext
2142cat >>conftest.$ac_ext <<_ACEOF
2143/* end confdefs.h.  */
2144
2145int
2146main ()
2147{
2148
2149  ;
2150  return 0;
2151}
2152_ACEOF
2153ac_clean_files_save=$ac_clean_files
2154ac_clean_files="$ac_clean_files a.out a.exe b.out"
2155# Try to create an executable without -o first, disregard a.out.
2156# It will help us diagnose broken compilers, and finding out an intuition
2157# of exeext.
2158echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2159echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2160ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2161if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2162  (eval $ac_link_default) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; then
2166  # Find the output, starting from the most likely.  This scheme is
2167# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2168# resort.
2169
2170# Be careful to initialize this variable, since it used to be cached.
2171# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2172ac_cv_exeext=
2173# b.out is created by i960 compilers.
2174for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2175do
2176  test -f "$ac_file" || continue
2177  case $ac_file in
2178    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2179        ;;
2180    conftest.$ac_ext )
2181        # This is the source file.
2182        ;;
2183    [ab].out )
2184        # We found the default executable, but exeext='' is most
2185        # certainly right.
2186        break;;
2187    *.* )
2188        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189        # FIXME: I believe we export ac_cv_exeext for Libtool,
2190        # but it would be cool to find out if it's true.  Does anybody
2191        # maintain Libtool? --akim.
2192        export ac_cv_exeext
2193        break;;
2194    * )
2195        break;;
2196  esac
2197done
2198else
2199  echo "$as_me: failed program was:" >&5
2200sed 's/^/| /' conftest.$ac_ext >&5
2201
2202{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: C compiler cannot create executables
2205See \`config.log' for more details." >&2;}
2206   { (exit 77); exit 77; }; }
2207fi
2208
2209ac_exeext=$ac_cv_exeext
2210echo "$as_me:$LINENO: result: $ac_file" >&5
2211echo "${ECHO_T}$ac_file" >&6
2212
2213# Check the compiler produces executables we can run.  If not, either
2214# the compiler is broken, or we cross compile.
2215echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2217# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218# If not cross compiling, check that we can run a simple program.
2219if test "$cross_compiling" != yes; then
2220  if { ac_try='./$ac_file'
2221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222  (eval $ac_try) 2>&5
2223  ac_status=$?
2224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225  (exit $ac_status); }; }; then
2226    cross_compiling=no
2227  else
2228    if test "$cross_compiling" = maybe; then
2229        cross_compiling=yes
2230    else
2231        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232If you meant to cross compile, use \`--host'.
2233See \`config.log' for more details." >&5
2234echo "$as_me: error: cannot run C compiled programs.
2235If you meant to cross compile, use \`--host'.
2236See \`config.log' for more details." >&2;}
2237   { (exit 1); exit 1; }; }
2238    fi
2239  fi
2240fi
2241echo "$as_me:$LINENO: result: yes" >&5
2242echo "${ECHO_T}yes" >&6
2243
2244rm -f a.out a.exe conftest$ac_cv_exeext b.out
2245ac_clean_files=$ac_clean_files_save
2246# Check the compiler produces executables we can run.  If not, either
2247# the compiler is broken, or we cross compile.
2248echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2250echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251echo "${ECHO_T}$cross_compiling" >&6
2252
2253echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2256  (eval $ac_link) 2>&5
2257  ac_status=$?
2258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259  (exit $ac_status); }; then
2260  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2261# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2262# work properly (i.e., refer to `conftest.exe'), while it won't with
2263# `rm'.
2264for ac_file in conftest.exe conftest conftest.*; do
2265  test -f "$ac_file" || continue
2266  case $ac_file in
2267    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2268    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269          export ac_cv_exeext
2270          break;;
2271    * ) break;;
2272  esac
2273done
2274else
2275  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2276See \`config.log' for more details." >&5
2277echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2278See \`config.log' for more details." >&2;}
2279   { (exit 1); exit 1; }; }
2280fi
2281
2282rm -f conftest$ac_cv_exeext
2283echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2284echo "${ECHO_T}$ac_cv_exeext" >&6
2285
2286rm -f conftest.$ac_ext
2287EXEEXT=$ac_cv_exeext
2288ac_exeext=$EXEEXT
2289echo "$as_me:$LINENO: checking for suffix of object files" >&5
2290echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2291if test "${ac_cv_objext+set}" = set; then
2292  echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294  cat >conftest.$ac_ext <<_ACEOF
2295/* confdefs.h.  */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h.  */
2300
2301int
2302main ()
2303{
2304
2305  ;
2306  return 0;
2307}
2308_ACEOF
2309rm -f conftest.o conftest.obj
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311  (eval $ac_compile) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; then
2315  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2316  case $ac_file in
2317    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2318    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319       break;;
2320  esac
2321done
2322else
2323  echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327See \`config.log' for more details." >&5
2328echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329See \`config.log' for more details." >&2;}
2330   { (exit 1); exit 1; }; }
2331fi
2332
2333rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334fi
2335echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336echo "${ECHO_T}$ac_cv_objext" >&6
2337OBJEXT=$ac_cv_objext
2338ac_objext=$OBJEXT
2339echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2341if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342  echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344  cat >conftest.$ac_ext <<_ACEOF
2345/* confdefs.h.  */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h.  */
2350
2351int
2352main ()
2353{
2354#ifndef __GNUC__
2355       choke me
2356#endif
2357
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362rm -f conftest.$ac_objext
2363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364  (eval $ac_compile) 2>conftest.er1
2365  ac_status=$?
2366  grep -v '^ *+' conftest.er1 >conftest.err
2367  rm -f conftest.er1
2368  cat conftest.err >&5
2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370  (exit $ac_status); } &&
2371         { ac_try='test -z "$ac_c_werror_flag"
2372                         || test ! -s conftest.err'
2373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374  (eval $ac_try) 2>&5
2375  ac_status=$?
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); }; } &&
2378         { ac_try='test -s conftest.$ac_objext'
2379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380  (eval $ac_try) 2>&5
2381  ac_status=$?
2382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383  (exit $ac_status); }; }; then
2384  ac_compiler_gnu=yes
2385else
2386  echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389ac_compiler_gnu=no
2390fi
2391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2392ac_cv_c_compiler_gnu=$ac_compiler_gnu
2393
2394fi
2395echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2396echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2397GCC=`test $ac_compiler_gnu = yes && echo yes`
2398ac_test_CFLAGS=${CFLAGS+set}
2399ac_save_CFLAGS=$CFLAGS
2400CFLAGS="-g"
2401echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2402echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2403if test "${ac_cv_prog_cc_g+set}" = set; then
2404  echo $ECHO_N "(cached) $ECHO_C" >&6
2405else
2406  cat >conftest.$ac_ext <<_ACEOF
2407/* confdefs.h.  */
2408_ACEOF
2409cat confdefs.h >>conftest.$ac_ext
2410cat >>conftest.$ac_ext <<_ACEOF
2411/* end confdefs.h.  */
2412
2413int
2414main ()
2415{
2416
2417  ;
2418  return 0;
2419}
2420_ACEOF
2421rm -f conftest.$ac_objext
2422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423  (eval $ac_compile) 2>conftest.er1
2424  ac_status=$?
2425  grep -v '^ *+' conftest.er1 >conftest.err
2426  rm -f conftest.er1
2427  cat conftest.err >&5
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); } &&
2430         { ac_try='test -z "$ac_c_werror_flag"
2431                         || test ! -s conftest.err'
2432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433  (eval $ac_try) 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }; } &&
2437         { ac_try='test -s conftest.$ac_objext'
2438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439  (eval $ac_try) 2>&5
2440  ac_status=$?
2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442  (exit $ac_status); }; }; then
2443  ac_cv_prog_cc_g=yes
2444else
2445  echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448ac_cv_prog_cc_g=no
2449fi
2450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451fi
2452echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2453echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2454if test "$ac_test_CFLAGS" = set; then
2455  CFLAGS=$ac_save_CFLAGS
2456elif test $ac_cv_prog_cc_g = yes; then
2457  if test "$GCC" = yes; then
2458    CFLAGS="-g -O2"
2459  else
2460    CFLAGS="-g"
2461  fi
2462else
2463  if test "$GCC" = yes; then
2464    CFLAGS="-O2"
2465  else
2466    CFLAGS=
2467  fi
2468fi
2469echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2470echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2471if test "${ac_cv_prog_cc_stdc+set}" = set; then
2472  echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474  ac_cv_prog_cc_stdc=no
2475ac_save_CC=$CC
2476cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h.  */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h.  */
2482#include <stdarg.h>
2483#include <stdio.h>
2484#include <sys/types.h>
2485#include <sys/stat.h>
2486/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2487struct buf { int x; };
2488FILE * (*rcsopen) (struct buf *, struct stat *, int);
2489static char *e (p, i)
2490     char **p;
2491     int i;
2492{
2493  return p[i];
2494}
2495static char *f (char * (*g) (char **, int), char **p, ...)
2496{
2497  char *s;
2498  va_list v;
2499  va_start (v,p);
2500  s = g (p, va_arg (v,int));
2501  va_end (v);
2502  return s;
2503}
2504
2505/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2506   function prototypes and stuff, but not '\xHH' hex character constants.
2507   These don't provoke an error unfortunately, instead are silently treated
2508   as 'x'.  The following induces an error, until -std1 is added to get
2509   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2510   array size at least.  It's necessary to write '\x00'==0 to get something
2511   that's true only with -std1.  */
2512int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2513
2514int test (int i, double x);
2515struct s1 {int (*f) (int a);};
2516struct s2 {int (*f) (double a);};
2517int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2518int argc;
2519char **argv;
2520int
2521main ()
2522{
2523return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2524  ;
2525  return 0;
2526}
2527_ACEOF
2528# Don't try gcc -ansi; that turns off useful extensions and
2529# breaks some systems' header files.
2530# AIX                   -qlanglvl=ansi
2531# Ultrix and OSF/1      -std1
2532# HP-UX 10.20 and later -Ae
2533# HP-UX older versions  -Aa -D_HPUX_SOURCE
2534# SVR4                  -Xc -D__EXTENSIONS__
2535for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2536do
2537  CC="$ac_save_CC $ac_arg"
2538  rm -f conftest.$ac_objext
2539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540  (eval $ac_compile) 2>conftest.er1
2541  ac_status=$?
2542  grep -v '^ *+' conftest.er1 >conftest.err
2543  rm -f conftest.er1
2544  cat conftest.err >&5
2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546  (exit $ac_status); } &&
2547         { ac_try='test -z "$ac_c_werror_flag"
2548                         || test ! -s conftest.err'
2549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550  (eval $ac_try) 2>&5
2551  ac_status=$?
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); }; } &&
2554         { ac_try='test -s conftest.$ac_objext'
2555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556  (eval $ac_try) 2>&5
2557  ac_status=$?
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); }; }; then
2560  ac_cv_prog_cc_stdc=$ac_arg
2561break
2562else
2563  echo "$as_me: failed program was:" >&5
2564sed 's/^/| /' conftest.$ac_ext >&5
2565
2566fi
2567rm -f conftest.err conftest.$ac_objext
2568done
2569rm -f conftest.$ac_ext conftest.$ac_objext
2570CC=$ac_save_CC
2571
2572fi
2573
2574case "x$ac_cv_prog_cc_stdc" in
2575  x|xno)
2576    echo "$as_me:$LINENO: result: none needed" >&5
2577echo "${ECHO_T}none needed" >&6 ;;
2578  *)
2579    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2580echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2581    CC="$CC $ac_cv_prog_cc_stdc" ;;
2582esac
2583
2584# Some people use a C++ compiler to compile C.  Since we use `exit',
2585# in C++ we need to declare it.  In case someone uses the same compiler
2586# for both compiling C and C++ we need to have the C++ compiler decide
2587# the declaration of exit, since it's the most demanding environment.
2588cat >conftest.$ac_ext <<_ACEOF
2589#ifndef __cplusplus
2590  choke me
2591#endif
2592_ACEOF
2593rm -f conftest.$ac_objext
2594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595  (eval $ac_compile) 2>conftest.er1
2596  ac_status=$?
2597  grep -v '^ *+' conftest.er1 >conftest.err
2598  rm -f conftest.er1
2599  cat conftest.err >&5
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); } &&
2602         { ac_try='test -z "$ac_c_werror_flag"
2603                         || test ! -s conftest.err'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; } &&
2609         { ac_try='test -s conftest.$ac_objext'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; }; then
2615  for ac_declaration in \
2616   '' \
2617   'extern "C" void std::exit (int) throw (); using std::exit;' \
2618   'extern "C" void std::exit (int); using std::exit;' \
2619   'extern "C" void exit (int) throw ();' \
2620   'extern "C" void exit (int);' \
2621   'void exit (int);'
2622do
2623  cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h.  */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h.  */
2629$ac_declaration
2630#include <stdlib.h>
2631int
2632main ()
2633{
2634exit (42);
2635  ;
2636  return 0;
2637}
2638_ACEOF
2639rm -f conftest.$ac_objext
2640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641  (eval $ac_compile) 2>conftest.er1
2642  ac_status=$?
2643  grep -v '^ *+' conftest.er1 >conftest.err
2644  rm -f conftest.er1
2645  cat conftest.err >&5
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); } &&
2648         { ac_try='test -z "$ac_c_werror_flag"
2649                         || test ! -s conftest.err'
2650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651  (eval $ac_try) 2>&5
2652  ac_status=$?
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); }; } &&
2655         { ac_try='test -s conftest.$ac_objext'
2656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657  (eval $ac_try) 2>&5
2658  ac_status=$?
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); }; }; then
2661  :
2662else
2663  echo "$as_me: failed program was:" >&5
2664sed 's/^/| /' conftest.$ac_ext >&5
2665
2666continue
2667fi
2668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2669  cat >conftest.$ac_ext <<_ACEOF
2670/* confdefs.h.  */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h.  */
2675$ac_declaration
2676int
2677main ()
2678{
2679exit (42);
2680  ;
2681  return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686  (eval $ac_compile) 2>conftest.er1
2687  ac_status=$?
2688  grep -v '^ *+' conftest.er1 >conftest.err
2689  rm -f conftest.er1
2690  cat conftest.err >&5
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); } &&
2693         { ac_try='test -z "$ac_c_werror_flag"
2694                         || test ! -s conftest.err'
2695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696  (eval $ac_try) 2>&5
2697  ac_status=$?
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); }; } &&
2700         { ac_try='test -s conftest.$ac_objext'
2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702  (eval $ac_try) 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; }; then
2706  break
2707else
2708  echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
2710
2711fi
2712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713done
2714rm -f conftest*
2715if test -n "$ac_declaration"; then
2716  echo '#ifdef __cplusplus' >>confdefs.h
2717  echo $ac_declaration      >>confdefs.h
2718  echo '#endif'             >>confdefs.h
2719fi
2720
2721else
2722  echo "$as_me: failed program was:" >&5
2723sed 's/^/| /' conftest.$ac_ext >&5
2724
2725fi
2726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727ac_ext=c
2728ac_cpp='$CPP $CPPFLAGS'
2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733if test -z "$CC" ; then
2734  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2735echo "$as_me: error: Failed to find a C compiler!" >&2;}
2736   { (exit 1); exit 1; }; }
2737fi
2738# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2739case "$CC" in
2740  clang* ) ;;
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 ;;
2747  * )
2748    CYGPATH_W=echo
2749    ;;
2750esac
2751CFLAGS="$save_cflags"
2752
2753# add automake conditional so we can recognize cl compiler in makefile
2754coin_cc_is_cl=false
2755case "$CC" in
2756  clang* ) ;;
2757  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2758    coin_cc_is_cl=true
2759    ;;
2760esac
2761
2762
2763if test $coin_cc_is_cl = true; then
2764  COIN_CC_IS_CL_TRUE=
2765  COIN_CC_IS_CL_FALSE='#'
2766else
2767  COIN_CC_IS_CL_TRUE='#'
2768  COIN_CC_IS_CL_FALSE=
2769fi
2770
2771
2772# Check if a project specific CFLAGS variable has been set
2773if test x$COIN_PRJCT != x; then
2774  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2775  if test x$coin_tmp = xset; then
2776    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2777  fi
2778fi
2779
2780if test x"$CFLAGS" = x; then
2781
2782  coin_add_cflags=
2783  coin_opt_cflags=
2784  coin_dbg_cflags=
2785  coin_warn_cflags=
2786
2787  if test "$GCC" = "yes"; then
2788    case "$CC" in
2789      icc* | */icc*)
2790        ;;
2791      *)
2792        coin_opt_cflags="-O3"
2793        coin_add_cflags="-pipe"
2794        coin_dbg_cflags="-g -O0"
2795        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2796        case $build in
2797          *-darwin*)
2798            ;;
2799          *)
2800            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2801            ;;
2802        esac
2803    esac
2804  fi
2805  if test -z "$coin_opt_cflags"; then
2806    case $build in
2807      *-cygwin* | *-mingw*)
2808        case "$CC" in
2809          clang* ) ;;
2810          cl* | */cl* | CL* | */CL*)
2811            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2812              coin_opt_cflags='-MD -O2'
2813              coin_dbg_cflags='-MDd'
2814            else
2815              coin_opt_cflags='-MT -O2'
2816              coin_dbg_cflags='-MTd'
2817            fi
2818            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2819            ;;
2820          icl* | */icl* | ICL* | */ICL*)
2821            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2822              coin_opt_cflags='-MD -Ox'
2823              coin_dbg_cflags='-MDd -debug'
2824            else
2825              coin_opt_cflags='-MT -Ox'
2826              coin_dbg_cflags='-MTd -debug'
2827            fi
2828            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2829            ;;
2830        esac
2831        ;;
2832      *-linux-*)
2833        case "$CC" in
2834          icc* | */icc*)
2835            coin_opt_cflags="-O3 -ip -mp1"
2836            coin_add_cflags=""
2837            coin_dbg_cflags="-g"
2838            # Check if -i_dynamic is necessary (for new glibc library)
2839            CFLAGS=
2840            cat >conftest.$ac_ext <<_ACEOF
2841/* confdefs.h.  */
2842_ACEOF
2843cat confdefs.h >>conftest.$ac_ext
2844cat >>conftest.$ac_ext <<_ACEOF
2845/* end confdefs.h.  */
2846
2847int
2848main ()
2849{
2850int i=0; i++;
2851  ;
2852  return 0;
2853}
2854_ACEOF
2855rm -f conftest.$ac_objext conftest$ac_exeext
2856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2857  (eval $ac_link) 2>conftest.er1
2858  ac_status=$?
2859  grep -v '^ *+' conftest.er1 >conftest.err
2860  rm -f conftest.er1
2861  cat conftest.err >&5
2862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863  (exit $ac_status); } &&
2864         { ac_try='test -z "$ac_c_werror_flag"
2865                         || test ! -s conftest.err'
2866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867  (eval $ac_try) 2>&5
2868  ac_status=$?
2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870  (exit $ac_status); }; } &&
2871         { ac_try='test -s conftest$ac_exeext'
2872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873  (eval $ac_try) 2>&5
2874  ac_status=$?
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); }; }; then
2877  :
2878else
2879  echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882coin_add_cflags="-i_dynamic $coin_add_cflags"
2883fi
2884rm -f conftest.err conftest.$ac_objext \
2885      conftest$ac_exeext conftest.$ac_ext
2886            ;;
2887          pgcc* | */pgcc*)
2888            coin_opt_cflags="-fast"
2889            coin_add_cflags="-Kieee -pc 64"
2890            coin_dbg_cflags="-g"
2891            ;;
2892        esac
2893        ;;
2894      *-ibm-*)
2895        case "$CC" in
2896          xlc* | */xlc* | mpxlc* | */mpxlc*)
2897            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2898            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2899            coin_dbg_cflags="-g"
2900          ;;
2901        esac
2902        ;;
2903      *-hp-*)
2904        coin_opt_cflags="-O"
2905        coin_add_cflags="-Ae"
2906        coin_dbg_cflags="-g"
2907        ;;
2908      *-*-solaris*)
2909        coin_opt_cflags="-xO4"
2910        coin_dbg_cflags="-g"
2911        ;;
2912      *-sgi-*)
2913        coin_opt_cflags="-O -OPT:Olimit=0"
2914        coin_dbg_cflags="-g"
2915        ;;
2916    esac
2917  fi
2918
2919  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2920    coin_dbg_cflags="-g"
2921  fi
2922
2923  if test -z "$coin_opt_cflags"; then
2924    # Try if -O option works if nothing else is set
2925    CFLAGS="-O"
2926    cat >conftest.$ac_ext <<_ACEOF
2927/* confdefs.h.  */
2928_ACEOF
2929cat confdefs.h >>conftest.$ac_ext
2930cat >>conftest.$ac_ext <<_ACEOF
2931/* end confdefs.h.  */
2932
2933int
2934main ()
2935{
2936int i=0; i++;
2937  ;
2938  return 0;
2939}
2940_ACEOF
2941rm -f conftest.$ac_objext conftest$ac_exeext
2942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2943  (eval $ac_link) 2>conftest.er1
2944  ac_status=$?
2945  grep -v '^ *+' conftest.er1 >conftest.err
2946  rm -f conftest.er1
2947  cat conftest.err >&5
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); } &&
2950         { ac_try='test -z "$ac_c_werror_flag"
2951                         || test ! -s conftest.err'
2952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953  (eval $ac_try) 2>&5
2954  ac_status=$?
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); }; } &&
2957         { ac_try='test -s conftest$ac_exeext'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; }; then
2963  coin_opt_cflags="-O"
2964else
2965  echo "$as_me: failed program was:" >&5
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
2968fi
2969rm -f conftest.err conftest.$ac_objext \
2970      conftest$ac_exeext conftest.$ac_ext
2971  fi
2972
2973  # if PM doesn't want the warning messages, take them out
2974  if test x"$coin_skip_warn_cflags" = xyes; then
2975    coin_warn_cflags=
2976  fi
2977
2978  if test x${DBG_CFLAGS+set} != xset; then
2979    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2980  fi
2981  if test x${OPT_CFLAGS+set} != xset; then
2982    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2983  fi
2984
2985  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2986  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2987
2988  if test "$coin_debug_compile" = "true"; then
2989    CFLAGS="$DBG_CFLAGS"
2990  else
2991    CFLAGS="$OPT_CFLAGS"
2992  fi
2993else
2994  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2995  if test x${DBG_CFLAGS+set} != xset; then
2996    DBG_CFLAGS="$CFLAGS"
2997  fi
2998  if test x${OPT_CFLAGS+set} != xset; then
2999    OPT_CFLAGS="$CFLAGS"
3000  fi
3001fi
3002
3003# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3004
3005case "$CFLAGS" in
3006  *-mno-cygwin*)
3007    if test x${CPPFLAGS+set} != xset ; then
3008      CPPFLAGS="-mno-cygwin"
3009    else
3010      case "$CPPFLAGS" in
3011        *-mno-cygwin*)
3012          ;;
3013        *)
3014          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3015          ;;
3016      esac
3017    fi ;;
3018esac
3019
3020# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3021if test x$COIN_PRJCT != x; then
3022  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3023fi
3024
3025# Try if CFLAGS works
3026save_CFLAGS="$CFLAGS"
3027cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h.  */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h.  */
3033
3034int
3035main ()
3036{
3037int i=0; i++;
3038  ;
3039  return 0;
3040}
3041_ACEOF
3042rm -f conftest.$ac_objext conftest$ac_exeext
3043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3044  (eval $ac_link) 2>conftest.er1
3045  ac_status=$?
3046  grep -v '^ *+' conftest.er1 >conftest.err
3047  rm -f conftest.er1
3048  cat conftest.err >&5
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); } &&
3051         { ac_try='test -z "$ac_c_werror_flag"
3052                         || test ! -s conftest.err'
3053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054  (eval $ac_try) 2>&5
3055  ac_status=$?
3056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057  (exit $ac_status); }; } &&
3058         { ac_try='test -s conftest$ac_exeext'
3059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060  (eval $ac_try) 2>&5
3061  ac_status=$?
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); }; }; then
3064  :
3065else
3066  echo "$as_me: failed program was:" >&5
3067sed 's/^/| /' conftest.$ac_ext >&5
3068
3069CFLAGS=
3070fi
3071rm -f conftest.err conftest.$ac_objext \
3072      conftest$ac_exeext conftest.$ac_ext
3073if test -z "$CFLAGS"; then
3074  { 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
3075echo "$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;}
3076  CFLAGS='-O'
3077  cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h.  */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h.  */
3083
3084int
3085main ()
3086{
3087int i=0; i++;
3088  ;
3089  return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext conftest$ac_exeext
3093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3094  (eval $ac_link) 2>conftest.er1
3095  ac_status=$?
3096  grep -v '^ *+' conftest.er1 >conftest.err
3097  rm -f conftest.er1
3098  cat conftest.err >&5
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); } &&
3101         { ac_try='test -z "$ac_c_werror_flag"
3102                         || test ! -s conftest.err'
3103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104  (eval $ac_try) 2>&5
3105  ac_status=$?
3106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107  (exit $ac_status); }; } &&
3108         { ac_try='test -s conftest$ac_exeext'
3109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110  (eval $ac_try) 2>&5
3111  ac_status=$?
3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); }; }; then
3114  :
3115else
3116  echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119CFLAGS=
3120fi
3121rm -f conftest.err conftest.$ac_objext \
3122      conftest$ac_exeext conftest.$ac_ext
3123  if test -z "$CFLAGS"; then
3124    { 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
3125echo "$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;}
3126  fi
3127fi
3128
3129{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3130echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3131
3132
3133if test x"$MPICC" = x; then :; else
3134  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3135echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3136  CC="$MPICC"
3137fi
3138
3139# Correct the LD variable if we are using the MS or Intel-windows compiler
3140case "$CC" in
3141  clang* ) ;;
3142  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3143
3144 case $build in
3145  *-mingw*)
3146    if test "${LD+set}" = set; then :; else
3147      LD=link
3148    fi
3149    ;;
3150 esac
3151 if test $enable_msvc = yes ; then
3152   if test "x${LD+set}" = xset; then :; else
3153     LD=link
3154   fi
3155 fi
3156
3157    ;;
3158esac
3159
3160ac_ext=c
3161ac_cpp='$CPP $CPPFLAGS'
3162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165
3166
3167
3168# Check if pkg-config is available (to setup addlibs file)
3169
3170
3171# Check whether --enable-pkg-config or --disable-pkg-config was given.
3172if test "${enable_pkg_config+set}" = set; then
3173  enableval="$enable_pkg_config"
3174  use_pkgconfig="$enableval"
3175else
3176  if test x$coin_cc_is_cl = xtrue; then
3177     use_pkgconfig=no
3178   else
3179     use_pkgconfig=yes
3180   fi
3181fi;
3182
3183if test $use_pkgconfig = yes ; then
3184  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3185    if test -n "$ac_tool_prefix"; then
3186  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3187set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3188echo "$as_me:$LINENO: checking for $ac_word" >&5
3189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3191  echo $ECHO_N "(cached) $ECHO_C" >&6
3192else
3193  if test -n "$PKG_CONFIG"; then
3194  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201  for ac_exec_ext in '' $ac_executable_extensions; do
3202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208done
3209
3210fi
3211fi
3212PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3213if test -n "$PKG_CONFIG"; then
3214  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3215echo "${ECHO_T}$PKG_CONFIG" >&6
3216else
3217  echo "$as_me:$LINENO: result: no" >&5
3218echo "${ECHO_T}no" >&6
3219fi
3220
3221fi
3222if test -z "$ac_cv_prog_PKG_CONFIG"; then
3223  ac_ct_PKG_CONFIG=$PKG_CONFIG
3224  # Extract the first word of "pkg-config", so it can be a program name with args.
3225set dummy pkg-config; ac_word=$2
3226echo "$as_me:$LINENO: checking for $ac_word" >&5
3227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3229  echo $ECHO_N "(cached) $ECHO_C" >&6
3230else
3231  if test -n "$ac_ct_PKG_CONFIG"; then
3232  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3233else
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237  IFS=$as_save_IFS
3238  test -z "$as_dir" && as_dir=.
3239  for ac_exec_ext in '' $ac_executable_extensions; do
3240  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243    break 2
3244  fi
3245done
3246done
3247
3248fi
3249fi
3250ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3251if test -n "$ac_ct_PKG_CONFIG"; then
3252  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3253echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3254else
3255  echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257fi
3258
3259  PKG_CONFIG=$ac_ct_PKG_CONFIG
3260else
3261  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3262fi
3263
3264  fi
3265  if test -n "$PKG_CONFIG"; then
3266    _pkg_min_version=0.16.0
3267    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3268echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3269    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3270      echo "$as_me:$LINENO: result: yes" >&5
3271echo "${ECHO_T}yes" >&6
3272    else
3273      echo "$as_me:$LINENO: result: no" >&5
3274echo "${ECHO_T}no" >&6
3275      PKG_CONFIG=""
3276    fi
3277  fi
3278
3279  # check if pkg-config supports the short-errors flag
3280  if test -n "$PKG_CONFIG" && \
3281    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3282    pkg_short_errors=" --short-errors "
3283  else
3284    pkg_short_errors=""
3285  fi
3286fi
3287
3288
3289
3290if test -n "$PKG_CONFIG"; then
3291  COIN_HAS_PKGCONFIG_TRUE=
3292  COIN_HAS_PKGCONFIG_FALSE='#'
3293else
3294  COIN_HAS_PKGCONFIG_TRUE='#'
3295  COIN_HAS_PKGCONFIG_FALSE=
3296fi
3297
3298
3299
3300# assemble pkg-config search path for installed projects
3301COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3302
3303# 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
3304# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3305# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3306if test "x${prefix}" = xNONE ; then
3307  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3308else
3309  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3310fi
3311
3312
3313# Check whether --with-coin-instdir or --without-coin-instdir was given.
3314if test "${with_coin_instdir+set}" = set; then
3315  withval="$with_coin_instdir"
3316  if test -d "$withval"; then : ; else
3317     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3318echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3319   { (exit 1); exit 1; }; }
3320   fi
3321   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3322
3323fi;
3324
3325
3326
3327# assemble additional pkg-config search paths for uninstalled projects
3328if test x$coin_projectdir = xyes ; then
3329  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3330  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3331  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3332  # 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)
3333  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3334  if test -e ../coin_subdirs.txt ; then
3335    for i in `cat ../coin_subdirs.txt` ; do
3336      if test -d ../$i ; then
3337        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3338      fi
3339      if test -d ../$i/pkgconfig ; then
3340        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3341      fi
3342    done
3343  fi
3344
3345  if test -e ../../coin_subdirs.txt ; then
3346    for i in `cat ../../coin_subdirs.txt` ; do
3347      if test -d ../../$i ; then
3348        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3349      fi
3350      if test -d ../../$i/pkgconfig ; then
3351        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3352      fi
3353    done
3354  fi
3355
3356
3357fi
3358
3359if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3360  { 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
3361echo "$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;}
3362fi
3363
3364
3365
3366# Initialize automake
3367{
3368
3369
3370
3371# START
3372
3373coin_disable_shared=no
3374# Test if force_shared has been set
3375if test "x" = xforce_shared; then
3376  if test x$enable_shared = xno; then
3377    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3378echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3379   { (exit 1); exit 1; }; }
3380  fi
3381  enable_shared=yes;
3382else
3383  # On Cygwin and AIX, building DLLs doesn't work
3384  case $build in
3385    *-cygwin* | *-mingw*)
3386      coin_disable_shared=yes
3387      if test x"$enable_shared" = xyes; then
3388        case "$CXX" in
3389          clang* )
3390            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3391echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3392            ;;
3393          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3394            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
3395echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
3396            ;;
3397          *)
3398            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3399echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3400            ;;
3401        esac
3402      fi
3403    ;;
3404    *-aix*)
3405      coin_disable_shared=yes
3406      platform=AIX
3407      if test x"$enable_shared" = xyes; then
3408        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
3409echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
3410      fi
3411    ;;
3412  esac
3413fi
3414if test x"$coin_disable_shared" = xyes; then
3415  if test x"$enable_shared" = xyes; then
3416    :
3417  else
3418    # we don't disable shared, because it was not selected anyway
3419    coin_disable_shared=no
3420  fi
3421  enable_shared=no
3422fi
3423# By default, we only want the shared objects to be compiled
3424# Check whether --enable-static or --disable-static was given.
3425if test "${enable_static+set}" = set; then
3426  enableval="$enable_static"
3427  p=${PACKAGE-default}
3428    case $enableval in
3429    yes) enable_static=yes ;;
3430    no) enable_static=no ;;
3431    *)
3432     enable_static=no
3433      # Look at the argument we got.  We use all the common list separators.
3434      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3435      for pkg in $enableval; do
3436        IFS="$lt_save_ifs"
3437        if test "X$pkg" = "X$p"; then
3438          enable_static=yes
3439        fi
3440      done
3441      IFS="$lt_save_ifs"
3442      ;;
3443    esac
3444else
3445  enable_static=no
3446fi;
3447
3448
3449
3450
3451# Initialize automake
3452echo "$as_me:$LINENO: checking for egrep" >&5
3453echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3454if test "${ac_cv_prog_egrep+set}" = set; then
3455  echo $ECHO_N "(cached) $ECHO_C" >&6
3456else
3457  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3458    then ac_cv_prog_egrep='grep -E'
3459    else ac_cv_prog_egrep='egrep'
3460    fi
3461fi
3462echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3463echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3464 EGREP=$ac_cv_prog_egrep
3465
3466
3467echo "$as_me:$LINENO: checking whether ln -s works" >&5
3468echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3469LN_S=$as_ln_s
3470if test "$LN_S" = "ln -s"; then
3471  echo "$as_me:$LINENO: result: yes" >&5
3472echo "${ECHO_T}yes" >&6
3473else
3474  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3475echo "${ECHO_T}no, using $LN_S" >&6
3476fi
3477
3478am__api_version="1.9"
3479# Find a good install program.  We prefer a C program (faster),
3480# so one script is as good as another.  But avoid the broken or
3481# incompatible versions:
3482# SysV /etc/install, /usr/sbin/install
3483# SunOS /usr/etc/install
3484# IRIX /sbin/install
3485# AIX /bin/install
3486# AmigaOS /C/install, which installs bootblocks on floppy discs
3487# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3488# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3489# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3490# OS/2's system install, which has a completely different semantic
3491# ./install, which can be erroneously created by make from ./install.sh.
3492echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3493echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3494if test -z "$INSTALL"; then
3495if test "${ac_cv_path_install+set}" = set; then
3496  echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH
3500do
3501  IFS=$as_save_IFS
3502  test -z "$as_dir" && as_dir=.
3503  # Account for people who put trailing slashes in PATH elements.
3504case $as_dir/ in
3505  ./ | .// | /cC/* | \
3506  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3507  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3508  /usr/ucb/* ) ;;
3509  *)
3510    # OSF1 and SCO ODT 3.0 have their own names for install.
3511    # Don't use installbsd from OSF since it installs stuff as root
3512    # by default.
3513    for ac_prog in ginstall scoinst install; do
3514      for ac_exec_ext in '' $ac_executable_extensions; do
3515        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3516          if test $ac_prog = install &&
3517            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3518            # AIX install.  It has an incompatible calling convention.
3519            :
3520          elif test $ac_prog = install &&
3521            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3522            # program-specific install script used by HP pwplus--don't use.
3523            :
3524          else
3525            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3526            break 3
3527          fi
3528        fi
3529      done
3530    done
3531    ;;
3532esac
3533done
3534
3535
3536fi
3537  if test "${ac_cv_path_install+set}" = set; then
3538    INSTALL=$ac_cv_path_install
3539  else
3540    # As a last resort, use the slow shell script.  We don't cache a
3541    # path for INSTALL within a source directory, because that will
3542    # break other packages using the cache if that directory is
3543    # removed, or if the path is relative.
3544    INSTALL=$ac_install_sh
3545  fi
3546fi
3547echo "$as_me:$LINENO: result: $INSTALL" >&5
3548echo "${ECHO_T}$INSTALL" >&6
3549
3550# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3551# It thinks the first close brace ends the variable substitution.
3552test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3553
3554test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3555
3556test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3557
3558echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3559echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3560# Just in case
3561sleep 1
3562echo timestamp > conftest.file
3563# Do `set' in a subshell so we don't clobber the current shell's
3564# arguments.  Must try -L first in case configure is actually a
3565# symlink; some systems play weird games with the mod time of symlinks
3566# (eg FreeBSD returns the mod time of the symlink's containing
3567# directory).
3568if (
3569   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3570   if test "$*" = "X"; then
3571      # -L didn't work.
3572      set X `ls -t $srcdir/configure conftest.file`
3573   fi
3574   rm -f conftest.file
3575   if test "$*" != "X $srcdir/configure conftest.file" \
3576      && test "$*" != "X conftest.file $srcdir/configure"; then
3577
3578      # If neither matched, then we have a broken ls.  This can happen
3579      # if, for instance, CONFIG_SHELL is bash and it inherits a
3580      # broken ls alias from the environment.  This has actually
3581      # happened.  Such a system could not be considered "sane".
3582      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3583alias in your environment" >&5
3584echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3585alias in your environment" >&2;}
3586   { (exit 1); exit 1; }; }
3587   fi
3588
3589   test "$2" = conftest.file
3590   )
3591then
3592   # Ok.
3593   :
3594else
3595   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3596Check your system clock" >&5
3597echo "$as_me: error: newly created file is older than distributed files!
3598Check your system clock" >&2;}
3599   { (exit 1); exit 1; }; }
3600fi
3601echo "$as_me:$LINENO: result: yes" >&5
3602echo "${ECHO_T}yes" >&6
3603test "$program_prefix" != NONE &&
3604  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3605# Use a double $ so make ignores it.
3606test "$program_suffix" != NONE &&
3607  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3608# Double any \ or $.  echo might interpret backslashes.
3609# By default was `s,x,x', remove it if useless.
3610cat <<\_ACEOF >conftest.sed
3611s/[\\$]/&&/g;s/;s,x,x,$//
3612_ACEOF
3613program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3614rm conftest.sed
3615
3616# expand $ac_aux_dir to an absolute path
3617am_aux_dir=`cd $ac_aux_dir && pwd`
3618
3619test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3620# Use eval to expand $SHELL
3621if eval "$MISSING --run true"; then
3622  am_missing_run="$MISSING --run "
3623else
3624  am_missing_run=
3625  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3626echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3627fi
3628
3629if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3630  # We used to keeping the `.' as first argument, in order to
3631  # allow $(mkdir_p) to be used without argument.  As in
3632  #   $(mkdir_p) $(somedir)
3633  # where $(somedir) is conditionally defined.  However this is wrong
3634  # for two reasons:
3635  #  1. if the package is installed by a user who cannot write `.'
3636  #     make install will fail,
3637  #  2. the above comment should most certainly read
3638  #     $(mkdir_p) $(DESTDIR)$(somedir)
3639  #     so it does not work when $(somedir) is undefined and
3640  #     $(DESTDIR) is not.
3641  #  To support the latter case, we have to write
3642  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3643  #  so the `.' trick is pointless.
3644  mkdir_p='mkdir -p --'
3645else
3646  # On NextStep and OpenStep, the `mkdir' command does not
3647  # recognize any option.  It will interpret all options as
3648  # directories to create, and then abort because `.' already
3649  # exists.
3650  for d in ./-p ./--version;
3651  do
3652    test -d $d && rmdir $d
3653  done
3654  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3655  if test -f "$ac_aux_dir/mkinstalldirs"; then
3656    mkdir_p='$(mkinstalldirs)'
3657  else
3658    mkdir_p='$(install_sh) -d'
3659  fi
3660fi
3661
3662for ac_prog in gawk mawk nawk awk
3663do
3664  # Extract the first word of "$ac_prog", so it can be a program name with args.
3665set dummy $ac_prog; ac_word=$2
3666echo "$as_me:$LINENO: checking for $ac_word" >&5
3667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668if test "${ac_cv_prog_AWK+set}" = set; then
3669  echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
3671  if test -n "$AWK"; then
3672  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677  IFS=$as_save_IFS
3678  test -z "$as_dir" && as_dir=.
3679  for ac_exec_ext in '' $ac_executable_extensions; do
3680  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681    ac_cv_prog_AWK="$ac_prog"
3682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683    break 2
3684  fi
3685done
3686done
3687
3688fi
3689fi
3690AWK=$ac_cv_prog_AWK
3691if test -n "$AWK"; then
3692  echo "$as_me:$LINENO: result: $AWK" >&5
3693echo "${ECHO_T}$AWK" >&6
3694else
3695  echo "$as_me:$LINENO: result: no" >&5
3696echo "${ECHO_T}no" >&6
3697fi
3698
3699  test -n "$AWK" && break
3700done
3701
3702echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3703echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3704set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3705if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3706  echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
3708  cat >conftest.make <<\_ACEOF
3709all:
3710        @echo 'ac_maketemp="$(MAKE)"'
3711_ACEOF
3712# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3713eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3714if test -n "$ac_maketemp"; then
3715  eval ac_cv_prog_make_${ac_make}_set=yes
3716else
3717  eval ac_cv_prog_make_${ac_make}_set=no
3718fi
3719rm -f conftest.make
3720fi
3721if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3722  echo "$as_me:$LINENO: result: yes" >&5
3723echo "${ECHO_T}yes" >&6
3724  SET_MAKE=
3725else
3726  echo "$as_me:$LINENO: result: no" >&5
3727echo "${ECHO_T}no" >&6
3728  SET_MAKE="MAKE=${MAKE-make}"
3729fi
3730
3731rm -rf .tst 2>/dev/null
3732mkdir .tst 2>/dev/null
3733if test -d .tst; then
3734  am__leading_dot=.
3735else
3736  am__leading_dot=_
3737fi
3738rmdir .tst 2>/dev/null
3739
3740DEPDIR="${am__leading_dot}deps"
3741
3742          ac_config_commands="$ac_config_commands depfiles"
3743
3744
3745am_make=${MAKE-make}
3746cat > confinc << 'END'
3747am__doit:
3748        @echo done
3749.PHONY: am__doit
3750END
3751# If we don't find an include directive, just comment out the code.
3752echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3753echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3754am__include="#"
3755am__quote=
3756_am_result=none
3757# First try GNU make style include.
3758echo "include confinc" > confmf
3759# We grep out `Entering directory' and `Leaving directory'
3760# messages which can occur if `w' ends up in MAKEFLAGS.
3761# In particular we don't look at `^make:' because GNU make might
3762# be invoked under some other name (usually "gmake"), in which
3763# case it prints its new name instead of `make'.
3764if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3765   am__include=include
3766   am__quote=
3767   _am_result=GNU
3768fi
3769# Now try BSD make style include.
3770if test "$am__include" = "#"; then
3771   echo '.include "confinc"' > confmf
3772   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3773      am__include=.include
3774      am__quote="\""
3775      _am_result=BSD
3776   fi
3777fi
3778
3779
3780echo "$as_me:$LINENO: result: $_am_result" >&5
3781echo "${ECHO_T}$_am_result" >&6
3782rm -f confinc confmf
3783
3784# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3785if test "${enable_dependency_tracking+set}" = set; then
3786  enableval="$enable_dependency_tracking"
3787
3788fi;
3789if test "x$enable_dependency_tracking" != xno; then
3790  am_depcomp="$ac_aux_dir/depcomp"
3791  AMDEPBACKSLASH='\'
3792fi
3793
3794
3795if test "x$enable_dependency_tracking" != xno; then
3796  AMDEP_TRUE=
3797  AMDEP_FALSE='#'
3798else
3799  AMDEP_TRUE='#'
3800  AMDEP_FALSE=
3801fi
3802
3803
3804
3805
3806
3807
3808# AC_MSG_NOTICE([Beginning automake initialisation.])
3809# Stuff for automake
3810# test to see if srcdir already configured
3811if test "`cd $srcdir && pwd`" != "`pwd`" &&
3812   test -f $srcdir/config.status; then
3813  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3814echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3815   { (exit 1); exit 1; }; }
3816fi
3817
3818# test whether we have cygpath
3819if test -z "$CYGPATH_W"; then
3820  if (cygpath --version) >/dev/null 2>/dev/null; then
3821    CYGPATH_W='cygpath -w'
3822  else
3823    CYGPATH_W=echo
3824  fi
3825fi
3826
3827
3828# Define the identity of the package.
3829 PACKAGE='thirdpartyglpk'
3830 VERSION='1.9.2'
3831
3832
3833cat >>confdefs.h <<_ACEOF
3834#define PACKAGE "$PACKAGE"
3835_ACEOF
3836
3837
3838cat >>confdefs.h <<_ACEOF
3839#define VERSION "$VERSION"
3840_ACEOF
3841
3842# Some tools Automake needs.
3843
3844ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3845
3846
3847AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3848
3849
3850AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3851
3852
3853AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3854
3855
3856MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3857
3858install_sh=${install_sh-"$am_aux_dir/install-sh"}
3859
3860# Installed binaries are usually stripped using `strip' when the user
3861# run `make install-strip'.  However `strip' might not be the right
3862# tool to use in cross-compilation environments, therefore Automake
3863# will honor the `STRIP' environment variable to overrule this program.
3864if test "$cross_compiling" != no; then
3865  if test -n "$ac_tool_prefix"; then
3866  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3867set dummy ${ac_tool_prefix}strip; ac_word=$2
3868echo "$as_me:$LINENO: checking for $ac_word" >&5
3869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870if test "${ac_cv_prog_STRIP+set}" = set; then
3871  echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873  if test -n "$STRIP"; then
3874  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3875else
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879  IFS=$as_save_IFS
3880  test -z "$as_dir" && as_dir=.
3881  for ac_exec_ext in '' $ac_executable_extensions; do
3882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885    break 2
3886  fi
3887done
3888done
3889
3890fi
3891fi
3892STRIP=$ac_cv_prog_STRIP
3893if test -n "$STRIP"; then
3894  echo "$as_me:$LINENO: result: $STRIP" >&5
3895echo "${ECHO_T}$STRIP" >&6
3896else
3897  echo "$as_me:$LINENO: result: no" >&5
3898echo "${ECHO_T}no" >&6
3899fi
3900
3901fi
3902if test -z "$ac_cv_prog_STRIP"; then
3903  ac_ct_STRIP=$STRIP
3904  # Extract the first word of "strip", so it can be a program name with args.
3905set dummy strip; ac_word=$2
3906echo "$as_me:$LINENO: checking for $ac_word" >&5
3907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3908if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3909  echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911  if test -n "$ac_ct_STRIP"; then
3912  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3913else
3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917  IFS=$as_save_IFS
3918  test -z "$as_dir" && as_dir=.
3919  for ac_exec_ext in '' $ac_executable_extensions; do
3920  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921    ac_cv_prog_ac_ct_STRIP="strip"
3922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923    break 2
3924  fi
3925done
3926done
3927
3928  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3929fi
3930fi
3931ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3932if test -n "$ac_ct_STRIP"; then
3933  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3934echo "${ECHO_T}$ac_ct_STRIP" >&6
3935else
3936  echo "$as_me:$LINENO: result: no" >&5
3937echo "${ECHO_T}no" >&6
3938fi
3939
3940  STRIP=$ac_ct_STRIP
3941else
3942  STRIP="$ac_cv_prog_STRIP"
3943fi
3944
3945fi
3946INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3947
3948# We need awk for the "check" target.  The system "awk" is bad on
3949# some platforms.
3950# Always define AMTAR for backward compatibility.
3951
3952AMTAR=${AMTAR-"${am_missing_run}tar"}
3953
3954am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3955
3956
3957
3958
3959depcc="$CC"   am_compiler_list=
3960
3961echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3962echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3963if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3964  echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3967  # We make a subdir and do the tests there.  Otherwise we can end up
3968  # making bogus files that we don't know about and never remove.  For
3969  # instance it was reported that on HP-UX the gcc test will end up
3970  # making a dummy file named `D' -- because `-MD' means `put the output
3971  # in D'.
3972  mkdir conftest.dir
3973  # Copy depcomp to subdir because otherwise we won't find it if we're
3974  # using a relative directory.
3975  cp "$am_depcomp" conftest.dir
3976  cd conftest.dir
3977  # We will build objects and dependencies in a subdirectory because
3978  # it helps to detect inapplicable dependency modes.  For instance
3979  # both Tru64's cc and ICC support -MD to output dependencies as a
3980  # side effect of compilation, but ICC will put the dependencies in
3981  # the current directory while Tru64 will put them in the object
3982  # directory.
3983  mkdir sub
3984
3985  am_cv_CC_dependencies_compiler_type=none
3986  if test "$am_compiler_list" = ""; then
3987     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3988  fi
3989  for depmode in $am_compiler_list; do
3990    # Setup a source with many dependencies, because some compilers
3991    # like to wrap large dependency lists on column 80 (with \), and
3992    # we should not choose a depcomp mode which is confused by this.
3993    #
3994    # We need to recreate these files for each test, as the compiler may
3995    # overwrite some of them when testing with obscure command lines.
3996    # This happens at least with the AIX C compiler.
3997    : > sub/conftest.c
3998    for i in 1 2 3 4 5 6; do
3999      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4000      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4001      # Solaris 8's {/usr,}/bin/sh.
4002      touch sub/conftst$i.h
4003    done
4004    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4005
4006    case $depmode in
4007    nosideeffect)
4008      # after this tag, mechanisms are not by side-effect, so they'll
4009      # only be used when explicitly requested
4010      if test "x$enable_dependency_tracking" = xyes; then
4011        continue
4012      else
4013        break
4014      fi
4015      ;;
4016    none) break ;;
4017    esac
4018    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4019    # mode.  It turns out that the SunPro C++ compiler does not properly
4020    # handle `-M -o', and we need to detect this.
4021    if depmode=$depmode \
4022       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4023       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4024       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4025         >/dev/null 2>conftest.err &&
4026       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4027       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4028       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4029      # icc doesn't choke on unknown options, it will just issue warnings
4030      # or remarks (even with -Werror).  So we grep stderr for any message
4031      # that says an option was ignored or not supported.
4032      # When given -MP, icc 7.0 and 7.1 complain thusly:
4033      #   icc: Command line warning: ignoring option '-M'; no argument required
4034      # The diagnosis changed in icc 8.0:
4035      #   icc: Command line remark: option '-MP' not supported
4036      if (grep 'ignoring option' conftest.err ||
4037          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4038        am_cv_CC_dependencies_compiler_type=$depmode
4039        break
4040      fi
4041    fi
4042  done
4043
4044  cd ..
4045  rm -rf conftest.dir
4046else
4047  am_cv_CC_dependencies_compiler_type=none
4048fi
4049
4050fi
4051echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4052echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4053CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4054
4055
4056
4057if
4058  test "x$enable_dependency_tracking" != xno \
4059  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4060  am__fastdepCC_TRUE=
4061  am__fastdepCC_FALSE='#'
4062else
4063  am__fastdepCC_TRUE='#'
4064  am__fastdepCC_FALSE=
4065fi
4066
4067
4068
4069echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4070echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4071    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4072if test "${enable_maintainer_mode+set}" = set; then
4073  enableval="$enable_maintainer_mode"
4074  USE_MAINTAINER_MODE=$enableval
4075else
4076  USE_MAINTAINER_MODE=no
4077fi;
4078  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4079echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4080
4081
4082if test $USE_MAINTAINER_MODE = yes; then
4083  MAINTAINER_MODE_TRUE=
4084  MAINTAINER_MODE_FALSE='#'
4085else
4086  MAINTAINER_MODE_TRUE='#'
4087  MAINTAINER_MODE_FALSE=
4088fi
4089
4090  MAINT=$MAINTAINER_MODE_TRUE
4091
4092
4093
4094coin_have_externals=no
4095if test "$enable_maintainer_mode" = yes; then
4096
4097  # If maintainer mode is chosen, we make sure that the correct versions
4098  # of the tools are used, and that we know where libtool.m4 is (to
4099  # recreate acinclude.m4)
4100
4101
4102  LIBTOOLM4=
4103  # Normally, $HOME
4104  AUTOTOOLS_DFLT=$HOME
4105
4106  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4107echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4108if test "${ac_cv_use_correct_autotools+set}" = set; then
4109  echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111  ac_cv_use_correct_autotools=check
4112fi
4113echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4114echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4115
4116  if test $ac_cv_use_correct_autotools = check; then
4117    ac_cv_use_correct_autotools=yes
4118    # Check if we have autoconf
4119    # Extract the first word of "autoconf", so it can be a program name with args.
4120set dummy autoconf; ac_word=$2
4121echo "$as_me:$LINENO: checking for $ac_word" >&5
4122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123if test "${ac_cv_prog_have_autoconf+set}" = set; then
4124  echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126  if test -n "$have_autoconf"; then
4127  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4128else
4129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130for as_dir in $PATH
4131do
4132  IFS=$as_save_IFS
4133  test -z "$as_dir" && as_dir=.
4134  for ac_exec_ext in '' $ac_executable_extensions; do
4135  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136    ac_cv_prog_have_autoconf="yes"
4137    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138    break 2
4139  fi
4140done
4141done
4142
4143  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4144fi
4145fi
4146have_autoconf=$ac_cv_prog_have_autoconf
4147if test -n "$have_autoconf"; then
4148  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4149echo "${ECHO_T}$have_autoconf" >&6
4150else
4151  echo "$as_me:$LINENO: result: no" >&5
4152echo "${ECHO_T}no" >&6
4153fi
4154
4155    if test $have_autoconf = no; then
4156      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4157echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4158   { (exit 1); exit 1; }; }
4159    fi
4160
4161    # Check whether autoconf is the correct version
4162    correct_version='2.59'
4163    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4164    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4165echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4166    autoconf --version > confauto.out 2>&1
4167    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4168      echo "$as_me:$LINENO: result: yes" >&5
4169echo "${ECHO_T}yes" >&6
4170    else
4171      rm -f confauto.out
4172      echo "$as_me:$LINENO: result: no" >&5
4173echo "${ECHO_T}no" >&6
4174      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4175echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4176   { (exit 1); exit 1; }; }
4177    fi
4178    rm -f confauto.out
4179
4180    # Check if the executable autoconf is picked up from the correct location
4181    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4182echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4183    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4184    autoconf_dir=`cd $autoconf_dir; pwd`
4185    if test x$AUTOTOOLS_DIR = x; then
4186      want_dir=$AUTOTOOLS_DFLT/bin
4187    else
4188      want_dir=$AUTOTOOLS_DIR/bin
4189    fi
4190    if test $autoconf_dir = `cd $want_dir; pwd`; then
4191      echo "$as_me:$LINENO: result: yes" >&5
4192echo "${ECHO_T}yes" >&6
4193    else
4194      rm -f confauto.out
4195      echo "$as_me:$LINENO: result: no" >&5
4196echo "${ECHO_T}no" >&6
4197      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4198echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4199   { (exit 1); exit 1; }; }
4200    fi
4201
4202    # Check if we have automake
4203    # Extract the first word of "automake", so it can be a program name with args.
4204set dummy automake; ac_word=$2
4205echo "$as_me:$LINENO: checking for $ac_word" >&5
4206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207if test "${ac_cv_prog_have_automake+set}" = set; then
4208  echo $ECHO_N "(cached) $ECHO_C" >&6
4209else
4210  if test -n "$have_automake"; then
4211  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4212else
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216  IFS=$as_save_IFS
4217  test -z "$as_dir" && as_dir=.
4218  for ac_exec_ext in '' $ac_executable_extensions; do
4219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220    ac_cv_prog_have_automake="yes"
4221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222    break 2
4223  fi
4224done
4225done
4226
4227  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4228fi
4229fi
4230have_automake=$ac_cv_prog_have_automake
4231if test -n "$have_automake"; then
4232  echo "$as_me:$LINENO: result: $have_automake" >&5
4233echo "${ECHO_T}$have_automake" >&6
4234else
4235  echo "$as_me:$LINENO: result: no" >&5
4236echo "${ECHO_T}no" >&6
4237fi
4238
4239    if test $have_automake = no; then
4240      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4241echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4242   { (exit 1); exit 1; }; }
4243    fi
4244
4245    # Check whether automake is the correct version
4246    correct_version='1.9.6'
4247    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4248    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4249echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4250    automake --version > confauto.out 2>&1
4251    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4252      echo "$as_me:$LINENO: result: yes" >&5
4253echo "${ECHO_T}yes" >&6
4254    else
4255      rm -f confauto.out
4256      echo "$as_me:$LINENO: result: no" >&5
4257echo "${ECHO_T}no" >&6
4258      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4259echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4260   { (exit 1); exit 1; }; }
4261    fi
4262    rm -f confauto.out
4263
4264    # Check if the executable automake is picked up from the correct location
4265    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4266echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4267    automake_dir=`which automake | sed -e 's=/automake=='`
4268    automake_dir=`cd $automake_dir; pwd`
4269    if test x$AUTOTOOLS_DIR = x; then
4270      want_dir=$AUTOTOOLS_DFLT/bin
4271    else
4272      want_dir=$AUTOTOOLS_DIR/bin
4273    fi
4274    if test $automake_dir = `cd $want_dir; pwd`; then
4275      echo "$as_me:$LINENO: result: yes" >&5
4276echo "${ECHO_T}yes" >&6
4277    else
4278      rm -f confauto.out
4279      echo "$as_me:$LINENO: result: no" >&5
4280echo "${ECHO_T}no" >&6
4281      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4282echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4283   { (exit 1); exit 1; }; }
4284    fi
4285
4286    # Check if this is the correct version of libtool (with escaped dots)
4287    if test x$AUTOTOOLS_DIR = x; then
4288      want_dir=$AUTOTOOLS_DFLT/share
4289    else
4290      want_dir=$AUTOTOOLS_DIR/share
4291    fi
4292    correct_version='1.5.22'
4293    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4294    if test -r $want_dir/libtool/ltmain.sh; then
4295  have_ltmain=yes
4296  :
4297else
4298  have_ltmain=no
4299  :
4300fi
4301
4302    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4303echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4304    if test $have_ltmain = yes; then
4305    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4306        echo "$as_me:$LINENO: result: yes" >&5
4307echo "${ECHO_T}yes" >&6
4308      else
4309        echo "$as_me:$LINENO: result: no" >&5
4310echo "${ECHO_T}no" >&6
4311        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4312echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4313   { (exit 1); exit 1; }; }
4314      fi
4315    else
4316      echo "$as_me:$LINENO: result: no" >&5
4317echo "${ECHO_T}no" >&6
4318      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4319echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4320   { (exit 1); exit 1; }; }
4321    fi
4322  fi
4323
4324  # Check if we can find the libtool file
4325  if test x$AUTOTOOLS_DIR = x; then
4326    want_dir=$AUTOTOOLS_DFLT/share
4327  else
4328    want_dir=$AUTOTOOLS_DIR/share
4329  fi
4330  if test -r $want_dir/aclocal/libtool.m4; then
4331  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4332  :
4333else
4334  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4335echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4336   { (exit 1); exit 1; }; }
4337  :
4338fi
4339
4340
4341  # Check if we have an Dependencies file
4342  if test -r $srcdir/Dependencies; then
4343    coin_have_externals=yes
4344  fi
4345  # Check if subversion is installed and understands https
4346  # Extract the first word of "svn", so it can be a program name with args.
4347set dummy svn; ac_word=$2
4348echo "$as_me:$LINENO: checking for $ac_word" >&5
4349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4350if test "${ac_cv_prog_have_svn+set}" = set; then
4351  echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353  if test -n "$have_svn"; then
4354  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4355else
4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359  IFS=$as_save_IFS
4360  test -z "$as_dir" && as_dir=.
4361  for ac_exec_ext in '' $ac_executable_extensions; do
4362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363    ac_cv_prog_have_svn="yes"
4364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365    break 2
4366  fi
4367done
4368done
4369
4370  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4371fi
4372fi
4373have_svn=$ac_cv_prog_have_svn
4374if test -n "$have_svn"; then
4375  echo "$as_me:$LINENO: result: $have_svn" >&5
4376echo "${ECHO_T}$have_svn" >&6
4377else
4378  echo "$as_me:$LINENO: result: no" >&5
4379echo "${ECHO_T}no" >&6
4380fi
4381
4382  if test x$have_svn = xyes; then
4383    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4384echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4385if test "${ac_cv_svn_understands_https+set}" = set; then
4386  echo $ECHO_N "(cached) $ECHO_C" >&6
4387else
4388  svn --version > confauto.out 2>&1
4389                    if $EGREP https confauto.out >/dev/null 2>&1; then
4390                      ac_cv_svn_understands_https=yes
4391                    else
4392                      ac_cv_svn_understands_https=no
4393                      have_svn=no
4394                      ac_cv_prog_have_svn=no
4395                    fi
4396                    rm -f confauto.out
4397fi
4398echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4399echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4400  fi
4401
4402  # Find the location of the BuildTools directory
4403  BUILDTOOLSDIR=
4404  if test -r $srcdir/BuildTools/coin.m4; then
4405    BUILDTOOLSDIR=$srcdir/BuildTools
4406  else
4407    if test -r $srcdir/../BuildTools/coin.m4; then
4408      BUILDTOOLSDIR=$srcdir/../BuildTools
4409    else
4410      if test -r $srcdir/../../BuildTools/coin.m4; then
4411        BUILDTOOLSDIR=$srcdir/../../BuildTools
4412      else
4413        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4414echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4415   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4416      fi
4417    fi
4418  fi
4419
4420
4421  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4422  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4423    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4424  fi
4425
4426  # The following variable is set to the name of the directory where
4427  # the autotool scripts are located
4428
4429  AUX_DIR=$ac_aux_dir
4430fi
4431
4432# helpful variable for the base directory of this package
4433abs_source_dir=`cd $srcdir; pwd`
4434
4435
4436# Stuff for example Makefiles
4437if test x$prefix = xNONE; then
4438  full_prefix=$ac_default_prefix
4439else
4440  full_prefix=$prefix
4441fi
4442full_prefix=`cd $full_prefix ; pwd`
4443
4444abs_lib_dir=$full_prefix/lib
4445
4446abs_include_dir=$full_prefix/include
4447
4448abs_bin_dir=$full_prefix/bin
4449
4450
4451
4452if test $coin_have_externals = yes && test x$have_svn = xyes; then
4453  HAVE_EXTERNALS_TRUE=
4454  HAVE_EXTERNALS_FALSE='#'
4455else
4456  HAVE_EXTERNALS_TRUE='#'
4457  HAVE_EXTERNALS_FALSE=
4458fi
4459
4460
4461# AC_MSG_NOTICE([End automake initialisation.])
4462
4463
4464
4465LIBTOOL=
4466if test -r ../libtool; then
4467  coin_config_dir=..
4468  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4469fi
4470if test "x$LIBTOOL" = x; then
4471  if test -r ../../libtool; then
4472    coin_config_dir=../..
4473    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4474  fi
4475fi
4476
4477if test "x$LIBTOOL" = x; then
4478# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4479  # Stuff for libtool
4480  # Check whether --enable-shared or --disable-shared was given.
4481if test "${enable_shared+set}" = set; then
4482  enableval="$enable_shared"
4483  p=${PACKAGE-default}
4484    case $enableval in
4485    yes) enable_shared=yes ;;
4486    no) enable_shared=no ;;
4487    *)
4488      enable_shared=no
4489      # Look at the argument we got.  We use all the common list separators.
4490      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4491      for pkg in $enableval; do
4492        IFS="$lt_save_ifs"
4493        if test "X$pkg" = "X$p"; then
4494          enable_shared=yes
4495        fi
4496      done
4497      IFS="$lt_save_ifs"
4498      ;;
4499    esac
4500else
4501  enable_shared=yes
4502fi;
4503
4504# Check whether --enable-fast-install or --disable-fast-install was given.
4505if test "${enable_fast_install+set}" = set; then
4506  enableval="$enable_fast_install"
4507  p=${PACKAGE-default}
4508    case $enableval in
4509    yes) enable_fast_install=yes ;;
4510    no) enable_fast_install=no ;;
4511    *)
4512      enable_fast_install=no
4513      # Look at the argument we got.  We use all the common list separators.
4514      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4515      for pkg in $enableval; do
4516        IFS="$lt_save_ifs"
4517        if test "X$pkg" = "X$p"; then
4518          enable_fast_install=yes
4519        fi
4520      done
4521      IFS="$lt_save_ifs"
4522      ;;
4523    esac
4524else
4525  enable_fast_install=yes
4526fi;
4527
4528echo "$as_me:$LINENO: checking host system type" >&5
4529echo $ECHO_N "checking host system type... $ECHO_C" >&6
4530if test "${ac_cv_host+set}" = set; then
4531  echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533  ac_cv_host_alias=$host_alias
4534test -z "$ac_cv_host_alias" &&
4535  ac_cv_host_alias=$ac_cv_build_alias
4536ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4537  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4538echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4539   { (exit 1); exit 1; }; }
4540
4541fi
4542echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4543echo "${ECHO_T}$ac_cv_host" >&6
4544host=$ac_cv_host
4545host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4546host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4547host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4548
4549
4550echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4551echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4552if test "${lt_cv_path_SED+set}" = set; then
4553  echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555  # Loop through the user's path and test for sed and gsed.
4556# Then use that list of sed's as ones to test for truncation.
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560  IFS=$as_save_IFS
4561  test -z "$as_dir" && as_dir=.
4562  for lt_ac_prog in sed gsed; do
4563    for ac_exec_ext in '' $ac_executable_extensions; do
4564      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4565        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4566      fi
4567    done
4568  done
4569done
4570lt_ac_max=0
4571lt_ac_count=0
4572# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4573# along with /bin/sed that truncates output.
4574for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4575  test ! -f $lt_ac_sed && continue
4576  cat /dev/null > conftest.in
4577  lt_ac_count=0
4578  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4579  # Check for GNU sed and select it if it is found.
4580  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4581    lt_cv_path_SED=$lt_ac_sed
4582    break
4583  fi
4584  while true; do
4585    cat conftest.in conftest.in >conftest.tmp
4586    mv conftest.tmp conftest.in
4587    cp conftest.in conftest.nl
4588    echo >>conftest.nl
4589    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4590    cmp -s conftest.out conftest.nl || break
4591    # 10000 chars as input seems more than enough
4592    test $lt_ac_count -gt 10 && break
4593    lt_ac_count=`expr $lt_ac_count + 1`
4594    if test $lt_ac_count -gt $lt_ac_max; then
4595      lt_ac_max=$lt_ac_count
4596      lt_cv_path_SED=$lt_ac_sed
4597    fi
4598  done
4599done
4600
4601fi
4602
4603SED=$lt_cv_path_SED
4604echo "$as_me:$LINENO: result: $SED" >&5
4605echo "${ECHO_T}$SED" >&6
4606
4607
4608# Check whether --with-gnu-ld or --without-gnu-ld was given.
4609if test "${with_gnu_ld+set}" = set; then
4610  withval="$with_gnu_ld"
4611  test "$withval" = no || with_gnu_ld=yes
4612else
4613  with_gnu_ld=no
4614fi;
4615ac_prog=ld
4616if test "$GCC" = yes; then
4617  # Check if gcc -print-prog-name=ld gives a path.
4618  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4619echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4620  case $host in
4621  *-*-mingw*)
4622    # gcc leaves a trailing carriage return which upsets mingw
4623    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4624  *)
4625    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4626  esac
4627  case $ac_prog in
4628    # Accept absolute paths.
4629    [\\/]* | ?:[\\/]*)
4630      re_direlt='/[^/][^/]*/\.\./'
4631      # Canonicalize the pathname of ld
4632      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4633      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4634        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4635      done
4636      test -z "$LD" && LD="$ac_prog"
4637      ;;
4638  "")
4639    # If it fails, then pretend we aren't using GCC.
4640    ac_prog=ld
4641    ;;
4642  *)
4643    # If it is relative, then search for the first ld in PATH.
4644    with_gnu_ld=unknown
4645    ;;
4646  esac
4647elif test "$with_gnu_ld" = yes; then
4648  echo "$as_me:$LINENO: checking for GNU ld" >&5
4649echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4650else
4651  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4652echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4653fi
4654if test "${lt_cv_path_LD+set}" = set; then
4655  echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657  if test -z "$LD"; then
4658  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4659  for ac_dir in $PATH; do
4660    IFS="$lt_save_ifs"
4661    test -z "$ac_dir" && ac_dir=.
4662    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4663      lt_cv_path_LD="$ac_dir/$ac_prog"
4664      # Check to see if the program is GNU ld.  I'd rather use --version,
4665      # but apparently some variants of GNU ld only accept -v.
4666      # Break only if it was the GNU/non-GNU ld that we prefer.
4667      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4668      *GNU* | *'with BFD'*)
4669        test "$with_gnu_ld" != no && break
4670        ;;
4671      *)
4672        test "$with_gnu_ld" != yes && break
4673        ;;
4674      esac
4675    fi
4676  done
4677  IFS="$lt_save_ifs"
4678else
4679  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4680fi
4681fi
4682
4683LD="$lt_cv_path_LD"
4684if test -n "$LD"; then
4685  echo "$as_me:$LINENO: result: $LD" >&5
4686echo "${ECHO_T}$LD" >&6
4687else
4688  echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6
4690fi
4691test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4692echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4693   { (exit 1); exit 1; }; }
4694echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4695echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4696if test "${lt_cv_prog_gnu_ld+set}" = set; then
4697  echo $ECHO_N "(cached) $ECHO_C" >&6
4698else
4699  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4700case `$LD -v 2>&1 </dev/null` in
4701*GNU* | *'with BFD'*)
4702  lt_cv_prog_gnu_ld=yes
4703  ;;
4704*)
4705  lt_cv_prog_gnu_ld=no
4706  ;;
4707esac
4708fi
4709echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4710echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4711with_gnu_ld=$lt_cv_prog_gnu_ld
4712
4713
4714echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4715echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4716if test "${lt_cv_ld_reload_flag+set}" = set; then
4717  echo $ECHO_N "(cached) $ECHO_C" >&6
4718else
4719  lt_cv_ld_reload_flag='-r'
4720fi
4721echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4722echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4723reload_flag=$lt_cv_ld_reload_flag
4724case $reload_flag in
4725"" | " "*) ;;
4726*) reload_flag=" $reload_flag" ;;
4727esac
4728reload_cmds='$LD$reload_flag -o $output$reload_objs'
4729case $host_os in
4730  darwin*)
4731    if test "$GCC" = yes; then
4732      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4733    else
4734      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4735    fi
4736    ;;
4737esac
4738
4739echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4740echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4741if test "${lt_cv_path_NM+set}" = set; then
4742  echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744  if test -n "$NM"; then
4745  # Let the user override the test.
4746  lt_cv_path_NM="$NM"
4747else
4748  lt_nm_to_check="${ac_tool_prefix}nm"
4749  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4750    lt_nm_to_check="$lt_nm_to_check nm"
4751  fi
4752  for lt_tmp_nm in $lt_nm_to_check; do
4753    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4754    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4755      IFS="$lt_save_ifs"
4756      test -z "$ac_dir" && ac_dir=.
4757      tmp_nm="$ac_dir/$lt_tmp_nm"
4758      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4759        # Check to see if the nm accepts a BSD-compat flag.
4760        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4761        #   nm: unknown option "B" ignored
4762        # Tru64's nm complains that /dev/null is an invalid object file
4763        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4764        */dev/null* | *'Invalid file or object type'*)
4765          lt_cv_path_NM="$tmp_nm -B"
4766          break
4767          ;;
4768        *)
4769          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4770          */dev/null*)
4771            lt_cv_path_NM="$tmp_nm -p"
4772            break
4773            ;;
4774          *)
4775            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4776            continue # so that we can try to find one that supports BSD flags
4777            ;;
4778          esac
4779          ;;
4780        esac
4781      fi
4782    done
4783    IFS="$lt_save_ifs"
4784  done
4785  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4786fi
4787fi
4788echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4789echo "${ECHO_T}$lt_cv_path_NM" >&6
4790NM="$lt_cv_path_NM"
4791
4792echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4793echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4794if test "${lt_cv_deplibs_check_method+set}" = set; then
4795  echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
4797  lt_cv_file_magic_cmd='$MAGIC_CMD'
4798lt_cv_file_magic_test_file=
4799lt_cv_deplibs_check_method='unknown'
4800# Need to set the preceding variable on all platforms that support
4801# interlibrary dependencies.
4802# 'none' -- dependencies not supported.
4803# `unknown' -- same as none, but documents that we really don't know.
4804# 'pass_all' -- all dependencies passed with no checks.
4805# 'test_compile' -- check by making test program.
4806# 'file_magic [[regex]]' -- check by looking for files in library path
4807# which responds to the $file_magic_cmd with a given extended regex.
4808# If you have `file' or equivalent on your system and you're not sure
4809# whether `pass_all' will *always* work, you probably want this one.
4810
4811case $host_os in
4812aix4* | aix5*)
4813  lt_cv_deplibs_check_method=pass_all
4814  ;;
4815
4816beos*)
4817  lt_cv_deplibs_check_method=pass_all
4818  ;;
4819
4820bsdi[45]*)
4821  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4822  lt_cv_file_magic_cmd='/usr/bin/file -L'
4823  lt_cv_file_magic_test_file=/shlib/libc.so
4824  ;;
4825
4826cygwin*)
4827  # func_win32_libid is a shell function defined in ltmain.sh
4828  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4829  lt_cv_file_magic_cmd='func_win32_libid'
4830  ;;
4831
4832mingw* | pw32*)
4833  # Base MSYS/MinGW do not provide the 'file' command needed by
4834  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4835  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4836  lt_cv_file_magic_cmd='$OBJDUMP -f'
4837  ;;
4838
4839darwin* | rhapsody*)
4840  lt_cv_deplibs_check_method=pass_all
4841  ;;
4842
4843freebsd* | kfreebsd*-gnu | dragonfly*)
4844  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4845    case $host_cpu in
4846    i*86 )
4847      # Not sure whether the presence of OpenBSD here was a mistake.
4848      # Let's accept both of them until this is cleared up.
4849      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4850      lt_cv_file_magic_cmd=/usr/bin/file
4851      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4852      ;;
4853    esac
4854  else
4855    lt_cv_deplibs_check_method=pass_all
4856  fi
4857  ;;
4858
4859gnu*)
4860  lt_cv_deplibs_check_method=pass_all
4861  ;;
4862
4863hpux10.20* | hpux11*)
4864  lt_cv_file_magic_cmd=/usr/bin/file
4865  case $host_cpu in
4866  ia64*)
4867    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4868    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4869    ;;
4870  hppa*64*)
4871    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]'
4872    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4873    ;;
4874  *)
4875    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4876    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4877    ;;
4878  esac
4879  ;;
4880
4881interix3*)
4882  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4883  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4884  ;;
4885
4886irix5* | irix6* | nonstopux*)
4887  case $LD in
4888  *-32|*"-32 ") libmagic=32-bit;;
4889  *-n32|*"-n32 ") libmagic=N32;;
4890  *-64|*"-64 ") libmagic=64-bit;;
4891  *) libmagic=never-match;;
4892  esac
4893  lt_cv_deplibs_check_method=pass_all
4894  ;;
4895
4896# This must be Linux ELF.
4897linux*)
4898  lt_cv_deplibs_check_method=pass_all
4899  ;;
4900
4901netbsd*)
4902  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4903    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4904  else
4905    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4906  fi
4907  ;;
4908
4909newos6*)
4910  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4911  lt_cv_file_magic_cmd=/usr/bin/file
4912  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4913  ;;
4914
4915nto-qnx*)
4916  lt_cv_deplibs_check_method=unknown
4917  ;;
4918
4919openbsd*)
4920  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4921    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4922  else
4923    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4924  fi
4925  ;;
4926
4927osf3* | osf4* | osf5*)
4928  lt_cv_deplibs_check_method=pass_all
4929  ;;
4930
4931solaris*)
4932  lt_cv_deplibs_check_method=pass_all
4933  ;;
4934
4935sysv4 | sysv4.3*)
4936  case $host_vendor in
4937  motorola)
4938    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]'
4939    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4940    ;;
4941  ncr)
4942    lt_cv_deplibs_check_method=pass_all
4943    ;;
4944  sequent)
4945    lt_cv_file_magic_cmd='/bin/file'
4946    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4947    ;;
4948  sni)
4949    lt_cv_file_magic_cmd='/bin/file'
4950    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4951    lt_cv_file_magic_test_file=/lib/libc.so
4952    ;;
4953  siemens)
4954    lt_cv_deplibs_check_method=pass_all
4955    ;;
4956  pc)
4957    lt_cv_deplibs_check_method=pass_all
4958    ;;
4959  esac
4960  ;;
4961
4962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4963  lt_cv_deplibs_check_method=pass_all
4964  ;;
4965esac
4966
4967fi
4968echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4969echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4970file_magic_cmd=$lt_cv_file_magic_cmd
4971deplibs_check_method=$lt_cv_deplibs_check_method
4972test -z "$deplibs_check_method" && deplibs_check_method=unknown
4973
4974
4975
4976
4977# If no C compiler was specified, use CC.
4978LTCC=${LTCC-"$CC"}
4979
4980# If no C compiler flags were specified, use CFLAGS.
4981LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4982
4983# Allow CC to be a program name with arguments.
4984compiler=$CC
4985
4986# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4987if test "${enable_libtool_lock+set}" = set; then
4988  enableval="$enable_libtool_lock"
4989
4990fi;
4991test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4992
4993# Some flags need to be propagated to the compiler or linker for good
4994# libtool support.
4995case $host in
4996ia64-*-hpux*)
4997  # Find out which ABI we are using.
4998  echo 'int i;' > conftest.$ac_ext
4999  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000  (eval $ac_compile) 2>&5
5001  ac_status=$?
5002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); }; then
5004    case `/usr/bin/file conftest.$ac_objext` in
5005    *ELF-32*)
5006      HPUX_IA64_MODE="32"
5007      ;;
5008    *ELF-64*)
5009      HPUX_IA64_MODE="64"
5010      ;;
5011    esac
5012  fi
5013  rm -rf conftest*
5014  ;;
5015*-*-irix6*)
5016  # Find out which ABI we are using.
5017  echo '#line 5017 "configure"' > conftest.$ac_ext
5018  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019  (eval $ac_compile) 2>&5
5020  ac_status=$?
5021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022  (exit $ac_status); }; then
5023   if test "$lt_cv_prog_gnu_ld" = yes; then
5024    case `/usr/bin/file conftest.$ac_objext` in
5025    *32-bit*)
5026      LD="${LD-ld} -melf32bsmip"
5027      ;;
5028    *N32*)
5029      LD="${LD-ld} -melf32bmipn32"
5030      ;;
5031    *64-bit*)
5032      LD="${LD-ld} -melf64bmip"
5033      ;;
5034    esac
5035   else
5036    case `/usr/bin/file conftest.$ac_objext` in
5037    *32-bit*)
5038      LD="${LD-ld} -32"
5039      ;;
5040    *N32*)
5041      LD="${LD-ld} -n32"
5042      ;;
5043    *64-bit*)
5044      LD="${LD-ld} -64"
5045      ;;
5046    esac
5047   fi
5048  fi
5049  rm -rf conftest*
5050  ;;
5051
5052x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5053  # Find out which ABI we are using.
5054  echo 'int i;' > conftest.$ac_ext
5055  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056  (eval $ac_compile) 2>&5
5057  ac_status=$?
5058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); }; then
5060    case `/usr/bin/file conftest.o` in
5061    *32-bit*)
5062      case $host in
5063        x86_64-*linux*)
5064          LD="${LD-ld} -m elf_i386"
5065          ;;
5066        ppc64-*linux*|powerpc64-*linux*)
5067          LD="${LD-ld} -m elf32ppclinux"
5068          ;;
5069        s390x-*linux*)
5070          LD="${LD-ld} -m elf_s390"
5071          ;;
5072        sparc64-*linux*)
5073          LD="${LD-ld} -m elf32_sparc"
5074          ;;
5075      esac
5076      ;;
5077    *64-bit*)
5078      case $host in
5079        x86_64-*linux*)
5080          LD="${LD-ld} -m elf_x86_64"
5081          ;;
5082        ppc*-*linux*|powerpc*-*linux*)
5083          LD="${LD-ld} -m elf64ppc"
5084          ;;
5085        s390*-*linux*)
5086          LD="${LD-ld} -m elf64_s390"
5087          ;;
5088        sparc*-*linux*)
5089          LD="${LD-ld} -m elf64_sparc"
5090          ;;
5091      esac
5092      ;;
5093    esac
5094  fi
5095  rm -rf conftest*
5096  ;;
5097
5098*-*-sco3.2v5*)
5099  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5100  SAVE_CFLAGS="$CFLAGS"
5101  CFLAGS="$CFLAGS -belf"
5102  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5103echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5104if test "${lt_cv_cc_needs_belf+set}" = set; then
5105  echo $ECHO_N "(cached) $ECHO_C" >&6
5106else
5107  ac_ext=c
5108ac_cpp='$CPP $CPPFLAGS'
5109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112
5113     cat >conftest.$ac_ext <<_ACEOF
5114/* confdefs.h.  */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h.  */
5119
5120int
5121main ()
5122{
5123
5124  ;
5125  return 0;
5126}
5127_ACEOF
5128rm -f conftest.$ac_objext conftest$ac_exeext
5129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5130  (eval $ac_link) 2>conftest.er1
5131  ac_status=$?
5132  grep -v '^ *+' conftest.er1 >conftest.err
5133  rm -f conftest.er1
5134  cat conftest.err >&5
5135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136  (exit $ac_status); } &&
5137         { ac_try='test -z "$ac_c_werror_flag"
5138                         || test ! -s conftest.err'
5139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140  (eval $ac_try) 2>&5
5141  ac_status=$?
5142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143  (exit $ac_status); }; } &&
5144         { ac_try='test -s conftest$ac_exeext'
5145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146  (eval $ac_try) 2>&5
5147  ac_status=$?
5148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149  (exit $ac_status); }; }; then
5150  lt_cv_cc_needs_belf=yes
5151else
5152  echo "$as_me: failed program was:" >&5
5153sed 's/^/| /' conftest.$ac_ext >&5
5154
5155lt_cv_cc_needs_belf=no
5156fi
5157rm -f conftest.err conftest.$ac_objext \
5158      conftest$ac_exeext conftest.$ac_ext
5159     ac_ext=c
5160ac_cpp='$CPP $CPPFLAGS'
5161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163ac_compiler_gnu=$ac_cv_c_compiler_gnu
5164
5165fi
5166echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5167echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5168  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5169    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5170    CFLAGS="$SAVE_CFLAGS"
5171  fi
5172  ;;
5173sparc*-*solaris*)
5174  # Find out which ABI we are using.
5175  echo 'int i;' > conftest.$ac_ext
5176  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5177  (eval $ac_compile) 2>&5
5178  ac_status=$?
5179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180  (exit $ac_status); }; then
5181    case `/usr/bin/file conftest.o` in
5182    *64-bit*)
5183      case $lt_cv_prog_gnu_ld in
5184      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5185      *)    LD="${LD-ld} -64" ;;
5186      esac
5187      ;;
5188    esac
5189  fi
5190  rm -rf conftest*
5191  ;;
5192
5193
5194esac
5195
5196need_locks="$enable_libtool_lock"
5197
5198
5199ac_ext=c
5200ac_cpp='$CPP $CPPFLAGS'
5201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5205echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5206# On Suns, sometimes $CPP names a directory.
5207if test -n "$CPP" && test -d "$CPP"; then
5208  CPP=
5209fi
5210if test -z "$CPP"; then
5211  if test "${ac_cv_prog_CPP+set}" = set; then
5212  echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214      # Double quotes because CPP needs to be expanded
5215    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5216    do
5217      ac_preproc_ok=false
5218for ac_c_preproc_warn_flag in '' yes
5219do
5220  # Use a header file that comes with gcc, so configuring glibc
5221  # with a fresh cross-compiler works.
5222  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223  # <limits.h> exists even on freestanding compilers.
5224  # On the NeXT, cc -E runs the code through the compiler's parser,
5225  # not just through cpp. "Syntax error" is here to catch this case.
5226  cat >conftest.$ac_ext <<_ACEOF
5227/* confdefs.h.  */
5228_ACEOF
5229cat confdefs.h >>conftest.$ac_ext
5230cat >>conftest.$ac_ext <<_ACEOF
5231/* end confdefs.h.  */
5232#ifdef __STDC__
5233# include <limits.h>
5234#else
5235# include <assert.h>
5236#endif
5237                     Syntax error
5238_ACEOF
5239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5240  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5241  ac_status=$?
5242  grep -v '^ *+' conftest.er1 >conftest.err
5243  rm -f conftest.er1
5244  cat conftest.err >&5
5245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246  (exit $ac_status); } >/dev/null; then
5247  if test -s conftest.err; then
5248    ac_cpp_err=$ac_c_preproc_warn_flag
5249    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5250  else
5251    ac_cpp_err=
5252  fi
5253else
5254  ac_cpp_err=yes
5255fi
5256if test -z "$ac_cpp_err"; then
5257  :
5258else
5259  echo "$as_me: failed program was:" >&5
5260sed 's/^/| /' conftest.$ac_ext >&5
5261
5262  # Broken: fails on valid input.
5263continue
5264fi
5265rm -f conftest.err conftest.$ac_ext
5266
5267  # OK, works on sane cases.  Now check whether non-existent headers
5268  # can be detected and how.
5269  cat >conftest.$ac_ext <<_ACEOF
5270/* confdefs.h.  */
5271_ACEOF
5272cat confdefs.h >>conftest.$ac_ext
5273cat >>conftest.$ac_ext <<_ACEOF
5274/* end confdefs.h.  */
5275#include <ac_nonexistent.h>
5276_ACEOF
5277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5278  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5279  ac_status=$?
5280  grep -v '^ *+' conftest.er1 >conftest.err
5281  rm -f conftest.er1
5282  cat conftest.err >&5
5283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284  (exit $ac_status); } >/dev/null; then
5285  if test -s conftest.err; then
5286    ac_cpp_err=$ac_c_preproc_warn_flag
5287    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5288  else
5289    ac_cpp_err=
5290  fi
5291else
5292  ac_cpp_err=yes
5293fi
5294if test -z "$ac_cpp_err"; then
5295  # Broken: success on invalid input.
5296continue
5297else
5298  echo "$as_me: failed program was:" >&5
5299sed 's/^/| /' conftest.$ac_ext >&5
5300
5301  # Passes both tests.
5302ac_preproc_ok=:
5303break
5304fi
5305rm -f conftest.err conftest.$ac_ext
5306
5307done
5308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5309rm -f conftest.err conftest.$ac_ext
5310if $ac_preproc_ok; then
5311  break
5312fi
5313
5314    done
5315    ac_cv_prog_CPP=$CPP
5316
5317fi
5318  CPP=$ac_cv_prog_CPP
5319else
5320  ac_cv_prog_CPP=$CPP
5321fi
5322echo "$as_me:$LINENO: result: $CPP" >&5
5323echo "${ECHO_T}$CPP" >&6
5324ac_preproc_ok=false
5325for ac_c_preproc_warn_flag in '' yes
5326do
5327  # Use a header file that comes with gcc, so configuring glibc
5328  # with a fresh cross-compiler works.
5329  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5330  # <limits.h> exists even on freestanding compilers.
5331  # On the NeXT, cc -E runs the code through the compiler's parser,
5332  # not just through cpp. "Syntax error" is here to catch this case.
5333  cat >conftest.$ac_ext <<_ACEOF
5334/* confdefs.h.  */
5335_ACEOF
5336cat confdefs.h >>conftest.$ac_ext
5337cat >>conftest.$ac_ext <<_ACEOF
5338/* end confdefs.h.  */
5339#ifdef __STDC__
5340# include <limits.h>
5341#else
5342# include <assert.h>
5343#endif
5344                     Syntax error
5345_ACEOF
5346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5347  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5348  ac_status=$?
5349  grep -v '^ *+' conftest.er1 >conftest.err
5350  rm -f conftest.er1
5351  cat conftest.err >&5
5352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353  (exit $ac_status); } >/dev/null; then
5354  if test -s conftest.err; then
5355    ac_cpp_err=$ac_c_preproc_warn_flag
5356    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5357  else
5358    ac_cpp_err=
5359  fi
5360else
5361  ac_cpp_err=yes
5362fi
5363if test -z "$ac_cpp_err"; then
5364  :
5365else
5366  echo "$as_me: failed program was:" >&5
5367sed 's/^/| /' conftest.$ac_ext >&5
5368
5369  # Broken: fails on valid input.
5370continue
5371fi
5372rm -f conftest.err conftest.$ac_ext
5373
5374  # OK, works on sane cases.  Now check whether non-existent headers
5375  # can be detected and how.
5376  cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h.  */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h.  */
5382#include <ac_nonexistent.h>
5383_ACEOF
5384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5385  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5386  ac_status=$?
5387  grep -v '^ *+' conftest.er1 >conftest.err
5388  rm -f conftest.er1
5389  cat conftest.err >&5
5390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391  (exit $ac_status); } >/dev/null; then
5392  if test -s conftest.err; then
5393    ac_cpp_err=$ac_c_preproc_warn_flag
5394    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5395  else
5396    ac_cpp_err=
5397  fi
5398else
5399  ac_cpp_err=yes
5400fi
5401if test -z "$ac_cpp_err"; then
5402  # Broken: success on invalid input.
5403continue
5404else
5405  echo "$as_me: failed program was:" >&5
5406sed 's/^/| /' conftest.$ac_ext >&5
5407
5408  # Passes both tests.
5409ac_preproc_ok=:
5410break
5411fi
5412rm -f conftest.err conftest.$ac_ext
5413
5414done
5415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5416rm -f conftest.err conftest.$ac_ext
5417if $ac_preproc_ok; then
5418  :
5419else
5420  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5421See \`config.log' for more details." >&5
5422echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5423See \`config.log' for more details." >&2;}
5424   { (exit 1); exit 1; }; }
5425fi
5426
5427ac_ext=c
5428ac_cpp='$CPP $CPPFLAGS'
5429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432
5433
5434echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5435echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5436if test "${ac_cv_header_stdc+set}" = set; then
5437  echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439  cat >conftest.$ac_ext <<_ACEOF
5440/* confdefs.h.  */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h.  */
5445#include <stdlib.h>
5446#include <stdarg.h>
5447#include <string.h>
5448#include <float.h>
5449
5450int
5451main ()
5452{
5453
5454  ;
5455  return 0;
5456}
5457_ACEOF
5458rm -f conftest.$ac_objext
5459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460  (eval $ac_compile) 2>conftest.er1
5461  ac_status=$?
5462  grep -v '^ *+' conftest.er1 >conftest.err
5463  rm -f conftest.er1
5464  cat conftest.err >&5
5465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466  (exit $ac_status); } &&
5467         { ac_try='test -z "$ac_c_werror_flag"
5468                         || test ! -s conftest.err'
5469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470  (eval $ac_try) 2>&5
5471  ac_status=$?
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); }; } &&
5474         { ac_try='test -s conftest.$ac_objext'
5475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476  (eval $ac_try) 2>&5
5477  ac_status=$?
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); }; }; then
5480  ac_cv_header_stdc=yes
5481else
5482  echo "$as_me: failed program was:" >&5
5483sed 's/^/| /' conftest.$ac_ext >&5
5484
5485ac_cv_header_stdc=no
5486fi
5487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5488
5489if test $ac_cv_header_stdc = yes; then
5490  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5491  cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h.  */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h.  */
5497#include <string.h>
5498
5499_ACEOF
5500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501  $EGREP "memchr" >/dev/null 2>&1; then
5502  :
5503else
5504  ac_cv_header_stdc=no
5505fi
5506rm -f conftest*
5507
5508fi
5509
5510if test $ac_cv_header_stdc = yes; then
5511  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5512  cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h.  */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h.  */
5518#include <stdlib.h>
5519
5520_ACEOF
5521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5522  $EGREP "free" >/dev/null 2>&1; then
5523  :
5524else
5525  ac_cv_header_stdc=no
5526fi
5527rm -f conftest*
5528
5529fi
5530
5531if test $ac_cv_header_stdc = yes; then
5532  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5533  if test "$cross_compiling" = yes; then
5534  :
5535else
5536  cat >conftest.$ac_ext <<_ACEOF
5537/* confdefs.h.  */
5538_ACEOF
5539cat confdefs.h >>conftest.$ac_ext
5540cat >>conftest.$ac_ext <<_ACEOF
5541/* end confdefs.h.  */
5542#include <ctype.h>
5543#if ((' ' & 0x0FF) == 0x020)
5544# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5545# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5546#else
5547# define ISLOWER(c) \
5548                   (('a' <= (c) && (c) <= 'i') \
5549                     || ('j' <= (c) && (c) <= 'r') \
5550                     || ('s' <= (c) && (c) <= 'z'))
5551# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5552#endif
5553
5554#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5555int
5556main ()
5557{
5558  int i;
5559  for (i = 0; i < 256; i++)
5560    if (XOR (islower (i), ISLOWER (i))
5561        || toupper (i) != TOUPPER (i))
5562      exit(2);
5563  exit (0);
5564}
5565_ACEOF
5566rm -f conftest$ac_exeext
5567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5568  (eval $ac_link) 2>&5
5569  ac_status=$?
5570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573  (eval $ac_try) 2>&5
5574  ac_status=$?
5575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576  (exit $ac_status); }; }; then
5577  :
5578else
5579  echo "$as_me: program exited with status $ac_status" >&5
5580echo "$as_me: failed program was:" >&5
5581sed 's/^/| /' conftest.$ac_ext >&5
5582
5583( exit $ac_status )
5584ac_cv_header_stdc=no
5585fi
5586rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5587fi
5588fi
5589fi
5590echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5591echo "${ECHO_T}$ac_cv_header_stdc" >&6
5592if test $ac_cv_header_stdc = yes; then
5593
5594cat >>confdefs.h <<\_ACEOF
5595#define STDC_HEADERS 1
5596_ACEOF
5597
5598fi
5599
5600# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5611                  inttypes.h stdint.h unistd.h
5612do
5613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5614echo "$as_me:$LINENO: checking for $ac_header" >&5
5615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5616if eval "test \"\${$as_ac_Header+set}\" = set"; then
5617  echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619  cat >conftest.$ac_ext <<_ACEOF
5620/* confdefs.h.  */
5621_ACEOF
5622cat confdefs.h >>conftest.$ac_ext
5623cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h.  */
5625$ac_includes_default
5626
5627#include <$ac_header>
5628_ACEOF
5629rm -f conftest.$ac_objext
5630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631  (eval $ac_compile) 2>conftest.er1
5632  ac_status=$?
5633  grep -v '^ *+' conftest.er1 >conftest.err
5634  rm -f conftest.er1
5635  cat conftest.err >&5
5636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637  (exit $ac_status); } &&
5638         { ac_try='test -z "$ac_c_werror_flag"
5639                         || test ! -s conftest.err'
5640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641  (eval $ac_try) 2>&5
5642  ac_status=$?
5643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644  (exit $ac_status); }; } &&
5645         { ac_try='test -s conftest.$ac_objext'
5646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647  (eval $ac_try) 2>&5
5648  ac_status=$?
5649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); }; }; then
5651  eval "$as_ac_Header=yes"
5652else
5653  echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
5655
5656eval "$as_ac_Header=no"
5657fi
5658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5659fi
5660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5662if test `eval echo '${'$as_ac_Header'}'` = yes; then
5663  cat >>confdefs.h <<_ACEOF
5664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5665_ACEOF
5666
5667fi
5668
5669done
5670
5671
5672
5673for ac_header in dlfcn.h
5674do
5675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5676if eval "test \"\${$as_ac_Header+set}\" = set"; then
5677  echo "$as_me:$LINENO: checking for $ac_header" >&5
5678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5679if eval "test \"\${$as_ac_Header+set}\" = set"; then
5680  echo $ECHO_N "(cached) $ECHO_C" >&6
5681fi
5682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5684else
5685  # Is the header compilable?
5686echo "$as_me:$LINENO: checking $ac_header usability" >&5
5687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5688cat >conftest.$ac_ext <<_ACEOF
5689/* confdefs.h.  */
5690_ACEOF
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h.  */
5694$ac_includes_default
5695#include <$ac_header>
5696_ACEOF
5697rm -f conftest.$ac_objext
5698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699  (eval $ac_compile) 2>conftest.er1
5700  ac_status=$?
5701  grep -v '^ *+' conftest.er1 >conftest.err
5702  rm -f conftest.er1
5703  cat conftest.err >&5
5704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); } &&
5706         { ac_try='test -z "$ac_c_werror_flag"
5707                         || test ! -s conftest.err'
5708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709  (eval $ac_try) 2>&5
5710  ac_status=$?
5711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); }; } &&
5713         { ac_try='test -s conftest.$ac_objext'
5714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715  (eval $ac_try) 2>&5
5716  ac_status=$?
5717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718  (exit $ac_status); }; }; then
5719  ac_header_compiler=yes
5720else
5721  echo "$as_me: failed program was:" >&5
5722sed 's/^/| /' conftest.$ac_ext >&5
5723
5724ac_header_compiler=no
5725fi
5726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5727echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5728echo "${ECHO_T}$ac_header_compiler" >&6
5729
5730# Is the header present?
5731echo "$as_me:$LINENO: checking $ac_header presence" >&5
5732echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5733cat >conftest.$ac_ext <<_ACEOF
5734/* confdefs.h.  */
5735_ACEOF
5736cat confdefs.h >>conftest.$ac_ext
5737cat >>conftest.$ac_ext <<_ACEOF
5738/* end confdefs.h.  */
5739#include <$ac_header>
5740_ACEOF
5741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5742  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5743  ac_status=$?
5744  grep -v '^ *+' conftest.er1 >conftest.err
5745  rm -f conftest.er1
5746  cat conftest.err >&5
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); } >/dev/null; then
5749  if test -s conftest.err; then
5750    ac_cpp_err=$ac_c_preproc_warn_flag
5751    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5752  else
5753    ac_cpp_err=
5754  fi
5755else
5756  ac_cpp_err=yes
5757fi
5758if test -z "$ac_cpp_err"; then
5759  ac_header_preproc=yes
5760else
5761  echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764  ac_header_preproc=no
5765fi
5766rm -f conftest.err conftest.$ac_ext
5767echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5768echo "${ECHO_T}$ac_header_preproc" >&6
5769
5770# So?  What about this header?
5771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5772  yes:no: )
5773    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5774echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5775    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5776echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5777    ac_header_preproc=yes
5778    ;;
5779  no:yes:* )
5780    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5781echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5782    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5783echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5784    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5785echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5786    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5787echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5788    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5789echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5790    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5791echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5792    (
5793      cat <<\_ASBOX
5794## --------------------------------------------------------------- ##
5795## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5796## --------------------------------------------------------------- ##
5797_ASBOX
5798    ) |
5799      sed "s/^/$as_me: WARNING:     /" >&2
5800    ;;
5801esac
5802echo "$as_me:$LINENO: checking for $ac_header" >&5
5803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5804if eval "test \"\${$as_ac_Header+set}\" = set"; then
5805  echo $ECHO_N "(cached) $ECHO_C" >&6
5806else
5807  eval "$as_ac_Header=\$ac_header_preproc"
5808fi
5809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5811
5812fi
5813if test `eval echo '${'$as_ac_Header'}'` = yes; then
5814  cat >>confdefs.h <<_ACEOF
5815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5816_ACEOF
5817
5818fi
5819
5820done
5821
5822ac_ext=cc
5823ac_cpp='$CXXCPP $CPPFLAGS'
5824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5827if test -n "$ac_tool_prefix"; then
5828  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5829  do
5830    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832echo "$as_me:$LINENO: checking for $ac_word" >&5
5833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5834if test "${ac_cv_prog_CXX+set}" = set; then
5835  echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837  if test -n "$CXX"; then
5838  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5839else
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843  IFS=$as_save_IFS
5844  test -z "$as_dir" && as_dir=.
5845  for ac_exec_ext in '' $ac_executable_extensions; do
5846  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849    break 2
5850  fi
5851done
5852done
5853
5854fi
5855fi
5856CXX=$ac_cv_prog_CXX
5857if test -n "$CXX"; then
5858  echo "$as_me:$LINENO: result: $CXX" >&5
5859echo "${ECHO_T}$CXX" >&6
5860else
5861  echo "$as_me:$LINENO: result: no" >&5
5862echo "${ECHO_T}no" >&6
5863fi
5864
5865    test -n "$CXX" && break
5866  done
5867fi
5868if test -z "$CXX"; then
5869  ac_ct_CXX=$CXX
5870  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5871do
5872  # Extract the first word of "$ac_prog", so it can be a program name with args.
5873set dummy $ac_prog; ac_word=$2
5874echo "$as_me:$LINENO: checking for $ac_word" >&5
5875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5877  echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879  if test -n "$ac_ct_CXX"; then
5880  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885  IFS=$as_save_IFS
5886  test -z "$as_dir" && as_dir=.
5887  for ac_exec_ext in '' $ac_executable_extensions; do
5888  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889    ac_cv_prog_ac_ct_CXX="$ac_prog"
5890    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891    break 2
5892  fi
5893done
5894done
5895
5896fi
5897fi
5898ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5899if test -n "$ac_ct_CXX"; then
5900  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5901echo "${ECHO_T}$ac_ct_CXX" >&6
5902else
5903  echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
5905fi
5906
5907  test -n "$ac_ct_CXX" && break
5908done
5909test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5910
5911  CXX=$ac_ct_CXX
5912fi
5913
5914
5915# Provide some information about the compiler.
5916echo "$as_me:$LINENO:" \
5917     "checking for C++ compiler version" >&5
5918ac_compiler=`set X $ac_compile; echo $2`
5919{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5920  (eval $ac_compiler --version </dev/null >&5) 2>&5
5921  ac_status=$?
5922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923  (exit $ac_status); }
5924{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5925  (eval $ac_compiler -v </dev/null >&5) 2>&5
5926  ac_status=$?
5927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928  (exit $ac_status); }
5929{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5930  (eval $ac_compiler -V </dev/null >&5) 2>&5
5931  ac_status=$?
5932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933  (exit $ac_status); }
5934
5935echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5936echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5937if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5938  echo $ECHO_N "(cached) $ECHO_C" >&6
5939else
5940  cat >conftest.$ac_ext <<_ACEOF
5941/* confdefs.h.  */
5942_ACEOF
5943cat confdefs.h >>conftest.$ac_ext
5944cat >>conftest.$ac_ext <<_ACEOF
5945/* end confdefs.h.  */
5946
5947int
5948main ()
5949{
5950#ifndef __GNUC__
5951       choke me
5952#endif
5953
5954  ;
5955  return 0;
5956}
5957_ACEOF
5958rm -f conftest.$ac_objext
5959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5960  (eval $ac_compile) 2>conftest.er1
5961  ac_status=$?
5962  grep -v '^ *+' conftest.er1 >conftest.err
5963  rm -f conftest.er1
5964  cat conftest.err >&5
5965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966  (exit $ac_status); } &&
5967         { ac_try='test -z "$ac_cxx_werror_flag"
5968                         || test ! -s conftest.err'
5969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970  (eval $ac_try) 2>&5
5971  ac_status=$?
5972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973  (exit $ac_status); }; } &&
5974         { ac_try='test -s conftest.$ac_objext'
5975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976  (eval $ac_try) 2>&5
5977  ac_status=$?
5978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979  (exit $ac_status); }; }; then
5980  ac_compiler_gnu=yes
5981else
5982  echo "$as_me: failed program was:" >&5
5983sed 's/^/| /' conftest.$ac_ext >&5
5984
5985ac_compiler_gnu=no
5986fi
5987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5988ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5989
5990fi
5991echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5992echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5993GXX=`test $ac_compiler_gnu = yes && echo yes`
5994ac_test_CXXFLAGS=${CXXFLAGS+set}
5995ac_save_CXXFLAGS=$CXXFLAGS
5996CXXFLAGS="-g"
5997echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5998echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5999if test "${ac_cv_prog_cxx_g+set}" = set; then
6000  echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002  cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h.  */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h.  */
6008
6009int
6010main ()
6011{
6012
6013  ;
6014  return 0;
6015}
6016_ACEOF
6017rm -f conftest.$ac_objext
6018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019  (eval $ac_compile) 2>conftest.er1
6020  ac_status=$?
6021  grep -v '^ *+' conftest.er1 >conftest.err
6022  rm -f conftest.er1
6023  cat conftest.err >&5
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); } &&
6026         { ac_try='test -z "$ac_cxx_werror_flag"
6027                         || test ! -s conftest.err'
6028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029  (eval $ac_try) 2>&5
6030  ac_status=$?
6031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); }; } &&
6033         { ac_try='test -s conftest.$ac_objext'
6034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035  (eval $ac_try) 2>&5
6036  ac_status=$?
6037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038  (exit $ac_status); }; }; then
6039  ac_cv_prog_cxx_g=yes
6040else
6041  echo "$as_me: failed program was:" >&5
6042sed 's/^/| /' conftest.$ac_ext >&5
6043
6044ac_cv_prog_cxx_g=no
6045fi
6046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6047fi
6048echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6049echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6050if test "$ac_test_CXXFLAGS" = set; then
6051  CXXFLAGS=$ac_save_CXXFLAGS
6052elif test $ac_cv_prog_cxx_g = yes; then
6053  if test "$GXX" = yes; then
6054    CXXFLAGS="-g -O2"
6055  else
6056    CXXFLAGS="-g"
6057  fi
6058else
6059  if test "$GXX" = yes; then
6060    CXXFLAGS="-O2"
6061  else
6062    CXXFLAGS=
6063  fi
6064fi
6065for ac_declaration in \
6066   '' \
6067   'extern "C" void std::exit (int) throw (); using std::exit;' \
6068   'extern "C" void std::exit (int); using std::exit;' \
6069   'extern "C" void exit (int) throw ();' \
6070   'extern "C" void exit (int);' \
6071   'void exit (int);'
6072do
6073  cat >conftest.$ac_ext <<_ACEOF
6074/* confdefs.h.  */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h.  */
6079$ac_declaration
6080#include <stdlib.h>
6081int
6082main ()
6083{
6084exit (42);
6085  ;
6086  return 0;
6087}
6088_ACEOF
6089rm -f conftest.$ac_objext
6090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6091  (eval $ac_compile) 2>conftest.er1
6092  ac_status=$?
6093  grep -v '^ *+' conftest.er1 >conftest.err
6094  rm -f conftest.er1
6095  cat conftest.err >&5
6096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097  (exit $ac_status); } &&
6098         { ac_try='test -z "$ac_cxx_werror_flag"
6099                         || test ! -s conftest.err'
6100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101  (eval $ac_try) 2>&5
6102  ac_status=$?
6103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104  (exit $ac_status); }; } &&
6105         { ac_try='test -s conftest.$ac_objext'
6106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107  (eval $ac_try) 2>&5
6108  ac_status=$?
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); }; }; then
6111  :
6112else
6113  echo "$as_me: failed program was:" >&5
6114sed 's/^/| /' conftest.$ac_ext >&5
6115
6116continue
6117fi
6118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6119  cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h.  */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h.  */
6125$ac_declaration
6126int
6127main ()
6128{
6129exit (42);
6130  ;
6131  return 0;
6132}
6133_ACEOF
6134rm -f conftest.$ac_objext
6135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6136  (eval $ac_compile) 2>conftest.er1
6137  ac_status=$?
6138  grep -v '^ *+' conftest.er1 >conftest.err
6139  rm -f conftest.er1
6140  cat conftest.err >&5
6141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142  (exit $ac_status); } &&
6143         { ac_try='test -z "$ac_cxx_werror_flag"
6144                         || test ! -s conftest.err'
6145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146  (eval $ac_try) 2>&5
6147  ac_status=$?
6148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149  (exit $ac_status); }; } &&
6150         { ac_try='test -s conftest.$ac_objext'
6151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152  (eval $ac_try) 2>&5
6153  ac_status=$?
6154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155  (exit $ac_status); }; }; then
6156  break
6157else
6158  echo "$as_me: failed program was:" >&5
6159sed 's/^/| /' conftest.$ac_ext >&5
6160
6161fi
6162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6163done
6164rm -f conftest*
6165if test -n "$ac_declaration"; then
6166  echo '#ifdef __cplusplus' >>confdefs.h
6167  echo $ac_declaration      >>confdefs.h
6168  echo '#endif'             >>confdefs.h
6169fi
6170
6171ac_ext=cc
6172ac_cpp='$CXXCPP $CPPFLAGS'
6173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6176
6177depcc="$CXX"  am_compiler_list=
6178
6179echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6180echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6181if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6182  echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6185  # We make a subdir and do the tests there.  Otherwise we can end up
6186  # making bogus files that we don't know about and never remove.  For
6187  # instance it was reported that on HP-UX the gcc test will end up
6188  # making a dummy file named `D' -- because `-MD' means `put the output
6189  # in D'.
6190  mkdir conftest.dir
6191  # Copy depcomp to subdir because otherwise we won't find it if we're
6192  # using a relative directory.
6193  cp "$am_depcomp" conftest.dir
6194  cd conftest.dir
6195  # We will build objects and dependencies in a subdirectory because
6196  # it helps to detect inapplicable dependency modes.  For instance
6197  # both Tru64's cc and ICC support -MD to output dependencies as a
6198  # side effect of compilation, but ICC will put the dependencies in
6199  # the current directory while Tru64 will put them in the object
6200  # directory.
6201  mkdir sub
6202
6203  am_cv_CXX_dependencies_compiler_type=none
6204  if test "$am_compiler_list" = ""; then
6205     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6206  fi
6207  for depmode in $am_compiler_list; do
6208    # Setup a source with many dependencies, because some compilers
6209    # like to wrap large dependency lists on column 80 (with \), and
6210    # we should not choose a depcomp mode which is confused by this.
6211    #
6212    # We need to recreate these files for each test, as the compiler may
6213    # overwrite some of them when testing with obscure command lines.
6214    # This happens at least with the AIX C compiler.
6215    : > sub/conftest.c
6216    for i in 1 2 3 4 5 6; do
6217      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6218      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6219      # Solaris 8's {/usr,}/bin/sh.
6220      touch sub/conftst$i.h
6221    done
6222    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6223
6224    case $depmode in
6225    nosideeffect)
6226      # after this tag, mechanisms are not by side-effect, so they'll
6227      # only be used when explicitly requested
6228      if test "x$enable_dependency_tracking" = xyes; then
6229        continue
6230      else
6231        break
6232      fi
6233      ;;
6234    none) break ;;
6235    esac
6236    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6237    # mode.  It turns out that the SunPro C++ compiler does not properly
6238    # handle `-M -o', and we need to detect this.
6239    if depmode=$depmode \
6240       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6241       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6242       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6243         >/dev/null 2>conftest.err &&
6244       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6245       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6246       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6247      # icc doesn't choke on unknown options, it will just issue warnings
6248      # or remarks (even with -Werror).  So we grep stderr for any message
6249      # that says an option was ignored or not supported.
6250      # When given -MP, icc 7.0 and 7.1 complain thusly:
6251      #   icc: Command line warning: ignoring option '-M'; no argument required
6252      # The diagnosis changed in icc 8.0:
6253      #   icc: Command line remark: option '-MP' not supported
6254      if (grep 'ignoring option' conftest.err ||
6255          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6256        am_cv_CXX_dependencies_compiler_type=$depmode
6257        break
6258      fi
6259    fi
6260  done
6261
6262  cd ..
6263  rm -rf conftest.dir
6264else
6265  am_cv_CXX_dependencies_compiler_type=none
6266fi
6267
6268fi
6269echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6270echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6271CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6272
6273
6274
6275if
6276  test "x$enable_dependency_tracking" != xno \
6277  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6278  am__fastdepCXX_TRUE=
6279  am__fastdepCXX_FALSE='#'
6280else
6281  am__fastdepCXX_TRUE='#'
6282  am__fastdepCXX_FALSE=
6283fi
6284
6285
6286
6287
6288if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6289    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6290    (test "X$CXX" != "Xg++"))) ; then
6291  ac_ext=cc
6292ac_cpp='$CXXCPP $CPPFLAGS'
6293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6296echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6297echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6298if test -z "$CXXCPP"; then
6299  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6300  echo $ECHO_N "(cached) $ECHO_C" >&6
6301else
6302      # Double quotes because CXXCPP needs to be expanded
6303    for CXXCPP in "$CXX -E" "/lib/cpp"
6304    do
6305      ac_preproc_ok=false
6306for ac_cxx_preproc_warn_flag in '' yes
6307do
6308  # Use a header file that comes with gcc, so configuring glibc
6309  # with a fresh cross-compiler works.
6310  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6311  # <limits.h> exists even on freestanding compilers.
6312  # On the NeXT, cc -E runs the code through the compiler's parser,
6313  # not just through cpp. "Syntax error" is here to catch this case.
6314  cat >conftest.$ac_ext <<_ACEOF
6315/* confdefs.h.  */
6316_ACEOF
6317cat confdefs.h >>conftest.$ac_ext
6318cat >>conftest.$ac_ext <<_ACEOF
6319/* end confdefs.h.  */
6320#ifdef __STDC__
6321# include <limits.h>
6322#else
6323# include <assert.h>
6324#endif
6325                     Syntax error
6326_ACEOF
6327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6328  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6329  ac_status=$?
6330  grep -v '^ *+' conftest.er1 >conftest.err
6331  rm -f conftest.er1
6332  cat conftest.err >&5
6333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334  (exit $ac_status); } >/dev/null; then
6335  if test -s conftest.err; then
6336    ac_cpp_err=$ac_cxx_preproc_warn_flag
6337    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6338  else
6339    ac_cpp_err=
6340  fi
6341else
6342  ac_cpp_err=yes
6343fi
6344if test -z "$ac_cpp_err"; then
6345  :
6346else
6347  echo "$as_me: failed program was:" >&5
6348sed 's/^/| /' conftest.$ac_ext >&5
6349
6350  # Broken: fails on valid input.
6351continue
6352fi
6353rm -f conftest.err conftest.$ac_ext
6354
6355  # OK, works on sane cases.  Now check whether non-existent headers
6356  # can be detected and how.
6357  cat >conftest.$ac_ext <<_ACEOF
6358/* confdefs.h.  */
6359_ACEOF
6360cat confdefs.h >>conftest.$ac_ext
6361cat >>conftest.$ac_ext <<_ACEOF
6362/* end confdefs.h.  */
6363#include <ac_nonexistent.h>
6364_ACEOF
6365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6366  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6367  ac_status=$?
6368  grep -v '^ *+' conftest.er1 >conftest.err
6369  rm -f conftest.er1
6370  cat conftest.err >&5
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); } >/dev/null; then
6373  if test -s conftest.err; then
6374    ac_cpp_err=$ac_cxx_preproc_warn_flag
6375    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6376  else
6377    ac_cpp_err=
6378  fi
6379else
6380  ac_cpp_err=yes
6381fi
6382if test -z "$ac_cpp_err"; then
6383  # Broken: success on invalid input.
6384continue
6385else
6386  echo "$as_me: failed program was:" >&5
6387sed 's/^/| /' conftest.$ac_ext >&5
6388
6389  # Passes both tests.
6390ac_preproc_ok=:
6391break
6392fi
6393rm -f conftest.err conftest.$ac_ext
6394
6395done
6396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6397rm -f conftest.err conftest.$ac_ext
6398if $ac_preproc_ok; then
6399  break
6400fi
6401
6402    done
6403    ac_cv_prog_CXXCPP=$CXXCPP
6404
6405fi
6406  CXXCPP=$ac_cv_prog_CXXCPP
6407else
6408  ac_cv_prog_CXXCPP=$CXXCPP
6409fi
6410echo "$as_me:$LINENO: result: $CXXCPP" >&5
6411echo "${ECHO_T}$CXXCPP" >&6
6412ac_preproc_ok=false
6413for ac_cxx_preproc_warn_flag in '' yes
6414do
6415  # Use a header file that comes with gcc, so configuring glibc
6416  # with a fresh cross-compiler works.
6417  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6418  # <limits.h> exists even on freestanding compilers.
6419  # On the NeXT, cc -E runs the code through the compiler's parser,
6420  # not just through cpp. "Syntax error" is here to catch this case.
6421  cat >conftest.$ac_ext <<_ACEOF
6422/* confdefs.h.  */
6423_ACEOF
6424cat confdefs.h >>conftest.$ac_ext
6425cat >>conftest.$ac_ext <<_ACEOF
6426/* end confdefs.h.  */
6427#ifdef __STDC__
6428# include <limits.h>
6429#else
6430# include <assert.h>
6431#endif
6432                     Syntax error
6433_ACEOF
6434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6435  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6436  ac_status=$?
6437  grep -v '^ *+' conftest.er1 >conftest.err
6438  rm -f conftest.er1
6439  cat conftest.err >&5
6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441  (exit $ac_status); } >/dev/null; then
6442  if test -s conftest.err; then
6443    ac_cpp_err=$ac_cxx_preproc_warn_flag
6444    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6445  else
6446    ac_cpp_err=
6447  fi
6448else
6449  ac_cpp_err=yes
6450fi
6451if test -z "$ac_cpp_err"; then
6452  :
6453else
6454  echo "$as_me: failed program was:" >&5
6455sed 's/^/| /' conftest.$ac_ext >&5
6456
6457  # Broken: fails on valid input.
6458continue
6459fi
6460rm -f conftest.err conftest.$ac_ext
6461
6462  # OK, works on sane cases.  Now check whether non-existent headers
6463  # can be detected and how.
6464  cat >conftest.$ac_ext <<_ACEOF
6465/* confdefs.h.  */
6466_ACEOF
6467cat confdefs.h >>conftest.$ac_ext
6468cat >>conftest.$ac_ext <<_ACEOF
6469/* end confdefs.h.  */
6470#include <ac_nonexistent.h>
6471_ACEOF
6472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6474  ac_status=$?
6475  grep -v '^ *+' conftest.er1 >conftest.err
6476  rm -f conftest.er1
6477  cat conftest.err >&5
6478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479  (exit $ac_status); } >/dev/null; then
6480  if test -s conftest.err; then
6481    ac_cpp_err=$ac_cxx_preproc_warn_flag
6482    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6483  else
6484    ac_cpp_err=
6485  fi
6486else
6487  ac_cpp_err=yes
6488fi
6489if test -z "$ac_cpp_err"; then
6490  # Broken: success on invalid input.
6491continue
6492else
6493  echo "$as_me: failed program was:" >&5
6494sed 's/^/| /' conftest.$ac_ext >&5
6495
6496  # Passes both tests.
6497ac_preproc_ok=:
6498break
6499fi
6500rm -f conftest.err conftest.$ac_ext
6501
6502done
6503# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6504rm -f conftest.err conftest.$ac_ext
6505if $ac_preproc_ok; then
6506  :
6507else
6508  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6509See \`config.log' for more details." >&5
6510echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6511See \`config.log' for more details." >&2;}
6512   { (exit 1); exit 1; }; }
6513fi
6514
6515ac_ext=cc
6516ac_cpp='$CXXCPP $CPPFLAGS'
6517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6520
6521fi
6522
6523
6524ac_ext=f
6525ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6526ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6527ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6528if test -n "$ac_tool_prefix"; then
6529  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6530  do
6531    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6532set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6533echo "$as_me:$LINENO: checking for $ac_word" >&5
6534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6535if test "${ac_cv_prog_F77+set}" = set; then
6536  echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538  if test -n "$F77"; then
6539  ac_cv_prog_F77="$F77" # Let the user override the test.
6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544  IFS=$as_save_IFS
6545  test -z "$as_dir" && as_dir=.
6546  for ac_exec_ext in '' $ac_executable_extensions; do
6547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550    break 2
6551  fi
6552done
6553done
6554
6555fi
6556fi
6557F77=$ac_cv_prog_F77
6558if test -n "$F77"; then
6559  echo "$as_me:$LINENO: result: $F77" >&5
6560echo "${ECHO_T}$F77" >&6
6561else
6562  echo "$as_me:$LINENO: result: no" >&5
6563echo "${ECHO_T}no" >&6
6564fi
6565
6566    test -n "$F77" && break
6567  done
6568fi
6569if test -z "$F77"; then
6570  ac_ct_F77=$F77
6571  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6572do
6573  # Extract the first word of "$ac_prog", so it can be a program name with args.
6574set dummy $ac_prog; ac_word=$2
6575echo "$as_me:$LINENO: checking for $ac_word" >&5
6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6577if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6578  echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580  if test -n "$ac_ct_F77"; then
6581  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6582else
6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586  IFS=$as_save_IFS
6587  test -z "$as_dir" && as_dir=.
6588  for ac_exec_ext in '' $ac_executable_extensions; do
6589  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590    ac_cv_prog_ac_ct_F77="$ac_prog"
6591    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592    break 2
6593  fi
6594done
6595done
6596
6597fi
6598fi
6599ac_ct_F77=$ac_cv_prog_ac_ct_F77
6600if test -n "$ac_ct_F77"; then
6601  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6602echo "${ECHO_T}$ac_ct_F77" >&6
6603else
6604  echo "$as_me:$LINENO: result: no" >&5
6605echo "${ECHO_T}no" >&6
6606fi
6607
6608  test -n "$ac_ct_F77" && break
6609done
6610
6611  F77=$ac_ct_F77
6612fi
6613
6614
6615# Provide some information about the compiler.
6616echo "$as_me:6616:" \
6617     "checking for Fortran 77 compiler version" >&5
6618ac_compiler=`set X $ac_compile; echo $2`
6619{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6620  (eval $ac_compiler --version </dev/null >&5) 2>&5
6621  ac_status=$?
6622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623  (exit $ac_status); }
6624{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6625  (eval $ac_compiler -v </dev/null >&5) 2>&5
6626  ac_status=$?
6627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628  (exit $ac_status); }
6629{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6630  (eval $ac_compiler -V </dev/null >&5) 2>&5
6631  ac_status=$?
6632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633  (exit $ac_status); }
6634rm -f a.out
6635
6636# If we don't use `.F' as extension, the preprocessor is not run on the
6637# input file.  (Note that this only needs to work for GNU compilers.)
6638ac_save_ext=$ac_ext
6639ac_ext=F
6640echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6641echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6642if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6643  echo $ECHO_N "(cached) $ECHO_C" >&6
6644else
6645  cat >conftest.$ac_ext <<_ACEOF
6646      program main
6647#ifndef __GNUC__
6648       choke me
6649#endif
6650
6651      end
6652_ACEOF
6653rm -f conftest.$ac_objext
6654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655  (eval $ac_compile) 2>conftest.er1
6656  ac_status=$?
6657  grep -v '^ *+' conftest.er1 >conftest.err
6658  rm -f conftest.er1
6659  cat conftest.err >&5
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); } &&
6662         { ac_try='test -z "$ac_f77_werror_flag"
6663                         || test ! -s conftest.err'
6664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665  (eval $ac_try) 2>&5
6666  ac_status=$?
6667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668  (exit $ac_status); }; } &&
6669         { ac_try='test -s conftest.$ac_objext'
6670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671  (eval $ac_try) 2>&5
6672  ac_status=$?
6673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674  (exit $ac_status); }; }; then
6675  ac_compiler_gnu=yes
6676else
6677  echo "$as_me: failed program was:" >&5
6678sed 's/^/| /' conftest.$ac_ext >&5
6679
6680ac_compiler_gnu=no
6681fi
6682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6683ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6684
6685fi
6686echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6687echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6688ac_ext=$ac_save_ext
6689ac_test_FFLAGS=${FFLAGS+set}
6690ac_save_FFLAGS=$FFLAGS
6691FFLAGS=
6692echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6693echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6694if test "${ac_cv_prog_f77_g+set}" = set; then
6695  echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697  FFLAGS=-g
6698cat >conftest.$ac_ext <<_ACEOF
6699      program main
6700
6701      end
6702_ACEOF
6703rm -f conftest.$ac_objext
6704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705  (eval $ac_compile) 2>conftest.er1
6706  ac_status=$?
6707  grep -v '^ *+' conftest.er1 >conftest.err
6708  rm -f conftest.er1
6709  cat conftest.err >&5
6710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711  (exit $ac_status); } &&
6712         { ac_try='test -z "$ac_f77_werror_flag"
6713                         || test ! -s conftest.err'
6714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715  (eval $ac_try) 2>&5
6716  ac_status=$?
6717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718  (exit $ac_status); }; } &&
6719         { ac_try='test -s conftest.$ac_objext'
6720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721  (eval $ac_try) 2>&5
6722  ac_status=$?
6723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724  (exit $ac_status); }; }; then
6725  ac_cv_prog_f77_g=yes
6726else
6727  echo "$as_me: failed program was:" >&5
6728sed 's/^/| /' conftest.$ac_ext >&5
6729
6730ac_cv_prog_f77_g=no
6731fi
6732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6733
6734fi
6735echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6736echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6737if test "$ac_test_FFLAGS" = set; then
6738  FFLAGS=$ac_save_FFLAGS
6739elif test $ac_cv_prog_f77_g = yes; then
6740  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6741    FFLAGS="-g -O2"
6742  else
6743    FFLAGS="-g"
6744  fi
6745else
6746  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6747    FFLAGS="-O2"
6748  else
6749    FFLAGS=
6750  fi
6751fi
6752
6753G77=`test $ac_compiler_gnu = yes && echo yes`
6754ac_ext=c
6755ac_cpp='$CPP $CPPFLAGS'
6756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758ac_compiler_gnu=$ac_cv_c_compiler_gnu
6759
6760
6761
6762# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6763
6764# find the maximum length of command line arguments
6765echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6766echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6767if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6768  echo $ECHO_N "(cached) $ECHO_C" >&6
6769else
6770    i=0
6771  teststring="ABCD"
6772
6773  case $build_os in
6774  msdosdjgpp*)
6775    # On DJGPP, this test can blow up pretty badly due to problems in libc
6776    # (any single argument exceeding 2000 bytes causes a buffer overrun
6777    # during glob expansion).  Even if it were fixed, the result of this
6778    # check would be larger than it should be.
6779    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6780    ;;
6781
6782  gnu*)
6783    # Under GNU Hurd, this test is not required because there is
6784    # no limit to the length of command line arguments.
6785    # Libtool will interpret -1 as no limit whatsoever
6786    lt_cv_sys_max_cmd_len=-1;
6787    ;;
6788
6789  cygwin* | mingw*)
6790    # On Win9x/ME, this test blows up -- it succeeds, but takes
6791    # about 5 minutes as the teststring grows exponentially.
6792    # Worse, since 9x/ME are not pre-emptively multitasking,
6793    # you end up with a "frozen" computer, even though with patience
6794    # the test eventually succeeds (with a max line length of 256k).
6795    # Instead, let's just punt: use the minimum linelength reported by
6796    # all of the supported platforms: 8192 (on NT/2K/XP).
6797    lt_cv_sys_max_cmd_len=8192;
6798    ;;
6799
6800  amigaos*)
6801    # On AmigaOS with pdksh, this test takes hours, literally.
6802    # So we just punt and use a minimum line length of 8192.
6803    lt_cv_sys_max_cmd_len=8192;
6804    ;;
6805
6806  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6807    # This has been around since 386BSD, at least.  Likely further.
6808    if test -x /sbin/sysctl; then
6809      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6810    elif test -x /usr/sbin/sysctl; then
6811      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6812    else
6813      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6814    fi
6815    # And add a safety zone
6816    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6817    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6818    ;;
6819
6820  interix*)
6821    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6822    lt_cv_sys_max_cmd_len=196608
6823    ;;
6824
6825  osf*)
6826    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6827    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6828    # nice to cause kernel panics so lets avoid the loop below.
6829    # First set a reasonable default.
6830    lt_cv_sys_max_cmd_len=16384
6831    #
6832    if test -x /sbin/sysconfig; then
6833      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6834        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6835      esac
6836    fi
6837    ;;
6838  sco3.2v5*)
6839    lt_cv_sys_max_cmd_len=102400
6840    ;;
6841  sysv5* | sco5v6* | sysv4.2uw2*)
6842    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6843    if test -n "$kargmax"; then
6844      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6845    else
6846      lt_cv_sys_max_cmd_len=32768
6847    fi
6848    ;;
6849  *)
6850    # If test is not a shell built-in, we'll probably end up computing a
6851    # maximum length that is only half of the actual maximum length, but
6852    # we can't tell.
6853    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6854    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6855               = "XX$teststring") >/dev/null 2>&1 &&
6856            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6857            lt_cv_sys_max_cmd_len=$new_result &&
6858            test $i != 17 # 1/2 MB should be enough
6859    do
6860      i=`expr $i + 1`
6861      teststring=$teststring$teststring
6862    done
6863    teststring=
6864    # Add a significant safety factor because C++ compilers can tack on massive
6865    # amounts of additional arguments before passing them to the linker.
6866    # It appears as though 1/2 is a usable value.
6867    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6868    ;;
6869  esac
6870
6871fi
6872
6873if test -n $lt_cv_sys_max_cmd_len ; then
6874  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6875echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6876else
6877  echo "$as_me:$LINENO: result: none" >&5
6878echo "${ECHO_T}none" >&6
6879fi
6880
6881
6882
6883
6884# Check for command to grab the raw symbol name followed by C symbol from nm.
6885echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6886echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6887if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6888  echo $ECHO_N "(cached) $ECHO_C" >&6
6889else
6890
6891# These are sane defaults that work on at least a few old systems.
6892# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6893
6894# Character class describing NM global symbol codes.
6895symcode='[BCDEGRST]'
6896
6897# Regexp to match symbols that can be accessed directly from C.
6898sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6899
6900# Transform an extracted symbol line into a proper C declaration
6901lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6902
6903# Transform an extracted symbol line into symbol name and symbol address
6904lt_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'"
6905
6906# Define system-specific variables.
6907case $host_os in
6908aix*)
6909  symcode='[BCDT]'
6910  ;;
6911cygwin* | mingw* | pw32*)
6912  symcode='[ABCDGISTW]'
6913  ;;
6914hpux*) # Its linker distinguishes data from code symbols
6915  if test "$host_cpu" = ia64; then
6916    symcode='[ABCDEGRST]'
6917  fi
6918  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6919  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'"
6920  ;;
6921linux*)
6922  if test "$host_cpu" = ia64; then
6923    symcode='[ABCDGIRSTW]'
6924    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6925    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'"
6926  fi
6927  ;;
6928irix* | nonstopux*)
6929  symcode='[BCDEGRST]'
6930  ;;
6931osf*)
6932  symcode='[BCDEGQRST]'
6933  ;;
6934solaris*)
6935  symcode='[BDRT]'
6936  ;;
6937sco3.2v5*)
6938  symcode='[DT]'
6939  ;;
6940sysv4.2uw2*)
6941  symcode='[DT]'
6942  ;;
6943sysv5* | sco5v6* | unixware* | OpenUNIX*)
6944  symcode='[ABDT]'
6945  ;;
6946sysv4)
6947  symcode='[DFNSTU]'
6948  ;;
6949esac
6950
6951# Handle CRLF in mingw tool chain
6952opt_cr=
6953case $build_os in
6954mingw*)
6955  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6956  ;;
6957esac
6958
6959# If we're using GNU nm, then use its standard symbol codes.
6960case `$NM -V 2>&1` in
6961*GNU* | *'with BFD'*)
6962  symcode='[ABCDGIRSTW]' ;;
6963esac
6964
6965# Try without a prefix undercore, then with it.
6966for ac_symprfx in "" "_"; do
6967
6968  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6969  symxfrm="\\1 $ac_symprfx\\2 \\2"
6970
6971  # Write the raw and C identifiers.
6972  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6973
6974  # Check to see that the pipe works correctly.
6975  pipe_works=no
6976
6977  rm -f conftest*
6978  cat > conftest.$ac_ext <<EOF
6979#ifdef __cplusplus
6980extern "C" {
6981#endif
6982char nm_test_var;
6983void nm_test_func(){}
6984#ifdef __cplusplus
6985}
6986#endif
6987int main(){nm_test_var='a';nm_test_func();return(0);}
6988EOF
6989
6990  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991  (eval $ac_compile) 2>&5
6992  ac_status=$?
6993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994  (exit $ac_status); }; then
6995    # Now try to grab the symbols.
6996    nlist=conftest.nm
6997    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6998  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6999  ac_status=$?
7000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001  (exit $ac_status); } && test -s "$nlist"; then
7002      # Try sorting and uniquifying the output.
7003      if sort "$nlist" | uniq > "$nlist"T; then
7004        mv -f "$nlist"T "$nlist"
7005      else
7006        rm -f "$nlist"T
7007      fi
7008
7009      # Make sure that we snagged all the symbols we need.
7010      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7011        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7012          cat <<EOF > conftest.$ac_ext
7013#ifdef __cplusplus
7014extern "C" {
7015#endif
7016
7017EOF
7018          # Now generate the symbol file.
7019          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7020
7021          cat <<EOF >> conftest.$ac_ext
7022#if defined (__STDC__) && __STDC__
7023# define lt_ptr_t void *
7024#else
7025# define lt_ptr_t char *
7026# define const
7027#endif
7028
7029/* The mapping between symbol names and symbols. */
7030const struct {
7031  const char *name;
7032  lt_ptr_t address;
7033}
7034lt_preloaded_symbols[] =
7035{
7036EOF
7037          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7038          cat <<\EOF >> conftest.$ac_ext
7039  {0, (lt_ptr_t) 0}
7040};
7041
7042#ifdef __cplusplus
7043}
7044#endif
7045EOF
7046          # Now try linking the two files.
7047          mv conftest.$ac_objext conftstm.$ac_objext
7048          lt_save_LIBS="$LIBS"
7049          lt_save_CFLAGS="$CFLAGS"
7050          LIBS="conftstm.$ac_objext"
7051          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7052          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053  (eval $ac_link) 2>&5
7054  ac_status=$?
7055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7057            pipe_works=yes
7058          fi
7059          LIBS="$lt_save_LIBS"
7060          CFLAGS="$lt_save_CFLAGS"
7061        else
7062          echo "cannot find nm_test_func in $nlist" >&5
7063        fi
7064      else
7065        echo "cannot find nm_test_var in $nlist" >&5
7066      fi
7067    else
7068      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7069    fi
7070  else
7071    echo "$progname: failed program was:" >&5
7072    cat conftest.$ac_ext >&5
7073  fi
7074  rm -f conftest* conftst*
7075
7076  # Do not use the global_symbol_pipe unless it works.
7077  if test "$pipe_works" = yes; then
7078    break
7079  else
7080    lt_cv_sys_global_symbol_pipe=
7081  fi
7082done
7083
7084fi
7085
7086if test -z "$lt_cv_sys_global_symbol_pipe"; then
7087  lt_cv_sys_global_symbol_to_cdecl=
7088fi
7089if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7090  echo "$as_me:$LINENO: result: failed" >&5
7091echo "${ECHO_T}failed" >&6
7092else
7093  echo "$as_me:$LINENO: result: ok" >&5
7094echo "${ECHO_T}ok" >&6
7095fi
7096
7097echo "$as_me:$LINENO: checking for objdir" >&5
7098echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7099if test "${lt_cv_objdir+set}" = set; then
7100  echo $ECHO_N "(cached) $ECHO_C" >&6
7101else
7102  rm -f .libs 2>/dev/null
7103mkdir .libs 2>/dev/null
7104if test -d .libs; then
7105  lt_cv_objdir=.libs
7106else
7107  # MS-DOS does not allow filenames that begin with a dot.
7108  lt_cv_objdir=_libs
7109fi
7110rmdir .libs 2>/dev/null
7111fi
7112echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7113echo "${ECHO_T}$lt_cv_objdir" >&6
7114objdir=$lt_cv_objdir
7115
7116
7117
7118
7119
7120case $host_os in
7121aix3*)
7122  # AIX sometimes has problems with the GCC collect2 program.  For some
7123  # reason, if we set the COLLECT_NAMES environment variable, the problems
7124  # vanish in a puff of smoke.
7125  if test "X${COLLECT_NAMES+set}" != Xset; then
7126    COLLECT_NAMES=
7127    export COLLECT_NAMES
7128  fi
7129  ;;
7130esac
7131
7132# Sed substitution that helps us do robust quoting.  It backslashifies
7133# metacharacters that are still active within double-quoted strings.
7134Xsed='sed -e 1s/^X//'
7135sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7136
7137# Same as above, but do not quote variable references.
7138double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7139
7140# Sed substitution to delay expansion of an escaped shell variable in a
7141# double_quote_subst'ed string.
7142delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7143
7144# Sed substitution to avoid accidental globbing in evaled expressions
7145no_glob_subst='s/\*/\\\*/g'
7146
7147# Constants:
7148rm="rm -f"
7149
7150# Global variables:
7151default_ofile=libtool
7152can_build_shared=yes
7153
7154# All known linkers require a `.a' archive for static linking (except MSVC,
7155# which needs '.lib').
7156libext=a
7157ltmain="$ac_aux_dir/ltmain.sh"
7158ofile="$default_ofile"
7159with_gnu_ld="$lt_cv_prog_gnu_ld"
7160
7161if test -n "$ac_tool_prefix"; then
7162  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7163set dummy ${ac_tool_prefix}ar; ac_word=$2
7164echo "$as_me:$LINENO: checking for $ac_word" >&5
7165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7166if test "${ac_cv_prog_AR+set}" = set; then
7167  echo $ECHO_N "(cached) $ECHO_C" >&6
7168else
7169  if test -n "$AR"; then
7170  ac_cv_prog_AR="$AR" # Let the user override the test.
7171else
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175  IFS=$as_save_IFS
7176  test -z "$as_dir" && as_dir=.
7177  for ac_exec_ext in '' $ac_executable_extensions; do
7178  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179    ac_cv_prog_AR="${ac_tool_prefix}ar"
7180    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181    break 2
7182  fi
7183done
7184done
7185
7186fi
7187fi
7188AR=$ac_cv_prog_AR
7189if test -n "$AR"; then
7190  echo "$as_me:$LINENO: result: $AR" >&5
7191echo "${ECHO_T}$AR" >&6
7192else
7193  echo "$as_me:$LINENO: result: no" >&5
7194echo "${ECHO_T}no" >&6
7195fi
7196
7197fi
7198if test -z "$ac_cv_prog_AR"; then
7199  ac_ct_AR=$AR
7200  # Extract the first word of "ar", so it can be a program name with args.
7201set dummy ar; ac_word=$2
7202echo "$as_me:$LINENO: checking for $ac_word" >&5
7203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7204if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7205  echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207  if test -n "$ac_ct_AR"; then
7208  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7209else
7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213  IFS=$as_save_IFS
7214  test -z "$as_dir" && as_dir=.
7215  for ac_exec_ext in '' $ac_executable_extensions; do
7216  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217    ac_cv_prog_ac_ct_AR="ar"
7218    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219    break 2
7220  fi
7221done
7222done
7223
7224  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7225fi
7226fi
7227ac_ct_AR=$ac_cv_prog_ac_ct_AR
7228if test -n "$ac_ct_AR"; then
7229  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7230echo "${ECHO_T}$ac_ct_AR" >&6
7231else
7232  echo "$as_me:$LINENO: result: no" >&5
7233echo "${ECHO_T}no" >&6
7234fi
7235
7236  AR=$ac_ct_AR
7237else
7238  AR="$ac_cv_prog_AR"
7239fi
7240
7241if test -n "$ac_tool_prefix"; then
7242  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7243set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7244echo "$as_me:$LINENO: checking for $ac_word" >&5
7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7246if test "${ac_cv_prog_RANLIB+set}" = set; then
7247  echo $ECHO_N "(cached) $ECHO_C" >&6
7248else
7249  if test -n "$RANLIB"; then
7250  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7251else
7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255  IFS=$as_save_IFS
7256  test -z "$as_dir" && as_dir=.
7257  for ac_exec_ext in '' $ac_executable_extensions; do
7258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261    break 2
7262  fi
7263done
7264done
7265
7266fi
7267fi
7268RANLIB=$ac_cv_prog_RANLIB
7269if test -n "$RANLIB"; then
7270  echo "$as_me:$LINENO: result: $RANLIB" >&5
7271echo "${ECHO_T}$RANLIB" >&6
7272else
7273  echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6
7275fi
7276
7277fi
7278if test -z "$ac_cv_prog_RANLIB"; then
7279  ac_ct_RANLIB=$RANLIB
7280  # Extract the first word of "ranlib", so it can be a program name with args.
7281set dummy ranlib; ac_word=$2
7282echo "$as_me:$LINENO: checking for $ac_word" >&5
7283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7284if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7285  echo $ECHO_N "(cached) $ECHO_C" >&6
7286else
7287  if test -n "$ac_ct_RANLIB"; then
7288  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7289else
7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293  IFS=$as_save_IFS
7294  test -z "$as_dir" && as_dir=.
7295  for ac_exec_ext in '' $ac_executable_extensions; do
7296  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297    ac_cv_prog_ac_ct_RANLIB="ranlib"
7298    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299    break 2
7300  fi
7301done
7302done
7303
7304  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7305fi
7306fi
7307ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7308if test -n "$ac_ct_RANLIB"; then
7309  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7310echo "${ECHO_T}$ac_ct_RANLIB" >&6
7311else
7312  echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6
7314fi
7315
7316  RANLIB=$ac_ct_RANLIB
7317else
7318  RANLIB="$ac_cv_prog_RANLIB"
7319fi
7320
7321if test -n "$ac_tool_prefix"; then
7322  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7323set dummy ${ac_tool_prefix}strip; ac_word=$2
7324echo "$as_me:$LINENO: checking for $ac_word" >&5
7325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7326if test "${ac_cv_prog_STRIP+set}" = set; then
7327  echo $ECHO_N "(cached) $ECHO_C" >&6
7328else
7329  if test -n "$STRIP"; then
7330  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7331else
7332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333for as_dir in $PATH
7334do
7335  IFS=$as_save_IFS
7336  test -z "$as_dir" && as_dir=.
7337  for ac_exec_ext in '' $ac_executable_extensions; do
7338  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7339    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7340    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341    break 2
7342  fi
7343done
7344done
7345
7346fi
7347fi
7348STRIP=$ac_cv_prog_STRIP
7349if test -n "$STRIP"; then
7350  echo "$as_me:$LINENO: result: $STRIP" >&5
7351echo "${ECHO_T}$STRIP" >&6
7352else
7353  echo "$as_me:$LINENO: result: no" >&5
7354echo "${ECHO_T}no" >&6
7355fi
7356
7357fi
7358if test -z "$ac_cv_prog_STRIP"; then
7359  ac_ct_STRIP=$STRIP
7360  # Extract the first word of "strip", so it can be a program name with args.
7361set dummy strip; ac_word=$2
7362echo "$as_me:$LINENO: checking for $ac_word" >&5
7363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7364if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7365  echo $ECHO_N "(cached) $ECHO_C" >&6
7366else
7367  if test -n "$ac_ct_STRIP"; then
7368  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7369else
7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373  IFS=$as_save_IFS
7374  test -z "$as_dir" && as_dir=.
7375  for ac_exec_ext in '' $ac_executable_extensions; do
7376  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377    ac_cv_prog_ac_ct_STRIP="strip"
7378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379    break 2
7380  fi
7381done
7382done
7383
7384  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7385fi
7386fi
7387ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7388if test -n "$ac_ct_STRIP"; then
7389  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7390echo "${ECHO_T}$ac_ct_STRIP" >&6
7391else
7392  echo "$as_me:$LINENO: result: no" >&5
7393echo "${ECHO_T}no" >&6
7394fi
7395
7396  STRIP=$ac_ct_STRIP
7397else
7398  STRIP="$ac_cv_prog_STRIP"
7399fi
7400
7401
7402old_CC="$CC"
7403old_CFLAGS="$CFLAGS"
7404
7405# Set sane defaults for various variables
7406test -z "$AR" && AR=ar
7407test -z "$AR_FLAGS" && AR_FLAGS=cru
7408test -z "$AS" && AS=as
7409test -z "$CC" && CC=cc
7410test -z "$LTCC" && LTCC=$CC
7411test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7412test -z "$DLLTOOL" && DLLTOOL=dlltool
7413test -z "$LD" && LD=ld
7414test -z "$LN_S" && LN_S="ln -s"
7415test -z "$MAGIC_CMD" && MAGIC_CMD=file
7416test -z "$NM" && NM=nm
7417test -z "$SED" && SED=sed
7418test -z "$OBJDUMP" && OBJDUMP=objdump
7419test -z "$RANLIB" && RANLIB=:
7420test -z "$STRIP" && STRIP=:
7421test -z "$ac_objext" && ac_objext=o
7422
7423# Determine commands to create old-style static archives.
7424old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7425old_postinstall_cmds='chmod 644 $oldlib'
7426old_postuninstall_cmds=
7427
7428if test -n "$RANLIB"; then
7429  case $host_os in
7430  openbsd*)
7431    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7432    ;;
7433  *)
7434    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7435    ;;
7436  esac
7437  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7438fi
7439
7440for cc_temp in $compiler""; do
7441  case $cc_temp in
7442    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7443    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7444    \-*) ;;
7445    *) break;;
7446  esac
7447done
7448cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7449
7450
7451# Only perform the check for file, if the check method requires it
7452case $deplibs_check_method in
7453file_magic*)
7454  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7455    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7456echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7457if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7458  echo $ECHO_N "(cached) $ECHO_C" >&6
7459else
7460  case $MAGIC_CMD in
7461[\\/*] |  ?:[\\/]*)
7462  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7463  ;;
7464*)
7465  lt_save_MAGIC_CMD="$MAGIC_CMD"
7466  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7467  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7468  for ac_dir in $ac_dummy; do
7469    IFS="$lt_save_ifs"
7470    test -z "$ac_dir" && ac_dir=.
7471    if test -f $ac_dir/${ac_tool_prefix}file; then
7472      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7473      if test -n "$file_magic_test_file"; then
7474        case $deplibs_check_method in
7475        "file_magic "*)
7476          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7477          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7478          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7479            $EGREP "$file_magic_regex" > /dev/null; then
7480            :
7481          else
7482            cat <<EOF 1>&2
7483
7484*** Warning: the command libtool uses to detect shared libraries,
7485*** $file_magic_cmd, produces output that libtool cannot recognize.
7486*** The result is that libtool may fail to recognize shared libraries
7487*** as such.  This will affect the creation of libtool libraries that
7488*** depend on shared libraries, but programs linked with such libtool
7489*** libraries will work regardless of this problem.  Nevertheless, you
7490*** may want to report the problem to your system manager and/or to
7491*** bug-libtool@gnu.org
7492
7493EOF
7494          fi ;;
7495        esac
7496      fi
7497      break
7498    fi
7499  done
7500  IFS="$lt_save_ifs"
7501  MAGIC_CMD="$lt_save_MAGIC_CMD"
7502  ;;
7503esac
7504fi
7505
7506MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7507if test -n "$MAGIC_CMD"; then
7508  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7509echo "${ECHO_T}$MAGIC_CMD" >&6
7510else
7511  echo "$as_me:$LINENO: result: no" >&5
7512echo "${ECHO_T}no" >&6
7513fi
7514
7515if test -z "$lt_cv_path_MAGIC_CMD"; then
7516  if test -n "$ac_tool_prefix"; then
7517    echo "$as_me:$LINENO: checking for file" >&5
7518echo $ECHO_N "checking for file... $ECHO_C" >&6
7519if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7520  echo $ECHO_N "(cached) $ECHO_C" >&6
7521else
7522  case $MAGIC_CMD in
7523[\\/*] |  ?:[\\/]*)
7524  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7525  ;;
7526*)
7527  lt_save_MAGIC_CMD="$MAGIC_CMD"
7528  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7529  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7530  for ac_dir in $ac_dummy; do
7531    IFS="$lt_save_ifs"
7532    test -z "$ac_dir" && ac_dir=.
7533    if test -f $ac_dir/file; then
7534      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7535      if test -n "$file_magic_test_file"; then
7536        case $deplibs_check_method in
7537        "file_magic "*)
7538          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7539          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7540          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7541            $EGREP "$file_magic_regex" > /dev/null; then
7542            :
7543          else
7544            cat <<EOF 1>&2
7545
7546*** Warning: the command libtool uses to detect shared libraries,
7547*** $file_magic_cmd, produces output that libtool cannot recognize.
7548*** The result is that libtool may fail to recognize shared libraries
7549*** as such.  This will affect the creation of libtool libraries that
7550*** depend on shared libraries, but programs linked with such libtool
7551*** libraries will work regardless of this problem.  Nevertheless, you
7552*** may want to report the problem to your system manager and/or to
7553*** bug-libtool@gnu.org
7554
7555EOF
7556          fi ;;
7557        esac
7558      fi
7559      break
7560    fi
7561  done
7562  IFS="$lt_save_ifs"
7563  MAGIC_CMD="$lt_save_MAGIC_CMD"
7564  ;;
7565esac
7566fi
7567
7568MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7569if test -n "$MAGIC_CMD"; then
7570  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7571echo "${ECHO_T}$MAGIC_CMD" >&6
7572else
7573  echo "$as_me:$LINENO: result: no" >&5
7574echo "${ECHO_T}no" >&6
7575fi
7576
7577  else
7578    MAGIC_CMD=:
7579  fi
7580fi
7581
7582  fi
7583  ;;
7584esac
7585
7586enable_dlopen=no
7587enable_win32_dll=no
7588
7589# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7590if test "${enable_libtool_lock+set}" = set; then
7591  enableval="$enable_libtool_lock"
7592
7593fi;
7594test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7595
7596
7597# Check whether --with-pic or --without-pic was given.
7598if test "${with_pic+set}" = set; then
7599  withval="$with_pic"
7600  pic_mode="$withval"
7601else
7602  pic_mode=default
7603fi;
7604test -z "$pic_mode" && pic_mode=default
7605
7606# Use C for the default configuration in the libtool script
7607tagname=
7608lt_save_CC="$CC"
7609ac_ext=c
7610ac_cpp='$CPP $CPPFLAGS'
7611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613ac_compiler_gnu=$ac_cv_c_compiler_gnu
7614
7615
7616# Source file extension for C test sources.
7617ac_ext=c
7618
7619# Object file extension for compiled C test sources.
7620objext=o
7621objext=$objext
7622
7623# Code to be used in simple compile tests
7624lt_simple_compile_test_code="int some_variable = 0;\n"
7625
7626# Code to be used in simple link tests
7627lt_simple_link_test_code='int main(){return(0);}\n'
7628
7629
7630# If no C compiler was specified, use CC.
7631LTCC=${LTCC-"$CC"}
7632
7633# If no C compiler flags were specified, use CFLAGS.
7634LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7635
7636# Allow CC to be a program name with arguments.
7637compiler=$CC
7638
7639
7640# save warnings/boilerplate of simple test code
7641ac_outfile=conftest.$ac_objext
7642printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7643eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7644_lt_compiler_boilerplate=`cat conftest.err`
7645$rm conftest*
7646
7647ac_outfile=conftest.$ac_objext
7648printf "$lt_simple_link_test_code" >conftest.$ac_ext
7649eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7650_lt_linker_boilerplate=`cat conftest.err`
7651$rm conftest*
7652
7653
7654## CAVEAT EMPTOR:
7655## There is no encapsulation within the following macros, do not change
7656## the running order or otherwise move them around unless you know exactly
7657## what you are doing...
7658
7659lt_prog_compiler_no_builtin_flag=
7660
7661if test "$GCC" = yes; then
7662  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7663
7664
7665echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7666echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7667if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7668  echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670  lt_cv_prog_compiler_rtti_exceptions=no
7671  ac_outfile=conftest.$ac_objext
7672   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7673   lt_compiler_flag="-fno-rtti -fno-exceptions"
7674   # Insert the option either (1) after the last *FLAGS variable, or
7675   # (2) before a word containing "conftest.", or (3) at the end.
7676   # Note that $ac_compile itself does not contain backslashes and begins
7677   # with a dollar sign (not a hyphen), so the echo should work correctly.
7678   # The option is referenced via a variable to avoid confusing sed.
7679   lt_compile=`echo "$ac_compile" | $SED \
7680   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7681   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7682   -e 's:$: $lt_compiler_flag:'`
7683   (eval echo "\"\$as_me:7683: $lt_compile\"" >&5)
7684   (eval "$lt_compile" 2>conftest.err)
7685   ac_status=$?
7686   cat conftest.err >&5
7687   echo "$as_me:7687: \$? = $ac_status" >&5
7688   if (exit $ac_status) && test -s "$ac_outfile"; then
7689     # The compiler can only warn and ignore the option if not recognized
7690     # So say no if there are warnings other than the usual output.
7691     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7692     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7693     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7694       lt_cv_prog_compiler_rtti_exceptions=yes
7695     fi
7696   fi
7697   $rm conftest*
7698
7699fi
7700echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7701echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7702
7703if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7704    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7705else
7706    :
7707fi
7708
7709fi
7710
7711lt_prog_compiler_wl=
7712lt_prog_compiler_pic=
7713lt_prog_compiler_static=
7714
7715echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7716echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7717
7718  if test "$GCC" = yes; then
7719    lt_prog_compiler_wl='-Wl,'
7720    lt_prog_compiler_static='-static'
7721
7722    case $host_os in
7723      aix*)
7724      # All AIX code is PIC.
7725      if test "$host_cpu" = ia64; then
7726        # AIX 5 now supports IA64 processor
7727        lt_prog_compiler_static='-Bstatic'
7728      fi
7729      ;;
7730
7731    amigaos*)
7732      # FIXME: we need at least 68020 code to build shared libraries, but
7733      # adding the `-m68020' flag to GCC prevents building anything better,
7734      # like `-m68040'.
7735      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7736      ;;
7737
7738    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7739      # PIC is the default for these OSes.
7740      ;;
7741
7742    mingw* | pw32* | os2*)
7743      # This hack is so that the source file can tell whether it is being
7744      # built for inclusion in a dll (and should export symbols for example).
7745      lt_prog_compiler_pic='-DDLL_EXPORT'
7746      ;;
7747
7748    darwin* | rhapsody*)
7749      # PIC is the default on this platform
7750      # Common symbols not allowed in MH_DYLIB files
7751      lt_prog_compiler_pic='-fno-common'
7752      ;;
7753
7754    interix3*)
7755      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7756      # Instead, we relocate shared libraries at runtime.
7757      ;;
7758
7759    msdosdjgpp*)
7760      # Just because we use GCC doesn't mean we suddenly get shared libraries
7761      # on systems that don't support them.
7762      lt_prog_compiler_can_build_shared=no
7763      enable_shared=no
7764      ;;
7765
7766    sysv4*MP*)
7767      if test -d /usr/nec; then
7768        lt_prog_compiler_pic=-Kconform_pic
7769      fi
7770      ;;
7771
7772    hpux*)
7773      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7774      # not for PA HP-UX.
7775      case $host_cpu in
7776      hppa*64*|ia64*)
7777        # +Z the default
7778        ;;
7779      *)
7780        lt_prog_compiler_pic='-fPIC'
7781        ;;
7782      esac
7783      ;;
7784
7785    *)
7786      lt_prog_compiler_pic='-fPIC'
7787      ;;
7788    esac
7789  else
7790    # PORTME Check for flag to pass linker flags through the system compiler.
7791    case $host_os in
7792    aix*)
7793      lt_prog_compiler_wl='-Wl,'
7794      if test "$host_cpu" = ia64; then
7795        # AIX 5 now supports IA64 processor
7796        lt_prog_compiler_static='-Bstatic'
7797      else
7798        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7799      fi
7800      ;;
7801      darwin*)
7802        # PIC is the default on this platform
7803        # Common symbols not allowed in MH_DYLIB files
7804       case $cc_basename in
7805         xlc*)
7806         lt_prog_compiler_pic='-qnocommon'
7807         lt_prog_compiler_wl='-Wl,'
7808         ;;
7809       esac
7810       ;;
7811
7812    mingw* | pw32* | os2*)
7813      # This hack is so that the source file can tell whether it is being
7814      # built for inclusion in a dll (and should export symbols for example).
7815      lt_prog_compiler_pic='-DDLL_EXPORT'
7816      ;;
7817
7818    hpux9* | hpux10* | hpux11*)
7819      lt_prog_compiler_wl='-Wl,'
7820      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7821      # not for PA HP-UX.
7822      case $host_cpu in
7823      hppa*64*|ia64*)
7824        # +Z the default
7825        ;;
7826      *)
7827        lt_prog_compiler_pic='+Z'
7828        ;;
7829      esac
7830      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7831      lt_prog_compiler_static='${wl}-a ${wl}archive'
7832      ;;
7833
7834    irix5* | irix6* | nonstopux*)
7835      lt_prog_compiler_wl='-Wl,'
7836      # PIC (with -KPIC) is the default.
7837      lt_prog_compiler_static='-non_shared'
7838      ;;
7839
7840    newsos6)
7841      lt_prog_compiler_pic='-KPIC'
7842      lt_prog_compiler_static='-Bstatic'
7843      ;;
7844
7845    linux*)
7846      case $cc_basename in
7847      icc* | ecc*)
7848        lt_prog_compiler_wl='-Wl,'
7849        lt_prog_compiler_pic='-KPIC'
7850        lt_prog_compiler_static='-static'
7851        ;;
7852      pgcc* | pgf77* | pgf90* | pgf95*)
7853        # Portland Group compilers (*not* the Pentium gcc compiler,
7854        # which looks to be a dead project)
7855        lt_prog_compiler_wl='-Wl,'
7856        lt_prog_compiler_pic='-fpic'
7857        lt_prog_compiler_static='-Bstatic'
7858        ;;
7859      ccc*)
7860        lt_prog_compiler_wl='-Wl,'
7861        # All Alpha code is PIC.
7862        lt_prog_compiler_static='-non_shared'
7863        ;;
7864      esac
7865      ;;
7866
7867    osf3* | osf4* | osf5*)
7868      lt_prog_compiler_wl='-Wl,'
7869      # All OSF/1 code is PIC.
7870      lt_prog_compiler_static='-non_shared'
7871      ;;
7872
7873    solaris*)
7874      lt_prog_compiler_pic='-KPIC'
7875      lt_prog_compiler_static='-Bstatic'
7876      case $cc_basename in
7877      f77* | f90* | f95*)
7878        lt_prog_compiler_wl='-Qoption ld ';;
7879      *)
7880        lt_prog_compiler_wl='-Wl,';;
7881      esac
7882      ;;
7883
7884    sunos4*)
7885      lt_prog_compiler_wl='-Qoption ld '
7886      lt_prog_compiler_pic='-PIC'
7887      lt_prog_compiler_static='-Bstatic'
7888      ;;
7889
7890    sysv4 | sysv4.2uw2* | sysv4.3*)
7891      lt_prog_compiler_wl='-Wl,'
7892      lt_prog_compiler_pic='-KPIC'
7893      lt_prog_compiler_static='-Bstatic'
7894      ;;
7895
7896    sysv4*MP*)
7897      if test -d /usr/nec ;then
7898        lt_prog_compiler_pic='-Kconform_pic'
7899        lt_prog_compiler_static='-Bstatic'
7900      fi
7901      ;;
7902
7903    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7904      lt_prog_compiler_wl='-Wl,'
7905      lt_prog_compiler_pic='-KPIC'
7906      lt_prog_compiler_static='-Bstatic'
7907      ;;
7908
7909    unicos*)
7910      lt_prog_compiler_wl='-Wl,'
7911      lt_prog_compiler_can_build_shared=no
7912      ;;
7913
7914    uts4*)
7915      lt_prog_compiler_pic='-pic'
7916      lt_prog_compiler_static='-Bstatic'
7917      ;;
7918
7919    *)
7920      lt_prog_compiler_can_build_shared=no
7921      ;;
7922    esac
7923  fi
7924
7925echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7926echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7927
7928#
7929# Check to make sure the PIC flag actually works.
7930#
7931if test -n "$lt_prog_compiler_pic"; then
7932
7933echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7934echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7935if test "${lt_prog_compiler_pic_works+set}" = set; then
7936  echo $ECHO_N "(cached) $ECHO_C" >&6
7937else
7938  lt_prog_compiler_pic_works=no
7939  ac_outfile=conftest.$ac_objext
7940   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7941   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7942   # Insert the option either (1) after the last *FLAGS variable, or
7943   # (2) before a word containing "conftest.", or (3) at the end.
7944   # Note that $ac_compile itself does not contain backslashes and begins
7945   # with a dollar sign (not a hyphen), so the echo should work correctly.
7946   # The option is referenced via a variable to avoid confusing sed.
7947   lt_compile=`echo "$ac_compile" | $SED \
7948   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7949   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7950   -e 's:$: $lt_compiler_flag:'`
7951   (eval echo "\"\$as_me:7951: $lt_compile\"" >&5)
7952   (eval "$lt_compile" 2>conftest.err)
7953   ac_status=$?
7954   cat conftest.err >&5
7955   echo "$as_me:7955: \$? = $ac_status" >&5
7956   if (exit $ac_status) && test -s "$ac_outfile"; then
7957     # The compiler can only warn and ignore the option if not recognized
7958     # So say no if there are warnings other than the usual output.
7959     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7960     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7961     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7962       lt_prog_compiler_pic_works=yes
7963     fi
7964   fi
7965   $rm conftest*
7966
7967fi
7968echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7969echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7970
7971if test x"$lt_prog_compiler_pic_works" = xyes; then
7972    case $lt_prog_compiler_pic in
7973     "" | " "*) ;;
7974     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7975     esac
7976else
7977    lt_prog_compiler_pic=
7978     lt_prog_compiler_can_build_shared=no
7979fi
7980
7981fi
7982case $host_os in
7983  # For platforms which do not support PIC, -DPIC is meaningless:
7984  *djgpp*)
7985    lt_prog_compiler_pic=
7986    ;;
7987  *)
7988    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7989    ;;
7990esac
7991
7992#
7993# Check to make sure the static flag actually works.
7994#
7995wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7996echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7997echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7998if test "${lt_prog_compiler_static_works+set}" = set; then
7999  echo $ECHO_N "(cached) $ECHO_C" >&6
8000else
8001  lt_prog_compiler_static_works=no
8002   save_LDFLAGS="$LDFLAGS"
8003   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8004   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8005   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8006     # The linker can only warn and ignore the option if not recognized
8007     # So say no if there are warnings
8008     if test -s conftest.err; then
8009       # Append any errors to the config.log.
8010       cat conftest.err 1>&5
8011       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8012       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8013       if diff conftest.exp conftest.er2 >/dev/null; then
8014         lt_prog_compiler_static_works=yes
8015       fi
8016     else
8017       lt_prog_compiler_static_works=yes
8018     fi
8019   fi
8020   $rm conftest*
8021   LDFLAGS="$save_LDFLAGS"
8022
8023fi
8024echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8025echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8026
8027if test x"$lt_prog_compiler_static_works" = xyes; then
8028    :
8029else
8030    lt_prog_compiler_static=
8031fi
8032
8033
8034echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8035echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8036if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8037  echo $ECHO_N "(cached) $ECHO_C" >&6
8038else
8039  lt_cv_prog_compiler_c_o=no
8040   $rm -r conftest 2>/dev/null
8041   mkdir conftest
8042   cd conftest
8043   mkdir out
8044   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8045
8046   lt_compiler_flag="-o out/conftest2.$ac_objext"
8047   # Insert the option either (1) after the last *FLAGS variable, or
8048   # (2) before a word containing "conftest.", or (3) at the end.
8049   # Note that $ac_compile itself does not contain backslashes and begins
8050   # with a dollar sign (not a hyphen), so the echo should work correctly.
8051   lt_compile=`echo "$ac_compile" | $SED \
8052   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8053   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8054   -e 's:$: $lt_compiler_flag:'`
8055   (eval echo "\"\$as_me:8055: $lt_compile\"" >&5)
8056   (eval "$lt_compile" 2>out/conftest.err)
8057   ac_status=$?
8058   cat out/conftest.err >&5
8059   echo "$as_me:8059: \$? = $ac_status" >&5
8060   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8061   then
8062     # The compiler can only warn and ignore the option if not recognized
8063     # So say no if there are warnings
8064     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8065     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8066     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8067       lt_cv_prog_compiler_c_o=yes
8068     fi
8069   fi
8070   chmod u+w . 2>&5
8071   $rm conftest*
8072   # SGI C++ compiler will create directory out/ii_files/ for
8073   # template instantiation
8074   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8075   $rm out/* && rmdir out
8076   cd ..
8077   rmdir conftest
8078   $rm conftest*
8079
8080fi
8081echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8082echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8083
8084
8085hard_links="nottested"
8086if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8087  # do not overwrite the value of need_locks provided by the user
8088  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8089echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8090  hard_links=yes
8091  $rm conftest*
8092  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8093  touch conftest.a
8094  ln conftest.a conftest.b 2>&5 || hard_links=no
8095  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8096  echo "$as_me:$LINENO: result: $hard_links" >&5
8097echo "${ECHO_T}$hard_links" >&6
8098  if test "$hard_links" = no; then
8099    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8100echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8101    need_locks=warn
8102  fi
8103else
8104  need_locks=no
8105fi
8106
8107echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8108echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8109
8110  runpath_var=
8111  allow_undefined_flag=
8112  enable_shared_with_static_runtimes=no
8113  archive_cmds=
8114  archive_expsym_cmds=
8115  old_archive_From_new_cmds=
8116  old_archive_from_expsyms_cmds=
8117  export_dynamic_flag_spec=
8118  whole_archive_flag_spec=
8119  thread_safe_flag_spec=
8120  hardcode_libdir_flag_spec=
8121  hardcode_libdir_flag_spec_ld=
8122  hardcode_libdir_separator=
8123  hardcode_direct=no
8124  hardcode_minus_L=no
8125  hardcode_shlibpath_var=unsupported
8126  link_all_deplibs=unknown
8127  hardcode_automatic=no
8128  module_cmds=
8129  module_expsym_cmds=
8130  always_export_symbols=no
8131  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8132  # include_expsyms should be a list of space-separated symbols to be *always*
8133  # included in the symbol list
8134  include_expsyms=
8135  # exclude_expsyms can be an extended regexp of symbols to exclude
8136  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8137  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8138  # as well as any symbol that contains `d'.
8139  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8140  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8141  # platforms (ab)use it in PIC code, but their linkers get confused if
8142  # the symbol is explicitly referenced.  Since portable code cannot
8143  # rely on this symbol name, it's probably fine to never include it in
8144  # preloaded symbol tables.
8145  extract_expsyms_cmds=
8146  # Just being paranoid about ensuring that cc_basename is set.
8147  for cc_temp in $compiler""; do
8148  case $cc_temp in
8149    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8150    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8151    \-*) ;;
8152    *) break;;
8153  esac
8154done
8155cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8156
8157  case $host_os in
8158  cygwin* | mingw* | pw32*)
8159    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8160    # When not using gcc, we currently assume that we are using
8161    # Microsoft Visual C++.
8162    if test "$GCC" != yes; then
8163      with_gnu_ld=no
8164    fi
8165    ;;
8166  interix*)
8167    # we just hope/assume this is gcc and not c89 (= MSVC++)
8168    with_gnu_ld=yes
8169    ;;
8170  openbsd*)
8171    with_gnu_ld=no
8172    ;;
8173  esac
8174
8175  ld_shlibs=yes
8176  if test "$with_gnu_ld" = yes; then
8177    # If archive_cmds runs LD, not CC, wlarc should be empty
8178    wlarc='${wl}'
8179
8180    # Set some defaults for GNU ld with shared library support. These
8181    # are reset later if shared libraries are not supported. Putting them
8182    # here allows them to be overridden if necessary.
8183    runpath_var=LD_RUN_PATH
8184    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8185    export_dynamic_flag_spec='${wl}--export-dynamic'
8186    # ancient GNU ld didn't support --whole-archive et. al.
8187    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8188        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8189      else
8190        whole_archive_flag_spec=
8191    fi
8192    supports_anon_versioning=no
8193    case `$LD -v 2>/dev/null` in
8194      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8195      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8196      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8197      *\ 2.11.*) ;; # other 2.11 versions
8198      *) supports_anon_versioning=yes ;;
8199    esac
8200
8201    # See if GNU ld supports shared libraries.
8202    case $host_os in
8203    aix3* | aix4* | aix5*)
8204      # On AIX/PPC, the GNU linker is very broken
8205      if test "$host_cpu" != ia64; then
8206        ld_shlibs=no
8207        cat <<EOF 1>&2
8208
8209*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8210*** to be unable to reliably create shared libraries on AIX.
8211*** Therefore, libtool is disabling shared libraries support.  If you
8212*** really care for shared libraries, you may want to modify your PATH
8213*** so that a non-GNU linker is found, and then restart.
8214
8215EOF
8216      fi
8217      ;;
8218
8219    amigaos*)
8220      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)'
8221      hardcode_libdir_flag_spec='-L$libdir'
8222      hardcode_minus_L=yes
8223
8224      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8225      # that the semantics of dynamic libraries on AmigaOS, at least up
8226      # to version 4, is to share data among multiple programs linked
8227      # with the same dynamic library.  Since this doesn't match the
8228      # behavior of shared libraries on other platforms, we can't use
8229      # them.
8230      ld_shlibs=no
8231      ;;
8232
8233    beos*)
8234      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8235        allow_undefined_flag=unsupported
8236        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8237        # support --undefined.  This deserves some investigation.  FIXME
8238        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8239      else
8240        ld_shlibs=no
8241      fi
8242      ;;
8243
8244    cygwin* | mingw* | pw32*)
8245      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8246      # as there is no search path for DLLs.
8247      hardcode_libdir_flag_spec='-L$libdir'
8248      allow_undefined_flag=unsupported
8249      always_export_symbols=no
8250      enable_shared_with_static_runtimes=yes
8251      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8252
8253      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8254        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8255        # If the export-symbols file already is a .def file (1st line
8256        # is EXPORTS), use it as is; otherwise, prepend...
8257        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8258          cp $export_symbols $output_objdir/$soname.def;
8259        else
8260          echo EXPORTS > $output_objdir/$soname.def;
8261          cat $export_symbols >> $output_objdir/$soname.def;
8262        fi~
8263        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8264      else
8265        ld_shlibs=no
8266      fi
8267      ;;
8268
8269    interix3*)
8270      hardcode_direct=no
8271      hardcode_shlibpath_var=no
8272      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8273      export_dynamic_flag_spec='${wl}-E'
8274      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8275      # Instead, shared libraries are loaded at an image base (0x10000000 by
8276      # default) and relocated if they conflict, which is a slow very memory
8277      # consuming and fragmenting process.  To avoid this, we pick a random,
8278      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8279      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8280      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8281      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'
8282      ;;
8283
8284    linux*)
8285      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8286        tmp_addflag=
8287        case $cc_basename,$host_cpu in
8288        pgcc*)                          # Portland Group C compiler
8289          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'
8290          tmp_addflag=' $pic_flag'
8291          ;;
8292        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8293          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'
8294          tmp_addflag=' $pic_flag -Mnomain' ;;
8295        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8296          tmp_addflag=' -i_dynamic' ;;
8297        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8298          tmp_addflag=' -i_dynamic -nofor_main' ;;
8299        ifc* | ifort*)                  # Intel Fortran compiler
8300          tmp_addflag=' -nofor_main' ;;
8301        esac
8302        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8303
8304        if test $supports_anon_versioning = yes; then
8305          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8306  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8307  $echo "local: *; };" >> $output_objdir/$libname.ver~
8308          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8309        fi
8310      else
8311        ld_shlibs=no
8312      fi
8313      ;;
8314
8315    netbsd*)
8316      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8317        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8318        wlarc=
8319      else
8320        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8321        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8322      fi
8323      ;;
8324
8325    solaris*)
8326      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8327        ld_shlibs=no
8328        cat <<EOF 1>&2
8329
8330*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8331*** create shared libraries on Solaris systems.  Therefore, libtool
8332*** is disabling shared libraries support.  We urge you to upgrade GNU
8333*** binutils to release 2.9.1 or newer.  Another option is to modify
8334*** your PATH or compiler configuration so that the native linker is
8335*** used, and then restart.
8336
8337EOF
8338      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8339        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8340        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8341      else
8342        ld_shlibs=no
8343      fi
8344      ;;
8345
8346    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8347      case `$LD -v 2>&1` in
8348        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8349        ld_shlibs=no
8350        cat <<_LT_EOF 1>&2
8351
8352*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8353*** reliably create shared libraries on SCO systems.  Therefore, libtool
8354*** is disabling shared libraries support.  We urge you to upgrade GNU
8355*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8356*** your PATH or compiler configuration so that the native linker is
8357*** used, and then restart.
8358
8359_LT_EOF
8360        ;;
8361        *)
8362          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8363            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8364            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8365            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8366          else
8367            ld_shlibs=no
8368          fi
8369        ;;
8370      esac
8371      ;;
8372
8373    sunos4*)
8374      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8375      wlarc=
8376      hardcode_direct=yes
8377      hardcode_shlibpath_var=no
8378      ;;
8379
8380    *)
8381      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8382        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8383        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8384      else
8385        ld_shlibs=no
8386      fi
8387      ;;
8388    esac
8389
8390    if test "$ld_shlibs" = no; then
8391      runpath_var=
8392      hardcode_libdir_flag_spec=
8393      export_dynamic_flag_spec=
8394      whole_archive_flag_spec=
8395    fi
8396  else
8397    # PORTME fill in a description of your system's linker (not GNU ld)
8398    case $host_os in
8399    aix3*)
8400      allow_undefined_flag=unsupported
8401      always_export_symbols=yes
8402      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'
8403      # Note: this linker hardcodes the directories in LIBPATH if there
8404      # are no directories specified by -L.
8405      hardcode_minus_L=yes
8406      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8407        # Neither direct hardcoding nor static linking is supported with a
8408        # broken collect2.
8409        hardcode_direct=unsupported
8410      fi
8411      ;;
8412
8413    aix4* | aix5*)
8414      if test "$host_cpu" = ia64; then
8415        # On IA64, the linker does run time linking by default, so we don't
8416        # have to do anything special.
8417        aix_use_runtimelinking=no
8418        exp_sym_flag='-Bexport'
8419        no_entry_flag=""
8420      else
8421        # If we're using GNU nm, then we don't want the "-C" option.
8422        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8423        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8424          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'
8425        else
8426          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'
8427        fi
8428        aix_use_runtimelinking=no
8429
8430        # Test if we are trying to use run time linking or normal
8431        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8432        # need to do runtime linking.
8433        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8434          for ld_flag in $LDFLAGS; do
8435          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8436            aix_use_runtimelinking=yes
8437            break
8438          fi
8439          done
8440          ;;
8441        esac
8442
8443        exp_sym_flag='-bexport'
8444        no_entry_flag='-bnoentry'
8445      fi
8446
8447      # When large executables or shared objects are built, AIX ld can
8448      # have problems creating the table of contents.  If linking a library
8449      # or program results in "error TOC overflow" add -mminimal-toc to
8450      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8451      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8452
8453      archive_cmds=''
8454      hardcode_direct=yes
8455      hardcode_libdir_separator=':'
8456      link_all_deplibs=yes
8457
8458      if test "$GCC" = yes; then
8459        case $host_os in aix4.[012]|aix4.[012].*)
8460        # We only want to do this on AIX 4.2 and lower, the check
8461        # below for broken collect2 doesn't work under 4.3+
8462          collect2name=`${CC} -print-prog-name=collect2`
8463          if test -f "$collect2name" && \
8464           strings "$collect2name" | grep resolve_lib_name >/dev/null
8465          then
8466          # We have reworked collect2
8467          hardcode_direct=yes
8468          else
8469          # We have old collect2
8470          hardcode_direct=unsupported
8471          # It fails to find uninstalled libraries when the uninstalled
8472          # path is not listed in the libpath.  Setting hardcode_minus_L
8473          # to unsupported forces relinking
8474          hardcode_minus_L=yes
8475          hardcode_libdir_flag_spec='-L$libdir'
8476          hardcode_libdir_separator=
8477          fi
8478          ;;
8479        esac
8480        shared_flag='-shared'
8481        if test "$aix_use_runtimelinking" = yes; then
8482          shared_flag="$shared_flag "'${wl}-G'
8483        fi
8484      else
8485        # not using gcc
8486        if test "$host_cpu" = ia64; then
8487        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8488        # chokes on -Wl,-G. The following line is correct:
8489          shared_flag='-G'
8490        else
8491          if test "$aix_use_runtimelinking" = yes; then
8492            shared_flag='${wl}-G'
8493          else
8494            shared_flag='${wl}-bM:SRE'
8495          fi
8496        fi
8497      fi
8498
8499      # It seems that -bexpall does not export symbols beginning with
8500      # underscore (_), so it is better to generate a list of symbols to export.
8501      always_export_symbols=yes
8502      if test "$aix_use_runtimelinking" = yes; then
8503        # Warning - without using the other runtime loading flags (-brtl),
8504        # -berok will link without error, but may produce a broken library.
8505        allow_undefined_flag='-berok'
8506       # Determine the default libpath from the value encoded in an empty executable.
8507       cat >conftest.$ac_ext <<_ACEOF
8508/* confdefs.h.  */
8509_ACEOF
8510cat confdefs.h >>conftest.$ac_ext
8511cat >>conftest.$ac_ext <<_ACEOF
8512/* end confdefs.h.  */
8513
8514int
8515main ()
8516{
8517
8518  ;
8519  return 0;
8520}
8521_ACEOF
8522rm -f conftest.$ac_objext conftest$ac_exeext
8523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524  (eval $ac_link) 2>conftest.er1
8525  ac_status=$?
8526  grep -v '^ *+' conftest.er1 >conftest.err
8527  rm -f conftest.er1
8528  cat conftest.err >&5
8529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530  (exit $ac_status); } &&
8531         { ac_try='test -z "$ac_c_werror_flag"
8532                         || test ! -s conftest.err'
8533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534  (eval $ac_try) 2>&5
8535  ac_status=$?
8536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537  (exit $ac_status); }; } &&
8538         { ac_try='test -s conftest$ac_exeext'
8539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540  (eval $ac_try) 2>&5
8541  ac_status=$?
8542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543  (exit $ac_status); }; }; then
8544
8545aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8546}'`
8547# Check for a 64-bit object if we didn't find anything.
8548if 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; }
8549}'`; fi
8550else
8551  echo "$as_me: failed program was:" >&5
8552sed 's/^/| /' conftest.$ac_ext >&5
8553
8554fi
8555rm -f conftest.err conftest.$ac_objext \
8556      conftest$ac_exeext conftest.$ac_ext
8557if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8558
8559       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8560        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"
8561       else
8562        if test "$host_cpu" = ia64; then
8563          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8564          allow_undefined_flag="-z nodefs"
8565          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"
8566        else
8567         # Determine the default libpath from the value encoded in an empty executable.
8568         cat >conftest.$ac_ext <<_ACEOF
8569/* confdefs.h.  */
8570_ACEOF
8571cat confdefs.h >>conftest.$ac_ext
8572cat >>conftest.$ac_ext <<_ACEOF
8573/* end confdefs.h.  */
8574
8575int
8576main ()
8577{
8578
8579  ;
8580  return 0;
8581}
8582_ACEOF
8583rm -f conftest.$ac_objext conftest$ac_exeext
8584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8585  (eval $ac_link) 2>conftest.er1
8586  ac_status=$?
8587  grep -v '^ *+' conftest.er1 >conftest.err
8588  rm -f conftest.er1
8589  cat conftest.err >&5
8590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591  (exit $ac_status); } &&
8592         { ac_try='test -z "$ac_c_werror_flag"
8593                         || test ! -s conftest.err'
8594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595  (eval $ac_try) 2>&5
8596  ac_status=$?
8597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598  (exit $ac_status); }; } &&
8599         { ac_try='test -s conftest$ac_exeext'
8600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601  (eval $ac_try) 2>&5
8602  ac_status=$?
8603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604  (exit $ac_status); }; }; then
8605
8606aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8607}'`
8608# Check for a 64-bit object if we didn't find anything.
8609if 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; }
8610}'`; fi
8611else
8612  echo "$as_me: failed program was:" >&5
8613sed 's/^/| /' conftest.$ac_ext >&5
8614
8615fi
8616rm -f conftest.err conftest.$ac_objext \
8617      conftest$ac_exeext conftest.$ac_ext
8618if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8619
8620         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8621          # Warning - without using the other run time loading flags,
8622          # -berok will link without error, but may produce a broken library.
8623          no_undefined_flag=' ${wl}-bernotok'
8624          allow_undefined_flag=' ${wl}-berok'
8625          # Exported symbols can be pulled into shared objects from archives
8626          whole_archive_flag_spec='$convenience'
8627          archive_cmds_need_lc=yes
8628          # This is similar to how AIX traditionally builds its shared libraries.
8629          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'
8630        fi
8631      fi
8632      ;;
8633
8634    amigaos*)
8635      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)'
8636      hardcode_libdir_flag_spec='-L$libdir'
8637      hardcode_minus_L=yes
8638      # see comment about different semantics on the GNU ld section
8639      ld_shlibs=no
8640      ;;
8641
8642    bsdi[45]*)
8643      export_dynamic_flag_spec=-rdynamic
8644      ;;
8645
8646    cygwin* | mingw* | pw32*)
8647      # When not using gcc, we currently assume that we are using
8648      # Microsoft Visual C++.
8649      # hardcode_libdir_flag_spec is actually meaningless, as there is
8650      # no search path for DLLs.
8651      hardcode_libdir_flag_spec=' '
8652      allow_undefined_flag=unsupported
8653      # Tell ltmain to make .lib files, not .a files.
8654      libext=lib
8655      # Tell ltmain to make .dll files, not .so files.
8656      shrext_cmds=".dll"
8657      # FIXME: Setting linknames here is a bad hack.
8658      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8659      # The linker will automatically build a .lib file if we build a DLL.
8660      old_archive_From_new_cmds='true'
8661      # FIXME: Should let the user specify the lib program.
8662      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8663      fix_srcfile_path='`cygpath -w "$srcfile"`'
8664      enable_shared_with_static_runtimes=yes
8665      ;;
8666
8667    darwin* | rhapsody*)
8668      case $host_os in
8669        rhapsody* | darwin1.[012])
8670         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8671         ;;
8672       *) # Darwin 1.3 on
8673         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8674           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8675         else
8676           case ${MACOSX_DEPLOYMENT_TARGET} in
8677             10.[012])
8678               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8679               ;;
8680             10.*)
8681               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8682               ;;
8683           esac
8684         fi
8685         ;;
8686      esac
8687      archive_cmds_need_lc=no
8688      hardcode_direct=no
8689      hardcode_automatic=yes
8690      hardcode_shlibpath_var=unsupported
8691      whole_archive_flag_spec=''
8692      link_all_deplibs=yes
8693    if test "$GCC" = yes ; then
8694        output_verbose_link_cmd='echo'
8695        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8696      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8697      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8698      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}'
8699      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}'
8700    else
8701      case $cc_basename in
8702        xlc*)
8703         output_verbose_link_cmd='echo'
8704         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8705         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8706          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8707         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}'
8708          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}'
8709          ;;
8710       *)
8711         ld_shlibs=no
8712          ;;
8713      esac
8714    fi
8715      ;;
8716
8717    dgux*)
8718      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8719      hardcode_libdir_flag_spec='-L$libdir'
8720      hardcode_shlibpath_var=no
8721      ;;
8722
8723    freebsd1*)
8724      ld_shlibs=no
8725      ;;
8726
8727    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8728    # support.  Future versions do this automatically, but an explicit c++rt0.o
8729    # does not break anything, and helps significantly (at the cost of a little
8730    # extra space).
8731    freebsd2.2*)
8732      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8733      hardcode_libdir_flag_spec='-R$libdir'
8734      hardcode_direct=yes
8735      hardcode_shlibpath_var=no
8736      ;;
8737
8738    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8739    freebsd2*)
8740      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8741      hardcode_direct=yes
8742      hardcode_minus_L=yes
8743      hardcode_shlibpath_var=no
8744      ;;
8745
8746    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8747    freebsd* | kfreebsd*-gnu | dragonfly*)
8748      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8749      hardcode_libdir_flag_spec='-R$libdir'
8750      hardcode_direct=yes
8751      hardcode_shlibpath_var=no
8752      ;;
8753
8754    hpux9*)
8755      if test "$GCC" = yes; then
8756        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'
8757      else
8758        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'
8759      fi
8760      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8761      hardcode_libdir_separator=:
8762      hardcode_direct=yes
8763
8764      # hardcode_minus_L: Not really in the search PATH,
8765      # but as the default location of the library.
8766      hardcode_minus_L=yes
8767      export_dynamic_flag_spec='${wl}-E'
8768      ;;
8769
8770    hpux10*)
8771      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8772        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8773      else
8774        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8775      fi
8776      if test "$with_gnu_ld" = no; then
8777        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8778        hardcode_libdir_separator=:
8779
8780        hardcode_direct=yes
8781        export_dynamic_flag_spec='${wl}-E'
8782
8783        # hardcode_minus_L: Not really in the search PATH,
8784        # but as the default location of the library.
8785        hardcode_minus_L=yes
8786      fi
8787      ;;
8788
8789    hpux11*)
8790      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8791        case $host_cpu in
8792        hppa*64*)
8793          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8794          ;;
8795        ia64*)
8796          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8797          ;;
8798        *)
8799          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8800          ;;
8801        esac
8802      else
8803        case $host_cpu in
8804        hppa*64*)
8805          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8806          ;;
8807        ia64*)
8808          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8809          ;;
8810        *)
8811          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8812          ;;
8813        esac
8814      fi
8815      if test "$with_gnu_ld" = no; then
8816        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8817        hardcode_libdir_separator=:
8818
8819        case $host_cpu in
8820        hppa*64*|ia64*)
8821          hardcode_libdir_flag_spec_ld='+b $libdir'
8822          hardcode_direct=no
8823          hardcode_shlibpath_var=no
8824          ;;
8825        *)
8826          hardcode_direct=yes
8827          export_dynamic_flag_spec='${wl}-E'
8828
8829          # hardcode_minus_L: Not really in the search PATH,
8830          # but as the default location of the library.
8831          hardcode_minus_L=yes
8832          ;;
8833        esac
8834      fi
8835      ;;
8836
8837    irix5* | irix6* | nonstopux*)
8838      if test "$GCC" = yes; then
8839        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'
8840      else
8841        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'
8842        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8843      fi
8844      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8845      hardcode_libdir_separator=:
8846      link_all_deplibs=yes
8847      ;;
8848
8849    netbsd*)
8850      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8851        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8852      else
8853        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8854      fi
8855      hardcode_libdir_flag_spec='-R$libdir'
8856      hardcode_direct=yes
8857      hardcode_shlibpath_var=no
8858      ;;
8859
8860    newsos6)
8861      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862      hardcode_direct=yes
8863      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8864      hardcode_libdir_separator=:
8865      hardcode_shlibpath_var=no
8866      ;;
8867
8868    openbsd*)
8869      hardcode_direct=yes
8870      hardcode_shlibpath_var=no
8871      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8872        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8873        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8874        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8875        export_dynamic_flag_spec='${wl}-E'
8876      else
8877       case $host_os in
8878         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8879           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8880           hardcode_libdir_flag_spec='-R$libdir'
8881           ;;
8882         *)
8883           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8884           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8885           ;;
8886       esac
8887      fi
8888      ;;
8889
8890    os2*)
8891      hardcode_libdir_flag_spec='-L$libdir'
8892      hardcode_minus_L=yes
8893      allow_undefined_flag=unsupported
8894      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'
8895      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8896      ;;
8897
8898    osf3*)
8899      if test "$GCC" = yes; then
8900        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8901        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'
8902      else
8903        allow_undefined_flag=' -expect_unresolved \*'
8904        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'
8905      fi
8906      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8907      hardcode_libdir_separator=:
8908      ;;
8909
8910    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8911      if test "$GCC" = yes; then
8912        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8913        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'
8914        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8915      else
8916        allow_undefined_flag=' -expect_unresolved \*'
8917        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'
8918        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8919        $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'
8920
8921        # Both c and cxx compiler support -rpath directly
8922        hardcode_libdir_flag_spec='-rpath $libdir'
8923      fi
8924      hardcode_libdir_separator=:
8925      ;;
8926
8927    solaris*)
8928      no_undefined_flag=' -z text'
8929      if test "$GCC" = yes; then
8930        wlarc='${wl}'
8931        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8932        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8933          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8934      else
8935        wlarc=''
8936        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8937        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8938        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8939      fi
8940      hardcode_libdir_flag_spec='-R$libdir'
8941      hardcode_shlibpath_var=no
8942      case $host_os in
8943      solaris2.[0-5] | solaris2.[0-5].*) ;;
8944      *)
8945        # The compiler driver will combine linker options so we
8946        # cannot just pass the convience library names through
8947        # without $wl, iff we do not link with $LD.
8948        # Luckily, gcc supports the same syntax we need for Sun Studio.
8949        # Supported since Solaris 2.6 (maybe 2.5.1?)
8950        case $wlarc in
8951        '')
8952          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8953        *)
8954          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' ;;
8955        esac ;;
8956      esac
8957      link_all_deplibs=yes
8958      ;;
8959
8960    sunos4*)
8961      if test "x$host_vendor" = xsequent; then
8962        # Use $CC to link under sequent, because it throws in some extra .o
8963        # files that make .init and .fini sections work.
8964        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8965      else
8966        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8967      fi
8968      hardcode_libdir_flag_spec='-L$libdir'
8969      hardcode_direct=yes
8970      hardcode_minus_L=yes
8971      hardcode_shlibpath_var=no
8972      ;;
8973
8974    sysv4)
8975      case $host_vendor in
8976        sni)
8977          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8978          hardcode_direct=yes # is this really true???
8979        ;;
8980        siemens)
8981          ## LD is ld it makes a PLAMLIB
8982          ## CC just makes a GrossModule.
8983          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8984          reload_cmds='$CC -r -o $output$reload_objs'
8985          hardcode_direct=no
8986        ;;
8987        motorola)
8988          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8989          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8990        ;;
8991      esac
8992      runpath_var='LD_RUN_PATH'
8993      hardcode_shlibpath_var=no
8994      ;;
8995
8996    sysv4.3*)
8997      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998      hardcode_shlibpath_var=no
8999      export_dynamic_flag_spec='-Bexport'
9000      ;;
9001
9002    sysv4*MP*)
9003      if test -d /usr/nec; then
9004        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9005        hardcode_shlibpath_var=no
9006        runpath_var=LD_RUN_PATH
9007        hardcode_runpath_var=yes
9008        ld_shlibs=yes
9009      fi
9010      ;;
9011
9012    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9013      no_undefined_flag='${wl}-z,text'
9014      archive_cmds_need_lc=no
9015      hardcode_shlibpath_var=no
9016      runpath_var='LD_RUN_PATH'
9017
9018      if test "$GCC" = yes; then
9019        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9020        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9021      else
9022        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9023        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9024      fi
9025      ;;
9026
9027    sysv5* | sco3.2v5* | sco5v6*)
9028      # Note: We can NOT use -z defs as we might desire, because we do not
9029      # link with -lc, and that would cause any symbols used from libc to
9030      # always be unresolved, which means just about no library would
9031      # ever link correctly.  If we're not using GNU ld we use -z text
9032      # though, which does catch some bad symbols but isn't as heavy-handed
9033      # as -z defs.
9034      no_undefined_flag='${wl}-z,text'
9035      allow_undefined_flag='${wl}-z,nodefs'
9036      archive_cmds_need_lc=no
9037      hardcode_shlibpath_var=no
9038      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9039      hardcode_libdir_separator=':'
9040      link_all_deplibs=yes
9041      export_dynamic_flag_spec='${wl}-Bexport'
9042      runpath_var='LD_RUN_PATH'
9043
9044      if test "$GCC" = yes; then
9045        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9046        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9047      else
9048        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9049        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9050      fi
9051      ;;
9052
9053    uts4*)
9054      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055      hardcode_libdir_flag_spec='-L$libdir'
9056      hardcode_shlibpath_var=no
9057      ;;
9058
9059    *)
9060      ld_shlibs=no
9061      ;;
9062    esac
9063  fi
9064
9065echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9066echo "${ECHO_T}$ld_shlibs" >&6
9067test "$ld_shlibs" = no && can_build_shared=no
9068
9069#
9070# Do we need to explicitly link libc?
9071#
9072case "x$archive_cmds_need_lc" in
9073x|xyes)
9074  # Assume -lc should be added
9075  archive_cmds_need_lc=yes
9076
9077  if test "$enable_shared" = yes && test "$GCC" = yes; then
9078    case $archive_cmds in
9079    *'~'*)
9080      # FIXME: we may have to deal with multi-command sequences.
9081      ;;
9082    '$CC '*)
9083      # Test whether the compiler implicitly links with -lc since on some
9084      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9085      # to ld, don't add -lc before -lgcc.
9086      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9087echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9088      $rm conftest*
9089      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9090
9091      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9092  (eval $ac_compile) 2>&5
9093  ac_status=$?
9094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095  (exit $ac_status); } 2>conftest.err; then
9096        soname=conftest
9097        lib=conftest
9098        libobjs=conftest.$ac_objext
9099        deplibs=
9100        wl=$lt_prog_compiler_wl
9101        pic_flag=$lt_prog_compiler_pic
9102        compiler_flags=-v
9103        linker_flags=-v
9104        verstring=
9105        output_objdir=.
9106        libname=conftest
9107        lt_save_allow_undefined_flag=$allow_undefined_flag
9108        allow_undefined_flag=
9109        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9110  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9111  ac_status=$?
9112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113  (exit $ac_status); }
9114        then
9115          archive_cmds_need_lc=no
9116        else
9117          archive_cmds_need_lc=yes
9118        fi
9119        allow_undefined_flag=$lt_save_allow_undefined_flag
9120      else
9121        cat conftest.err 1>&5
9122      fi
9123      $rm conftest*
9124      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9125echo "${ECHO_T}$archive_cmds_need_lc" >&6
9126      ;;
9127    esac
9128  fi
9129  ;;
9130esac
9131
9132echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9133echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9134library_names_spec=
9135libname_spec='lib$name'
9136soname_spec=
9137shrext_cmds=".so"
9138postinstall_cmds=
9139postuninstall_cmds=
9140finish_cmds=
9141finish_eval=
9142shlibpath_var=
9143shlibpath_overrides_runpath=unknown
9144version_type=none
9145dynamic_linker="$host_os ld.so"
9146sys_lib_dlsearch_path_spec="/lib /usr/lib"
9147if test "$GCC" = yes; then
9148  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9149  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9150    # if the path contains ";" then we assume it to be the separator
9151    # otherwise default to the standard path separator (i.e. ":") - it is
9152    # assumed that no part of a normal pathname contains ";" but that should
9153    # okay in the real world where ";" in dirpaths is itself problematic.
9154    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9155  else
9156    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9157  fi
9158else
9159  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9160fi
9161need_lib_prefix=unknown
9162hardcode_into_libs=no
9163
9164# when you set need_version to no, make sure it does not cause -set_version
9165# flags to be left without arguments
9166need_version=unknown
9167
9168case $host_os in
9169aix3*)
9170  version_type=linux
9171  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9172  shlibpath_var=LIBPATH
9173
9174  # AIX 3 has no versioning support, so we append a major version to the name.
9175  soname_spec='${libname}${release}${shared_ext}$major'
9176  ;;
9177
9178aix4* | aix5*)
9179  version_type=linux
9180  need_lib_prefix=no
9181  need_version=no
9182  hardcode_into_libs=yes
9183  if test "$host_cpu" = ia64; then
9184    # AIX 5 supports IA64
9185    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9186    shlibpath_var=LD_LIBRARY_PATH
9187  else
9188    # With GCC up to 2.95.x, collect2 would create an import file
9189    # for dependence libraries.  The import file would start with
9190    # the line `#! .'.  This would cause the generated library to
9191    # depend on `.', always an invalid library.  This was fixed in
9192    # development snapshots of GCC prior to 3.0.
9193    case $host_os in
9194      aix4 | aix4.[01] | aix4.[01].*)
9195      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9196           echo ' yes '
9197           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9198        :
9199      else
9200        can_build_shared=no
9201      fi
9202      ;;
9203    esac
9204    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9205    # soname into executable. Probably we can add versioning support to
9206    # collect2, so additional links can be useful in future.
9207    if test "$aix_use_runtimelinking" = yes; then
9208      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9209      # instead of lib<name>.a to let people know that these are not
9210      # typical AIX shared libraries.
9211      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212    else
9213      # We preserve .a as extension for shared libraries through AIX4.2
9214      # and later when we are not doing run time linking.
9215      library_names_spec='${libname}${release}.a $libname.a'
9216      soname_spec='${libname}${release}${shared_ext}$major'
9217    fi
9218    shlibpath_var=LIBPATH
9219  fi
9220  ;;
9221
9222amigaos*)
9223  library_names_spec='$libname.ixlibrary $libname.a'
9224  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9225  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'
9226  ;;
9227
9228beos*)
9229  library_names_spec='${libname}${shared_ext}'
9230  dynamic_linker="$host_os ld.so"
9231  shlibpath_var=LIBRARY_PATH
9232  ;;
9233
9234bsdi[45]*)
9235  version_type=linux
9236  need_version=no
9237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238  soname_spec='${libname}${release}${shared_ext}$major'
9239  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9240  shlibpath_var=LD_LIBRARY_PATH
9241  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9242  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9243  # the default ld.so.conf also contains /usr/contrib/lib and
9244  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9245  # libtool to hard-code these into programs
9246  ;;
9247
9248cygwin* | mingw* | pw32*)
9249  version_type=windows
9250  shrext_cmds=".dll"
9251  need_version=no
9252  need_lib_prefix=no
9253
9254  case $GCC,$host_os in
9255  yes,cygwin* | yes,mingw* | yes,pw32*)
9256    library_names_spec='$libname.dll.a'
9257    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9258    postinstall_cmds='base_file=`basename \${file}`~
9259      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9260      dldir=$destdir/`dirname \$dlpath`~
9261      test -d \$dldir || mkdir -p \$dldir~
9262      $install_prog $dir/$dlname \$dldir/$dlname~
9263      chmod a+x \$dldir/$dlname'
9264    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9265      dlpath=$dir/\$dldll~
9266       $rm \$dlpath'
9267    shlibpath_overrides_runpath=yes
9268
9269    case $host_os in
9270    cygwin*)
9271      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9272      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9273      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9274      ;;
9275    mingw*)
9276      # MinGW DLLs use traditional 'lib' prefix
9277      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9278      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9279      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9280        # It is most probably a Windows format PATH printed by
9281        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9282        # path with ; separators, and with drive letters. We can handle the
9283        # drive letters (cygwin fileutils understands them), so leave them,
9284        # especially as we might pass files found there to a mingw objdump,
9285        # which wouldn't understand a cygwinified path. Ahh.
9286        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9287      else
9288        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9289      fi
9290      ;;
9291    pw32*)
9292      # pw32 DLLs use 'pw' prefix rather than 'lib'
9293      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9294      ;;
9295    esac
9296    ;;
9297
9298  *)
9299    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9300    ;;
9301  esac
9302  dynamic_linker='Win32 ld.exe'
9303  # FIXME: first we should search . and the directory the executable is in
9304  shlibpath_var=PATH
9305  ;;
9306
9307darwin* | rhapsody*)
9308  dynamic_linker="$host_os dyld"
9309  version_type=darwin
9310  need_lib_prefix=no
9311  need_version=no
9312  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9313  soname_spec='${libname}${release}${major}$shared_ext'
9314  shlibpath_overrides_runpath=yes
9315  shlibpath_var=DYLD_LIBRARY_PATH
9316  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9317  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9318  if test "$GCC" = yes; then
9319    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"`
9320  else
9321    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9322  fi
9323  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9324  ;;
9325
9326dgux*)
9327  version_type=linux
9328  need_lib_prefix=no
9329  need_version=no
9330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9331  soname_spec='${libname}${release}${shared_ext}$major'
9332  shlibpath_var=LD_LIBRARY_PATH
9333  ;;
9334
9335freebsd1*)
9336  dynamic_linker=no
9337  ;;
9338
9339kfreebsd*-gnu)
9340  version_type=linux
9341  need_lib_prefix=no
9342  need_version=no
9343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9344  soname_spec='${libname}${release}${shared_ext}$major'
9345  shlibpath_var=LD_LIBRARY_PATH
9346  shlibpath_overrides_runpath=no
9347  hardcode_into_libs=yes
9348  dynamic_linker='GNU ld.so'
9349  ;;
9350
9351freebsd* | dragonfly*)
9352  # DragonFly does not have aout.  When/if they implement a new
9353  # versioning mechanism, adjust this.
9354  if test -x /usr/bin/objformat; then
9355    objformat=`/usr/bin/objformat`
9356  else
9357    case $host_os in
9358    freebsd[123]*) objformat=aout ;;
9359    *) objformat=elf ;;
9360    esac
9361  fi
9362  version_type=freebsd-$objformat
9363  case $version_type in
9364    freebsd-elf*)
9365      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9366      need_version=no
9367      need_lib_prefix=no
9368      ;;
9369    freebsd-*)
9370      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9371      need_version=yes
9372      ;;
9373  esac
9374  shlibpath_var=LD_LIBRARY_PATH
9375  case $host_os in
9376  freebsd2*)
9377    shlibpath_overrides_runpath=yes
9378    ;;
9379  freebsd3.[01]* | freebsdelf3.[01]*)
9380    shlibpath_overrides_runpath=yes
9381    hardcode_into_libs=yes
9382    ;;
9383  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9384  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9385    shlibpath_overrides_runpath=no
9386    hardcode_into_libs=yes
9387    ;;
9388  freebsd*) # from 4.6 on
9389    shlibpath_overrides_runpath=yes
9390    hardcode_into_libs=yes
9391    ;;
9392  esac
9393  ;;
9394
9395gnu*)
9396  version_type=linux
9397  need_lib_prefix=no
9398  need_version=no
9399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9400  soname_spec='${libname}${release}${shared_ext}$major'
9401  shlibpath_var=LD_LIBRARY_PATH
9402  hardcode_into_libs=yes
9403  ;;
9404
9405hpux9* | hpux10* | hpux11*)
9406  # Give a soname corresponding to the major version so that dld.sl refuses to
9407  # link against other versions.
9408  version_type=sunos
9409  need_lib_prefix=no
9410  need_version=no
9411  case $host_cpu in
9412  ia64*)
9413    shrext_cmds='.so'
9414    hardcode_into_libs=yes
9415    dynamic_linker="$host_os dld.so"
9416    shlibpath_var=LD_LIBRARY_PATH
9417    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9418    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419    soname_spec='${libname}${release}${shared_ext}$major'
9420    if test "X$HPUX_IA64_MODE" = X32; then
9421      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9422    else
9423      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9424    fi
9425    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9426    ;;
9427   hppa*64*)
9428     shrext_cmds='.sl'
9429     hardcode_into_libs=yes
9430     dynamic_linker="$host_os dld.sl"
9431     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9432     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434     soname_spec='${libname}${release}${shared_ext}$major'
9435     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9436     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9437     ;;
9438   *)
9439    shrext_cmds='.sl'
9440    dynamic_linker="$host_os dld.sl"
9441    shlibpath_var=SHLIB_PATH
9442    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9443    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9444    soname_spec='${libname}${release}${shared_ext}$major'
9445    ;;
9446  esac
9447  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9448  postinstall_cmds='chmod 555 $lib'
9449  ;;
9450
9451interix3*)
9452  version_type=linux
9453  need_lib_prefix=no
9454  need_version=no
9455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9456  soname_spec='${libname}${release}${shared_ext}$major'
9457  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9458  shlibpath_var=LD_LIBRARY_PATH
9459  shlibpath_overrides_runpath=no
9460  hardcode_into_libs=yes
9461  ;;
9462
9463irix5* | irix6* | nonstopux*)
9464  case $host_os in
9465    nonstopux*) version_type=nonstopux ;;
9466    *)
9467        if test "$lt_cv_prog_gnu_ld" = yes; then
9468                version_type=linux
9469        else
9470                version_type=irix
9471        fi ;;
9472  esac
9473  need_lib_prefix=no
9474  need_version=no
9475  soname_spec='${libname}${release}${shared_ext}$major'
9476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9477  case $host_os in
9478  irix5* | nonstopux*)
9479    libsuff= shlibsuff=
9480    ;;
9481  *)
9482    case $LD in # libtool.m4 will add one of these switches to LD
9483    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9484      libsuff= shlibsuff= libmagic=32-bit;;
9485    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9486      libsuff=32 shlibsuff=N32 libmagic=N32;;
9487    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9488      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9489    *) libsuff= shlibsuff= libmagic=never-match;;
9490    esac
9491    ;;
9492  esac
9493  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9494  shlibpath_overrides_runpath=no
9495  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9496  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9497  hardcode_into_libs=yes
9498  ;;
9499
9500# No shared lib support for Linux oldld, aout, or coff.
9501linux*oldld* | linux*aout* | linux*coff*)
9502  dynamic_linker=no
9503  ;;
9504
9505# This must be Linux ELF.
9506linux*)
9507  version_type=linux
9508  need_lib_prefix=no
9509  need_version=no
9510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9511  soname_spec='${libname}${release}${shared_ext}$major'
9512  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9513  shlibpath_var=LD_LIBRARY_PATH
9514  shlibpath_overrides_runpath=no
9515  # This implies no fast_install, which is unacceptable.
9516  # Some rework will be needed to allow for fast_install
9517  # before this can be enabled.
9518  hardcode_into_libs=yes
9519
9520  # Append ld.so.conf contents to the search path
9521  if test -f /etc/ld.so.conf; then
9522    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' ' '`
9523    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9524  fi
9525
9526  # We used to test for /lib/ld.so.1 and disable shared libraries on
9527  # powerpc, because MkLinux only supported shared libraries with the
9528  # GNU dynamic linker.  Since this was broken with cross compilers,
9529  # most powerpc-linux boxes support dynamic linking these days and
9530  # people can always --disable-shared, the test was removed, and we
9531  # assume the GNU/Linux dynamic linker is in use.
9532  dynamic_linker='GNU/Linux ld.so'
9533  ;;
9534
9535knetbsd*-gnu)
9536  version_type=linux
9537  need_lib_prefix=no
9538  need_version=no
9539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9540  soname_spec='${libname}${release}${shared_ext}$major'
9541  shlibpath_var=LD_LIBRARY_PATH
9542  shlibpath_overrides_runpath=no
9543  hardcode_into_libs=yes
9544  dynamic_linker='GNU ld.so'
9545  ;;
9546
9547netbsd*)
9548  version_type=sunos
9549  need_lib_prefix=no
9550  need_version=no
9551  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9552    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9553    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9554    dynamic_linker='NetBSD (a.out) ld.so'
9555  else
9556    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9557    soname_spec='${libname}${release}${shared_ext}$major'
9558    dynamic_linker='NetBSD ld.elf_so'
9559  fi
9560  shlibpath_var=LD_LIBRARY_PATH
9561  shlibpath_overrides_runpath=yes
9562  hardcode_into_libs=yes
9563  ;;
9564
9565newsos6)
9566  version_type=linux
9567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568  shlibpath_var=LD_LIBRARY_PATH
9569  shlibpath_overrides_runpath=yes
9570  ;;
9571
9572nto-qnx*)
9573  version_type=linux
9574  need_lib_prefix=no
9575  need_version=no
9576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577  soname_spec='${libname}${release}${shared_ext}$major'
9578  shlibpath_var=LD_LIBRARY_PATH
9579  shlibpath_overrides_runpath=yes
9580  ;;
9581
9582openbsd*)
9583  version_type=sunos
9584  sys_lib_dlsearch_path_spec="/usr/lib"
9585  need_lib_prefix=no
9586  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9587  case $host_os in
9588    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9589    *)                         need_version=no  ;;
9590  esac
9591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9592  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9593  shlibpath_var=LD_LIBRARY_PATH
9594  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9595    case $host_os in
9596      openbsd2.[89] | openbsd2.[89].*)
9597        shlibpath_overrides_runpath=no
9598        ;;
9599      *)
9600        shlibpath_overrides_runpath=yes
9601        ;;
9602      esac
9603  else
9604    shlibpath_overrides_runpath=yes
9605  fi
9606  ;;
9607
9608os2*)
9609  libname_spec='$name'
9610  shrext_cmds=".dll"
9611  need_lib_prefix=no
9612  library_names_spec='$libname${shared_ext} $libname.a'
9613  dynamic_linker='OS/2 ld.exe'
9614  shlibpath_var=LIBPATH
9615  ;;
9616
9617osf3* | osf4* | osf5*)
9618  version_type=osf
9619  need_lib_prefix=no
9620  need_version=no
9621  soname_spec='${libname}${release}${shared_ext}$major'
9622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623  shlibpath_var=LD_LIBRARY_PATH
9624  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9625  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9626  ;;
9627
9628solaris*)
9629  version_type=linux
9630  need_lib_prefix=no
9631  need_version=no
9632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633  soname_spec='${libname}${release}${shared_ext}$major'
9634  shlibpath_var=LD_LIBRARY_PATH
9635  shlibpath_overrides_runpath=yes
9636  hardcode_into_libs=yes
9637  # ldd complains unless libraries are executable
9638  postinstall_cmds='chmod +x $lib'
9639  ;;
9640
9641sunos4*)
9642  version_type=sunos
9643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9644  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9645  shlibpath_var=LD_LIBRARY_PATH
9646  shlibpath_overrides_runpath=yes
9647  if test "$with_gnu_ld" = yes; then
9648    need_lib_prefix=no
9649  fi
9650  need_version=yes
9651  ;;
9652
9653sysv4 | sysv4.3*)
9654  version_type=linux
9655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9656  soname_spec='${libname}${release}${shared_ext}$major'
9657  shlibpath_var=LD_LIBRARY_PATH
9658  case $host_vendor in
9659    sni)
9660      shlibpath_overrides_runpath=no
9661      need_lib_prefix=no
9662      export_dynamic_flag_spec='${wl}-Blargedynsym'
9663      runpath_var=LD_RUN_PATH
9664      ;;
9665    siemens)
9666      need_lib_prefix=no
9667      ;;
9668    motorola)
9669      need_lib_prefix=no
9670      need_version=no
9671      shlibpath_overrides_runpath=no
9672      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9673      ;;
9674  esac
9675  ;;
9676
9677sysv4*MP*)
9678  if test -d /usr/nec ;then
9679    version_type=linux
9680    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9681    soname_spec='$libname${shared_ext}.$major'
9682    shlibpath_var=LD_LIBRARY_PATH
9683  fi
9684  ;;
9685
9686sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9687  version_type=freebsd-elf
9688  need_lib_prefix=no
9689  need_version=no
9690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9691  soname_spec='${libname}${release}${shared_ext}$major'
9692  shlibpath_var=LD_LIBRARY_PATH
9693  hardcode_into_libs=yes
9694  if test "$with_gnu_ld" = yes; then
9695    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9696    shlibpath_overrides_runpath=no
9697  else
9698    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9699    shlibpath_overrides_runpath=yes
9700    case $host_os in
9701      sco3.2v5*)
9702        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9703        ;;
9704    esac
9705  fi
9706  sys_lib_dlsearch_path_spec='/usr/lib'
9707  ;;
9708
9709uts4*)
9710  version_type=linux
9711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9712  soname_spec='${libname}${release}${shared_ext}$major'
9713  shlibpath_var=LD_LIBRARY_PATH
9714  ;;
9715
9716*)
9717  dynamic_linker=no
9718  ;;
9719esac
9720echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9721echo "${ECHO_T}$dynamic_linker" >&6
9722test "$dynamic_linker" = no && can_build_shared=no
9723
9724variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9725if test "$GCC" = yes; then
9726  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9727fi
9728
9729echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9730echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9731hardcode_action=
9732if test -n "$hardcode_libdir_flag_spec" || \
9733   test -n "$runpath_var" || \
9734   test "X$hardcode_automatic" = "Xyes" ; then
9735
9736  # We can hardcode non-existant directories.
9737  if test "$hardcode_direct" != no &&
9738     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9739     # have to relink, otherwise we might link with an installed library
9740     # when we should be linking with a yet-to-be-installed one
9741     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9742     test "$hardcode_minus_L" != no; then
9743    # Linking always hardcodes the temporary library directory.
9744    hardcode_action=relink
9745  else
9746    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9747    hardcode_action=immediate
9748  fi
9749else
9750  # We cannot hardcode anything, or else we can only hardcode existing
9751  # directories.
9752  hardcode_action=unsupported
9753fi
9754echo "$as_me:$LINENO: result: $hardcode_action" >&5
9755echo "${ECHO_T}$hardcode_action" >&6
9756
9757if test "$hardcode_action" = relink; then
9758  # Fast installation is not supported
9759  enable_fast_install=no
9760elif test "$shlibpath_overrides_runpath" = yes ||
9761     test "$enable_shared" = no; then
9762  # Fast installation is not necessary
9763  enable_fast_install=needless
9764fi
9765
9766striplib=
9767old_striplib=
9768echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9769echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9770if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9771  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9772  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9773  echo "$as_me:$LINENO: result: yes" >&5
9774echo "${ECHO_T}yes" >&6
9775else
9776# FIXME - insert some real tests, host_os isn't really good enough
9777  case $host_os in
9778   darwin*)
9779       if test -n "$STRIP" ; then
9780         striplib="$STRIP -x"
9781         echo "$as_me:$LINENO: result: yes" >&5
9782echo "${ECHO_T}yes" >&6
9783       else
9784  echo "$as_me:$LINENO: result: no" >&5
9785echo "${ECHO_T}no" >&6
9786fi
9787       ;;
9788   *)
9789  echo "$as_me:$LINENO: result: no" >&5
9790echo "${ECHO_T}no" >&6
9791    ;;
9792  esac
9793fi
9794
9795if test "x$enable_dlopen" != xyes; then
9796  enable_dlopen=unknown
9797  enable_dlopen_self=unknown
9798  enable_dlopen_self_static=unknown
9799else
9800  lt_cv_dlopen=no
9801  lt_cv_dlopen_libs=
9802
9803  case $host_os in
9804  beos*)
9805    lt_cv_dlopen="load_add_on"
9806    lt_cv_dlopen_libs=
9807    lt_cv_dlopen_self=yes
9808    ;;
9809
9810  mingw* | pw32*)
9811    lt_cv_dlopen="LoadLibrary"
9812    lt_cv_dlopen_libs=
9813   ;;
9814
9815  cygwin*)
9816    lt_cv_dlopen="dlopen"
9817    lt_cv_dlopen_libs=
9818   ;;
9819
9820  darwin*)
9821  # if libdl is installed we need to link against it
9822    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9823echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9824if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9825  echo $ECHO_N "(cached) $ECHO_C" >&6
9826else
9827  ac_check_lib_save_LIBS=$LIBS
9828LIBS="-ldl  $LIBS"
9829cat >conftest.$ac_ext <<_ACEOF
9830/* confdefs.h.  */
9831_ACEOF
9832cat confdefs.h >>conftest.$ac_ext
9833cat >>conftest.$ac_ext <<_ACEOF
9834/* end confdefs.h.  */
9835
9836/* Override any gcc2 internal prototype to avoid an error.  */
9837#ifdef __cplusplus
9838extern "C"
9839#endif
9840/* We use char because int might match the return type of a gcc2
9841   builtin and then its argument prototype would still apply.  */
9842char dlopen ();
9843int
9844main ()
9845{
9846dlopen ();
9847  ;
9848  return 0;
9849}
9850_ACEOF
9851rm -f conftest.$ac_objext conftest$ac_exeext
9852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853  (eval $ac_link) 2>conftest.er1
9854  ac_status=$?
9855  grep -v '^ *+' conftest.er1 >conftest.err
9856  rm -f conftest.er1
9857  cat conftest.err >&5
9858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859  (exit $ac_status); } &&
9860         { ac_try='test -z "$ac_c_werror_flag"
9861                         || test ! -s conftest.err'
9862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863  (eval $ac_try) 2>&5
9864  ac_status=$?
9865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866  (exit $ac_status); }; } &&
9867         { ac_try='test -s conftest$ac_exeext'
9868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869  (eval $ac_try) 2>&5
9870  ac_status=$?
9871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872  (exit $ac_status); }; }; then
9873  ac_cv_lib_dl_dlopen=yes
9874else
9875  echo "$as_me: failed program was:" >&5
9876sed 's/^/| /' conftest.$ac_ext >&5
9877
9878ac_cv_lib_dl_dlopen=no
9879fi
9880rm -f conftest.err conftest.$ac_objext \
9881      conftest$ac_exeext conftest.$ac_ext
9882LIBS=$ac_check_lib_save_LIBS
9883fi
9884echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9885echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9886if test $ac_cv_lib_dl_dlopen = yes; then
9887  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9888else
9889
9890    lt_cv_dlopen="dyld"
9891    lt_cv_dlopen_libs=
9892    lt_cv_dlopen_self=yes
9893
9894fi
9895
9896   ;;
9897
9898  *)
9899    echo "$as_me:$LINENO: checking for shl_load" >&5
9900echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9901if test "${ac_cv_func_shl_load+set}" = set; then
9902  echo $ECHO_N "(cached) $ECHO_C" >&6
9903else
9904  cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h.  */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h.  */
9910/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9911   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9912#define shl_load innocuous_shl_load
9913
9914/* System header to define __stub macros and hopefully few prototypes,
9915    which can conflict with char shl_load (); below.
9916    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9917    <limits.h> exists even on freestanding compilers.  */
9918
9919#ifdef __STDC__
9920# include <limits.h>
9921#else
9922# include <assert.h>
9923#endif
9924
9925#undef shl_load
9926
9927/* Override any gcc2 internal prototype to avoid an error.  */
9928#ifdef __cplusplus
9929extern "C"
9930{
9931#endif
9932/* We use char because int might match the return type of a gcc2
9933   builtin and then its argument prototype would still apply.  */
9934char shl_load ();
9935/* The GNU C library defines this for functions which it implements
9936    to always fail with ENOSYS.  Some functions are actually named
9937    something starting with __ and the normal name is an alias.  */
9938#if defined (__stub_shl_load) || defined (__stub___shl_load)
9939choke me
9940#else
9941char (*f) () = shl_load;
9942#endif
9943#ifdef __cplusplus
9944}
9945#endif
9946
9947int
9948main ()
9949{
9950return f != shl_load;
9951  ;
9952  return 0;
9953}
9954_ACEOF
9955rm -f conftest.$ac_objext conftest$ac_exeext
9956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957  (eval $ac_link) 2>conftest.er1
9958  ac_status=$?
9959  grep -v '^ *+' conftest.er1 >conftest.err
9960  rm -f conftest.er1
9961  cat conftest.err >&5
9962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963  (exit $ac_status); } &&
9964         { ac_try='test -z "$ac_c_werror_flag"
9965                         || test ! -s conftest.err'
9966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967  (eval $ac_try) 2>&5
9968  ac_status=$?
9969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970  (exit $ac_status); }; } &&
9971         { ac_try='test -s conftest$ac_exeext'
9972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973  (eval $ac_try) 2>&5
9974  ac_status=$?
9975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976  (exit $ac_status); }; }; then
9977  ac_cv_func_shl_load=yes
9978else
9979  echo "$as_me: failed program was:" >&5
9980sed 's/^/| /' conftest.$ac_ext >&5
9981
9982ac_cv_func_shl_load=no
9983fi
9984rm -f conftest.err conftest.$ac_objext \
9985      conftest$ac_exeext conftest.$ac_ext
9986fi
9987echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9988echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9989if test $ac_cv_func_shl_load = yes; then
9990  lt_cv_dlopen="shl_load"
9991else
9992  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9993echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9994if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9995  echo $ECHO_N "(cached) $ECHO_C" >&6
9996else
9997  ac_check_lib_save_LIBS=$LIBS
9998LIBS="-ldld  $LIBS"
9999cat >conftest.$ac_ext <<_ACEOF
10000/* confdefs.h.  */
10001_ACEOF
10002cat confdefs.h >>conftest.$ac_ext
10003cat >>conftest.$ac_ext <<_ACEOF
10004/* end confdefs.h.  */
10005
10006/* Override any gcc2 internal prototype to avoid an error.  */
10007#ifdef __cplusplus
10008extern "C"
10009#endif
10010/* We use char because int might match the return type of a gcc2
10011   builtin and then its argument prototype would still apply.  */
10012char shl_load ();
10013int
10014main ()
10015{
10016shl_load ();
10017  ;
10018  return 0;
10019}
10020_ACEOF
10021rm -f conftest.$ac_objext conftest$ac_exeext
10022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023  (eval $ac_link) 2>conftest.er1
10024  ac_status=$?
10025  grep -v '^ *+' conftest.er1 >conftest.err
10026  rm -f conftest.er1
10027  cat conftest.err >&5
10028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029  (exit $ac_status); } &&
10030         { ac_try='test -z "$ac_c_werror_flag"
10031                         || test ! -s conftest.err'
10032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033  (eval $ac_try) 2>&5
10034  ac_status=$?
10035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036  (exit $ac_status); }; } &&
10037         { ac_try='test -s conftest$ac_exeext'
10038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039  (eval $ac_try) 2>&5
10040  ac_status=$?
10041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042  (exit $ac_status); }; }; then
10043  ac_cv_lib_dld_shl_load=yes
10044else
10045  echo "$as_me: failed program was:" >&5
10046sed 's/^/| /' conftest.$ac_ext >&5
10047
10048ac_cv_lib_dld_shl_load=no
10049fi
10050rm -f conftest.err conftest.$ac_objext \
10051      conftest$ac_exeext conftest.$ac_ext
10052LIBS=$ac_check_lib_save_LIBS
10053fi
10054echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10055echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10056if test $ac_cv_lib_dld_shl_load = yes; then
10057  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10058else
10059  echo "$as_me:$LINENO: checking for dlopen" >&5
10060echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10061if test "${ac_cv_func_dlopen+set}" = set; then
10062  echo $ECHO_N "(cached) $ECHO_C" >&6
10063else
10064  cat >conftest.$ac_ext <<_ACEOF
10065/* confdefs.h.  */
10066_ACEOF
10067cat confdefs.h >>conftest.$ac_ext
10068cat >>conftest.$ac_ext <<_ACEOF
10069/* end confdefs.h.  */
10070/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10071   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10072#define dlopen innocuous_dlopen
10073
10074/* System header to define __stub macros and hopefully few prototypes,
10075    which can conflict with char dlopen (); below.
10076    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077    <limits.h> exists even on freestanding compilers.  */
10078
10079#ifdef __STDC__
10080# include <limits.h>
10081#else
10082# include <assert.h>
10083#endif
10084
10085#undef dlopen
10086
10087/* Override any gcc2 internal prototype to avoid an error.  */
10088#ifdef __cplusplus
10089extern "C"
10090{
10091#endif
10092/* We use char because int might match the return type of a gcc2
10093   builtin and then its argument prototype would still apply.  */
10094char dlopen ();
10095/* The GNU C library defines this for functions which it implements
10096    to always fail with ENOSYS.  Some functions are actually named
10097    something starting with __ and the normal name is an alias.  */
10098#if defined (__stub_dlopen) || defined (__stub___dlopen)
10099choke me
10100#else
10101char (*f) () = dlopen;
10102#endif
10103#ifdef __cplusplus
10104}
10105#endif
10106
10107int
10108main ()
10109{
10110return f != dlopen;
10111  ;
10112  return 0;
10113}
10114_ACEOF
10115rm -f conftest.$ac_objext conftest$ac_exeext
10116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10117  (eval $ac_link) 2>conftest.er1
10118  ac_status=$?
10119  grep -v '^ *+' conftest.er1 >conftest.err
10120  rm -f conftest.er1
10121  cat conftest.err >&5
10122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123  (exit $ac_status); } &&
10124         { ac_try='test -z "$ac_c_werror_flag"
10125                         || test ! -s conftest.err'
10126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127  (eval $ac_try) 2>&5
10128  ac_status=$?
10129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130  (exit $ac_status); }; } &&
10131         { ac_try='test -s conftest$ac_exeext'
10132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133  (eval $ac_try) 2>&5
10134  ac_status=$?
10135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136  (exit $ac_status); }; }; then
10137  ac_cv_func_dlopen=yes
10138else
10139  echo "$as_me: failed program was:" >&5
10140sed 's/^/| /' conftest.$ac_ext >&5
10141
10142ac_cv_func_dlopen=no
10143fi
10144rm -f conftest.err conftest.$ac_objext \
10145      conftest$ac_exeext conftest.$ac_ext
10146fi
10147echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10148echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10149if test $ac_cv_func_dlopen = yes; then
10150  lt_cv_dlopen="dlopen"
10151else
10152  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10153echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10154if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10155  echo $ECHO_N "(cached) $ECHO_C" >&6
10156else
10157  ac_check_lib_save_LIBS=$LIBS
10158LIBS="-ldl  $LIBS"
10159cat >conftest.$ac_ext <<_ACEOF
10160/* confdefs.h.  */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h.  */
10165
10166/* Override any gcc2 internal prototype to avoid an error.  */
10167#ifdef __cplusplus
10168extern "C"
10169#endif
10170/* We use char because int might match the return type of a gcc2
10171   builtin and then its argument prototype would still apply.  */
10172char dlopen ();
10173int
10174main ()
10175{
10176dlopen ();
10177  ;
10178  return 0;
10179}
10180_ACEOF
10181rm -f conftest.$ac_objext conftest$ac_exeext
10182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10183  (eval $ac_link) 2>conftest.er1
10184  ac_status=$?
10185  grep -v '^ *+' conftest.er1 >conftest.err
10186  rm -f conftest.er1
10187  cat conftest.err >&5
10188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189  (exit $ac_status); } &&
10190         { ac_try='test -z "$ac_c_werror_flag"
10191                         || test ! -s conftest.err'
10192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193  (eval $ac_try) 2>&5
10194  ac_status=$?
10195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196  (exit $ac_status); }; } &&
10197         { ac_try='test -s conftest$ac_exeext'
10198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199  (eval $ac_try) 2>&5
10200  ac_status=$?
10201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202  (exit $ac_status); }; }; then
10203  ac_cv_lib_dl_dlopen=yes
10204else
10205  echo "$as_me: failed program was:" >&5
10206sed 's/^/| /' conftest.$ac_ext >&5
10207
10208ac_cv_lib_dl_dlopen=no
10209fi
10210rm -f conftest.err conftest.$ac_objext \
10211      conftest$ac_exeext conftest.$ac_ext
10212LIBS=$ac_check_lib_save_LIBS
10213fi
10214echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10215echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10216if test $ac_cv_lib_dl_dlopen = yes; then
10217  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10218else
10219  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10220echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10221if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10222  echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224  ac_check_lib_save_LIBS=$LIBS
10225LIBS="-lsvld  $LIBS"
10226cat >conftest.$ac_ext <<_ACEOF
10227/* confdefs.h.  */
10228_ACEOF
10229cat confdefs.h >>conftest.$ac_ext
10230cat >>conftest.$ac_ext <<_ACEOF
10231/* end confdefs.h.  */
10232
10233/* Override any gcc2 internal prototype to avoid an error.  */
10234#ifdef __cplusplus
10235extern "C"
10236#endif
10237/* We use char because int might match the return type of a gcc2
10238   builtin and then its argument prototype would still apply.  */
10239char dlopen ();
10240int
10241main ()
10242{
10243dlopen ();
10244  ;
10245  return 0;
10246}
10247_ACEOF
10248rm -f conftest.$ac_objext conftest$ac_exeext
10249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250  (eval $ac_link) 2>conftest.er1
10251  ac_status=$?
10252  grep -v '^ *+' conftest.er1 >conftest.err
10253  rm -f conftest.er1
10254  cat conftest.err >&5
10255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256  (exit $ac_status); } &&
10257         { ac_try='test -z "$ac_c_werror_flag"
10258                         || test ! -s conftest.err'
10259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260  (eval $ac_try) 2>&5
10261  ac_status=$?
10262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263  (exit $ac_status); }; } &&
10264         { ac_try='test -s conftest$ac_exeext'
10265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266  (eval $ac_try) 2>&5
10267  ac_status=$?
10268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269  (exit $ac_status); }; }; then
10270  ac_cv_lib_svld_dlopen=yes
10271else
10272  echo "$as_me: failed program was:" >&5
10273sed 's/^/| /' conftest.$ac_ext >&5
10274
10275ac_cv_lib_svld_dlopen=no
10276fi
10277rm -f conftest.err conftest.$ac_objext \
10278      conftest$ac_exeext conftest.$ac_ext
10279LIBS=$ac_check_lib_save_LIBS
10280fi
10281echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10282echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10283if test $ac_cv_lib_svld_dlopen = yes; then
10284  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10285else
10286  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10287echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10288if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10289  echo $ECHO_N "(cached) $ECHO_C" >&6
10290else
10291  ac_check_lib_save_LIBS=$LIBS
10292LIBS="-ldld  $LIBS"
10293cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h.  */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h.  */
10299
10300/* Override any gcc2 internal prototype to avoid an error.  */
10301#ifdef __cplusplus
10302extern "C"
10303#endif
10304/* We use char because int might match the return type of a gcc2
10305   builtin and then its argument prototype would still apply.  */
10306char dld_link ();
10307int
10308main ()
10309{
10310dld_link ();
10311  ;
10312  return 0;
10313}
10314_ACEOF
10315rm -f conftest.$ac_objext conftest$ac_exeext
10316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317  (eval $ac_link) 2>conftest.er1
10318  ac_status=$?
10319  grep -v '^ *+' conftest.er1 >conftest.err
10320  rm -f conftest.er1
10321  cat conftest.err >&5
10322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323  (exit $ac_status); } &&
10324         { ac_try='test -z "$ac_c_werror_flag"
10325                         || test ! -s conftest.err'
10326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327  (eval $ac_try) 2>&5
10328  ac_status=$?
10329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330  (exit $ac_status); }; } &&
10331         { ac_try='test -s conftest$ac_exeext'
10332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333  (eval $ac_try) 2>&5
10334  ac_status=$?
10335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336  (exit $ac_status); }; }; then
10337  ac_cv_lib_dld_dld_link=yes
10338else
10339  echo "$as_me: failed program was:" >&5
10340sed 's/^/| /' conftest.$ac_ext >&5
10341
10342ac_cv_lib_dld_dld_link=no
10343fi
10344rm -f conftest.err conftest.$ac_objext \
10345      conftest$ac_exeext conftest.$ac_ext
10346LIBS=$ac_check_lib_save_LIBS
10347fi
10348echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10349echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10350if test $ac_cv_lib_dld_dld_link = yes; then
10351  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10352fi
10353
10354
10355fi
10356
10357
10358fi
10359
10360
10361fi
10362
10363
10364fi
10365
10366
10367fi
10368
10369    ;;
10370  esac
10371
10372  if test "x$lt_cv_dlopen" != xno; then
10373    enable_dlopen=yes
10374  else
10375    enable_dlopen=no
10376  fi
10377
10378  case $lt_cv_dlopen in
10379  dlopen)
10380    save_CPPFLAGS="$CPPFLAGS"
10381    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10382
10383    save_LDFLAGS="$LDFLAGS"
10384    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10385
10386    save_LIBS="$LIBS"
10387    LIBS="$lt_cv_dlopen_libs $LIBS"
10388
10389    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10390echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10391if test "${lt_cv_dlopen_self+set}" = set; then
10392  echo $ECHO_N "(cached) $ECHO_C" >&6
10393else
10394          if test "$cross_compiling" = yes; then :
10395  lt_cv_dlopen_self=cross
10396else
10397  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10398  lt_status=$lt_dlunknown
10399  cat > conftest.$ac_ext <<EOF
10400#line 10400 "configure"
10401#include "confdefs.h"
10402
10403#if HAVE_DLFCN_H
10404#include <dlfcn.h>
10405#endif
10406
10407#include <stdio.h>
10408
10409#ifdef RTLD_GLOBAL
10410#  define LT_DLGLOBAL           RTLD_GLOBAL
10411#else
10412#  ifdef DL_GLOBAL
10413#    define LT_DLGLOBAL         DL_GLOBAL
10414#  else
10415#    define LT_DLGLOBAL         0
10416#  endif
10417#endif
10418
10419/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10420   find out it does not work in some platform. */
10421#ifndef LT_DLLAZY_OR_NOW
10422#  ifdef RTLD_LAZY
10423#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10424#  else
10425#    ifdef DL_LAZY
10426#      define LT_DLLAZY_OR_NOW          DL_LAZY
10427#    else
10428#      ifdef RTLD_NOW
10429#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10430#      else
10431#        ifdef DL_NOW
10432#          define LT_DLLAZY_OR_NOW      DL_NOW
10433#        else
10434#          define LT_DLLAZY_OR_NOW      0
10435#        endif
10436#      endif
10437#    endif
10438#  endif
10439#endif
10440
10441#ifdef __cplusplus
10442extern "C" void exit (int);
10443#endif
10444
10445void fnord() { int i=42;}
10446int main ()
10447{
10448  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10449  int status = $lt_dlunknown;
10450
10451  if (self)
10452    {
10453      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10454      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10455      /* dlclose (self); */
10456    }
10457  else
10458    puts (dlerror ());
10459
10460    exit (status);
10461}
10462EOF
10463  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10464  (eval $ac_link) 2>&5
10465  ac_status=$?
10466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10468    (./conftest; exit; ) >&5 2>/dev/null
10469    lt_status=$?
10470    case x$lt_status in
10471      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10472      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10473      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10474    esac
10475  else :
10476    # compilation failed
10477    lt_cv_dlopen_self=no
10478  fi
10479fi
10480rm -fr conftest*
10481
10482
10483fi
10484echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10485echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10486
10487    if test "x$lt_cv_dlopen_self" = xyes; then
10488      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10489      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10490echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10491if test "${lt_cv_dlopen_self_static+set}" = set; then
10492  echo $ECHO_N "(cached) $ECHO_C" >&6
10493else
10494          if test "$cross_compiling" = yes; then :
10495  lt_cv_dlopen_self_static=cross
10496else
10497  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10498  lt_status=$lt_dlunknown
10499  cat > conftest.$ac_ext <<EOF
10500#line 10500 "configure"
10501#include "confdefs.h"
10502
10503#if HAVE_DLFCN_H
10504#include <dlfcn.h>
10505#endif
10506
10507#include <stdio.h>
10508
10509#ifdef RTLD_GLOBAL
10510#  define LT_DLGLOBAL           RTLD_GLOBAL
10511#else
10512#  ifdef DL_GLOBAL
10513#    define LT_DLGLOBAL         DL_GLOBAL
10514#  else
10515#    define LT_DLGLOBAL         0
10516#  endif
10517#endif
10518
10519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10520   find out it does not work in some platform. */
10521#ifndef LT_DLLAZY_OR_NOW
10522#  ifdef RTLD_LAZY
10523#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10524#  else
10525#    ifdef DL_LAZY
10526#      define LT_DLLAZY_OR_NOW          DL_LAZY
10527#    else
10528#      ifdef RTLD_NOW
10529#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10530#      else
10531#        ifdef DL_NOW
10532#          define LT_DLLAZY_OR_NOW      DL_NOW
10533#        else
10534#          define LT_DLLAZY_OR_NOW      0
10535#        endif
10536#      endif
10537#    endif
10538#  endif
10539#endif
10540
10541#ifdef __cplusplus
10542extern "C" void exit (int);
10543#endif
10544
10545void fnord() { int i=42;}
10546int main ()
10547{
10548  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10549  int status = $lt_dlunknown;
10550
10551  if (self)
10552    {
10553      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10554      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10555      /* dlclose (self); */
10556    }
10557  else
10558    puts (dlerror ());
10559
10560    exit (status);
10561}
10562EOF
10563  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564  (eval $ac_link) 2>&5
10565  ac_status=$?
10566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10568    (./conftest; exit; ) >&5 2>/dev/null
10569    lt_status=$?
10570    case x$lt_status in
10571      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10572      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10573      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10574    esac
10575  else :
10576    # compilation failed
10577    lt_cv_dlopen_self_static=no
10578  fi
10579fi
10580rm -fr conftest*
10581
10582
10583fi
10584echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10585echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10586    fi
10587
10588    CPPFLAGS="$save_CPPFLAGS"
10589    LDFLAGS="$save_LDFLAGS"
10590    LIBS="$save_LIBS"
10591    ;;
10592  esac
10593
10594  case $lt_cv_dlopen_self in
10595  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10596  *) enable_dlopen_self=unknown ;;
10597  esac
10598
10599  case $lt_cv_dlopen_self_static in
10600  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10601  *) enable_dlopen_self_static=unknown ;;
10602  esac
10603fi
10604
10605
10606# Report which library types will actually be built
10607echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10608echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10609echo "$as_me:$LINENO: result: $can_build_shared" >&5
10610echo "${ECHO_T}$can_build_shared" >&6
10611
10612echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10613echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10614test "$can_build_shared" = "no" && enable_shared=no
10615
10616# On AIX, shared libraries and static libraries use the same namespace, and
10617# are all built from PIC.
10618case $host_os in
10619aix3*)
10620  test "$enable_shared" = yes && enable_static=no
10621  if test -n "$RANLIB"; then
10622    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10623    postinstall_cmds='$RANLIB $lib'
10624  fi
10625  ;;
10626
10627aix4* | aix5*)
10628  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10629    test "$enable_shared" = yes && enable_static=no
10630  fi
10631    ;;
10632esac
10633echo "$as_me:$LINENO: result: $enable_shared" >&5
10634echo "${ECHO_T}$enable_shared" >&6
10635
10636echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10637echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10638# Make sure either enable_shared or enable_static is yes.
10639test "$enable_shared" = yes || enable_static=yes
10640echo "$as_me:$LINENO: result: $enable_static" >&5
10641echo "${ECHO_T}$enable_static" >&6
10642
10643# The else clause should only fire when bootstrapping the
10644# libtool distribution, otherwise you forgot to ship ltmain.sh
10645# with your package, and you will get complaints that there are
10646# no rules to generate ltmain.sh.
10647if test -f "$ltmain"; then
10648  # See if we are running on zsh, and set the options which allow our commands through
10649  # without removal of \ escapes.
10650  if test -n "${ZSH_VERSION+set}" ; then
10651    setopt NO_GLOB_SUBST
10652  fi
10653  # Now quote all the things that may contain metacharacters while being
10654  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10655  # variables and quote the copies for generation of the libtool script.
10656  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10657    SED SHELL STRIP \
10658    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10659    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10660    deplibs_check_method reload_flag reload_cmds need_locks \
10661    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10662    lt_cv_sys_global_symbol_to_c_name_address \
10663    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10664    old_postinstall_cmds old_postuninstall_cmds \
10665    compiler \
10666    CC \
10667    LD \
10668    lt_prog_compiler_wl \
10669    lt_prog_compiler_pic \
10670    lt_prog_compiler_static \
10671    lt_prog_compiler_no_builtin_flag \
10672    export_dynamic_flag_spec \
10673    thread_safe_flag_spec \
10674    whole_archive_flag_spec \
10675    enable_shared_with_static_runtimes \
10676    old_archive_cmds \
10677    old_archive_from_new_cmds \
10678    predep_objects \
10679    postdep_objects \
10680    predeps \
10681    postdeps \
10682    compiler_lib_search_path \
10683    archive_cmds \
10684    archive_expsym_cmds \
10685    postinstall_cmds \
10686    postuninstall_cmds \
10687    old_archive_from_expsyms_cmds \
10688    allow_undefined_flag \
10689    no_undefined_flag \
10690    export_symbols_cmds \
10691    hardcode_libdir_flag_spec \
10692    hardcode_libdir_flag_spec_ld \
10693    hardcode_libdir_separator \
10694    hardcode_automatic \
10695    module_cmds \
10696    module_expsym_cmds \
10697    lt_cv_prog_compiler_c_o \
10698    exclude_expsyms \
10699    include_expsyms; do
10700
10701    case $var in
10702    old_archive_cmds | \
10703    old_archive_from_new_cmds | \
10704    archive_cmds | \
10705    archive_expsym_cmds | \
10706    module_cmds | \
10707    module_expsym_cmds | \
10708    old_archive_from_expsyms_cmds | \
10709    export_symbols_cmds | \
10710    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10711    postinstall_cmds | postuninstall_cmds | \
10712    old_postinstall_cmds | old_postuninstall_cmds | \
10713    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10714      # Double-quote double-evaled strings.
10715      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10716      ;;
10717    *)
10718      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10719      ;;
10720    esac
10721  done
10722
10723  case $lt_echo in
10724  *'\$0 --fallback-echo"')
10725    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10726    ;;
10727  esac
10728
10729cfgfile="${ofile}T"
10730  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10731  $rm -f "$cfgfile"
10732  { echo "$as_me:$LINENO: creating $ofile" >&5
10733echo "$as_me: creating $ofile" >&6;}
10734
10735  cat <<__EOF__ >> "$cfgfile"
10736#! $SHELL
10737
10738# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10739# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10740# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10741#
10742# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10743# Free Software Foundation, Inc.
10744#
10745# This file is part of GNU Libtool:
10746# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10747#
10748# This program is free software; you can redistribute it and/or modify
10749# it under the terms of the GNU General Public License as published by
10750# the Free Software Foundation; either version 2 of the License, or
10751# (at your option) any later version.
10752#
10753# This program is distributed in the hope that it will be useful, but
10754# WITHOUT ANY WARRANTY; without even the implied warranty of
10755# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10756# General Public License for more details.
10757#
10758# You should have received a copy of the GNU General Public License
10759# along with this program; if not, write to the Free Software
10760# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10761#
10762# As a special exception to the GNU General Public License, if you
10763# distribute this file as part of a program that contains a
10764# configuration script generated by Autoconf, you may include it under
10765# the same distribution terms that you use for the rest of that program.
10766
10767# A sed program that does not truncate output.
10768SED=$lt_SED
10769
10770# Sed that help