source: ThirdParty/Glpk/stable/1.9/configure @ 3340

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

temporarily committing release candidate

File size: 768.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyGlpk 1.9.6.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2010 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyGlpk'
431PACKAGE_TARNAME='thirdpartyglpk'
432PACKAGE_VERSION='1.9.6'
433PACKAGE_STRING='ThirdPartyGlpk 1.9.6'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="glpk/src/glpk.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion GLPK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS glpkmajorver glpkminorver GLPKDIR GLPK_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyGlpk 1.9.6 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyGlpk 1.9.6:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-glpk compile project Glpk with debug compiler flags
1064
1065  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1066  --disable-pkg-config    disable use of pkg-config (if available)
1067  --enable-static[=PKGS]
1068                          build static libraries [default=no]
1069  --disable-dependency-tracking  speeds up one-time build
1070  --enable-dependency-tracking   do not reject slow dependency extractors
1071  --enable-maintainer-mode  enable make rules and dependencies not useful
1072                          (and sometimes confusing) to the casual installer
1073  --enable-shared[=PKGS]
1074                          build shared libraries [default=yes]
1075  --enable-fast-install[=PKGS]
1076                          optimize for fast installation [default=yes]
1077  --disable-libtool-lock  avoid locking (might break parallel builds)
1078  --disable-gmp           do not compile with GNU multiple precision library
1079  --enable-odbc           enable MathProg ODBC support [default=auto]
1080  --enable-mysql          enable MathProg MySQL support [default=auto]
1081
1082Optional Packages:
1083  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1084  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1085  --with-glpk-verbosity specify the debug verbosity level for project Glpk
1086  --with-glpk-checklevel specify the sanity check level for project Glpk
1087  --with-coin-instdir     prefix of installation directory for precompiled
1088                          COIN packages
1089  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1090  --with-pic              try to use only PIC/non-PIC objects [default=use
1091                          both]
1092  --with-tags[=TAGS]
1093                          include additional configurations [automatic]
1094
1095Some influential environment variables:
1096  CDEFS       Additional -D flags to be used when compiling C code.
1097  ADD_CFLAGS  Additional C compiler options
1098  DBG_CFLAGS  Debug C compiler options
1099  OPT_CFLAGS  Optimize C compiler options
1100  CC          C compiler command
1101  CFLAGS      C compiler flags
1102  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1103              nonstandard directory <lib dir>
1104  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105              headers in a nonstandard directory <include dir>
1106  MPICC       C MPI Compiler
1107  PKG_CONFIG  path to pkg-config utility
1108  CPP         C preprocessor
1109  CXX         C++ compiler command
1110  CXXFLAGS    C++ compiler flags
1111  CXXCPP      C++ preprocessor
1112  F77         Fortran 77 compiler command
1113  FFLAGS      Fortran 77 compiler flags
1114
1115Use these variables to override the choices made by `configure' or to help
1116it to find libraries and programs with nonstandard names/locations.
1117
1118Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1119_ACEOF
1120fi
1121
1122if test "$ac_init_help" = "recursive"; then
1123  # If there are subdirs, report their specific --help.
1124  ac_popdir=`pwd`
1125  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1126    test -d $ac_dir || continue
1127    ac_builddir=.
1128
1129if test "$ac_dir" != .; then
1130  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1131  # A "../" for each directory in $ac_dir_suffix.
1132  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1133else
1134  ac_dir_suffix= ac_top_builddir=
1135fi
1136
1137case $srcdir in
1138  .)  # No --srcdir option.  We are building in place.
1139    ac_srcdir=.
1140    if test -z "$ac_top_builddir"; then
1141       ac_top_srcdir=.
1142    else
1143       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1144    fi ;;
1145  [\\/]* | ?:[\\/]* )  # Absolute path.
1146    ac_srcdir=$srcdir$ac_dir_suffix;
1147    ac_top_srcdir=$srcdir ;;
1148  *) # Relative path.
1149    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1150    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1151esac
1152
1153# Do not use `cd foo && pwd` to compute absolute paths, because
1154# the directories may not exist.
1155case `pwd` in
1156.) ac_abs_builddir="$ac_dir";;
1157*)
1158  case "$ac_dir" in
1159  .) ac_abs_builddir=`pwd`;;
1160  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1161  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1162  esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_builddir=${ac_top_builddir}.;;
1166*)
1167  case ${ac_top_builddir}. in
1168  .) ac_abs_top_builddir=$ac_abs_builddir;;
1169  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1170  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1171  esac;;
1172esac
1173case $ac_abs_builddir in
1174.) ac_abs_srcdir=$ac_srcdir;;
1175*)
1176  case $ac_srcdir in
1177  .) ac_abs_srcdir=$ac_abs_builddir;;
1178  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1179  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1180  esac;;
1181esac
1182case $ac_abs_builddir in
1183.) ac_abs_top_srcdir=$ac_top_srcdir;;
1184*)
1185  case $ac_top_srcdir in
1186  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1187  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1188  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1189  esac;;
1190esac
1191
1192    cd $ac_dir
1193    # Check for guested configure; otherwise get Cygnus style configure.
1194    if test -f $ac_srcdir/configure.gnu; then
1195      echo
1196      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1197    elif test -f $ac_srcdir/configure; then
1198      echo
1199      $SHELL $ac_srcdir/configure  --help=recursive
1200    elif test -f $ac_srcdir/configure.ac ||
1201           test -f $ac_srcdir/configure.in; then
1202      echo
1203      $ac_configure --help
1204    else
1205      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1206    fi
1207    cd $ac_popdir
1208  done
1209fi
1210
1211test -n "$ac_init_help" && exit 0
1212if $ac_init_version; then
1213  cat <<\_ACEOF
1214ThirdPartyGlpk configure 1.9.6
1215generated by GNU Autoconf 2.59
1216
1217Copyright (C) 2003 Free Software Foundation, Inc.
1218This configure script is free software; the Free Software Foundation
1219gives unlimited permission to copy, distribute and modify it.
1220
1221
1222Copyright 2007-2010 Stefan Vigerske and others.
1223All Rights Reserved.
1224This file is part of the open source package Coin which is distributed
1225under the Eclipse Public License.
1226_ACEOF
1227  exit 0
1228fi
1229exec 5>config.log
1230cat >&5 <<_ACEOF
1231This file contains any messages produced by compilers while
1232running configure, to aid debugging if configure makes a mistake.
1233
1234It was created by ThirdPartyGlpk $as_me 1.9.6, which was
1235generated by GNU Autoconf 2.59.  Invocation command line was
1236
1237  $ $0 $@
1238
1239_ACEOF
1240{
1241cat <<_ASUNAME
1242## --------- ##
1243## Platform. ##
1244## --------- ##
1245
1246hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1247uname -m = `(uname -m) 2>/dev/null || echo unknown`
1248uname -r = `(uname -r) 2>/dev/null || echo unknown`
1249uname -s = `(uname -s) 2>/dev/null || echo unknown`
1250uname -v = `(uname -v) 2>/dev/null || echo unknown`
1251
1252/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1253/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1254
1255/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1256/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1257/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1258hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1259/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1260/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1261/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1262
1263_ASUNAME
1264
1265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266for as_dir in $PATH
1267do
1268  IFS=$as_save_IFS
1269  test -z "$as_dir" && as_dir=.
1270  echo "PATH: $as_dir"
1271done
1272
1273} >&5
1274
1275cat >&5 <<_ACEOF
1276
1277
1278## ----------- ##
1279## Core tests. ##
1280## ----------- ##
1281
1282_ACEOF
1283
1284
1285# Keep a trace of the command line.
1286# Strip out --no-create and --no-recursion so they do not pile up.
1287# Strip out --silent because we don't want to record it for future runs.
1288# Also quote any args containing shell meta-characters.
1289# Make two passes to allow for proper duplicate-argument suppression.
1290ac_configure_args=
1291ac_configure_args0=
1292ac_configure_args1=
1293ac_sep=
1294ac_must_keep_next=false
1295for ac_pass in 1 2
1296do
1297  for ac_arg
1298  do
1299    case $ac_arg in
1300    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1301    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302    | -silent | --silent | --silen | --sile | --sil)
1303      continue ;;
1304    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1306    esac
1307    case $ac_pass in
1308    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1309    2)
1310      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1311      if test $ac_must_keep_next = true; then
1312        ac_must_keep_next=false # Got value, back to normal.
1313      else
1314        case $ac_arg in
1315          *=* | --config-cache | -C | -disable-* | --disable-* \
1316          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1317          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1318          | -with-* | --with-* | -without-* | --without-* | --x)
1319            case "$ac_configure_args0 " in
1320              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1321            esac
1322            ;;
1323          -* ) ac_must_keep_next=true ;;
1324        esac
1325      fi
1326      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1327      # Get rid of the leading space.
1328      ac_sep=" "
1329      ;;
1330    esac
1331  done
1332done
1333$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1334$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1335
1336# When interrupted or exit'd, cleanup temporary files, and complete
1337# config.log.  We remove comments because anyway the quotes in there
1338# would cause problems or look ugly.
1339# WARNING: Be sure not to use single quotes in there, as some shells,
1340# such as our DU 5.0 friend, will then `close' the trap.
1341trap 'exit_status=$?
1342  # Save into config.log some information that might help in debugging.
1343  {
1344    echo
1345
1346    cat <<\_ASBOX
1347## ---------------- ##
1348## Cache variables. ##
1349## ---------------- ##
1350_ASBOX
1351    echo
1352    # The following way of writing the cache mishandles newlines in values,
1353{
1354  (set) 2>&1 |
1355    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1356    *ac_space=\ *)
1357      sed -n \
1358        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1359          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1360      ;;
1361    *)
1362      sed -n \
1363        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1364      ;;
1365    esac;
1366}
1367    echo
1368
1369    cat <<\_ASBOX
1370## ----------------- ##
1371## Output variables. ##
1372## ----------------- ##
1373_ASBOX
1374    echo
1375    for ac_var in $ac_subst_vars
1376    do
1377      eval ac_val=$`echo $ac_var`
1378      echo "$ac_var='"'"'$ac_val'"'"'"
1379    done | sort
1380    echo
1381
1382    if test -n "$ac_subst_files"; then
1383      cat <<\_ASBOX
1384## ------------- ##
1385## Output files. ##
1386## ------------- ##
1387_ASBOX
1388      echo
1389      for ac_var in $ac_subst_files
1390      do
1391        eval ac_val=$`echo $ac_var`
1392        echo "$ac_var='"'"'$ac_val'"'"'"
1393      done | sort
1394      echo
1395    fi
1396
1397    if test -s confdefs.h; then
1398      cat <<\_ASBOX
1399## ----------- ##
1400## confdefs.h. ##
1401## ----------- ##
1402_ASBOX
1403      echo
1404      sed "/^$/d" confdefs.h | sort
1405      echo
1406    fi
1407    test "$ac_signal" != 0 &&
1408      echo "$as_me: caught signal $ac_signal"
1409    echo "$as_me: exit $exit_status"
1410  } >&5
1411  rm -f core *.core &&
1412  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1413    exit $exit_status
1414     ' 0
1415for ac_signal in 1 2 13 15; do
1416  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1417done
1418ac_signal=0
1419
1420# confdefs.h avoids OS command line length limits that DEFS can exceed.
1421rm -rf conftest* confdefs.h
1422# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1423echo >confdefs.h
1424
1425# Predefined preprocessor variables.
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_NAME "$PACKAGE_NAME"
1429_ACEOF
1430
1431
1432cat >>confdefs.h <<_ACEOF
1433#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1434_ACEOF
1435
1436
1437cat >>confdefs.h <<_ACEOF
1438#define PACKAGE_VERSION "$PACKAGE_VERSION"
1439_ACEOF
1440
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_STRING "$PACKAGE_STRING"
1444_ACEOF
1445
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1449_ACEOF
1450
1451
1452# Let the site file select an alternate cache file if it wants to.
1453# Prefer explicitly selected file to automatically selected ones.
1454if test -z "$CONFIG_SITE"; then
1455  if test "x$prefix" != xNONE; then
1456    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1457  else
1458    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459  fi
1460fi
1461for ac_site_file in $CONFIG_SITE; do
1462  if test -r "$ac_site_file"; then
1463    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1464echo "$as_me: loading site script $ac_site_file" >&6;}
1465    sed 's/^/| /' "$ac_site_file" >&5
1466    . "$ac_site_file"
1467  fi
1468done
1469
1470if test -r "$cache_file"; then
1471  # Some versions of bash will fail to source /dev/null (special
1472  # files actually), so we avoid doing that.
1473  if test -f "$cache_file"; then
1474    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1475echo "$as_me: loading cache $cache_file" >&6;}
1476    case $cache_file in
1477      [\\/]* | ?:[\\/]* ) . $cache_file;;
1478      *)                      . ./$cache_file;;
1479    esac
1480  fi
1481else
1482  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1483echo "$as_me: creating cache $cache_file" >&6;}
1484  >$cache_file
1485fi
1486
1487# Check that the precious variables saved in the cache have kept the same
1488# value.
1489ac_cache_corrupted=false
1490for ac_var in `(set) 2>&1 |
1491               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493  eval ac_new_set=\$ac_env_${ac_var}_set
1494  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495  eval ac_new_val="\$ac_env_${ac_var}_value"
1496  case $ac_old_set,$ac_new_set in
1497    set,)
1498      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500      ac_cache_corrupted=: ;;
1501    ,set)
1502      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504      ac_cache_corrupted=: ;;
1505    ,);;
1506    *)
1507      if test "x$ac_old_val" != "x$ac_new_val"; then
1508        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511echo "$as_me:   former value:  $ac_old_val" >&2;}
1512        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513echo "$as_me:   current value: $ac_new_val" >&2;}
1514        ac_cache_corrupted=:
1515      fi;;
1516  esac
1517  # Pass precious variables to config.status.
1518  if test "$ac_new_set" = set; then
1519    case $ac_new_val in
1520    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522    *) ac_arg=$ac_var=$ac_new_val ;;
1523    esac
1524    case " $ac_configure_args " in
1525      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527    esac
1528  fi
1529done
1530if $ac_cache_corrupted; then
1531  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535   { (exit 1); exit 1; }; }
1536fi
1537
1538ac_ext=c
1539ac_cpp='$CPP $CPPFLAGS'
1540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573# List one file in the package so that the configure script can test
1574# whether the package is actually there
1575
1576
1577# Where should everything be installed by default?  Here, we want it
1578# to be installed directly in 'bin', 'lib', 'include' subdirectories
1579# of the directory where configure is run.  The default would be
1580# /usr/local.
1581
1582
1583
1584# As backup, we make sure we don't loose an FLIBS if it has been set
1585# by the user
1586save_FLIBS="$FLIBS"
1587
1588# A useful makefile conditional that is always false
1589
1590
1591if false; then
1592  ALWAYS_FALSE_TRUE=
1593  ALWAYS_FALSE_FALSE='#'
1594else
1595  ALWAYS_FALSE_TRUE='#'
1596  ALWAYS_FALSE_FALSE=
1597fi
1598
1599
1600# We set the following variable so that we know later in AC_COIN_FINALIZE
1601# that we are in a project main directory
1602coin_projectdir=yes
1603
1604# Set the project's version numbers
1605
1606
1607cat >>confdefs.h <<_ACEOF
1608#define GLPK_VERSION "$PACKAGE_VERSION"
1609_ACEOF
1610
1611
1612  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1613  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1614  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1615  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1616  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1617  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1618
1619cat >>confdefs.h <<_ACEOF
1620#define GLPK_VERSION_MAJOR $coin_majorver
1621_ACEOF
1622
1623
1624cat >>confdefs.h <<_ACEOF
1625#define GLPK_VERSION_MINOR $coin_minorver
1626_ACEOF
1627
1628
1629cat >>confdefs.h <<_ACEOF
1630#define GLPK_VERSION_RELEASE $coin_releasever
1631_ACEOF
1632
1633
1634  # We use the following variable to have a string with the upper case
1635  # version of the project name
1636  COIN_PRJCT=GLPK
1637
1638  # Set the project's SVN revision number. The complicated sed expression
1639  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1640  # as a single number.
1641  # Extract the first word of "svnversion", so it can be a program name with args.
1642set dummy svnversion; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_have_svnversion+set}" = set; then
1646  echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648  if test -n "$have_svnversion"; then
1649  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654  IFS=$as_save_IFS
1655  test -z "$as_dir" && as_dir=.
1656  for ac_exec_ext in '' $ac_executable_extensions; do
1657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658    ac_cv_prog_have_svnversion="yes"
1659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660    break 2
1661  fi
1662done
1663done
1664
1665  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1666fi
1667fi
1668have_svnversion=$ac_cv_prog_have_svnversion
1669if test -n "$have_svnversion"; then
1670  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1671echo "${ECHO_T}$have_svnversion" >&6
1672else
1673  echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677  if test "x$have_svnversion" = xyes; then
1678
1679    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1680    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1681      GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1682
1683cat >>confdefs.h <<_ACEOF
1684#define GLPK_SVN_REV $GLPK_SVN_REV
1685_ACEOF
1686
1687    fi
1688  fi
1689
1690
1691
1692# Capture libtool library version, if given.
1693 coin_libversion=10:6:9
1694
1695
1696
1697
1698#############################################################################
1699#                         Standard build tool stuff                         #
1700#############################################################################
1701
1702# Get the system type
1703ac_aux_dir=
1704for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1705  if test -f $ac_dir/install-sh; then
1706    ac_aux_dir=$ac_dir
1707    ac_install_sh="$ac_aux_dir/install-sh -c"
1708    break
1709  elif test -f $ac_dir/install.sh; then
1710    ac_aux_dir=$ac_dir
1711    ac_install_sh="$ac_aux_dir/install.sh -c"
1712    break
1713  elif test -f $ac_dir/shtool; then
1714    ac_aux_dir=$ac_dir
1715    ac_install_sh="$ac_aux_dir/shtool install -c"
1716    break
1717  fi
1718done
1719if test -z "$ac_aux_dir"; then
1720  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1721echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1722   { (exit 1); exit 1; }; }
1723fi
1724ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1725ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1726ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1727
1728# Make sure we can run config.sub.
1729$ac_config_sub sun4 >/dev/null 2>&1 ||
1730  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1731echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1732   { (exit 1); exit 1; }; }
1733
1734echo "$as_me:$LINENO: checking build system type" >&5
1735echo $ECHO_N "checking build system type... $ECHO_C" >&6
1736if test "${ac_cv_build+set}" = set; then
1737  echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739  ac_cv_build_alias=$build_alias
1740test -z "$ac_cv_build_alias" &&
1741  ac_cv_build_alias=`$ac_config_guess`
1742test -z "$ac_cv_build_alias" &&
1743  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1744echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1745   { (exit 1); exit 1; }; }
1746ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1747  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1748echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1749   { (exit 1); exit 1; }; }
1750
1751fi
1752echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1753echo "${ECHO_T}$ac_cv_build" >&6
1754build=$ac_cv_build
1755build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1756build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1757build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1758
1759
1760
1761#turn off warnings and pedantic mode since it seem to make trouble on solaris platform
1762#and we couldn't fix it anyway
1763coin_skip_warn_cflags=yes
1764
1765# Check if user wants to produce debugging code
1766
1767echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1768echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1769
1770# Check whether --enable-debug or --disable-debug was given.
1771if test "${enable_debug+set}" = set; then
1772  enableval="$enable_debug"
1773  case "${enableval}" in
1774   yes) coin_debug_compile=true
1775        if test "${enable_shared+set}" = set; then :; else
1776          enable_shared=no
1777        fi
1778        ;;
1779   no)  coin_debug_compile=false
1780        ;;
1781   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1782echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1783   { (exit 1); exit 1; }; }
1784        ;;
1785esac
1786else
1787  coin_debug_compile=false
1788fi;
1789
1790# Check whether --enable-debug-glpk or --disable-debug-glpk was given.
1791if test "${enable_debug_glpk+set}" = set; then
1792  enableval="$enable_debug_glpk"
1793  case "${enableval}" in
1794    yes) coin_debug_compile=true
1795         ;;
1796    no)  coin_debug_compile=false
1797         ;;
1798    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&5
1799echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;}
1800   { (exit 1); exit 1; }; }
1801         ;;
1802 esac
1803else
1804  :
1805fi;
1806
1807 # m4_ifvaln([Glpk],
1808
1809if test $coin_debug_compile = true; then
1810  echo "$as_me:$LINENO: result: yes" >&5
1811echo "${ECHO_T}yes" >&6
1812else
1813  echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
1815fi
1816
1817
1818# Check whether --with-glpk-verbosity or --without-glpk-verbosity was given.
1819if test "${with_glpk_verbosity+set}" = set; then
1820  withval="$with_glpk_verbosity"
1821  if test "$withval" = yes; then
1822                withval=1
1823              fi
1824              coin_glpk_verbosity=$withval
1825else
1826  coin_glpk_verbosity=0
1827fi;
1828
1829cat >>confdefs.h <<_ACEOF
1830#define COIN_GLPK_VERBOSITY $coin_glpk_verbosity
1831_ACEOF
1832
1833
1834
1835# Check whether --with-glpk-checklevel or --without-glpk-checklevel was given.
1836if test "${with_glpk_checklevel+set}" = set; then
1837  withval="$with_glpk_checklevel"
1838  if test "$withval" = yes; then
1839                withval=1
1840              fi
1841              coin_glpk_checklevel=$withval
1842else
1843  coin_glpk_checklevel=0
1844fi;
1845
1846cat >>confdefs.h <<_ACEOF
1847#define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel
1848_ACEOF
1849
1850
1851 # m4_ifvaln([Glpk],
1852
1853
1854
1855# Get the name of the C compiler
1856
1857
1858  # for backward compatibility
1859  # Check whether --enable-doscompile or --disable-doscompile was given.
1860if test "${enable_doscompile+set}" = set; then
1861  enableval="$enable_doscompile"
1862  enable_doscompile=$enableval
1863else
1864  enable_doscompile=no
1865fi;
1866
1867  # Check whether --enable-msvc or --disable-msvc was given.
1868if test "${enable_msvc+set}" = set; then
1869  enableval="$enable_msvc"
1870  enable_msvc=$enableval
1871else
1872  enable_msvc=no
1873     if test "$enable_doscompile" = msvc ; then
1874       enable_msvc=yes
1875     elif test "$enable_doscompile" != no ; then
1876       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1877echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1878   { (exit 1); exit 1; }; }
1879     fi
1880
1881fi;
1882
1883  if test "$enable_msvc" = MD; then
1884    enable_shared=yes
1885    enable_msvc=yes
1886  fi
1887
1888  if test "$enable_msvc" = yes; then
1889    case $build in
1890      *-cygwin* | *-mingw*) ;;
1891      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1892echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1893   { (exit 1); exit 1; }; } ;;
1894    esac
1895  fi
1896
1897
1898
1899ac_ext=c
1900ac_cpp='$CPP $CPPFLAGS'
1901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906# For consistency, we set the C compiler to the same value of the C++
1907# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1908if test x"$CXX" != x; then
1909  case "$CXX" in
1910    clang* ) ;;
1911    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1912      if test x"$CC" = x; then
1913        CC="$CXX"
1914        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1915echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1916      fi
1917      ;;
1918  esac
1919fi
1920
1921
1922
1923
1924
1925
1926coin_has_cc=yes
1927
1928save_cflags="$CFLAGS"
1929
1930# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1931# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1932# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1933# compiler. In this case, put cc after gcc.
1934
1935case $build in
1936  *-cygwin* | *-mingw*)
1937             if test "$enable_msvc" = yes ; then
1938               comps="icl cl gcc"
1939             else
1940               comps="gcc icl cl"
1941             fi ;;
1942  *-*-solaris*)
1943             # Extract the first word of "cc", so it can be a program name with args.
1944set dummy cc; ac_word=$2
1945echo "$as_me:$LINENO: checking for $ac_word" >&5
1946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1948  echo $ECHO_N "(cached) $ECHO_C" >&6
1949else
1950  if test -n "$sol_cc_compiler"; then
1951  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1952else
1953  ac_prog_rejected=no
1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955for as_dir in $PATH
1956do
1957  IFS=$as_save_IFS
1958  test -z "$as_dir" && as_dir=.
1959  for ac_exec_ext in '' $ac_executable_extensions; do
1960  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1962       ac_prog_rejected=yes
1963       continue
1964     fi
1965    ac_cv_prog_sol_cc_compiler="cc"
1966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967    break 2
1968  fi
1969done
1970done
1971
1972if test $ac_prog_rejected = yes; then
1973  # We found a bogon in the path, so make sure we never use it.
1974  set dummy $ac_cv_prog_sol_cc_compiler
1975  shift
1976  if test $# != 0; then
1977    # We chose a different compiler from the bogus one.
1978    # However, it has the same basename, so the bogon will be chosen
1979    # first if we set sol_cc_compiler to just the basename; use the full file name.
1980    shift
1981    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1982  fi
1983fi
1984fi
1985fi
1986sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1987if test -n "$sol_cc_compiler"; then
1988  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1989echo "${ECHO_T}$sol_cc_compiler" >&6
1990else
1991  echo "$as_me:$LINENO: result: no" >&5
1992echo "${ECHO_T}no" >&6
1993fi
1994
1995             if test "$sol_cc_compiler" = "cc" ; then
1996               comps="cc xlc gcc pgcc icc"
1997             else
1998               comps="xlc gcc pgcc icc cc"
1999             fi
2000             ;;
2001  *-*-darwin*) comps="clang gcc cc" ;;
2002  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2003  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2004  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2005esac
2006
2007# We delete the cached value, since the test might not have been
2008# performed with our choice of compilers earlier
2009$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2010# AC_MSG_NOTICE([C compiler candidates: $comps])
2011ac_ext=c
2012ac_cpp='$CPP $CPPFLAGS'
2013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016if test -n "$ac_tool_prefix"; then
2017  for ac_prog in $comps
2018  do
2019    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2020set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2021echo "$as_me:$LINENO: checking for $ac_word" >&5
2022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023if test "${ac_cv_prog_CC+set}" = set; then
2024  echo $ECHO_N "(cached) $ECHO_C" >&6
2025else
2026  if test -n "$CC"; then
2027  ac_cv_prog_CC="$CC" # Let the user override the test.
2028else
2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030for as_dir in $PATH
2031do
2032  IFS=$as_save_IFS
2033  test -z "$as_dir" && as_dir=.
2034  for ac_exec_ext in '' $ac_executable_extensions; do
2035  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038    break 2
2039  fi
2040done
2041done
2042
2043fi
2044fi
2045CC=$ac_cv_prog_CC
2046if test -n "$CC"; then
2047  echo "$as_me:$LINENO: result: $CC" >&5
2048echo "${ECHO_T}$CC" >&6
2049else
2050  echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6
2052fi
2053
2054    test -n "$CC" && break
2055  done
2056fi
2057if test -z "$CC"; then
2058  ac_ct_CC=$CC
2059  for ac_prog in $comps
2060do
2061  # Extract the first word of "$ac_prog", so it can be a program name with args.
2062set dummy $ac_prog; ac_word=$2
2063echo "$as_me:$LINENO: checking for $ac_word" >&5
2064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066  echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
2068  if test -n "$ac_ct_CC"; then
2069  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2070else
2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072for as_dir in $PATH
2073do
2074  IFS=$as_save_IFS
2075  test -z "$as_dir" && as_dir=.
2076  for ac_exec_ext in '' $ac_executable_extensions; do
2077  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078    ac_cv_prog_ac_ct_CC="$ac_prog"
2079    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080    break 2
2081  fi
2082done
2083done
2084
2085fi
2086fi
2087ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088if test -n "$ac_ct_CC"; then
2089  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090echo "${ECHO_T}$ac_ct_CC" >&6
2091else
2092  echo "$as_me:$LINENO: result: no" >&5
2093echo "${ECHO_T}no" >&6
2094fi
2095
2096  test -n "$ac_ct_CC" && break
2097done
2098
2099  CC=$ac_ct_CC
2100fi
2101
2102
2103test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104See \`config.log' for more details." >&5
2105echo "$as_me: error: no acceptable C compiler found in \$PATH
2106See \`config.log' for more details." >&2;}
2107   { (exit 1); exit 1; }; }
2108
2109# Provide some information about the compiler.
2110echo "$as_me:$LINENO:" \
2111     "checking for C compiler version" >&5
2112ac_compiler=`set X $ac_compile; echo $2`
2113{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2114  (eval $ac_compiler --version </dev/null >&5) 2>&5
2115  ac_status=$?
2116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117  (exit $ac_status); }
2118{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2119  (eval $ac_compiler -v </dev/null >&5) 2>&5
2120  ac_status=$?
2121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122  (exit $ac_status); }
2123{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2124  (eval $ac_compiler -V </dev/null >&5) 2>&5
2125  ac_status=$?
2126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127  (exit $ac_status); }
2128
2129cat >conftest.$ac_ext <<_ACEOF
2130/* confdefs.h.  */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
2134/* end confdefs.h.  */
2135
2136int
2137main ()
2138{
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144ac_clean_files_save=$ac_clean_files
2145ac_clean_files="$ac_clean_files a.out a.exe b.out"
2146# Try to create an executable without -o first, disregard a.out.
2147# It will help us diagnose broken compilers, and finding out an intuition
2148# of exeext.
2149echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2150echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2151ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2152if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2153  (eval $ac_link_default) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); }; then
2157  # Find the output, starting from the most likely.  This scheme is
2158# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2159# resort.
2160
2161# Be careful to initialize this variable, since it used to be cached.
2162# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2163ac_cv_exeext=
2164# b.out is created by i960 compilers.
2165for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2166do
2167  test -f "$ac_file" || continue
2168  case $ac_file in
2169    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2170        ;;
2171    conftest.$ac_ext )
2172        # This is the source file.
2173        ;;
2174    [ab].out )
2175        # We found the default executable, but exeext='' is most
2176        # certainly right.
2177        break;;
2178    *.* )
2179        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180        # FIXME: I believe we export ac_cv_exeext for Libtool,
2181        # but it would be cool to find out if it's true.  Does anybody
2182        # maintain Libtool? --akim.
2183        export ac_cv_exeext
2184        break;;
2185    * )
2186        break;;
2187  esac
2188done
2189else
2190  echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2194See \`config.log' for more details." >&5
2195echo "$as_me: error: C compiler cannot create executables
2196See \`config.log' for more details." >&2;}
2197   { (exit 77); exit 77; }; }
2198fi
2199
2200ac_exeext=$ac_cv_exeext
2201echo "$as_me:$LINENO: result: $ac_file" >&5
2202echo "${ECHO_T}$ac_file" >&6
2203
2204# Check the compiler produces executables we can run.  If not, either
2205# the compiler is broken, or we cross compile.
2206echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2207echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2208# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2209# If not cross compiling, check that we can run a simple program.
2210if test "$cross_compiling" != yes; then
2211  if { ac_try='./$ac_file'
2212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213  (eval $ac_try) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }; }; then
2217    cross_compiling=no
2218  else
2219    if test "$cross_compiling" = maybe; then
2220        cross_compiling=yes
2221    else
2222        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223If you meant to cross compile, use \`--host'.
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: cannot run C compiled programs.
2226If you meant to cross compile, use \`--host'.
2227See \`config.log' for more details." >&2;}
2228   { (exit 1); exit 1; }; }
2229    fi
2230  fi
2231fi
2232echo "$as_me:$LINENO: result: yes" >&5
2233echo "${ECHO_T}yes" >&6
2234
2235rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236ac_clean_files=$ac_clean_files_save
2237# Check the compiler produces executables we can run.  If not, either
2238# the compiler is broken, or we cross compile.
2239echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2241echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242echo "${ECHO_T}$cross_compiling" >&6
2243
2244echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2247  (eval $ac_link) 2>&5
2248  ac_status=$?
2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250  (exit $ac_status); }; then
2251  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2252# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2253# work properly (i.e., refer to `conftest.exe'), while it won't with
2254# `rm'.
2255for ac_file in conftest.exe conftest conftest.*; do
2256  test -f "$ac_file" || continue
2257  case $ac_file in
2258    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2259    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2260          export ac_cv_exeext
2261          break;;
2262    * ) break;;
2263  esac
2264done
2265else
2266  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2267See \`config.log' for more details." >&5
2268echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2269See \`config.log' for more details." >&2;}
2270   { (exit 1); exit 1; }; }
2271fi
2272
2273rm -f conftest$ac_cv_exeext
2274echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2275echo "${ECHO_T}$ac_cv_exeext" >&6
2276
2277rm -f conftest.$ac_ext
2278EXEEXT=$ac_cv_exeext
2279ac_exeext=$EXEEXT
2280echo "$as_me:$LINENO: checking for suffix of object files" >&5
2281echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2282if test "${ac_cv_objext+set}" = set; then
2283  echo $ECHO_N "(cached) $ECHO_C" >&6
2284else
2285  cat >conftest.$ac_ext <<_ACEOF
2286/* confdefs.h.  */
2287_ACEOF
2288cat confdefs.h >>conftest.$ac_ext
2289cat >>conftest.$ac_ext <<_ACEOF
2290/* end confdefs.h.  */
2291
2292int
2293main ()
2294{
2295
2296  ;
2297  return 0;
2298}
2299_ACEOF
2300rm -f conftest.o conftest.obj
2301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302  (eval $ac_compile) 2>&5
2303  ac_status=$?
2304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305  (exit $ac_status); }; then
2306  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2307  case $ac_file in
2308    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2309    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2310       break;;
2311  esac
2312done
2313else
2314  echo "$as_me: failed program was:" >&5
2315sed 's/^/| /' conftest.$ac_ext >&5
2316
2317{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2318See \`config.log' for more details." >&5
2319echo "$as_me: error: cannot compute suffix of object files: cannot compile
2320See \`config.log' for more details." >&2;}
2321   { (exit 1); exit 1; }; }
2322fi
2323
2324rm -f conftest.$ac_cv_objext conftest.$ac_ext
2325fi
2326echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2327echo "${ECHO_T}$ac_cv_objext" >&6
2328OBJEXT=$ac_cv_objext
2329ac_objext=$OBJEXT
2330echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2331echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2332if test "${ac_cv_c_compiler_gnu+set}" = set; then
2333  echo $ECHO_N "(cached) $ECHO_C" >&6
2334else
2335  cat >conftest.$ac_ext <<_ACEOF
2336/* confdefs.h.  */
2337_ACEOF
2338cat confdefs.h >>conftest.$ac_ext
2339cat >>conftest.$ac_ext <<_ACEOF
2340/* end confdefs.h.  */
2341
2342int
2343main ()
2344{
2345#ifndef __GNUC__
2346       choke me
2347#endif
2348
2349  ;
2350  return 0;
2351}
2352_ACEOF
2353rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355  (eval $ac_compile) 2>conftest.er1
2356  ac_status=$?
2357  grep -v '^ *+' conftest.er1 >conftest.err
2358  rm -f conftest.er1
2359  cat conftest.err >&5
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); } &&
2362         { ac_try='test -z "$ac_c_werror_flag"
2363                         || test ! -s conftest.err'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; } &&
2369         { ac_try='test -s conftest.$ac_objext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  ac_compiler_gnu=yes
2376else
2377  echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380ac_compiler_gnu=no
2381fi
2382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2383ac_cv_c_compiler_gnu=$ac_compiler_gnu
2384
2385fi
2386echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2387echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2388GCC=`test $ac_compiler_gnu = yes && echo yes`
2389ac_test_CFLAGS=${CFLAGS+set}
2390ac_save_CFLAGS=$CFLAGS
2391CFLAGS="-g"
2392echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2393echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2394if test "${ac_cv_prog_cc_g+set}" = set; then
2395  echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397  cat >conftest.$ac_ext <<_ACEOF
2398/* confdefs.h.  */
2399_ACEOF
2400cat confdefs.h >>conftest.$ac_ext
2401cat >>conftest.$ac_ext <<_ACEOF
2402/* end confdefs.h.  */
2403
2404int
2405main ()
2406{
2407
2408  ;
2409  return 0;
2410}
2411_ACEOF
2412rm -f conftest.$ac_objext
2413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414  (eval $ac_compile) 2>conftest.er1
2415  ac_status=$?
2416  grep -v '^ *+' conftest.er1 >conftest.err
2417  rm -f conftest.er1
2418  cat conftest.err >&5
2419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420  (exit $ac_status); } &&
2421         { ac_try='test -z "$ac_c_werror_flag"
2422                         || test ! -s conftest.err'
2423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424  (eval $ac_try) 2>&5
2425  ac_status=$?
2426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427  (exit $ac_status); }; } &&
2428         { ac_try='test -s conftest.$ac_objext'
2429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430  (eval $ac_try) 2>&5
2431  ac_status=$?
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); }; }; then
2434  ac_cv_prog_cc_g=yes
2435else
2436  echo "$as_me: failed program was:" >&5
2437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439ac_cv_prog_cc_g=no
2440fi
2441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442fi
2443echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2444echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2445if test "$ac_test_CFLAGS" = set; then
2446  CFLAGS=$ac_save_CFLAGS
2447elif test $ac_cv_prog_cc_g = yes; then
2448  if test "$GCC" = yes; then
2449    CFLAGS="-g -O2"
2450  else
2451    CFLAGS="-g"
2452  fi
2453else
2454  if test "$GCC" = yes; then
2455    CFLAGS="-O2"
2456  else
2457    CFLAGS=
2458  fi
2459fi
2460echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2461echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2462if test "${ac_cv_prog_cc_stdc+set}" = set; then
2463  echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465  ac_cv_prog_cc_stdc=no
2466ac_save_CC=$CC
2467cat >conftest.$ac_ext <<_ACEOF
2468/* confdefs.h.  */
2469_ACEOF
2470cat confdefs.h >>conftest.$ac_ext
2471cat >>conftest.$ac_ext <<_ACEOF
2472/* end confdefs.h.  */
2473#include <stdarg.h>
2474#include <stdio.h>
2475#include <sys/types.h>
2476#include <sys/stat.h>
2477/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2478struct buf { int x; };
2479FILE * (*rcsopen) (struct buf *, struct stat *, int);
2480static char *e (p, i)
2481     char **p;
2482     int i;
2483{
2484  return p[i];
2485}
2486static char *f (char * (*g) (char **, int), char **p, ...)
2487{
2488  char *s;
2489  va_list v;
2490  va_start (v,p);
2491  s = g (p, va_arg (v,int));
2492  va_end (v);
2493  return s;
2494}
2495
2496/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2497   function prototypes and stuff, but not '\xHH' hex character constants.
2498   These don't provoke an error unfortunately, instead are silently treated
2499   as 'x'.  The following induces an error, until -std1 is added to get
2500   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2501   array size at least.  It's necessary to write '\x00'==0 to get something
2502   that's true only with -std1.  */
2503int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2504
2505int test (int i, double x);
2506struct s1 {int (*f) (int a);};
2507struct s2 {int (*f) (double a);};
2508int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2509int argc;
2510char **argv;
2511int
2512main ()
2513{
2514return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2515  ;
2516  return 0;
2517}
2518_ACEOF
2519# Don't try gcc -ansi; that turns off useful extensions and
2520# breaks some systems' header files.
2521# AIX                   -qlanglvl=ansi
2522# Ultrix and OSF/1      -std1
2523# HP-UX 10.20 and later -Ae
2524# HP-UX older versions  -Aa -D_HPUX_SOURCE
2525# SVR4                  -Xc -D__EXTENSIONS__
2526for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2527do
2528  CC="$ac_save_CC $ac_arg"
2529  rm -f conftest.$ac_objext
2530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531  (eval $ac_compile) 2>conftest.er1
2532  ac_status=$?
2533  grep -v '^ *+' conftest.er1 >conftest.err
2534  rm -f conftest.er1
2535  cat conftest.err >&5
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); } &&
2538         { ac_try='test -z "$ac_c_werror_flag"
2539                         || test ! -s conftest.err'
2540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541  (eval $ac_try) 2>&5
2542  ac_status=$?
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); }; } &&
2545         { ac_try='test -s conftest.$ac_objext'
2546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547  (eval $ac_try) 2>&5
2548  ac_status=$?
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); }; }; then
2551  ac_cv_prog_cc_stdc=$ac_arg
2552break
2553else
2554  echo "$as_me: failed program was:" >&5
2555sed 's/^/| /' conftest.$ac_ext >&5
2556
2557fi
2558rm -f conftest.err conftest.$ac_objext
2559done
2560rm -f conftest.$ac_ext conftest.$ac_objext
2561CC=$ac_save_CC
2562
2563fi
2564
2565case "x$ac_cv_prog_cc_stdc" in
2566  x|xno)
2567    echo "$as_me:$LINENO: result: none needed" >&5
2568echo "${ECHO_T}none needed" >&6 ;;
2569  *)
2570    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2571echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2572    CC="$CC $ac_cv_prog_cc_stdc" ;;
2573esac
2574
2575# Some people use a C++ compiler to compile C.  Since we use `exit',
2576# in C++ we need to declare it.  In case someone uses the same compiler
2577# for both compiling C and C++ we need to have the C++ compiler decide
2578# the declaration of exit, since it's the most demanding environment.
2579cat >conftest.$ac_ext <<_ACEOF
2580#ifndef __cplusplus
2581  choke me
2582#endif
2583_ACEOF
2584rm -f conftest.$ac_objext
2585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586  (eval $ac_compile) 2>conftest.er1
2587  ac_status=$?
2588  grep -v '^ *+' conftest.er1 >conftest.err
2589  rm -f conftest.er1
2590  cat conftest.err >&5
2591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592  (exit $ac_status); } &&
2593         { ac_try='test -z "$ac_c_werror_flag"
2594                         || test ! -s conftest.err'
2595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596  (eval $ac_try) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }; } &&
2600         { ac_try='test -s conftest.$ac_objext'
2601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602  (eval $ac_try) 2>&5
2603  ac_status=$?
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); }; }; then
2606  for ac_declaration in \
2607   '' \
2608   'extern "C" void std::exit (int) throw (); using std::exit;' \
2609   'extern "C" void std::exit (int); using std::exit;' \
2610   'extern "C" void exit (int) throw ();' \
2611   'extern "C" void exit (int);' \
2612   'void exit (int);'
2613do
2614  cat >conftest.$ac_ext <<_ACEOF
2615/* confdefs.h.  */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>conftest.$ac_ext <<_ACEOF
2619/* end confdefs.h.  */
2620$ac_declaration
2621#include <stdlib.h>
2622int
2623main ()
2624{
2625exit (42);
2626  ;
2627  return 0;
2628}
2629_ACEOF
2630rm -f conftest.$ac_objext
2631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632  (eval $ac_compile) 2>conftest.er1
2633  ac_status=$?
2634  grep -v '^ *+' conftest.er1 >conftest.err
2635  rm -f conftest.er1
2636  cat conftest.err >&5
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); } &&
2639         { ac_try='test -z "$ac_c_werror_flag"
2640                         || test ! -s conftest.err'
2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642  (eval $ac_try) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; } &&
2646         { ac_try='test -s conftest.$ac_objext'
2647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648  (eval $ac_try) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; }; then
2652  :
2653else
2654  echo "$as_me: failed program was:" >&5
2655sed 's/^/| /' conftest.$ac_ext >&5
2656
2657continue
2658fi
2659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660  cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h.  */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h.  */
2666$ac_declaration
2667int
2668main ()
2669{
2670exit (42);
2671  ;
2672  return 0;
2673}
2674_ACEOF
2675rm -f conftest.$ac_objext
2676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677  (eval $ac_compile) 2>conftest.er1
2678  ac_status=$?
2679  grep -v '^ *+' conftest.er1 >conftest.err
2680  rm -f conftest.er1
2681  cat conftest.err >&5
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); } &&
2684         { ac_try='test -z "$ac_c_werror_flag"
2685                         || test ! -s conftest.err'
2686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687  (eval $ac_try) 2>&5
2688  ac_status=$?
2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690  (exit $ac_status); }; } &&
2691         { ac_try='test -s conftest.$ac_objext'
2692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693  (eval $ac_try) 2>&5
2694  ac_status=$?
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); }; }; then
2697  break
2698else
2699  echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702fi
2703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704done
2705rm -f conftest*
2706if test -n "$ac_declaration"; then
2707  echo '#ifdef __cplusplus' >>confdefs.h
2708  echo $ac_declaration      >>confdefs.h
2709  echo '#endif'             >>confdefs.h
2710fi
2711
2712else
2713  echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
2715
2716fi
2717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718ac_ext=c
2719ac_cpp='$CPP $CPPFLAGS'
2720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723
2724if test -z "$CC" ; then
2725  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2726echo "$as_me: error: Failed to find a C compiler!" >&2;}
2727   { (exit 1); exit 1; }; }
2728fi
2729# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2730case "$CC" in
2731  clang* ) ;;
2732  cl* | */cl* | CL* | */CL* )
2733    if test "$ac_cv_prog_cc_g" = yes ; then
2734      ac_cv_prog_cc_g=no
2735      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2736echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2737    fi ;;
2738  * )
2739    if test x"$CYGPATH_W" = x ; then
2740      CYGPATH_W=echo
2741    fi
2742    ;;
2743esac
2744CFLAGS="$save_cflags"
2745
2746# add automake conditional so we can recognize cl compiler in makefile
2747coin_cc_is_cl=false
2748case "$CC" in
2749  clang* ) ;;
2750  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2751    coin_cc_is_cl=true
2752    ;;
2753esac
2754
2755
2756if test $coin_cc_is_cl = true; then
2757  COIN_CC_IS_CL_TRUE=
2758  COIN_CC_IS_CL_FALSE='#'
2759else
2760  COIN_CC_IS_CL_TRUE='#'
2761  COIN_CC_IS_CL_FALSE=
2762fi
2763
2764
2765# Check if a project specific CFLAGS variable has been set
2766if test x$COIN_PRJCT != x; then
2767  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2768  if test x$coin_tmp = xset; then
2769    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2770  fi
2771fi
2772
2773if test x"$CFLAGS" = x; then
2774
2775  coin_add_cflags=
2776  coin_opt_cflags=
2777  coin_dbg_cflags=
2778  coin_warn_cflags=
2779
2780  if test "$GCC" = "yes"; then
2781    case "$CC" in
2782      icc* | */icc*)
2783        ;;
2784      *)
2785        coin_opt_cflags="-O3"
2786        coin_add_cflags="-pipe"
2787        coin_dbg_cflags="-g -O0"
2788        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2789        case $build in
2790          *-darwin*)
2791            ;;
2792          *)
2793            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2794            ;;
2795        esac
2796    esac
2797  fi
2798  if test -z "$coin_opt_cflags"; then
2799    case $build in
2800      *-cygwin* | *-mingw*)
2801        case "$CC" in
2802          clang* ) ;;
2803          cl* | */cl* | CL* | */CL*)
2804            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2805              coin_opt_cflags='-MD -O2'
2806              coin_dbg_cflags='-MDd'
2807            else
2808              coin_opt_cflags='-MT -O2'
2809              coin_dbg_cflags='-MTd'
2810            fi
2811            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2812            ;;
2813          icl* | */icl* | ICL* | */ICL*)
2814            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2815              coin_opt_cflags='-MD -Ox'
2816              coin_dbg_cflags='-MDd -debug'
2817            else
2818              coin_opt_cflags='-MT -Ox'
2819              coin_dbg_cflags='-MTd -debug'
2820            fi
2821            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2822            ;;
2823        esac
2824        ;;
2825      *-linux-*)
2826        case "$CC" in
2827          icc* | */icc*)
2828            coin_opt_cflags="-O3 -ip -mp1"
2829            coin_add_cflags=""
2830            coin_dbg_cflags="-g"
2831            # Check if -i_dynamic is necessary (for new glibc library)
2832            CFLAGS=
2833            cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h.  */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h.  */
2839
2840int
2841main ()
2842{
2843int i=0; i++;
2844  ;
2845  return 0;
2846}
2847_ACEOF
2848rm -f conftest.$ac_objext conftest$ac_exeext
2849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2850  (eval $ac_link) 2>conftest.er1
2851  ac_status=$?
2852  grep -v '^ *+' conftest.er1 >conftest.err
2853  rm -f conftest.er1
2854  cat conftest.err >&5
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); } &&
2857         { ac_try='test -z "$ac_c_werror_flag"
2858                         || test ! -s conftest.err'
2859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860  (eval $ac_try) 2>&5
2861  ac_status=$?
2862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863  (exit $ac_status); }; } &&
2864         { ac_try='test -s conftest$ac_exeext'
2865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866  (eval $ac_try) 2>&5
2867  ac_status=$?
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); }; }; then
2870  :
2871else
2872  echo "$as_me: failed program was:" >&5
2873sed 's/^/| /' conftest.$ac_ext >&5
2874
2875coin_add_cflags="-i_dynamic $coin_add_cflags"
2876fi
2877rm -f conftest.err conftest.$ac_objext \
2878      conftest$ac_exeext conftest.$ac_ext
2879            ;;
2880          pgcc* | */pgcc*)
2881            coin_opt_cflags="-fast"
2882            coin_add_cflags="-Kieee -pc 64"
2883            coin_dbg_cflags="-g"
2884            ;;
2885        esac
2886        ;;
2887      *-ibm-*)
2888        case "$CC" in
2889          xlc* | */xlc* | mpxlc* | */mpxlc*)
2890            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2891            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2892            coin_dbg_cflags="-g"
2893          ;;
2894        esac
2895        ;;
2896      *-hp-*)
2897        coin_opt_cflags="-O"
2898        coin_add_cflags="-Ae"
2899        coin_dbg_cflags="-g"
2900        ;;
2901      *-*-solaris*)
2902        coin_opt_cflags="-xO4"
2903        coin_dbg_cflags="-g"
2904        ;;
2905      *-sgi-*)
2906        coin_opt_cflags="-O -OPT:Olimit=0"
2907        coin_dbg_cflags="-g"
2908        ;;
2909    esac
2910  fi
2911
2912  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2913    coin_dbg_cflags="-g"
2914  fi
2915
2916  if test -z "$coin_opt_cflags"; then
2917    # Try if -O option works if nothing else is set
2918    CFLAGS="-O"
2919    cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h.  */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h.  */
2925
2926int
2927main ()
2928{
2929int i=0; i++;
2930  ;
2931  return 0;
2932}
2933_ACEOF
2934rm -f conftest.$ac_objext conftest$ac_exeext
2935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2936  (eval $ac_link) 2>conftest.er1
2937  ac_status=$?
2938  grep -v '^ *+' conftest.er1 >conftest.err
2939  rm -f conftest.er1
2940  cat conftest.err >&5
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); } &&
2943         { ac_try='test -z "$ac_c_werror_flag"
2944                         || test ! -s conftest.err'
2945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946  (eval $ac_try) 2>&5
2947  ac_status=$?
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); }; } &&
2950         { ac_try='test -s conftest$ac_exeext'
2951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952  (eval $ac_try) 2>&5
2953  ac_status=$?
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); }; }; then
2956  coin_opt_cflags="-O"
2957else
2958  echo "$as_me: failed program was:" >&5
2959sed 's/^/| /' conftest.$ac_ext >&5
2960
2961fi
2962rm -f conftest.err conftest.$ac_objext \
2963      conftest$ac_exeext conftest.$ac_ext
2964  fi
2965
2966  # if PM doesn't want the warning messages, take them out
2967  if test x"$coin_skip_warn_cflags" = xyes; then
2968    coin_warn_cflags=
2969  fi
2970
2971  if test x${DBG_CFLAGS+set} != xset; then
2972    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2973  fi
2974  if test x${OPT_CFLAGS+set} != xset; then
2975    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2976  fi
2977
2978  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2979  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2980
2981  if test "$coin_debug_compile" = "true"; then
2982    CFLAGS="$DBG_CFLAGS"
2983  else
2984    CFLAGS="$OPT_CFLAGS"
2985  fi
2986else
2987  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2988  if test x${DBG_CFLAGS+set} != xset; then
2989    DBG_CFLAGS="$CFLAGS"
2990  fi
2991  if test x${OPT_CFLAGS+set} != xset; then
2992    OPT_CFLAGS="$CFLAGS"
2993  fi
2994fi
2995
2996# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2997if test x$COIN_PRJCT != x; then
2998  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2999fi
3000
3001# Try if CFLAGS works
3002save_CFLAGS="$CFLAGS"
3003cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h.  */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h.  */
3009
3010int
3011main ()
3012{
3013int i=0; i++;
3014  ;
3015  return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext conftest$ac_exeext
3019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020  (eval $ac_link) 2>conftest.er1
3021  ac_status=$?
3022  grep -v '^ *+' conftest.er1 >conftest.err
3023  rm -f conftest.er1
3024  cat conftest.err >&5
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); } &&
3027         { ac_try='test -z "$ac_c_werror_flag"
3028                         || test ! -s conftest.err'
3029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030  (eval $ac_try) 2>&5
3031  ac_status=$?
3032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033  (exit $ac_status); }; } &&
3034         { ac_try='test -s conftest$ac_exeext'
3035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036  (eval $ac_try) 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }; }; then
3040  :
3041else
3042  echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
3045CFLAGS=
3046fi
3047rm -f conftest.err conftest.$ac_objext \
3048      conftest$ac_exeext conftest.$ac_ext
3049if test -z "$CFLAGS"; then
3050  { 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
3051echo "$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;}
3052  CFLAGS='-O'
3053  cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h.  */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063int i=0; i++;
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext conftest$ac_exeext
3069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3070  (eval $ac_link) 2>conftest.er1
3071  ac_status=$?
3072  grep -v '^ *+' conftest.er1 >conftest.err
3073  rm -f conftest.er1
3074  cat conftest.err >&5
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); } &&
3077         { ac_try='test -z "$ac_c_werror_flag"
3078                         || test ! -s conftest.err'
3079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080  (eval $ac_try) 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); }; } &&
3084         { ac_try='test -s conftest$ac_exeext'
3085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086  (eval $ac_try) 2>&5
3087  ac_status=$?
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); }; }; then
3090  :
3091else
3092  echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095CFLAGS=
3096fi
3097rm -f conftest.err conftest.$ac_objext \
3098      conftest$ac_exeext conftest.$ac_ext
3099  if test -z "$CFLAGS"; then
3100    { 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
3101echo "$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;}
3102  fi
3103fi
3104
3105{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3106echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3107
3108
3109if test x"$MPICC" = x; then :; else
3110  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3111echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3112  CC="$MPICC"
3113fi
3114
3115# Correct the LD variable if we are using the MS or Intel-windows compiler
3116case "$CC" in
3117  clang* ) ;;
3118  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3119    LD=link
3120    ;;
3121esac
3122
3123ac_ext=c
3124ac_cpp='$CPP $CPPFLAGS'
3125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128
3129
3130
3131# Check if pkg-config is available (to setup addlibs file)
3132
3133
3134# Check whether --enable-pkg-config or --disable-pkg-config was given.
3135if test "${enable_pkg_config+set}" = set; then
3136  enableval="$enable_pkg_config"
3137  use_pkgconfig="$enableval"
3138else
3139  if test x$coin_cc_is_cl = xtrue; then
3140     use_pkgconfig=no
3141   else
3142     use_pkgconfig=yes
3143   fi
3144fi;
3145
3146if test $use_pkgconfig = yes ; then
3147  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3148    if test -n "$ac_tool_prefix"; then
3149  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3150set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3151echo "$as_me:$LINENO: checking for $ac_word" >&5
3152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3154  echo $ECHO_N "(cached) $ECHO_C" >&6
3155else
3156  if test -n "$PKG_CONFIG"; then
3157  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3158else
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162  IFS=$as_save_IFS
3163  test -z "$as_dir" && as_dir=.
3164  for ac_exec_ext in '' $ac_executable_extensions; do
3165  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168    break 2
3169  fi
3170done
3171done
3172
3173fi
3174fi
3175PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3176if test -n "$PKG_CONFIG"; then
3177  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3178echo "${ECHO_T}$PKG_CONFIG" >&6
3179else
3180  echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
3182fi
3183
3184fi
3185if test -z "$ac_cv_prog_PKG_CONFIG"; then
3186  ac_ct_PKG_CONFIG=$PKG_CONFIG
3187  # Extract the first word of "pkg-config", so it can be a program name with args.
3188set dummy pkg-config; ac_word=$2
3189echo "$as_me:$LINENO: checking for $ac_word" >&5
3190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3192  echo $ECHO_N "(cached) $ECHO_C" >&6
3193else
3194  if test -n "$ac_ct_PKG_CONFIG"; then
3195  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3196else
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200  IFS=$as_save_IFS
3201  test -z "$as_dir" && as_dir=.
3202  for ac_exec_ext in '' $ac_executable_extensions; do
3203  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206    break 2
3207  fi
3208done
3209done
3210
3211fi
3212fi
3213ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3214if test -n "$ac_ct_PKG_CONFIG"; then
3215  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3216echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3217else
3218  echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
3220fi
3221
3222  PKG_CONFIG=$ac_ct_PKG_CONFIG
3223else
3224  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3225fi
3226
3227  fi
3228  if test -n "$PKG_CONFIG"; then
3229    _pkg_min_version=0.16.0
3230    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3231echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3232    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3233      echo "$as_me:$LINENO: result: yes" >&5
3234echo "${ECHO_T}yes" >&6
3235    else
3236      echo "$as_me:$LINENO: result: no" >&5
3237echo "${ECHO_T}no" >&6
3238      PKG_CONFIG=""
3239    fi
3240  fi
3241
3242  # check if pkg-config supports the short-errors flag
3243  if test -n "$PKG_CONFIG" && \
3244    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3245    pkg_short_errors=" --short-errors "
3246  else
3247    pkg_short_errors=""
3248  fi
3249fi
3250
3251
3252
3253if test -n "$PKG_CONFIG"; then
3254  COIN_HAS_PKGCONFIG_TRUE=
3255  COIN_HAS_PKGCONFIG_FALSE='#'
3256else
3257  COIN_HAS_PKGCONFIG_TRUE='#'
3258  COIN_HAS_PKGCONFIG_FALSE=
3259fi
3260
3261
3262
3263# assemble pkg-config search path for installed projects
3264COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3265
3266# 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
3267# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3268# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3269if test "x${prefix}" = xNONE ; then
3270  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3271else
3272  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3273fi
3274
3275
3276# Check whether --with-coin-instdir or --without-coin-instdir was given.
3277if test "${with_coin_instdir+set}" = set; then
3278  withval="$with_coin_instdir"
3279  if test -d "$withval"; then : ; else
3280     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3281echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3282   { (exit 1); exit 1; }; }
3283   fi
3284   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3285
3286fi;
3287
3288
3289
3290# assemble additional pkg-config search paths for uninstalled projects
3291if test x$coin_projectdir = xyes ; then
3292  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3293  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3294  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3295  # 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)
3296  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3297  if test -f ../coin_subdirs.txt ; then
3298    for i in `cat ../coin_subdirs.txt` ; do
3299      if test -d ../$i ; then
3300        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3301      fi
3302      if test -d ../$i/pkgconfig ; then
3303        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3304      fi
3305    done
3306  fi
3307
3308  if test -f ../../coin_subdirs.txt ; then
3309    for i in `cat ../../coin_subdirs.txt` ; do
3310      if test -d ../../$i ; then
3311        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3312      fi
3313      if test -d ../../$i/pkgconfig ; then
3314        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3315      fi
3316    done
3317  fi
3318
3319
3320fi
3321
3322if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3323  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
3324echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
3325fi
3326
3327
3328
3329# Initialize automake
3330{
3331
3332
3333
3334# START
3335
3336coin_disable_shared=no
3337# Test if force_shared has been set
3338if test "x" = xforce_shared; then
3339  if test x$enable_shared = xno; then
3340    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3341echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3342   { (exit 1); exit 1; }; }
3343  fi
3344  enable_shared=yes;
3345else
3346  # On Cygwin and AIX, building DLLs doesn't work
3347  case $build in
3348    *-cygwin* | *-mingw*)
3349      coin_disable_shared=yes
3350      if test x"$enable_shared" = xyes; then
3351        case "$CC" in
3352          clang* )
3353            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3354echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3355            ;;
3356          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3357            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
3358echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
3359            ;;
3360          *gcc*)
3361            if test x"$enable_dependency_linking" = xyes; then
3362              coin_disable_shared=no
3363            else
3364              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
3365echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
3366            fi
3367            ;;
3368          *)
3369            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3370echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3371            ;;
3372        esac
3373      fi
3374    ;;
3375    *-aix*)
3376      coin_disable_shared=yes
3377      platform=AIX
3378      if test x"$enable_shared" = xyes; then
3379        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
3380echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
3381      fi
3382    ;;
3383  esac
3384fi
3385if test x"$coin_disable_shared" = xyes; then
3386  if test x"$enable_shared" = xyes; then
3387    :
3388  else
3389    # we don't disable shared, because it was not selected anyway
3390    coin_disable_shared=no
3391  fi
3392  enable_shared=no
3393fi
3394# By default, we only want the shared objects to be compiled
3395# Check whether --enable-static or --disable-static was given.
3396if test "${enable_static+set}" = set; then
3397  enableval="$enable_static"
3398  p=${PACKAGE-default}
3399    case $enableval in
3400    yes) enable_static=yes ;;
3401    no) enable_static=no ;;
3402    *)
3403     enable_static=no
3404      # Look at the argument we got.  We use all the common list separators.
3405      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3406      for pkg in $enableval; do
3407        IFS="$lt_save_ifs"
3408        if test "X$pkg" = "X$p"; then
3409          enable_static=yes
3410        fi
3411      done
3412      IFS="$lt_save_ifs"
3413      ;;
3414    esac
3415else
3416  enable_static=no
3417fi;
3418
3419
3420
3421
3422# Initialize automake
3423echo "$as_me:$LINENO: checking for egrep" >&5
3424echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3425if test "${ac_cv_prog_egrep+set}" = set; then
3426  echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3429    then ac_cv_prog_egrep='grep -E'
3430    else ac_cv_prog_egrep='egrep'
3431    fi
3432fi
3433echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3434echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3435 EGREP=$ac_cv_prog_egrep
3436
3437
3438echo "$as_me:$LINENO: checking whether ln -s works" >&5
3439echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3440LN_S=$as_ln_s
3441if test "$LN_S" = "ln -s"; then
3442  echo "$as_me:$LINENO: result: yes" >&5
3443echo "${ECHO_T}yes" >&6
3444else
3445  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3446echo "${ECHO_T}no, using $LN_S" >&6
3447fi
3448
3449am__api_version="1.9"
3450# Find a good install program.  We prefer a C program (faster),
3451# so one script is as good as another.  But avoid the broken or
3452# incompatible versions:
3453# SysV /etc/install, /usr/sbin/install
3454# SunOS /usr/etc/install
3455# IRIX /sbin/install
3456# AIX /bin/install
3457# AmigaOS /C/install, which installs bootblocks on floppy discs
3458# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3459# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3460# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3461# OS/2's system install, which has a completely different semantic
3462# ./install, which can be erroneously created by make from ./install.sh.
3463echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3464echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3465if test -z "$INSTALL"; then
3466if test "${ac_cv_path_install+set}" = set; then
3467  echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472  IFS=$as_save_IFS
3473  test -z "$as_dir" && as_dir=.
3474  # Account for people who put trailing slashes in PATH elements.
3475case $as_dir/ in
3476  ./ | .// | /cC/* | \
3477  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3478  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3479  /usr/ucb/* ) ;;
3480  *)
3481    # OSF1 and SCO ODT 3.0 have their own names for install.
3482    # Don't use installbsd from OSF since it installs stuff as root
3483    # by default.
3484    for ac_prog in ginstall scoinst install; do
3485      for ac_exec_ext in '' $ac_executable_extensions; do
3486        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3487          if test $ac_prog = install &&
3488            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3489            # AIX install.  It has an incompatible calling convention.
3490            :
3491          elif test $ac_prog = install &&
3492            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3493            # program-specific install script used by HP pwplus--don't use.
3494            :
3495          else
3496            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3497            break 3
3498          fi
3499        fi
3500      done
3501    done
3502    ;;
3503esac
3504done
3505
3506
3507fi
3508  if test "${ac_cv_path_install+set}" = set; then
3509    INSTALL=$ac_cv_path_install
3510  else
3511    # As a last resort, use the slow shell script.  We don't cache a
3512    # path for INSTALL within a source directory, because that will
3513    # break other packages using the cache if that directory is
3514    # removed, or if the path is relative.
3515    INSTALL=$ac_install_sh
3516  fi
3517fi
3518echo "$as_me:$LINENO: result: $INSTALL" >&5
3519echo "${ECHO_T}$INSTALL" >&6
3520
3521# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3522# It thinks the first close brace ends the variable substitution.
3523test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3524
3525test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3526
3527test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3528
3529echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3530echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3531# Just in case
3532sleep 1
3533echo timestamp > conftest.file
3534# Do `set' in a subshell so we don't clobber the current shell's
3535# arguments.  Must try -L first in case configure is actually a
3536# symlink; some systems play weird games with the mod time of symlinks
3537# (eg FreeBSD returns the mod time of the symlink's containing
3538# directory).
3539if (
3540   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3541   if test "$*" = "X"; then
3542      # -L didn't work.
3543      set X `ls -t $srcdir/configure conftest.file`
3544   fi
3545   rm -f conftest.file
3546   if test "$*" != "X $srcdir/configure conftest.file" \
3547      && test "$*" != "X conftest.file $srcdir/configure"; then
3548
3549      # If neither matched, then we have a broken ls.  This can happen
3550      # if, for instance, CONFIG_SHELL is bash and it inherits a
3551      # broken ls alias from the environment.  This has actually
3552      # happened.  Such a system could not be considered "sane".
3553      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3554alias in your environment" >&5
3555echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3556alias in your environment" >&2;}
3557   { (exit 1); exit 1; }; }
3558   fi
3559
3560   test "$2" = conftest.file
3561   )
3562then
3563   # Ok.
3564   :
3565else
3566   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3567Check your system clock" >&5
3568echo "$as_me: error: newly created file is older than distributed files!
3569Check your system clock" >&2;}
3570   { (exit 1); exit 1; }; }
3571fi
3572echo "$as_me:$LINENO: result: yes" >&5
3573echo "${ECHO_T}yes" >&6
3574test "$program_prefix" != NONE &&
3575  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3576# Use a double $ so make ignores it.
3577test "$program_suffix" != NONE &&
3578  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3579# Double any \ or $.  echo might interpret backslashes.
3580# By default was `s,x,x', remove it if useless.
3581cat <<\_ACEOF >conftest.sed
3582s/[\\$]/&&/g;s/;s,x,x,$//
3583_ACEOF
3584program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3585rm conftest.sed
3586
3587# expand $ac_aux_dir to an absolute path
3588am_aux_dir=`cd $ac_aux_dir && pwd`
3589
3590test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3591# Use eval to expand $SHELL
3592if eval "$MISSING --run true"; then
3593  am_missing_run="$MISSING --run "
3594else
3595  am_missing_run=
3596  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3597echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3598fi
3599
3600if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3601  # We used to keeping the `.' as first argument, in order to
3602  # allow $(mkdir_p) to be used without argument.  As in
3603  #   $(mkdir_p) $(somedir)
3604  # where $(somedir) is conditionally defined.  However this is wrong
3605  # for two reasons:
3606  #  1. if the package is installed by a user who cannot write `.'
3607  #     make install will fail,
3608  #  2. the above comment should most certainly read
3609  #     $(mkdir_p) $(DESTDIR)$(somedir)
3610  #     so it does not work when $(somedir) is undefined and
3611  #     $(DESTDIR) is not.
3612  #  To support the latter case, we have to write
3613  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3614  #  so the `.' trick is pointless.
3615  mkdir_p='mkdir -p --'
3616else
3617  # On NextStep and OpenStep, the `mkdir' command does not
3618  # recognize any option.  It will interpret all options as
3619  # directories to create, and then abort because `.' already
3620  # exists.
3621  for d in ./-p ./--version;
3622  do
3623    test -d $d && rmdir $d
3624  done
3625  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3626  if test -f "$ac_aux_dir/mkinstalldirs"; then
3627    mkdir_p='$(mkinstalldirs)'
3628  else
3629    mkdir_p='$(install_sh) -d'
3630  fi
3631fi
3632
3633for ac_prog in gawk mawk nawk awk
3634do
3635  # Extract the first word of "$ac_prog", so it can be a program name with args.
3636set dummy $ac_prog; ac_word=$2
3637echo "$as_me:$LINENO: checking for $ac_word" >&5
3638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3639if test "${ac_cv_prog_AWK+set}" = set; then
3640  echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
3642  if test -n "$AWK"; then
3643  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3644else
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648  IFS=$as_save_IFS
3649  test -z "$as_dir" && as_dir=.
3650  for ac_exec_ext in '' $ac_executable_extensions; do
3651  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652    ac_cv_prog_AWK="$ac_prog"
3653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654    break 2
3655  fi
3656done
3657done
3658
3659fi
3660fi
3661AWK=$ac_cv_prog_AWK
3662if test -n "$AWK"; then
3663  echo "$as_me:$LINENO: result: $AWK" >&5
3664echo "${ECHO_T}$AWK" >&6
3665else
3666  echo "$as_me:$LINENO: result: no" >&5
3667echo "${ECHO_T}no" >&6
3668fi
3669
3670  test -n "$AWK" && break
3671done
3672
3673echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3674echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3675set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3676if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3677  echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679  cat >conftest.make <<\_ACEOF
3680all:
3681        @echo 'ac_maketemp="$(MAKE)"'
3682_ACEOF
3683# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3684eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3685if test -n "$ac_maketemp"; then
3686  eval ac_cv_prog_make_${ac_make}_set=yes
3687else
3688  eval ac_cv_prog_make_${ac_make}_set=no
3689fi
3690rm -f conftest.make
3691fi
3692if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3693  echo "$as_me:$LINENO: result: yes" >&5
3694echo "${ECHO_T}yes" >&6
3695  SET_MAKE=
3696else
3697  echo "$as_me:$LINENO: result: no" >&5
3698echo "${ECHO_T}no" >&6
3699  SET_MAKE="MAKE=${MAKE-make}"
3700fi
3701
3702rm -rf .tst 2>/dev/null
3703mkdir .tst 2>/dev/null
3704if test -d .tst; then
3705  am__leading_dot=.
3706else
3707  am__leading_dot=_
3708fi
3709rmdir .tst 2>/dev/null
3710
3711DEPDIR="${am__leading_dot}deps"
3712
3713          ac_config_commands="$ac_config_commands depfiles"
3714
3715
3716am_make=${MAKE-make}
3717cat > confinc << 'END'
3718am__doit:
3719        @echo done
3720.PHONY: am__doit
3721END
3722# If we don't find an include directive, just comment out the code.
3723echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3724echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3725am__include="#"
3726am__quote=
3727_am_result=none
3728# First try GNU make style include.
3729echo "include confinc" > confmf
3730# We grep out `Entering directory' and `Leaving directory'
3731# messages which can occur if `w' ends up in MAKEFLAGS.
3732# In particular we don't look at `^make:' because GNU make might
3733# be invoked under some other name (usually "gmake"), in which
3734# case it prints its new name instead of `make'.
3735if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3736   am__include=include
3737   am__quote=
3738   _am_result=GNU
3739fi
3740# Now try BSD make style include.
3741if test "$am__include" = "#"; then
3742   echo '.include "confinc"' > confmf
3743   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3744      am__include=.include
3745      am__quote="\""
3746      _am_result=BSD
3747   fi
3748fi
3749
3750
3751echo "$as_me:$LINENO: result: $_am_result" >&5
3752echo "${ECHO_T}$_am_result" >&6
3753rm -f confinc confmf
3754
3755# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3756if test "${enable_dependency_tracking+set}" = set; then
3757  enableval="$enable_dependency_tracking"
3758
3759fi;
3760if test "x$enable_dependency_tracking" != xno; then
3761  am_depcomp="$ac_aux_dir/depcomp"
3762  AMDEPBACKSLASH='\'
3763fi
3764
3765
3766if test "x$enable_dependency_tracking" != xno; then
3767  AMDEP_TRUE=
3768  AMDEP_FALSE='#'
3769else
3770  AMDEP_TRUE='#'
3771  AMDEP_FALSE=
3772fi
3773
3774
3775
3776
3777
3778
3779# AC_MSG_NOTICE([Beginning automake initialisation.])
3780# Stuff for automake
3781# test to see if srcdir already configured
3782if test "`cd $srcdir && pwd`" != "`pwd`" &&
3783   test -f $srcdir/config.status; then
3784  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3785echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3786   { (exit 1); exit 1; }; }
3787fi
3788
3789# test whether we have cygpath
3790if test -z "$CYGPATH_W"; then
3791  if (cygpath --version) >/dev/null 2>/dev/null; then
3792    CYGPATH_W='cygpath -w'
3793  else
3794    CYGPATH_W=echo
3795  fi
3796fi
3797
3798
3799# Define the identity of the package.
3800 PACKAGE='thirdpartyglpk'
3801 VERSION='1.9.6'
3802
3803
3804cat >>confdefs.h <<_ACEOF
3805#define PACKAGE "$PACKAGE"
3806_ACEOF
3807
3808
3809cat >>confdefs.h <<_ACEOF
3810#define VERSION "$VERSION"
3811_ACEOF
3812
3813# Some tools Automake needs.
3814
3815ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3816
3817
3818AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3819
3820
3821AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3822
3823
3824AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3825
3826
3827MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3828
3829install_sh=${install_sh-"$am_aux_dir/install-sh"}
3830
3831# Installed binaries are usually stripped using `strip' when the user
3832# run `make install-strip'.  However `strip' might not be the right
3833# tool to use in cross-compilation environments, therefore Automake
3834# will honor the `STRIP' environment variable to overrule this program.
3835if test "$cross_compiling" != no; then
3836  if test -n "$ac_tool_prefix"; then
3837  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3838set dummy ${ac_tool_prefix}strip; ac_word=$2
3839echo "$as_me:$LINENO: checking for $ac_word" >&5
3840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841if test "${ac_cv_prog_STRIP+set}" = set; then
3842  echo $ECHO_N "(cached) $ECHO_C" >&6
3843else
3844  if test -n "$STRIP"; then
3845  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3846else
3847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848for as_dir in $PATH
3849do
3850  IFS=$as_save_IFS
3851  test -z "$as_dir" && as_dir=.
3852  for ac_exec_ext in '' $ac_executable_extensions; do
3853  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3855    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856    break 2
3857  fi
3858done
3859done
3860
3861fi
3862fi
3863STRIP=$ac_cv_prog_STRIP
3864if test -n "$STRIP"; then
3865  echo "$as_me:$LINENO: result: $STRIP" >&5
3866echo "${ECHO_T}$STRIP" >&6
3867else
3868  echo "$as_me:$LINENO: result: no" >&5
3869echo "${ECHO_T}no" >&6
3870fi
3871
3872fi
3873if test -z "$ac_cv_prog_STRIP"; then
3874  ac_ct_STRIP=$STRIP
3875  # Extract the first word of "strip", so it can be a program name with args.
3876set dummy strip; ac_word=$2
3877echo "$as_me:$LINENO: checking for $ac_word" >&5
3878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3879if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3880  echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882  if test -n "$ac_ct_STRIP"; then
3883  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3884else
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH
3887do
3888  IFS=$as_save_IFS
3889  test -z "$as_dir" && as_dir=.
3890  for ac_exec_ext in '' $ac_executable_extensions; do
3891  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892    ac_cv_prog_ac_ct_STRIP="strip"
3893    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894    break 2
3895  fi
3896done
3897done
3898
3899  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3900fi
3901fi
3902ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3903if test -n "$ac_ct_STRIP"; then
3904  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3905echo "${ECHO_T}$ac_ct_STRIP" >&6
3906else
3907  echo "$as_me:$LINENO: result: no" >&5
3908echo "${ECHO_T}no" >&6
3909fi
3910
3911  STRIP=$ac_ct_STRIP
3912else
3913  STRIP="$ac_cv_prog_STRIP"
3914fi
3915
3916fi
3917INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3918
3919# We need awk for the "check" target.  The system "awk" is bad on
3920# some platforms.
3921# Always define AMTAR for backward compatibility.
3922
3923AMTAR=${AMTAR-"${am_missing_run}tar"}
3924
3925am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3926
3927
3928
3929
3930depcc="$CC"   am_compiler_list=
3931
3932echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3933echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3934if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3935  echo $ECHO_N "(cached) $ECHO_C" >&6
3936else
3937  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3938  # We make a subdir and do the tests there.  Otherwise we can end up
3939  # making bogus files that we don't know about and never remove.  For
3940  # instance it was reported that on HP-UX the gcc test will end up
3941  # making a dummy file named `D' -- because `-MD' means `put the output
3942  # in D'.
3943  mkdir conftest.dir
3944  # Copy depcomp to subdir because otherwise we won't find it if we're
3945  # using a relative directory.
3946  cp "$am_depcomp" conftest.dir
3947  cd conftest.dir
3948  # We will build objects and dependencies in a subdirectory because
3949  # it helps to detect inapplicable dependency modes.  For instance
3950  # both Tru64's cc and ICC support -MD to output dependencies as a
3951  # side effect of compilation, but ICC will put the dependencies in
3952  # the current directory while Tru64 will put them in the object
3953  # directory.
3954  mkdir sub
3955
3956  am_cv_CC_dependencies_compiler_type=none
3957  if test "$am_compiler_list" = ""; then
3958     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3959  fi
3960  for depmode in $am_compiler_list; do
3961    # Setup a source with many dependencies, because some compilers
3962    # like to wrap large dependency lists on column 80 (with \), and
3963    # we should not choose a depcomp mode which is confused by this.
3964    #
3965    # We need to recreate these files for each test, as the compiler may
3966    # overwrite some of them when testing with obscure command lines.
3967    # This happens at least with the AIX C compiler.
3968    : > sub/conftest.c
3969    for i in 1 2 3 4 5 6; do
3970      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3971      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3972      # Solaris 8's {/usr,}/bin/sh.
3973      touch sub/conftst$i.h
3974    done
3975    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3976
3977    case $depmode in
3978    nosideeffect)
3979      # after this tag, mechanisms are not by side-effect, so they'll
3980      # only be used when explicitly requested
3981      if test "x$enable_dependency_tracking" = xyes; then
3982        continue
3983      else
3984        break
3985      fi
3986      ;;
3987    none) break ;;
3988    esac
3989    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3990    # mode.  It turns out that the SunPro C++ compiler does not properly
3991    # handle `-M -o', and we need to detect this.
3992    if depmode=$depmode \
3993       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3994       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3995       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3996         >/dev/null 2>conftest.err &&
3997       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3998       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3999       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4000      # icc doesn't choke on unknown options, it will just issue warnings
4001      # or remarks (even with -Werror).  So we grep stderr for any message
4002      # that says an option was ignored or not supported.
4003      # When given -MP, icc 7.0 and 7.1 complain thusly:
4004      #   icc: Command line warning: ignoring option '-M'; no argument required
4005      # The diagnosis changed in icc 8.0:
4006      #   icc: Command line remark: option '-MP' not supported
4007      if (grep 'ignoring option' conftest.err ||
4008          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4009        am_cv_CC_dependencies_compiler_type=$depmode
4010        break
4011      fi
4012    fi
4013  done
4014
4015  cd ..
4016  rm -rf conftest.dir
4017else
4018  am_cv_CC_dependencies_compiler_type=none
4019fi
4020
4021fi
4022echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4023echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4024CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4025
4026
4027
4028if
4029  test "x$enable_dependency_tracking" != xno \
4030  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4031  am__fastdepCC_TRUE=
4032  am__fastdepCC_FALSE='#'
4033else
4034  am__fastdepCC_TRUE='#'
4035  am__fastdepCC_FALSE=
4036fi
4037
4038
4039
4040echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4041echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4042    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4043if test "${enable_maintainer_mode+set}" = set; then
4044  enableval="$enable_maintainer_mode"
4045  USE_MAINTAINER_MODE=$enableval
4046else
4047  USE_MAINTAINER_MODE=no
4048fi;
4049  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4050echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4051
4052
4053if test $USE_MAINTAINER_MODE = yes; then
4054  MAINTAINER_MODE_TRUE=
4055  MAINTAINER_MODE_FALSE='#'
4056else
4057  MAINTAINER_MODE_TRUE='#'
4058  MAINTAINER_MODE_FALSE=
4059fi
4060
4061  MAINT=$MAINTAINER_MODE_TRUE
4062
4063
4064
4065coin_have_externals=no
4066if test "$enable_maintainer_mode" = yes; then
4067
4068  # If maintainer mode is chosen, we make sure that the correct versions
4069  # of the tools are used, and that we know where libtool.m4 is (to
4070  # recreate acinclude.m4)
4071
4072
4073  LIBTOOLM4=
4074  # Normally, $HOME
4075  AUTOTOOLS_DFLT=$HOME
4076
4077  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4078echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4079if test "${ac_cv_use_correct_autotools+set}" = set; then
4080  echo $ECHO_N "(cached) $ECHO_C" >&6
4081else
4082  ac_cv_use_correct_autotools=check
4083fi
4084echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4085echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4086
4087  if test $ac_cv_use_correct_autotools = check; then
4088    ac_cv_use_correct_autotools=yes
4089    # Check if we have autoconf
4090    # Extract the first word of "autoconf", so it can be a program name with args.
4091set dummy autoconf; ac_word=$2
4092echo "$as_me:$LINENO: checking for $ac_word" >&5
4093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4094if test "${ac_cv_prog_have_autoconf+set}" = set; then
4095  echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097  if test -n "$have_autoconf"; then
4098  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4099else
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH
4102do
4103  IFS=$as_save_IFS
4104  test -z "$as_dir" && as_dir=.
4105  for ac_exec_ext in '' $ac_executable_extensions; do
4106  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107    ac_cv_prog_have_autoconf="yes"
4108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109    break 2
4110  fi
4111done
4112done
4113
4114  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4115fi
4116fi
4117have_autoconf=$ac_cv_prog_have_autoconf
4118if test -n "$have_autoconf"; then
4119  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4120echo "${ECHO_T}$have_autoconf" >&6
4121else
4122  echo "$as_me:$LINENO: result: no" >&5
4123echo "${ECHO_T}no" >&6
4124fi
4125
4126    if test $have_autoconf = no; then
4127      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4128echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4129   { (exit 1); exit 1; }; }
4130    fi
4131
4132    # Check whether autoconf is the correct version
4133    correct_version='2.59'
4134    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4135    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4136echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4137    autoconf --version > confauto.out 2>&1
4138    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4139      echo "$as_me:$LINENO: result: yes" >&5
4140echo "${ECHO_T}yes" >&6
4141    else
4142      rm -f confauto.out
4143      echo "$as_me:$LINENO: result: no" >&5
4144echo "${ECHO_T}no" >&6
4145      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4146echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4147   { (exit 1); exit 1; }; }
4148    fi
4149    rm -f confauto.out
4150
4151    # Check if the executable autoconf is picked up from the correct location
4152    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4153echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4154    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4155    autoconf_dir=`cd $autoconf_dir; pwd`
4156    if test x$AUTOTOOLS_DIR = x; then
4157      want_dir=$AUTOTOOLS_DFLT/bin
4158    else
4159      want_dir=$AUTOTOOLS_DIR/bin
4160    fi
4161    if test $autoconf_dir = `cd $want_dir; pwd`; then
4162      echo "$as_me:$LINENO: result: yes" >&5
4163echo "${ECHO_T}yes" >&6
4164    else
4165      rm -f confauto.out
4166      echo "$as_me:$LINENO: result: no" >&5
4167echo "${ECHO_T}no" >&6
4168      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4169echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4170   { (exit 1); exit 1; }; }
4171    fi
4172
4173    # Check if we have automake
4174    # Extract the first word of "automake", so it can be a program name with args.
4175set dummy automake; ac_word=$2
4176echo "$as_me:$LINENO: checking for $ac_word" >&5
4177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178if test "${ac_cv_prog_have_automake+set}" = set; then
4179  echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181  if test -n "$have_automake"; then
4182  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4183else
4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187  IFS=$as_save_IFS
4188  test -z "$as_dir" && as_dir=.
4189  for ac_exec_ext in '' $ac_executable_extensions; do
4190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191    ac_cv_prog_have_automake="yes"
4192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193    break 2
4194  fi
4195done
4196done
4197
4198  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4199fi
4200fi
4201have_automake=$ac_cv_prog_have_automake
4202if test -n "$have_automake"; then
4203  echo "$as_me:$LINENO: result: $have_automake" >&5
4204echo "${ECHO_T}$have_automake" >&6
4205else
4206  echo "$as_me:$LINENO: result: no" >&5
4207echo "${ECHO_T}no" >&6
4208fi
4209
4210    if test $have_automake = no; then
4211      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4212echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4213   { (exit 1); exit 1; }; }
4214    fi
4215
4216    # Check whether automake is the correct version
4217    correct_version='1.9.6'
4218    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4219    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4220echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4221    automake --version > confauto.out 2>&1
4222    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4223      echo "$as_me:$LINENO: result: yes" >&5
4224echo "${ECHO_T}yes" >&6
4225    else
4226      rm -f confauto.out
4227      echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6
4229      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4230echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4231   { (exit 1); exit 1; }; }
4232    fi
4233    rm -f confauto.out
4234
4235    # Check if the executable automake is picked up from the correct location
4236    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4237echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4238    automake_dir=`which automake | sed -e 's=/automake=='`
4239    automake_dir=`cd $automake_dir; pwd`
4240    if test x$AUTOTOOLS_DIR = x; then
4241      want_dir=$AUTOTOOLS_DFLT/bin
4242    else
4243      want_dir=$AUTOTOOLS_DIR/bin
4244    fi
4245    if test $automake_dir = `cd $want_dir; pwd`; then
4246      echo "$as_me:$LINENO: result: yes" >&5
4247echo "${ECHO_T}yes" >&6
4248    else
4249      rm -f confauto.out
4250      echo "$as_me:$LINENO: result: no" >&5
4251echo "${ECHO_T}no" >&6
4252      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4253echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4254   { (exit 1); exit 1; }; }
4255    fi
4256
4257    # Check if this is the correct version of libtool (with escaped dots)
4258    if test x$AUTOTOOLS_DIR = x; then
4259      want_dir=$AUTOTOOLS_DFLT/share
4260    else
4261      want_dir=$AUTOTOOLS_DIR/share
4262    fi
4263    correct_version='1.5.22'
4264    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4265    if test -r $want_dir/libtool/ltmain.sh; then
4266  have_ltmain=yes
4267  :
4268else
4269  have_ltmain=no
4270  :
4271fi
4272
4273    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4274echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4275    if test $have_ltmain = yes; then
4276    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4277        echo "$as_me:$LINENO: result: yes" >&5
4278echo "${ECHO_T}yes" >&6
4279      else
4280        echo "$as_me:$LINENO: result: no" >&5
4281echo "${ECHO_T}no" >&6
4282        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4283echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4284   { (exit 1); exit 1; }; }
4285      fi
4286    else
4287      echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6
4289      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4290echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4291   { (exit 1); exit 1; }; }
4292    fi
4293  fi
4294
4295  # Check if we can find the libtool file
4296  if test x$AUTOTOOLS_DIR = x; then
4297    want_dir=$AUTOTOOLS_DFLT/share
4298  else
4299    want_dir=$AUTOTOOLS_DIR/share
4300  fi
4301  if test -r $want_dir/aclocal/libtool.m4; then
4302  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4303  :
4304else
4305  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4306echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4307   { (exit 1); exit 1; }; }
4308  :
4309fi
4310
4311
4312  # Check if we have an Dependencies file
4313  if test -r $srcdir/Dependencies; then
4314    coin_have_externals=yes
4315  fi
4316  # Check if subversion is installed and understands https
4317  # Extract the first word of "svn", so it can be a program name with args.
4318set dummy svn; ac_word=$2
4319echo "$as_me:$LINENO: checking for $ac_word" >&5
4320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4321if test "${ac_cv_prog_have_svn+set}" = set; then
4322  echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324  if test -n "$have_svn"; then
4325  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4326else
4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330  IFS=$as_save_IFS
4331  test -z "$as_dir" && as_dir=.
4332  for ac_exec_ext in '' $ac_executable_extensions; do
4333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334    ac_cv_prog_have_svn="yes"
4335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336    break 2
4337  fi
4338done
4339done
4340
4341  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4342fi
4343fi
4344have_svn=$ac_cv_prog_have_svn
4345if test -n "$have_svn"; then
4346  echo "$as_me:$LINENO: result: $have_svn" >&5
4347echo "${ECHO_T}$have_svn" >&6
4348else
4349  echo "$as_me:$LINENO: result: no" >&5
4350echo "${ECHO_T}no" >&6
4351fi
4352
4353  if test x$have_svn = xyes; then
4354    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4355echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4356if test "${ac_cv_svn_understands_https+set}" = set; then
4357  echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359  svn --version > confauto.out 2>&1
4360                    if $EGREP https confauto.out >/dev/null 2>&1; then
4361                      ac_cv_svn_understands_https=yes
4362                    else
4363                      ac_cv_svn_understands_https=no
4364                      have_svn=no
4365                      ac_cv_prog_have_svn=no
4366                    fi
4367                    rm -f confauto.out
4368fi
4369echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4370echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4371  fi
4372
4373  # Find the location of the BuildTools directory
4374  BUILDTOOLSDIR=
4375  if test -r $srcdir/BuildTools/coin.m4; then
4376    BUILDTOOLSDIR=$srcdir/BuildTools
4377  else
4378    if test -r $srcdir/../BuildTools/coin.m4; then
4379      BUILDTOOLSDIR=$srcdir/../BuildTools
4380    else
4381      if test -r $srcdir/../../BuildTools/coin.m4; then
4382        BUILDTOOLSDIR=$srcdir/../../BuildTools
4383      else
4384        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4385echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4386   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4387      fi
4388    fi
4389  fi
4390
4391
4392  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4393  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4394    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4395  fi
4396
4397  # The following variable is set to the name of the directory where
4398  # the autotool scripts are located
4399
4400  AUX_DIR=$ac_aux_dir
4401fi
4402
4403# helpful variable for the base directory of this package
4404abs_source_dir=`cd $srcdir; pwd`
4405
4406
4407# Stuff for example Makefiles
4408if test x$prefix = xNONE; then
4409  full_prefix=$ac_default_prefix
4410else
4411  full_prefix=$prefix
4412fi
4413full_prefix=`cd $full_prefix ; pwd`
4414
4415abs_lib_dir=$full_prefix/lib
4416
4417abs_include_dir=$full_prefix/include
4418
4419abs_bin_dir=$full_prefix/bin
4420
4421
4422
4423if test $coin_have_externals = yes && test x$have_svn = xyes; then
4424  HAVE_EXTERNALS_TRUE=
4425  HAVE_EXTERNALS_FALSE='#'
4426else
4427  HAVE_EXTERNALS_TRUE='#'
4428  HAVE_EXTERNALS_FALSE=
4429fi
4430
4431
4432# AC_MSG_NOTICE([End automake initialisation.])
4433
4434
4435
4436LIBTOOL=
4437if test -f ../libtool; then
4438  coin_config_dir=..
4439  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4440fi
4441if test "x$LIBTOOL" = x; then
4442  if test -f ../../libtool; then
4443    coin_config_dir=../..
4444    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4445  fi
4446fi
4447
4448if test "x$LIBTOOL" = x; then
4449# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4450  # Stuff for libtool
4451  # Check whether --enable-shared or --disable-shared was given.
4452if test "${enable_shared+set}" = set; then
4453  enableval="$enable_shared"
4454  p=${PACKAGE-default}
4455    case $enableval in
4456    yes) enable_shared=yes ;;
4457    no) enable_shared=no ;;
4458    *)
4459      enable_shared=no
4460      # Look at the argument we got.  We use all the common list separators.
4461      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4462      for pkg in $enableval; do
4463        IFS="$lt_save_ifs"
4464        if test "X$pkg" = "X$p"; then
4465          enable_shared=yes
4466        fi
4467      done
4468      IFS="$lt_save_ifs"
4469      ;;
4470    esac
4471else
4472  enable_shared=yes
4473fi;
4474
4475# Check whether --enable-fast-install or --disable-fast-install was given.
4476if test "${enable_fast_install+set}" = set; then
4477  enableval="$enable_fast_install"
4478  p=${PACKAGE-default}
4479    case $enableval in
4480    yes) enable_fast_install=yes ;;
4481    no) enable_fast_install=no ;;
4482    *)
4483      enable_fast_install=no
4484      # Look at the argument we got.  We use all the common list separators.
4485      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4486      for pkg in $enableval; do
4487        IFS="$lt_save_ifs"
4488        if test "X$pkg" = "X$p"; then
4489          enable_fast_install=yes
4490        fi
4491      done
4492      IFS="$lt_save_ifs"
4493      ;;
4494    esac
4495else
4496  enable_fast_install=yes
4497fi;
4498
4499echo "$as_me:$LINENO: checking host system type" >&5
4500echo $ECHO_N "checking host system type... $ECHO_C" >&6
4501if test "${ac_cv_host+set}" = set; then
4502  echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
4504  ac_cv_host_alias=$host_alias
4505test -z "$ac_cv_host_alias" &&
4506  ac_cv_host_alias=$ac_cv_build_alias
4507ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4508  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4509echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4510   { (exit 1); exit 1; }; }
4511
4512fi
4513echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4514echo "${ECHO_T}$ac_cv_host" >&6
4515host=$ac_cv_host
4516host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4517host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4518host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4519
4520
4521echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4522echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4523if test "${lt_cv_path_SED+set}" = set; then
4524  echo $ECHO_N "(cached) $ECHO_C" >&6
4525else
4526  # Loop through the user's path and test for sed and gsed.
4527# Then use that list of sed's as ones to test for truncation.
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531  IFS=$as_save_IFS
4532  test -z "$as_dir" && as_dir=.
4533  for lt_ac_prog in sed gsed; do
4534    for ac_exec_ext in '' $ac_executable_extensions; do
4535      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4536        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4537      fi
4538    done
4539  done
4540done
4541lt_ac_max=0
4542lt_ac_count=0
4543# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4544# along with /bin/sed that truncates output.
4545for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4546  test ! -f $lt_ac_sed && continue
4547  cat /dev/null > conftest.in
4548  lt_ac_count=0
4549  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4550  # Check for GNU sed and select it if it is found.
4551  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4552    lt_cv_path_SED=$lt_ac_sed
4553    break
4554  fi
4555  while true; do
4556    cat conftest.in conftest.in >conftest.tmp
4557    mv conftest.tmp conftest.in
4558    cp conftest.in conftest.nl
4559    echo >>conftest.nl
4560    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4561    cmp -s conftest.out conftest.nl || break
4562    # 10000 chars as input seems more than enough
4563    test $lt_ac_count -gt 10 && break
4564    lt_ac_count=`expr $lt_ac_count + 1`
4565    if test $lt_ac_count -gt $lt_ac_max; then
4566      lt_ac_max=$lt_ac_count
4567      lt_cv_path_SED=$lt_ac_sed
4568    fi
4569  done
4570done
4571
4572fi
4573
4574SED=$lt_cv_path_SED
4575echo "$as_me:$LINENO: result: $SED" >&5
4576echo "${ECHO_T}$SED" >&6
4577
4578
4579# Check whether --with-gnu-ld or --without-gnu-ld was given.
4580if test "${with_gnu_ld+set}" = set; then
4581  withval="$with_gnu_ld"
4582  test "$withval" = no || with_gnu_ld=yes
4583else
4584  with_gnu_ld=no
4585fi;
4586ac_prog=ld
4587if test "$GCC" = yes; then
4588  # Check if gcc -print-prog-name=ld gives a path.
4589  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4590echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4591  case $host in
4592  *-*-mingw*)
4593    # gcc leaves a trailing carriage return which upsets mingw
4594    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4595  *)
4596    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4597  esac
4598  case $ac_prog in
4599    # Accept absolute paths.
4600    [\\/]* | ?:[\\/]*)
4601      re_direlt='/[^/][^/]*/\.\./'
4602      # Canonicalize the pathname of ld
4603      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4604      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4605        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4606      done
4607      test -z "$LD" && LD="$ac_prog"
4608      ;;
4609  "")
4610    # If it fails, then pretend we aren't using GCC.
4611    ac_prog=ld
4612    ;;
4613  *)
4614    # If it is relative, then search for the first ld in PATH.
4615    with_gnu_ld=unknown
4616    ;;
4617  esac
4618elif test "$with_gnu_ld" = yes; then
4619  echo "$as_me:$LINENO: checking for GNU ld" >&5
4620echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4621else
4622  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4623echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4624fi
4625if test "${lt_cv_path_LD+set}" = set; then
4626  echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628  if test -z "$LD"; then
4629  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4630  for ac_dir in $PATH; do
4631    IFS="$lt_save_ifs"
4632    test -z "$ac_dir" && ac_dir=.
4633    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4634      lt_cv_path_LD="$ac_dir/$ac_prog"
4635      # Check to see if the program is GNU ld.  I'd rather use --version,
4636      # but apparently some variants of GNU ld only accept -v.
4637      # Break only if it was the GNU/non-GNU ld that we prefer.
4638      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4639      *GNU* | *'with BFD'*)
4640        test "$with_gnu_ld" != no && break
4641        ;;
4642      *)
4643        test "$with_gnu_ld" != yes && break
4644        ;;
4645      esac
4646    fi
4647  done
4648  IFS="$lt_save_ifs"
4649else
4650  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4651fi
4652fi
4653
4654LD="$lt_cv_path_LD"
4655if test -n "$LD"; then
4656  echo "$as_me:$LINENO: result: $LD" >&5
4657echo "${ECHO_T}$LD" >&6
4658else
4659  echo "$as_me:$LINENO: result: no" >&5
4660echo "${ECHO_T}no" >&6
4661fi
4662test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4663echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4664   { (exit 1); exit 1; }; }
4665echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4666echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4667if test "${lt_cv_prog_gnu_ld+set}" = set; then
4668  echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4671case `$LD -v 2>&1 </dev/null` in
4672*GNU* | *'with BFD'*)
4673  lt_cv_prog_gnu_ld=yes
4674  ;;
4675*)
4676  lt_cv_prog_gnu_ld=no
4677  ;;
4678esac
4679fi
4680echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4681echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4682with_gnu_ld=$lt_cv_prog_gnu_ld
4683
4684
4685echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4686echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4687if test "${lt_cv_ld_reload_flag+set}" = set; then
4688  echo $ECHO_N "(cached) $ECHO_C" >&6
4689else
4690  lt_cv_ld_reload_flag='-r'
4691fi
4692echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4693echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4694reload_flag=$lt_cv_ld_reload_flag
4695case $reload_flag in
4696"" | " "*) ;;
4697*) reload_flag=" $reload_flag" ;;
4698esac
4699reload_cmds='$LD$reload_flag -o $output$reload_objs'
4700case $host_os in
4701  darwin*)
4702    if test "$GCC" = yes; then
4703      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4704    else
4705      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4706    fi
4707    ;;
4708esac
4709
4710echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4711echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4712if test "${lt_cv_path_NM+set}" = set; then
4713  echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715  if test -n "$NM"; then
4716  # Let the user override the test.
4717  lt_cv_path_NM="$NM"
4718else
4719  lt_nm_to_check="${ac_tool_prefix}nm"
4720  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4721    lt_nm_to_check="$lt_nm_to_check nm"
4722  fi
4723  for lt_tmp_nm in $lt_nm_to_check; do
4724    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4725    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4726      IFS="$lt_save_ifs"
4727      test -z "$ac_dir" && ac_dir=.
4728      tmp_nm="$ac_dir/$lt_tmp_nm"
4729      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4730        # Check to see if the nm accepts a BSD-compat flag.
4731        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4732        #   nm: unknown option "B" ignored
4733        # Tru64's nm complains that /dev/null is an invalid object file
4734        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4735        */dev/null* | *'Invalid file or object type'*)
4736          lt_cv_path_NM="$tmp_nm -B"
4737          break
4738          ;;
4739        *)
4740          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4741          */dev/null*)
4742            lt_cv_path_NM="$tmp_nm -p"
4743            break
4744            ;;
4745          *)
4746            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4747            continue # so that we can try to find one that supports BSD flags
4748            ;;
4749          esac
4750          ;;
4751        esac
4752      fi
4753    done
4754    IFS="$lt_save_ifs"
4755  done
4756  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4757fi
4758fi
4759echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4760echo "${ECHO_T}$lt_cv_path_NM" >&6
4761NM="$lt_cv_path_NM"
4762
4763echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4764echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4765if test "${lt_cv_deplibs_check_method+set}" = set; then
4766  echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768  lt_cv_file_magic_cmd='$MAGIC_CMD'
4769lt_cv_file_magic_test_file=
4770lt_cv_deplibs_check_method='unknown'
4771# Need to set the preceding variable on all platforms that support
4772# interlibrary dependencies.
4773# 'none' -- dependencies not supported.
4774# `unknown' -- same as none, but documents that we really don't know.
4775# 'pass_all' -- all dependencies passed with no checks.
4776# 'test_compile' -- check by making test program.
4777# 'file_magic [[regex]]' -- check by looking for files in library path
4778# which responds to the $file_magic_cmd with a given extended regex.
4779# If you have `file' or equivalent on your system and you're not sure
4780# whether `pass_all' will *always* work, you probably want this one.
4781
4782case $host_os in
4783aix4* | aix5*)
4784  lt_cv_deplibs_check_method=pass_all
4785  ;;
4786
4787beos*)
4788  lt_cv_deplibs_check_method=pass_all
4789  ;;
4790
4791bsdi[45]*)
4792  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4793  lt_cv_file_magic_cmd='/usr/bin/file -L'
4794  lt_cv_file_magic_test_file=/shlib/libc.so
4795  ;;
4796
4797cygwin*)
4798  # func_win32_libid is a shell function defined in ltmain.sh
4799  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4800  lt_cv_file_magic_cmd='func_win32_libid'
4801  ;;
4802
4803mingw* | pw32*)
4804  # Base MSYS/MinGW do not provide the 'file' command needed by
4805  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4806  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4807  lt_cv_file_magic_cmd='$OBJDUMP -f'
4808  ;;
4809
4810darwin* | rhapsody*)
4811  lt_cv_deplibs_check_method=pass_all
4812  ;;
4813
4814freebsd* | kfreebsd*-gnu | dragonfly*)
4815  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4816    case $host_cpu in
4817    i*86 )
4818      # Not sure whether the presence of OpenBSD here was a mistake.
4819      # Let's accept both of them until this is cleared up.
4820      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4821      lt_cv_file_magic_cmd=/usr/bin/file
4822      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4823      ;;
4824    esac
4825  else
4826    lt_cv_deplibs_check_method=pass_all
4827  fi
4828  ;;
4829
4830gnu*)
4831  lt_cv_deplibs_check_method=pass_all
4832  ;;
4833
4834hpux10.20* | hpux11*)
4835  lt_cv_file_magic_cmd=/usr/bin/file
4836  case $host_cpu in
4837  ia64*)
4838    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4839    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4840    ;;
4841  hppa*64*)
4842    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]'
4843    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4844    ;;
4845  *)
4846    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4847    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4848    ;;
4849  esac
4850  ;;
4851
4852interix3*)
4853  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4854  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4855  ;;
4856
4857irix5* | irix6* | nonstopux*)
4858  case $LD in
4859  *-32|*"-32 ") libmagic=32-bit;;
4860  *-n32|*"-n32 ") libmagic=N32;;
4861  *-64|*"-64 ") libmagic=64-bit;;
4862  *) libmagic=never-match;;
4863  esac
4864  lt_cv_deplibs_check_method=pass_all
4865  ;;
4866
4867# This must be Linux ELF.
4868linux*)
4869  lt_cv_deplibs_check_method=pass_all
4870  ;;
4871
4872netbsd*)
4873  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4874    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4875  else
4876    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4877  fi
4878  ;;
4879
4880newos6*)
4881  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4882  lt_cv_file_magic_cmd=/usr/bin/file
4883  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4884  ;;
4885
4886nto-qnx*)
4887  lt_cv_deplibs_check_method=unknown
4888  ;;
4889
4890openbsd*)
4891  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4892    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4893  else
4894    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4895  fi
4896  ;;
4897
4898osf3* | osf4* | osf5*)
4899  lt_cv_deplibs_check_method=pass_all
4900  ;;
4901
4902solaris*)
4903  lt_cv_deplibs_check_method=pass_all
4904  ;;
4905
4906sysv4 | sysv4.3*)
4907  case $host_vendor in
4908  motorola)
4909    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]'
4910    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4911    ;;
4912  ncr)
4913    lt_cv_deplibs_check_method=pass_all
4914    ;;
4915  sequent)
4916    lt_cv_file_magic_cmd='/bin/file'
4917    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4918    ;;
4919  sni)
4920    lt_cv_file_magic_cmd='/bin/file'
4921    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4922    lt_cv_file_magic_test_file=/lib/libc.so
4923    ;;
4924  siemens)
4925    lt_cv_deplibs_check_method=pass_all
4926    ;;
4927  pc)
4928    lt_cv_deplibs_check_method=pass_all
4929    ;;
4930  esac
4931  ;;
4932
4933sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4934  lt_cv_deplibs_check_method=pass_all
4935  ;;
4936esac
4937
4938fi
4939echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4940echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4941file_magic_cmd=$lt_cv_file_magic_cmd
4942deplibs_check_method=$lt_cv_deplibs_check_method
4943test -z "$deplibs_check_method" && deplibs_check_method=unknown
4944
4945
4946
4947
4948# If no C compiler was specified, use CC.
4949LTCC=${LTCC-"$CC"}
4950
4951# If no C compiler flags were specified, use CFLAGS.
4952LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4953
4954# Allow CC to be a program name with arguments.
4955compiler=$CC
4956
4957# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4958if test "${enable_libtool_lock+set}" = set; then
4959  enableval="$enable_libtool_lock"
4960
4961fi;
4962test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4963
4964# Some flags need to be propagated to the compiler or linker for good
4965# libtool support.
4966case $host in
4967ia64-*-hpux*)
4968  # Find out which ABI we are using.
4969  echo 'int i;' > conftest.$ac_ext
4970  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971  (eval $ac_compile) 2>&5
4972  ac_status=$?
4973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974  (exit $ac_status); }; then
4975    case `/usr/bin/file conftest.$ac_objext` in
4976    *ELF-32*)
4977      HPUX_IA64_MODE="32"
4978      ;;
4979    *ELF-64*)
4980      HPUX_IA64_MODE="64"
4981      ;;
4982    esac
4983  fi
4984  rm -rf conftest*
4985  ;;
4986*-*-irix6*)
4987  # Find out which ABI we are using.
4988  echo '#line 4988 "configure"' > conftest.$ac_ext
4989  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990  (eval $ac_compile) 2>&5
4991  ac_status=$?
4992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993  (exit $ac_status); }; then
4994   if test "$lt_cv_prog_gnu_ld" = yes; then
4995    case `/usr/bin/file conftest.$ac_objext` in
4996    *32-bit*)
4997      LD="${LD-ld} -melf32bsmip"
4998      ;;
4999    *N32*)
5000      LD="${LD-ld} -melf32bmipn32"
5001      ;;
5002    *64-bit*)
5003      LD="${LD-ld} -melf64bmip"
5004      ;;
5005    esac
5006   else
5007    case `/usr/bin/file conftest.$ac_objext` in
5008    *32-bit*)
5009      LD="${LD-ld} -32"
5010      ;;
5011    *N32*)
5012      LD="${LD-ld} -n32"
5013      ;;
5014    *64-bit*)
5015      LD="${LD-ld} -64"
5016      ;;
5017    esac
5018   fi
5019  fi
5020  rm -rf conftest*
5021  ;;
5022
5023x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5024  # Find out which ABI we are using.
5025  echo 'int i;' > conftest.$ac_ext
5026  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5027  (eval $ac_compile) 2>&5
5028  ac_status=$?
5029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030  (exit $ac_status); }; then
5031    case `/usr/bin/file conftest.o` in
5032    *32-bit*)
5033      case $host in
5034        x86_64-*linux*)
5035          LD="${LD-ld} -m elf_i386"
5036          ;;
5037        ppc64-*linux*|powerpc64-*linux*)
5038          LD="${LD-ld} -m elf32ppclinux"
5039          ;;
5040        s390x-*linux*)
5041          LD="${LD-ld} -m elf_s390"
5042          ;;
5043        sparc64-*linux*)
5044          LD="${LD-ld} -m elf32_sparc"
5045          ;;
5046      esac
5047      ;;
5048    *64-bit*)
5049      case $host in
5050        x86_64-*linux*)
5051          LD="${LD-ld} -m elf_x86_64"
5052          ;;
5053        ppc*-*linux*|powerpc*-*linux*)
5054          LD="${LD-ld} -m elf64ppc"
5055          ;;
5056        s390*-*linux*)
5057          LD="${LD-ld} -m elf64_s390"
5058          ;;
5059        sparc*-*linux*)
5060          LD="${LD-ld} -m elf64_sparc"
5061          ;;
5062      esac
5063      ;;
5064    esac
5065  fi
5066  rm -rf conftest*
5067  ;;
5068
5069*-*-sco3.2v5*)
5070  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5071  SAVE_CFLAGS="$CFLAGS"
5072  CFLAGS="$CFLAGS -belf"
5073  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5074echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5075if test "${lt_cv_cc_needs_belf+set}" = set; then
5076  echo $ECHO_N "(cached) $ECHO_C" >&6
5077else
5078  ac_ext=c
5079ac_cpp='$CPP $CPPFLAGS'
5080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083
5084     cat >conftest.$ac_ext <<_ACEOF
5085/* confdefs.h.  */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h.  */
5090
5091int
5092main ()
5093{
5094
5095  ;
5096  return 0;
5097}
5098_ACEOF
5099rm -f conftest.$ac_objext conftest$ac_exeext
5100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101  (eval $ac_link) 2>conftest.er1
5102  ac_status=$?
5103  grep -v '^ *+' conftest.er1 >conftest.err
5104  rm -f conftest.er1
5105  cat conftest.err >&5
5106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107  (exit $ac_status); } &&
5108         { ac_try='test -z "$ac_c_werror_flag"
5109                         || test ! -s conftest.err'
5110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111  (eval $ac_try) 2>&5
5112  ac_status=$?
5113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114  (exit $ac_status); }; } &&
5115         { ac_try='test -s conftest$ac_exeext'
5116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117  (eval $ac_try) 2>&5
5118  ac_status=$?
5119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120  (exit $ac_status); }; }; then
5121  lt_cv_cc_needs_belf=yes
5122else
5123  echo "$as_me: failed program was:" >&5
5124sed 's/^/| /' conftest.$ac_ext >&5
5125
5126lt_cv_cc_needs_belf=no
5127fi
5128rm -f conftest.err conftest.$ac_objext \
5129      conftest$ac_exeext conftest.$ac_ext
5130     ac_ext=c
5131ac_cpp='$CPP $CPPFLAGS'
5132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135
5136fi
5137echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5138echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5139  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5140    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5141    CFLAGS="$SAVE_CFLAGS"
5142  fi
5143  ;;
5144sparc*-*solaris*)
5145  # Find out which ABI we are using.
5146  echo 'int i;' > conftest.$ac_ext
5147  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148  (eval $ac_compile) 2>&5
5149  ac_status=$?
5150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151  (exit $ac_status); }; then
5152    case `/usr/bin/file conftest.o` in
5153    *64-bit*)
5154      case $lt_cv_prog_gnu_ld in
5155      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5156      *)    LD="${LD-ld} -64" ;;
5157      esac
5158      ;;
5159    esac
5160  fi
5161  rm -rf conftest*
5162  ;;
5163
5164
5165esac
5166
5167need_locks="$enable_libtool_lock"
5168
5169
5170ac_ext=c
5171ac_cpp='$CPP $CPPFLAGS'
5172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5176echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5177# On Suns, sometimes $CPP names a directory.
5178if test -n "$CPP" && test -d "$CPP"; then
5179  CPP=
5180fi
5181if test -z "$CPP"; then
5182  if test "${ac_cv_prog_CPP+set}" = set; then
5183  echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185      # Double quotes because CPP needs to be expanded
5186    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5187    do
5188      ac_preproc_ok=false
5189for ac_c_preproc_warn_flag in '' yes
5190do
5191  # Use a header file that comes with gcc, so configuring glibc
5192  # with a fresh cross-compiler works.
5193  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194  # <limits.h> exists even on freestanding compilers.
5195  # On the NeXT, cc -E runs the code through the compiler's parser,
5196  # not just through cpp. "Syntax error" is here to catch this case.
5197  cat >conftest.$ac_ext <<_ACEOF
5198/* confdefs.h.  */
5199_ACEOF
5200cat confdefs.h >>conftest.$ac_ext
5201cat >>conftest.$ac_ext <<_ACEOF
5202/* end confdefs.h.  */
5203#ifdef __STDC__
5204# include <limits.h>
5205#else
5206# include <assert.h>
5207#endif
5208                     Syntax error
5209_ACEOF
5210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5211  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5212  ac_status=$?
5213  grep -v '^ *+' conftest.er1 >conftest.err
5214  rm -f conftest.er1
5215  cat conftest.err >&5
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); } >/dev/null; then
5218  if test -s conftest.err; then
5219    ac_cpp_err=$ac_c_preproc_warn_flag
5220    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5221  else
5222    ac_cpp_err=
5223  fi
5224else
5225  ac_cpp_err=yes
5226fi
5227if test -z "$ac_cpp_err"; then
5228  :
5229else
5230  echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
5232
5233  # Broken: fails on valid input.
5234continue
5235fi
5236rm -f conftest.err conftest.$ac_ext
5237
5238  # OK, works on sane cases.  Now check whether non-existent headers
5239  # can be detected and how.
5240  cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h.  */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h.  */
5246#include <ac_nonexistent.h>
5247_ACEOF
5248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5249  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5250  ac_status=$?
5251  grep -v '^ *+' conftest.er1 >conftest.err
5252  rm -f conftest.er1
5253  cat conftest.err >&5
5254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255  (exit $ac_status); } >/dev/null; then
5256  if test -s conftest.err; then
5257    ac_cpp_err=$ac_c_preproc_warn_flag
5258    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5259  else
5260    ac_cpp_err=
5261  fi
5262else
5263  ac_cpp_err=yes
5264fi
5265if test -z "$ac_cpp_err"; then
5266  # Broken: success on invalid input.
5267continue
5268else
5269  echo "$as_me: failed program was:" >&5
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
5272  # Passes both tests.
5273ac_preproc_ok=:
5274break
5275fi
5276rm -f conftest.err conftest.$ac_ext
5277
5278done
5279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5280rm -f conftest.err conftest.$ac_ext
5281if $ac_preproc_ok; then
5282  break
5283fi
5284
5285    done
5286    ac_cv_prog_CPP=$CPP
5287
5288fi
5289  CPP=$ac_cv_prog_CPP
5290else
5291  ac_cv_prog_CPP=$CPP
5292fi
5293echo "$as_me:$LINENO: result: $CPP" >&5
5294echo "${ECHO_T}$CPP" >&6
5295ac_preproc_ok=false
5296for ac_c_preproc_warn_flag in '' yes
5297do
5298  # Use a header file that comes with gcc, so configuring glibc
5299  # with a fresh cross-compiler works.
5300  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5301  # <limits.h> exists even on freestanding compilers.
5302  # On the NeXT, cc -E runs the code through the compiler's parser,
5303  # not just through cpp. "Syntax error" is here to catch this case.
5304  cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h.  */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h.  */
5310#ifdef __STDC__
5311# include <limits.h>
5312#else
5313# include <assert.h>
5314#endif
5315                     Syntax error
5316_ACEOF
5317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5319  ac_status=$?
5320  grep -v '^ *+' conftest.er1 >conftest.err
5321  rm -f conftest.er1
5322  cat conftest.err >&5
5323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324  (exit $ac_status); } >/dev/null; then
5325  if test -s conftest.err; then
5326    ac_cpp_err=$ac_c_preproc_warn_flag
5327    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5328  else
5329    ac_cpp_err=
5330  fi
5331else
5332  ac_cpp_err=yes
5333fi
5334if test -z "$ac_cpp_err"; then
5335  :
5336else
5337  echo "$as_me: failed program was:" >&5
5338sed 's/^/| /' conftest.$ac_ext >&5
5339
5340  # Broken: fails on valid input.
5341continue
5342fi
5343rm -f conftest.err conftest.$ac_ext
5344
5345  # OK, works on sane cases.  Now check whether non-existent headers
5346  # can be detected and how.
5347  cat >conftest.$ac_ext <<_ACEOF
5348/* confdefs.h.  */
5349_ACEOF
5350cat confdefs.h >>conftest.$ac_ext
5351cat >>conftest.$ac_ext <<_ACEOF
5352/* end confdefs.h.  */
5353#include <ac_nonexistent.h>
5354_ACEOF
5355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5356  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5357  ac_status=$?
5358  grep -v '^ *+' conftest.er1 >conftest.err
5359  rm -f conftest.er1
5360  cat conftest.err >&5
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); } >/dev/null; then
5363  if test -s conftest.err; then
5364    ac_cpp_err=$ac_c_preproc_warn_flag
5365    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5366  else
5367    ac_cpp_err=
5368  fi
5369else
5370  ac_cpp_err=yes
5371fi
5372if test -z "$ac_cpp_err"; then
5373  # Broken: success on invalid input.
5374continue
5375else
5376  echo "$as_me: failed program was:" >&5
5377sed 's/^/| /' conftest.$ac_ext >&5
5378
5379  # Passes both tests.
5380ac_preproc_ok=:
5381break
5382fi
5383rm -f conftest.err conftest.$ac_ext
5384
5385done
5386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5387rm -f conftest.err conftest.$ac_ext
5388if $ac_preproc_ok; then
5389  :
5390else
5391  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5392See \`config.log' for more details." >&5
5393echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5394See \`config.log' for more details." >&2;}
5395   { (exit 1); exit 1; }; }
5396fi
5397
5398ac_ext=c
5399ac_cpp='$CPP $CPPFLAGS'
5400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403
5404
5405echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5406echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5407if test "${ac_cv_header_stdc+set}" = set; then
5408  echo $ECHO_N "(cached) $ECHO_C" >&6
5409else
5410  cat >conftest.$ac_ext <<_ACEOF
5411/* confdefs.h.  */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
5415/* end confdefs.h.  */
5416#include <stdlib.h>
5417#include <stdarg.h>
5418#include <string.h>
5419#include <float.h>
5420
5421int
5422main ()
5423{
5424
5425  ;
5426  return 0;
5427}
5428_ACEOF
5429rm -f conftest.$ac_objext
5430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431  (eval $ac_compile) 2>conftest.er1
5432  ac_status=$?
5433  grep -v '^ *+' conftest.er1 >conftest.err
5434  rm -f conftest.er1
5435  cat conftest.err >&5
5436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437  (exit $ac_status); } &&
5438         { ac_try='test -z "$ac_c_werror_flag"
5439                         || test ! -s conftest.err'
5440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441  (eval $ac_try) 2>&5
5442  ac_status=$?
5443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444  (exit $ac_status); }; } &&
5445         { ac_try='test -s conftest.$ac_objext'
5446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447  (eval $ac_try) 2>&5
5448  ac_status=$?
5449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450  (exit $ac_status); }; }; then
5451  ac_cv_header_stdc=yes
5452else
5453  echo "$as_me: failed program was:" >&5
5454sed 's/^/| /' conftest.$ac_ext >&5
5455
5456ac_cv_header_stdc=no
5457fi
5458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459
5460if test $ac_cv_header_stdc = yes; then
5461  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5462  cat >conftest.$ac_ext <<_ACEOF
5463/* confdefs.h.  */
5464_ACEOF
5465cat confdefs.h >>conftest.$ac_ext
5466cat >>conftest.$ac_ext <<_ACEOF
5467/* end confdefs.h.  */
5468#include <string.h>
5469
5470_ACEOF
5471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5472  $EGREP "memchr" >/dev/null 2>&1; then
5473  :
5474else
5475  ac_cv_header_stdc=no
5476fi
5477rm -f conftest*
5478
5479fi
5480
5481if test $ac_cv_header_stdc = yes; then
5482  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5483  cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h.  */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h.  */
5489#include <stdlib.h>
5490
5491_ACEOF
5492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5493  $EGREP "free" >/dev/null 2>&1; then
5494  :
5495else
5496  ac_cv_header_stdc=no
5497fi
5498rm -f conftest*
5499
5500fi
5501
5502if test $ac_cv_header_stdc = yes; then
5503  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5504  if test "$cross_compiling" = yes; then
5505  :
5506else
5507  cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h.  */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h.  */
5513#include <ctype.h>
5514#if ((' ' & 0x0FF) == 0x020)
5515# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5516# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5517#else
5518# define ISLOWER(c) \
5519                   (('a' <= (c) && (c) <= 'i') \
5520                     || ('j' <= (c) && (c) <= 'r') \
5521                     || ('s' <= (c) && (c) <= 'z'))
5522# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5523#endif
5524
5525#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5526int
5527main ()
5528{
5529  int i;
5530  for (i = 0; i < 256; i++)
5531    if (XOR (islower (i), ISLOWER (i))
5532        || toupper (i) != TOUPPER (i))
5533      exit(2);
5534  exit (0);
5535}
5536_ACEOF
5537rm -f conftest$ac_exeext
5538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539  (eval $ac_link) 2>&5
5540  ac_status=$?
5541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544  (eval $ac_try) 2>&5
5545  ac_status=$?
5546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547  (exit $ac_status); }; }; then
5548  :
5549else
5550  echo "$as_me: program exited with status $ac_status" >&5
5551echo "$as_me: failed program was:" >&5
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
5554( exit $ac_status )
5555ac_cv_header_stdc=no
5556fi
5557rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5558fi
5559fi
5560fi
5561echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5562echo "${ECHO_T}$ac_cv_header_stdc" >&6
5563if test $ac_cv_header_stdc = yes; then
5564
5565cat >>confdefs.h <<\_ACEOF
5566#define STDC_HEADERS 1
5567_ACEOF
5568
5569fi
5570
5571# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5582                  inttypes.h stdint.h unistd.h
5583do
5584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5585echo "$as_me:$LINENO: checking for $ac_header" >&5
5586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5587if eval "test \"\${$as_ac_Header+set}\" = set"; then
5588  echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590  cat >conftest.$ac_ext <<_ACEOF
5591/* confdefs.h.  */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h.  */
5596$ac_includes_default
5597
5598#include <$ac_header>
5599_ACEOF
5600rm -f conftest.$ac_objext
5601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602  (eval $ac_compile) 2>conftest.er1
5603  ac_status=$?
5604  grep -v '^ *+' conftest.er1 >conftest.err
5605  rm -f conftest.er1
5606  cat conftest.err >&5
5607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608  (exit $ac_status); } &&
5609         { ac_try='test -z "$ac_c_werror_flag"
5610                         || test ! -s conftest.err'
5611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612  (eval $ac_try) 2>&5
5613  ac_status=$?
5614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); }; } &&
5616         { ac_try='test -s conftest.$ac_objext'
5617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618  (eval $ac_try) 2>&5
5619  ac_status=$?
5620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621  (exit $ac_status); }; }; then
5622  eval "$as_ac_Header=yes"
5623else
5624  echo "$as_me: failed program was:" >&5
5625sed 's/^/| /' conftest.$ac_ext >&5
5626
5627eval "$as_ac_Header=no"
5628fi
5629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630fi
5631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5633if test `eval echo '${'$as_ac_Header'}'` = yes; then
5634  cat >>confdefs.h <<_ACEOF
5635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5636_ACEOF
5637
5638fi
5639
5640done
5641
5642
5643
5644for ac_header in dlfcn.h
5645do
5646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648  echo "$as_me:$LINENO: checking for $ac_header" >&5
5649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5650if eval "test \"\${$as_ac_Header+set}\" = set"; then
5651  echo $ECHO_N "(cached) $ECHO_C" >&6
5652fi
5653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5655else
5656  # Is the header compilable?
5657echo "$as_me:$LINENO: checking $ac_header usability" >&5
5658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5659cat >conftest.$ac_ext <<_ACEOF
5660/* confdefs.h.  */
5661_ACEOF
5662cat confdefs.h >>conftest.$ac_ext
5663cat >>conftest.$ac_ext <<_ACEOF
5664/* end confdefs.h.  */
5665$ac_includes_default
5666#include <$ac_header>
5667_ACEOF
5668rm -f conftest.$ac_objext
5669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670  (eval $ac_compile) 2>conftest.er1
5671  ac_status=$?
5672  grep -v '^ *+' conftest.er1 >conftest.err
5673  rm -f conftest.er1
5674  cat conftest.err >&5
5675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676  (exit $ac_status); } &&
5677         { ac_try='test -z "$ac_c_werror_flag"
5678                         || test ! -s conftest.err'
5679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680  (eval $ac_try) 2>&5
5681  ac_status=$?
5682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683  (exit $ac_status); }; } &&
5684         { ac_try='test -s conftest.$ac_objext'
5685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686  (eval $ac_try) 2>&5
5687  ac_status=$?
5688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689  (exit $ac_status); }; }; then
5690  ac_header_compiler=yes
5691else
5692  echo "$as_me: failed program was:" >&5
5693sed 's/^/| /' conftest.$ac_ext >&5
5694
5695ac_header_compiler=no
5696fi
5697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5698echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5699echo "${ECHO_T}$ac_header_compiler" >&6
5700
5701# Is the header present?
5702echo "$as_me:$LINENO: checking $ac_header presence" >&5
5703echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5704cat >conftest.$ac_ext <<_ACEOF
5705/* confdefs.h.  */
5706_ACEOF
5707cat confdefs.h >>conftest.$ac_ext
5708cat >>conftest.$ac_ext <<_ACEOF
5709/* end confdefs.h.  */
5710#include <$ac_header>
5711_ACEOF
5712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5713  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5714  ac_status=$?
5715  grep -v '^ *+' conftest.er1 >conftest.err
5716  rm -f conftest.er1
5717  cat conftest.err >&5
5718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719  (exit $ac_status); } >/dev/null; then
5720  if test -s conftest.err; then
5721    ac_cpp_err=$ac_c_preproc_warn_flag
5722    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5723  else
5724    ac_cpp_err=
5725  fi
5726else
5727  ac_cpp_err=yes
5728fi
5729if test -z "$ac_cpp_err"; then
5730  ac_header_preproc=yes
5731else
5732  echo "$as_me: failed program was:" >&5
5733sed 's/^/| /' conftest.$ac_ext >&5
5734
5735  ac_header_preproc=no
5736fi
5737rm -f conftest.err conftest.$ac_ext
5738echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5739echo "${ECHO_T}$ac_header_preproc" >&6
5740
5741# So?  What about this header?
5742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5743  yes:no: )
5744    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5745echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5746    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5747echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5748    ac_header_preproc=yes
5749    ;;
5750  no:yes:* )
5751    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5752echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5753    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5754echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5755    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5756echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5757    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5758echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5759    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5760echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5761    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5762echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5763    (
5764      cat <<\_ASBOX
5765## --------------------------------------------------------------- ##
5766## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5767## --------------------------------------------------------------- ##
5768_ASBOX
5769    ) |
5770      sed "s/^/$as_me: WARNING:     /" >&2
5771    ;;
5772esac
5773echo "$as_me:$LINENO: checking for $ac_header" >&5
5774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5775if eval "test \"\${$as_ac_Header+set}\" = set"; then
5776  echo $ECHO_N "(cached) $ECHO_C" >&6
5777else
5778  eval "$as_ac_Header=\$ac_header_preproc"
5779fi
5780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5782
5783fi
5784if test `eval echo '${'$as_ac_Header'}'` = yes; then
5785  cat >>confdefs.h <<_ACEOF
5786#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5787_ACEOF
5788
5789fi
5790
5791done
5792
5793ac_ext=cc
5794ac_cpp='$CXXCPP $CPPFLAGS'
5795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5798if test -n "$ac_tool_prefix"; then
5799  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5800  do
5801    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5802set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5803echo "$as_me:$LINENO: checking for $ac_word" >&5
5804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5805if test "${ac_cv_prog_CXX+set}" = set; then
5806  echo $ECHO_N "(cached) $ECHO_C" >&6
5807else
5808  if test -n "$CXX"; then
5809  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5810else
5811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812for as_dir in $PATH
5813do
5814  IFS=$as_save_IFS
5815  test -z "$as_dir" && as_dir=.
5816  for ac_exec_ext in '' $ac_executable_extensions; do
5817  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5819    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820    break 2
5821  fi
5822done
5823done
5824
5825fi
5826fi
5827CXX=$ac_cv_prog_CXX
5828if test -n "$CXX"; then
5829  echo "$as_me:$LINENO: result: $CXX" >&5
5830echo "${ECHO_T}$CXX" >&6
5831else
5832  echo "$as_me:$LINENO: result: no" >&5
5833echo "${ECHO_T}no" >&6
5834fi
5835
5836    test -n "$CXX" && break
5837  done
5838fi
5839if test -z "$CXX"; then
5840  ac_ct_CXX=$CXX
5841  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5842do
5843  # Extract the first word of "$ac_prog", so it can be a program name with args.
5844set dummy $ac_prog; ac_word=$2
5845echo "$as_me:$LINENO: checking for $ac_word" >&5
5846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5847if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5848  echo $ECHO_N "(cached) $ECHO_C" >&6
5849else
5850  if test -n "$ac_ct_CXX"; then
5851  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5852else
5853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854for as_dir in $PATH
5855do
5856  IFS=$as_save_IFS
5857  test -z "$as_dir" && as_dir=.
5858  for ac_exec_ext in '' $ac_executable_extensions; do
5859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860    ac_cv_prog_ac_ct_CXX="$ac_prog"
5861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862    break 2
5863  fi
5864done
5865done
5866
5867fi
5868fi
5869ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5870if test -n "$ac_ct_CXX"; then
5871  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5872echo "${ECHO_T}$ac_ct_CXX" >&6
5873else
5874  echo "$as_me:$LINENO: result: no" >&5
5875echo "${ECHO_T}no" >&6
5876fi
5877
5878  test -n "$ac_ct_CXX" && break
5879done
5880test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5881
5882  CXX=$ac_ct_CXX
5883fi
5884
5885
5886# Provide some information about the compiler.
5887echo "$as_me:$LINENO:" \
5888     "checking for C++ compiler version" >&5
5889ac_compiler=`set X $ac_compile; echo $2`
5890{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5891  (eval $ac_compiler --version </dev/null >&5) 2>&5
5892  ac_status=$?
5893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894  (exit $ac_status); }
5895{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5896  (eval $ac_compiler -v </dev/null >&5) 2>&5
5897  ac_status=$?
5898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899  (exit $ac_status); }
5900{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5901  (eval $ac_compiler -V </dev/null >&5) 2>&5
5902  ac_status=$?
5903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904  (exit $ac_status); }
5905
5906echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5907echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5908if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5909  echo $ECHO_N "(cached) $ECHO_C" >&6
5910else
5911  cat >conftest.$ac_ext <<_ACEOF
5912/* confdefs.h.  */
5913_ACEOF
5914cat confdefs.h >>conftest.$ac_ext
5915cat >>conftest.$ac_ext <<_ACEOF
5916/* end confdefs.h.  */
5917
5918int
5919main ()
5920{
5921#ifndef __GNUC__
5922       choke me
5923#endif
5924
5925  ;
5926  return 0;
5927}
5928_ACEOF
5929rm -f conftest.$ac_objext
5930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931  (eval $ac_compile) 2>conftest.er1
5932  ac_status=$?
5933  grep -v '^ *+' conftest.er1 >conftest.err
5934  rm -f conftest.er1
5935  cat conftest.err >&5
5936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937  (exit $ac_status); } &&
5938         { ac_try='test -z "$ac_cxx_werror_flag"
5939                         || test ! -s conftest.err'
5940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941  (eval $ac_try) 2>&5
5942  ac_status=$?
5943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944  (exit $ac_status); }; } &&
5945         { ac_try='test -s conftest.$ac_objext'
5946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947  (eval $ac_try) 2>&5
5948  ac_status=$?
5949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950  (exit $ac_status); }; }; then
5951  ac_compiler_gnu=yes
5952else
5953  echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
5955
5956ac_compiler_gnu=no
5957fi
5958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5960
5961fi
5962echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5963echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5964GXX=`test $ac_compiler_gnu = yes && echo yes`
5965ac_test_CXXFLAGS=${CXXFLAGS+set}
5966ac_save_CXXFLAGS=$CXXFLAGS
5967CXXFLAGS="-g"
5968echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5969echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5970if test "${ac_cv_prog_cxx_g+set}" = set; then
5971  echo $ECHO_N "(cached) $ECHO_C" >&6
5972else
5973  cat >conftest.$ac_ext <<_ACEOF
5974/* confdefs.h.  */
5975_ACEOF
5976cat confdefs.h >>conftest.$ac_ext
5977cat >>conftest.$ac_ext <<_ACEOF
5978/* end confdefs.h.  */
5979
5980int
5981main ()
5982{
5983
5984  ;
5985  return 0;
5986}
5987_ACEOF
5988rm -f conftest.$ac_objext
5989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5990  (eval $ac_compile) 2>conftest.er1
5991  ac_status=$?
5992  grep -v '^ *+' conftest.er1 >conftest.err
5993  rm -f conftest.er1
5994  cat conftest.err >&5
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); } &&
5997         { ac_try='test -z "$ac_cxx_werror_flag"
5998                         || test ! -s conftest.err'
5999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000  (eval $ac_try) 2>&5
6001  ac_status=$?
6002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003  (exit $ac_status); }; } &&
6004         { ac_try='test -s conftest.$ac_objext'
6005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006  (eval $ac_try) 2>&5
6007  ac_status=$?
6008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009  (exit $ac_status); }; }; then
6010  ac_cv_prog_cxx_g=yes
6011else
6012  echo "$as_me: failed program was:" >&5
6013sed 's/^/| /' conftest.$ac_ext >&5
6014
6015ac_cv_prog_cxx_g=no
6016fi
6017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6020echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6021if test "$ac_test_CXXFLAGS" = set; then
6022  CXXFLAGS=$ac_save_CXXFLAGS
6023elif test $ac_cv_prog_cxx_g = yes; then
6024  if test "$GXX" = yes; then
6025    CXXFLAGS="-g -O2"
6026  else
6027    CXXFLAGS="-g"
6028  fi
6029else
6030  if test "$GXX" = yes; then
6031    CXXFLAGS="-O2"
6032  else
6033    CXXFLAGS=
6034  fi
6035fi
6036for ac_declaration in \
6037   '' \
6038   'extern "C" void std::exit (int) throw (); using std::exit;' \
6039   'extern "C" void std::exit (int); using std::exit;' \
6040   'extern "C" void exit (int) throw ();' \
6041   'extern "C" void exit (int);' \
6042   'void exit (int);'
6043do
6044  cat >conftest.$ac_ext <<_ACEOF
6045/* confdefs.h.  */
6046_ACEOF
6047cat confdefs.h >>conftest.$ac_ext
6048cat >>conftest.$ac_ext <<_ACEOF
6049/* end confdefs.h.  */
6050$ac_declaration
6051#include <stdlib.h>
6052int
6053main ()
6054{
6055exit (42);
6056  ;
6057  return 0;
6058}
6059_ACEOF
6060rm -f conftest.$ac_objext
6061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062  (eval $ac_compile) 2>conftest.er1
6063  ac_status=$?
6064  grep -v '^ *+' conftest.er1 >conftest.err
6065  rm -f conftest.er1
6066  cat conftest.err >&5
6067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068  (exit $ac_status); } &&
6069         { ac_try='test -z "$ac_cxx_werror_flag"
6070                         || test ! -s conftest.err'
6071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072  (eval $ac_try) 2>&5
6073  ac_status=$?
6074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075  (exit $ac_status); }; } &&
6076         { ac_try='test -s conftest.$ac_objext'
6077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078  (eval $ac_try) 2>&5
6079  ac_status=$?
6080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081  (exit $ac_status); }; }; then
6082  :
6083else
6084  echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087continue
6088fi
6089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6090  cat >conftest.$ac_ext <<_ACEOF
6091/* confdefs.h.  */
6092_ACEOF
6093cat confdefs.h >>conftest.$ac_ext
6094cat >>conftest.$ac_ext <<_ACEOF
6095/* end confdefs.h.  */
6096$ac_declaration
6097int
6098main ()
6099{
6100exit (42);
6101  ;
6102  return 0;
6103}
6104_ACEOF
6105rm -f conftest.$ac_objext
6106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107  (eval $ac_compile) 2>conftest.er1
6108  ac_status=$?
6109  grep -v '^ *+' conftest.er1 >conftest.err
6110  rm -f conftest.er1
6111  cat conftest.err >&5
6112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113  (exit $ac_status); } &&
6114         { ac_try='test -z "$ac_cxx_werror_flag"
6115                         || test ! -s conftest.err'
6116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117  (eval $ac_try) 2>&5
6118  ac_status=$?
6119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); }; } &&
6121         { ac_try='test -s conftest.$ac_objext'
6122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123  (eval $ac_try) 2>&5
6124  ac_status=$?
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); }; }; then
6127  break
6128else
6129  echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
6132fi
6133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6134done
6135rm -f conftest*
6136if test -n "$ac_declaration"; then
6137  echo '#ifdef __cplusplus' >>confdefs.h
6138  echo $ac_declaration      >>confdefs.h
6139  echo '#endif'             >>confdefs.h
6140fi
6141
6142ac_ext=cc
6143ac_cpp='$CXXCPP $CPPFLAGS'
6144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6147
6148depcc="$CXX"  am_compiler_list=
6149
6150echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6151echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6152if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6153  echo $ECHO_N "(cached) $ECHO_C" >&6
6154else
6155  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6156  # We make a subdir and do the tests there.  Otherwise we can end up
6157  # making bogus files that we don't know about and never remove.  For
6158  # instance it was reported that on HP-UX the gcc test will end up
6159  # making a dummy file named `D' -- because `-MD' means `put the output
6160  # in D'.
6161  mkdir conftest.dir
6162  # Copy depcomp to subdir because otherwise we won't find it if we're
6163  # using a relative directory.
6164  cp "$am_depcomp" conftest.dir
6165  cd conftest.dir
6166  # We will build objects and dependencies in a subdirectory because
6167  # it helps to detect inapplicable dependency modes.  For instance
6168  # both Tru64's cc and ICC support -MD to output dependencies as a
6169  # side effect of compilation, but ICC will put the dependencies in
6170  # the current directory while Tru64 will put them in the object
6171  # directory.
6172  mkdir sub
6173
6174  am_cv_CXX_dependencies_compiler_type=none
6175  if test "$am_compiler_list" = ""; then
6176     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6177  fi
6178  for depmode in $am_compiler_list; do
6179    # Setup a source with many dependencies, because some compilers
6180    # like to wrap large dependency lists on column 80 (with \), and
6181    # we should not choose a depcomp mode which is confused by this.
6182    #
6183    # We need to recreate these files for each test, as the compiler may
6184    # overwrite some of them when testing with obscure command lines.
6185    # This happens at least with the AIX C compiler.
6186    : > sub/conftest.c
6187    for i in 1 2 3 4 5 6; do
6188      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6189      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6190      # Solaris 8's {/usr,}/bin/sh.
6191      touch sub/conftst$i.h
6192    done
6193    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6194
6195    case $depmode in
6196    nosideeffect)
6197      # after this tag, mechanisms are not by side-effect, so they'll
6198      # only be used when explicitly requested
6199      if test "x$enable_dependency_tracking" = xyes; then
6200        continue
6201      else
6202        break
6203      fi
6204      ;;
6205    none) break ;;
6206    esac
6207    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6208    # mode.  It turns out that the SunPro C++ compiler does not properly
6209    # handle `-M -o', and we need to detect this.
6210    if depmode=$depmode \
6211       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6212       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6213       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6214         >/dev/null 2>conftest.err &&
6215       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6216       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6217       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6218      # icc doesn't choke on unknown options, it will just issue warnings
6219      # or remarks (even with -Werror).  So we grep stderr for any message
6220      # that says an option was ignored or not supported.
6221      # When given -MP, icc 7.0 and 7.1 complain thusly:
6222      #   icc: Command line warning: ignoring option '-M'; no argument required
6223      # The diagnosis changed in icc 8.0:
6224      #   icc: Command line remark: option '-MP' not supported
6225      if (grep 'ignoring option' conftest.err ||
6226          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6227        am_cv_CXX_dependencies_compiler_type=$depmode
6228        break
6229      fi
6230    fi
6231  done
6232
6233  cd ..
6234  rm -rf conftest.dir
6235else
6236  am_cv_CXX_dependencies_compiler_type=none
6237fi
6238
6239fi
6240echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6241echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6242CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6243
6244
6245
6246if
6247  test "x$enable_dependency_tracking" != xno \
6248  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6249  am__fastdepCXX_TRUE=
6250  am__fastdepCXX_FALSE='#'
6251else
6252  am__fastdepCXX_TRUE='#'
6253  am__fastdepCXX_FALSE=
6254fi
6255
6256
6257
6258
6259if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6260    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6261    (test "X$CXX" != "Xg++"))) ; then
6262  ac_ext=cc
6263ac_cpp='$CXXCPP $CPPFLAGS'
6264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6267echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6268echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6269if test -z "$CXXCPP"; then
6270  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6271  echo $ECHO_N "(cached) $ECHO_C" >&6
6272else
6273      # Double quotes because CXXCPP needs to be expanded
6274    for CXXCPP in "$CXX -E" "/lib/cpp"
6275    do
6276      ac_preproc_ok=false
6277for ac_cxx_preproc_warn_flag in '' yes
6278do
6279  # Use a header file that comes with gcc, so configuring glibc
6280  # with a fresh cross-compiler works.
6281  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6282  # <limits.h> exists even on freestanding compilers.
6283  # On the NeXT, cc -E runs the code through the compiler's parser,
6284  # not just through cpp. "Syntax error" is here to catch this case.
6285  cat >conftest.$ac_ext <<_ACEOF
6286/* confdefs.h.  */
6287_ACEOF
6288cat confdefs.h >>conftest.$ac_ext
6289cat >>conftest.$ac_ext <<_ACEOF
6290/* end confdefs.h.  */
6291#ifdef __STDC__
6292# include <limits.h>
6293#else
6294# include <assert.h>
6295#endif
6296                     Syntax error
6297_ACEOF
6298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6299  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6300  ac_status=$?
6301  grep -v '^ *+' conftest.er1 >conftest.err
6302  rm -f conftest.er1
6303  cat conftest.err >&5
6304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305  (exit $ac_status); } >/dev/null; then
6306  if test -s conftest.err; then
6307    ac_cpp_err=$ac_cxx_preproc_warn_flag
6308    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6309  else
6310    ac_cpp_err=
6311  fi
6312else
6313  ac_cpp_err=yes
6314fi
6315if test -z "$ac_cpp_err"; then
6316  :
6317else
6318  echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
6321  # Broken: fails on valid input.
6322continue
6323fi
6324rm -f conftest.err conftest.$ac_ext
6325
6326  # OK, works on sane cases.  Now check whether non-existent headers
6327  # can be detected and how.
6328  cat >conftest.$ac_ext <<_ACEOF
6329/* confdefs.h.  */
6330_ACEOF
6331cat confdefs.h >>conftest.$ac_ext
6332cat >>conftest.$ac_ext <<_ACEOF
6333/* end confdefs.h.  */
6334#include <ac_nonexistent.h>
6335_ACEOF
6336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6338  ac_status=$?
6339  grep -v '^ *+' conftest.er1 >conftest.err
6340  rm -f conftest.er1
6341  cat conftest.err >&5
6342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343  (exit $ac_status); } >/dev/null; then
6344  if test -s conftest.err; then
6345    ac_cpp_err=$ac_cxx_preproc_warn_flag
6346    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6347  else
6348    ac_cpp_err=
6349  fi
6350else
6351  ac_cpp_err=yes
6352fi
6353if test -z "$ac_cpp_err"; then
6354  # Broken: success on invalid input.
6355continue
6356else
6357  echo "$as_me: failed program was:" >&5
6358sed 's/^/| /' conftest.$ac_ext >&5
6359
6360  # Passes both tests.
6361ac_preproc_ok=:
6362break
6363fi
6364rm -f conftest.err conftest.$ac_ext
6365
6366done
6367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6368rm -f conftest.err conftest.$ac_ext
6369if $ac_preproc_ok; then
6370  break
6371fi
6372
6373    done
6374    ac_cv_prog_CXXCPP=$CXXCPP
6375
6376fi
6377  CXXCPP=$ac_cv_prog_CXXCPP
6378else
6379  ac_cv_prog_CXXCPP=$CXXCPP
6380fi
6381echo "$as_me:$LINENO: result: $CXXCPP" >&5
6382echo "${ECHO_T}$CXXCPP" >&6
6383ac_preproc_ok=false
6384for ac_cxx_preproc_warn_flag in '' yes
6385do
6386  # Use a header file that comes with gcc, so configuring glibc
6387  # with a fresh cross-compiler works.
6388  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6389  # <limits.h> exists even on freestanding compilers.
6390  # On the NeXT, cc -E runs the code through the compiler's parser,
6391  # not just through cpp. "Syntax error" is here to catch this case.
6392  cat >conftest.$ac_ext <<_ACEOF
6393/* confdefs.h.  */
6394_ACEOF
6395cat confdefs.h >>conftest.$ac_ext
6396cat >>conftest.$ac_ext <<_ACEOF
6397/* end confdefs.h.  */
6398#ifdef __STDC__
6399# include <limits.h>
6400#else
6401# include <assert.h>
6402#endif
6403                     Syntax error
6404_ACEOF
6405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6406  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6407  ac_status=$?
6408  grep -v '^ *+' conftest.er1 >conftest.err
6409  rm -f conftest.er1
6410  cat conftest.err >&5
6411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412  (exit $ac_status); } >/dev/null; then
6413  if test -s conftest.err; then
6414    ac_cpp_err=$ac_cxx_preproc_warn_flag
6415    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6416  else
6417    ac_cpp_err=
6418  fi
6419else
6420  ac_cpp_err=yes
6421fi
6422if test -z "$ac_cpp_err"; then
6423  :
6424else
6425  echo "$as_me: failed program was:" >&5
6426sed 's/^/| /' conftest.$ac_ext >&5
6427
6428  # Broken: fails on valid input.
6429continue
6430fi
6431rm -f conftest.err conftest.$ac_ext
6432
6433  # OK, works on sane cases.  Now check whether non-existent headers
6434  # can be detected and how.
6435  cat >conftest.$ac_ext <<_ACEOF
6436/* confdefs.h.  */
6437_ACEOF
6438cat confdefs.h >>conftest.$ac_ext
6439cat >>conftest.$ac_ext <<_ACEOF
6440/* end confdefs.h.  */
6441#include <ac_nonexistent.h>
6442_ACEOF
6443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6444  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6445  ac_status=$?
6446  grep -v '^ *+' conftest.er1 >conftest.err
6447  rm -f conftest.er1
6448  cat conftest.err >&5
6449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450  (exit $ac_status); } >/dev/null; then
6451  if test -s conftest.err; then
6452    ac_cpp_err=$ac_cxx_preproc_warn_flag
6453    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6454  else
6455    ac_cpp_err=
6456  fi
6457else
6458  ac_cpp_err=yes
6459fi
6460if test -z "$ac_cpp_err"; then
6461  # Broken: success on invalid input.
6462continue
6463else
6464  echo "$as_me: failed program was:" >&5
6465sed 's/^/| /' conftest.$ac_ext >&5
6466
6467  # Passes both tests.
6468ac_preproc_ok=:
6469break
6470fi
6471rm -f conftest.err conftest.$ac_ext
6472
6473done
6474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6475rm -f conftest.err conftest.$ac_ext
6476if $ac_preproc_ok; then
6477  :
6478else
6479  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6480See \`config.log' for more details." >&5
6481echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6482See \`config.log' for more details." >&2;}
6483   { (exit 1); exit 1; }; }
6484fi
6485
6486ac_ext=cc
6487ac_cpp='$CXXCPP $CPPFLAGS'
6488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6491
6492fi
6493
6494
6495ac_ext=f
6496ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6497ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6499if test -n "$ac_tool_prefix"; then
6500  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6501  do
6502    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6503set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6504echo "$as_me:$LINENO: checking for $ac_word" >&5
6505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6506if test "${ac_cv_prog_F77+set}" = set; then
6507  echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509  if test -n "$F77"; then
6510  ac_cv_prog_F77="$F77" # Let the user override the test.
6511else
6512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513for as_dir in $PATH
6514do
6515  IFS=$as_save_IFS
6516  test -z "$as_dir" && as_dir=.
6517  for ac_exec_ext in '' $ac_executable_extensions; do
6518  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521    break 2
6522  fi
6523done
6524done
6525
6526fi
6527fi
6528F77=$ac_cv_prog_F77
6529if test -n "$F77"; then
6530  echo "$as_me:$LINENO: result: $F77" >&5
6531echo "${ECHO_T}$F77" >&6
6532else
6533  echo "$as_me:$LINENO: result: no" >&5
6534echo "${ECHO_T}no" >&6
6535fi
6536
6537    test -n "$F77" && break
6538  done
6539fi
6540if test -z "$F77"; then
6541  ac_ct_F77=$F77
6542  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6543do
6544  # Extract the first word of "$ac_prog", so it can be a program name with args.
6545set dummy $ac_prog; ac_word=$2
6546echo "$as_me:$LINENO: checking for $ac_word" >&5
6547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6548if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6549  echo $ECHO_N "(cached) $ECHO_C" >&6
6550else
6551  if test -n "$ac_ct_F77"; then
6552  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6553else
6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557  IFS=$as_save_IFS
6558  test -z "$as_dir" && as_dir=.
6559  for ac_exec_ext in '' $ac_executable_extensions; do
6560  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561    ac_cv_prog_ac_ct_F77="$ac_prog"
6562    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563    break 2
6564  fi
6565done
6566done
6567
6568fi
6569fi
6570ac_ct_F77=$ac_cv_prog_ac_ct_F77
6571if test -n "$ac_ct_F77"; then
6572  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6573echo "${ECHO_T}$ac_ct_F77" >&6
6574else
6575  echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6
6577fi
6578
6579  test -n "$ac_ct_F77" && break
6580done
6581
6582  F77=$ac_ct_F77
6583fi
6584
6585
6586# Provide some information about the compiler.
6587echo "$as_me:6587:" \
6588     "checking for Fortran 77 compiler version" >&5
6589ac_compiler=`set X $ac_compile; echo $2`
6590{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6591  (eval $ac_compiler --version </dev/null >&5) 2>&5
6592  ac_status=$?
6593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594  (exit $ac_status); }
6595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6596  (eval $ac_compiler -v </dev/null >&5) 2>&5
6597  ac_status=$?
6598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599  (exit $ac_status); }
6600{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6601  (eval $ac_compiler -V </dev/null >&5) 2>&5
6602  ac_status=$?
6603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604  (exit $ac_status); }
6605rm -f a.out
6606
6607# If we don't use `.F' as extension, the preprocessor is not run on the
6608# input file.  (Note that this only needs to work for GNU compilers.)
6609ac_save_ext=$ac_ext
6610ac_ext=F
6611echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6612echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6613if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6614  echo $ECHO_N "(cached) $ECHO_C" >&6
6615else
6616  cat >conftest.$ac_ext <<_ACEOF
6617      program main
6618#ifndef __GNUC__
6619       choke me
6620#endif
6621
6622      end
6623_ACEOF
6624rm -f conftest.$ac_objext
6625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6626  (eval $ac_compile) 2>conftest.er1
6627  ac_status=$?
6628  grep -v '^ *+' conftest.er1 >conftest.err
6629  rm -f conftest.er1
6630  cat conftest.err >&5
6631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632  (exit $ac_status); } &&
6633         { ac_try='test -z "$ac_f77_werror_flag"
6634                         || test ! -s conftest.err'
6635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636  (eval $ac_try) 2>&5
6637  ac_status=$?
6638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639  (exit $ac_status); }; } &&
6640         { ac_try='test -s conftest.$ac_objext'
6641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642  (eval $ac_try) 2>&5
6643  ac_status=$?
6644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645  (exit $ac_status); }; }; then
6646  ac_compiler_gnu=yes
6647else
6648  echo "$as_me: failed program was:" >&5
6649sed 's/^/| /' conftest.$ac_ext >&5
6650
6651ac_compiler_gnu=no
6652fi
6653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6654ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6655
6656fi
6657echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6658echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6659ac_ext=$ac_save_ext
6660ac_test_FFLAGS=${FFLAGS+set}
6661ac_save_FFLAGS=$FFLAGS
6662FFLAGS=
6663echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6664echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6665if test "${ac_cv_prog_f77_g+set}" = set; then
6666  echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668  FFLAGS=-g
6669cat >conftest.$ac_ext <<_ACEOF
6670      program main
6671
6672      end
6673_ACEOF
6674rm -f conftest.$ac_objext
6675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6676  (eval $ac_compile) 2>conftest.er1
6677  ac_status=$?
6678  grep -v '^ *+' conftest.er1 >conftest.err
6679  rm -f conftest.er1
6680  cat conftest.err >&5
6681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682  (exit $ac_status); } &&
6683         { ac_try='test -z "$ac_f77_werror_flag"
6684                         || test ! -s conftest.err'
6685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686  (eval $ac_try) 2>&5
6687  ac_status=$?
6688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689  (exit $ac_status); }; } &&
6690         { ac_try='test -s conftest.$ac_objext'
6691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692  (eval $ac_try) 2>&5
6693  ac_status=$?
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); }; }; then
6696  ac_cv_prog_f77_g=yes
6697else
6698  echo "$as_me: failed program was:" >&5
6699sed 's/^/| /' conftest.$ac_ext >&5
6700
6701ac_cv_prog_f77_g=no
6702fi
6703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6704
6705fi
6706echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6707echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6708if test "$ac_test_FFLAGS" = set; then
6709  FFLAGS=$ac_save_FFLAGS
6710elif test $ac_cv_prog_f77_g = yes; then
6711  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6712    FFLAGS="-g -O2"
6713  else
6714    FFLAGS="-g"
6715  fi
6716else
6717  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6718    FFLAGS="-O2"
6719  else
6720    FFLAGS=
6721  fi
6722fi
6723
6724G77=`test $ac_compiler_gnu = yes && echo yes`
6725ac_ext=c
6726ac_cpp='$CPP $CPPFLAGS'
6727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6729ac_compiler_gnu=$ac_cv_c_compiler_gnu
6730
6731
6732
6733# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6734
6735# find the maximum length of command line arguments
6736echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6737echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6738if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6739  echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741    i=0
6742  teststring="ABCD"
6743
6744  case $build_os in
6745  msdosdjgpp*)
6746    # On DJGPP, this test can blow up pretty badly due to problems in libc
6747    # (any single argument exceeding 2000 bytes causes a buffer overrun
6748    # during glob expansion).  Even if it were fixed, the result of this
6749    # check would be larger than it should be.
6750    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6751    ;;
6752
6753  gnu*)
6754    # Under GNU Hurd, this test is not required because there is
6755    # no limit to the length of command line arguments.
6756    # Libtool will interpret -1 as no limit whatsoever
6757    lt_cv_sys_max_cmd_len=-1;
6758    ;;
6759
6760  cygwin* | mingw*)
6761    # On Win9x/ME, this test blows up -- it succeeds, but takes
6762    # about 5 minutes as the teststring grows exponentially.
6763    # Worse, since 9x/ME are not pre-emptively multitasking,
6764    # you end up with a "frozen" computer, even though with patience
6765    # the test eventually succeeds (with a max line length of 256k).
6766    # Instead, let's just punt: use the minimum linelength reported by
6767    # all of the supported platforms: 8192 (on NT/2K/XP).
6768    lt_cv_sys_max_cmd_len=8192;
6769    ;;
6770
6771  amigaos*)
6772    # On AmigaOS with pdksh, this test takes hours, literally.
6773    # So we just punt and use a minimum line length of 8192.
6774    lt_cv_sys_max_cmd_len=8192;
6775    ;;
6776
6777  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6778    # This has been around since 386BSD, at least.  Likely further.
6779    if test -x /sbin/sysctl; then
6780      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6781    elif test -x /usr/sbin/sysctl; then
6782      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6783    else
6784      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6785    fi
6786    # And add a safety zone
6787    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6788    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6789    ;;
6790
6791  interix*)
6792    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6793    lt_cv_sys_max_cmd_len=196608
6794    ;;
6795
6796  osf*)
6797    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6798    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6799    # nice to cause kernel panics so lets avoid the loop below.
6800    # First set a reasonable default.
6801    lt_cv_sys_max_cmd_len=16384
6802    #
6803    if test -x /sbin/sysconfig; then
6804      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6805        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6806      esac
6807    fi
6808    ;;
6809  sco3.2v5*)
6810    lt_cv_sys_max_cmd_len=102400
6811    ;;
6812  sysv5* | sco5v6* | sysv4.2uw2*)
6813    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6814    if test -n "$kargmax"; then
6815      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6816    else
6817      lt_cv_sys_max_cmd_len=32768
6818    fi
6819    ;;
6820  *)
6821    # If test is not a shell built-in, we'll probably end up computing a
6822    # maximum length that is only half of the actual maximum length, but
6823    # we can't tell.
6824    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6825    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6826               = "XX$teststring") >/dev/null 2>&1 &&
6827            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6828            lt_cv_sys_max_cmd_len=$new_result &&
6829            test $i != 17 # 1/2 MB should be enough
6830    do
6831      i=`expr $i + 1`
6832      teststring=$teststring$teststring
6833    done
6834    teststring=
6835    # Add a significant safety factor because C++ compilers can tack on massive
6836    # amounts of additional arguments before passing them to the linker.
6837    # It appears as though 1/2 is a usable value.
6838    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6839    ;;
6840  esac
6841
6842fi
6843
6844if test -n $lt_cv_sys_max_cmd_len ; then
6845  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6846echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6847else
6848  echo "$as_me:$LINENO: result: none" >&5
6849echo "${ECHO_T}none" >&6
6850fi
6851
6852
6853
6854
6855# Check for command to grab the raw symbol name followed by C symbol from nm.
6856echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6857echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6858if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6859  echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861
6862# These are sane defaults that work on at least a few old systems.
6863# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6864
6865# Character class describing NM global symbol codes.
6866symcode='[BCDEGRST]'
6867
6868# Regexp to match symbols that can be accessed directly from C.
6869sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6870
6871# Transform an extracted symbol line into a proper C declaration
6872lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6873
6874# Transform an extracted symbol line into symbol name and symbol address
6875lt_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'"
6876
6877# Define system-specific variables.
6878case $host_os in
6879aix*)
6880  symcode='[BCDT]'
6881  ;;
6882cygwin* | mingw* | pw32*)
6883  symcode='[ABCDGISTW]'
6884  ;;
6885hpux*) # Its linker distinguishes data from code symbols
6886  if test "$host_cpu" = ia64; then
6887    symcode='[ABCDEGRST]'
6888  fi
6889  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6890  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6891  ;;
6892linux*)
6893  if test "$host_cpu" = ia64; then
6894    symcode='[ABCDGIRSTW]'
6895    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6896    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'"
6897  fi
6898  ;;
6899irix* | nonstopux*)
6900  symcode='[BCDEGRST]'
6901  ;;
6902osf*)
6903  symcode='[BCDEGQRST]'
6904  ;;
6905solaris*)
6906  symcode='[BDRT]'
6907  ;;
6908sco3.2v5*)
6909  symcode='[DT]'
6910  ;;
6911sysv4.2uw2*)
6912  symcode='[DT]'
6913  ;;
6914sysv5* | sco5v6* | unixware* | OpenUNIX*)
6915  symcode='[ABDT]'
6916  ;;
6917sysv4)
6918  symcode='[DFNSTU]'
6919  ;;
6920esac
6921
6922# Handle CRLF in mingw tool chain
6923opt_cr=
6924case $build_os in
6925mingw*)
6926  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6927  ;;
6928esac
6929
6930# If we're using GNU nm, then use its standard symbol codes.
6931case `$NM -V 2>&1` in
6932*GNU* | *'with BFD'*)
6933  symcode='[ABCDGIRSTW]' ;;
6934esac
6935
6936# Try without a prefix undercore, then with it.
6937for ac_symprfx in "" "_"; do
6938
6939  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6940  symxfrm="\\1 $ac_symprfx\\2 \\2"
6941
6942  # Write the raw and C identifiers.
6943  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6944
6945  # Check to see that the pipe works correctly.
6946  pipe_works=no
6947
6948  rm -f conftest*
6949  cat > conftest.$ac_ext <<EOF
6950#ifdef __cplusplus
6951extern "C" {
6952#endif
6953char nm_test_var;
6954void nm_test_func(){}
6955#ifdef __cplusplus
6956}
6957#endif
6958int main(){nm_test_var='a';nm_test_func();return(0);}
6959EOF
6960
6961  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962  (eval $ac_compile) 2>&5
6963  ac_status=$?
6964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965  (exit $ac_status); }; then
6966    # Now try to grab the symbols.
6967    nlist=conftest.nm
6968    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6969  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6970  ac_status=$?
6971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972  (exit $ac_status); } && test -s "$nlist"; then
6973      # Try sorting and uniquifying the output.
6974      if sort "$nlist" | uniq > "$nlist"T; then
6975        mv -f "$nlist"T "$nlist"
6976      else
6977        rm -f "$nlist"T
6978      fi
6979
6980      # Make sure that we snagged all the symbols we need.
6981      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6982        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6983          cat <<EOF > conftest.$ac_ext
6984#ifdef __cplusplus
6985extern "C" {
6986#endif
6987
6988EOF
6989          # Now generate the symbol file.
6990          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6991
6992          cat <<EOF >> conftest.$ac_ext
6993#if defined (__STDC__) && __STDC__
6994# define lt_ptr_t void *
6995#else
6996# define lt_ptr_t char *
6997# define const
6998#endif
6999
7000/* The mapping between symbol names and symbols. */
7001const struct {
7002  const char *name;
7003  lt_ptr_t address;
7004}
7005lt_preloaded_symbols[] =
7006{
7007EOF
7008          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7009          cat <<\EOF >> conftest.$ac_ext
7010  {0, (lt_ptr_t) 0}
7011};
7012
7013#ifdef __cplusplus
7014}
7015#endif
7016EOF
7017          # Now try linking the two files.
7018          mv conftest.$ac_objext conftstm.$ac_objext
7019          lt_save_LIBS="$LIBS"
7020          lt_save_CFLAGS="$CFLAGS"
7021          LIBS="conftstm.$ac_objext"
7022          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7023          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7024  (eval $ac_link) 2>&5
7025  ac_status=$?
7026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7028            pipe_works=yes
7029          fi
7030          LIBS="$lt_save_LIBS"
7031          CFLAGS="$lt_save_CFLAGS"
7032        else
7033          echo "cannot find nm_test_func in $nlist" >&5
7034        fi
7035      else
7036        echo "cannot find nm_test_var in $nlist" >&5
7037      fi
7038    else
7039      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7040    fi
7041  else
7042    echo "$progname: failed program was:" >&5
7043    cat conftest.$ac_ext >&5
7044  fi
7045  rm -f conftest* conftst*
7046
7047  # Do not use the global_symbol_pipe unless it works.
7048  if test "$pipe_works" = yes; then
7049    break
7050  else
7051    lt_cv_sys_global_symbol_pipe=
7052  fi
7053done
7054
7055fi
7056
7057if test -z "$lt_cv_sys_global_symbol_pipe"; then
7058  lt_cv_sys_global_symbol_to_cdecl=
7059fi
7060if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7061  echo "$as_me:$LINENO: result: failed" >&5
7062echo "${ECHO_T}failed" >&6
7063else
7064  echo "$as_me:$LINENO: result: ok" >&5
7065echo "${ECHO_T}ok" >&6
7066fi
7067
7068echo "$as_me:$LINENO: checking for objdir" >&5
7069echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7070if test "${lt_cv_objdir+set}" = set; then
7071  echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073  rm -f .libs 2>/dev/null
7074mkdir .libs 2>/dev/null
7075if test -d .libs; then
7076  lt_cv_objdir=.libs
7077else
7078  # MS-DOS does not allow filenames that begin with a dot.
7079  lt_cv_objdir=_libs
7080fi
7081rmdir .libs 2>/dev/null
7082fi
7083echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7084echo "${ECHO_T}$lt_cv_objdir" >&6
7085objdir=$lt_cv_objdir
7086
7087
7088
7089
7090
7091case $host_os in
7092aix3*)
7093  # AIX sometimes has problems with the GCC collect2 program.  For some
7094  # reason, if we set the COLLECT_NAMES environment variable, the problems
7095  # vanish in a puff of smoke.
7096  if test "X${COLLECT_NAMES+set}" != Xset; then
7097    COLLECT_NAMES=
7098    export COLLECT_NAMES
7099  fi
7100  ;;
7101esac
7102
7103# Sed substitution that helps us do robust quoting.  It backslashifies
7104# metacharacters that are still active within double-quoted strings.
7105Xsed='sed -e 1s/^X//'
7106sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7107
7108# Same as above, but do not quote variable references.
7109double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7110
7111# Sed substitution to delay expansion of an escaped shell variable in a
7112# double_quote_subst'ed string.
7113delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7114
7115# Sed substitution to avoid accidental globbing in evaled expressions
7116no_glob_subst='s/\*/\\\*/g'
7117
7118# Constants:
7119rm="rm -f"
7120
7121# Global variables:
7122default_ofile=libtool
7123can_build_shared=yes
7124
7125# All known linkers require a `.a' archive for static linking (except MSVC,
7126# which needs '.lib').
7127libext=a
7128ltmain="$ac_aux_dir/ltmain.sh"
7129ofile="$default_ofile"
7130with_gnu_ld="$lt_cv_prog_gnu_ld"
7131
7132if test -n "$ac_tool_prefix"; then
7133  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7134set dummy ${ac_tool_prefix}ar; ac_word=$2
7135echo "$as_me:$LINENO: checking for $ac_word" >&5
7136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7137if test "${ac_cv_prog_AR+set}" = set; then
7138  echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
7140  if test -n "$AR"; then
7141  ac_cv_prog_AR="$AR" # Let the user override the test.
7142else
7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146  IFS=$as_save_IFS
7147  test -z "$as_dir" && as_dir=.
7148  for ac_exec_ext in '' $ac_executable_extensions; do
7149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150    ac_cv_prog_AR="${ac_tool_prefix}ar"
7151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152    break 2
7153  fi
7154done
7155done
7156
7157fi
7158fi
7159AR=$ac_cv_prog_AR
7160if test -n "$AR"; then
7161  echo "$as_me:$LINENO: result: $AR" >&5
7162echo "${ECHO_T}$AR" >&6
7163else
7164  echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
7166fi
7167
7168fi
7169if test -z "$ac_cv_prog_AR"; then
7170  ac_ct_AR=$AR
7171  # Extract the first word of "ar", so it can be a program name with args.
7172set dummy ar; ac_word=$2
7173echo "$as_me:$LINENO: checking for $ac_word" >&5
7174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7176  echo $ECHO_N "(cached) $ECHO_C" >&6
7177else
7178  if test -n "$ac_ct_AR"; then
7179  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7180else
7181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182for as_dir in $PATH
7183do
7184  IFS=$as_save_IFS
7185  test -z "$as_dir" && as_dir=.
7186  for ac_exec_ext in '' $ac_executable_extensions; do
7187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188    ac_cv_prog_ac_ct_AR="ar"
7189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190    break 2
7191  fi
7192done
7193done
7194
7195  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7196fi
7197fi
7198ac_ct_AR=$ac_cv_prog_ac_ct_AR
7199if test -n "$ac_ct_AR"; then
7200  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7201echo "${ECHO_T}$ac_ct_AR" >&6
7202else
7203  echo "$as_me:$LINENO: result: no" >&5
7204echo "${ECHO_T}no" >&6
7205fi
7206
7207  AR=$ac_ct_AR
7208else
7209  AR="$ac_cv_prog_AR"
7210fi
7211
7212if test -n "$ac_tool_prefix"; then
7213  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7214set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7215echo "$as_me:$LINENO: checking for $ac_word" >&5
7216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7217if test "${ac_cv_prog_RANLIB+set}" = set; then
7218  echo $ECHO_N "(cached) $ECHO_C" >&6
7219else
7220  if test -n "$RANLIB"; then
7221  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7222else
7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226  IFS=$as_save_IFS
7227  test -z "$as_dir" && as_dir=.
7228  for ac_exec_ext in '' $ac_executable_extensions; do
7229  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232    break 2
7233  fi
7234done
7235done
7236
7237fi
7238fi
7239RANLIB=$ac_cv_prog_RANLIB
7240if test -n "$RANLIB"; then
7241  echo "$as_me:$LINENO: result: $RANLIB" >&5
7242echo "${ECHO_T}$RANLIB" >&6
7243else
7244  echo "$as_me:$LINENO: result: no" >&5
7245echo "${ECHO_T}no" >&6
7246fi
7247
7248fi
7249if test -z "$ac_cv_prog_RANLIB"; then
7250  ac_ct_RANLIB=$RANLIB
7251  # Extract the first word of "ranlib", so it can be a program name with args.
7252set dummy ranlib; ac_word=$2
7253echo "$as_me:$LINENO: checking for $ac_word" >&5
7254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7256  echo $ECHO_N "(cached) $ECHO_C" >&6
7257else
7258  if test -n "$ac_ct_RANLIB"; then
7259  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7260else
7261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262for as_dir in $PATH
7263do
7264  IFS=$as_save_IFS
7265  test -z "$as_dir" && as_dir=.
7266  for ac_exec_ext in '' $ac_executable_extensions; do
7267  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268    ac_cv_prog_ac_ct_RANLIB="ranlib"
7269    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270    break 2
7271  fi
7272done
7273done
7274
7275  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7276fi
7277fi
7278ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7279if test -n "$ac_ct_RANLIB"; then
7280  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7281echo "${ECHO_T}$ac_ct_RANLIB" >&6
7282else
7283  echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6
7285fi
7286
7287  RANLIB=$ac_ct_RANLIB
7288else
7289  RANLIB="$ac_cv_prog_RANLIB"
7290fi
7291
7292if test -n "$ac_tool_prefix"; then
7293  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7294set dummy ${ac_tool_prefix}strip; ac_word=$2
7295echo "$as_me:$LINENO: checking for $ac_word" >&5
7296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7297if test "${ac_cv_prog_STRIP+set}" = set; then
7298  echo $ECHO_N "(cached) $ECHO_C" >&6
7299else
7300  if test -n "$STRIP"; then
7301  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7302else
7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306  IFS=$as_save_IFS
7307  test -z "$as_dir" && as_dir=.
7308  for ac_exec_ext in '' $ac_executable_extensions; do
7309  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7311    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312    break 2
7313  fi
7314done
7315done
7316
7317fi
7318fi
7319STRIP=$ac_cv_prog_STRIP
7320if test -n "$STRIP"; then
7321  echo "$as_me:$LINENO: result: $STRIP" >&5
7322echo "${ECHO_T}$STRIP" >&6
7323else
7324  echo "$as_me:$LINENO: result: no" >&5
7325echo "${ECHO_T}no" >&6
7326fi
7327
7328fi
7329if test -z "$ac_cv_prog_STRIP"; then
7330  ac_ct_STRIP=$STRIP
7331  # Extract the first word of "strip", so it can be a program name with args.
7332set dummy strip; ac_word=$2
7333echo "$as_me:$LINENO: checking for $ac_word" >&5
7334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7335if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7336  echo $ECHO_N "(cached) $ECHO_C" >&6
7337else
7338  if test -n "$ac_ct_STRIP"; then
7339  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7340else
7341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342for as_dir in $PATH
7343do
7344  IFS=$as_save_IFS
7345  test -z "$as_dir" && as_dir=.
7346  for ac_exec_ext in '' $ac_executable_extensions; do
7347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348    ac_cv_prog_ac_ct_STRIP="strip"
7349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350    break 2
7351  fi
7352done
7353done
7354
7355  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7356fi
7357fi
7358ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7359if test -n "$ac_ct_STRIP"; then
7360  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7361echo "${ECHO_T}$ac_ct_STRIP" >&6
7362else
7363  echo "$as_me:$LINENO: result: no" >&5
7364echo "${ECHO_T}no" >&6
7365fi
7366
7367  STRIP=$ac_ct_STRIP
7368else
7369  STRIP="$ac_cv_prog_STRIP"
7370fi
7371
7372
7373old_CC="$CC"
7374old_CFLAGS="$CFLAGS"
7375
7376# Set sane defaults for various variables
7377test -z "$AR" && AR=ar
7378test -z "$AR_FLAGS" && AR_FLAGS=cru
7379test -z "$AS" && AS=as
7380test -z "$CC" && CC=cc
7381test -z "$LTCC" && LTCC=$CC
7382test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7383test -z "$DLLTOOL" && DLLTOOL=dlltool
7384test -z "$LD" && LD=ld
7385test -z "$LN_S" && LN_S="ln -s"
7386test -z "$MAGIC_CMD" && MAGIC_CMD=file
7387test -z "$NM" && NM=nm
7388test -z "$SED" && SED=sed
7389test -z "$OBJDUMP" && OBJDUMP=objdump
7390test -z "$RANLIB" && RANLIB=:
7391test -z "$STRIP" && STRIP=:
7392test -z "$ac_objext" && ac_objext=o
7393
7394# Determine commands to create old-style static archives.
7395old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7396old_postinstall_cmds='chmod 644 $oldlib'
7397old_postuninstall_cmds=
7398
7399if test -n "$RANLIB"; then
7400  case $host_os in
7401  openbsd*)
7402    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7403    ;;
7404  *)
7405    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7406    ;;
7407  esac
7408  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7409fi
7410
7411for cc_temp in $compiler""; do
7412  case $cc_temp in
7413    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7414    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7415    \-*) ;;
7416    *) break;;
7417  esac
7418done
7419cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7420
7421
7422# Only perform the check for file, if the check method requires it
7423case $deplibs_check_method in
7424file_magic*)
7425  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7426    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7427echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7428if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7429  echo $ECHO_N "(cached) $ECHO_C" >&6
7430else
7431  case $MAGIC_CMD in
7432[\\/*] |  ?:[\\/]*)
7433  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7434  ;;
7435*)
7436  lt_save_MAGIC_CMD="$MAGIC_CMD"
7437  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7438  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7439  for ac_dir in $ac_dummy; do
7440    IFS="$lt_save_ifs"
7441    test -z "$ac_dir" && ac_dir=.
7442    if test -f $ac_dir/${ac_tool_prefix}file; then
7443      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7444      if test -n "$file_magic_test_file"; then
7445        case $deplibs_check_method in
7446        "file_magic "*)
7447          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7448          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7449          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7450            $EGREP "$file_magic_regex" > /dev/null; then
7451            :
7452          else
7453            cat <<EOF 1>&2
7454
7455*** Warning: the command libtool uses to detect shared libraries,
7456*** $file_magic_cmd, produces output that libtool cannot recognize.
7457*** The result is that libtool may fail to recognize shared libraries
7458*** as such.  This will affect the creation of libtool libraries that
7459*** depend on shared libraries, but programs linked with such libtool
7460*** libraries will work regardless of this problem.  Nevertheless, you
7461*** may want to report the problem to your system manager and/or to
7462*** bug-libtool@gnu.org
7463
7464EOF
7465          fi ;;
7466        esac
7467      fi
7468      break
7469    fi
7470  done
7471  IFS="$lt_save_ifs"
7472  MAGIC_CMD="$lt_save_MAGIC_CMD"
7473  ;;
7474esac
7475fi
7476
7477MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7478if test -n "$MAGIC_CMD"; then
7479  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7480echo "${ECHO_T}$MAGIC_CMD" >&6
7481else
7482  echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6
7484fi
7485
7486if test -z "$lt_cv_path_MAGIC_CMD"; then
7487  if test -n "$ac_tool_prefix"; then
7488    echo "$as_me:$LINENO: checking for file" >&5
7489echo $ECHO_N "checking for file... $ECHO_C" >&6
7490if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7491  echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493  case $MAGIC_CMD in
7494[\\/*] |  ?:[\\/]*)
7495  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7496  ;;
7497*)
7498  lt_save_MAGIC_CMD="$MAGIC_CMD"
7499  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7500  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7501  for ac_dir in $ac_dummy; do
7502    IFS="$lt_save_ifs"
7503    test -z "$ac_dir" && ac_dir=.
7504    if test -f $ac_dir/file; then
7505      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7506      if test -n "$file_magic_test_file"; then
7507        case $deplibs_check_method in
7508        "file_magic "*)
7509          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7510          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7511          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7512            $EGREP "$file_magic_regex" > /dev/null; then
7513            :
7514          else
7515            cat <<EOF 1>&2
7516
7517*** Warning: the command libtool uses to detect shared libraries,
7518*** $file_magic_cmd, produces output that libtool cannot recognize.
7519*** The result is that libtool may fail to recognize shared libraries
7520*** as such.  This will affect the creation of libtool libraries that
7521*** depend on shared libraries, but programs linked with such libtool
7522*** libraries will work regardless of this problem.  Nevertheless, you
7523*** may want to report the problem to your system manager and/or to
7524*** bug-libtool@gnu.org
7525
7526EOF
7527          fi ;;
7528        esac
7529      fi
7530      break
7531    fi
7532  done
7533  IFS="$lt_save_ifs"
7534  MAGIC_CMD="$lt_save_MAGIC_CMD"
7535  ;;
7536esac
7537fi
7538
7539MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7540if test -n "$MAGIC_CMD"; then
7541  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7542echo "${ECHO_T}$MAGIC_CMD" >&6
7543else
7544  echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6
7546fi
7547
7548  else
7549    MAGIC_CMD=:
7550  fi
7551fi
7552
7553  fi
7554  ;;
7555esac
7556
7557enable_dlopen=no
7558enable_win32_dll=no
7559
7560# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7561if test "${enable_libtool_lock+set}" = set; then
7562  enableval="$enable_libtool_lock"
7563
7564fi;
7565test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7566
7567
7568# Check whether --with-pic or --without-pic was given.
7569if test "${with_pic+set}" = set; then
7570  withval="$with_pic"
7571  pic_mode="$withval"
7572else
7573  pic_mode=default
7574fi;
7575test -z "$pic_mode" && pic_mode=default
7576
7577# Use C for the default configuration in the libtool script
7578tagname=
7579lt_save_CC="$CC"
7580ac_ext=c
7581ac_cpp='$CPP $CPPFLAGS'
7582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584ac_compiler_gnu=$ac_cv_c_compiler_gnu
7585
7586
7587# Source file extension for C test sources.
7588ac_ext=c
7589
7590# Object file extension for compiled C test sources.
7591objext=o
7592objext=$objext
7593
7594# Code to be used in simple compile tests
7595lt_simple_compile_test_code="int some_variable = 0;\n"
7596
7597# Code to be used in simple link tests
7598lt_simple_link_test_code='int main(){return(0);}\n'
7599
7600
7601# If no C compiler was specified, use CC.
7602LTCC=${LTCC-"$CC"}
7603
7604# If no C compiler flags were specified, use CFLAGS.
7605LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7606
7607# Allow CC to be a program name with arguments.
7608compiler=$CC
7609
7610
7611# save warnings/boilerplate of simple test code
7612ac_outfile=conftest.$ac_objext
7613printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7614eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7615_lt_compiler_boilerplate=`cat conftest.err`
7616$rm conftest*
7617
7618ac_outfile=conftest.$ac_objext
7619printf "$lt_simple_link_test_code" >conftest.$ac_ext
7620eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7621_lt_linker_boilerplate=`cat conftest.err`
7622$rm conftest*
7623
7624
7625## CAVEAT EMPTOR:
7626## There is no encapsulation within the following macros, do not change
7627## the running order or otherwise move them around unless you know exactly
7628## what you are doing...
7629
7630lt_prog_compiler_no_builtin_flag=
7631
7632if test "$GCC" = yes; then
7633  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7634
7635
7636echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7637echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7638if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7639  echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641  lt_cv_prog_compiler_rtti_exceptions=no
7642  ac_outfile=conftest.$ac_objext
7643   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7644   lt_compiler_flag="-fno-rtti -fno-exceptions"
7645   # Insert the option either (1) after the last *FLAGS variable, or
7646   # (2) before a word containing "conftest.", or (3) at the end.
7647   # Note that $ac_compile itself does not contain backslashes and begins
7648   # with a dollar sign (not a hyphen), so the echo should work correctly.
7649   # The option is referenced via a variable to avoid confusing sed.
7650   lt_compile=`echo "$ac_compile" | $SED \
7651   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7652   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7653   -e 's:$: $lt_compiler_flag:'`
7654   (eval echo "\"\$as_me:7654: $lt_compile\"" >&5)
7655   (eval "$lt_compile" 2>conftest.err)
7656   ac_status=$?
7657   cat conftest.err >&5
7658   echo "$as_me:7658: \$? = $ac_status" >&5
7659   if (exit $ac_status) && test -s "$ac_outfile"; then
7660     # The compiler can only warn and ignore the option if not recognized
7661     # So say no if there are warnings other than the usual output.
7662     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7663     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7664     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7665       lt_cv_prog_compiler_rtti_exceptions=yes
7666     fi
7667   fi
7668   $rm conftest*
7669
7670fi
7671echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7672echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7673
7674if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7675    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7676else
7677    :
7678fi
7679
7680fi
7681
7682lt_prog_compiler_wl=
7683lt_prog_compiler_pic=
7684lt_prog_compiler_static=
7685
7686echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7687echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7688
7689  if test "$GCC" = yes; then
7690    lt_prog_compiler_wl='-Wl,'
7691    lt_prog_compiler_static='-static'
7692
7693    case $host_os in
7694      aix*)
7695      # All AIX code is PIC.
7696      if test "$host_cpu" = ia64; then
7697        # AIX 5 now supports IA64 processor
7698        lt_prog_compiler_static='-Bstatic'
7699      fi
7700      ;;
7701
7702    amigaos*)
7703      # FIXME: we need at least 68020 code to build shared libraries, but
7704      # adding the `-m68020' flag to GCC prevents building anything better,
7705      # like `-m68040'.
7706      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7707      ;;
7708
7709    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7710      # PIC is the default for these OSes.
7711      ;;
7712
7713    mingw* | pw32* | os2*)
7714      # This hack is so that the source file can tell whether it is being
7715      # built for inclusion in a dll (and should export symbols for example).
7716      lt_prog_compiler_pic='-DDLL_EXPORT'
7717      ;;
7718
7719    darwin* | rhapsody*)
7720      # PIC is the default on this platform
7721      # Common symbols not allowed in MH_DYLIB files
7722      lt_prog_compiler_pic='-fno-common'
7723      ;;
7724
7725    interix3*)
7726      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7727      # Instead, we relocate shared libraries at runtime.
7728      ;;
7729
7730    msdosdjgpp*)
7731      # Just because we use GCC doesn't mean we suddenly get shared libraries
7732      # on systems that don't support them.
7733      lt_prog_compiler_can_build_shared=no
7734      enable_shared=no
7735      ;;
7736
7737    sysv4*MP*)
7738      if test -d /usr/nec; then
7739        lt_prog_compiler_pic=-Kconform_pic
7740      fi
7741      ;;
7742
7743    hpux*)
7744      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7745      # not for PA HP-UX.
7746      case $host_cpu in
7747      hppa*64*|ia64*)
7748        # +Z the default
7749        ;;
7750      *)
7751        lt_prog_compiler_pic='-fPIC'
7752        ;;
7753      esac
7754      ;;
7755
7756    *)
7757      lt_prog_compiler_pic='-fPIC'
7758      ;;
7759    esac
7760  else
7761    # PORTME Check for flag to pass linker flags through the system compiler.
7762    case $host_os in
7763    aix*)
7764      lt_prog_compiler_wl='-Wl,'
7765      if test "$host_cpu" = ia64; then
7766        # AIX 5 now supports IA64 processor
7767        lt_prog_compiler_static='-Bstatic'
7768      else
7769        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7770      fi
7771      ;;
7772      darwin*)
7773        # PIC is the default on this platform
7774        # Common symbols not allowed in MH_DYLIB files
7775       case $cc_basename in
7776         xlc*)
7777         lt_prog_compiler_pic='-qnocommon'
7778         lt_prog_compiler_wl='-Wl,'
7779         ;;
7780       esac
7781       ;;
7782
7783    mingw* | pw32* | os2*)
7784      # This hack is so that the source file can tell whether it is being
7785      # built for inclusion in a dll (and should export symbols for example).
7786      lt_prog_compiler_pic='-DDLL_EXPORT'
7787      ;;
7788
7789    hpux9* | hpux10* | hpux11*)
7790      lt_prog_compiler_wl='-Wl,'
7791      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7792      # not for PA HP-UX.
7793      case $host_cpu in
7794      hppa*64*|ia64*)
7795        # +Z the default
7796        ;;
7797      *)
7798        lt_prog_compiler_pic='+Z'
7799        ;;
7800      esac
7801      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7802      lt_prog_compiler_static='${wl}-a ${wl}archive'
7803      ;;
7804
7805    irix5* | irix6* | nonstopux*)
7806      lt_prog_compiler_wl='-Wl,'
7807      # PIC (with -KPIC) is the default.
7808      lt_prog_compiler_static='-non_shared'
7809      ;;
7810
7811    newsos6)
7812      lt_prog_compiler_pic='-KPIC'
7813      lt_prog_compiler_static='-Bstatic'
7814      ;;
7815
7816    linux*)
7817      case $cc_basename in
7818      icc* | ecc*)
7819        lt_prog_compiler_wl='-Wl,'
7820        lt_prog_compiler_pic='-KPIC'
7821        lt_prog_compiler_static='-static'
7822        ;;
7823      pgcc* | pgf77* | pgf90* | pgf95*)
7824        # Portland Group compilers (*not* the Pentium gcc compiler,
7825        # which looks to be a dead project)
7826        lt_prog_compiler_wl='-Wl,'
7827        lt_prog_compiler_pic='-fpic'
7828        lt_prog_compiler_static='-Bstatic'
7829        ;;
7830      ccc*)
7831        lt_prog_compiler_wl='-Wl,'
7832        # All Alpha code is PIC.
7833        lt_prog_compiler_static='-non_shared'
7834        ;;
7835      esac
7836      ;;
7837
7838    osf3* | osf4* | osf5*)
7839      lt_prog_compiler_wl='-Wl,'
7840      # All OSF/1 code is PIC.
7841      lt_prog_compiler_static='-non_shared'
7842      ;;
7843
7844    solaris*)
7845      lt_prog_compiler_pic='-KPIC'
7846      lt_prog_compiler_static='-Bstatic'
7847      case $cc_basename in
7848      f77* | f90* | f95*)
7849        lt_prog_compiler_wl='-Qoption ld ';;
7850      *)
7851        lt_prog_compiler_wl='-Wl,';;
7852      esac
7853      ;;
7854
7855    sunos4*)
7856      lt_prog_compiler_wl='-Qoption ld '
7857      lt_prog_compiler_pic='-PIC'
7858      lt_prog_compiler_static='-Bstatic'
7859      ;;
7860
7861    sysv4 | sysv4.2uw2* | sysv4.3*)
7862      lt_prog_compiler_wl='-Wl,'
7863      lt_prog_compiler_pic='-KPIC'
7864      lt_prog_compiler_static='-Bstatic'
7865      ;;
7866
7867    sysv4*MP*)
7868      if test -d /usr/nec ;then
7869        lt_prog_compiler_pic='-Kconform_pic'
7870        lt_prog_compiler_static='-Bstatic'
7871      fi
7872      ;;
7873
7874    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7875      lt_prog_compiler_wl='-Wl,'
7876      lt_prog_compiler_pic='-KPIC'
7877      lt_prog_compiler_static='-Bstatic'
7878      ;;
7879
7880    unicos*)
7881      lt_prog_compiler_wl='-Wl,'
7882      lt_prog_compiler_can_build_shared=no
7883      ;;
7884
7885    uts4*)
7886      lt_prog_compiler_pic='-pic'
7887      lt_prog_compiler_static='-Bstatic'
7888      ;;
7889
7890    *)
7891      lt_prog_compiler_can_build_shared=no
7892      ;;
7893    esac
7894  fi
7895
7896echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7897echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7898
7899#
7900# Check to make sure the PIC flag actually works.
7901#
7902if test -n "$lt_prog_compiler_pic"; then
7903
7904echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7905echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7906if test "${lt_prog_compiler_pic_works+set}" = set; then
7907  echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909  lt_prog_compiler_pic_works=no
7910  ac_outfile=conftest.$ac_objext
7911   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7912   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7913   # Insert the option either (1) after the last *FLAGS variable, or
7914   # (2) before a word containing "conftest.", or (3) at the end.
7915   # Note that $ac_compile itself does not contain backslashes and begins
7916   # with a dollar sign (not a hyphen), so the echo should work correctly.
7917   # The option is referenced via a variable to avoid confusing sed.
7918   lt_compile=`echo "$ac_compile" | $SED \
7919   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921   -e 's:$: $lt_compiler_flag:'`
7922   (eval echo "\"\$as_me:7922: $lt_compile\"" >&5)
7923   (eval "$lt_compile" 2>conftest.err)
7924   ac_status=$?
7925   cat conftest.err >&5
7926   echo "$as_me:7926: \$? = $ac_status" >&5
7927   if (exit $ac_status) && test -s "$ac_outfile"; then
7928     # The compiler can only warn and ignore the option if not recognized
7929     # So say no if there are warnings other than the usual output.
7930     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7931     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933       lt_prog_compiler_pic_works=yes
7934     fi
7935   fi
7936   $rm conftest*
7937
7938fi
7939echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7940echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7941
7942if test x"$lt_prog_compiler_pic_works" = xyes; then
7943    case $lt_prog_compiler_pic in
7944     "" | " "*) ;;
7945     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7946     esac
7947else
7948    lt_prog_compiler_pic=
7949     lt_prog_compiler_can_build_shared=no
7950fi
7951
7952fi
7953case $host_os in
7954  # For platforms which do not support PIC, -DPIC is meaningless:
7955  *djgpp*)
7956    lt_prog_compiler_pic=
7957    ;;
7958  *)
7959    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7960    ;;
7961esac
7962
7963#
7964# Check to make sure the static flag actually works.
7965#
7966wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7967echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7968echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7969if test "${lt_prog_compiler_static_works+set}" = set; then
7970  echo $ECHO_N "(cached) $ECHO_C" >&6
7971else
7972  lt_prog_compiler_static_works=no
7973   save_LDFLAGS="$LDFLAGS"
7974   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7975   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7976   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7977     # The linker can only warn and ignore the option if not recognized
7978     # So say no if there are warnings
7979     if test -s conftest.err; then
7980       # Append any errors to the config.log.
7981       cat conftest.err 1>&5
7982       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7983       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7984       if diff conftest.exp conftest.er2 >/dev/null; then
7985         lt_prog_compiler_static_works=yes
7986       fi
7987     else
7988       lt_prog_compiler_static_works=yes
7989     fi
7990   fi
7991   $rm conftest*
7992   LDFLAGS="$save_LDFLAGS"
7993
7994fi
7995echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7996echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7997
7998if test x"$lt_prog_compiler_static_works" = xyes; then
7999    :
8000else
8001    lt_prog_compiler_static=
8002fi
8003
8004
8005echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8006echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8007if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8008  echo $ECHO_N "(cached) $ECHO_C" >&6
8009else
8010  lt_cv_prog_compiler_c_o=no
8011   $rm -r conftest 2>/dev/null
8012   mkdir conftest
8013   cd conftest
8014   mkdir out
8015   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8016
8017   lt_compiler_flag="-o out/conftest2.$ac_objext"
8018   # Insert the option either (1) after the last *FLAGS variable, or
8019   # (2) before a word containing "conftest.", or (3) at the end.
8020   # Note that $ac_compile itself does not contain backslashes and begins
8021   # with a dollar sign (not a hyphen), so the echo should work correctly.
8022   lt_compile=`echo "$ac_compile" | $SED \
8023   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8024   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8025   -e 's:$: $lt_compiler_flag:'`
8026   (eval echo "\"\$as_me:8026: $lt_compile\"" >&5)
8027   (eval "$lt_compile" 2>out/conftest.err)
8028   ac_status=$?
8029   cat out/conftest.err >&5
8030   echo "$as_me:8030: \$? = $ac_status" >&5
8031   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8032   then
8033     # The compiler can only warn and ignore the option if not recognized
8034     # So say no if there are warnings
8035     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8036     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8037     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8038       lt_cv_prog_compiler_c_o=yes
8039     fi
8040   fi
8041   chmod u+w . 2>&5
8042   $rm conftest*
8043   # SGI C++ compiler will create directory out/ii_files/ for
8044   # template instantiation
8045   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8046   $rm out/* && rmdir out
8047   cd ..
8048   rmdir conftest
8049   $rm conftest*
8050
8051fi
8052echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8053echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8054
8055
8056hard_links="nottested"
8057if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8058  # do not overwrite the value of need_locks provided by the user
8059  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8060echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8061  hard_links=yes
8062  $rm conftest*
8063  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8064  touch conftest.a
8065  ln conftest.a conftest.b 2>&5 || hard_links=no
8066  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8067  echo "$as_me:$LINENO: result: $hard_links" >&5
8068echo "${ECHO_T}$hard_links" >&6
8069  if test "$hard_links" = no; then
8070    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8071echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8072    need_locks=warn
8073  fi
8074else
8075  need_locks=no
8076fi
8077
8078echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8079echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8080
8081  runpath_var=
8082  allow_undefined_flag=
8083  enable_shared_with_static_runtimes=no
8084  archive_cmds=
8085  archive_expsym_cmds=
8086  old_archive_From_new_cmds=
8087  old_archive_from_expsyms_cmds=
8088  export_dynamic_flag_spec=
8089  whole_archive_flag_spec=
8090  thread_safe_flag_spec=
8091  hardcode_libdir_flag_spec=
8092  hardcode_libdir_flag_spec_ld=
8093  hardcode_libdir_separator=
8094  hardcode_direct=no
8095  hardcode_minus_L=no
8096  hardcode_shlibpath_var=unsupported
8097  link_all_deplibs=unknown
8098  hardcode_automatic=no
8099  module_cmds=
8100  module_expsym_cmds=
8101  always_export_symbols=no
8102  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8103  # include_expsyms should be a list of space-separated symbols to be *always*
8104  # included in the symbol list
8105  include_expsyms=
8106  # exclude_expsyms can be an extended regexp of symbols to exclude
8107  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8108  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8109  # as well as any symbol that contains `d'.
8110  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8111  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8112  # platforms (ab)use it in PIC code, but their linkers get confused if
8113  # the symbol is explicitly referenced.  Since portable code cannot
8114  # rely on this symbol name, it's probably fine to never include it in
8115  # preloaded symbol tables.
8116  extract_expsyms_cmds=
8117  # Just being paranoid about ensuring that cc_basename is set.
8118  for cc_temp in $compiler""; do
8119  case $cc_temp in
8120    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8121    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8122    \-*) ;;
8123    *) break;;
8124  esac
8125done
8126cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8127
8128  case $host_os in
8129  cygwin* | mingw* | pw32*)
8130    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8131    # When not using gcc, we currently assume that we are using
8132    # Microsoft Visual C++.
8133    if test "$GCC" != yes; then
8134      with_gnu_ld=no
8135    fi
8136    ;;
8137  interix*)
8138    # we just hope/assume this is gcc and not c89 (= MSVC++)
8139    with_gnu_ld=yes
8140    ;;
8141  openbsd*)
8142    with_gnu_ld=no
8143    ;;
8144  esac
8145
8146  ld_shlibs=yes
8147  if test "$with_gnu_ld" = yes; then
8148    # If archive_cmds runs LD, not CC, wlarc should be empty
8149    wlarc='${wl}'
8150
8151    # Set some defaults for GNU ld with shared library support. These
8152    # are reset later if shared libraries are not supported. Putting them
8153    # here allows them to be overridden if necessary.
8154    runpath_var=LD_RUN_PATH
8155    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8156    export_dynamic_flag_spec='${wl}--export-dynamic'
8157    # ancient GNU ld didn't support --whole-archive et. al.
8158    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8159        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8160      else
8161        whole_archive_flag_spec=
8162    fi
8163    supports_anon_versioning=no
8164    case `$LD -v 2>/dev/null` in
8165      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8166      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8167      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8168      *\ 2.11.*) ;; # other 2.11 versions
8169      *) supports_anon_versioning=yes ;;
8170    esac
8171
8172    # See if GNU ld supports shared libraries.
8173    case $host_os in
8174    aix3* | aix4* | aix5*)
8175      # On AIX/PPC, the GNU linker is very broken
8176      if test "$host_cpu" != ia64; then
8177        ld_shlibs=no
8178        cat <<EOF 1>&2
8179
8180*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8181*** to be unable to reliably create shared libraries on AIX.
8182*** Therefore, libtool is disabling shared libraries support.  If you
8183*** really care for shared libraries, you may want to modify your PATH
8184*** so that a non-GNU linker is found, and then restart.
8185
8186EOF
8187      fi
8188      ;;
8189
8190    amigaos*)
8191      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)'
8192      hardcode_libdir_flag_spec='-L$libdir'
8193      hardcode_minus_L=yes
8194
8195      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8196      # that the semantics of dynamic libraries on AmigaOS, at least up
8197      # to version 4, is to share data among multiple programs linked
8198      # with the same dynamic library.  Since this doesn't match the
8199      # behavior of shared libraries on other platforms, we can't use
8200      # them.
8201      ld_shlibs=no
8202      ;;
8203
8204    beos*)
8205      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206        allow_undefined_flag=unsupported
8207        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8208        # support --undefined.  This deserves some investigation.  FIXME
8209        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210      else
8211        ld_shlibs=no
8212      fi
8213      ;;
8214
8215    cygwin* | mingw* | pw32*)
8216      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8217      # as there is no search path for DLLs.
8218      hardcode_libdir_flag_spec='-L$libdir'
8219      allow_undefined_flag=unsupported
8220      always_export_symbols=no
8221      enable_shared_with_static_runtimes=yes
8222      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8223
8224      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8225        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8226        # If the export-symbols file already is a .def file (1st line
8227        # is EXPORTS), use it as is; otherwise, prepend...
8228        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8229          cp $export_symbols $output_objdir/$soname.def;
8230        else
8231          echo EXPORTS > $output_objdir/$soname.def;
8232          cat $export_symbols >> $output_objdir/$soname.def;
8233        fi~
8234        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8235      else
8236        ld_shlibs=no
8237      fi
8238      ;;
8239
8240    interix3*)
8241      hardcode_direct=no
8242      hardcode_shlibpath_var=no
8243      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8244      export_dynamic_flag_spec='${wl}-E'
8245      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8246      # Instead, shared libraries are loaded at an image base (0x10000000 by
8247      # default) and relocated if they conflict, which is a slow very memory
8248      # consuming and fragmenting process.  To avoid this, we pick a random,
8249      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8250      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8251      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8252      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'
8253      ;;
8254
8255    linux*)
8256      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8257        tmp_addflag=
8258        case $cc_basename,$host_cpu in
8259        pgcc*)                          # Portland Group C compiler
8260          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'
8261          tmp_addflag=' $pic_flag'
8262          ;;
8263        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8264          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'
8265          tmp_addflag=' $pic_flag -Mnomain' ;;
8266        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8267          tmp_addflag=' -i_dynamic' ;;
8268        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8269          tmp_addflag=' -i_dynamic -nofor_main' ;;
8270        ifc* | ifort*)                  # Intel Fortran compiler
8271          tmp_addflag=' -nofor_main' ;;
8272        esac
8273        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274
8275        if test $supports_anon_versioning = yes; then
8276          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8277  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8278  $echo "local: *; };" >> $output_objdir/$libname.ver~
8279          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8280        fi
8281      else
8282        ld_shlibs=no
8283      fi
8284      ;;
8285
8286    netbsd*)
8287      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8288        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8289        wlarc=
8290      else
8291        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8292        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8293      fi
8294      ;;
8295
8296    solaris*)
8297      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8298        ld_shlibs=no
8299        cat <<EOF 1>&2
8300
8301*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8302*** create shared libraries on Solaris systems.  Therefore, libtool
8303*** is disabling shared libraries support.  We urge you to upgrade GNU
8304*** binutils to release 2.9.1 or newer.  Another option is to modify
8305*** your PATH or compiler configuration so that the native linker is
8306*** used, and then restart.
8307
8308EOF
8309      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8310        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8311        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8312      else
8313        ld_shlibs=no
8314      fi
8315      ;;
8316
8317    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8318      case `$LD -v 2>&1` in
8319        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8320        ld_shlibs=no
8321        cat <<_LT_EOF 1>&2
8322
8323*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8324*** reliably create shared libraries on SCO systems.  Therefore, libtool
8325*** is disabling shared libraries support.  We urge you to upgrade GNU
8326*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8327*** your PATH or compiler configuration so that the native linker is
8328*** used, and then restart.
8329
8330_LT_EOF
8331        ;;
8332        *)
8333          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8334            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8335            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8336            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8337          else
8338            ld_shlibs=no
8339          fi
8340        ;;
8341      esac
8342      ;;
8343
8344    sunos4*)
8345      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8346      wlarc=
8347      hardcode_direct=yes
8348      hardcode_shlibpath_var=no
8349      ;;
8350
8351    *)
8352      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8353        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8354        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8355      else
8356        ld_shlibs=no
8357      fi
8358      ;;
8359    esac
8360
8361    if test "$ld_shlibs" = no; then
8362      runpath_var=
8363      hardcode_libdir_flag_spec=
8364      export_dynamic_flag_spec=
8365      whole_archive_flag_spec=
8366    fi
8367  else
8368    # PORTME fill in a description of your system's linker (not GNU ld)
8369    case $host_os in
8370    aix3*)
8371      allow_undefined_flag=unsupported
8372      always_export_symbols=yes
8373      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'
8374      # Note: this linker hardcodes the directories in LIBPATH if there
8375      # are no directories specified by -L.
8376      hardcode_minus_L=yes
8377      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8378        # Neither direct hardcoding nor static linking is supported with a
8379        # broken collect2.
8380        hardcode_direct=unsupported
8381      fi
8382      ;;
8383
8384    aix4* | aix5*)
8385      if test "$host_cpu" = ia64; then
8386        # On IA64, the linker does run time linking by default, so we don't
8387        # have to do anything special.
8388        aix_use_runtimelinking=no
8389        exp_sym_flag='-Bexport'
8390        no_entry_flag=""
8391      else
8392        # If we're using GNU nm, then we don't want the "-C" option.
8393        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8394        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8395          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'
8396        else
8397          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'
8398        fi
8399        aix_use_runtimelinking=no
8400
8401        # Test if we are trying to use run time linking or normal
8402        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8403        # need to do runtime linking.
8404        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8405          for ld_flag in $LDFLAGS; do
8406          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8407            aix_use_runtimelinking=yes
8408            break
8409          fi
8410          done
8411          ;;
8412        esac
8413
8414        exp_sym_flag='-bexport'
8415        no_entry_flag='-bnoentry'
8416      fi
8417
8418      # When large executables or shared objects are built, AIX ld can
8419      # have problems creating the table of contents.  If linking a library
8420      # or program results in "error TOC overflow" add -mminimal-toc to
8421      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8422      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8423
8424      archive_cmds=''
8425      hardcode_direct=yes
8426      hardcode_libdir_separator=':'
8427      link_all_deplibs=yes
8428
8429      if test "$GCC" = yes; then
8430        case $host_os in aix4.[012]|aix4.[012].*)
8431        # We only want to do this on AIX 4.2 and lower, the check
8432        # below for broken collect2 doesn't work under 4.3+
8433          collect2name=`${CC} -print-prog-name=collect2`
8434          if test -f "$collect2name" && \
8435           strings "$collect2name" | grep resolve_lib_name >/dev/null
8436          then
8437          # We have reworked collect2
8438          hardcode_direct=yes
8439          else
8440          # We have old collect2
8441          hardcode_direct=unsupported
8442          # It fails to find uninstalled libraries when the uninstalled
8443          # path is not listed in the libpath.  Setting hardcode_minus_L
8444          # to unsupported forces relinking
8445          hardcode_minus_L=yes
8446          hardcode_libdir_flag_spec='-L$libdir'
8447          hardcode_libdir_separator=
8448          fi
8449          ;;
8450        esac
8451        shared_flag='-shared'
8452        if test "$aix_use_runtimelinking" = yes; then
8453          shared_flag="$shared_flag "'${wl}-G'
8454        fi
8455      else
8456        # not using gcc
8457        if test "$host_cpu" = ia64; then
8458        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8459        # chokes on -Wl,-G. The following line is correct:
8460          shared_flag='-G'
8461        else
8462          if test "$aix_use_runtimelinking" = yes; then
8463            shared_flag='${wl}-G'
8464          else
8465            shared_flag='${wl}-bM:SRE'
8466          fi
8467        fi
8468      fi
8469
8470      # It seems that -bexpall does not export symbols beginning with
8471      # underscore (_), so it is better to generate a list of symbols to export.
8472      always_export_symbols=yes
8473      if test "$aix_use_runtimelinking" = yes; then
8474        # Warning - without using the other runtime loading flags (-brtl),
8475        # -berok will link without error, but may produce a broken library.
8476        allow_undefined_flag='-berok'
8477       # Determine the default libpath from the value encoded in an empty executable.
8478       cat >conftest.$ac_ext <<_ACEOF
8479/* confdefs.h.  */
8480_ACEOF
8481cat confdefs.h >>conftest.$ac_ext
8482cat >>conftest.$ac_ext <<_ACEOF
8483/* end confdefs.h.  */
8484
8485int
8486main ()
8487{
8488
8489  ;
8490  return 0;
8491}
8492_ACEOF
8493rm -f conftest.$ac_objext conftest$ac_exeext
8494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495  (eval $ac_link) 2>conftest.er1
8496  ac_status=$?
8497  grep -v '^ *+' conftest.er1 >conftest.err
8498  rm -f conftest.er1
8499  cat conftest.err >&5
8500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501  (exit $ac_status); } &&
8502         { ac_try='test -z "$ac_c_werror_flag"
8503                         || test ! -s conftest.err'
8504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505  (eval $ac_try) 2>&5
8506  ac_status=$?
8507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508  (exit $ac_status); }; } &&
8509         { ac_try='test -s conftest$ac_exeext'
8510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511  (eval $ac_try) 2>&5
8512  ac_status=$?
8513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514  (exit $ac_status); }; }; then
8515
8516aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8517}'`
8518# Check for a 64-bit object if we didn't find anything.
8519if 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; }
8520}'`; fi
8521else
8522  echo "$as_me: failed program was:" >&5
8523sed 's/^/| /' conftest.$ac_ext >&5
8524
8525fi
8526rm -f conftest.err conftest.$ac_objext \
8527      conftest$ac_exeext conftest.$ac_ext
8528if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8529
8530       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8531        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"
8532       else
8533        if test "$host_cpu" = ia64; then
8534          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8535          allow_undefined_flag="-z nodefs"
8536          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"
8537        else
8538         # Determine the default libpath from the value encoded in an empty executable.
8539         cat >conftest.$ac_ext <<_ACEOF
8540/* confdefs.h.  */
8541_ACEOF
8542cat confdefs.h >>conftest.$ac_ext
8543cat >>conftest.$ac_ext <<_ACEOF
8544/* end confdefs.h.  */
8545
8546int
8547main ()
8548{
8549
8550  ;
8551  return 0;
8552}
8553_ACEOF
8554rm -f conftest.$ac_objext conftest$ac_exeext
8555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8556  (eval $ac_link) 2>conftest.er1
8557  ac_status=$?
8558  grep -v '^ *+' conftest.er1 >conftest.err
8559  rm -f conftest.er1
8560  cat conftest.err >&5
8561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562  (exit $ac_status); } &&
8563         { ac_try='test -z "$ac_c_werror_flag"
8564                         || test ! -s conftest.err'
8565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566  (eval $ac_try) 2>&5
8567  ac_status=$?
8568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569  (exit $ac_status); }; } &&
8570         { ac_try='test -s conftest$ac_exeext'
8571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572  (eval $ac_try) 2>&5
8573  ac_status=$?
8574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575  (exit $ac_status); }; }; then
8576
8577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8578}'`
8579# Check for a 64-bit object if we didn't find anything.
8580if 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; }
8581}'`; fi
8582else
8583  echo "$as_me: failed program was:" >&5
8584sed 's/^/| /' conftest.$ac_ext >&5
8585
8586fi
8587rm -f conftest.err conftest.$ac_objext \
8588      conftest$ac_exeext conftest.$ac_ext
8589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8590
8591         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8592          # Warning - without using the other run time loading flags,
8593          # -berok will link without error, but may produce a broken library.
8594          no_undefined_flag=' ${wl}-bernotok'
8595          allow_undefined_flag=' ${wl}-berok'
8596          # Exported symbols can be pulled into shared objects from archives
8597          whole_archive_flag_spec='$convenience'
8598          archive_cmds_need_lc=yes
8599          # This is similar to how AIX traditionally builds its shared libraries.
8600          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'
8601        fi
8602      fi
8603      ;;
8604
8605    amigaos*)
8606      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)'
8607      hardcode_libdir_flag_spec='-L$libdir'
8608      hardcode_minus_L=yes
8609      # see comment about different semantics on the GNU ld section
8610      ld_shlibs=no
8611      ;;
8612
8613    bsdi[45]*)
8614      export_dynamic_flag_spec=-rdynamic
8615      ;;
8616
8617    cygwin* | mingw* | pw32*)
8618      # When not using gcc, we currently assume that we are using
8619      # Microsoft Visual C++.
8620      # hardcode_libdir_flag_spec is actually meaningless, as there is
8621      # no search path for DLLs.
8622      hardcode_libdir_flag_spec=' '
8623      allow_undefined_flag=unsupported
8624      # Tell ltmain to make .lib files, not .a files.
8625      libext=lib
8626      # Tell ltmain to make .dll files, not .so files.
8627      shrext_cmds=".dll"
8628      # FIXME: Setting linknames here is a bad hack.
8629      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8630      # The linker will automatically build a .lib file if we build a DLL.
8631      old_archive_From_new_cmds='true'
8632      # FIXME: Should let the user specify the lib program.
8633      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8634      fix_srcfile_path='`cygpath -w "$srcfile"`'
8635      enable_shared_with_static_runtimes=yes
8636      ;;
8637
8638    darwin* | rhapsody*)
8639      case $host_os in
8640        rhapsody* | darwin1.[012])
8641         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8642         ;;
8643       *) # Darwin 1.3 on
8644         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8645           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8646         else
8647           case ${MACOSX_DEPLOYMENT_TARGET} in
8648             10.[012])
8649               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8650               ;;
8651             10.*)
8652               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8653               ;;
8654           esac
8655         fi
8656         ;;
8657      esac
8658      archive_cmds_need_lc=no
8659      hardcode_direct=no
8660      hardcode_automatic=yes
8661      hardcode_shlibpath_var=unsupported
8662      whole_archive_flag_spec=''
8663      link_all_deplibs=yes
8664    if test "$GCC" = yes ; then
8665        output_verbose_link_cmd='echo'
8666        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8667      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8668      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8669      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}'
8670      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}'
8671    else
8672      case $cc_basename in
8673        xlc*)
8674         output_verbose_link_cmd='echo'
8675         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8676         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8677          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8678         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}'
8679          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}'
8680          ;;
8681       *)
8682         ld_shlibs=no
8683          ;;
8684      esac
8685    fi
8686      ;;
8687
8688    dgux*)
8689      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8690      hardcode_libdir_flag_spec='-L$libdir'
8691      hardcode_shlibpath_var=no
8692      ;;
8693
8694    freebsd1*)
8695      ld_shlibs=no
8696      ;;
8697
8698    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8699    # support.  Future versions do this automatically, but an explicit c++rt0.o
8700    # does not break anything, and helps significantly (at the cost of a little
8701    # extra space).
8702    freebsd2.2*)
8703      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8704      hardcode_libdir_flag_spec='-R$libdir'
8705      hardcode_direct=yes
8706      hardcode_shlibpath_var=no
8707      ;;
8708
8709    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8710    freebsd2*)
8711      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8712      hardcode_direct=yes
8713      hardcode_minus_L=yes
8714      hardcode_shlibpath_var=no
8715      ;;
8716
8717    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8718    freebsd* | kfreebsd*-gnu | dragonfly*)
8719      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8720      hardcode_libdir_flag_spec='-R$libdir'
8721      hardcode_direct=yes
8722      hardcode_shlibpath_var=no
8723      ;;
8724
8725    hpux9*)
8726      if test "$GCC" = yes; then
8727        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'
8728      else
8729        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'
8730      fi
8731      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8732      hardcode_libdir_separator=:
8733      hardcode_direct=yes
8734
8735      # hardcode_minus_L: Not really in the search PATH,
8736      # but as the default location of the library.
8737      hardcode_minus_L=yes
8738      export_dynamic_flag_spec='${wl}-E'
8739      ;;
8740
8741    hpux10*)
8742      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8743        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8744      else
8745        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8746      fi
8747      if test "$with_gnu_ld" = no; then
8748        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8749        hardcode_libdir_separator=:
8750
8751        hardcode_direct=yes
8752        export_dynamic_flag_spec='${wl}-E'
8753
8754        # hardcode_minus_L: Not really in the search PATH,
8755        # but as the default location of the library.
8756        hardcode_minus_L=yes
8757      fi
8758      ;;
8759
8760    hpux11*)
8761      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8762        case $host_cpu in
8763        hppa*64*)
8764          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8765          ;;
8766        ia64*)
8767          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8768          ;;
8769        *)
8770          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8771          ;;
8772        esac
8773      else
8774        case $host_cpu in
8775        hppa*64*)
8776          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777          ;;
8778        ia64*)
8779          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8780          ;;
8781        *)
8782          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8783          ;;
8784        esac
8785      fi
8786      if test "$with_gnu_ld" = no; then
8787        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8788        hardcode_libdir_separator=:
8789
8790        case $host_cpu in
8791        hppa*64*|ia64*)
8792          hardcode_libdir_flag_spec_ld='+b $libdir'
8793          hardcode_direct=no
8794          hardcode_shlibpath_var=no
8795          ;;
8796        *)
8797          hardcode_direct=yes
8798          export_dynamic_flag_spec='${wl}-E'
8799
8800          # hardcode_minus_L: Not really in the search PATH,
8801          # but as the default location of the library.
8802          hardcode_minus_L=yes
8803          ;;
8804        esac
8805      fi
8806      ;;
8807
8808    irix5* | irix6* | nonstopux*)
8809      if test "$GCC" = yes; then
8810        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'
8811      else
8812        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'
8813        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8814      fi
8815      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8816      hardcode_libdir_separator=:
8817      link_all_deplibs=yes
8818      ;;
8819
8820    netbsd*)
8821      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8822        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8823      else
8824        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8825      fi
8826      hardcode_libdir_flag_spec='-R$libdir'
8827      hardcode_direct=yes
8828      hardcode_shlibpath_var=no
8829      ;;
8830
8831    newsos6)
8832      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833      hardcode_direct=yes
8834      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835      hardcode_libdir_separator=:
8836      hardcode_shlibpath_var=no
8837      ;;
8838
8839    openbsd*)
8840      hardcode_direct=yes
8841      hardcode_shlibpath_var=no
8842      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8843        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8844        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8845        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8846        export_dynamic_flag_spec='${wl}-E'
8847      else
8848       case $host_os in
8849         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8850           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8851           hardcode_libdir_flag_spec='-R$libdir'
8852           ;;
8853         *)
8854           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8855           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8856           ;;
8857       esac
8858      fi
8859      ;;
8860
8861    os2*)
8862      hardcode_libdir_flag_spec='-L$libdir'
8863      hardcode_minus_L=yes
8864      allow_undefined_flag=unsupported
8865      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'
8866      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8867      ;;
8868
8869    osf3*)
8870      if test "$GCC" = yes; then
8871        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8872        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'
8873      else
8874        allow_undefined_flag=' -expect_unresolved \*'
8875        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'
8876      fi
8877      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8878      hardcode_libdir_separator=:
8879      ;;
8880
8881    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8882      if test "$GCC" = yes; then
8883        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8884        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'
8885        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8886      else
8887        allow_undefined_flag=' -expect_unresolved \*'
8888        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'
8889        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8890        $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'
8891
8892        # Both c and cxx compiler support -rpath directly
8893        hardcode_libdir_flag_spec='-rpath $libdir'
8894      fi
8895      hardcode_libdir_separator=:
8896      ;;
8897
8898    solaris*)
8899      no_undefined_flag=' -z text'
8900      if test "$GCC" = yes; then
8901        wlarc='${wl}'
8902        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8903        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8904          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8905      else
8906        wlarc=''
8907        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8908        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8909        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8910      fi
8911      hardcode_libdir_flag_spec='-R$libdir'
8912      hardcode_shlibpath_var=no
8913      case $host_os in
8914      solaris2.[0-5] | solaris2.[0-5].*) ;;
8915      *)
8916        # The compiler driver will combine linker options so we
8917        # cannot just pass the convience library names through
8918        # without $wl, iff we do not link with $LD.
8919        # Luckily, gcc supports the same syntax we need for Sun Studio.
8920        # Supported since Solaris 2.6 (maybe 2.5.1?)
8921        case $wlarc in
8922        '')
8923          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8924        *)
8925          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' ;;
8926        esac ;;
8927      esac
8928      link_all_deplibs=yes
8929      ;;
8930
8931    sunos4*)
8932      if test "x$host_vendor" = xsequent; then
8933        # Use $CC to link under sequent, because it throws in some extra .o
8934        # files that make .init and .fini sections work.
8935        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8936      else
8937        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8938      fi
8939      hardcode_libdir_flag_spec='-L$libdir'
8940      hardcode_direct=yes
8941      hardcode_minus_L=yes
8942      hardcode_shlibpath_var=no
8943      ;;
8944
8945    sysv4)
8946      case $host_vendor in
8947        sni)
8948          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949          hardcode_direct=yes # is this really true???
8950        ;;
8951        siemens)
8952          ## LD is ld it makes a PLAMLIB
8953          ## CC just makes a GrossModule.
8954          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8955          reload_cmds='$CC -r -o $output$reload_objs'
8956          hardcode_direct=no
8957        ;;
8958        motorola)
8959          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8960          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8961        ;;
8962      esac
8963      runpath_var='LD_RUN_PATH'
8964      hardcode_shlibpath_var=no
8965      ;;
8966
8967    sysv4.3*)
8968      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8969      hardcode_shlibpath_var=no
8970      export_dynamic_flag_spec='-Bexport'
8971      ;;
8972
8973    sysv4*MP*)
8974      if test -d /usr/nec; then
8975        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976        hardcode_shlibpath_var=no
8977        runpath_var=LD_RUN_PATH
8978        hardcode_runpath_var=yes
8979        ld_shlibs=yes
8980      fi
8981      ;;
8982
8983    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8984      no_undefined_flag='${wl}-z,text'
8985      archive_cmds_need_lc=no
8986      hardcode_shlibpath_var=no
8987      runpath_var='LD_RUN_PATH'
8988
8989      if test "$GCC" = yes; then
8990        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8991        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8992      else
8993        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8994        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8995      fi
8996      ;;
8997
8998    sysv5* | sco3.2v5* | sco5v6*)
8999      # Note: We can NOT use -z defs as we might desire, because we do not
9000      # link with -lc, and that would cause any symbols used from libc to
9001      # always be unresolved, which means just about no library would
9002      # ever link correctly.  If we're not using GNU ld we use -z text
9003      # though, which does catch some bad symbols but isn't as heavy-handed
9004      # as -z defs.
9005      no_undefined_flag='${wl}-z,text'
9006      allow_undefined_flag='${wl}-z,nodefs'
9007      archive_cmds_need_lc=no
9008      hardcode_shlibpath_var=no
9009      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9010      hardcode_libdir_separator=':'
9011      link_all_deplibs=yes
9012      export_dynamic_flag_spec='${wl}-Bexport'
9013      runpath_var='LD_RUN_PATH'
9014
9015      if test "$GCC" = yes; then
9016        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9017        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9018      else
9019        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9020        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9021      fi
9022      ;;
9023
9024    uts4*)
9025      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9026      hardcode_libdir_flag_spec='-L$libdir'
9027      hardcode_shlibpath_var=no
9028      ;;
9029
9030    *)
9031      ld_shlibs=no
9032      ;;
9033    esac
9034  fi
9035
9036echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9037echo "${ECHO_T}$ld_shlibs" >&6
9038test "$ld_shlibs" = no && can_build_shared=no
9039
9040#
9041# Do we need to explicitly link libc?
9042#
9043case "x$archive_cmds_need_lc" in
9044x|xyes)
9045  # Assume -lc should be added
9046  archive_cmds_need_lc=yes
9047
9048  if test "$enable_shared" = yes && test "$GCC" = yes; then
9049    case $archive_cmds in
9050    *'~'*)
9051      # FIXME: we may have to deal with multi-command sequences.
9052      ;;
9053    '$CC '*)
9054      # Test whether the compiler implicitly links with -lc since on some
9055      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9056      # to ld, don't add -lc before -lgcc.
9057      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9058echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9059      $rm conftest*
9060      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9061
9062      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9063  (eval $ac_compile) 2>&5
9064  ac_status=$?
9065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066  (exit $ac_status); } 2>conftest.err; then
9067        soname=conftest
9068        lib=conftest
9069        libobjs=conftest.$ac_objext
9070        deplibs=
9071        wl=$lt_prog_compiler_wl
9072        pic_flag=$lt_prog_compiler_pic
9073        compiler_flags=-v
9074        linker_flags=-v
9075        verstring=
9076        output_objdir=.
9077        libname=conftest
9078        lt_save_allow_undefined_flag=$allow_undefined_flag
9079        allow_undefined_flag=
9080        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9081  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9082  ac_status=$?
9083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084  (exit $ac_status); }
9085        then
9086          archive_cmds_need_lc=no
9087        else
9088          archive_cmds_need_lc=yes
9089        fi
9090        allow_undefined_flag=$lt_save_allow_undefined_flag
9091      else
9092        cat conftest.err 1>&5
9093      fi
9094      $rm conftest*
9095      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9096echo "${ECHO_T}$archive_cmds_need_lc" >&6
9097      ;;
9098    esac
9099  fi
9100  ;;
9101esac
9102
9103echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9104echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9105library_names_spec=
9106libname_spec='lib$name'
9107soname_spec=
9108shrext_cmds=".so"
9109postinstall_cmds=
9110postuninstall_cmds=
9111finish_cmds=
9112finish_eval=
9113shlibpath_var=
9114shlibpath_overrides_runpath=unknown
9115version_type=none
9116dynamic_linker="$host_os ld.so"
9117sys_lib_dlsearch_path_spec="/lib /usr/lib"
9118if test "$GCC" = yes; then
9119  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9120  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9121    # if the path contains ";" then we assume it to be the separator
9122    # otherwise default to the standard path separator (i.e. ":") - it is
9123    # assumed that no part of a normal pathname contains ";" but that should
9124    # okay in the real world where ";" in dirpaths is itself problematic.
9125    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9126  else
9127    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9128  fi
9129else
9130  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9131fi
9132need_lib_prefix=unknown
9133hardcode_into_libs=no
9134
9135# when you set need_version to no, make sure it does not cause -set_version
9136# flags to be left without arguments
9137need_version=unknown
9138
9139case $host_os in
9140aix3*)
9141  version_type=linux
9142  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9143  shlibpath_var=LIBPATH
9144
9145  # AIX 3 has no versioning support, so we append a major version to the name.
9146  soname_spec='${libname}${release}${shared_ext}$major'
9147  ;;
9148
9149aix4* | aix5*)
9150  version_type=linux
9151  need_lib_prefix=no
9152  need_version=no
9153  hardcode_into_libs=yes
9154  if test "$host_cpu" = ia64; then
9155    # AIX 5 supports IA64
9156    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9157    shlibpath_var=LD_LIBRARY_PATH
9158  else
9159    # With GCC up to 2.95.x, collect2 would create an import file
9160    # for dependence libraries.  The import file would start with
9161    # the line `#! .'.  This would cause the generated library to
9162    # depend on `.', always an invalid library.  This was fixed in
9163    # development snapshots of GCC prior to 3.0.
9164    case $host_os in
9165      aix4 | aix4.[01] | aix4.[01].*)
9166      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9167           echo ' yes '
9168           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9169        :
9170      else
9171        can_build_shared=no
9172      fi
9173      ;;
9174    esac
9175    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9176    # soname into executable. Probably we can add versioning support to
9177    # collect2, so additional links can be useful in future.
9178    if test "$aix_use_runtimelinking" = yes; then
9179      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9180      # instead of lib<name>.a to let people know that these are not
9181      # typical AIX shared libraries.
9182      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183    else
9184      # We preserve .a as extension for shared libraries through AIX4.2
9185      # and later when we are not doing run time linking.
9186      library_names_spec='${libname}${release}.a $libname.a'
9187      soname_spec='${libname}${release}${shared_ext}$major'
9188    fi
9189    shlibpath_var=LIBPATH
9190  fi
9191  ;;
9192
9193amigaos*)
9194  library_names_spec='$libname.ixlibrary $libname.a'
9195  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9196  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'
9197  ;;
9198
9199beos*)
9200  library_names_spec='${libname}${shared_ext}'
9201  dynamic_linker="$host_os ld.so"
9202  shlibpath_var=LIBRARY_PATH
9203  ;;
9204
9205bsdi[45]*)
9206  version_type=linux
9207  need_version=no
9208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209  soname_spec='${libname}${release}${shared_ext}$major'
9210  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9211  shlibpath_var=LD_LIBRARY_PATH
9212  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9213  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9214  # the default ld.so.conf also contains /usr/contrib/lib and
9215  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9216  # libtool to hard-code these into programs
9217  ;;
9218
9219cygwin* | mingw* | pw32*)
9220  version_type=windows
9221  shrext_cmds=".dll"
9222  need_version=no
9223  need_lib_prefix=no
9224
9225  case $GCC,$host_os in
9226  yes,cygwin* | yes,mingw* | yes,pw32*)
9227    library_names_spec='$libname.dll.a'
9228    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9229    postinstall_cmds='base_file=`basename \${file}`~
9230      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9231      dldir=$destdir/`dirname \$dlpath`~
9232      test -d \$dldir || mkdir -p \$dldir~
9233      $install_prog $dir/$dlname \$dldir/$dlname~
9234      chmod a+x \$dldir/$dlname'
9235    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9236      dlpath=$dir/\$dldll~
9237       $rm \$dlpath'
9238    shlibpath_overrides_runpath=yes
9239
9240    case $host_os in
9241    cygwin*)
9242      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9243      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9244      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9245      ;;
9246    mingw*)
9247      # MinGW DLLs use traditional 'lib' prefix
9248      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9249      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9250      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9251        # It is most probably a Windows format PATH printed by
9252        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9253        # path with ; separators, and with drive letters. We can handle the
9254        # drive letters (cygwin fileutils understands them), so leave them,
9255        # especially as we might pass files found there to a mingw objdump,
9256        # which wouldn't understand a cygwinified path. Ahh.
9257        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9258      else
9259        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9260      fi
9261      ;;
9262    pw32*)
9263      # pw32 DLLs use 'pw' prefix rather than 'lib'
9264      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9265      ;;
9266    esac
9267    ;;
9268
9269  *)
9270    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9271    ;;
9272  esac
9273  dynamic_linker='Win32 ld.exe'
9274  # FIXME: first we should search . and the directory the executable is in
9275  shlibpath_var=PATH
9276  ;;
9277
9278darwin* | rhapsody*)
9279  dynamic_linker="$host_os dyld"
9280  version_type=darwin
9281  need_lib_prefix=no
9282  need_version=no
9283  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9284  soname_spec='${libname}${release}${major}$shared_ext'
9285  shlibpath_overrides_runpath=yes
9286  shlibpath_var=DYLD_LIBRARY_PATH
9287  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9288  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9289  if test "$GCC" = yes; then
9290    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"`
9291  else
9292    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9293  fi
9294  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9295  ;;
9296
9297dgux*)
9298  version_type=linux
9299  need_lib_prefix=no
9300  need_version=no
9301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9302  soname_spec='${libname}${release}${shared_ext}$major'
9303  shlibpath_var=LD_LIBRARY_PATH
9304  ;;
9305
9306freebsd1*)
9307  dynamic_linker=no
9308  ;;
9309
9310kfreebsd*-gnu)
9311  version_type=linux
9312  need_lib_prefix=no
9313  need_version=no
9314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9315  soname_spec='${libname}${release}${shared_ext}$major'
9316  shlibpath_var=LD_LIBRARY_PATH
9317  shlibpath_overrides_runpath=no
9318  hardcode_into_libs=yes
9319  dynamic_linker='GNU ld.so'
9320  ;;
9321
9322freebsd* | dragonfly*)
9323  # DragonFly does not have aout.  When/if they implement a new
9324  # versioning mechanism, adjust this.
9325  if test -x /usr/bin/objformat; then
9326    objformat=`/usr/bin/objformat`
9327  else
9328    case $host_os in
9329    freebsd[123]*) objformat=aout ;;
9330    *) objformat=elf ;;
9331    esac
9332  fi
9333  version_type=freebsd-$objformat
9334  case $version_type in
9335    freebsd-elf*)
9336      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9337      need_version=no
9338      need_lib_prefix=no
9339      ;;
9340    freebsd-*)
9341      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9342      need_version=yes
9343      ;;
9344  esac
9345  shlibpath_var=LD_LIBRARY_PATH
9346  case $host_os in
9347  freebsd2*)
9348    shlibpath_overrides_runpath=yes
9349    ;;
9350  freebsd3.[01]* | freebsdelf3.[01]*)
9351    shlibpath_overrides_runpath=yes
9352    hardcode_into_libs=yes
9353    ;;
9354  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9355  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9356    shlibpath_overrides_runpath=no
9357    hardcode_into_libs=yes
9358    ;;
9359  freebsd*) # from 4.6 on
9360    shlibpath_overrides_runpath=yes
9361    hardcode_into_libs=yes
9362    ;;
9363  esac
9364  ;;
9365
9366gnu*)
9367  version_type=linux
9368  need_lib_prefix=no
9369  need_version=no
9370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9371  soname_spec='${libname}${release}${shared_ext}$major'
9372  shlibpath_var=LD_LIBRARY_PATH
9373  hardcode_into_libs=yes
9374  ;;
9375
9376hpux9* | hpux10* | hpux11*)
9377  # Give a soname corresponding to the major version so that dld.sl refuses to
9378  # link against other versions.
9379  version_type=sunos
9380  need_lib_prefix=no
9381  need_version=no
9382  case $host_cpu in
9383  ia64*)
9384    shrext_cmds='.so'
9385    hardcode_into_libs=yes
9386    dynamic_linker="$host_os dld.so"
9387    shlibpath_var=LD_LIBRARY_PATH
9388    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9389    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9390    soname_spec='${libname}${release}${shared_ext}$major'
9391    if test "X$HPUX_IA64_MODE" = X32; then
9392      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9393    else
9394      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9395    fi
9396    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9397    ;;
9398   hppa*64*)
9399     shrext_cmds='.sl'
9400     hardcode_into_libs=yes
9401     dynamic_linker="$host_os dld.sl"
9402     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9403     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9404     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405     soname_spec='${libname}${release}${shared_ext}$major'
9406     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9407     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9408     ;;
9409   *)
9410    shrext_cmds='.sl'
9411    dynamic_linker="$host_os dld.sl"
9412    shlibpath_var=SHLIB_PATH
9413    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9414    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9415    soname_spec='${libname}${release}${shared_ext}$major'
9416    ;;
9417  esac
9418  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9419  postinstall_cmds='chmod 555 $lib'
9420  ;;
9421
9422interix3*)
9423  version_type=linux
9424  need_lib_prefix=no
9425  need_version=no
9426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9427  soname_spec='${libname}${release}${shared_ext}$major'
9428  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9429  shlibpath_var=LD_LIBRARY_PATH
9430  shlibpath_overrides_runpath=no
9431  hardcode_into_libs=yes
9432  ;;
9433
9434irix5* | irix6* | nonstopux*)
9435  case $host_os in
9436    nonstopux*) version_type=nonstopux ;;
9437    *)
9438        if test "$lt_cv_prog_gnu_ld" = yes; then
9439                version_type=linux
9440        else
9441                version_type=irix
9442        fi ;;
9443  esac
9444  need_lib_prefix=no
9445  need_version=no
9446  soname_spec='${libname}${release}${shared_ext}$major'
9447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9448  case $host_os in
9449  irix5* | nonstopux*)
9450    libsuff= shlibsuff=
9451    ;;
9452  *)
9453    case $LD in # libtool.m4 will add one of these switches to LD
9454    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9455      libsuff= shlibsuff= libmagic=32-bit;;
9456    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9457      libsuff=32 shlibsuff=N32 libmagic=N32;;
9458    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9459      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9460    *) libsuff= shlibsuff= libmagic=never-match;;
9461    esac
9462    ;;
9463  esac
9464  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9465  shlibpath_overrides_runpath=no
9466  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9467  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9468  hardcode_into_libs=yes
9469  ;;
9470
9471# No shared lib support for Linux oldld, aout, or coff.
9472linux*oldld* | linux*aout* | linux*coff*)
9473  dynamic_linker=no
9474  ;;
9475
9476# This must be Linux ELF.
9477linux*)
9478  version_type=linux
9479  need_lib_prefix=no
9480  need_version=no
9481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482  soname_spec='${libname}${release}${shared_ext}$major'
9483  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9484  shlibpath_var=LD_LIBRARY_PATH
9485  shlibpath_overrides_runpath=no
9486  # This implies no fast_install, which is unacceptable.
9487  # Some rework will be needed to allow for fast_install
9488  # before this can be enabled.
9489  hardcode_into_libs=yes
9490
9491  # Append ld.so.conf contents to the search path
9492  if test -f /etc/ld.so.conf; then
9493    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' ' '`
9494    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9495  fi
9496
9497  # We used to test for /lib/ld.so.1 and disable shared libraries on
9498  # powerpc, because MkLinux only supported shared libraries with the
9499  # GNU dynamic linker.  Since this was broken with cross compilers,
9500  # most powerpc-linux boxes support dynamic linking these days and
9501  # people can always --disable-shared, the test was removed, and we
9502  # assume the GNU/Linux dynamic linker is in use.
9503  dynamic_linker='GNU/Linux ld.so'
9504  ;;
9505
9506knetbsd*-gnu)
9507  version_type=linux
9508  need_lib_prefix=no
9509  need_version=no
9510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9511  soname_spec='${libname}${release}${shared_ext}$major'
9512  shlibpath_var=LD_LIBRARY_PATH
9513  shlibpath_overrides_runpath=no
9514  hardcode_into_libs=yes
9515  dynamic_linker='GNU ld.so'
9516  ;;
9517
9518netbsd*)
9519  version_type=sunos
9520  need_lib_prefix=no
9521  need_version=no
9522  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9523    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9524    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9525    dynamic_linker='NetBSD (a.out) ld.so'
9526  else
9527    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9528    soname_spec='${libname}${release}${shared_ext}$major'
9529    dynamic_linker='NetBSD ld.elf_so'
9530  fi
9531  shlibpath_var=LD_LIBRARY_PATH
9532  shlibpath_overrides_runpath=yes
9533  hardcode_into_libs=yes
9534  ;;
9535
9536newsos6)
9537  version_type=linux
9538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539  shlibpath_var=LD_LIBRARY_PATH
9540  shlibpath_overrides_runpath=yes
9541  ;;
9542
9543nto-qnx*)
9544  version_type=linux
9545  need_lib_prefix=no
9546  need_version=no
9547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548  soname_spec='${libname}${release}${shared_ext}$major'
9549  shlibpath_var=LD_LIBRARY_PATH
9550  shlibpath_overrides_runpath=yes
9551  ;;
9552
9553openbsd*)
9554  version_type=sunos
9555  sys_lib_dlsearch_path_spec="/usr/lib"
9556  need_lib_prefix=no
9557  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9558  case $host_os in
9559    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9560    *)                         need_version=no  ;;
9561  esac
9562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9563  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9564  shlibpath_var=LD_LIBRARY_PATH
9565  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9566    case $host_os in
9567      openbsd2.[89] | openbsd2.[89].*)
9568        shlibpath_overrides_runpath=no
9569        ;;
9570      *)
9571        shlibpath_overrides_runpath=yes
9572        ;;
9573      esac
9574  else
9575    shlibpath_overrides_runpath=yes
9576  fi
9577  ;;
9578
9579os2*)
9580  libname_spec='$name'
9581  shrext_cmds=".dll"
9582  need_lib_prefix=no
9583  library_names_spec='$libname${shared_ext} $libname.a'
9584  dynamic_linker='OS/2 ld.exe'
9585  shlibpath_var=LIBPATH
9586  ;;
9587
9588osf3* | osf4* | osf5*)
9589  version_type=osf
9590  need_lib_prefix=no
9591  need_version=no
9592  soname_spec='${libname}${release}${shared_ext}$major'
9593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594  shlibpath_var=LD_LIBRARY_PATH
9595  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9596  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9597  ;;
9598
9599solaris*)
9600  version_type=linux
9601  need_lib_prefix=no
9602  need_version=no
9603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604  soname_spec='${libname}${release}${shared_ext}$major'
9605  shlibpath_var=LD_LIBRARY_PATH
9606  shlibpath_overrides_runpath=yes
9607  hardcode_into_libs=yes
9608  # ldd complains unless libraries are executable
9609  postinstall_cmds='chmod +x $lib'
9610  ;;
9611
9612sunos4*)
9613  version_type=sunos
9614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9615  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9616  shlibpath_var=LD_LIBRARY_PATH
9617  shlibpath_overrides_runpath=yes
9618  if test "$with_gnu_ld" = yes; then
9619    need_lib_prefix=no
9620  fi
9621  need_version=yes
9622  ;;
9623
9624sysv4 | sysv4.3*)
9625  version_type=linux
9626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9627  soname_spec='${libname}${release}${shared_ext}$major'
9628  shlibpath_var=LD_LIBRARY_PATH
9629  case $host_vendor in
9630    sni)
9631      shlibpath_overrides_runpath=no
9632      need_lib_prefix=no
9633      export_dynamic_flag_spec='${wl}-Blargedynsym'
9634      runpath_var=LD_RUN_PATH
9635      ;;
9636    siemens)
9637      need_lib_prefix=no
9638      ;;
9639    motorola)
9640      need_lib_prefix=no
9641      need_version=no
9642      shlibpath_overrides_runpath=no
9643      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9644      ;;
9645  esac
9646  ;;
9647
9648sysv4*MP*)
9649  if test -d /usr/nec ;then
9650    version_type=linux
9651    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9652    soname_spec='$libname${shared_ext}.$major'
9653    shlibpath_var=LD_LIBRARY_PATH
9654  fi
9655  ;;
9656
9657sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9658  version_type=freebsd-elf
9659  need_lib_prefix=no
9660  need_version=no
9661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9662  soname_spec='${libname}${release}${shared_ext}$major'
9663  shlibpath_var=LD_LIBRARY_PATH
9664  hardcode_into_libs=yes
9665  if test "$with_gnu_ld" = yes; then
9666    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9667    shlibpath_overrides_runpath=no
9668  else
9669    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9670    shlibpath_overrides_runpath=yes
9671    case $host_os in
9672      sco3.2v5*)
9673        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9674        ;;
9675    esac
9676  fi
9677  sys_lib_dlsearch_path_spec='/usr/lib'
9678  ;;
9679
9680uts4*)
9681  version_type=linux
9682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683  soname_spec='${libname}${release}${shared_ext}$major'
9684  shlibpath_var=LD_LIBRARY_PATH
9685  ;;
9686
9687*)
9688  dynamic_linker=no
9689  ;;
9690esac
9691echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9692echo "${ECHO_T}$dynamic_linker" >&6
9693test "$dynamic_linker" = no && can_build_shared=no
9694
9695variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9696if test "$GCC" = yes; then
9697  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9698fi
9699
9700echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9701echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9702hardcode_action=
9703if test -n "$hardcode_libdir_flag_spec" || \
9704   test -n "$runpath_var" || \
9705   test "X$hardcode_automatic" = "Xyes" ; then
9706
9707  # We can hardcode non-existant directories.
9708  if test "$hardcode_direct" != no &&
9709     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9710     # have to relink, otherwise we might link with an installed library
9711     # when we should be linking with a yet-to-be-installed one
9712     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9713     test "$hardcode_minus_L" != no; then
9714    # Linking always hardcodes the temporary library directory.
9715    hardcode_action=relink
9716  else
9717    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9718    hardcode_action=immediate
9719  fi
9720else
9721  # We cannot hardcode anything, or else we can only hardcode existing
9722  # directories.
9723  hardcode_action=unsupported
9724fi
9725echo "$as_me:$LINENO: result: $hardcode_action" >&5
9726echo "${ECHO_T}$hardcode_action" >&6
9727
9728if test "$hardcode_action" = relink; then
9729  # Fast installation is not supported
9730  enable_fast_install=no
9731elif test "$shlibpath_overrides_runpath" = yes ||
9732     test "$enable_shared" = no; then
9733  # Fast installation is not necessary
9734  enable_fast_install=needless
9735fi
9736
9737striplib=
9738old_striplib=
9739echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9740echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9741if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9742  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9743  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9744  echo "$as_me:$LINENO: result: yes" >&5
9745echo "${ECHO_T}yes" >&6
9746else
9747# FIXME - insert some real tests, host_os isn't really good enough
9748  case $host_os in
9749   darwin*)
9750       if test -n "$STRIP" ; then
9751         striplib="$STRIP -x"
9752         echo "$as_me:$LINENO: result: yes" >&5
9753echo "${ECHO_T}yes" >&6
9754       else
9755  echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
9757fi
9758       ;;
9759   *)
9760  echo "$as_me:$LINENO: result: no" >&5
9761echo "${ECHO_T}no" >&6
9762    ;;
9763  esac
9764fi
9765
9766if test "x$enable_dlopen" != xyes; then
9767  enable_dlopen=unknown
9768  enable_dlopen_self=unknown
9769  enable_dlopen_self_static=unknown
9770else
9771  lt_cv_dlopen=no
9772  lt_cv_dlopen_libs=
9773
9774  case $host_os in
9775  beos*)
9776    lt_cv_dlopen="load_add_on"
9777    lt_cv_dlopen_libs=
9778    lt_cv_dlopen_self=yes
9779    ;;
9780
9781  mingw* | pw32*)
9782    lt_cv_dlopen="LoadLibrary"
9783    lt_cv_dlopen_libs=
9784   ;;
9785
9786  cygwin*)
9787    lt_cv_dlopen="dlopen"
9788    lt_cv_dlopen_libs=
9789   ;;
9790
9791  darwin*)
9792  # if libdl is installed we need to link against it
9793    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9794echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9795if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9796  echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
9798  ac_check_lib_save_LIBS=$LIBS
9799LIBS="-ldl  $LIBS"
9800cat >conftest.$ac_ext <<_ACEOF
9801/* confdefs.h.  */
9802_ACEOF
9803cat confdefs.h >>conftest.$ac_ext
9804cat >>conftest.$ac_ext <<_ACEOF
9805/* end confdefs.h.  */
9806
9807/* Override any gcc2 internal prototype to avoid an error.  */
9808#ifdef __cplusplus
9809extern "C"
9810#endif
9811/* We use char because int might match the return type of a gcc2
9812   builtin and then its argument prototype would still apply.  */
9813char dlopen ();
9814int
9815main ()
9816{
9817dlopen ();
9818  ;
9819  return 0;
9820}
9821_ACEOF
9822rm -f conftest.$ac_objext conftest$ac_exeext
9823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824  (eval $ac_link) 2>conftest.er1
9825  ac_status=$?
9826  grep -v '^ *+' conftest.er1 >conftest.err
9827  rm -f conftest.er1
9828  cat conftest.err >&5
9829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830  (exit $ac_status); } &&
9831         { ac_try='test -z "$ac_c_werror_flag"
9832                         || test ! -s conftest.err'
9833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834  (eval $ac_try) 2>&5
9835  ac_status=$?
9836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837  (exit $ac_status); }; } &&
9838         { ac_try='test -s conftest$ac_exeext'
9839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840  (eval $ac_try) 2>&5
9841  ac_status=$?
9842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843  (exit $ac_status); }; }; then
9844  ac_cv_lib_dl_dlopen=yes
9845else
9846  echo "$as_me: failed program was:" >&5
9847sed 's/^/| /' conftest.$ac_ext >&5
9848
9849ac_cv_lib_dl_dlopen=no
9850fi
9851rm -f conftest.err conftest.$ac_objext \
9852      conftest$ac_exeext conftest.$ac_ext
9853LIBS=$ac_check_lib_save_LIBS
9854fi
9855echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9856echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9857if test $ac_cv_lib_dl_dlopen = yes; then
9858  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9859else
9860
9861    lt_cv_dlopen="dyld"
9862    lt_cv_dlopen_libs=
9863    lt_cv_dlopen_self=yes
9864
9865fi
9866
9867   ;;
9868
9869  *)
9870    echo "$as_me:$LINENO: checking for shl_load" >&5
9871echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9872if test "${ac_cv_func_shl_load+set}" = set; then
9873  echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875  cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h.  */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h.  */
9881/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9882   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9883#define shl_load innocuous_shl_load
9884
9885/* System header to define __stub macros and hopefully few prototypes,
9886    which can conflict with char shl_load (); below.
9887    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9888    <limits.h> exists even on freestanding compilers.  */
9889
9890#ifdef __STDC__
9891# include <limits.h>
9892#else
9893# include <assert.h>
9894#endif
9895
9896#undef shl_load
9897
9898/* Override any gcc2 internal prototype to avoid an error.  */
9899#ifdef __cplusplus
9900extern "C"
9901{
9902#endif
9903/* We use char because int might match the return type of a gcc2
9904   builtin and then its argument prototype would still apply.  */
9905char shl_load ();
9906/* The GNU C library defines this for functions which it implements
9907    to always fail with ENOSYS.  Some functions are actually named
9908    something starting with __ and the normal name is an alias.  */
9909#if defined (__stub_shl_load) || defined (__stub___shl_load)
9910choke me
9911#else
9912char (*f) () = shl_load;
9913#endif
9914#ifdef __cplusplus
9915}
9916#endif
9917
9918int
9919main ()
9920{
9921return f != shl_load;
9922  ;
9923  return 0;
9924}
9925_ACEOF
9926rm -f conftest.$ac_objext conftest$ac_exeext
9927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928  (eval $ac_link) 2>conftest.er1
9929  ac_status=$?
9930  grep -v '^ *+' conftest.er1 >conftest.err
9931  rm -f conftest.er1
9932  cat conftest.err >&5
9933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934  (exit $ac_status); } &&
9935         { ac_try='test -z "$ac_c_werror_flag"
9936                         || test ! -s conftest.err'
9937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938  (eval $ac_try) 2>&5
9939  ac_status=$?
9940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941  (exit $ac_status); }; } &&
9942         { ac_try='test -s conftest$ac_exeext'
9943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944  (eval $ac_try) 2>&5
9945  ac_status=$?
9946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947  (exit $ac_status); }; }; then
9948  ac_cv_func_shl_load=yes
9949else
9950  echo "$as_me: failed program was:" >&5
9951sed 's/^/| /' conftest.$ac_ext >&5
9952
9953ac_cv_func_shl_load=no
9954fi
9955rm -f conftest.err conftest.$ac_objext \
9956      conftest$ac_exeext conftest.$ac_ext
9957fi
9958echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9959echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9960if test $ac_cv_func_shl_load = yes; then
9961  lt_cv_dlopen="shl_load"
9962else
9963  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9964echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9965if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9966  echo $ECHO_N "(cached) $ECHO_C" >&6
9967else
9968  ac_check_lib_save_LIBS=$LIBS
9969LIBS="-ldld  $LIBS"
9970cat >conftest.$ac_ext <<_ACEOF
9971/* confdefs.h.  */
9972_ACEOF
9973cat confdefs.h >>conftest.$ac_ext
9974cat >>conftest.$ac_ext <<_ACEOF
9975/* end confdefs.h.  */
9976
9977/* Override any gcc2 internal prototype to avoid an error.  */
9978#ifdef __cplusplus
9979extern "C"
9980#endif
9981/* We use char because int might match the return type of a gcc2
9982   builtin and then its argument prototype would still apply.  */
9983char shl_load ();
9984int
9985main ()
9986{
9987shl_load ();
9988  ;
9989  return 0;
9990}
9991_ACEOF
9992rm -f conftest.$ac_objext conftest$ac_exeext
9993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9994  (eval $ac_link) 2>conftest.er1
9995  ac_status=$?
9996  grep -v '^ *+' conftest.er1 >conftest.err
9997  rm -f conftest.er1
9998  cat conftest.err >&5
9999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000  (exit $ac_status); } &&
10001         { ac_try='test -z "$ac_c_werror_flag"
10002                         || test ! -s conftest.err'
10003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004  (eval $ac_try) 2>&5
10005  ac_status=$?
10006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007  (exit $ac_status); }; } &&
10008         { ac_try='test -s conftest$ac_exeext'
10009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010  (eval $ac_try) 2>&5
10011  ac_status=$?
10012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013  (exit $ac_status); }; }; then
10014  ac_cv_lib_dld_shl_load=yes
10015else
10016  echo "$as_me: failed program was:" >&5
10017sed 's/^/| /' conftest.$ac_ext >&5
10018
10019ac_cv_lib_dld_shl_load=no
10020fi
10021rm -f conftest.err conftest.$ac_objext \
10022      conftest$ac_exeext conftest.$ac_ext
10023LIBS=$ac_check_lib_save_LIBS
10024fi
10025echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10026echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10027if test $ac_cv_lib_dld_shl_load = yes; then
10028  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10029else
10030  echo "$as_me:$LINENO: checking for dlopen" >&5
10031echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10032if test "${ac_cv_func_dlopen+set}" = set; then
10033  echo $ECHO_N "(cached) $ECHO_C" >&6
10034else
10035  cat >conftest.$ac_ext <<_ACEOF
10036/* confdefs.h.  */
10037_ACEOF
10038cat confdefs.h >>conftest.$ac_ext
10039cat >>conftest.$ac_ext <<_ACEOF
10040/* end confdefs.h.  */
10041/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10042   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10043#define dlopen innocuous_dlopen
10044
10045/* System header to define __stub macros and hopefully few prototypes,
10046    which can conflict with char dlopen (); below.
10047    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048    <limits.h> exists even on freestanding compilers.  */
10049
10050#ifdef __STDC__
10051# include <limits.h>
10052#else
10053# include <assert.h>
10054#endif
10055
10056#undef dlopen
10057
10058/* Override any gcc2 internal prototype to avoid an error.  */
10059#ifdef __cplusplus
10060extern "C"
10061{
10062#endif
10063/* We use char because int might match the return type of a gcc2
10064   builtin and then its argument prototype would still apply.  */
10065char dlopen ();
10066/* The GNU C library defines this for functions which it implements
10067    to always fail with ENOSYS.  Some functions are actually named
10068    something starting with __ and the normal name is an alias.  */
10069#if defined (__stub_dlopen) || defined (__stub___dlopen)
10070choke me
10071#else
10072char (*f) () = dlopen;
10073#endif
10074#ifdef __cplusplus
10075}
10076#endif
10077
10078int
10079main ()
10080{
10081return f != dlopen;
10082  ;
10083  return 0;
10084}
10085_ACEOF
10086rm -f conftest.$ac_objext conftest$ac_exeext
10087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088  (eval $ac_link) 2>conftest.er1
10089  ac_status=$?
10090  grep -v '^ *+' conftest.er1 >conftest.err
10091  rm -f conftest.er1
10092  cat conftest.err >&5
10093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094  (exit $ac_status); } &&
10095         { ac_try='test -z "$ac_c_werror_flag"
10096                         || test ! -s conftest.err'
10097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098  (eval $ac_try) 2>&5
10099  ac_status=$?
10100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101  (exit $ac_status); }; } &&
10102         { ac_try='test -s conftest$ac_exeext'
10103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104  (eval $ac_try) 2>&5
10105  ac_status=$?
10106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107  (exit $ac_status); }; }; then
10108  ac_cv_func_dlopen=yes
10109else
10110  echo "$as_me: failed program was:" >&5
10111sed 's/^/| /' conftest.$ac_ext >&5
10112
10113ac_cv_func_dlopen=no
10114fi
10115rm -f conftest.err conftest.$ac_objext \
10116      conftest$ac_exeext conftest.$ac_ext
10117fi
10118echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10119echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10120if test $ac_cv_func_dlopen = yes; then
10121  lt_cv_dlopen="dlopen"
10122else
10123  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10124echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10125if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10126  echo $ECHO_N "(cached) $ECHO_C" >&6
10127else
10128  ac_check_lib_save_LIBS=$LIBS
10129LIBS="-ldl  $LIBS"
10130cat >conftest.$ac_ext <<_ACEOF
10131/* confdefs.h.  */
10132_ACEOF
10133cat confdefs.h >>conftest.$ac_ext
10134cat >>conftest.$ac_ext <<_ACEOF
10135/* end confdefs.h.  */
10136
10137/* Override any gcc2 internal prototype to avoid an error.  */
10138#ifdef __cplusplus
10139extern "C"
10140#endif
10141/* We use char because int might match the return type of a gcc2
10142   builtin and then its argument prototype would still apply.  */
10143char dlopen ();
10144int
10145main ()
10146{
10147dlopen ();
10148  ;
10149  return 0;
10150}
10151_ACEOF
10152rm -f conftest.$ac_objext conftest$ac_exeext
10153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10154  (eval $ac_link) 2>conftest.er1
10155  ac_status=$?
10156  grep -v '^ *+' conftest.er1 >conftest.err
10157  rm -f conftest.er1
10158  cat conftest.err >&5
10159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160  (exit $ac_status); } &&
10161         { ac_try='test -z "$ac_c_werror_flag"
10162                         || test ! -s conftest.err'
10163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164  (eval $ac_try) 2>&5
10165  ac_status=$?
10166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167  (exit $ac_status); }; } &&
10168         { ac_try='test -s conftest$ac_exeext'
10169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170  (eval $ac_try) 2>&5
10171  ac_status=$?
10172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173  (exit $ac_status); }; }; then
10174  ac_cv_lib_dl_dlopen=yes
10175else
10176  echo "$as_me: failed program was:" >&5
10177sed 's/^/| /' conftest.$ac_ext >&5
10178
10179ac_cv_lib_dl_dlopen=no
10180fi
10181rm -f conftest.err conftest.$ac_objext \
10182      conftest$ac_exeext conftest.$ac_ext
10183LIBS=$ac_check_lib_save_LIBS
10184fi
10185echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10186echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10187if test $ac_cv_lib_dl_dlopen = yes; then
10188  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10189else
10190  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10191echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10192if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10193  echo $ECHO_N "(cached) $ECHO_C" >&6
10194else
10195  ac_check_lib_save_LIBS=$LIBS
10196LIBS="-lsvld  $LIBS"
10197cat >conftest.$ac_ext <<_ACEOF
10198/* confdefs.h.  */
10199_ACEOF
10200cat confdefs.h >>conftest.$ac_ext
10201cat >>conftest.$ac_ext <<_ACEOF
10202/* end confdefs.h.  */
10203
10204/* Override any gcc2 internal prototype to avoid an error.  */
10205#ifdef __cplusplus
10206extern "C"
10207#endif
10208/* We use char because int might match the return type of a gcc2
10209   builtin and then its argument prototype would still apply.  */
10210char dlopen ();
10211int
10212main ()
10213{
10214dlopen ();
10215  ;
10216  return 0;
10217}
10218_ACEOF
10219rm -f conftest.$ac_objext conftest$ac_exeext
10220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10221  (eval $ac_link) 2>conftest.er1
10222  ac_status=$?
10223  grep -v '^ *+' conftest.er1 >conftest.err
10224  rm -f conftest.er1
10225  cat conftest.err >&5
10226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227  (exit $ac_status); } &&
10228         { ac_try='test -z "$ac_c_werror_flag"
10229                         || test ! -s conftest.err'
10230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231  (eval $ac_try) 2>&5
10232  ac_status=$?
10233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234  (exit $ac_status); }; } &&
10235         { ac_try='test -s conftest$ac_exeext'
10236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237  (eval $ac_try) 2>&5
10238  ac_status=$?
10239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240  (exit $ac_status); }; }; then
10241  ac_cv_lib_svld_dlopen=yes
10242else
10243  echo "$as_me: failed program was:" >&5
10244sed 's/^/| /' conftest.$ac_ext >&5
10245
10246ac_cv_lib_svld_dlopen=no
10247fi
10248rm -f conftest.err conftest.$ac_objext \
10249      conftest$ac_exeext conftest.$ac_ext
10250LIBS=$ac_check_lib_save_LIBS
10251fi
10252echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10253echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10254if test $ac_cv_lib_svld_dlopen = yes; then
10255  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10256else
10257  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10258echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10259if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10260  echo $ECHO_N "(cached) $ECHO_C" >&6
10261else
10262  ac_check_lib_save_LIBS=$LIBS
10263LIBS="-ldld  $LIBS"
10264cat >conftest.$ac_ext <<_ACEOF
10265/* confdefs.h.  */
10266_ACEOF
10267cat confdefs.h >>conftest.$ac_ext
10268cat >>conftest.$ac_ext <<_ACEOF
10269/* end confdefs.h.  */
10270
10271/* Override any gcc2 internal prototype to avoid an error.  */
10272#ifdef __cplusplus
10273extern "C"
10274#endif
10275/* We use char because int might match the return type of a gcc2
10276   builtin and then its argument prototype would still apply.  */
10277char dld_link ();
10278int
10279main ()
10280{
10281dld_link ();
10282  ;
10283  return 0;
10284}
10285_ACEOF
10286rm -f conftest.$ac_objext conftest$ac_exeext
10287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288  (eval $ac_link) 2>conftest.er1
10289  ac_status=$?
10290  grep -v '^ *+' conftest.er1 >conftest.err
10291  rm -f conftest.er1
10292  cat conftest.err >&5
10293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294  (exit $ac_status); } &&
10295         { ac_try='test -z "$ac_c_werror_flag"
10296                         || test ! -s conftest.err'
10297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298  (eval $ac_try) 2>&5
10299  ac_status=$?
10300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301  (exit $ac_status); }; } &&
10302         { ac_try='test -s conftest$ac_exeext'
10303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304  (eval $ac_try) 2>&5
10305  ac_status=$?
10306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307  (exit $ac_status); }; }; then
10308  ac_cv_lib_dld_dld_link=yes
10309else
10310  echo "$as_me: failed program was:" >&5
10311sed 's/^/| /' conftest.$ac_ext >&5
10312
10313ac_cv_lib_dld_dld_link=no
10314fi
10315rm -f conftest.err conftest.$ac_objext \
10316      conftest$ac_exeext conftest.$ac_ext
10317LIBS=$ac_check_lib_save_LIBS
10318fi
10319echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10320echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10321if test $ac_cv_lib_dld_dld_link = yes; then
10322  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10323fi
10324
10325
10326fi
10327
10328
10329fi
10330
10331
10332fi
10333
10334
10335fi
10336
10337
10338fi
10339
10340    ;;
10341  esac
10342
10343  if test "x$lt_cv_dlopen" != xno; then
10344    enable_dlopen=yes
10345  else
10346    enable_dlopen=no
10347  fi
10348
10349  case $lt_cv_dlopen in
10350  dlopen)
10351    save_CPPFLAGS="$CPPFLAGS"
10352    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10353
10354    save_LDFLAGS="$LDFLAGS"
10355    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10356
10357    save_LIBS="$LIBS"
10358    LIBS="$lt_cv_dlopen_libs $LIBS"
10359
10360    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10361echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10362if test "${lt_cv_dlopen_self+set}" = set; then
10363  echo $ECHO_N "(cached) $ECHO_C" >&6
10364else
10365          if test "$cross_compiling" = yes; then :
10366  lt_cv_dlopen_self=cross
10367else
10368  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10369  lt_status=$lt_dlunknown
10370  cat > conftest.$ac_ext <<EOF
10371#line 10371 "configure"
10372#include "confdefs.h"
10373
10374#if HAVE_DLFCN_H
10375#include <dlfcn.h>
10376#endif
10377
10378#include <stdio.h>
10379
10380#ifdef RTLD_GLOBAL
10381#  define LT_DLGLOBAL           RTLD_GLOBAL
10382#else
10383#  ifdef DL_GLOBAL
10384#    define LT_DLGLOBAL         DL_GLOBAL
10385#  else
10386#    define LT_DLGLOBAL         0
10387#  endif
10388#endif
10389
10390/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10391   find out it does not work in some platform. */
10392#ifndef LT_DLLAZY_OR_NOW
10393#  ifdef RTLD_LAZY
10394#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10395#  else
10396#    ifdef DL_LAZY
10397#      define LT_DLLAZY_OR_NOW          DL_LAZY
10398#    else
10399#      ifdef RTLD_NOW
10400#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10401#      else
10402#        ifdef DL_NOW
10403#          define LT_DLLAZY_OR_NOW      DL_NOW
10404#        else
10405#          define LT_DLLAZY_OR_NOW      0
10406#        endif
10407#      endif
10408#    endif
10409#  endif
10410#endif
10411
10412#ifdef __cplusplus
10413extern "C" void exit (int);
10414#endif
10415
10416void fnord() { int i=42;}
10417int main ()
10418{
10419  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10420  int status = $lt_dlunknown;
10421
10422  if (self)
10423    {
10424      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10425      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10426      /* dlclose (self); */
10427    }
10428  else
10429    puts (dlerror ());
10430
10431    exit (status);
10432}
10433EOF
10434  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10435  (eval $ac_link) 2>&5
10436  ac_status=$?
10437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10439    (./conftest; exit; ) >&5 2>/dev/null
10440    lt_status=$?
10441    case x$lt_status in
10442      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10443      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10444      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10445    esac
10446  else :
10447    # compilation failed
10448    lt_cv_dlopen_self=no
10449  fi
10450fi
10451rm -fr conftest*
10452
10453
10454fi
10455echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10456echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10457
10458    if test "x$lt_cv_dlopen_self" = xyes; then
10459      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10460      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10461echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10462if test "${lt_cv_dlopen_self_static+set}" = set; then
10463  echo $ECHO_N "(cached) $ECHO_C" >&6
10464else
10465          if test "$cross_compiling" = yes; then :
10466  lt_cv_dlopen_self_static=cross
10467else
10468  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10469  lt_status=$lt_dlunknown
10470  cat > conftest.$ac_ext <<EOF
10471#line 10471 "configure"
10472#include "confdefs.h"
10473
10474#if HAVE_DLFCN_H
10475#include <dlfcn.h>
10476#endif
10477
10478#include <stdio.h>
10479
10480#ifdef RTLD_GLOBAL
10481#  define LT_DLGLOBAL           RTLD_GLOBAL
10482#else
10483#  ifdef DL_GLOBAL
10484#    define LT_DLGLOBAL         DL_GLOBAL
10485#  else
10486#    define LT_DLGLOBAL         0
10487#  endif
10488#endif
10489
10490/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10491   find out it does not work in some platform. */
10492#ifndef LT_DLLAZY_OR_NOW
10493#  ifdef RTLD_LAZY
10494#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10495#  else
10496#    ifdef DL_LAZY
10497#      define LT_DLLAZY_OR_NOW          DL_LAZY
10498#    else
10499#      ifdef RTLD_NOW
10500#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10501#      else
10502#        ifdef DL_NOW
10503#          define LT_DLLAZY_OR_NOW      DL_NOW
10504#        else
10505#          define LT_DLLAZY_OR_NOW      0
10506#        endif
10507#      endif
10508#    endif
10509#  endif
10510#endif
10511
10512#ifdef __cplusplus
10513extern "C" void exit (int);
10514#endif
10515
10516void fnord() { int i=42;}
10517int main ()
10518{
10519  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10520  int status = $lt_dlunknown;
10521
10522  if (self)
10523    {
10524      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10525      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10526      /* dlclose (self); */
10527    }
10528  else
10529    puts (dlerror ());
10530
10531    exit (status);
10532}
10533EOF
10534  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535  (eval $ac_link) 2>&5
10536  ac_status=$?
10537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10539    (./conftest; exit; ) >&5 2>/dev/null
10540    lt_status=$?
10541    case x$lt_status in
10542      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10543      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10544      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10545    esac
10546  else :
10547    # compilation failed
10548    lt_cv_dlopen_self_static=no
10549  fi
10550fi
10551rm -fr conftest*
10552
10553
10554fi
10555echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10556echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10557    fi
10558
10559    CPPFLAGS="$save_CPPFLAGS"
10560    LDFLAGS="$save_LDFLAGS"
10561    LIBS="$save_LIBS"
10562    ;;
10563  esac
10564
10565  case $lt_cv_dlopen_self in
10566  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10567  *) enable_dlopen_self=unknown ;;
10568  esac
10569
10570  case $lt_cv_dlopen_self_static in
10571  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10572  *) enable_dlopen_self_static=unknown ;;
10573  esac
10574fi
10575
10576
10577# Report which library types will actually be built
10578echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10579echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10580echo "$as_me:$LINENO: result: $can_build_shared" >&5
10581echo "${ECHO_T}$can_build_shared" >&6
10582
10583echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10584echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10585test "$can_build_shared" = "no" && enable_shared=no
10586
10587# On AIX, shared libraries and static libraries use the same namespace, and
10588# are all built from PIC.
10589case $host_os in
10590aix3*)
10591  test "$enable_shared" = yes && enable_static=no
10592  if test -n "$RANLIB"; then
10593    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10594    postinstall_cmds='$RANLIB $lib'
10595  fi
10596  ;;
10597
10598aix4* | aix5*)
10599  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10600    test "$enable_shared" = yes && enable_static=no
10601  fi
10602    ;;
10603esac
10604echo "$as_me:$LINENO: result: $enable_shared" >&5
10605echo "${ECHO_T}$enable_shared" >&6
10606
10607echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10608echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10609# Make sure either enable_shared or enable_static is yes.
10610test "$enable_shared" = yes || enable_static=yes
10611echo "$as_me:$LINENO: result: $enable_static" >&5
10612echo "${ECHO_T}$enable_static" >&6
10613
10614# The else clause should only fire when bootstrapping the
10615# libtool distribution, otherwise you forgot to ship ltmain.sh
10616# with your package, and you will get complaints that there are
10617# no rules to generate ltmain.sh.
10618if test -f "$ltmain"; then
10619  # See if we are running on zsh, and set the options which allow our commands through
10620  # without removal of \ escapes.
10621  if test -n "${ZSH_VERSION+set}" ; then
10622    setopt NO_GLOB_SUBST
10623  fi
10624  # Now quote all the things that may contain metacharacters while being
10625  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10626  # variables and quote the copies for generation of the libtool script.
10627  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10628    SED SHELL STRIP \
10629    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10630    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10631    deplibs_check_method reload_flag reload_cmds need_locks \
10632    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10633    lt_cv_sys_global_symbol_to_c_name_address \
10634    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10635    old_postinstall_cmds old_postuninstall_cmds \
10636    compiler \
10637    CC \
10638    LD \
10639    lt_prog_compiler_wl \
10640    lt_prog_compiler_pic \
10641    lt_prog_compiler_static \
10642    lt_prog_compiler_no_builtin_flag \
10643    export_dynamic_flag_spec \
10644    thread_safe_flag_spec \
10645    whole_archive_flag_spec \
10646    enable_shared_with_static_runtimes \
10647    old_archive_cmds \
10648    old_archive_from_new_cmds \
10649    predep_objects \
10650    postdep_objects \
10651    predeps \
10652    postdeps \
10653    compiler_lib_search_path \
10654    archive_cmds \
10655    archive_expsym_cmds \
10656    postinstall_cmds \
10657    postuninstall_cmds \
10658    old_archive_from_expsyms_cmds \
10659    allow_undefined_flag \
10660    no_undefined_flag \
10661    export_symbols_cmds \
10662    hardcode_libdir_flag_spec \
10663    hardcode_libdir_flag_spec_ld \
10664    hardcode_libdir_separator \
10665    hardcode_automatic \
10666    module_cmds \
10667    module_expsym_cmds \
10668    lt_cv_prog_compiler_c_o \
10669    exclude_expsyms \
10670    include_expsyms; do
10671
10672    case $var in
10673    old_archive_cmds | \
10674    old_archive_from_new_cmds | \
10675    archive_cmds | \
10676    archive_expsym_cmds | \
10677    module_cmds | \
10678    module_expsym_cmds | \
10679    old_archive_from_expsyms_cmds | \
10680    export_symbols_cmds | \
10681    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10682    postinstall_cmds | postuninstall_cmds | \
10683    old_postinstall_cmds | old_postuninstall_cmds | \
10684    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10685      # Double-quote double-evaled strings.
10686      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10687      ;;
10688    *)
10689      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10690      ;;
10691    esac
10692  done
10693
10694  case $lt_echo in
10695  *'\$0 --fallback-echo"')
10696    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10697    ;;
10698  esac
10699
10700cfgfile="${ofile}T"
10701  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10702  $rm -f "$cfgfile"
10703  { echo "$as_me:$LINENO: creating $ofile" >&5
10704echo "$as_me: creating $ofile" >&6;}
10705
10706  cat <<__EOF__ >> "$cfgfile"
10707#! $SHELL
10708
10709# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10710# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10711# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10712#
10713# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10714# Free Software Foundation, Inc.
10715#
10716# This file is part of GNU Libtool:
10717# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10718#
10719# This program is free software; you can redistribute it and/or modify
10720# it under the terms of the GNU General Public License as published by
10721# the Free Software Foundation; either version 2 of the License, or
10722# (at your option) any later version.
10723#
10724# This program is distributed in the hope that it will be useful, but
10725# WITHOUT ANY WARRANTY; without even the implied warranty of
10726# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10727# General Public License for more details.
10728#
10729# You should have received a copy of the GNU General Public License
10730# along with this program; if not, write to the Free Software
10731# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10732#
10733# As a special exception to the GNU General Public License, if you
10734# distribute this file as part of a program that contains a
10735# configuration script generated by Autoconf, you may include it under
10736# the same distribution terms that you use for the rest of that program.
10737
10738# A sed program that does not truncate output.
10739SED=$lt_SED
10740
10741# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10742Xsed="$SED -e 1s/^X//"
10743
10744# The HP-UX ksh and POSIX shell print the target directory to stdout
10745# if CDPATH is set.
10746(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10747
10748# The names of the tagged configurations supported by this script.
10749available_tags=
10750
10751# ### BEGIN LIBTOOL CONFIG
10752
10753# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10754
10755# Shell to use when invoking shell scripts.
10756SHELL=$lt_SHELL
10757
10758# Whether or not to build shared libraries.
10759build_libtool_libs=$enable_shared
10760
10761# Whether or not to build static libraries.
10762build_old_libs=$enable_static
10763
1076