source: ThirdParty/Glpk/trunk/configure @ 1917

Last change on this file since 1917 was 1917, checked in by stefan, 10 years ago

update to Glpk 4.45 (4.44 still supported)

File size: 774.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyGlpk trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2010 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyGlpk'
431PACKAGE_TARNAME='thirdpartyglpk'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyGlpk trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="glpk/include/glpk.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion GLPK_SVN_REV build build_cpu build_vendor build_os COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP 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 LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS glpkmajorver glpkminorver COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE GLPKDIR GLPK_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyGlpk trunk to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyGlpk trunk:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062  --enable-debug-glpk compile this project (Glpk) with debug options
1063  --enable-doscompile     Under Cygwin, compile so that executables run under
1064                          DOS. Set to mingw to use gcc/g++/ld with
1065                          -mno-cygwin. Set to msvc to use cl/link (or
1066                          icl/link). Default when mentioned: mingw. Default
1067                          when not mentioned: disabled.
1068  --enable-pkg-config     use pkg-config if available (default is yes)
1069  --enable-static[=PKGS]
1070                          build static libraries [default=no]
1071  --disable-dependency-tracking  speeds up one-time build
1072  --enable-dependency-tracking   do not reject slow dependency extractors
1073  --enable-maintainer-mode  enable make rules and dependencies not useful
1074                          (and sometimes confusing) to the casual installer
1075  --enable-shared[=PKGS]
1076                          build shared libraries [default=yes]
1077  --enable-fast-install[=PKGS]
1078                          optimize for fast installation [default=yes]
1079  --disable-libtool-lock  avoid locking (might break parallel builds)
1080  --enable-gnu-packages   compile with GNU packages (disabled by default)
1081  --enable-odbc           enable MathProg ODBC support [default=auto]
1082  --enable-mysql          enable MathProg MySQL support [default=auto]
1083
1084Optional Packages:
1085  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1086  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1087  --with-glpk-verbosity specify the debug verbosity level for project Glpk
1088  --with-glpk-checklevel specify the sanity check level for project Glpk
1089  --with-coin-instdir     prefix of installation directory for precompiled
1090                          COIN packages
1091  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1092  --with-pic              try to use only PIC/non-PIC objects [default=use
1093                          both]
1094  --with-tags[=TAGS]
1095                          include additional configurations [automatic]
1096
1097Some influential environment variables:
1098  CDEFS       Additional -D flags to be used when compiling C code.
1099  ADD_CFLAGS  Additional C compiler options
1100  DBG_CFLAGS  Debug C compiler options
1101  OPT_CFLAGS  Optimize C compiler options
1102  CC          C compiler command
1103  CFLAGS      C compiler flags
1104  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1105              nonstandard directory <lib dir>
1106  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107              headers in a nonstandard directory <include dir>
1108  MPICC       C MPI Compiler
1109  PKG_CONFIG  path to pkg-config utility
1110  CPP         C preprocessor
1111  CXX         C++ compiler command
1112  CXXFLAGS    C++ compiler flags
1113  CXXCPP      C++ preprocessor
1114  F77         Fortran 77 compiler command
1115  FFLAGS      Fortran 77 compiler flags
1116
1117Use these variables to override the choices made by `configure' or to help
1118it to find libraries and programs with nonstandard names/locations.
1119
1120Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1121_ACEOF
1122fi
1123
1124if test "$ac_init_help" = "recursive"; then
1125  # If there are subdirs, report their specific --help.
1126  ac_popdir=`pwd`
1127  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1128    test -d $ac_dir || continue
1129    ac_builddir=.
1130
1131if test "$ac_dir" != .; then
1132  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1133  # A "../" for each directory in $ac_dir_suffix.
1134  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1135else
1136  ac_dir_suffix= ac_top_builddir=
1137fi
1138
1139case $srcdir in
1140  .)  # No --srcdir option.  We are building in place.
1141    ac_srcdir=.
1142    if test -z "$ac_top_builddir"; then
1143       ac_top_srcdir=.
1144    else
1145       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1146    fi ;;
1147  [\\/]* | ?:[\\/]* )  # Absolute path.
1148    ac_srcdir=$srcdir$ac_dir_suffix;
1149    ac_top_srcdir=$srcdir ;;
1150  *) # Relative path.
1151    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1152    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1153esac
1154
1155# Do not use `cd foo && pwd` to compute absolute paths, because
1156# the directories may not exist.
1157case `pwd` in
1158.) ac_abs_builddir="$ac_dir";;
1159*)
1160  case "$ac_dir" in
1161  .) ac_abs_builddir=`pwd`;;
1162  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1163  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1164  esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_top_builddir=${ac_top_builddir}.;;
1168*)
1169  case ${ac_top_builddir}. in
1170  .) ac_abs_top_builddir=$ac_abs_builddir;;
1171  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1172  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1173  esac;;
1174esac
1175case $ac_abs_builddir in
1176.) ac_abs_srcdir=$ac_srcdir;;
1177*)
1178  case $ac_srcdir in
1179  .) ac_abs_srcdir=$ac_abs_builddir;;
1180  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1181  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1182  esac;;
1183esac
1184case $ac_abs_builddir in
1185.) ac_abs_top_srcdir=$ac_top_srcdir;;
1186*)
1187  case $ac_top_srcdir in
1188  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1189  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1190  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1191  esac;;
1192esac
1193
1194    cd $ac_dir
1195    # Check for guested configure; otherwise get Cygnus style configure.
1196    if test -f $ac_srcdir/configure.gnu; then
1197      echo
1198      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1199    elif test -f $ac_srcdir/configure; then
1200      echo
1201      $SHELL $ac_srcdir/configure  --help=recursive
1202    elif test -f $ac_srcdir/configure.ac ||
1203           test -f $ac_srcdir/configure.in; then
1204      echo
1205      $ac_configure --help
1206    else
1207      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1208    fi
1209    cd $ac_popdir
1210  done
1211fi
1212
1213test -n "$ac_init_help" && exit 0
1214if $ac_init_version; then
1215  cat <<\_ACEOF
1216ThirdPartyGlpk configure trunk
1217generated by GNU Autoconf 2.59
1218
1219Copyright (C) 2003 Free Software Foundation, Inc.
1220This configure script is free software; the Free Software Foundation
1221gives unlimited permission to copy, distribute and modify it.
1222
1223
1224Copyright 2007-2010 Stefan Vigerske and others.
1225All Rights Reserved.
1226This file is part of the open source package Coin which is distributed
1227under the Common Public License.
1228_ACEOF
1229  exit 0
1230fi
1231exec 5>config.log
1232cat >&5 <<_ACEOF
1233This file contains any messages produced by compilers while
1234running configure, to aid debugging if configure makes a mistake.
1235
1236It was created by ThirdPartyGlpk $as_me trunk, which was
1237generated by GNU Autoconf 2.59.  Invocation command line was
1238
1239  $ $0 $@
1240
1241_ACEOF
1242{
1243cat <<_ASUNAME
1244## --------- ##
1245## Platform. ##
1246## --------- ##
1247
1248hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1249uname -m = `(uname -m) 2>/dev/null || echo unknown`
1250uname -r = `(uname -r) 2>/dev/null || echo unknown`
1251uname -s = `(uname -s) 2>/dev/null || echo unknown`
1252uname -v = `(uname -v) 2>/dev/null || echo unknown`
1253
1254/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1255/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1256
1257/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1258/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1259/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1260hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1261/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1262/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1263/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1264
1265_ASUNAME
1266
1267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1268for as_dir in $PATH
1269do
1270  IFS=$as_save_IFS
1271  test -z "$as_dir" && as_dir=.
1272  echo "PATH: $as_dir"
1273done
1274
1275} >&5
1276
1277cat >&5 <<_ACEOF
1278
1279
1280## ----------- ##
1281## Core tests. ##
1282## ----------- ##
1283
1284_ACEOF
1285
1286
1287# Keep a trace of the command line.
1288# Strip out --no-create and --no-recursion so they do not pile up.
1289# Strip out --silent because we don't want to record it for future runs.
1290# Also quote any args containing shell meta-characters.
1291# Make two passes to allow for proper duplicate-argument suppression.
1292ac_configure_args=
1293ac_configure_args0=
1294ac_configure_args1=
1295ac_sep=
1296ac_must_keep_next=false
1297for ac_pass in 1 2
1298do
1299  for ac_arg
1300  do
1301    case $ac_arg in
1302    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1303    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1304    | -silent | --silent | --silen | --sile | --sil)
1305      continue ;;
1306    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1307      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1308    esac
1309    case $ac_pass in
1310    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1311    2)
1312      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1313      if test $ac_must_keep_next = true; then
1314        ac_must_keep_next=false # Got value, back to normal.
1315      else
1316        case $ac_arg in
1317          *=* | --config-cache | -C | -disable-* | --disable-* \
1318          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1319          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1320          | -with-* | --with-* | -without-* | --without-* | --x)
1321            case "$ac_configure_args0 " in
1322              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1323            esac
1324            ;;
1325          -* ) ac_must_keep_next=true ;;
1326        esac
1327      fi
1328      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1329      # Get rid of the leading space.
1330      ac_sep=" "
1331      ;;
1332    esac
1333  done
1334done
1335$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1336$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1337
1338# When interrupted or exit'd, cleanup temporary files, and complete
1339# config.log.  We remove comments because anyway the quotes in there
1340# would cause problems or look ugly.
1341# WARNING: Be sure not to use single quotes in there, as some shells,
1342# such as our DU 5.0 friend, will then `close' the trap.
1343trap 'exit_status=$?
1344  # Save into config.log some information that might help in debugging.
1345  {
1346    echo
1347
1348    cat <<\_ASBOX
1349## ---------------- ##
1350## Cache variables. ##
1351## ---------------- ##
1352_ASBOX
1353    echo
1354    # The following way of writing the cache mishandles newlines in values,
1355{
1356  (set) 2>&1 |
1357    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1358    *ac_space=\ *)
1359      sed -n \
1360        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1361          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1362      ;;
1363    *)
1364      sed -n \
1365        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1366      ;;
1367    esac;
1368}
1369    echo
1370
1371    cat <<\_ASBOX
1372## ----------------- ##
1373## Output variables. ##
1374## ----------------- ##
1375_ASBOX
1376    echo
1377    for ac_var in $ac_subst_vars
1378    do
1379      eval ac_val=$`echo $ac_var`
1380      echo "$ac_var='"'"'$ac_val'"'"'"
1381    done | sort
1382    echo
1383
1384    if test -n "$ac_subst_files"; then
1385      cat <<\_ASBOX
1386## ------------- ##
1387## Output files. ##
1388## ------------- ##
1389_ASBOX
1390      echo
1391      for ac_var in $ac_subst_files
1392      do
1393        eval ac_val=$`echo $ac_var`
1394        echo "$ac_var='"'"'$ac_val'"'"'"
1395      done | sort
1396      echo
1397    fi
1398
1399    if test -s confdefs.h; then
1400      cat <<\_ASBOX
1401## ----------- ##
1402## confdefs.h. ##
1403## ----------- ##
1404_ASBOX
1405      echo
1406      sed "/^$/d" confdefs.h | sort
1407      echo
1408    fi
1409    test "$ac_signal" != 0 &&
1410      echo "$as_me: caught signal $ac_signal"
1411    echo "$as_me: exit $exit_status"
1412  } >&5
1413  rm -f core *.core &&
1414  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1415    exit $exit_status
1416     ' 0
1417for ac_signal in 1 2 13 15; do
1418  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1419done
1420ac_signal=0
1421
1422# confdefs.h avoids OS command line length limits that DEFS can exceed.
1423rm -rf conftest* confdefs.h
1424# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1425echo >confdefs.h
1426
1427# Predefined preprocessor variables.
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_NAME "$PACKAGE_NAME"
1431_ACEOF
1432
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1436_ACEOF
1437
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_VERSION "$PACKAGE_VERSION"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_STRING "$PACKAGE_STRING"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1451_ACEOF
1452
1453
1454# Let the site file select an alternate cache file if it wants to.
1455# Prefer explicitly selected file to automatically selected ones.
1456if test -z "$CONFIG_SITE"; then
1457  if test "x$prefix" != xNONE; then
1458    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1459  else
1460    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1461  fi
1462fi
1463for ac_site_file in $CONFIG_SITE; do
1464  if test -r "$ac_site_file"; then
1465    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1466echo "$as_me: loading site script $ac_site_file" >&6;}
1467    sed 's/^/| /' "$ac_site_file" >&5
1468    . "$ac_site_file"
1469  fi
1470done
1471
1472if test -r "$cache_file"; then
1473  # Some versions of bash will fail to source /dev/null (special
1474  # files actually), so we avoid doing that.
1475  if test -f "$cache_file"; then
1476    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1477echo "$as_me: loading cache $cache_file" >&6;}
1478    case $cache_file in
1479      [\\/]* | ?:[\\/]* ) . $cache_file;;
1480      *)                      . ./$cache_file;;
1481    esac
1482  fi
1483else
1484  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1485echo "$as_me: creating cache $cache_file" >&6;}
1486  >$cache_file
1487fi
1488
1489# Check that the precious variables saved in the cache have kept the same
1490# value.
1491ac_cache_corrupted=false
1492for ac_var in `(set) 2>&1 |
1493               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1494  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1495  eval ac_new_set=\$ac_env_${ac_var}_set
1496  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1497  eval ac_new_val="\$ac_env_${ac_var}_value"
1498  case $ac_old_set,$ac_new_set in
1499    set,)
1500      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1501echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1502      ac_cache_corrupted=: ;;
1503    ,set)
1504      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1505echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1506      ac_cache_corrupted=: ;;
1507    ,);;
1508    *)
1509      if test "x$ac_old_val" != "x$ac_new_val"; then
1510        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1511echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1512        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1513echo "$as_me:   former value:  $ac_old_val" >&2;}
1514        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1515echo "$as_me:   current value: $ac_new_val" >&2;}
1516        ac_cache_corrupted=:
1517      fi;;
1518  esac
1519  # Pass precious variables to config.status.
1520  if test "$ac_new_set" = set; then
1521    case $ac_new_val in
1522    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1523      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1524    *) ac_arg=$ac_var=$ac_new_val ;;
1525    esac
1526    case " $ac_configure_args " in
1527      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1528      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1529    esac
1530  fi
1531done
1532if $ac_cache_corrupted; then
1533  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1534echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1535  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1536echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1537   { (exit 1); exit 1; }; }
1538fi
1539
1540ac_ext=c
1541ac_cpp='$CPP $CPPFLAGS'
1542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1544ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1574
1575# List one file in the package so that the configure script can test
1576# whether the package is actually there
1577
1578
1579# Where should everything be installed by default?  Here, we want it
1580# to be installed directly in 'bin', 'lib', 'include' subdirectories
1581# of the directory where configure is run.  The default would be
1582# /usr/local.
1583
1584
1585# Initialize the ADDLIBS variable
1586ADDLIBS="-lm $LIBS"
1587
1588
1589# Initialize the PCADDLIBS variable.
1590# This variable is used to setup library flags for the "Libs:" section in a .pc file.
1591# In certain cases, it may contain more flags than the ADDLIBS variable.
1592PCADDLIBS=""
1593
1594
1595# As backup, we make sure we don't loose an FLIBS if it has been set
1596# by the user
1597save_FLIBS="$FLIBS"
1598
1599# Initialize the FADDLIBS variable (which is to be used with a fortran
1600# compiler and will not include FLIBS)
1601FADDLIBS="$LIBS"
1602
1603
1604# A useful makefile conditional that is always false
1605
1606
1607if false; then
1608  ALWAYS_FALSE_TRUE=
1609  ALWAYS_FALSE_FALSE='#'
1610else
1611  ALWAYS_FALSE_TRUE='#'
1612  ALWAYS_FALSE_FALSE=
1613fi
1614
1615
1616# We set the following variable so that we know later in AC_COIN_FINALIZE
1617# that we are in a project main directory
1618coin_projectdir=yes
1619
1620# Set the project's version number
1621if test "xGlpk" != x; then
1622
1623cat >>confdefs.h <<_ACEOF
1624#define GLPK_VERSION "$PACKAGE_VERSION"
1625_ACEOF
1626
1627fi
1628
1629# Set the project's SVN revision number. The complicated sed expression
1630# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1631# as a single number.
1632# Extract the first word of "svnversion", so it can be a program name with args.
1633set dummy svnversion; ac_word=$2
1634echo "$as_me:$LINENO: checking for $ac_word" >&5
1635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636if test "${ac_cv_prog_have_svnversion+set}" = set; then
1637  echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639  if test -n "$have_svnversion"; then
1640  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1641else
1642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643for as_dir in $PATH
1644do
1645  IFS=$as_save_IFS
1646  test -z "$as_dir" && as_dir=.
1647  for ac_exec_ext in '' $ac_executable_extensions; do
1648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649    ac_cv_prog_have_svnversion="yes"
1650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651    break 2
1652  fi
1653done
1654done
1655
1656  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1657fi
1658fi
1659have_svnversion=$ac_cv_prog_have_svnversion
1660if test -n "$have_svnversion"; then
1661  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1662echo "${ECHO_T}$have_svnversion" >&6
1663else
1664  echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
1666fi
1667
1668if test "x$have_svnversion" = xyes && test "xGlpk" != x; then
1669
1670  svn_rev_tmp=`cd $srcdir/$coin_has_glpk ; svnversion`
1671  GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1672  if test $GLPK_SVN_REV != exported; then
1673
1674cat >>confdefs.h <<_ACEOF
1675#define GLPK_SVN_REV $GLPK_SVN_REV
1676_ACEOF
1677
1678  fi
1679fi
1680
1681# Capture libtool library version, if given.
1682
1683
1684
1685#############################################################################
1686#                         Standard build tool stuff                         #
1687#############################################################################
1688
1689# Get the system type
1690ac_aux_dir=
1691for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1692  if test -f $ac_dir/install-sh; then
1693    ac_aux_dir=$ac_dir
1694    ac_install_sh="$ac_aux_dir/install-sh -c"
1695    break
1696  elif test -f $ac_dir/install.sh; then
1697    ac_aux_dir=$ac_dir
1698    ac_install_sh="$ac_aux_dir/install.sh -c"
1699    break
1700  elif test -f $ac_dir/shtool; then
1701    ac_aux_dir=$ac_dir
1702    ac_install_sh="$ac_aux_dir/shtool install -c"
1703    break
1704  fi
1705done
1706if test -z "$ac_aux_dir"; then
1707  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1708echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1709   { (exit 1); exit 1; }; }
1710fi
1711ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1712ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1713ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1714
1715# Make sure we can run config.sub.
1716$ac_config_sub sun4 >/dev/null 2>&1 ||
1717  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1718echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1719   { (exit 1); exit 1; }; }
1720
1721echo "$as_me:$LINENO: checking build system type" >&5
1722echo $ECHO_N "checking build system type... $ECHO_C" >&6
1723if test "${ac_cv_build+set}" = set; then
1724  echo $ECHO_N "(cached) $ECHO_C" >&6
1725else
1726  ac_cv_build_alias=$build_alias
1727test -z "$ac_cv_build_alias" &&
1728  ac_cv_build_alias=`$ac_config_guess`
1729test -z "$ac_cv_build_alias" &&
1730  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1731echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1732   { (exit 1); exit 1; }; }
1733ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1734  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1735echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1736   { (exit 1); exit 1; }; }
1737
1738fi
1739echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1740echo "${ECHO_T}$ac_cv_build" >&6
1741build=$ac_cv_build
1742build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1743build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1744build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1745
1746
1747
1748#turn off warnings and pedantic mode since it seem to make trouble on solaris platform
1749#and we couldn't fix it anyway
1750coin_skip_warn_cflags=yes
1751
1752# Check if user wants to produce debugging code
1753
1754echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1755echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1756
1757# Check whether --enable-debug or --disable-debug was given.
1758if test "${enable_debug+set}" = set; then
1759  enableval="$enable_debug"
1760  case "${enableval}" in
1761   yes) coin_debug_compile=true
1762        if test "${enable_shared+set}" = set; then :; else
1763          enable_shared=no
1764        fi
1765        ;;
1766   no)  coin_debug_compile=false
1767        ;;
1768   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1769echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1770   { (exit 1); exit 1; }; }
1771        ;;
1772esac
1773else
1774  coin_debug_compile=false
1775fi;
1776
1777# Check whether --enable-debug-glpk or --disable-debug-glpk was given.
1778if test "${enable_debug_glpk+set}" = set; then
1779  enableval="$enable_debug_glpk"
1780  case "${enableval}" in
1781    yes) coin_debug_compile=true
1782         enable_shared=no
1783         ;;
1784    no)  coin_debug_compile=false
1785         ;;
1786    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&5
1787echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;}
1788   { (exit 1); exit 1; }; }
1789         ;;
1790 esac
1791else
1792  :
1793fi;
1794
1795 # m4_ifvaln([Glpk],
1796
1797if test $coin_debug_compile = true; then
1798  echo "$as_me:$LINENO: result: yes" >&5
1799echo "${ECHO_T}yes" >&6
1800else
1801  echo "$as_me:$LINENO: result: no" >&5
1802echo "${ECHO_T}no" >&6
1803fi
1804
1805
1806# Check whether --with-glpk-verbosity or --without-glpk-verbosity was given.
1807if test "${with_glpk_verbosity+set}" = set; then
1808  withval="$with_glpk_verbosity"
1809  if test "$withval" = yes; then
1810                withval=1
1811              fi
1812              coin_glpk_verbosity=$withval
1813else
1814  coin_glpk_verbosity=0
1815fi;
1816
1817cat >>confdefs.h <<_ACEOF
1818#define COIN_GLPK_VERBOSITY $coin_glpk_verbosity
1819_ACEOF
1820
1821
1822
1823# Check whether --with-glpk-checklevel or --without-glpk-checklevel was given.
1824if test "${with_glpk_checklevel+set}" = set; then
1825  withval="$with_glpk_checklevel"
1826  if test "$withval" = yes; then
1827                withval=1
1828              fi
1829              coin_glpk_checklevel=$withval
1830else
1831  coin_glpk_checklevel=0
1832fi;
1833
1834cat >>confdefs.h <<_ACEOF
1835#define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel
1836_ACEOF
1837
1838
1839# We use the following variable to have a string with the upper case
1840# version of the project name
1841COIN_PRJCT=GLPK
1842
1843
1844 # m4_ifvaln([Glpk],
1845
1846
1847
1848# Get the name of the C compiler
1849case $build in
1850  *-mingw*)
1851    if test "${LD+set}" = set; then :; else
1852      LD=link
1853    fi
1854    ;;
1855 esac
1856 case $enable_doscompile in
1857   msvc)
1858     if test "x${LD+set}" = xset; then :; else
1859       LD=link
1860     fi
1861     ;;
1862 esac
1863
1864
1865 # Check whether --enable-doscompile or --disable-doscompile was given.
1866if test "${enable_doscompile+set}" = set; then
1867  enableval="$enable_doscompile"
1868  if test "$enable_doscompile" != no; then
1869     case $build in
1870       *-cygwin* | *-mingw*) ;;
1871       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1872echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1873   { (exit 1); exit 1; }; } ;;
1874     esac
1875   fi
1876else
1877  enable_doscompile=no
1878fi;
1879 case "$enable_doscompile" in
1880   mingw)
1881     case $build in
1882       *-mingw*) enable_doscompile=no ;;
1883     esac
1884     ;;
1885   msvc|no) ;;
1886   yes) enable_doscompile=mingw ;;
1887   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1888                    Try configure --help=recursive." >&5
1889echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1890                    Try configure --help=recursive." >&2;}
1891   { (exit 1); exit 1; }; }
1892      ;;
1893  esac
1894  if test "$enable_doscompile" != no ; then
1895    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1896echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1897  fi
1898
1899
1900
1901
1902ac_ext=c
1903ac_cpp='$CPP $CPPFLAGS'
1904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1906ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907
1908
1909# For consistency, we set the C compiler to the same value of the C++
1910# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1911if test x"$CXX" != x; then
1912  case "$CXX" in
1913    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1914      if test x"$CC" = x; then
1915        CC="$CXX"
1916        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1917echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1918      fi
1919      ;;
1920  esac
1921fi
1922
1923# add automake conditional so we can recognize cl compiler in makefile
1924coin_cc_is_cl=false
1925if test x"$CXX" != x; then
1926  case "$CXX" in
1927    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1928      coin_cc_is_cl=true
1929      ;;
1930  esac
1931fi
1932
1933
1934if test $coin_cc_is_cl = true; then
1935  COIN_CC_IS_CL_TRUE=
1936  COIN_CC_IS_CL_FALSE='#'
1937else
1938  COIN_CC_IS_CL_TRUE='#'
1939  COIN_CC_IS_CL_FALSE=
1940fi
1941
1942
1943
1944
1945
1946
1947
1948coin_has_cc=yes
1949
1950save_cflags="$CFLAGS"
1951
1952# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1953# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1954# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1955# compiler. In this case, put cc after gcc.
1956
1957case $build in
1958  *-cygwin* | *-mingw*)
1959             if test "$enable_doscompile" = msvc ; then
1960               comps="icl cl"
1961             else
1962               comps="gcc cl"
1963             fi ;;
1964  *-*-solaris*)
1965             # Extract the first word of "cc", so it can be a program name with args.
1966set dummy cc; ac_word=$2
1967echo "$as_me:$LINENO: checking for $ac_word" >&5
1968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1970  echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972  if test -n "$sol_cc_compiler"; then
1973  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1974else
1975  ac_prog_rejected=no
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981  for ac_exec_ext in '' $ac_executable_extensions; do
1982  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1984       ac_prog_rejected=yes
1985       continue
1986     fi
1987    ac_cv_prog_sol_cc_compiler="cc"
1988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989    break 2
1990  fi
1991done
1992done
1993
1994if test $ac_prog_rejected = yes; then
1995  # We found a bogon in the path, so make sure we never use it.
1996  set dummy $ac_cv_prog_sol_cc_compiler
1997  shift
1998  if test $# != 0; then
1999    # We chose a different compiler from the bogus one.
2000    # However, it has the same basename, so the bogon will be chosen
2001    # first if we set sol_cc_compiler to just the basename; use the full file name.
2002    shift
2003    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2004  fi
2005fi
2006fi
2007fi
2008sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2009if test -n "$sol_cc_compiler"; then
2010  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2011echo "${ECHO_T}$sol_cc_compiler" >&6
2012else
2013  echo "$as_me:$LINENO: result: no" >&5
2014echo "${ECHO_T}no" >&6
2015fi
2016
2017             if test "$sol_cc_compiler" = "cc" ; then
2018               comps="cc xlc gcc pgcc icc"
2019             else
2020               comps="xlc gcc pgcc icc cc"
2021             fi
2022             ;;
2023  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2024  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2025esac
2026
2027# We delete the cached value, since the test might not have been
2028# performed with our choice of compilers earlier
2029$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2030# AC_MSG_NOTICE([C compiler candidates: $comps])
2031ac_ext=c
2032ac_cpp='$CPP $CPPFLAGS'
2033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036if test -n "$ac_tool_prefix"; then
2037  for ac_prog in $comps
2038  do
2039    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2040set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2041echo "$as_me:$LINENO: checking for $ac_word" >&5
2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043if test "${ac_cv_prog_CC+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  if test -n "$CC"; then
2047  ac_cv_prog_CC="$CC" # Let the user override the test.
2048else
2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050for as_dir in $PATH
2051do
2052  IFS=$as_save_IFS
2053  test -z "$as_dir" && as_dir=.
2054  for ac_exec_ext in '' $ac_executable_extensions; do
2055  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058    break 2
2059  fi
2060done
2061done
2062
2063fi
2064fi
2065CC=$ac_cv_prog_CC
2066if test -n "$CC"; then
2067  echo "$as_me:$LINENO: result: $CC" >&5
2068echo "${ECHO_T}$CC" >&6
2069else
2070  echo "$as_me:$LINENO: result: no" >&5
2071echo "${ECHO_T}no" >&6
2072fi
2073
2074    test -n "$CC" && break
2075  done
2076fi
2077if test -z "$CC"; then
2078  ac_ct_CC=$CC
2079  for ac_prog in $comps
2080do
2081  # Extract the first word of "$ac_prog", so it can be a program name with args.
2082set dummy $ac_prog; ac_word=$2
2083echo "$as_me:$LINENO: checking for $ac_word" >&5
2084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086  echo $ECHO_N "(cached) $ECHO_C" >&6
2087else
2088  if test -n "$ac_ct_CC"; then
2089  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090else
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094  IFS=$as_save_IFS
2095  test -z "$as_dir" && as_dir=.
2096  for ac_exec_ext in '' $ac_executable_extensions; do
2097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098    ac_cv_prog_ac_ct_CC="$ac_prog"
2099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100    break 2
2101  fi
2102done
2103done
2104
2105fi
2106fi
2107ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108if test -n "$ac_ct_CC"; then
2109  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110echo "${ECHO_T}$ac_ct_CC" >&6
2111else
2112  echo "$as_me:$LINENO: result: no" >&5
2113echo "${ECHO_T}no" >&6
2114fi
2115
2116  test -n "$ac_ct_CC" && break
2117done
2118
2119  CC=$ac_ct_CC
2120fi
2121
2122
2123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124See \`config.log' for more details." >&5
2125echo "$as_me: error: no acceptable C compiler found in \$PATH
2126See \`config.log' for more details." >&2;}
2127   { (exit 1); exit 1; }; }
2128
2129# Provide some information about the compiler.
2130echo "$as_me:$LINENO:" \
2131     "checking for C compiler version" >&5
2132ac_compiler=`set X $ac_compile; echo $2`
2133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134  (eval $ac_compiler --version </dev/null >&5) 2>&5
2135  ac_status=$?
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); }
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139  (eval $ac_compiler -v </dev/null >&5) 2>&5
2140  ac_status=$?
2141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142  (exit $ac_status); }
2143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144  (eval $ac_compiler -V </dev/null >&5) 2>&5
2145  ac_status=$?
2146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147  (exit $ac_status); }
2148
2149cat >conftest.$ac_ext <<_ACEOF
2150/* confdefs.h.  */
2151_ACEOF
2152cat confdefs.h >>conftest.$ac_ext
2153cat >>conftest.$ac_ext <<_ACEOF
2154/* end confdefs.h.  */
2155
2156int
2157main ()
2158{
2159
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164ac_clean_files_save=$ac_clean_files
2165ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166# Try to create an executable without -o first, disregard a.out.
2167# It will help us diagnose broken compilers, and finding out an intuition
2168# of exeext.
2169echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173  (eval $ac_link_default) 2>&5
2174  ac_status=$?
2175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176  (exit $ac_status); }; then
2177  # Find the output, starting from the most likely.  This scheme is
2178# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179# resort.
2180
2181# Be careful to initialize this variable, since it used to be cached.
2182# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2183ac_cv_exeext=
2184# b.out is created by i960 compilers.
2185for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2186do
2187  test -f "$ac_file" || continue
2188  case $ac_file in
2189    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190        ;;
2191    conftest.$ac_ext )
2192        # This is the source file.
2193        ;;
2194    [ab].out )
2195        # We found the default executable, but exeext='' is most
2196        # certainly right.
2197        break;;
2198    *.* )
2199        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200        # FIXME: I believe we export ac_cv_exeext for Libtool,
2201        # but it would be cool to find out if it's true.  Does anybody
2202        # maintain Libtool? --akim.
2203        export ac_cv_exeext
2204        break;;
2205    * )
2206        break;;
2207  esac
2208done
2209else
2210  echo "$as_me: failed program was:" >&5
2211sed 's/^/| /' conftest.$ac_ext >&5
2212
2213{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214See \`config.log' for more details." >&5
2215echo "$as_me: error: C compiler cannot create executables
2216See \`config.log' for more details." >&2;}
2217   { (exit 77); exit 77; }; }
2218fi
2219
2220ac_exeext=$ac_cv_exeext
2221echo "$as_me:$LINENO: result: $ac_file" >&5
2222echo "${ECHO_T}$ac_file" >&6
2223
2224# Check the compiler produces executables we can run.  If not, either
2225# the compiler is broken, or we cross compile.
2226echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229# If not cross compiling, check that we can run a simple program.
2230if test "$cross_compiling" != yes; then
2231  if { ac_try='./$ac_file'
2232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233  (eval $ac_try) 2>&5
2234  ac_status=$?
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); }; }; then
2237    cross_compiling=no
2238  else
2239    if test "$cross_compiling" = maybe; then
2240        cross_compiling=yes
2241    else
2242        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&2;}
2248   { (exit 1); exit 1; }; }
2249    fi
2250  fi
2251fi
2252echo "$as_me:$LINENO: result: yes" >&5
2253echo "${ECHO_T}yes" >&6
2254
2255rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256ac_clean_files=$ac_clean_files_save
2257# Check the compiler produces executables we can run.  If not, either
2258# the compiler is broken, or we cross compile.
2259echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262echo "${ECHO_T}$cross_compiling" >&6
2263
2264echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267  (eval $ac_link) 2>&5
2268  ac_status=$?
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); }; then
2271  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2273# work properly (i.e., refer to `conftest.exe'), while it won't with
2274# `rm'.
2275for ac_file in conftest.exe conftest conftest.*; do
2276  test -f "$ac_file" || continue
2277  case $ac_file in
2278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280          export ac_cv_exeext
2281          break;;
2282    * ) break;;
2283  esac
2284done
2285else
2286  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289See \`config.log' for more details." >&2;}
2290   { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest$ac_cv_exeext
2294echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295echo "${ECHO_T}$ac_cv_exeext" >&6
2296
2297rm -f conftest.$ac_ext
2298EXEEXT=$ac_cv_exeext
2299ac_exeext=$EXEEXT
2300echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302if test "${ac_cv_objext+set}" = set; then
2303  echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305  cat >conftest.$ac_ext <<_ACEOF
2306/* confdefs.h.  */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h.  */
2311
2312int
2313main ()
2314{
2315
2316  ;
2317  return 0;
2318}
2319_ACEOF
2320rm -f conftest.o conftest.obj
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322  (eval $ac_compile) 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }; then
2326  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2327  case $ac_file in
2328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330       break;;
2331  esac
2332done
2333else
2334  echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340See \`config.log' for more details." >&2;}
2341   { (exit 1); exit 1; }; }
2342fi
2343
2344rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345fi
2346echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347echo "${ECHO_T}$ac_cv_objext" >&6
2348OBJEXT=$ac_cv_objext
2349ac_objext=$OBJEXT
2350echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361
2362int
2363main ()
2364{
2365#ifndef __GNUC__
2366       choke me
2367#endif
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373rm -f conftest.$ac_objext
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375  (eval $ac_compile) 2>conftest.er1
2376  ac_status=$?
2377  grep -v '^ *+' conftest.er1 >conftest.err
2378  rm -f conftest.er1
2379  cat conftest.err >&5
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); } &&
2382         { ac_try='test -z "$ac_c_werror_flag"
2383                         || test ! -s conftest.err'
2384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385  (eval $ac_try) 2>&5
2386  ac_status=$?
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); }; } &&
2389         { ac_try='test -s conftest.$ac_objext'
2390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391  (eval $ac_try) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }; }; then
2395  ac_compiler_gnu=yes
2396else
2397  echo "$as_me: failed program was:" >&5
2398sed 's/^/| /' conftest.$ac_ext >&5
2399
2400ac_compiler_gnu=no
2401fi
2402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403ac_cv_c_compiler_gnu=$ac_compiler_gnu
2404
2405fi
2406echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408GCC=`test $ac_compiler_gnu = yes && echo yes`
2409ac_test_CFLAGS=${CFLAGS+set}
2410ac_save_CFLAGS=$CFLAGS
2411CFLAGS="-g"
2412echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414if test "${ac_cv_prog_cc_g+set}" = set; then
2415  echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417  cat >conftest.$ac_ext <<_ACEOF
2418/* confdefs.h.  */
2419_ACEOF
2420cat confdefs.h >>conftest.$ac_ext
2421cat >>conftest.$ac_ext <<_ACEOF
2422/* end confdefs.h.  */
2423
2424int
2425main ()
2426{
2427
2428  ;
2429  return 0;
2430}
2431_ACEOF
2432rm -f conftest.$ac_objext
2433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434  (eval $ac_compile) 2>conftest.er1
2435  ac_status=$?
2436  grep -v '^ *+' conftest.er1 >conftest.err
2437  rm -f conftest.er1
2438  cat conftest.err >&5
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); } &&
2441         { ac_try='test -z "$ac_c_werror_flag"
2442                         || test ! -s conftest.err'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; } &&
2448         { ac_try='test -s conftest.$ac_objext'
2449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450  (eval $ac_try) 2>&5
2451  ac_status=$?
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); }; }; then
2454  ac_cv_prog_cc_g=yes
2455else
2456  echo "$as_me: failed program was:" >&5
2457sed 's/^/| /' conftest.$ac_ext >&5
2458
2459ac_cv_prog_cc_g=no
2460fi
2461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462fi
2463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465if test "$ac_test_CFLAGS" = set; then
2466  CFLAGS=$ac_save_CFLAGS
2467elif test $ac_cv_prog_cc_g = yes; then
2468  if test "$GCC" = yes; then
2469    CFLAGS="-g -O2"
2470  else
2471    CFLAGS="-g"
2472  fi
2473else
2474  if test "$GCC" = yes; then
2475    CFLAGS="-O2"
2476  else
2477    CFLAGS=
2478  fi
2479fi
2480echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483  echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485  ac_cv_prog_cc_stdc=no
2486ac_save_CC=$CC
2487cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h.  */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h.  */
2493#include <stdarg.h>
2494#include <stdio.h>
2495#include <sys/types.h>
2496#include <sys/stat.h>
2497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2498struct buf { int x; };
2499FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500static char *e (p, i)
2501     char **p;
2502     int i;
2503{
2504  return p[i];
2505}
2506static char *f (char * (*g) (char **, int), char **p, ...)
2507{
2508  char *s;
2509  va_list v;
2510  va_start (v,p);
2511  s = g (p, va_arg (v,int));
2512  va_end (v);
2513  return s;
2514}
2515
2516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2517   function prototypes and stuff, but not '\xHH' hex character constants.
2518   These don't provoke an error unfortunately, instead are silently treated
2519   as 'x'.  The following induces an error, until -std1 is added to get
2520   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2521   array size at least.  It's necessary to write '\x00'==0 to get something
2522   that's true only with -std1.  */
2523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524
2525int test (int i, double x);
2526struct s1 {int (*f) (int a);};
2527struct s2 {int (*f) (double a);};
2528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529int argc;
2530char **argv;
2531int
2532main ()
2533{
2534return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2535  ;
2536  return 0;
2537}
2538_ACEOF
2539# Don't try gcc -ansi; that turns off useful extensions and
2540# breaks some systems' header files.
2541# AIX                   -qlanglvl=ansi
2542# Ultrix and OSF/1      -std1
2543# HP-UX 10.20 and later -Ae
2544# HP-UX older versions  -Aa -D_HPUX_SOURCE
2545# SVR4                  -Xc -D__EXTENSIONS__
2546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2547do
2548  CC="$ac_save_CC $ac_arg"
2549  rm -f conftest.$ac_objext
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551  (eval $ac_compile) 2>conftest.er1
2552  ac_status=$?
2553  grep -v '^ *+' conftest.er1 >conftest.err
2554  rm -f conftest.er1
2555  cat conftest.err >&5
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); } &&
2558         { ac_try='test -z "$ac_c_werror_flag"
2559                         || test ! -s conftest.err'
2560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561  (eval $ac_try) 2>&5
2562  ac_status=$?
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); }; } &&
2565         { ac_try='test -s conftest.$ac_objext'
2566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567  (eval $ac_try) 2>&5
2568  ac_status=$?
2569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570  (exit $ac_status); }; }; then
2571  ac_cv_prog_cc_stdc=$ac_arg
2572break
2573else
2574  echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577fi
2578rm -f conftest.err conftest.$ac_objext
2579done
2580rm -f conftest.$ac_ext conftest.$ac_objext
2581CC=$ac_save_CC
2582
2583fi
2584
2585case "x$ac_cv_prog_cc_stdc" in
2586  x|xno)
2587    echo "$as_me:$LINENO: result: none needed" >&5
2588echo "${ECHO_T}none needed" >&6 ;;
2589  *)
2590    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592    CC="$CC $ac_cv_prog_cc_stdc" ;;
2593esac
2594
2595# Some people use a C++ compiler to compile C.  Since we use `exit',
2596# in C++ we need to declare it.  In case someone uses the same compiler
2597# for both compiling C and C++ we need to have the C++ compiler decide
2598# the declaration of exit, since it's the most demanding environment.
2599cat >conftest.$ac_ext <<_ACEOF
2600#ifndef __cplusplus
2601  choke me
2602#endif
2603_ACEOF
2604rm -f conftest.$ac_objext
2605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606  (eval $ac_compile) 2>conftest.er1
2607  ac_status=$?
2608  grep -v '^ *+' conftest.er1 >conftest.err
2609  rm -f conftest.er1
2610  cat conftest.err >&5
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); } &&
2613         { ac_try='test -z "$ac_c_werror_flag"
2614                         || test ! -s conftest.err'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; } &&
2620         { ac_try='test -s conftest.$ac_objext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  for ac_declaration in \
2627   '' \
2628   'extern "C" void std::exit (int) throw (); using std::exit;' \
2629   'extern "C" void std::exit (int); using std::exit;' \
2630   'extern "C" void exit (int) throw ();' \
2631   'extern "C" void exit (int);' \
2632   'void exit (int);'
2633do
2634  cat >conftest.$ac_ext <<_ACEOF
2635/* confdefs.h.  */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>conftest.$ac_ext <<_ACEOF
2639/* end confdefs.h.  */
2640$ac_declaration
2641#include <stdlib.h>
2642int
2643main ()
2644{
2645exit (42);
2646  ;
2647  return 0;
2648}
2649_ACEOF
2650rm -f conftest.$ac_objext
2651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652  (eval $ac_compile) 2>conftest.er1
2653  ac_status=$?
2654  grep -v '^ *+' conftest.er1 >conftest.err
2655  rm -f conftest.er1
2656  cat conftest.err >&5
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); } &&
2659         { ac_try='test -z "$ac_c_werror_flag"
2660                         || test ! -s conftest.err'
2661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662  (eval $ac_try) 2>&5
2663  ac_status=$?
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); }; } &&
2666         { ac_try='test -s conftest.$ac_objext'
2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; }; then
2672  :
2673else
2674  echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677continue
2678fi
2679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680  cat >conftest.$ac_ext <<_ACEOF
2681/* confdefs.h.  */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
2685/* end confdefs.h.  */
2686$ac_declaration
2687int
2688main ()
2689{
2690exit (42);
2691  ;
2692  return 0;
2693}
2694_ACEOF
2695rm -f conftest.$ac_objext
2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697  (eval $ac_compile) 2>conftest.er1
2698  ac_status=$?
2699  grep -v '^ *+' conftest.er1 >conftest.err
2700  rm -f conftest.er1
2701  cat conftest.err >&5
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); } &&
2704         { ac_try='test -z "$ac_c_werror_flag"
2705                         || test ! -s conftest.err'
2706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707  (eval $ac_try) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); }; } &&
2711         { ac_try='test -s conftest.$ac_objext'
2712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713  (eval $ac_try) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; }; then
2717  break
2718else
2719  echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722fi
2723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724done
2725rm -f conftest*
2726if test -n "$ac_declaration"; then
2727  echo '#ifdef __cplusplus' >>confdefs.h
2728  echo $ac_declaration      >>confdefs.h
2729  echo '#endif'             >>confdefs.h
2730fi
2731
2732else
2733  echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736fi
2737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744if test -z "$CC" ; then
2745  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2746echo "$as_me: error: Failed to find a C compiler!" >&2;}
2747   { (exit 1); exit 1; }; }
2748fi
2749# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2750case "$CC" in
2751  cl* | */cl* | CL* | */CL* )
2752    if test "$ac_cv_prog_cc_g" = yes ; then
2753      ac_cv_prog_cc_g=no
2754      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2755echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2756    fi ;;
2757esac
2758CFLAGS="$save_cflags"
2759
2760# Check if a project specific CFLAGS variable has been set
2761if test x$COIN_PRJCT != x; then
2762  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2763  if test x$coin_tmp = xset; then
2764    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2765  fi
2766fi
2767
2768if test x"$CFLAGS" = x; then
2769
2770  coin_add_cflags=
2771  coin_opt_cflags=
2772  coin_dbg_cflags=
2773  coin_warn_cflags=
2774
2775  if test "$GCC" = "yes"; then
2776    case "$CC" in
2777      icc* | */icc*)
2778        ;;
2779      *)
2780        coin_opt_cflags="-O3"
2781        coin_add_cflags="-pipe"
2782        coin_dbg_cflags="-g"
2783        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2784        case $build in
2785          *-darwin*)
2786            ;;
2787          *)
2788            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2789            ;;
2790        esac
2791        case $enable_doscompile in
2792          mingw)
2793            CFLAGS="-mno-cygwin"
2794            cat >conftest.$ac_ext <<_ACEOF
2795/* confdefs.h.  */
2796_ACEOF
2797cat confdefs.h >>conftest.$ac_ext
2798cat >>conftest.$ac_ext <<_ACEOF
2799/* end confdefs.h.  */
2800
2801int
2802main ()
2803{
2804int i=0; i++;
2805  ;
2806  return 0;
2807}
2808_ACEOF
2809rm -f conftest.$ac_objext conftest$ac_exeext
2810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2811  (eval $ac_link) 2>conftest.er1
2812  ac_status=$?
2813  grep -v '^ *+' conftest.er1 >conftest.err
2814  rm -f conftest.er1
2815  cat conftest.err >&5
2816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817  (exit $ac_status); } &&
2818         { ac_try='test -z "$ac_c_werror_flag"
2819                         || test ! -s conftest.err'
2820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821  (eval $ac_try) 2>&5
2822  ac_status=$?
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); }; } &&
2825         { ac_try='test -s conftest$ac_exeext'
2826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827  (eval $ac_try) 2>&5
2828  ac_status=$?
2829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830  (exit $ac_status); }; }; then
2831  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2832else
2833  echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
2836fi
2837rm -f conftest.err conftest.$ac_objext \
2838      conftest$ac_exeext conftest.$ac_ext
2839            CFLAGS=
2840          ;;
2841        esac
2842    esac
2843  fi
2844  if test -z "$coin_opt_cflags"; then
2845    case $build in
2846      *-cygwin* | *-mingw*)
2847        case "$CC" in
2848          cl* | */cl* | CL* | */CL*)
2849            coin_opt_cflags='-MT -O2'
2850            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2851            coin_dbg_cflags='-MTd'
2852            ;;
2853          icl* | */icl* | ICL* | */ICL*)
2854            coin_opt_cflags='-MT -Ox'
2855            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2856            coin_dbg_cflags='-MTd -debug'
2857            ;;
2858        esac
2859        ;;
2860      *-linux-*)
2861        case "$CC" in
2862          icc* | */icc*)
2863            coin_opt_cflags="-O3 -ip -mp1"
2864            coin_add_cflags=""
2865            coin_dbg_cflags="-g"
2866            # Check if -i_dynamic is necessary (for new glibc library)
2867            CFLAGS=
2868            cat >conftest.$ac_ext <<_ACEOF
2869/* confdefs.h.  */
2870_ACEOF
2871cat confdefs.h >>conftest.$ac_ext
2872cat >>conftest.$ac_ext <<_ACEOF
2873/* end confdefs.h.  */
2874
2875int
2876main ()
2877{
2878int i=0; i++;
2879  ;
2880  return 0;
2881}
2882_ACEOF
2883rm -f conftest.$ac_objext conftest$ac_exeext
2884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2885  (eval $ac_link) 2>conftest.er1
2886  ac_status=$?
2887  grep -v '^ *+' conftest.er1 >conftest.err
2888  rm -f conftest.er1
2889  cat conftest.err >&5
2890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891  (exit $ac_status); } &&
2892         { ac_try='test -z "$ac_c_werror_flag"
2893                         || test ! -s conftest.err'
2894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895  (eval $ac_try) 2>&5
2896  ac_status=$?
2897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898  (exit $ac_status); }; } &&
2899         { ac_try='test -s conftest$ac_exeext'
2900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901  (eval $ac_try) 2>&5
2902  ac_status=$?
2903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); }; }; then
2905  :
2906else
2907  echo "$as_me: failed program was:" >&5
2908sed 's/^/| /' conftest.$ac_ext >&5
2909
2910coin_add_cflags="-i_dynamic $coin_add_cflags"
2911fi
2912rm -f conftest.err conftest.$ac_objext \
2913      conftest$ac_exeext conftest.$ac_ext
2914            ;;
2915          pgcc* | */pgcc*)
2916            coin_opt_cflags="-fast"
2917            coin_add_cflags="-Kieee -pc 64"
2918            coin_dbg_cflags="-g"
2919            ;;
2920        esac
2921        ;;
2922      *-ibm-*)
2923        case "$CC" in
2924          xlc* | */xlc* | mpxlc* | */mpxlc*)
2925            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2926            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2927            coin_dbg_cflags="-g"
2928          ;;
2929        esac
2930        ;;
2931      *-hp-*)
2932        coin_opt_cflags="-O"
2933        coin_add_cflags="-Ae"
2934        coin_dbg_cflags="-g"
2935        ;;
2936      *-*-solaris*)
2937        coin_opt_cflags="-xO4"
2938        coin_dbg_cflags="-g"
2939        ;;
2940      *-sgi-*)
2941        coin_opt_cflags="-O -OPT:Olimit=0"
2942        coin_dbg_cflags="-g"
2943        ;;
2944    esac
2945  fi
2946
2947  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2948    coin_dbg_cflags="-g"
2949  fi
2950
2951  if test -z "$coin_opt_cflags"; then
2952    # Try if -O option works if nothing else is set
2953    CFLAGS="-O"
2954    cat >conftest.$ac_ext <<_ACEOF
2955/* confdefs.h.  */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964int i=0; i++;
2965  ;
2966  return 0;
2967}
2968_ACEOF
2969rm -f conftest.$ac_objext conftest$ac_exeext
2970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2971  (eval $ac_link) 2>conftest.er1
2972  ac_status=$?
2973  grep -v '^ *+' conftest.er1 >conftest.err
2974  rm -f conftest.er1
2975  cat conftest.err >&5
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); } &&
2978         { ac_try='test -z "$ac_c_werror_flag"
2979                         || test ! -s conftest.err'
2980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981  (eval $ac_try) 2>&5
2982  ac_status=$?
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); }; } &&
2985         { ac_try='test -s conftest$ac_exeext'
2986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987  (eval $ac_try) 2>&5
2988  ac_status=$?
2989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990  (exit $ac_status); }; }; then
2991  coin_opt_cflags="-O"
2992else
2993  echo "$as_me: failed program was:" >&5
2994sed 's/^/| /' conftest.$ac_ext >&5
2995
2996fi
2997rm -f conftest.err conftest.$ac_objext \
2998      conftest$ac_exeext conftest.$ac_ext
2999  fi
3000
3001  # if PM doesn't want the warning messages, take them out
3002  if test x"$coin_skip_warn_cflags" = xyes; then
3003    coin_warn_cflags=
3004  fi
3005
3006  if test x${DBG_CFLAGS+set} != xset; then
3007    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3008  fi
3009  if test x${OPT_CFLAGS+set} != xset; then
3010    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3011  fi
3012
3013  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3014  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3015
3016  if test "$coin_debug_compile" = "true"; then
3017    CFLAGS="$DBG_CFLAGS"
3018  else
3019    CFLAGS="$OPT_CFLAGS"
3020  fi
3021else
3022  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3023  if test x${DBG_CFLAGS+set} != xset; then
3024    DBG_CFLAGS="$CFLAGS"
3025  fi
3026  if test x${OPT_CFLAGS+set} != xset; then
3027    OPT_CFLAGS="$CFLAGS"
3028  fi
3029fi
3030
3031# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3032
3033case "$CFLAGS" in
3034  *-mno-cygwin*)
3035    if test x${CPPFLAGS+set} != xset ; then
3036      CPPFLAGS="-mno-cygwin"
3037    else
3038      case "$CPPFLAGS" in
3039        *-mno-cygwin*)
3040          ;;
3041        *)
3042          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3043          ;;
3044      esac
3045    fi ;;
3046esac
3047
3048# Try if CFLAGS works
3049save_CFLAGS="$CFLAGS"
3050cat >conftest.$ac_ext <<_ACEOF
3051/* confdefs.h.  */
3052_ACEOF
3053cat confdefs.h >>conftest.$ac_ext
3054cat >>conftest.$ac_ext <<_ACEOF
3055/* end confdefs.h.  */
3056
3057int
3058main ()
3059{
3060int i=0; i++;
3061  ;
3062  return 0;
3063}
3064_ACEOF
3065rm -f conftest.$ac_objext conftest$ac_exeext
3066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3067  (eval $ac_link) 2>conftest.er1
3068  ac_status=$?
3069  grep -v '^ *+' conftest.er1 >conftest.err
3070  rm -f conftest.er1
3071  cat conftest.err >&5
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); } &&
3074         { ac_try='test -z "$ac_c_werror_flag"
3075                         || test ! -s conftest.err'
3076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077  (eval $ac_try) 2>&5
3078  ac_status=$?
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); }; } &&
3081         { ac_try='test -s conftest$ac_exeext'
3082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083  (eval $ac_try) 2>&5
3084  ac_status=$?
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); }; }; then
3087  :
3088else
3089  echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092CFLAGS=
3093fi
3094rm -f conftest.err conftest.$ac_objext \
3095      conftest$ac_exeext conftest.$ac_ext
3096if test -z "$CFLAGS"; then
3097  { 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
3098echo "$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;}
3099  CFLAGS='-O'
3100  cat >conftest.$ac_ext <<_ACEOF
3101/* confdefs.h.  */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
3105/* end confdefs.h.  */
3106
3107int
3108main ()
3109{
3110int i=0; i++;
3111  ;
3112  return 0;
3113}
3114_ACEOF
3115rm -f conftest.$ac_objext conftest$ac_exeext
3116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3117  (eval $ac_link) 2>conftest.er1
3118  ac_status=$?
3119  grep -v '^ *+' conftest.er1 >conftest.err
3120  rm -f conftest.er1
3121  cat conftest.err >&5
3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123  (exit $ac_status); } &&
3124         { ac_try='test -z "$ac_c_werror_flag"
3125                         || test ! -s conftest.err'
3126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127  (eval $ac_try) 2>&5
3128  ac_status=$?
3129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130  (exit $ac_status); }; } &&
3131         { ac_try='test -s conftest$ac_exeext'
3132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133  (eval $ac_try) 2>&5
3134  ac_status=$?
3135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136  (exit $ac_status); }; }; then
3137  :
3138else
3139  echo "$as_me: failed program was:" >&5
3140sed 's/^/| /' conftest.$ac_ext >&5
3141
3142CFLAGS=
3143fi
3144rm -f conftest.err conftest.$ac_objext \
3145      conftest$ac_exeext conftest.$ac_ext
3146  if test -z "$CFLAGS"; then
3147    { 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
3148echo "$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;}
3149  fi
3150fi
3151
3152{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3153echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3154
3155
3156if test x"$MPICC" = x; then :; else
3157  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3158echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3159  CC="$MPICC"
3160fi
3161
3162# Correct ADDLIBS initialization if we are using the MS compiler
3163case "$CC" in
3164  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3165    ADDLIBS=
3166    case $build in
3167  *-mingw*)
3168    if test "${LD+set}" = set; then :; else
3169      LD=link
3170    fi
3171    ;;
3172 esac
3173 case $enable_doscompile in
3174   msvc)
3175     if test "x${LD+set}" = xset; then :; else
3176       LD=link
3177     fi
3178     ;;
3179 esac
3180
3181    ;;
3182esac
3183
3184ac_ext=c
3185ac_cpp='$CPP $CPPFLAGS'
3186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189
3190
3191
3192# Check if pkg-config is available (to setup addlibs file)
3193
3194
3195# Check whether --enable-pkg-config or --disable-pkg-config was given.
3196if test "${enable_pkg_config+set}" = set; then
3197  enableval="$enable_pkg_config"
3198  use_pkgconfig="$enableval"
3199else
3200  use_pkgconfig=yes
3201fi;
3202
3203if test $use_pkgconfig = yes ; then
3204  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3205    if test -n "$ac_tool_prefix"; then
3206  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3207set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3208echo "$as_me:$LINENO: checking for $ac_word" >&5
3209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3210if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3211  echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213  case $PKG_CONFIG in
3214  [\\/]* | ?:[\\/]*)
3215  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3216  ;;
3217  *)
3218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219for as_dir in $PATH
3220do
3221  IFS=$as_save_IFS
3222  test -z "$as_dir" && as_dir=.
3223  for ac_exec_ext in '' $ac_executable_extensions; do
3224  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3226    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227    break 2
3228  fi
3229done
3230done
3231
3232  ;;
3233esac
3234fi
3235PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3236
3237if test -n "$PKG_CONFIG"; then
3238  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3239echo "${ECHO_T}$PKG_CONFIG" >&6
3240else
3241  echo "$as_me:$LINENO: result: no" >&5
3242echo "${ECHO_T}no" >&6
3243fi
3244
3245fi
3246if test -z "$ac_cv_path_PKG_CONFIG"; then
3247  ac_pt_PKG_CONFIG=$PKG_CONFIG
3248  # Extract the first word of "pkg-config", so it can be a program name with args.
3249set dummy pkg-config; ac_word=$2
3250echo "$as_me:$LINENO: checking for $ac_word" >&5
3251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3252if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3253  echo $ECHO_N "(cached) $ECHO_C" >&6
3254else
3255  case $ac_pt_PKG_CONFIG in
3256  [\\/]* | ?:[\\/]*)
3257  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3258  ;;
3259  *)
3260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261for as_dir in $PATH
3262do
3263  IFS=$as_save_IFS
3264  test -z "$as_dir" && as_dir=.
3265  for ac_exec_ext in '' $ac_executable_extensions; do
3266  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269    break 2
3270  fi
3271done
3272done
3273
3274  ;;
3275esac
3276fi
3277ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3278
3279if test -n "$ac_pt_PKG_CONFIG"; then
3280  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3281echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3282else
3283  echo "$as_me:$LINENO: result: no" >&5
3284echo "${ECHO_T}no" >&6
3285fi
3286
3287  PKG_CONFIG=$ac_pt_PKG_CONFIG
3288else
3289  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3290fi
3291
3292  fi
3293  if test -n "$PKG_CONFIG"; then
3294    _pkg_min_version=0.9.0
3295    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3296echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3297    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3298      echo "$as_me:$LINENO: result: yes" >&5
3299echo "${ECHO_T}yes" >&6
3300    else
3301      echo "$as_me:$LINENO: result: no" >&5
3302echo "${ECHO_T}no" >&6
3303      PKG_CONFIG=""
3304    fi
3305  fi
3306
3307  # check if pkg-config supports the short-errors flag
3308  if test -n "$PKG_CONFIG" && \
3309    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3310    pkg_short_errors=" --short-errors "
3311  else
3312    pkg_short_errors=""
3313  fi
3314fi
3315
3316
3317
3318if test -n "$PKG_CONFIG"; then
3319  COIN_HAS_PKGCONFIG_TRUE=
3320  COIN_HAS_PKGCONFIG_FALSE='#'
3321else
3322  COIN_HAS_PKGCONFIG_TRUE='#'
3323  COIN_HAS_PKGCONFIG_FALSE=
3324fi
3325
3326
3327
3328# assemble pkg-config search path for installed projects
3329COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3330
3331# 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
3332# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3333# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3334if test "x${prefix}" = xNONE ; then
3335  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3336else
3337  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3338fi
3339
3340
3341# Check whether --with-coin-instdir or --without-coin-instdir was given.
3342if test "${with_coin_instdir+set}" = set; then
3343  withval="$with_coin_instdir"
3344  if test -d "$withval"; then : ; else
3345     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3346echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3347   { (exit 1); exit 1; }; }
3348   fi
3349   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3350
3351fi;
3352
3353
3354
3355# assemble additional pkg-config search paths for uninstalled projects
3356if test x$coin_projectdir = xyes ; then
3357  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3358  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3359  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3360  # 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)
3361  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3362  if test -e ../coin_subdirs.txt ; then
3363    for i in `cat ../coin_subdirs.txt` ; do
3364      if test -d ../$i ; then
3365        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3366      fi
3367    done
3368  fi
3369
3370  if test -e ../../coin_subdirs.txt ; then
3371    for i in `cat ../../coin_subdirs.txt` ; do
3372      if test -d ../../$i ; then
3373        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3374      fi
3375    done
3376  fi
3377
3378
3379fi
3380
3381
3382
3383# Initialize automake
3384{
3385
3386
3387
3388# START
3389
3390# Test if force_shared has been set
3391if test "x" = xforce_shared; then
3392  if test x$enable_shared = xno; then
3393    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3394echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3395   { (exit 1); exit 1; }; }
3396  fi
3397  enable_shared=yes;
3398else
3399  # On Cygwin and AIX, building DLLs doesn't work
3400  case $build in
3401    *-cygwin*)
3402      coin_disable_shared=yes
3403      platform=Cygwin
3404    ;;
3405    *-aix*)
3406      coin_disable_shared=yes
3407      platform=AIX
3408    ;;
3409    *-mingw*)
3410      coin_disable_shared=yes
3411      platform="Msys"
3412#      case "$CXX" in
3413#        cl*)
3414#          coin_disable_shared=yes
3415#          platform="Msys with cl"
3416#      ;;
3417#      esac
3418    ;;
3419  esac
3420fi
3421if test x"$coin_disable_shared" = xyes; then
3422  if test x"$enable_shared" = xyes; then
3423    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3424echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3425  fi
3426  enable_shared=no
3427fi
3428# By default, we only want the shared objects to be compiled
3429# Check whether --enable-static or --disable-static was given.
3430if test "${enable_static+set}" = set; then
3431  enableval="$enable_static"
3432  p=${PACKAGE-default}
3433    case $enableval in
3434    yes) enable_static=yes ;;
3435    no) enable_static=no ;;
3436    *)
3437     enable_static=no
3438      # Look at the argument we got.  We use all the common list separators.
3439      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3440      for pkg in $enableval; do
3441        IFS="$lt_save_ifs"
3442        if test "X$pkg" = "X$p"; then
3443          enable_static=yes
3444        fi
3445      done
3446      IFS="$lt_save_ifs"
3447      ;;
3448    esac
3449else
3450  enable_static=no
3451fi;
3452
3453
3454
3455
3456# Initialize automake
3457echo "$as_me:$LINENO: checking for egrep" >&5
3458echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3459if test "${ac_cv_prog_egrep+set}" = set; then
3460  echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3463    then ac_cv_prog_egrep='grep -E'
3464    else ac_cv_prog_egrep='egrep'
3465    fi
3466fi
3467echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3468echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3469 EGREP=$ac_cv_prog_egrep
3470
3471
3472am__api_version="1.9"
3473# Find a good install program.  We prefer a C program (faster),
3474# so one script is as good as another.  But avoid the broken or
3475# incompatible versions:
3476# SysV /etc/install, /usr/sbin/install
3477# SunOS /usr/etc/install
3478# IRIX /sbin/install
3479# AIX /bin/install
3480# AmigaOS /C/install, which installs bootblocks on floppy discs
3481# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3482# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3483# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3484# OS/2's system install, which has a completely different semantic
3485# ./install, which can be erroneously created by make from ./install.sh.
3486echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3487echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3488if test -z "$INSTALL"; then
3489if test "${ac_cv_path_install+set}" = set; then
3490  echo $ECHO_N "(cached) $ECHO_C" >&6
3491else
3492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493for as_dir in $PATH
3494do
3495  IFS=$as_save_IFS
3496  test -z "$as_dir" && as_dir=.
3497  # Account for people who put trailing slashes in PATH elements.
3498case $as_dir/ in
3499  ./ | .// | /cC/* | \
3500  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3501  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3502  /usr/ucb/* ) ;;
3503  *)
3504    # OSF1 and SCO ODT 3.0 have their own names for install.
3505    # Don't use installbsd from OSF since it installs stuff as root
3506    # by default.
3507    for ac_prog in ginstall scoinst install; do
3508      for ac_exec_ext in '' $ac_executable_extensions; do
3509        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3510          if test $ac_prog = install &&
3511            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3512            # AIX install.  It has an incompatible calling convention.
3513            :
3514          elif test $ac_prog = install &&
3515            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3516            # program-specific install script used by HP pwplus--don't use.
3517            :
3518          else
3519            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3520            break 3
3521          fi
3522        fi
3523      done
3524    done
3525    ;;
3526esac
3527done
3528
3529
3530fi
3531  if test "${ac_cv_path_install+set}" = set; then
3532    INSTALL=$ac_cv_path_install
3533  else
3534    # As a last resort, use the slow shell script.  We don't cache a
3535    # path for INSTALL within a source directory, because that will
3536    # break other packages using the cache if that directory is
3537    # removed, or if the path is relative.
3538    INSTALL=$ac_install_sh
3539  fi
3540fi
3541echo "$as_me:$LINENO: result: $INSTALL" >&5
3542echo "${ECHO_T}$INSTALL" >&6
3543
3544# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3545# It thinks the first close brace ends the variable substitution.
3546test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3547
3548test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3549
3550test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3551
3552echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3553echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3554# Just in case
3555sleep 1
3556echo timestamp > conftest.file
3557# Do `set' in a subshell so we don't clobber the current shell's
3558# arguments.  Must try -L first in case configure is actually a
3559# symlink; some systems play weird games with the mod time of symlinks
3560# (eg FreeBSD returns the mod time of the symlink's containing
3561# directory).
3562if (
3563   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3564   if test "$*" = "X"; then
3565      # -L didn't work.
3566      set X `ls -t $srcdir/configure conftest.file`
3567   fi
3568   rm -f conftest.file
3569   if test "$*" != "X $srcdir/configure conftest.file" \
3570      && test "$*" != "X conftest.file $srcdir/configure"; then
3571
3572      # If neither matched, then we have a broken ls.  This can happen
3573      # if, for instance, CONFIG_SHELL is bash and it inherits a
3574      # broken ls alias from the environment.  This has actually
3575      # happened.  Such a system could not be considered "sane".
3576      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3577alias in your environment" >&5
3578echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3579alias in your environment" >&2;}
3580   { (exit 1); exit 1; }; }
3581   fi
3582
3583   test "$2" = conftest.file
3584   )
3585then
3586   # Ok.
3587   :
3588else
3589   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3590Check your system clock" >&5
3591echo "$as_me: error: newly created file is older than distributed files!
3592Check your system clock" >&2;}
3593   { (exit 1); exit 1; }; }
3594fi
3595echo "$as_me:$LINENO: result: yes" >&5
3596echo "${ECHO_T}yes" >&6
3597test "$program_prefix" != NONE &&
3598  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3599# Use a double $ so make ignores it.
3600test "$program_suffix" != NONE &&
3601  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3602# Double any \ or $.  echo might interpret backslashes.
3603# By default was `s,x,x', remove it if useless.
3604cat <<\_ACEOF >conftest.sed
3605s/[\\$]/&&/g;s/;s,x,x,$//
3606_ACEOF
3607program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3608rm conftest.sed
3609
3610# expand $ac_aux_dir to an absolute path
3611am_aux_dir=`cd $ac_aux_dir && pwd`
3612
3613test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3614# Use eval to expand $SHELL
3615if eval "$MISSING --run true"; then
3616  am_missing_run="$MISSING --run "
3617else
3618  am_missing_run=
3619  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3620echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3621fi
3622
3623if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3624  # We used to keeping the `.' as first argument, in order to
3625  # allow $(mkdir_p) to be used without argument.  As in
3626  #   $(mkdir_p) $(somedir)
3627  # where $(somedir) is conditionally defined.  However this is wrong
3628  # for two reasons:
3629  #  1. if the package is installed by a user who cannot write `.'
3630  #     make install will fail,
3631  #  2. the above comment should most certainly read
3632  #     $(mkdir_p) $(DESTDIR)$(somedir)
3633  #     so it does not work when $(somedir) is undefined and
3634  #     $(DESTDIR) is not.
3635  #  To support the latter case, we have to write
3636  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3637  #  so the `.' trick is pointless.
3638  mkdir_p='mkdir -p --'
3639else
3640  # On NextStep and OpenStep, the `mkdir' command does not
3641  # recognize any option.  It will interpret all options as
3642  # directories to create, and then abort because `.' already
3643  # exists.
3644  for d in ./-p ./--version;
3645  do
3646    test -d $d && rmdir $d
3647  done
3648  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3649  if test -f "$ac_aux_dir/mkinstalldirs"; then
3650    mkdir_p='$(mkinstalldirs)'
3651  else
3652    mkdir_p='$(install_sh) -d'
3653  fi
3654fi
3655
3656for ac_prog in gawk mawk nawk awk
3657do
3658  # Extract the first word of "$ac_prog", so it can be a program name with args.
3659set dummy $ac_prog; ac_word=$2
3660echo "$as_me:$LINENO: checking for $ac_word" >&5
3661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662if test "${ac_cv_prog_AWK+set}" = set; then
3663  echo $ECHO_N "(cached) $ECHO_C" >&6
3664else
3665  if test -n "$AWK"; then
3666  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671  IFS=$as_save_IFS
3672  test -z "$as_dir" && as_dir=.
3673  for ac_exec_ext in '' $ac_executable_extensions; do
3674  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675    ac_cv_prog_AWK="$ac_prog"
3676    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677    break 2
3678  fi
3679done
3680done
3681
3682fi
3683fi
3684AWK=$ac_cv_prog_AWK
3685if test -n "$AWK"; then
3686  echo "$as_me:$LINENO: result: $AWK" >&5
3687echo "${ECHO_T}$AWK" >&6
3688else
3689  echo "$as_me:$LINENO: result: no" >&5
3690echo "${ECHO_T}no" >&6
3691fi
3692
3693  test -n "$AWK" && break
3694done
3695
3696echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3697echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3698set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3699if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3700  echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702  cat >conftest.make <<\_ACEOF
3703all:
3704        @echo 'ac_maketemp="$(MAKE)"'
3705_ACEOF
3706# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3707eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3708if test -n "$ac_maketemp"; then
3709  eval ac_cv_prog_make_${ac_make}_set=yes
3710else
3711  eval ac_cv_prog_make_${ac_make}_set=no
3712fi
3713rm -f conftest.make
3714fi
3715if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3716  echo "$as_me:$LINENO: result: yes" >&5
3717echo "${ECHO_T}yes" >&6
3718  SET_MAKE=
3719else
3720  echo "$as_me:$LINENO: result: no" >&5
3721echo "${ECHO_T}no" >&6
3722  SET_MAKE="MAKE=${MAKE-make}"
3723fi
3724
3725rm -rf .tst 2>/dev/null
3726mkdir .tst 2>/dev/null
3727if test -d .tst; then
3728  am__leading_dot=.
3729else
3730  am__leading_dot=_
3731fi
3732rmdir .tst 2>/dev/null
3733
3734DEPDIR="${am__leading_dot}deps"
3735
3736          ac_config_commands="$ac_config_commands depfiles"
3737
3738
3739am_make=${MAKE-make}
3740cat > confinc << 'END'
3741am__doit:
3742        @echo done
3743.PHONY: am__doit
3744END
3745# If we don't find an include directive, just comment out the code.
3746echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3747echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3748am__include="#"
3749am__quote=
3750_am_result=none
3751# First try GNU make style include.
3752echo "include confinc" > confmf
3753# We grep out `Entering directory' and `Leaving directory'
3754# messages which can occur if `w' ends up in MAKEFLAGS.
3755# In particular we don't look at `^make:' because GNU make might
3756# be invoked under some other name (usually "gmake"), in which
3757# case it prints its new name instead of `make'.
3758if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3759   am__include=include
3760   am__quote=
3761   _am_result=GNU
3762fi
3763# Now try BSD make style include.
3764if test "$am__include" = "#"; then
3765   echo '.include "confinc"' > confmf
3766   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3767      am__include=.include
3768      am__quote="\""
3769      _am_result=BSD
3770   fi
3771fi
3772
3773
3774echo "$as_me:$LINENO: result: $_am_result" >&5
3775echo "${ECHO_T}$_am_result" >&6
3776rm -f confinc confmf
3777
3778# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3779if test "${enable_dependency_tracking+set}" = set; then
3780  enableval="$enable_dependency_tracking"
3781
3782fi;
3783if test "x$enable_dependency_tracking" != xno; then
3784  am_depcomp="$ac_aux_dir/depcomp"
3785  AMDEPBACKSLASH='\'
3786fi
3787
3788
3789if test "x$enable_dependency_tracking" != xno; then
3790  AMDEP_TRUE=
3791  AMDEP_FALSE='#'
3792else
3793  AMDEP_TRUE='#'
3794  AMDEP_FALSE=
3795fi
3796
3797
3798
3799
3800
3801# AC_MSG_NOTICE([Beginning automake initialisation.])
3802# Stuff for automake
3803# test to see if srcdir already configured
3804if test "`cd $srcdir && pwd`" != "`pwd`" &&
3805   test -f $srcdir/config.status; then
3806  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3807echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3808   { (exit 1); exit 1; }; }
3809fi
3810
3811# test whether we have cygpath
3812if test -z "$CYGPATH_W"; then
3813  if (cygpath --version) >/dev/null 2>/dev/null; then
3814    CYGPATH_W='cygpath -w'
3815  else
3816    CYGPATH_W=echo
3817  fi
3818fi
3819
3820
3821# Define the identity of the package.
3822 PACKAGE='thirdpartyglpk'
3823 VERSION='trunk'
3824
3825
3826cat >>confdefs.h <<_ACEOF
3827#define PACKAGE "$PACKAGE"
3828_ACEOF
3829
3830
3831cat >>confdefs.h <<_ACEOF
3832#define VERSION "$VERSION"
3833_ACEOF
3834
3835# Some tools Automake needs.
3836
3837ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3838
3839
3840AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3841
3842
3843AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3844
3845
3846AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3847
3848
3849MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3850
3851install_sh=${install_sh-"$am_aux_dir/install-sh"}
3852
3853# Installed binaries are usually stripped using `strip' when the user
3854# run `make install-strip'.  However `strip' might not be the right
3855# tool to use in cross-compilation environments, therefore Automake
3856# will honor the `STRIP' environment variable to overrule this program.
3857if test "$cross_compiling" != no; then
3858  if test -n "$ac_tool_prefix"; then
3859  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3860set dummy ${ac_tool_prefix}strip; ac_word=$2
3861echo "$as_me:$LINENO: checking for $ac_word" >&5
3862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3863if test "${ac_cv_prog_STRIP+set}" = set; then
3864  echo $ECHO_N "(cached) $ECHO_C" >&6
3865else
3866  if test -n "$STRIP"; then
3867  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3868else
3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870for as_dir in $PATH
3871do
3872  IFS=$as_save_IFS
3873  test -z "$as_dir" && as_dir=.
3874  for ac_exec_ext in '' $ac_executable_extensions; do
3875  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3878    break 2
3879  fi
3880done
3881done
3882
3883fi
3884fi
3885STRIP=$ac_cv_prog_STRIP
3886if test -n "$STRIP"; then
3887  echo "$as_me:$LINENO: result: $STRIP" >&5
3888echo "${ECHO_T}$STRIP" >&6
3889else
3890  echo "$as_me:$LINENO: result: no" >&5
3891echo "${ECHO_T}no" >&6
3892fi
3893
3894fi
3895if test -z "$ac_cv_prog_STRIP"; then
3896  ac_ct_STRIP=$STRIP
3897  # Extract the first word of "strip", so it can be a program name with args.
3898set dummy strip; ac_word=$2
3899echo "$as_me:$LINENO: checking for $ac_word" >&5
3900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3902  echo $ECHO_N "(cached) $ECHO_C" >&6
3903else
3904  if test -n "$ac_ct_STRIP"; then
3905  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3906else
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
3909do
3910  IFS=$as_save_IFS
3911  test -z "$as_dir" && as_dir=.
3912  for ac_exec_ext in '' $ac_executable_extensions; do
3913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914    ac_cv_prog_ac_ct_STRIP="strip"
3915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916    break 2
3917  fi
3918done
3919done
3920
3921  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3922fi
3923fi
3924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3925if test -n "$ac_ct_STRIP"; then
3926  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3927echo "${ECHO_T}$ac_ct_STRIP" >&6
3928else
3929  echo "$as_me:$LINENO: result: no" >&5
3930echo "${ECHO_T}no" >&6
3931fi
3932
3933  STRIP=$ac_ct_STRIP
3934else
3935  STRIP="$ac_cv_prog_STRIP"
3936fi
3937
3938fi
3939INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3940
3941# We need awk for the "check" target.  The system "awk" is bad on
3942# some platforms.
3943# Always define AMTAR for backward compatibility.
3944
3945AMTAR=${AMTAR-"${am_missing_run}tar"}
3946
3947am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3948
3949
3950
3951
3952depcc="$CC"   am_compiler_list=
3953
3954echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3955echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3956if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3957  echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
3959  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3960  # We make a subdir and do the tests there.  Otherwise we can end up
3961  # making bogus files that we don't know about and never remove.  For
3962  # instance it was reported that on HP-UX the gcc test will end up
3963  # making a dummy file named `D' -- because `-MD' means `put the output
3964  # in D'.
3965  mkdir conftest.dir
3966  # Copy depcomp to subdir because otherwise we won't find it if we're
3967  # using a relative directory.
3968  cp "$am_depcomp" conftest.dir
3969  cd conftest.dir
3970  # We will build objects and dependencies in a subdirectory because
3971  # it helps to detect inapplicable dependency modes.  For instance
3972  # both Tru64's cc and ICC support -MD to output dependencies as a
3973  # side effect of compilation, but ICC will put the dependencies in
3974  # the current directory while Tru64 will put them in the object
3975  # directory.
3976  mkdir sub
3977
3978  am_cv_CC_dependencies_compiler_type=none
3979  if test "$am_compiler_list" = ""; then
3980     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3981  fi
3982  for depmode in $am_compiler_list; do
3983    # Setup a source with many dependencies, because some compilers
3984    # like to wrap large dependency lists on column 80 (with \), and
3985    # we should not choose a depcomp mode which is confused by this.
3986    #
3987    # We need to recreate these files for each test, as the compiler may
3988    # overwrite some of them when testing with obscure command lines.
3989    # This happens at least with the AIX C compiler.
3990    : > sub/conftest.c
3991    for i in 1 2 3 4 5 6; do
3992      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3993      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3994      # Solaris 8's {/usr,}/bin/sh.
3995      touch sub/conftst$i.h
3996    done
3997    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3998
3999    case $depmode in
4000    nosideeffect)
4001      # after this tag, mechanisms are not by side-effect, so they'll
4002      # only be used when explicitly requested
4003      if test "x$enable_dependency_tracking" = xyes; then
4004        continue
4005      else
4006        break
4007      fi
4008      ;;
4009    none) break ;;
4010    esac
4011    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4012    # mode.  It turns out that the SunPro C++ compiler does not properly
4013    # handle `-M -o', and we need to detect this.
4014    if depmode=$depmode \
4015       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4016       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4017       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4018         >/dev/null 2>conftest.err &&
4019       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4020       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4021       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4022      # icc doesn't choke on unknown options, it will just issue warnings
4023      # or remarks (even with -Werror).  So we grep stderr for any message
4024      # that says an option was ignored or not supported.
4025      # When given -MP, icc 7.0 and 7.1 complain thusly:
4026      #   icc: Command line warning: ignoring option '-M'; no argument required
4027      # The diagnosis changed in icc 8.0:
4028      #   icc: Command line remark: option '-MP' not supported
4029      if (grep 'ignoring option' conftest.err ||
4030          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4031        am_cv_CC_dependencies_compiler_type=$depmode
4032        break
4033      fi
4034    fi
4035  done
4036
4037  cd ..
4038  rm -rf conftest.dir
4039else
4040  am_cv_CC_dependencies_compiler_type=none
4041fi
4042
4043fi
4044echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4045echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4046CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4047
4048
4049
4050if
4051  test "x$enable_dependency_tracking" != xno \
4052  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4053  am__fastdepCC_TRUE=
4054  am__fastdepCC_FALSE='#'
4055else
4056  am__fastdepCC_TRUE='#'
4057  am__fastdepCC_FALSE=
4058fi
4059
4060
4061
4062echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4063echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4064    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4065if test "${enable_maintainer_mode+set}" = set; then
4066  enableval="$enable_maintainer_mode"
4067  USE_MAINTAINER_MODE=$enableval
4068else
4069  USE_MAINTAINER_MODE=no
4070fi;
4071  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4072echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4073
4074
4075if test $USE_MAINTAINER_MODE = yes; then
4076  MAINTAINER_MODE_TRUE=
4077  MAINTAINER_MODE_FALSE='#'
4078else
4079  MAINTAINER_MODE_TRUE='#'
4080  MAINTAINER_MODE_FALSE=
4081fi
4082
4083  MAINT=$MAINTAINER_MODE_TRUE
4084
4085
4086
4087coin_have_externals=no
4088if test "$enable_maintainer_mode" = yes; then
4089
4090  # If maintainer mode is chosen, we make sure that the correct versions
4091  # of the tools are used, and that we know where libtool.m4 is (to
4092  # recreate acinclude.m4)
4093
4094
4095  LIBTOOLM4=
4096  # Normally, $HOME
4097  AUTOTOOLS_DFLT=$HOME
4098
4099  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4100echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4101if test "${ac_cv_use_correct_autotools+set}" = set; then
4102  echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104  ac_cv_use_correct_autotools=check
4105fi
4106echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4107echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4108
4109  if test $ac_cv_use_correct_autotools = check; then
4110    ac_cv_use_correct_autotools=yes
4111    # Check if we have autoconf
4112    # Extract the first word of "autoconf", so it can be a program name with args.
4113set dummy autoconf; ac_word=$2
4114echo "$as_me:$LINENO: checking for $ac_word" >&5
4115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4116if test "${ac_cv_prog_have_autoconf+set}" = set; then
4117  echo $ECHO_N "(cached) $ECHO_C" >&6
4118else
4119  if test -n "$have_autoconf"; then
4120  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4121else
4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123for as_dir in $PATH
4124do
4125  IFS=$as_save_IFS
4126  test -z "$as_dir" && as_dir=.
4127  for ac_exec_ext in '' $ac_executable_extensions; do
4128  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129    ac_cv_prog_have_autoconf="yes"
4130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131    break 2
4132  fi
4133done
4134done
4135
4136  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4137fi
4138fi
4139have_autoconf=$ac_cv_prog_have_autoconf
4140if test -n "$have_autoconf"; then
4141  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4142echo "${ECHO_T}$have_autoconf" >&6
4143else
4144  echo "$as_me:$LINENO: result: no" >&5
4145echo "${ECHO_T}no" >&6
4146fi
4147
4148    if test $have_autoconf = no; then
4149      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4150echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4151   { (exit 1); exit 1; }; }
4152    fi
4153
4154    # Check whether autoconf is the correct version
4155    correct_version='2.59'
4156    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4157    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4158echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4159    autoconf --version > confauto.out 2>&1
4160    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4161      echo "$as_me:$LINENO: result: yes" >&5
4162echo "${ECHO_T}yes" >&6
4163    else
4164      rm -f confauto.out
4165      echo "$as_me:$LINENO: result: no" >&5
4166echo "${ECHO_T}no" >&6
4167      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4168echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4169   { (exit 1); exit 1; }; }
4170    fi
4171    rm -f confauto.out
4172
4173    # Check if the executable autoconf is picked up from the correct location
4174    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4175echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4176    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4177    autoconf_dir=`cd $autoconf_dir; pwd`
4178    if test x$AUTOTOOLS_DIR = x; then
4179      want_dir=$AUTOTOOLS_DFLT/bin
4180    else
4181      want_dir=$AUTOTOOLS_DIR/bin
4182    fi
4183    if test $autoconf_dir = `cd $want_dir; pwd`; then
4184      echo "$as_me:$LINENO: result: yes" >&5
4185echo "${ECHO_T}yes" >&6
4186    else
4187      rm -f confauto.out
4188      echo "$as_me:$LINENO: result: no" >&5
4189echo "${ECHO_T}no" >&6
4190      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4191echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4192   { (exit 1); exit 1; }; }
4193    fi
4194
4195    # Check if we have automake
4196    # Extract the first word of "automake", so it can be a program name with args.
4197set dummy automake; ac_word=$2
4198echo "$as_me:$LINENO: checking for $ac_word" >&5
4199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4200if test "${ac_cv_prog_have_automake+set}" = set; then
4201  echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
4203  if test -n "$have_automake"; then
4204  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4205else
4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209  IFS=$as_save_IFS
4210  test -z "$as_dir" && as_dir=.
4211  for ac_exec_ext in '' $ac_executable_extensions; do
4212  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213    ac_cv_prog_have_automake="yes"
4214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215    break 2
4216  fi
4217done
4218done
4219
4220  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4221fi
4222fi
4223have_automake=$ac_cv_prog_have_automake
4224if test -n "$have_automake"; then
4225  echo "$as_me:$LINENO: result: $have_automake" >&5
4226echo "${ECHO_T}$have_automake" >&6
4227else
4228  echo "$as_me:$LINENO: result: no" >&5
4229echo "${ECHO_T}no" >&6
4230fi
4231
4232    if test $have_automake = no; then
4233      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4234echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4235   { (exit 1); exit 1; }; }
4236    fi
4237
4238    # Check whether automake is the correct version
4239    correct_version='1.9.6'
4240    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4241    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4242echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4243    automake --version > confauto.out 2>&1
4244    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4245      echo "$as_me:$LINENO: result: yes" >&5
4246echo "${ECHO_T}yes" >&6
4247    else
4248      rm -f confauto.out
4249      echo "$as_me:$LINENO: result: no" >&5
4250echo "${ECHO_T}no" >&6
4251      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4252echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4253   { (exit 1); exit 1; }; }
4254    fi
4255    rm -f confauto.out
4256
4257    # Check if the executable automake is picked up from the correct location
4258    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4259echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4260    automake_dir=`which automake | sed -e 's=/automake=='`
4261    automake_dir=`cd $automake_dir; pwd`
4262    if test x$AUTOTOOLS_DIR = x; then
4263      want_dir=$AUTOTOOLS_DFLT/bin
4264    else
4265      want_dir=$AUTOTOOLS_DIR/bin
4266    fi
4267    if test $automake_dir = `cd $want_dir; pwd`; then
4268      echo "$as_me:$LINENO: result: yes" >&5
4269echo "${ECHO_T}yes" >&6
4270    else
4271      rm -f confauto.out
4272      echo "$as_me:$LINENO: result: no" >&5
4273echo "${ECHO_T}no" >&6
4274      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4275echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4276   { (exit 1); exit 1; }; }
4277    fi
4278
4279    # Check if this is the correct version of libtool (with escaped dots)
4280    if test x$AUTOTOOLS_DIR = x; then
4281      want_dir=$AUTOTOOLS_DFLT/share
4282    else
4283      want_dir=$AUTOTOOLS_DIR/share
4284    fi
4285    correct_version='1.5.22'
4286    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4287    if test -r $want_dir/libtool/ltmain.sh; then
4288  have_ltmain=yes
4289  :
4290else
4291  have_ltmain=no
4292  :
4293fi
4294
4295    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4296echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4297    if test $have_ltmain = yes; then
4298    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4299        echo "$as_me:$LINENO: result: yes" >&5
4300echo "${ECHO_T}yes" >&6
4301      else
4302        echo "$as_me:$LINENO: result: no" >&5
4303echo "${ECHO_T}no" >&6
4304        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4305echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4306   { (exit 1); exit 1; }; }
4307      fi
4308    else
4309      echo "$as_me:$LINENO: result: no" >&5
4310echo "${ECHO_T}no" >&6
4311      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4312echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4313   { (exit 1); exit 1; }; }
4314    fi
4315  fi
4316
4317  # Check if we can find the libtool file
4318  if test x$AUTOTOOLS_DIR = x; then
4319    want_dir=$AUTOTOOLS_DFLT/share
4320  else
4321    want_dir=$AUTOTOOLS_DIR/share
4322  fi
4323  if test -r $want_dir/aclocal/libtool.m4; then
4324  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4325  :
4326else
4327  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4328echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4329   { (exit 1); exit 1; }; }
4330  :
4331fi
4332
4333
4334  # Check if we have an Externals file
4335  if test -r $srcdir/Externals; then
4336    coin_have_externals=yes
4337  fi
4338  # Check if subversion is installed and understands https
4339  # Extract the first word of "svn", so it can be a program name with args.
4340set dummy svn; ac_word=$2
4341echo "$as_me:$LINENO: checking for $ac_word" >&5
4342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4343if test "${ac_cv_prog_have_svn+set}" = set; then
4344  echo $ECHO_N "(cached) $ECHO_C" >&6
4345else
4346  if test -n "$have_svn"; then
4347  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4348else
4349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH
4351do
4352  IFS=$as_save_IFS
4353  test -z "$as_dir" && as_dir=.
4354  for ac_exec_ext in '' $ac_executable_extensions; do
4355  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356    ac_cv_prog_have_svn="yes"
4357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4358    break 2
4359  fi
4360done
4361done
4362
4363  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4364fi
4365fi
4366have_svn=$ac_cv_prog_have_svn
4367if test -n "$have_svn"; then
4368  echo "$as_me:$LINENO: result: $have_svn" >&5
4369echo "${ECHO_T}$have_svn" >&6
4370else
4371  echo "$as_me:$LINENO: result: no" >&5
4372echo "${ECHO_T}no" >&6
4373fi
4374
4375  if test x$have_svn = xyes; then
4376    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4377echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4378if test "${ac_cv_svn_understands_https+set}" = set; then
4379  echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
4381  svn --version > confauto.out 2>&1
4382                    if $EGREP https confauto.out >/dev/null 2>&1; then
4383                      ac_cv_svn_understands_https=yes
4384                    else
4385                      ac_cv_svn_understands_https=no
4386                      have_svn=no
4387                      ac_cv_prog_have_svn=no
4388                    fi
4389                    rm -f confauto.out
4390fi
4391echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4392echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4393  fi
4394
4395  # Find the location of the BuildTools directory
4396  BUILDTOOLSDIR=
4397  if test -r $srcdir/BuildTools/coin.m4; then
4398    BUILDTOOLSDIR=$srcdir/BuildTools
4399  else
4400    if test -r $srcdir/../BuildTools/coin.m4; then
4401      BUILDTOOLSDIR=$srcdir/../BuildTools
4402    else
4403      if test -r $srcdir/../../BuildTools/coin.m4; then
4404        BUILDTOOLSDIR=$srcdir/../../BuildTools
4405      else
4406        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4407echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4408   { (exit 1); exit 1; }; }
4409      fi
4410    fi
4411  fi
4412
4413
4414  # The following variable is set to the name of the directory where
4415  # the autotool scripts are located
4416
4417  AUX_DIR=$ac_aux_dir
4418fi
4419
4420# helpful variable for the base directory of this package
4421abs_source_dir=`cd $srcdir; pwd`
4422
4423
4424# Stuff for example Makefiles
4425if test x$prefix = xNONE; then
4426  full_prefix=$ac_default_prefix
4427else
4428  full_prefix=$prefix
4429fi
4430full_prefix=`cd $full_prefix ; pwd`
4431
4432abs_lib_dir=$full_prefix/lib/coin
4433
4434abs_include_dir=$full_prefix/include
4435
4436abs_bin_dir=$full_prefix/bin
4437
4438
4439
4440if test $coin_have_externals = yes && test x$have_svn = xyes; then
4441  HAVE_EXTERNALS_TRUE=
4442  HAVE_EXTERNALS_FALSE='#'
4443else
4444  HAVE_EXTERNALS_TRUE='#'
4445  HAVE_EXTERNALS_FALSE=
4446fi
4447
4448
4449# AC_MSG_NOTICE([End automake initialisation.])
4450
4451
4452
4453LIBTOOL=
4454if test -r ../libtool; then
4455  coin_config_dir=..
4456  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4457fi
4458if test "x$LIBTOOL" = x; then
4459  if test -r ../../libtool; then
4460    coin_config_dir=../..
4461    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4462  fi
4463fi
4464
4465if test "x$LIBTOOL" = x; then
4466# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4467  # Stuff for libtool
4468  # Check whether --enable-shared or --disable-shared was given.
4469if test "${enable_shared+set}" = set; then
4470  enableval="$enable_shared"
4471  p=${PACKAGE-default}
4472    case $enableval in
4473    yes) enable_shared=yes ;;
4474    no) enable_shared=no ;;
4475    *)
4476      enable_shared=no
4477      # Look at the argument we got.  We use all the common list separators.
4478      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4479      for pkg in $enableval; do
4480        IFS="$lt_save_ifs"
4481        if test "X$pkg" = "X$p"; then
4482          enable_shared=yes
4483        fi
4484      done
4485      IFS="$lt_save_ifs"
4486      ;;
4487    esac
4488else
4489  enable_shared=yes
4490fi;
4491
4492# Check whether --enable-fast-install or --disable-fast-install was given.
4493if test "${enable_fast_install+set}" = set; then
4494  enableval="$enable_fast_install"
4495  p=${PACKAGE-default}
4496    case $enableval in
4497    yes) enable_fast_install=yes ;;
4498    no) enable_fast_install=no ;;
4499    *)
4500      enable_fast_install=no
4501      # Look at the argument we got.  We use all the common list separators.
4502      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4503      for pkg in $enableval; do
4504        IFS="$lt_save_ifs"
4505        if test "X$pkg" = "X$p"; then
4506          enable_fast_install=yes
4507        fi
4508      done
4509      IFS="$lt_save_ifs"
4510      ;;
4511    esac
4512else
4513  enable_fast_install=yes
4514fi;
4515
4516echo "$as_me:$LINENO: checking host system type" >&5
4517echo $ECHO_N "checking host system type... $ECHO_C" >&6
4518if test "${ac_cv_host+set}" = set; then
4519  echo $ECHO_N "(cached) $ECHO_C" >&6
4520else
4521  ac_cv_host_alias=$host_alias
4522test -z "$ac_cv_host_alias" &&
4523  ac_cv_host_alias=$ac_cv_build_alias
4524ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4525  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4526echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4527   { (exit 1); exit 1; }; }
4528
4529fi
4530echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4531echo "${ECHO_T}$ac_cv_host" >&6
4532host=$ac_cv_host
4533host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4534host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4535host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4536
4537
4538echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4539echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4540if test "${lt_cv_path_SED+set}" = set; then
4541  echo $ECHO_N "(cached) $ECHO_C" >&6
4542else
4543  # Loop through the user's path and test for sed and gsed.
4544# Then use that list of sed's as ones to test for truncation.
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548  IFS=$as_save_IFS
4549  test -z "$as_dir" && as_dir=.
4550  for lt_ac_prog in sed gsed; do
4551    for ac_exec_ext in '' $ac_executable_extensions; do
4552      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4553        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4554      fi
4555    done
4556  done
4557done
4558lt_ac_max=0
4559lt_ac_count=0
4560# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4561# along with /bin/sed that truncates output.
4562for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4563  test ! -f $lt_ac_sed && continue
4564  cat /dev/null > conftest.in
4565  lt_ac_count=0
4566  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4567  # Check for GNU sed and select it if it is found.
4568  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4569    lt_cv_path_SED=$lt_ac_sed
4570    break
4571  fi
4572  while true; do
4573    cat conftest.in conftest.in >conftest.tmp
4574    mv conftest.tmp conftest.in
4575    cp conftest.in conftest.nl
4576    echo >>conftest.nl
4577    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4578    cmp -s conftest.out conftest.nl || break
4579    # 10000 chars as input seems more than enough
4580    test $lt_ac_count -gt 10 && break
4581    lt_ac_count=`expr $lt_ac_count + 1`
4582    if test $lt_ac_count -gt $lt_ac_max; then
4583      lt_ac_max=$lt_ac_count
4584      lt_cv_path_SED=$lt_ac_sed
4585    fi
4586  done
4587done
4588
4589fi
4590
4591SED=$lt_cv_path_SED
4592echo "$as_me:$LINENO: result: $SED" >&5
4593echo "${ECHO_T}$SED" >&6
4594
4595
4596# Check whether --with-gnu-ld or --without-gnu-ld was given.
4597if test "${with_gnu_ld+set}" = set; then
4598  withval="$with_gnu_ld"
4599  test "$withval" = no || with_gnu_ld=yes
4600else
4601  with_gnu_ld=no
4602fi;
4603ac_prog=ld
4604if test "$GCC" = yes; then
4605  # Check if gcc -print-prog-name=ld gives a path.
4606  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4607echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4608  case $host in
4609  *-*-mingw*)
4610    # gcc leaves a trailing carriage return which upsets mingw
4611    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4612  *)
4613    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4614  esac
4615  case $ac_prog in
4616    # Accept absolute paths.
4617    [\\/]* | ?:[\\/]*)
4618      re_direlt='/[^/][^/]*/\.\./'
4619      # Canonicalize the pathname of ld
4620      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4621      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4622        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4623      done
4624      test -z "$LD" && LD="$ac_prog"
4625      ;;
4626  "")
4627    # If it fails, then pretend we aren't using GCC.
4628    ac_prog=ld
4629    ;;
4630  *)
4631    # If it is relative, then search for the first ld in PATH.
4632    with_gnu_ld=unknown
4633    ;;
4634  esac
4635elif test "$with_gnu_ld" = yes; then
4636  echo "$as_me:$LINENO: checking for GNU ld" >&5
4637echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4638else
4639  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4640echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4641fi
4642if test "${lt_cv_path_LD+set}" = set; then
4643  echo $ECHO_N "(cached) $ECHO_C" >&6
4644else
4645  if test -z "$LD"; then
4646  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4647  for ac_dir in $PATH; do
4648    IFS="$lt_save_ifs"
4649    test -z "$ac_dir" && ac_dir=.
4650    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4651      lt_cv_path_LD="$ac_dir/$ac_prog"
4652      # Check to see if the program is GNU ld.  I'd rather use --version,
4653      # but apparently some variants of GNU ld only accept -v.
4654      # Break only if it was the GNU/non-GNU ld that we prefer.
4655      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4656      *GNU* | *'with BFD'*)
4657        test "$with_gnu_ld" != no && break
4658        ;;
4659      *)
4660        test "$with_gnu_ld" != yes && break
4661        ;;
4662      esac
4663    fi
4664  done
4665  IFS="$lt_save_ifs"
4666else
4667  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4668fi
4669fi
4670
4671LD="$lt_cv_path_LD"
4672if test -n "$LD"; then
4673  echo "$as_me:$LINENO: result: $LD" >&5
4674echo "${ECHO_T}$LD" >&6
4675else
4676  echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6
4678fi
4679test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4680echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4681   { (exit 1); exit 1; }; }
4682echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4683echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4684if test "${lt_cv_prog_gnu_ld+set}" = set; then
4685  echo $ECHO_N "(cached) $ECHO_C" >&6
4686else
4687  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4688case `$LD -v 2>&1 </dev/null` in
4689*GNU* | *'with BFD'*)
4690  lt_cv_prog_gnu_ld=yes
4691  ;;
4692*)
4693  lt_cv_prog_gnu_ld=no
4694  ;;
4695esac
4696fi
4697echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4698echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4699with_gnu_ld=$lt_cv_prog_gnu_ld
4700
4701
4702echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4703echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4704if test "${lt_cv_ld_reload_flag+set}" = set; then
4705  echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
4707  lt_cv_ld_reload_flag='-r'
4708fi
4709echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4710echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4711reload_flag=$lt_cv_ld_reload_flag
4712case $reload_flag in
4713"" | " "*) ;;
4714*) reload_flag=" $reload_flag" ;;
4715esac
4716reload_cmds='$LD$reload_flag -o $output$reload_objs'
4717case $host_os in
4718  darwin*)
4719    if test "$GCC" = yes; then
4720      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4721    else
4722      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4723    fi
4724    ;;
4725esac
4726
4727echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4728echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4729if test "${lt_cv_path_NM+set}" = set; then
4730  echo $ECHO_N "(cached) $ECHO_C" >&6
4731else
4732  if test -n "$NM"; then
4733  # Let the user override the test.
4734  lt_cv_path_NM="$NM"
4735else
4736  lt_nm_to_check="${ac_tool_prefix}nm"
4737  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4738    lt_nm_to_check="$lt_nm_to_check nm"
4739  fi
4740  for lt_tmp_nm in $lt_nm_to_check; do
4741    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4742    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4743      IFS="$lt_save_ifs"
4744      test -z "$ac_dir" && ac_dir=.
4745      tmp_nm="$ac_dir/$lt_tmp_nm"
4746      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4747        # Check to see if the nm accepts a BSD-compat flag.
4748        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4749        #   nm: unknown option "B" ignored
4750        # Tru64's nm complains that /dev/null is an invalid object file
4751        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4752        */dev/null* | *'Invalid file or object type'*)
4753          lt_cv_path_NM="$tmp_nm -B"
4754          break
4755          ;;
4756        *)
4757          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4758          */dev/null*)
4759            lt_cv_path_NM="$tmp_nm -p"
4760            break
4761            ;;
4762          *)
4763            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4764            continue # so that we can try to find one that supports BSD flags
4765            ;;
4766          esac
4767          ;;
4768        esac
4769      fi
4770    done
4771    IFS="$lt_save_ifs"
4772  done
4773  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4774fi
4775fi
4776echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4777echo "${ECHO_T}$lt_cv_path_NM" >&6
4778NM="$lt_cv_path_NM"
4779
4780echo "$as_me:$LINENO: checking whether ln -s works" >&5
4781echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4782LN_S=$as_ln_s
4783if test "$LN_S" = "ln -s"; then
4784  echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
4786else
4787  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4788echo "${ECHO_T}no, using $LN_S" >&6
4789fi
4790
4791echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4792echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4793if test "${lt_cv_deplibs_check_method+set}" = set; then
4794  echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796  lt_cv_file_magic_cmd='$MAGIC_CMD'
4797lt_cv_file_magic_test_file=
4798lt_cv_deplibs_check_method='unknown'
4799# Need to set the preceding variable on all platforms that support
4800# interlibrary dependencies.
4801# 'none' -- dependencies not supported.
4802# `unknown' -- same as none, but documents that we really don't know.
4803# 'pass_all' -- all dependencies passed with no checks.
4804# 'test_compile' -- check by making test program.
4805# 'file_magic [[regex]]' -- check by looking for files in library path
4806# which responds to the $file_magic_cmd with a given extended regex.
4807# If you have `file' or equivalent on your system and you're not sure
4808# whether `pass_all' will *always* work, you probably want this one.
4809
4810case $host_os in
4811aix4* | aix5*)
4812  lt_cv_deplibs_check_method=pass_all
4813  ;;
4814
4815beos*)
4816  lt_cv_deplibs_check_method=pass_all
4817  ;;
4818
4819bsdi[45]*)
4820  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4821  lt_cv_file_magic_cmd='/usr/bin/file -L'
4822  lt_cv_file_magic_test_file=/shlib/libc.so
4823  ;;
4824
4825cygwin*)
4826  # func_win32_libid is a shell function defined in ltmain.sh
4827  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4828  lt_cv_file_magic_cmd='func_win32_libid'
4829  ;;
4830
4831mingw* | pw32*)
4832  # Base MSYS/MinGW do not provide the 'file' command needed by
4833  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4834  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4835  lt_cv_file_magic_cmd='$OBJDUMP -f'
4836  ;;
4837
4838darwin* | rhapsody*)
4839  lt_cv_deplibs_check_method=pass_all
4840  ;;
4841
4842freebsd* | kfreebsd*-gnu | dragonfly*)
4843  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4844    case $host_cpu in
4845    i*86 )
4846      # Not sure whether the presence of OpenBSD here was a mistake.
4847      # Let's accept both of them until this is cleared up.
4848      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4849      lt_cv_file_magic_cmd=/usr/bin/file
4850      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4851      ;;
4852    esac
4853  else
4854    lt_cv_deplibs_check_method=pass_all
4855  fi
4856  ;;
4857
4858gnu*)
4859  lt_cv_deplibs_check_method=pass_all
4860  ;;
4861
4862hpux10.20* | hpux11*)
4863  lt_cv_file_magic_cmd=/usr/bin/file
4864  case $host_cpu in
4865  ia64*)
4866    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4867    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4868    ;;
4869  hppa*64*)
4870    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]'
4871    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4872    ;;
4873  *)
4874    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4875    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4876    ;;
4877  esac
4878  ;;
4879
4880interix3*)
4881  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4882  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4883  ;;
4884
4885irix5* | irix6* | nonstopux*)
4886  case $LD in
4887  *-32|*"-32 ") libmagic=32-bit;;
4888  *-n32|*"-n32 ") libmagic=N32;;
4889  *-64|*"-64 ") libmagic=64-bit;;
4890  *) libmagic=never-match;;
4891  esac
4892  lt_cv_deplibs_check_method=pass_all
4893  ;;
4894
4895# This must be Linux ELF.
4896linux*)
4897  lt_cv_deplibs_check_method=pass_all
4898  ;;
4899
4900netbsd*)
4901  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4902    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4903  else
4904    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4905  fi
4906  ;;
4907
4908newos6*)
4909  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4910  lt_cv_file_magic_cmd=/usr/bin/file
4911  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4912  ;;
4913
4914nto-qnx*)
4915  lt_cv_deplibs_check_method=unknown
4916  ;;
4917
4918openbsd*)
4919  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4920    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4921  else
4922    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4923  fi
4924  ;;
4925
4926osf3* | osf4* | osf5*)
4927  lt_cv_deplibs_check_method=pass_all
4928  ;;
4929
4930solaris*)
4931  lt_cv_deplibs_check_method=pass_all
4932  ;;
4933
4934sysv4 | sysv4.3*)
4935  case $host_vendor in
4936  motorola)
4937    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]'
4938    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4939    ;;
4940  ncr)
4941    lt_cv_deplibs_check_method=pass_all
4942    ;;
4943  sequent)
4944    lt_cv_file_magic_cmd='/bin/file'
4945    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4946    ;;
4947  sni)
4948    lt_cv_file_magic_cmd='/bin/file'
4949    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4950    lt_cv_file_magic_test_file=/lib/libc.so
4951    ;;
4952  siemens)
4953    lt_cv_deplibs_check_method=pass_all
4954    ;;
4955  pc)
4956    lt_cv_deplibs_check_method=pass_all
4957    ;;
4958  esac
4959  ;;
4960
4961sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4962  lt_cv_deplibs_check_method=pass_all
4963  ;;
4964esac
4965
4966fi
4967echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4968echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4969file_magic_cmd=$lt_cv_file_magic_cmd
4970deplibs_check_method=$lt_cv_deplibs_check_method
4971test -z "$deplibs_check_method" && deplibs_check_method=unknown
4972
4973
4974
4975
4976# If no C compiler was specified, use CC.
4977LTCC=${LTCC-"$CC"}
4978
4979# If no C compiler flags were specified, use CFLAGS.
4980LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4981
4982# Allow CC to be a program name with arguments.
4983compiler=$CC
4984
4985# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4986if test "${enable_libtool_lock+set}" = set; then
4987  enableval="$enable_libtool_lock"
4988
4989fi;
4990test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4991
4992# Some flags need to be propagated to the compiler or linker for good
4993# libtool support.
4994case $host in
4995ia64-*-hpux*)
4996  # Find out which ABI we are using.
4997  echo 'int i;' > conftest.$ac_ext
4998  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999  (eval $ac_compile) 2>&5
5000  ac_status=$?
5001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002  (exit $ac_status); }; then
5003    case `/usr/bin/file conftest.$ac_objext` in
5004    *ELF-32*)
5005      HPUX_IA64_MODE="32"
5006      ;;
5007    *ELF-64*)
5008      HPUX_IA64_MODE="64"
5009      ;;
5010    esac
5011  fi
5012  rm -rf conftest*
5013  ;;
5014*-*-irix6*)
5015  # Find out which ABI we are using.
5016  echo '#line 5016 "configure"' > conftest.$ac_ext
5017  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018  (eval $ac_compile) 2>&5
5019  ac_status=$?
5020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021  (exit $ac_status); }; then
5022   if test "$lt_cv_prog_gnu_ld" = yes; then
5023    case `/usr/bin/file conftest.$ac_objext` in
5024    *32-bit*)
5025      LD="${LD-ld} -melf32bsmip"
5026      ;;
5027    *N32*)
5028      LD="${LD-ld} -melf32bmipn32"
5029      ;;
5030    *64-bit*)
5031      LD="${LD-ld} -melf64bmip"
5032      ;;
5033    esac
5034   else
5035    case `/usr/bin/file conftest.$ac_objext` in
5036    *32-bit*)
5037      LD="${LD-ld} -32"
5038      ;;
5039    *N32*)
5040      LD="${LD-ld} -n32"
5041      ;;
5042    *64-bit*)
5043      LD="${LD-ld} -64"
5044      ;;
5045    esac
5046   fi
5047  fi
5048  rm -rf conftest*
5049  ;;
5050
5051x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5052  # Find out which ABI we are using.
5053  echo 'int i;' > conftest.$ac_ext
5054  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055  (eval $ac_compile) 2>&5
5056  ac_status=$?
5057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058  (exit $ac_status); }; then
5059    case `/usr/bin/file conftest.o` in
5060    *32-bit*)
5061      case $host in
5062        x86_64-*linux*)
5063          LD="${LD-ld} -m elf_i386"
5064          ;;
5065        ppc64-*linux*|powerpc64-*linux*)
5066          LD="${LD-ld} -m elf32ppclinux"
5067          ;;
5068        s390x-*linux*)
5069          LD="${LD-ld} -m elf_s390"
5070          ;;
5071        sparc64-*linux*)
5072          LD="${LD-ld} -m elf32_sparc"
5073          ;;
5074      esac
5075      ;;
5076    *64-bit*)
5077      case $host in
5078        x86_64-*linux*)
5079          LD="${LD-ld} -m elf_x86_64"
5080          ;;
5081        ppc*-*linux*|powerpc*-*linux*)
5082          LD="${LD-ld} -m elf64ppc"
5083          ;;
5084        s390*-*linux*)
5085          LD="${LD-ld} -m elf64_s390"
5086          ;;
5087        sparc*-*linux*)
5088          LD="${LD-ld} -m elf64_sparc"
5089          ;;
5090      esac
5091      ;;
5092    esac
5093  fi
5094  rm -rf conftest*
5095  ;;
5096
5097*-*-sco3.2v5*)
5098  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5099  SAVE_CFLAGS="$CFLAGS"
5100  CFLAGS="$CFLAGS -belf"
5101  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5102echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5103if test "${lt_cv_cc_needs_belf+set}" = set; then
5104  echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106  ac_ext=c
5107ac_cpp='$CPP $CPPFLAGS'
5108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111
5112     cat >conftest.$ac_ext <<_ACEOF
5113/* confdefs.h.  */
5114_ACEOF
5115cat confdefs.h >>conftest.$ac_ext
5116cat >>conftest.$ac_ext <<_ACEOF
5117/* end confdefs.h.  */
5118
5119int
5120main ()
5121{
5122
5123  ;
5124  return 0;
5125}
5126_ACEOF
5127rm -f conftest.$ac_objext conftest$ac_exeext
5128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129  (eval $ac_link) 2>conftest.er1
5130  ac_status=$?
5131  grep -v '^ *+' conftest.er1 >conftest.err
5132  rm -f conftest.er1
5133  cat conftest.err >&5
5134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135  (exit $ac_status); } &&
5136         { ac_try='test -z "$ac_c_werror_flag"
5137                         || test ! -s conftest.err'
5138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139  (eval $ac_try) 2>&5
5140  ac_status=$?
5141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142  (exit $ac_status); }; } &&
5143         { ac_try='test -s conftest$ac_exeext'
5144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145  (eval $ac_try) 2>&5
5146  ac_status=$?
5147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148  (exit $ac_status); }; }; then
5149  lt_cv_cc_needs_belf=yes
5150else
5151  echo "$as_me: failed program was:" >&5
5152sed 's/^/| /' conftest.$ac_ext >&5
5153
5154lt_cv_cc_needs_belf=no
5155fi
5156rm -f conftest.err conftest.$ac_objext \
5157      conftest$ac_exeext conftest.$ac_ext
5158     ac_ext=c
5159ac_cpp='$CPP $CPPFLAGS'
5160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162ac_compiler_gnu=$ac_cv_c_compiler_gnu
5163
5164fi
5165echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5166echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5167  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5168    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5169    CFLAGS="$SAVE_CFLAGS"
5170  fi
5171  ;;
5172sparc*-*solaris*)
5173  # Find out which ABI we are using.
5174  echo 'int i;' > conftest.$ac_ext
5175  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176  (eval $ac_compile) 2>&5
5177  ac_status=$?
5178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179  (exit $ac_status); }; then
5180    case `/usr/bin/file conftest.o` in
5181    *64-bit*)
5182      case $lt_cv_prog_gnu_ld in
5183      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5184      *)    LD="${LD-ld} -64" ;;
5185      esac
5186      ;;
5187    esac
5188  fi
5189  rm -rf conftest*
5190  ;;
5191
5192
5193esac
5194
5195need_locks="$enable_libtool_lock"
5196
5197
5198ac_ext=c
5199ac_cpp='$CPP $CPPFLAGS'
5200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5204echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5205# On Suns, sometimes $CPP names a directory.
5206if test -n "$CPP" && test -d "$CPP"; then
5207  CPP=
5208fi
5209if test -z "$CPP"; then
5210  if test "${ac_cv_prog_CPP+set}" = set; then
5211  echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213      # Double quotes because CPP needs to be expanded
5214    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5215    do
5216      ac_preproc_ok=false
5217for ac_c_preproc_warn_flag in '' yes
5218do
5219  # Use a header file that comes with gcc, so configuring glibc
5220  # with a fresh cross-compiler works.
5221  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5222  # <limits.h> exists even on freestanding compilers.
5223  # On the NeXT, cc -E runs the code through the compiler's parser,
5224  # not just through cpp. "Syntax error" is here to catch this case.
5225  cat >conftest.$ac_ext <<_ACEOF
5226/* confdefs.h.  */
5227_ACEOF
5228cat confdefs.h >>conftest.$ac_ext
5229cat >>conftest.$ac_ext <<_ACEOF
5230/* end confdefs.h.  */
5231#ifdef __STDC__
5232# include <limits.h>
5233#else
5234# include <assert.h>
5235#endif
5236                     Syntax error
5237_ACEOF
5238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5239  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5240  ac_status=$?
5241  grep -v '^ *+' conftest.er1 >conftest.err
5242  rm -f conftest.er1
5243  cat conftest.err >&5
5244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245  (exit $ac_status); } >/dev/null; then
5246  if test -s conftest.err; then
5247    ac_cpp_err=$ac_c_preproc_warn_flag
5248    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5249  else
5250    ac_cpp_err=
5251  fi
5252else
5253  ac_cpp_err=yes
5254fi
5255if test -z "$ac_cpp_err"; then
5256  :
5257else
5258  echo "$as_me: failed program was:" >&5
5259sed 's/^/| /' conftest.$ac_ext >&5
5260
5261  # Broken: fails on valid input.
5262continue
5263fi
5264rm -f conftest.err conftest.$ac_ext
5265
5266  # OK, works on sane cases.  Now check whether non-existent headers
5267  # can be detected and how.
5268  cat >conftest.$ac_ext <<_ACEOF
5269/* confdefs.h.  */
5270_ACEOF
5271cat confdefs.h >>conftest.$ac_ext
5272cat >>conftest.$ac_ext <<_ACEOF
5273/* end confdefs.h.  */
5274#include <ac_nonexistent.h>
5275_ACEOF
5276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5277  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5278  ac_status=$?
5279  grep -v '^ *+' conftest.er1 >conftest.err
5280  rm -f conftest.er1
5281  cat conftest.err >&5
5282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283  (exit $ac_status); } >/dev/null; then
5284  if test -s conftest.err; then
5285    ac_cpp_err=$ac_c_preproc_warn_flag
5286    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5287  else
5288    ac_cpp_err=
5289  fi
5290else
5291  ac_cpp_err=yes
5292fi
5293if test -z "$ac_cpp_err"; then
5294  # Broken: success on invalid input.
5295continue
5296else
5297  echo "$as_me: failed program was:" >&5
5298sed 's/^/| /' conftest.$ac_ext >&5
5299
5300  # Passes both tests.
5301ac_preproc_ok=:
5302break
5303fi
5304rm -f conftest.err conftest.$ac_ext
5305
5306done
5307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5308rm -f conftest.err conftest.$ac_ext
5309if $ac_preproc_ok; then
5310  break
5311fi
5312
5313    done
5314    ac_cv_prog_CPP=$CPP
5315
5316fi
5317  CPP=$ac_cv_prog_CPP
5318else
5319  ac_cv_prog_CPP=$CPP
5320fi
5321echo "$as_me:$LINENO: result: $CPP" >&5
5322echo "${ECHO_T}$CPP" >&6
5323ac_preproc_ok=false
5324for ac_c_preproc_warn_flag in '' yes
5325do
5326  # Use a header file that comes with gcc, so configuring glibc
5327  # with a fresh cross-compiler works.
5328  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5329  # <limits.h> exists even on freestanding compilers.
5330  # On the NeXT, cc -E runs the code through the compiler's parser,
5331  # not just through cpp. "Syntax error" is here to catch this case.
5332  cat >conftest.$ac_ext <<_ACEOF
5333/* confdefs.h.  */
5334_ACEOF
5335cat confdefs.h >>conftest.$ac_ext
5336cat >>conftest.$ac_ext <<_ACEOF
5337/* end confdefs.h.  */
5338#ifdef __STDC__
5339# include <limits.h>
5340#else
5341# include <assert.h>
5342#endif
5343                     Syntax error
5344_ACEOF
5345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5346  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5347  ac_status=$?
5348  grep -v '^ *+' conftest.er1 >conftest.err
5349  rm -f conftest.er1
5350  cat conftest.err >&5
5351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352  (exit $ac_status); } >/dev/null; then
5353  if test -s conftest.err; then
5354    ac_cpp_err=$ac_c_preproc_warn_flag
5355    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5356  else
5357    ac_cpp_err=
5358  fi
5359else
5360  ac_cpp_err=yes
5361fi
5362if test -z "$ac_cpp_err"; then
5363  :
5364else
5365  echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
5367
5368  # Broken: fails on valid input.
5369continue
5370fi
5371rm -f conftest.err conftest.$ac_ext
5372
5373  # OK, works on sane cases.  Now check whether non-existent headers
5374  # can be detected and how.
5375  cat >conftest.$ac_ext <<_ACEOF
5376/* confdefs.h.  */
5377_ACEOF
5378cat confdefs.h >>conftest.$ac_ext
5379cat >>conftest.$ac_ext <<_ACEOF
5380/* end confdefs.h.  */
5381#include <ac_nonexistent.h>
5382_ACEOF
5383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5384  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5385  ac_status=$?
5386  grep -v '^ *+' conftest.er1 >conftest.err
5387  rm -f conftest.er1
5388  cat conftest.err >&5
5389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390  (exit $ac_status); } >/dev/null; then
5391  if test -s conftest.err; then
5392    ac_cpp_err=$ac_c_preproc_warn_flag
5393    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5394  else
5395    ac_cpp_err=
5396  fi
5397else
5398  ac_cpp_err=yes
5399fi
5400if test -z "$ac_cpp_err"; then
5401  # Broken: success on invalid input.
5402continue
5403else
5404  echo "$as_me: failed program was:" >&5
5405sed 's/^/| /' conftest.$ac_ext >&5
5406
5407  # Passes both tests.
5408ac_preproc_ok=:
5409break
5410fi
5411rm -f conftest.err conftest.$ac_ext
5412
5413done
5414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5415rm -f conftest.err conftest.$ac_ext
5416if $ac_preproc_ok; then
5417  :
5418else
5419  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5420See \`config.log' for more details." >&5
5421echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5422See \`config.log' for more details." >&2;}
5423   { (exit 1); exit 1; }; }
5424fi
5425
5426ac_ext=c
5427ac_cpp='$CPP $CPPFLAGS'
5428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431
5432
5433echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5434echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5435if test "${ac_cv_header_stdc+set}" = set; then
5436  echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438  cat >conftest.$ac_ext <<_ACEOF
5439/* confdefs.h.  */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h.  */
5444#include <stdlib.h>
5445#include <stdarg.h>
5446#include <string.h>
5447#include <float.h>
5448
5449int
5450main ()
5451{
5452
5453  ;
5454  return 0;
5455}
5456_ACEOF
5457rm -f conftest.$ac_objext
5458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459  (eval $ac_compile) 2>conftest.er1
5460  ac_status=$?
5461  grep -v '^ *+' conftest.er1 >conftest.err
5462  rm -f conftest.er1
5463  cat conftest.err >&5
5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); } &&
5466         { ac_try='test -z "$ac_c_werror_flag"
5467                         || test ! -s conftest.err'
5468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469  (eval $ac_try) 2>&5
5470  ac_status=$?
5471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472  (exit $ac_status); }; } &&
5473         { ac_try='test -s conftest.$ac_objext'
5474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475  (eval $ac_try) 2>&5
5476  ac_status=$?
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }; }; then
5479  ac_cv_header_stdc=yes
5480else
5481  echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484ac_cv_header_stdc=no
5485fi
5486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5487
5488if test $ac_cv_header_stdc = yes; then
5489  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5490  cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h.  */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h.  */
5496#include <string.h>
5497
5498_ACEOF
5499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5500  $EGREP "memchr" >/dev/null 2>&1; then
5501  :
5502else
5503  ac_cv_header_stdc=no
5504fi
5505rm -f conftest*
5506
5507fi
5508
5509if test $ac_cv_header_stdc = yes; then
5510  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5511  cat >conftest.$ac_ext <<_ACEOF
5512/* confdefs.h.  */
5513_ACEOF
5514cat confdefs.h >>conftest.$ac_ext
5515cat >>conftest.$ac_ext <<_ACEOF
5516/* end confdefs.h.  */
5517#include <stdlib.h>
5518
5519_ACEOF
5520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5521  $EGREP "free" >/dev/null 2>&1; then
5522  :
5523else
5524  ac_cv_header_stdc=no
5525fi
5526rm -f conftest*
5527
5528fi
5529
5530if test $ac_cv_header_stdc = yes; then
5531  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5532  if test "$cross_compiling" = yes; then
5533  :
5534else
5535  cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h.  */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h.  */
5541#include <ctype.h>
5542#if ((' ' & 0x0FF) == 0x020)
5543# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5544# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5545#else
5546# define ISLOWER(c) \
5547                   (('a' <= (c) && (c) <= 'i') \
5548                     || ('j' <= (c) && (c) <= 'r') \
5549                     || ('s' <= (c) && (c) <= 'z'))
5550# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5551#endif
5552
5553#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5554int
5555main ()
5556{
5557  int i;
5558  for (i = 0; i < 256; i++)
5559    if (XOR (islower (i), ISLOWER (i))
5560        || toupper (i) != TOUPPER (i))
5561      exit(2);
5562  exit (0);
5563}
5564_ACEOF
5565rm -f conftest$ac_exeext
5566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5567  (eval $ac_link) 2>&5
5568  ac_status=$?
5569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572  (eval $ac_try) 2>&5
5573  ac_status=$?
5574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575  (exit $ac_status); }; }; then
5576  :
5577else
5578  echo "$as_me: program exited with status $ac_status" >&5
5579echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
5582( exit $ac_status )
5583ac_cv_header_stdc=no
5584fi
5585rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5586fi
5587fi
5588fi
5589echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5590echo "${ECHO_T}$ac_cv_header_stdc" >&6
5591if test $ac_cv_header_stdc = yes; then
5592
5593cat >>confdefs.h <<\_ACEOF
5594#define STDC_HEADERS 1
5595_ACEOF
5596
5597fi
5598
5599# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5610                  inttypes.h stdint.h unistd.h
5611do
5612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5613echo "$as_me:$LINENO: checking for $ac_header" >&5
5614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5615if eval "test \"\${$as_ac_Header+set}\" = set"; then
5616  echo $ECHO_N "(cached) $ECHO_C" >&6
5617else
5618  cat >conftest.$ac_ext <<_ACEOF
5619/* confdefs.h.  */
5620_ACEOF
5621cat confdefs.h >>conftest.$ac_ext
5622cat >>conftest.$ac_ext <<_ACEOF
5623/* end confdefs.h.  */
5624$ac_includes_default
5625
5626#include <$ac_header>
5627_ACEOF
5628rm -f conftest.$ac_objext
5629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630  (eval $ac_compile) 2>conftest.er1
5631  ac_status=$?
5632  grep -v '^ *+' conftest.er1 >conftest.err
5633  rm -f conftest.er1
5634  cat conftest.err >&5
5635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636  (exit $ac_status); } &&
5637         { ac_try='test -z "$ac_c_werror_flag"
5638                         || test ! -s conftest.err'
5639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640  (eval $ac_try) 2>&5
5641  ac_status=$?
5642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643  (exit $ac_status); }; } &&
5644         { ac_try='test -s conftest.$ac_objext'
5645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646  (eval $ac_try) 2>&5
5647  ac_status=$?
5648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649  (exit $ac_status); }; }; then
5650  eval "$as_ac_Header=yes"
5651else
5652  echo "$as_me: failed program was:" >&5
5653sed 's/^/| /' conftest.$ac_ext >&5
5654
5655eval "$as_ac_Header=no"
5656fi
5657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5658fi
5659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5661if test `eval echo '${'$as_ac_Header'}'` = yes; then
5662  cat >>confdefs.h <<_ACEOF
5663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5664_ACEOF
5665
5666fi
5667
5668done
5669
5670
5671
5672for ac_header in dlfcn.h
5673do
5674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5675if eval "test \"\${$as_ac_Header+set}\" = set"; then
5676  echo "$as_me:$LINENO: checking for $ac_header" >&5
5677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5678if eval "test \"\${$as_ac_Header+set}\" = set"; then
5679  echo $ECHO_N "(cached) $ECHO_C" >&6
5680fi
5681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5683else
5684  # Is the header compilable?
5685echo "$as_me:$LINENO: checking $ac_header usability" >&5
5686echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5687cat >conftest.$ac_ext <<_ACEOF
5688/* confdefs.h.  */
5689_ACEOF
5690cat confdefs.h >>conftest.$ac_ext
5691cat >>conftest.$ac_ext <<_ACEOF
5692/* end confdefs.h.  */
5693$ac_includes_default
5694#include <$ac_header>
5695_ACEOF
5696rm -f conftest.$ac_objext
5697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5698  (eval $ac_compile) 2>conftest.er1
5699  ac_status=$?
5700  grep -v '^ *+' conftest.er1 >conftest.err
5701  rm -f conftest.er1
5702  cat conftest.err >&5
5703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704  (exit $ac_status); } &&
5705         { ac_try='test -z "$ac_c_werror_flag"
5706                         || test ! -s conftest.err'
5707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708  (eval $ac_try) 2>&5
5709  ac_status=$?
5710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711  (exit $ac_status); }; } &&
5712         { ac_try='test -s conftest.$ac_objext'
5713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714  (eval $ac_try) 2>&5
5715  ac_status=$?
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); }; }; then
5718  ac_header_compiler=yes
5719else
5720  echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723ac_header_compiler=no
5724fi
5725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5727echo "${ECHO_T}$ac_header_compiler" >&6
5728
5729# Is the header present?
5730echo "$as_me:$LINENO: checking $ac_header presence" >&5
5731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5732cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h.  */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h.  */
5738#include <$ac_header>
5739_ACEOF
5740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5741  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5742  ac_status=$?
5743  grep -v '^ *+' conftest.er1 >conftest.err
5744  rm -f conftest.er1
5745  cat conftest.err >&5
5746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747  (exit $ac_status); } >/dev/null; then
5748  if test -s conftest.err; then
5749    ac_cpp_err=$ac_c_preproc_warn_flag
5750    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5751  else
5752    ac_cpp_err=
5753  fi
5754else
5755  ac_cpp_err=yes
5756fi
5757if test -z "$ac_cpp_err"; then
5758  ac_header_preproc=yes
5759else
5760  echo "$as_me: failed program was:" >&5
5761sed 's/^/| /' conftest.$ac_ext >&5
5762
5763  ac_header_preproc=no
5764fi
5765rm -f conftest.err conftest.$ac_ext
5766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5767echo "${ECHO_T}$ac_header_preproc" >&6
5768
5769# So?  What about this header?
5770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5771  yes:no: )
5772    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5774    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5776    ac_header_preproc=yes
5777    ;;
5778  no:yes:* )
5779    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5781    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5782echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5783    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5785    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5786echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5787    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5789    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5791    (
5792      cat <<\_ASBOX
5793## --------------------------------------------------------------- ##
5794## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5795## --------------------------------------------------------------- ##
5796_ASBOX
5797    ) |
5798      sed "s/^/$as_me: WARNING:     /" >&2
5799    ;;
5800esac
5801echo "$as_me:$LINENO: checking for $ac_header" >&5
5802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5803if eval "test \"\${$as_ac_Header+set}\" = set"; then
5804  echo $ECHO_N "(cached) $ECHO_C" >&6
5805else
5806  eval "$as_ac_Header=\$ac_header_preproc"
5807fi
5808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5810
5811fi
5812if test `eval echo '${'$as_ac_Header'}'` = yes; then
5813  cat >>confdefs.h <<_ACEOF
5814#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5815_ACEOF
5816
5817fi
5818
5819done
5820
5821ac_ext=cc
5822ac_cpp='$CXXCPP $CPPFLAGS'
5823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5826if test -n "$ac_tool_prefix"; then
5827  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5828  do
5829    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5830set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5831echo "$as_me:$LINENO: checking for $ac_word" >&5
5832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5833if test "${ac_cv_prog_CXX+set}" = set; then
5834  echo $ECHO_N "(cached) $ECHO_C" >&6
5835else
5836  if test -n "$CXX"; then
5837  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5838else
5839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842  IFS=$as_save_IFS
5843  test -z "$as_dir" && as_dir=.
5844  for ac_exec_ext in '' $ac_executable_extensions; do
5845  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848    break 2
5849  fi
5850done
5851done
5852
5853fi
5854fi
5855CXX=$ac_cv_prog_CXX
5856if test -n "$CXX"; then
5857  echo "$as_me:$LINENO: result: $CXX" >&5
5858echo "${ECHO_T}$CXX" >&6
5859else
5860  echo "$as_me:$LINENO: result: no" >&5
5861echo "${ECHO_T}no" >&6
5862fi
5863
5864    test -n "$CXX" && break
5865  done
5866fi
5867if test -z "$CXX"; then
5868  ac_ct_CXX=$CXX
5869  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5870do
5871  # Extract the first word of "$ac_prog", so it can be a program name with args.
5872set dummy $ac_prog; ac_word=$2
5873echo "$as_me:$LINENO: checking for $ac_word" >&5
5874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5876  echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878  if test -n "$ac_ct_CXX"; then
5879  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884  IFS=$as_save_IFS
5885  test -z "$as_dir" && as_dir=.
5886  for ac_exec_ext in '' $ac_executable_extensions; do
5887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888    ac_cv_prog_ac_ct_CXX="$ac_prog"
5889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890    break 2
5891  fi
5892done
5893done
5894
5895fi
5896fi
5897ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5898if test -n "$ac_ct_CXX"; then
5899  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5900echo "${ECHO_T}$ac_ct_CXX" >&6
5901else
5902  echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904fi
5905
5906  test -n "$ac_ct_CXX" && break
5907done
5908test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5909
5910  CXX=$ac_ct_CXX
5911fi
5912
5913
5914# Provide some information about the compiler.
5915echo "$as_me:$LINENO:" \
5916     "checking for C++ compiler version" >&5
5917ac_compiler=`set X $ac_compile; echo $2`
5918{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5919  (eval $ac_compiler --version </dev/null >&5) 2>&5
5920  ac_status=$?
5921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922  (exit $ac_status); }
5923{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5924  (eval $ac_compiler -v </dev/null >&5) 2>&5
5925  ac_status=$?
5926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927  (exit $ac_status); }
5928{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5929  (eval $ac_compiler -V </dev/null >&5) 2>&5
5930  ac_status=$?
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); }
5933
5934echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5935echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5936if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5937  echo $ECHO_N "(cached) $ECHO_C" >&6
5938else
5939  cat >conftest.$ac_ext <<_ACEOF
5940/* confdefs.h.  */
5941_ACEOF
5942cat confdefs.h >>conftest.$ac_ext
5943cat >>conftest.$ac_ext <<_ACEOF
5944/* end confdefs.h.  */
5945
5946int
5947main ()
5948{
5949#ifndef __GNUC__
5950       choke me
5951#endif
5952
5953  ;
5954  return 0;
5955}
5956_ACEOF
5957rm -f conftest.$ac_objext
5958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5959  (eval $ac_compile) 2>conftest.er1
5960  ac_status=$?
5961  grep -v '^ *+' conftest.er1 >conftest.err
5962  rm -f conftest.er1
5963  cat conftest.err >&5
5964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965  (exit $ac_status); } &&
5966         { ac_try='test -z "$ac_cxx_werror_flag"
5967                         || test ! -s conftest.err'
5968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969  (eval $ac_try) 2>&5
5970  ac_status=$?
5971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972  (exit $ac_status); }; } &&
5973         { ac_try='test -s conftest.$ac_objext'
5974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975  (eval $ac_try) 2>&5
5976  ac_status=$?
5977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978  (exit $ac_status); }; }; then
5979  ac_compiler_gnu=yes
5980else
5981  echo "$as_me: failed program was:" >&5
5982sed 's/^/| /' conftest.$ac_ext >&5
5983
5984ac_compiler_gnu=no
5985fi
5986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5987ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5988
5989fi
5990echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5991echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5992GXX=`test $ac_compiler_gnu = yes && echo yes`
5993ac_test_CXXFLAGS=${CXXFLAGS+set}
5994ac_save_CXXFLAGS=$CXXFLAGS
5995CXXFLAGS="-g"
5996echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5997echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5998if test "${ac_cv_prog_cxx_g+set}" = set; then
5999  echo $ECHO_N "(cached) $ECHO_C" >&6
6000else
6001  cat >conftest.$ac_ext <<_ACEOF
6002/* confdefs.h.  */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h.  */
6007
6008int
6009main ()
6010{
6011
6012  ;
6013  return 0;
6014}
6015_ACEOF
6016rm -f conftest.$ac_objext
6017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018  (eval $ac_compile) 2>conftest.er1
6019  ac_status=$?
6020  grep -v '^ *+' conftest.er1 >conftest.err
6021  rm -f conftest.er1
6022  cat conftest.err >&5
6023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024  (exit $ac_status); } &&
6025         { ac_try='test -z "$ac_cxx_werror_flag"
6026                         || test ! -s conftest.err'
6027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028  (eval $ac_try) 2>&5
6029  ac_status=$?
6030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031  (exit $ac_status); }; } &&
6032         { ac_try='test -s conftest.$ac_objext'
6033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034  (eval $ac_try) 2>&5
6035  ac_status=$?
6036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037  (exit $ac_status); }; }; then
6038  ac_cv_prog_cxx_g=yes
6039else
6040  echo "$as_me: failed program was:" >&5
6041sed 's/^/| /' conftest.$ac_ext >&5
6042
6043ac_cv_prog_cxx_g=no
6044fi
6045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6046fi
6047echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6048echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6049if test "$ac_test_CXXFLAGS" = set; then
6050  CXXFLAGS=$ac_save_CXXFLAGS
6051elif test $ac_cv_prog_cxx_g = yes; then
6052  if test "$GXX" = yes; then
6053    CXXFLAGS="-g -O2"
6054  else
6055    CXXFLAGS="-g"
6056  fi
6057else
6058  if test "$GXX" = yes; then
6059    CXXFLAGS="-O2"
6060  else
6061    CXXFLAGS=
6062  fi
6063fi
6064for ac_declaration in \
6065   '' \
6066   'extern "C" void std::exit (int) throw (); using std::exit;' \
6067   'extern "C" void std::exit (int); using std::exit;' \
6068   'extern "C" void exit (int) throw ();' \
6069   'extern "C" void exit (int);' \
6070   'void exit (int);'
6071do
6072  cat >conftest.$ac_ext <<_ACEOF
6073/* confdefs.h.  */
6074_ACEOF
6075cat confdefs.h >>conftest.$ac_ext
6076cat >>conftest.$ac_ext <<_ACEOF
6077/* end confdefs.h.  */
6078$ac_declaration
6079#include <stdlib.h>
6080int
6081main ()
6082{
6083exit (42);
6084  ;
6085  return 0;
6086}
6087_ACEOF
6088rm -f conftest.$ac_objext
6089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090  (eval $ac_compile) 2>conftest.er1
6091  ac_status=$?
6092  grep -v '^ *+' conftest.er1 >conftest.err
6093  rm -f conftest.er1
6094  cat conftest.err >&5
6095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096  (exit $ac_status); } &&
6097         { ac_try='test -z "$ac_cxx_werror_flag"
6098                         || test ! -s conftest.err'
6099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100  (eval $ac_try) 2>&5
6101  ac_status=$?
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); }; } &&
6104         { ac_try='test -s conftest.$ac_objext'
6105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106  (eval $ac_try) 2>&5
6107  ac_status=$?
6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); }; }; then
6110  :
6111else
6112  echo "$as_me: failed program was:" >&5
6113sed 's/^/| /' conftest.$ac_ext >&5
6114
6115continue
6116fi
6117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6118  cat >conftest.$ac_ext <<_ACEOF
6119/* confdefs.h.  */
6120_ACEOF
6121cat confdefs.h >>conftest.$ac_ext
6122cat >>conftest.$ac_ext <<_ACEOF
6123/* end confdefs.h.  */
6124$ac_declaration
6125int
6126main ()
6127{
6128exit (42);
6129  ;
6130  return 0;
6131}
6132_ACEOF
6133rm -f conftest.$ac_objext
6134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135  (eval $ac_compile) 2>conftest.er1
6136  ac_status=$?
6137  grep -v '^ *+' conftest.er1 >conftest.err
6138  rm -f conftest.er1
6139  cat conftest.err >&5
6140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141  (exit $ac_status); } &&
6142         { ac_try='test -z "$ac_cxx_werror_flag"
6143                         || test ! -s conftest.err'
6144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145  (eval $ac_try) 2>&5
6146  ac_status=$?
6147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148  (exit $ac_status); }; } &&
6149         { ac_try='test -s conftest.$ac_objext'
6150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151  (eval $ac_try) 2>&5
6152  ac_status=$?
6153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154  (exit $ac_status); }; }; then
6155  break
6156else
6157  echo "$as_me: failed program was:" >&5
6158sed 's/^/| /' conftest.$ac_ext >&5
6159
6160fi
6161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6162done
6163rm -f conftest*
6164if test -n "$ac_declaration"; then
6165  echo '#ifdef __cplusplus' >>confdefs.h
6166  echo $ac_declaration      >>confdefs.h
6167  echo '#endif'             >>confdefs.h
6168fi
6169
6170ac_ext=cc
6171ac_cpp='$CXXCPP $CPPFLAGS'
6172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6175
6176depcc="$CXX"  am_compiler_list=
6177
6178echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6179echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6180if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6181  echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
6183  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6184  # We make a subdir and do the tests there.  Otherwise we can end up
6185  # making bogus files that we don't know about and never remove.  For
6186  # instance it was reported that on HP-UX the gcc test will end up
6187  # making a dummy file named `D' -- because `-MD' means `put the output
6188  # in D'.
6189  mkdir conftest.dir
6190  # Copy depcomp to subdir because otherwise we won't find it if we're
6191  # using a relative directory.
6192  cp "$am_depcomp" conftest.dir
6193  cd conftest.dir
6194  # We will build objects and dependencies in a subdirectory because
6195  # it helps to detect inapplicable dependency modes.  For instance
6196  # both Tru64's cc and ICC support -MD to output dependencies as a
6197  # side effect of compilation, but ICC will put the dependencies in
6198  # the current directory while Tru64 will put them in the object
6199  # directory.
6200  mkdir sub
6201
6202  am_cv_CXX_dependencies_compiler_type=none
6203  if test "$am_compiler_list" = ""; then
6204     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6205  fi
6206  for depmode in $am_compiler_list; do
6207    # Setup a source with many dependencies, because some compilers
6208    # like to wrap large dependency lists on column 80 (with \), and
6209    # we should not choose a depcomp mode which is confused by this.
6210    #
6211    # We need to recreate these files for each test, as the compiler may
6212    # overwrite some of them when testing with obscure command lines.
6213    # This happens at least with the AIX C compiler.
6214    : > sub/conftest.c
6215    for i in 1 2 3 4 5 6; do
6216      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6217      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6218      # Solaris 8's {/usr,}/bin/sh.
6219      touch sub/conftst$i.h
6220    done
6221    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6222
6223    case $depmode in
6224    nosideeffect)
6225      # after this tag, mechanisms are not by side-effect, so they'll
6226      # only be used when explicitly requested
6227      if test "x$enable_dependency_tracking" = xyes; then
6228        continue
6229      else
6230        break
6231      fi
6232      ;;
6233    none) break ;;
6234    esac
6235    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6236    # mode.  It turns out that the SunPro C++ compiler does not properly
6237    # handle `-M -o', and we need to detect this.
6238    if depmode=$depmode \
6239       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6240       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6241       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6242         >/dev/null 2>conftest.err &&
6243       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6244       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6245       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6246      # icc doesn't choke on unknown options, it will just issue warnings
6247      # or remarks (even with -Werror).  So we grep stderr for any message
6248      # that says an option was ignored or not supported.
6249      # When given -MP, icc 7.0 and 7.1 complain thusly:
6250      #   icc: Command line warning: ignoring option '-M'; no argument required
6251      # The diagnosis changed in icc 8.0:
6252      #   icc: Command line remark: option '-MP' not supported
6253      if (grep 'ignoring option' conftest.err ||
6254          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6255        am_cv_CXX_dependencies_compiler_type=$depmode
6256        break
6257      fi
6258    fi
6259  done
6260
6261  cd ..
6262  rm -rf conftest.dir
6263else
6264  am_cv_CXX_dependencies_compiler_type=none
6265fi
6266
6267fi
6268echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6269echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6270CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6271
6272
6273
6274if
6275  test "x$enable_dependency_tracking" != xno \
6276  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6277  am__fastdepCXX_TRUE=
6278  am__fastdepCXX_FALSE='#'
6279else
6280  am__fastdepCXX_TRUE='#'
6281  am__fastdepCXX_FALSE=
6282fi
6283
6284
6285
6286
6287if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6288    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6289    (test "X$CXX" != "Xg++"))) ; then
6290  ac_ext=cc
6291ac_cpp='$CXXCPP $CPPFLAGS'
6292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6295echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6296echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6297if test -z "$CXXCPP"; then
6298  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6299  echo $ECHO_N "(cached) $ECHO_C" >&6
6300else
6301      # Double quotes because CXXCPP needs to be expanded
6302    for CXXCPP in "$CXX -E" "/lib/cpp"
6303    do
6304      ac_preproc_ok=false
6305for ac_cxx_preproc_warn_flag in '' yes
6306do
6307  # Use a header file that comes with gcc, so configuring glibc
6308  # with a fresh cross-compiler works.
6309  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6310  # <limits.h> exists even on freestanding compilers.
6311  # On the NeXT, cc -E runs the code through the compiler's parser,
6312  # not just through cpp. "Syntax error" is here to catch this case.
6313  cat >conftest.$ac_ext <<_ACEOF
6314/* confdefs.h.  */
6315_ACEOF
6316cat confdefs.h >>conftest.$ac_ext
6317cat >>conftest.$ac_ext <<_ACEOF
6318/* end confdefs.h.  */
6319#ifdef __STDC__
6320# include <limits.h>
6321#else
6322# include <assert.h>
6323#endif
6324                     Syntax error
6325_ACEOF
6326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6327  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6328  ac_status=$?
6329  grep -v '^ *+' conftest.er1 >conftest.err
6330  rm -f conftest.er1
6331  cat conftest.err >&5
6332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333  (exit $ac_status); } >/dev/null; then
6334  if test -s conftest.err; then
6335    ac_cpp_err=$ac_cxx_preproc_warn_flag
6336    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6337  else
6338    ac_cpp_err=
6339  fi
6340else
6341  ac_cpp_err=yes
6342fi
6343if test -z "$ac_cpp_err"; then
6344  :
6345else
6346  echo "$as_me: failed program was:" >&5
6347sed 's/^/| /' conftest.$ac_ext >&5
6348
6349  # Broken: fails on valid input.
6350continue
6351fi
6352rm -f conftest.err conftest.$ac_ext
6353
6354  # OK, works on sane cases.  Now check whether non-existent headers
6355  # can be detected and how.
6356  cat >conftest.$ac_ext <<_ACEOF
6357/* confdefs.h.  */
6358_ACEOF
6359cat confdefs.h >>conftest.$ac_ext
6360cat >>conftest.$ac_ext <<_ACEOF
6361/* end confdefs.h.  */
6362#include <ac_nonexistent.h>
6363_ACEOF
6364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6365  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6366  ac_status=$?
6367  grep -v '^ *+' conftest.er1 >conftest.err
6368  rm -f conftest.er1
6369  cat conftest.err >&5
6370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371  (exit $ac_status); } >/dev/null; then
6372  if test -s conftest.err; then
6373    ac_cpp_err=$ac_cxx_preproc_warn_flag
6374    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6375  else
6376    ac_cpp_err=
6377  fi
6378else
6379  ac_cpp_err=yes
6380fi
6381if test -z "$ac_cpp_err"; then
6382  # Broken: success on invalid input.
6383continue
6384else
6385  echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
6388  # Passes both tests.
6389ac_preproc_ok=:
6390break
6391fi
6392rm -f conftest.err conftest.$ac_ext
6393
6394done
6395# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6396rm -f conftest.err conftest.$ac_ext
6397if $ac_preproc_ok; then
6398  break
6399fi
6400
6401    done
6402    ac_cv_prog_CXXCPP=$CXXCPP
6403
6404fi
6405  CXXCPP=$ac_cv_prog_CXXCPP
6406else
6407  ac_cv_prog_CXXCPP=$CXXCPP
6408fi
6409echo "$as_me:$LINENO: result: $CXXCPP" >&5
6410echo "${ECHO_T}$CXXCPP" >&6
6411ac_preproc_ok=false
6412for ac_cxx_preproc_warn_flag in '' yes
6413do
6414  # Use a header file that comes with gcc, so configuring glibc
6415  # with a fresh cross-compiler works.
6416  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6417  # <limits.h> exists even on freestanding compilers.
6418  # On the NeXT, cc -E runs the code through the compiler's parser,
6419  # not just through cpp. "Syntax error" is here to catch this case.
6420  cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h.  */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h.  */
6426#ifdef __STDC__
6427# include <limits.h>
6428#else
6429# include <assert.h>
6430#endif
6431                     Syntax error
6432_ACEOF
6433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6434  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6435  ac_status=$?
6436  grep -v '^ *+' conftest.er1 >conftest.err
6437  rm -f conftest.er1
6438  cat conftest.err >&5
6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440  (exit $ac_status); } >/dev/null; then
6441  if test -s conftest.err; then
6442    ac_cpp_err=$ac_cxx_preproc_warn_flag
6443    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6444  else
6445    ac_cpp_err=
6446  fi
6447else
6448  ac_cpp_err=yes
6449fi
6450if test -z "$ac_cpp_err"; then
6451  :
6452else
6453  echo "$as_me: failed program was:" >&5
6454sed 's/^/| /' conftest.$ac_ext >&5
6455
6456  # Broken: fails on valid input.
6457continue
6458fi
6459rm -f conftest.err conftest.$ac_ext
6460
6461  # OK, works on sane cases.  Now check whether non-existent headers
6462  # can be detected and how.
6463  cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h.  */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h.  */
6469#include <ac_nonexistent.h>
6470_ACEOF
6471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6472  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6473  ac_status=$?
6474  grep -v '^ *+' conftest.er1 >conftest.err
6475  rm -f conftest.er1
6476  cat conftest.err >&5
6477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478  (exit $ac_status); } >/dev/null; then
6479  if test -s conftest.err; then
6480    ac_cpp_err=$ac_cxx_preproc_warn_flag
6481    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6482  else
6483    ac_cpp_err=
6484  fi
6485else
6486  ac_cpp_err=yes
6487fi
6488if test -z "$ac_cpp_err"; then
6489  # Broken: success on invalid input.
6490continue
6491else
6492  echo "$as_me: failed program was:" >&5
6493sed 's/^/| /' conftest.$ac_ext >&5
6494
6495  # Passes both tests.
6496ac_preproc_ok=:
6497break
6498fi
6499rm -f conftest.err conftest.$ac_ext
6500
6501done
6502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6503rm -f conftest.err conftest.$ac_ext
6504if $ac_preproc_ok; then
6505  :
6506else
6507  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6508See \`config.log' for more details." >&5
6509echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6510See \`config.log' for more details." >&2;}
6511   { (exit 1); exit 1; }; }
6512fi
6513
6514ac_ext=cc
6515ac_cpp='$CXXCPP $CPPFLAGS'
6516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6519
6520fi
6521
6522
6523ac_ext=f
6524ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6525ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6526ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6527if test -n "$ac_tool_prefix"; then
6528  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6529  do
6530    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6531set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6532echo "$as_me:$LINENO: checking for $ac_word" >&5
6533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6534if test "${ac_cv_prog_F77+set}" = set; then
6535  echo $ECHO_N "(cached) $ECHO_C" >&6
6536else
6537  if test -n "$F77"; then
6538  ac_cv_prog_F77="$F77" # Let the user override the test.
6539else
6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541for as_dir in $PATH
6542do
6543  IFS=$as_save_IFS
6544  test -z "$as_dir" && as_dir=.
6545  for ac_exec_ext in '' $ac_executable_extensions; do
6546  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6547    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549    break 2
6550  fi
6551done
6552done
6553
6554fi
6555fi
6556F77=$ac_cv_prog_F77
6557if test -n "$F77"; then
6558  echo "$as_me:$LINENO: result: $F77" >&5
6559echo "${ECHO_T}$F77" >&6
6560else
6561  echo "$as_me:$LINENO: result: no" >&5
6562echo "${ECHO_T}no" >&6
6563fi
6564
6565    test -n "$F77" && break
6566  done
6567fi
6568if test -z "$F77"; then
6569  ac_ct_F77=$F77
6570  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6571do
6572  # Extract the first word of "$ac_prog", so it can be a program name with args.
6573set dummy $ac_prog; ac_word=$2
6574echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6576if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6577  echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579  if test -n "$ac_ct_F77"; then
6580  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585  IFS=$as_save_IFS
6586  test -z "$as_dir" && as_dir=.
6587  for ac_exec_ext in '' $ac_executable_extensions; do
6588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589    ac_cv_prog_ac_ct_F77="$ac_prog"
6590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594done
6595
6596fi
6597fi
6598ac_ct_F77=$ac_cv_prog_ac_ct_F77
6599if test -n "$ac_ct_F77"; then
6600  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6601echo "${ECHO_T}$ac_ct_F77" >&6
6602else
6603  echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
6605fi
6606
6607  test -n "$ac_ct_F77" && break
6608done
6609
6610  F77=$ac_ct_F77
6611fi
6612
6613
6614# Provide some information about the compiler.
6615echo "$as_me:6615:" \
6616     "checking for Fortran 77 compiler version" >&5
6617ac_compiler=`set X $ac_compile; echo $2`
6618{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6619  (eval $ac_compiler --version </dev/null >&5) 2>&5
6620  ac_status=$?
6621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622  (exit $ac_status); }
6623{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6624  (eval $ac_compiler -v </dev/null >&5) 2>&5
6625  ac_status=$?
6626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); }
6628{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6629  (eval $ac_compiler -V </dev/null >&5) 2>&5
6630  ac_status=$?
6631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632  (exit $ac_status); }
6633rm -f a.out
6634
6635# If we don't use `.F' as extension, the preprocessor is not run on the
6636# input file.  (Note that this only needs to work for GNU compilers.)
6637ac_save_ext=$ac_ext
6638ac_ext=F
6639echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6640echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6641if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6642  echo $ECHO_N "(cached) $ECHO_C" >&6
6643else
6644  cat >conftest.$ac_ext <<_ACEOF
6645      program main
6646#ifndef __GNUC__
6647       choke me
6648#endif
6649
6650      end
6651_ACEOF
6652rm -f conftest.$ac_objext
6653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654  (eval $ac_compile) 2>conftest.er1
6655  ac_status=$?
6656  grep -v '^ *+' conftest.er1 >conftest.err
6657  rm -f conftest.er1
6658  cat conftest.err >&5
6659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660  (exit $ac_status); } &&
6661         { ac_try='test -z "$ac_f77_werror_flag"
6662                         || test ! -s conftest.err'
6663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664  (eval $ac_try) 2>&5
6665  ac_status=$?
6666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667  (exit $ac_status); }; } &&
6668         { ac_try='test -s conftest.$ac_objext'
6669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670  (eval $ac_try) 2>&5
6671  ac_status=$?
6672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673  (exit $ac_status); }; }; then
6674  ac_compiler_gnu=yes
6675else
6676  echo "$as_me: failed program was:" >&5
6677sed 's/^/| /' conftest.$ac_ext >&5
6678
6679ac_compiler_gnu=no
6680fi
6681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6682ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6683
6684fi
6685echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6686echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6687ac_ext=$ac_save_ext
6688ac_test_FFLAGS=${FFLAGS+set}
6689ac_save_FFLAGS=$FFLAGS
6690FFLAGS=
6691echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6692echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6693if test "${ac_cv_prog_f77_g+set}" = set; then
6694  echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696  FFLAGS=-g
6697cat >conftest.$ac_ext <<_ACEOF
6698      program main
6699
6700      end
6701_ACEOF
6702rm -f conftest.$ac_objext
6703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6704  (eval $ac_compile) 2>conftest.er1
6705  ac_status=$?
6706  grep -v '^ *+' conftest.er1 >conftest.err
6707  rm -f conftest.er1
6708  cat conftest.err >&5
6709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710  (exit $ac_status); } &&
6711         { ac_try='test -z "$ac_f77_werror_flag"
6712                         || test ! -s conftest.err'
6713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714  (eval $ac_try) 2>&5
6715  ac_status=$?
6716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717  (exit $ac_status); }; } &&
6718         { ac_try='test -s conftest.$ac_objext'
6719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720  (eval $ac_try) 2>&5
6721  ac_status=$?
6722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723  (exit $ac_status); }; }; then
6724  ac_cv_prog_f77_g=yes
6725else
6726  echo "$as_me: failed program was:" >&5
6727sed 's/^/| /' conftest.$ac_ext >&5
6728
6729ac_cv_prog_f77_g=no
6730fi
6731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6732
6733fi
6734echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6735echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6736if test "$ac_test_FFLAGS" = set; then
6737  FFLAGS=$ac_save_FFLAGS
6738elif test $ac_cv_prog_f77_g = yes; then
6739  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6740    FFLAGS="-g -O2"
6741  else
6742    FFLAGS="-g"
6743  fi
6744else
6745  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6746    FFLAGS="-O2"
6747  else
6748    FFLAGS=
6749  fi
6750fi
6751
6752G77=`test $ac_compiler_gnu = yes && echo yes`
6753ac_ext=c
6754ac_cpp='$CPP $CPPFLAGS'
6755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757ac_compiler_gnu=$ac_cv_c_compiler_gnu
6758
6759
6760
6761# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6762
6763# find the maximum length of command line arguments
6764echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6765echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6766if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6767  echo $ECHO_N "(cached) $ECHO_C" >&6
6768else
6769    i=0
6770  teststring="ABCD"
6771
6772  case $build_os in
6773  msdosdjgpp*)
6774    # On DJGPP, this test can blow up pretty badly due to problems in libc
6775    # (any single argument exceeding 2000 bytes causes a buffer overrun
6776    # during glob expansion).  Even if it were fixed, the result of this
6777    # check would be larger than it should be.
6778    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6779    ;;
6780
6781  gnu*)
6782    # Under GNU Hurd, this test is not required because there is
6783    # no limit to the length of command line arguments.
6784    # Libtool will interpret -1 as no limit whatsoever
6785    lt_cv_sys_max_cmd_len=-1;
6786    ;;
6787
6788  cygwin* | mingw*)
6789    # On Win9x/ME, this test blows up -- it succeeds, but takes
6790    # about 5 minutes as the teststring grows exponentially.
6791    # Worse, since 9x/ME are not pre-emptively multitasking,
6792    # you end up with a "frozen" computer, even though with patience
6793    # the test eventually succeeds (with a max line length of 256k).
6794    # Instead, let's just punt: use the minimum linelength reported by
6795    # all of the supported platforms: 8192 (on NT/2K/XP).
6796    lt_cv_sys_max_cmd_len=8192;
6797    ;;
6798
6799  amigaos*)
6800    # On AmigaOS with pdksh, this test takes hours, literally.
6801    # So we just punt and use a minimum line length of 8192.
6802    lt_cv_sys_max_cmd_len=8192;
6803    ;;
6804
6805  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6806    # This has been around since 386BSD, at least.  Likely further.
6807    if test -x /sbin/sysctl; then
6808      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6809    elif test -x /usr/sbin/sysctl; then
6810      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6811    else
6812      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6813    fi
6814    # And add a safety zone
6815    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6816    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6817    ;;
6818
6819  interix*)
6820    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6821    lt_cv_sys_max_cmd_len=196608
6822    ;;
6823
6824  osf*)
6825    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6826    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6827    # nice to cause kernel panics so lets avoid the loop below.
6828    # First set a reasonable default.
6829    lt_cv_sys_max_cmd_len=16384
6830    #
6831    if test -x /sbin/sysconfig; then
6832      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6833        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6834      esac
6835    fi
6836    ;;
6837  sco3.2v5*)
6838    lt_cv_sys_max_cmd_len=102400
6839    ;;
6840  sysv5* | sco5v6* | sysv4.2uw2*)
6841    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6842    if test -n "$kargmax"; then
6843      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6844    else
6845      lt_cv_sys_max_cmd_len=32768
6846    fi
6847    ;;
6848  *)
6849    # If test is not a shell built-in, we'll probably end up computing a
6850    # maximum length that is only half of the actual maximum length, but
6851    # we can't tell.
6852    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6853    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6854               = "XX$teststring") >/dev/null 2>&1 &&
6855            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6856            lt_cv_sys_max_cmd_len=$new_result &&
6857            test $i != 17 # 1/2 MB should be enough
6858    do
6859      i=`expr $i + 1`
6860      teststring=$teststring$teststring
6861    done
6862    teststring=
6863    # Add a significant safety factor because C++ compilers can tack on massive
6864    # amounts of additional arguments before passing them to the linker.
6865    # It appears as though 1/2 is a usable value.
6866    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6867    ;;
6868  esac
6869
6870fi
6871
6872if test -n $lt_cv_sys_max_cmd_len ; then
6873  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6874echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6875else
6876  echo "$as_me:$LINENO: result: none" >&5
6877echo "${ECHO_T}none" >&6
6878fi
6879
6880
6881
6882
6883# Check for command to grab the raw symbol name followed by C symbol from nm.
6884echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6885echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6886if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6887  echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889
6890# These are sane defaults that work on at least a few old systems.
6891# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6892
6893# Character class describing NM global symbol codes.
6894symcode='[BCDEGRST]'
6895
6896# Regexp to match symbols that can be accessed directly from C.
6897sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6898
6899# Transform an extracted symbol line into a proper C declaration
6900lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6901
6902# Transform an extracted symbol line into symbol name and symbol address
6903lt_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'"
6904
6905# Define system-specific variables.
6906case $host_os in
6907aix*)
6908  symcode='[BCDT]'
6909  ;;
6910cygwin* | mingw* | pw32*)
6911  symcode='[ABCDGISTW]'
6912  ;;
6913hpux*) # Its linker distinguishes data from code symbols
6914  if test "$host_cpu" = ia64; then
6915    symcode='[ABCDEGRST]'
6916  fi
6917  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6918  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'"
6919  ;;
6920linux*)
6921  if test "$host_cpu" = ia64; then
6922    symcode='[ABCDGIRSTW]'
6923    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6924    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'"
6925  fi
6926  ;;
6927irix* | nonstopux*)
6928  symcode='[BCDEGRST]'
6929  ;;
6930osf*)
6931  symcode='[BCDEGQRST]'
6932  ;;
6933solaris*)
6934  symcode='[BDRT]'
6935  ;;
6936sco3.2v5*)
6937  symcode='[DT]'
6938  ;;
6939sysv4.2uw2*)
6940  symcode='[DT]'
6941  ;;
6942sysv5* | sco5v6* | unixware* | OpenUNIX*)
6943  symcode='[ABDT]'
6944  ;;
6945sysv4)
6946  symcode='[DFNSTU]'
6947  ;;
6948esac
6949
6950# Handle CRLF in mingw tool chain
6951opt_cr=
6952case $build_os in
6953mingw*)
6954  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6955  ;;
6956esac
6957
6958# If we're using GNU nm, then use its standard symbol codes.
6959case `$NM -V 2>&1` in
6960*GNU* | *'with BFD'*)
6961  symcode='[ABCDGIRSTW]' ;;
6962esac
6963
6964# Try without a prefix undercore, then with it.
6965for ac_symprfx in "" "_"; do
6966
6967  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6968  symxfrm="\\1 $ac_symprfx\\2 \\2"
6969
6970  # Write the raw and C identifiers.
6971  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6972
6973  # Check to see that the pipe works correctly.
6974  pipe_works=no
6975
6976  rm -f conftest*
6977  cat > conftest.$ac_ext <<EOF
6978#ifdef __cplusplus
6979extern "C" {
6980#endif
6981char nm_test_var;
6982void nm_test_func(){}
6983#ifdef __cplusplus
6984}
6985#endif
6986int main(){nm_test_var='a';nm_test_func();return(0);}
6987EOF
6988
6989  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990  (eval $ac_compile) 2>&5
6991  ac_status=$?
6992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993  (exit $ac_status); }; then
6994    # Now try to grab the symbols.
6995    nlist=conftest.nm
6996    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6997  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6998  ac_status=$?
6999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000  (exit $ac_status); } && test -s "$nlist"; then
7001      # Try sorting and uniquifying the output.
7002      if sort "$nlist" | uniq > "$nlist"T; then
7003        mv -f "$nlist"T "$nlist"
7004      else
7005        rm -f "$nlist"T
7006      fi
7007
7008      # Make sure that we snagged all the symbols we need.
7009      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7010        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7011          cat <<EOF > conftest.$ac_ext
7012#ifdef __cplusplus
7013extern "C" {
7014#endif
7015
7016EOF
7017          # Now generate the symbol file.
7018          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7019
7020          cat <<EOF >> conftest.$ac_ext
7021#if defined (__STDC__) && __STDC__
7022# define lt_ptr_t void *
7023#else
7024# define lt_ptr_t char *
7025# define const
7026#endif
7027
7028/* The mapping between symbol names and symbols. */
7029const struct {
7030  const char *name;
7031  lt_ptr_t address;
7032}
7033lt_preloaded_symbols[] =
7034{
7035EOF
7036          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7037          cat <<\EOF >> conftest.$ac_ext
7038  {0, (lt_ptr_t) 0}
7039};
7040
7041#ifdef __cplusplus
7042}
7043#endif
7044EOF
7045          # Now try linking the two files.
7046          mv conftest.$ac_objext conftstm.$ac_objext
7047          lt_save_LIBS="$LIBS"
7048          lt_save_CFLAGS="$CFLAGS"
7049          LIBS="conftstm.$ac_objext"
7050          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7051          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7052  (eval $ac_link) 2>&5
7053  ac_status=$?
7054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7056            pipe_works=yes
7057          fi
7058          LIBS="$lt_save_LIBS"
7059          CFLAGS="$lt_save_CFLAGS"
7060        else
7061          echo "cannot find nm_test_func in $nlist" >&5
7062        fi
7063      else
7064        echo "cannot find nm_test_var in $nlist" >&5
7065      fi
7066    else
7067      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7068    fi
7069  else
7070    echo "$progname: failed program was:" >&5
7071    cat conftest.$ac_ext >&5
7072  fi
7073  rm -f conftest* conftst*
7074
7075  # Do not use the global_symbol_pipe unless it works.
7076  if test "$pipe_works" = yes; then
7077    break
7078  else
7079    lt_cv_sys_global_symbol_pipe=
7080  fi
7081done
7082
7083fi
7084
7085if test -z "$lt_cv_sys_global_symbol_pipe"; then
7086  lt_cv_sys_global_symbol_to_cdecl=
7087fi
7088if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7089  echo "$as_me:$LINENO: result: failed" >&5
7090echo "${ECHO_T}failed" >&6
7091else
7092  echo "$as_me:$LINENO: result: ok" >&5
7093echo "${ECHO_T}ok" >&6
7094fi
7095
7096echo "$as_me:$LINENO: checking for objdir" >&5
7097echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7098if test "${lt_cv_objdir+set}" = set; then
7099  echo $ECHO_N "(cached) $ECHO_C" >&6
7100else
7101  rm -f .libs 2>/dev/null
7102mkdir .libs 2>/dev/null
7103if test -d .libs; then
7104  lt_cv_objdir=.libs
7105else
7106  # MS-DOS does not allow filenames that begin with a dot.
7107  lt_cv_objdir=_libs
7108fi
7109rmdir .libs 2>/dev/null
7110fi
7111echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7112echo "${ECHO_T}$lt_cv_objdir" >&6
7113objdir=$lt_cv_objdir
7114
7115
7116
7117
7118
7119case $host_os in
7120aix3*)
7121  # AIX sometimes has problems with the GCC collect2 program.  For some
7122  # reason, if we set the COLLECT_NAMES environment variable, the problems
7123  # vanish in a puff of smoke.
7124  if test "X${COLLECT_NAMES+set}" != Xset; then
7125    COLLECT_NAMES=
7126    export COLLECT_NAMES
7127  fi
7128  ;;
7129esac
7130
7131# Sed substitution that helps us do robust quoting.  It backslashifies
7132# metacharacters that are still active within double-quoted strings.
7133Xsed='sed -e 1s/^X//'
7134sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7135
7136# Same as above, but do not quote variable references.
7137double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7138
7139# Sed substitution to delay expansion of an escaped shell variable in a
7140# double_quote_subst'ed string.
7141delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7142
7143# Sed substitution to avoid accidental globbing in evaled expressions
7144no_glob_subst='s/\*/\\\*/g'
7145
7146# Constants:
7147rm="rm -f"
7148
7149# Global variables:
7150default_ofile=libtool
7151can_build_shared=yes
7152
7153# All known linkers require a `.a' archive for static linking (except MSVC,
7154# which needs '.lib').
7155libext=a
7156ltmain="$ac_aux_dir/ltmain.sh"
7157ofile="$default_ofile"
7158with_gnu_ld="$lt_cv_prog_gnu_ld"
7159
7160if test -n "$ac_tool_prefix"; then
7161  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7162set dummy ${ac_tool_prefix}ar; ac_word=$2
7163echo "$as_me:$LINENO: checking for $ac_word" >&5
7164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7165if test "${ac_cv_prog_AR+set}" = set; then
7166  echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168  if test -n "$AR"; then
7169  ac_cv_prog_AR="$AR" # Let the user override the test.
7170else
7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176  for ac_exec_ext in '' $ac_executable_extensions; do
7177  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178    ac_cv_prog_AR="${ac_tool_prefix}ar"
7179    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183done
7184
7185fi
7186fi
7187AR=$ac_cv_prog_AR
7188if test -n "$AR"; then
7189  echo "$as_me:$LINENO: result: $AR" >&5
7190echo "${ECHO_T}$AR" >&6
7191else
7192  echo "$as_me:$LINENO: result: no" >&5
7193echo "${ECHO_T}no" >&6
7194fi
7195
7196fi
7197if test -z "$ac_cv_prog_AR"; then
7198  ac_ct_AR=$AR
7199  # Extract the first word of "ar", so it can be a program name with args.
7200set dummy ar; ac_word=$2
7201echo "$as_me:$LINENO: checking for $ac_word" >&5
7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7204  echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206  if test -n "$ac_ct_AR"; then
7207  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7208else
7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212  IFS=$as_save_IFS
7213  test -z "$as_dir" && as_dir=.
7214  for ac_exec_ext in '' $ac_executable_extensions; do
7215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216    ac_cv_prog_ac_ct_AR="ar"
7217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218    break 2
7219  fi
7220done
7221done
7222
7223  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7224fi
7225fi
7226ac_ct_AR=$ac_cv_prog_ac_ct_AR
7227if test -n "$ac_ct_AR"; then
7228  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7229echo "${ECHO_T}$ac_ct_AR" >&6
7230else
7231  echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
7233fi
7234
7235  AR=$ac_ct_AR
7236else
7237  AR="$ac_cv_prog_AR"
7238fi
7239
7240if test -n "$ac_tool_prefix"; then
7241  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7242set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7243echo "$as_me:$LINENO: checking for $ac_word" >&5
7244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7245if test "${ac_cv_prog_RANLIB+set}" = set; then
7246  echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248  if test -n "$RANLIB"; then
7249  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7250else
7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254  IFS=$as_save_IFS
7255  test -z "$as_dir" && as_dir=.
7256  for ac_exec_ext in '' $ac_executable_extensions; do
7257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260    break 2
7261  fi
7262done
7263done
7264
7265fi
7266fi
7267RANLIB=$ac_cv_prog_RANLIB
7268if test -n "$RANLIB"; then
7269  echo "$as_me:$LINENO: result: $RANLIB" >&5
7270echo "${ECHO_T}$RANLIB" >&6
7271else
7272  echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6
7274fi
7275
7276fi
7277if test -z "$ac_cv_prog_RANLIB"; then
7278  ac_ct_RANLIB=$RANLIB
7279  # Extract the first word of "ranlib", so it can be a program name with args.
7280set dummy ranlib; ac_word=$2
7281echo "$as_me:$LINENO: checking for $ac_word" >&5
7282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7283if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7284  echo $ECHO_N "(cached) $ECHO_C" >&6
7285else
7286  if test -n "$ac_ct_RANLIB"; then
7287  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7288else
7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292  IFS=$as_save_IFS
7293  test -z "$as_dir" && as_dir=.
7294  for ac_exec_ext in '' $ac_executable_extensions; do
7295  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296    ac_cv_prog_ac_ct_RANLIB="ranlib"
7297    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298    break 2
7299  fi
7300done
7301done
7302
7303  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7304fi
7305fi
7306ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7307if test -n "$ac_ct_RANLIB"; then
7308  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7309echo "${ECHO_T}$ac_ct_RANLIB" >&6
7310else
7311  echo "$as_me:$LINENO: result: no" >&5
7312echo "${ECHO_T}no" >&6
7313fi
7314
7315  RANLIB=$ac_ct_RANLIB
7316else
7317  RANLIB="$ac_cv_prog_RANLIB"
7318fi
7319
7320if test -n "$ac_tool_prefix"; then
7321  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7322set dummy ${ac_tool_prefix}strip; ac_word=$2
7323echo "$as_me:$LINENO: checking for $ac_word" >&5
7324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7325if test "${ac_cv_prog_STRIP+set}" = set; then
7326  echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328  if test -n "$STRIP"; then
7329  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7330else
7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334  IFS=$as_save_IFS
7335  test -z "$as_dir" && as_dir=.
7336  for ac_exec_ext in '' $ac_executable_extensions; do
7337  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7339    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340    break 2
7341  fi
7342done
7343done
7344
7345fi
7346fi
7347STRIP=$ac_cv_prog_STRIP
7348if test -n "$STRIP"; then
7349  echo "$as_me:$LINENO: result: $STRIP" >&5
7350echo "${ECHO_T}$STRIP" >&6
7351else
7352  echo "$as_me:$LINENO: result: no" >&5
7353echo "${ECHO_T}no" >&6
7354fi
7355
7356fi
7357if test -z "$ac_cv_prog_STRIP"; then
7358  ac_ct_STRIP=$STRIP
7359  # Extract the first word of "strip", so it can be a program name with args.
7360set dummy strip; ac_word=$2
7361echo "$as_me:$LINENO: checking for $ac_word" >&5
7362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7363if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7364  echo $ECHO_N "(cached) $ECHO_C" >&6
7365else
7366  if test -n "$ac_ct_STRIP"; then
7367  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7368else
7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372  IFS=$as_save_IFS
7373  test -z "$as_dir" && as_dir=.
7374  for ac_exec_ext in '' $ac_executable_extensions; do
7375  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376    ac_cv_prog_ac_ct_STRIP="strip"
7377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378    break 2
7379  fi
7380done
7381done
7382
7383  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7384fi
7385fi
7386ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7387if test -n "$ac_ct_STRIP"; then
7388  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7389echo "${ECHO_T}$ac_ct_STRIP" >&6
7390else
7391  echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6
7393fi
7394
7395  STRIP=$ac_ct_STRIP
7396else
7397  STRIP="$ac_cv_prog_STRIP"
7398fi
7399
7400
7401old_CC="$CC"
7402old_CFLAGS="$CFLAGS"
7403
7404# Set sane defaults for various variables
7405test -z "$AR" && AR=ar
7406test -z "$AR_FLAGS" && AR_FLAGS=cru
7407test -z "$AS" && AS=as
7408test -z "$CC" && CC=cc
7409test -z "$LTCC" && LTCC=$CC
7410test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7411test -z "$DLLTOOL" && DLLTOOL=dlltool
7412test -z "$LD" && LD=ld
7413test -z "$LN_S" && LN_S="ln -s"
7414test -z "$MAGIC_CMD" && MAGIC_CMD=file
7415test -z "$NM" && NM=nm
7416test -z "$SED" && SED=sed
7417test -z "$OBJDUMP" && OBJDUMP=objdump
7418test -z "$RANLIB" && RANLIB=:
7419test -z "$STRIP" && STRIP=:
7420test -z "$ac_objext" && ac_objext=o
7421
7422# Determine commands to create old-style static archives.
7423old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7424old_postinstall_cmds='chmod 644 $oldlib'
7425old_postuninstall_cmds=
7426
7427if test -n "$RANLIB"; then
7428  case $host_os in
7429  openbsd*)
7430    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7431    ;;
7432  *)
7433    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7434    ;;
7435  esac
7436  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7437fi
7438
7439for cc_temp in $compiler""; do
7440  case $cc_temp in
7441    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7442    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7443    \-*) ;;
7444    *) break;;
7445  esac
7446done
7447cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7448
7449
7450# Only perform the check for file, if the check method requires it
7451case $deplibs_check_method in
7452file_magic*)
7453  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7454    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7455echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7456if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7457  echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459  case $MAGIC_CMD in
7460[\\/*] |  ?:[\\/]*)
7461  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7462  ;;
7463*)
7464  lt_save_MAGIC_CMD="$MAGIC_CMD"
7465  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7466  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7467  for ac_dir in $ac_dummy; do
7468    IFS="$lt_save_ifs"
7469    test -z "$ac_dir" && ac_dir=.
7470    if test -f $ac_dir/${ac_tool_prefix}file; then
7471      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7472      if test -n "$file_magic_test_file"; then
7473        case $deplibs_check_method in
7474        "file_magic "*)
7475          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7476          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7477          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7478            $EGREP "$file_magic_regex" > /dev/null; then
7479            :
7480          else
7481            cat <<EOF 1>&2
7482
7483*** Warning: the command libtool uses to detect shared libraries,
7484*** $file_magic_cmd, produces output that libtool cannot recognize.
7485*** The result is that libtool may fail to recognize shared libraries
7486*** as such.  This will affect the creation of libtool libraries that
7487*** depend on shared libraries, but programs linked with such libtool
7488*** libraries will work regardless of this problem.  Nevertheless, you
7489*** may want to report the problem to your system manager and/or to
7490*** bug-libtool@gnu.org
7491
7492EOF
7493          fi ;;
7494        esac
7495      fi
7496      break
7497    fi
7498  done
7499  IFS="$lt_save_ifs"
7500  MAGIC_CMD="$lt_save_MAGIC_CMD"
7501  ;;
7502esac
7503fi
7504
7505MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7506if test -n "$MAGIC_CMD"; then
7507  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7508echo "${ECHO_T}$MAGIC_CMD" >&6
7509else
7510  echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6
7512fi
7513
7514if test -z "$lt_cv_path_MAGIC_CMD"; then
7515  if test -n "$ac_tool_prefix"; then
7516    echo "$as_me:$LINENO: checking for file" >&5
7517echo $ECHO_N "checking for file... $ECHO_C" >&6
7518if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7519  echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521  case $MAGIC_CMD in
7522[\\/*] |  ?:[\\/]*)
7523  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7524  ;;
7525*)
7526  lt_save_MAGIC_CMD="$MAGIC_CMD"
7527  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7528  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7529  for ac_dir in $ac_dummy; do
7530    IFS="$lt_save_ifs"
7531    test -z "$ac_dir" && ac_dir=.
7532    if test -f $ac_dir/file; then
7533      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7534      if test -n "$file_magic_test_file"; then
7535        case $deplibs_check_method in
7536        "file_magic "*)
7537          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7538          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7539          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7540            $EGREP "$file_magic_regex" > /dev/null; then
7541            :
7542          else
7543            cat <<EOF 1>&2
7544
7545*** Warning: the command libtool uses to detect shared libraries,
7546*** $file_magic_cmd, produces output that libtool cannot recognize.
7547*** The result is that libtool may fail to recognize shared libraries
7548*** as such.  This will affect the creation of libtool libraries that
7549*** depend on shared libraries, but programs linked with such libtool
7550*** libraries will work regardless of this problem.  Nevertheless, you
7551*** may want to report the problem to your system manager and/or to
7552*** bug-libtool@gnu.org
7553
7554EOF
7555          fi ;;
7556        esac
7557      fi
7558      break
7559    fi
7560  done
7561  IFS="$lt_save_ifs"
7562  MAGIC_CMD="$lt_save_MAGIC_CMD"
7563  ;;
7564esac
7565fi
7566
7567MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7568if test -n "$MAGIC_CMD"; then
7569  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7570echo "${ECHO_T}$MAGIC_CMD" >&6
7571else
7572  echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6
7574fi
7575
7576  else
7577    MAGIC_CMD=:
7578  fi
7579fi
7580
7581  fi
7582  ;;
7583esac
7584
7585enable_dlopen=no
7586enable_win32_dll=no
7587
7588# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7589if test "${enable_libtool_lock+set}" = set; then
7590  enableval="$enable_libtool_lock"
7591
7592fi;
7593test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7594
7595
7596# Check whether --with-pic or --without-pic was given.
7597if test "${with_pic+set}" = set; then
7598  withval="$with_pic"
7599  pic_mode="$withval"
7600else
7601  pic_mode=default
7602fi;
7603test -z "$pic_mode" && pic_mode=default
7604
7605# Use C for the default configuration in the libtool script
7606tagname=
7607lt_save_CC="$CC"
7608ac_ext=c
7609ac_cpp='$CPP $CPPFLAGS'
7610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7612ac_compiler_gnu=$ac_cv_c_compiler_gnu
7613
7614
7615# Source file extension for C test sources.
7616ac_ext=c
7617
7618# Object file extension for compiled C test sources.
7619objext=o
7620objext=$objext
7621
7622# Code to be used in simple compile tests
7623lt_simple_compile_test_code="int some_variable = 0;\n"
7624
7625# Code to be used in simple link tests
7626lt_simple_link_test_code='int main(){return(0);}\n'
7627
7628
7629# If no C compiler was specified, use CC.
7630LTCC=${LTCC-"$CC"}
7631
7632# If no C compiler flags were specified, use CFLAGS.
7633LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7634
7635# Allow CC to be a program name with arguments.
7636compiler=$CC
7637
7638
7639# save warnings/boilerplate of simple test code
7640ac_outfile=conftest.$ac_objext
7641printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7642eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7643_lt_compiler_boilerplate=`cat conftest.err`
7644$rm conftest*
7645
7646ac_outfile=conftest.$ac_objext
7647printf "$lt_simple_link_test_code" >conftest.$ac_ext
7648eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7649_lt_linker_boilerplate=`cat conftest.err`
7650$rm conftest*
7651
7652
7653## CAVEAT EMPTOR:
7654## There is no encapsulation within the following macros, do not change
7655## the running order or otherwise move them around unless you know exactly
7656## what you are doing...
7657
7658lt_prog_compiler_no_builtin_flag=
7659
7660if test "$GCC" = yes; then
7661  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7662
7663
7664echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7665echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7666if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7667  echo $ECHO_N "(cached) $ECHO_C" >&6
7668else
7669  lt_cv_prog_compiler_rtti_exceptions=no
7670  ac_outfile=conftest.$ac_objext
7671   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7672   lt_compiler_flag="-fno-rtti -fno-exceptions"
7673   # Insert the option either (1) after the last *FLAGS variable, or
7674   # (2) before a word containing "conftest.", or (3) at the end.
7675   # Note that $ac_compile itself does not contain backslashes and begins
7676   # with a dollar sign (not a hyphen), so the echo should work correctly.
7677   # The option is referenced via a variable to avoid confusing sed.
7678   lt_compile=`echo "$ac_compile" | $SED \
7679   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7680   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7681   -e 's:$: $lt_compiler_flag:'`
7682   (eval echo "\"\$as_me:7682: $lt_compile\"" >&5)
7683   (eval "$lt_compile" 2>conftest.err)
7684   ac_status=$?
7685   cat conftest.err >&5
7686   echo "$as_me:7686: \$? = $ac_status" >&5
7687   if (exit $ac_status) && test -s "$ac_outfile"; then
7688     # The compiler can only warn and ignore the option if not recognized
7689     # So say no if there are warnings other than the usual output.
7690     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7691     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7692     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7693       lt_cv_prog_compiler_rtti_exceptions=yes
7694     fi
7695   fi
7696   $rm conftest*
7697
7698fi
7699echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7700echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7701
7702if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7703    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7704else
7705    :
7706fi
7707
7708fi
7709
7710lt_prog_compiler_wl=
7711lt_prog_compiler_pic=
7712lt_prog_compiler_static=
7713
7714echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7715echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7716
7717  if test "$GCC" = yes; then
7718    lt_prog_compiler_wl='-Wl,'
7719    lt_prog_compiler_static='-static'
7720
7721    case $host_os in
7722      aix*)
7723      # All AIX code is PIC.
7724      if test "$host_cpu" = ia64; then
7725        # AIX 5 now supports IA64 processor
7726        lt_prog_compiler_static='-Bstatic'
7727      fi
7728      ;;
7729
7730    amigaos*)
7731      # FIXME: we need at least 68020 code to build shared libraries, but
7732      # adding the `-m68020' flag to GCC prevents building anything better,
7733      # like `-m68040'.
7734      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7735      ;;
7736
7737    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7738      # PIC is the default for these OSes.
7739      ;;
7740
7741    mingw* | pw32* | os2*)
7742      # This hack is so that the source file can tell whether it is being
7743      # built for inclusion in a dll (and should export symbols for example).
7744      lt_prog_compiler_pic='-DDLL_EXPORT'
7745      ;;
7746
7747    darwin* | rhapsody*)
7748      # PIC is the default on this platform
7749      # Common symbols not allowed in MH_DYLIB files
7750      lt_prog_compiler_pic='-fno-common'
7751      ;;
7752
7753    interix3*)
7754      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7755      # Instead, we relocate shared libraries at runtime.
7756      ;;
7757
7758    msdosdjgpp*)
7759      # Just because we use GCC doesn't mean we suddenly get shared libraries
7760      # on systems that don't support them.
7761      lt_prog_compiler_can_build_shared=no
7762      enable_shared=no
7763      ;;
7764
7765    sysv4*MP*)
7766      if test -d /usr/nec; then
7767        lt_prog_compiler_pic=-Kconform_pic
7768      fi
7769      ;;
7770
7771    hpux*)
7772      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7773      # not for PA HP-UX.
7774      case $host_cpu in
7775      hppa*64*|ia64*)
7776        # +Z the default
7777        ;;
7778      *)
7779        lt_prog_compiler_pic='-fPIC'
7780        ;;
7781      esac
7782      ;;
7783
7784    *)
7785      lt_prog_compiler_pic='-fPIC'
7786      ;;
7787    esac
7788  else
7789    # PORTME Check for flag to pass linker flags through the system compiler.
7790    case $host_os in
7791    aix*)
7792      lt_prog_compiler_wl='-Wl,'
7793      if test "$host_cpu" = ia64; then
7794        # AIX 5 now supports IA64 processor
7795        lt_prog_compiler_static='-Bstatic'
7796      else
7797        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7798      fi
7799      ;;
7800      darwin*)
7801        # PIC is the default on this platform
7802        # Common symbols not allowed in MH_DYLIB files
7803       case $cc_basename in
7804         xlc*)
7805         lt_prog_compiler_pic='-qnocommon'
7806         lt_prog_compiler_wl='-Wl,'
7807         ;;
7808       esac
7809       ;;
7810
7811    mingw* | pw32* | os2*)
7812      # This hack is so that the source file can tell whether it is being
7813      # built for inclusion in a dll (and should export symbols for example).
7814      lt_prog_compiler_pic='-DDLL_EXPORT'
7815      ;;
7816
7817    hpux9* | hpux10* | hpux11*)
7818      lt_prog_compiler_wl='-Wl,'
7819      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7820      # not for PA HP-UX.
7821      case $host_cpu in
7822      hppa*64*|ia64*)
7823        # +Z the default
7824        ;;
7825      *)
7826        lt_prog_compiler_pic='+Z'
7827        ;;
7828      esac
7829      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7830      lt_prog_compiler_static='${wl}-a ${wl}archive'
7831      ;;
7832
7833    irix5* | irix6* | nonstopux*)
7834      lt_prog_compiler_wl='-Wl,'
7835      # PIC (with -KPIC) is the default.
7836      lt_prog_compiler_static='-non_shared'
7837      ;;
7838
7839    newsos6)
7840      lt_prog_compiler_pic='-KPIC'
7841      lt_prog_compiler_static='-Bstatic'
7842      ;;
7843
7844    linux*)
7845      case $cc_basename in
7846      icc* | ecc*)
7847        lt_prog_compiler_wl='-Wl,'
7848        lt_prog_compiler_pic='-KPIC'
7849        lt_prog_compiler_static='-static'
7850        ;;
7851      pgcc* | pgf77* | pgf90* | pgf95*)
7852        # Portland Group compilers (*not* the Pentium gcc compiler,
7853        # which looks to be a dead project)
7854        lt_prog_compiler_wl='-Wl,'
7855        lt_prog_compiler_pic='-fpic'
7856        lt_prog_compiler_static='-Bstatic'
7857        ;;
7858      ccc*)
7859        lt_prog_compiler_wl='-Wl,'
7860        # All Alpha code is PIC.
7861        lt_prog_compiler_static='-non_shared'
7862        ;;
7863      esac
7864      ;;
7865
7866    osf3* | osf4* | osf5*)
7867      lt_prog_compiler_wl='-Wl,'
7868      # All OSF/1 code is PIC.
7869      lt_prog_compiler_static='-non_shared'
7870      ;;
7871
7872    solaris*)
7873      lt_prog_compiler_pic='-KPIC'
7874      lt_prog_compiler_static='-Bstatic'
7875      case $cc_basename in
7876      f77* | f90* | f95*)
7877        lt_prog_compiler_wl='-Qoption ld ';;
7878      *)
7879        lt_prog_compiler_wl='-Wl,';;
7880      esac
7881      ;;
7882
7883    sunos4*)
7884      lt_prog_compiler_wl='-Qoption ld '
7885      lt_prog_compiler_pic='-PIC'
7886      lt_prog_compiler_static='-Bstatic'
7887      ;;
7888
7889    sysv4 | sysv4.2uw2* | sysv4.3*)
7890      lt_prog_compiler_wl='-Wl,'
7891      lt_prog_compiler_pic='-KPIC'
7892      lt_prog_compiler_static='-Bstatic'
7893      ;;
7894
7895    sysv4*MP*)
7896      if test -d /usr/nec ;then
7897        lt_prog_compiler_pic='-Kconform_pic'
7898        lt_prog_compiler_static='-Bstatic'
7899      fi
7900      ;;
7901
7902    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7903      lt_prog_compiler_wl='-Wl,'
7904      lt_prog_compiler_pic='-KPIC'
7905      lt_prog_compiler_static='-Bstatic'
7906      ;;
7907
7908    unicos*)
7909      lt_prog_compiler_wl='-Wl,'
7910      lt_prog_compiler_can_build_shared=no
7911      ;;
7912
7913    uts4*)
7914      lt_prog_compiler_pic='-pic'
7915      lt_prog_compiler_static='-Bstatic'
7916      ;;
7917
7918    *)
7919      lt_prog_compiler_can_build_shared=no
7920      ;;
7921    esac
7922  fi
7923
7924echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7925echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7926
7927#
7928# Check to make sure the PIC flag actually works.
7929#
7930if test -n "$lt_prog_compiler_pic"; then
7931
7932echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7933echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7934if test "${lt_prog_compiler_pic_works+set}" = set; then
7935  echo $ECHO_N "(cached) $ECHO_C" >&6
7936else
7937  lt_prog_compiler_pic_works=no
7938  ac_outfile=conftest.$ac_objext
7939   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7940   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7941   # Insert the option either (1) after the last *FLAGS variable, or
7942   # (2) before a word containing "conftest.", or (3) at the end.
7943   # Note that $ac_compile itself does not contain backslashes and begins
7944   # with a dollar sign (not a hyphen), so the echo should work correctly.
7945   # The option is referenced via a variable to avoid confusing sed.
7946   lt_compile=`echo "$ac_compile" | $SED \
7947   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7948   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7949   -e 's:$: $lt_compiler_flag:'`
7950   (eval echo "\"\$as_me:7950: $lt_compile\"" >&5)
7951   (eval "$lt_compile" 2>conftest.err)
7952   ac_status=$?
7953   cat conftest.err >&5
7954   echo "$as_me:7954: \$? = $ac_status" >&5
7955   if (exit $ac_status) && test -s "$ac_outfile"; then
7956     # The compiler can only warn and ignore the option if not recognized
7957     # So say no if there are warnings other than the usual output.
7958     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7959     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7960     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7961       lt_prog_compiler_pic_works=yes
7962     fi
7963   fi
7964   $rm conftest*
7965
7966fi
7967echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7968echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7969
7970if test x"$lt_prog_compiler_pic_works" = xyes; then
7971    case $lt_prog_compiler_pic in
7972     "" | " "*) ;;
7973     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7974     esac
7975else
7976    lt_prog_compiler_pic=
7977     lt_prog_compiler_can_build_shared=no
7978fi
7979
7980fi
7981case $host_os in
7982  # For platforms which do not support PIC, -DPIC is meaningless:
7983  *djgpp*)
7984    lt_prog_compiler_pic=
7985    ;;
7986  *)
7987    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7988    ;;
7989esac
7990
7991#
7992# Check to make sure the static flag actually works.
7993#
7994wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7995echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7996echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7997if test "${lt_prog_compiler_static_works+set}" = set; then
7998  echo $ECHO_N "(cached) $ECHO_C" >&6
7999else
8000  lt_prog_compiler_static_works=no
8001   save_LDFLAGS="$LDFLAGS"
8002   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8003   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8004   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8005     # The linker can only warn and ignore the option if not recognized
8006     # So say no if there are warnings
8007     if test -s conftest.err; then
8008       # Append any errors to the config.log.
8009       cat conftest.err 1>&5
8010       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8011       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8012       if diff conftest.exp conftest.er2 >/dev/null; then
8013         lt_prog_compiler_static_works=yes
8014       fi
8015     else
8016       lt_prog_compiler_static_works=yes
8017     fi
8018   fi
8019   $rm conftest*
8020   LDFLAGS="$save_LDFLAGS"
8021
8022fi
8023echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8024echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8025
8026if test x"$lt_prog_compiler_static_works" = xyes; then
8027    :
8028else
8029    lt_prog_compiler_static=
8030fi
8031
8032
8033echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8034echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8035if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8036  echo $ECHO_N "(cached) $ECHO_C" >&6
8037else
8038  lt_cv_prog_compiler_c_o=no
8039   $rm -r conftest 2>/dev/null
8040   mkdir conftest
8041   cd conftest
8042   mkdir out
8043   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8044
8045   lt_compiler_flag="-o out/conftest2.$ac_objext"
8046   # Insert the option either (1) after the last *FLAGS variable, or
8047   # (2) before a word containing "conftest.", or (3) at the end.
8048   # Note that $ac_compile itself does not contain backslashes and begins
8049   # with a dollar sign (not a hyphen), so the echo should work correctly.
8050   lt_compile=`echo "$ac_compile" | $SED \
8051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053   -e 's:$: $lt_compiler_flag:'`
8054   (eval echo "\"\$as_me:8054: $lt_compile\"" >&5)
8055   (eval "$lt_compile" 2>out/conftest.err)
8056   ac_status=$?
8057   cat out/conftest.err >&5
8058   echo "$as_me:8058: \$? = $ac_status" >&5
8059   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8060   then
8061     # The compiler can only warn and ignore the option if not recognized
8062     # So say no if there are warnings
8063     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8064     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8065     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8066       lt_cv_prog_compiler_c_o=yes
8067     fi
8068   fi
8069   chmod u+w . 2>&5
8070   $rm conftest*
8071   # SGI C++ compiler will create directory out/ii_files/ for
8072   # template instantiation
8073   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8074   $rm out/* && rmdir out
8075   cd ..
8076   rmdir conftest
8077   $rm conftest*
8078
8079fi
8080echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8081echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8082
8083
8084hard_links="nottested"
8085if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8086  # do not overwrite the value of need_locks provided by the user
8087  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8088echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8089  hard_links=yes
8090  $rm conftest*
8091  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8092  touch conftest.a
8093  ln conftest.a conftest.b 2>&5 || hard_links=no
8094  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8095  echo "$as_me:$LINENO: result: $hard_links" >&5
8096echo "${ECHO_T}$hard_links" >&6
8097  if test "$hard_links" = no; then
8098    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8099echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8100    need_locks=warn
8101  fi
8102else
8103  need_locks=no
8104fi
8105
8106echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8107echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8108
8109  runpath_var=
8110  allow_undefined_flag=
8111  enable_shared_with_static_runtimes=no
8112  archive_cmds=
8113  archive_expsym_cmds=
8114  old_archive_From_new_cmds=
8115  old_archive_from_expsyms_cmds=
8116  export_dynamic_flag_spec=
8117  whole_archive_flag_spec=
8118  thread_safe_flag_spec=
8119  hardcode_libdir_flag_spec=
8120  hardcode_libdir_flag_spec_ld=
8121  hardcode_libdir_separator=
8122  hardcode_direct=no
8123  hardcode_minus_L=no
8124  hardcode_shlibpath_var=unsupported
8125  link_all_deplibs=unknown
8126  hardcode_automatic=no
8127  module_cmds=
8128  module_expsym_cmds=
8129  always_export_symbols=no
8130  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8131  # include_expsyms should be a list of space-separated symbols to be *always*
8132  # included in the symbol list
8133  include_expsyms=
8134  # exclude_expsyms can be an extended regexp of symbols to exclude
8135  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8136  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8137  # as well as any symbol that contains `d'.
8138  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8139  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8140  # platforms (ab)use it in PIC code, but their linkers get confused if
8141  # the symbol is explicitly referenced.  Since portable code cannot
8142  # rely on this symbol name, it's probably fine to never include it in
8143  # preloaded symbol tables.
8144  extract_expsyms_cmds=
8145  # Just being paranoid about ensuring that cc_basename is set.
8146  for cc_temp in $compiler""; do
8147  case $cc_temp in
8148    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8149    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8150    \-*) ;;
8151    *) break;;
8152  esac
8153done
8154cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8155
8156  case $host_os in
8157  cygwin* | mingw* | pw32*)
8158    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8159    # When not using gcc, we currently assume that we are using
8160    # Microsoft Visual C++.
8161    if test "$GCC" != yes; then
8162      with_gnu_ld=no
8163    fi
8164    ;;
8165  interix*)
8166    # we just hope/assume this is gcc and not c89 (= MSVC++)
8167    with_gnu_ld=yes
8168    ;;
8169  openbsd*)
8170    with_gnu_ld=no
8171    ;;
8172  esac
8173
8174  ld_shlibs=yes
8175  if test "$with_gnu_ld" = yes; then
8176    # If archive_cmds runs LD, not CC, wlarc should be empty
8177    wlarc='${wl}'
8178
8179    # Set some defaults for GNU ld with shared library support. These
8180    # are reset later if shared libraries are not supported. Putting them
8181    # here allows them to be overridden if necessary.
8182    runpath_var=LD_RUN_PATH
8183    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8184    export_dynamic_flag_spec='${wl}--export-dynamic'
8185    # ancient GNU ld didn't support --whole-archive et. al.
8186    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8187        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8188      else
8189        whole_archive_flag_spec=
8190    fi
8191    supports_anon_versioning=no
8192    case `$LD -v 2>/dev/null` in
8193      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8194      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8195      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8196      *\ 2.11.*) ;; # other 2.11 versions
8197      *) supports_anon_versioning=yes ;;
8198    esac
8199
8200    # See if GNU ld supports shared libraries.
8201    case $host_os in
8202    aix3* | aix4* | aix5*)
8203      # On AIX/PPC, the GNU linker is very broken
8204      if test "$host_cpu" != ia64; then
8205        ld_shlibs=no
8206        cat <<EOF 1>&2
8207
8208*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8209*** to be unable to reliably create shared libraries on AIX.
8210*** Therefore, libtool is disabling shared libraries support.  If you
8211*** really care for shared libraries, you may want to modify your PATH
8212*** so that a non-GNU linker is found, and then restart.
8213
8214EOF
8215      fi
8216      ;;
8217
8218    amigaos*)
8219      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)'
8220      hardcode_libdir_flag_spec='-L$libdir'
8221      hardcode_minus_L=yes
8222
8223      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8224      # that the semantics of dynamic libraries on AmigaOS, at least up
8225      # to version 4, is to share data among multiple programs linked
8226      # with the same dynamic library.  Since this doesn't match the
8227      # behavior of shared libraries on other platforms, we can't use
8228      # them.
8229      ld_shlibs=no
8230      ;;
8231
8232    beos*)
8233      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8234        allow_undefined_flag=unsupported
8235        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8236        # support --undefined.  This deserves some investigation.  FIXME
8237        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238      else
8239        ld_shlibs=no
8240      fi
8241      ;;
8242
8243    cygwin* | mingw* | pw32*)
8244      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8245      # as there is no search path for DLLs.
8246      hardcode_libdir_flag_spec='-L$libdir'
8247      allow_undefined_flag=unsupported
8248      always_export_symbols=no
8249      enable_shared_with_static_runtimes=yes
8250      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8251
8252      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8253        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8254        # If the export-symbols file already is a .def file (1st line
8255        # is EXPORTS), use it as is; otherwise, prepend...
8256        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8257          cp $export_symbols $output_objdir/$soname.def;
8258        else
8259          echo EXPORTS > $output_objdir/$soname.def;
8260          cat $export_symbols >> $output_objdir/$soname.def;
8261        fi~
8262        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8263      else
8264        ld_shlibs=no
8265      fi
8266      ;;
8267
8268    interix3*)
8269      hardcode_direct=no
8270      hardcode_shlibpath_var=no
8271      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8272      export_dynamic_flag_spec='${wl}-E'
8273      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8274      # Instead, shared libraries are loaded at an image base (0x10000000 by
8275      # default) and relocated if they conflict, which is a slow very memory
8276      # consuming and fragmenting process.  To avoid this, we pick a random,
8277      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8278      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8279      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8280      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'
8281      ;;
8282
8283    linux*)
8284      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8285        tmp_addflag=
8286        case $cc_basename,$host_cpu in
8287        pgcc*)                          # Portland Group C compiler
8288          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'
8289          tmp_addflag=' $pic_flag'
8290          ;;
8291        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8292          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'
8293          tmp_addflag=' $pic_flag -Mnomain' ;;
8294        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8295          tmp_addflag=' -i_dynamic' ;;
8296        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8297          tmp_addflag=' -i_dynamic -nofor_main' ;;
8298        ifc* | ifort*)                  # Intel Fortran compiler
8299          tmp_addflag=' -nofor_main' ;;
8300        esac
8301        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302
8303        if test $supports_anon_versioning = yes; then
8304          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8305  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8306  $echo "local: *; };" >> $output_objdir/$libname.ver~
8307          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8308        fi
8309      else
8310        ld_shlibs=no
8311      fi
8312      ;;
8313
8314    netbsd*)
8315      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8316        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8317        wlarc=
8318      else
8319        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8320        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8321      fi
8322      ;;
8323
8324    solaris*)
8325      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8326        ld_shlibs=no
8327        cat <<EOF 1>&2
8328
8329*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8330*** create shared libraries on Solaris systems.  Therefore, libtool
8331*** is disabling shared libraries support.  We urge you to upgrade GNU
8332*** binutils to release 2.9.1 or newer.  Another option is to modify
8333*** your PATH or compiler configuration so that the native linker is
8334*** used, and then restart.
8335
8336EOF
8337      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8338        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8339        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8340      else
8341        ld_shlibs=no
8342      fi
8343      ;;
8344
8345    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8346      case `$LD -v 2>&1` in
8347        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8348        ld_shlibs=no
8349        cat <<_LT_EOF 1>&2
8350
8351*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8352*** reliably create shared libraries on SCO systems.  Therefore, libtool
8353*** is disabling shared libraries support.  We urge you to upgrade GNU
8354*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8355*** your PATH or compiler configuration so that the native linker is
8356*** used, and then restart.
8357
8358_LT_EOF
8359        ;;
8360        *)
8361          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8362            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8363            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8364            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8365          else
8366            ld_shlibs=no
8367          fi
8368        ;;
8369      esac
8370      ;;
8371
8372    sunos4*)
8373      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8374      wlarc=
8375      hardcode_direct=yes
8376      hardcode_shlibpath_var=no
8377      ;;
8378
8379    *)
8380      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8381        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8382        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8383      else
8384        ld_shlibs=no
8385      fi
8386      ;;
8387    esac
8388
8389    if test "$ld_shlibs" = no; then
8390      runpath_var=
8391      hardcode_libdir_flag_spec=
8392      export_dynamic_flag_spec=
8393      whole_archive_flag_spec=
8394    fi
8395  else
8396    # PORTME fill in a description of your system's linker (not GNU ld)
8397    case $host_os in
8398    aix3*)
8399      allow_undefined_flag=unsupported
8400      always_export_symbols=yes
8401      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'
8402      # Note: this linker hardcodes the directories in LIBPATH if there
8403      # are no directories specified by -L.
8404      hardcode_minus_L=yes
8405      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8406        # Neither direct hardcoding nor static linking is supported with a
8407        # broken collect2.
8408        hardcode_direct=unsupported
8409      fi
8410      ;;
8411
8412    aix4* | aix5*)
8413      if test "$host_cpu" = ia64; then
8414        # On IA64, the linker does run time linking by default, so we don't
8415        # have to do anything special.
8416        aix_use_runtimelinking=no
8417        exp_sym_flag='-Bexport'
8418        no_entry_flag=""
8419      else
8420        # If we're using GNU nm, then we don't want the "-C" option.
8421        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8422        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8423          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'
8424        else
8425          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'
8426        fi
8427        aix_use_runtimelinking=no
8428
8429        # Test if we are trying to use run time linking or normal
8430        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8431        # need to do runtime linking.
8432        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8433          for ld_flag in $LDFLAGS; do
8434          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8435            aix_use_runtimelinking=yes
8436            break
8437          fi
8438          done
8439          ;;
8440        esac
8441
8442        exp_sym_flag='-bexport'
8443        no_entry_flag='-bnoentry'
8444      fi
8445
8446      # When large executables or shared objects are built, AIX ld can
8447      # have problems creating the table of contents.  If linking a library
8448      # or program results in "error TOC overflow" add -mminimal-toc to
8449      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8450      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8451
8452      archive_cmds=''
8453      hardcode_direct=yes
8454      hardcode_libdir_separator=':'
8455      link_all_deplibs=yes
8456
8457      if test "$GCC" = yes; then
8458        case $host_os in aix4.[012]|aix4.[012].*)
8459        # We only want to do this on AIX 4.2 and lower, the check
8460        # below for broken collect2 doesn't work under 4.3+
8461          collect2name=`${CC} -print-prog-name=collect2`
8462          if test -f "$collect2name" && \
8463           strings "$collect2name" | grep resolve_lib_name >/dev/null
8464          then
8465          # We have reworked collect2
8466          hardcode_direct=yes
8467          else
8468          # We have old collect2
8469          hardcode_direct=unsupported
8470          # It fails to find uninstalled libraries when the uninstalled
8471          # path is not listed in the libpath.  Setting hardcode_minus_L
8472          # to unsupported forces relinking
8473          hardcode_minus_L=yes
8474          hardcode_libdir_flag_spec='-L$libdir'
8475          hardcode_libdir_separator=
8476          fi
8477          ;;
8478        esac
8479        shared_flag='-shared'
8480        if test "$aix_use_runtimelinking" = yes; then
8481          shared_flag="$shared_flag "'${wl}-G'
8482        fi
8483      else
8484        # not using gcc
8485        if test "$host_cpu" = ia64; then
8486        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8487        # chokes on -Wl,-G. The following line is correct:
8488          shared_flag='-G'
8489        else
8490          if test "$aix_use_runtimelinking" = yes; then
8491            shared_flag='${wl}-G'
8492          else
8493            shared_flag='${wl}-bM:SRE'
8494          fi
8495        fi
8496      fi
8497
8498      # It seems that -bexpall does not export symbols beginning with
8499      # underscore (_), so it is better to generate a list of symbols to export.
8500      always_export_symbols=yes
8501      if test "$aix_use_runtimelinking" = yes; then
8502        # Warning - without using the other runtime loading flags (-brtl),
8503        # -berok will link without error, but may produce a broken library.
8504        allow_undefined_flag='-berok'
8505       # Determine the default libpath from the value encoded in an empty executable.
8506       cat >conftest.$ac_ext <<_ACEOF
8507/* confdefs.h.  */
8508_ACEOF
8509cat confdefs.h >>conftest.$ac_ext
8510cat >>conftest.$ac_ext <<_ACEOF
8511/* end confdefs.h.  */
8512
8513int
8514main ()
8515{
8516
8517  ;
8518  return 0;
8519}
8520_ACEOF
8521rm -f conftest.$ac_objext conftest$ac_exeext
8522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8523  (eval $ac_link) 2>conftest.er1
8524  ac_status=$?
8525  grep -v '^ *+' conftest.er1 >conftest.err
8526  rm -f conftest.er1
8527  cat conftest.err >&5
8528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529  (exit $ac_status); } &&
8530         { ac_try='test -z "$ac_c_werror_flag"
8531                         || test ! -s conftest.err'
8532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533  (eval $ac_try) 2>&5
8534  ac_status=$?
8535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536  (exit $ac_status); }; } &&
8537         { ac_try='test -s conftest$ac_exeext'
8538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539  (eval $ac_try) 2>&5
8540  ac_status=$?
8541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542  (exit $ac_status); }; }; then
8543
8544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8545}'`
8546# Check for a 64-bit object if we didn't find anything.
8547if 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; }
8548}'`; fi
8549else
8550  echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
8553fi
8554rm -f conftest.err conftest.$ac_objext \
8555      conftest$ac_exeext conftest.$ac_ext
8556if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8557
8558       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8559        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"
8560       else
8561        if test "$host_cpu" = ia64; then
8562          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8563          allow_undefined_flag="-z nodefs"
8564          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"
8565        else
8566         # Determine the default libpath from the value encoded in an empty executable.
8567         cat >conftest.$ac_ext <<_ACEOF
8568/* confdefs.h.  */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h.  */
8573
8574int
8575main ()
8576{
8577
8578  ;
8579  return 0;
8580}
8581_ACEOF
8582rm -f conftest.$ac_objext conftest$ac_exeext
8583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8584  (eval $ac_link) 2>conftest.er1
8585  ac_status=$?
8586  grep -v '^ *+' conftest.er1 >conftest.err
8587  rm -f conftest.er1
8588  cat conftest.err >&5
8589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590  (exit $ac_status); } &&
8591         { ac_try='test -z "$ac_c_werror_flag"
8592                         || test ! -s conftest.err'
8593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594  (eval $ac_try) 2>&5
8595  ac_status=$?
8596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597  (exit $ac_status); }; } &&
8598         { ac_try='test -s conftest$ac_exeext'
8599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600  (eval $ac_try) 2>&5
8601  ac_status=$?
8602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603  (exit $ac_status); }; }; then
8604
8605aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8606}'`
8607# Check for a 64-bit object if we didn't find anything.
8608if 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; }
8609}'`; fi
8610else
8611  echo "$as_me: failed program was:" >&5
8612sed 's/^/| /' conftest.$ac_ext >&5
8613
8614fi
8615rm -f conftest.err conftest.$ac_objext \
8616      conftest$ac_exeext conftest.$ac_ext
8617if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8618
8619         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8620          # Warning - without using the other run time loading flags,
8621          # -berok will link without error, but may produce a broken library.
8622          no_undefined_flag=' ${wl}-bernotok'
8623          allow_undefined_flag=' ${wl}-berok'
8624          # Exported symbols can be pulled into shared objects from archives
8625          whole_archive_flag_spec='$convenience'
8626          archive_cmds_need_lc=yes
8627          # This is similar to how AIX traditionally builds its shared libraries.
8628          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'
8629        fi
8630      fi
8631      ;;
8632
8633    amigaos*)
8634      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)'
8635      hardcode_libdir_flag_spec='-L$libdir'
8636      hardcode_minus_L=yes
8637      # see comment about different semantics on the GNU ld section
8638      ld_shlibs=no
8639      ;;
8640
8641    bsdi[45]*)
8642      export_dynamic_flag_spec=-rdynamic
8643      ;;
8644
8645    cygwin* | mingw* | pw32*)
8646      # When not using gcc, we currently assume that we are using
8647      # Microsoft Visual C++.
8648      # hardcode_libdir_flag_spec is actually meaningless, as there is
8649      # no search path for DLLs.
8650      hardcode_libdir_flag_spec=' '
8651      allow_undefined_flag=unsupported
8652      # Tell ltmain to make .lib files, not .a files.
8653      libext=lib
8654      # Tell ltmain to make .dll files, not .so files.
8655      shrext_cmds=".dll"
8656      # FIXME: Setting linknames here is a bad hack.
8657      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8658      # The linker will automatically build a .lib file if we build a DLL.
8659      old_archive_From_new_cmds='true'
8660      # FIXME: Should let the user specify the lib program.
8661      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8662      fix_srcfile_path='`cygpath -w "$srcfile"`'
8663      enable_shared_with_static_runtimes=yes
8664      ;;
8665
8666    darwin* | rhapsody*)
8667      case $host_os in
8668        rhapsody* | darwin1.[012])
8669         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8670         ;;
8671       *) # Darwin 1.3 on
8672         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8673           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8674         else
8675           case ${MACOSX_DEPLOYMENT_TARGET} in
8676             10.[012])
8677               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8678               ;;
8679             10.*)
8680               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8681               ;;
8682           esac
8683         fi
8684         ;;
8685      esac
8686      archive_cmds_need_lc=no
8687      hardcode_direct=no
8688      hardcode_automatic=yes
8689      hardcode_shlibpath_var=unsupported
8690      whole_archive_flag_spec=''
8691      link_all_deplibs=yes
8692    if test "$GCC" = yes ; then
8693        output_verbose_link_cmd='echo'
8694        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8695      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8696      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8697      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}'
8698      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}'
8699    else
8700      case $cc_basename in
8701        xlc*)
8702         output_verbose_link_cmd='echo'
8703         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8704         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8705          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8706         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}'
8707          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}'
8708          ;;
8709       *)
8710         ld_shlibs=no
8711          ;;
8712      esac
8713    fi
8714      ;;
8715
8716    dgux*)
8717      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718      hardcode_libdir_flag_spec='-L$libdir'
8719      hardcode_shlibpath_var=no
8720      ;;
8721
8722    freebsd1*)
8723      ld_shlibs=no
8724      ;;
8725
8726    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8727    # support.  Future versions do this automatically, but an explicit c++rt0.o
8728    # does not break anything, and helps significantly (at the cost of a little
8729    # extra space).
8730    freebsd2.2*)
8731      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8732      hardcode_libdir_flag_spec='-R$libdir'
8733      hardcode_direct=yes
8734      hardcode_shlibpath_var=no
8735      ;;
8736
8737    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8738    freebsd2*)
8739      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8740      hardcode_direct=yes
8741      hardcode_minus_L=yes
8742      hardcode_shlibpath_var=no
8743      ;;
8744
8745    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8746    freebsd* | kfreebsd*-gnu | dragonfly*)
8747      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8748      hardcode_libdir_flag_spec='-R$libdir'
8749      hardcode_direct=yes
8750      hardcode_shlibpath_var=no
8751      ;;
8752
8753    hpux9*)
8754      if test "$GCC" = yes; then
8755        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'
8756      else
8757        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'
8758      fi
8759      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8760      hardcode_libdir_separator=:
8761      hardcode_direct=yes
8762
8763      # hardcode_minus_L: Not really in the search PATH,
8764      # but as the default location of the library.
8765      hardcode_minus_L=yes
8766      export_dynamic_flag_spec='${wl}-E'
8767      ;;
8768
8769    hpux10*)
8770      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8771        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8772      else
8773        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8774      fi
8775      if test "$with_gnu_ld" = no; then
8776        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8777        hardcode_libdir_separator=:
8778
8779        hardcode_direct=yes
8780        export_dynamic_flag_spec='${wl}-E'
8781
8782        # hardcode_minus_L: Not really in the search PATH,
8783        # but as the default location of the library.
8784        hardcode_minus_L=yes
8785      fi
8786      ;;
8787
8788    hpux11*)
8789      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8790        case $host_cpu in
8791        hppa*64*)
8792          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793          ;;
8794        ia64*)
8795          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8796          ;;
8797        *)
8798          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8799          ;;
8800        esac
8801      else
8802        case $host_cpu in
8803        hppa*64*)
8804          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8805          ;;
8806        ia64*)
8807          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8808          ;;
8809        *)
8810          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8811          ;;
8812        esac
8813      fi
8814      if test "$with_gnu_ld" = no; then
8815        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8816        hardcode_libdir_separator=:
8817
8818        case $host_cpu in
8819        hppa*64*|ia64*)
8820          hardcode_libdir_flag_spec_ld='+b $libdir'
8821          hardcode_direct=no
8822          hardcode_shlibpath_var=no
8823          ;;
8824        *)
8825          hardcode_direct=yes
8826          export_dynamic_flag_spec='${wl}-E'
8827
8828          # hardcode_minus_L: Not really in the search PATH,
8829          # but as the default location of the library.
8830          hardcode_minus_L=yes
8831          ;;
8832        esac
8833      fi
8834      ;;
8835
8836    irix5* | irix6* | nonstopux*)
8837      if test "$GCC" = yes; then
8838        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'
8839      else
8840        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'
8841        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8842      fi
8843      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8844      hardcode_libdir_separator=:
8845      link_all_deplibs=yes
8846      ;;
8847
8848    netbsd*)
8849      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8850        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8851      else
8852        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8853      fi
8854      hardcode_libdir_flag_spec='-R$libdir'
8855      hardcode_direct=yes
8856      hardcode_shlibpath_var=no
8857      ;;
8858
8859    newsos6)
8860      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8861      hardcode_direct=yes
8862      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863      hardcode_libdir_separator=:
8864      hardcode_shlibpath_var=no
8865      ;;
8866
8867    openbsd*)
8868      hardcode_direct=yes
8869      hardcode_shlibpath_var=no
8870      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8871        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8872        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8873        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8874        export_dynamic_flag_spec='${wl}-E'
8875      else
8876       case $host_os in
8877         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8878           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8879           hardcode_libdir_flag_spec='-R$libdir'
8880           ;;
8881         *)
8882           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8883           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8884           ;;
8885       esac
8886      fi
8887      ;;
8888
8889    os2*)
8890      hardcode_libdir_flag_spec='-L$libdir'
8891      hardcode_minus_L=yes
8892      allow_undefined_flag=unsupported
8893      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'
8894      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8895      ;;
8896
8897    osf3*)
8898      if test "$GCC" = yes; then
8899        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8900        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'
8901      else
8902        allow_undefined_flag=' -expect_unresolved \*'
8903        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'
8904      fi
8905      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8906      hardcode_libdir_separator=:
8907      ;;
8908
8909    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8910      if test "$GCC" = yes; then
8911        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8912        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'
8913        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914      else
8915        allow_undefined_flag=' -expect_unresolved \*'
8916        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'
8917        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8918        $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'
8919
8920        # Both c and cxx compiler support -rpath directly
8921        hardcode_libdir_flag_spec='-rpath $libdir'
8922      fi
8923      hardcode_libdir_separator=:
8924      ;;
8925
8926    solaris*)
8927      no_undefined_flag=' -z text'
8928      if test "$GCC" = yes; then
8929        wlarc='${wl}'
8930        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8931        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8932          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8933      else
8934        wlarc=''
8935        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8937        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8938      fi
8939      hardcode_libdir_flag_spec='-R$libdir'
8940      hardcode_shlibpath_var=no
8941      case $host_os in
8942      solaris2.[0-5] | solaris2.[0-5].*) ;;
8943      *)
8944        # The compiler driver will combine linker options so we
8945        # cannot just pass the convience library names through
8946        # without $wl, iff we do not link with $LD.
8947        # Luckily, gcc supports the same syntax we need for Sun Studio.
8948        # Supported since Solaris 2.6 (maybe 2.5.1?)
8949        case $wlarc in
8950        '')
8951          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8952        *)
8953          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' ;;
8954        esac ;;
8955      esac
8956      link_all_deplibs=yes
8957      ;;
8958
8959    sunos4*)
8960      if test "x$host_vendor" = xsequent; then
8961        # Use $CC to link under sequent, because it throws in some extra .o
8962        # files that make .init and .fini sections work.
8963        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8964      else
8965        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8966      fi
8967      hardcode_libdir_flag_spec='-L$libdir'
8968      hardcode_direct=yes
8969      hardcode_minus_L=yes
8970      hardcode_shlibpath_var=no
8971      ;;
8972
8973    sysv4)
8974      case $host_vendor in
8975        sni)
8976          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8977          hardcode_direct=yes # is this really true???
8978        ;;
8979        siemens)
8980          ## LD is ld it makes a PLAMLIB
8981          ## CC just makes a GrossModule.
8982          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8983          reload_cmds='$CC -r -o $output$reload_objs'
8984          hardcode_direct=no
8985        ;;
8986        motorola)
8987          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8989        ;;
8990      esac
8991      runpath_var='LD_RUN_PATH'
8992      hardcode_shlibpath_var=no
8993      ;;
8994
8995    sysv4.3*)
8996      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997      hardcode_shlibpath_var=no
8998      export_dynamic_flag_spec='-Bexport'
8999      ;;
9000
9001    sysv4*MP*)
9002      if test -d /usr/nec; then
9003        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004        hardcode_shlibpath_var=no
9005        runpath_var=LD_RUN_PATH
9006        hardcode_runpath_var=yes
9007        ld_shlibs=yes
9008      fi
9009      ;;
9010
9011    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9012      no_undefined_flag='${wl}-z,text'
9013      archive_cmds_need_lc=no
9014      hardcode_shlibpath_var=no
9015      runpath_var='LD_RUN_PATH'
9016
9017      if test "$GCC" = yes; then
9018        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9019        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9020      else
9021        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9022        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9023      fi
9024      ;;
9025
9026    sysv5* | sco3.2v5* | sco5v6*)
9027      # Note: We can NOT use -z defs as we might desire, because we do not
9028      # link with -lc, and that would cause any symbols used from libc to
9029      # always be unresolved, which means just about no library would
9030      # ever link correctly.  If we're not using GNU ld we use -z text
9031      # though, which does catch some bad symbols but isn't as heavy-handed
9032      # as -z defs.
9033      no_undefined_flag='${wl}-z,text'
9034      allow_undefined_flag='${wl}-z,nodefs'
9035      archive_cmds_need_lc=no
9036      hardcode_shlibpath_var=no
9037      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9038      hardcode_libdir_separator=':'
9039      link_all_deplibs=yes
9040      export_dynamic_flag_spec='${wl}-Bexport'
9041      runpath_var='LD_RUN_PATH'
9042
9043      if test "$GCC" = yes; then
9044        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9045        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9046      else
9047        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9048        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9049      fi
9050      ;;
9051
9052    uts4*)
9053      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9054      hardcode_libdir_flag_spec='-L$libdir'
9055      hardcode_shlibpath_var=no
9056      ;;
9057
9058    *)
9059      ld_shlibs=no
9060      ;;
9061    esac
9062  fi
9063
9064echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9065echo "${ECHO_T}$ld_shlibs" >&6
9066test "$ld_shlibs" = no && can_build_shared=no
9067
9068#
9069# Do we need to explicitly link libc?
9070#
9071case "x$archive_cmds_need_lc" in
9072x|xyes)
9073  # Assume -lc should be added
9074  archive_cmds_need_lc=yes
9075
9076  if test "$enable_shared" = yes && test "$GCC" = yes; then
9077    case $archive_cmds in
9078    *'~'*)
9079      # FIXME: we may have to deal with multi-command sequences.
9080      ;;
9081    '$CC '*)
9082      # Test whether the compiler implicitly links with -lc since on some
9083      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9084      # to ld, don't add -lc before -lgcc.
9085      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9086echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9087      $rm conftest*
9088      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9089
9090      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9091  (eval $ac_compile) 2>&5
9092  ac_status=$?
9093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094  (exit $ac_status); } 2>conftest.err; then
9095        soname=conftest
9096        lib=conftest
9097        libobjs=conftest.$ac_objext
9098        deplibs=
9099        wl=$lt_prog_compiler_wl
9100        pic_flag=$lt_prog_compiler_pic
9101        compiler_flags=-v
9102        linker_flags=-v
9103        verstring=
9104        output_objdir=.
9105        libname=conftest
9106        lt_save_allow_undefined_flag=$allow_undefined_flag
9107        allow_undefined_flag=
9108        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9109  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9110  ac_status=$?
9111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112  (exit $ac_status); }
9113        then
9114          archive_cmds_need_lc=no
9115        else
9116          archive_cmds_need_lc=yes
9117        fi
9118        allow_undefined_flag=$lt_save_allow_undefined_flag
9119      else
9120        cat conftest.err 1>&5
9121      fi
9122      $rm conftest*
9123      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9124echo "${ECHO_T}$archive_cmds_need_lc" >&6
9125      ;;
9126    esac
9127  fi
9128  ;;
9129esac
9130
9131echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9132echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9133library_names_spec=
9134libname_spec='lib$name'
9135soname_spec=
9136shrext_cmds=".so"
9137postinstall_cmds=
9138postuninstall_cmds=
9139finish_cmds=
9140finish_eval=
9141shlibpath_var=
9142shlibpath_overrides_runpath=unknown
9143version_type=none
9144dynamic_linker="$host_os ld.so"
9145sys_lib_dlsearch_path_spec="/lib /usr/lib"
9146if test "$GCC" = yes; then
9147  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9148  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9149    # if the path contains ";" then we assume it to be the separator
9150    # otherwise default to the standard path separator (i.e. ":") - it is
9151    # assumed that no part of a normal pathname contains ";" but that should
9152    # okay in the real world where ";" in dirpaths is itself problematic.
9153    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9154  else
9155    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9156  fi
9157else
9158  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9159fi
9160need_lib_prefix=unknown
9161hardcode_into_libs=no
9162
9163# when you set need_version to no, make sure it does not cause -set_version
9164# flags to be left without arguments
9165need_version=unknown
9166
9167case $host_os in
9168aix3*)
9169  version_type=linux
9170  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9171  shlibpath_var=LIBPATH
9172
9173  # AIX 3 has no versioning support, so we append a major version to the name.
9174  soname_spec='${libname}${release}${shared_ext}$major'
9175  ;;
9176
9177aix4* | aix5*)
9178  version_type=linux
9179  need_lib_prefix=no
9180  need_version=no
9181  hardcode_into_libs=yes
9182  if test "$host_cpu" = ia64; then
9183    # AIX 5 supports IA64
9184    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9185    shlibpath_var=LD_LIBRARY_PATH
9186  else
9187    # With GCC up to 2.95.x, collect2 would create an import file
9188    # for dependence libraries.  The import file would start with
9189    # the line `#! .'.  This would cause the generated library to
9190    # depend on `.', always an invalid library.  This was fixed in
9191    # development snapshots of GCC prior to 3.0.
9192    case $host_os in
9193      aix4 | aix4.[01] | aix4.[01].*)
9194      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9195           echo ' yes '
9196           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9197        :
9198      else
9199        can_build_shared=no
9200      fi
9201      ;;
9202    esac
9203    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9204    # soname into executable. Probably we can add versioning support to
9205    # collect2, so additional links can be useful in future.
9206    if test "$aix_use_runtimelinking" = yes; then
9207      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9208      # instead of lib<name>.a to let people know that these are not
9209      # typical AIX shared libraries.
9210      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211    else
9212      # We preserve .a as extension for shared libraries through AIX4.2
9213      # and later when we are not doing run time linking.
9214      library_names_spec='${libname}${release}.a $libname.a'
9215      soname_spec='${libname}${release}${shared_ext}$major'
9216    fi
9217    shlibpath_var=LIBPATH
9218  fi
9219  ;;
9220
9221amigaos*)
9222  library_names_spec='$libname.ixlibrary $libname.a'
9223  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9224  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'
9225  ;;
9226
9227beos*)
9228  library_names_spec='${libname}${shared_ext}'
9229  dynamic_linker="$host_os ld.so"
9230  shlibpath_var=LIBRARY_PATH
9231  ;;
9232
9233bsdi[45]*)
9234  version_type=linux
9235  need_version=no
9236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237  soname_spec='${libname}${release}${shared_ext}$major'
9238  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9239  shlibpath_var=LD_LIBRARY_PATH
9240  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9241  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9242  # the default ld.so.conf also contains /usr/contrib/lib and
9243  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9244  # libtool to hard-code these into programs
9245  ;;
9246
9247cygwin* | mingw* | pw32*)
9248  version_type=windows
9249  shrext_cmds=".dll"
9250  need_version=no
9251  need_lib_prefix=no
9252
9253  case $GCC,$host_os in
9254  yes,cygwin* | yes,mingw* | yes,pw32*)
9255    library_names_spec='$libname.dll.a'
9256    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9257    postinstall_cmds='base_file=`basename \${file}`~
9258      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9259      dldir=$destdir/`dirname \$dlpath`~
9260      test -d \$dldir || mkdir -p \$dldir~
9261      $install_prog $dir/$dlname \$dldir/$dlname~
9262      chmod a+x \$dldir/$dlname'
9263    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9264      dlpath=$dir/\$dldll~
9265       $rm \$dlpath'
9266    shlibpath_overrides_runpath=yes
9267
9268    case $host_os in
9269    cygwin*)
9270      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9271      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9272      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9273      ;;
9274    mingw*)
9275      # MinGW DLLs use traditional 'lib' prefix
9276      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9277      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9278      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9279        # It is most probably a Windows format PATH printed by
9280        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9281        # path with ; separators, and with drive letters. We can handle the
9282        # drive letters (cygwin fileutils understands them), so leave them,
9283        # especially as we might pass files found there to a mingw objdump,
9284        # which wouldn't understand a cygwinified path. Ahh.
9285        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9286      else
9287        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9288      fi
9289      ;;
9290    pw32*)
9291      # pw32 DLLs use 'pw' prefix rather than 'lib'
9292      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9293      ;;
9294    esac
9295    ;;
9296
9297  *)
9298    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9299    ;;
9300  esac
9301  dynamic_linker='Win32 ld.exe'
9302  # FIXME: first we should search . and the directory the executable is in
9303  shlibpath_var=PATH
9304  ;;
9305
9306darwin* | rhapsody*)
9307  dynamic_linker="$host_os dyld"
9308  version_type=darwin
9309  need_lib_prefix=no
9310  need_version=no
9311  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9312  soname_spec='${libname}${release}${major}$shared_ext'
9313  shlibpath_overrides_runpath=yes
9314  shlibpath_var=DYLD_LIBRARY_PATH
9315  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9316  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9317  if test "$GCC" = yes; then
9318    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"`
9319  else
9320    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9321  fi
9322  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9323  ;;
9324
9325dgux*)
9326  version_type=linux
9327  need_lib_prefix=no
9328  need_version=no
9329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9330  soname_spec='${libname}${release}${shared_ext}$major'
9331  shlibpath_var=LD_LIBRARY_PATH
9332  ;;
9333
9334freebsd1*)
9335  dynamic_linker=no
9336  ;;
9337
9338kfreebsd*-gnu)
9339  version_type=linux
9340  need_lib_prefix=no
9341  need_version=no
9342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9343  soname_spec='${libname}${release}${shared_ext}$major'
9344  shlibpath_var=LD_LIBRARY_PATH
9345  shlibpath_overrides_runpath=no
9346  hardcode_into_libs=yes
9347  dynamic_linker='GNU ld.so'
9348  ;;
9349
9350freebsd* | dragonfly*)
9351  # DragonFly does not have aout.  When/if they implement a new
9352  # versioning mechanism, adjust this.
9353  if test -x /usr/bin/objformat; then
9354    objformat=`/usr/bin/objformat`
9355  else
9356    case $host_os in
9357    freebsd[123]*) objformat=aout ;;
9358    *) objformat=elf ;;
9359    esac
9360  fi
9361  version_type=freebsd-$objformat
9362  case $version_type in
9363    freebsd-elf*)
9364      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9365      need_version=no
9366      need_lib_prefix=no
9367      ;;
9368    freebsd-*)
9369      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9370      need_version=yes
9371      ;;
9372  esac
9373  shlibpath_var=LD_LIBRARY_PATH
9374  case $host_os in
9375  freebsd2*)
9376    shlibpath_overrides_runpath=yes
9377    ;;
9378  freebsd3.[01]* | freebsdelf3.[01]*)
9379    shlibpath_overrides_runpath=yes
9380    hardcode_into_libs=yes
9381    ;;
9382  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9383  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9384    shlibpath_overrides_runpath=no
9385    hardcode_into_libs=yes
9386    ;;
9387  freebsd*) # from 4.6 on
9388    shlibpath_overrides_runpath=yes
9389    hardcode_into_libs=yes
9390    ;;
9391  esac
9392  ;;
9393
9394gnu*)
9395  version_type=linux
9396  need_lib_prefix=no
9397  need_version=no
9398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9399  soname_spec='${libname}${release}${shared_ext}$major'
9400  shlibpath_var=LD_LIBRARY_PATH
9401  hardcode_into_libs=yes
9402  ;;
9403
9404hpux9* | hpux10* | hpux11*)
9405  # Give a soname corresponding to the major version so that dld.sl refuses to
9406  # link against other versions.
9407  version_type=sunos
9408  need_lib_prefix=no
9409  need_version=no
9410  case $host_cpu in
9411  ia64*)
9412    shrext_cmds='.so'
9413    hardcode_into_libs=yes
9414    dynamic_linker="$host_os dld.so"
9415    shlibpath_var=LD_LIBRARY_PATH
9416    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9417    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418    soname_spec='${libname}${release}${shared_ext}$major'
9419    if test "X$HPUX_IA64_MODE" = X32; then
9420      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9421    else
9422      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9423    fi
9424    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9425    ;;
9426   hppa*64*)
9427     shrext_cmds='.sl'
9428     hardcode_into_libs=yes
9429     dynamic_linker="$host_os dld.sl"
9430     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9431     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433     soname_spec='${libname}${release}${shared_ext}$major'
9434     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9435     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9436     ;;
9437   *)
9438    shrext_cmds='.sl'
9439    dynamic_linker="$host_os dld.sl"
9440    shlibpath_var=SHLIB_PATH
9441    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9442    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443    soname_spec='${libname}${release}${shared_ext}$major'
9444    ;;
9445  esac
9446  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9447  postinstall_cmds='chmod 555 $lib'
9448  ;;
9449
9450interix3*)
9451  version_type=linux
9452  need_lib_prefix=no
9453  need_version=no
9454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9455  soname_spec='${libname}${release}${shared_ext}$major'
9456  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9457  shlibpath_var=LD_LIBRARY_PATH
9458  shlibpath_overrides_runpath=no
9459  hardcode_into_libs=yes
9460  ;;
9461
9462irix5* | irix6* | nonstopux*)
9463  case $host_os in
9464    nonstopux*) version_type=nonstopux ;;
9465    *)
9466        if test "$lt_cv_prog_gnu_ld" = yes; then
9467                version_type=linux
9468        else
9469                version_type=irix
9470        fi ;;
9471  esac
9472  need_lib_prefix=no
9473  need_version=no
9474  soname_spec='${libname}${release}${shared_ext}$major'
9475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9476  case $host_os in
9477  irix5* | nonstopux*)
9478    libsuff= shlibsuff=
9479    ;;
9480  *)
9481    case $LD in # libtool.m4 will add one of these switches to LD
9482    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9483      libsuff= shlibsuff= libmagic=32-bit;;
9484    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9485      libsuff=32 shlibsuff=N32 libmagic=N32;;
9486    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9487      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9488    *) libsuff= shlibsuff= libmagic=never-match;;
9489    esac
9490    ;;
9491  esac
9492  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9493  shlibpath_overrides_runpath=no
9494  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9495  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9496  hardcode_into_libs=yes
9497  ;;
9498
9499# No shared lib support for Linux oldld, aout, or coff.
9500linux*oldld* | linux*aout* | linux*coff*)
9501  dynamic_linker=no
9502  ;;
9503
9504# This must be Linux ELF.
9505linux*)
9506  version_type=linux
9507  need_lib_prefix=no
9508  need_version=no
9509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510  soname_spec='${libname}${release}${shared_ext}$major'
9511  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9512  shlibpath_var=LD_LIBRARY_PATH
9513  shlibpath_overrides_runpath=no
9514  # This implies no fast_install, which is unacceptable.
9515  # Some rework will be needed to allow for fast_install
9516  # before this can be enabled.
9517  hardcode_into_libs=yes
9518
9519  # Append ld.so.conf contents to the search path
9520  if test -f /etc/ld.so.conf; then
9521    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' ' '`
9522    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9523  fi
9524
9525  # We used to test for /lib/ld.so.1 and disable shared libraries on
9526  # powerpc, because MkLinux only supported shared libraries with the
9527  # GNU dynamic linker.  Since this was broken with cross compilers,
9528  # most powerpc-linux boxes support dynamic linking these days and
9529  # people can always --disable-shared, the test was removed, and we
9530  # assume the GNU/Linux dynamic linker is in use.
9531  dynamic_linker='GNU/Linux ld.so'
9532  ;;
9533
9534knetbsd*-gnu)
9535  version_type=linux
9536  need_lib_prefix=no
9537  need_version=no
9538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9539  soname_spec='${libname}${release}${shared_ext}$major'
9540  shlibpath_var=LD_LIBRARY_PATH
9541  shlibpath_overrides_runpath=no
9542  hardcode_into_libs=yes
9543  dynamic_linker='GNU ld.so'
9544  ;;
9545
9546netbsd*)
9547  version_type=sunos
9548  need_lib_prefix=no
9549  need_version=no
9550  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9551    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9552    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9553    dynamic_linker='NetBSD (a.out) ld.so'
9554  else
9555    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9556    soname_spec='${libname}${release}${shared_ext}$major'
9557    dynamic_linker='NetBSD ld.elf_so'
9558  fi
9559  shlibpath_var=LD_LIBRARY_PATH
9560  shlibpath_overrides_runpath=yes
9561  hardcode_into_libs=yes
9562  ;;
9563
9564newsos6)
9565  version_type=linux
9566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9567  shlibpath_var=LD_LIBRARY_PATH
9568  shlibpath_overrides_runpath=yes
9569  ;;
9570
9571nto-qnx*)
9572  version_type=linux
9573  need_lib_prefix=no
9574  need_version=no
9575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576  soname_spec='${libname}${release}${shared_ext}$major'
9577  shlibpath_var=LD_LIBRARY_PATH
9578  shlibpath_overrides_runpath=yes
9579  ;;
9580
9581openbsd*)
9582  version_type=sunos
9583  sys_lib_dlsearch_path_spec="/usr/lib"
9584  need_lib_prefix=no
9585  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9586  case $host_os in
9587    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9588    *)                         need_version=no  ;;
9589  esac
9590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9591  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9592  shlibpath_var=LD_LIBRARY_PATH
9593  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9594    case $host_os in
9595      openbsd2.[89] | openbsd2.[89].*)
9596        shlibpath_overrides_runpath=no
9597        ;;
9598      *)
9599        shlibpath_overrides_runpath=yes
9600        ;;
9601      esac
9602  else
9603    shlibpath_overrides_runpath=yes
9604  fi
9605  ;;
9606
9607os2*)
9608  libname_spec='$name'
9609  shrext_cmds=".dll"
9610  need_lib_prefix=no
9611  library_names_spec='$libname${shared_ext} $libname.a'
9612  dynamic_linker='OS/2 ld.exe'
9613  shlibpath_var=LIBPATH
9614  ;;
9615
9616osf3* | osf4* | osf5*)
9617  version_type=osf
9618  need_lib_prefix=no
9619  need_version=no
9620  soname_spec='${libname}${release}${shared_ext}$major'
9621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622  shlibpath_var=LD_LIBRARY_PATH
9623  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9624  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9625  ;;
9626
9627solaris*)
9628  version_type=linux
9629  need_lib_prefix=no
9630  need_version=no
9631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632  soname_spec='${libname}${release}${shared_ext}$major'
9633  shlibpath_var=LD_LIBRARY_PATH
9634  shlibpath_overrides_runpath=yes
9635  hardcode_into_libs=yes
9636  # ldd complains unless libraries are executable
9637  postinstall_cmds='chmod +x $lib'
9638  ;;
9639
9640sunos4*)
9641  version_type=sunos
9642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9643  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9644  shlibpath_var=LD_LIBRARY_PATH
9645  shlibpath_overrides_runpath=yes
9646  if test "$with_gnu_ld" = yes; then
9647    need_lib_prefix=no
9648  fi
9649  need_version=yes
9650  ;;
9651
9652sysv4 | sysv4.3*)
9653  version_type=linux
9654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9655  soname_spec='${libname}${release}${shared_ext}$major'
9656  shlibpath_var=LD_LIBRARY_PATH
9657  case $host_vendor in
9658    sni)
9659      shlibpath_overrides_runpath=no
9660      need_lib_prefix=no
9661      export_dynamic_flag_spec='${wl}-Blargedynsym'
9662      runpath_var=LD_RUN_PATH
9663      ;;
9664    siemens)
9665      need_lib_prefix=no
9666      ;;
9667    motorola)
9668      need_lib_prefix=no
9669      need_version=no
9670      shlibpath_overrides_runpath=no
9671      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9672      ;;
9673  esac
9674  ;;
9675
9676sysv4*MP*)
9677  if test -d /usr/nec ;then
9678    version_type=linux
9679    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9680    soname_spec='$libname${shared_ext}.$major'
9681    shlibpath_var=LD_LIBRARY_PATH
9682  fi
9683  ;;
9684
9685sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9686  version_type=freebsd-elf
9687  need_lib_prefix=no
9688  need_version=no
9689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9690  soname_spec='${libname}${release}${shared_ext}$major'
9691  shlibpath_var=LD_LIBRARY_PATH
9692  hardcode_into_libs=yes
9693  if test "$with_gnu_ld" = yes; then
9694    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9695    shlibpath_overrides_runpath=no
9696  else
9697    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9698    shlibpath_overrides_runpath=yes
9699    case $host_os in
9700      sco3.2v5*)
9701        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9702        ;;
9703    esac
9704  fi
9705  sys_lib_dlsearch_path_spec='/usr/lib'
9706  ;;
9707
9708uts4*)
9709  version_type=linux
9710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9711  soname_spec='${libname}${release}${shared_ext}$major'
9712  shlibpath_var=LD_LIBRARY_PATH
9713  ;;
9714
9715*)
9716  dynamic_linker=no
9717  ;;
9718esac
9719echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9720echo "${ECHO_T}$dynamic_linker" >&6
9721test "$dynamic_linker" = no && can_build_shared=no
9722
9723variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9724if test "$GCC" = yes; then
9725  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9726fi
9727
9728echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9729echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9730hardcode_action=
9731if test -n "$hardcode_libdir_flag_spec" || \
9732   test -n "$runpath_var" || \
9733   test "X$hardcode_automatic" = "Xyes" ; then
9734
9735  # We can hardcode non-existant directories.
9736  if test "$hardcode_direct" != no &&
9737     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9738     # have to relink, otherwise we might link with an installed library
9739     # when we should be linking with a yet-to-be-installed one
9740     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9741     test "$hardcode_minus_L" != no; then
9742    # Linking always hardcodes the temporary library directory.
9743    hardcode_action=relink
9744  else
9745    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9746    hardcode_action=immediate
9747  fi
9748else
9749  # We cannot hardcode anything, or else we can only hardcode existing
9750  # directories.
9751  hardcode_action=unsupported
9752fi
9753echo "$as_me:$LINENO: result: $hardcode_action" >&5
9754echo "${ECHO_T}$hardcode_action" >&6
9755
9756if test "$hardcode_action" = relink; then
9757  # Fast installation is not supported
9758  enable_fast_install=no
9759elif test "$shlibpath_overrides_runpath" = yes ||
9760     test "$enable_shared" = no; then
9761  # Fast installation is not necessary
9762  enable_fast_install=needless
9763fi
9764
9765striplib=
9766old_striplib=
9767echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9768echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9769if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9770  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9771  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9772  echo "$as_me:$LINENO: result: yes" >&5
9773echo "${ECHO_T}yes" >&6
9774else
9775# FIXME - insert some real tests, host_os isn't really good enough
9776  case $host_os in
9777   darwin*)
9778       if test -n "$STRIP" ; then
9779         striplib="$STRIP -x"
9780         echo "$as_me:$LINENO: result: yes" >&5
9781echo "${ECHO_T}yes" >&6
9782       else
9783  echo "$as_me:$LINENO: result: no" >&5
9784echo "${ECHO_T}no" >&6
9785fi
9786       ;;
9787   *)
9788  echo "$as_me:$LINENO: result: no" >&5
9789echo "${ECHO_T}no" >&6
9790    ;;
9791  esac
9792fi
9793
9794if test "x$enable_dlopen" != xyes; then
9795  enable_dlopen=unknown
9796  enable_dlopen_self=unknown
9797  enable_dlopen_self_static=unknown
9798else
9799  lt_cv_dlopen=no
9800  lt_cv_dlopen_libs=
9801
9802  case $host_os in
9803  beos*)
9804    lt_cv_dlopen="load_add_on"
9805    lt_cv_dlopen_libs=
9806    lt_cv_dlopen_self=yes
9807    ;;
9808
9809  mingw* | pw32*)
9810    lt_cv_dlopen="LoadLibrary"
9811    lt_cv_dlopen_libs=
9812   ;;
9813
9814  cygwin*)
9815    lt_cv_dlopen="dlopen"
9816    lt_cv_dlopen_libs=
9817   ;;
9818
9819  darwin*)
9820  # if libdl is installed we need to link against it
9821    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9822echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9823if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9824  echo $ECHO_N "(cached) $ECHO_C" >&6
9825else
9826  ac_check_lib_save_LIBS=$LIBS
9827LIBS="-ldl  $LIBS"
9828cat >conftest.$ac_ext <<_ACEOF
9829/* confdefs.h.  */
9830_ACEOF
9831cat confdefs.h >>conftest.$ac_ext
9832cat >>conftest.$ac_ext <<_ACEOF
9833/* end confdefs.h.  */
9834
9835/* Override any gcc2 internal prototype to avoid an error.  */
9836#ifdef __cplusplus
9837extern "C"
9838#endif
9839/* We use char because int might match the return type of a gcc2
9840   builtin and then its argument prototype would still apply.  */
9841char dlopen ();
9842int
9843main ()
9844{
9845dlopen ();
9846  ;
9847  return 0;
9848}
9849_ACEOF
9850rm -f conftest.$ac_objext conftest$ac_exeext
9851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852  (eval $ac_link) 2>conftest.er1
9853  ac_status=$?
9854  grep -v '^ *+' conftest.er1 >conftest.err
9855  rm -f conftest.er1
9856  cat conftest.err >&5
9857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858  (exit $ac_status); } &&
9859         { ac_try='test -z "$ac_c_werror_flag"
9860                         || test ! -s conftest.err'
9861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862  (eval $ac_try) 2>&5
9863  ac_status=$?
9864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865  (exit $ac_status); }; } &&
9866         { ac_try='test -s conftest$ac_exeext'
9867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868  (eval $ac_try) 2>&5
9869  ac_status=$?
9870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871  (exit $ac_status); }; }; then
9872  ac_cv_lib_dl_dlopen=yes
9873else
9874  echo "$as_me: failed program was:" >&5
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
9877ac_cv_lib_dl_dlopen=no
9878fi
9879rm -f conftest.err conftest.$ac_objext \
9880      conftest$ac_exeext conftest.$ac_ext
9881LIBS=$ac_check_lib_save_LIBS
9882fi
9883echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9884echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9885if test $ac_cv_lib_dl_dlopen = yes; then
9886  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9887else
9888
9889    lt_cv_dlopen="dyld"
9890    lt_cv_dlopen_libs=
9891    lt_cv_dlopen_self=yes
9892
9893fi
9894
9895   ;;
9896
9897  *)
9898    echo "$as_me:$LINENO: checking for shl_load" >&5
9899echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9900if test "${ac_cv_func_shl_load+set}" = set; then
9901  echo $ECHO_N "(cached) $ECHO_C" >&6
9902else
9903  cat >conftest.$ac_ext <<_ACEOF
9904/* confdefs.h.  */
9905_ACEOF
9906cat confdefs.h >>conftest.$ac_ext
9907cat >>conftest.$ac_ext <<_ACEOF
9908/* end confdefs.h.  */
9909/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9910   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9911#define shl_load innocuous_shl_load
9912
9913/* System header to define __stub macros and hopefully few prototypes,
9914    which can conflict with char shl_load (); below.
9915    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916    <limits.h> exists even on freestanding compilers.  */
9917
9918#ifdef __STDC__
9919# include <limits.h>
9920#else
9921# include <assert.h>
9922#endif
9923
9924#undef shl_load
9925
9926/* Override any gcc2 internal prototype to avoid an error.  */
9927#ifdef __cplusplus
9928extern "C"
9929{
9930#endif
9931/* We use char because int might match the return type of a gcc2
9932   builtin and then its argument prototype would still apply.  */
9933char shl_load ();
9934/* The GNU C library defines this for functions which it implements
9935    to always fail with ENOSYS.  Some functions are actually named
9936    something starting with __ and the normal name is an alias.  */
9937#if defined (__stub_shl_load) || defined (__stub___shl_load)
9938choke me
9939#else
9940char (*f) () = shl_load;
9941#endif
9942#ifdef __cplusplus
9943}
9944#endif
9945
9946int
9947main ()
9948{
9949return f != shl_load;
9950  ;
9951  return 0;
9952}
9953_ACEOF
9954rm -f conftest.$ac_objext conftest$ac_exeext
9955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956  (eval $ac_link) 2>conftest.er1
9957  ac_status=$?
9958  grep -v '^ *+' conftest.er1 >conftest.err
9959  rm -f conftest.er1
9960  cat conftest.err >&5
9961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962  (exit $ac_status); } &&
9963         { ac_try='test -z "$ac_c_werror_flag"
9964                         || test ! -s conftest.err'
9965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966  (eval $ac_try) 2>&5
9967  ac_status=$?
9968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969  (exit $ac_status); }; } &&
9970         { ac_try='test -s conftest$ac_exeext'
9971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972  (eval $ac_try) 2>&5
9973  ac_status=$?
9974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975  (exit $ac_status); }; }; then
9976  ac_cv_func_shl_load=yes
9977else
9978  echo "$as_me: failed program was:" >&5
9979sed 's/^/| /' conftest.$ac_ext >&5
9980
9981ac_cv_func_shl_load=no
9982fi
9983rm -f conftest.err conftest.$ac_objext \
9984      conftest$ac_exeext conftest.$ac_ext
9985fi
9986echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9987echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9988if test $ac_cv_func_shl_load = yes; then
9989  lt_cv_dlopen="shl_load"
9990else
9991  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9992echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9993if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9994  echo $ECHO_N "(cached) $ECHO_C" >&6
9995else
9996  ac_check_lib_save_LIBS=$LIBS
9997LIBS="-ldld  $LIBS"
9998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h.  */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h.  */
10004
10005/* Override any gcc2 internal prototype to avoid an error.  */
10006#ifdef __cplusplus
10007extern "C"
10008#endif
10009/* We use char because int might match the return type of a gcc2
10010   builtin and then its argument prototype would still apply.  */
10011char shl_load ();
10012int
10013main ()
10014{
10015shl_load ();
10016  ;
10017  return 0;
10018}
10019_ACEOF
10020rm -f conftest.$ac_objext conftest$ac_exeext
10021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022  (eval $ac_link) 2>conftest.er1
10023  ac_status=$?
10024  grep -v '^ *+' conftest.er1 >conftest.err
10025  rm -f conftest.er1
10026  cat conftest.err >&5
10027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028  (exit $ac_status); } &&
10029         { ac_try='test -z "$ac_c_werror_flag"
10030                         || test ! -s conftest.err'
10031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032  (eval $ac_try) 2>&5
10033  ac_status=$?
10034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035  (exit $ac_status); }; } &&
10036         { ac_try='test -s conftest$ac_exeext'
10037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038  (eval $ac_try) 2>&5
10039  ac_status=$?
10040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041  (exit $ac_status); }; }; then
10042  ac_cv_lib_dld_shl_load=yes
10043else
10044  echo "$as_me: failed program was:" >&5
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
10047ac_cv_lib_dld_shl_load=no
10048fi
10049rm -f conftest.err conftest.$ac_objext \
10050      conftest$ac_exeext conftest.$ac_ext
10051LIBS=$ac_check_lib_save_LIBS
10052fi
10053echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10054echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10055if test $ac_cv_lib_dld_shl_load = yes; then
10056  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10057else
10058  echo "$as_me:$LINENO: checking for dlopen" >&5
10059echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10060if test "${ac_cv_func_dlopen+set}" = set; then
10061  echo $ECHO_N "(cached) $ECHO_C" >&6
10062else
10063  cat >conftest.$ac_ext <<_ACEOF
10064/* confdefs.h.  */
10065_ACEOF
10066cat confdefs.h >>conftest.$ac_ext
10067cat >>conftest.$ac_ext <<_ACEOF
10068/* end confdefs.h.  */
10069/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10070   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10071#define dlopen innocuous_dlopen
10072
10073/* System header to define __stub macros and hopefully few prototypes,
10074    which can conflict with char dlopen (); below.
10075    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10076    <limits.h> exists even on freestanding compilers.  */
10077
10078#ifdef __STDC__
10079# include <limits.h>
10080#else
10081# include <assert.h>
10082#endif
10083
10084#undef dlopen
10085
10086/* Override any gcc2 internal prototype to avoid an error.  */
10087#ifdef __cplusplus
10088extern "C"
10089{
10090#endif
10091/* We use char because int might match the return type of a gcc2
10092   builtin and then its argument prototype would still apply.  */
10093char dlopen ();
10094/* The GNU C library defines this for functions which it implements
10095    to always fail with ENOSYS.  Some functions are actually named
10096    something starting with __ and the normal name is an alias.  */
10097#if defined (__stub_dlopen) || defined (__stub___dlopen)
10098choke me
10099#else
10100char (*f) () = dlopen;
10101#endif
10102#ifdef __cplusplus
10103}
10104#endif
10105
10106int
10107main ()
10108{
10109return f != dlopen;
10110  ;
10111  return 0;
10112}
10113_ACEOF
10114rm -f conftest.$ac_objext conftest$ac_exeext
10115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116  (eval $ac_link) 2>conftest.er1
10117  ac_status=$?
10118  grep -v '^ *+' conftest.er1 >conftest.err
10119  rm -f conftest.er1
10120  cat conftest.err >&5
10121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122  (exit $ac_status); } &&
10123         { ac_try='test -z "$ac_c_werror_flag"
10124                         || test ! -s conftest.err'
10125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126  (eval $ac_try) 2>&5
10127  ac_status=$?
10128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129  (exit $ac_status); }; } &&
10130         { ac_try='test -s conftest$ac_exeext'
10131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132  (eval $ac_try) 2>&5
10133  ac_status=$?
10134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135  (exit $ac_status); }; }; then
10136  ac_cv_func_dlopen=yes
10137else
10138  echo "$as_me: failed program was:" >&5
10139sed 's/^/| /' conftest.$ac_ext >&5
10140
10141ac_cv_func_dlopen=no
10142fi
10143rm -f conftest.err conftest.$ac_objext \
10144      conftest$ac_exeext conftest.$ac_ext
10145fi
10146echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10147echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10148if test $ac_cv_func_dlopen = yes; then
10149  lt_cv_dlopen="dlopen"
10150else
10151  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10152echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10153if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10154  echo $ECHO_N "(cached) $ECHO_C" >&6
10155else
10156  ac_check_lib_save_LIBS=$LIBS
10157LIBS="-ldl  $LIBS"
10158cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h.  */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h.  */
10164
10165/* Override any gcc2 internal prototype to avoid an error.  */
10166#ifdef __cplusplus
10167extern "C"
10168#endif
10169/* We use char because int might match the return type of a gcc2
10170   builtin and then its argument prototype would still apply.  */
10171char dlopen ();
10172int
10173main ()
10174{
10175dlopen ();
10176  ;
10177  return 0;
10178}
10179_ACEOF
10180rm -f conftest.$ac_objext conftest$ac_exeext
10181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10182  (eval $ac_link) 2>conftest.er1
10183  ac_status=$?
10184  grep -v '^ *+' conftest.er1 >conftest.err
10185  rm -f conftest.er1
10186  cat conftest.err >&5
10187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188  (exit $ac_status); } &&
10189         { ac_try='test -z "$ac_c_werror_flag"
10190                         || test ! -s conftest.err'
10191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192  (eval $ac_try) 2>&5
10193  ac_status=$?
10194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195  (exit $ac_status); }; } &&
10196         { ac_try='test -s conftest$ac_exeext'
10197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198  (eval $ac_try) 2>&5
10199  ac_status=$?
10200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201  (exit $ac_status); }; }; then
10202  ac_cv_lib_dl_dlopen=yes
10203else
10204  echo "$as_me: failed program was:" >&5
10205sed 's/^/| /' conftest.$ac_ext >&5
10206
10207ac_cv_lib_dl_dlopen=no
10208fi
10209rm -f conftest.err conftest.$ac_objext \
10210      conftest$ac_exeext conftest.$ac_ext
10211LIBS=$ac_check_lib_save_LIBS
10212fi
10213echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10214echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10215if test $ac_cv_lib_dl_dlopen = yes; then
10216  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10217else
10218  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10219echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10220if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10221  echo $ECHO_N "(cached) $ECHO_C" >&6
10222else
10223  ac_check_lib_save_LIBS=$LIBS
10224LIBS="-lsvld  $LIBS"
10225cat >conftest.$ac_ext <<_ACEOF
10226/* confdefs.h.  */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h.  */
10231
10232/* Override any gcc2 internal prototype to avoid an error.  */
10233#ifdef __cplusplus
10234extern "C"
10235#endif
10236/* We use char because int might match the return type of a gcc2
10237   builtin and then its argument prototype would still apply.  */
10238char dlopen ();
10239int
10240main ()
10241{
10242dlopen ();
10243  ;
10244  return 0;
10245}
10246_ACEOF
10247rm -f conftest.$ac_objext conftest$ac_exeext
10248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10249  (eval $ac_link) 2>conftest.er1
10250  ac_status=$?
10251  grep -v '^ *+' conftest.er1 >conftest.err
10252  rm -f conftest.er1
10253  cat conftest.err >&5
10254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255  (exit $ac_status); } &&
10256         { ac_try='test -z "$ac_c_werror_flag"
10257                         || test ! -s conftest.err'
10258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259  (eval $ac_try) 2>&5
10260  ac_status=$?
10261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  (exit $ac_status); }; } &&
10263         { ac_try='test -s conftest$ac_exeext'
10264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265  (eval $ac_try) 2>&5
10266  ac_status=$?
10267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268  (exit $ac_status); }; }; then
10269  ac_cv_lib_svld_dlopen=yes
10270else
10271  echo "$as_me: failed program was:" >&5
10272sed 's/^/| /' conftest.$ac_ext >&5
10273
10274ac_cv_lib_svld_dlopen=no
10275fi
10276rm -f conftest.err conftest.$ac_objext \
10277      conftest$ac_exeext conftest.$ac_ext
10278LIBS=$ac_check_lib_save_LIBS
10279fi
10280echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10281echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10282if test $ac_cv_lib_svld_dlopen = yes; then
10283  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10284else
10285  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10286echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10287if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10288  echo $ECHO_N "(cached) $ECHO_C" >&6
10289else
10290  ac_check_lib_save_LIBS=$LIBS
10291LIBS="-ldld  $LIBS"
10292cat >conftest.$ac_ext <<_ACEOF
10293/* confdefs.h.  */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h.  */
10298
10299/* Override any gcc2 internal prototype to avoid an error.  */
10300#ifdef __cplusplus
10301extern "C"
10302#endif
10303/* We use char because int might match the return type of a gcc2
10304   builtin and then its argument prototype would still apply.  */
10305char dld_link ();
10306int
10307main ()
10308{
10309dld_link ();
10310  ;
10311  return 0;
10312}
10313_ACEOF
10314rm -f conftest.$ac_objext conftest$ac_exeext
10315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10316  (eval $ac_link) 2>conftest.er1
10317  ac_status=$?
10318  grep -v '^ *+' conftest.er1 >conftest.err
10319  rm -f conftest.er1
10320  cat conftest.err >&5
10321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322  (exit $ac_status); } &&
10323         { ac_try='test -z "$ac_c_werror_flag"
10324                         || test ! -s conftest.err'
10325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326  (eval $ac_try) 2>&5
10327  ac_status=$?
10328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329  (exit $ac_status); }; } &&
10330         { ac_try='test -s conftest$ac_exeext'
10331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332  (eval $ac_try) 2>&5
10333  ac_status=$?
10334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335  (exit $ac_status); }; }; then
10336  ac_cv_lib_dld_dld_link=yes
10337else
10338  echo "$as_me: failed program was:" >&5
10339sed 's/^/| /' conftest.$ac_ext >&5
10340
10341ac_cv_lib_dld_dld_link=no
10342fi
10343rm -f conftest.err conftest.$ac_objext \
10344      conftest$ac_exeext conftest.$ac_ext
10345LIBS=$ac_check_lib_save_LIBS
10346fi
10347echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10348echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10349if test $ac_cv_lib_dld_dld_link = yes; then
10350  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10351fi
10352
10353
10354fi
10355
10356
10357fi
10358
10359
10360fi
10361
10362
10363fi
10364
10365
10366fi
10367
10368    ;;
10369  esac
10370
10371  if test "x$lt_cv_dlopen" != xno; then
10372    enable_dlopen=yes
10373  else
10374    enable_dlopen=no
10375  fi
10376
10377  case $lt_cv_dlopen in
10378  dlopen)
10379    save_CPPFLAGS="$CPPFLAGS"
10380    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10381
10382    save_LDFLAGS="$LDFLAGS"
10383    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10384
10385    save_LIBS="$LIBS"
10386    LIBS="$lt_cv_dlopen_libs $LIBS"
10387
10388    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10389echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10390if test "${lt_cv_dlopen_self+set}" = set; then
10391  echo $ECHO_N "(cached) $ECHO_C" >&6
10392else
10393          if test "$cross_compiling" = yes; then :
10394  lt_cv_dlopen_self=cross
10395else
10396  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10397  lt_status=$lt_dlunknown
10398  cat > conftest.$ac_ext <<EOF
10399#line 10399 "configure"
10400#include "confdefs.h"
10401
10402#if HAVE_DLFCN_H
10403#include <dlfcn.h>
10404#endif
10405
10406#include <stdio.h>
10407
10408#ifdef RTLD_GLOBAL
10409#  define LT_DLGLOBAL           RTLD_GLOBAL
10410#else
10411#  ifdef DL_GLOBAL
10412#    define LT_DLGLOBAL         DL_GLOBAL
10413#  else
10414#    define LT_DLGLOBAL         0
10415#  endif
10416#endif
10417
10418/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10419   find out it does not work in some platform. */
10420#ifndef LT_DLLAZY_OR_NOW
10421#  ifdef RTLD_LAZY
10422#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10423#  else
10424#    ifdef DL_LAZY
10425#      define LT_DLLAZY_OR_NOW          DL_LAZY
10426#    else
10427#      ifdef RTLD_NOW
10428#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10429#      else
10430#        ifdef DL_NOW
10431#          define LT_DLLAZY_OR_NOW      DL_NOW
10432#        else
10433#          define LT_DLLAZY_OR_NOW      0
10434#        endif
10435#      endif
10436#    endif
10437#  endif
10438#endif
10439
10440#ifdef __cplusplus
10441extern "C" void exit (int);
10442#endif
10443
10444void fnord() { int i=42;}
10445int main ()
10446{
10447  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10448  int status = $lt_dlunknown;
10449
10450  if (self)
10451    {
10452      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10453      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10454      /* dlclose (self); */
10455    }
10456  else
10457    puts (dlerror ());
10458
10459    exit (status);
10460}
10461EOF
10462  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463  (eval $ac_link) 2>&5
10464  ac_status=$?
10465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10467    (./conftest; exit; ) >&5 2>/dev/null
10468    lt_status=$?
10469    case x$lt_status in
10470      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10471      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10472      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10473    esac
10474  else :
10475    # compilation failed
10476    lt_cv_dlopen_self=no
10477  fi
10478fi
10479rm -fr conftest*
10480
10481
10482fi
10483echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10484echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10485
10486    if test "x$lt_cv_dlopen_self" = xyes; then
10487      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10488      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10489echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10490if test "${lt_cv_dlopen_self_static+set}" = set; then
10491  echo $ECHO_N "(cached) $ECHO_C" >&6
10492else
10493          if test "$cross_compiling" = yes; then :
10494  lt_cv_dlopen_self_static=cross
10495else
10496  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10497  lt_status=$lt_dlunknown
10498  cat > conftest.$ac_ext <<EOF
10499#line 10499 "configure"
10500#include "confdefs.h"
10501
10502#if HAVE_DLFCN_H
10503#include <dlfcn.h>
10504#endif
10505
10506#include <stdio.h>
10507
10508#ifdef RTLD_GLOBAL
10509#  define LT_DLGLOBAL           RTLD_GLOBAL
10510#else
10511#  ifdef DL_GLOBAL
10512#    define LT_DLGLOBAL         DL_GLOBAL
10513#  else
10514#    define LT_DLGLOBAL         0
10515#  endif
10516#endif
10517
10518/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10519   find out it does not work in some platform. */
10520#ifndef LT_DLLAZY_OR_NOW
10521#  ifdef RTLD_LAZY
10522#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10523#  else
10524#    ifdef DL_LAZY
10525#      define LT_DLLAZY_OR_NOW          DL_LAZY
10526#    else
10527#      ifdef RTLD_NOW
10528#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10529#      else
10530#        ifdef DL_NOW
10531#          define LT_DLLAZY_OR_NOW      DL_NOW
10532#        else
10533#          define LT_DLLAZY_OR_NOW      0
10534#        endif
10535#      endif
10536#    endif
10537#  endif
10538#endif
10539
10540#ifdef __cplusplus
10541extern "C" void exit (int);
10542#endif
10543
10544void fnord() { int i=42;}
10545int main ()
10546{
10547  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10548  int status = $lt_dlunknown;
10549
10550  if (self)
10551    {
10552      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10553      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10554      /* dlclose (self); */
10555    }
10556  else
10557    puts (dlerror ());
10558
10559    exit (status);
10560}
10561EOF
10562  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563  (eval $ac_link) 2>&5
10564  ac_status=$?
10565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10567    (./conftest; exit; ) >&5 2>/dev/null
10568    lt_status=$?
10569    case x$lt_status in
10570      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10571      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10572      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10573    esac
10574  else :
10575    # compilation failed
10576    lt_cv_dlopen_self_static=no
10577  fi
10578fi
10579rm -fr conftest*
10580
10581
10582fi
10583echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10584echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10585    fi
10586
10587    CPPFLAGS="$save_CPPFLAGS"
10588    LDFLAGS="$save_LDFLAGS"
10589    LIBS="$save_LIBS"
10590    ;;
10591  esac
10592
10593  case $lt_cv_dlopen_self in
10594  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10595  *) enable_dlopen_self=unknown ;;
10596  esac
10597
10598  case $lt_cv_dlopen_self_static in
10599  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10600  *) enable_dlopen_self_static=unknown ;;
10601  esac
10602fi
10603
10604
10605# Report which library types will actually be built
10606echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10607echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10608echo "$as_me:$LINENO: result: $can_build_shared" >&5
10609echo "${ECHO_T}$can_build_shared" >&6
10610
10611echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10612echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10613test "$can_build_shared" = "no" && enable_shared=no
10614
10615# On AIX, shared libraries and static libraries use the same namespace, and
10616# are all built from PIC.
10617case $host_os in
10618aix3*)
10619  test "$enable_shared" = yes && enable_static=no
10620  if test -n "$RANLIB"; then
10621    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10622    postinstall_cmds='$RANLIB $lib'
10623  fi
10624  ;;
10625
10626aix4* | aix5*)
10627  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10628    test "$enable_shared" = yes && enable_static=no
10629  fi
10630    ;;
10631esac
10632echo "$as_me:$LINENO: result: $enable_shared" >&5
10633echo "${ECHO_T}$enable_shared" >&6
10634
10635echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10636echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10637# Make sure either enable_shared or enable_static is yes.
10638test "$enable_shared" = yes || enable_static=yes
10639echo "$as_me:$LINENO: result: $enable_static" >&5
10640echo "${ECHO_T}$enable_static" >&6
10641
10642# The else clause should only fire when bootstrapping the
10643# libtool distribution, otherwise you forgot to ship ltmain.sh
10644# with your package, and you will get complaints that there are
10645# no rules to generate ltmain.sh.
10646if test -f "$ltmain"; then
10647  # See if we are running on zsh, and set the options which allow our commands through
10648  # without removal of \ escapes.
10649  if test -n "${ZSH_VERSION+set}" ; then
10650    setopt NO_GLOB_SUBST
10651  fi
10652  # Now quote all the things that may contain metacharacters while being
10653  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10654  # variables and quote the copies for generation of the libtool script.
10655  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10656    SED SHELL STRIP \
10657    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10658    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10659    deplibs_check_method reload_flag reload_cmds need_locks \
10660    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10661    lt_cv_sys_global_symbol_to_c_name_address \
10662    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10663    old_postinstall_cmds old_postuninstall_cmds \
10664    compiler \
10665    CC \
10666    LD \
10667    lt_prog_compiler_wl \
10668    lt_prog_compiler_pic \
10669    lt_prog_compiler_static \
10670    lt_prog_compiler_no_builtin_flag \
10671    export_dynamic_flag_spec \
10672    thread_safe_flag_spec \
10673    whole_archive_flag_spec \
10674    enable_shared_with_static_runtimes \
10675    old_archive_cmds \
10676    old_archive_from_new_cmds \
10677    predep_objects \
10678    postdep_objects \
10679    predeps \
10680    postdeps \
10681    compiler_lib_search_path \
10682    archive_cmds \
10683    archive_expsym_cmds \
10684    postinstall_cmds \
10685    postuninstall_cmds \
10686    old_archive_from_expsyms_cmds \
10687    allow_undefined_flag \
10688    no_undefined_flag \
10689    export_symbols_cmds \
10690    hardcode_libdir_flag_spec \
10691    hardcode_libdir_flag_spec_ld \
10692    hardcode_libdir_separator \
10693    hardcode_automatic \
10694    module_cmds \
10695    module_expsym_cmds \
10696    lt_cv_prog_compiler_c_o \
10697    exclude_expsyms \
10698    include_expsyms; do
10699
10700    case $var in
10701    old_archive_cmds | \
10702    old_archive_from_new_cmds | \
10703    archive_cmds | \
10704    archive_expsym_cmds | \
10705    module_cmds | \
10706    module_expsym_cmds | \
10707    old_archive_from_expsyms_cmds | \
10708    export_symbols_cmds | \
10709    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10710    postinstall_cmds | postuninstall_cmds | \
10711    old_postinstall_cmds | old_postuninstall_cmds | \
10712    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10713      # Double-quote double-evaled strings.
10714      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10715      ;;
10716    *)
10717      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10718      ;;
10719    esac
10720  done
10721
10722  case $lt_echo in
10723  *'\$0 --fallback-echo"')
10724    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10725    ;;
10726  esac
10727
10728cfgfile="${ofile}T"
10729  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10730  $rm -f "$cfgfile"
10731  { echo "$as_me:$LINENO: creating $ofile" >&5
10732echo "$as_me: creating $ofile" >&6;}
10733
10734  cat <<__EOF__ >> "$cfgfile"
10735#! $SHELL
10736
10737# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10738# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10739# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10740#
10741# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10742# Free Software Foundation, Inc.
10743#
10744# This file is part of GNU Libtool:
10745# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10746#
10747# This program is free software; you can redistribute it and/or modify
10748# it under the terms of the GNU General Public License as published by
10749# the Free Software Foundation; either version 2 of the License, or
10750# (at your option) any later version.
10751#
10752# This program is distributed in the hope that it will be useful, but
10753# WITHOUT ANY WARRANTY; without even the implied warranty of
10754# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10755# General Public License for more details.
10756#
10757# You should have received a copy of the GNU General Public License
10758# along with this program; if not, write to the Free Software
10759# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10760#
10761# As a special exception to the GNU General Public License, if you
10762# distribute this file as part of a program that contains a
10763# configuration script generated by Autoconf, you may include it under
10764# the same distribution terms that you use for the rest of that program.
10765
10766# A sed program that does not truncate output.
10767SED=$lt_SED
10768
10769# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10770Xsed="$SED -e 1s/^X//"
10771
10772# The HP-UX ksh and POSIX shell print the target directory to stdout
10773# if CDPATH is set.
10774(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10775
10776# The names of the tagged configurations supported by this script.
10777available_tags=
10778
10779# ### BEGIN LIBTOOL CONFIG
10780
10781# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10782
10783# Shell to use when invoking shell scripts.
10784SHELL=$lt_SHELL
10785
10786# Wh