source: ThirdParty/Glpk/trunk/configure @ 2967

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

Re-running the autotools

File size: 770.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyGlpk trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2010 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyGlpk'
431PACKAGE_TARNAME='thirdpartyglpk'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyGlpk trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="glpk/src/glpk.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion GLPK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS glpkmajorver glpkminorver GLPKDIR GLPK_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyGlpk trunk to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyGlpk trunk:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-glpk compile project Glpk with debug compiler flags
1064
1065  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1066  --disable-pkg-config    disable use of pkg-config (if available)
1067  --enable-static[=PKGS]
1068                          build static libraries [default=no]
1069  --disable-dependency-tracking  speeds up one-time build
1070  --enable-dependency-tracking   do not reject slow dependency extractors
1071  --enable-maintainer-mode  enable make rules and dependencies not useful
1072                          (and sometimes confusing) to the casual installer
1073  --enable-shared[=PKGS]
1074                          build shared libraries [default=yes]
1075  --enable-fast-install[=PKGS]
1076                          optimize for fast installation [default=yes]
1077  --disable-libtool-lock  avoid locking (might break parallel builds)
1078  --disable-gmp           do not compile with GNU multiple precision library
1079  --enable-odbc           enable MathProg ODBC support [default=auto]
1080  --enable-mysql          enable MathProg MySQL support [default=auto]
1081
1082Optional Packages:
1083  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1084  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1085  --with-glpk-verbosity specify the debug verbosity level for project Glpk
1086  --with-glpk-checklevel specify the sanity check level for project Glpk
1087  --with-coin-instdir     prefix of installation directory for precompiled
1088                          COIN packages
1089  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1090  --with-pic              try to use only PIC/non-PIC objects [default=use
1091                          both]
1092  --with-tags[=TAGS]
1093                          include additional configurations [automatic]
1094
1095Some influential environment variables:
1096  CDEFS       Additional -D flags to be used when compiling C code.
1097  ADD_CFLAGS  Additional C compiler options
1098  DBG_CFLAGS  Debug C compiler options
1099  OPT_CFLAGS  Optimize C compiler options
1100  CC          C compiler command
1101  CFLAGS      C compiler flags
1102  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1103              nonstandard directory <lib dir>
1104  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105              headers in a nonstandard directory <include dir>
1106  MPICC       C MPI Compiler
1107  PKG_CONFIG  path to pkg-config utility
1108  CPP         C preprocessor
1109  CXX         C++ compiler command
1110  CXXFLAGS    C++ compiler flags
1111  CXXCPP      C++ preprocessor
1112  F77         Fortran 77 compiler command
1113  FFLAGS      Fortran 77 compiler flags
1114
1115Use these variables to override the choices made by `configure' or to help
1116it to find libraries and programs with nonstandard names/locations.
1117
1118Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1119_ACEOF
1120fi
1121
1122if test "$ac_init_help" = "recursive"; then
1123  # If there are subdirs, report their specific --help.
1124  ac_popdir=`pwd`
1125  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1126    test -d $ac_dir || continue
1127    ac_builddir=.
1128
1129if test "$ac_dir" != .; then
1130  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1131  # A "../" for each directory in $ac_dir_suffix.
1132  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1133else
1134  ac_dir_suffix= ac_top_builddir=
1135fi
1136
1137case $srcdir in
1138  .)  # No --srcdir option.  We are building in place.
1139    ac_srcdir=.
1140    if test -z "$ac_top_builddir"; then
1141       ac_top_srcdir=.
1142    else
1143       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1144    fi ;;
1145  [\\/]* | ?:[\\/]* )  # Absolute path.
1146    ac_srcdir=$srcdir$ac_dir_suffix;
1147    ac_top_srcdir=$srcdir ;;
1148  *) # Relative path.
1149    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1150    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1151esac
1152
1153# Do not use `cd foo && pwd` to compute absolute paths, because
1154# the directories may not exist.
1155case `pwd` in
1156.) ac_abs_builddir="$ac_dir";;
1157*)
1158  case "$ac_dir" in
1159  .) ac_abs_builddir=`pwd`;;
1160  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1161  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1162  esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_builddir=${ac_top_builddir}.;;
1166*)
1167  case ${ac_top_builddir}. in
1168  .) ac_abs_top_builddir=$ac_abs_builddir;;
1169  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1170  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1171  esac;;
1172esac
1173case $ac_abs_builddir in
1174.) ac_abs_srcdir=$ac_srcdir;;
1175*)
1176  case $ac_srcdir in
1177  .) ac_abs_srcdir=$ac_abs_builddir;;
1178  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1179  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1180  esac;;
1181esac
1182case $ac_abs_builddir in
1183.) ac_abs_top_srcdir=$ac_top_srcdir;;
1184*)
1185  case $ac_top_srcdir in
1186  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1187  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1188  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1189  esac;;
1190esac
1191
1192    cd $ac_dir
1193    # Check for guested configure; otherwise get Cygnus style configure.
1194    if test -f $ac_srcdir/configure.gnu; then
1195      echo
1196      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1197    elif test -f $ac_srcdir/configure; then
1198      echo
1199      $SHELL $ac_srcdir/configure  --help=recursive
1200    elif test -f $ac_srcdir/configure.ac ||
1201           test -f $ac_srcdir/configure.in; then
1202      echo
1203      $ac_configure --help
1204    else
1205      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1206    fi
1207    cd $ac_popdir
1208  done
1209fi
1210
1211test -n "$ac_init_help" && exit 0
1212if $ac_init_version; then
1213  cat <<\_ACEOF
1214ThirdPartyGlpk configure trunk
1215generated by GNU Autoconf 2.59
1216
1217Copyright (C) 2003 Free Software Foundation, Inc.
1218This configure script is free software; the Free Software Foundation
1219gives unlimited permission to copy, distribute and modify it.
1220
1221
1222Copyright 2007-2010 Stefan Vigerske and others.
1223All Rights Reserved.
1224This file is part of the open source package Coin which is distributed
1225under the Eclipse Public License.
1226_ACEOF
1227  exit 0
1228fi
1229exec 5>config.log
1230cat >&5 <<_ACEOF
1231This file contains any messages produced by compilers while
1232running configure, to aid debugging if configure makes a mistake.
1233
1234It was created by ThirdPartyGlpk $as_me trunk, which was
1235generated by GNU Autoconf 2.59.  Invocation command line was
1236
1237  $ $0 $@
1238
1239_ACEOF
1240{
1241cat <<_ASUNAME
1242## --------- ##
1243## Platform. ##
1244## --------- ##
1245
1246hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1247uname -m = `(uname -m) 2>/dev/null || echo unknown`
1248uname -r = `(uname -r) 2>/dev/null || echo unknown`
1249uname -s = `(uname -s) 2>/dev/null || echo unknown`
1250uname -v = `(uname -v) 2>/dev/null || echo unknown`
1251
1252/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1253/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1254
1255/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1256/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1257/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1258hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1259/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1260/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1261/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1262
1263_ASUNAME
1264
1265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266for as_dir in $PATH
1267do
1268  IFS=$as_save_IFS
1269  test -z "$as_dir" && as_dir=.
1270  echo "PATH: $as_dir"
1271done
1272
1273} >&5
1274
1275cat >&5 <<_ACEOF
1276
1277
1278## ----------- ##
1279## Core tests. ##
1280## ----------- ##
1281
1282_ACEOF
1283
1284
1285# Keep a trace of the command line.
1286# Strip out --no-create and --no-recursion so they do not pile up.
1287# Strip out --silent because we don't want to record it for future runs.
1288# Also quote any args containing shell meta-characters.
1289# Make two passes to allow for proper duplicate-argument suppression.
1290ac_configure_args=
1291ac_configure_args0=
1292ac_configure_args1=
1293ac_sep=
1294ac_must_keep_next=false
1295for ac_pass in 1 2
1296do
1297  for ac_arg
1298  do
1299    case $ac_arg in
1300    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1301    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302    | -silent | --silent | --silen | --sile | --sil)
1303      continue ;;
1304    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1306    esac
1307    case $ac_pass in
1308    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1309    2)
1310      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1311      if test $ac_must_keep_next = true; then
1312        ac_must_keep_next=false # Got value, back to normal.
1313      else
1314        case $ac_arg in
1315          *=* | --config-cache | -C | -disable-* | --disable-* \
1316          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1317          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1318          | -with-* | --with-* | -without-* | --without-* | --x)
1319            case "$ac_configure_args0 " in
1320              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1321            esac
1322            ;;
1323          -* ) ac_must_keep_next=true ;;
1324        esac
1325      fi
1326      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1327      # Get rid of the leading space.
1328      ac_sep=" "
1329      ;;
1330    esac
1331  done
1332done
1333$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1334$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1335
1336# When interrupted or exit'd, cleanup temporary files, and complete
1337# config.log.  We remove comments because anyway the quotes in there
1338# would cause problems or look ugly.
1339# WARNING: Be sure not to use single quotes in there, as some shells,
1340# such as our DU 5.0 friend, will then `close' the trap.
1341trap 'exit_status=$?
1342  # Save into config.log some information that might help in debugging.
1343  {
1344    echo
1345
1346    cat <<\_ASBOX
1347## ---------------- ##
1348## Cache variables. ##
1349## ---------------- ##
1350_ASBOX
1351    echo
1352    # The following way of writing the cache mishandles newlines in values,
1353{
1354  (set) 2>&1 |
1355    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1356    *ac_space=\ *)
1357      sed -n \
1358        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1359          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1360      ;;
1361    *)
1362      sed -n \
1363        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1364      ;;
1365    esac;
1366}
1367    echo
1368
1369    cat <<\_ASBOX
1370## ----------------- ##
1371## Output variables. ##
1372## ----------------- ##
1373_ASBOX
1374    echo
1375    for ac_var in $ac_subst_vars
1376    do
1377      eval ac_val=$`echo $ac_var`
1378      echo "$ac_var='"'"'$ac_val'"'"'"
1379    done | sort
1380    echo
1381
1382    if test -n "$ac_subst_files"; then
1383      cat <<\_ASBOX
1384## ------------- ##
1385## Output files. ##
1386## ------------- ##
1387_ASBOX
1388      echo
1389      for ac_var in $ac_subst_files
1390      do
1391        eval ac_val=$`echo $ac_var`
1392        echo "$ac_var='"'"'$ac_val'"'"'"
1393      done | sort
1394      echo
1395    fi
1396
1397    if test -s confdefs.h; then
1398      cat <<\_ASBOX
1399## ----------- ##
1400## confdefs.h. ##
1401## ----------- ##
1402_ASBOX
1403      echo
1404      sed "/^$/d" confdefs.h | sort
1405      echo
1406    fi
1407    test "$ac_signal" != 0 &&
1408      echo "$as_me: caught signal $ac_signal"
1409    echo "$as_me: exit $exit_status"
1410  } >&5
1411  rm -f core *.core &&
1412  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1413    exit $exit_status
1414     ' 0
1415for ac_signal in 1 2 13 15; do
1416  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1417done
1418ac_signal=0
1419
1420# confdefs.h avoids OS command line length limits that DEFS can exceed.
1421rm -rf conftest* confdefs.h
1422# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1423echo >confdefs.h
1424
1425# Predefined preprocessor variables.
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_NAME "$PACKAGE_NAME"
1429_ACEOF
1430
1431
1432cat >>confdefs.h <<_ACEOF
1433#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1434_ACEOF
1435
1436
1437cat >>confdefs.h <<_ACEOF
1438#define PACKAGE_VERSION "$PACKAGE_VERSION"
1439_ACEOF
1440
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_STRING "$PACKAGE_STRING"
1444_ACEOF
1445
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1449_ACEOF
1450
1451
1452# Let the site file select an alternate cache file if it wants to.
1453# Prefer explicitly selected file to automatically selected ones.
1454if test -z "$CONFIG_SITE"; then
1455  if test "x$prefix" != xNONE; then
1456    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1457  else
1458    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459  fi
1460fi
1461for ac_site_file in $CONFIG_SITE; do
1462  if test -r "$ac_site_file"; then
1463    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1464echo "$as_me: loading site script $ac_site_file" >&6;}
1465    sed 's/^/| /' "$ac_site_file" >&5
1466    . "$ac_site_file"
1467  fi
1468done
1469
1470if test -r "$cache_file"; then
1471  # Some versions of bash will fail to source /dev/null (special
1472  # files actually), so we avoid doing that.
1473  if test -f "$cache_file"; then
1474    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1475echo "$as_me: loading cache $cache_file" >&6;}
1476    case $cache_file in
1477      [\\/]* | ?:[\\/]* ) . $cache_file;;
1478      *)                      . ./$cache_file;;
1479    esac
1480  fi
1481else
1482  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1483echo "$as_me: creating cache $cache_file" >&6;}
1484  >$cache_file
1485fi
1486
1487# Check that the precious variables saved in the cache have kept the same
1488# value.
1489ac_cache_corrupted=false
1490for ac_var in `(set) 2>&1 |
1491               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493  eval ac_new_set=\$ac_env_${ac_var}_set
1494  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495  eval ac_new_val="\$ac_env_${ac_var}_value"
1496  case $ac_old_set,$ac_new_set in
1497    set,)
1498      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500      ac_cache_corrupted=: ;;
1501    ,set)
1502      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504      ac_cache_corrupted=: ;;
1505    ,);;
1506    *)
1507      if test "x$ac_old_val" != "x$ac_new_val"; then
1508        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511echo "$as_me:   former value:  $ac_old_val" >&2;}
1512        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513echo "$as_me:   current value: $ac_new_val" >&2;}
1514        ac_cache_corrupted=:
1515      fi;;
1516  esac
1517  # Pass precious variables to config.status.
1518  if test "$ac_new_set" = set; then
1519    case $ac_new_val in
1520    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522    *) ac_arg=$ac_var=$ac_new_val ;;
1523    esac
1524    case " $ac_configure_args " in
1525      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527    esac
1528  fi
1529done
1530if $ac_cache_corrupted; then
1531  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535   { (exit 1); exit 1; }; }
1536fi
1537
1538ac_ext=c
1539ac_cpp='$CPP $CPPFLAGS'
1540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573# List one file in the package so that the configure script can test
1574# whether the package is actually there
1575
1576
1577# Where should everything be installed by default?  Here, we want it
1578# to be installed directly in 'bin', 'lib', 'include' subdirectories
1579# of the directory where configure is run.  The default would be
1580# /usr/local.
1581
1582
1583
1584# As backup, we make sure we don't loose an FLIBS if it has been set
1585# by the user
1586save_FLIBS="$FLIBS"
1587
1588# A useful makefile conditional that is always false
1589
1590
1591if false; then
1592  ALWAYS_FALSE_TRUE=
1593  ALWAYS_FALSE_FALSE='#'
1594else
1595  ALWAYS_FALSE_TRUE='#'
1596  ALWAYS_FALSE_FALSE=
1597fi
1598
1599
1600# We set the following variable so that we know later in AC_COIN_FINALIZE
1601# that we are in a project main directory
1602coin_projectdir=yes
1603
1604# Set the project's version numbers
1605
1606
1607cat >>confdefs.h <<_ACEOF
1608#define GLPK_VERSION "$PACKAGE_VERSION"
1609_ACEOF
1610
1611
1612  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1613  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1614  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1615  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1616  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1617  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1618
1619cat >>confdefs.h <<_ACEOF
1620#define GLPK_VERSION_MAJOR $coin_majorver
1621_ACEOF
1622
1623
1624cat >>confdefs.h <<_ACEOF
1625#define GLPK_VERSION_MINOR $coin_minorver
1626_ACEOF
1627
1628
1629cat >>confdefs.h <<_ACEOF
1630#define GLPK_VERSION_RELEASE $coin_releasever
1631_ACEOF
1632
1633
1634  # We use the following variable to have a string with the upper case
1635  # version of the project name
1636  COIN_PRJCT=GLPK
1637
1638  # Set the project's SVN revision number. The complicated sed expression
1639  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1640  # as a single number.
1641  # Extract the first word of "svnversion", so it can be a program name with args.
1642set dummy svnversion; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_have_svnversion+set}" = set; then
1646  echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648  if test -n "$have_svnversion"; then
1649  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654  IFS=$as_save_IFS
1655  test -z "$as_dir" && as_dir=.
1656  for ac_exec_ext in '' $ac_executable_extensions; do
1657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658    ac_cv_prog_have_svnversion="yes"
1659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660    break 2
1661  fi
1662done
1663done
1664
1665  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1666fi
1667fi
1668have_svnversion=$ac_cv_prog_have_svnversion
1669if test -n "$have_svnversion"; then
1670  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1671echo "${ECHO_T}$have_svnversion" >&6
1672else
1673  echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677  if test "x$have_svnversion" = xyes; then
1678
1679    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1680    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1681      GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1682
1683cat >>confdefs.h <<_ACEOF
1684#define GLPK_SVN_REV $GLPK_SVN_REV
1685_ACEOF
1686
1687    fi
1688  fi
1689
1690
1691
1692# Capture libtool library version, if given.
1693
1694
1695
1696
1697#############################################################################
1698#                         Standard build tool stuff                         #
1699#############################################################################
1700
1701# Get the system type
1702ac_aux_dir=
1703for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1704  if test -f $ac_dir/install-sh; then
1705    ac_aux_dir=$ac_dir
1706    ac_install_sh="$ac_aux_dir/install-sh -c"
1707    break
1708  elif test -f $ac_dir/install.sh; then
1709    ac_aux_dir=$ac_dir
1710    ac_install_sh="$ac_aux_dir/install.sh -c"
1711    break
1712  elif test -f $ac_dir/shtool; then
1713    ac_aux_dir=$ac_dir
1714    ac_install_sh="$ac_aux_dir/shtool install -c"
1715    break
1716  fi
1717done
1718if test -z "$ac_aux_dir"; then
1719  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1720echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1721   { (exit 1); exit 1; }; }
1722fi
1723ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1724ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1725ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1726
1727# Make sure we can run config.sub.
1728$ac_config_sub sun4 >/dev/null 2>&1 ||
1729  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1730echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733echo "$as_me:$LINENO: checking build system type" >&5
1734echo $ECHO_N "checking build system type... $ECHO_C" >&6
1735if test "${ac_cv_build+set}" = set; then
1736  echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738  ac_cv_build_alias=$build_alias
1739test -z "$ac_cv_build_alias" &&
1740  ac_cv_build_alias=`$ac_config_guess`
1741test -z "$ac_cv_build_alias" &&
1742  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1743echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1744   { (exit 1); exit 1; }; }
1745ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1746  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1747echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1748   { (exit 1); exit 1; }; }
1749
1750fi
1751echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1752echo "${ECHO_T}$ac_cv_build" >&6
1753build=$ac_cv_build
1754build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1755build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1756build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1757
1758
1759
1760#turn off warnings and pedantic mode since it seem to make trouble on solaris platform
1761#and we couldn't fix it anyway
1762coin_skip_warn_cflags=yes
1763
1764# Check if user wants to produce debugging code
1765
1766echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1767echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1768
1769# Check whether --enable-debug or --disable-debug was given.
1770if test "${enable_debug+set}" = set; then
1771  enableval="$enable_debug"
1772  case "${enableval}" in
1773   yes) coin_debug_compile=true
1774        if test "${enable_shared+set}" = set; then :; else
1775          enable_shared=no
1776        fi
1777        ;;
1778   no)  coin_debug_compile=false
1779        ;;
1780   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1781echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1782   { (exit 1); exit 1; }; }
1783        ;;
1784esac
1785else
1786  coin_debug_compile=false
1787fi;
1788
1789# Check whether --enable-debug-glpk or --disable-debug-glpk was given.
1790if test "${enable_debug_glpk+set}" = set; then
1791  enableval="$enable_debug_glpk"
1792  case "${enableval}" in
1793    yes) coin_debug_compile=true
1794         ;;
1795    no)  coin_debug_compile=false
1796         ;;
1797    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&5
1798echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;}
1799   { (exit 1); exit 1; }; }
1800         ;;
1801 esac
1802else
1803  :
1804fi;
1805
1806 # m4_ifvaln([Glpk],
1807
1808if test $coin_debug_compile = true; then
1809  echo "$as_me:$LINENO: result: yes" >&5
1810echo "${ECHO_T}yes" >&6
1811else
1812  echo "$as_me:$LINENO: result: no" >&5
1813echo "${ECHO_T}no" >&6
1814fi
1815
1816
1817# Check whether --with-glpk-verbosity or --without-glpk-verbosity was given.
1818if test "${with_glpk_verbosity+set}" = set; then
1819  withval="$with_glpk_verbosity"
1820  if test "$withval" = yes; then
1821                withval=1
1822              fi
1823              coin_glpk_verbosity=$withval
1824else
1825  coin_glpk_verbosity=0
1826fi;
1827
1828cat >>confdefs.h <<_ACEOF
1829#define COIN_GLPK_VERBOSITY $coin_glpk_verbosity
1830_ACEOF
1831
1832
1833
1834# Check whether --with-glpk-checklevel or --without-glpk-checklevel was given.
1835if test "${with_glpk_checklevel+set}" = set; then
1836  withval="$with_glpk_checklevel"
1837  if test "$withval" = yes; then
1838                withval=1
1839              fi
1840              coin_glpk_checklevel=$withval
1841else
1842  coin_glpk_checklevel=0
1843fi;
1844
1845cat >>confdefs.h <<_ACEOF
1846#define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel
1847_ACEOF
1848
1849
1850 # m4_ifvaln([Glpk],
1851
1852
1853
1854# Get the name of the C compiler
1855
1856
1857  # for backward compatibility
1858  # Check whether --enable-doscompile or --disable-doscompile was given.
1859if test "${enable_doscompile+set}" = set; then
1860  enableval="$enable_doscompile"
1861  enable_doscompile=$enableval
1862else
1863  enable_doscompile=no
1864fi;
1865
1866  # Check whether --enable-msvc or --disable-msvc was given.
1867if test "${enable_msvc+set}" = set; then
1868  enableval="$enable_msvc"
1869  enable_msvc=$enableval
1870else
1871  enable_msvc=no
1872     if test "$enable_doscompile" = msvc ; then
1873       enable_msvc=yes
1874     elif test "$enable_doscompile" != no ; then
1875       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1876echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1877   { (exit 1); exit 1; }; }
1878     fi
1879
1880fi;
1881
1882  if test "$enable_msvc" = yes; then
1883    case $build in
1884      *-cygwin* | *-mingw*) ;;
1885      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1886echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1887   { (exit 1); exit 1; }; } ;;
1888    esac
1889  fi
1890
1891
1892 case $build in
1893  *-mingw*)
1894    if test "${LD+set}" = set; then :; else
1895      LD=link
1896    fi
1897    ;;
1898 esac
1899 if test $enable_msvc = yes ; then
1900   if test "x${LD+set}" = xset; then :; else
1901     LD=link
1902   fi
1903 fi
1904
1905
1906# Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.
1907if test "${enable_static_standardlibs+set}" = set; then
1908  enableval="$enable_static_standardlibs"
1909  case "$enableval" in
1910     no | yes | auto ) ;;
1911     *)
1912       { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5
1913echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}
1914   { (exit 1); exit 1; }; } ;;
1915   esac
1916   use_static_standardlibs=$enableval
1917else
1918  use_static_standardlibs=no
1919fi;
1920
1921
1922
1923
1924
1925ac_ext=c
1926ac_cpp='$CPP $CPPFLAGS'
1927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930
1931
1932# For consistency, we set the C compiler to the same value of the C++
1933# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1934if test x"$CXX" != x; then
1935  case "$CXX" in
1936    clang* ) ;;
1937    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1938      if test x"$CC" = x; then
1939        CC="$CXX"
1940        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1941echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1942      fi
1943      ;;
1944  esac
1945fi
1946
1947
1948
1949
1950
1951
1952coin_has_cc=yes
1953
1954save_cflags="$CFLAGS"
1955
1956# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1957# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1958# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1959# compiler. In this case, put cc after gcc.
1960
1961case $build in
1962  *-cygwin* | *-mingw*)
1963             if test "$enable_msvc" = yes ; then
1964               comps="icl cl gcc"
1965             else
1966               comps="gcc icl cl"
1967             fi ;;
1968  *-*-solaris*)
1969             # Extract the first word of "cc", so it can be a program name with args.
1970set dummy cc; ac_word=$2
1971echo "$as_me:$LINENO: checking for $ac_word" >&5
1972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1974  echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
1976  if test -n "$sol_cc_compiler"; then
1977  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1978else
1979  ac_prog_rejected=no
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983  IFS=$as_save_IFS
1984  test -z "$as_dir" && as_dir=.
1985  for ac_exec_ext in '' $ac_executable_extensions; do
1986  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1988       ac_prog_rejected=yes
1989       continue
1990     fi
1991    ac_cv_prog_sol_cc_compiler="cc"
1992    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993    break 2
1994  fi
1995done
1996done
1997
1998if test $ac_prog_rejected = yes; then
1999  # We found a bogon in the path, so make sure we never use it.
2000  set dummy $ac_cv_prog_sol_cc_compiler
2001  shift
2002  if test $# != 0; then
2003    # We chose a different compiler from the bogus one.
2004    # However, it has the same basename, so the bogon will be chosen
2005    # first if we set sol_cc_compiler to just the basename; use the full file name.
2006    shift
2007    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2008  fi
2009fi
2010fi
2011fi
2012sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2013if test -n "$sol_cc_compiler"; then
2014  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2015echo "${ECHO_T}$sol_cc_compiler" >&6
2016else
2017  echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
2021             if test "$sol_cc_compiler" = "cc" ; then
2022               comps="cc xlc gcc pgcc icc"
2023             else
2024               comps="xlc gcc pgcc icc cc"
2025             fi
2026             ;;
2027  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2028  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2029  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2030esac
2031
2032# We delete the cached value, since the test might not have been
2033# performed with our choice of compilers earlier
2034$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2035# AC_MSG_NOTICE([C compiler candidates: $comps])
2036ac_ext=c
2037ac_cpp='$CPP $CPPFLAGS'
2038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040ac_compiler_gnu=$ac_cv_c_compiler_gnu
2041if test -n "$ac_tool_prefix"; then
2042  for ac_prog in $comps
2043  do
2044    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2045set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2046echo "$as_me:$LINENO: checking for $ac_word" >&5
2047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048if test "${ac_cv_prog_CC+set}" = set; then
2049  echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051  if test -n "$CC"; then
2052  ac_cv_prog_CC="$CC" # Let the user override the test.
2053else
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057  IFS=$as_save_IFS
2058  test -z "$as_dir" && as_dir=.
2059  for ac_exec_ext in '' $ac_executable_extensions; do
2060  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063    break 2
2064  fi
2065done
2066done
2067
2068fi
2069fi
2070CC=$ac_cv_prog_CC
2071if test -n "$CC"; then
2072  echo "$as_me:$LINENO: result: $CC" >&5
2073echo "${ECHO_T}$CC" >&6
2074else
2075  echo "$as_me:$LINENO: result: no" >&5
2076echo "${ECHO_T}no" >&6
2077fi
2078
2079    test -n "$CC" && break
2080  done
2081fi
2082if test -z "$CC"; then
2083  ac_ct_CC=$CC
2084  for ac_prog in $comps
2085do
2086  # Extract the first word of "$ac_prog", so it can be a program name with args.
2087set dummy $ac_prog; ac_word=$2
2088echo "$as_me:$LINENO: checking for $ac_word" >&5
2089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2091  echo $ECHO_N "(cached) $ECHO_C" >&6
2092else
2093  if test -n "$ac_ct_CC"; then
2094  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2095else
2096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097for as_dir in $PATH
2098do
2099  IFS=$as_save_IFS
2100  test -z "$as_dir" && as_dir=.
2101  for ac_exec_ext in '' $ac_executable_extensions; do
2102  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103    ac_cv_prog_ac_ct_CC="$ac_prog"
2104    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105    break 2
2106  fi
2107done
2108done
2109
2110fi
2111fi
2112ac_ct_CC=$ac_cv_prog_ac_ct_CC
2113if test -n "$ac_ct_CC"; then
2114  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2115echo "${ECHO_T}$ac_ct_CC" >&6
2116else
2117  echo "$as_me:$LINENO: result: no" >&5
2118echo "${ECHO_T}no" >&6
2119fi
2120
2121  test -n "$ac_ct_CC" && break
2122done
2123
2124  CC=$ac_ct_CC
2125fi
2126
2127
2128test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2129See \`config.log' for more details." >&5
2130echo "$as_me: error: no acceptable C compiler found in \$PATH
2131See \`config.log' for more details." >&2;}
2132   { (exit 1); exit 1; }; }
2133
2134# Provide some information about the compiler.
2135echo "$as_me:$LINENO:" \
2136     "checking for C compiler version" >&5
2137ac_compiler=`set X $ac_compile; echo $2`
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2139  (eval $ac_compiler --version </dev/null >&5) 2>&5
2140  ac_status=$?
2141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142  (exit $ac_status); }
2143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2144  (eval $ac_compiler -v </dev/null >&5) 2>&5
2145  ac_status=$?
2146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147  (exit $ac_status); }
2148{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2149  (eval $ac_compiler -V </dev/null >&5) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }
2153
2154cat >conftest.$ac_ext <<_ACEOF
2155/* confdefs.h.  */
2156_ACEOF
2157cat confdefs.h >>conftest.$ac_ext
2158cat >>conftest.$ac_ext <<_ACEOF
2159/* end confdefs.h.  */
2160
2161int
2162main ()
2163{
2164
2165  ;
2166  return 0;
2167}
2168_ACEOF
2169ac_clean_files_save=$ac_clean_files
2170ac_clean_files="$ac_clean_files a.out a.exe b.out"
2171# Try to create an executable without -o first, disregard a.out.
2172# It will help us diagnose broken compilers, and finding out an intuition
2173# of exeext.
2174echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2175echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2176ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2177if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2178  (eval $ac_link_default) 2>&5
2179  ac_status=$?
2180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181  (exit $ac_status); }; then
2182  # Find the output, starting from the most likely.  This scheme is
2183# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2184# resort.
2185
2186# Be careful to initialize this variable, since it used to be cached.
2187# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2188ac_cv_exeext=
2189# b.out is created by i960 compilers.
2190for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2191do
2192  test -f "$ac_file" || continue
2193  case $ac_file in
2194    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2195        ;;
2196    conftest.$ac_ext )
2197        # This is the source file.
2198        ;;
2199    [ab].out )
2200        # We found the default executable, but exeext='' is most
2201        # certainly right.
2202        break;;
2203    *.* )
2204        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205        # FIXME: I believe we export ac_cv_exeext for Libtool,
2206        # but it would be cool to find out if it's true.  Does anybody
2207        # maintain Libtool? --akim.
2208        export ac_cv_exeext
2209        break;;
2210    * )
2211        break;;
2212  esac
2213done
2214else
2215  echo "$as_me: failed program was:" >&5
2216sed 's/^/| /' conftest.$ac_ext >&5
2217
2218{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2219See \`config.log' for more details." >&5
2220echo "$as_me: error: C compiler cannot create executables
2221See \`config.log' for more details." >&2;}
2222   { (exit 77); exit 77; }; }
2223fi
2224
2225ac_exeext=$ac_cv_exeext
2226echo "$as_me:$LINENO: result: $ac_file" >&5
2227echo "${ECHO_T}$ac_file" >&6
2228
2229# Check the compiler produces executables we can run.  If not, either
2230# the compiler is broken, or we cross compile.
2231echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2232echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2233# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2234# If not cross compiling, check that we can run a simple program.
2235if test "$cross_compiling" != yes; then
2236  if { ac_try='./$ac_file'
2237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238  (eval $ac_try) 2>&5
2239  ac_status=$?
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); }; }; then
2242    cross_compiling=no
2243  else
2244    if test "$cross_compiling" = maybe; then
2245        cross_compiling=yes
2246    else
2247        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248If you meant to cross compile, use \`--host'.
2249See \`config.log' for more details." >&5
2250echo "$as_me: error: cannot run C compiled programs.
2251If you meant to cross compile, use \`--host'.
2252See \`config.log' for more details." >&2;}
2253   { (exit 1); exit 1; }; }
2254    fi
2255  fi
2256fi
2257echo "$as_me:$LINENO: result: yes" >&5
2258echo "${ECHO_T}yes" >&6
2259
2260rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261ac_clean_files=$ac_clean_files_save
2262# Check the compiler produces executables we can run.  If not, either
2263# the compiler is broken, or we cross compile.
2264echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2266echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267echo "${ECHO_T}$cross_compiling" >&6
2268
2269echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2272  (eval $ac_link) 2>&5
2273  ac_status=$?
2274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275  (exit $ac_status); }; then
2276  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2278# work properly (i.e., refer to `conftest.exe'), while it won't with
2279# `rm'.
2280for ac_file in conftest.exe conftest conftest.*; do
2281  test -f "$ac_file" || continue
2282  case $ac_file in
2283    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2284    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285          export ac_cv_exeext
2286          break;;
2287    * ) break;;
2288  esac
2289done
2290else
2291  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2292See \`config.log' for more details." >&5
2293echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&2;}
2295   { (exit 1); exit 1; }; }
2296fi
2297
2298rm -f conftest$ac_cv_exeext
2299echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2300echo "${ECHO_T}$ac_cv_exeext" >&6
2301
2302rm -f conftest.$ac_ext
2303EXEEXT=$ac_cv_exeext
2304ac_exeext=$EXEEXT
2305echo "$as_me:$LINENO: checking for suffix of object files" >&5
2306echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2307if test "${ac_cv_objext+set}" = set; then
2308  echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310  cat >conftest.$ac_ext <<_ACEOF
2311/* confdefs.h.  */
2312_ACEOF
2313cat confdefs.h >>conftest.$ac_ext
2314cat >>conftest.$ac_ext <<_ACEOF
2315/* end confdefs.h.  */
2316
2317int
2318main ()
2319{
2320
2321  ;
2322  return 0;
2323}
2324_ACEOF
2325rm -f conftest.o conftest.obj
2326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327  (eval $ac_compile) 2>&5
2328  ac_status=$?
2329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330  (exit $ac_status); }; then
2331  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2332  case $ac_file in
2333    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2334    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335       break;;
2336  esac
2337done
2338else
2339  echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343See \`config.log' for more details." >&5
2344echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345See \`config.log' for more details." >&2;}
2346   { (exit 1); exit 1; }; }
2347fi
2348
2349rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350fi
2351echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352echo "${ECHO_T}$ac_cv_objext" >&6
2353OBJEXT=$ac_cv_objext
2354ac_objext=$OBJEXT
2355echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2357if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358  echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360  cat >conftest.$ac_ext <<_ACEOF
2361/* confdefs.h.  */
2362_ACEOF
2363cat confdefs.h >>conftest.$ac_ext
2364cat >>conftest.$ac_ext <<_ACEOF
2365/* end confdefs.h.  */
2366
2367int
2368main ()
2369{
2370#ifndef __GNUC__
2371       choke me
2372#endif
2373
2374  ;
2375  return 0;
2376}
2377_ACEOF
2378rm -f conftest.$ac_objext
2379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380  (eval $ac_compile) 2>conftest.er1
2381  ac_status=$?
2382  grep -v '^ *+' conftest.er1 >conftest.err
2383  rm -f conftest.er1
2384  cat conftest.err >&5
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); } &&
2387         { ac_try='test -z "$ac_c_werror_flag"
2388                         || test ! -s conftest.err'
2389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390  (eval $ac_try) 2>&5
2391  ac_status=$?
2392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393  (exit $ac_status); }; } &&
2394         { ac_try='test -s conftest.$ac_objext'
2395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396  (eval $ac_try) 2>&5
2397  ac_status=$?
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); }; }; then
2400  ac_compiler_gnu=yes
2401else
2402  echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405ac_compiler_gnu=no
2406fi
2407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408ac_cv_c_compiler_gnu=$ac_compiler_gnu
2409
2410fi
2411echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2412echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2413GCC=`test $ac_compiler_gnu = yes && echo yes`
2414ac_test_CFLAGS=${CFLAGS+set}
2415ac_save_CFLAGS=$CFLAGS
2416CFLAGS="-g"
2417echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2419if test "${ac_cv_prog_cc_g+set}" = set; then
2420  echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422  cat >conftest.$ac_ext <<_ACEOF
2423/* confdefs.h.  */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
2427/* end confdefs.h.  */
2428
2429int
2430main ()
2431{
2432
2433  ;
2434  return 0;
2435}
2436_ACEOF
2437rm -f conftest.$ac_objext
2438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439  (eval $ac_compile) 2>conftest.er1
2440  ac_status=$?
2441  grep -v '^ *+' conftest.er1 >conftest.err
2442  rm -f conftest.er1
2443  cat conftest.err >&5
2444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445  (exit $ac_status); } &&
2446         { ac_try='test -z "$ac_c_werror_flag"
2447                         || test ! -s conftest.err'
2448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449  (eval $ac_try) 2>&5
2450  ac_status=$?
2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452  (exit $ac_status); }; } &&
2453         { ac_try='test -s conftest.$ac_objext'
2454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455  (eval $ac_try) 2>&5
2456  ac_status=$?
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); }; }; then
2459  ac_cv_prog_cc_g=yes
2460else
2461  echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464ac_cv_prog_cc_g=no
2465fi
2466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2467fi
2468echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2469echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2470if test "$ac_test_CFLAGS" = set; then
2471  CFLAGS=$ac_save_CFLAGS
2472elif test $ac_cv_prog_cc_g = yes; then
2473  if test "$GCC" = yes; then
2474    CFLAGS="-g -O2"
2475  else
2476    CFLAGS="-g"
2477  fi
2478else
2479  if test "$GCC" = yes; then
2480    CFLAGS="-O2"
2481  else
2482    CFLAGS=
2483  fi
2484fi
2485echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2486echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2487if test "${ac_cv_prog_cc_stdc+set}" = set; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  ac_cv_prog_cc_stdc=no
2491ac_save_CC=$CC
2492cat >conftest.$ac_ext <<_ACEOF
2493/* confdefs.h.  */
2494_ACEOF
2495cat confdefs.h >>conftest.$ac_ext
2496cat >>conftest.$ac_ext <<_ACEOF
2497/* end confdefs.h.  */
2498#include <stdarg.h>
2499#include <stdio.h>
2500#include <sys/types.h>
2501#include <sys/stat.h>
2502/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2503struct buf { int x; };
2504FILE * (*rcsopen) (struct buf *, struct stat *, int);
2505static char *e (p, i)
2506     char **p;
2507     int i;
2508{
2509  return p[i];
2510}
2511static char *f (char * (*g) (char **, int), char **p, ...)
2512{
2513  char *s;
2514  va_list v;
2515  va_start (v,p);
2516  s = g (p, va_arg (v,int));
2517  va_end (v);
2518  return s;
2519}
2520
2521/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2522   function prototypes and stuff, but not '\xHH' hex character constants.
2523   These don't provoke an error unfortunately, instead are silently treated
2524   as 'x'.  The following induces an error, until -std1 is added to get
2525   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2526   array size at least.  It's necessary to write '\x00'==0 to get something
2527   that's true only with -std1.  */
2528int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2529
2530int test (int i, double x);
2531struct s1 {int (*f) (int a);};
2532struct s2 {int (*f) (double a);};
2533int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2534int argc;
2535char **argv;
2536int
2537main ()
2538{
2539return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2540  ;
2541  return 0;
2542}
2543_ACEOF
2544# Don't try gcc -ansi; that turns off useful extensions and
2545# breaks some systems' header files.
2546# AIX                   -qlanglvl=ansi
2547# Ultrix and OSF/1      -std1
2548# HP-UX 10.20 and later -Ae
2549# HP-UX older versions  -Aa -D_HPUX_SOURCE
2550# SVR4                  -Xc -D__EXTENSIONS__
2551for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2552do
2553  CC="$ac_save_CC $ac_arg"
2554  rm -f conftest.$ac_objext
2555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556  (eval $ac_compile) 2>conftest.er1
2557  ac_status=$?
2558  grep -v '^ *+' conftest.er1 >conftest.err
2559  rm -f conftest.er1
2560  cat conftest.err >&5
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); } &&
2563         { ac_try='test -z "$ac_c_werror_flag"
2564                         || test ! -s conftest.err'
2565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566  (eval $ac_try) 2>&5
2567  ac_status=$?
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); }; } &&
2570         { ac_try='test -s conftest.$ac_objext'
2571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572  (eval $ac_try) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; }; then
2576  ac_cv_prog_cc_stdc=$ac_arg
2577break
2578else
2579  echo "$as_me: failed program was:" >&5
2580sed 's/^/| /' conftest.$ac_ext >&5
2581
2582fi
2583rm -f conftest.err conftest.$ac_objext
2584done
2585rm -f conftest.$ac_ext conftest.$ac_objext
2586CC=$ac_save_CC
2587
2588fi
2589
2590case "x$ac_cv_prog_cc_stdc" in
2591  x|xno)
2592    echo "$as_me:$LINENO: result: none needed" >&5
2593echo "${ECHO_T}none needed" >&6 ;;
2594  *)
2595    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2596echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2597    CC="$CC $ac_cv_prog_cc_stdc" ;;
2598esac
2599
2600# Some people use a C++ compiler to compile C.  Since we use `exit',
2601# in C++ we need to declare it.  In case someone uses the same compiler
2602# for both compiling C and C++ we need to have the C++ compiler decide
2603# the declaration of exit, since it's the most demanding environment.
2604cat >conftest.$ac_ext <<_ACEOF
2605#ifndef __cplusplus
2606  choke me
2607#endif
2608_ACEOF
2609rm -f conftest.$ac_objext
2610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611  (eval $ac_compile) 2>conftest.er1
2612  ac_status=$?
2613  grep -v '^ *+' conftest.er1 >conftest.err
2614  rm -f conftest.er1
2615  cat conftest.err >&5
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); } &&
2618         { ac_try='test -z "$ac_c_werror_flag"
2619                         || test ! -s conftest.err'
2620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621  (eval $ac_try) 2>&5
2622  ac_status=$?
2623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624  (exit $ac_status); }; } &&
2625         { ac_try='test -s conftest.$ac_objext'
2626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627  (eval $ac_try) 2>&5
2628  ac_status=$?
2629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630  (exit $ac_status); }; }; then
2631  for ac_declaration in \
2632   '' \
2633   'extern "C" void std::exit (int) throw (); using std::exit;' \
2634   'extern "C" void std::exit (int); using std::exit;' \
2635   'extern "C" void exit (int) throw ();' \
2636   'extern "C" void exit (int);' \
2637   'void exit (int);'
2638do
2639  cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h.  */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h.  */
2645$ac_declaration
2646#include <stdlib.h>
2647int
2648main ()
2649{
2650exit (42);
2651  ;
2652  return 0;
2653}
2654_ACEOF
2655rm -f conftest.$ac_objext
2656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657  (eval $ac_compile) 2>conftest.er1
2658  ac_status=$?
2659  grep -v '^ *+' conftest.er1 >conftest.err
2660  rm -f conftest.er1
2661  cat conftest.err >&5
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); } &&
2664         { ac_try='test -z "$ac_c_werror_flag"
2665                         || test ! -s conftest.err'
2666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667  (eval $ac_try) 2>&5
2668  ac_status=$?
2669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670  (exit $ac_status); }; } &&
2671         { ac_try='test -s conftest.$ac_objext'
2672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673  (eval $ac_try) 2>&5
2674  ac_status=$?
2675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); }; }; then
2677  :
2678else
2679  echo "$as_me: failed program was:" >&5
2680sed 's/^/| /' conftest.$ac_ext >&5
2681
2682continue
2683fi
2684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685  cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h.  */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h.  */
2691$ac_declaration
2692int
2693main ()
2694{
2695exit (42);
2696  ;
2697  return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
2701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702  (eval $ac_compile) 2>conftest.er1
2703  ac_status=$?
2704  grep -v '^ *+' conftest.er1 >conftest.err
2705  rm -f conftest.er1
2706  cat conftest.err >&5
2707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708  (exit $ac_status); } &&
2709         { ac_try='test -z "$ac_c_werror_flag"
2710                         || test ! -s conftest.err'
2711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712  (eval $ac_try) 2>&5
2713  ac_status=$?
2714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715  (exit $ac_status); }; } &&
2716         { ac_try='test -s conftest.$ac_objext'
2717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718  (eval $ac_try) 2>&5
2719  ac_status=$?
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); }; }; then
2722  break
2723else
2724  echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727fi
2728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729done
2730rm -f conftest*
2731if test -n "$ac_declaration"; then
2732  echo '#ifdef __cplusplus' >>confdefs.h
2733  echo $ac_declaration      >>confdefs.h
2734  echo '#endif'             >>confdefs.h
2735fi
2736
2737else
2738  echo "$as_me: failed program was:" >&5
2739sed 's/^/| /' conftest.$ac_ext >&5
2740
2741fi
2742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743ac_ext=c
2744ac_cpp='$CPP $CPPFLAGS'
2745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748
2749if test -z "$CC" ; then
2750  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2751echo "$as_me: error: Failed to find a C compiler!" >&2;}
2752   { (exit 1); exit 1; }; }
2753fi
2754# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2755case "$CC" in
2756  clang* ) ;;
2757  cl* | */cl* | CL* | */CL* )
2758    if test "$ac_cv_prog_cc_g" = yes ; then
2759      ac_cv_prog_cc_g=no
2760      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2761echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2762    fi ;;
2763  * )
2764    CYGPATH_W=echo
2765    ;;
2766esac
2767CFLAGS="$save_cflags"
2768
2769# add automake conditional so we can recognize cl compiler in makefile
2770coin_cc_is_cl=false
2771case "$CC" in
2772  clang* ) ;;
2773  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2774    coin_cc_is_cl=true
2775    ;;
2776esac
2777
2778
2779if test $coin_cc_is_cl = true; then
2780  COIN_CC_IS_CL_TRUE=
2781  COIN_CC_IS_CL_FALSE='#'
2782else
2783  COIN_CC_IS_CL_TRUE='#'
2784  COIN_CC_IS_CL_FALSE=
2785fi
2786
2787
2788# Check if a project specific CFLAGS variable has been set
2789if test x$COIN_PRJCT != x; then
2790  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2791  if test x$coin_tmp = xset; then
2792    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2793  fi
2794fi
2795
2796if test x"$CFLAGS" = x; then
2797
2798  coin_add_cflags=
2799  coin_opt_cflags=
2800  coin_dbg_cflags=
2801  coin_warn_cflags=
2802
2803  if test "$GCC" = "yes"; then
2804    case "$CC" in
2805      icc* | */icc*)
2806        ;;
2807      *)
2808        coin_opt_cflags="-O3"
2809        coin_add_cflags="-pipe"
2810        coin_dbg_cflags="-g -O0"
2811        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2812        case $build in
2813          *-darwin*)
2814            ;;
2815          *)
2816            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2817            ;;
2818        esac
2819    esac
2820  fi
2821  if test -z "$coin_opt_cflags"; then
2822    case $build in
2823      *-cygwin* | *-mingw*)
2824        case "$CC" in
2825          clang* ) ;;
2826          cl* | */cl* | CL* | */CL*)
2827            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2828              coin_opt_cflags='-MD -O2'
2829              coin_dbg_cflags='-MDd'
2830            else
2831              coin_opt_cflags='-MT -O2'
2832              coin_dbg_cflags='-MTd'
2833            fi
2834            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2835            ;;
2836          icl* | */icl* | ICL* | */ICL*)
2837            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2838              coin_opt_cflags='-MD -Ox'
2839              coin_dbg_cflags='-MDd -debug'
2840            else
2841              coin_opt_cflags='-MT -Ox'
2842              coin_dbg_cflags='-MTd -debug'
2843            fi
2844            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2845            ;;
2846        esac
2847        ;;
2848      *-linux-*)
2849        case "$CC" in
2850          icc* | */icc*)
2851            coin_opt_cflags="-O3 -ip -mp1"
2852            coin_add_cflags=""
2853            coin_dbg_cflags="-g"
2854            # Check if -i_dynamic is necessary (for new glibc library)
2855            CFLAGS=
2856            cat >conftest.$ac_ext <<_ACEOF
2857/* confdefs.h.  */
2858_ACEOF
2859cat confdefs.h >>conftest.$ac_ext
2860cat >>conftest.$ac_ext <<_ACEOF
2861/* end confdefs.h.  */
2862
2863int
2864main ()
2865{
2866int i=0; i++;
2867  ;
2868  return 0;
2869}
2870_ACEOF
2871rm -f conftest.$ac_objext conftest$ac_exeext
2872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2873  (eval $ac_link) 2>conftest.er1
2874  ac_status=$?
2875  grep -v '^ *+' conftest.er1 >conftest.err
2876  rm -f conftest.er1
2877  cat conftest.err >&5
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); } &&
2880         { ac_try='test -z "$ac_c_werror_flag"
2881                         || test ! -s conftest.err'
2882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883  (eval $ac_try) 2>&5
2884  ac_status=$?
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); }; } &&
2887         { ac_try='test -s conftest$ac_exeext'
2888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889  (eval $ac_try) 2>&5
2890  ac_status=$?
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); }; }; then
2893  :
2894else
2895  echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898coin_add_cflags="-i_dynamic $coin_add_cflags"
2899fi
2900rm -f conftest.err conftest.$ac_objext \
2901      conftest$ac_exeext conftest.$ac_ext
2902            ;;
2903          pgcc* | */pgcc*)
2904            coin_opt_cflags="-fast"
2905            coin_add_cflags="-Kieee -pc 64"
2906            coin_dbg_cflags="-g"
2907            ;;
2908        esac
2909        ;;
2910      *-ibm-*)
2911        case "$CC" in
2912          xlc* | */xlc* | mpxlc* | */mpxlc*)
2913            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2914            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2915            coin_dbg_cflags="-g"
2916          ;;
2917        esac
2918        ;;
2919      *-hp-*)
2920        coin_opt_cflags="-O"
2921        coin_add_cflags="-Ae"
2922        coin_dbg_cflags="-g"
2923        ;;
2924      *-*-solaris*)
2925        coin_opt_cflags="-xO4"
2926        coin_dbg_cflags="-g"
2927        ;;
2928      *-sgi-*)
2929        coin_opt_cflags="-O -OPT:Olimit=0"
2930        coin_dbg_cflags="-g"
2931        ;;
2932    esac
2933  fi
2934
2935  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2936    coin_dbg_cflags="-g"
2937  fi
2938
2939  if test -z "$coin_opt_cflags"; then
2940    # Try if -O option works if nothing else is set
2941    CFLAGS="-O"
2942    cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h.  */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h.  */
2948
2949int
2950main ()
2951{
2952int i=0; i++;
2953  ;
2954  return 0;
2955}
2956_ACEOF
2957rm -f conftest.$ac_objext conftest$ac_exeext
2958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2959  (eval $ac_link) 2>conftest.er1
2960  ac_status=$?
2961  grep -v '^ *+' conftest.er1 >conftest.err
2962  rm -f conftest.er1
2963  cat conftest.err >&5
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); } &&
2966         { ac_try='test -z "$ac_c_werror_flag"
2967                         || test ! -s conftest.err'
2968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969  (eval $ac_try) 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; } &&
2973         { ac_try='test -s conftest$ac_exeext'
2974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975  (eval $ac_try) 2>&5
2976  ac_status=$?
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); }; }; then
2979  coin_opt_cflags="-O"
2980else
2981  echo "$as_me: failed program was:" >&5
2982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984fi
2985rm -f conftest.err conftest.$ac_objext \
2986      conftest$ac_exeext conftest.$ac_ext
2987  fi
2988
2989  # if PM doesn't want the warning messages, take them out
2990  if test x"$coin_skip_warn_cflags" = xyes; then
2991    coin_warn_cflags=
2992  fi
2993
2994  if test x${DBG_CFLAGS+set} != xset; then
2995    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2996  fi
2997  if test x${OPT_CFLAGS+set} != xset; then
2998    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2999  fi
3000
3001  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3002  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3003
3004  if test "$coin_debug_compile" = "true"; then
3005    CFLAGS="$DBG_CFLAGS"
3006  else
3007    CFLAGS="$OPT_CFLAGS"
3008  fi
3009
3010else
3011  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3012  if test x${DBG_CFLAGS+set} != xset; then
3013    DBG_CFLAGS="$CFLAGS"
3014  fi
3015  if test x${OPT_CFLAGS+set} != xset; then
3016    OPT_CFLAGS="$CFLAGS"
3017  fi
3018fi
3019
3020# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3021
3022case "$CFLAGS" in
3023  *-mno-cygwin*)
3024    if test x${CPPFLAGS+set} != xset ; then
3025      CPPFLAGS="-mno-cygwin"
3026    else
3027      case "$CPPFLAGS" in
3028        *-mno-cygwin*)
3029          ;;
3030        *)
3031          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3032          ;;
3033      esac
3034    fi ;;
3035esac
3036
3037# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3038if test x$COIN_PRJCT != x; then
3039  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3040fi
3041
3042# Try if CFLAGS works
3043save_CFLAGS="$CFLAGS"
3044cat >conftest.$ac_ext <<_ACEOF
3045/* confdefs.h.  */
3046_ACEOF
3047cat confdefs.h >>conftest.$ac_ext
3048cat >>conftest.$ac_ext <<_ACEOF
3049/* end confdefs.h.  */
3050
3051int
3052main ()
3053{
3054int i=0; i++;
3055  ;
3056  return 0;
3057}
3058_ACEOF
3059rm -f conftest.$ac_objext conftest$ac_exeext
3060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3061  (eval $ac_link) 2>conftest.er1
3062  ac_status=$?
3063  grep -v '^ *+' conftest.er1 >conftest.err
3064  rm -f conftest.er1
3065  cat conftest.err >&5
3066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067  (exit $ac_status); } &&
3068         { ac_try='test -z "$ac_c_werror_flag"
3069                         || test ! -s conftest.err'
3070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071  (eval $ac_try) 2>&5
3072  ac_status=$?
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); }; } &&
3075         { ac_try='test -s conftest$ac_exeext'
3076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077  (eval $ac_try) 2>&5
3078  ac_status=$?
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); }; }; then
3081  :
3082else
3083  echo "$as_me: failed program was:" >&5
3084sed 's/^/| /' conftest.$ac_ext >&5
3085
3086CFLAGS=
3087fi
3088rm -f conftest.err conftest.$ac_objext \
3089      conftest$ac_exeext conftest.$ac_ext
3090if test -z "$CFLAGS"; then
3091  { 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
3092echo "$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;}
3093  CFLAGS='-O'
3094  cat >conftest.$ac_ext <<_ACEOF
3095/* confdefs.h.  */
3096_ACEOF
3097cat confdefs.h >>conftest.$ac_ext
3098cat >>conftest.$ac_ext <<_ACEOF
3099/* end confdefs.h.  */
3100
3101int
3102main ()
3103{
3104int i=0; i++;
3105  ;
3106  return 0;
3107}
3108_ACEOF
3109rm -f conftest.$ac_objext conftest$ac_exeext
3110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3111  (eval $ac_link) 2>conftest.er1
3112  ac_status=$?
3113  grep -v '^ *+' conftest.er1 >conftest.err
3114  rm -f conftest.er1
3115  cat conftest.err >&5
3116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117  (exit $ac_status); } &&
3118         { ac_try='test -z "$ac_c_werror_flag"
3119                         || test ! -s conftest.err'
3120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121  (eval $ac_try) 2>&5
3122  ac_status=$?
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); }; } &&
3125         { ac_try='test -s conftest$ac_exeext'
3126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127  (eval $ac_try) 2>&5
3128  ac_status=$?
3129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130  (exit $ac_status); }; }; then
3131  :
3132else
3133  echo "$as_me: failed program was:" >&5
3134sed 's/^/| /' conftest.$ac_ext >&5
3135
3136CFLAGS=
3137fi
3138rm -f conftest.err conftest.$ac_objext \
3139      conftest$ac_exeext conftest.$ac_ext
3140  if test -z "$CFLAGS"; then
3141    { 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
3142echo "$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;}
3143  fi
3144fi
3145
3146{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3147echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3148
3149
3150if test x"$MPICC" = x; then :; else
3151  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3152echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3153  CC="$MPICC"
3154fi
3155
3156# Correct the LD variable if we are using the MS or Intel-windows compiler
3157case "$CC" in
3158  clang* ) ;;
3159  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3160
3161 case $build in
3162  *-mingw*)
3163    if test "${LD+set}" = set; then :; else
3164      LD=link
3165    fi
3166    ;;
3167 esac
3168 if test $enable_msvc = yes ; then
3169   if test "x${LD+set}" = xset; then :; else
3170     LD=link
3171   fi
3172 fi
3173
3174    ;;
3175esac
3176
3177# check whether to add flags for static linking against standard libraries to LDFLAGS
3178if test x$use_static_standardlibs != xno ; then
3179  case $build in
3180    *-mingw*)
3181      static_standardlib_flag=-static
3182      ;;
3183    *)
3184      static_standardlib_flag=-static-libgcc
3185      ;;
3186  esac
3187  case " $LDFLAGS " in
3188    *" $static_standardlib_flag "* ) ;;
3189    *)
3190    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
3191echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
3192    coin_save_LDFLAGS="$LDFLAGS"
3193    LDFLAGS="$LDFLAGS $static_standardlib_flag"
3194    cat >conftest.$ac_ext <<_ACEOF
3195/* confdefs.h.  */
3196_ACEOF
3197cat confdefs.h >>conftest.$ac_ext
3198cat >>conftest.$ac_ext <<_ACEOF
3199/* end confdefs.h.  */
3200
3201int
3202main ()
3203{
3204int i=0;
3205  ;
3206  return 0;
3207}
3208_ACEOF
3209rm -f conftest.$ac_objext conftest$ac_exeext
3210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3211  (eval $ac_link) 2>conftest.er1
3212  ac_status=$?
3213  grep -v '^ *+' conftest.er1 >conftest.err
3214  rm -f conftest.er1
3215  cat conftest.err >&5
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); } &&
3218         { ac_try='test -z "$ac_c_werror_flag"
3219                         || test ! -s conftest.err'
3220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221  (eval $ac_try) 2>&5
3222  ac_status=$?
3223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224  (exit $ac_status); }; } &&
3225         { ac_try='test -s conftest$ac_exeext'
3226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227  (eval $ac_try) 2>&5
3228  ac_status=$?
3229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); }; }; then
3231  echo "$as_me:$LINENO: result: yes" >&5
3232echo "${ECHO_T}yes" >&6
3233else
3234  echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237echo "$as_me:$LINENO: result: no" >&5
3238echo "${ECHO_T}no" >&6
3239       LDFLAGS="$coin_save_LDFLAGS"
3240       if test $use_static_standardlibs = yes ; then
3241         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
3242echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
3243   { (exit 1); exit 1; }; }
3244       fi
3245
3246fi
3247rm -f conftest.err conftest.$ac_objext \
3248      conftest$ac_exeext conftest.$ac_ext
3249    ;;
3250  esac
3251fi
3252
3253ac_ext=c
3254ac_cpp='$CPP $CPPFLAGS'
3255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258
3259
3260
3261# Check if pkg-config is available (to setup addlibs file)
3262
3263
3264# Check whether --enable-pkg-config or --disable-pkg-config was given.
3265if test "${enable_pkg_config+set}" = set; then
3266  enableval="$enable_pkg_config"
3267  use_pkgconfig="$enableval"
3268else
3269  if test x$coin_cc_is_cl = xtrue; then
3270     use_pkgconfig=no
3271   else
3272     use_pkgconfig=yes
3273   fi
3274fi;
3275
3276if test $use_pkgconfig = yes ; then
3277  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3278    if test -n "$ac_tool_prefix"; then
3279  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3280set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3281echo "$as_me:$LINENO: checking for $ac_word" >&5
3282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3283if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3284  echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286  if test -n "$PKG_CONFIG"; then
3287  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292  IFS=$as_save_IFS
3293  test -z "$as_dir" && as_dir=.
3294  for ac_exec_ext in '' $ac_executable_extensions; do
3295  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3297    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298    break 2
3299  fi
3300done
3301done
3302
3303fi
3304fi
3305PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3306if test -n "$PKG_CONFIG"; then
3307  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3308echo "${ECHO_T}$PKG_CONFIG" >&6
3309else
3310  echo "$as_me:$LINENO: result: no" >&5
3311echo "${ECHO_T}no" >&6
3312fi
3313
3314fi
3315if test -z "$ac_cv_prog_PKG_CONFIG"; then
3316  ac_ct_PKG_CONFIG=$PKG_CONFIG
3317  # Extract the first word of "pkg-config", so it can be a program name with args.
3318set dummy pkg-config; ac_word=$2
3319echo "$as_me:$LINENO: checking for $ac_word" >&5
3320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  if test -n "$ac_ct_PKG_CONFIG"; then
3325  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  test -z "$as_dir" && as_dir=.
3332  for ac_exec_ext in '' $ac_executable_extensions; do
3333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336    break 2
3337  fi
3338done
3339done
3340
3341fi
3342fi
3343ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3344if test -n "$ac_ct_PKG_CONFIG"; then
3345  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3346echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3347else
3348  echo "$as_me:$LINENO: result: no" >&5
3349echo "${ECHO_T}no" >&6
3350fi
3351
3352  PKG_CONFIG=$ac_ct_PKG_CONFIG
3353else
3354  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3355fi
3356
3357  fi
3358  if test -n "$PKG_CONFIG"; then
3359    _pkg_min_version=0.16.0
3360    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3361echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3362    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3363      echo "$as_me:$LINENO: result: yes" >&5
3364echo "${ECHO_T}yes" >&6
3365    else
3366      echo "$as_me:$LINENO: result: no" >&5
3367echo "${ECHO_T}no" >&6
3368      PKG_CONFIG=""
3369    fi
3370  fi
3371
3372  # check if pkg-config supports the short-errors flag
3373  if test -n "$PKG_CONFIG" && \
3374    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3375    pkg_short_errors=" --short-errors "
3376  else
3377    pkg_short_errors=""
3378  fi
3379fi
3380
3381
3382
3383if test -n "$PKG_CONFIG"; then
3384  COIN_HAS_PKGCONFIG_TRUE=
3385  COIN_HAS_PKGCONFIG_FALSE='#'
3386else
3387  COIN_HAS_PKGCONFIG_TRUE='#'
3388  COIN_HAS_PKGCONFIG_FALSE=
3389fi
3390
3391
3392
3393# assemble pkg-config search path for installed projects
3394COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3395
3396# 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
3397# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3398# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3399if test "x${prefix}" = xNONE ; then
3400  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3401else
3402  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3403fi
3404
3405
3406# Check whether --with-coin-instdir or --without-coin-instdir was given.
3407if test "${with_coin_instdir+set}" = set; then
3408  withval="$with_coin_instdir"
3409  if test -d "$withval"; then : ; else
3410     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3411echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3412   { (exit 1); exit 1; }; }
3413   fi
3414   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3415
3416fi;
3417
3418
3419
3420# assemble additional pkg-config search paths for uninstalled projects
3421if test x$coin_projectdir = xyes ; then
3422  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3423  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3424  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3425  # 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)
3426  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3427  if test -e ../coin_subdirs.txt ; then
3428    for i in `cat ../coin_subdirs.txt` ; do
3429      if test -d ../$i ; then
3430        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3431      fi
3432      if test -d ../$i/pkgconfig ; then
3433        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3434      fi
3435    done
3436  fi
3437
3438  if test -e ../../coin_subdirs.txt ; then
3439    for i in `cat ../../coin_subdirs.txt` ; do
3440      if test -d ../../$i ; then
3441        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3442      fi
3443      if test -d ../../$i/pkgconfig ; then
3444        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3445      fi
3446    done
3447  fi
3448
3449
3450fi
3451
3452if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3453  { 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
3454echo "$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;}
3455fi
3456
3457
3458
3459# Initialize automake
3460{
3461
3462
3463
3464# START
3465
3466coin_disable_shared=no
3467# Test if force_shared has been set
3468if test "x" = xforce_shared; then
3469  if test x$enable_shared = xno; then
3470    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3471echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3472   { (exit 1); exit 1; }; }
3473  fi
3474  enable_shared=yes;
3475else
3476  # On Cygwin and AIX, building DLLs doesn't work
3477  case $build in
3478    *-cygwin* | *-mingw*)
3479      coin_disable_shared=yes
3480      if test x"$enable_shared" = xyes; then
3481        case "$CXX" in
3482          clang* )
3483            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3484echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3485            ;;
3486          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3487            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
3488echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
3489            ;;
3490          *)
3491            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3492echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3493            ;;
3494        esac
3495      fi
3496    ;;
3497    *-aix*)
3498      coin_disable_shared=yes
3499      platform=AIX
3500      if test x"$enable_shared" = xyes; then
3501        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
3502echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
3503      fi
3504    ;;
3505  esac
3506fi
3507if test x"$coin_disable_shared" = xyes; then
3508  if test x"$enable_shared" = xyes; then
3509    :
3510  else
3511    # we don't disable shared, because it was not selected anyway
3512    coin_disable_shared=no
3513  fi
3514  enable_shared=no
3515fi
3516# By default, we only want the shared objects to be compiled
3517# Check whether --enable-static or --disable-static was given.
3518if test "${enable_static+set}" = set; then
3519  enableval="$enable_static"
3520  p=${PACKAGE-default}
3521    case $enableval in
3522    yes) enable_static=yes ;;
3523    no) enable_static=no ;;
3524    *)
3525     enable_static=no
3526      # Look at the argument we got.  We use all the common list separators.
3527      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3528      for pkg in $enableval; do
3529        IFS="$lt_save_ifs"
3530        if test "X$pkg" = "X$p"; then
3531          enable_static=yes
3532        fi
3533      done
3534      IFS="$lt_save_ifs"
3535      ;;
3536    esac
3537else
3538  enable_static=no
3539fi;
3540
3541
3542
3543
3544# Initialize automake
3545echo "$as_me:$LINENO: checking for egrep" >&5
3546echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3547if test "${ac_cv_prog_egrep+set}" = set; then
3548  echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3551    then ac_cv_prog_egrep='grep -E'
3552    else ac_cv_prog_egrep='egrep'
3553    fi
3554fi
3555echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3556echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3557 EGREP=$ac_cv_prog_egrep
3558
3559
3560echo "$as_me:$LINENO: checking whether ln -s works" >&5
3561echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3562LN_S=$as_ln_s
3563if test "$LN_S" = "ln -s"; then
3564  echo "$as_me:$LINENO: result: yes" >&5
3565echo "${ECHO_T}yes" >&6
3566else
3567  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3568echo "${ECHO_T}no, using $LN_S" >&6
3569fi
3570
3571am__api_version="1.9"
3572# Find a good install program.  We prefer a C program (faster),
3573# so one script is as good as another.  But avoid the broken or
3574# incompatible versions:
3575# SysV /etc/install, /usr/sbin/install
3576# SunOS /usr/etc/install
3577# IRIX /sbin/install
3578# AIX /bin/install
3579# AmigaOS /C/install, which installs bootblocks on floppy discs
3580# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3581# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3582# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3583# OS/2's system install, which has a completely different semantic
3584# ./install, which can be erroneously created by make from ./install.sh.
3585echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3586echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3587if test -z "$INSTALL"; then
3588if test "${ac_cv_path_install+set}" = set; then
3589  echo $ECHO_N "(cached) $ECHO_C" >&6
3590else
3591  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH
3593do
3594  IFS=$as_save_IFS
3595  test -z "$as_dir" && as_dir=.
3596  # Account for people who put trailing slashes in PATH elements.
3597case $as_dir/ in
3598  ./ | .// | /cC/* | \
3599  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3600  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3601  /usr/ucb/* ) ;;
3602  *)
3603    # OSF1 and SCO ODT 3.0 have their own names for install.
3604    # Don't use installbsd from OSF since it installs stuff as root
3605    # by default.
3606    for ac_prog in ginstall scoinst install; do
3607      for ac_exec_ext in '' $ac_executable_extensions; do
3608        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3609          if test $ac_prog = install &&
3610            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3611            # AIX install.  It has an incompatible calling convention.
3612            :
3613          elif test $ac_prog = install &&
3614            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3615            # program-specific install script used by HP pwplus--don't use.
3616            :
3617          else
3618            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3619            break 3
3620          fi
3621        fi
3622      done
3623    done
3624    ;;
3625esac
3626done
3627
3628
3629fi
3630  if test "${ac_cv_path_install+set}" = set; then
3631    INSTALL=$ac_cv_path_install
3632  else
3633    # As a last resort, use the slow shell script.  We don't cache a
3634    # path for INSTALL within a source directory, because that will
3635    # break other packages using the cache if that directory is
3636    # removed, or if the path is relative.
3637    INSTALL=$ac_install_sh
3638  fi
3639fi
3640echo "$as_me:$LINENO: result: $INSTALL" >&5
3641echo "${ECHO_T}$INSTALL" >&6
3642
3643# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3644# It thinks the first close brace ends the variable substitution.
3645test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3646
3647test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3648
3649test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3650
3651echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3652echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3653# Just in case
3654sleep 1
3655echo timestamp > conftest.file
3656# Do `set' in a subshell so we don't clobber the current shell's
3657# arguments.  Must try -L first in case configure is actually a
3658# symlink; some systems play weird games with the mod time of symlinks
3659# (eg FreeBSD returns the mod time of the symlink's containing
3660# directory).
3661if (
3662   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3663   if test "$*" = "X"; then
3664      # -L didn't work.
3665      set X `ls -t $srcdir/configure conftest.file`
3666   fi
3667   rm -f conftest.file
3668   if test "$*" != "X $srcdir/configure conftest.file" \
3669      && test "$*" != "X conftest.file $srcdir/configure"; then
3670
3671      # If neither matched, then we have a broken ls.  This can happen
3672      # if, for instance, CONFIG_SHELL is bash and it inherits a
3673      # broken ls alias from the environment.  This has actually
3674      # happened.  Such a system could not be considered "sane".
3675      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3676alias in your environment" >&5
3677echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3678alias in your environment" >&2;}
3679   { (exit 1); exit 1; }; }
3680   fi
3681
3682   test "$2" = conftest.file
3683   )
3684then
3685   # Ok.
3686   :
3687else
3688   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3689Check your system clock" >&5
3690echo "$as_me: error: newly created file is older than distributed files!
3691Check your system clock" >&2;}
3692   { (exit 1); exit 1; }; }
3693fi
3694echo "$as_me:$LINENO: result: yes" >&5
3695echo "${ECHO_T}yes" >&6
3696test "$program_prefix" != NONE &&
3697  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3698# Use a double $ so make ignores it.
3699test "$program_suffix" != NONE &&
3700  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3701# Double any \ or $.  echo might interpret backslashes.
3702# By default was `s,x,x', remove it if useless.
3703cat <<\_ACEOF >conftest.sed
3704s/[\\$]/&&/g;s/;s,x,x,$//
3705_ACEOF
3706program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3707rm conftest.sed
3708
3709# expand $ac_aux_dir to an absolute path
3710am_aux_dir=`cd $ac_aux_dir && pwd`
3711
3712test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3713# Use eval to expand $SHELL
3714if eval "$MISSING --run true"; then
3715  am_missing_run="$MISSING --run "
3716else
3717  am_missing_run=
3718  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3719echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3720fi
3721
3722if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3723  # We used to keeping the `.' as first argument, in order to
3724  # allow $(mkdir_p) to be used without argument.  As in
3725  #   $(mkdir_p) $(somedir)
3726  # where $(somedir) is conditionally defined.  However this is wrong
3727  # for two reasons:
3728  #  1. if the package is installed by a user who cannot write `.'
3729  #     make install will fail,
3730  #  2. the above comment should most certainly read
3731  #     $(mkdir_p) $(DESTDIR)$(somedir)
3732  #     so it does not work when $(somedir) is undefined and
3733  #     $(DESTDIR) is not.
3734  #  To support the latter case, we have to write
3735  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3736  #  so the `.' trick is pointless.
3737  mkdir_p='mkdir -p --'
3738else
3739  # On NextStep and OpenStep, the `mkdir' command does not
3740  # recognize any option.  It will interpret all options as
3741  # directories to create, and then abort because `.' already
3742  # exists.
3743  for d in ./-p ./--version;
3744  do
3745    test -d $d && rmdir $d
3746  done
3747  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3748  if test -f "$ac_aux_dir/mkinstalldirs"; then
3749    mkdir_p='$(mkinstalldirs)'
3750  else
3751    mkdir_p='$(install_sh) -d'
3752  fi
3753fi
3754
3755for ac_prog in gawk mawk nawk awk
3756do
3757  # Extract the first word of "$ac_prog", so it can be a program name with args.
3758set dummy $ac_prog; ac_word=$2
3759echo "$as_me:$LINENO: checking for $ac_word" >&5
3760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761if test "${ac_cv_prog_AWK+set}" = set; then
3762  echo $ECHO_N "(cached) $ECHO_C" >&6
3763else
3764  if test -n "$AWK"; then
3765  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770  IFS=$as_save_IFS
3771  test -z "$as_dir" && as_dir=.
3772  for ac_exec_ext in '' $ac_executable_extensions; do
3773  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774    ac_cv_prog_AWK="$ac_prog"
3775    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776    break 2
3777  fi
3778done
3779done
3780
3781fi
3782fi
3783AWK=$ac_cv_prog_AWK
3784if test -n "$AWK"; then
3785  echo "$as_me:$LINENO: result: $AWK" >&5
3786echo "${ECHO_T}$AWK" >&6
3787else
3788  echo "$as_me:$LINENO: result: no" >&5
3789echo "${ECHO_T}no" >&6
3790fi
3791
3792  test -n "$AWK" && break
3793done
3794
3795echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3796echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3797set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3798if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3799  echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801  cat >conftest.make <<\_ACEOF
3802all:
3803        @echo 'ac_maketemp="$(MAKE)"'
3804_ACEOF
3805# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3806eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3807if test -n "$ac_maketemp"; then
3808  eval ac_cv_prog_make_${ac_make}_set=yes
3809else
3810  eval ac_cv_prog_make_${ac_make}_set=no
3811fi
3812rm -f conftest.make
3813fi
3814if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3815  echo "$as_me:$LINENO: result: yes" >&5
3816echo "${ECHO_T}yes" >&6
3817  SET_MAKE=
3818else
3819  echo "$as_me:$LINENO: result: no" >&5
3820echo "${ECHO_T}no" >&6
3821  SET_MAKE="MAKE=${MAKE-make}"
3822fi
3823
3824rm -rf .tst 2>/dev/null
3825mkdir .tst 2>/dev/null
3826if test -d .tst; then
3827  am__leading_dot=.
3828else
3829  am__leading_dot=_
3830fi
3831rmdir .tst 2>/dev/null
3832
3833DEPDIR="${am__leading_dot}deps"
3834
3835          ac_config_commands="$ac_config_commands depfiles"
3836
3837
3838am_make=${MAKE-make}
3839cat > confinc << 'END'
3840am__doit:
3841        @echo done
3842.PHONY: am__doit
3843END
3844# If we don't find an include directive, just comment out the code.
3845echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3846echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3847am__include="#"
3848am__quote=
3849_am_result=none
3850# First try GNU make style include.
3851echo "include confinc" > confmf
3852# We grep out `Entering directory' and `Leaving directory'
3853# messages which can occur if `w' ends up in MAKEFLAGS.
3854# In particular we don't look at `^make:' because GNU make might
3855# be invoked under some other name (usually "gmake"), in which
3856# case it prints its new name instead of `make'.
3857if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3858   am__include=include
3859   am__quote=
3860   _am_result=GNU
3861fi
3862# Now try BSD make style include.
3863if test "$am__include" = "#"; then
3864   echo '.include "confinc"' > confmf
3865   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3866      am__include=.include
3867      am__quote="\""
3868      _am_result=BSD
3869   fi
3870fi
3871
3872
3873echo "$as_me:$LINENO: result: $_am_result" >&5
3874echo "${ECHO_T}$_am_result" >&6
3875rm -f confinc confmf
3876
3877# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3878if test "${enable_dependency_tracking+set}" = set; then
3879  enableval="$enable_dependency_tracking"
3880
3881fi;
3882if test "x$enable_dependency_tracking" != xno; then
3883  am_depcomp="$ac_aux_dir/depcomp"
3884  AMDEPBACKSLASH='\'
3885fi
3886
3887
3888if test "x$enable_dependency_tracking" != xno; then
3889  AMDEP_TRUE=
3890  AMDEP_FALSE='#'
3891else
3892  AMDEP_TRUE='#'
3893  AMDEP_FALSE=
3894fi
3895
3896
3897
3898
3899
3900
3901# AC_MSG_NOTICE([Beginning automake initialisation.])
3902# Stuff for automake
3903# test to see if srcdir already configured
3904if test "`cd $srcdir && pwd`" != "`pwd`" &&
3905   test -f $srcdir/config.status; then
3906  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3907echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3908   { (exit 1); exit 1; }; }
3909fi
3910
3911# test whether we have cygpath
3912if test -z "$CYGPATH_W"; then
3913  if (cygpath --version) >/dev/null 2>/dev/null; then
3914    CYGPATH_W='cygpath -w'
3915  else
3916    CYGPATH_W=echo
3917  fi
3918fi
3919
3920
3921# Define the identity of the package.
3922 PACKAGE='thirdpartyglpk'
3923 VERSION='trunk'
3924
3925
3926cat >>confdefs.h <<_ACEOF
3927#define PACKAGE "$PACKAGE"
3928_ACEOF
3929
3930
3931cat >>confdefs.h <<_ACEOF
3932#define VERSION "$VERSION"
3933_ACEOF
3934
3935# Some tools Automake needs.
3936
3937ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3938
3939
3940AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3941
3942
3943AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3944
3945
3946AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3947
3948
3949MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3950
3951install_sh=${install_sh-"$am_aux_dir/install-sh"}
3952
3953# Installed binaries are usually stripped using `strip' when the user
3954# run `make install-strip'.  However `strip' might not be the right
3955# tool to use in cross-compilation environments, therefore Automake
3956# will honor the `STRIP' environment variable to overrule this program.
3957if test "$cross_compiling" != no; then
3958  if test -n "$ac_tool_prefix"; then
3959  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3960set dummy ${ac_tool_prefix}strip; ac_word=$2
3961echo "$as_me:$LINENO: checking for $ac_word" >&5
3962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963if test "${ac_cv_prog_STRIP+set}" = set; then
3964  echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966  if test -n "$STRIP"; then
3967  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3968else
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH
3971do
3972  IFS=$as_save_IFS
3973  test -z "$as_dir" && as_dir=.
3974  for ac_exec_ext in '' $ac_executable_extensions; do
3975  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978    break 2
3979  fi
3980done
3981done
3982
3983fi
3984fi
3985STRIP=$ac_cv_prog_STRIP
3986if test -n "$STRIP"; then
3987  echo "$as_me:$LINENO: result: $STRIP" >&5
3988echo "${ECHO_T}$STRIP" >&6
3989else
3990  echo "$as_me:$LINENO: result: no" >&5
3991echo "${ECHO_T}no" >&6
3992fi
3993
3994fi
3995if test -z "$ac_cv_prog_STRIP"; then
3996  ac_ct_STRIP=$STRIP
3997  # Extract the first word of "strip", so it can be a program name with args.
3998set dummy strip; ac_word=$2
3999echo "$as_me:$LINENO: checking for $ac_word" >&5
4000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4001if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4002  echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004  if test -n "$ac_ct_STRIP"; then
4005  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4006else
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010  IFS=$as_save_IFS
4011  test -z "$as_dir" && as_dir=.
4012  for ac_exec_ext in '' $ac_executable_extensions; do
4013  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014    ac_cv_prog_ac_ct_STRIP="strip"
4015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016    break 2
4017  fi
4018done
4019done
4020
4021  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4022fi
4023fi
4024ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4025if test -n "$ac_ct_STRIP"; then
4026  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4027echo "${ECHO_T}$ac_ct_STRIP" >&6
4028else
4029  echo "$as_me:$LINENO: result: no" >&5
4030echo "${ECHO_T}no" >&6
4031fi
4032
4033  STRIP=$ac_ct_STRIP
4034else
4035  STRIP="$ac_cv_prog_STRIP"
4036fi
4037
4038fi
4039INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4040
4041# We need awk for the "check" target.  The system "awk" is bad on
4042# some platforms.
4043# Always define AMTAR for backward compatibility.
4044
4045AMTAR=${AMTAR-"${am_missing_run}tar"}
4046
4047am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4048
4049
4050
4051
4052depcc="$CC"   am_compiler_list=
4053
4054echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4055echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4056if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4057  echo $ECHO_N "(cached) $ECHO_C" >&6
4058else
4059  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4060  # We make a subdir and do the tests there.  Otherwise we can end up
4061  # making bogus files that we don't know about and never remove.  For
4062  # instance it was reported that on HP-UX the gcc test will end up
4063  # making a dummy file named `D' -- because `-MD' means `put the output
4064  # in D'.
4065  mkdir conftest.dir
4066  # Copy depcomp to subdir because otherwise we won't find it if we're
4067  # using a relative directory.
4068  cp "$am_depcomp" conftest.dir
4069  cd conftest.dir
4070  # We will build objects and dependencies in a subdirectory because
4071  # it helps to detect inapplicable dependency modes.  For instance
4072  # both Tru64's cc and ICC support -MD to output dependencies as a
4073  # side effect of compilation, but ICC will put the dependencies in
4074  # the current directory while Tru64 will put them in the object
4075  # directory.
4076  mkdir sub
4077
4078  am_cv_CC_dependencies_compiler_type=none
4079  if test "$am_compiler_list" = ""; then
4080     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4081  fi
4082  for depmode in $am_compiler_list; do
4083    # Setup a source with many dependencies, because some compilers
4084    # like to wrap large dependency lists on column 80 (with \), and
4085    # we should not choose a depcomp mode which is confused by this.
4086    #
4087    # We need to recreate these files for each test, as the compiler may
4088    # overwrite some of them when testing with obscure command lines.
4089    # This happens at least with the AIX C compiler.
4090    : > sub/conftest.c
4091    for i in 1 2 3 4 5 6; do
4092      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4093      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4094      # Solaris 8's {/usr,}/bin/sh.
4095      touch sub/conftst$i.h
4096    done
4097    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4098
4099    case $depmode in
4100    nosideeffect)
4101      # after this tag, mechanisms are not by side-effect, so they'll
4102      # only be used when explicitly requested
4103      if test "x$enable_dependency_tracking" = xyes; then
4104        continue
4105      else
4106        break
4107      fi
4108      ;;
4109    none) break ;;
4110    esac
4111    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4112    # mode.  It turns out that the SunPro C++ compiler does not properly
4113    # handle `-M -o', and we need to detect this.
4114    if depmode=$depmode \
4115       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4116       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4117       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4118         >/dev/null 2>conftest.err &&
4119       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4120       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4121       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4122      # icc doesn't choke on unknown options, it will just issue warnings
4123      # or remarks (even with -Werror).  So we grep stderr for any message
4124      # that says an option was ignored or not supported.
4125      # When given -MP, icc 7.0 and 7.1 complain thusly:
4126      #   icc: Command line warning: ignoring option '-M'; no argument required
4127      # The diagnosis changed in icc 8.0:
4128      #   icc: Command line remark: option '-MP' not supported
4129      if (grep 'ignoring option' conftest.err ||
4130          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4131        am_cv_CC_dependencies_compiler_type=$depmode
4132        break
4133      fi
4134    fi
4135  done
4136
4137  cd ..
4138  rm -rf conftest.dir
4139else
4140  am_cv_CC_dependencies_compiler_type=none
4141fi
4142
4143fi
4144echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4145echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4146CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4147
4148
4149
4150if
4151  test "x$enable_dependency_tracking" != xno \
4152  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4153  am__fastdepCC_TRUE=
4154  am__fastdepCC_FALSE='#'
4155else
4156  am__fastdepCC_TRUE='#'
4157  am__fastdepCC_FALSE=
4158fi
4159
4160
4161
4162echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4163echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4164    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4165if test "${enable_maintainer_mode+set}" = set; then
4166  enableval="$enable_maintainer_mode"
4167  USE_MAINTAINER_MODE=$enableval
4168else
4169  USE_MAINTAINER_MODE=no
4170fi;
4171  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4172echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4173
4174
4175if test $USE_MAINTAINER_MODE = yes; then
4176  MAINTAINER_MODE_TRUE=
4177  MAINTAINER_MODE_FALSE='#'
4178else
4179  MAINTAINER_MODE_TRUE='#'
4180  MAINTAINER_MODE_FALSE=
4181fi
4182
4183  MAINT=$MAINTAINER_MODE_TRUE
4184
4185
4186
4187coin_have_externals=no
4188if test "$enable_maintainer_mode" = yes; then
4189
4190  # If maintainer mode is chosen, we make sure that the correct versions
4191  # of the tools are used, and that we know where libtool.m4 is (to
4192  # recreate acinclude.m4)
4193
4194
4195  LIBTOOLM4=
4196  # Normally, $HOME
4197  AUTOTOOLS_DFLT=$HOME
4198
4199  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4200echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4201if test "${ac_cv_use_correct_autotools+set}" = set; then
4202  echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204  ac_cv_use_correct_autotools=check
4205fi
4206echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4207echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4208
4209  if test $ac_cv_use_correct_autotools = check; then
4210    ac_cv_use_correct_autotools=yes
4211    # Check if we have autoconf
4212    # Extract the first word of "autoconf", so it can be a program name with args.
4213set dummy autoconf; ac_word=$2
4214echo "$as_me:$LINENO: checking for $ac_word" >&5
4215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216if test "${ac_cv_prog_have_autoconf+set}" = set; then
4217  echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219  if test -n "$have_autoconf"; then
4220  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4221else
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225  IFS=$as_save_IFS
4226  test -z "$as_dir" && as_dir=.
4227  for ac_exec_ext in '' $ac_executable_extensions; do
4228  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229    ac_cv_prog_have_autoconf="yes"
4230    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231    break 2
4232  fi
4233done
4234done
4235
4236  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4237fi
4238fi
4239have_autoconf=$ac_cv_prog_have_autoconf
4240if test -n "$have_autoconf"; then
4241  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4242echo "${ECHO_T}$have_autoconf" >&6
4243else
4244  echo "$as_me:$LINENO: result: no" >&5
4245echo "${ECHO_T}no" >&6
4246fi
4247
4248    if test $have_autoconf = no; then
4249      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4250echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4251   { (exit 1); exit 1; }; }
4252    fi
4253
4254    # Check whether autoconf is the correct version
4255    correct_version='2.59'
4256    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4257    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4258echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4259    autoconf --version > confauto.out 2>&1
4260    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4261      echo "$as_me:$LINENO: result: yes" >&5
4262echo "${ECHO_T}yes" >&6
4263    else
4264      rm -f confauto.out
4265      echo "$as_me:$LINENO: result: no" >&5
4266echo "${ECHO_T}no" >&6
4267      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4268echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4269   { (exit 1); exit 1; }; }
4270    fi
4271    rm -f confauto.out
4272
4273    # Check if the executable autoconf is picked up from the correct location
4274    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4275echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4276    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4277    autoconf_dir=`cd $autoconf_dir; pwd`
4278    if test x$AUTOTOOLS_DIR = x; then
4279      want_dir=$AUTOTOOLS_DFLT/bin
4280    else
4281      want_dir=$AUTOTOOLS_DIR/bin
4282    fi
4283    if test $autoconf_dir = `cd $want_dir; pwd`; then
4284      echo "$as_me:$LINENO: result: yes" >&5
4285echo "${ECHO_T}yes" >&6
4286    else
4287      rm -f confauto.out
4288      echo "$as_me:$LINENO: result: no" >&5
4289echo "${ECHO_T}no" >&6
4290      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4291echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4292   { (exit 1); exit 1; }; }
4293    fi
4294
4295    # Check if we have automake
4296    # Extract the first word of "automake", so it can be a program name with args.
4297set dummy automake; ac_word=$2
4298echo "$as_me:$LINENO: checking for $ac_word" >&5
4299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4300if test "${ac_cv_prog_have_automake+set}" = set; then
4301  echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
4303  if test -n "$have_automake"; then
4304  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4305else
4306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307for as_dir in $PATH
4308do
4309  IFS=$as_save_IFS
4310  test -z "$as_dir" && as_dir=.
4311  for ac_exec_ext in '' $ac_executable_extensions; do
4312  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313    ac_cv_prog_have_automake="yes"
4314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315    break 2
4316  fi
4317done
4318done
4319
4320  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4321fi
4322fi
4323have_automake=$ac_cv_prog_have_automake
4324if test -n "$have_automake"; then
4325  echo "$as_me:$LINENO: result: $have_automake" >&5
4326echo "${ECHO_T}$have_automake" >&6
4327else
4328  echo "$as_me:$LINENO: result: no" >&5
4329echo "${ECHO_T}no" >&6
4330fi
4331
4332    if test $have_automake = no; then
4333      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4334echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4335   { (exit 1); exit 1; }; }
4336    fi
4337
4338    # Check whether automake is the correct version
4339    correct_version='1.9.6'
4340    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4341    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4342echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4343    automake --version > confauto.out 2>&1
4344    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4345      echo "$as_me:$LINENO: result: yes" >&5
4346echo "${ECHO_T}yes" >&6
4347    else
4348      rm -f confauto.out
4349      echo "$as_me:$LINENO: result: no" >&5
4350echo "${ECHO_T}no" >&6
4351      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4352echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4353   { (exit 1); exit 1; }; }
4354    fi
4355    rm -f confauto.out
4356
4357    # Check if the executable automake is picked up from the correct location
4358    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4359echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4360    automake_dir=`which automake | sed -e 's=/automake=='`
4361    automake_dir=`cd $automake_dir; pwd`
4362    if test x$AUTOTOOLS_DIR = x; then
4363      want_dir=$AUTOTOOLS_DFLT/bin
4364    else
4365      want_dir=$AUTOTOOLS_DIR/bin
4366    fi
4367    if test $automake_dir = `cd $want_dir; pwd`; then
4368      echo "$as_me:$LINENO: result: yes" >&5
4369echo "${ECHO_T}yes" >&6
4370    else
4371      rm -f confauto.out
4372      echo "$as_me:$LINENO: result: no" >&5
4373echo "${ECHO_T}no" >&6
4374      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4375echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4376   { (exit 1); exit 1; }; }
4377    fi
4378
4379    # Check if this is the correct version of libtool (with escaped dots)
4380    if test x$AUTOTOOLS_DIR = x; then
4381      want_dir=$AUTOTOOLS_DFLT/share
4382    else
4383      want_dir=$AUTOTOOLS_DIR/share
4384    fi
4385    correct_version='1.5.22'
4386    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4387    if test -r $want_dir/libtool/ltmain.sh; then
4388  have_ltmain=yes
4389  :
4390else
4391  have_ltmain=no
4392  :
4393fi
4394
4395    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4396echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4397    if test $have_ltmain = yes; then
4398    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4399        echo "$as_me:$LINENO: result: yes" >&5
4400echo "${ECHO_T}yes" >&6
4401      else
4402        echo "$as_me:$LINENO: result: no" >&5
4403echo "${ECHO_T}no" >&6
4404        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4405echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4406   { (exit 1); exit 1; }; }
4407      fi
4408    else
4409      echo "$as_me:$LINENO: result: no" >&5
4410echo "${ECHO_T}no" >&6
4411      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4412echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4413   { (exit 1); exit 1; }; }
4414    fi
4415  fi
4416
4417  # Check if we can find the libtool file
4418  if test x$AUTOTOOLS_DIR = x; then
4419    want_dir=$AUTOTOOLS_DFLT/share
4420  else
4421    want_dir=$AUTOTOOLS_DIR/share
4422  fi
4423  if test -r $want_dir/aclocal/libtool.m4; then
4424  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4425  :
4426else
4427  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4428echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4429   { (exit 1); exit 1; }; }
4430  :
4431fi
4432
4433
4434  # Check if we have an Dependencies file
4435  if test -r $srcdir/Dependencies; then
4436    coin_have_externals=yes
4437  fi
4438  # Check if subversion is installed and understands https
4439  # Extract the first word of "svn", so it can be a program name with args.
4440set dummy svn; ac_word=$2
4441echo "$as_me:$LINENO: checking for $ac_word" >&5
4442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4443if test "${ac_cv_prog_have_svn+set}" = set; then
4444  echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446  if test -n "$have_svn"; then
4447  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4448else
4449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH
4451do
4452  IFS=$as_save_IFS
4453  test -z "$as_dir" && as_dir=.
4454  for ac_exec_ext in '' $ac_executable_extensions; do
4455  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456    ac_cv_prog_have_svn="yes"
4457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458    break 2
4459  fi
4460done
4461done
4462
4463  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4464fi
4465fi
4466have_svn=$ac_cv_prog_have_svn
4467if test -n "$have_svn"; then
4468  echo "$as_me:$LINENO: result: $have_svn" >&5
4469echo "${ECHO_T}$have_svn" >&6
4470else
4471  echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6
4473fi
4474
4475  if test x$have_svn = xyes; then
4476    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4477echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4478if test "${ac_cv_svn_understands_https+set}" = set; then
4479  echo $ECHO_N "(cached) $ECHO_C" >&6
4480else
4481  svn --version > confauto.out 2>&1
4482                    if $EGREP https confauto.out >/dev/null 2>&1; then
4483                      ac_cv_svn_understands_https=yes
4484                    else
4485                      ac_cv_svn_understands_https=no
4486                      have_svn=no
4487                      ac_cv_prog_have_svn=no
4488                    fi
4489                    rm -f confauto.out
4490fi
4491echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4492echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4493  fi
4494
4495  # Find the location of the BuildTools directory
4496  BUILDTOOLSDIR=
4497  if test -r $srcdir/BuildTools/coin.m4; then
4498    BUILDTOOLSDIR=$srcdir/BuildTools
4499  else
4500    if test -r $srcdir/../BuildTools/coin.m4; then
4501      BUILDTOOLSDIR=$srcdir/../BuildTools
4502    else
4503      if test -r $srcdir/../../BuildTools/coin.m4; then
4504        BUILDTOOLSDIR=$srcdir/../../BuildTools
4505      else
4506        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4507echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4508   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4509      fi
4510    fi
4511  fi
4512
4513
4514  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4515  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4516    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4517  fi
4518
4519  # The following variable is set to the name of the directory where
4520  # the autotool scripts are located
4521
4522  AUX_DIR=$ac_aux_dir
4523fi
4524
4525# helpful variable for the base directory of this package
4526abs_source_dir=`cd $srcdir; pwd`
4527
4528
4529# Stuff for example Makefiles
4530if test x$prefix = xNONE; then
4531  full_prefix=$ac_default_prefix
4532else
4533  full_prefix=$prefix
4534fi
4535full_prefix=`cd $full_prefix ; pwd`
4536
4537abs_lib_dir=$full_prefix/lib
4538
4539abs_include_dir=$full_prefix/include
4540
4541abs_bin_dir=$full_prefix/bin
4542
4543
4544
4545if test $coin_have_externals = yes && test x$have_svn = xyes; then
4546  HAVE_EXTERNALS_TRUE=
4547  HAVE_EXTERNALS_FALSE='#'
4548else
4549  HAVE_EXTERNALS_TRUE='#'
4550  HAVE_EXTERNALS_FALSE=
4551fi
4552
4553
4554# AC_MSG_NOTICE([End automake initialisation.])
4555
4556
4557
4558LIBTOOL=
4559if test -r ../libtool; then
4560  coin_config_dir=..
4561  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4562fi
4563if test "x$LIBTOOL" = x; then
4564  if test -r ../../libtool; then
4565    coin_config_dir=../..
4566    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4567  fi
4568fi
4569
4570if test "x$LIBTOOL" = x; then
4571# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4572  # Stuff for libtool
4573  # Check whether --enable-shared or --disable-shared was given.
4574if test "${enable_shared+set}" = set; then
4575  enableval="$enable_shared"
4576  p=${PACKAGE-default}
4577    case $enableval in
4578    yes) enable_shared=yes ;;
4579    no) enable_shared=no ;;
4580    *)
4581      enable_shared=no
4582      # Look at the argument we got.  We use all the common list separators.
4583      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4584      for pkg in $enableval; do
4585        IFS="$lt_save_ifs"
4586        if test "X$pkg" = "X$p"; then
4587          enable_shared=yes
4588        fi
4589      done
4590      IFS="$lt_save_ifs"
4591      ;;
4592    esac
4593else
4594  enable_shared=yes
4595fi;
4596
4597# Check whether --enable-fast-install or --disable-fast-install was given.
4598if test "${enable_fast_install+set}" = set; then
4599  enableval="$enable_fast_install"
4600  p=${PACKAGE-default}
4601    case $enableval in
4602    yes) enable_fast_install=yes ;;
4603    no) enable_fast_install=no ;;
4604    *)
4605      enable_fast_install=no
4606      # Look at the argument we got.  We use all the common list separators.
4607      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4608      for pkg in $enableval; do
4609        IFS="$lt_save_ifs"
4610        if test "X$pkg" = "X$p"; then
4611          enable_fast_install=yes
4612        fi
4613      done
4614      IFS="$lt_save_ifs"
4615      ;;
4616    esac
4617else
4618  enable_fast_install=yes
4619fi;
4620
4621echo "$as_me:$LINENO: checking host system type" >&5
4622echo $ECHO_N "checking host system type... $ECHO_C" >&6
4623if test "${ac_cv_host+set}" = set; then
4624  echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626  ac_cv_host_alias=$host_alias
4627test -z "$ac_cv_host_alias" &&
4628  ac_cv_host_alias=$ac_cv_build_alias
4629ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4630  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4631echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4632   { (exit 1); exit 1; }; }
4633
4634fi
4635echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4636echo "${ECHO_T}$ac_cv_host" >&6
4637host=$ac_cv_host
4638host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4639host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4640host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4641
4642
4643echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4644echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4645if test "${lt_cv_path_SED+set}" = set; then
4646  echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648  # Loop through the user's path and test for sed and gsed.
4649# Then use that list of sed's as ones to test for truncation.
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653  IFS=$as_save_IFS
4654  test -z "$as_dir" && as_dir=.
4655  for lt_ac_prog in sed gsed; do
4656    for ac_exec_ext in '' $ac_executable_extensions; do
4657      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4658        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4659      fi
4660    done
4661  done
4662done
4663lt_ac_max=0
4664lt_ac_count=0
4665# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4666# along with /bin/sed that truncates output.
4667for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4668  test ! -f $lt_ac_sed && continue
4669  cat /dev/null > conftest.in
4670  lt_ac_count=0
4671  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4672  # Check for GNU sed and select it if it is found.
4673  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4674    lt_cv_path_SED=$lt_ac_sed
4675    break
4676  fi
4677  while true; do
4678    cat conftest.in conftest.in >conftest.tmp
4679    mv conftest.tmp conftest.in
4680    cp conftest.in conftest.nl
4681    echo >>conftest.nl
4682    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4683    cmp -s conftest.out conftest.nl || break
4684    # 10000 chars as input seems more than enough
4685    test $lt_ac_count -gt 10 && break
4686    lt_ac_count=`expr $lt_ac_count + 1`
4687    if test $lt_ac_count -gt $lt_ac_max; then
4688      lt_ac_max=$lt_ac_count
4689      lt_cv_path_SED=$lt_ac_sed
4690    fi
4691  done
4692done
4693
4694fi
4695
4696SED=$lt_cv_path_SED
4697echo "$as_me:$LINENO: result: $SED" >&5
4698echo "${ECHO_T}$SED" >&6
4699
4700
4701# Check whether --with-gnu-ld or --without-gnu-ld was given.
4702if test "${with_gnu_ld+set}" = set; then
4703  withval="$with_gnu_ld"
4704  test "$withval" = no || with_gnu_ld=yes
4705else
4706  with_gnu_ld=no
4707fi;
4708ac_prog=ld
4709if test "$GCC" = yes; then
4710  # Check if gcc -print-prog-name=ld gives a path.
4711  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4712echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4713  case $host in
4714  *-*-mingw*)
4715    # gcc leaves a trailing carriage return which upsets mingw
4716    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4717  *)
4718    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4719  esac
4720  case $ac_prog in
4721    # Accept absolute paths.
4722    [\\/]* | ?:[\\/]*)
4723      re_direlt='/[^/][^/]*/\.\./'
4724      # Canonicalize the pathname of ld
4725      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4726      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4727        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4728      done
4729      test -z "$LD" && LD="$ac_prog"
4730      ;;
4731  "")
4732    # If it fails, then pretend we aren't using GCC.
4733    ac_prog=ld
4734    ;;
4735  *)
4736    # If it is relative, then search for the first ld in PATH.
4737    with_gnu_ld=unknown
4738    ;;
4739  esac
4740elif test "$with_gnu_ld" = yes; then
4741  echo "$as_me:$LINENO: checking for GNU ld" >&5
4742echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4743else
4744  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4745echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4746fi
4747if test "${lt_cv_path_LD+set}" = set; then
4748  echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750  if test -z "$LD"; then
4751  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4752  for ac_dir in $PATH; do
4753    IFS="$lt_save_ifs"
4754    test -z "$ac_dir" && ac_dir=.
4755    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4756      lt_cv_path_LD="$ac_dir/$ac_prog"
4757      # Check to see if the program is GNU ld.  I'd rather use --version,
4758      # but apparently some variants of GNU ld only accept -v.
4759      # Break only if it was the GNU/non-GNU ld that we prefer.
4760      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4761      *GNU* | *'with BFD'*)
4762        test "$with_gnu_ld" != no && break
4763        ;;
4764      *)
4765        test "$with_gnu_ld" != yes && break
4766        ;;
4767      esac
4768    fi
4769  done
4770  IFS="$lt_save_ifs"
4771else
4772  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4773fi
4774fi
4775
4776LD="$lt_cv_path_LD"
4777if test -n "$LD"; then
4778  echo "$as_me:$LINENO: result: $LD" >&5
4779echo "${ECHO_T}$LD" >&6
4780else
4781  echo "$as_me:$LINENO: result: no" >&5
4782echo "${ECHO_T}no" >&6
4783fi
4784test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4785echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4786   { (exit 1); exit 1; }; }
4787echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4788echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4789if test "${lt_cv_prog_gnu_ld+set}" = set; then
4790  echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4793case `$LD -v 2>&1 </dev/null` in
4794*GNU* | *'with BFD'*)
4795  lt_cv_prog_gnu_ld=yes
4796  ;;
4797*)
4798  lt_cv_prog_gnu_ld=no
4799  ;;
4800esac
4801fi
4802echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4803echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4804with_gnu_ld=$lt_cv_prog_gnu_ld
4805
4806
4807echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4808echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4809if test "${lt_cv_ld_reload_flag+set}" = set; then
4810  echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812  lt_cv_ld_reload_flag='-r'
4813fi
4814echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4815echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4816reload_flag=$lt_cv_ld_reload_flag
4817case $reload_flag in
4818"" | " "*) ;;
4819*) reload_flag=" $reload_flag" ;;
4820esac
4821reload_cmds='$LD$reload_flag -o $output$reload_objs'
4822case $host_os in
4823  darwin*)
4824    if test "$GCC" = yes; then
4825      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4826    else
4827      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4828    fi
4829    ;;
4830esac
4831
4832echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4833echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4834if test "${lt_cv_path_NM+set}" = set; then
4835  echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
4837  if test -n "$NM"; then
4838  # Let the user override the test.
4839  lt_cv_path_NM="$NM"
4840else
4841  lt_nm_to_check="${ac_tool_prefix}nm"
4842  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4843    lt_nm_to_check="$lt_nm_to_check nm"
4844  fi
4845  for lt_tmp_nm in $lt_nm_to_check; do
4846    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4847    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4848      IFS="$lt_save_ifs"
4849      test -z "$ac_dir" && ac_dir=.
4850      tmp_nm="$ac_dir/$lt_tmp_nm"
4851      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4852        # Check to see if the nm accepts a BSD-compat flag.
4853        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4854        #   nm: unknown option "B" ignored
4855        # Tru64's nm complains that /dev/null is an invalid object file
4856        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4857        */dev/null* | *'Invalid file or object type'*)
4858          lt_cv_path_NM="$tmp_nm -B"
4859          break
4860          ;;
4861        *)
4862          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4863          */dev/null*)
4864            lt_cv_path_NM="$tmp_nm -p"
4865            break
4866            ;;
4867          *)
4868            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4869            continue # so that we can try to find one that supports BSD flags
4870            ;;
4871          esac
4872          ;;
4873        esac
4874      fi
4875    done
4876    IFS="$lt_save_ifs"
4877  done
4878  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4879fi
4880fi
4881echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4882echo "${ECHO_T}$lt_cv_path_NM" >&6
4883NM="$lt_cv_path_NM"
4884
4885echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4886echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4887if test "${lt_cv_deplibs_check_method+set}" = set; then
4888  echo $ECHO_N "(cached) $ECHO_C" >&6
4889else
4890  lt_cv_file_magic_cmd='$MAGIC_CMD'
4891lt_cv_file_magic_test_file=
4892lt_cv_deplibs_check_method='unknown'
4893# Need to set the preceding variable on all platforms that support
4894# interlibrary dependencies.
4895# 'none' -- dependencies not supported.
4896# `unknown' -- same as none, but documents that we really don't know.
4897# 'pass_all' -- all dependencies passed with no checks.
4898# 'test_compile' -- check by making test program.
4899# 'file_magic [[regex]]' -- check by looking for files in library path
4900# which responds to the $file_magic_cmd with a given extended regex.
4901# If you have `file' or equivalent on your system and you're not sure
4902# whether `pass_all' will *always* work, you probably want this one.
4903
4904case $host_os in
4905aix4* | aix5*)
4906  lt_cv_deplibs_check_method=pass_all
4907  ;;
4908
4909beos*)
4910  lt_cv_deplibs_check_method=pass_all
4911  ;;
4912
4913bsdi[45]*)
4914  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4915  lt_cv_file_magic_cmd='/usr/bin/file -L'
4916  lt_cv_file_magic_test_file=/shlib/libc.so
4917  ;;
4918
4919cygwin*)
4920  # func_win32_libid is a shell function defined in ltmain.sh
4921  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4922  lt_cv_file_magic_cmd='func_win32_libid'
4923  ;;
4924
4925mingw* | pw32*)
4926  # Base MSYS/MinGW do not provide the 'file' command needed by
4927  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4928  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4929  lt_cv_file_magic_cmd='$OBJDUMP -f'
4930  ;;
4931
4932darwin* | rhapsody*)
4933  lt_cv_deplibs_check_method=pass_all
4934  ;;
4935
4936freebsd* | kfreebsd*-gnu | dragonfly*)
4937  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4938    case $host_cpu in
4939    i*86 )
4940      # Not sure whether the presence of OpenBSD here was a mistake.
4941      # Let's accept both of them until this is cleared up.
4942      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4943      lt_cv_file_magic_cmd=/usr/bin/file
4944      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4945      ;;
4946    esac
4947  else
4948    lt_cv_deplibs_check_method=pass_all
4949  fi
4950  ;;
4951
4952gnu*)
4953  lt_cv_deplibs_check_method=pass_all
4954  ;;
4955
4956hpux10.20* | hpux11*)
4957  lt_cv_file_magic_cmd=/usr/bin/file
4958  case $host_cpu in
4959  ia64*)
4960    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4961    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4962    ;;
4963  hppa*64*)
4964    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]'
4965    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4966    ;;
4967  *)
4968    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4969    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4970    ;;
4971  esac
4972  ;;
4973
4974interix3*)
4975  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4976  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4977  ;;
4978
4979irix5* | irix6* | nonstopux*)
4980  case $LD in
4981  *-32|*"-32 ") libmagic=32-bit;;
4982  *-n32|*"-n32 ") libmagic=N32;;
4983  *-64|*"-64 ") libmagic=64-bit;;
4984  *) libmagic=never-match;;
4985  esac
4986  lt_cv_deplibs_check_method=pass_all
4987  ;;
4988
4989# This must be Linux ELF.
4990linux*)
4991  lt_cv_deplibs_check_method=pass_all
4992  ;;
4993
4994netbsd*)
4995  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4996    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4997  else
4998    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4999  fi
5000  ;;
5001
5002newos6*)
5003  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5004  lt_cv_file_magic_cmd=/usr/bin/file
5005  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5006  ;;
5007
5008nto-qnx*)
5009  lt_cv_deplibs_check_method=unknown
5010  ;;
5011
5012openbsd*)
5013  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5014    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5015  else
5016    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5017  fi
5018  ;;
5019
5020osf3* | osf4* | osf5*)
5021  lt_cv_deplibs_check_method=pass_all
5022  ;;
5023
5024solaris*)
5025  lt_cv_deplibs_check_method=pass_all
5026  ;;
5027
5028sysv4 | sysv4.3*)
5029  case $host_vendor in
5030  motorola)
5031    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]'
5032    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5033    ;;
5034  ncr)
5035    lt_cv_deplibs_check_method=pass_all
5036    ;;
5037  sequent)
5038    lt_cv_file_magic_cmd='/bin/file'
5039    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5040    ;;
5041  sni)
5042    lt_cv_file_magic_cmd='/bin/file'
5043    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5044    lt_cv_file_magic_test_file=/lib/libc.so
5045    ;;
5046  siemens)
5047    lt_cv_deplibs_check_method=pass_all
5048    ;;
5049  pc)
5050    lt_cv_deplibs_check_method=pass_all
5051    ;;
5052  esac
5053  ;;
5054
5055sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5056  lt_cv_deplibs_check_method=pass_all
5057  ;;
5058esac
5059
5060fi
5061echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5062echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5063file_magic_cmd=$lt_cv_file_magic_cmd
5064deplibs_check_method=$lt_cv_deplibs_check_method
5065test -z "$deplibs_check_method" && deplibs_check_method=unknown
5066
5067
5068
5069
5070# If no C compiler was specified, use CC.
5071LTCC=${LTCC-"$CC"}
5072
5073# If no C compiler flags were specified, use CFLAGS.
5074LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5075
5076# Allow CC to be a program name with arguments.
5077compiler=$CC
5078
5079# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5080if test "${enable_libtool_lock+set}" = set; then
5081  enableval="$enable_libtool_lock"
5082
5083fi;
5084test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5085
5086# Some flags need to be propagated to the compiler or linker for good
5087# libtool support.
5088case $host in
5089ia64-*-hpux*)
5090  # Find out which ABI we are using.
5091  echo 'int i;' > conftest.$ac_ext
5092  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5093  (eval $ac_compile) 2>&5
5094  ac_status=$?
5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096  (exit $ac_status); }; then
5097    case `/usr/bin/file conftest.$ac_objext` in
5098    *ELF-32*)
5099      HPUX_IA64_MODE="32"
5100      ;;
5101    *ELF-64*)
5102      HPUX_IA64_MODE="64"
5103      ;;
5104    esac
5105  fi
5106  rm -rf conftest*
5107  ;;
5108*-*-irix6*)
5109  # Find out which ABI we are using.
5110  echo '#line 5110 "configure"' > conftest.$ac_ext
5111  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112  (eval $ac_compile) 2>&5
5113  ac_status=$?
5114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115  (exit $ac_status); }; then
5116   if test "$lt_cv_prog_gnu_ld" = yes; then
5117    case `/usr/bin/file conftest.$ac_objext` in
5118    *32-bit*)
5119      LD="${LD-ld} -melf32bsmip"
5120      ;;
5121    *N32*)
5122      LD="${LD-ld} -melf32bmipn32"
5123      ;;
5124    *64-bit*)
5125      LD="${LD-ld} -melf64bmip"
5126      ;;
5127    esac
5128   else
5129    case `/usr/bin/file conftest.$ac_objext` in
5130    *32-bit*)
5131      LD="${LD-ld} -32"
5132      ;;
5133    *N32*)
5134      LD="${LD-ld} -n32"
5135      ;;
5136    *64-bit*)
5137      LD="${LD-ld} -64"
5138      ;;
5139    esac
5140   fi
5141  fi
5142  rm -rf conftest*
5143  ;;
5144
5145x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5146  # Find out which ABI we are using.
5147  echo 'int i;' > conftest.$ac_ext
5148  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149  (eval $ac_compile) 2>&5
5150  ac_status=$?
5151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152  (exit $ac_status); }; then
5153    case `/usr/bin/file conftest.o` in
5154    *32-bit*)
5155      case $host in
5156        x86_64-*linux*)
5157          LD="${LD-ld} -m elf_i386"
5158          ;;
5159        ppc64-*linux*|powerpc64-*linux*)
5160          LD="${LD-ld} -m elf32ppclinux"
5161          ;;
5162        s390x-*linux*)
5163          LD="${LD-ld} -m elf_s390"
5164          ;;
5165        sparc64-*linux*)
5166          LD="${LD-ld} -m elf32_sparc"
5167          ;;
5168      esac
5169      ;;
5170    *64-bit*)
5171      case $host in
5172        x86_64-*linux*)
5173          LD="${LD-ld} -m elf_x86_64"
5174          ;;
5175        ppc*-*linux*|powerpc*-*linux*)
5176          LD="${LD-ld} -m elf64ppc"
5177          ;;
5178        s390*-*linux*)
5179          LD="${LD-ld} -m elf64_s390"
5180          ;;
5181        sparc*-*linux*)
5182          LD="${LD-ld} -m elf64_sparc"
5183          ;;
5184      esac
5185      ;;
5186    esac
5187  fi
5188  rm -rf conftest*
5189  ;;
5190
5191*-*-sco3.2v5*)
5192  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5193  SAVE_CFLAGS="$CFLAGS"
5194  CFLAGS="$CFLAGS -belf"
5195  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5196echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5197if test "${lt_cv_cc_needs_belf+set}" = set; then
5198  echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200  ac_ext=c
5201ac_cpp='$CPP $CPPFLAGS'
5202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5204ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205
5206     cat >conftest.$ac_ext <<_ACEOF
5207/* confdefs.h.  */
5208_ACEOF
5209cat confdefs.h >>conftest.$ac_ext
5210cat >>conftest.$ac_ext <<_ACEOF
5211/* end confdefs.h.  */
5212
5213int
5214main ()
5215{
5216
5217  ;
5218  return 0;
5219}
5220_ACEOF
5221rm -f conftest.$ac_objext conftest$ac_exeext
5222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5223  (eval $ac_link) 2>conftest.er1
5224  ac_status=$?
5225  grep -v '^ *+' conftest.er1 >conftest.err
5226  rm -f conftest.er1
5227  cat conftest.err >&5
5228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229  (exit $ac_status); } &&
5230         { ac_try='test -z "$ac_c_werror_flag"
5231                         || test ! -s conftest.err'
5232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233  (eval $ac_try) 2>&5
5234  ac_status=$?
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); }; } &&
5237         { ac_try='test -s conftest$ac_exeext'
5238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239  (eval $ac_try) 2>&5
5240  ac_status=$?
5241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242  (exit $ac_status); }; }; then
5243  lt_cv_cc_needs_belf=yes
5244else
5245  echo "$as_me: failed program was:" >&5
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
5248lt_cv_cc_needs_belf=no
5249fi
5250rm -f conftest.err conftest.$ac_objext \
5251      conftest$ac_exeext conftest.$ac_ext
5252     ac_ext=c
5253ac_cpp='$CPP $CPPFLAGS'
5254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257
5258fi
5259echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5260echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5261  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5262    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5263    CFLAGS="$SAVE_CFLAGS"
5264  fi
5265  ;;
5266sparc*-*solaris*)
5267  # Find out which ABI we are using.
5268  echo 'int i;' > conftest.$ac_ext
5269  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270  (eval $ac_compile) 2>&5
5271  ac_status=$?
5272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273  (exit $ac_status); }; then
5274    case `/usr/bin/file conftest.o` in
5275    *64-bit*)
5276      case $lt_cv_prog_gnu_ld in
5277      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5278      *)    LD="${LD-ld} -64" ;;
5279      esac
5280      ;;
5281    esac
5282  fi
5283  rm -rf conftest*
5284  ;;
5285
5286
5287esac
5288
5289need_locks="$enable_libtool_lock"
5290
5291
5292ac_ext=c
5293ac_cpp='$CPP $CPPFLAGS'
5294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5298echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5299# On Suns, sometimes $CPP names a directory.
5300if test -n "$CPP" && test -d "$CPP"; then
5301  CPP=
5302fi
5303if test -z "$CPP"; then
5304  if test "${ac_cv_prog_CPP+set}" = set; then
5305  echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307      # Double quotes because CPP needs to be expanded
5308    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5309    do
5310      ac_preproc_ok=false
5311for ac_c_preproc_warn_flag in '' yes
5312do
5313  # Use a header file that comes with gcc, so configuring glibc
5314  # with a fresh cross-compiler works.
5315  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316  # <limits.h> exists even on freestanding compilers.
5317  # On the NeXT, cc -E runs the code through the compiler's parser,
5318  # not just through cpp. "Syntax error" is here to catch this case.
5319  cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h.  */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h.  */
5325#ifdef __STDC__
5326# include <limits.h>
5327#else
5328# include <assert.h>
5329#endif
5330                     Syntax error
5331_ACEOF
5332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5333  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5334  ac_status=$?
5335  grep -v '^ *+' conftest.er1 >conftest.err
5336  rm -f conftest.er1
5337  cat conftest.err >&5
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); } >/dev/null; then
5340  if test -s conftest.err; then
5341    ac_cpp_err=$ac_c_preproc_warn_flag
5342    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5343  else
5344    ac_cpp_err=
5345  fi
5346else
5347  ac_cpp_err=yes
5348fi
5349if test -z "$ac_cpp_err"; then
5350  :
5351else
5352  echo "$as_me: failed program was:" >&5
5353sed 's/^/| /' conftest.$ac_ext >&5
5354
5355  # Broken: fails on valid input.
5356continue
5357fi
5358rm -f conftest.err conftest.$ac_ext
5359
5360  # OK, works on sane cases.  Now check whether non-existent headers
5361  # can be detected and how.
5362  cat >conftest.$ac_ext <<_ACEOF
5363/* confdefs.h.  */
5364_ACEOF
5365cat confdefs.h >>conftest.$ac_ext
5366cat >>conftest.$ac_ext <<_ACEOF
5367/* end confdefs.h.  */
5368#include <ac_nonexistent.h>
5369_ACEOF
5370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5371  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5372  ac_status=$?
5373  grep -v '^ *+' conftest.er1 >conftest.err
5374  rm -f conftest.er1
5375  cat conftest.err >&5
5376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377  (exit $ac_status); } >/dev/null; then
5378  if test -s conftest.err; then
5379    ac_cpp_err=$ac_c_preproc_warn_flag
5380    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5381  else
5382    ac_cpp_err=
5383  fi
5384else
5385  ac_cpp_err=yes
5386fi
5387if test -z "$ac_cpp_err"; then
5388  # Broken: success on invalid input.
5389continue
5390else
5391  echo "$as_me: failed program was:" >&5
5392sed 's/^/| /' conftest.$ac_ext >&5
5393
5394  # Passes both tests.
5395ac_preproc_ok=:
5396break
5397fi
5398rm -f conftest.err conftest.$ac_ext
5399
5400done
5401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5402rm -f conftest.err conftest.$ac_ext
5403if $ac_preproc_ok; then
5404  break
5405fi
5406
5407    done
5408    ac_cv_prog_CPP=$CPP
5409
5410fi
5411  CPP=$ac_cv_prog_CPP
5412else
5413  ac_cv_prog_CPP=$CPP
5414fi
5415echo "$as_me:$LINENO: result: $CPP" >&5
5416echo "${ECHO_T}$CPP" >&6
5417ac_preproc_ok=false
5418for ac_c_preproc_warn_flag in '' yes
5419do
5420  # Use a header file that comes with gcc, so configuring glibc
5421  # with a fresh cross-compiler works.
5422  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423  # <limits.h> exists even on freestanding compilers.
5424  # On the NeXT, cc -E runs the code through the compiler's parser,
5425  # not just through cpp. "Syntax error" is here to catch this case.
5426  cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h.  */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h.  */
5432#ifdef __STDC__
5433# include <limits.h>
5434#else
5435# include <assert.h>
5436#endif
5437                     Syntax error
5438_ACEOF
5439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5440  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5441  ac_status=$?
5442  grep -v '^ *+' conftest.er1 >conftest.err
5443  rm -f conftest.er1
5444  cat conftest.err >&5
5445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446  (exit $ac_status); } >/dev/null; then
5447  if test -s conftest.err; then
5448    ac_cpp_err=$ac_c_preproc_warn_flag
5449    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5450  else
5451    ac_cpp_err=
5452  fi
5453else
5454  ac_cpp_err=yes
5455fi
5456if test -z "$ac_cpp_err"; then
5457  :
5458else
5459  echo "$as_me: failed program was:" >&5
5460sed 's/^/| /' conftest.$ac_ext >&5
5461
5462  # Broken: fails on valid input.
5463continue
5464fi
5465rm -f conftest.err conftest.$ac_ext
5466
5467  # OK, works on sane cases.  Now check whether non-existent headers
5468  # can be detected and how.
5469  cat >conftest.$ac_ext <<_ACEOF
5470/* confdefs.h.  */
5471_ACEOF
5472cat confdefs.h >>conftest.$ac_ext
5473cat >>conftest.$ac_ext <<_ACEOF
5474/* end confdefs.h.  */
5475#include <ac_nonexistent.h>
5476_ACEOF
5477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5478  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5479  ac_status=$?
5480  grep -v '^ *+' conftest.er1 >conftest.err
5481  rm -f conftest.er1
5482  cat conftest.err >&5
5483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484  (exit $ac_status); } >/dev/null; then
5485  if test -s conftest.err; then
5486    ac_cpp_err=$ac_c_preproc_warn_flag
5487    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5488  else
5489    ac_cpp_err=
5490  fi
5491else
5492  ac_cpp_err=yes
5493fi
5494if test -z "$ac_cpp_err"; then
5495  # Broken: success on invalid input.
5496continue
5497else
5498  echo "$as_me: failed program was:" >&5
5499sed 's/^/| /' conftest.$ac_ext >&5
5500
5501  # Passes both tests.
5502ac_preproc_ok=:
5503break
5504fi
5505rm -f conftest.err conftest.$ac_ext
5506
5507done
5508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5509rm -f conftest.err conftest.$ac_ext
5510if $ac_preproc_ok; then
5511  :
5512else
5513  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5514See \`config.log' for more details." >&5
5515echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5516See \`config.log' for more details." >&2;}
5517   { (exit 1); exit 1; }; }
5518fi
5519
5520ac_ext=c
5521ac_cpp='$CPP $CPPFLAGS'
5522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5524ac_compiler_gnu=$ac_cv_c_compiler_gnu
5525
5526
5527echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5528echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5529if test "${ac_cv_header_stdc+set}" = set; then
5530  echo $ECHO_N "(cached) $ECHO_C" >&6
5531else
5532  cat >conftest.$ac_ext <<_ACEOF
5533/* confdefs.h.  */
5534_ACEOF
5535cat confdefs.h >>conftest.$ac_ext
5536cat >>conftest.$ac_ext <<_ACEOF
5537/* end confdefs.h.  */
5538#include <stdlib.h>
5539#include <stdarg.h>
5540#include <string.h>
5541#include <float.h>
5542
5543int
5544main ()
5545{
5546
5547  ;
5548  return 0;
5549}
5550_ACEOF
5551rm -f conftest.$ac_objext
5552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553  (eval $ac_compile) 2>conftest.er1
5554  ac_status=$?
5555  grep -v '^ *+' conftest.er1 >conftest.err
5556  rm -f conftest.er1
5557  cat conftest.err >&5
5558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559  (exit $ac_status); } &&
5560         { ac_try='test -z "$ac_c_werror_flag"
5561                         || test ! -s conftest.err'
5562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563  (eval $ac_try) 2>&5
5564  ac_status=$?
5565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566  (exit $ac_status); }; } &&
5567         { ac_try='test -s conftest.$ac_objext'
5568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569  (eval $ac_try) 2>&5
5570  ac_status=$?
5571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572  (exit $ac_status); }; }; then
5573  ac_cv_header_stdc=yes
5574else
5575  echo "$as_me: failed program was:" >&5
5576sed 's/^/| /' conftest.$ac_ext >&5
5577
5578ac_cv_header_stdc=no
5579fi
5580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5581
5582if test $ac_cv_header_stdc = yes; then
5583  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5584  cat >conftest.$ac_ext <<_ACEOF
5585/* confdefs.h.  */
5586_ACEOF
5587cat confdefs.h >>conftest.$ac_ext
5588cat >>conftest.$ac_ext <<_ACEOF
5589/* end confdefs.h.  */
5590#include <string.h>
5591
5592_ACEOF
5593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5594  $EGREP "memchr" >/dev/null 2>&1; then
5595  :
5596else
5597  ac_cv_header_stdc=no
5598fi
5599rm -f conftest*
5600
5601fi
5602
5603if test $ac_cv_header_stdc = yes; then
5604  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5605  cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h.  */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h.  */
5611#include <stdlib.h>
5612
5613_ACEOF
5614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5615  $EGREP "free" >/dev/null 2>&1; then
5616  :
5617else
5618  ac_cv_header_stdc=no
5619fi
5620rm -f conftest*
5621
5622fi
5623
5624if test $ac_cv_header_stdc = yes; then
5625  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5626  if test "$cross_compiling" = yes; then
5627  :
5628else
5629  cat >conftest.$ac_ext <<_ACEOF
5630/* confdefs.h.  */
5631_ACEOF
5632cat confdefs.h >>conftest.$ac_ext
5633cat >>conftest.$ac_ext <<_ACEOF
5634/* end confdefs.h.  */
5635#include <ctype.h>
5636#if ((' ' & 0x0FF) == 0x020)
5637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5639#else
5640# define ISLOWER(c) \
5641                   (('a' <= (c) && (c) <= 'i') \
5642                     || ('j' <= (c) && (c) <= 'r') \
5643                     || ('s' <= (c) && (c) <= 'z'))
5644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5645#endif
5646
5647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5648int
5649main ()
5650{
5651  int i;
5652  for (i = 0; i < 256; i++)
5653    if (XOR (islower (i), ISLOWER (i))
5654        || toupper (i) != TOUPPER (i))
5655      exit(2);
5656  exit (0);
5657}
5658_ACEOF
5659rm -f conftest$ac_exeext
5660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5661  (eval $ac_link) 2>&5
5662  ac_status=$?
5663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666  (eval $ac_try) 2>&5
5667  ac_status=$?
5668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669  (exit $ac_status); }; }; then
5670  :
5671else
5672  echo "$as_me: program exited with status $ac_status" >&5
5673echo "$as_me: failed program was:" >&5
5674sed 's/^/| /' conftest.$ac_ext >&5
5675
5676( exit $ac_status )
5677ac_cv_header_stdc=no
5678fi
5679rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5680fi
5681fi
5682fi
5683echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5684echo "${ECHO_T}$ac_cv_header_stdc" >&6
5685if test $ac_cv_header_stdc = yes; then
5686
5687cat >>confdefs.h <<\_ACEOF
5688#define STDC_HEADERS 1
5689_ACEOF
5690
5691fi
5692
5693# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5704                  inttypes.h stdint.h unistd.h
5705do
5706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5707echo "$as_me:$LINENO: checking for $ac_header" >&5
5708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5709if eval "test \"\${$as_ac_Header+set}\" = set"; then
5710  echo $ECHO_N "(cached) $ECHO_C" >&6
5711else
5712  cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h.  */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h.  */
5718$ac_includes_default
5719
5720#include <$ac_header>
5721_ACEOF
5722rm -f conftest.$ac_objext
5723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724  (eval $ac_compile) 2>conftest.er1
5725  ac_status=$?
5726  grep -v '^ *+' conftest.er1 >conftest.err
5727  rm -f conftest.er1
5728  cat conftest.err >&5
5729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730  (exit $ac_status); } &&
5731         { ac_try='test -z "$ac_c_werror_flag"
5732                         || test ! -s conftest.err'
5733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734  (eval $ac_try) 2>&5
5735  ac_status=$?
5736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737  (exit $ac_status); }; } &&
5738         { ac_try='test -s conftest.$ac_objext'
5739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740  (eval $ac_try) 2>&5
5741  ac_status=$?
5742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743  (exit $ac_status); }; }; then
5744  eval "$as_ac_Header=yes"
5745else
5746  echo "$as_me: failed program was:" >&5
5747sed 's/^/| /' conftest.$ac_ext >&5
5748
5749eval "$as_ac_Header=no"
5750fi
5751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5752fi
5753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5755if test `eval echo '${'$as_ac_Header'}'` = yes; then
5756  cat >>confdefs.h <<_ACEOF
5757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5758_ACEOF
5759
5760fi
5761
5762done
5763
5764
5765
5766for ac_header in dlfcn.h
5767do
5768as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5769if eval "test \"\${$as_ac_Header+set}\" = set"; then
5770  echo "$as_me:$LINENO: checking for $ac_header" >&5
5771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5772if eval "test \"\${$as_ac_Header+set}\" = set"; then
5773  echo $ECHO_N "(cached) $ECHO_C" >&6
5774fi
5775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5777else
5778  # Is the header compilable?
5779echo "$as_me:$LINENO: checking $ac_header usability" >&5
5780echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5781cat >conftest.$ac_ext <<_ACEOF
5782/* confdefs.h.  */
5783_ACEOF
5784cat confdefs.h >>conftest.$ac_ext
5785cat >>conftest.$ac_ext <<_ACEOF
5786/* end confdefs.h.  */
5787$ac_includes_default
5788#include <$ac_header>
5789_ACEOF
5790rm -f conftest.$ac_objext
5791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792  (eval $ac_compile) 2>conftest.er1
5793  ac_status=$?
5794  grep -v '^ *+' conftest.er1 >conftest.err
5795  rm -f conftest.er1
5796  cat conftest.err >&5
5797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798  (exit $ac_status); } &&
5799         { ac_try='test -z "$ac_c_werror_flag"
5800                         || test ! -s conftest.err'
5801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802  (eval $ac_try) 2>&5
5803  ac_status=$?
5804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805  (exit $ac_status); }; } &&
5806         { ac_try='test -s conftest.$ac_objext'
5807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808  (eval $ac_try) 2>&5
5809  ac_status=$?
5810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811  (exit $ac_status); }; }; then
5812  ac_header_compiler=yes
5813else
5814  echo "$as_me: failed program was:" >&5
5815sed 's/^/| /' conftest.$ac_ext >&5
5816
5817ac_header_compiler=no
5818fi
5819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5820echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5821echo "${ECHO_T}$ac_header_compiler" >&6
5822
5823# Is the header present?
5824echo "$as_me:$LINENO: checking $ac_header presence" >&5
5825echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5826cat >conftest.$ac_ext <<_ACEOF
5827/* confdefs.h.  */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h.  */
5832#include <$ac_header>
5833_ACEOF
5834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5835  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5836  ac_status=$?
5837  grep -v '^ *+' conftest.er1 >conftest.err
5838  rm -f conftest.er1
5839  cat conftest.err >&5
5840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841  (exit $ac_status); } >/dev/null; then
5842  if test -s conftest.err; then
5843    ac_cpp_err=$ac_c_preproc_warn_flag
5844    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5845  else
5846    ac_cpp_err=
5847  fi
5848else
5849  ac_cpp_err=yes
5850fi
5851if test -z "$ac_cpp_err"; then
5852  ac_header_preproc=yes
5853else
5854  echo "$as_me: failed program was:" >&5
5855sed 's/^/| /' conftest.$ac_ext >&5
5856
5857  ac_header_preproc=no
5858fi
5859rm -f conftest.err conftest.$ac_ext
5860echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5861echo "${ECHO_T}$ac_header_preproc" >&6
5862
5863# So?  What about this header?
5864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5865  yes:no: )
5866    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5867echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5868    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5869echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5870    ac_header_preproc=yes
5871    ;;
5872  no:yes:* )
5873    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5874echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5875    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5876echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5877    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5878echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5879    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5880echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5881    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5882echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5883    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5884echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5885    (
5886      cat <<\_ASBOX
5887## --------------------------------------------------------------- ##
5888## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5889## --------------------------------------------------------------- ##
5890_ASBOX
5891    ) |
5892      sed "s/^/$as_me: WARNING:     /" >&2
5893    ;;
5894esac
5895echo "$as_me:$LINENO: checking for $ac_header" >&5
5896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5897if eval "test \"\${$as_ac_Header+set}\" = set"; then
5898  echo $ECHO_N "(cached) $ECHO_C" >&6
5899else
5900  eval "$as_ac_Header=\$ac_header_preproc"
5901fi
5902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5904
5905fi
5906if test `eval echo '${'$as_ac_Header'}'` = yes; then
5907  cat >>confdefs.h <<_ACEOF
5908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5909_ACEOF
5910
5911fi
5912
5913done
5914
5915ac_ext=cc
5916ac_cpp='$CXXCPP $CPPFLAGS'
5917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5920if test -n "$ac_tool_prefix"; then
5921  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5922  do
5923    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5924set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5925echo "$as_me:$LINENO: checking for $ac_word" >&5
5926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5927if test "${ac_cv_prog_CXX+set}" = set; then
5928  echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930  if test -n "$CXX"; then
5931  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936  IFS=$as_save_IFS
5937  test -z "$as_dir" && as_dir=.
5938  for ac_exec_ext in '' $ac_executable_extensions; do
5939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942    break 2
5943  fi
5944done
5945done
5946
5947fi
5948fi
5949CXX=$ac_cv_prog_CXX
5950if test -n "$CXX"; then
5951  echo "$as_me:$LINENO: result: $CXX" >&5
5952echo "${ECHO_T}$CXX" >&6
5953else
5954  echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6
5956fi
5957
5958    test -n "$CXX" && break
5959  done
5960fi
5961if test -z "$CXX"; then
5962  ac_ct_CXX=$CXX
5963  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5964do
5965  # Extract the first word of "$ac_prog", so it can be a program name with args.
5966set dummy $ac_prog; ac_word=$2
5967echo "$as_me:$LINENO: checking for $ac_word" >&5
5968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5970  echo $ECHO_N "(cached) $ECHO_C" >&6
5971else
5972  if test -n "$ac_ct_CXX"; then
5973  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5974else
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978  IFS=$as_save_IFS
5979  test -z "$as_dir" && as_dir=.
5980  for ac_exec_ext in '' $ac_executable_extensions; do
5981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982    ac_cv_prog_ac_ct_CXX="$ac_prog"
5983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984    break 2
5985  fi
5986done
5987done
5988
5989fi
5990fi
5991ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5992if test -n "$ac_ct_CXX"; then
5993  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5994echo "${ECHO_T}$ac_ct_CXX" >&6
5995else
5996  echo "$as_me:$LINENO: result: no" >&5
5997echo "${ECHO_T}no" >&6
5998fi
5999
6000  test -n "$ac_ct_CXX" && break
6001done
6002test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6003
6004  CXX=$ac_ct_CXX
6005fi
6006
6007
6008# Provide some information about the compiler.
6009echo "$as_me:$LINENO:" \
6010     "checking for C++ compiler version" >&5
6011ac_compiler=`set X $ac_compile; echo $2`
6012{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6013  (eval $ac_compiler --version </dev/null >&5) 2>&5
6014  ac_status=$?
6015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016  (exit $ac_status); }
6017{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6018  (eval $ac_compiler -v </dev/null >&5) 2>&5
6019  ac_status=$?
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); }
6022{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6023  (eval $ac_compiler -V </dev/null >&5) 2>&5
6024  ac_status=$?
6025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026  (exit $ac_status); }
6027
6028echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6029echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6030if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6031  echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033  cat >conftest.$ac_ext <<_ACEOF
6034/* confdefs.h.  */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h.  */
6039
6040int
6041main ()
6042{
6043#ifndef __GNUC__
6044       choke me
6045#endif
6046
6047  ;
6048  return 0;
6049}
6050_ACEOF
6051rm -f conftest.$ac_objext
6052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053  (eval $ac_compile) 2>conftest.er1
6054  ac_status=$?
6055  grep -v '^ *+' conftest.er1 >conftest.err
6056  rm -f conftest.er1
6057  cat conftest.err >&5
6058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059  (exit $ac_status); } &&
6060         { ac_try='test -z "$ac_cxx_werror_flag"
6061                         || test ! -s conftest.err'
6062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063  (eval $ac_try) 2>&5
6064  ac_status=$?
6065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066  (exit $ac_status); }; } &&
6067         { ac_try='test -s conftest.$ac_objext'
6068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069  (eval $ac_try) 2>&5
6070  ac_status=$?
6071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072  (exit $ac_status); }; }; then
6073  ac_compiler_gnu=yes
6074else
6075  echo "$as_me: failed program was:" >&5
6076sed 's/^/| /' conftest.$ac_ext >&5
6077
6078ac_compiler_gnu=no
6079fi
6080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6081ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6082
6083fi
6084echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6085echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6086GXX=`test $ac_compiler_gnu = yes && echo yes`
6087ac_test_CXXFLAGS=${CXXFLAGS+set}
6088ac_save_CXXFLAGS=$CXXFLAGS
6089CXXFLAGS="-g"
6090echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6091echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6092if test "${ac_cv_prog_cxx_g+set}" = set; then
6093  echo $ECHO_N "(cached) $ECHO_C" >&6
6094else
6095  cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h.  */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h.  */
6101
6102int
6103main ()
6104{
6105
6106  ;
6107  return 0;
6108}
6109_ACEOF
6110rm -f conftest.$ac_objext
6111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6112  (eval $ac_compile) 2>conftest.er1
6113  ac_status=$?
6114  grep -v '^ *+' conftest.er1 >conftest.err
6115  rm -f conftest.er1
6116  cat conftest.err >&5
6117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118  (exit $ac_status); } &&
6119         { ac_try='test -z "$ac_cxx_werror_flag"
6120                         || test ! -s conftest.err'
6121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122  (eval $ac_try) 2>&5
6123  ac_status=$?
6124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125  (exit $ac_status); }; } &&
6126         { ac_try='test -s conftest.$ac_objext'
6127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128  (eval $ac_try) 2>&5
6129  ac_status=$?
6130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131  (exit $ac_status); }; }; then
6132  ac_cv_prog_cxx_g=yes
6133else
6134  echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137ac_cv_prog_cxx_g=no
6138fi
6139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6140fi
6141echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6142echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6143if test "$ac_test_CXXFLAGS" = set; then
6144  CXXFLAGS=$ac_save_CXXFLAGS
6145elif test $ac_cv_prog_cxx_g = yes; then
6146  if test "$GXX" = yes; then
6147    CXXFLAGS="-g -O2"
6148  else
6149    CXXFLAGS="-g"
6150  fi
6151else
6152  if test "$GXX" = yes; then
6153    CXXFLAGS="-O2"
6154  else
6155    CXXFLAGS=
6156  fi
6157fi
6158for ac_declaration in \
6159   '' \
6160   'extern "C" void std::exit (int) throw (); using std::exit;' \
6161   'extern "C" void std::exit (int); using std::exit;' \
6162   'extern "C" void exit (int) throw ();' \
6163   'extern "C" void exit (int);' \
6164   'void exit (int);'
6165do
6166  cat >conftest.$ac_ext <<_ACEOF
6167/* confdefs.h.  */
6168_ACEOF
6169cat confdefs.h >>conftest.$ac_ext
6170cat >>conftest.$ac_ext <<_ACEOF
6171/* end confdefs.h.  */
6172$ac_declaration
6173#include <stdlib.h>
6174int
6175main ()
6176{
6177exit (42);
6178  ;
6179  return 0;
6180}
6181_ACEOF
6182rm -f conftest.$ac_objext
6183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184  (eval $ac_compile) 2>conftest.er1
6185  ac_status=$?
6186  grep -v '^ *+' conftest.er1 >conftest.err
6187  rm -f conftest.er1
6188  cat conftest.err >&5
6189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190  (exit $ac_status); } &&
6191         { ac_try='test -z "$ac_cxx_werror_flag"
6192                         || test ! -s conftest.err'
6193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194  (eval $ac_try) 2>&5
6195  ac_status=$?
6196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197  (exit $ac_status); }; } &&
6198         { ac_try='test -s conftest.$ac_objext'
6199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200  (eval $ac_try) 2>&5
6201  ac_status=$?
6202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203  (exit $ac_status); }; }; then
6204  :
6205else
6206  echo "$as_me: failed program was:" >&5
6207sed 's/^/| /' conftest.$ac_ext >&5
6208
6209continue
6210fi
6211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6212  cat >conftest.$ac_ext <<_ACEOF
6213/* confdefs.h.  */
6214_ACEOF
6215cat confdefs.h >>conftest.$ac_ext
6216cat >>conftest.$ac_ext <<_ACEOF
6217/* end confdefs.h.  */
6218$ac_declaration
6219int
6220main ()
6221{
6222exit (42);
6223  ;
6224  return 0;
6225}
6226_ACEOF
6227rm -f conftest.$ac_objext
6228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6229  (eval $ac_compile) 2>conftest.er1
6230  ac_status=$?
6231  grep -v '^ *+' conftest.er1 >conftest.err
6232  rm -f conftest.er1
6233  cat conftest.err >&5
6234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235  (exit $ac_status); } &&
6236         { ac_try='test -z "$ac_cxx_werror_flag"
6237                         || test ! -s conftest.err'
6238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239  (eval $ac_try) 2>&5
6240  ac_status=$?
6241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242  (exit $ac_status); }; } &&
6243         { ac_try='test -s conftest.$ac_objext'
6244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245  (eval $ac_try) 2>&5
6246  ac_status=$?
6247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248  (exit $ac_status); }; }; then
6249  break
6250else
6251  echo "$as_me: failed program was:" >&5
6252sed 's/^/| /' conftest.$ac_ext >&5
6253
6254fi
6255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6256done
6257rm -f conftest*
6258if test -n "$ac_declaration"; then
6259  echo '#ifdef __cplusplus' >>confdefs.h
6260  echo $ac_declaration      >>confdefs.h
6261  echo '#endif'             >>confdefs.h
6262fi
6263
6264ac_ext=cc
6265ac_cpp='$CXXCPP $CPPFLAGS'
6266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6269
6270depcc="$CXX"  am_compiler_list=
6271
6272echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6273echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6274if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6275  echo $ECHO_N "(cached) $ECHO_C" >&6
6276else
6277  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6278  # We make a subdir and do the tests there.  Otherwise we can end up
6279  # making bogus files that we don't know about and never remove.  For
6280  # instance it was reported that on HP-UX the gcc test will end up
6281  # making a dummy file named `D' -- because `-MD' means `put the output
6282  # in D'.
6283  mkdir conftest.dir
6284  # Copy depcomp to subdir because otherwise we won't find it if we're
6285  # using a relative directory.
6286  cp "$am_depcomp" conftest.dir
6287  cd conftest.dir
6288  # We will build objects and dependencies in a subdirectory because
6289  # it helps to detect inapplicable dependency modes.  For instance
6290  # both Tru64's cc and ICC support -MD to output dependencies as a
6291  # side effect of compilation, but ICC will put the dependencies in
6292  # the current directory while Tru64 will put them in the object
6293  # directory.
6294  mkdir sub
6295
6296  am_cv_CXX_dependencies_compiler_type=none
6297  if test "$am_compiler_list" = ""; then
6298     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6299  fi
6300  for depmode in $am_compiler_list; do
6301    # Setup a source with many dependencies, because some compilers
6302    # like to wrap large dependency lists on column 80 (with \), and
6303    # we should not choose a depcomp mode which is confused by this.
6304    #
6305    # We need to recreate these files for each test, as the compiler may
6306    # overwrite some of them when testing with obscure command lines.
6307    # This happens at least with the AIX C compiler.
6308    : > sub/conftest.c
6309    for i in 1 2 3 4 5 6; do
6310      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6311      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6312      # Solaris 8's {/usr,}/bin/sh.
6313      touch sub/conftst$i.h
6314    done
6315    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6316
6317    case $depmode in
6318    nosideeffect)
6319      # after this tag, mechanisms are not by side-effect, so they'll
6320      # only be used when explicitly requested
6321      if test "x$enable_dependency_tracking" = xyes; then
6322        continue
6323      else
6324        break
6325      fi
6326      ;;
6327    none) break ;;
6328    esac
6329    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6330    # mode.  It turns out that the SunPro C++ compiler does not properly
6331    # handle `-M -o', and we need to detect this.
6332    if depmode=$depmode \
6333       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6334       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6335       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6336         >/dev/null 2>conftest.err &&
6337       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6338       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6339       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6340      # icc doesn't choke on unknown options, it will just issue warnings
6341      # or remarks (even with -Werror).  So we grep stderr for any message
6342      # that says an option was ignored or not supported.
6343      # When given -MP, icc 7.0 and 7.1 complain thusly:
6344      #   icc: Command line warning: ignoring option '-M'; no argument required
6345      # The diagnosis changed in icc 8.0:
6346      #   icc: Command line remark: option '-MP' not supported
6347      if (grep 'ignoring option' conftest.err ||
6348          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6349        am_cv_CXX_dependencies_compiler_type=$depmode
6350        break
6351      fi
6352    fi
6353  done
6354
6355  cd ..
6356  rm -rf conftest.dir
6357else
6358  am_cv_CXX_dependencies_compiler_type=none
6359fi
6360
6361fi
6362echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6363echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6364CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6365
6366
6367
6368if
6369  test "x$enable_dependency_tracking" != xno \
6370  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6371  am__fastdepCXX_TRUE=
6372  am__fastdepCXX_FALSE='#'
6373else
6374  am__fastdepCXX_TRUE='#'
6375  am__fastdepCXX_FALSE=
6376fi
6377
6378
6379
6380
6381if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6382    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6383    (test "X$CXX" != "Xg++"))) ; then
6384  ac_ext=cc
6385ac_cpp='$CXXCPP $CPPFLAGS'
6386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6389echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6390echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6391if test -z "$CXXCPP"; then
6392  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6393  echo $ECHO_N "(cached) $ECHO_C" >&6
6394else
6395      # Double quotes because CXXCPP needs to be expanded
6396    for CXXCPP in "$CXX -E" "/lib/cpp"
6397    do
6398      ac_preproc_ok=false
6399for ac_cxx_preproc_warn_flag in '' yes
6400do
6401  # Use a header file that comes with gcc, so configuring glibc
6402  # with a fresh cross-compiler works.
6403  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6404  # <limits.h> exists even on freestanding compilers.
6405  # On the NeXT, cc -E runs the code through the compiler's parser,
6406  # not just through cpp. "Syntax error" is here to catch this case.
6407  cat >conftest.$ac_ext <<_ACEOF
6408/* confdefs.h.  */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
6412/* end confdefs.h.  */
6413#ifdef __STDC__
6414# include <limits.h>
6415#else
6416# include <assert.h>
6417#endif
6418                     Syntax error
6419_ACEOF
6420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6421  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6422  ac_status=$?
6423  grep -v '^ *+' conftest.er1 >conftest.err
6424  rm -f conftest.er1
6425  cat conftest.err >&5
6426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427  (exit $ac_status); } >/dev/null; then
6428  if test -s conftest.err; then
6429    ac_cpp_err=$ac_cxx_preproc_warn_flag
6430    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6431  else
6432    ac_cpp_err=
6433  fi
6434else
6435  ac_cpp_err=yes
6436fi
6437if test -z "$ac_cpp_err"; then
6438  :
6439else
6440  echo "$as_me: failed program was:" >&5
6441sed 's/^/| /' conftest.$ac_ext >&5
6442
6443  # Broken: fails on valid input.
6444continue
6445fi
6446rm -f conftest.err conftest.$ac_ext
6447
6448  # OK, works on sane cases.  Now check whether non-existent headers
6449  # can be detected and how.
6450  cat >conftest.$ac_ext <<_ACEOF
6451/* confdefs.h.  */
6452_ACEOF
6453cat confdefs.h >>conftest.$ac_ext
6454cat >>conftest.$ac_ext <<_ACEOF
6455/* end confdefs.h.  */
6456#include <ac_nonexistent.h>
6457_ACEOF
6458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6459  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6460  ac_status=$?
6461  grep -v '^ *+' conftest.er1 >conftest.err
6462  rm -f conftest.er1
6463  cat conftest.err >&5
6464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465  (exit $ac_status); } >/dev/null; then
6466  if test -s conftest.err; then
6467    ac_cpp_err=$ac_cxx_preproc_warn_flag
6468    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6469  else
6470    ac_cpp_err=
6471  fi
6472else
6473  ac_cpp_err=yes
6474fi
6475if test -z "$ac_cpp_err"; then
6476  # Broken: success on invalid input.
6477continue
6478else
6479  echo "$as_me: failed program was:" >&5
6480sed 's/^/| /' conftest.$ac_ext >&5
6481
6482  # Passes both tests.
6483ac_preproc_ok=:
6484break
6485fi
6486rm -f conftest.err conftest.$ac_ext
6487
6488done
6489# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6490rm -f conftest.err conftest.$ac_ext
6491if $ac_preproc_ok; then
6492  break
6493fi
6494
6495    done
6496    ac_cv_prog_CXXCPP=$CXXCPP
6497
6498fi
6499  CXXCPP=$ac_cv_prog_CXXCPP
6500else
6501  ac_cv_prog_CXXCPP=$CXXCPP
6502fi
6503echo "$as_me:$LINENO: result: $CXXCPP" >&5
6504echo "${ECHO_T}$CXXCPP" >&6
6505ac_preproc_ok=false
6506for ac_cxx_preproc_warn_flag in '' yes
6507do
6508  # Use a header file that comes with gcc, so configuring glibc
6509  # with a fresh cross-compiler works.
6510  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6511  # <limits.h> exists even on freestanding compilers.
6512  # On the NeXT, cc -E runs the code through the compiler's parser,
6513  # not just through cpp. "Syntax error" is here to catch this case.
6514  cat >conftest.$ac_ext <<_ACEOF
6515/* confdefs.h.  */
6516_ACEOF
6517cat confdefs.h >>conftest.$ac_ext
6518cat >>conftest.$ac_ext <<_ACEOF
6519/* end confdefs.h.  */
6520#ifdef __STDC__
6521# include <limits.h>
6522#else
6523# include <assert.h>
6524#endif
6525                     Syntax error
6526_ACEOF
6527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6528  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6529  ac_status=$?
6530  grep -v '^ *+' conftest.er1 >conftest.err
6531  rm -f conftest.er1
6532  cat conftest.err >&5
6533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534  (exit $ac_status); } >/dev/null; then
6535  if test -s conftest.err; then
6536    ac_cpp_err=$ac_cxx_preproc_warn_flag
6537    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6538  else
6539    ac_cpp_err=
6540  fi
6541else
6542  ac_cpp_err=yes
6543fi
6544if test -z "$ac_cpp_err"; then
6545  :
6546else
6547  echo "$as_me: failed program was:" >&5
6548sed 's/^/| /' conftest.$ac_ext >&5
6549
6550  # Broken: fails on valid input.
6551continue
6552fi
6553rm -f conftest.err conftest.$ac_ext
6554
6555  # OK, works on sane cases.  Now check whether non-existent headers
6556  # can be detected and how.
6557  cat >conftest.$ac_ext <<_ACEOF
6558/* confdefs.h.  */
6559_ACEOF
6560cat confdefs.h >>conftest.$ac_ext
6561cat >>conftest.$ac_ext <<_ACEOF
6562/* end confdefs.h.  */
6563#include <ac_nonexistent.h>
6564_ACEOF
6565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6566  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6567  ac_status=$?
6568  grep -v '^ *+' conftest.er1 >conftest.err
6569  rm -f conftest.er1
6570  cat conftest.err >&5
6571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572  (exit $ac_status); } >/dev/null; then
6573  if test -s conftest.err; then
6574    ac_cpp_err=$ac_cxx_preproc_warn_flag
6575    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6576  else
6577    ac_cpp_err=
6578  fi
6579else
6580  ac_cpp_err=yes
6581fi
6582if test -z "$ac_cpp_err"; then
6583  # Broken: success on invalid input.
6584continue
6585else
6586  echo "$as_me: failed program was:" >&5
6587sed 's/^/| /' conftest.$ac_ext >&5
6588
6589  # Passes both tests.
6590ac_preproc_ok=:
6591break
6592fi
6593rm -f conftest.err conftest.$ac_ext
6594
6595done
6596# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6597rm -f conftest.err conftest.$ac_ext
6598if $ac_preproc_ok; then
6599  :
6600else
6601  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6602See \`config.log' for more details." >&5
6603echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6604See \`config.log' for more details." >&2;}
6605   { (exit 1); exit 1; }; }
6606fi
6607
6608ac_ext=cc
6609ac_cpp='$CXXCPP $CPPFLAGS'
6610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6613
6614fi
6615
6616
6617ac_ext=f
6618ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6619ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6620ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6621if test -n "$ac_tool_prefix"; then
6622  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6623  do
6624    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6625set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6626echo "$as_me:$LINENO: checking for $ac_word" >&5
6627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6628if test "${ac_cv_prog_F77+set}" = set; then
6629  echo $ECHO_N "(cached) $ECHO_C" >&6
6630else
6631  if test -n "$F77"; then
6632  ac_cv_prog_F77="$F77" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637  IFS=$as_save_IFS
6638  test -z "$as_dir" && as_dir=.
6639  for ac_exec_ext in '' $ac_executable_extensions; do
6640  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643    break 2
6644  fi
6645done
6646done
6647
6648fi
6649fi
6650F77=$ac_cv_prog_F77
6651if test -n "$F77"; then
6652  echo "$as_me:$LINENO: result: $F77" >&5
6653echo "${ECHO_T}$F77" >&6
6654else
6655  echo "$as_me:$LINENO: result: no" >&5
6656echo "${ECHO_T}no" >&6
6657fi
6658
6659    test -n "$F77" && break
6660  done
6661fi
6662if test -z "$F77"; then
6663  ac_ct_F77=$F77
6664  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6665do
6666  # Extract the first word of "$ac_prog", so it can be a program name with args.
6667set dummy $ac_prog; ac_word=$2
6668echo "$as_me:$LINENO: checking for $ac_word" >&5
6669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6670if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6671  echo $ECHO_N "(cached) $ECHO_C" >&6
6672else
6673  if test -n "$ac_ct_F77"; then
6674  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679  IFS=$as_save_IFS
6680  test -z "$as_dir" && as_dir=.
6681  for ac_exec_ext in '' $ac_executable_extensions; do
6682  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683    ac_cv_prog_ac_ct_F77="$ac_prog"
6684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685    break 2
6686  fi
6687done
6688done
6689
6690fi
6691fi
6692ac_ct_F77=$ac_cv_prog_ac_ct_F77
6693if test -n "$ac_ct_F77"; then
6694  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6695echo "${ECHO_T}$ac_ct_F77" >&6
6696else
6697  echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6
6699fi
6700
6701  test -n "$ac_ct_F77" && break
6702done
6703
6704  F77=$ac_ct_F77
6705fi
6706
6707
6708# Provide some information about the compiler.
6709echo "$as_me:6709:" \
6710     "checking for Fortran 77 compiler version" >&5
6711ac_compiler=`set X $ac_compile; echo $2`
6712{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6713  (eval $ac_compiler --version </dev/null >&5) 2>&5
6714  ac_status=$?
6715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716  (exit $ac_status); }
6717{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6718  (eval $ac_compiler -v </dev/null >&5) 2>&5
6719  ac_status=$?
6720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721  (exit $ac_status); }
6722{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6723  (eval $ac_compiler -V </dev/null >&5) 2>&5
6724  ac_status=$?
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); }
6727rm -f a.out
6728
6729# If we don't use `.F' as extension, the preprocessor is not run on the
6730# input file.  (Note that this only needs to work for GNU compilers.)
6731ac_save_ext=$ac_ext
6732ac_ext=F
6733echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6734echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6735if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6736  echo $ECHO_N "(cached) $ECHO_C" >&6
6737else
6738  cat >conftest.$ac_ext <<_ACEOF
6739      program main
6740#ifndef __GNUC__
6741       choke me
6742#endif
6743
6744      end
6745_ACEOF
6746rm -f conftest.$ac_objext
6747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6748  (eval $ac_compile) 2>conftest.er1
6749  ac_status=$?
6750  grep -v '^ *+' conftest.er1 >conftest.err
6751  rm -f conftest.er1
6752  cat conftest.err >&5
6753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754  (exit $ac_status); } &&
6755         { ac_try='test -z "$ac_f77_werror_flag"
6756                         || test ! -s conftest.err'
6757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758  (eval $ac_try) 2>&5
6759  ac_status=$?
6760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761  (exit $ac_status); }; } &&
6762         { ac_try='test -s conftest.$ac_objext'
6763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764  (eval $ac_try) 2>&5
6765  ac_status=$?
6766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767  (exit $ac_status); }; }; then
6768  ac_compiler_gnu=yes
6769else
6770  echo "$as_me: failed program was:" >&5
6771sed 's/^/| /' conftest.$ac_ext >&5
6772
6773ac_compiler_gnu=no
6774fi
6775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6776ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6777
6778fi
6779echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6780echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6781ac_ext=$ac_save_ext
6782ac_test_FFLAGS=${FFLAGS+set}
6783ac_save_FFLAGS=$FFLAGS
6784FFLAGS=
6785echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6786echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6787if test "${ac_cv_prog_f77_g+set}" = set; then
6788  echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790  FFLAGS=-g
6791cat >conftest.$ac_ext <<_ACEOF
6792      program main
6793
6794      end
6795_ACEOF
6796rm -f conftest.$ac_objext
6797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798  (eval $ac_compile) 2>conftest.er1
6799  ac_status=$?
6800  grep -v '^ *+' conftest.er1 >conftest.err
6801  rm -f conftest.er1
6802  cat conftest.err >&5
6803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804  (exit $ac_status); } &&
6805         { ac_try='test -z "$ac_f77_werror_flag"
6806                         || test ! -s conftest.err'
6807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808  (eval $ac_try) 2>&5
6809  ac_status=$?
6810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811  (exit $ac_status); }; } &&
6812         { ac_try='test -s conftest.$ac_objext'
6813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814  (eval $ac_try) 2>&5
6815  ac_status=$?
6816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817  (exit $ac_status); }; }; then
6818  ac_cv_prog_f77_g=yes
6819else
6820  echo "$as_me: failed program was:" >&5
6821sed 's/^/| /' conftest.$ac_ext >&5
6822
6823ac_cv_prog_f77_g=no
6824fi
6825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6826
6827fi
6828echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6829echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6830if test "$ac_test_FFLAGS" = set; then
6831  FFLAGS=$ac_save_FFLAGS
6832elif test $ac_cv_prog_f77_g = yes; then
6833  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6834    FFLAGS="-g -O2"
6835  else
6836    FFLAGS="-g"
6837  fi
6838else
6839  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6840    FFLAGS="-O2"
6841  else
6842    FFLAGS=
6843  fi
6844fi
6845
6846G77=`test $ac_compiler_gnu = yes && echo yes`
6847ac_ext=c
6848ac_cpp='$CPP $CPPFLAGS'
6849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6851ac_compiler_gnu=$ac_cv_c_compiler_gnu
6852
6853
6854
6855# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6856
6857# find the maximum length of command line arguments
6858echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6859echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6860if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6861  echo $ECHO_N "(cached) $ECHO_C" >&6
6862else
6863    i=0
6864  teststring="ABCD"
6865
6866  case $build_os in
6867  msdosdjgpp*)
6868    # On DJGPP, this test can blow up pretty badly due to problems in libc
6869    # (any single argument exceeding 2000 bytes causes a buffer overrun
6870    # during glob expansion).  Even if it were fixed, the result of this
6871    # check would be larger than it should be.
6872    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6873    ;;
6874
6875  gnu*)
6876    # Under GNU Hurd, this test is not required because there is
6877    # no limit to the length of command line arguments.
6878    # Libtool will interpret -1 as no limit whatsoever
6879    lt_cv_sys_max_cmd_len=-1;
6880    ;;
6881
6882  cygwin* | mingw*)
6883    # On Win9x/ME, this test blows up -- it succeeds, but takes
6884    # about 5 minutes as the teststring grows exponentially.
6885    # Worse, since 9x/ME are not pre-emptively multitasking,
6886    # you end up with a "frozen" computer, even though with patience
6887    # the test eventually succeeds (with a max line length of 256k).
6888    # Instead, let's just punt: use the minimum linelength reported by
6889    # all of the supported platforms: 8192 (on NT/2K/XP).
6890    lt_cv_sys_max_cmd_len=8192;
6891    ;;
6892
6893  amigaos*)
6894    # On AmigaOS with pdksh, this test takes hours, literally.
6895    # So we just punt and use a minimum line length of 8192.
6896    lt_cv_sys_max_cmd_len=8192;
6897    ;;
6898
6899  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6900    # This has been around since 386BSD, at least.  Likely further.
6901    if test -x /sbin/sysctl; then
6902      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6903    elif test -x /usr/sbin/sysctl; then
6904      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6905    else
6906      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6907    fi
6908    # And add a safety zone
6909    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6910    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6911    ;;
6912
6913  interix*)
6914    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6915    lt_cv_sys_max_cmd_len=196608
6916    ;;
6917
6918  osf*)
6919    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6920    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6921    # nice to cause kernel panics so lets avoid the loop below.
6922    # First set a reasonable default.
6923    lt_cv_sys_max_cmd_len=16384
6924    #
6925    if test -x /sbin/sysconfig; then
6926      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6927        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6928      esac
6929    fi
6930    ;;
6931  sco3.2v5*)
6932    lt_cv_sys_max_cmd_len=102400
6933    ;;
6934  sysv5* | sco5v6* | sysv4.2uw2*)
6935    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6936    if test -n "$kargmax"; then
6937      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6938    else
6939      lt_cv_sys_max_cmd_len=32768
6940    fi
6941    ;;
6942  *)
6943    # If test is not a shell built-in, we'll probably end up computing a
6944    # maximum length that is only half of the actual maximum length, but
6945    # we can't tell.
6946    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6947    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6948               = "XX$teststring") >/dev/null 2>&1 &&
6949            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6950            lt_cv_sys_max_cmd_len=$new_result &&
6951            test $i != 17 # 1/2 MB should be enough
6952    do
6953      i=`expr $i + 1`
6954      teststring=$teststring$teststring
6955    done
6956    teststring=
6957    # Add a significant safety factor because C++ compilers can tack on massive
6958    # amounts of additional arguments before passing them to the linker.
6959    # It appears as though 1/2 is a usable value.
6960    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6961    ;;
6962  esac
6963
6964fi
6965
6966if test -n $lt_cv_sys_max_cmd_len ; then
6967  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6968echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6969else
6970  echo "$as_me:$LINENO: result: none" >&5
6971echo "${ECHO_T}none" >&6
6972fi
6973
6974
6975
6976
6977# Check for command to grab the raw symbol name followed by C symbol from nm.
6978echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6979echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6980if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6981  echo $ECHO_N "(cached) $ECHO_C" >&6
6982else
6983
6984# These are sane defaults that work on at least a few old systems.
6985# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6986
6987# Character class describing NM global symbol codes.
6988symcode='[BCDEGRST]'
6989
6990# Regexp to match symbols that can be accessed directly from C.
6991sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6992
6993# Transform an extracted symbol line into a proper C declaration
6994lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6995
6996# Transform an extracted symbol line into symbol name and symbol address
6997lt_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'"
6998
6999# Define system-specific variables.
7000case $host_os in
7001aix*)
7002  symcode='[BCDT]'
7003  ;;
7004cygwin* | mingw* | pw32*)
7005  symcode='[ABCDGISTW]'
7006  ;;
7007hpux*) # Its linker distinguishes data from code symbols
7008  if test "$host_cpu" = ia64; then
7009    symcode='[ABCDEGRST]'
7010  fi
7011  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7012  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'"
7013  ;;
7014linux*)
7015  if test "$host_cpu" = ia64; then
7016    symcode='[ABCDGIRSTW]'
7017    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7018    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'"
7019  fi
7020  ;;
7021irix* | nonstopux*)
7022  symcode='[BCDEGRST]'
7023  ;;
7024osf*)
7025  symcode='[BCDEGQRST]'
7026  ;;
7027solaris*)
7028  symcode='[BDRT]'
7029  ;;
7030sco3.2v5*)
7031  symcode='[DT]'
7032  ;;
7033sysv4.2uw2*)
7034  symcode='[DT]'
7035  ;;
7036sysv5* | sco5v6* | unixware* | OpenUNIX*)
7037  symcode='[ABDT]'
7038  ;;
7039sysv4)
7040  symcode='[DFNSTU]'
7041  ;;
7042esac
7043
7044# Handle CRLF in mingw tool chain
7045opt_cr=
7046case $build_os in
7047mingw*)
7048  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7049  ;;
7050esac
7051
7052# If we're using GNU nm, then use its standard symbol codes.
7053case `$NM -V 2>&1` in
7054*GNU* | *'with BFD'*)
7055  symcode='[ABCDGIRSTW]' ;;
7056esac
7057
7058# Try without a prefix undercore, then with it.
7059for ac_symprfx in "" "_"; do
7060
7061  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7062  symxfrm="\\1 $ac_symprfx\\2 \\2"
7063
7064  # Write the raw and C identifiers.
7065  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7066
7067  # Check to see that the pipe works correctly.
7068  pipe_works=no
7069
7070  rm -f conftest*
7071  cat > conftest.$ac_ext <<EOF
7072#ifdef __cplusplus
7073extern "C" {
7074#endif
7075char nm_test_var;
7076void nm_test_func(){}
7077#ifdef __cplusplus
7078}
7079#endif
7080int main(){nm_test_var='a';nm_test_func();return(0);}
7081EOF
7082
7083  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7084  (eval $ac_compile) 2>&5
7085  ac_status=$?
7086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087  (exit $ac_status); }; then
7088    # Now try to grab the symbols.
7089    nlist=conftest.nm
7090    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7091  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7092  ac_status=$?
7093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094  (exit $ac_status); } && test -s "$nlist"; then
7095      # Try sorting and uniquifying the output.
7096      if sort "$nlist" | uniq > "$nlist"T; then
7097        mv -f "$nlist"T "$nlist"
7098      else
7099        rm -f "$nlist"T
7100      fi
7101
7102      # Make sure that we snagged all the symbols we need.
7103      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7104        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7105          cat <<EOF > conftest.$ac_ext
7106#ifdef __cplusplus
7107extern "C" {
7108#endif
7109
7110EOF
7111          # Now generate the symbol file.
7112          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7113
7114          cat <<EOF >> conftest.$ac_ext
7115#if defined (__STDC__) && __STDC__
7116# define lt_ptr_t void *
7117#else
7118# define lt_ptr_t char *
7119# define const
7120#endif
7121
7122/* The mapping between symbol names and symbols. */
7123const struct {
7124  const char *name;
7125  lt_ptr_t address;
7126}
7127lt_preloaded_symbols[] =
7128{
7129EOF
7130          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7131          cat <<\EOF >> conftest.$ac_ext
7132  {0, (lt_ptr_t) 0}
7133};
7134
7135#ifdef __cplusplus
7136}
7137#endif
7138EOF
7139          # Now try linking the two files.
7140          mv conftest.$ac_objext conftstm.$ac_objext
7141          lt_save_LIBS="$LIBS"
7142          lt_save_CFLAGS="$CFLAGS"
7143          LIBS="conftstm.$ac_objext"
7144          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7145          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146  (eval $ac_link) 2>&5
7147  ac_status=$?
7148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7150            pipe_works=yes
7151          fi
7152          LIBS="$lt_save_LIBS"
7153          CFLAGS="$lt_save_CFLAGS"
7154        else
7155          echo "cannot find nm_test_func in $nlist" >&5
7156        fi
7157      else
7158        echo "cannot find nm_test_var in $nlist" >&5
7159      fi
7160    else
7161      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7162    fi
7163  else
7164    echo "$progname: failed program was:" >&5
7165    cat conftest.$ac_ext >&5
7166  fi
7167  rm -f conftest* conftst*
7168
7169  # Do not use the global_symbol_pipe unless it works.
7170  if test "$pipe_works" = yes; then
7171    break
7172  else
7173    lt_cv_sys_global_symbol_pipe=
7174  fi
7175done
7176
7177fi
7178
7179if test -z "$lt_cv_sys_global_symbol_pipe"; then
7180  lt_cv_sys_global_symbol_to_cdecl=
7181fi
7182if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7183  echo "$as_me:$LINENO: result: failed" >&5
7184echo "${ECHO_T}failed" >&6
7185else
7186  echo "$as_me:$LINENO: result: ok" >&5
7187echo "${ECHO_T}ok" >&6
7188fi
7189
7190echo "$as_me:$LINENO: checking for objdir" >&5
7191echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7192if test "${lt_cv_objdir+set}" = set; then
7193  echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195  rm -f .libs 2>/dev/null
7196mkdir .libs 2>/dev/null
7197if test -d .libs; then
7198  lt_cv_objdir=.libs
7199else
7200  # MS-DOS does not allow filenames that begin with a dot.
7201  lt_cv_objdir=_libs
7202fi
7203rmdir .libs 2>/dev/null
7204fi
7205echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7206echo "${ECHO_T}$lt_cv_objdir" >&6
7207objdir=$lt_cv_objdir
7208
7209
7210
7211
7212
7213case $host_os in
7214aix3*)
7215  # AIX sometimes has problems with the GCC collect2 program.  For some
7216  # reason, if we set the COLLECT_NAMES environment variable, the problems
7217  # vanish in a puff of smoke.
7218  if test "X${COLLECT_NAMES+set}" != Xset; then
7219    COLLECT_NAMES=
7220    export COLLECT_NAMES
7221  fi
7222  ;;
7223esac
7224
7225# Sed substitution that helps us do robust quoting.  It backslashifies
7226# metacharacters that are still active within double-quoted strings.
7227Xsed='sed -e 1s/^X//'
7228sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7229
7230# Same as above, but do not quote variable references.
7231double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7232
7233# Sed substitution to delay expansion of an escaped shell variable in a
7234# double_quote_subst'ed string.
7235delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7236
7237# Sed substitution to avoid accidental globbing in evaled expressions
7238no_glob_subst='s/\*/\\\*/g'
7239
7240# Constants:
7241rm="rm -f"
7242
7243# Global variables:
7244default_ofile=libtool
7245can_build_shared=yes
7246
7247# All known linkers require a `.a' archive for static linking (except MSVC,
7248# which needs '.lib').
7249libext=a
7250ltmain="$ac_aux_dir/ltmain.sh"
7251ofile="$default_ofile"
7252with_gnu_ld="$lt_cv_prog_gnu_ld"
7253
7254if test -n "$ac_tool_prefix"; then
7255  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7256set dummy ${ac_tool_prefix}ar; ac_word=$2
7257echo "$as_me:$LINENO: checking for $ac_word" >&5
7258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7259if test "${ac_cv_prog_AR+set}" = set; then
7260  echo $ECHO_N "(cached) $ECHO_C" >&6
7261else
7262  if test -n "$AR"; then
7263  ac_cv_prog_AR="$AR" # Let the user override the test.
7264else
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268  IFS=$as_save_IFS
7269  test -z "$as_dir" && as_dir=.
7270  for ac_exec_ext in '' $ac_executable_extensions; do
7271  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272    ac_cv_prog_AR="${ac_tool_prefix}ar"
7273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274    break 2
7275  fi
7276done
7277done
7278
7279fi
7280fi
7281AR=$ac_cv_prog_AR
7282if test -n "$AR"; then
7283  echo "$as_me:$LINENO: result: $AR" >&5
7284echo "${ECHO_T}$AR" >&6
7285else
7286  echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6
7288fi
7289
7290fi
7291if test -z "$ac_cv_prog_AR"; then
7292  ac_ct_AR=$AR
7293  # Extract the first word of "ar", so it can be a program name with args.
7294set dummy ar; 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_ac_ct_AR+set}" = set; then
7298  echo $ECHO_N "(cached) $ECHO_C" >&6
7299else
7300  if test -n "$ac_ct_AR"; then
7301  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
7311    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312    break 2
7313  fi
7314done
7315done
7316
7317  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7318fi
7319fi
7320ac_ct_AR=$ac_cv_prog_ac_ct_AR
7321if test -n "$ac_ct_AR"; then
7322  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7323echo "${ECHO_T}$ac_ct_AR" >&6
7324else
7325  echo "$as_me:$LINENO: result: no" >&5
7326echo "${ECHO_T}no" >&6
7327fi
7328
7329  AR=$ac_ct_AR
7330else
7331  AR="$ac_cv_prog_AR"
7332fi
7333
7334if test -n "$ac_tool_prefix"; then
7335  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7336set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7337echo "$as_me:$LINENO: checking for $ac_word" >&5
7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7339if test "${ac_cv_prog_RANLIB+set}" = set; then
7340  echo $ECHO_N "(cached) $ECHO_C" >&6
7341else
7342  if test -n "$RANLIB"; then
7343  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7344else
7345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348  IFS=$as_save_IFS
7349  test -z "$as_dir" && as_dir=.
7350  for ac_exec_ext in '' $ac_executable_extensions; do
7351  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7353    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354    break 2
7355  fi
7356done
7357done
7358
7359fi
7360fi
7361RANLIB=$ac_cv_prog_RANLIB
7362if test -n "$RANLIB"; then
7363  echo "$as_me:$LINENO: result: $RANLIB" >&5
7364echo "${ECHO_T}$RANLIB" >&6
7365else
7366  echo "$as_me:$LINENO: result: no" >&5
7367echo "${ECHO_T}no" >&6
7368fi
7369
7370fi
7371if test -z "$ac_cv_prog_RANLIB"; then
7372  ac_ct_RANLIB=$RANLIB
7373  # Extract the first word of "ranlib", so it can be a program name with args.
7374set dummy ranlib; ac_word=$2
7375echo "$as_me:$LINENO: checking for $ac_word" >&5
7376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7377if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7378  echo $ECHO_N "(cached) $ECHO_C" >&6
7379else
7380  if test -n "$ac_ct_RANLIB"; then
7381  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7382else
7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386  IFS=$as_save_IFS
7387  test -z "$as_dir" && as_dir=.
7388  for ac_exec_ext in '' $ac_executable_extensions; do
7389  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390    ac_cv_prog_ac_ct_RANLIB="ranlib"
7391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392    break 2
7393  fi
7394done
7395done
7396
7397  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7398fi
7399fi
7400ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7401if test -n "$ac_ct_RANLIB"; then
7402  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7403echo "${ECHO_T}$ac_ct_RANLIB" >&6
7404else
7405  echo "$as_me:$LINENO: result: no" >&5
7406echo "${ECHO_T}no" >&6
7407fi
7408
7409  RANLIB=$ac_ct_RANLIB
7410else
7411  RANLIB="$ac_cv_prog_RANLIB"
7412fi
7413
7414if test -n "$ac_tool_prefix"; then
7415  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7416set dummy ${ac_tool_prefix}strip; ac_word=$2
7417echo "$as_me:$LINENO: checking for $ac_word" >&5
7418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7419if test "${ac_cv_prog_STRIP+set}" = set; then
7420  echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422  if test -n "$STRIP"; then
7423  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7424else
7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428  IFS=$as_save_IFS
7429  test -z "$as_dir" && as_dir=.
7430  for ac_exec_ext in '' $ac_executable_extensions; do
7431  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7433    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434    break 2
7435  fi
7436done
7437done
7438
7439fi
7440fi
7441STRIP=$ac_cv_prog_STRIP
7442if test -n "$STRIP"; then
7443  echo "$as_me:$LINENO: result: $STRIP" >&5
7444echo "${ECHO_T}$STRIP" >&6
7445else
7446  echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6
7448fi
7449
7450fi
7451if test -z "$ac_cv_prog_STRIP"; then
7452  ac_ct_STRIP=$STRIP
7453  # Extract the first word of "strip", so it can be a program name with args.
7454set dummy strip; ac_word=$2
7455echo "$as_me:$LINENO: checking for $ac_word" >&5
7456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7457if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7458  echo $ECHO_N "(cached) $ECHO_C" >&6
7459else
7460  if test -n "$ac_ct_STRIP"; then
7461  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7462else
7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464for as_dir in $PATH
7465do
7466  IFS=$as_save_IFS
7467  test -z "$as_dir" && as_dir=.
7468  for ac_exec_ext in '' $ac_executable_extensions; do
7469  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470    ac_cv_prog_ac_ct_STRIP="strip"
7471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472    break 2
7473  fi
7474done
7475done
7476
7477  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7478fi
7479fi
7480ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7481if test -n "$ac_ct_STRIP"; then
7482  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7483echo "${ECHO_T}$ac_ct_STRIP" >&6
7484else
7485  echo "$as_me:$LINENO: result: no" >&5
7486echo "${ECHO_T}no" >&6
7487fi
7488
7489  STRIP=$ac_ct_STRIP
7490else
7491  STRIP="$ac_cv_prog_STRIP"
7492fi
7493
7494
7495old_CC="$CC"
7496old_CFLAGS="$CFLAGS"
7497
7498# Set sane defaults for various variables
7499test -z "$AR" && AR=ar
7500test -z "$AR_FLAGS" && AR_FLAGS=cru
7501test -z "$AS" && AS=as
7502test -z "$CC" && CC=cc
7503test -z "$LTCC" && LTCC=$CC
7504test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7505test -z "$DLLTOOL" && DLLTOOL=dlltool
7506test -z "$LD" && LD=ld
7507test -z "$LN_S" && LN_S="ln -s"
7508test -z "$MAGIC_CMD" && MAGIC_CMD=file
7509test -z "$NM" && NM=nm
7510test -z "$SED" && SED=sed
7511test -z "$OBJDUMP" && OBJDUMP=objdump
7512test -z "$RANLIB" && RANLIB=:
7513test -z "$STRIP" && STRIP=:
7514test -z "$ac_objext" && ac_objext=o
7515
7516# Determine commands to create old-style static archives.
7517old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7518old_postinstall_cmds='chmod 644 $oldlib'
7519old_postuninstall_cmds=
7520
7521if test -n "$RANLIB"; then
7522  case $host_os in
7523  openbsd*)
7524    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7525    ;;
7526  *)
7527    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7528    ;;
7529  esac
7530  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7531fi
7532
7533for cc_temp in $compiler""; do
7534  case $cc_temp in
7535    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7536    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7537    \-*) ;;
7538    *) break;;
7539  esac
7540done
7541cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7542
7543
7544# Only perform the check for file, if the check method requires it
7545case $deplibs_check_method in
7546file_magic*)
7547  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7548    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7549echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7550if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7551  echo $ECHO_N "(cached) $ECHO_C" >&6
7552else
7553  case $MAGIC_CMD in
7554[\\/*] |  ?:[\\/]*)
7555  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7556  ;;
7557*)
7558  lt_save_MAGIC_CMD="$MAGIC_CMD"
7559  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7560  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7561  for ac_dir in $ac_dummy; do
7562    IFS="$lt_save_ifs"
7563    test -z "$ac_dir" && ac_dir=.
7564    if test -f $ac_dir/${ac_tool_prefix}file; then
7565      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7566      if test -n "$file_magic_test_file"; then
7567        case $deplibs_check_method in
7568        "file_magic "*)
7569          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7570          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7571          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7572            $EGREP "$file_magic_regex" > /dev/null; then
7573            :
7574          else
7575            cat <<EOF 1>&2
7576
7577*** Warning: the command libtool uses to detect shared libraries,
7578*** $file_magic_cmd, produces output that libtool cannot recognize.
7579*** The result is that libtool may fail to recognize shared libraries
7580*** as such.  This will affect the creation of libtool libraries that
7581*** depend on shared libraries, but programs linked with such libtool
7582*** libraries will work regardless of this problem.  Nevertheless, you
7583*** may want to report the problem to your system manager and/or to
7584*** bug-libtool@gnu.org
7585
7586EOF
7587          fi ;;
7588        esac
7589      fi
7590      break
7591    fi
7592  done
7593  IFS="$lt_save_ifs"
7594  MAGIC_CMD="$lt_save_MAGIC_CMD"
7595  ;;
7596esac
7597fi
7598
7599MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7600if test -n "$MAGIC_CMD"; then
7601  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7602echo "${ECHO_T}$MAGIC_CMD" >&6
7603else
7604  echo "$as_me:$LINENO: result: no" >&5
7605echo "${ECHO_T}no" >&6
7606fi
7607
7608if test -z "$lt_cv_path_MAGIC_CMD"; then
7609  if test -n "$ac_tool_prefix"; then
7610    echo "$as_me:$LINENO: checking for file" >&5
7611echo $ECHO_N "checking for file... $ECHO_C" >&6
7612if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7613  echo $ECHO_N "(cached) $ECHO_C" >&6
7614else
7615  case $MAGIC_CMD in
7616[\\/*] |  ?:[\\/]*)
7617  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7618  ;;
7619*)
7620  lt_save_MAGIC_CMD="$MAGIC_CMD"
7621  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7622  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7623  for ac_dir in $ac_dummy; do
7624    IFS="$lt_save_ifs"
7625    test -z "$ac_dir" && ac_dir=.
7626    if test -f $ac_dir/file; then
7627      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7628      if test -n "$file_magic_test_file"; then
7629        case $deplibs_check_method in
7630        "file_magic "*)
7631          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7632          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7633          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7634            $EGREP "$file_magic_regex" > /dev/null; then
7635            :
7636          else
7637            cat <<EOF 1>&2
7638
7639*** Warning: the command libtool uses to detect shared libraries,
7640*** $file_magic_cmd, produces output that libtool cannot recognize.
7641*** The result is that libtool may fail to recognize shared libraries
7642*** as such.  This will affect the creation of libtool libraries that
7643*** depend on shared libraries, but programs linked with such libtool
7644*** libraries will work regardless of this problem.  Nevertheless, you
7645*** may want to report the problem to your system manager and/or to
7646*** bug-libtool@gnu.org
7647
7648EOF
7649          fi ;;
7650        esac
7651      fi
7652      break
7653    fi
7654  done
7655  IFS="$lt_save_ifs"
7656  MAGIC_CMD="$lt_save_MAGIC_CMD"
7657  ;;
7658esac
7659fi
7660
7661MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7662if test -n "$MAGIC_CMD"; then
7663  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7664echo "${ECHO_T}$MAGIC_CMD" >&6
7665else
7666  echo "$as_me:$LINENO: result: no" >&5
7667echo "${ECHO_T}no" >&6
7668fi
7669
7670  else
7671    MAGIC_CMD=:
7672  fi
7673fi
7674
7675  fi
7676  ;;
7677esac
7678
7679enable_dlopen=no
7680enable_win32_dll=no
7681
7682# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7683if test "${enable_libtool_lock+set}" = set; then
7684  enableval="$enable_libtool_lock"
7685
7686fi;
7687test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7688
7689
7690# Check whether --with-pic or --without-pic was given.
7691if test "${with_pic+set}" = set; then
7692  withval="$with_pic"
7693  pic_mode="$withval"
7694else
7695  pic_mode=default
7696fi;
7697test -z "$pic_mode" && pic_mode=default
7698
7699# Use C for the default configuration in the libtool script
7700tagname=
7701lt_save_CC="$CC"
7702ac_ext=c
7703ac_cpp='$CPP $CPPFLAGS'
7704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7706ac_compiler_gnu=$ac_cv_c_compiler_gnu
7707
7708
7709# Source file extension for C test sources.
7710ac_ext=c
7711
7712# Object file extension for compiled C test sources.
7713objext=o
7714objext=$objext
7715
7716# Code to be used in simple compile tests
7717lt_simple_compile_test_code="int some_variable = 0;\n"
7718
7719# Code to be used in simple link tests
7720lt_simple_link_test_code='int main(){return(0);}\n'
7721
7722
7723# If no C compiler was specified, use CC.
7724LTCC=${LTCC-"$CC"}
7725
7726# If no C compiler flags were specified, use CFLAGS.
7727LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7728
7729# Allow CC to be a program name with arguments.
7730compiler=$CC
7731
7732
7733# save warnings/boilerplate of simple test code
7734ac_outfile=conftest.$ac_objext
7735printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7736eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7737_lt_compiler_boilerplate=`cat conftest.err`
7738$rm conftest*
7739
7740ac_outfile=conftest.$ac_objext
7741printf "$lt_simple_link_test_code" >conftest.$ac_ext
7742eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7743_lt_linker_boilerplate=`cat conftest.err`
7744$rm conftest*
7745
7746
7747## CAVEAT EMPTOR:
7748## There is no encapsulation within the following macros, do not change
7749## the running order or otherwise move them around unless you know exactly
7750## what you are doing...
7751
7752lt_prog_compiler_no_builtin_flag=
7753
7754if test "$GCC" = yes; then
7755  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7756
7757
7758echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7759echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7760if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7761  echo $ECHO_N "(cached) $ECHO_C" >&6
7762else
7763  lt_cv_prog_compiler_rtti_exceptions=no
7764  ac_outfile=conftest.$ac_objext
7765   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7766   lt_compiler_flag="-fno-rtti -fno-exceptions"
7767   # Insert the option either (1) after the last *FLAGS variable, or
7768   # (2) before a word containing "conftest.", or (3) at the end.
7769   # Note that $ac_compile itself does not contain backslashes and begins
7770   # with a dollar sign (not a hyphen), so the echo should work correctly.
7771   # The option is referenced via a variable to avoid confusing sed.
7772   lt_compile=`echo "$ac_compile" | $SED \
7773   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7774   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7775   -e 's:$: $lt_compiler_flag:'`
7776   (eval echo "\"\$as_me:7776: $lt_compile\"" >&5)
7777   (eval "$lt_compile" 2>conftest.err)
7778   ac_status=$?
7779   cat conftest.err >&5
7780   echo "$as_me:7780: \$? = $ac_status" >&5
7781   if (exit $ac_status) && test -s "$ac_outfile"; then
7782     # The compiler can only warn and ignore the option if not recognized
7783     # So say no if there are warnings other than the usual output.
7784     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7785     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7786     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7787       lt_cv_prog_compiler_rtti_exceptions=yes
7788     fi
7789   fi
7790   $rm conftest*
7791
7792fi
7793echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7794echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7795
7796if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7797    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7798else
7799    :
7800fi
7801
7802fi
7803
7804lt_prog_compiler_wl=
7805lt_prog_compiler_pic=
7806lt_prog_compiler_static=
7807
7808echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7809echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7810
7811  if test "$GCC" = yes; then
7812    lt_prog_compiler_wl='-Wl,'
7813    lt_prog_compiler_static='-static'
7814
7815    case $host_os in
7816      aix*)
7817      # All AIX code is PIC.
7818      if test "$host_cpu" = ia64; then
7819        # AIX 5 now supports IA64 processor
7820        lt_prog_compiler_static='-Bstatic'
7821      fi
7822      ;;
7823
7824    amigaos*)
7825      # FIXME: we need at least 68020 code to build shared libraries, but
7826      # adding the `-m68020' flag to GCC prevents building anything better,
7827      # like `-m68040'.
7828      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7829      ;;
7830
7831    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7832      # PIC is the default for these OSes.
7833      ;;
7834
7835    mingw* | pw32* | os2*)
7836      # This hack is so that the source file can tell whether it is being
7837      # built for inclusion in a dll (and should export symbols for example).
7838      lt_prog_compiler_pic='-DDLL_EXPORT'
7839      ;;
7840
7841    darwin* | rhapsody*)
7842      # PIC is the default on this platform
7843      # Common symbols not allowed in MH_DYLIB files
7844      lt_prog_compiler_pic='-fno-common'
7845      ;;
7846
7847    interix3*)
7848      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7849      # Instead, we relocate shared libraries at runtime.
7850      ;;
7851
7852    msdosdjgpp*)
7853      # Just because we use GCC doesn't mean we suddenly get shared libraries
7854      # on systems that don't support them.
7855      lt_prog_compiler_can_build_shared=no
7856      enable_shared=no
7857      ;;
7858
7859    sysv4*MP*)
7860      if test -d /usr/nec; then
7861        lt_prog_compiler_pic=-Kconform_pic
7862      fi
7863      ;;
7864
7865    hpux*)
7866      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7867      # not for PA HP-UX.
7868      case $host_cpu in
7869      hppa*64*|ia64*)
7870        # +Z the default
7871        ;;
7872      *)
7873        lt_prog_compiler_pic='-fPIC'
7874        ;;
7875      esac
7876      ;;
7877
7878    *)
7879      lt_prog_compiler_pic='-fPIC'
7880      ;;
7881    esac
7882  else
7883    # PORTME Check for flag to pass linker flags through the system compiler.
7884    case $host_os in
7885    aix*)
7886      lt_prog_compiler_wl='-Wl,'
7887      if test "$host_cpu" = ia64; then
7888        # AIX 5 now supports IA64 processor
7889        lt_prog_compiler_static='-Bstatic'
7890      else
7891        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7892      fi
7893      ;;
7894      darwin*)
7895        # PIC is the default on this platform
7896        # Common symbols not allowed in MH_DYLIB files
7897       case $cc_basename in
7898         xlc*)
7899         lt_prog_compiler_pic='-qnocommon'
7900         lt_prog_compiler_wl='-Wl,'
7901         ;;
7902       esac
7903       ;;
7904
7905    mingw* | pw32* | os2*)
7906      # This hack is so that the source file can tell whether it is being
7907      # built for inclusion in a dll (and should export symbols for example).
7908      lt_prog_compiler_pic='-DDLL_EXPORT'
7909      ;;
7910
7911    hpux9* | hpux10* | hpux11*)
7912      lt_prog_compiler_wl='-Wl,'
7913      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7914      # not for PA HP-UX.
7915      case $host_cpu in
7916      hppa*64*|ia64*)
7917        # +Z the default
7918        ;;
7919      *)
7920        lt_prog_compiler_pic='+Z'
7921        ;;
7922      esac
7923      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7924      lt_prog_compiler_static='${wl}-a ${wl}archive'
7925      ;;
7926
7927    irix5* | irix6* | nonstopux*)
7928      lt_prog_compiler_wl='-Wl,'
7929      # PIC (with -KPIC) is the default.
7930      lt_prog_compiler_static='-non_shared'
7931      ;;
7932
7933    newsos6)
7934      lt_prog_compiler_pic='-KPIC'
7935      lt_prog_compiler_static='-Bstatic'
7936      ;;
7937
7938    linux*)
7939      case $cc_basename in
7940      icc* | ecc*)
7941        lt_prog_compiler_wl='-Wl,'
7942        lt_prog_compiler_pic='-KPIC'
7943        lt_prog_compiler_static='-static'
7944        ;;
7945      pgcc* | pgf77* | pgf90* | pgf95*)
7946        # Portland Group compilers (*not* the Pentium gcc compiler,
7947        # which looks to be a dead project)
7948        lt_prog_compiler_wl='-Wl,'
7949        lt_prog_compiler_pic='-fpic'
7950        lt_prog_compiler_static='-Bstatic'
7951        ;;
7952      ccc*)
7953        lt_prog_compiler_wl='-Wl,'
7954        # All Alpha code is PIC.
7955        lt_prog_compiler_static='-non_shared'
7956        ;;
7957      esac
7958      ;;
7959
7960    osf3* | osf4* | osf5*)
7961      lt_prog_compiler_wl='-Wl,'
7962      # All OSF/1 code is PIC.
7963      lt_prog_compiler_static='-non_shared'
7964      ;;
7965
7966    solaris*)
7967      lt_prog_compiler_pic='-KPIC'
7968      lt_prog_compiler_static='-Bstatic'
7969      case $cc_basename in
7970      f77* | f90* | f95*)
7971        lt_prog_compiler_wl='-Qoption ld ';;
7972      *)
7973        lt_prog_compiler_wl='-Wl,';;
7974      esac
7975      ;;
7976
7977    sunos4*)
7978      lt_prog_compiler_wl='-Qoption ld '
7979      lt_prog_compiler_pic='-PIC'
7980      lt_prog_compiler_static='-Bstatic'
7981      ;;
7982
7983    sysv4 | sysv4.2uw2* | sysv4.3*)
7984      lt_prog_compiler_wl='-Wl,'
7985      lt_prog_compiler_pic='-KPIC'
7986      lt_prog_compiler_static='-Bstatic'
7987      ;;
7988
7989    sysv4*MP*)
7990      if test -d /usr/nec ;then
7991        lt_prog_compiler_pic='-Kconform_pic'
7992        lt_prog_compiler_static='-Bstatic'
7993      fi
7994      ;;
7995
7996    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7997      lt_prog_compiler_wl='-Wl,'
7998      lt_prog_compiler_pic='-KPIC'
7999      lt_prog_compiler_static='-Bstatic'
8000      ;;
8001
8002    unicos*)
8003      lt_prog_compiler_wl='-Wl,'
8004      lt_prog_compiler_can_build_shared=no
8005      ;;
8006
8007    uts4*)
8008      lt_prog_compiler_pic='-pic'
8009      lt_prog_compiler_static='-Bstatic'
8010      ;;
8011
8012    *)
8013      lt_prog_compiler_can_build_shared=no
8014      ;;
8015    esac
8016  fi
8017
8018echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8019echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8020
8021#
8022# Check to make sure the PIC flag actually works.
8023#
8024if test -n "$lt_prog_compiler_pic"; then
8025
8026echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8027echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8028if test "${lt_prog_compiler_pic_works+set}" = set; then
8029  echo $ECHO_N "(cached) $ECHO_C" >&6
8030else
8031  lt_prog_compiler_pic_works=no
8032  ac_outfile=conftest.$ac_objext
8033   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8034   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8035   # Insert the option either (1) after the last *FLAGS variable, or
8036   # (2) before a word containing "conftest.", or (3) at the end.
8037   # Note that $ac_compile itself does not contain backslashes and begins
8038   # with a dollar sign (not a hyphen), so the echo should work correctly.
8039   # The option is referenced via a variable to avoid confusing sed.
8040   lt_compile=`echo "$ac_compile" | $SED \
8041   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8042   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8043   -e 's:$: $lt_compiler_flag:'`
8044   (eval echo "\"\$as_me:8044: $lt_compile\"" >&5)
8045   (eval "$lt_compile" 2>conftest.err)
8046   ac_status=$?
8047   cat conftest.err >&5
8048   echo "$as_me:8048: \$? = $ac_status" >&5
8049   if (exit $ac_status) && test -s "$ac_outfile"; then
8050     # The compiler can only warn and ignore the option if not recognized
8051     # So say no if there are warnings other than the usual output.
8052     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8053     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8054     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8055       lt_prog_compiler_pic_works=yes
8056     fi
8057   fi
8058   $rm conftest*
8059
8060fi
8061echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8062echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8063
8064if test x"$lt_prog_compiler_pic_works" = xyes; then
8065    case $lt_prog_compiler_pic in
8066     "" | " "*) ;;
8067     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8068     esac
8069else
8070    lt_prog_compiler_pic=
8071     lt_prog_compiler_can_build_shared=no
8072fi
8073
8074fi
8075case $host_os in
8076  # For platforms which do not support PIC, -DPIC is meaningless:
8077  *djgpp*)
8078    lt_prog_compiler_pic=
8079    ;;
8080  *)
8081    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8082    ;;
8083esac
8084
8085#
8086# Check to make sure the static flag actually works.
8087#
8088wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8089echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8090echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8091if test "${lt_prog_compiler_static_works+set}" = set; then
8092  echo $ECHO_N "(cached) $ECHO_C" >&6
8093else
8094  lt_prog_compiler_static_works=no
8095   save_LDFLAGS="$LDFLAGS"
8096   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8097   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8098   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8099     # The linker can only warn and ignore the option if not recognized
8100     # So say no if there are warnings
8101     if test -s conftest.err; then
8102       # Append any errors to the config.log.
8103       cat conftest.err 1>&5
8104       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8105       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8106       if diff conftest.exp conftest.er2 >/dev/null; then
8107         lt_prog_compiler_static_works=yes
8108       fi
8109     else
8110       lt_prog_compiler_static_works=yes
8111     fi
8112   fi
8113   $rm conftest*
8114   LDFLAGS="$save_LDFLAGS"
8115
8116fi
8117echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8118echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8119
8120if test x"$lt_prog_compiler_static_works" = xyes; then
8121    :
8122else
8123    lt_prog_compiler_static=
8124fi
8125
8126
8127echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8128echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8129if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8130  echo $ECHO_N "(cached) $ECHO_C" >&6
8131else
8132  lt_cv_prog_compiler_c_o=no
8133   $rm -r conftest 2>/dev/null
8134   mkdir conftest
8135   cd conftest
8136   mkdir out
8137   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8138
8139   lt_compiler_flag="-o out/conftest2.$ac_objext"
8140   # Insert the option either (1) after the last *FLAGS variable, or
8141   # (2) before a word containing "conftest.", or (3) at the end.
8142   # Note that $ac_compile itself does not contain backslashes and begins
8143   # with a dollar sign (not a hyphen), so the echo should work correctly.
8144   lt_compile=`echo "$ac_compile" | $SED \
8145   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8146   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8147   -e 's:$: $lt_compiler_flag:'`
8148   (eval echo "\"\$as_me:8148: $lt_compile\"" >&5)
8149   (eval "$lt_compile" 2>out/conftest.err)
8150   ac_status=$?
8151   cat out/conftest.err >&5
8152   echo "$as_me:8152: \$? = $ac_status" >&5
8153   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8154   then
8155     # The compiler can only warn and ignore the option if not recognized
8156     # So say no if there are warnings
8157     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8158     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8159     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8160       lt_cv_prog_compiler_c_o=yes
8161     fi
8162   fi
8163   chmod u+w . 2>&5
8164   $rm conftest*
8165   # SGI C++ compiler will create directory out/ii_files/ for
8166   # template instantiation
8167   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8168   $rm out/* && rmdir out
8169   cd ..
8170   rmdir conftest
8171   $rm conftest*
8172
8173fi
8174echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8175echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8176
8177
8178hard_links="nottested"
8179if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8180  # do not overwrite the value of need_locks provided by the user
8181  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8182echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8183  hard_links=yes
8184  $rm conftest*
8185  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8186  touch conftest.a
8187  ln conftest.a conftest.b 2>&5 || hard_links=no
8188  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8189  echo "$as_me:$LINENO: result: $hard_links" >&5
8190echo "${ECHO_T}$hard_links" >&6
8191  if test "$hard_links" = no; then
8192    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8193echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8194    need_locks=warn
8195  fi
8196else
8197  need_locks=no
8198fi
8199
8200echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8201echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8202
8203  runpath_var=
8204  allow_undefined_flag=
8205  enable_shared_with_static_runtimes=no
8206  archive_cmds=
8207  archive_expsym_cmds=
8208  old_archive_From_new_cmds=
8209  old_archive_from_expsyms_cmds=
8210  export_dynamic_flag_spec=
8211  whole_archive_flag_spec=
8212  thread_safe_flag_spec=
8213  hardcode_libdir_flag_spec=
8214  hardcode_libdir_flag_spec_ld=
8215  hardcode_libdir_separator=
8216  hardcode_direct=no
8217  hardcode_minus_L=no
8218  hardcode_shlibpath_var=unsupported
8219  link_all_deplibs=unknown
8220  hardcode_automatic=no
8221  module_cmds=
8222  module_expsym_cmds=
8223  always_export_symbols=no
8224  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8225  # include_expsyms should be a list of space-separated symbols to be *always*
8226  # included in the symbol list
8227  include_expsyms=
8228  # exclude_expsyms can be an extended regexp of symbols to exclude
8229  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8230  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8231  # as well as any symbol that contains `d'.
8232  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8233  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8234  # platforms (ab)use it in PIC code, but their linkers get confused if
8235  # the symbol is explicitly referenced.  Since portable code cannot
8236  # rely on this symbol name, it's probably fine to never include it in
8237  # preloaded symbol tables.
8238  extract_expsyms_cmds=
8239  # Just being paranoid about ensuring that cc_basename is set.
8240  for cc_temp in $compiler""; do
8241  case $cc_temp in
8242    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8243    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8244    \-*) ;;
8245    *) break;;
8246  esac
8247done
8248cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8249
8250  case $host_os in
8251  cygwin* | mingw* | pw32*)
8252    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8253    # When not using gcc, we currently assume that we are using
8254    # Microsoft Visual C++.
8255    if test "$GCC" != yes; then
8256      with_gnu_ld=no
8257    fi
8258    ;;
8259  interix*)
8260    # we just hope/assume this is gcc and not c89 (= MSVC++)
8261    with_gnu_ld=yes
8262    ;;
8263  openbsd*)
8264    with_gnu_ld=no
8265    ;;
8266  esac
8267
8268  ld_shlibs=yes
8269  if test "$with_gnu_ld" = yes; then
8270    # If archive_cmds runs LD, not CC, wlarc should be empty
8271    wlarc='${wl}'
8272
8273    # Set some defaults for GNU ld with shared library support. These
8274    # are reset later if shared libraries are not supported. Putting them
8275    # here allows them to be overridden if necessary.
8276    runpath_var=LD_RUN_PATH
8277    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8278    export_dynamic_flag_spec='${wl}--export-dynamic'
8279    # ancient GNU ld didn't support --whole-archive et. al.
8280    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8281        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8282      else
8283        whole_archive_flag_spec=
8284    fi
8285    supports_anon_versioning=no
8286    case `$LD -v 2>/dev/null` in
8287      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8288      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8289      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8290      *\ 2.11.*) ;; # other 2.11 versions
8291      *) supports_anon_versioning=yes ;;
8292    esac
8293
8294    # See if GNU ld supports shared libraries.
8295    case $host_os in
8296    aix3* | aix4* | aix5*)
8297      # On AIX/PPC, the GNU linker is very broken
8298      if test "$host_cpu" != ia64; then
8299        ld_shlibs=no
8300        cat <<EOF 1>&2
8301
8302*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8303*** to be unable to reliably create shared libraries on AIX.
8304*** Therefore, libtool is disabling shared libraries support.  If you
8305*** really care for shared libraries, you may want to modify your PATH
8306*** so that a non-GNU linker is found, and then restart.
8307
8308EOF
8309      fi
8310      ;;
8311
8312    amigaos*)
8313      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)'
8314      hardcode_libdir_flag_spec='-L$libdir'
8315      hardcode_minus_L=yes
8316
8317      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8318      # that the semantics of dynamic libraries on AmigaOS, at least up
8319      # to version 4, is to share data among multiple programs linked
8320      # with the same dynamic library.  Since this doesn't match the
8321      # behavior of shared libraries on other platforms, we can't use
8322      # them.
8323      ld_shlibs=no
8324      ;;
8325
8326    beos*)
8327      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8328        allow_undefined_flag=unsupported
8329        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8330        # support --undefined.  This deserves some investigation.  FIXME
8331        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8332      else
8333        ld_shlibs=no
8334      fi
8335      ;;
8336
8337    cygwin* | mingw* | pw32*)
8338      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8339      # as there is no search path for DLLs.
8340      hardcode_libdir_flag_spec='-L$libdir'
8341      allow_undefined_flag=unsupported
8342      always_export_symbols=no
8343      enable_shared_with_static_runtimes=yes
8344      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8345
8346      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8347        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8348        # If the export-symbols file already is a .def file (1st line
8349        # is EXPORTS), use it as is; otherwise, prepend...
8350        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8351          cp $export_symbols $output_objdir/$soname.def;
8352        else
8353          echo EXPORTS > $output_objdir/$soname.def;
8354          cat $export_symbols >> $output_objdir/$soname.def;
8355        fi~
8356        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8357      else
8358        ld_shlibs=no
8359      fi
8360      ;;
8361
8362    interix3*)
8363      hardcode_direct=no
8364      hardcode_shlibpath_var=no
8365      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8366      export_dynamic_flag_spec='${wl}-E'
8367      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8368      # Instead, shared libraries are loaded at an image base (0x10000000 by
8369      # default) and relocated if they conflict, which is a slow very memory
8370      # consuming and fragmenting process.  To avoid this, we pick a random,
8371      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8372      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8373      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8374      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'
8375      ;;
8376
8377    linux*)
8378      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8379        tmp_addflag=
8380        case $cc_basename,$host_cpu in
8381        pgcc*)                          # Portland Group C compiler
8382          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'
8383          tmp_addflag=' $pic_flag'
8384          ;;
8385        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8386          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'
8387          tmp_addflag=' $pic_flag -Mnomain' ;;
8388        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8389          tmp_addflag=' -i_dynamic' ;;
8390        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8391          tmp_addflag=' -i_dynamic -nofor_main' ;;
8392        ifc* | ifort*)                  # Intel Fortran compiler
8393          tmp_addflag=' -nofor_main' ;;
8394        esac
8395        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8396
8397        if test $supports_anon_versioning = yes; then
8398          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8399  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8400  $echo "local: *; };" >> $output_objdir/$libname.ver~
8401          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8402        fi
8403      else
8404        ld_shlibs=no
8405      fi
8406      ;;
8407
8408    netbsd*)
8409      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8410        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8411        wlarc=
8412      else
8413        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8414        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8415      fi
8416      ;;
8417
8418    solaris*)
8419      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8420        ld_shlibs=no
8421        cat <<EOF 1>&2
8422
8423*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8424*** create shared libraries on Solaris systems.  Therefore, libtool
8425*** is disabling shared libraries support.  We urge you to upgrade GNU
8426*** binutils to release 2.9.1 or newer.  Another option is to modify
8427*** your PATH or compiler configuration so that the native linker is
8428*** used, and then restart.
8429
8430EOF
8431      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8432        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8433        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8434      else
8435        ld_shlibs=no
8436      fi
8437      ;;
8438
8439    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8440      case `$LD -v 2>&1` in
8441        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8442        ld_shlibs=no
8443        cat <<_LT_EOF 1>&2
8444
8445*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8446*** reliably create shared libraries on SCO systems.  Therefore, libtool
8447*** is disabling shared libraries support.  We urge you to upgrade GNU
8448*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8449*** your PATH or compiler configuration so that the native linker is
8450*** used, and then restart.
8451
8452_LT_EOF
8453        ;;
8454        *)
8455          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8456            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8457            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8458            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8459          else
8460            ld_shlibs=no
8461          fi
8462        ;;
8463      esac
8464      ;;
8465
8466    sunos4*)
8467      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8468      wlarc=
8469      hardcode_direct=yes
8470      hardcode_shlibpath_var=no
8471      ;;
8472
8473    *)
8474      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8475        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8476        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8477      else
8478        ld_shlibs=no
8479      fi
8480      ;;
8481    esac
8482
8483    if test "$ld_shlibs" = no; then
8484      runpath_var=
8485      hardcode_libdir_flag_spec=
8486      export_dynamic_flag_spec=
8487      whole_archive_flag_spec=
8488    fi
8489  else
8490    # PORTME fill in a description of your system's linker (not GNU ld)
8491    case $host_os in
8492    aix3*)
8493      allow_undefined_flag=unsupported
8494      always_export_symbols=yes
8495      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'
8496      # Note: this linker hardcodes the directories in LIBPATH if there
8497      # are no directories specified by -L.
8498      hardcode_minus_L=yes
8499      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8500        # Neither direct hardcoding nor static linking is supported with a
8501        # broken collect2.
8502        hardcode_direct=unsupported
8503      fi
8504      ;;
8505
8506    aix4* | aix5*)
8507      if test "$host_cpu" = ia64; then
8508        # On IA64, the linker does run time linking by default, so we don't
8509        # have to do anything special.
8510        aix_use_runtimelinking=no
8511        exp_sym_flag='-Bexport'
8512        no_entry_flag=""
8513      else
8514        # If we're using GNU nm, then we don't want the "-C" option.
8515        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8516        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8517          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'
8518        else
8519          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'
8520        fi
8521        aix_use_runtimelinking=no
8522
8523        # Test if we are trying to use run time linking or normal
8524        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8525        # need to do runtime linking.
8526        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8527          for ld_flag in $LDFLAGS; do
8528          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8529            aix_use_runtimelinking=yes
8530            break
8531          fi
8532          done
8533          ;;
8534        esac
8535
8536        exp_sym_flag='-bexport'
8537        no_entry_flag='-bnoentry'
8538      fi
8539
8540      # When large executables or shared objects are built, AIX ld can
8541      # have problems creating the table of contents.  If linking a library
8542      # or program results in "error TOC overflow" add -mminimal-toc to
8543      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8544      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8545
8546      archive_cmds=''
8547      hardcode_direct=yes
8548      hardcode_libdir_separator=':'
8549      link_all_deplibs=yes
8550
8551      if test "$GCC" = yes; then
8552        case $host_os in aix4.[012]|aix4.[012].*)
8553        # We only want to do this on AIX 4.2 and lower, the check
8554        # below for broken collect2 doesn't work under 4.3+
8555          collect2name=`${CC} -print-prog-name=collect2`
8556          if test -f "$collect2name" && \
8557           strings "$collect2name" | grep resolve_lib_name >/dev/null
8558          then
8559          # We have reworked collect2
8560          hardcode_direct=yes
8561          else
8562          # We have old collect2
8563          hardcode_direct=unsupported
8564          # It fails to find uninstalled libraries when the uninstalled
8565          # path is not listed in the libpath.  Setting hardcode_minus_L
8566          # to unsupported forces relinking
8567          hardcode_minus_L=yes
8568          hardcode_libdir_flag_spec='-L$libdir'
8569          hardcode_libdir_separator=
8570          fi
8571          ;;
8572        esac
8573        shared_flag='-shared'
8574        if test "$aix_use_runtimelinking" = yes; then
8575          shared_flag="$shared_flag "'${wl}-G'
8576        fi
8577      else
8578        # not using gcc
8579        if test "$host_cpu" = ia64; then
8580        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8581        # chokes on -Wl,-G. The following line is correct:
8582          shared_flag='-G'
8583        else
8584          if test "$aix_use_runtimelinking" = yes; then
8585            shared_flag='${wl}-G'
8586          else
8587            shared_flag='${wl}-bM:SRE'
8588          fi
8589        fi
8590      fi
8591
8592      # It seems that -bexpall does not export symbols beginning with
8593      # underscore (_), so it is better to generate a list of symbols to export.
8594      always_export_symbols=yes
8595      if test "$aix_use_runtimelinking" = yes; then
8596        # Warning - without using the other runtime loading flags (-brtl),
8597        # -berok will link without error, but may produce a broken library.
8598        allow_undefined_flag='-berok'
8599       # Determine the default libpath from the value encoded in an empty executable.
8600       cat >conftest.$ac_ext <<_ACEOF
8601/* confdefs.h.  */
8602_ACEOF
8603cat confdefs.h >>conftest.$ac_ext
8604cat >>conftest.$ac_ext <<_ACEOF
8605/* end confdefs.h.  */
8606
8607int
8608main ()
8609{
8610
8611  ;
8612  return 0;
8613}
8614_ACEOF
8615rm -f conftest.$ac_objext conftest$ac_exeext
8616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617  (eval $ac_link) 2>conftest.er1
8618  ac_status=$?
8619  grep -v '^ *+' conftest.er1 >conftest.err
8620  rm -f conftest.er1
8621  cat conftest.err >&5
8622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623  (exit $ac_status); } &&
8624         { ac_try='test -z "$ac_c_werror_flag"
8625                         || test ! -s conftest.err'
8626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627  (eval $ac_try) 2>&5
8628  ac_status=$?
8629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630  (exit $ac_status); }; } &&
8631         { ac_try='test -s conftest$ac_exeext'
8632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633  (eval $ac_try) 2>&5
8634  ac_status=$?
8635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636  (exit $ac_status); }; }; then
8637
8638aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8639}'`
8640# Check for a 64-bit object if we didn't find anything.
8641if 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; }
8642}'`; fi
8643else
8644  echo "$as_me: failed program was:" >&5
8645sed 's/^/| /' conftest.$ac_ext >&5
8646
8647fi
8648rm -f conftest.err conftest.$ac_objext \
8649      conftest$ac_exeext conftest.$ac_ext
8650if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8651
8652       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8653        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"
8654       else
8655        if test "$host_cpu" = ia64; then
8656          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8657          allow_undefined_flag="-z nodefs"
8658          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"
8659        else
8660         # Determine the default libpath from the value encoded in an empty executable.
8661         cat >conftest.$ac_ext <<_ACEOF
8662/* confdefs.h.  */
8663_ACEOF
8664cat confdefs.h >>conftest.$ac_ext
8665cat >>conftest.$ac_ext <<_ACEOF
8666/* end confdefs.h.  */
8667
8668int
8669main ()
8670{
8671
8672  ;
8673  return 0;
8674}
8675_ACEOF
8676rm -f conftest.$ac_objext conftest$ac_exeext
8677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678  (eval $ac_link) 2>conftest.er1
8679  ac_status=$?
8680  grep -v '^ *+' conftest.er1 >conftest.err
8681  rm -f conftest.er1
8682  cat conftest.err >&5
8683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); } &&
8685         { ac_try='test -z "$ac_c_werror_flag"
8686                         || test ! -s conftest.err'
8687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688  (eval $ac_try) 2>&5
8689  ac_status=$?
8690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691  (exit $ac_status); }; } &&
8692         { ac_try='test -s conftest$ac_exeext'
8693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694  (eval $ac_try) 2>&5
8695  ac_status=$?
8696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697  (exit $ac_status); }; }; then
8698
8699aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8700}'`
8701# Check for a 64-bit object if we didn't find anything.
8702if 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; }
8703}'`; fi
8704else
8705  echo "$as_me: failed program was:" >&5
8706sed 's/^/| /' conftest.$ac_ext >&5
8707
8708fi
8709rm -f conftest.err conftest.$ac_objext \
8710      conftest$ac_exeext conftest.$ac_ext
8711if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8712
8713         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8714          # Warning - without using the other run time loading flags,
8715          # -berok will link without error, but may produce a broken library.
8716          no_undefined_flag=' ${wl}-bernotok'
8717          allow_undefined_flag=' ${wl}-berok'
8718          # Exported symbols can be pulled into shared objects from archives
8719          whole_archive_flag_spec='$convenience'
8720          archive_cmds_need_lc=yes
8721          # This is similar to how AIX traditionally builds its shared libraries.
8722          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'
8723        fi
8724      fi
8725      ;;
8726
8727    amigaos*)
8728      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)'
8729      hardcode_libdir_flag_spec='-L$libdir'
8730      hardcode_minus_L=yes
8731      # see comment about different semantics on the GNU ld section
8732      ld_shlibs=no
8733      ;;
8734
8735    bsdi[45]*)
8736      export_dynamic_flag_spec=-rdynamic
8737      ;;
8738
8739    cygwin* | mingw* | pw32*)
8740      # When not using gcc, we currently assume that we are using
8741      # Microsoft Visual C++.
8742      # hardcode_libdir_flag_spec is actually meaningless, as there is
8743      # no search path for DLLs.
8744      hardcode_libdir_flag_spec=' '
8745      allow_undefined_flag=unsupported
8746      # Tell ltmain to make .lib files, not .a files.
8747      libext=lib
8748      # Tell ltmain to make .dll files, not .so files.
8749      shrext_cmds=".dll"
8750      # FIXME: Setting linknames here is a bad hack.
8751      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8752      # The linker will automatically build a .lib file if we build a DLL.
8753      old_archive_From_new_cmds='true'
8754      # FIXME: Should let the user specify the lib program.
8755      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8756      fix_srcfile_path='`cygpath -w "$srcfile"`'
8757      enable_shared_with_static_runtimes=yes
8758      ;;
8759
8760    darwin* | rhapsody*)
8761      case $host_os in
8762        rhapsody* | darwin1.[012])
8763         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8764         ;;
8765       *) # Darwin 1.3 on
8766         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8767           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8768         else
8769           case ${MACOSX_DEPLOYMENT_TARGET} in
8770             10.[012])
8771               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8772               ;;
8773             10.*)
8774               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8775               ;;
8776           esac
8777         fi
8778         ;;
8779      esac
8780      archive_cmds_need_lc=no
8781      hardcode_direct=no
8782      hardcode_automatic=yes
8783      hardcode_shlibpath_var=unsupported
8784      whole_archive_flag_spec=''
8785      link_all_deplibs=yes
8786    if test "$GCC" = yes ; then
8787        output_verbose_link_cmd='echo'
8788        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8789      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8790      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8791      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}'
8792      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}'
8793    else
8794      case $cc_basename in
8795        xlc*)
8796         output_verbose_link_cmd='echo'
8797         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8798         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8799          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8800         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}'
8801          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}'
8802          ;;
8803       *)
8804         ld_shlibs=no
8805          ;;
8806      esac
8807    fi
8808      ;;
8809
8810    dgux*)
8811      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812      hardcode_libdir_flag_spec='-L$libdir'
8813      hardcode_shlibpath_var=no
8814      ;;
8815
8816    freebsd1*)
8817      ld_shlibs=no
8818      ;;
8819
8820    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8821    # support.  Future versions do this automatically, but an explicit c++rt0.o
8822    # does not break anything, and helps significantly (at the cost of a little
8823    # extra space).
8824    freebsd2.2*)
8825      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8826      hardcode_libdir_flag_spec='-R$libdir'
8827      hardcode_direct=yes
8828      hardcode_shlibpath_var=no
8829      ;;
8830
8831    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8832    freebsd2*)
8833      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8834      hardcode_direct=yes
8835      hardcode_minus_L=yes
8836      hardcode_shlibpath_var=no
8837      ;;
8838
8839    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8840    freebsd* | kfreebsd*-gnu | dragonfly*)
8841      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8842      hardcode_libdir_flag_spec='-R$libdir'
8843      hardcode_direct=yes
8844      hardcode_shlibpath_var=no
8845      ;;
8846
8847    hpux9*)
8848      if test "$GCC" = yes; then
8849        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'
8850      else
8851        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'
8852      fi
8853      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8854      hardcode_libdir_separator=:
8855      hardcode_direct=yes
8856
8857      # hardcode_minus_L: Not really in the search PATH,
8858      # but as the default location of the library.
8859      hardcode_minus_L=yes
8860      export_dynamic_flag_spec='${wl}-E'
8861      ;;
8862
8863    hpux10*)
8864      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8865        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8866      else
8867        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8868      fi
8869      if test "$with_gnu_ld" = no; then
8870        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8871        hardcode_libdir_separator=:
8872
8873        hardcode_direct=yes
8874        export_dynamic_flag_spec='${wl}-E'
8875
8876        # hardcode_minus_L: Not really in the search PATH,
8877        # but as the default location of the library.
8878        hardcode_minus_L=yes
8879      fi
8880      ;;
8881
8882    hpux11*)
8883      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8884        case $host_cpu in
8885        hppa*64*)
8886          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8887          ;;
8888        ia64*)
8889          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8890          ;;
8891        *)
8892          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8893          ;;
8894        esac
8895      else
8896        case $host_cpu in
8897        hppa*64*)
8898          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8899          ;;
8900        ia64*)
8901          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8902          ;;
8903        *)
8904          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8905          ;;
8906        esac
8907      fi
8908      if test "$with_gnu_ld" = no; then
8909        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8910        hardcode_libdir_separator=:
8911
8912        case $host_cpu in
8913        hppa*64*|ia64*)
8914          hardcode_libdir_flag_spec_ld='+b $libdir'
8915          hardcode_direct=no
8916          hardcode_shlibpath_var=no
8917          ;;
8918        *)
8919          hardcode_direct=yes
8920          export_dynamic_flag_spec='${wl}-E'
8921
8922          # hardcode_minus_L: Not really in the search PATH,
8923          # but as the default location of the library.
8924          hardcode_minus_L=yes
8925          ;;
8926        esac
8927      fi
8928      ;;
8929
8930    irix5* | irix6* | nonstopux*)
8931      if test "$GCC" = yes; then
8932        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'
8933      else
8934        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'
8935        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8936      fi
8937      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8938      hardcode_libdir_separator=:
8939      link_all_deplibs=yes
8940      ;;
8941
8942    netbsd*)
8943      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8944        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8945      else
8946        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8947      fi
8948      hardcode_libdir_flag_spec='-R$libdir'
8949      hardcode_direct=yes
8950      hardcode_shlibpath_var=no
8951      ;;
8952
8953    newsos6)
8954      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8955      hardcode_direct=yes
8956      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8957      hardcode_libdir_separator=:
8958      hardcode_shlibpath_var=no
8959      ;;
8960
8961    openbsd*)
8962      hardcode_direct=yes
8963      hardcode_shlibpath_var=no
8964      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8965        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8966        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8967        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8968        export_dynamic_flag_spec='${wl}-E'
8969      else
8970       case $host_os in
8971         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8972           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8973           hardcode_libdir_flag_spec='-R$libdir'
8974           ;;
8975         *)
8976           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8977           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8978           ;;
8979       esac
8980      fi
8981      ;;
8982
8983    os2*)
8984      hardcode_libdir_flag_spec='-L$libdir'
8985      hardcode_minus_L=yes
8986      allow_undefined_flag=unsupported
8987      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'
8988      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8989      ;;
8990
8991    osf3*)
8992      if test "$GCC" = yes; then
8993        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8994        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'
8995      else
8996        allow_undefined_flag=' -expect_unresolved \*'
8997        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'
8998      fi
8999      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000      hardcode_libdir_separator=:
9001      ;;
9002
9003    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9004      if test "$GCC" = yes; then
9005        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9006        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'
9007        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9008      else
9009        allow_undefined_flag=' -expect_unresolved \*'
9010        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'
9011        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9012        $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'
9013
9014        # Both c and cxx compiler support -rpath directly
9015        hardcode_libdir_flag_spec='-rpath $libdir'
9016      fi
9017      hardcode_libdir_separator=:
9018      ;;
9019
9020    solaris*)
9021      no_undefined_flag=' -z text'
9022      if test "$GCC" = yes; then
9023        wlarc='${wl}'
9024        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9025        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9026          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9027      else
9028        wlarc=''
9029        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9030        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9031        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9032      fi
9033      hardcode_libdir_flag_spec='-R$libdir'
9034      hardcode_shlibpath_var=no
9035      case $host_os in
9036      solaris2.[0-5] | solaris2.[0-5].*) ;;
9037      *)
9038        # The compiler driver will combine linker options so we
9039        # cannot just pass the convience library names through
9040        # without $wl, iff we do not link with $LD.
9041        # Luckily, gcc supports the same syntax we need for Sun Studio.
9042        # Supported since Solaris 2.6 (maybe 2.5.1?)
9043        case $wlarc in
9044        '')
9045          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9046        *)
9047          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' ;;
9048        esac ;;
9049      esac
9050      link_all_deplibs=yes
9051      ;;
9052
9053    sunos4*)
9054      if test "x$host_vendor" = xsequent; then
9055        # Use $CC to link under sequent, because it throws in some extra .o
9056        # files that make .init and .fini sections work.
9057        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9058      else
9059        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9060      fi
9061      hardcode_libdir_flag_spec='-L$libdir'
9062      hardcode_direct=yes
9063      hardcode_minus_L=yes
9064      hardcode_shlibpath_var=no
9065      ;;
9066
9067    sysv4)
9068      case $host_vendor in
9069        sni)
9070          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9071          hardcode_direct=yes # is this really true???
9072        ;;
9073        siemens)
9074          ## LD is ld it makes a PLAMLIB
9075          ## CC just makes a GrossModule.
9076          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9077          reload_cmds='$CC -r -o $output$reload_objs'
9078          hardcode_direct=no
9079        ;;
9080        motorola)
9081          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9082          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9083        ;;
9084      esac
9085      runpath_var='LD_RUN_PATH'
9086      hardcode_shlibpath_var=no
9087      ;;
9088
9089    sysv4.3*)
9090      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9091      hardcode_shlibpath_var=no
9092      export_dynamic_flag_spec='-Bexport'
9093      ;;
9094
9095    sysv4*MP*)
9096      if test -d /usr/nec; then
9097        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9098        hardcode_shlibpath_var=no
9099        runpath_var=LD_RUN_PATH
9100        hardcode_runpath_var=yes
9101        ld_shlibs=yes
9102      fi
9103      ;;
9104
9105    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9106      no_undefined_flag='${wl}-z,text'
9107      archive_cmds_need_lc=no
9108      hardcode_shlibpath_var=no
9109      runpath_var='LD_RUN_PATH'
9110
9111      if test "$GCC" = yes; then
9112        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9113        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9114      else
9115        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9116        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117      fi
9118      ;;
9119
9120    sysv5* | sco3.2v5* | sco5v6*)
9121      # Note: We can NOT use -z defs as we might desire, because we do not
9122      # link with -lc, and that would cause any symbols used from libc to
9123      # always be unresolved, which means just about no library would
9124      # ever link correctly.  If we're not using GNU ld we use -z text
9125      # though, which does catch some bad symbols but isn't as heavy-handed
9126      # as -z defs.
9127      no_undefined_flag='${wl}-z,text'
9128      allow_undefined_flag='${wl}-z,nodefs'
9129      archive_cmds_need_lc=no
9130      hardcode_shlibpath_var=no
9131      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9132      hardcode_libdir_separator=':'
9133      link_all_deplibs=yes
9134      export_dynamic_flag_spec='${wl}-Bexport'
9135      runpath_var='LD_RUN_PATH'
9136
9137      if test "$GCC" = yes; then
9138        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9139        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9140      else
9141        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9142        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9143      fi
9144      ;;
9145
9146    uts4*)
9147      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9148      hardcode_libdir_flag_spec='-L$libdir'
9149      hardcode_shlibpath_var=no
9150      ;;
9151
9152    *)
9153      ld_shlibs=no
9154      ;;
9155    esac
9156  fi
9157
9158echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9159echo "${ECHO_T}$ld_shlibs" >&6
9160test "$ld_shlibs" = no && can_build_shared=no
9161
9162#
9163# Do we need to explicitly link libc?
9164#
9165case "x$archive_cmds_need_lc" in
9166x|xyes)
9167  # Assume -lc should be added
9168  archive_cmds_need_lc=yes
9169
9170  if test "$enable_shared" = yes && test "$GCC" = yes; then
9171    case $archive_cmds in
9172    *'~'*)
9173      # FIXME: we may have to deal with multi-command sequences.
9174      ;;
9175    '$CC '*)
9176      # Test whether the compiler implicitly links with -lc since on some
9177      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9178      # to ld, don't add -lc before -lgcc.
9179      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9180echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9181      $rm conftest*
9182      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9183
9184      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9185  (eval $ac_compile) 2>&5
9186  ac_status=$?
9187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188  (exit $ac_status); } 2>conftest.err; then
9189        soname=conftest
9190        lib=conftest
9191        libobjs=conftest.$ac_objext
9192        deplibs=
9193        wl=$lt_prog_compiler_wl
9194        pic_flag=$lt_prog_compiler_pic
9195        compiler_flags=-v
9196        linker_flags=-v
9197        verstring=
9198        output_objdir=.
9199        libname=conftest
9200        lt_save_allow_undefined_flag=$allow_undefined_flag
9201        allow_undefined_flag=
9202        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9203  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9204  ac_status=$?
9205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206  (exit $ac_status); }
9207        then
9208          archive_cmds_need_lc=no
9209        else
9210          archive_cmds_need_lc=yes
9211        fi
9212        allow_undefined_flag=$lt_save_allow_undefined_flag
9213      else
9214        cat conftest.err 1>&5
9215      fi
9216      $rm conftest*
9217      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9218echo "${ECHO_T}$archive_cmds_need_lc" >&6
9219      ;;
9220    esac
9221  fi
9222  ;;
9223esac
9224
9225echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9226echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9227library_names_spec=
9228libname_spec='lib$name'
9229soname_spec=
9230shrext_cmds=".so"
9231postinstall_cmds=
9232postuninstall_cmds=
9233finish_cmds=
9234finish_eval=
9235shlibpath_var=
9236shlibpath_overrides_runpath=unknown
9237version_type=none
9238dynamic_linker="$host_os ld.so"
9239sys_lib_dlsearch_path_spec="/lib /usr/lib"
9240if test "$GCC" = yes; then
9241  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9242  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9243    # if the path contains ";" then we assume it to be the separator
9244    # otherwise default to the standard path separator (i.e. ":") - it is
9245    # assumed that no part of a normal pathname contains ";" but that should
9246    # okay in the real world where ";" in dirpaths is itself problematic.
9247    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9248  else
9249    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9250  fi
9251else
9252  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9253fi
9254need_lib_prefix=unknown
9255hardcode_into_libs=no
9256
9257# when you set need_version to no, make sure it does not cause -set_version
9258# flags to be left without arguments
9259need_version=unknown
9260
9261case $host_os in
9262aix3*)
9263  version_type=linux
9264  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9265  shlibpath_var=LIBPATH
9266
9267  # AIX 3 has no versioning support, so we append a major version to the name.
9268  soname_spec='${libname}${release}${shared_ext}$major'
9269  ;;
9270
9271aix4* | aix5*)
9272  version_type=linux
9273  need_lib_prefix=no
9274  need_version=no
9275  hardcode_into_libs=yes
9276  if test "$host_cpu" = ia64; then
9277    # AIX 5 supports IA64
9278    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9279    shlibpath_var=LD_LIBRARY_PATH
9280  else
9281    # With GCC up to 2.95.x, collect2 would create an import file
9282    # for dependence libraries.  The import file would start with
9283    # the line `#! .'.  This would cause the generated library to
9284    # depend on `.', always an invalid library.  This was fixed in
9285    # development snapshots of GCC prior to 3.0.
9286    case $host_os in
9287      aix4 | aix4.[01] | aix4.[01].*)
9288      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9289           echo ' yes '
9290           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9291        :
9292      else
9293        can_build_shared=no
9294      fi
9295      ;;
9296    esac
9297    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9298    # soname into executable. Probably we can add versioning support to
9299    # collect2, so additional links can be useful in future.
9300    if test "$aix_use_runtimelinking" = yes; then
9301      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9302      # instead of lib<name>.a to let people know that these are not
9303      # typical AIX shared libraries.
9304      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305    else
9306      # We preserve .a as extension for shared libraries through AIX4.2
9307      # and later when we are not doing run time linking.
9308      library_names_spec='${libname}${release}.a $libname.a'
9309      soname_spec='${libname}${release}${shared_ext}$major'
9310    fi
9311    shlibpath_var=LIBPATH
9312  fi
9313  ;;
9314
9315amigaos*)
9316  library_names_spec='$libname.ixlibrary $libname.a'
9317  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9318  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'
9319  ;;
9320
9321beos*)
9322  library_names_spec='${libname}${shared_ext}'
9323  dynamic_linker="$host_os ld.so"
9324  shlibpath_var=LIBRARY_PATH
9325  ;;
9326
9327bsdi[45]*)
9328  version_type=linux
9329  need_version=no
9330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331  soname_spec='${libname}${release}${shared_ext}$major'
9332  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9333  shlibpath_var=LD_LIBRARY_PATH
9334  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9335  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9336  # the default ld.so.conf also contains /usr/contrib/lib and
9337  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9338  # libtool to hard-code these into programs
9339  ;;
9340
9341cygwin* | mingw* | pw32*)
9342  version_type=windows
9343  shrext_cmds=".dll"
9344  need_version=no
9345  need_lib_prefix=no
9346
9347  case $GCC,$host_os in
9348  yes,cygwin* | yes,mingw* | yes,pw32*)
9349    library_names_spec='$libname.dll.a'
9350    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9351    postinstall_cmds='base_file=`basename \${file}`~
9352      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9353      dldir=$destdir/`dirname \$dlpath`~
9354      test -d \$dldir || mkdir -p \$dldir~
9355      $install_prog $dir/$dlname \$dldir/$dlname~
9356      chmod a+x \$dldir/$dlname'
9357    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9358      dlpath=$dir/\$dldll~
9359       $rm \$dlpath'
9360    shlibpath_overrides_runpath=yes
9361
9362    case $host_os in
9363    cygwin*)
9364      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9365      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9366      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9367      ;;
9368    mingw*)
9369      # MinGW DLLs use traditional 'lib' prefix
9370      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9371      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9372      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9373        # It is most probably a Windows format PATH printed by
9374        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9375        # path with ; separators, and with drive letters. We can handle the
9376        # drive letters (cygwin fileutils understands them), so leave them,
9377        # especially as we might pass files found there to a mingw objdump,
9378        # which wouldn't understand a cygwinified path. Ahh.
9379        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9380      else
9381        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9382      fi
9383      ;;
9384    pw32*)
9385      # pw32 DLLs use 'pw' prefix rather than 'lib'
9386      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9387      ;;
9388    esac
9389    ;;
9390
9391  *)
9392    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9393    ;;
9394  esac
9395  dynamic_linker='Win32 ld.exe'
9396  # FIXME: first we should search . and the directory the executable is in
9397  shlibpath_var=PATH
9398  ;;
9399
9400darwin* | rhapsody*)
9401  dynamic_linker="$host_os dyld"
9402  version_type=darwin
9403  need_lib_prefix=no
9404  need_version=no
9405  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9406  soname_spec='${libname}${release}${major}$shared_ext'
9407  shlibpath_overrides_runpath=yes
9408  shlibpath_var=DYLD_LIBRARY_PATH
9409  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9410  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9411  if test "$GCC" = yes; then
9412    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"`
9413  else
9414    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9415  fi
9416  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9417  ;;
9418
9419dgux*)
9420  version_type=linux
9421  need_lib_prefix=no
9422  need_version=no
9423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9424  soname_spec='${libname}${release}${shared_ext}$major'
9425  shlibpath_var=LD_LIBRARY_PATH
9426  ;;
9427
9428freebsd1*)
9429  dynamic_linker=no
9430  ;;
9431
9432kfreebsd*-gnu)
9433  version_type=linux
9434  need_lib_prefix=no
9435  need_version=no
9436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9437  soname_spec='${libname}${release}${shared_ext}$major'
9438  shlibpath_var=LD_LIBRARY_PATH
9439  shlibpath_overrides_runpath=no
9440  hardcode_into_libs=yes
9441  dynamic_linker='GNU ld.so'
9442  ;;
9443
9444freebsd* | dragonfly*)
9445  # DragonFly does not have aout.  When/if they implement a new
9446  # versioning mechanism, adjust this.
9447  if test -x /usr/bin/objformat; then
9448    objformat=`/usr/bin/objformat`
9449  else
9450    case $host_os in
9451    freebsd[123]*) objformat=aout ;;
9452    *) objformat=elf ;;
9453    esac
9454  fi
9455  version_type=freebsd-$objformat
9456  case $version_type in
9457    freebsd-elf*)
9458      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9459      need_version=no
9460      need_lib_prefix=no
9461      ;;
9462    freebsd-*)
9463      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9464      need_version=yes
9465      ;;
9466  esac
9467  shlibpath_var=LD_LIBRARY_PATH
9468  case $host_os in
9469  freebsd2*)
9470    shlibpath_overrides_runpath=yes
9471    ;;
9472  freebsd3.[01]* | freebsdelf3.[01]*)
9473    shlibpath_overrides_runpath=yes
9474    hardcode_into_libs=yes
9475    ;;
9476  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9477  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9478    shlibpath_overrides_runpath=no
9479    hardcode_into_libs=yes
9480    ;;
9481  freebsd*) # from 4.6 on
9482    shlibpath_overrides_runpath=yes
9483    hardcode_into_libs=yes
9484    ;;
9485  esac
9486  ;;
9487
9488gnu*)
9489  version_type=linux
9490  need_lib_prefix=no
9491  need_version=no
9492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9493  soname_spec='${libname}${release}${shared_ext}$major'
9494  shlibpath_var=LD_LIBRARY_PATH
9495  hardcode_into_libs=yes
9496  ;;
9497
9498hpux9* | hpux10* | hpux11*)
9499  # Give a soname corresponding to the major version so that dld.sl refuses to
9500  # link against other versions.
9501  version_type=sunos
9502  need_lib_prefix=no
9503  need_version=no
9504  case $host_cpu in
9505  ia64*)
9506    shrext_cmds='.so'
9507    hardcode_into_libs=yes
9508    dynamic_linker="$host_os dld.so"
9509    shlibpath_var=LD_LIBRARY_PATH
9510    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9511    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9512    soname_spec='${libname}${release}${shared_ext}$major'
9513    if test "X$HPUX_IA64_MODE" = X32; then
9514      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9515    else
9516      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9517    fi
9518    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9519    ;;
9520   hppa*64*)
9521     shrext_cmds='.sl'
9522     hardcode_into_libs=yes
9523     dynamic_linker="$host_os dld.sl"
9524     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9525     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527     soname_spec='${libname}${release}${shared_ext}$major'
9528     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9529     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9530     ;;
9531   *)
9532    shrext_cmds='.sl'
9533    dynamic_linker="$host_os dld.sl"
9534    shlibpath_var=SHLIB_PATH
9535    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9536    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537    soname_spec='${libname}${release}${shared_ext}$major'
9538    ;;
9539  esac
9540  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9541  postinstall_cmds='chmod 555 $lib'
9542  ;;
9543
9544interix3*)
9545  version_type=linux
9546  need_lib_prefix=no
9547  need_version=no
9548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9549  soname_spec='${libname}${release}${shared_ext}$major'
9550  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9551  shlibpath_var=LD_LIBRARY_PATH
9552  shlibpath_overrides_runpath=no
9553  hardcode_into_libs=yes
9554  ;;
9555
9556irix5* | irix6* | nonstopux*)
9557  case $host_os in
9558    nonstopux*) version_type=nonstopux ;;
9559    *)
9560        if test "$lt_cv_prog_gnu_ld" = yes; then
9561                version_type=linux
9562        else
9563                version_type=irix
9564        fi ;;
9565  esac
9566  need_lib_prefix=no
9567  need_version=no
9568  soname_spec='${libname}${release}${shared_ext}$major'
9569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9570  case $host_os in
9571  irix5* | nonstopux*)
9572    libsuff= shlibsuff=
9573    ;;
9574  *)
9575    case $LD in # libtool.m4 will add one of these switches to LD
9576    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9577      libsuff= shlibsuff= libmagic=32-bit;;
9578    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9579      libsuff=32 shlibsuff=N32 libmagic=N32;;
9580    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9581      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9582    *) libsuff= shlibsuff= libmagic=never-match;;
9583    esac
9584    ;;
9585  esac
9586  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9587  shlibpath_overrides_runpath=no
9588  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9589  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9590  hardcode_into_libs=yes
9591  ;;
9592
9593# No shared lib support for Linux oldld, aout, or coff.
9594linux*oldld* | linux*aout* | linux*coff*)
9595  dynamic_linker=no
9596  ;;
9597
9598# This must be Linux ELF.
9599linux*)
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9606  shlibpath_var=LD_LIBRARY_PATH
9607  shlibpath_overrides_runpath=no
9608  # This implies no fast_install, which is unacceptable.
9609  # Some rework will be needed to allow for fast_install
9610  # before this can be enabled.
9611  hardcode_into_libs=yes
9612
9613  # Append ld.so.conf contents to the search path
9614  if test -f /etc/ld.so.conf; then
9615    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' ' '`
9616    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9617  fi
9618
9619  # We used to test for /lib/ld.so.1 and disable shared libraries on
9620  # powerpc, because MkLinux only supported shared libraries with the
9621  # GNU dynamic linker.  Since this was broken with cross compilers,
9622  # most powerpc-linux boxes support dynamic linking these days and
9623  # people can always --disable-shared, the test was removed, and we
9624  # assume the GNU/Linux dynamic linker is in use.
9625  dynamic_linker='GNU/Linux ld.so'
9626  ;;
9627
9628knetbsd*-gnu)
9629  version_type=linux
9630  need_lib_prefix=no
9631  need_version=no
9632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9633  soname_spec='${libname}${release}${shared_ext}$major'
9634  shlibpath_var=LD_LIBRARY_PATH
9635  shlibpath_overrides_runpath=no
9636  hardcode_into_libs=yes
9637  dynamic_linker='GNU ld.so'
9638  ;;
9639
9640netbsd*)
9641  version_type=sunos
9642  need_lib_prefix=no
9643  need_version=no
9644  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9645    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9646    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9647    dynamic_linker='NetBSD (a.out) ld.so'
9648  else
9649    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9650    soname_spec='${libname}${release}${shared_ext}$major'
9651    dynamic_linker='NetBSD ld.elf_so'
9652  fi
9653  shlibpath_var=LD_LIBRARY_PATH
9654  shlibpath_overrides_runpath=yes
9655  hardcode_into_libs=yes
9656  ;;
9657
9658newsos6)
9659  version_type=linux
9660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661  shlibpath_var=LD_LIBRARY_PATH
9662  shlibpath_overrides_runpath=yes
9663  ;;
9664
9665nto-qnx*)
9666  version_type=linux
9667  need_lib_prefix=no
9668  need_version=no
9669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670  soname_spec='${libname}${release}${shared_ext}$major'
9671  shlibpath_var=LD_LIBRARY_PATH
9672  shlibpath_overrides_runpath=yes
9673  ;;
9674
9675openbsd*)
9676  version_type=sunos
9677  sys_lib_dlsearch_path_spec="/usr/lib"
9678  need_lib_prefix=no
9679  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9680  case $host_os in
9681    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9682    *)                         need_version=no  ;;
9683  esac
9684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9685  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9686  shlibpath_var=LD_LIBRARY_PATH
9687  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9688    case $host_os in
9689      openbsd2.[89] | openbsd2.[89].*)
9690        shlibpath_overrides_runpath=no
9691        ;;
9692      *)
9693        shlibpath_overrides_runpath=yes
9694        ;;
9695      esac
9696  else
9697    shlibpath_overrides_runpath=yes
9698  fi
9699  ;;
9700
9701os2*)
9702  libname_spec='$name'
9703  shrext_cmds=".dll"
9704  need_lib_prefix=no
9705  library_names_spec='$libname${shared_ext} $libname.a'
9706  dynamic_linker='OS/2 ld.exe'
9707  shlibpath_var=LIBPATH
9708  ;;
9709
9710osf3* | osf4* | osf5*)
9711  version_type=osf
9712  need_lib_prefix=no
9713  need_version=no
9714  soname_spec='${libname}${release}${shared_ext}$major'
9715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716  shlibpath_var=LD_LIBRARY_PATH
9717  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9718  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9719  ;;
9720
9721solaris*)
9722  version_type=linux
9723  need_lib_prefix=no
9724  need_version=no
9725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726  soname_spec='${libname}${release}${shared_ext}$major'
9727  shlibpath_var=LD_LIBRARY_PATH
9728  shlibpath_overrides_runpath=yes
9729  hardcode_into_libs=yes
9730  # ldd complains unless libraries are executable
9731  postinstall_cmds='chmod +x $lib'
9732  ;;
9733
9734sunos4*)
9735  version_type=sunos
9736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9737  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9738  shlibpath_var=LD_LIBRARY_PATH
9739  shlibpath_overrides_runpath=yes
9740  if test "$with_gnu_ld" = yes; then
9741    need_lib_prefix=no
9742  fi
9743  need_version=yes
9744  ;;
9745
9746sysv4 | sysv4.3*)
9747  version_type=linux
9748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749  soname_spec='${libname}${release}${shared_ext}$major'
9750  shlibpath_var=LD_LIBRARY_PATH
9751  case $host_vendor in
9752    sni)
9753      shlibpath_overrides_runpath=no
9754      need_lib_prefix=no
9755      export_dynamic_flag_spec='${wl}-Blargedynsym'
9756      runpath_var=LD_RUN_PATH
9757      ;;
9758    siemens)
9759      need_lib_prefix=no
9760      ;;
9761    motorola)
9762      need_lib_prefix=no
9763      need_version=no
9764      shlibpath_overrides_runpath=no
9765      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9766      ;;
9767  esac
9768  ;;
9769
9770sysv4*MP*)
9771  if test -d /usr/nec ;then
9772    version_type=linux
9773    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9774    soname_spec='$libname${shared_ext}.$major'
9775    shlibpath_var=LD_LIBRARY_PATH
9776  fi
9777  ;;
9778
9779sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9780  version_type=freebsd-elf
9781  need_lib_prefix=no
9782  need_version=no
9783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9784  soname_spec='${libname}${release}${shared_ext}$major'
9785  shlibpath_var=LD_LIBRARY_PATH
9786  hardcode_into_libs=yes
9787  if test "$with_gnu_ld" = yes; then
9788    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9789    shlibpath_overrides_runpath=no
9790  else
9791    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9792    shlibpath_overrides_runpath=yes
9793    case $host_os in
9794      sco3.2v5*)
9795        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9796        ;;
9797    esac
9798  fi
9799  sys_lib_dlsearch_path_spec='/usr/lib'
9800  ;;
9801
9802uts4*)
9803  version_type=linux
9804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805  soname_spec='${libname}${release}${shared_ext}$major'
9806  shlibpath_var=LD_LIBRARY_PATH
9807  ;;
9808
9809*)
9810  dynamic_linker=no
9811  ;;
9812esac
9813echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9814echo "${ECHO_T}$dynamic_linker" >&6
9815test "$dynamic_linker" = no && can_build_shared=no
9816
9817variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9818if test "$GCC" = yes; then
9819  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9820fi
9821
9822echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9823echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9824hardcode_action=
9825if test -n "$hardcode_libdir_flag_spec" || \
9826   test -n "$runpath_var" || \
9827   test "X$hardcode_automatic" = "Xyes" ; then
9828
9829  # We can hardcode non-existant directories.
9830  if test "$hardcode_direct" != no &&
9831     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9832     # have to relink, otherwise we might link with an installed library
9833     # when we should be linking with a yet-to-be-installed one
9834     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9835     test "$hardcode_minus_L" != no; then
9836    # Linking always hardcodes the temporary library directory.
9837    hardcode_action=relink
9838  else
9839    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9840    hardcode_action=immediate
9841  fi
9842else
9843  # We cannot hardcode anything, or else we can only hardcode existing
9844  # directories.
9845  hardcode_action=unsupported
9846fi
9847echo "$as_me:$LINENO: result: $hardcode_action" >&5
9848echo "${ECHO_T}$hardcode_action" >&6
9849
9850if test "$hardcode_action" = relink; then
9851  # Fast installation is not supported
9852  enable_fast_install=no
9853elif test "$shlibpath_overrides_runpath" = yes ||
9854     test "$enable_shared" = no; then
9855  # Fast installation is not necessary
9856  enable_fast_install=needless
9857fi
9858
9859striplib=
9860old_striplib=
9861echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9862echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9863if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9864  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9865  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9866  echo "$as_me:$LINENO: result: yes" >&5
9867echo "${ECHO_T}yes" >&6
9868else
9869# FIXME - insert some real tests, host_os isn't really good enough
9870  case $host_os in
9871   darwin*)
9872       if test -n "$STRIP" ; then
9873         striplib="$STRIP -x"
9874         echo "$as_me:$LINENO: result: yes" >&5
9875echo "${ECHO_T}yes" >&6
9876       else
9877  echo "$as_me:$LINENO: result: no" >&5
9878echo "${ECHO_T}no" >&6
9879fi
9880       ;;
9881   *)
9882  echo "$as_me:$LINENO: result: no" >&5
9883echo "${ECHO_T}no" >&6
9884    ;;
9885  esac
9886fi
9887
9888if test "x$enable_dlopen" != xyes; then
9889  enable_dlopen=unknown
9890  enable_dlopen_self=unknown
9891  enable_dlopen_self_static=unknown
9892else
9893  lt_cv_dlopen=no
9894  lt_cv_dlopen_libs=
9895
9896  case $host_os in
9897  beos*)
9898    lt_cv_dlopen="load_add_on"
9899    lt_cv_dlopen_libs=
9900    lt_cv_dlopen_self=yes
9901    ;;
9902
9903  mingw* | pw32*)
9904    lt_cv_dlopen="LoadLibrary"
9905    lt_cv_dlopen_libs=
9906   ;;
9907
9908  cygwin*)
9909    lt_cv_dlopen="dlopen"
9910    lt_cv_dlopen_libs=
9911   ;;
9912
9913  darwin*)
9914  # if libdl is installed we need to link against it
9915    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9916echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9917if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9918  echo $ECHO_N "(cached) $ECHO_C" >&6
9919else
9920  ac_check_lib_save_LIBS=$LIBS
9921LIBS="-ldl  $LIBS"
9922cat >conftest.$ac_ext <<_ACEOF
9923/* confdefs.h.  */
9924_ACEOF
9925cat confdefs.h >>conftest.$ac_ext
9926cat >>conftest.$ac_ext <<_ACEOF
9927/* end confdefs.h.  */
9928
9929/* Override any gcc2 internal prototype to avoid an error.  */
9930#ifdef __cplusplus
9931extern "C"
9932#endif
9933/* We use char because int might match the return type of a gcc2
9934   builtin and then its argument prototype would still apply.  */
9935char dlopen ();
9936int
9937main ()
9938{
9939dlopen ();
9940  ;
9941  return 0;
9942}
9943_ACEOF
9944rm -f conftest.$ac_objext conftest$ac_exeext
9945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9946  (eval $ac_link) 2>conftest.er1
9947  ac_status=$?
9948  grep -v '^ *+' conftest.er1 >conftest.err
9949  rm -f conftest.er1
9950  cat conftest.err >&5
9951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952  (exit $ac_status); } &&
9953         { ac_try='test -z "$ac_c_werror_flag"
9954                         || test ! -s conftest.err'
9955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956  (eval $ac_try) 2>&5
9957  ac_status=$?
9958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959  (exit $ac_status); }; } &&
9960         { ac_try='test -s conftest$ac_exeext'
9961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962  (eval $ac_try) 2>&5
9963  ac_status=$?
9964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965  (exit $ac_status); }; }; then
9966  ac_cv_lib_dl_dlopen=yes
9967else
9968  echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
9971ac_cv_lib_dl_dlopen=no
9972fi
9973rm -f conftest.err conftest.$ac_objext \
9974      conftest$ac_exeext conftest.$ac_ext
9975LIBS=$ac_check_lib_save_LIBS
9976fi
9977echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9978echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9979if test $ac_cv_lib_dl_dlopen = yes; then
9980  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9981else
9982
9983    lt_cv_dlopen="dyld"
9984    lt_cv_dlopen_libs=
9985    lt_cv_dlopen_self=yes
9986
9987fi
9988
9989   ;;
9990
9991  *)
9992    echo "$as_me:$LINENO: checking for shl_load" >&5
9993echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9994if test "${ac_cv_func_shl_load+set}" = set; then
9995  echo $ECHO_N "(cached) $ECHO_C" >&6
9996else
9997  cat >conftest.$ac_ext <<_ACEOF
9998/* confdefs.h.  */
9999_ACEOF
10000cat confdefs.h >>conftest.$ac_ext
10001cat >>conftest.$ac_ext <<_ACEOF
10002/* end confdefs.h.  */
10003/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10004   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10005#define shl_load innocuous_shl_load
10006
10007/* System header to define __stub macros and hopefully few prototypes,
10008    which can conflict with char shl_load (); below.
10009    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10010    <limits.h> exists even on freestanding compilers.  */
10011
10012#ifdef __STDC__
10013# include <limits.h>
10014#else
10015# include <assert.h>
10016#endif
10017
10018#undef shl_load
10019
10020/* Override any gcc2 internal prototype to avoid an error.  */
10021#ifdef __cplusplus
10022extern "C"
10023{
10024#endif
10025/* We use char because int might match the return type of a gcc2
10026   builtin and then its argument prototype would still apply.  */
10027char shl_load ();
10028/* The GNU C library defines this for functions which it implements
10029    to always fail with ENOSYS.  Some functions are actually named
10030    something starting with __ and the normal name is an alias.  */
10031#if defined (__stub_shl_load) || defined (__stub___shl_load)
10032choke me
10033#else
10034char (*f) () = shl_load;
10035#endif
10036#ifdef __cplusplus
10037}
10038#endif
10039
10040int
10041main ()
10042{
10043return f != shl_load;
10044  ;
10045  return 0;
10046}
10047_ACEOF
10048rm -f conftest.$ac_objext conftest$ac_exeext
10049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10050  (eval $ac_link) 2>conftest.er1
10051  ac_status=$?
10052  grep -v '^ *+' conftest.er1 >conftest.err
10053  rm -f conftest.er1
10054  cat conftest.err >&5
10055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056  (exit $ac_status); } &&
10057         { ac_try='test -z "$ac_c_werror_flag"
10058                         || test ! -s conftest.err'
10059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060  (eval $ac_try) 2>&5
10061  ac_status=$?
10062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063  (exit $ac_status); }; } &&
10064         { ac_try='test -s conftest$ac_exeext'
10065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066  (eval $ac_try) 2>&5
10067  ac_status=$?
10068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069  (exit $ac_status); }; }; then
10070  ac_cv_func_shl_load=yes
10071else
10072  echo "$as_me: failed program was:" >&5
10073sed 's/^/| /' conftest.$ac_ext >&5
10074
10075ac_cv_func_shl_load=no
10076fi
10077rm -f conftest.err conftest.$ac_objext \
10078      conftest$ac_exeext conftest.$ac_ext
10079fi
10080echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10081echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10082if test $ac_cv_func_shl_load = yes; then
10083  lt_cv_dlopen="shl_load"
10084else
10085  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10086echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10087if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10088  echo $ECHO_N "(cached) $ECHO_C" >&6
10089else
10090  ac_check_lib_save_LIBS=$LIBS
10091LIBS="-ldld  $LIBS"
10092cat >conftest.$ac_ext <<_ACEOF
10093/* confdefs.h.  */
10094_ACEOF
10095cat confdefs.h >>conftest.$ac_ext
10096cat >>conftest.$ac_ext <<_ACEOF
10097/* end confdefs.h.  */
10098
10099/* Override any gcc2 internal prototype to avoid an error.  */
10100#ifdef __cplusplus
10101extern "C"
10102#endif
10103/* We use char because int might match the return type of a gcc2
10104   builtin and then its argument prototype would still apply.  */
10105char shl_load ();
10106int
10107main ()
10108{
10109shl_load ();
10110  ;
10111  return 0;
10112}
10113_ACEOF
10114rm -f conftest.$ac_objext conftest$ac_exeext
10115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116  (eval $ac_link) 2>conftest.er1
10117  ac_status=$?
10118  grep -v '^ *+' conftest.er1 >conftest.err
10119  rm -f conftest.er1
10120  cat conftest.err >&5
10121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122  (exit $ac_status); } &&
10123         { ac_try='test -z "$ac_c_werror_flag"
10124                         || test ! -s conftest.err'
10125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126  (eval $ac_try) 2>&5
10127  ac_status=$?
10128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129  (exit $ac_status); }; } &&
10130         { ac_try='test -s conftest$ac_exeext'
10131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132  (eval $ac_try) 2>&5
10133  ac_status=$?
10134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135  (exit $ac_status); }; }; then
10136  ac_cv_lib_dld_shl_load=yes
10137else
10138  echo "$as_me: failed program was:" >&5
10139sed 's/^/| /' conftest.$ac_ext >&5
10140
10141ac_cv_lib_dld_shl_load=no
10142fi
10143rm -f conftest.err conftest.$ac_objext \
10144      conftest$ac_exeext conftest.$ac_ext
10145LIBS=$ac_check_lib_save_LIBS
10146fi
10147echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10148echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10149if test $ac_cv_lib_dld_shl_load = yes; then
10150  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10151else
10152  echo "$as_me:$LINENO: checking for dlopen" >&5
10153echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10154if test "${ac_cv_func_dlopen+set}" = set; then
10155  echo $ECHO_N "(cached) $ECHO_C" >&6
10156else
10157  cat >conftest.$ac_ext <<_ACEOF
10158/* confdefs.h.  */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h.  */
10163/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10164   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10165#define dlopen innocuous_dlopen
10166
10167/* System header to define __stub macros and hopefully few prototypes,
10168    which can conflict with char dlopen (); below.
10169    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10170    <limits.h> exists even on freestanding compilers.  */
10171
10172#ifdef __STDC__
10173# include <limits.h>
10174#else
10175# include <assert.h>
10176#endif
10177
10178#undef dlopen
10179
10180/* Override any gcc2 internal prototype to avoid an error.  */
10181#ifdef __cplusplus
10182extern "C"
10183{
10184#endif
10185/* We use char because int might match the return type of a gcc2
10186   builtin and then its argument prototype would still apply.  */
10187char dlopen ();
10188/* The GNU C library defines this for functions which it implements
10189    to always fail with ENOSYS.  Some functions are actually named
10190    something starting with __ and the normal name is an alias.  */
10191#if defined (__stub_dlopen) || defined (__stub___dlopen)
10192choke me
10193#else
10194char (*f) () = dlopen;
10195#endif
10196#ifdef __cplusplus
10197}
10198#endif
10199
10200int
10201main ()
10202{
10203return f != dlopen;
10204  ;
10205  return 0;
10206}
10207_ACEOF
10208rm -f conftest.$ac_objext conftest$ac_exeext
10209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210  (eval $ac_link) 2>conftest.er1
10211  ac_status=$?
10212  grep -v '^ *+' conftest.er1 >conftest.err
10213  rm -f conftest.er1
10214  cat conftest.err >&5
10215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216  (exit $ac_status); } &&
10217         { ac_try='test -z "$ac_c_werror_flag"
10218                         || test ! -s conftest.err'
10219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220  (eval $ac_try) 2>&5
10221  ac_status=$?
10222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223  (exit $ac_status); }; } &&
10224         { ac_try='test -s conftest$ac_exeext'
10225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226  (eval $ac_try) 2>&5
10227  ac_status=$?
10228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229  (exit $ac_status); }; }; then
10230  ac_cv_func_dlopen=yes
10231else
10232  echo "$as_me: failed program was:" >&5
10233sed 's/^/| /' conftest.$ac_ext >&5
10234
10235ac_cv_func_dlopen=no
10236fi
10237rm -f conftest.err conftest.$ac_objext \
10238      conftest$ac_exeext conftest.$ac_ext
10239fi
10240echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10241echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10242if test $ac_cv_func_dlopen = yes; then
10243  lt_cv_dlopen="dlopen"
10244else
10245  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10246echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10247if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10248  echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250  ac_check_lib_save_LIBS=$LIBS
10251LIBS="-ldl  $LIBS"
10252cat >conftest.$ac_ext <<_ACEOF
10253/* confdefs.h.  */
10254_ACEOF
10255cat confdefs.h >>conftest.$ac_ext
10256cat >>conftest.$ac_ext <<_ACEOF
10257/* end confdefs.h.  */
10258
10259/* Override any gcc2 internal prototype to avoid an error.  */
10260#ifdef __cplusplus
10261extern "C"
10262#endif
10263/* We use char because int might match the return type of a gcc2
10264   builtin and then its argument prototype would still apply.  */
10265char dlopen ();
10266int
10267main ()
10268{
10269dlopen ();
10270  ;
10271  return 0;
10272}
10273_ACEOF
10274rm -f conftest.$ac_objext conftest$ac_exeext
10275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10276  (eval $ac_link) 2>conftest.er1
10277  ac_status=$?
10278  grep -v '^ *+' conftest.er1 >conftest.err
10279  rm -f conftest.er1
10280  cat conftest.err >&5
10281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282  (exit $ac_status); } &&
10283         { ac_try='test -z "$ac_c_werror_flag"
10284                         || test ! -s conftest.err'
10285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286  (eval $ac_try) 2>&5
10287  ac_status=$?
10288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289  (exit $ac_status); }; } &&
10290         { ac_try='test -s conftest$ac_exeext'
10291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292  (eval $ac_try) 2>&5
10293  ac_status=$?
10294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295  (exit $ac_status); }; }; then
10296  ac_cv_lib_dl_dlopen=yes
10297else
10298  echo "$as_me: failed program was:" >&5
10299sed 's/^/| /' conftest.$ac_ext >&5
10300
10301ac_cv_lib_dl_dlopen=no
10302fi
10303rm -f conftest.err conftest.$ac_objext \
10304      conftest$ac_exeext conftest.$ac_ext
10305LIBS=$ac_check_lib_save_LIBS
10306fi
10307echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10308echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10309if test $ac_cv_lib_dl_dlopen = yes; then
10310  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10311else
10312  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10313echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10314if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10315  echo $ECHO_N "(cached) $ECHO_C" >&6
10316else
10317  ac_check_lib_save_LIBS=$LIBS
10318LIBS="-lsvld  $LIBS"
10319cat >conftest.$ac_ext <<_ACEOF
10320/* confdefs.h.  */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h.  */
10325
10326/* Override any gcc2 internal prototype to avoid an error.  */
10327#ifdef __cplusplus
10328extern "C"
10329#endif
10330/* We use char because int might match the return type of a gcc2
10331   builtin and then its argument prototype would still apply.  */
10332char dlopen ();
10333int
10334main ()
10335{
10336dlopen ();
10337  ;
10338  return 0;
10339}
10340_ACEOF
10341rm -f conftest.$ac_objext conftest$ac_exeext
10342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10343  (eval $ac_link) 2>conftest.er1
10344  ac_status=$?
10345  grep -v '^ *+' conftest.er1 >conftest.err
10346  rm -f conftest.er1
10347  cat conftest.err >&5
10348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349  (exit $ac_status); } &&
10350         { ac_try='test -z "$ac_c_werror_flag"
10351                         || test ! -s conftest.err'
10352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353  (eval $ac_try) 2>&5
10354  ac_status=$?
10355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356  (exit $ac_status); }; } &&
10357         { ac_try='test -s conftest$ac_exeext'
10358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359  (eval $ac_try) 2>&5
10360  ac_status=$?
10361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362  (exit $ac_status); }; }; then
10363  ac_cv_lib_svld_dlopen=yes
10364else
10365  echo "$as_me: failed program was:" >&5
10366sed 's/^/| /' conftest.$ac_ext >&5
10367
10368ac_cv_lib_svld_dlopen=no
10369fi
10370rm -f conftest.err conftest.$ac_objext \
10371      conftest$ac_exeext conftest.$ac_ext
10372LIBS=$ac_check_lib_save_LIBS
10373fi
10374echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10375echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10376if test $ac_cv_lib_svld_dlopen = yes; then
10377  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10378else
10379  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10380echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10381if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10382  echo $ECHO_N "(cached) $ECHO_C" >&6
10383else
10384  ac_check_lib_save_LIBS=$LIBS
10385LIBS="-ldld  $LIBS"
10386cat >conftest.$ac_ext <<_ACEOF
10387/* confdefs.h.  */
10388_ACEOF
10389cat confdefs.h >>conftest.$ac_ext
10390cat >>conftest.$ac_ext <<_ACEOF
10391/* end confdefs.h.  */
10392
10393/* Override any gcc2 internal prototype to avoid an error.  */
10394#ifdef __cplusplus
10395extern "C"
10396#endif
10397/* We use char because int might match the return type of a gcc2
10398   builtin and then its argument prototype would still apply.  */
10399char dld_link ();
10400int
10401main ()
10402{
10403dld_link ();
10404  ;
10405  return 0;
10406}
10407_ACEOF
10408rm -f conftest.$ac_objext conftest$ac_exeext
10409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410  (eval $ac_link) 2>conftest.er1
10411  ac_status=$?
10412  grep -v '^ *+' conftest.er1 >conftest.err
10413  rm -f conftest.er1
10414  cat conftest.err >&5
10415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416  (exit $ac_status); } &&
10417         { ac_try='test -z "$ac_c_werror_flag"
10418                         || test ! -s conftest.err'
10419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420  (eval $ac_try) 2>&5
10421  ac_status=$?
10422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423  (exit $ac_status); }; } &&
10424         { ac_try='test -s conftest$ac_exeext'
10425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426  (eval $ac_try) 2>&5
10427  ac_status=$?
10428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429  (exit $ac_status); }; }; then
10430  ac_cv_lib_dld_dld_link=yes
10431else
10432  echo "$as_me: failed program was:" >&5
10433sed 's/^/| /' conftest.$ac_ext >&5
10434
10435ac_cv_lib_dld_dld_link=no
10436fi
10437rm -f conftest.err conftest.$ac_objext \
10438      conftest$ac_exeext conftest.$ac_ext
10439LIBS=$ac_check_lib_save_LIBS
10440fi
10441echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10442echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10443if test $ac_cv_lib_dld_dld_link = yes; then
10444  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10445fi
10446
10447
10448fi
10449
10450
10451fi
10452
10453
10454fi
10455
10456
10457fi
10458
10459
10460fi
10461
10462    ;;
10463  esac
10464
10465  if test "x$lt_cv_dlopen" != xno; then
10466    enable_dlopen=yes
10467  else
10468    enable_dlopen=no
10469  fi
10470
10471  case $lt_cv_dlopen in
10472  dlopen)
10473    save_CPPFLAGS="$CPPFLAGS"
10474    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10475
10476    save_LDFLAGS="$LDFLAGS"
10477    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10478
10479    save_LIBS="$LIBS"
10480    LIBS="$lt_cv_dlopen_libs $LIBS"
10481
10482    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10483echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10484if test "${lt_cv_dlopen_self+set}" = set; then
10485  echo $ECHO_N "(cached) $ECHO_C" >&6
10486else
10487          if test "$cross_compiling" = yes; then :
10488  lt_cv_dlopen_self=cross
10489else
10490  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10491  lt_status=$lt_dlunknown
10492  cat > conftest.$ac_ext <<EOF
10493#line 10493 "configure"
10494#include "confdefs.h"
10495
10496#if HAVE_DLFCN_H
10497#include <dlfcn.h>
10498#endif
10499
10500#include <stdio.h>
10501
10502#ifdef RTLD_GLOBAL
10503#  define LT_DLGLOBAL           RTLD_GLOBAL
10504#else
10505#  ifdef DL_GLOBAL
10506#    define LT_DLGLOBAL         DL_GLOBAL
10507#  else
10508#    define LT_DLGLOBAL         0
10509#  endif
10510#endif
10511
10512/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10513   find out it does not work in some platform. */
10514#ifndef LT_DLLAZY_OR_NOW
10515#  ifdef RTLD_LAZY
10516#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10517#  else
10518#    ifdef DL_LAZY
10519#      define LT_DLLAZY_OR_NOW          DL_LAZY
10520#    else
10521#      ifdef RTLD_NOW
10522#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10523#      else
10524#        ifdef DL_NOW
10525#          define LT_DLLAZY_OR_NOW      DL_NOW
10526#        else
10527#          define LT_DLLAZY_OR_NOW      0
10528#        endif
10529#      endif
10530#    endif
10531#  endif
10532#endif
10533
10534#ifdef __cplusplus
10535extern "C" void exit (int);
10536#endif
10537
10538void fnord() { int i=42;}
10539int main ()
10540{
10541  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10542  int status = $lt_dlunknown;
10543
10544  if (self)
10545    {
10546      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10547      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10548      /* dlclose (self); */
10549    }
10550  else
10551    puts (dlerror ());
10552
10553    exit (status);
10554}
10555EOF
10556  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557  (eval $ac_link) 2>&5
10558  ac_status=$?
10559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10561    (./conftest; exit; ) >&5 2>/dev/null
10562    lt_status=$?
10563    case x$lt_status in
10564      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10565      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10566      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10567    esac
10568  else :
10569    # compilation failed
10570    lt_cv_dlopen_self=no
10571  fi
10572fi
10573rm -fr conftest*
10574
10575
10576fi
10577echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10578echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10579
10580    if test "x$lt_cv_dlopen_self" = xyes; then
10581      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10582      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10583echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10584if test "${lt_cv_dlopen_self_static+set}" = set; then
10585  echo $ECHO_N "(cached) $ECHO_C" >&6
10586else
10587          if test "$cross_compiling" = yes; then :
10588  lt_cv_dlopen_self_static=cross
10589else
10590  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10591  lt_status=$lt_dlunknown
10592  cat > conftest.$ac_ext <<EOF
10593#line 10593 "configure"
10594#include "confdefs.h"
10595
10596#if HAVE_DLFCN_H
10597#include <dlfcn.h>
10598#endif
10599
10600#include <stdio.h>
10601
10602#ifdef RTLD_GLOBAL
10603#  define LT_DLGLOBAL           RTLD_GLOBAL
10604#else
10605#  ifdef DL_GLOBAL
10606#    define LT_DLGLOBAL         DL_GLOBAL
10607#  else
10608#    define LT_DLGLOBAL         0
10609#  endif
10610#endif
10611
10612/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10613   find out it does not work in some platform. */
10614#ifndef LT_DLLAZY_OR_NOW
10615#  ifdef RTLD_LAZY
10616#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10617#  else
10618#    ifdef DL_LAZY
10619#      define LT_DLLAZY_OR_NOW          DL_LAZY
10620#    else
10621#      ifdef RTLD_NOW
10622#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10623#      else
10624#        ifdef DL_NOW
10625#          define LT_DLLAZY_OR_NOW      DL_NOW
10626#        else
10627#          define LT_DLLAZY_OR_NOW      0
10628#        endif
10629#      endif
10630#    endif
10631#  endif
10632#endif
10633
10634#ifdef __cplusplus
10635extern "C" void exit (int);
10636#endif
10637
10638void fnord() { int i=42;}
10639int main ()
10640{
10641  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10642  int status = $lt_dlunknown;
10643
10644  if (self)
10645    {
10646      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10647      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10648      /* dlclose (self); */
10649    }
10650  else
10651    puts (dlerror ());
10652
10653    exit (status);
10654}
10655EOF
10656  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10657  (eval $ac_link) 2>&5
10658  ac_status=$?
10659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10661    (./conftest; exit; ) >&5 2>/dev/null
10662    lt_status=$?
10663    case x$lt_status in
10664      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10665      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10666      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10667    esac
10668  else :
10669    # compilation failed
10670    lt_cv_dlopen_self_static=no
10671  fi
10672fi
10673rm -fr conftest*
10674
10675
10676fi
10677echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10678echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10679    fi
10680
10681    CPPFLAGS="$save_CPPFLAGS"
10682    LDFLAGS="$save_LDFLAGS"
10683    LIBS="$save_LIBS"
10684    ;;
10685  esac
10686
10687  case $lt_cv_dlopen_self in
10688  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10689  *) enable_dlopen_self=unknown ;;
10690  esac
10691
10692  case $lt_cv_dlopen_self_static in
10693  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10694  *) enable_dlopen_self_static=unknown ;;
10695  esac
10696fi
10697
10698
10699# Report which library types will actually be built
10700echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10701echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10702echo "$as_me:$LINENO: result: $can_build_shared" >&5
10703echo "${ECHO_T}$can_build_shared" >&6
10704
10705echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10706echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10707test "$can_build_shared" = "no" && enable_shared=no
10708
10709# On AIX, shared libraries and static libraries use the same namespace, and
10710# are all built from PIC.
10711case $host_os in
10712aix3*)
10713  test "$enable_shared" = yes && enable_static=no
10714  if test -n "$RANLIB"; then
10715    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10716    postinstall_cmds='$RANLIB $lib'
10717  fi
10718  ;;
10719
10720aix4* | aix5*)
10721  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10722    test "$enable_shared" = yes && enable_static=no
10723  fi
10724    ;;
10725esac
10726echo "$as_me:$LINENO: result: $enable_shared" >&5
10727echo "${ECHO_T}$enable_shared" >&6
10728
10729echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10730echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10731# Make sure either enable_shared or enable_static is yes.
10732test "$enable_shared" = yes || enable_static=yes
10733echo "$as_me:$LINENO: result: $enable_static" >&5
10734echo "${ECHO_T}$enable_static" >&6
10735
10736# The else clause should only fire when bootstrapping the
10737# libtool distribution, otherwise you forgot to ship ltmain.sh
10738# with your package, and you will get complaints that there are
10739# no rules to generate ltmain.sh.
10740if test -f "$ltmain"; then
10741  # See if we are running on zsh, and set the options which allow our commands through
10742  # without removal of \ escapes.
10743  if test -n "${ZSH_VERSION+set}" ; then
10744    setopt NO_GLOB_SUBST
10745  fi
10746  # Now quote all the things that may contain metacharacters while being
10747  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10748  # variables and quote the copies for generation of the libtool script.
10749  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10750    SED SHELL STRIP \
10751    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10752    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10753    deplibs_check_method reload_flag reload_cmds need_locks \
10754    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10755    lt_cv_sys_global_symbol_to_c_name_address \
10756    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10757    old_postinstall_cmds old_postuninstall_cmds \
10758    compiler \
10759    CC \
10760    LD \
10761    lt_prog_compiler_wl \
10762    lt_prog_compiler_pic \
10763    lt_prog_compiler_static \
10764    lt_prog_compiler_no_builtin_flag \
10765    export_dynamic_flag_spec \
10766    thread_safe_flag_spec \
10767    whole_archive_flag_spec \
10768    enable_shared_with_static_runtimes \
10769    old_archive_cmds \
10770    old_archive_from_new_cmds \
10771    predep_objects \
10772    postdep_objects \
10773    predeps \
10774    postdeps \
10775    compiler_lib_search_path \
10776    archive_cmds \