source: ThirdParty/Glpk/stable/1.8/configure @ 2373

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

temporarily committing release candidate

File size: 775.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyGlpk 1.8.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2010 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyGlpk'
431PACKAGE_TARNAME='thirdpartyglpk'
432PACKAGE_VERSION='1.8.0'
433PACKAGE_STRING='ThirdPartyGlpk 1.8.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="glpk/include/glpk.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion GLPK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS glpkmajorver glpkminorver COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE GLPKDIR GLPK_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyGlpk 1.8.0 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyGlpk 1.8.0:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-glpk compile project Glpk with debug compiler flags
1064  --enable-doscompile     Under Cygwin, compile so that executables run under
1065                          DOS. Set to mingw to use gcc/g++/ld with
1066                          -mno-cygwin. Set to msvc to use cl/link (or
1067                          icl/link). Default when mentioned: mingw. Default
1068                          when not mentioned: disabled.
1069  --disable-pkg-config    disable use of pkg-config (if available)
1070  --enable-static[=PKGS]
1071                          build static libraries [default=no]
1072  --disable-dependency-tracking  speeds up one-time build
1073  --enable-dependency-tracking   do not reject slow dependency extractors
1074  --enable-maintainer-mode  enable make rules and dependencies not useful
1075                          (and sometimes confusing) to the casual installer
1076  --enable-shared[=PKGS]
1077                          build shared libraries [default=yes]
1078  --enable-fast-install[=PKGS]
1079                          optimize for fast installation [default=yes]
1080  --disable-libtool-lock  avoid locking (might break parallel builds)
1081  --enable-gnu-packages   compile with GNU packages (disabled by default)
1082  --enable-odbc           enable MathProg ODBC support [default=auto]
1083  --enable-mysql          enable MathProg MySQL support [default=auto]
1084
1085Optional Packages:
1086  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1087  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1088  --with-glpk-verbosity specify the debug verbosity level for project Glpk
1089  --with-glpk-checklevel specify the sanity check level for project Glpk
1090  --with-coin-instdir     prefix of installation directory for precompiled
1091                          COIN packages
1092  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1093  --with-pic              try to use only PIC/non-PIC objects [default=use
1094                          both]
1095  --with-tags[=TAGS]
1096                          include additional configurations [automatic]
1097
1098Some influential environment variables:
1099  CDEFS       Additional -D flags to be used when compiling C code.
1100  ADD_CFLAGS  Additional C compiler options
1101  DBG_CFLAGS  Debug C compiler options
1102  OPT_CFLAGS  Optimize C compiler options
1103  CC          C compiler command
1104  CFLAGS      C compiler flags
1105  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1106              nonstandard directory <lib dir>
1107  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108              headers in a nonstandard directory <include dir>
1109  MPICC       C MPI Compiler
1110  PKG_CONFIG  path to pkg-config utility
1111  CPP         C preprocessor
1112  CXX         C++ compiler command
1113  CXXFLAGS    C++ compiler flags
1114  CXXCPP      C++ preprocessor
1115  F77         Fortran 77 compiler command
1116  FFLAGS      Fortran 77 compiler flags
1117
1118Use these variables to override the choices made by `configure' or to help
1119it to find libraries and programs with nonstandard names/locations.
1120
1121Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1122_ACEOF
1123fi
1124
1125if test "$ac_init_help" = "recursive"; then
1126  # If there are subdirs, report their specific --help.
1127  ac_popdir=`pwd`
1128  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1129    test -d $ac_dir || continue
1130    ac_builddir=.
1131
1132if test "$ac_dir" != .; then
1133  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1134  # A "../" for each directory in $ac_dir_suffix.
1135  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1136else
1137  ac_dir_suffix= ac_top_builddir=
1138fi
1139
1140case $srcdir in
1141  .)  # No --srcdir option.  We are building in place.
1142    ac_srcdir=.
1143    if test -z "$ac_top_builddir"; then
1144       ac_top_srcdir=.
1145    else
1146       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1147    fi ;;
1148  [\\/]* | ?:[\\/]* )  # Absolute path.
1149    ac_srcdir=$srcdir$ac_dir_suffix;
1150    ac_top_srcdir=$srcdir ;;
1151  *) # Relative path.
1152    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1153    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1154esac
1155
1156# Do not use `cd foo && pwd` to compute absolute paths, because
1157# the directories may not exist.
1158case `pwd` in
1159.) ac_abs_builddir="$ac_dir";;
1160*)
1161  case "$ac_dir" in
1162  .) ac_abs_builddir=`pwd`;;
1163  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1164  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1165  esac;;
1166esac
1167case $ac_abs_builddir in
1168.) ac_abs_top_builddir=${ac_top_builddir}.;;
1169*)
1170  case ${ac_top_builddir}. in
1171  .) ac_abs_top_builddir=$ac_abs_builddir;;
1172  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1173  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1174  esac;;
1175esac
1176case $ac_abs_builddir in
1177.) ac_abs_srcdir=$ac_srcdir;;
1178*)
1179  case $ac_srcdir in
1180  .) ac_abs_srcdir=$ac_abs_builddir;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1182  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_top_srcdir=$ac_top_srcdir;;
1187*)
1188  case $ac_top_srcdir in
1189  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1191  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1192  esac;;
1193esac
1194
1195    cd $ac_dir
1196    # Check for guested configure; otherwise get Cygnus style configure.
1197    if test -f $ac_srcdir/configure.gnu; then
1198      echo
1199      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1200    elif test -f $ac_srcdir/configure; then
1201      echo
1202      $SHELL $ac_srcdir/configure  --help=recursive
1203    elif test -f $ac_srcdir/configure.ac ||
1204           test -f $ac_srcdir/configure.in; then
1205      echo
1206      $ac_configure --help
1207    else
1208      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1209    fi
1210    cd $ac_popdir
1211  done
1212fi
1213
1214test -n "$ac_init_help" && exit 0
1215if $ac_init_version; then
1216  cat <<\_ACEOF
1217ThirdPartyGlpk configure 1.8.0
1218generated by GNU Autoconf 2.59
1219
1220Copyright (C) 2003 Free Software Foundation, Inc.
1221This configure script is free software; the Free Software Foundation
1222gives unlimited permission to copy, distribute and modify it.
1223
1224
1225Copyright 2007-2010 Stefan Vigerske and others.
1226All Rights Reserved.
1227This file is part of the open source package Coin which is distributed
1228under the Eclipse Public License.
1229_ACEOF
1230  exit 0
1231fi
1232exec 5>config.log
1233cat >&5 <<_ACEOF
1234This file contains any messages produced by compilers while
1235running configure, to aid debugging if configure makes a mistake.
1236
1237It was created by ThirdPartyGlpk $as_me 1.8.0, which was
1238generated by GNU Autoconf 2.59.  Invocation command line was
1239
1240  $ $0 $@
1241
1242_ACEOF
1243{
1244cat <<_ASUNAME
1245## --------- ##
1246## Platform. ##
1247## --------- ##
1248
1249hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1250uname -m = `(uname -m) 2>/dev/null || echo unknown`
1251uname -r = `(uname -r) 2>/dev/null || echo unknown`
1252uname -s = `(uname -s) 2>/dev/null || echo unknown`
1253uname -v = `(uname -v) 2>/dev/null || echo unknown`
1254
1255/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1256/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1257
1258/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1259/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1260/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1261hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1262/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1263/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1264/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1265
1266_ASUNAME
1267
1268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1269for as_dir in $PATH
1270do
1271  IFS=$as_save_IFS
1272  test -z "$as_dir" && as_dir=.
1273  echo "PATH: $as_dir"
1274done
1275
1276} >&5
1277
1278cat >&5 <<_ACEOF
1279
1280
1281## ----------- ##
1282## Core tests. ##
1283## ----------- ##
1284
1285_ACEOF
1286
1287
1288# Keep a trace of the command line.
1289# Strip out --no-create and --no-recursion so they do not pile up.
1290# Strip out --silent because we don't want to record it for future runs.
1291# Also quote any args containing shell meta-characters.
1292# Make two passes to allow for proper duplicate-argument suppression.
1293ac_configure_args=
1294ac_configure_args0=
1295ac_configure_args1=
1296ac_sep=
1297ac_must_keep_next=false
1298for ac_pass in 1 2
1299do
1300  for ac_arg
1301  do
1302    case $ac_arg in
1303    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1304    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1305    | -silent | --silent | --silen | --sile | --sil)
1306      continue ;;
1307    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1309    esac
1310    case $ac_pass in
1311    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1312    2)
1313      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1314      if test $ac_must_keep_next = true; then
1315        ac_must_keep_next=false # Got value, back to normal.
1316      else
1317        case $ac_arg in
1318          *=* | --config-cache | -C | -disable-* | --disable-* \
1319          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1320          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1321          | -with-* | --with-* | -without-* | --without-* | --x)
1322            case "$ac_configure_args0 " in
1323              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1324            esac
1325            ;;
1326          -* ) ac_must_keep_next=true ;;
1327        esac
1328      fi
1329      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1330      # Get rid of the leading space.
1331      ac_sep=" "
1332      ;;
1333    esac
1334  done
1335done
1336$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1337$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1338
1339# When interrupted or exit'd, cleanup temporary files, and complete
1340# config.log.  We remove comments because anyway the quotes in there
1341# would cause problems or look ugly.
1342# WARNING: Be sure not to use single quotes in there, as some shells,
1343# such as our DU 5.0 friend, will then `close' the trap.
1344trap 'exit_status=$?
1345  # Save into config.log some information that might help in debugging.
1346  {
1347    echo
1348
1349    cat <<\_ASBOX
1350## ---------------- ##
1351## Cache variables. ##
1352## ---------------- ##
1353_ASBOX
1354    echo
1355    # The following way of writing the cache mishandles newlines in values,
1356{
1357  (set) 2>&1 |
1358    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1359    *ac_space=\ *)
1360      sed -n \
1361        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1362          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1363      ;;
1364    *)
1365      sed -n \
1366        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1367      ;;
1368    esac;
1369}
1370    echo
1371
1372    cat <<\_ASBOX
1373## ----------------- ##
1374## Output variables. ##
1375## ----------------- ##
1376_ASBOX
1377    echo
1378    for ac_var in $ac_subst_vars
1379    do
1380      eval ac_val=$`echo $ac_var`
1381      echo "$ac_var='"'"'$ac_val'"'"'"
1382    done | sort
1383    echo
1384
1385    if test -n "$ac_subst_files"; then
1386      cat <<\_ASBOX
1387## ------------- ##
1388## Output files. ##
1389## ------------- ##
1390_ASBOX
1391      echo
1392      for ac_var in $ac_subst_files
1393      do
1394        eval ac_val=$`echo $ac_var`
1395        echo "$ac_var='"'"'$ac_val'"'"'"
1396      done | sort
1397      echo
1398    fi
1399
1400    if test -s confdefs.h; then
1401      cat <<\_ASBOX
1402## ----------- ##
1403## confdefs.h. ##
1404## ----------- ##
1405_ASBOX
1406      echo
1407      sed "/^$/d" confdefs.h | sort
1408      echo
1409    fi
1410    test "$ac_signal" != 0 &&
1411      echo "$as_me: caught signal $ac_signal"
1412    echo "$as_me: exit $exit_status"
1413  } >&5
1414  rm -f core *.core &&
1415  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1416    exit $exit_status
1417     ' 0
1418for ac_signal in 1 2 13 15; do
1419  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1420done
1421ac_signal=0
1422
1423# confdefs.h avoids OS command line length limits that DEFS can exceed.
1424rm -rf conftest* confdefs.h
1425# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1426echo >confdefs.h
1427
1428# Predefined preprocessor variables.
1429
1430cat >>confdefs.h <<_ACEOF
1431#define PACKAGE_NAME "$PACKAGE_NAME"
1432_ACEOF
1433
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1437_ACEOF
1438
1439
1440cat >>confdefs.h <<_ACEOF
1441#define PACKAGE_VERSION "$PACKAGE_VERSION"
1442_ACEOF
1443
1444
1445cat >>confdefs.h <<_ACEOF
1446#define PACKAGE_STRING "$PACKAGE_STRING"
1447_ACEOF
1448
1449
1450cat >>confdefs.h <<_ACEOF
1451#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1452_ACEOF
1453
1454
1455# Let the site file select an alternate cache file if it wants to.
1456# Prefer explicitly selected file to automatically selected ones.
1457if test -z "$CONFIG_SITE"; then
1458  if test "x$prefix" != xNONE; then
1459    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1460  else
1461    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1462  fi
1463fi
1464for ac_site_file in $CONFIG_SITE; do
1465  if test -r "$ac_site_file"; then
1466    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1467echo "$as_me: loading site script $ac_site_file" >&6;}
1468    sed 's/^/| /' "$ac_site_file" >&5
1469    . "$ac_site_file"
1470  fi
1471done
1472
1473if test -r "$cache_file"; then
1474  # Some versions of bash will fail to source /dev/null (special
1475  # files actually), so we avoid doing that.
1476  if test -f "$cache_file"; then
1477    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1478echo "$as_me: loading cache $cache_file" >&6;}
1479    case $cache_file in
1480      [\\/]* | ?:[\\/]* ) . $cache_file;;
1481      *)                      . ./$cache_file;;
1482    esac
1483  fi
1484else
1485  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1486echo "$as_me: creating cache $cache_file" >&6;}
1487  >$cache_file
1488fi
1489
1490# Check that the precious variables saved in the cache have kept the same
1491# value.
1492ac_cache_corrupted=false
1493for ac_var in `(set) 2>&1 |
1494               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1495  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1496  eval ac_new_set=\$ac_env_${ac_var}_set
1497  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1498  eval ac_new_val="\$ac_env_${ac_var}_value"
1499  case $ac_old_set,$ac_new_set in
1500    set,)
1501      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1502echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1503      ac_cache_corrupted=: ;;
1504    ,set)
1505      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1506echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1507      ac_cache_corrupted=: ;;
1508    ,);;
1509    *)
1510      if test "x$ac_old_val" != "x$ac_new_val"; then
1511        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1512echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1513        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1514echo "$as_me:   former value:  $ac_old_val" >&2;}
1515        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1516echo "$as_me:   current value: $ac_new_val" >&2;}
1517        ac_cache_corrupted=:
1518      fi;;
1519  esac
1520  # Pass precious variables to config.status.
1521  if test "$ac_new_set" = set; then
1522    case $ac_new_val in
1523    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1524      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1525    *) ac_arg=$ac_var=$ac_new_val ;;
1526    esac
1527    case " $ac_configure_args " in
1528      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1529      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1530    esac
1531  fi
1532done
1533if $ac_cache_corrupted; then
1534  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1535echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1536  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1537echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1538   { (exit 1); exit 1; }; }
1539fi
1540
1541ac_ext=c
1542ac_cpp='$CPP $CPPFLAGS'
1543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576# List one file in the package so that the configure script can test
1577# whether the package is actually there
1578
1579
1580# Where should everything be installed by default?  Here, we want it
1581# to be installed directly in 'bin', 'lib', 'include' subdirectories
1582# of the directory where configure is run.  The default would be
1583# /usr/local.
1584
1585
1586
1587# As backup, we make sure we don't loose an FLIBS if it has been set
1588# by the user
1589save_FLIBS="$FLIBS"
1590
1591# A useful makefile conditional that is always false
1592
1593
1594if false; then
1595  ALWAYS_FALSE_TRUE=
1596  ALWAYS_FALSE_FALSE='#'
1597else
1598  ALWAYS_FALSE_TRUE='#'
1599  ALWAYS_FALSE_FALSE=
1600fi
1601
1602
1603# We set the following variable so that we know later in AC_COIN_FINALIZE
1604# that we are in a project main directory
1605coin_projectdir=yes
1606
1607# Set the project's version numbers
1608
1609
1610cat >>confdefs.h <<_ACEOF
1611#define GLPK_VERSION "$PACKAGE_VERSION"
1612_ACEOF
1613
1614
1615  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1616  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1617  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1618  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1619  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1620  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1621
1622cat >>confdefs.h <<_ACEOF
1623#define GLPK_VERSION_MAJOR $coin_majorver
1624_ACEOF
1625
1626
1627cat >>confdefs.h <<_ACEOF
1628#define GLPK_VERSION_MINOR $coin_minorver
1629_ACEOF
1630
1631
1632cat >>confdefs.h <<_ACEOF
1633#define GLPK_VERSION_RELEASE $coin_releasever
1634_ACEOF
1635
1636
1637  # We use the following variable to have a string with the upper case
1638  # version of the project name
1639  COIN_PRJCT=GLPK
1640
1641  # Set the project's SVN revision number. The complicated sed expression
1642  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1643  # as a single number.
1644  # Extract the first word of "svnversion", so it can be a program name with args.
1645set dummy svnversion; ac_word=$2
1646echo "$as_me:$LINENO: checking for $ac_word" >&5
1647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648if test "${ac_cv_prog_have_svnversion+set}" = set; then
1649  echo $ECHO_N "(cached) $ECHO_C" >&6
1650else
1651  if test -n "$have_svnversion"; then
1652  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1653else
1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657  IFS=$as_save_IFS
1658  test -z "$as_dir" && as_dir=.
1659  for ac_exec_ext in '' $ac_executable_extensions; do
1660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661    ac_cv_prog_have_svnversion="yes"
1662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663    break 2
1664  fi
1665done
1666done
1667
1668  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1669fi
1670fi
1671have_svnversion=$ac_cv_prog_have_svnversion
1672if test -n "$have_svnversion"; then
1673  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1674echo "${ECHO_T}$have_svnversion" >&6
1675else
1676  echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680  if test "x$have_svnversion" = xyes; then
1681
1682    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1683    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1684      GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1685
1686cat >>confdefs.h <<_ACEOF
1687#define GLPK_SVN_REV $GLPK_SVN_REV
1688_ACEOF
1689
1690    fi
1691  fi
1692
1693
1694
1695# Capture libtool library version, if given.
1696coin_libversion=9:0:8
1697
1698
1699
1700
1701#############################################################################
1702#                         Standard build tool stuff                         #
1703#############################################################################
1704
1705# Get the system type
1706ac_aux_dir=
1707for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1708  if 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/install.sh; then
1713    ac_aux_dir=$ac_dir
1714    ac_install_sh="$ac_aux_dir/install.sh -c"
1715    break
1716  elif test -f $ac_dir/shtool; then
1717    ac_aux_dir=$ac_dir
1718    ac_install_sh="$ac_aux_dir/shtool install -c"
1719    break
1720  fi
1721done
1722if test -z "$ac_aux_dir"; then
1723  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1724echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1725   { (exit 1); exit 1; }; }
1726fi
1727ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1728ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1729ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1730
1731# Make sure we can run config.sub.
1732$ac_config_sub sun4 >/dev/null 2>&1 ||
1733  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1734echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1735   { (exit 1); exit 1; }; }
1736
1737echo "$as_me:$LINENO: checking build system type" >&5
1738echo $ECHO_N "checking build system type... $ECHO_C" >&6
1739if test "${ac_cv_build+set}" = set; then
1740  echo $ECHO_N "(cached) $ECHO_C" >&6
1741else
1742  ac_cv_build_alias=$build_alias
1743test -z "$ac_cv_build_alias" &&
1744  ac_cv_build_alias=`$ac_config_guess`
1745test -z "$ac_cv_build_alias" &&
1746  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1747echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1748   { (exit 1); exit 1; }; }
1749ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1750  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1751echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1752   { (exit 1); exit 1; }; }
1753
1754fi
1755echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1756echo "${ECHO_T}$ac_cv_build" >&6
1757build=$ac_cv_build
1758build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1761
1762
1763
1764#turn off warnings and pedantic mode since it seem to make trouble on solaris platform
1765#and we couldn't fix it anyway
1766coin_skip_warn_cflags=yes
1767
1768# Check if user wants to produce debugging code
1769
1770echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1771echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1772
1773# Check whether --enable-debug or --disable-debug was given.
1774if test "${enable_debug+set}" = set; then
1775  enableval="$enable_debug"
1776  case "${enableval}" in
1777   yes) coin_debug_compile=true
1778        if test "${enable_shared+set}" = set; then :; else
1779          enable_shared=no
1780        fi
1781        ;;
1782   no)  coin_debug_compile=false
1783        ;;
1784   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1785echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1786   { (exit 1); exit 1; }; }
1787        ;;
1788esac
1789else
1790  coin_debug_compile=false
1791fi;
1792
1793# Check whether --enable-debug-glpk or --disable-debug-glpk was given.
1794if test "${enable_debug_glpk+set}" = set; then
1795  enableval="$enable_debug_glpk"
1796  case "${enableval}" in
1797    yes) coin_debug_compile=true
1798         ;;
1799    no)  coin_debug_compile=false
1800         ;;
1801    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&5
1802echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;}
1803   { (exit 1); exit 1; }; }
1804         ;;
1805 esac
1806else
1807  :
1808fi;
1809
1810 # m4_ifvaln([Glpk],
1811
1812if test $coin_debug_compile = true; then
1813  echo "$as_me:$LINENO: result: yes" >&5
1814echo "${ECHO_T}yes" >&6
1815else
1816  echo "$as_me:$LINENO: result: no" >&5
1817echo "${ECHO_T}no" >&6
1818fi
1819
1820
1821# Check whether --with-glpk-verbosity or --without-glpk-verbosity was given.
1822if test "${with_glpk_verbosity+set}" = set; then
1823  withval="$with_glpk_verbosity"
1824  if test "$withval" = yes; then
1825                withval=1
1826              fi
1827              coin_glpk_verbosity=$withval
1828else
1829  coin_glpk_verbosity=0
1830fi;
1831
1832cat >>confdefs.h <<_ACEOF
1833#define COIN_GLPK_VERBOSITY $coin_glpk_verbosity
1834_ACEOF
1835
1836
1837
1838# Check whether --with-glpk-checklevel or --without-glpk-checklevel was given.
1839if test "${with_glpk_checklevel+set}" = set; then
1840  withval="$with_glpk_checklevel"
1841  if test "$withval" = yes; then
1842                withval=1
1843              fi
1844              coin_glpk_checklevel=$withval
1845else
1846  coin_glpk_checklevel=0
1847fi;
1848
1849cat >>confdefs.h <<_ACEOF
1850#define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel
1851_ACEOF
1852
1853
1854 # m4_ifvaln([Glpk],
1855
1856
1857
1858# Get the name of the C compiler
1859case $build in
1860  *-mingw*)
1861    if test "${LD+set}" = set; then :; else
1862      LD=link
1863    fi
1864    ;;
1865 esac
1866 case $enable_doscompile in
1867   msvc)
1868     if test "x${LD+set}" = xset; then :; else
1869       LD=link
1870     fi
1871     ;;
1872 esac
1873
1874
1875 # Check whether --enable-doscompile or --disable-doscompile was given.
1876if test "${enable_doscompile+set}" = set; then
1877  enableval="$enable_doscompile"
1878  if test "$enable_doscompile" != no; then
1879     case $build in
1880       *-cygwin* | *-mingw*) ;;
1881       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1882echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1883   { (exit 1); exit 1; }; } ;;
1884     esac
1885   fi
1886else
1887  enable_doscompile=no
1888fi;
1889 case "$enable_doscompile" in
1890   mingw)
1891     case $build in
1892       *-mingw*) enable_doscompile=no ;;
1893     esac
1894     ;;
1895   msvc|no) ;;
1896   yes) enable_doscompile=mingw ;;
1897   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1898                    Try configure --help=recursive." >&5
1899echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1900                    Try configure --help=recursive." >&2;}
1901   { (exit 1); exit 1; }; }
1902      ;;
1903  esac
1904  if test "$enable_doscompile" != no ; then
1905    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1906echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1907  fi
1908
1909
1910
1911
1912ac_ext=c
1913ac_cpp='$CPP $CPPFLAGS'
1914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1916ac_compiler_gnu=$ac_cv_c_compiler_gnu
1917
1918
1919# For consistency, we set the C compiler to the same value of the C++
1920# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1921if test x"$CXX" != x; then
1922  case "$CXX" in
1923    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1924      if test x"$CC" = x; then
1925        CC="$CXX"
1926        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1927echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1928      fi
1929      ;;
1930  esac
1931fi
1932
1933
1934
1935
1936
1937
1938coin_has_cc=yes
1939
1940save_cflags="$CFLAGS"
1941
1942# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1943# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1944# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1945# compiler. In this case, put cc after gcc.
1946
1947case $build in
1948  *-cygwin* | *-mingw*)
1949             if test "$enable_doscompile" = msvc ; then
1950               comps="icl cl"
1951             else
1952               comps="gcc cl"
1953             fi ;;
1954  *-*-solaris*)
1955             # Extract the first word of "cc", so it can be a program name with args.
1956set dummy cc; ac_word=$2
1957echo "$as_me:$LINENO: checking for $ac_word" >&5
1958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1960  echo $ECHO_N "(cached) $ECHO_C" >&6
1961else
1962  if test -n "$sol_cc_compiler"; then
1963  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1964else
1965  ac_prog_rejected=no
1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967for as_dir in $PATH
1968do
1969  IFS=$as_save_IFS
1970  test -z "$as_dir" && as_dir=.
1971  for ac_exec_ext in '' $ac_executable_extensions; do
1972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1974       ac_prog_rejected=yes
1975       continue
1976     fi
1977    ac_cv_prog_sol_cc_compiler="cc"
1978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979    break 2
1980  fi
1981done
1982done
1983
1984if test $ac_prog_rejected = yes; then
1985  # We found a bogon in the path, so make sure we never use it.
1986  set dummy $ac_cv_prog_sol_cc_compiler
1987  shift
1988  if test $# != 0; then
1989    # We chose a different compiler from the bogus one.
1990    # However, it has the same basename, so the bogon will be chosen
1991    # first if we set sol_cc_compiler to just the basename; use the full file name.
1992    shift
1993    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1994  fi
1995fi
1996fi
1997fi
1998sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1999if test -n "$sol_cc_compiler"; then
2000  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2001echo "${ECHO_T}$sol_cc_compiler" >&6
2002else
2003  echo "$as_me:$LINENO: result: no" >&5
2004echo "${ECHO_T}no" >&6
2005fi
2006
2007             if test "$sol_cc_compiler" = "cc" ; then
2008               comps="cc xlc gcc pgcc icc"
2009             else
2010               comps="xlc gcc pgcc icc cc"
2011             fi
2012             ;;
2013  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2014  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2015  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2016esac
2017
2018# We delete the cached value, since the test might not have been
2019# performed with our choice of compilers earlier
2020$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2021# AC_MSG_NOTICE([C compiler candidates: $comps])
2022ac_ext=c
2023ac_cpp='$CPP $CPPFLAGS'
2024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027if test -n "$ac_tool_prefix"; then
2028  for ac_prog in $comps
2029  do
2030    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2031set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2032echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034if test "${ac_cv_prog_CC+set}" = set; then
2035  echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037  if test -n "$CC"; then
2038  ac_cv_prog_CC="$CC" # Let the user override the test.
2039else
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043  IFS=$as_save_IFS
2044  test -z "$as_dir" && as_dir=.
2045  for ac_exec_ext in '' $ac_executable_extensions; do
2046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049    break 2
2050  fi
2051done
2052done
2053
2054fi
2055fi
2056CC=$ac_cv_prog_CC
2057if test -n "$CC"; then
2058  echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6
2060else
2061  echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6
2063fi
2064
2065    test -n "$CC" && break
2066  done
2067fi
2068if test -z "$CC"; then
2069  ac_ct_CC=$CC
2070  for ac_prog in $comps
2071do
2072  # Extract the first word of "$ac_prog", so it can be a program name with args.
2073set dummy $ac_prog; ac_word=$2
2074echo "$as_me:$LINENO: checking for $ac_word" >&5
2075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077  echo $ECHO_N "(cached) $ECHO_C" >&6
2078else
2079  if test -n "$ac_ct_CC"; then
2080  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081else
2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083for as_dir in $PATH
2084do
2085  IFS=$as_save_IFS
2086  test -z "$as_dir" && as_dir=.
2087  for ac_exec_ext in '' $ac_executable_extensions; do
2088  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089    ac_cv_prog_ac_ct_CC="$ac_prog"
2090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091    break 2
2092  fi
2093done
2094done
2095
2096fi
2097fi
2098ac_ct_CC=$ac_cv_prog_ac_ct_CC
2099if test -n "$ac_ct_CC"; then
2100  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2101echo "${ECHO_T}$ac_ct_CC" >&6
2102else
2103  echo "$as_me:$LINENO: result: no" >&5
2104echo "${ECHO_T}no" >&6
2105fi
2106
2107  test -n "$ac_ct_CC" && break
2108done
2109
2110  CC=$ac_ct_CC
2111fi
2112
2113
2114test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2115See \`config.log' for more details." >&5
2116echo "$as_me: error: no acceptable C compiler found in \$PATH
2117See \`config.log' for more details." >&2;}
2118   { (exit 1); exit 1; }; }
2119
2120# Provide some information about the compiler.
2121echo "$as_me:$LINENO:" \
2122     "checking for C compiler version" >&5
2123ac_compiler=`set X $ac_compile; echo $2`
2124{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2125  (eval $ac_compiler --version </dev/null >&5) 2>&5
2126  ac_status=$?
2127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128  (exit $ac_status); }
2129{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2130  (eval $ac_compiler -v </dev/null >&5) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }
2134{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2135  (eval $ac_compiler -V </dev/null >&5) 2>&5
2136  ac_status=$?
2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138  (exit $ac_status); }
2139
2140cat >conftest.$ac_ext <<_ACEOF
2141/* confdefs.h.  */
2142_ACEOF
2143cat confdefs.h >>conftest.$ac_ext
2144cat >>conftest.$ac_ext <<_ACEOF
2145/* end confdefs.h.  */
2146
2147int
2148main ()
2149{
2150
2151  ;
2152  return 0;
2153}
2154_ACEOF
2155ac_clean_files_save=$ac_clean_files
2156ac_clean_files="$ac_clean_files a.out a.exe b.out"
2157# Try to create an executable without -o first, disregard a.out.
2158# It will help us diagnose broken compilers, and finding out an intuition
2159# of exeext.
2160echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2161echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2162ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2163if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2164  (eval $ac_link_default) 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }; then
2168  # Find the output, starting from the most likely.  This scheme is
2169# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2170# resort.
2171
2172# Be careful to initialize this variable, since it used to be cached.
2173# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2174ac_cv_exeext=
2175# b.out is created by i960 compilers.
2176for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2177do
2178  test -f "$ac_file" || continue
2179  case $ac_file in
2180    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2181        ;;
2182    conftest.$ac_ext )
2183        # This is the source file.
2184        ;;
2185    [ab].out )
2186        # We found the default executable, but exeext='' is most
2187        # certainly right.
2188        break;;
2189    *.* )
2190        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191        # FIXME: I believe we export ac_cv_exeext for Libtool,
2192        # but it would be cool to find out if it's true.  Does anybody
2193        # maintain Libtool? --akim.
2194        export ac_cv_exeext
2195        break;;
2196    * )
2197        break;;
2198  esac
2199done
2200else
2201  echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: C compiler cannot create executables
2207See \`config.log' for more details." >&2;}
2208   { (exit 77); exit 77; }; }
2209fi
2210
2211ac_exeext=$ac_cv_exeext
2212echo "$as_me:$LINENO: result: $ac_file" >&5
2213echo "${ECHO_T}$ac_file" >&6
2214
2215# Check the compiler produces executables we can run.  If not, either
2216# the compiler is broken, or we cross compile.
2217echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2218echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2219# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220# If not cross compiling, check that we can run a simple program.
2221if test "$cross_compiling" != yes; then
2222  if { ac_try='./$ac_file'
2223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224  (eval $ac_try) 2>&5
2225  ac_status=$?
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); }; }; then
2228    cross_compiling=no
2229  else
2230    if test "$cross_compiling" = maybe; then
2231        cross_compiling=yes
2232    else
2233        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&5
2236echo "$as_me: error: cannot run C compiled programs.
2237If you meant to cross compile, use \`--host'.
2238See \`config.log' for more details." >&2;}
2239   { (exit 1); exit 1; }; }
2240    fi
2241  fi
2242fi
2243echo "$as_me:$LINENO: result: yes" >&5
2244echo "${ECHO_T}yes" >&6
2245
2246rm -f a.out a.exe conftest$ac_cv_exeext b.out
2247ac_clean_files=$ac_clean_files_save
2248# Check the compiler produces executables we can run.  If not, either
2249# the compiler is broken, or we cross compile.
2250echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2252echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253echo "${ECHO_T}$cross_compiling" >&6
2254
2255echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2258  (eval $ac_link) 2>&5
2259  ac_status=$?
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); }; then
2262  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2263# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2264# work properly (i.e., refer to `conftest.exe'), while it won't with
2265# `rm'.
2266for ac_file in conftest.exe conftest conftest.*; do
2267  test -f "$ac_file" || continue
2268  case $ac_file in
2269    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2270    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2271          export ac_cv_exeext
2272          break;;
2273    * ) break;;
2274  esac
2275done
2276else
2277  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2278See \`config.log' for more details." >&5
2279echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2280See \`config.log' for more details." >&2;}
2281   { (exit 1); exit 1; }; }
2282fi
2283
2284rm -f conftest$ac_cv_exeext
2285echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2286echo "${ECHO_T}$ac_cv_exeext" >&6
2287
2288rm -f conftest.$ac_ext
2289EXEEXT=$ac_cv_exeext
2290ac_exeext=$EXEEXT
2291echo "$as_me:$LINENO: checking for suffix of object files" >&5
2292echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2293if test "${ac_cv_objext+set}" = set; then
2294  echo $ECHO_N "(cached) $ECHO_C" >&6
2295else
2296  cat >conftest.$ac_ext <<_ACEOF
2297/* confdefs.h.  */
2298_ACEOF
2299cat confdefs.h >>conftest.$ac_ext
2300cat >>conftest.$ac_ext <<_ACEOF
2301/* end confdefs.h.  */
2302
2303int
2304main ()
2305{
2306
2307  ;
2308  return 0;
2309}
2310_ACEOF
2311rm -f conftest.o conftest.obj
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313  (eval $ac_compile) 2>&5
2314  ac_status=$?
2315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316  (exit $ac_status); }; then
2317  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2318  case $ac_file in
2319    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2320    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2321       break;;
2322  esac
2323done
2324else
2325  echo "$as_me: failed program was:" >&5
2326sed 's/^/| /' conftest.$ac_ext >&5
2327
2328{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: cannot compute suffix of object files: cannot compile
2331See \`config.log' for more details." >&2;}
2332   { (exit 1); exit 1; }; }
2333fi
2334
2335rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336fi
2337echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2338echo "${ECHO_T}$ac_cv_objext" >&6
2339OBJEXT=$ac_cv_objext
2340ac_objext=$OBJEXT
2341echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2342echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2343if test "${ac_cv_c_compiler_gnu+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h.  */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h.  */
2352
2353int
2354main ()
2355{
2356#ifndef __GNUC__
2357       choke me
2358#endif
2359
2360  ;
2361  return 0;
2362}
2363_ACEOF
2364rm -f conftest.$ac_objext
2365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366  (eval $ac_compile) 2>conftest.er1
2367  ac_status=$?
2368  grep -v '^ *+' conftest.er1 >conftest.err
2369  rm -f conftest.er1
2370  cat conftest.err >&5
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); } &&
2373         { ac_try='test -z "$ac_c_werror_flag"
2374                         || test ! -s conftest.err'
2375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376  (eval $ac_try) 2>&5
2377  ac_status=$?
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); }; } &&
2380         { ac_try='test -s conftest.$ac_objext'
2381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382  (eval $ac_try) 2>&5
2383  ac_status=$?
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); }; }; then
2386  ac_compiler_gnu=yes
2387else
2388  echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391ac_compiler_gnu=no
2392fi
2393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394ac_cv_c_compiler_gnu=$ac_compiler_gnu
2395
2396fi
2397echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2398echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2399GCC=`test $ac_compiler_gnu = yes && echo yes`
2400ac_test_CFLAGS=${CFLAGS+set}
2401ac_save_CFLAGS=$CFLAGS
2402CFLAGS="-g"
2403echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2404echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2405if test "${ac_cv_prog_cc_g+set}" = set; then
2406  echo $ECHO_N "(cached) $ECHO_C" >&6
2407else
2408  cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h.  */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h.  */
2414
2415int
2416main ()
2417{
2418
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423rm -f conftest.$ac_objext
2424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425  (eval $ac_compile) 2>conftest.er1
2426  ac_status=$?
2427  grep -v '^ *+' conftest.er1 >conftest.err
2428  rm -f conftest.er1
2429  cat conftest.err >&5
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); } &&
2432         { ac_try='test -z "$ac_c_werror_flag"
2433                         || test ! -s conftest.err'
2434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435  (eval $ac_try) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }; } &&
2439         { ac_try='test -s conftest.$ac_objext'
2440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441  (eval $ac_try) 2>&5
2442  ac_status=$?
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); }; }; then
2445  ac_cv_prog_cc_g=yes
2446else
2447  echo "$as_me: failed program was:" >&5
2448sed 's/^/| /' conftest.$ac_ext >&5
2449
2450ac_cv_prog_cc_g=no
2451fi
2452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453fi
2454echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2455echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2456if test "$ac_test_CFLAGS" = set; then
2457  CFLAGS=$ac_save_CFLAGS
2458elif test $ac_cv_prog_cc_g = yes; then
2459  if test "$GCC" = yes; then
2460    CFLAGS="-g -O2"
2461  else
2462    CFLAGS="-g"
2463  fi
2464else
2465  if test "$GCC" = yes; then
2466    CFLAGS="-O2"
2467  else
2468    CFLAGS=
2469  fi
2470fi
2471echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2472echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2473if test "${ac_cv_prog_cc_stdc+set}" = set; then
2474  echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476  ac_cv_prog_cc_stdc=no
2477ac_save_CC=$CC
2478cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h.  */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h.  */
2484#include <stdarg.h>
2485#include <stdio.h>
2486#include <sys/types.h>
2487#include <sys/stat.h>
2488/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2489struct buf { int x; };
2490FILE * (*rcsopen) (struct buf *, struct stat *, int);
2491static char *e (p, i)
2492     char **p;
2493     int i;
2494{
2495  return p[i];
2496}
2497static char *f (char * (*g) (char **, int), char **p, ...)
2498{
2499  char *s;
2500  va_list v;
2501  va_start (v,p);
2502  s = g (p, va_arg (v,int));
2503  va_end (v);
2504  return s;
2505}
2506
2507/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2508   function prototypes and stuff, but not '\xHH' hex character constants.
2509   These don't provoke an error unfortunately, instead are silently treated
2510   as 'x'.  The following induces an error, until -std1 is added to get
2511   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2512   array size at least.  It's necessary to write '\x00'==0 to get something
2513   that's true only with -std1.  */
2514int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2515
2516int test (int i, double x);
2517struct s1 {int (*f) (int a);};
2518struct s2 {int (*f) (double a);};
2519int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2520int argc;
2521char **argv;
2522int
2523main ()
2524{
2525return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2526  ;
2527  return 0;
2528}
2529_ACEOF
2530# Don't try gcc -ansi; that turns off useful extensions and
2531# breaks some systems' header files.
2532# AIX                   -qlanglvl=ansi
2533# Ultrix and OSF/1      -std1
2534# HP-UX 10.20 and later -Ae
2535# HP-UX older versions  -Aa -D_HPUX_SOURCE
2536# SVR4                  -Xc -D__EXTENSIONS__
2537for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2538do
2539  CC="$ac_save_CC $ac_arg"
2540  rm -f conftest.$ac_objext
2541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542  (eval $ac_compile) 2>conftest.er1
2543  ac_status=$?
2544  grep -v '^ *+' conftest.er1 >conftest.err
2545  rm -f conftest.er1
2546  cat conftest.err >&5
2547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548  (exit $ac_status); } &&
2549         { ac_try='test -z "$ac_c_werror_flag"
2550                         || test ! -s conftest.err'
2551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552  (eval $ac_try) 2>&5
2553  ac_status=$?
2554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555  (exit $ac_status); }; } &&
2556         { ac_try='test -s conftest.$ac_objext'
2557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558  (eval $ac_try) 2>&5
2559  ac_status=$?
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); }; }; then
2562  ac_cv_prog_cc_stdc=$ac_arg
2563break
2564else
2565  echo "$as_me: failed program was:" >&5
2566sed 's/^/| /' conftest.$ac_ext >&5
2567
2568fi
2569rm -f conftest.err conftest.$ac_objext
2570done
2571rm -f conftest.$ac_ext conftest.$ac_objext
2572CC=$ac_save_CC
2573
2574fi
2575
2576case "x$ac_cv_prog_cc_stdc" in
2577  x|xno)
2578    echo "$as_me:$LINENO: result: none needed" >&5
2579echo "${ECHO_T}none needed" >&6 ;;
2580  *)
2581    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2582echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2583    CC="$CC $ac_cv_prog_cc_stdc" ;;
2584esac
2585
2586# Some people use a C++ compiler to compile C.  Since we use `exit',
2587# in C++ we need to declare it.  In case someone uses the same compiler
2588# for both compiling C and C++ we need to have the C++ compiler decide
2589# the declaration of exit, since it's the most demanding environment.
2590cat >conftest.$ac_ext <<_ACEOF
2591#ifndef __cplusplus
2592  choke me
2593#endif
2594_ACEOF
2595rm -f conftest.$ac_objext
2596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597  (eval $ac_compile) 2>conftest.er1
2598  ac_status=$?
2599  grep -v '^ *+' conftest.er1 >conftest.err
2600  rm -f conftest.er1
2601  cat conftest.err >&5
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); } &&
2604         { ac_try='test -z "$ac_c_werror_flag"
2605                         || test ! -s conftest.err'
2606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607  (eval $ac_try) 2>&5
2608  ac_status=$?
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); }; } &&
2611         { ac_try='test -s conftest.$ac_objext'
2612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613  (eval $ac_try) 2>&5
2614  ac_status=$?
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); }; }; then
2617  for ac_declaration in \
2618   '' \
2619   'extern "C" void std::exit (int) throw (); using std::exit;' \
2620   'extern "C" void std::exit (int); using std::exit;' \
2621   'extern "C" void exit (int) throw ();' \
2622   'extern "C" void exit (int);' \
2623   'void exit (int);'
2624do
2625  cat >conftest.$ac_ext <<_ACEOF
2626/* confdefs.h.  */
2627_ACEOF
2628cat confdefs.h >>conftest.$ac_ext
2629cat >>conftest.$ac_ext <<_ACEOF
2630/* end confdefs.h.  */
2631$ac_declaration
2632#include <stdlib.h>
2633int
2634main ()
2635{
2636exit (42);
2637  ;
2638  return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext
2642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643  (eval $ac_compile) 2>conftest.er1
2644  ac_status=$?
2645  grep -v '^ *+' conftest.er1 >conftest.err
2646  rm -f conftest.er1
2647  cat conftest.err >&5
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); } &&
2650         { ac_try='test -z "$ac_c_werror_flag"
2651                         || test ! -s conftest.err'
2652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653  (eval $ac_try) 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; } &&
2657         { ac_try='test -s conftest.$ac_objext'
2658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659  (eval $ac_try) 2>&5
2660  ac_status=$?
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); }; }; then
2663  :
2664else
2665  echo "$as_me: failed program was:" >&5
2666sed 's/^/| /' conftest.$ac_ext >&5
2667
2668continue
2669fi
2670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671  cat >conftest.$ac_ext <<_ACEOF
2672/* confdefs.h.  */
2673_ACEOF
2674cat confdefs.h >>conftest.$ac_ext
2675cat >>conftest.$ac_ext <<_ACEOF
2676/* end confdefs.h.  */
2677$ac_declaration
2678int
2679main ()
2680{
2681exit (42);
2682  ;
2683  return 0;
2684}
2685_ACEOF
2686rm -f conftest.$ac_objext
2687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688  (eval $ac_compile) 2>conftest.er1
2689  ac_status=$?
2690  grep -v '^ *+' conftest.er1 >conftest.err
2691  rm -f conftest.er1
2692  cat conftest.err >&5
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); } &&
2695         { ac_try='test -z "$ac_c_werror_flag"
2696                         || test ! -s conftest.err'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; } &&
2702         { ac_try='test -s conftest.$ac_objext'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; }; then
2708  break
2709else
2710  echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713fi
2714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2715done
2716rm -f conftest*
2717if test -n "$ac_declaration"; then
2718  echo '#ifdef __cplusplus' >>confdefs.h
2719  echo $ac_declaration      >>confdefs.h
2720  echo '#endif'             >>confdefs.h
2721fi
2722
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
2729ac_ext=c
2730ac_cpp='$CPP $CPPFLAGS'
2731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734
2735if test -z "$CC" ; then
2736  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2737echo "$as_me: error: Failed to find a C compiler!" >&2;}
2738   { (exit 1); exit 1; }; }
2739fi
2740# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2741case "$CC" in
2742  cl* | */cl* | CL* | */CL* )
2743    if test "$ac_cv_prog_cc_g" = yes ; then
2744      ac_cv_prog_cc_g=no
2745      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2746echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2747    fi ;;
2748esac
2749CFLAGS="$save_cflags"
2750
2751# add automake conditional so we can recognize cl compiler in makefile
2752coin_cc_is_cl=false
2753case "$CC" in
2754  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2755    coin_cc_is_cl=true
2756    ;;
2757esac
2758
2759
2760if test $coin_cc_is_cl = true; then
2761  COIN_CC_IS_CL_TRUE=
2762  COIN_CC_IS_CL_FALSE='#'
2763else
2764  COIN_CC_IS_CL_TRUE='#'
2765  COIN_CC_IS_CL_FALSE=
2766fi
2767
2768
2769# Check if a project specific CFLAGS variable has been set
2770if test x$COIN_PRJCT != x; then
2771  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2772  if test x$coin_tmp = xset; then
2773    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2774  fi
2775fi
2776
2777if test x"$CFLAGS" = x; then
2778
2779  coin_add_cflags=
2780  coin_opt_cflags=
2781  coin_dbg_cflags=
2782  coin_warn_cflags=
2783
2784  if test "$GCC" = "yes"; then
2785    case "$CC" in
2786      icc* | */icc*)
2787        ;;
2788      *)
2789        coin_opt_cflags="-O3"
2790        coin_add_cflags="-pipe"
2791        coin_dbg_cflags="-g -O0"
2792        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2793        case $build in
2794          *-darwin*)
2795            ;;
2796          *)
2797            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2798            ;;
2799        esac
2800        case $enable_doscompile in
2801          mingw)
2802            CFLAGS="-mno-cygwin"
2803            cat >conftest.$ac_ext <<_ACEOF
2804/* confdefs.h.  */
2805_ACEOF
2806cat confdefs.h >>conftest.$ac_ext
2807cat >>conftest.$ac_ext <<_ACEOF
2808/* end confdefs.h.  */
2809
2810int
2811main ()
2812{
2813int i=0; i++;
2814  ;
2815  return 0;
2816}
2817_ACEOF
2818rm -f conftest.$ac_objext conftest$ac_exeext
2819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2820  (eval $ac_link) 2>conftest.er1
2821  ac_status=$?
2822  grep -v '^ *+' conftest.er1 >conftest.err
2823  rm -f conftest.er1
2824  cat conftest.err >&5
2825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826  (exit $ac_status); } &&
2827         { ac_try='test -z "$ac_c_werror_flag"
2828                         || test ! -s conftest.err'
2829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830  (eval $ac_try) 2>&5
2831  ac_status=$?
2832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833  (exit $ac_status); }; } &&
2834         { ac_try='test -s conftest$ac_exeext'
2835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836  (eval $ac_try) 2>&5
2837  ac_status=$?
2838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839  (exit $ac_status); }; }; then
2840  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2841else
2842  echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845fi
2846rm -f conftest.err conftest.$ac_objext \
2847      conftest$ac_exeext conftest.$ac_ext
2848            CFLAGS=
2849          ;;
2850        esac
2851    esac
2852  fi
2853  if test -z "$coin_opt_cflags"; then
2854    case $build in
2855      *-cygwin* | *-mingw*)
2856        case "$CC" in
2857          cl* | */cl* | CL* | */CL*)
2858            coin_opt_cflags='-MT -O2'
2859            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2860            coin_dbg_cflags='-MTd'
2861            ;;
2862          icl* | */icl* | ICL* | */ICL*)
2863            coin_opt_cflags='-MT -Ox'
2864            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2865            coin_dbg_cflags='-MTd -debug'
2866            ;;
2867        esac
2868        ;;
2869      *-linux-*)
2870        case "$CC" in
2871          icc* | */icc*)
2872            coin_opt_cflags="-O3 -ip -mp1"
2873            coin_add_cflags=""
2874            coin_dbg_cflags="-g"
2875            # Check if -i_dynamic is necessary (for new glibc library)
2876            CFLAGS=
2877            cat >conftest.$ac_ext <<_ACEOF
2878/* confdefs.h.  */
2879_ACEOF
2880cat confdefs.h >>conftest.$ac_ext
2881cat >>conftest.$ac_ext <<_ACEOF
2882/* end confdefs.h.  */
2883
2884int
2885main ()
2886{
2887int i=0; i++;
2888  ;
2889  return 0;
2890}
2891_ACEOF
2892rm -f conftest.$ac_objext conftest$ac_exeext
2893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2894  (eval $ac_link) 2>conftest.er1
2895  ac_status=$?
2896  grep -v '^ *+' conftest.er1 >conftest.err
2897  rm -f conftest.er1
2898  cat conftest.err >&5
2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); } &&
2901         { ac_try='test -z "$ac_c_werror_flag"
2902                         || test ! -s conftest.err'
2903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904  (eval $ac_try) 2>&5
2905  ac_status=$?
2906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907  (exit $ac_status); }; } &&
2908         { ac_try='test -s conftest$ac_exeext'
2909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910  (eval $ac_try) 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }; }; then
2914  :
2915else
2916  echo "$as_me: failed program was:" >&5
2917sed 's/^/| /' conftest.$ac_ext >&5
2918
2919coin_add_cflags="-i_dynamic $coin_add_cflags"
2920fi
2921rm -f conftest.err conftest.$ac_objext \
2922      conftest$ac_exeext conftest.$ac_ext
2923            ;;
2924          pgcc* | */pgcc*)
2925            coin_opt_cflags="-fast"
2926            coin_add_cflags="-Kieee -pc 64"
2927            coin_dbg_cflags="-g"
2928            ;;
2929        esac
2930        ;;
2931      *-ibm-*)
2932        case "$CC" in
2933          xlc* | */xlc* | mpxlc* | */mpxlc*)
2934            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2935            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2936            coin_dbg_cflags="-g"
2937          ;;
2938        esac
2939        ;;
2940      *-hp-*)
2941        coin_opt_cflags="-O"
2942        coin_add_cflags="-Ae"
2943        coin_dbg_cflags="-g"
2944        ;;
2945      *-*-solaris*)
2946        coin_opt_cflags="-xO4"
2947        coin_dbg_cflags="-g"
2948        ;;
2949      *-sgi-*)
2950        coin_opt_cflags="-O -OPT:Olimit=0"
2951        coin_dbg_cflags="-g"
2952        ;;
2953    esac
2954  fi
2955
2956  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2957    coin_dbg_cflags="-g"
2958  fi
2959
2960  if test -z "$coin_opt_cflags"; then
2961    # Try if -O option works if nothing else is set
2962    CFLAGS="-O"
2963    cat >conftest.$ac_ext <<_ACEOF
2964/* confdefs.h.  */
2965_ACEOF
2966cat confdefs.h >>conftest.$ac_ext
2967cat >>conftest.$ac_ext <<_ACEOF
2968/* end confdefs.h.  */
2969
2970int
2971main ()
2972{
2973int i=0; i++;
2974  ;
2975  return 0;
2976}
2977_ACEOF
2978rm -f conftest.$ac_objext conftest$ac_exeext
2979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2980  (eval $ac_link) 2>conftest.er1
2981  ac_status=$?
2982  grep -v '^ *+' conftest.er1 >conftest.err
2983  rm -f conftest.er1
2984  cat conftest.err >&5
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); } &&
2987         { ac_try='test -z "$ac_c_werror_flag"
2988                         || test ! -s conftest.err'
2989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990  (eval $ac_try) 2>&5
2991  ac_status=$?
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); }; } &&
2994         { ac_try='test -s conftest$ac_exeext'
2995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996  (eval $ac_try) 2>&5
2997  ac_status=$?
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); }; }; then
3000  coin_opt_cflags="-O"
3001else
3002  echo "$as_me: failed program was:" >&5
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005fi
3006rm -f conftest.err conftest.$ac_objext \
3007      conftest$ac_exeext conftest.$ac_ext
3008  fi
3009
3010  # if PM doesn't want the warning messages, take them out
3011  if test x"$coin_skip_warn_cflags" = xyes; then
3012    coin_warn_cflags=
3013  fi
3014
3015  if test x${DBG_CFLAGS+set} != xset; then
3016    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3017  fi
3018  if test x${OPT_CFLAGS+set} != xset; then
3019    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3020  fi
3021
3022  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3023  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3024
3025  if test "$coin_debug_compile" = "true"; then
3026    CFLAGS="$DBG_CFLAGS"
3027  else
3028    CFLAGS="$OPT_CFLAGS"
3029  fi
3030else
3031  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3032  if test x${DBG_CFLAGS+set} != xset; then
3033    DBG_CFLAGS="$CFLAGS"
3034  fi
3035  if test x${OPT_CFLAGS+set} != xset; then
3036    OPT_CFLAGS="$CFLAGS"
3037  fi
3038fi
3039
3040# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3041
3042case "$CFLAGS" in
3043  *-mno-cygwin*)
3044    if test x${CPPFLAGS+set} != xset ; then
3045      CPPFLAGS="-mno-cygwin"
3046    else
3047      case "$CPPFLAGS" in
3048        *-mno-cygwin*)
3049          ;;
3050        *)
3051          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3052          ;;
3053      esac
3054    fi ;;
3055esac
3056
3057# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3058if test x$COIN_PRJCT != x; then
3059  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3060fi
3061
3062# Try if CFLAGS works
3063save_CFLAGS="$CFLAGS"
3064cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h.  */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h.  */
3070
3071int
3072main ()
3073{
3074int i=0; i++;
3075  ;
3076  return 0;
3077}
3078_ACEOF
3079rm -f conftest.$ac_objext conftest$ac_exeext
3080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3081  (eval $ac_link) 2>conftest.er1
3082  ac_status=$?
3083  grep -v '^ *+' conftest.er1 >conftest.err
3084  rm -f conftest.er1
3085  cat conftest.err >&5
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); } &&
3088         { ac_try='test -z "$ac_c_werror_flag"
3089                         || test ! -s conftest.err'
3090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091  (eval $ac_try) 2>&5
3092  ac_status=$?
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); }; } &&
3095         { ac_try='test -s conftest$ac_exeext'
3096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097  (eval $ac_try) 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }; }; then
3101  :
3102else
3103  echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106CFLAGS=
3107fi
3108rm -f conftest.err conftest.$ac_objext \
3109      conftest$ac_exeext conftest.$ac_ext
3110if test -z "$CFLAGS"; then
3111  { 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
3112echo "$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;}
3113  CFLAGS='-O'
3114  cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h.  */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h.  */
3120
3121int
3122main ()
3123{
3124int i=0; i++;
3125  ;
3126  return 0;
3127}
3128_ACEOF
3129rm -f conftest.$ac_objext conftest$ac_exeext
3130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3131  (eval $ac_link) 2>conftest.er1
3132  ac_status=$?
3133  grep -v '^ *+' conftest.er1 >conftest.err
3134  rm -f conftest.er1
3135  cat conftest.err >&5
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); } &&
3138         { ac_try='test -z "$ac_c_werror_flag"
3139                         || test ! -s conftest.err'
3140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141  (eval $ac_try) 2>&5
3142  ac_status=$?
3143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144  (exit $ac_status); }; } &&
3145         { ac_try='test -s conftest$ac_exeext'
3146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147  (eval $ac_try) 2>&5
3148  ac_status=$?
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); }; }; then
3151  :
3152else
3153  echo "$as_me: failed program was:" >&5
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
3156CFLAGS=
3157fi
3158rm -f conftest.err conftest.$ac_objext \
3159      conftest$ac_exeext conftest.$ac_ext
3160  if test -z "$CFLAGS"; then
3161    { 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
3162echo "$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;}
3163  fi
3164fi
3165
3166{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3167echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3168
3169
3170if test x"$MPICC" = x; then :; else
3171  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3172echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3173  CC="$MPICC"
3174fi
3175
3176# Correct the LD variable if we are using the MS or Intel-windows compiler
3177case "$CC" in
3178  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3179    case $build in
3180  *-mingw*)
3181    if test "${LD+set}" = set; then :; else
3182      LD=link
3183    fi
3184    ;;
3185 esac
3186 case $enable_doscompile in
3187   msvc)
3188     if test "x${LD+set}" = xset; then :; else
3189       LD=link
3190     fi
3191     ;;
3192 esac
3193
3194    ;;
3195esac
3196
3197ac_ext=c
3198ac_cpp='$CPP $CPPFLAGS'
3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202
3203
3204
3205# Check if pkg-config is available (to setup addlibs file)
3206
3207
3208# Check whether --enable-pkg-config or --disable-pkg-config was given.
3209if test "${enable_pkg_config+set}" = set; then
3210  enableval="$enable_pkg_config"
3211  use_pkgconfig="$enableval"
3212else
3213  use_pkgconfig=yes
3214fi;
3215
3216if test $use_pkgconfig = yes ; then
3217  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3218    if test -n "$ac_tool_prefix"; then
3219  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3220set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3221echo "$as_me:$LINENO: checking for $ac_word" >&5
3222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3223if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3224  echo $ECHO_N "(cached) $ECHO_C" >&6
3225else
3226  case $PKG_CONFIG in
3227  [\\/]* | ?:[\\/]*)
3228  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3229  ;;
3230  *)
3231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234  IFS=$as_save_IFS
3235  test -z "$as_dir" && as_dir=.
3236  for ac_exec_ext in '' $ac_executable_extensions; do
3237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240    break 2
3241  fi
3242done
3243done
3244
3245  ;;
3246esac
3247fi
3248PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3249
3250if test -n "$PKG_CONFIG"; then
3251  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3252echo "${ECHO_T}$PKG_CONFIG" >&6
3253else
3254  echo "$as_me:$LINENO: result: no" >&5
3255echo "${ECHO_T}no" >&6
3256fi
3257
3258fi
3259if test -z "$ac_cv_path_PKG_CONFIG"; then
3260  ac_pt_PKG_CONFIG=$PKG_CONFIG
3261  # Extract the first word of "pkg-config", so it can be a program name with args.
3262set dummy pkg-config; ac_word=$2
3263echo "$as_me:$LINENO: checking for $ac_word" >&5
3264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3265if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3266  echo $ECHO_N "(cached) $ECHO_C" >&6
3267else
3268  case $ac_pt_PKG_CONFIG in
3269  [\\/]* | ?:[\\/]*)
3270  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3271  ;;
3272  *)
3273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276  IFS=$as_save_IFS
3277  test -z "$as_dir" && as_dir=.
3278  for ac_exec_ext in '' $ac_executable_extensions; do
3279  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3282    break 2
3283  fi
3284done
3285done
3286
3287  ;;
3288esac
3289fi
3290ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3291
3292if test -n "$ac_pt_PKG_CONFIG"; then
3293  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3294echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3295else
3296  echo "$as_me:$LINENO: result: no" >&5
3297echo "${ECHO_T}no" >&6
3298fi
3299
3300  PKG_CONFIG=$ac_pt_PKG_CONFIG
3301else
3302  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3303fi
3304
3305  fi
3306  if test -n "$PKG_CONFIG"; then
3307    _pkg_min_version=0.16.0
3308    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3309echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3310    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3311      echo "$as_me:$LINENO: result: yes" >&5
3312echo "${ECHO_T}yes" >&6
3313    else
3314      echo "$as_me:$LINENO: result: no" >&5
3315echo "${ECHO_T}no" >&6
3316      PKG_CONFIG=""
3317    fi
3318  fi
3319
3320  # check if pkg-config supports the short-errors flag
3321  if test -n "$PKG_CONFIG" && \
3322    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3323    pkg_short_errors=" --short-errors "
3324  else
3325    pkg_short_errors=""
3326  fi
3327fi
3328
3329
3330
3331if test -n "$PKG_CONFIG"; then
3332  COIN_HAS_PKGCONFIG_TRUE=
3333  COIN_HAS_PKGCONFIG_FALSE='#'
3334else
3335  COIN_HAS_PKGCONFIG_TRUE='#'
3336  COIN_HAS_PKGCONFIG_FALSE=
3337fi
3338
3339
3340
3341# assemble pkg-config search path for installed projects
3342COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3343
3344# 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
3345# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3346# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3347if test "x${prefix}" = xNONE ; then
3348  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3349else
3350  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3351fi
3352
3353
3354# Check whether --with-coin-instdir or --without-coin-instdir was given.
3355if test "${with_coin_instdir+set}" = set; then
3356  withval="$with_coin_instdir"
3357  if test -d "$withval"; then : ; else
3358     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3359echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3360   { (exit 1); exit 1; }; }
3361   fi
3362   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3363
3364fi;
3365
3366
3367
3368# assemble additional pkg-config search paths for uninstalled projects
3369if test x$coin_projectdir = xyes ; then
3370  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3371  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3372  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3373  # 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)
3374  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3375  if test -e ../coin_subdirs.txt ; then
3376    for i in `cat ../coin_subdirs.txt` ; do
3377      if test -d ../$i ; then
3378        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3379      fi
3380      if test -d ../$i/pkgconfig ; then
3381        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3382      fi
3383    done
3384  fi
3385
3386  if test -e ../../coin_subdirs.txt ; then
3387    for i in `cat ../../coin_subdirs.txt` ; do
3388      if test -d ../../$i ; then
3389        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3390      fi
3391      if test -d ../../$i/pkgconfig ; then
3392        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3393      fi
3394    done
3395  fi
3396
3397
3398fi
3399
3400if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3401  { 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
3402echo "$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;}
3403fi
3404
3405
3406
3407# Initialize automake
3408{
3409
3410
3411
3412# START
3413
3414# Test if force_shared has been set
3415if test "x" = xforce_shared; then
3416  if test x$enable_shared = xno; then
3417    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3418echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3419   { (exit 1); exit 1; }; }
3420  fi
3421  enable_shared=yes;
3422else
3423  # On Cygwin and AIX, building DLLs doesn't work
3424  case $build in
3425    *-cygwin*)
3426      coin_disable_shared=yes
3427      platform=Cygwin
3428    ;;
3429    *-aix*)
3430      coin_disable_shared=yes
3431      platform=AIX
3432    ;;
3433    *-mingw*)
3434      coin_disable_shared=yes
3435      platform="Msys"
3436#      case "$CXX" in
3437#        cl*)
3438#          coin_disable_shared=yes
3439#          platform="Msys with cl"
3440#      ;;
3441#      esac
3442    ;;
3443  esac
3444fi
3445if test x"$coin_disable_shared" = xyes; then
3446  if test x"$enable_shared" = xyes; then
3447    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3448echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3449  fi
3450  enable_shared=no
3451fi
3452# By default, we only want the shared objects to be compiled
3453# Check whether --enable-static or --disable-static was given.
3454if test "${enable_static+set}" = set; then
3455  enableval="$enable_static"
3456  p=${PACKAGE-default}
3457    case $enableval in
3458    yes) enable_static=yes ;;
3459    no) enable_static=no ;;
3460    *)
3461     enable_static=no
3462      # Look at the argument we got.  We use all the common list separators.
3463      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3464      for pkg in $enableval; do
3465        IFS="$lt_save_ifs"
3466        if test "X$pkg" = "X$p"; then
3467          enable_static=yes
3468        fi
3469      done
3470      IFS="$lt_save_ifs"
3471      ;;
3472    esac
3473else
3474  enable_static=no
3475fi;
3476
3477
3478
3479
3480# Initialize automake
3481echo "$as_me:$LINENO: checking for egrep" >&5
3482echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3483if test "${ac_cv_prog_egrep+set}" = set; then
3484  echo $ECHO_N "(cached) $ECHO_C" >&6
3485else
3486  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3487    then ac_cv_prog_egrep='grep -E'
3488    else ac_cv_prog_egrep='egrep'
3489    fi
3490fi
3491echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3492echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3493 EGREP=$ac_cv_prog_egrep
3494
3495
3496echo "$as_me:$LINENO: checking whether ln -s works" >&5
3497echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3498LN_S=$as_ln_s
3499if test "$LN_S" = "ln -s"; then
3500  echo "$as_me:$LINENO: result: yes" >&5
3501echo "${ECHO_T}yes" >&6
3502else
3503  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3504echo "${ECHO_T}no, using $LN_S" >&6
3505fi
3506
3507am__api_version="1.9"
3508# Find a good install program.  We prefer a C program (faster),
3509# so one script is as good as another.  But avoid the broken or
3510# incompatible versions:
3511# SysV /etc/install, /usr/sbin/install
3512# SunOS /usr/etc/install
3513# IRIX /sbin/install
3514# AIX /bin/install
3515# AmigaOS /C/install, which installs bootblocks on floppy discs
3516# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3517# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3518# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3519# OS/2's system install, which has a completely different semantic
3520# ./install, which can be erroneously created by make from ./install.sh.
3521echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3522echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3523if test -z "$INSTALL"; then
3524if test "${ac_cv_path_install+set}" = set; then
3525  echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528for as_dir in $PATH
3529do
3530  IFS=$as_save_IFS
3531  test -z "$as_dir" && as_dir=.
3532  # Account for people who put trailing slashes in PATH elements.
3533case $as_dir/ in
3534  ./ | .// | /cC/* | \
3535  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3536  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3537  /usr/ucb/* ) ;;
3538  *)
3539    # OSF1 and SCO ODT 3.0 have their own names for install.
3540    # Don't use installbsd from OSF since it installs stuff as root
3541    # by default.
3542    for ac_prog in ginstall scoinst install; do
3543      for ac_exec_ext in '' $ac_executable_extensions; do
3544        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3545          if test $ac_prog = install &&
3546            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3547            # AIX install.  It has an incompatible calling convention.
3548            :
3549          elif test $ac_prog = install &&
3550            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3551            # program-specific install script used by HP pwplus--don't use.
3552            :
3553          else
3554            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3555            break 3
3556          fi
3557        fi
3558      done
3559    done
3560    ;;
3561esac
3562done
3563
3564
3565fi
3566  if test "${ac_cv_path_install+set}" = set; then
3567    INSTALL=$ac_cv_path_install
3568  else
3569    # As a last resort, use the slow shell script.  We don't cache a
3570    # path for INSTALL within a source directory, because that will
3571    # break other packages using the cache if that directory is
3572    # removed, or if the path is relative.
3573    INSTALL=$ac_install_sh
3574  fi
3575fi
3576echo "$as_me:$LINENO: result: $INSTALL" >&5
3577echo "${ECHO_T}$INSTALL" >&6
3578
3579# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3580# It thinks the first close brace ends the variable substitution.
3581test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3582
3583test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3584
3585test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3586
3587echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3588echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3589# Just in case
3590sleep 1
3591echo timestamp > conftest.file
3592# Do `set' in a subshell so we don't clobber the current shell's
3593# arguments.  Must try -L first in case configure is actually a
3594# symlink; some systems play weird games with the mod time of symlinks
3595# (eg FreeBSD returns the mod time of the symlink's containing
3596# directory).
3597if (
3598   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3599   if test "$*" = "X"; then
3600      # -L didn't work.
3601      set X `ls -t $srcdir/configure conftest.file`
3602   fi
3603   rm -f conftest.file
3604   if test "$*" != "X $srcdir/configure conftest.file" \
3605      && test "$*" != "X conftest.file $srcdir/configure"; then
3606
3607      # If neither matched, then we have a broken ls.  This can happen
3608      # if, for instance, CONFIG_SHELL is bash and it inherits a
3609      # broken ls alias from the environment.  This has actually
3610      # happened.  Such a system could not be considered "sane".
3611      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3612alias in your environment" >&5
3613echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3614alias in your environment" >&2;}
3615   { (exit 1); exit 1; }; }
3616   fi
3617
3618   test "$2" = conftest.file
3619   )
3620then
3621   # Ok.
3622   :
3623else
3624   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3625Check your system clock" >&5
3626echo "$as_me: error: newly created file is older than distributed files!
3627Check your system clock" >&2;}
3628   { (exit 1); exit 1; }; }
3629fi
3630echo "$as_me:$LINENO: result: yes" >&5
3631echo "${ECHO_T}yes" >&6
3632test "$program_prefix" != NONE &&
3633  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3634# Use a double $ so make ignores it.
3635test "$program_suffix" != NONE &&
3636  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3637# Double any \ or $.  echo might interpret backslashes.
3638# By default was `s,x,x', remove it if useless.
3639cat <<\_ACEOF >conftest.sed
3640s/[\\$]/&&/g;s/;s,x,x,$//
3641_ACEOF
3642program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3643rm conftest.sed
3644
3645# expand $ac_aux_dir to an absolute path
3646am_aux_dir=`cd $ac_aux_dir && pwd`
3647
3648test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3649# Use eval to expand $SHELL
3650if eval "$MISSING --run true"; then
3651  am_missing_run="$MISSING --run "
3652else
3653  am_missing_run=
3654  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3655echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3656fi
3657
3658if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3659  # We used to keeping the `.' as first argument, in order to
3660  # allow $(mkdir_p) to be used without argument.  As in
3661  #   $(mkdir_p) $(somedir)
3662  # where $(somedir) is conditionally defined.  However this is wrong
3663  # for two reasons:
3664  #  1. if the package is installed by a user who cannot write `.'
3665  #     make install will fail,
3666  #  2. the above comment should most certainly read
3667  #     $(mkdir_p) $(DESTDIR)$(somedir)
3668  #     so it does not work when $(somedir) is undefined and
3669  #     $(DESTDIR) is not.
3670  #  To support the latter case, we have to write
3671  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3672  #  so the `.' trick is pointless.
3673  mkdir_p='mkdir -p --'
3674else
3675  # On NextStep and OpenStep, the `mkdir' command does not
3676  # recognize any option.  It will interpret all options as
3677  # directories to create, and then abort because `.' already
3678  # exists.
3679  for d in ./-p ./--version;
3680  do
3681    test -d $d && rmdir $d
3682  done
3683  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3684  if test -f "$ac_aux_dir/mkinstalldirs"; then
3685    mkdir_p='$(mkinstalldirs)'
3686  else
3687    mkdir_p='$(install_sh) -d'
3688  fi
3689fi
3690
3691for ac_prog in gawk mawk nawk awk
3692do
3693  # Extract the first word of "$ac_prog", so it can be a program name with args.
3694set dummy $ac_prog; ac_word=$2
3695echo "$as_me:$LINENO: checking for $ac_word" >&5
3696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3697if test "${ac_cv_prog_AWK+set}" = set; then
3698  echo $ECHO_N "(cached) $ECHO_C" >&6
3699else
3700  if test -n "$AWK"; then
3701  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3702else
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706  IFS=$as_save_IFS
3707  test -z "$as_dir" && as_dir=.
3708  for ac_exec_ext in '' $ac_executable_extensions; do
3709  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710    ac_cv_prog_AWK="$ac_prog"
3711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3712    break 2
3713  fi
3714done
3715done
3716
3717fi
3718fi
3719AWK=$ac_cv_prog_AWK
3720if test -n "$AWK"; then
3721  echo "$as_me:$LINENO: result: $AWK" >&5
3722echo "${ECHO_T}$AWK" >&6
3723else
3724  echo "$as_me:$LINENO: result: no" >&5
3725echo "${ECHO_T}no" >&6
3726fi
3727
3728  test -n "$AWK" && break
3729done
3730
3731echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3732echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3733set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3734if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3735  echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
3737  cat >conftest.make <<\_ACEOF
3738all:
3739        @echo 'ac_maketemp="$(MAKE)"'
3740_ACEOF
3741# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3742eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3743if test -n "$ac_maketemp"; then
3744  eval ac_cv_prog_make_${ac_make}_set=yes
3745else
3746  eval ac_cv_prog_make_${ac_make}_set=no
3747fi
3748rm -f conftest.make
3749fi
3750if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3751  echo "$as_me:$LINENO: result: yes" >&5
3752echo "${ECHO_T}yes" >&6
3753  SET_MAKE=
3754else
3755  echo "$as_me:$LINENO: result: no" >&5
3756echo "${ECHO_T}no" >&6
3757  SET_MAKE="MAKE=${MAKE-make}"
3758fi
3759
3760rm -rf .tst 2>/dev/null
3761mkdir .tst 2>/dev/null
3762if test -d .tst; then
3763  am__leading_dot=.
3764else
3765  am__leading_dot=_
3766fi
3767rmdir .tst 2>/dev/null
3768
3769DEPDIR="${am__leading_dot}deps"
3770
3771          ac_config_commands="$ac_config_commands depfiles"
3772
3773
3774am_make=${MAKE-make}
3775cat > confinc << 'END'
3776am__doit:
3777        @echo done
3778.PHONY: am__doit
3779END
3780# If we don't find an include directive, just comment out the code.
3781echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3782echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3783am__include="#"
3784am__quote=
3785_am_result=none
3786# First try GNU make style include.
3787echo "include confinc" > confmf
3788# We grep out `Entering directory' and `Leaving directory'
3789# messages which can occur if `w' ends up in MAKEFLAGS.
3790# In particular we don't look at `^make:' because GNU make might
3791# be invoked under some other name (usually "gmake"), in which
3792# case it prints its new name instead of `make'.
3793if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3794   am__include=include
3795   am__quote=
3796   _am_result=GNU
3797fi
3798# Now try BSD make style include.
3799if test "$am__include" = "#"; then
3800   echo '.include "confinc"' > confmf
3801   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3802      am__include=.include
3803      am__quote="\""
3804      _am_result=BSD
3805   fi
3806fi
3807
3808
3809echo "$as_me:$LINENO: result: $_am_result" >&5
3810echo "${ECHO_T}$_am_result" >&6
3811rm -f confinc confmf
3812
3813# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3814if test "${enable_dependency_tracking+set}" = set; then
3815  enableval="$enable_dependency_tracking"
3816
3817fi;
3818if test "x$enable_dependency_tracking" != xno; then
3819  am_depcomp="$ac_aux_dir/depcomp"
3820  AMDEPBACKSLASH='\'
3821fi
3822
3823
3824if test "x$enable_dependency_tracking" != xno; then
3825  AMDEP_TRUE=
3826  AMDEP_FALSE='#'
3827else
3828  AMDEP_TRUE='#'
3829  AMDEP_FALSE=
3830fi
3831
3832
3833
3834
3835
3836
3837# AC_MSG_NOTICE([Beginning automake initialisation.])
3838# Stuff for automake
3839# test to see if srcdir already configured
3840if test "`cd $srcdir && pwd`" != "`pwd`" &&
3841   test -f $srcdir/config.status; then
3842  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3843echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3844   { (exit 1); exit 1; }; }
3845fi
3846
3847# test whether we have cygpath
3848if test -z "$CYGPATH_W"; then
3849  if (cygpath --version) >/dev/null 2>/dev/null; then
3850    CYGPATH_W='cygpath -w'
3851  else
3852    CYGPATH_W=echo
3853  fi
3854fi
3855
3856
3857# Define the identity of the package.
3858 PACKAGE='thirdpartyglpk'
3859 VERSION='1.8.0'
3860
3861
3862cat >>confdefs.h <<_ACEOF
3863#define PACKAGE "$PACKAGE"
3864_ACEOF
3865
3866
3867cat >>confdefs.h <<_ACEOF
3868#define VERSION "$VERSION"
3869_ACEOF
3870
3871# Some tools Automake needs.
3872
3873ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3874
3875
3876AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3877
3878
3879AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3880
3881
3882AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3883
3884
3885MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3886
3887install_sh=${install_sh-"$am_aux_dir/install-sh"}
3888
3889# Installed binaries are usually stripped using `strip' when the user
3890# run `make install-strip'.  However `strip' might not be the right
3891# tool to use in cross-compilation environments, therefore Automake
3892# will honor the `STRIP' environment variable to overrule this program.
3893if test "$cross_compiling" != no; then
3894  if test -n "$ac_tool_prefix"; then
3895  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3896set dummy ${ac_tool_prefix}strip; ac_word=$2
3897echo "$as_me:$LINENO: checking for $ac_word" >&5
3898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3899if test "${ac_cv_prog_STRIP+set}" = set; then
3900  echo $ECHO_N "(cached) $ECHO_C" >&6
3901else
3902  if test -n "$STRIP"; then
3903  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3904else
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908  IFS=$as_save_IFS
3909  test -z "$as_dir" && as_dir=.
3910  for ac_exec_ext in '' $ac_executable_extensions; do
3911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914    break 2
3915  fi
3916done
3917done
3918
3919fi
3920fi
3921STRIP=$ac_cv_prog_STRIP
3922if test -n "$STRIP"; then
3923  echo "$as_me:$LINENO: result: $STRIP" >&5
3924echo "${ECHO_T}$STRIP" >&6
3925else
3926  echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928fi
3929
3930fi
3931if test -z "$ac_cv_prog_STRIP"; then
3932  ac_ct_STRIP=$STRIP
3933  # Extract the first word of "strip", so it can be a program name with args.
3934set dummy strip; ac_word=$2
3935echo "$as_me:$LINENO: checking for $ac_word" >&5
3936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3937if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3938  echo $ECHO_N "(cached) $ECHO_C" >&6
3939else
3940  if test -n "$ac_ct_STRIP"; then
3941  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3942else
3943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944for as_dir in $PATH
3945do
3946  IFS=$as_save_IFS
3947  test -z "$as_dir" && as_dir=.
3948  for ac_exec_ext in '' $ac_executable_extensions; do
3949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950    ac_cv_prog_ac_ct_STRIP="strip"
3951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952    break 2
3953  fi
3954done
3955done
3956
3957  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3958fi
3959fi
3960ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3961if test -n "$ac_ct_STRIP"; then
3962  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3963echo "${ECHO_T}$ac_ct_STRIP" >&6
3964else
3965  echo "$as_me:$LINENO: result: no" >&5
3966echo "${ECHO_T}no" >&6
3967fi
3968
3969  STRIP=$ac_ct_STRIP
3970else
3971  STRIP="$ac_cv_prog_STRIP"
3972fi
3973
3974fi
3975INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3976
3977# We need awk for the "check" target.  The system "awk" is bad on
3978# some platforms.
3979# Always define AMTAR for backward compatibility.
3980
3981AMTAR=${AMTAR-"${am_missing_run}tar"}
3982
3983am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3984
3985
3986
3987
3988depcc="$CC"   am_compiler_list=
3989
3990echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3991echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3992if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3993  echo $ECHO_N "(cached) $ECHO_C" >&6
3994else
3995  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3996  # We make a subdir and do the tests there.  Otherwise we can end up
3997  # making bogus files that we don't know about and never remove.  For
3998  # instance it was reported that on HP-UX the gcc test will end up
3999  # making a dummy file named `D' -- because `-MD' means `put the output
4000  # in D'.
4001  mkdir conftest.dir
4002  # Copy depcomp to subdir because otherwise we won't find it if we're
4003  # using a relative directory.
4004  cp "$am_depcomp" conftest.dir
4005  cd conftest.dir
4006  # We will build objects and dependencies in a subdirectory because
4007  # it helps to detect inapplicable dependency modes.  For instance
4008  # both Tru64's cc and ICC support -MD to output dependencies as a
4009  # side effect of compilation, but ICC will put the dependencies in
4010  # the current directory while Tru64 will put them in the object
4011  # directory.
4012  mkdir sub
4013
4014  am_cv_CC_dependencies_compiler_type=none
4015  if test "$am_compiler_list" = ""; then
4016     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4017  fi
4018  for depmode in $am_compiler_list; do
4019    # Setup a source with many dependencies, because some compilers
4020    # like to wrap large dependency lists on column 80 (with \), and
4021    # we should not choose a depcomp mode which is confused by this.
4022    #
4023    # We need to recreate these files for each test, as the compiler may
4024    # overwrite some of them when testing with obscure command lines.
4025    # This happens at least with the AIX C compiler.
4026    : > sub/conftest.c
4027    for i in 1 2 3 4 5 6; do
4028      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4029      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4030      # Solaris 8's {/usr,}/bin/sh.
4031      touch sub/conftst$i.h
4032    done
4033    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4034
4035    case $depmode in
4036    nosideeffect)
4037      # after this tag, mechanisms are not by side-effect, so they'll
4038      # only be used when explicitly requested
4039      if test "x$enable_dependency_tracking" = xyes; then
4040        continue
4041      else
4042        break
4043      fi
4044      ;;
4045    none) break ;;
4046    esac
4047    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4048    # mode.  It turns out that the SunPro C++ compiler does not properly
4049    # handle `-M -o', and we need to detect this.
4050    if depmode=$depmode \
4051       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4052       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4053       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4054         >/dev/null 2>conftest.err &&
4055       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4056       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4057       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4058      # icc doesn't choke on unknown options, it will just issue warnings
4059      # or remarks (even with -Werror).  So we grep stderr for any message
4060      # that says an option was ignored or not supported.
4061      # When given -MP, icc 7.0 and 7.1 complain thusly:
4062      #   icc: Command line warning: ignoring option '-M'; no argument required
4063      # The diagnosis changed in icc 8.0:
4064      #   icc: Command line remark: option '-MP' not supported
4065      if (grep 'ignoring option' conftest.err ||
4066          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4067        am_cv_CC_dependencies_compiler_type=$depmode
4068        break
4069      fi
4070    fi
4071  done
4072
4073  cd ..
4074  rm -rf conftest.dir
4075else
4076  am_cv_CC_dependencies_compiler_type=none
4077fi
4078
4079fi
4080echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4081echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4082CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4083
4084
4085
4086if
4087  test "x$enable_dependency_tracking" != xno \
4088  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4089  am__fastdepCC_TRUE=
4090  am__fastdepCC_FALSE='#'
4091else
4092  am__fastdepCC_TRUE='#'
4093  am__fastdepCC_FALSE=
4094fi
4095
4096
4097
4098echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4099echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4100    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4101if test "${enable_maintainer_mode+set}" = set; then
4102  enableval="$enable_maintainer_mode"
4103  USE_MAINTAINER_MODE=$enableval
4104else
4105  USE_MAINTAINER_MODE=no
4106fi;
4107  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4108echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4109
4110
4111if test $USE_MAINTAINER_MODE = yes; then
4112  MAINTAINER_MODE_TRUE=
4113  MAINTAINER_MODE_FALSE='#'
4114else
4115  MAINTAINER_MODE_TRUE='#'
4116  MAINTAINER_MODE_FALSE=
4117fi
4118
4119  MAINT=$MAINTAINER_MODE_TRUE
4120
4121
4122
4123coin_have_externals=no
4124if test "$enable_maintainer_mode" = yes; then
4125
4126  # If maintainer mode is chosen, we make sure that the correct versions
4127  # of the tools are used, and that we know where libtool.m4 is (to
4128  # recreate acinclude.m4)
4129
4130
4131  LIBTOOLM4=
4132  # Normally, $HOME
4133  AUTOTOOLS_DFLT=$HOME
4134
4135  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4136echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4137if test "${ac_cv_use_correct_autotools+set}" = set; then
4138  echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140  ac_cv_use_correct_autotools=check
4141fi
4142echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4143echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4144
4145  if test $ac_cv_use_correct_autotools = check; then
4146    ac_cv_use_correct_autotools=yes
4147    # Check if we have autoconf
4148    # Extract the first word of "autoconf", so it can be a program name with args.
4149set dummy autoconf; ac_word=$2
4150echo "$as_me:$LINENO: checking for $ac_word" >&5
4151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152if test "${ac_cv_prog_have_autoconf+set}" = set; then
4153  echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155  if test -n "$have_autoconf"; then
4156  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4157else
4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH
4160do
4161  IFS=$as_save_IFS
4162  test -z "$as_dir" && as_dir=.
4163  for ac_exec_ext in '' $ac_executable_extensions; do
4164  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4165    ac_cv_prog_have_autoconf="yes"
4166    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167    break 2
4168  fi
4169done
4170done
4171
4172  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4173fi
4174fi
4175have_autoconf=$ac_cv_prog_have_autoconf
4176if test -n "$have_autoconf"; then
4177  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4178echo "${ECHO_T}$have_autoconf" >&6
4179else
4180  echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
4182fi
4183
4184    if test $have_autoconf = no; then
4185      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4186echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4187   { (exit 1); exit 1; }; }
4188    fi
4189
4190    # Check whether autoconf is the correct version
4191    correct_version='2.59'
4192    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4193    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4194echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4195    autoconf --version > confauto.out 2>&1
4196    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4197      echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6
4199    else
4200      rm -f confauto.out
4201      echo "$as_me:$LINENO: result: no" >&5
4202echo "${ECHO_T}no" >&6
4203      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4204echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4205   { (exit 1); exit 1; }; }
4206    fi
4207    rm -f confauto.out
4208
4209    # Check if the executable autoconf is picked up from the correct location
4210    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4211echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4212    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4213    autoconf_dir=`cd $autoconf_dir; pwd`
4214    if test x$AUTOTOOLS_DIR = x; then
4215      want_dir=$AUTOTOOLS_DFLT/bin
4216    else
4217      want_dir=$AUTOTOOLS_DIR/bin
4218    fi
4219    if test $autoconf_dir = `cd $want_dir; pwd`; then
4220      echo "$as_me:$LINENO: result: yes" >&5
4221echo "${ECHO_T}yes" >&6
4222    else
4223      rm -f confauto.out
4224      echo "$as_me:$LINENO: result: no" >&5
4225echo "${ECHO_T}no" >&6
4226      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4227echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4228   { (exit 1); exit 1; }; }
4229    fi
4230
4231    # Check if we have automake
4232    # Extract the first word of "automake", so it can be a program name with args.
4233set dummy automake; ac_word=$2
4234echo "$as_me:$LINENO: checking for $ac_word" >&5
4235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236if test "${ac_cv_prog_have_automake+set}" = set; then
4237  echo $ECHO_N "(cached) $ECHO_C" >&6
4238else
4239  if test -n "$have_automake"; then
4240  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4241else
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245  IFS=$as_save_IFS
4246  test -z "$as_dir" && as_dir=.
4247  for ac_exec_ext in '' $ac_executable_extensions; do
4248  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249    ac_cv_prog_have_automake="yes"
4250    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251    break 2
4252  fi
4253done
4254done
4255
4256  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4257fi
4258fi
4259have_automake=$ac_cv_prog_have_automake
4260if test -n "$have_automake"; then
4261  echo "$as_me:$LINENO: result: $have_automake" >&5
4262echo "${ECHO_T}$have_automake" >&6
4263else
4264  echo "$as_me:$LINENO: result: no" >&5
4265echo "${ECHO_T}no" >&6
4266fi
4267
4268    if test $have_automake = no; then
4269      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4270echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4271   { (exit 1); exit 1; }; }
4272    fi
4273
4274    # Check whether automake is the correct version
4275    correct_version='1.9.6'
4276    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4277    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4278echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4279    automake --version > confauto.out 2>&1
4280    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4281      echo "$as_me:$LINENO: result: yes" >&5
4282echo "${ECHO_T}yes" >&6
4283    else
4284      rm -f confauto.out
4285      echo "$as_me:$LINENO: result: no" >&5
4286echo "${ECHO_T}no" >&6
4287      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4288echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4289   { (exit 1); exit 1; }; }
4290    fi
4291    rm -f confauto.out
4292
4293    # Check if the executable automake is picked up from the correct location
4294    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4295echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4296    automake_dir=`which automake | sed -e 's=/automake=='`
4297    automake_dir=`cd $automake_dir; pwd`
4298    if test x$AUTOTOOLS_DIR = x; then
4299      want_dir=$AUTOTOOLS_DFLT/bin
4300    else
4301      want_dir=$AUTOTOOLS_DIR/bin
4302    fi
4303    if test $automake_dir = `cd $want_dir; pwd`; then
4304      echo "$as_me:$LINENO: result: yes" >&5
4305echo "${ECHO_T}yes" >&6
4306    else
4307      rm -f confauto.out
4308      echo "$as_me:$LINENO: result: no" >&5
4309echo "${ECHO_T}no" >&6
4310      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4311echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4312   { (exit 1); exit 1; }; }
4313    fi
4314
4315    # Check if this is the correct version of libtool (with escaped dots)
4316    if test x$AUTOTOOLS_DIR = x; then
4317      want_dir=$AUTOTOOLS_DFLT/share
4318    else
4319      want_dir=$AUTOTOOLS_DIR/share
4320    fi
4321    correct_version='1.5.22'
4322    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4323    if test -r $want_dir/libtool/ltmain.sh; then
4324  have_ltmain=yes
4325  :
4326else
4327  have_ltmain=no
4328  :
4329fi
4330
4331    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4332echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4333    if test $have_ltmain = yes; then
4334    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4335        echo "$as_me:$LINENO: result: yes" >&5
4336echo "${ECHO_T}yes" >&6
4337      else
4338        echo "$as_me:$LINENO: result: no" >&5
4339echo "${ECHO_T}no" >&6
4340        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4341echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4342   { (exit 1); exit 1; }; }
4343      fi
4344    else
4345      echo "$as_me:$LINENO: result: no" >&5
4346echo "${ECHO_T}no" >&6
4347      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4348echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4349   { (exit 1); exit 1; }; }
4350    fi
4351  fi
4352
4353  # Check if we can find the libtool file
4354  if test x$AUTOTOOLS_DIR = x; then
4355    want_dir=$AUTOTOOLS_DFLT/share
4356  else
4357    want_dir=$AUTOTOOLS_DIR/share
4358  fi
4359  if test -r $want_dir/aclocal/libtool.m4; then
4360  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4361  :
4362else
4363  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4364echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4365   { (exit 1); exit 1; }; }
4366  :
4367fi
4368
4369
4370  # Check if we have an Dependencies file
4371  if test -r $srcdir/Dependencies; then
4372    coin_have_externals=yes
4373  fi
4374  # Check if subversion is installed and understands https
4375  # Extract the first word of "svn", so it can be a program name with args.
4376set dummy svn; ac_word=$2
4377echo "$as_me:$LINENO: checking for $ac_word" >&5
4378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4379if test "${ac_cv_prog_have_svn+set}" = set; then
4380  echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382  if test -n "$have_svn"; then
4383  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4384else
4385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388  IFS=$as_save_IFS
4389  test -z "$as_dir" && as_dir=.
4390  for ac_exec_ext in '' $ac_executable_extensions; do
4391  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4392    ac_cv_prog_have_svn="yes"
4393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394    break 2
4395  fi
4396done
4397done
4398
4399  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4400fi
4401fi
4402have_svn=$ac_cv_prog_have_svn
4403if test -n "$have_svn"; then
4404  echo "$as_me:$LINENO: result: $have_svn" >&5
4405echo "${ECHO_T}$have_svn" >&6
4406else
4407  echo "$as_me:$LINENO: result: no" >&5
4408echo "${ECHO_T}no" >&6
4409fi
4410
4411  if test x$have_svn = xyes; then
4412    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4413echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4414if test "${ac_cv_svn_understands_https+set}" = set; then
4415  echo $ECHO_N "(cached) $ECHO_C" >&6
4416else
4417  svn --version > confauto.out 2>&1
4418                    if $EGREP https confauto.out >/dev/null 2>&1; then
4419                      ac_cv_svn_understands_https=yes
4420                    else
4421                      ac_cv_svn_understands_https=no
4422                      have_svn=no
4423                      ac_cv_prog_have_svn=no
4424                    fi
4425                    rm -f confauto.out
4426fi
4427echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4428echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4429  fi
4430
4431  # Find the location of the BuildTools directory
4432  BUILDTOOLSDIR=
4433  if test -r $srcdir/BuildTools/coin.m4; then
4434    BUILDTOOLSDIR=$srcdir/BuildTools
4435  else
4436    if test -r $srcdir/../BuildTools/coin.m4; then
4437      BUILDTOOLSDIR=$srcdir/../BuildTools
4438    else
4439      if test -r $srcdir/../../BuildTools/coin.m4; then
4440        BUILDTOOLSDIR=$srcdir/../../BuildTools
4441      else
4442        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4443echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4444   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4445      fi
4446    fi
4447  fi
4448
4449
4450  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4451  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4452    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4453  fi
4454
4455  # The following variable is set to the name of the directory where
4456  # the autotool scripts are located
4457
4458  AUX_DIR=$ac_aux_dir
4459fi
4460
4461# helpful variable for the base directory of this package
4462abs_source_dir=`cd $srcdir; pwd`
4463
4464
4465# Stuff for example Makefiles
4466if test x$prefix = xNONE; then
4467  full_prefix=$ac_default_prefix
4468else
4469  full_prefix=$prefix
4470fi
4471full_prefix=`cd $full_prefix ; pwd`
4472
4473abs_lib_dir=$full_prefix/lib
4474
4475abs_include_dir=$full_prefix/include
4476
4477abs_bin_dir=$full_prefix/bin
4478
4479
4480
4481if test $coin_have_externals = yes && test x$have_svn = xyes; then
4482  HAVE_EXTERNALS_TRUE=
4483  HAVE_EXTERNALS_FALSE='#'
4484else
4485  HAVE_EXTERNALS_TRUE='#'
4486  HAVE_EXTERNALS_FALSE=
4487fi
4488
4489
4490# AC_MSG_NOTICE([End automake initialisation.])
4491
4492
4493
4494LIBTOOL=
4495if test -r ../libtool; then
4496  coin_config_dir=..
4497  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4498fi
4499if test "x$LIBTOOL" = x; then
4500  if test -r ../../libtool; then
4501    coin_config_dir=../..
4502    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4503  fi
4504fi
4505
4506if test "x$LIBTOOL" = x; then
4507# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4508  # Stuff for libtool
4509  # Check whether --enable-shared or --disable-shared was given.
4510if test "${enable_shared+set}" = set; then
4511  enableval="$enable_shared"
4512  p=${PACKAGE-default}
4513    case $enableval in
4514    yes) enable_shared=yes ;;
4515    no) enable_shared=no ;;
4516    *)
4517      enable_shared=no
4518      # Look at the argument we got.  We use all the common list separators.
4519      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4520      for pkg in $enableval; do
4521        IFS="$lt_save_ifs"
4522        if test "X$pkg" = "X$p"; then
4523          enable_shared=yes
4524        fi
4525      done
4526      IFS="$lt_save_ifs"
4527      ;;
4528    esac
4529else
4530  enable_shared=yes
4531fi;
4532
4533# Check whether --enable-fast-install or --disable-fast-install was given.
4534if test "${enable_fast_install+set}" = set; then
4535  enableval="$enable_fast_install"
4536  p=${PACKAGE-default}
4537    case $enableval in
4538    yes) enable_fast_install=yes ;;
4539    no) enable_fast_install=no ;;
4540    *)
4541      enable_fast_install=no
4542      # Look at the argument we got.  We use all the common list separators.
4543      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4544      for pkg in $enableval; do
4545        IFS="$lt_save_ifs"
4546        if test "X$pkg" = "X$p"; then
4547          enable_fast_install=yes
4548        fi
4549      done
4550      IFS="$lt_save_ifs"
4551      ;;
4552    esac
4553else
4554  enable_fast_install=yes
4555fi;
4556
4557echo "$as_me:$LINENO: checking host system type" >&5
4558echo $ECHO_N "checking host system type... $ECHO_C" >&6
4559if test "${ac_cv_host+set}" = set; then
4560  echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562  ac_cv_host_alias=$host_alias
4563test -z "$ac_cv_host_alias" &&
4564  ac_cv_host_alias=$ac_cv_build_alias
4565ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4566  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4567echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4568   { (exit 1); exit 1; }; }
4569
4570fi
4571echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4572echo "${ECHO_T}$ac_cv_host" >&6
4573host=$ac_cv_host
4574host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4575host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4576host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4577
4578
4579echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4580echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4581if test "${lt_cv_path_SED+set}" = set; then
4582  echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584  # Loop through the user's path and test for sed and gsed.
4585# Then use that list of sed's as ones to test for truncation.
4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591  for lt_ac_prog in sed gsed; do
4592    for ac_exec_ext in '' $ac_executable_extensions; do
4593      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4594        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4595      fi
4596    done
4597  done
4598done
4599lt_ac_max=0
4600lt_ac_count=0
4601# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4602# along with /bin/sed that truncates output.
4603for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4604  test ! -f $lt_ac_sed && continue
4605  cat /dev/null > conftest.in
4606  lt_ac_count=0
4607  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4608  # Check for GNU sed and select it if it is found.
4609  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4610    lt_cv_path_SED=$lt_ac_sed
4611    break
4612  fi
4613  while true; do
4614    cat conftest.in conftest.in >conftest.tmp
4615    mv conftest.tmp conftest.in
4616    cp conftest.in conftest.nl
4617    echo >>conftest.nl
4618    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4619    cmp -s conftest.out conftest.nl || break
4620    # 10000 chars as input seems more than enough
4621    test $lt_ac_count -gt 10 && break
4622    lt_ac_count=`expr $lt_ac_count + 1`
4623    if test $lt_ac_count -gt $lt_ac_max; then
4624      lt_ac_max=$lt_ac_count
4625      lt_cv_path_SED=$lt_ac_sed
4626    fi
4627  done
4628done
4629
4630fi
4631
4632SED=$lt_cv_path_SED
4633echo "$as_me:$LINENO: result: $SED" >&5
4634echo "${ECHO_T}$SED" >&6
4635
4636
4637# Check whether --with-gnu-ld or --without-gnu-ld was given.
4638if test "${with_gnu_ld+set}" = set; then
4639  withval="$with_gnu_ld"
4640  test "$withval" = no || with_gnu_ld=yes
4641else
4642  with_gnu_ld=no
4643fi;
4644ac_prog=ld
4645if test "$GCC" = yes; then
4646  # Check if gcc -print-prog-name=ld gives a path.
4647  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4648echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4649  case $host in
4650  *-*-mingw*)
4651    # gcc leaves a trailing carriage return which upsets mingw
4652    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4653  *)
4654    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4655  esac
4656  case $ac_prog in
4657    # Accept absolute paths.
4658    [\\/]* | ?:[\\/]*)
4659      re_direlt='/[^/][^/]*/\.\./'
4660      # Canonicalize the pathname of ld
4661      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4662      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4663        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4664      done
4665      test -z "$LD" && LD="$ac_prog"
4666      ;;
4667  "")
4668    # If it fails, then pretend we aren't using GCC.
4669    ac_prog=ld
4670    ;;
4671  *)
4672    # If it is relative, then search for the first ld in PATH.
4673    with_gnu_ld=unknown
4674    ;;
4675  esac
4676elif test "$with_gnu_ld" = yes; then
4677  echo "$as_me:$LINENO: checking for GNU ld" >&5
4678echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4679else
4680  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4681echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4682fi
4683if test "${lt_cv_path_LD+set}" = set; then
4684  echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686  if test -z "$LD"; then
4687  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4688  for ac_dir in $PATH; do
4689    IFS="$lt_save_ifs"
4690    test -z "$ac_dir" && ac_dir=.
4691    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4692      lt_cv_path_LD="$ac_dir/$ac_prog"
4693      # Check to see if the program is GNU ld.  I'd rather use --version,
4694      # but apparently some variants of GNU ld only accept -v.
4695      # Break only if it was the GNU/non-GNU ld that we prefer.
4696      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4697      *GNU* | *'with BFD'*)
4698        test "$with_gnu_ld" != no && break
4699        ;;
4700      *)
4701        test "$with_gnu_ld" != yes && break
4702        ;;
4703      esac
4704    fi
4705  done
4706  IFS="$lt_save_ifs"
4707else
4708  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4709fi
4710fi
4711
4712LD="$lt_cv_path_LD"
4713if test -n "$LD"; then
4714  echo "$as_me:$LINENO: result: $LD" >&5
4715echo "${ECHO_T}$LD" >&6
4716else
4717  echo "$as_me:$LINENO: result: no" >&5
4718echo "${ECHO_T}no" >&6
4719fi
4720test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4721echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4722   { (exit 1); exit 1; }; }
4723echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4724echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4725if test "${lt_cv_prog_gnu_ld+set}" = set; then
4726  echo $ECHO_N "(cached) $ECHO_C" >&6
4727else
4728  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4729case `$LD -v 2>&1 </dev/null` in
4730*GNU* | *'with BFD'*)
4731  lt_cv_prog_gnu_ld=yes
4732  ;;
4733*)
4734  lt_cv_prog_gnu_ld=no
4735  ;;
4736esac
4737fi
4738echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4739echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4740with_gnu_ld=$lt_cv_prog_gnu_ld
4741
4742
4743echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4744echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4745if test "${lt_cv_ld_reload_flag+set}" = set; then
4746  echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748  lt_cv_ld_reload_flag='-r'
4749fi
4750echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4751echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4752reload_flag=$lt_cv_ld_reload_flag
4753case $reload_flag in
4754"" | " "*) ;;
4755*) reload_flag=" $reload_flag" ;;
4756esac
4757reload_cmds='$LD$reload_flag -o $output$reload_objs'
4758case $host_os in
4759  darwin*)
4760    if test "$GCC" = yes; then
4761      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4762    else
4763      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4764    fi
4765    ;;
4766esac
4767
4768echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4769echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4770if test "${lt_cv_path_NM+set}" = set; then
4771  echo $ECHO_N "(cached) $ECHO_C" >&6
4772else
4773  if test -n "$NM"; then
4774  # Let the user override the test.
4775  lt_cv_path_NM="$NM"
4776else
4777  lt_nm_to_check="${ac_tool_prefix}nm"
4778  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4779    lt_nm_to_check="$lt_nm_to_check nm"
4780  fi
4781  for lt_tmp_nm in $lt_nm_to_check; do
4782    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4783    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4784      IFS="$lt_save_ifs"
4785      test -z "$ac_dir" && ac_dir=.
4786      tmp_nm="$ac_dir/$lt_tmp_nm"
4787      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4788        # Check to see if the nm accepts a BSD-compat flag.
4789        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4790        #   nm: unknown option "B" ignored
4791        # Tru64's nm complains that /dev/null is an invalid object file
4792        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4793        */dev/null* | *'Invalid file or object type'*)
4794          lt_cv_path_NM="$tmp_nm -B"
4795          break
4796          ;;
4797        *)
4798          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4799          */dev/null*)
4800            lt_cv_path_NM="$tmp_nm -p"
4801            break
4802            ;;
4803          *)
4804            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4805            continue # so that we can try to find one that supports BSD flags
4806            ;;
4807          esac
4808          ;;
4809        esac
4810      fi
4811    done
4812    IFS="$lt_save_ifs"
4813  done
4814  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4815fi
4816fi
4817echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4818echo "${ECHO_T}$lt_cv_path_NM" >&6
4819NM="$lt_cv_path_NM"
4820
4821echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4822echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4823if test "${lt_cv_deplibs_check_method+set}" = set; then
4824  echo $ECHO_N "(cached) $ECHO_C" >&6
4825else
4826  lt_cv_file_magic_cmd='$MAGIC_CMD'
4827lt_cv_file_magic_test_file=
4828lt_cv_deplibs_check_method='unknown'
4829# Need to set the preceding variable on all platforms that support
4830# interlibrary dependencies.
4831# 'none' -- dependencies not supported.
4832# `unknown' -- same as none, but documents that we really don't know.
4833# 'pass_all' -- all dependencies passed with no checks.
4834# 'test_compile' -- check by making test program.
4835# 'file_magic [[regex]]' -- check by looking for files in library path
4836# which responds to the $file_magic_cmd with a given extended regex.
4837# If you have `file' or equivalent on your system and you're not sure
4838# whether `pass_all' will *always* work, you probably want this one.
4839
4840case $host_os in
4841aix4* | aix5*)
4842  lt_cv_deplibs_check_method=pass_all
4843  ;;
4844
4845beos*)
4846  lt_cv_deplibs_check_method=pass_all
4847  ;;
4848
4849bsdi[45]*)
4850  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4851  lt_cv_file_magic_cmd='/usr/bin/file -L'
4852  lt_cv_file_magic_test_file=/shlib/libc.so
4853  ;;
4854
4855cygwin*)
4856  # func_win32_libid is a shell function defined in ltmain.sh
4857  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4858  lt_cv_file_magic_cmd='func_win32_libid'
4859  ;;
4860
4861mingw* | pw32*)
4862  # Base MSYS/MinGW do not provide the 'file' command needed by
4863  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4864  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4865  lt_cv_file_magic_cmd='$OBJDUMP -f'
4866  ;;
4867
4868darwin* | rhapsody*)
4869  lt_cv_deplibs_check_method=pass_all
4870  ;;
4871
4872freebsd* | kfreebsd*-gnu | dragonfly*)
4873  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4874    case $host_cpu in
4875    i*86 )
4876      # Not sure whether the presence of OpenBSD here was a mistake.
4877      # Let's accept both of them until this is cleared up.
4878      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4879      lt_cv_file_magic_cmd=/usr/bin/file
4880      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4881      ;;
4882    esac
4883  else
4884    lt_cv_deplibs_check_method=pass_all
4885  fi
4886  ;;
4887
4888gnu*)
4889  lt_cv_deplibs_check_method=pass_all
4890  ;;
4891
4892hpux10.20* | hpux11*)
4893  lt_cv_file_magic_cmd=/usr/bin/file
4894  case $host_cpu in
4895  ia64*)
4896    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4897    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4898    ;;
4899  hppa*64*)
4900    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]'
4901    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4902    ;;
4903  *)
4904    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4905    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4906    ;;
4907  esac
4908  ;;
4909
4910interix3*)
4911  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4912  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4913  ;;
4914
4915irix5* | irix6* | nonstopux*)
4916  case $LD in
4917  *-32|*"-32 ") libmagic=32-bit;;
4918  *-n32|*"-n32 ") libmagic=N32;;
4919  *-64|*"-64 ") libmagic=64-bit;;
4920  *) libmagic=never-match;;
4921  esac
4922  lt_cv_deplibs_check_method=pass_all
4923  ;;
4924
4925# This must be Linux ELF.
4926linux*)
4927  lt_cv_deplibs_check_method=pass_all
4928  ;;
4929
4930netbsd*)
4931  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4932    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4933  else
4934    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4935  fi
4936  ;;
4937
4938newos6*)
4939  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4940  lt_cv_file_magic_cmd=/usr/bin/file
4941  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4942  ;;
4943
4944nto-qnx*)
4945  lt_cv_deplibs_check_method=unknown
4946  ;;
4947
4948openbsd*)
4949  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4950    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4951  else
4952    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4953  fi
4954  ;;
4955
4956osf3* | osf4* | osf5*)
4957  lt_cv_deplibs_check_method=pass_all
4958  ;;
4959
4960solaris*)
4961  lt_cv_deplibs_check_method=pass_all
4962  ;;
4963
4964sysv4 | sysv4.3*)
4965  case $host_vendor in
4966  motorola)
4967    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]'
4968    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4969    ;;
4970  ncr)
4971    lt_cv_deplibs_check_method=pass_all
4972    ;;
4973  sequent)
4974    lt_cv_file_magic_cmd='/bin/file'
4975    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4976    ;;
4977  sni)
4978    lt_cv_file_magic_cmd='/bin/file'
4979    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4980    lt_cv_file_magic_test_file=/lib/libc.so
4981    ;;
4982  siemens)
4983    lt_cv_deplibs_check_method=pass_all
4984    ;;
4985  pc)
4986    lt_cv_deplibs_check_method=pass_all
4987    ;;
4988  esac
4989  ;;
4990
4991sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4992  lt_cv_deplibs_check_method=pass_all
4993  ;;
4994esac
4995
4996fi
4997echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4998echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4999file_magic_cmd=$lt_cv_file_magic_cmd
5000deplibs_check_method=$lt_cv_deplibs_check_method
5001test -z "$deplibs_check_method" && deplibs_check_method=unknown
5002
5003
5004
5005
5006# If no C compiler was specified, use CC.
5007LTCC=${LTCC-"$CC"}
5008
5009# If no C compiler flags were specified, use CFLAGS.
5010LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5011
5012# Allow CC to be a program name with arguments.
5013compiler=$CC
5014
5015# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5016if test "${enable_libtool_lock+set}" = set; then
5017  enableval="$enable_libtool_lock"
5018
5019fi;
5020test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5021
5022# Some flags need to be propagated to the compiler or linker for good
5023# libtool support.
5024case $host in
5025ia64-*-hpux*)
5026  # Find out which ABI we are using.
5027  echo 'int i;' > conftest.$ac_ext
5028  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029  (eval $ac_compile) 2>&5
5030  ac_status=$?
5031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032  (exit $ac_status); }; then
5033    case `/usr/bin/file conftest.$ac_objext` in
5034    *ELF-32*)
5035      HPUX_IA64_MODE="32"
5036      ;;
5037    *ELF-64*)
5038      HPUX_IA64_MODE="64"
5039      ;;
5040    esac
5041  fi
5042  rm -rf conftest*
5043  ;;
5044*-*-irix6*)
5045  # Find out which ABI we are using.
5046  echo '#line 5046 "configure"' > conftest.$ac_ext
5047  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048  (eval $ac_compile) 2>&5
5049  ac_status=$?
5050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051  (exit $ac_status); }; then
5052   if test "$lt_cv_prog_gnu_ld" = yes; then
5053    case `/usr/bin/file conftest.$ac_objext` in
5054    *32-bit*)
5055      LD="${LD-ld} -melf32bsmip"
5056      ;;
5057    *N32*)
5058      LD="${LD-ld} -melf32bmipn32"
5059      ;;
5060    *64-bit*)
5061      LD="${LD-ld} -melf64bmip"
5062      ;;
5063    esac
5064   else
5065    case `/usr/bin/file conftest.$ac_objext` in
5066    *32-bit*)
5067      LD="${LD-ld} -32"
5068      ;;
5069    *N32*)
5070      LD="${LD-ld} -n32"
5071      ;;
5072    *64-bit*)
5073      LD="${LD-ld} -64"
5074      ;;
5075    esac
5076   fi
5077  fi
5078  rm -rf conftest*
5079  ;;
5080
5081x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5082  # Find out which ABI we are using.
5083  echo 'int i;' > conftest.$ac_ext
5084  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5085  (eval $ac_compile) 2>&5
5086  ac_status=$?
5087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088  (exit $ac_status); }; then
5089    case `/usr/bin/file conftest.o` in
5090    *32-bit*)
5091      case $host in
5092        x86_64-*linux*)
5093          LD="${LD-ld} -m elf_i386"
5094          ;;
5095        ppc64-*linux*|powerpc64-*linux*)
5096          LD="${LD-ld} -m elf32ppclinux"
5097          ;;
5098        s390x-*linux*)
5099          LD="${LD-ld} -m elf_s390"
5100          ;;
5101        sparc64-*linux*)
5102          LD="${LD-ld} -m elf32_sparc"
5103          ;;
5104      esac
5105      ;;
5106    *64-bit*)
5107      case $host in
5108        x86_64-*linux*)
5109          LD="${LD-ld} -m elf_x86_64"
5110          ;;
5111        ppc*-*linux*|powerpc*-*linux*)
5112          LD="${LD-ld} -m elf64ppc"
5113          ;;
5114        s390*-*linux*)
5115          LD="${LD-ld} -m elf64_s390"
5116          ;;
5117        sparc*-*linux*)
5118          LD="${LD-ld} -m elf64_sparc"
5119          ;;
5120      esac
5121      ;;
5122    esac
5123  fi
5124  rm -rf conftest*
5125  ;;
5126
5127*-*-sco3.2v5*)
5128  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5129  SAVE_CFLAGS="$CFLAGS"
5130  CFLAGS="$CFLAGS -belf"
5131  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5132echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5133if test "${lt_cv_cc_needs_belf+set}" = set; then
5134  echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136  ac_ext=c
5137ac_cpp='$CPP $CPPFLAGS'
5138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140ac_compiler_gnu=$ac_cv_c_compiler_gnu
5141
5142     cat >conftest.$ac_ext <<_ACEOF
5143/* confdefs.h.  */
5144_ACEOF
5145cat confdefs.h >>conftest.$ac_ext
5146cat >>conftest.$ac_ext <<_ACEOF
5147/* end confdefs.h.  */
5148
5149int
5150main ()
5151{
5152
5153  ;
5154  return 0;
5155}
5156_ACEOF
5157rm -f conftest.$ac_objext conftest$ac_exeext
5158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159  (eval $ac_link) 2>conftest.er1
5160  ac_status=$?
5161  grep -v '^ *+' conftest.er1 >conftest.err
5162  rm -f conftest.er1
5163  cat conftest.err >&5
5164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165  (exit $ac_status); } &&
5166         { ac_try='test -z "$ac_c_werror_flag"
5167                         || test ! -s conftest.err'
5168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169  (eval $ac_try) 2>&5
5170  ac_status=$?
5171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172  (exit $ac_status); }; } &&
5173         { ac_try='test -s conftest$ac_exeext'
5174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175  (eval $ac_try) 2>&5
5176  ac_status=$?
5177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178  (exit $ac_status); }; }; then
5179  lt_cv_cc_needs_belf=yes
5180else
5181  echo "$as_me: failed program was:" >&5
5182sed 's/^/| /' conftest.$ac_ext >&5
5183
5184lt_cv_cc_needs_belf=no
5185fi
5186rm -f conftest.err conftest.$ac_objext \
5187      conftest$ac_exeext conftest.$ac_ext
5188     ac_ext=c
5189ac_cpp='$CPP $CPPFLAGS'
5190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193
5194fi
5195echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5196echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5197  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5198    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5199    CFLAGS="$SAVE_CFLAGS"
5200  fi
5201  ;;
5202sparc*-*solaris*)
5203  # Find out which ABI we are using.
5204  echo 'int i;' > conftest.$ac_ext
5205  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206  (eval $ac_compile) 2>&5
5207  ac_status=$?
5208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209  (exit $ac_status); }; then
5210    case `/usr/bin/file conftest.o` in
5211    *64-bit*)
5212      case $lt_cv_prog_gnu_ld in
5213      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5214      *)    LD="${LD-ld} -64" ;;
5215      esac
5216      ;;
5217    esac
5218  fi
5219  rm -rf conftest*
5220  ;;
5221
5222
5223esac
5224
5225need_locks="$enable_libtool_lock"
5226
5227
5228ac_ext=c
5229ac_cpp='$CPP $CPPFLAGS'
5230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232ac_compiler_gnu=$ac_cv_c_compiler_gnu
5233echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5234echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5235# On Suns, sometimes $CPP names a directory.
5236if test -n "$CPP" && test -d "$CPP"; then
5237  CPP=
5238fi
5239if test -z "$CPP"; then
5240  if test "${ac_cv_prog_CPP+set}" = set; then
5241  echo $ECHO_N "(cached) $ECHO_C" >&6
5242else
5243      # Double quotes because CPP needs to be expanded
5244    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5245    do
5246      ac_preproc_ok=false
5247for ac_c_preproc_warn_flag in '' yes
5248do
5249  # Use a header file that comes with gcc, so configuring glibc
5250  # with a fresh cross-compiler works.
5251  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5252  # <limits.h> exists even on freestanding compilers.
5253  # On the NeXT, cc -E runs the code through the compiler's parser,
5254  # not just through cpp. "Syntax error" is here to catch this case.
5255  cat >conftest.$ac_ext <<_ACEOF
5256/* confdefs.h.  */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h.  */
5261#ifdef __STDC__
5262# include <limits.h>
5263#else
5264# include <assert.h>
5265#endif
5266                     Syntax error
5267_ACEOF
5268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5269  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5270  ac_status=$?
5271  grep -v '^ *+' conftest.er1 >conftest.err
5272  rm -f conftest.er1
5273  cat conftest.err >&5
5274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275  (exit $ac_status); } >/dev/null; then
5276  if test -s conftest.err; then
5277    ac_cpp_err=$ac_c_preproc_warn_flag
5278    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279  else
5280    ac_cpp_err=
5281  fi
5282else
5283  ac_cpp_err=yes
5284fi
5285if test -z "$ac_cpp_err"; then
5286  :
5287else
5288  echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291  # Broken: fails on valid input.
5292continue
5293fi
5294rm -f conftest.err conftest.$ac_ext
5295
5296  # OK, works on sane cases.  Now check whether non-existent headers
5297  # can be detected and how.
5298  cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h.  */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h.  */
5304#include <ac_nonexistent.h>
5305_ACEOF
5306if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5307  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5308  ac_status=$?
5309  grep -v '^ *+' conftest.er1 >conftest.err
5310  rm -f conftest.er1
5311  cat conftest.err >&5
5312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313  (exit $ac_status); } >/dev/null; then
5314  if test -s conftest.err; then
5315    ac_cpp_err=$ac_c_preproc_warn_flag
5316    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5317  else
5318    ac_cpp_err=
5319  fi
5320else
5321  ac_cpp_err=yes
5322fi
5323if test -z "$ac_cpp_err"; then
5324  # Broken: success on invalid input.
5325continue
5326else
5327  echo "$as_me: failed program was:" >&5
5328sed 's/^/| /' conftest.$ac_ext >&5
5329
5330  # Passes both tests.
5331ac_preproc_ok=:
5332break
5333fi
5334rm -f conftest.err conftest.$ac_ext
5335
5336done
5337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5338rm -f conftest.err conftest.$ac_ext
5339if $ac_preproc_ok; then
5340  break
5341fi
5342
5343    done
5344    ac_cv_prog_CPP=$CPP
5345
5346fi
5347  CPP=$ac_cv_prog_CPP
5348else
5349  ac_cv_prog_CPP=$CPP
5350fi
5351echo "$as_me:$LINENO: result: $CPP" >&5
5352echo "${ECHO_T}$CPP" >&6
5353ac_preproc_ok=false
5354for ac_c_preproc_warn_flag in '' yes
5355do
5356  # Use a header file that comes with gcc, so configuring glibc
5357  # with a fresh cross-compiler works.
5358  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5359  # <limits.h> exists even on freestanding compilers.
5360  # On the NeXT, cc -E runs the code through the compiler's parser,
5361  # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
5369# include <limits.h>
5370#else
5371# include <assert.h>
5372#endif
5373                     Syntax error
5374_ACEOF
5375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5376  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5377  ac_status=$?
5378  grep -v '^ *+' conftest.er1 >conftest.err
5379  rm -f conftest.er1
5380  cat conftest.err >&5
5381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382  (exit $ac_status); } >/dev/null; then
5383  if test -s conftest.err; then
5384    ac_cpp_err=$ac_c_preproc_warn_flag
5385    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5386  else
5387    ac_cpp_err=
5388  fi
5389else
5390  ac_cpp_err=yes
5391fi
5392if test -z "$ac_cpp_err"; then
5393  :
5394else
5395  echo "$as_me: failed program was:" >&5
5396sed 's/^/| /' conftest.$ac_ext >&5
5397
5398  # Broken: fails on valid input.
5399continue
5400fi
5401rm -f conftest.err conftest.$ac_ext
5402
5403  # OK, works on sane cases.  Now check whether non-existent headers
5404  # can be detected and how.
5405  cat >conftest.$ac_ext <<_ACEOF
5406/* confdefs.h.  */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h.  */
5411#include <ac_nonexistent.h>
5412_ACEOF
5413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5415  ac_status=$?
5416  grep -v '^ *+' conftest.er1 >conftest.err
5417  rm -f conftest.er1
5418  cat conftest.err >&5
5419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420  (exit $ac_status); } >/dev/null; then
5421  if test -s conftest.err; then
5422    ac_cpp_err=$ac_c_preproc_warn_flag
5423    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5424  else
5425    ac_cpp_err=
5426  fi
5427else
5428  ac_cpp_err=yes
5429fi
5430if test -z "$ac_cpp_err"; then
5431  # Broken: success on invalid input.
5432continue
5433else
5434  echo "$as_me: failed program was:" >&5
5435sed 's/^/| /' conftest.$ac_ext >&5
5436
5437  # Passes both tests.
5438ac_preproc_ok=:
5439break
5440fi
5441rm -f conftest.err conftest.$ac_ext
5442
5443done
5444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5445rm -f conftest.err conftest.$ac_ext
5446if $ac_preproc_ok; then
5447  :
5448else
5449  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5450See \`config.log' for more details." >&5
5451echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5452See \`config.log' for more details." >&2;}
5453   { (exit 1); exit 1; }; }
5454fi
5455
5456ac_ext=c
5457ac_cpp='$CPP $CPPFLAGS'
5458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460ac_compiler_gnu=$ac_cv_c_compiler_gnu
5461
5462
5463echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5464echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5465if test "${ac_cv_header_stdc+set}" = set; then
5466  echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468  cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h.  */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h.  */
5474#include <stdlib.h>
5475#include <stdarg.h>
5476#include <string.h>
5477#include <float.h>
5478
5479int
5480main ()
5481{
5482
5483  ;
5484  return 0;
5485}
5486_ACEOF
5487rm -f conftest.$ac_objext
5488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489  (eval $ac_compile) 2>conftest.er1
5490  ac_status=$?
5491  grep -v '^ *+' conftest.er1 >conftest.err
5492  rm -f conftest.er1
5493  cat conftest.err >&5
5494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495  (exit $ac_status); } &&
5496         { ac_try='test -z "$ac_c_werror_flag"
5497                         || test ! -s conftest.err'
5498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499  (eval $ac_try) 2>&5
5500  ac_status=$?
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); }; } &&
5503         { ac_try='test -s conftest.$ac_objext'
5504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505  (eval $ac_try) 2>&5
5506  ac_status=$?
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); }; }; then
5509  ac_cv_header_stdc=yes
5510else
5511  echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
5514ac_cv_header_stdc=no
5515fi
5516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5517
5518if test $ac_cv_header_stdc = yes; then
5519  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5520  cat >conftest.$ac_ext <<_ACEOF
5521/* confdefs.h.  */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
5525/* end confdefs.h.  */
5526#include <string.h>
5527
5528_ACEOF
5529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5530  $EGREP "memchr" >/dev/null 2>&1; then
5531  :
5532else
5533  ac_cv_header_stdc=no
5534fi
5535rm -f conftest*
5536
5537fi
5538
5539if test $ac_cv_header_stdc = yes; then
5540  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5541  cat >conftest.$ac_ext <<_ACEOF
5542/* confdefs.h.  */
5543_ACEOF
5544cat confdefs.h >>conftest.$ac_ext
5545cat >>conftest.$ac_ext <<_ACEOF
5546/* end confdefs.h.  */
5547#include <stdlib.h>
5548
5549_ACEOF
5550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5551  $EGREP "free" >/dev/null 2>&1; then
5552  :
5553else
5554  ac_cv_header_stdc=no
5555fi
5556rm -f conftest*
5557
5558fi
5559
5560if test $ac_cv_header_stdc = yes; then
5561  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5562  if test "$cross_compiling" = yes; then
5563  :
5564else
5565  cat >conftest.$ac_ext <<_ACEOF
5566/* confdefs.h.  */
5567_ACEOF
5568cat confdefs.h >>conftest.$ac_ext
5569cat >>conftest.$ac_ext <<_ACEOF
5570/* end confdefs.h.  */
5571#include <ctype.h>
5572#if ((' ' & 0x0FF) == 0x020)
5573# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5574# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5575#else
5576# define ISLOWER(c) \
5577                   (('a' <= (c) && (c) <= 'i') \
5578                     || ('j' <= (c) && (c) <= 'r') \
5579                     || ('s' <= (c) && (c) <= 'z'))
5580# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5581#endif
5582
5583#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5584int
5585main ()
5586{
5587  int i;
5588  for (i = 0; i < 256; i++)
5589    if (XOR (islower (i), ISLOWER (i))
5590        || toupper (i) != TOUPPER (i))
5591      exit(2);
5592  exit (0);
5593}
5594_ACEOF
5595rm -f conftest$ac_exeext
5596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597  (eval $ac_link) 2>&5
5598  ac_status=$?
5599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602  (eval $ac_try) 2>&5
5603  ac_status=$?
5604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605  (exit $ac_status); }; }; then
5606  :
5607else
5608  echo "$as_me: program exited with status $ac_status" >&5
5609echo "$as_me: failed program was:" >&5
5610sed 's/^/| /' conftest.$ac_ext >&5
5611
5612( exit $ac_status )
5613ac_cv_header_stdc=no
5614fi
5615rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5616fi
5617fi
5618fi
5619echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5620echo "${ECHO_T}$ac_cv_header_stdc" >&6
5621if test $ac_cv_header_stdc = yes; then
5622
5623cat >>confdefs.h <<\_ACEOF
5624#define STDC_HEADERS 1
5625_ACEOF
5626
5627fi
5628
5629# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5640                  inttypes.h stdint.h unistd.h
5641do
5642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643echo "$as_me:$LINENO: checking for $ac_header" >&5
5644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5645if eval "test \"\${$as_ac_Header+set}\" = set"; then
5646  echo $ECHO_N "(cached) $ECHO_C" >&6
5647else
5648  cat >conftest.$ac_ext <<_ACEOF
5649/* confdefs.h.  */
5650_ACEOF
5651cat confdefs.h >>conftest.$ac_ext
5652cat >>conftest.$ac_ext <<_ACEOF
5653/* end confdefs.h.  */
5654$ac_includes_default
5655
5656#include <$ac_header>
5657_ACEOF
5658rm -f conftest.$ac_objext
5659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660  (eval $ac_compile) 2>conftest.er1
5661  ac_status=$?
5662  grep -v '^ *+' conftest.er1 >conftest.err
5663  rm -f conftest.er1
5664  cat conftest.err >&5
5665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); } &&
5667         { ac_try='test -z "$ac_c_werror_flag"
5668                         || test ! -s conftest.err'
5669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670  (eval $ac_try) 2>&5
5671  ac_status=$?
5672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673  (exit $ac_status); }; } &&
5674         { ac_try='test -s conftest.$ac_objext'
5675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676  (eval $ac_try) 2>&5
5677  ac_status=$?
5678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679  (exit $ac_status); }; }; then
5680  eval "$as_ac_Header=yes"
5681else
5682  echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685eval "$as_ac_Header=no"
5686fi
5687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5688fi
5689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5691if test `eval echo '${'$as_ac_Header'}'` = yes; then
5692  cat >>confdefs.h <<_ACEOF
5693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5694_ACEOF
5695
5696fi
5697
5698done
5699
5700
5701
5702for ac_header in dlfcn.h
5703do
5704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5705if eval "test \"\${$as_ac_Header+set}\" = set"; then
5706  echo "$as_me:$LINENO: checking for $ac_header" >&5
5707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5708if eval "test \"\${$as_ac_Header+set}\" = set"; then
5709  echo $ECHO_N "(cached) $ECHO_C" >&6
5710fi
5711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5713else
5714  # Is the header compilable?
5715echo "$as_me:$LINENO: checking $ac_header usability" >&5
5716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5717cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h.  */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h.  */
5723$ac_includes_default
5724#include <$ac_header>
5725_ACEOF
5726rm -f conftest.$ac_objext
5727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728  (eval $ac_compile) 2>conftest.er1
5729  ac_status=$?
5730  grep -v '^ *+' conftest.er1 >conftest.err
5731  rm -f conftest.er1
5732  cat conftest.err >&5
5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734  (exit $ac_status); } &&
5735         { ac_try='test -z "$ac_c_werror_flag"
5736                         || test ! -s conftest.err'
5737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738  (eval $ac_try) 2>&5
5739  ac_status=$?
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); }; } &&
5742         { ac_try='test -s conftest.$ac_objext'
5743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744  (eval $ac_try) 2>&5
5745  ac_status=$?
5746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747  (exit $ac_status); }; }; then
5748  ac_header_compiler=yes
5749else
5750  echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
5753ac_header_compiler=no
5754fi
5755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5757echo "${ECHO_T}$ac_header_compiler" >&6
5758
5759# Is the header present?
5760echo "$as_me:$LINENO: checking $ac_header presence" >&5
5761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5762cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h.  */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h.  */
5768#include <$ac_header>
5769_ACEOF
5770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5771  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5772  ac_status=$?
5773  grep -v '^ *+' conftest.er1 >conftest.err
5774  rm -f conftest.er1
5775  cat conftest.err >&5
5776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777  (exit $ac_status); } >/dev/null; then
5778  if test -s conftest.err; then
5779    ac_cpp_err=$ac_c_preproc_warn_flag
5780    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5781  else
5782    ac_cpp_err=
5783  fi
5784else
5785  ac_cpp_err=yes
5786fi
5787if test -z "$ac_cpp_err"; then
5788  ac_header_preproc=yes
5789else
5790  echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793  ac_header_preproc=no
5794fi
5795rm -f conftest.err conftest.$ac_ext
5796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5797echo "${ECHO_T}$ac_header_preproc" >&6
5798
5799# So?  What about this header?
5800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5801  yes:no: )
5802    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5803echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5804    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5805echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5806    ac_header_preproc=yes
5807    ;;
5808  no:yes:* )
5809    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5810echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5811    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5812echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5813    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5814echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5815    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5816echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5817    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5819    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5820echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5821    (
5822      cat <<\_ASBOX
5823## --------------------------------------------------------------- ##
5824## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5825## --------------------------------------------------------------- ##
5826_ASBOX
5827    ) |
5828      sed "s/^/$as_me: WARNING:     /" >&2
5829    ;;
5830esac
5831echo "$as_me:$LINENO: checking for $ac_header" >&5
5832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5833if eval "test \"\${$as_ac_Header+set}\" = set"; then
5834  echo $ECHO_N "(cached) $ECHO_C" >&6
5835else
5836  eval "$as_ac_Header=\$ac_header_preproc"
5837fi
5838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5840
5841fi
5842if test `eval echo '${'$as_ac_Header'}'` = yes; then
5843  cat >>confdefs.h <<_ACEOF
5844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5845_ACEOF
5846
5847fi
5848
5849done
5850
5851ac_ext=cc
5852ac_cpp='$CXXCPP $CPPFLAGS'
5853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5856if test -n "$ac_tool_prefix"; then
5857  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5858  do
5859    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5860set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5861echo "$as_me:$LINENO: checking for $ac_word" >&5
5862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5863if test "${ac_cv_prog_CXX+set}" = set; then
5864  echo $ECHO_N "(cached) $ECHO_C" >&6
5865else
5866  if test -n "$CXX"; then
5867  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872  IFS=$as_save_IFS
5873  test -z "$as_dir" && as_dir=.
5874  for ac_exec_ext in '' $ac_executable_extensions; do
5875  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878    break 2
5879  fi
5880done
5881done
5882
5883fi
5884fi
5885CXX=$ac_cv_prog_CXX
5886if test -n "$CXX"; then
5887  echo "$as_me:$LINENO: result: $CXX" >&5
5888echo "${ECHO_T}$CXX" >&6
5889else
5890  echo "$as_me:$LINENO: result: no" >&5
5891echo "${ECHO_T}no" >&6
5892fi
5893
5894    test -n "$CXX" && break
5895  done
5896fi
5897if test -z "$CXX"; then
5898  ac_ct_CXX=$CXX
5899  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5900do
5901  # Extract the first word of "$ac_prog", so it can be a program name with args.
5902set dummy $ac_prog; ac_word=$2
5903echo "$as_me:$LINENO: checking for $ac_word" >&5
5904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5905if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5906  echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908  if test -n "$ac_ct_CXX"; then
5909  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5910else
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914  IFS=$as_save_IFS
5915  test -z "$as_dir" && as_dir=.
5916  for ac_exec_ext in '' $ac_executable_extensions; do
5917  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918    ac_cv_prog_ac_ct_CXX="$ac_prog"
5919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920    break 2
5921  fi
5922done
5923done
5924
5925fi
5926fi
5927ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5928if test -n "$ac_ct_CXX"; then
5929  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5930echo "${ECHO_T}$ac_ct_CXX" >&6
5931else
5932  echo "$as_me:$LINENO: result: no" >&5
5933echo "${ECHO_T}no" >&6
5934fi
5935
5936  test -n "$ac_ct_CXX" && break
5937done
5938test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5939
5940  CXX=$ac_ct_CXX
5941fi
5942
5943
5944# Provide some information about the compiler.
5945echo "$as_me:$LINENO:" \
5946     "checking for C++ compiler version" >&5
5947ac_compiler=`set X $ac_compile; echo $2`
5948{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5949  (eval $ac_compiler --version </dev/null >&5) 2>&5
5950  ac_status=$?
5951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952  (exit $ac_status); }
5953{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5954  (eval $ac_compiler -v </dev/null >&5) 2>&5
5955  ac_status=$?
5956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); }
5958{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5959  (eval $ac_compiler -V </dev/null >&5) 2>&5
5960  ac_status=$?
5961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962  (exit $ac_status); }
5963
5964echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5965echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5966if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5967  echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969  cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h.  */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
5974/* end confdefs.h.  */
5975
5976int
5977main ()
5978{
5979#ifndef __GNUC__
5980       choke me
5981#endif
5982
5983  ;
5984  return 0;
5985}
5986_ACEOF
5987rm -f conftest.$ac_objext
5988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989  (eval $ac_compile) 2>conftest.er1
5990  ac_status=$?
5991  grep -v '^ *+' conftest.er1 >conftest.err
5992  rm -f conftest.er1
5993  cat conftest.err >&5
5994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995  (exit $ac_status); } &&
5996         { ac_try='test -z "$ac_cxx_werror_flag"
5997                         || test ! -s conftest.err'
5998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999  (eval $ac_try) 2>&5
6000  ac_status=$?
6001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); }; } &&
6003         { ac_try='test -s conftest.$ac_objext'
6004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005  (eval $ac_try) 2>&5
6006  ac_status=$?
6007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008  (exit $ac_status); }; }; then
6009  ac_compiler_gnu=yes
6010else
6011  echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014ac_compiler_gnu=no
6015fi
6016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6018
6019fi
6020echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6021echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6022GXX=`test $ac_compiler_gnu = yes && echo yes`
6023ac_test_CXXFLAGS=${CXXFLAGS+set}
6024ac_save_CXXFLAGS=$CXXFLAGS
6025CXXFLAGS="-g"
6026echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6027echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6028if test "${ac_cv_prog_cxx_g+set}" = set; then
6029  echo $ECHO_N "(cached) $ECHO_C" >&6
6030else
6031  cat >conftest.$ac_ext <<_ACEOF
6032/* confdefs.h.  */
6033_ACEOF
6034cat confdefs.h >>conftest.$ac_ext
6035cat >>conftest.$ac_ext <<_ACEOF
6036/* end confdefs.h.  */
6037
6038int
6039main ()
6040{
6041
6042  ;
6043  return 0;
6044}
6045_ACEOF
6046rm -f conftest.$ac_objext
6047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048  (eval $ac_compile) 2>conftest.er1
6049  ac_status=$?
6050  grep -v '^ *+' conftest.er1 >conftest.err
6051  rm -f conftest.er1
6052  cat conftest.err >&5
6053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054  (exit $ac_status); } &&
6055         { ac_try='test -z "$ac_cxx_werror_flag"
6056                         || test ! -s conftest.err'
6057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058  (eval $ac_try) 2>&5
6059  ac_status=$?
6060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061  (exit $ac_status); }; } &&
6062         { ac_try='test -s conftest.$ac_objext'
6063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064  (eval $ac_try) 2>&5
6065  ac_status=$?
6066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067  (exit $ac_status); }; }; then
6068  ac_cv_prog_cxx_g=yes
6069else
6070  echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
6072
6073ac_cv_prog_cxx_g=no
6074fi
6075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6076fi
6077echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6078echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6079if test "$ac_test_CXXFLAGS" = set; then
6080  CXXFLAGS=$ac_save_CXXFLAGS
6081elif test $ac_cv_prog_cxx_g = yes; then
6082  if test "$GXX" = yes; then
6083    CXXFLAGS="-g -O2"
6084  else
6085    CXXFLAGS="-g"
6086  fi
6087else
6088  if test "$GXX" = yes; then
6089    CXXFLAGS="-O2"
6090  else
6091    CXXFLAGS=
6092  fi
6093fi
6094for ac_declaration in \
6095   '' \
6096   'extern "C" void std::exit (int) throw (); using std::exit;' \
6097   'extern "C" void std::exit (int); using std::exit;' \
6098   'extern "C" void exit (int) throw ();' \
6099   'extern "C" void exit (int);' \
6100   'void exit (int);'
6101do
6102  cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h.  */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h.  */
6108$ac_declaration
6109#include <stdlib.h>
6110int
6111main ()
6112{
6113exit (42);
6114  ;
6115  return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext
6119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120  (eval $ac_compile) 2>conftest.er1
6121  ac_status=$?
6122  grep -v '^ *+' conftest.er1 >conftest.err
6123  rm -f conftest.er1
6124  cat conftest.err >&5
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); } &&
6127         { ac_try='test -z "$ac_cxx_werror_flag"
6128                         || test ! -s conftest.err'
6129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130  (eval $ac_try) 2>&5
6131  ac_status=$?
6132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133  (exit $ac_status); }; } &&
6134         { ac_try='test -s conftest.$ac_objext'
6135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136  (eval $ac_try) 2>&5
6137  ac_status=$?
6138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139  (exit $ac_status); }; }; then
6140  :
6141else
6142  echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145continue
6146fi
6147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6148  cat >conftest.$ac_ext <<_ACEOF
6149/* confdefs.h.  */
6150_ACEOF
6151cat confdefs.h >>conftest.$ac_ext
6152cat >>conftest.$ac_ext <<_ACEOF
6153/* end confdefs.h.  */
6154$ac_declaration
6155int
6156main ()
6157{
6158exit (42);
6159  ;
6160  return 0;
6161}
6162_ACEOF
6163rm -f conftest.$ac_objext
6164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165  (eval $ac_compile) 2>conftest.er1
6166  ac_status=$?
6167  grep -v '^ *+' conftest.er1 >conftest.err
6168  rm -f conftest.er1
6169  cat conftest.err >&5
6170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171  (exit $ac_status); } &&
6172         { ac_try='test -z "$ac_cxx_werror_flag"
6173                         || test ! -s conftest.err'
6174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175  (eval $ac_try) 2>&5
6176  ac_status=$?
6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178  (exit $ac_status); }; } &&
6179         { ac_try='test -s conftest.$ac_objext'
6180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181  (eval $ac_try) 2>&5
6182  ac_status=$?
6183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184  (exit $ac_status); }; }; then
6185  break
6186else
6187  echo "$as_me: failed program was:" >&5
6188sed 's/^/| /' conftest.$ac_ext >&5
6189
6190fi
6191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6192done
6193rm -f conftest*
6194if test -n "$ac_declaration"; then
6195  echo '#ifdef __cplusplus' >>confdefs.h
6196  echo $ac_declaration      >>confdefs.h
6197  echo '#endif'             >>confdefs.h
6198fi
6199
6200ac_ext=cc
6201ac_cpp='$CXXCPP $CPPFLAGS'
6202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6205
6206depcc="$CXX"  am_compiler_list=
6207
6208echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6209echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6210if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6211  echo $ECHO_N "(cached) $ECHO_C" >&6
6212else
6213  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6214  # We make a subdir and do the tests there.  Otherwise we can end up
6215  # making bogus files that we don't know about and never remove.  For
6216  # instance it was reported that on HP-UX the gcc test will end up
6217  # making a dummy file named `D' -- because `-MD' means `put the output
6218  # in D'.
6219  mkdir conftest.dir
6220  # Copy depcomp to subdir because otherwise we won't find it if we're
6221  # using a relative directory.
6222  cp "$am_depcomp" conftest.dir
6223  cd conftest.dir
6224  # We will build objects and dependencies in a subdirectory because
6225  # it helps to detect inapplicable dependency modes.  For instance
6226  # both Tru64's cc and ICC support -MD to output dependencies as a
6227  # side effect of compilation, but ICC will put the dependencies in
6228  # the current directory while Tru64 will put them in the object
6229  # directory.
6230  mkdir sub
6231
6232  am_cv_CXX_dependencies_compiler_type=none
6233  if test "$am_compiler_list" = ""; then
6234     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6235  fi
6236  for depmode in $am_compiler_list; do
6237    # Setup a source with many dependencies, because some compilers
6238    # like to wrap large dependency lists on column 80 (with \), and
6239    # we should not choose a depcomp mode which is confused by this.
6240    #
6241    # We need to recreate these files for each test, as the compiler may
6242    # overwrite some of them when testing with obscure command lines.
6243    # This happens at least with the AIX C compiler.
6244    : > sub/conftest.c
6245    for i in 1 2 3 4 5 6; do
6246      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6247      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6248      # Solaris 8's {/usr,}/bin/sh.
6249      touch sub/conftst$i.h
6250    done
6251    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6252
6253    case $depmode in
6254    nosideeffect)
6255      # after this tag, mechanisms are not by side-effect, so they'll
6256      # only be used when explicitly requested
6257      if test "x$enable_dependency_tracking" = xyes; then
6258        continue
6259      else
6260        break
6261      fi
6262      ;;
6263    none) break ;;
6264    esac
6265    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6266    # mode.  It turns out that the SunPro C++ compiler does not properly
6267    # handle `-M -o', and we need to detect this.
6268    if depmode=$depmode \
6269       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6270       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6271       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6272         >/dev/null 2>conftest.err &&
6273       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6274       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6275       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6276      # icc doesn't choke on unknown options, it will just issue warnings
6277      # or remarks (even with -Werror).  So we grep stderr for any message
6278      # that says an option was ignored or not supported.
6279      # When given -MP, icc 7.0 and 7.1 complain thusly:
6280      #   icc: Command line warning: ignoring option '-M'; no argument required
6281      # The diagnosis changed in icc 8.0:
6282      #   icc: Command line remark: option '-MP' not supported
6283      if (grep 'ignoring option' conftest.err ||
6284          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6285        am_cv_CXX_dependencies_compiler_type=$depmode
6286        break
6287      fi
6288    fi
6289  done
6290
6291  cd ..
6292  rm -rf conftest.dir
6293else
6294  am_cv_CXX_dependencies_compiler_type=none
6295fi
6296
6297fi
6298echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6299echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6300CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6301
6302
6303
6304if
6305  test "x$enable_dependency_tracking" != xno \
6306  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6307  am__fastdepCXX_TRUE=
6308  am__fastdepCXX_FALSE='#'
6309else
6310  am__fastdepCXX_TRUE='#'
6311  am__fastdepCXX_FALSE=
6312fi
6313
6314
6315
6316
6317if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6318    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6319    (test "X$CXX" != "Xg++"))) ; then
6320  ac_ext=cc
6321ac_cpp='$CXXCPP $CPPFLAGS'
6322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6325echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6326echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6327if test -z "$CXXCPP"; then
6328  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6329  echo $ECHO_N "(cached) $ECHO_C" >&6
6330else
6331      # Double quotes because CXXCPP needs to be expanded
6332    for CXXCPP in "$CXX -E" "/lib/cpp"
6333    do
6334      ac_preproc_ok=false
6335for ac_cxx_preproc_warn_flag in '' yes
6336do
6337  # Use a header file that comes with gcc, so configuring glibc
6338  # with a fresh cross-compiler works.
6339  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6340  # <limits.h> exists even on freestanding compilers.
6341  # On the NeXT, cc -E runs the code through the compiler's parser,
6342  # not just through cpp. "Syntax error" is here to catch this case.
6343  cat >conftest.$ac_ext <<_ACEOF
6344/* confdefs.h.  */
6345_ACEOF
6346cat confdefs.h >>conftest.$ac_ext
6347cat >>conftest.$ac_ext <<_ACEOF
6348/* end confdefs.h.  */
6349#ifdef __STDC__
6350# include <limits.h>
6351#else
6352# include <assert.h>
6353#endif
6354                     Syntax error
6355_ACEOF
6356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6358  ac_status=$?
6359  grep -v '^ *+' conftest.er1 >conftest.err
6360  rm -f conftest.er1
6361  cat conftest.err >&5
6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363  (exit $ac_status); } >/dev/null; then
6364  if test -s conftest.err; then
6365    ac_cpp_err=$ac_cxx_preproc_warn_flag
6366    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6367  else
6368    ac_cpp_err=
6369  fi
6370else
6371  ac_cpp_err=yes
6372fi
6373if test -z "$ac_cpp_err"; then
6374  :
6375else
6376  echo "$as_me: failed program was:" >&5
6377sed 's/^/| /' conftest.$ac_ext >&5
6378
6379  # Broken: fails on valid input.
6380continue
6381fi
6382rm -f conftest.err conftest.$ac_ext
6383
6384  # OK, works on sane cases.  Now check whether non-existent headers
6385  # can be detected and how.
6386  cat >conftest.$ac_ext <<_ACEOF
6387/* confdefs.h.  */
6388_ACEOF
6389cat confdefs.h >>conftest.$ac_ext
6390cat >>conftest.$ac_ext <<_ACEOF
6391/* end confdefs.h.  */
6392#include <ac_nonexistent.h>
6393_ACEOF
6394if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6395  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6396  ac_status=$?
6397  grep -v '^ *+' conftest.er1 >conftest.err
6398  rm -f conftest.er1
6399  cat conftest.err >&5
6400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401  (exit $ac_status); } >/dev/null; then
6402  if test -s conftest.err; then
6403    ac_cpp_err=$ac_cxx_preproc_warn_flag
6404    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6405  else
6406    ac_cpp_err=
6407  fi
6408else
6409  ac_cpp_err=yes
6410fi
6411if test -z "$ac_cpp_err"; then
6412  # Broken: success on invalid input.
6413continue
6414else
6415  echo "$as_me: failed program was:" >&5
6416sed 's/^/| /' conftest.$ac_ext >&5
6417
6418  # Passes both tests.
6419ac_preproc_ok=:
6420break
6421fi
6422rm -f conftest.err conftest.$ac_ext
6423
6424done
6425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6426rm -f conftest.err conftest.$ac_ext
6427if $ac_preproc_ok; then
6428  break
6429fi
6430
6431    done
6432    ac_cv_prog_CXXCPP=$CXXCPP
6433
6434fi
6435  CXXCPP=$ac_cv_prog_CXXCPP
6436else
6437  ac_cv_prog_CXXCPP=$CXXCPP
6438fi
6439echo "$as_me:$LINENO: result: $CXXCPP" >&5
6440echo "${ECHO_T}$CXXCPP" >&6
6441ac_preproc_ok=false
6442for ac_cxx_preproc_warn_flag in '' yes
6443do
6444  # Use a header file that comes with gcc, so configuring glibc
6445  # with a fresh cross-compiler works.
6446  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6447  # <limits.h> exists even on freestanding compilers.
6448  # On the NeXT, cc -E runs the code through the compiler's parser,
6449  # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
6457# include <limits.h>
6458#else
6459# include <assert.h>
6460#endif
6461                     Syntax error
6462_ACEOF
6463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6464  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6465  ac_status=$?
6466  grep -v '^ *+' conftest.er1 >conftest.err
6467  rm -f conftest.er1
6468  cat conftest.err >&5
6469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470  (exit $ac_status); } >/dev/null; then
6471  if test -s conftest.err; then
6472    ac_cpp_err=$ac_cxx_preproc_warn_flag
6473    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6474  else
6475    ac_cpp_err=
6476  fi
6477else
6478  ac_cpp_err=yes
6479fi
6480if test -z "$ac_cpp_err"; then
6481  :
6482else
6483  echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
6485
6486  # Broken: fails on valid input.
6487continue
6488fi
6489rm -f conftest.err conftest.$ac_ext
6490
6491  # OK, works on sane cases.  Now check whether non-existent headers
6492  # can be detected and how.
6493  cat >conftest.$ac_ext <<_ACEOF
6494/* confdefs.h.  */
6495_ACEOF
6496cat confdefs.h >>conftest.$ac_ext
6497cat >>conftest.$ac_ext <<_ACEOF
6498/* end confdefs.h.  */
6499#include <ac_nonexistent.h>
6500_ACEOF
6501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6502  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6503  ac_status=$?
6504  grep -v '^ *+' conftest.er1 >conftest.err
6505  rm -f conftest.er1
6506  cat conftest.err >&5
6507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508  (exit $ac_status); } >/dev/null; then
6509  if test -s conftest.err; then
6510    ac_cpp_err=$ac_cxx_preproc_warn_flag
6511    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6512  else
6513    ac_cpp_err=
6514  fi
6515else
6516  ac_cpp_err=yes
6517fi
6518if test -z "$ac_cpp_err"; then
6519  # Broken: success on invalid input.
6520continue
6521else
6522  echo "$as_me: failed program was:" >&5
6523sed 's/^/| /' conftest.$ac_ext >&5
6524
6525  # Passes both tests.
6526ac_preproc_ok=:
6527break
6528fi
6529rm -f conftest.err conftest.$ac_ext
6530
6531done
6532# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6533rm -f conftest.err conftest.$ac_ext
6534if $ac_preproc_ok; then
6535  :
6536else
6537  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6538See \`config.log' for more details." >&5
6539echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6540See \`config.log' for more details." >&2;}
6541   { (exit 1); exit 1; }; }
6542fi
6543
6544ac_ext=cc
6545ac_cpp='$CXXCPP $CPPFLAGS'
6546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6549
6550fi
6551
6552
6553ac_ext=f
6554ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6555ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6557if test -n "$ac_tool_prefix"; then
6558  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6559  do
6560    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6561set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6562echo "$as_me:$LINENO: checking for $ac_word" >&5
6563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6564if test "${ac_cv_prog_F77+set}" = set; then
6565  echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567  if test -n "$F77"; then
6568  ac_cv_prog_F77="$F77" # Let the user override the test.
6569else
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573  IFS=$as_save_IFS
6574  test -z "$as_dir" && as_dir=.
6575  for ac_exec_ext in '' $ac_executable_extensions; do
6576  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579    break 2
6580  fi
6581done
6582done
6583
6584fi
6585fi
6586F77=$ac_cv_prog_F77
6587if test -n "$F77"; then
6588  echo "$as_me:$LINENO: result: $F77" >&5
6589echo "${ECHO_T}$F77" >&6
6590else
6591  echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6
6593fi
6594
6595    test -n "$F77" && break
6596  done
6597fi
6598if test -z "$F77"; then
6599  ac_ct_F77=$F77
6600  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6601do
6602  # Extract the first word of "$ac_prog", so it can be a program name with args.
6603set dummy $ac_prog; ac_word=$2
6604echo "$as_me:$LINENO: checking for $ac_word" >&5
6605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6606if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6607  echo $ECHO_N "(cached) $ECHO_C" >&6
6608else
6609  if test -n "$ac_ct_F77"; then
6610  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6611else
6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615  IFS=$as_save_IFS
6616  test -z "$as_dir" && as_dir=.
6617  for ac_exec_ext in '' $ac_executable_extensions; do
6618  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6619    ac_cv_prog_ac_ct_F77="$ac_prog"
6620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621    break 2
6622  fi
6623done
6624done
6625
6626fi
6627fi
6628ac_ct_F77=$ac_cv_prog_ac_ct_F77
6629if test -n "$ac_ct_F77"; then
6630  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6631echo "${ECHO_T}$ac_ct_F77" >&6
6632else
6633  echo "$as_me:$LINENO: result: no" >&5
6634echo "${ECHO_T}no" >&6
6635fi
6636
6637  test -n "$ac_ct_F77" && break
6638done
6639
6640  F77=$ac_ct_F77
6641fi
6642
6643
6644# Provide some information about the compiler.
6645echo "$as_me:6645:" \
6646     "checking for Fortran 77 compiler version" >&5
6647ac_compiler=`set X $ac_compile; echo $2`
6648{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6649  (eval $ac_compiler --version </dev/null >&5) 2>&5
6650  ac_status=$?
6651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652  (exit $ac_status); }
6653{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6654  (eval $ac_compiler -v </dev/null >&5) 2>&5
6655  ac_status=$?
6656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657  (exit $ac_status); }
6658{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6659  (eval $ac_compiler -V </dev/null >&5) 2>&5
6660  ac_status=$?
6661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662  (exit $ac_status); }
6663rm -f a.out
6664
6665# If we don't use `.F' as extension, the preprocessor is not run on the
6666# input file.  (Note that this only needs to work for GNU compilers.)
6667ac_save_ext=$ac_ext
6668ac_ext=F
6669echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6670echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6671if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6672  echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674  cat >conftest.$ac_ext <<_ACEOF
6675      program main
6676#ifndef __GNUC__
6677       choke me
6678#endif
6679
6680      end
6681_ACEOF
6682rm -f conftest.$ac_objext
6683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684  (eval $ac_compile) 2>conftest.er1
6685  ac_status=$?
6686  grep -v '^ *+' conftest.er1 >conftest.err
6687  rm -f conftest.er1
6688  cat conftest.err >&5
6689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690  (exit $ac_status); } &&
6691         { ac_try='test -z "$ac_f77_werror_flag"
6692                         || test ! -s conftest.err'
6693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694  (eval $ac_try) 2>&5
6695  ac_status=$?
6696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697  (exit $ac_status); }; } &&
6698         { ac_try='test -s conftest.$ac_objext'
6699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700  (eval $ac_try) 2>&5
6701  ac_status=$?
6702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703  (exit $ac_status); }; }; then
6704  ac_compiler_gnu=yes
6705else
6706  echo "$as_me: failed program was:" >&5
6707sed 's/^/| /' conftest.$ac_ext >&5
6708
6709ac_compiler_gnu=no
6710fi
6711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6712ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6713
6714fi
6715echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6716echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6717ac_ext=$ac_save_ext
6718ac_test_FFLAGS=${FFLAGS+set}
6719ac_save_FFLAGS=$FFLAGS
6720FFLAGS=
6721echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6722echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6723if test "${ac_cv_prog_f77_g+set}" = set; then
6724  echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
6726  FFLAGS=-g
6727cat >conftest.$ac_ext <<_ACEOF
6728      program main
6729
6730      end
6731_ACEOF
6732rm -f conftest.$ac_objext
6733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734  (eval $ac_compile) 2>conftest.er1
6735  ac_status=$?
6736  grep -v '^ *+' conftest.er1 >conftest.err
6737  rm -f conftest.er1
6738  cat conftest.err >&5
6739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740  (exit $ac_status); } &&
6741         { ac_try='test -z "$ac_f77_werror_flag"
6742                         || test ! -s conftest.err'
6743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744  (eval $ac_try) 2>&5
6745  ac_status=$?
6746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747  (exit $ac_status); }; } &&
6748         { ac_try='test -s conftest.$ac_objext'
6749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750  (eval $ac_try) 2>&5
6751  ac_status=$?
6752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753  (exit $ac_status); }; }; then
6754  ac_cv_prog_f77_g=yes
6755else
6756  echo "$as_me: failed program was:" >&5
6757sed 's/^/| /' conftest.$ac_ext >&5
6758
6759ac_cv_prog_f77_g=no
6760fi
6761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6762
6763fi
6764echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6765echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6766if test "$ac_test_FFLAGS" = set; then
6767  FFLAGS=$ac_save_FFLAGS
6768elif test $ac_cv_prog_f77_g = yes; then
6769  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6770    FFLAGS="-g -O2"
6771  else
6772    FFLAGS="-g"
6773  fi
6774else
6775  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6776    FFLAGS="-O2"
6777  else
6778    FFLAGS=
6779  fi
6780fi
6781
6782G77=`test $ac_compiler_gnu = yes && echo yes`
6783ac_ext=c
6784ac_cpp='$CPP $CPPFLAGS'
6785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6787ac_compiler_gnu=$ac_cv_c_compiler_gnu
6788
6789
6790
6791# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6792
6793# find the maximum length of command line arguments
6794echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6795echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6796if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6797  echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799    i=0
6800  teststring="ABCD"
6801
6802  case $build_os in
6803  msdosdjgpp*)
6804    # On DJGPP, this test can blow up pretty badly due to problems in libc
6805    # (any single argument exceeding 2000 bytes causes a buffer overrun
6806    # during glob expansion).  Even if it were fixed, the result of this
6807    # check would be larger than it should be.
6808    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6809    ;;
6810
6811  gnu*)
6812    # Under GNU Hurd, this test is not required because there is
6813    # no limit to the length of command line arguments.
6814    # Libtool will interpret -1 as no limit whatsoever
6815    lt_cv_sys_max_cmd_len=-1;
6816    ;;
6817
6818  cygwin* | mingw*)
6819    # On Win9x/ME, this test blows up -- it succeeds, but takes
6820    # about 5 minutes as the teststring grows exponentially.
6821    # Worse, since 9x/ME are not pre-emptively multitasking,
6822    # you end up with a "frozen" computer, even though with patience
6823    # the test eventually succeeds (with a max line length of 256k).
6824    # Instead, let's just punt: use the minimum linelength reported by
6825    # all of the supported platforms: 8192 (on NT/2K/XP).
6826    lt_cv_sys_max_cmd_len=8192;
6827    ;;
6828
6829  amigaos*)
6830    # On AmigaOS with pdksh, this test takes hours, literally.
6831    # So we just punt and use a minimum line length of 8192.
6832    lt_cv_sys_max_cmd_len=8192;
6833    ;;
6834
6835  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6836    # This has been around since 386BSD, at least.  Likely further.
6837    if test -x /sbin/sysctl; then
6838      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6839    elif test -x /usr/sbin/sysctl; then
6840      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6841    else
6842      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6843    fi
6844    # And add a safety zone
6845    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6846    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6847    ;;
6848
6849  interix*)
6850    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6851    lt_cv_sys_max_cmd_len=196608
6852    ;;
6853
6854  osf*)
6855    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6856    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6857    # nice to cause kernel panics so lets avoid the loop below.
6858    # First set a reasonable default.
6859    lt_cv_sys_max_cmd_len=16384
6860    #
6861    if test -x /sbin/sysconfig; then
6862      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6863        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6864      esac
6865    fi
6866    ;;
6867  sco3.2v5*)
6868    lt_cv_sys_max_cmd_len=102400
6869    ;;
6870  sysv5* | sco5v6* | sysv4.2uw2*)
6871    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6872    if test -n "$kargmax"; then
6873      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6874    else
6875      lt_cv_sys_max_cmd_len=32768
6876    fi
6877    ;;
6878  *)
6879    # If test is not a shell built-in, we'll probably end up computing a
6880    # maximum length that is only half of the actual maximum length, but
6881    # we can't tell.
6882    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6883    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6884               = "XX$teststring") >/dev/null 2>&1 &&
6885            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6886            lt_cv_sys_max_cmd_len=$new_result &&
6887            test $i != 17 # 1/2 MB should be enough
6888    do
6889      i=`expr $i + 1`
6890      teststring=$teststring$teststring
6891    done
6892    teststring=
6893    # Add a significant safety factor because C++ compilers can tack on massive
6894    # amounts of additional arguments before passing them to the linker.
6895    # It appears as though 1/2 is a usable value.
6896    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6897    ;;
6898  esac
6899
6900fi
6901
6902if test -n $lt_cv_sys_max_cmd_len ; then
6903  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6904echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6905else
6906  echo "$as_me:$LINENO: result: none" >&5
6907echo "${ECHO_T}none" >&6
6908fi
6909
6910
6911
6912
6913# Check for command to grab the raw symbol name followed by C symbol from nm.
6914echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6915echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6916if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6917  echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919
6920# These are sane defaults that work on at least a few old systems.
6921# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6922
6923# Character class describing NM global symbol codes.
6924symcode='[BCDEGRST]'
6925
6926# Regexp to match symbols that can be accessed directly from C.
6927sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6928
6929# Transform an extracted symbol line into a proper C declaration
6930lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6931
6932# Transform an extracted symbol line into symbol name and symbol address
6933lt_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'"
6934
6935# Define system-specific variables.
6936case $host_os in
6937aix*)
6938  symcode='[BCDT]'
6939  ;;
6940cygwin* | mingw* | pw32*)
6941  symcode='[ABCDGISTW]'
6942  ;;
6943hpux*) # Its linker distinguishes data from code symbols
6944  if test "$host_cpu" = ia64; then
6945    symcode='[ABCDEGRST]'
6946  fi
6947  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6948  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'"
6949  ;;
6950linux*)
6951  if test "$host_cpu" = ia64; then
6952    symcode='[ABCDGIRSTW]'
6953    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6954    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'"
6955  fi
6956  ;;
6957irix* | nonstopux*)
6958  symcode='[BCDEGRST]'
6959  ;;
6960osf*)
6961  symcode='[BCDEGQRST]'
6962  ;;
6963solaris*)
6964  symcode='[BDRT]'
6965  ;;
6966sco3.2v5*)
6967  symcode='[DT]'
6968  ;;
6969sysv4.2uw2*)
6970  symcode='[DT]'
6971  ;;
6972sysv5* | sco5v6* | unixware* | OpenUNIX*)
6973  symcode='[ABDT]'
6974  ;;
6975sysv4)
6976  symcode='[DFNSTU]'
6977  ;;
6978esac
6979
6980# Handle CRLF in mingw tool chain
6981opt_cr=
6982case $build_os in
6983mingw*)
6984  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6985  ;;
6986esac
6987
6988# If we're using GNU nm, then use its standard symbol codes.
6989case `$NM -V 2>&1` in
6990*GNU* | *'with BFD'*)
6991  symcode='[ABCDGIRSTW]' ;;
6992esac
6993
6994# Try without a prefix undercore, then with it.
6995for ac_symprfx in "" "_"; do
6996
6997  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6998  symxfrm="\\1 $ac_symprfx\\2 \\2"
6999
7000  # Write the raw and C identifiers.
7001  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7002
7003  # Check to see that the pipe works correctly.
7004  pipe_works=no
7005
7006  rm -f conftest*
7007  cat > conftest.$ac_ext <<EOF
7008#ifdef __cplusplus
7009extern "C" {
7010#endif
7011char nm_test_var;
7012void nm_test_func(){}
7013#ifdef __cplusplus
7014}
7015#endif
7016int main(){nm_test_var='a';nm_test_func();return(0);}
7017EOF
7018
7019  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7020  (eval $ac_compile) 2>&5
7021  ac_status=$?
7022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023  (exit $ac_status); }; then
7024    # Now try to grab the symbols.
7025    nlist=conftest.nm
7026    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7027  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7028  ac_status=$?
7029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030  (exit $ac_status); } && test -s "$nlist"; then
7031      # Try sorting and uniquifying the output.
7032      if sort "$nlist" | uniq > "$nlist"T; then
7033        mv -f "$nlist"T "$nlist"
7034      else
7035        rm -f "$nlist"T
7036      fi
7037
7038      # Make sure that we snagged all the symbols we need.
7039      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7040        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7041          cat <<EOF > conftest.$ac_ext
7042#ifdef __cplusplus
7043extern "C" {
7044#endif
7045
7046EOF
7047          # Now generate the symbol file.
7048          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7049
7050          cat <<EOF >> conftest.$ac_ext
7051#if defined (__STDC__) && __STDC__
7052# define lt_ptr_t void *
7053#else
7054# define lt_ptr_t char *
7055# define const
7056#endif
7057
7058/* The mapping between symbol names and symbols. */
7059const struct {
7060  const char *name;
7061  lt_ptr_t address;
7062}
7063lt_preloaded_symbols[] =
7064{
7065EOF
7066          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7067          cat <<\EOF >> conftest.$ac_ext
7068  {0, (lt_ptr_t) 0}
7069};
7070
7071#ifdef __cplusplus
7072}
7073#endif
7074EOF
7075          # Now try linking the two files.
7076          mv conftest.$ac_objext conftstm.$ac_objext
7077          lt_save_LIBS="$LIBS"
7078          lt_save_CFLAGS="$CFLAGS"
7079          LIBS="conftstm.$ac_objext"
7080          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7081          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7082  (eval $ac_link) 2>&5
7083  ac_status=$?
7084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7086            pipe_works=yes
7087          fi
7088          LIBS="$lt_save_LIBS"
7089          CFLAGS="$lt_save_CFLAGS"
7090        else
7091          echo "cannot find nm_test_func in $nlist" >&5
7092        fi
7093      else
7094        echo "cannot find nm_test_var in $nlist" >&5
7095      fi
7096    else
7097      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7098    fi
7099  else
7100    echo "$progname: failed program was:" >&5
7101    cat conftest.$ac_ext >&5
7102  fi
7103  rm -f conftest* conftst*
7104
7105  # Do not use the global_symbol_pipe unless it works.
7106  if test "$pipe_works" = yes; then
7107    break
7108  else
7109    lt_cv_sys_global_symbol_pipe=
7110  fi
7111done
7112
7113fi
7114
7115if test -z "$lt_cv_sys_global_symbol_pipe"; then
7116  lt_cv_sys_global_symbol_to_cdecl=
7117fi
7118if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7119  echo "$as_me:$LINENO: result: failed" >&5
7120echo "${ECHO_T}failed" >&6
7121else
7122  echo "$as_me:$LINENO: result: ok" >&5
7123echo "${ECHO_T}ok" >&6
7124fi
7125
7126echo "$as_me:$LINENO: checking for objdir" >&5
7127echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7128if test "${lt_cv_objdir+set}" = set; then
7129  echo $ECHO_N "(cached) $ECHO_C" >&6
7130else
7131  rm -f .libs 2>/dev/null
7132mkdir .libs 2>/dev/null
7133if test -d .libs; then
7134  lt_cv_objdir=.libs
7135else
7136  # MS-DOS does not allow filenames that begin with a dot.
7137  lt_cv_objdir=_libs
7138fi
7139rmdir .libs 2>/dev/null
7140fi
7141echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7142echo "${ECHO_T}$lt_cv_objdir" >&6
7143objdir=$lt_cv_objdir
7144
7145
7146
7147
7148
7149case $host_os in
7150aix3*)
7151  # AIX sometimes has problems with the GCC collect2 program.  For some
7152  # reason, if we set the COLLECT_NAMES environment variable, the problems
7153  # vanish in a puff of smoke.
7154  if test "X${COLLECT_NAMES+set}" != Xset; then
7155    COLLECT_NAMES=
7156    export COLLECT_NAMES
7157  fi
7158  ;;
7159esac
7160
7161# Sed substitution that helps us do robust quoting.  It backslashifies
7162# metacharacters that are still active within double-quoted strings.
7163Xsed='sed -e 1s/^X//'
7164sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7165
7166# Same as above, but do not quote variable references.
7167double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7168
7169# Sed substitution to delay expansion of an escaped shell variable in a
7170# double_quote_subst'ed string.
7171delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7172
7173# Sed substitution to avoid accidental globbing in evaled expressions
7174no_glob_subst='s/\*/\\\*/g'
7175
7176# Constants:
7177rm="rm -f"
7178
7179# Global variables:
7180default_ofile=libtool
7181can_build_shared=yes
7182
7183# All known linkers require a `.a' archive for static linking (except MSVC,
7184# which needs '.lib').
7185libext=a
7186ltmain="$ac_aux_dir/ltmain.sh"
7187ofile="$default_ofile"
7188with_gnu_ld="$lt_cv_prog_gnu_ld"
7189
7190if test -n "$ac_tool_prefix"; then
7191  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7192set dummy ${ac_tool_prefix}ar; ac_word=$2
7193echo "$as_me:$LINENO: checking for $ac_word" >&5
7194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7195if test "${ac_cv_prog_AR+set}" = set; then
7196  echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198  if test -n "$AR"; then
7199  ac_cv_prog_AR="$AR" # Let the user override the test.
7200else
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204  IFS=$as_save_IFS
7205  test -z "$as_dir" && as_dir=.
7206  for ac_exec_ext in '' $ac_executable_extensions; do
7207  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208    ac_cv_prog_AR="${ac_tool_prefix}ar"
7209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210    break 2
7211  fi
7212done
7213done
7214
7215fi
7216fi
7217AR=$ac_cv_prog_AR
7218if test -n "$AR"; then
7219  echo "$as_me:$LINENO: result: $AR" >&5
7220echo "${ECHO_T}$AR" >&6
7221else
7222  echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6
7224fi
7225
7226fi
7227if test -z "$ac_cv_prog_AR"; then
7228  ac_ct_AR=$AR
7229  # Extract the first word of "ar", so it can be a program name with args.
7230set dummy ar; ac_word=$2
7231echo "$as_me:$LINENO: checking for $ac_word" >&5
7232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7234  echo $ECHO_N "(cached) $ECHO_C" >&6
7235else
7236  if test -n "$ac_ct_AR"; then
7237  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242  IFS=$as_save_IFS
7243  test -z "$as_dir" && as_dir=.
7244  for ac_exec_ext in '' $ac_executable_extensions; do
7245  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246    ac_cv_prog_ac_ct_AR="ar"
7247    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248    break 2
7249  fi
7250done
7251done
7252
7253  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7254fi
7255fi
7256ac_ct_AR=$ac_cv_prog_ac_ct_AR
7257if test -n "$ac_ct_AR"; then
7258  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7259echo "${ECHO_T}$ac_ct_AR" >&6
7260else
7261  echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
7263fi
7264
7265  AR=$ac_ct_AR
7266else
7267  AR="$ac_cv_prog_AR"
7268fi
7269
7270if test -n "$ac_tool_prefix"; then
7271  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7272set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7273echo "$as_me:$LINENO: checking for $ac_word" >&5
7274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7275if test "${ac_cv_prog_RANLIB+set}" = set; then
7276  echo $ECHO_N "(cached) $ECHO_C" >&6
7277else
7278  if test -n "$RANLIB"; then
7279  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7280else
7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284  IFS=$as_save_IFS
7285  test -z "$as_dir" && as_dir=.
7286  for ac_exec_ext in '' $ac_executable_extensions; do
7287  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7289    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290    break 2
7291  fi
7292done
7293done
7294
7295fi
7296fi
7297RANLIB=$ac_cv_prog_RANLIB
7298if test -n "$RANLIB"; then
7299  echo "$as_me:$LINENO: result: $RANLIB" >&5
7300echo "${ECHO_T}$RANLIB" >&6
7301else
7302  echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
7304fi
7305
7306fi
7307if test -z "$ac_cv_prog_RANLIB"; then
7308  ac_ct_RANLIB=$RANLIB
7309  # Extract the first word of "ranlib", so it can be a program name with args.
7310set dummy ranlib; ac_word=$2
7311echo "$as_me:$LINENO: checking for $ac_word" >&5
7312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7313if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7314  echo $ECHO_N "(cached) $ECHO_C" >&6
7315else
7316  if test -n "$ac_ct_RANLIB"; then
7317  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322  IFS=$as_save_IFS
7323  test -z "$as_dir" && as_dir=.
7324  for ac_exec_ext in '' $ac_executable_extensions; do
7325  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326    ac_cv_prog_ac_ct_RANLIB="ranlib"
7327    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328    break 2
7329  fi
7330done
7331done
7332
7333  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7334fi
7335fi
7336ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7337if test -n "$ac_ct_RANLIB"; then
7338  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7339echo "${ECHO_T}$ac_ct_RANLIB" >&6
7340else
7341  echo "$as_me:$LINENO: result: no" >&5
7342echo "${ECHO_T}no" >&6
7343fi
7344
7345  RANLIB=$ac_ct_RANLIB
7346else
7347  RANLIB="$ac_cv_prog_RANLIB"
7348fi
7349
7350if test -n "$ac_tool_prefix"; then
7351  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7352set dummy ${ac_tool_prefix}strip; ac_word=$2
7353echo "$as_me:$LINENO: checking for $ac_word" >&5
7354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7355if test "${ac_cv_prog_STRIP+set}" = set; then
7356  echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358  if test -n "$STRIP"; then
7359  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364  IFS=$as_save_IFS
7365  test -z "$as_dir" && as_dir=.
7366  for ac_exec_ext in '' $ac_executable_extensions; do
7367  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7369    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370    break 2
7371  fi
7372done
7373done
7374
7375fi
7376fi
7377STRIP=$ac_cv_prog_STRIP
7378if test -n "$STRIP"; then
7379  echo "$as_me:$LINENO: result: $STRIP" >&5
7380echo "${ECHO_T}$STRIP" >&6
7381else
7382  echo "$as_me:$LINENO: result: no" >&5
7383echo "${ECHO_T}no" >&6
7384fi
7385
7386fi
7387if test -z "$ac_cv_prog_STRIP"; then
7388  ac_ct_STRIP=$STRIP
7389  # Extract the first word of "strip", so it can be a program name with args.
7390set dummy strip; ac_word=$2
7391echo "$as_me:$LINENO: checking for $ac_word" >&5
7392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7393if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7394  echo $ECHO_N "(cached) $ECHO_C" >&6
7395else
7396  if test -n "$ac_ct_STRIP"; then
7397  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7398else
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402  IFS=$as_save_IFS
7403  test -z "$as_dir" && as_dir=.
7404  for ac_exec_ext in '' $ac_executable_extensions; do
7405  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406    ac_cv_prog_ac_ct_STRIP="strip"
7407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408    break 2
7409  fi
7410done
7411done
7412
7413  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7414fi
7415fi
7416ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7417if test -n "$ac_ct_STRIP"; then
7418  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7419echo "${ECHO_T}$ac_ct_STRIP" >&6
7420else
7421  echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6
7423fi
7424
7425  STRIP=$ac_ct_STRIP
7426else
7427  STRIP="$ac_cv_prog_STRIP"
7428fi
7429
7430
7431old_CC="$CC"
7432old_CFLAGS="$CFLAGS"
7433
7434# Set sane defaults for various variables
7435test -z "$AR" && AR=ar
7436test -z "$AR_FLAGS" && AR_FLAGS=cru
7437test -z "$AS" && AS=as
7438test -z "$CC" && CC=cc
7439test -z "$LTCC" && LTCC=$CC
7440test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7441test -z "$DLLTOOL" && DLLTOOL=dlltool
7442test -z "$LD" && LD=ld
7443test -z "$LN_S" && LN_S="ln -s"
7444test -z "$MAGIC_CMD" && MAGIC_CMD=file
7445test -z "$NM" && NM=nm
7446test -z "$SED" && SED=sed
7447test -z "$OBJDUMP" && OBJDUMP=objdump
7448test -z "$RANLIB" && RANLIB=:
7449test -z "$STRIP" && STRIP=:
7450test -z "$ac_objext" && ac_objext=o
7451
7452# Determine commands to create old-style static archives.
7453old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7454old_postinstall_cmds='chmod 644 $oldlib'
7455old_postuninstall_cmds=
7456
7457if test -n "$RANLIB"; then
7458  case $host_os in
7459  openbsd*)
7460    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7461    ;;
7462  *)
7463    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7464    ;;
7465  esac
7466  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7467fi
7468
7469for cc_temp in $compiler""; do
7470  case $cc_temp in
7471    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7472    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7473    \-*) ;;
7474    *) break;;
7475  esac
7476done
7477cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7478
7479
7480# Only perform the check for file, if the check method requires it
7481case $deplibs_check_method in
7482file_magic*)
7483  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7484    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7485echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7486if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7487  echo $ECHO_N "(cached) $ECHO_C" >&6
7488else
7489  case $MAGIC_CMD in
7490[\\/*] |  ?:[\\/]*)
7491  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7492  ;;
7493*)
7494  lt_save_MAGIC_CMD="$MAGIC_CMD"
7495  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7496  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7497  for ac_dir in $ac_dummy; do
7498    IFS="$lt_save_ifs"
7499    test -z "$ac_dir" && ac_dir=.
7500    if test -f $ac_dir/${ac_tool_prefix}file; then
7501      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7502      if test -n "$file_magic_test_file"; then
7503        case $deplibs_check_method in
7504        "file_magic "*)
7505          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7506          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7507          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7508            $EGREP "$file_magic_regex" > /dev/null; then
7509            :
7510          else
7511            cat <<EOF 1>&2
7512
7513*** Warning: the command libtool uses to detect shared libraries,
7514*** $file_magic_cmd, produces output that libtool cannot recognize.
7515*** The result is that libtool may fail to recognize shared libraries
7516*** as such.  This will affect the creation of libtool libraries that
7517*** depend on shared libraries, but programs linked with such libtool
7518*** libraries will work regardless of this problem.  Nevertheless, you
7519*** may want to report the problem to your system manager and/or to
7520*** bug-libtool@gnu.org
7521
7522EOF
7523          fi ;;
7524        esac
7525      fi
7526      break
7527    fi
7528  done
7529  IFS="$lt_save_ifs"
7530  MAGIC_CMD="$lt_save_MAGIC_CMD"
7531  ;;
7532esac
7533fi
7534
7535MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7536if test -n "$MAGIC_CMD"; then
7537  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7538echo "${ECHO_T}$MAGIC_CMD" >&6
7539else
7540  echo "$as_me:$LINENO: result: no" >&5
7541echo "${ECHO_T}no" >&6
7542fi
7543
7544if test -z "$lt_cv_path_MAGIC_CMD"; then
7545  if test -n "$ac_tool_prefix"; then
7546    echo "$as_me:$LINENO: checking for file" >&5
7547echo $ECHO_N "checking for file... $ECHO_C" >&6
7548if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7549  echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551  case $MAGIC_CMD in
7552[\\/*] |  ?:[\\/]*)
7553  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7554  ;;
7555*)
7556  lt_save_MAGIC_CMD="$MAGIC_CMD"
7557  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7558  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7559  for ac_dir in $ac_dummy; do
7560    IFS="$lt_save_ifs"
7561    test -z "$ac_dir" && ac_dir=.
7562    if test -f $ac_dir/file; then
7563      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7564      if test -n "$file_magic_test_file"; then
7565        case $deplibs_check_method in
7566        "file_magic "*)
7567          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7568          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7569          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7570            $EGREP "$file_magic_regex" > /dev/null; then
7571            :
7572          else
7573            cat <<EOF 1>&2
7574
7575*** Warning: the command libtool uses to detect shared libraries,
7576*** $file_magic_cmd, produces output that libtool cannot recognize.
7577*** The result is that libtool may fail to recognize shared libraries
7578*** as such.  This will affect the creation of libtool libraries that
7579*** depend on shared libraries, but programs linked with such libtool
7580*** libraries will work regardless of this problem.  Nevertheless, you
7581*** may want to report the problem to your system manager and/or to
7582*** bug-libtool@gnu.org
7583
7584EOF
7585          fi ;;
7586        esac
7587      fi
7588      break
7589    fi
7590  done
7591  IFS="$lt_save_ifs"
7592  MAGIC_CMD="$lt_save_MAGIC_CMD"
7593  ;;
7594esac
7595fi
7596
7597MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7598if test -n "$MAGIC_CMD"; then
7599  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7600echo "${ECHO_T}$MAGIC_CMD" >&6
7601else
7602  echo "$as_me:$LINENO: result: no" >&5
7603echo "${ECHO_T}no" >&6
7604fi
7605
7606  else
7607    MAGIC_CMD=:
7608  fi
7609fi
7610
7611  fi
7612  ;;
7613esac
7614
7615enable_dlopen=no
7616enable_win32_dll=no
7617
7618# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7619if test "${enable_libtool_lock+set}" = set; then
7620  enableval="$enable_libtool_lock"
7621
7622fi;
7623test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7624
7625
7626# Check whether --with-pic or --without-pic was given.
7627if test "${with_pic+set}" = set; then
7628  withval="$with_pic"
7629  pic_mode="$withval"
7630else
7631  pic_mode=default
7632fi;
7633test -z "$pic_mode" && pic_mode=default
7634
7635# Use C for the default configuration in the libtool script
7636tagname=
7637lt_save_CC="$CC"
7638ac_ext=c
7639ac_cpp='$CPP $CPPFLAGS'
7640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7642ac_compiler_gnu=$ac_cv_c_compiler_gnu
7643
7644
7645# Source file extension for C test sources.
7646ac_ext=c
7647
7648# Object file extension for compiled C test sources.
7649objext=o
7650objext=$objext
7651
7652# Code to be used in simple compile tests
7653lt_simple_compile_test_code="int some_variable = 0;\n"
7654
7655# Code to be used in simple link tests
7656lt_simple_link_test_code='int main(){return(0);}\n'
7657
7658
7659# If no C compiler was specified, use CC.
7660LTCC=${LTCC-"$CC"}
7661
7662# If no C compiler flags were specified, use CFLAGS.
7663LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7664
7665# Allow CC to be a program name with arguments.
7666compiler=$CC
7667
7668
7669# save warnings/boilerplate of simple test code
7670ac_outfile=conftest.$ac_objext
7671printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7672eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7673_lt_compiler_boilerplate=`cat conftest.err`
7674$rm conftest*
7675
7676ac_outfile=conftest.$ac_objext
7677printf "$lt_simple_link_test_code" >conftest.$ac_ext
7678eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7679_lt_linker_boilerplate=`cat conftest.err`
7680$rm conftest*
7681
7682
7683## CAVEAT EMPTOR:
7684## There is no encapsulation within the following macros, do not change
7685## the running order or otherwise move them around unless you know exactly
7686## what you are doing...
7687
7688lt_prog_compiler_no_builtin_flag=
7689
7690if test "$GCC" = yes; then
7691  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7692
7693
7694echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7695echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7696if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7697  echo $ECHO_N "(cached) $ECHO_C" >&6
7698else
7699  lt_cv_prog_compiler_rtti_exceptions=no
7700  ac_outfile=conftest.$ac_objext
7701   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7702   lt_compiler_flag="-fno-rtti -fno-exceptions"
7703   # Insert the option either (1) after the last *FLAGS variable, or
7704   # (2) before a word containing "conftest.", or (3) at the end.
7705   # Note that $ac_compile itself does not contain backslashes and begins
7706   # with a dollar sign (not a hyphen), so the echo should work correctly.
7707   # The option is referenced via a variable to avoid confusing sed.
7708   lt_compile=`echo "$ac_compile" | $SED \
7709   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7710   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7711   -e 's:$: $lt_compiler_flag:'`
7712   (eval echo "\"\$as_me:7712: $lt_compile\"" >&5)
7713   (eval "$lt_compile" 2>conftest.err)
7714   ac_status=$?
7715   cat conftest.err >&5
7716   echo "$as_me:7716: \$? = $ac_status" >&5
7717   if (exit $ac_status) && test -s "$ac_outfile"; then
7718     # The compiler can only warn and ignore the option if not recognized
7719     # So say no if there are warnings other than the usual output.
7720     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7721     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7722     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7723       lt_cv_prog_compiler_rtti_exceptions=yes
7724     fi
7725   fi
7726   $rm conftest*
7727
7728fi
7729echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7730echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7731
7732if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7733    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7734else
7735    :
7736fi
7737
7738fi
7739
7740lt_prog_compiler_wl=
7741lt_prog_compiler_pic=
7742lt_prog_compiler_static=
7743
7744echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7745echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7746
7747  if test "$GCC" = yes; then
7748    lt_prog_compiler_wl='-Wl,'
7749    lt_prog_compiler_static='-static'
7750
7751    case $host_os in
7752      aix*)
7753      # All AIX code is PIC.
7754      if test "$host_cpu" = ia64; then
7755        # AIX 5 now supports IA64 processor
7756        lt_prog_compiler_static='-Bstatic'
7757      fi
7758      ;;
7759
7760    amigaos*)
7761      # FIXME: we need at least 68020 code to build shared libraries, but
7762      # adding the `-m68020' flag to GCC prevents building anything better,
7763      # like `-m68040'.
7764      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7765      ;;
7766
7767    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7768      # PIC is the default for these OSes.
7769      ;;
7770
7771    mingw* | pw32* | os2*)
7772      # This hack is so that the source file can tell whether it is being
7773      # built for inclusion in a dll (and should export symbols for example).
7774      lt_prog_compiler_pic='-DDLL_EXPORT'
7775      ;;
7776
7777    darwin* | rhapsody*)
7778      # PIC is the default on this platform
7779      # Common symbols not allowed in MH_DYLIB files
7780      lt_prog_compiler_pic='-fno-common'
7781      ;;
7782
7783    interix3*)
7784      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7785      # Instead, we relocate shared libraries at runtime.
7786      ;;
7787
7788    msdosdjgpp*)
7789      # Just because we use GCC doesn't mean we suddenly get shared libraries
7790      # on systems that don't support them.
7791      lt_prog_compiler_can_build_shared=no
7792      enable_shared=no
7793      ;;
7794
7795    sysv4*MP*)
7796      if test -d /usr/nec; then
7797        lt_prog_compiler_pic=-Kconform_pic
7798      fi
7799      ;;
7800
7801    hpux*)
7802      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7803      # not for PA HP-UX.
7804      case $host_cpu in
7805      hppa*64*|ia64*)
7806        # +Z the default
7807        ;;
7808      *)
7809        lt_prog_compiler_pic='-fPIC'
7810        ;;
7811      esac
7812      ;;
7813
7814    *)
7815      lt_prog_compiler_pic='-fPIC'
7816      ;;
7817    esac
7818  else
7819    # PORTME Check for flag to pass linker flags through the system compiler.
7820    case $host_os in
7821    aix*)
7822      lt_prog_compiler_wl='-Wl,'
7823      if test "$host_cpu" = ia64; then
7824        # AIX 5 now supports IA64 processor
7825        lt_prog_compiler_static='-Bstatic'
7826      else
7827        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7828      fi
7829      ;;
7830      darwin*)
7831        # PIC is the default on this platform
7832        # Common symbols not allowed in MH_DYLIB files
7833       case $cc_basename in
7834         xlc*)
7835         lt_prog_compiler_pic='-qnocommon'
7836         lt_prog_compiler_wl='-Wl,'
7837         ;;
7838       esac
7839       ;;
7840
7841    mingw* | pw32* | os2*)
7842      # This hack is so that the source file can tell whether it is being
7843      # built for inclusion in a dll (and should export symbols for example).
7844      lt_prog_compiler_pic='-DDLL_EXPORT'
7845      ;;
7846
7847    hpux9* | hpux10* | hpux11*)
7848      lt_prog_compiler_wl='-Wl,'
7849      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7850      # not for PA HP-UX.
7851      case $host_cpu in
7852      hppa*64*|ia64*)
7853        # +Z the default
7854        ;;
7855      *)
7856        lt_prog_compiler_pic='+Z'
7857        ;;
7858      esac
7859      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7860      lt_prog_compiler_static='${wl}-a ${wl}archive'
7861      ;;
7862
7863    irix5* | irix6* | nonstopux*)
7864      lt_prog_compiler_wl='-Wl,'
7865      # PIC (with -KPIC) is the default.
7866      lt_prog_compiler_static='-non_shared'
7867      ;;
7868
7869    newsos6)
7870      lt_prog_compiler_pic='-KPIC'
7871      lt_prog_compiler_static='-Bstatic'
7872      ;;
7873
7874    linux*)
7875      case $cc_basename in
7876      icc* | ecc*)
7877        lt_prog_compiler_wl='-Wl,'
7878        lt_prog_compiler_pic='-KPIC'
7879        lt_prog_compiler_static='-static'
7880        ;;
7881      pgcc* | pgf77* | pgf90* | pgf95*)
7882        # Portland Group compilers (*not* the Pentium gcc compiler,
7883        # which looks to be a dead project)
7884        lt_prog_compiler_wl='-Wl,'
7885        lt_prog_compiler_pic='-fpic'
7886        lt_prog_compiler_static='-Bstatic'
7887        ;;
7888      ccc*)
7889        lt_prog_compiler_wl='-Wl,'
7890        # All Alpha code is PIC.
7891        lt_prog_compiler_static='-non_shared'
7892        ;;
7893      esac
7894      ;;
7895
7896    osf3* | osf4* | osf5*)
7897      lt_prog_compiler_wl='-Wl,'
7898      # All OSF/1 code is PIC.
7899      lt_prog_compiler_static='-non_shared'
7900      ;;
7901
7902    solaris*)
7903      lt_prog_compiler_pic='-KPIC'
7904      lt_prog_compiler_static='-Bstatic'
7905      case $cc_basename in
7906      f77* | f90* | f95*)
7907        lt_prog_compiler_wl='-Qoption ld ';;
7908      *)
7909        lt_prog_compiler_wl='-Wl,';;
7910      esac
7911      ;;
7912
7913    sunos4*)
7914      lt_prog_compiler_wl='-Qoption ld '
7915      lt_prog_compiler_pic='-PIC'
7916      lt_prog_compiler_static='-Bstatic'
7917      ;;
7918
7919    sysv4 | sysv4.2uw2* | sysv4.3*)
7920      lt_prog_compiler_wl='-Wl,'
7921      lt_prog_compiler_pic='-KPIC'
7922      lt_prog_compiler_static='-Bstatic'
7923      ;;
7924
7925    sysv4*MP*)
7926      if test -d /usr/nec ;then
7927        lt_prog_compiler_pic='-Kconform_pic'
7928        lt_prog_compiler_static='-Bstatic'
7929      fi
7930      ;;
7931
7932    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7933      lt_prog_compiler_wl='-Wl,'
7934      lt_prog_compiler_pic='-KPIC'
7935      lt_prog_compiler_static='-Bstatic'
7936      ;;
7937
7938    unicos*)
7939      lt_prog_compiler_wl='-Wl,'
7940      lt_prog_compiler_can_build_shared=no
7941      ;;
7942
7943    uts4*)
7944      lt_prog_compiler_pic='-pic'
7945      lt_prog_compiler_static='-Bstatic'
7946      ;;
7947
7948    *)
7949      lt_prog_compiler_can_build_shared=no
7950      ;;
7951    esac
7952  fi
7953
7954echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7955echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7956
7957#
7958# Check to make sure the PIC flag actually works.
7959#
7960if test -n "$lt_prog_compiler_pic"; then
7961
7962echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7963echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7964if test "${lt_prog_compiler_pic_works+set}" = set; then
7965  echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
7967  lt_prog_compiler_pic_works=no
7968  ac_outfile=conftest.$ac_objext
7969   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7970   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7971   # Insert the option either (1) after the last *FLAGS variable, or
7972   # (2) before a word containing "conftest.", or (3) at the end.
7973   # Note that $ac_compile itself does not contain backslashes and begins
7974   # with a dollar sign (not a hyphen), so the echo should work correctly.
7975   # The option is referenced via a variable to avoid confusing sed.
7976   lt_compile=`echo "$ac_compile" | $SED \
7977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7979   -e 's:$: $lt_compiler_flag:'`
7980   (eval echo "\"\$as_me:7980: $lt_compile\"" >&5)
7981   (eval "$lt_compile" 2>conftest.err)
7982   ac_status=$?
7983   cat conftest.err >&5
7984   echo "$as_me:7984: \$? = $ac_status" >&5
7985   if (exit $ac_status) && test -s "$ac_outfile"; then
7986     # The compiler can only warn and ignore the option if not recognized
7987     # So say no if there are warnings other than the usual output.
7988     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7989     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7990     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7991       lt_prog_compiler_pic_works=yes
7992     fi
7993   fi
7994   $rm conftest*
7995
7996fi
7997echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7998echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7999
8000if test x"$lt_prog_compiler_pic_works" = xyes; then
8001    case $lt_prog_compiler_pic in
8002     "" | " "*) ;;
8003     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8004     esac
8005else
8006    lt_prog_compiler_pic=
8007     lt_prog_compiler_can_build_shared=no
8008fi
8009
8010fi
8011case $host_os in
8012  # For platforms which do not support PIC, -DPIC is meaningless:
8013  *djgpp*)
8014    lt_prog_compiler_pic=
8015    ;;
8016  *)
8017    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8018    ;;
8019esac
8020
8021#
8022# Check to make sure the static flag actually works.
8023#
8024wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8025echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8026echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8027if test "${lt_prog_compiler_static_works+set}" = set; then
8028  echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030  lt_prog_compiler_static_works=no
8031   save_LDFLAGS="$LDFLAGS"
8032   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8033   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8034   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8035     # The linker can only warn and ignore the option if not recognized
8036     # So say no if there are warnings
8037     if test -s conftest.err; then
8038       # Append any errors to the config.log.
8039       cat conftest.err 1>&5
8040       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8041       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8042       if diff conftest.exp conftest.er2 >/dev/null; then
8043         lt_prog_compiler_static_works=yes
8044       fi
8045     else
8046       lt_prog_compiler_static_works=yes
8047     fi
8048   fi
8049   $rm conftest*
8050   LDFLAGS="$save_LDFLAGS"
8051
8052fi
8053echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8054echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8055
8056if test x"$lt_prog_compiler_static_works" = xyes; then
8057    :
8058else
8059    lt_prog_compiler_static=
8060fi
8061
8062
8063echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8064echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8065if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8066  echo $ECHO_N "(cached) $ECHO_C" >&6
8067else
8068  lt_cv_prog_compiler_c_o=no
8069   $rm -r conftest 2>/dev/null
8070   mkdir conftest
8071   cd conftest
8072   mkdir out
8073   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8074
8075   lt_compiler_flag="-o out/conftest2.$ac_objext"
8076   # Insert the option either (1) after the last *FLAGS variable, or
8077   # (2) before a word containing "conftest.", or (3) at the end.
8078   # Note that $ac_compile itself does not contain backslashes and begins
8079   # with a dollar sign (not a hyphen), so the echo should work correctly.
8080   lt_compile=`echo "$ac_compile" | $SED \
8081   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8082   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8083   -e 's:$: $lt_compiler_flag:'`
8084   (eval echo "\"\$as_me:8084: $lt_compile\"" >&5)
8085   (eval "$lt_compile" 2>out/conftest.err)
8086   ac_status=$?
8087   cat out/conftest.err >&5
8088   echo "$as_me:8088: \$? = $ac_status" >&5
8089   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8090   then
8091     # The compiler can only warn and ignore the option if not recognized
8092     # So say no if there are warnings
8093     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8094     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8095     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8096       lt_cv_prog_compiler_c_o=yes
8097     fi
8098   fi
8099   chmod u+w . 2>&5
8100   $rm conftest*
8101   # SGI C++ compiler will create directory out/ii_files/ for
8102   # template instantiation
8103   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8104   $rm out/* && rmdir out
8105   cd ..
8106   rmdir conftest
8107   $rm conftest*
8108
8109fi
8110echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8111echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8112
8113
8114hard_links="nottested"
8115if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8116  # do not overwrite the value of need_locks provided by the user
8117  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8118echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8119  hard_links=yes
8120  $rm conftest*
8121  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8122  touch conftest.a
8123  ln conftest.a conftest.b 2>&5 || hard_links=no
8124  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8125  echo "$as_me:$LINENO: result: $hard_links" >&5
8126echo "${ECHO_T}$hard_links" >&6
8127  if test "$hard_links" = no; then
8128    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8129echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8130    need_locks=warn
8131  fi
8132else
8133  need_locks=no
8134fi
8135
8136echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8137echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8138
8139  runpath_var=
8140  allow_undefined_flag=
8141  enable_shared_with_static_runtimes=no
8142  archive_cmds=
8143  archive_expsym_cmds=
8144  old_archive_From_new_cmds=
8145  old_archive_from_expsyms_cmds=
8146  export_dynamic_flag_spec=
8147  whole_archive_flag_spec=
8148  thread_safe_flag_spec=
8149  hardcode_libdir_flag_spec=
8150  hardcode_libdir_flag_spec_ld=
8151  hardcode_libdir_separator=
8152  hardcode_direct=no
8153  hardcode_minus_L=no
8154  hardcode_shlibpath_var=unsupported
8155  link_all_deplibs=unknown
8156  hardcode_automatic=no
8157  module_cmds=
8158  module_expsym_cmds=
8159  always_export_symbols=no
8160  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8161  # include_expsyms should be a list of space-separated symbols to be *always*
8162  # included in the symbol list
8163  include_expsyms=
8164  # exclude_expsyms can be an extended regexp of symbols to exclude
8165  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8166  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8167  # as well as any symbol that contains `d'.
8168  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8169  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8170  # platforms (ab)use it in PIC code, but their linkers get confused if
8171  # the symbol is explicitly referenced.  Since portable code cannot
8172  # rely on this symbol name, it's probably fine to never include it in
8173  # preloaded symbol tables.
8174  extract_expsyms_cmds=
8175  # Just being paranoid about ensuring that cc_basename is set.
8176  for cc_temp in $compiler""; do
8177  case $cc_temp in
8178    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8179    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8180    \-*) ;;
8181    *) break;;
8182  esac
8183done
8184cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8185
8186  case $host_os in
8187  cygwin* | mingw* | pw32*)
8188    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8189    # When not using gcc, we currently assume that we are using
8190    # Microsoft Visual C++.
8191    if test "$GCC" != yes; then
8192      with_gnu_ld=no
8193    fi
8194    ;;
8195  interix*)
8196    # we just hope/assume this is gcc and not c89 (= MSVC++)
8197    with_gnu_ld=yes
8198    ;;
8199  openbsd*)
8200    with_gnu_ld=no
8201    ;;
8202  esac
8203
8204  ld_shlibs=yes
8205  if test "$with_gnu_ld" = yes; then
8206    # If archive_cmds runs LD, not CC, wlarc should be empty
8207    wlarc='${wl}'
8208
8209    # Set some defaults for GNU ld with shared library support. These
8210    # are reset later if shared libraries are not supported. Putting them
8211    # here allows them to be overridden if necessary.
8212    runpath_var=LD_RUN_PATH
8213    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8214    export_dynamic_flag_spec='${wl}--export-dynamic'
8215    # ancient GNU ld didn't support --whole-archive et. al.
8216    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8217        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8218      else
8219        whole_archive_flag_spec=
8220    fi
8221    supports_anon_versioning=no
8222    case `$LD -v 2>/dev/null` in
8223      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8224      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8225      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8226      *\ 2.11.*) ;; # other 2.11 versions
8227      *) supports_anon_versioning=yes ;;
8228    esac
8229
8230    # See if GNU ld supports shared libraries.
8231    case $host_os in
8232    aix3* | aix4* | aix5*)
8233      # On AIX/PPC, the GNU linker is very broken
8234      if test "$host_cpu" != ia64; then
8235        ld_shlibs=no
8236        cat <<EOF 1>&2
8237
8238*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8239*** to be unable to reliably create shared libraries on AIX.
8240*** Therefore, libtool is disabling shared libraries support.  If you
8241*** really care for shared libraries, you may want to modify your PATH
8242*** so that a non-GNU linker is found, and then restart.
8243
8244EOF
8245      fi
8246      ;;
8247
8248    amigaos*)
8249      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)'
8250      hardcode_libdir_flag_spec='-L$libdir'
8251      hardcode_minus_L=yes
8252
8253      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8254      # that the semantics of dynamic libraries on AmigaOS, at least up
8255      # to version 4, is to share data among multiple programs linked
8256      # with the same dynamic library.  Since this doesn't match the
8257      # behavior of shared libraries on other platforms, we can't use
8258      # them.
8259      ld_shlibs=no
8260      ;;
8261
8262    beos*)
8263      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8264        allow_undefined_flag=unsupported
8265        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8266        # support --undefined.  This deserves some investigation.  FIXME
8267        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8268      else
8269        ld_shlibs=no
8270      fi
8271      ;;
8272
8273    cygwin* | mingw* | pw32*)
8274      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8275      # as there is no search path for DLLs.
8276      hardcode_libdir_flag_spec='-L$libdir'
8277      allow_undefined_flag=unsupported
8278      always_export_symbols=no
8279      enable_shared_with_static_runtimes=yes
8280      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8281
8282      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8283        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8284        # If the export-symbols file already is a .def file (1st line
8285        # is EXPORTS), use it as is; otherwise, prepend...
8286        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8287          cp $export_symbols $output_objdir/$soname.def;
8288        else
8289          echo EXPORTS > $output_objdir/$soname.def;
8290          cat $export_symbols >> $output_objdir/$soname.def;
8291        fi~
8292        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8293      else
8294        ld_shlibs=no
8295      fi
8296      ;;
8297
8298    interix3*)
8299      hardcode_direct=no
8300      hardcode_shlibpath_var=no
8301      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8302      export_dynamic_flag_spec='${wl}-E'
8303      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8304      # Instead, shared libraries are loaded at an image base (0x10000000 by
8305      # default) and relocated if they conflict, which is a slow very memory
8306      # consuming and fragmenting process.  To avoid this, we pick a random,
8307      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8308      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8309      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8310      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'
8311      ;;
8312
8313    linux*)
8314      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8315        tmp_addflag=
8316        case $cc_basename,$host_cpu in
8317        pgcc*)                          # Portland Group C compiler
8318          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'
8319          tmp_addflag=' $pic_flag'
8320          ;;
8321        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8322          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'
8323          tmp_addflag=' $pic_flag -Mnomain' ;;
8324        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8325          tmp_addflag=' -i_dynamic' ;;
8326        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8327          tmp_addflag=' -i_dynamic -nofor_main' ;;
8328        ifc* | ifort*)                  # Intel Fortran compiler
8329          tmp_addflag=' -nofor_main' ;;
8330        esac
8331        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8332
8333        if test $supports_anon_versioning = yes; then
8334          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8335  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8336  $echo "local: *; };" >> $output_objdir/$libname.ver~
8337          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8338        fi
8339      else
8340        ld_shlibs=no
8341      fi
8342      ;;
8343
8344    netbsd*)
8345      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8346        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8347        wlarc=
8348      else
8349        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8350        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8351      fi
8352      ;;
8353
8354    solaris*)
8355      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8356        ld_shlibs=no
8357        cat <<EOF 1>&2
8358
8359*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8360*** create shared libraries on Solaris systems.  Therefore, libtool
8361*** is disabling shared libraries support.  We urge you to upgrade GNU
8362*** binutils to release 2.9.1 or newer.  Another option is to modify
8363*** your PATH or compiler configuration so that the native linker is
8364*** used, and then restart.
8365
8366EOF
8367      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8368        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8369        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8370      else
8371        ld_shlibs=no
8372      fi
8373      ;;
8374
8375    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8376      case `$LD -v 2>&1` in
8377        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8378        ld_shlibs=no
8379        cat <<_LT_EOF 1>&2
8380
8381*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8382*** reliably create shared libraries on SCO systems.  Therefore, libtool
8383*** is disabling shared libraries support.  We urge you to upgrade GNU
8384*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8385*** your PATH or compiler configuration so that the native linker is
8386*** used, and then restart.
8387
8388_LT_EOF
8389        ;;
8390        *)
8391          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8392            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8393            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8394            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8395          else
8396            ld_shlibs=no
8397          fi
8398        ;;
8399      esac
8400      ;;
8401
8402    sunos4*)
8403      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8404      wlarc=
8405      hardcode_direct=yes
8406      hardcode_shlibpath_var=no
8407      ;;
8408
8409    *)
8410      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8411        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8412        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8413      else
8414        ld_shlibs=no
8415      fi
8416      ;;
8417    esac
8418
8419    if test "$ld_shlibs" = no; then
8420      runpath_var=
8421      hardcode_libdir_flag_spec=
8422      export_dynamic_flag_spec=
8423      whole_archive_flag_spec=
8424    fi
8425  else
8426    # PORTME fill in a description of your system's linker (not GNU ld)
8427    case $host_os in
8428    aix3*)
8429      allow_undefined_flag=unsupported
8430      always_export_symbols=yes
8431      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'
8432      # Note: this linker hardcodes the directories in LIBPATH if there
8433      # are no directories specified by -L.
8434      hardcode_minus_L=yes
8435      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8436        # Neither direct hardcoding nor static linking is supported with a
8437        # broken collect2.
8438        hardcode_direct=unsupported
8439      fi
8440      ;;
8441
8442    aix4* | aix5*)
8443      if test "$host_cpu" = ia64; then
8444        # On IA64, the linker does run time linking by default, so we don't
8445        # have to do anything special.
8446        aix_use_runtimelinking=no
8447        exp_sym_flag='-Bexport'
8448        no_entry_flag=""
8449      else
8450        # If we're using GNU nm, then we don't want the "-C" option.
8451        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8452        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8453          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'
8454        else
8455          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'
8456        fi
8457        aix_use_runtimelinking=no
8458
8459        # Test if we are trying to use run time linking or normal
8460        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8461        # need to do runtime linking.
8462        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8463          for ld_flag in $LDFLAGS; do
8464          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8465            aix_use_runtimelinking=yes
8466            break
8467          fi
8468          done
8469          ;;
8470        esac
8471
8472        exp_sym_flag='-bexport'
8473        no_entry_flag='-bnoentry'
8474      fi
8475
8476      # When large executables or shared objects are built, AIX ld can
8477      # have problems creating the table of contents.  If linking a library
8478      # or program results in "error TOC overflow" add -mminimal-toc to
8479      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8480      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8481
8482      archive_cmds=''
8483      hardcode_direct=yes
8484      hardcode_libdir_separator=':'
8485      link_all_deplibs=yes
8486
8487      if test "$GCC" = yes; then
8488        case $host_os in aix4.[012]|aix4.[012].*)
8489        # We only want to do this on AIX 4.2 and lower, the check
8490        # below for broken collect2 doesn't work under 4.3+
8491          collect2name=`${CC} -print-prog-name=collect2`
8492          if test -f "$collect2name" && \
8493           strings "$collect2name" | grep resolve_lib_name >/dev/null
8494          then
8495          # We have reworked collect2
8496          hardcode_direct=yes
8497          else
8498          # We have old collect2
8499          hardcode_direct=unsupported
8500          # It fails to find uninstalled libraries when the uninstalled
8501          # path is not listed in the libpath.  Setting hardcode_minus_L
8502          # to unsupported forces relinking
8503          hardcode_minus_L=yes
8504          hardcode_libdir_flag_spec='-L$libdir'
8505          hardcode_libdir_separator=
8506          fi
8507          ;;
8508        esac
8509        shared_flag='-shared'
8510        if test "$aix_use_runtimelinking" = yes; then
8511          shared_flag="$shared_flag "'${wl}-G'
8512        fi
8513      else
8514        # not using gcc
8515        if test "$host_cpu" = ia64; then
8516        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8517        # chokes on -Wl,-G. The following line is correct:
8518          shared_flag='-G'
8519        else
8520          if test "$aix_use_runtimelinking" = yes; then
8521            shared_flag='${wl}-G'
8522          else
8523            shared_flag='${wl}-bM:SRE'
8524          fi
8525        fi
8526      fi
8527
8528      # It seems that -bexpall does not export symbols beginning with
8529      # underscore (_), so it is better to generate a list of symbols to export.
8530      always_export_symbols=yes
8531      if test "$aix_use_runtimelinking" = yes; then
8532        # Warning - without using the other runtime loading flags (-brtl),
8533        # -berok will link without error, but may produce a broken library.
8534        allow_undefined_flag='-berok'
8535       # Determine the default libpath from the value encoded in an empty executable.
8536       cat >conftest.$ac_ext <<_ACEOF
8537/* confdefs.h.  */
8538_ACEOF
8539cat confdefs.h >>conftest.$ac_ext
8540cat >>conftest.$ac_ext <<_ACEOF
8541/* end confdefs.h.  */
8542
8543int
8544main ()
8545{
8546
8547  ;
8548  return 0;
8549}
8550_ACEOF
8551rm -f conftest.$ac_objext conftest$ac_exeext
8552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8553  (eval $ac_link) 2>conftest.er1
8554  ac_status=$?
8555  grep -v '^ *+' conftest.er1 >conftest.err
8556  rm -f conftest.er1
8557  cat conftest.err >&5
8558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559  (exit $ac_status); } &&
8560         { ac_try='test -z "$ac_c_werror_flag"
8561                         || test ! -s conftest.err'
8562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563  (eval $ac_try) 2>&5
8564  ac_status=$?
8565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566  (exit $ac_status); }; } &&
8567         { ac_try='test -s conftest$ac_exeext'
8568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569  (eval $ac_try) 2>&5
8570  ac_status=$?
8571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572  (exit $ac_status); }; }; then
8573
8574aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8575}'`
8576# Check for a 64-bit object if we didn't find anything.
8577if 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; }
8578}'`; fi
8579else
8580  echo "$as_me: failed program was:" >&5
8581sed 's/^/| /' conftest.$ac_ext >&5
8582
8583fi
8584rm -f conftest.err conftest.$ac_objext \
8585      conftest$ac_exeext conftest.$ac_ext
8586if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8587
8588       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8589        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"
8590       else
8591        if test "$host_cpu" = ia64; then
8592          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8593          allow_undefined_flag="-z nodefs"
8594          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"
8595        else
8596         # Determine the default libpath from the value encoded in an empty executable.
8597         cat >conftest.$ac_ext <<_ACEOF
8598/* confdefs.h.  */
8599_ACEOF
8600cat confdefs.h >>conftest.$ac_ext
8601cat >>conftest.$ac_ext <<_ACEOF
8602/* end confdefs.h.  */
8603
8604int
8605main ()
8606{
8607
8608  ;
8609  return 0;
8610}
8611_ACEOF
8612rm -f conftest.$ac_objext conftest$ac_exeext
8613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614  (eval $ac_link) 2>conftest.er1
8615  ac_status=$?
8616  grep -v '^ *+' conftest.er1 >conftest.err
8617  rm -f conftest.er1
8618  cat conftest.err >&5
8619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620  (exit $ac_status); } &&
8621         { ac_try='test -z "$ac_c_werror_flag"
8622                         || test ! -s conftest.err'
8623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624  (eval $ac_try) 2>&5
8625  ac_status=$?
8626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627  (exit $ac_status); }; } &&
8628         { ac_try='test -s conftest$ac_exeext'
8629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630  (eval $ac_try) 2>&5
8631  ac_status=$?
8632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633  (exit $ac_status); }; }; then
8634
8635aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8636}'`
8637# Check for a 64-bit object if we didn't find anything.
8638if 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; }
8639}'`; fi
8640else
8641  echo "$as_me: failed program was:" >&5
8642sed 's/^/| /' conftest.$ac_ext >&5
8643
8644fi
8645rm -f conftest.err conftest.$ac_objext \
8646      conftest$ac_exeext conftest.$ac_ext
8647if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8648
8649         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8650          # Warning - without using the other run time loading flags,
8651          # -berok will link without error, but may produce a broken library.
8652          no_undefined_flag=' ${wl}-bernotok'
8653          allow_undefined_flag=' ${wl}-berok'
8654          # Exported symbols can be pulled into shared objects from archives
8655          whole_archive_flag_spec='$convenience'
8656          archive_cmds_need_lc=yes
8657          # This is similar to how AIX traditionally builds its shared libraries.
8658          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'
8659        fi
8660      fi
8661      ;;
8662
8663    amigaos*)
8664      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)'
8665      hardcode_libdir_flag_spec='-L$libdir'
8666      hardcode_minus_L=yes
8667      # see comment about different semantics on the GNU ld section
8668      ld_shlibs=no
8669      ;;
8670
8671    bsdi[45]*)
8672      export_dynamic_flag_spec=-rdynamic
8673      ;;
8674
8675    cygwin* | mingw* | pw32*)
8676      # When not using gcc, we currently assume that we are using
8677      # Microsoft Visual C++.
8678      # hardcode_libdir_flag_spec is actually meaningless, as there is
8679      # no search path for DLLs.
8680      hardcode_libdir_flag_spec=' '
8681      allow_undefined_flag=unsupported
8682      # Tell ltmain to make .lib files, not .a files.
8683      libext=lib
8684      # Tell ltmain to make .dll files, not .so files.
8685      shrext_cmds=".dll"
8686      # FIXME: Setting linknames here is a bad hack.
8687      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8688      # The linker will automatically build a .lib file if we build a DLL.
8689      old_archive_From_new_cmds='true'
8690      # FIXME: Should let the user specify the lib program.
8691      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8692      fix_srcfile_path='`cygpath -w "$srcfile"`'
8693      enable_shared_with_static_runtimes=yes
8694      ;;
8695
8696    darwin* | rhapsody*)
8697      case $host_os in
8698        rhapsody* | darwin1.[012])
8699         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8700         ;;
8701       *) # Darwin 1.3 on
8702         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8703           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8704         else
8705           case ${MACOSX_DEPLOYMENT_TARGET} in
8706             10.[012])
8707               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8708               ;;
8709             10.*)
8710               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8711               ;;
8712           esac
8713         fi
8714         ;;
8715      esac
8716      archive_cmds_need_lc=no
8717      hardcode_direct=no
8718      hardcode_automatic=yes
8719      hardcode_shlibpath_var=unsupported
8720      whole_archive_flag_spec=''
8721      link_all_deplibs=yes
8722    if test "$GCC" = yes ; then
8723        output_verbose_link_cmd='echo'
8724        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8725      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8726      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8727      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}'
8728      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}'
8729    else
8730      case $cc_basename in
8731        xlc*)
8732         output_verbose_link_cmd='echo'
8733         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8734         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8735          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8736         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}'
8737          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}'
8738          ;;
8739       *)
8740         ld_shlibs=no
8741          ;;
8742      esac
8743    fi
8744      ;;
8745
8746    dgux*)
8747      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8748      hardcode_libdir_flag_spec='-L$libdir'
8749      hardcode_shlibpath_var=no
8750      ;;
8751
8752    freebsd1*)
8753      ld_shlibs=no
8754      ;;
8755
8756    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8757    # support.  Future versions do this automatically, but an explicit c++rt0.o
8758    # does not break anything, and helps significantly (at the cost of a little
8759    # extra space).
8760    freebsd2.2*)
8761      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8762      hardcode_libdir_flag_spec='-R$libdir'
8763      hardcode_direct=yes
8764      hardcode_shlibpath_var=no
8765      ;;
8766
8767    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8768    freebsd2*)
8769      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8770      hardcode_direct=yes
8771      hardcode_minus_L=yes
8772      hardcode_shlibpath_var=no
8773      ;;
8774
8775    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8776    freebsd* | kfreebsd*-gnu | dragonfly*)
8777      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8778      hardcode_libdir_flag_spec='-R$libdir'
8779      hardcode_direct=yes
8780      hardcode_shlibpath_var=no
8781      ;;
8782
8783    hpux9*)
8784      if test "$GCC" = yes; then
8785        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'
8786      else
8787        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'
8788      fi
8789      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8790      hardcode_libdir_separator=:
8791      hardcode_direct=yes
8792
8793      # hardcode_minus_L: Not really in the search PATH,
8794      # but as the default location of the library.
8795      hardcode_minus_L=yes
8796      export_dynamic_flag_spec='${wl}-E'
8797      ;;
8798
8799    hpux10*)
8800      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8801        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8802      else
8803        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8804      fi
8805      if test "$with_gnu_ld" = no; then
8806        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807        hardcode_libdir_separator=:
8808
8809        hardcode_direct=yes
8810        export_dynamic_flag_spec='${wl}-E'
8811
8812        # hardcode_minus_L: Not really in the search PATH,
8813        # but as the default location of the library.
8814        hardcode_minus_L=yes
8815      fi
8816      ;;
8817
8818    hpux11*)
8819      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8820        case $host_cpu in
8821        hppa*64*)
8822          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8823          ;;
8824        ia64*)
8825          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8826          ;;
8827        *)
8828          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8829          ;;
8830        esac
8831      else
8832        case $host_cpu in
8833        hppa*64*)
8834          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8835          ;;
8836        ia64*)
8837          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8838          ;;
8839        *)
8840          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8841          ;;
8842        esac
8843      fi
8844      if test "$with_gnu_ld" = no; then
8845        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8846        hardcode_libdir_separator=:
8847
8848        case $host_cpu in
8849        hppa*64*|ia64*)
8850          hardcode_libdir_flag_spec_ld='+b $libdir'
8851          hardcode_direct=no
8852          hardcode_shlibpath_var=no
8853          ;;
8854        *)
8855          hardcode_direct=yes
8856          export_dynamic_flag_spec='${wl}-E'
8857
8858          # hardcode_minus_L: Not really in the search PATH,
8859          # but as the default location of the library.
8860          hardcode_minus_L=yes
8861          ;;
8862        esac
8863      fi
8864      ;;
8865
8866    irix5* | irix6* | nonstopux*)
8867      if test "$GCC" = yes; then
8868        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'
8869      else
8870        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'
8871        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8872      fi
8873      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8874      hardcode_libdir_separator=:
8875      link_all_deplibs=yes
8876      ;;
8877
8878    netbsd*)
8879      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8880        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8881      else
8882        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8883      fi
8884      hardcode_libdir_flag_spec='-R$libdir'
8885      hardcode_direct=yes
8886      hardcode_shlibpath_var=no
8887      ;;
8888
8889    newsos6)
8890      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8891      hardcode_direct=yes
8892      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8893      hardcode_libdir_separator=:
8894      hardcode_shlibpath_var=no
8895      ;;
8896
8897    openbsd*)
8898      hardcode_direct=yes
8899      hardcode_shlibpath_var=no
8900      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8901        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8902        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8903        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8904        export_dynamic_flag_spec='${wl}-E'
8905      else
8906       case $host_os in
8907         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8908           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8909           hardcode_libdir_flag_spec='-R$libdir'
8910           ;;
8911         *)
8912           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8913           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8914           ;;
8915       esac
8916      fi
8917      ;;
8918
8919    os2*)
8920      hardcode_libdir_flag_spec='-L$libdir'
8921      hardcode_minus_L=yes
8922      allow_undefined_flag=unsupported
8923      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'
8924      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8925      ;;
8926
8927    osf3*)
8928      if test "$GCC" = yes; then
8929        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8930        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'
8931      else
8932        allow_undefined_flag=' -expect_unresolved \*'
8933        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'
8934      fi
8935      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8936      hardcode_libdir_separator=:
8937      ;;
8938
8939    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8940      if test "$GCC" = yes; then
8941        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8942        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'
8943        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8944      else
8945        allow_undefined_flag=' -expect_unresolved \*'
8946        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'
8947        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8948        $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'
8949
8950        # Both c and cxx compiler support -rpath directly
8951        hardcode_libdir_flag_spec='-rpath $libdir'
8952      fi
8953      hardcode_libdir_separator=:
8954      ;;
8955
8956    solaris*)
8957      no_undefined_flag=' -z text'
8958      if test "$GCC" = yes; then
8959        wlarc='${wl}'
8960        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8961        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8962          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8963      else
8964        wlarc=''
8965        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8966        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8967        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8968      fi
8969      hardcode_libdir_flag_spec='-R$libdir'
8970      hardcode_shlibpath_var=no
8971      case $host_os in
8972      solaris2.[0-5] | solaris2.[0-5].*) ;;
8973      *)
8974        # The compiler driver will combine linker options so we
8975        # cannot just pass the convience library names through
8976        # without $wl, iff we do not link with $LD.
8977        # Luckily, gcc supports the same syntax we need for Sun Studio.
8978        # Supported since Solaris 2.6 (maybe 2.5.1?)
8979        case $wlarc in
8980        '')
8981          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8982        *)
8983          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' ;;
8984        esac ;;
8985      esac
8986      link_all_deplibs=yes
8987      ;;
8988
8989    sunos4*)
8990      if test "x$host_vendor" = xsequent; then
8991        # Use $CC to link under sequent, because it throws in some extra .o
8992        # files that make .init and .fini sections work.
8993        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8994      else
8995        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8996      fi
8997      hardcode_libdir_flag_spec='-L$libdir'
8998      hardcode_direct=yes
8999      hardcode_minus_L=yes
9000      hardcode_shlibpath_var=no
9001      ;;
9002
9003    sysv4)
9004      case $host_vendor in
9005        sni)
9006          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007          hardcode_direct=yes # is this really true???
9008        ;;
9009        siemens)
9010          ## LD is ld it makes a PLAMLIB
9011          ## CC just makes a GrossModule.
9012          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9013          reload_cmds='$CC -r -o $output$reload_objs'
9014          hardcode_direct=no
9015        ;;
9016        motorola)
9017          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9018          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9019        ;;
9020      esac
9021      runpath_var='LD_RUN_PATH'
9022      hardcode_shlibpath_var=no
9023      ;;
9024
9025    sysv4.3*)
9026      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027      hardcode_shlibpath_var=no
9028      export_dynamic_flag_spec='-Bexport'
9029      ;;
9030
9031    sysv4*MP*)
9032      if test -d /usr/nec; then
9033        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9034        hardcode_shlibpath_var=no
9035        runpath_var=LD_RUN_PATH
9036        hardcode_runpath_var=yes
9037        ld_shlibs=yes
9038      fi
9039      ;;
9040
9041    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9042      no_undefined_flag='${wl}-z,text'
9043      archive_cmds_need_lc=no
9044      hardcode_shlibpath_var=no
9045      runpath_var='LD_RUN_PATH'
9046
9047      if test "$GCC" = yes; then
9048        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9049        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9050      else
9051        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9052        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053      fi
9054      ;;
9055
9056    sysv5* | sco3.2v5* | sco5v6*)
9057      # Note: We can NOT use -z defs as we might desire, because we do not
9058      # link with -lc, and that would cause any symbols used from libc to
9059      # always be unresolved, which means just about no library would
9060      # ever link correctly.  If we're not using GNU ld we use -z text
9061      # though, which does catch some bad symbols but isn't as heavy-handed
9062      # as -z defs.
9063      no_undefined_flag='${wl}-z,text'
9064      allow_undefined_flag='${wl}-z,nodefs'
9065      archive_cmds_need_lc=no
9066      hardcode_shlibpath_var=no
9067      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9068      hardcode_libdir_separator=':'
9069      link_all_deplibs=yes
9070      export_dynamic_flag_spec='${wl}-Bexport'
9071      runpath_var='LD_RUN_PATH'
9072
9073      if test "$GCC" = yes; then
9074        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9076      else
9077        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9078        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9079      fi
9080      ;;
9081
9082    uts4*)
9083      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084      hardcode_libdir_flag_spec='-L$libdir'
9085      hardcode_shlibpath_var=no
9086      ;;
9087
9088    *)
9089      ld_shlibs=no
9090      ;;
9091    esac
9092  fi
9093
9094echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9095echo "${ECHO_T}$ld_shlibs" >&6
9096test "$ld_shlibs" = no && can_build_shared=no
9097
9098#
9099# Do we need to explicitly link libc?
9100#
9101case "x$archive_cmds_need_lc" in
9102x|xyes)
9103  # Assume -lc should be added
9104  archive_cmds_need_lc=yes
9105
9106  if test "$enable_shared" = yes && test "$GCC" = yes; then
9107    case $archive_cmds in
9108    *'~'*)
9109      # FIXME: we may have to deal with multi-command sequences.
9110      ;;
9111    '$CC '*)
9112      # Test whether the compiler implicitly links with -lc since on some
9113      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9114      # to ld, don't add -lc before -lgcc.
9115      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9116echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9117      $rm conftest*
9118      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9119
9120      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121  (eval $ac_compile) 2>&5
9122  ac_status=$?
9123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124  (exit $ac_status); } 2>conftest.err; then
9125        soname=conftest
9126        lib=conftest
9127        libobjs=conftest.$ac_objext
9128        deplibs=
9129        wl=$lt_prog_compiler_wl
9130        pic_flag=$lt_prog_compiler_pic
9131        compiler_flags=-v
9132        linker_flags=-v
9133        verstring=
9134        output_objdir=.
9135        libname=conftest
9136        lt_save_allow_undefined_flag=$allow_undefined_flag
9137        allow_undefined_flag=
9138        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9139  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9140  ac_status=$?
9141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142  (exit $ac_status); }
9143        then
9144          archive_cmds_need_lc=no
9145        else
9146          archive_cmds_need_lc=yes
9147        fi
9148        allow_undefined_flag=$lt_save_allow_undefined_flag
9149      else
9150        cat conftest.err 1>&5
9151      fi
9152      $rm conftest*
9153      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9154echo "${ECHO_T}$archive_cmds_need_lc" >&6
9155      ;;
9156    esac
9157  fi
9158  ;;
9159esac
9160
9161echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9162echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9163library_names_spec=
9164libname_spec='lib$name'
9165soname_spec=
9166shrext_cmds=".so"
9167postinstall_cmds=
9168postuninstall_cmds=
9169finish_cmds=
9170finish_eval=
9171shlibpath_var=
9172shlibpath_overrides_runpath=unknown
9173version_type=none
9174dynamic_linker="$host_os ld.so"
9175sys_lib_dlsearch_path_spec="/lib /usr/lib"
9176if test "$GCC" = yes; then
9177  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9178  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9179    # if the path contains ";" then we assume it to be the separator
9180    # otherwise default to the standard path separator (i.e. ":") - it is
9181    # assumed that no part of a normal pathname contains ";" but that should
9182    # okay in the real world where ";" in dirpaths is itself problematic.
9183    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9184  else
9185    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9186  fi
9187else
9188  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9189fi
9190need_lib_prefix=unknown
9191hardcode_into_libs=no
9192
9193# when you set need_version to no, make sure it does not cause -set_version
9194# flags to be left without arguments
9195need_version=unknown
9196
9197case $host_os in
9198aix3*)
9199  version_type=linux
9200  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9201  shlibpath_var=LIBPATH
9202
9203  # AIX 3 has no versioning support, so we append a major version to the name.
9204  soname_spec='${libname}${release}${shared_ext}$major'
9205  ;;
9206
9207aix4* | aix5*)
9208  version_type=linux
9209  need_lib_prefix=no
9210  need_version=no
9211  hardcode_into_libs=yes
9212  if test "$host_cpu" = ia64; then
9213    # AIX 5 supports IA64
9214    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9215    shlibpath_var=LD_LIBRARY_PATH
9216  else
9217    # With GCC up to 2.95.x, collect2 would create an import file
9218    # for dependence libraries.  The import file would start with
9219    # the line `#! .'.  This would cause the generated library to
9220    # depend on `.', always an invalid library.  This was fixed in
9221    # development snapshots of GCC prior to 3.0.
9222    case $host_os in
9223      aix4 | aix4.[01] | aix4.[01].*)
9224      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9225           echo ' yes '
9226           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9227        :
9228      else
9229        can_build_shared=no
9230      fi
9231      ;;
9232    esac
9233    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9234    # soname into executable. Probably we can add versioning support to
9235    # collect2, so additional links can be useful in future.
9236    if test "$aix_use_runtimelinking" = yes; then
9237      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9238      # instead of lib<name>.a to let people know that these are not
9239      # typical AIX shared libraries.
9240      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241    else
9242      # We preserve .a as extension for shared libraries through AIX4.2
9243      # and later when we are not doing run time linking.
9244      library_names_spec='${libname}${release}.a $libname.a'
9245      soname_spec='${libname}${release}${shared_ext}$major'
9246    fi
9247    shlibpath_var=LIBPATH
9248  fi
9249  ;;
9250
9251amigaos*)
9252  library_names_spec='$libname.ixlibrary $libname.a'
9253  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9254  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'
9255  ;;
9256
9257beos*)
9258  library_names_spec='${libname}${shared_ext}'
9259  dynamic_linker="$host_os ld.so"
9260  shlibpath_var=LIBRARY_PATH
9261  ;;
9262
9263bsdi[45]*)
9264  version_type=linux
9265  need_version=no
9266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267  soname_spec='${libname}${release}${shared_ext}$major'
9268  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9269  shlibpath_var=LD_LIBRARY_PATH
9270  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9271  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9272  # the default ld.so.conf also contains /usr/contrib/lib and
9273  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9274  # libtool to hard-code these into programs
9275  ;;
9276
9277cygwin* | mingw* | pw32*)
9278  version_type=windows
9279  shrext_cmds=".dll"
9280  need_version=no
9281  need_lib_prefix=no
9282
9283  case $GCC,$host_os in
9284  yes,cygwin* | yes,mingw* | yes,pw32*)
9285    library_names_spec='$libname.dll.a'
9286    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9287    postinstall_cmds='base_file=`basename \${file}`~
9288      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9289      dldir=$destdir/`dirname \$dlpath`~
9290      test -d \$dldir || mkdir -p \$dldir~
9291      $install_prog $dir/$dlname \$dldir/$dlname~
9292      chmod a+x \$dldir/$dlname'
9293    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9294      dlpath=$dir/\$dldll~
9295       $rm \$dlpath'
9296    shlibpath_overrides_runpath=yes
9297
9298    case $host_os in
9299    cygwin*)
9300      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9301      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9302      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9303      ;;
9304    mingw*)
9305      # MinGW DLLs use traditional 'lib' prefix
9306      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9307      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9308      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9309        # It is most probably a Windows format PATH printed by
9310        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9311        # path with ; separators, and with drive letters. We can handle the
9312        # drive letters (cygwin fileutils understands them), so leave them,
9313        # especially as we might pass files found there to a mingw objdump,
9314        # which wouldn't understand a cygwinified path. Ahh.
9315        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9316      else
9317        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9318      fi
9319      ;;
9320    pw32*)
9321      # pw32 DLLs use 'pw' prefix rather than 'lib'
9322      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9323      ;;
9324    esac
9325    ;;
9326
9327  *)
9328    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9329    ;;
9330  esac
9331  dynamic_linker='Win32 ld.exe'
9332  # FIXME: first we should search . and the directory the executable is in
9333  shlibpath_var=PATH
9334  ;;
9335
9336darwin* | rhapsody*)
9337  dynamic_linker="$host_os dyld"
9338  version_type=darwin
9339  need_lib_prefix=no
9340  need_version=no
9341  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9342  soname_spec='${libname}${release}${major}$shared_ext'
9343  shlibpath_overrides_runpath=yes
9344  shlibpath_var=DYLD_LIBRARY_PATH
9345  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9346  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9347  if test "$GCC" = yes; then
9348    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"`
9349  else
9350    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9351  fi
9352  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9353  ;;
9354
9355dgux*)
9356  version_type=linux
9357  need_lib_prefix=no
9358  need_version=no
9359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9360  soname_spec='${libname}${release}${shared_ext}$major'
9361  shlibpath_var=LD_LIBRARY_PATH
9362  ;;
9363
9364freebsd1*)
9365  dynamic_linker=no
9366  ;;
9367
9368kfreebsd*-gnu)
9369  version_type=linux
9370  need_lib_prefix=no
9371  need_version=no
9372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9373  soname_spec='${libname}${release}${shared_ext}$major'
9374  shlibpath_var=LD_LIBRARY_PATH
9375  shlibpath_overrides_runpath=no
9376  hardcode_into_libs=yes
9377  dynamic_linker='GNU ld.so'
9378  ;;
9379
9380freebsd* | dragonfly*)
9381  # DragonFly does not have aout.  When/if they implement a new
9382  # versioning mechanism, adjust this.
9383  if test -x /usr/bin/objformat; then
9384    objformat=`/usr/bin/objformat`
9385  else
9386    case $host_os in
9387    freebsd[123]*) objformat=aout ;;
9388    *) objformat=elf ;;
9389    esac
9390  fi
9391  version_type=freebsd-$objformat
9392  case $version_type in
9393    freebsd-elf*)
9394      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9395      need_version=no
9396      need_lib_prefix=no
9397      ;;
9398    freebsd-*)
9399      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9400      need_version=yes
9401      ;;
9402  esac
9403  shlibpath_var=LD_LIBRARY_PATH
9404  case $host_os in
9405  freebsd2*)
9406    shlibpath_overrides_runpath=yes
9407    ;;
9408  freebsd3.[01]* | freebsdelf3.[01]*)
9409    shlibpath_overrides_runpath=yes
9410    hardcode_into_libs=yes
9411    ;;
9412  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9413  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9414    shlibpath_overrides_runpath=no
9415    hardcode_into_libs=yes
9416    ;;
9417  freebsd*) # from 4.6 on
9418    shlibpath_overrides_runpath=yes
9419    hardcode_into_libs=yes
9420    ;;
9421  esac
9422  ;;
9423
9424gnu*)
9425  version_type=linux
9426  need_lib_prefix=no
9427  need_version=no
9428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9429  soname_spec='${libname}${release}${shared_ext}$major'
9430  shlibpath_var=LD_LIBRARY_PATH
9431  hardcode_into_libs=yes
9432  ;;
9433
9434hpux9* | hpux10* | hpux11*)
9435  # Give a soname corresponding to the major version so that dld.sl refuses to
9436  # link against other versions.
9437  version_type=sunos
9438  need_lib_prefix=no
9439  need_version=no
9440  case $host_cpu in
9441  ia64*)
9442    shrext_cmds='.so'
9443    hardcode_into_libs=yes
9444    dynamic_linker="$host_os dld.so"
9445    shlibpath_var=LD_LIBRARY_PATH
9446    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9447    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448    soname_spec='${libname}${release}${shared_ext}$major'
9449    if test "X$HPUX_IA64_MODE" = X32; then
9450      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9451    else
9452      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9453    fi
9454    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9455    ;;
9456   hppa*64*)
9457     shrext_cmds='.sl'
9458     hardcode_into_libs=yes
9459     dynamic_linker="$host_os dld.sl"
9460     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9461     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463     soname_spec='${libname}${release}${shared_ext}$major'
9464     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9465     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9466     ;;
9467   *)
9468    shrext_cmds='.sl'
9469    dynamic_linker="$host_os dld.sl"
9470    shlibpath_var=SHLIB_PATH
9471    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9472    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473    soname_spec='${libname}${release}${shared_ext}$major'
9474    ;;
9475  esac
9476  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9477  postinstall_cmds='chmod 555 $lib'
9478  ;;
9479
9480interix3*)
9481  version_type=linux
9482  need_lib_prefix=no
9483  need_version=no
9484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9485  soname_spec='${libname}${release}${shared_ext}$major'
9486  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9487  shlibpath_var=LD_LIBRARY_PATH
9488  shlibpath_overrides_runpath=no
9489  hardcode_into_libs=yes
9490  ;;
9491
9492irix5* | irix6* | nonstopux*)
9493  case $host_os in
9494    nonstopux*) version_type=nonstopux ;;
9495    *)
9496        if test "$lt_cv_prog_gnu_ld" = yes; then
9497                version_type=linux
9498        else
9499                version_type=irix
9500        fi ;;
9501  esac
9502  need_lib_prefix=no
9503  need_version=no
9504  soname_spec='${libname}${release}${shared_ext}$major'
9505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9506  case $host_os in
9507  irix5* | nonstopux*)
9508    libsuff= shlibsuff=
9509    ;;
9510  *)
9511    case $LD in # libtool.m4 will add one of these switches to LD
9512    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9513      libsuff= shlibsuff= libmagic=32-bit;;
9514    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9515      libsuff=32 shlibsuff=N32 libmagic=N32;;
9516    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9517      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9518    *) libsuff= shlibsuff= libmagic=never-match;;
9519    esac
9520    ;;
9521  esac
9522  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9523  shlibpath_overrides_runpath=no
9524  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9525  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9526  hardcode_into_libs=yes
9527  ;;
9528
9529# No shared lib support for Linux oldld, aout, or coff.
9530linux*oldld* | linux*aout* | linux*coff*)
9531  dynamic_linker=no
9532  ;;
9533
9534# This must be Linux ELF.
9535linux*)
9536  version_type=linux
9537  need_lib_prefix=no
9538  need_version=no
9539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540  soname_spec='${libname}${release}${shared_ext}$major'
9541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9542  shlibpath_var=LD_LIBRARY_PATH
9543  shlibpath_overrides_runpath=no
9544  # This implies no fast_install, which is unacceptable.
9545  # Some rework will be needed to allow for fast_install
9546  # before this can be enabled.
9547  hardcode_into_libs=yes
9548
9549  # Append ld.so.conf contents to the search path
9550  if test -f /etc/ld.so.conf; then
9551    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' ' '`
9552    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9553  fi
9554
9555  # We used to test for /lib/ld.so.1 and disable shared libraries on
9556  # powerpc, because MkLinux only supported shared libraries with the
9557  # GNU dynamic linker.  Since this was broken with cross compilers,
9558  # most powerpc-linux boxes support dynamic linking these days and
9559  # people can always --disable-shared, the test was removed, and we
9560  # assume the GNU/Linux dynamic linker is in use.
9561  dynamic_linker='GNU/Linux ld.so'
9562  ;;
9563
9564knetbsd*-gnu)
9565  version_type=linux
9566  need_lib_prefix=no
9567  need_version=no
9568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9569  soname_spec='${libname}${release}${shared_ext}$major'
9570  shlibpath_var=LD_LIBRARY_PATH
9571  shlibpath_overrides_runpath=no
9572  hardcode_into_libs=yes
9573  dynamic_linker='GNU ld.so'
9574  ;;
9575
9576netbsd*)
9577  version_type=sunos
9578  need_lib_prefix=no
9579  need_version=no
9580  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9581    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9582    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9583    dynamic_linker='NetBSD (a.out) ld.so'
9584  else
9585    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9586    soname_spec='${libname}${release}${shared_ext}$major'
9587    dynamic_linker='NetBSD ld.elf_so'
9588  fi
9589  shlibpath_var=LD_LIBRARY_PATH
9590  shlibpath_overrides_runpath=yes
9591  hardcode_into_libs=yes
9592  ;;
9593
9594newsos6)
9595  version_type=linux
9596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597  shlibpath_var=LD_LIBRARY_PATH
9598  shlibpath_overrides_runpath=yes
9599  ;;
9600
9601nto-qnx*)
9602  version_type=linux
9603  need_lib_prefix=no
9604  need_version=no
9605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606  soname_spec='${libname}${release}${shared_ext}$major'
9607  shlibpath_var=LD_LIBRARY_PATH
9608  shlibpath_overrides_runpath=yes
9609  ;;
9610
9611openbsd*)
9612  version_type=sunos
9613  sys_lib_dlsearch_path_spec="/usr/lib"
9614  need_lib_prefix=no
9615  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9616  case $host_os in
9617    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9618    *)                         need_version=no  ;;
9619  esac
9620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9621  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9622  shlibpath_var=LD_LIBRARY_PATH
9623  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9624    case $host_os in
9625      openbsd2.[89] | openbsd2.[89].*)
9626        shlibpath_overrides_runpath=no
9627        ;;
9628      *)
9629        shlibpath_overrides_runpath=yes
9630        ;;
9631      esac
9632  else
9633    shlibpath_overrides_runpath=yes
9634  fi
9635  ;;
9636
9637os2*)
9638  libname_spec='$name'
9639  shrext_cmds=".dll"
9640  need_lib_prefix=no
9641  library_names_spec='$libname${shared_ext} $libname.a'
9642  dynamic_linker='OS/2 ld.exe'
9643  shlibpath_var=LIBPATH
9644  ;;
9645
9646osf3* | osf4* | osf5*)
9647  version_type=osf
9648  need_lib_prefix=no
9649  need_version=no
9650  soname_spec='${libname}${release}${shared_ext}$major'
9651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652  shlibpath_var=LD_LIBRARY_PATH
9653  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9654  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9655  ;;
9656
9657solaris*)
9658  version_type=linux
9659  need_lib_prefix=no
9660  need_version=no
9661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662  soname_spec='${libname}${release}${shared_ext}$major'
9663  shlibpath_var=LD_LIBRARY_PATH
9664  shlibpath_overrides_runpath=yes
9665  hardcode_into_libs=yes
9666  # ldd complains unless libraries are executable
9667  postinstall_cmds='chmod +x $lib'
9668  ;;
9669
9670sunos4*)
9671  version_type=sunos
9672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9673  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9674  shlibpath_var=LD_LIBRARY_PATH
9675  shlibpath_overrides_runpath=yes
9676  if test "$with_gnu_ld" = yes; then
9677    need_lib_prefix=no
9678  fi
9679  need_version=yes
9680  ;;
9681
9682sysv4 | sysv4.3*)
9683  version_type=linux
9684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9685  soname_spec='${libname}${release}${shared_ext}$major'
9686  shlibpath_var=LD_LIBRARY_PATH
9687  case $host_vendor in
9688    sni)
9689      shlibpath_overrides_runpath=no
9690      need_lib_prefix=no
9691      export_dynamic_flag_spec='${wl}-Blargedynsym'
9692      runpath_var=LD_RUN_PATH
9693      ;;
9694    siemens)
9695      need_lib_prefix=no
9696      ;;
9697    motorola)
9698      need_lib_prefix=no
9699      need_version=no
9700      shlibpath_overrides_runpath=no
9701      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9702      ;;
9703  esac
9704  ;;
9705
9706sysv4*MP*)
9707  if test -d /usr/nec ;then
9708    version_type=linux
9709    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9710    soname_spec='$libname${shared_ext}.$major'
9711    shlibpath_var=LD_LIBRARY_PATH
9712  fi
9713  ;;
9714
9715sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9716  version_type=freebsd-elf
9717  need_lib_prefix=no
9718  need_version=no
9719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9720  soname_spec='${libname}${release}${shared_ext}$major'
9721  shlibpath_var=LD_LIBRARY_PATH
9722  hardcode_into_libs=yes
9723  if test "$with_gnu_ld" = yes; then
9724    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9725    shlibpath_overrides_runpath=no
9726  else
9727    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9728    shlibpath_overrides_runpath=yes
9729    case $host_os in
9730      sco3.2v5*)
9731        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9732        ;;
9733    esac
9734  fi
9735  sys_lib_dlsearch_path_spec='/usr/lib'
9736  ;;
9737
9738uts4*)
9739  version_type=linux
9740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741  soname_spec='${libname}${release}${shared_ext}$major'
9742  shlibpath_var=LD_LIBRARY_PATH
9743  ;;
9744
9745*)
9746  dynamic_linker=no
9747  ;;
9748esac
9749echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9750echo "${ECHO_T}$dynamic_linker" >&6
9751test "$dynamic_linker" = no && can_build_shared=no
9752
9753variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9754if test "$GCC" = yes; then
9755  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9756fi
9757
9758echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9759echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9760hardcode_action=
9761if test -n "$hardcode_libdir_flag_spec" || \
9762   test -n "$runpath_var" || \
9763   test "X$hardcode_automatic" = "Xyes" ; then
9764
9765  # We can hardcode non-existant directories.
9766  if test "$hardcode_direct" != no &&
9767     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9768     # have to relink, otherwise we might link with an installed library
9769     # when we should be linking with a yet-to-be-installed one
9770     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9771     test "$hardcode_minus_L" != no; then
9772    # Linking always hardcodes the temporary library directory.
9773    hardcode_action=relink
9774  else
9775    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9776    hardcode_action=immediate
9777  fi
9778else
9779  # We cannot hardcode anything, or else we can only hardcode existing
9780  # directories.
9781  hardcode_action=unsupported
9782fi
9783echo "$as_me:$LINENO: result: $hardcode_action" >&5
9784echo "${ECHO_T}$hardcode_action" >&6
9785
9786if test "$hardcode_action" = relink; then
9787  # Fast installation is not supported
9788  enable_fast_install=no
9789elif test "$shlibpath_overrides_runpath" = yes ||
9790     test "$enable_shared" = no; then
9791  # Fast installation is not necessary
9792  enable_fast_install=needless
9793fi
9794
9795striplib=
9796old_striplib=
9797echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9798echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9799if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9800  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9801  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9802  echo "$as_me:$LINENO: result: yes" >&5
9803echo "${ECHO_T}yes" >&6
9804else
9805# FIXME - insert some real tests, host_os isn't really good enough
9806  case $host_os in
9807   darwin*)
9808       if test -n "$STRIP" ; then
9809         striplib="$STRIP -x"
9810         echo "$as_me:$LINENO: result: yes" >&5
9811echo "${ECHO_T}yes" >&6
9812       else
9813  echo "$as_me:$LINENO: result: no" >&5
9814echo "${ECHO_T}no" >&6
9815fi
9816       ;;
9817   *)
9818  echo "$as_me:$LINENO: result: no" >&5
9819echo "${ECHO_T}no" >&6
9820    ;;
9821  esac
9822fi
9823
9824if test "x$enable_dlopen" != xyes; then
9825  enable_dlopen=unknown
9826  enable_dlopen_self=unknown
9827  enable_dlopen_self_static=unknown
9828else
9829  lt_cv_dlopen=no
9830  lt_cv_dlopen_libs=
9831
9832  case $host_os in
9833  beos*)
9834    lt_cv_dlopen="load_add_on"
9835    lt_cv_dlopen_libs=
9836    lt_cv_dlopen_self=yes
9837    ;;
9838
9839  mingw* | pw32*)
9840    lt_cv_dlopen="LoadLibrary"
9841    lt_cv_dlopen_libs=
9842   ;;
9843
9844  cygwin*)
9845    lt_cv_dlopen="dlopen"
9846    lt_cv_dlopen_libs=
9847   ;;
9848
9849  darwin*)
9850  # if libdl is installed we need to link against it
9851    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9852echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9853if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9854  echo $ECHO_N "(cached) $ECHO_C" >&6
9855else
9856  ac_check_lib_save_LIBS=$LIBS
9857LIBS="-ldl  $LIBS"
9858cat >conftest.$ac_ext <<_ACEOF
9859/* confdefs.h.  */
9860_ACEOF
9861cat confdefs.h >>conftest.$ac_ext
9862cat >>conftest.$ac_ext <<_ACEOF
9863/* end confdefs.h.  */
9864
9865/* Override any gcc2 internal prototype to avoid an error.  */
9866#ifdef __cplusplus
9867extern "C"
9868#endif
9869/* We use char because int might match the return type of a gcc2
9870   builtin and then its argument prototype would still apply.  */
9871char dlopen ();
9872int
9873main ()
9874{
9875dlopen ();
9876  ;
9877  return 0;
9878}
9879_ACEOF
9880rm -f conftest.$ac_objext conftest$ac_exeext
9881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882  (eval $ac_link) 2>conftest.er1
9883  ac_status=$?
9884  grep -v '^ *+' conftest.er1 >conftest.err
9885  rm -f conftest.er1
9886  cat conftest.err >&5
9887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888  (exit $ac_status); } &&
9889         { ac_try='test -z "$ac_c_werror_flag"
9890                         || test ! -s conftest.err'
9891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892  (eval $ac_try) 2>&5
9893  ac_status=$?
9894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895  (exit $ac_status); }; } &&
9896         { ac_try='test -s conftest$ac_exeext'
9897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898  (eval $ac_try) 2>&5
9899  ac_status=$?
9900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901  (exit $ac_status); }; }; then
9902  ac_cv_lib_dl_dlopen=yes
9903else
9904  echo "$as_me: failed program was:" >&5
9905sed 's/^/| /' conftest.$ac_ext >&5
9906
9907ac_cv_lib_dl_dlopen=no
9908fi
9909rm -f conftest.err conftest.$ac_objext \
9910      conftest$ac_exeext conftest.$ac_ext
9911LIBS=$ac_check_lib_save_LIBS
9912fi
9913echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9914echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9915if test $ac_cv_lib_dl_dlopen = yes; then
9916  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9917else
9918
9919    lt_cv_dlopen="dyld"
9920    lt_cv_dlopen_libs=
9921    lt_cv_dlopen_self=yes
9922
9923fi
9924
9925   ;;
9926
9927  *)
9928    echo "$as_me:$LINENO: checking for shl_load" >&5
9929echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9930if test "${ac_cv_func_shl_load+set}" = set; then
9931  echo $ECHO_N "(cached) $ECHO_C" >&6
9932else
9933  cat >conftest.$ac_ext <<_ACEOF
9934/* confdefs.h.  */
9935_ACEOF
9936cat confdefs.h >>conftest.$ac_ext
9937cat >>conftest.$ac_ext <<_ACEOF
9938/* end confdefs.h.  */
9939/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9940   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9941#define shl_load innocuous_shl_load
9942
9943/* System header to define __stub macros and hopefully few prototypes,
9944    which can conflict with char shl_load (); below.
9945    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9946    <limits.h> exists even on freestanding compilers.  */
9947
9948#ifdef __STDC__
9949# include <limits.h>
9950#else
9951# include <assert.h>
9952#endif
9953
9954#undef shl_load
9955
9956/* Override any gcc2 internal prototype to avoid an error.  */
9957#ifdef __cplusplus
9958extern "C"
9959{
9960#endif
9961/* We use char because int might match the return type of a gcc2
9962   builtin and then its argument prototype would still apply.  */
9963char shl_load ();
9964/* The GNU C library defines this for functions which it implements
9965    to always fail with ENOSYS.  Some functions are actually named
9966    something starting with __ and the normal name is an alias.  */
9967#if defined (__stub_shl_load) || defined (__stub___shl_load)
9968choke me
9969#else
9970char (*f) () = shl_load;
9971#endif
9972#ifdef __cplusplus
9973}
9974#endif
9975
9976int
9977main ()
9978{
9979return f != shl_load;
9980  ;
9981  return 0;
9982}
9983_ACEOF
9984rm -f conftest.$ac_objext conftest$ac_exeext
9985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986  (eval $ac_link) 2>conftest.er1
9987  ac_status=$?
9988  grep -v '^ *+' conftest.er1 >conftest.err
9989  rm -f conftest.er1
9990  cat conftest.err >&5
9991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992  (exit $ac_status); } &&
9993         { ac_try='test -z "$ac_c_werror_flag"
9994                         || test ! -s conftest.err'
9995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996  (eval $ac_try) 2>&5
9997  ac_status=$?
9998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999  (exit $ac_status); }; } &&
10000         { ac_try='test -s conftest$ac_exeext'
10001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002  (eval $ac_try) 2>&5
10003  ac_status=$?
10004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005  (exit $ac_status); }; }; then
10006  ac_cv_func_shl_load=yes
10007else
10008  echo "$as_me: failed program was:" >&5
10009sed 's/^/| /' conftest.$ac_ext >&5
10010
10011ac_cv_func_shl_load=no
10012fi
10013rm -f conftest.err conftest.$ac_objext \
10014      conftest$ac_exeext conftest.$ac_ext
10015fi
10016echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10017echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10018if test $ac_cv_func_shl_load = yes; then
10019  lt_cv_dlopen="shl_load"
10020else
10021  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10022echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10023if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10024  echo $ECHO_N "(cached) $ECHO_C" >&6
10025else
10026  ac_check_lib_save_LIBS=$LIBS
10027LIBS="-ldld  $LIBS"
10028cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h.  */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h.  */
10034
10035/* Override any gcc2 internal prototype to avoid an error.  */
10036#ifdef __cplusplus
10037extern "C"
10038#endif
10039/* We use char because int might match the return type of a gcc2
10040   builtin and then its argument prototype would still apply.  */
10041char shl_load ();
10042int
10043main ()
10044{
10045shl_load ();
10046  ;
10047  return 0;
10048}
10049_ACEOF
10050rm -f conftest.$ac_objext conftest$ac_exeext
10051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052  (eval $ac_link) 2>conftest.er1
10053  ac_status=$?
10054  grep -v '^ *+' conftest.er1 >conftest.err
10055  rm -f conftest.er1
10056  cat conftest.err >&5
10057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058  (exit $ac_status); } &&
10059         { ac_try='test -z "$ac_c_werror_flag"
10060                         || test ! -s conftest.err'
10061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062  (eval $ac_try) 2>&5
10063  ac_status=$?
10064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065  (exit $ac_status); }; } &&
10066         { ac_try='test -s conftest$ac_exeext'
10067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068  (eval $ac_try) 2>&5
10069  ac_status=$?
10070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071  (exit $ac_status); }; }; then
10072  ac_cv_lib_dld_shl_load=yes
10073else
10074  echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077ac_cv_lib_dld_shl_load=no
10078fi
10079rm -f conftest.err conftest.$ac_objext \
10080      conftest$ac_exeext conftest.$ac_ext
10081LIBS=$ac_check_lib_save_LIBS
10082fi
10083echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10084echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10085if test $ac_cv_lib_dld_shl_load = yes; then
10086  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10087else
10088  echo "$as_me:$LINENO: checking for dlopen" >&5
10089echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10090if test "${ac_cv_func_dlopen+set}" = set; then
10091  echo $ECHO_N "(cached) $ECHO_C" >&6
10092else
10093  cat >conftest.$ac_ext <<_ACEOF
10094/* confdefs.h.  */
10095_ACEOF
10096cat confdefs.h >>conftest.$ac_ext
10097cat >>conftest.$ac_ext <<_ACEOF
10098/* end confdefs.h.  */
10099/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10100   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10101#define dlopen innocuous_dlopen
10102
10103/* System header to define __stub macros and hopefully few prototypes,
10104    which can conflict with char dlopen (); below.
10105    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10106    <limits.h> exists even on freestanding compilers.  */
10107
10108#ifdef __STDC__
10109# include <limits.h>
10110#else
10111# include <assert.h>
10112#endif
10113
10114#undef dlopen
10115
10116/* Override any gcc2 internal prototype to avoid an error.  */
10117#ifdef __cplusplus
10118extern "C"
10119{
10120#endif
10121/* We use char because int might match the return type of a gcc2
10122   builtin and then its argument prototype would still apply.  */
10123char dlopen ();
10124/* The GNU C library defines this for functions which it implements
10125    to always fail with ENOSYS.  Some functions are actually named
10126    something starting with __ and the normal name is an alias.  */
10127#if defined (__stub_dlopen) || defined (__stub___dlopen)
10128choke me
10129#else
10130char (*f) () = dlopen;
10131#endif
10132#ifdef __cplusplus
10133}
10134#endif
10135
10136int
10137main ()
10138{
10139return f != dlopen;
10140  ;
10141  return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext conftest$ac_exeext
10145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10146  (eval $ac_link) 2>conftest.er1
10147  ac_status=$?
10148  grep -v '^ *+' conftest.er1 >conftest.err
10149  rm -f conftest.er1
10150  cat conftest.err >&5
10151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152  (exit $ac_status); } &&
10153         { ac_try='test -z "$ac_c_werror_flag"
10154                         || test ! -s conftest.err'
10155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156  (eval $ac_try) 2>&5
10157  ac_status=$?
10158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159  (exit $ac_status); }; } &&
10160         { ac_try='test -s conftest$ac_exeext'
10161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162  (eval $ac_try) 2>&5
10163  ac_status=$?
10164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165  (exit $ac_status); }; }; then
10166  ac_cv_func_dlopen=yes
10167else
10168  echo "$as_me: failed program was:" >&5
10169sed 's/^/| /' conftest.$ac_ext >&5
10170
10171ac_cv_func_dlopen=no
10172fi
10173rm -f conftest.err conftest.$ac_objext \
10174      conftest$ac_exeext conftest.$ac_ext
10175fi
10176echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10177echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10178if test $ac_cv_func_dlopen = yes; then
10179  lt_cv_dlopen="dlopen"
10180else
10181  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10182echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10183if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10184  echo $ECHO_N "(cached) $ECHO_C" >&6
10185else
10186  ac_check_lib_save_LIBS=$LIBS
10187LIBS="-ldl  $LIBS"
10188cat >conftest.$ac_ext <<_ACEOF
10189/* confdefs.h.  */
10190_ACEOF
10191cat confdefs.h >>conftest.$ac_ext
10192cat >>conftest.$ac_ext <<_ACEOF
10193/* end confdefs.h.  */
10194
10195/* Override any gcc2 internal prototype to avoid an error.  */
10196#ifdef __cplusplus
10197extern "C"
10198#endif
10199/* We use char because int might match the return type of a gcc2
10200   builtin and then its argument prototype would still apply.  */
10201char dlopen ();
10202int
10203main ()
10204{
10205dlopen ();
10206  ;
10207  return 0;
10208}
10209_ACEOF
10210rm -f conftest.$ac_objext conftest$ac_exeext
10211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212  (eval $ac_link) 2>conftest.er1
10213  ac_status=$?
10214  grep -v '^ *+' conftest.er1 >conftest.err
10215  rm -f conftest.er1
10216  cat conftest.err >&5
10217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218  (exit $ac_status); } &&
10219         { ac_try='test -z "$ac_c_werror_flag"
10220                         || test ! -s conftest.err'
10221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222  (eval $ac_try) 2>&5
10223  ac_status=$?
10224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225  (exit $ac_status); }; } &&
10226         { ac_try='test -s conftest$ac_exeext'
10227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228  (eval $ac_try) 2>&5
10229  ac_status=$?
10230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231  (exit $ac_status); }; }; then
10232  ac_cv_lib_dl_dlopen=yes
10233else
10234  echo "$as_me: failed program was:" >&5
10235sed 's/^/| /' conftest.$ac_ext >&5
10236
10237ac_cv_lib_dl_dlopen=no
10238fi
10239rm -f conftest.err conftest.$ac_objext \
10240      conftest$ac_exeext conftest.$ac_ext
10241LIBS=$ac_check_lib_save_LIBS
10242fi
10243echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10244echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10245if test $ac_cv_lib_dl_dlopen = yes; then
10246  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10247else
10248  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10249echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10250if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10251  echo $ECHO_N "(cached) $ECHO_C" >&6
10252else
10253  ac_check_lib_save_LIBS=$LIBS
10254LIBS="-lsvld  $LIBS"
10255cat >conftest.$ac_ext <<_ACEOF
10256/* confdefs.h.  */
10257_ACEOF
10258cat confdefs.h >>conftest.$ac_ext
10259cat >>conftest.$ac_ext <<_ACEOF
10260/* end confdefs.h.  */
10261
10262/* Override any gcc2 internal prototype to avoid an error.  */
10263#ifdef __cplusplus
10264extern "C"
10265#endif
10266/* We use char because int might match the return type of a gcc2
10267   builtin and then its argument prototype would still apply.  */
10268char dlopen ();
10269int
10270main ()
10271{
10272dlopen ();
10273  ;
10274  return 0;
10275}
10276_ACEOF
10277rm -f conftest.$ac_objext conftest$ac_exeext
10278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279  (eval $ac_link) 2>conftest.er1
10280  ac_status=$?
10281  grep -v '^ *+' conftest.er1 >conftest.err
10282  rm -f conftest.er1
10283  cat conftest.err >&5
10284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285  (exit $ac_status); } &&
10286         { ac_try='test -z "$ac_c_werror_flag"
10287                         || test ! -s conftest.err'
10288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289  (eval $ac_try) 2>&5
10290  ac_status=$?
10291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292  (exit $ac_status); }; } &&
10293         { ac_try='test -s conftest$ac_exeext'
10294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295  (eval $ac_try) 2>&5
10296  ac_status=$?
10297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298  (exit $ac_status); }; }; then
10299  ac_cv_lib_svld_dlopen=yes
10300else
10301  echo "$as_me: failed program was:" >&5
10302sed 's/^/| /' conftest.$ac_ext >&5
10303
10304ac_cv_lib_svld_dlopen=no
10305fi
10306rm -f conftest.err conftest.$ac_objext \
10307      conftest$ac_exeext conftest.$ac_ext
10308LIBS=$ac_check_lib_save_LIBS
10309fi
10310echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10311echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10312if test $ac_cv_lib_svld_dlopen = yes; then
10313  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10314else
10315  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10316echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10317if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10318  echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320  ac_check_lib_save_LIBS=$LIBS
10321LIBS="-ldld  $LIBS"
10322cat >conftest.$ac_ext <<_ACEOF
10323/* confdefs.h.  */
10324_ACEOF
10325cat confdefs.h >>conftest.$ac_ext
10326cat >>conftest.$ac_ext <<_ACEOF
10327/* end confdefs.h.  */
10328
10329/* Override any gcc2 internal prototype to avoid an error.  */
10330#ifdef __cplusplus
10331extern "C"
10332#endif
10333/* We use char because int might match the return type of a gcc2
10334   builtin and then its argument prototype would still apply.  */
10335char dld_link ();
10336int
10337main ()
10338{
10339dld_link ();
10340  ;
10341  return 0;
10342}
10343_ACEOF
10344rm -f conftest.$ac_objext conftest$ac_exeext
10345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346  (eval $ac_link) 2>conftest.er1
10347  ac_status=$?
10348  grep -v '^ *+' conftest.er1 >conftest.err
10349  rm -f conftest.er1
10350  cat conftest.err >&5
10351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352  (exit $ac_status); } &&
10353         { ac_try='test -z "$ac_c_werror_flag"
10354                         || test ! -s conftest.err'
10355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356  (eval $ac_try) 2>&5
10357  ac_status=$?
10358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359  (exit $ac_status); }; } &&
10360         { ac_try='test -s conftest$ac_exeext'
10361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362  (eval $ac_try) 2>&5
10363  ac_status=$?
10364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365  (exit $ac_status); }; }; then
10366  ac_cv_lib_dld_dld_link=yes
10367else
10368  echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5
10370
10371ac_cv_lib_dld_dld_link=no
10372fi
10373rm -f conftest.err conftest.$ac_objext \
10374      conftest$ac_exeext conftest.$ac_ext
10375LIBS=$ac_check_lib_save_LIBS
10376fi
10377echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10378echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10379if test $ac_cv_lib_dld_dld_link = yes; then
10380  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10381fi
10382
10383
10384fi
10385
10386
10387fi
10388
10389
10390fi
10391
10392
10393fi
10394
10395
10396fi
10397
10398    ;;
10399  esac
10400
10401  if test "x$lt_cv_dlopen" != xno; then
10402    enable_dlopen=yes
10403  else
10404    enable_dlopen=no
10405  fi
10406
10407  case $lt_cv_dlopen in
10408  dlopen)
10409    save_CPPFLAGS="$CPPFLAGS"
10410    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10411
10412    save_LDFLAGS="$LDFLAGS"
10413    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10414
10415    save_LIBS="$LIBS"
10416    LIBS="$lt_cv_dlopen_libs $LIBS"
10417
10418    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10419echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10420if test "${lt_cv_dlopen_self+set}" = set; then
10421  echo $ECHO_N "(cached) $ECHO_C" >&6
10422else
10423          if test "$cross_compiling" = yes; then :
10424  lt_cv_dlopen_self=cross
10425else
10426  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10427  lt_status=$lt_dlunknown
10428  cat > conftest.$ac_ext <<EOF
10429#line 10429 "configure"
10430#include "confdefs.h"
10431
10432#if HAVE_DLFCN_H
10433#include <dlfcn.h>
10434#endif
10435
10436#include <stdio.h>
10437
10438#ifdef RTLD_GLOBAL
10439#  define LT_DLGLOBAL           RTLD_GLOBAL
10440#else
10441#  ifdef DL_GLOBAL
10442#    define LT_DLGLOBAL         DL_GLOBAL
10443#  else
10444#    define LT_DLGLOBAL         0
10445#  endif
10446#endif
10447
10448/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10449   find out it does not work in some platform. */
10450#ifndef LT_DLLAZY_OR_NOW
10451#  ifdef RTLD_LAZY
10452#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10453#  else
10454#    ifdef DL_LAZY
10455#      define LT_DLLAZY_OR_NOW          DL_LAZY
10456#    else
10457#      ifdef RTLD_NOW
10458#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10459#      else
10460#        ifdef DL_NOW
10461#          define LT_DLLAZY_OR_NOW      DL_NOW
10462#        else
10463#          define LT_DLLAZY_OR_NOW      0
10464#        endif
10465#      endif
10466#    endif
10467#  endif
10468#endif
10469
10470#ifdef __cplusplus
10471extern "C" void exit (int);
10472#endif
10473
10474void fnord() { int i=42;}
10475int main ()
10476{
10477  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10478  int status = $lt_dlunknown;
10479
10480  if (self)
10481    {
10482      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10483      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10484      /* dlclose (self); */
10485    }
10486  else
10487    puts (dlerror ());
10488
10489    exit (status);
10490}
10491EOF
10492  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493  (eval $ac_link) 2>&5
10494  ac_status=$?
10495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10497    (./conftest; exit; ) >&5 2>/dev/null
10498    lt_status=$?
10499    case x$lt_status in
10500      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10501      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10502      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10503    esac
10504  else :
10505    # compilation failed
10506    lt_cv_dlopen_self=no
10507  fi
10508fi
10509rm -fr conftest*
10510
10511
10512fi
10513echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10514echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10515
10516    if test "x$lt_cv_dlopen_self" = xyes; then
10517      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10518      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10519echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10520if test "${lt_cv_dlopen_self_static+set}" = set; then
10521  echo $ECHO_N "(cached) $ECHO_C" >&6
10522else
10523          if test "$cross_compiling" = yes; then :
10524  lt_cv_dlopen_self_static=cross
10525else
10526  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10527  lt_status=$lt_dlunknown
10528  cat > conftest.$ac_ext <<EOF
10529#line 10529 "configure"
10530#include "confdefs.h"
10531
10532#if HAVE_DLFCN_H
10533#include <dlfcn.h>
10534#endif
10535
10536#include <stdio.h>
10537
10538#ifdef RTLD_GLOBAL
10539#  define LT_DLGLOBAL           RTLD_GLOBAL
10540#else
10541#  ifdef DL_GLOBAL
10542#    define LT_DLGLOBAL         DL_GLOBAL
10543#  else
10544#    define LT_DLGLOBAL         0
10545#  endif
10546#endif
10547
10548/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10549   find out it does not work in some platform. */
10550#ifndef LT_DLLAZY_OR_NOW
10551#  ifdef RTLD_LAZY
10552#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10553#  else
10554#    ifdef DL_LAZY
10555#      define LT_DLLAZY_OR_NOW          DL_LAZY
10556#    else
10557#      ifdef RTLD_NOW
10558#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10559#      else
10560#        ifdef DL_NOW
10561#          define LT_DLLAZY_OR_NOW      DL_NOW
10562#        else
10563#          define LT_DLLAZY_OR_NOW      0
10564#        endif
10565#      endif
10566#    endif
10567#  endif
10568#endif
10569
10570#ifdef __cplusplus
10571extern "C" void exit (int);
10572#endif
10573
10574void fnord() { int i=42;}
10575int main ()
10576{
10577  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10578  int status = $lt_dlunknown;
10579
10580  if (self)
10581    {
10582      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10583      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10584      /* dlclose (self); */
10585    }
10586  else
10587    puts (dlerror ());
10588
10589    exit (status);
10590}
10591EOF
10592  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593  (eval $ac_link) 2>&5
10594  ac_status=$?
10595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10597    (./conftest; exit; ) >&5 2>/dev/null
10598    lt_status=$?
10599    case x$lt_status in
10600      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10601      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10602      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10603    esac
10604  else :
10605    # compilation failed
10606    lt_cv_dlopen_self_static=no
10607  fi
10608fi
10609rm -fr conftest*
10610
10611
10612fi
10613echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10614echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10615    fi
10616
10617    CPPFLAGS="$save_CPPFLAGS"
10618    LDFLAGS="$save_LDFLAGS"
10619    LIBS="$save_LIBS"
10620    ;;
10621  esac
10622
10623  case $lt_cv_dlopen_self in
10624  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10625  *) enable_dlopen_self=unknown ;;
10626  esac
10627
10628  case $lt_cv_dlopen_self_static in
10629  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10630  *) enable_dlopen_self_static=unknown ;;
10631  esac
10632fi
10633
10634
10635# Report which library types will actually be built
10636echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10637echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10638echo "$as_me:$LINENO: result: $can_build_shared" >&5
10639echo "${ECHO_T}$can_build_shared" >&6
10640
10641echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10642echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10643test "$can_build_shared" = "no" && enable_shared=no
10644
10645# On AIX, shared libraries and static libraries use the same namespace, and
10646# are all built from PIC.
10647case $host_os in
10648aix3*)
10649  test "$enable_shared" = yes && enable_static=no
10650  if test -n "$RANLIB"; then
10651    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10652    postinstall_cmds='$RANLIB $lib'
10653  fi
10654  ;;
10655
10656aix4* | aix5*)
10657  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10658    test "$enable_shared" = yes && enable_static=no
10659  fi
10660    ;;
10661esac
10662echo "$as_me:$LINENO: result: $enable_shared" >&5
10663echo "${ECHO_T}$enable_shared" >&6
10664
10665echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10666echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10667# Make sure either enable_shared or enable_static is yes.
10668test "$enable_shared" = yes || enable_static=yes
10669echo "$as_me:$LINENO: result: $enable_static" >&5
10670echo "${ECHO_T}$enable_static" >&6
10671
10672# The else clause should only fire when bootstrapping the
10673# libtool distribution, otherwise you forgot to ship ltmain.sh
10674# with your package, and you will get complaints that there are
10675# no rules to generate ltmain.sh.
10676if test -f "$ltmain"; then
10677  # See if we are running on zsh, and set the options which allow our commands through
10678  # without removal of \ escapes.
10679  if test -n "${ZSH_VERSION+set}" ; then
10680    setopt NO_GLOB_SUBST
10681  fi
10682  # Now quote all the things that may contain metacharacters while being
10683  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10684  # variables and quote the copies for generation of the libtool script.
10685  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10686    SED SHELL STRIP \
10687    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10688    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10689    deplibs_check_method reload_flag reload_cmds need_locks \
10690    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10691    lt_cv_sys_global_symbol_to_c_name_address \
10692    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10693    old_postinstall_cmds old_postuninstall_cmds \
10694    compiler \
10695    CC \
10696    LD \
10697    lt_prog_compiler_wl \
10698    lt_prog_compiler_pic \
10699    lt_prog_compiler_static \
10700    lt_prog_compiler_no_builtin_flag \
10701    export_dynamic_flag_spec \
10702    thread_safe_flag_spec \
10703    whole_archive_flag_spec \
10704    enable_shared_with_static_runtimes \
10705    old_archive_cmds \
10706    old_archive_from_new_cmds \
10707    predep_objects \
10708    postdep_objects \
10709    predeps \
10710    postdeps \
10711    compiler_lib_search_path \
10712    archive_cmds \
10713    archive_expsym_cmds \
10714    postinstall_cmds \
10715    postuninstall_cmds \
10716    old_archive_from_expsyms_cmds \
10717    allow_undefined_flag \
10718    no_undefined_flag \
10719    export_symbols_cmds \
10720    hardcode_libdir_flag_spec \
10721    hardcode_libdir_flag_spec_ld \
10722    hardcode_libdir_separator \
10723    hardcode_automatic \
10724    module_cmds \
10725    module_expsym_cmds \
10726    lt_cv_prog_compiler_c_o \
10727    exclude_expsyms \
10728    include_expsyms; do
10729
10730    case $var in
10731    old_archive_cmds | \
10732    old_archive_from_new_cmds | \
10733    archive_cmds | \
10734    archive_expsym_cmds | \
10735    module_cmds | \
10736    module_expsym_cmds | \
10737    old_archive_from_expsyms_cmds | \
10738    export_symbols_cmds | \
10739    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10740    postinstall_cmds | postuninstall_cmds | \
10741    old_postinstall_cmds | old_postuninstall_cmds | \
10742    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10743      # Double-quote double-evaled strings.
10744      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10745      ;;
10746    *)
10747      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10748      ;;
10749    esac
10750  done
10751
10752  case $lt_echo in
10753  *'\$0 --fallback-echo"')
10754    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10755    ;;
10756  esac
10757
10758cfgfile="${ofile}T"
10759  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10760  $rm -f "$cfgfile"
10761  { echo "$as_me:$LINENO: creating $ofile" >&5
10762echo "$as_me: creating $ofile" >&6;}
10763
10764  cat <<__EOF__ >> "$cfgfile"
10765#! $SHELL
10766
10767# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10768# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10769# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10770#
10771# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10772# Free Software Foundation, Inc.
10773#
10774# This file is part of GNU Libtool:
10775# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10776#
10777# This program is free software; you can redistribute it and/or modify