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

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

temporarily committing release candidate

File size: 768.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyGlpk 1.9.1.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2010 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyGlpk'
431PACKAGE_TARNAME='thirdpartyglpk'
432PACKAGE_VERSION='1.9.1'
433PACKAGE_STRING='ThirdPartyGlpk 1.9.1'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="glpk/src/glpk.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion GLPK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS glpkmajorver glpkminorver GLPKDIR GLPK_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyGlpk 1.9.1 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyGlpk 1.9.1:";;
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  --disable-gmp           do not compile with GNU multiple precision library
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.9.1
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.9.1, 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 -a "x$svn_rev_tmp" != "xUnversioned directory"; 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=10:1:9
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    clang* ) ;;
1924    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1925      if test x"$CC" = x; then
1926        CC="$CXX"
1927        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1928echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1929      fi
1930      ;;
1931  esac
1932fi
1933
1934
1935
1936
1937
1938
1939coin_has_cc=yes
1940
1941save_cflags="$CFLAGS"
1942
1943# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1944# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1945# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1946# compiler. In this case, put cc after gcc.
1947
1948case $build in
1949  *-cygwin* | *-mingw*)
1950             if test "$enable_doscompile" = msvc ; then
1951               comps="icl cl"
1952             else
1953               comps="gcc cl"
1954             fi ;;
1955  *-*-solaris*)
1956             # Extract the first word of "cc", so it can be a program name with args.
1957set dummy cc; ac_word=$2
1958echo "$as_me:$LINENO: checking for $ac_word" >&5
1959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1961  echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963  if test -n "$sol_cc_compiler"; then
1964  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1965else
1966  ac_prog_rejected=no
1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968for as_dir in $PATH
1969do
1970  IFS=$as_save_IFS
1971  test -z "$as_dir" && as_dir=.
1972  for ac_exec_ext in '' $ac_executable_extensions; do
1973  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1975       ac_prog_rejected=yes
1976       continue
1977     fi
1978    ac_cv_prog_sol_cc_compiler="cc"
1979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980    break 2
1981  fi
1982done
1983done
1984
1985if test $ac_prog_rejected = yes; then
1986  # We found a bogon in the path, so make sure we never use it.
1987  set dummy $ac_cv_prog_sol_cc_compiler
1988  shift
1989  if test $# != 0; then
1990    # We chose a different compiler from the bogus one.
1991    # However, it has the same basename, so the bogon will be chosen
1992    # first if we set sol_cc_compiler to just the basename; use the full file name.
1993    shift
1994    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1995  fi
1996fi
1997fi
1998fi
1999sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2000if test -n "$sol_cc_compiler"; then
2001  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2002echo "${ECHO_T}$sol_cc_compiler" >&6
2003else
2004  echo "$as_me:$LINENO: result: no" >&5
2005echo "${ECHO_T}no" >&6
2006fi
2007
2008             if test "$sol_cc_compiler" = "cc" ; then
2009               comps="cc xlc gcc pgcc icc"
2010             else
2011               comps="xlc gcc pgcc icc cc"
2012             fi
2013             ;;
2014  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2015  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2016  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2017esac
2018
2019# We delete the cached value, since the test might not have been
2020# performed with our choice of compilers earlier
2021$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2022# AC_MSG_NOTICE([C compiler candidates: $comps])
2023ac_ext=c
2024ac_cpp='$CPP $CPPFLAGS'
2025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028if test -n "$ac_tool_prefix"; then
2029  for ac_prog in $comps
2030  do
2031    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033echo "$as_me:$LINENO: checking for $ac_word" >&5
2034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035if test "${ac_cv_prog_CC+set}" = set; then
2036  echo $ECHO_N "(cached) $ECHO_C" >&6
2037else
2038  if test -n "$CC"; then
2039  ac_cv_prog_CC="$CC" # Let the user override the test.
2040else
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044  IFS=$as_save_IFS
2045  test -z "$as_dir" && as_dir=.
2046  for ac_exec_ext in '' $ac_executable_extensions; do
2047  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050    break 2
2051  fi
2052done
2053done
2054
2055fi
2056fi
2057CC=$ac_cv_prog_CC
2058if test -n "$CC"; then
2059  echo "$as_me:$LINENO: result: $CC" >&5
2060echo "${ECHO_T}$CC" >&6
2061else
2062  echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6
2064fi
2065
2066    test -n "$CC" && break
2067  done
2068fi
2069if test -z "$CC"; then
2070  ac_ct_CC=$CC
2071  for ac_prog in $comps
2072do
2073  # Extract the first word of "$ac_prog", so it can be a program name with args.
2074set dummy $ac_prog; ac_word=$2
2075echo "$as_me:$LINENO: checking for $ac_word" >&5
2076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078  echo $ECHO_N "(cached) $ECHO_C" >&6
2079else
2080  if test -n "$ac_ct_CC"; then
2081  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082else
2083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084for as_dir in $PATH
2085do
2086  IFS=$as_save_IFS
2087  test -z "$as_dir" && as_dir=.
2088  for ac_exec_ext in '' $ac_executable_extensions; do
2089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090    ac_cv_prog_ac_ct_CC="$ac_prog"
2091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092    break 2
2093  fi
2094done
2095done
2096
2097fi
2098fi
2099ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100if test -n "$ac_ct_CC"; then
2101  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102echo "${ECHO_T}$ac_ct_CC" >&6
2103else
2104  echo "$as_me:$LINENO: result: no" >&5
2105echo "${ECHO_T}no" >&6
2106fi
2107
2108  test -n "$ac_ct_CC" && break
2109done
2110
2111  CC=$ac_ct_CC
2112fi
2113
2114
2115test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116See \`config.log' for more details." >&5
2117echo "$as_me: error: no acceptable C compiler found in \$PATH
2118See \`config.log' for more details." >&2;}
2119   { (exit 1); exit 1; }; }
2120
2121# Provide some information about the compiler.
2122echo "$as_me:$LINENO:" \
2123     "checking for C compiler version" >&5
2124ac_compiler=`set X $ac_compile; echo $2`
2125{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2126  (eval $ac_compiler --version </dev/null >&5) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }
2130{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2131  (eval $ac_compiler -v </dev/null >&5) 2>&5
2132  ac_status=$?
2133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134  (exit $ac_status); }
2135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2136  (eval $ac_compiler -V </dev/null >&5) 2>&5
2137  ac_status=$?
2138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139  (exit $ac_status); }
2140
2141cat >conftest.$ac_ext <<_ACEOF
2142/* confdefs.h.  */
2143_ACEOF
2144cat confdefs.h >>conftest.$ac_ext
2145cat >>conftest.$ac_ext <<_ACEOF
2146/* end confdefs.h.  */
2147
2148int
2149main ()
2150{
2151
2152  ;
2153  return 0;
2154}
2155_ACEOF
2156ac_clean_files_save=$ac_clean_files
2157ac_clean_files="$ac_clean_files a.out a.exe b.out"
2158# Try to create an executable without -o first, disregard a.out.
2159# It will help us diagnose broken compilers, and finding out an intuition
2160# of exeext.
2161echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2162echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2163ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2165  (eval $ac_link_default) 2>&5
2166  ac_status=$?
2167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168  (exit $ac_status); }; then
2169  # Find the output, starting from the most likely.  This scheme is
2170# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2171# resort.
2172
2173# Be careful to initialize this variable, since it used to be cached.
2174# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2175ac_cv_exeext=
2176# b.out is created by i960 compilers.
2177for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2178do
2179  test -f "$ac_file" || continue
2180  case $ac_file in
2181    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2182        ;;
2183    conftest.$ac_ext )
2184        # This is the source file.
2185        ;;
2186    [ab].out )
2187        # We found the default executable, but exeext='' is most
2188        # certainly right.
2189        break;;
2190    *.* )
2191        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192        # FIXME: I believe we export ac_cv_exeext for Libtool,
2193        # but it would be cool to find out if it's true.  Does anybody
2194        # maintain Libtool? --akim.
2195        export ac_cv_exeext
2196        break;;
2197    * )
2198        break;;
2199  esac
2200done
2201else
2202  echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2206See \`config.log' for more details." >&5
2207echo "$as_me: error: C compiler cannot create executables
2208See \`config.log' for more details." >&2;}
2209   { (exit 77); exit 77; }; }
2210fi
2211
2212ac_exeext=$ac_cv_exeext
2213echo "$as_me:$LINENO: result: $ac_file" >&5
2214echo "${ECHO_T}$ac_file" >&6
2215
2216# Check the compiler produces executables we can run.  If not, either
2217# the compiler is broken, or we cross compile.
2218echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2219echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2220# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2221# If not cross compiling, check that we can run a simple program.
2222if test "$cross_compiling" != yes; then
2223  if { ac_try='./$ac_file'
2224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225  (eval $ac_try) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }; }; then
2229    cross_compiling=no
2230  else
2231    if test "$cross_compiling" = maybe; then
2232        cross_compiling=yes
2233    else
2234        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2235If you meant to cross compile, use \`--host'.
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: cannot run C compiled programs.
2238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&2;}
2240   { (exit 1); exit 1; }; }
2241    fi
2242  fi
2243fi
2244echo "$as_me:$LINENO: result: yes" >&5
2245echo "${ECHO_T}yes" >&6
2246
2247rm -f a.out a.exe conftest$ac_cv_exeext b.out
2248ac_clean_files=$ac_clean_files_save
2249# Check the compiler produces executables we can run.  If not, either
2250# the compiler is broken, or we cross compile.
2251echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2253echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254echo "${ECHO_T}$cross_compiling" >&6
2255
2256echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2259  (eval $ac_link) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; then
2263  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2264# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2265# work properly (i.e., refer to `conftest.exe'), while it won't with
2266# `rm'.
2267for ac_file in conftest.exe conftest conftest.*; do
2268  test -f "$ac_file" || continue
2269  case $ac_file in
2270    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2271    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2272          export ac_cv_exeext
2273          break;;
2274    * ) break;;
2275  esac
2276done
2277else
2278  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279See \`config.log' for more details." >&5
2280echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281See \`config.log' for more details." >&2;}
2282   { (exit 1); exit 1; }; }
2283fi
2284
2285rm -f conftest$ac_cv_exeext
2286echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287echo "${ECHO_T}$ac_cv_exeext" >&6
2288
2289rm -f conftest.$ac_ext
2290EXEEXT=$ac_cv_exeext
2291ac_exeext=$EXEEXT
2292echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2294if test "${ac_cv_objext+set}" = set; then
2295  echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297  cat >conftest.$ac_ext <<_ACEOF
2298/* confdefs.h.  */
2299_ACEOF
2300cat confdefs.h >>conftest.$ac_ext
2301cat >>conftest.$ac_ext <<_ACEOF
2302/* end confdefs.h.  */
2303
2304int
2305main ()
2306{
2307
2308  ;
2309  return 0;
2310}
2311_ACEOF
2312rm -f conftest.o conftest.obj
2313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314  (eval $ac_compile) 2>&5
2315  ac_status=$?
2316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317  (exit $ac_status); }; then
2318  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2319  case $ac_file in
2320    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2321    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2322       break;;
2323  esac
2324done
2325else
2326  echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2330See \`config.log' for more details." >&5
2331echo "$as_me: error: cannot compute suffix of object files: cannot compile
2332See \`config.log' for more details." >&2;}
2333   { (exit 1); exit 1; }; }
2334fi
2335
2336rm -f conftest.$ac_cv_objext conftest.$ac_ext
2337fi
2338echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2339echo "${ECHO_T}$ac_cv_objext" >&6
2340OBJEXT=$ac_cv_objext
2341ac_objext=$OBJEXT
2342echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2343echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2344if test "${ac_cv_c_compiler_gnu+set}" = set; then
2345  echo $ECHO_N "(cached) $ECHO_C" >&6
2346else
2347  cat >conftest.$ac_ext <<_ACEOF
2348/* confdefs.h.  */
2349_ACEOF
2350cat confdefs.h >>conftest.$ac_ext
2351cat >>conftest.$ac_ext <<_ACEOF
2352/* end confdefs.h.  */
2353
2354int
2355main ()
2356{
2357#ifndef __GNUC__
2358       choke me
2359#endif
2360
2361  ;
2362  return 0;
2363}
2364_ACEOF
2365rm -f conftest.$ac_objext
2366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367  (eval $ac_compile) 2>conftest.er1
2368  ac_status=$?
2369  grep -v '^ *+' conftest.er1 >conftest.err
2370  rm -f conftest.er1
2371  cat conftest.err >&5
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); } &&
2374         { ac_try='test -z "$ac_c_werror_flag"
2375                         || test ! -s conftest.err'
2376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377  (eval $ac_try) 2>&5
2378  ac_status=$?
2379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380  (exit $ac_status); }; } &&
2381         { ac_try='test -s conftest.$ac_objext'
2382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383  (eval $ac_try) 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; }; then
2387  ac_compiler_gnu=yes
2388else
2389  echo "$as_me: failed program was:" >&5
2390sed 's/^/| /' conftest.$ac_ext >&5
2391
2392ac_compiler_gnu=no
2393fi
2394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2395ac_cv_c_compiler_gnu=$ac_compiler_gnu
2396
2397fi
2398echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2399echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2400GCC=`test $ac_compiler_gnu = yes && echo yes`
2401ac_test_CFLAGS=${CFLAGS+set}
2402ac_save_CFLAGS=$CFLAGS
2403CFLAGS="-g"
2404echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2405echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2406if test "${ac_cv_prog_cc_g+set}" = set; then
2407  echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409  cat >conftest.$ac_ext <<_ACEOF
2410/* confdefs.h.  */
2411_ACEOF
2412cat confdefs.h >>conftest.$ac_ext
2413cat >>conftest.$ac_ext <<_ACEOF
2414/* end confdefs.h.  */
2415
2416int
2417main ()
2418{
2419
2420  ;
2421  return 0;
2422}
2423_ACEOF
2424rm -f conftest.$ac_objext
2425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426  (eval $ac_compile) 2>conftest.er1
2427  ac_status=$?
2428  grep -v '^ *+' conftest.er1 >conftest.err
2429  rm -f conftest.er1
2430  cat conftest.err >&5
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); } &&
2433         { ac_try='test -z "$ac_c_werror_flag"
2434                         || test ! -s conftest.err'
2435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436  (eval $ac_try) 2>&5
2437  ac_status=$?
2438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439  (exit $ac_status); }; } &&
2440         { ac_try='test -s conftest.$ac_objext'
2441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442  (eval $ac_try) 2>&5
2443  ac_status=$?
2444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445  (exit $ac_status); }; }; then
2446  ac_cv_prog_cc_g=yes
2447else
2448  echo "$as_me: failed program was:" >&5
2449sed 's/^/| /' conftest.$ac_ext >&5
2450
2451ac_cv_prog_cc_g=no
2452fi
2453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2454fi
2455echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2456echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2457if test "$ac_test_CFLAGS" = set; then
2458  CFLAGS=$ac_save_CFLAGS
2459elif test $ac_cv_prog_cc_g = yes; then
2460  if test "$GCC" = yes; then
2461    CFLAGS="-g -O2"
2462  else
2463    CFLAGS="-g"
2464  fi
2465else
2466  if test "$GCC" = yes; then
2467    CFLAGS="-O2"
2468  else
2469    CFLAGS=
2470  fi
2471fi
2472echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2473echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2474if test "${ac_cv_prog_cc_stdc+set}" = set; then
2475  echo $ECHO_N "(cached) $ECHO_C" >&6
2476else
2477  ac_cv_prog_cc_stdc=no
2478ac_save_CC=$CC
2479cat >conftest.$ac_ext <<_ACEOF
2480/* confdefs.h.  */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h.  */
2485#include <stdarg.h>
2486#include <stdio.h>
2487#include <sys/types.h>
2488#include <sys/stat.h>
2489/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2490struct buf { int x; };
2491FILE * (*rcsopen) (struct buf *, struct stat *, int);
2492static char *e (p, i)
2493     char **p;
2494     int i;
2495{
2496  return p[i];
2497}
2498static char *f (char * (*g) (char **, int), char **p, ...)
2499{
2500  char *s;
2501  va_list v;
2502  va_start (v,p);
2503  s = g (p, va_arg (v,int));
2504  va_end (v);
2505  return s;
2506}
2507
2508/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2509   function prototypes and stuff, but not '\xHH' hex character constants.
2510   These don't provoke an error unfortunately, instead are silently treated
2511   as 'x'.  The following induces an error, until -std1 is added to get
2512   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2513   array size at least.  It's necessary to write '\x00'==0 to get something
2514   that's true only with -std1.  */
2515int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2516
2517int test (int i, double x);
2518struct s1 {int (*f) (int a);};
2519struct s2 {int (*f) (double a);};
2520int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2521int argc;
2522char **argv;
2523int
2524main ()
2525{
2526return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2527  ;
2528  return 0;
2529}
2530_ACEOF
2531# Don't try gcc -ansi; that turns off useful extensions and
2532# breaks some systems' header files.
2533# AIX                   -qlanglvl=ansi
2534# Ultrix and OSF/1      -std1
2535# HP-UX 10.20 and later -Ae
2536# HP-UX older versions  -Aa -D_HPUX_SOURCE
2537# SVR4                  -Xc -D__EXTENSIONS__
2538for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2539do
2540  CC="$ac_save_CC $ac_arg"
2541  rm -f conftest.$ac_objext
2542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543  (eval $ac_compile) 2>conftest.er1
2544  ac_status=$?
2545  grep -v '^ *+' conftest.er1 >conftest.err
2546  rm -f conftest.er1
2547  cat conftest.err >&5
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); } &&
2550         { ac_try='test -z "$ac_c_werror_flag"
2551                         || test ! -s conftest.err'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; } &&
2557         { ac_try='test -s conftest.$ac_objext'
2558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559  (eval $ac_try) 2>&5
2560  ac_status=$?
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); }; }; then
2563  ac_cv_prog_cc_stdc=$ac_arg
2564break
2565else
2566  echo "$as_me: failed program was:" >&5
2567sed 's/^/| /' conftest.$ac_ext >&5
2568
2569fi
2570rm -f conftest.err conftest.$ac_objext
2571done
2572rm -f conftest.$ac_ext conftest.$ac_objext
2573CC=$ac_save_CC
2574
2575fi
2576
2577case "x$ac_cv_prog_cc_stdc" in
2578  x|xno)
2579    echo "$as_me:$LINENO: result: none needed" >&5
2580echo "${ECHO_T}none needed" >&6 ;;
2581  *)
2582    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2583echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2584    CC="$CC $ac_cv_prog_cc_stdc" ;;
2585esac
2586
2587# Some people use a C++ compiler to compile C.  Since we use `exit',
2588# in C++ we need to declare it.  In case someone uses the same compiler
2589# for both compiling C and C++ we need to have the C++ compiler decide
2590# the declaration of exit, since it's the most demanding environment.
2591cat >conftest.$ac_ext <<_ACEOF
2592#ifndef __cplusplus
2593  choke me
2594#endif
2595_ACEOF
2596rm -f conftest.$ac_objext
2597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598  (eval $ac_compile) 2>conftest.er1
2599  ac_status=$?
2600  grep -v '^ *+' conftest.er1 >conftest.err
2601  rm -f conftest.er1
2602  cat conftest.err >&5
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); } &&
2605         { ac_try='test -z "$ac_c_werror_flag"
2606                         || test ! -s conftest.err'
2607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608  (eval $ac_try) 2>&5
2609  ac_status=$?
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); }; } &&
2612         { ac_try='test -s conftest.$ac_objext'
2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614  (eval $ac_try) 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; }; then
2618  for ac_declaration in \
2619   '' \
2620   'extern "C" void std::exit (int) throw (); using std::exit;' \
2621   'extern "C" void std::exit (int); using std::exit;' \
2622   'extern "C" void exit (int) throw ();' \
2623   'extern "C" void exit (int);' \
2624   'void exit (int);'
2625do
2626  cat >conftest.$ac_ext <<_ACEOF
2627/* confdefs.h.  */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h.  */
2632$ac_declaration
2633#include <stdlib.h>
2634int
2635main ()
2636{
2637exit (42);
2638  ;
2639  return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext
2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644  (eval $ac_compile) 2>conftest.er1
2645  ac_status=$?
2646  grep -v '^ *+' conftest.er1 >conftest.err
2647  rm -f conftest.er1
2648  cat conftest.err >&5
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); } &&
2651         { ac_try='test -z "$ac_c_werror_flag"
2652                         || test ! -s conftest.err'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; } &&
2658         { ac_try='test -s conftest.$ac_objext'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; }; then
2664  :
2665else
2666  echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669continue
2670fi
2671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2672  cat >conftest.$ac_ext <<_ACEOF
2673/* confdefs.h.  */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h.  */
2678$ac_declaration
2679int
2680main ()
2681{
2682exit (42);
2683  ;
2684  return 0;
2685}
2686_ACEOF
2687rm -f conftest.$ac_objext
2688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689  (eval $ac_compile) 2>conftest.er1
2690  ac_status=$?
2691  grep -v '^ *+' conftest.er1 >conftest.err
2692  rm -f conftest.er1
2693  cat conftest.err >&5
2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); } &&
2696         { ac_try='test -z "$ac_c_werror_flag"
2697                         || test ! -s conftest.err'
2698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699  (eval $ac_try) 2>&5
2700  ac_status=$?
2701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702  (exit $ac_status); }; } &&
2703         { ac_try='test -s conftest.$ac_objext'
2704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705  (eval $ac_try) 2>&5
2706  ac_status=$?
2707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708  (exit $ac_status); }; }; then
2709  break
2710else
2711  echo "$as_me: failed program was:" >&5
2712sed 's/^/| /' conftest.$ac_ext >&5
2713
2714fi
2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716done
2717rm -f conftest*
2718if test -n "$ac_declaration"; then
2719  echo '#ifdef __cplusplus' >>confdefs.h
2720  echo $ac_declaration      >>confdefs.h
2721  echo '#endif'             >>confdefs.h
2722fi
2723
2724else
2725  echo "$as_me: failed program was:" >&5
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
2728fi
2729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730ac_ext=c
2731ac_cpp='$CPP $CPPFLAGS'
2732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735
2736if test -z "$CC" ; then
2737  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2738echo "$as_me: error: Failed to find a C compiler!" >&2;}
2739   { (exit 1); exit 1; }; }
2740fi
2741# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2742case "$CC" in
2743  clang* ) ;;
2744  cl* | */cl* | CL* | */CL* )
2745    if test "$ac_cv_prog_cc_g" = yes ; then
2746      ac_cv_prog_cc_g=no
2747      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2748echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2749    fi ;;
2750esac
2751CFLAGS="$save_cflags"
2752
2753# add automake conditional so we can recognize cl compiler in makefile
2754coin_cc_is_cl=false
2755case "$CC" in
2756  clang* ) ;;
2757  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2758    coin_cc_is_cl=true
2759    ;;
2760esac
2761
2762
2763if test $coin_cc_is_cl = true; then
2764  COIN_CC_IS_CL_TRUE=
2765  COIN_CC_IS_CL_FALSE='#'
2766else
2767  COIN_CC_IS_CL_TRUE='#'
2768  COIN_CC_IS_CL_FALSE=
2769fi
2770
2771
2772# Check if a project specific CFLAGS variable has been set
2773if test x$COIN_PRJCT != x; then
2774  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2775  if test x$coin_tmp = xset; then
2776    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2777  fi
2778fi
2779
2780if test x"$CFLAGS" = x; then
2781
2782  coin_add_cflags=
2783  coin_opt_cflags=
2784  coin_dbg_cflags=
2785  coin_warn_cflags=
2786
2787  if test "$GCC" = "yes"; then
2788    case "$CC" in
2789      icc* | */icc*)
2790        ;;
2791      *)
2792        coin_opt_cflags="-O3"
2793        coin_add_cflags="-pipe"
2794        coin_dbg_cflags="-g -O0"
2795        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2796        case $build in
2797          *-darwin*)
2798            ;;
2799          *)
2800            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2801            ;;
2802        esac
2803        case $enable_doscompile in
2804          mingw)
2805            CFLAGS="-mno-cygwin"
2806            cat >conftest.$ac_ext <<_ACEOF
2807/* confdefs.h.  */
2808_ACEOF
2809cat confdefs.h >>conftest.$ac_ext
2810cat >>conftest.$ac_ext <<_ACEOF
2811/* end confdefs.h.  */
2812
2813int
2814main ()
2815{
2816int i=0; i++;
2817  ;
2818  return 0;
2819}
2820_ACEOF
2821rm -f conftest.$ac_objext conftest$ac_exeext
2822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2823  (eval $ac_link) 2>conftest.er1
2824  ac_status=$?
2825  grep -v '^ *+' conftest.er1 >conftest.err
2826  rm -f conftest.er1
2827  cat conftest.err >&5
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); } &&
2830         { ac_try='test -z "$ac_c_werror_flag"
2831                         || test ! -s conftest.err'
2832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833  (eval $ac_try) 2>&5
2834  ac_status=$?
2835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836  (exit $ac_status); }; } &&
2837         { ac_try='test -s conftest$ac_exeext'
2838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839  (eval $ac_try) 2>&5
2840  ac_status=$?
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); }; }; then
2843  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2844else
2845  echo "$as_me: failed program was:" >&5
2846sed 's/^/| /' conftest.$ac_ext >&5
2847
2848fi
2849rm -f conftest.err conftest.$ac_objext \
2850      conftest$ac_exeext conftest.$ac_ext
2851            CFLAGS=
2852          ;;
2853        esac
2854    esac
2855  fi
2856  if test -z "$coin_opt_cflags"; then
2857    case $build in
2858      *-cygwin* | *-mingw*)
2859        case "$CC" in
2860          clang* ) ;;
2861          cl* | */cl* | CL* | */CL*)
2862            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2863              coin_opt_cflags='-MD -O2'
2864              coin_dbg_cflags='-MDd'
2865            else
2866              coin_opt_cflags='-MT -O2'
2867              coin_dbg_cflags='-MTd'
2868            fi
2869            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2870            ;;
2871          icl* | */icl* | ICL* | */ICL*)
2872            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2873              coin_opt_cflags='-MD -Ox'
2874              coin_dbg_cflags='-MDd -debug'
2875            else
2876              coin_opt_cflags='-MT -Ox'
2877              coin_dbg_cflags='-MTd -debug'
2878            fi
2879            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2880            ;;
2881        esac
2882        ;;
2883      *-linux-*)
2884        case "$CC" in
2885          icc* | */icc*)
2886            coin_opt_cflags="-O3 -ip -mp1"
2887            coin_add_cflags=""
2888            coin_dbg_cflags="-g"
2889            # Check if -i_dynamic is necessary (for new glibc library)
2890            CFLAGS=
2891            cat >conftest.$ac_ext <<_ACEOF
2892/* confdefs.h.  */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h.  */
2897
2898int
2899main ()
2900{
2901int i=0; i++;
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext conftest$ac_exeext
2907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908  (eval $ac_link) 2>conftest.er1
2909  ac_status=$?
2910  grep -v '^ *+' conftest.er1 >conftest.err
2911  rm -f conftest.er1
2912  cat conftest.err >&5
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); } &&
2915         { ac_try='test -z "$ac_c_werror_flag"
2916                         || test ! -s conftest.err'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; } &&
2922         { ac_try='test -s conftest$ac_exeext'
2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924  (eval $ac_try) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; }; then
2928  :
2929else
2930  echo "$as_me: failed program was:" >&5
2931sed 's/^/| /' conftest.$ac_ext >&5
2932
2933coin_add_cflags="-i_dynamic $coin_add_cflags"
2934fi
2935rm -f conftest.err conftest.$ac_objext \
2936      conftest$ac_exeext conftest.$ac_ext
2937            ;;
2938          pgcc* | */pgcc*)
2939            coin_opt_cflags="-fast"
2940            coin_add_cflags="-Kieee -pc 64"
2941            coin_dbg_cflags="-g"
2942            ;;
2943        esac
2944        ;;
2945      *-ibm-*)
2946        case "$CC" in
2947          xlc* | */xlc* | mpxlc* | */mpxlc*)
2948            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2949            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2950            coin_dbg_cflags="-g"
2951          ;;
2952        esac
2953        ;;
2954      *-hp-*)
2955        coin_opt_cflags="-O"
2956        coin_add_cflags="-Ae"
2957        coin_dbg_cflags="-g"
2958        ;;
2959      *-*-solaris*)
2960        coin_opt_cflags="-xO4"
2961        coin_dbg_cflags="-g"
2962        ;;
2963      *-sgi-*)
2964        coin_opt_cflags="-O -OPT:Olimit=0"
2965        coin_dbg_cflags="-g"
2966        ;;
2967    esac
2968  fi
2969
2970  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2971    coin_dbg_cflags="-g"
2972  fi
2973
2974  if test -z "$coin_opt_cflags"; then
2975    # Try if -O option works if nothing else is set
2976    CFLAGS="-O"
2977    cat >conftest.$ac_ext <<_ACEOF
2978/* confdefs.h.  */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
2982/* end confdefs.h.  */
2983
2984int
2985main ()
2986{
2987int i=0; i++;
2988  ;
2989  return 0;
2990}
2991_ACEOF
2992rm -f conftest.$ac_objext conftest$ac_exeext
2993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2994  (eval $ac_link) 2>conftest.er1
2995  ac_status=$?
2996  grep -v '^ *+' conftest.er1 >conftest.err
2997  rm -f conftest.er1
2998  cat conftest.err >&5
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); } &&
3001         { ac_try='test -z "$ac_c_werror_flag"
3002                         || test ! -s conftest.err'
3003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004  (eval $ac_try) 2>&5
3005  ac_status=$?
3006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007  (exit $ac_status); }; } &&
3008         { ac_try='test -s conftest$ac_exeext'
3009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010  (eval $ac_try) 2>&5
3011  ac_status=$?
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); }; }; then
3014  coin_opt_cflags="-O"
3015else
3016  echo "$as_me: failed program was:" >&5
3017sed 's/^/| /' conftest.$ac_ext >&5
3018
3019fi
3020rm -f conftest.err conftest.$ac_objext \
3021      conftest$ac_exeext conftest.$ac_ext
3022  fi
3023
3024  # if PM doesn't want the warning messages, take them out
3025  if test x"$coin_skip_warn_cflags" = xyes; then
3026    coin_warn_cflags=
3027  fi
3028
3029  if test x${DBG_CFLAGS+set} != xset; then
3030    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3031  fi
3032  if test x${OPT_CFLAGS+set} != xset; then
3033    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3034  fi
3035
3036  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3037  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3038
3039  if test "$coin_debug_compile" = "true"; then
3040    CFLAGS="$DBG_CFLAGS"
3041  else
3042    CFLAGS="$OPT_CFLAGS"
3043  fi
3044else
3045  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3046  if test x${DBG_CFLAGS+set} != xset; then
3047    DBG_CFLAGS="$CFLAGS"
3048  fi
3049  if test x${OPT_CFLAGS+set} != xset; then
3050    OPT_CFLAGS="$CFLAGS"
3051  fi
3052fi
3053
3054# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3055
3056case "$CFLAGS" in
3057  *-mno-cygwin*)
3058    if test x${CPPFLAGS+set} != xset ; then
3059      CPPFLAGS="-mno-cygwin"
3060    else
3061      case "$CPPFLAGS" in
3062        *-mno-cygwin*)
3063          ;;
3064        *)
3065          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3066          ;;
3067      esac
3068    fi ;;
3069esac
3070
3071# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3072if test x$COIN_PRJCT != x; then
3073  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3074fi
3075
3076# Try if CFLAGS works
3077save_CFLAGS="$CFLAGS"
3078cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h.  */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h.  */
3084
3085int
3086main ()
3087{
3088int i=0; i++;
3089  ;
3090  return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext conftest$ac_exeext
3094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3095  (eval $ac_link) 2>conftest.er1
3096  ac_status=$?
3097  grep -v '^ *+' conftest.er1 >conftest.err
3098  rm -f conftest.er1
3099  cat conftest.err >&5
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); } &&
3102         { ac_try='test -z "$ac_c_werror_flag"
3103                         || test ! -s conftest.err'
3104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105  (eval $ac_try) 2>&5
3106  ac_status=$?
3107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108  (exit $ac_status); }; } &&
3109         { ac_try='test -s conftest$ac_exeext'
3110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111  (eval $ac_try) 2>&5
3112  ac_status=$?
3113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114  (exit $ac_status); }; }; then
3115  :
3116else
3117  echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120CFLAGS=
3121fi
3122rm -f conftest.err conftest.$ac_objext \
3123      conftest$ac_exeext conftest.$ac_ext
3124if test -z "$CFLAGS"; then
3125  { 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
3126echo "$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;}
3127  CFLAGS='-O'
3128  cat >conftest.$ac_ext <<_ACEOF
3129/* confdefs.h.  */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h.  */
3134
3135int
3136main ()
3137{
3138int i=0; i++;
3139  ;
3140  return 0;
3141}
3142_ACEOF
3143rm -f conftest.$ac_objext conftest$ac_exeext
3144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3145  (eval $ac_link) 2>conftest.er1
3146  ac_status=$?
3147  grep -v '^ *+' conftest.er1 >conftest.err
3148  rm -f conftest.er1
3149  cat conftest.err >&5
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); } &&
3152         { ac_try='test -z "$ac_c_werror_flag"
3153                         || test ! -s conftest.err'
3154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155  (eval $ac_try) 2>&5
3156  ac_status=$?
3157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); }; } &&
3159         { ac_try='test -s conftest$ac_exeext'
3160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161  (eval $ac_try) 2>&5
3162  ac_status=$?
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); }; }; then
3165  :
3166else
3167  echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
3170CFLAGS=
3171fi
3172rm -f conftest.err conftest.$ac_objext \
3173      conftest$ac_exeext conftest.$ac_ext
3174  if test -z "$CFLAGS"; then
3175    { 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
3176echo "$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;}
3177  fi
3178fi
3179
3180{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3181echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3182
3183
3184if test x"$MPICC" = x; then :; else
3185  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3186echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3187  CC="$MPICC"
3188fi
3189
3190# Correct the LD variable if we are using the MS or Intel-windows compiler
3191case "$CC" in
3192  clang* ) ;;
3193  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3194    case $build in
3195  *-mingw*)
3196    if test "${LD+set}" = set; then :; else
3197      LD=link
3198    fi
3199    ;;
3200 esac
3201 case $enable_doscompile in
3202   msvc)
3203     if test "x${LD+set}" = xset; then :; else
3204       LD=link
3205     fi
3206     ;;
3207 esac
3208
3209    ;;
3210esac
3211
3212ac_ext=c
3213ac_cpp='$CPP $CPPFLAGS'
3214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217
3218
3219
3220# Check if pkg-config is available (to setup addlibs file)
3221
3222
3223# Check whether --enable-pkg-config or --disable-pkg-config was given.
3224if test "${enable_pkg_config+set}" = set; then
3225  enableval="$enable_pkg_config"
3226  use_pkgconfig="$enableval"
3227else
3228  if test x$coin_cc_is_cl = xtrue; then
3229     use_pkgconfig=no
3230   else
3231     use_pkgconfig=yes
3232   fi
3233fi;
3234
3235if test $use_pkgconfig = yes ; then
3236  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3237    if test -n "$ac_tool_prefix"; then
3238  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3239set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3240echo "$as_me:$LINENO: checking for $ac_word" >&5
3241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3243  echo $ECHO_N "(cached) $ECHO_C" >&6
3244else
3245  if test -n "$PKG_CONFIG"; then
3246  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3247else
3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249for as_dir in $PATH
3250do
3251  IFS=$as_save_IFS
3252  test -z "$as_dir" && as_dir=.
3253  for ac_exec_ext in '' $ac_executable_extensions; do
3254  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3256    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257    break 2
3258  fi
3259done
3260done
3261
3262fi
3263fi
3264PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3265if test -n "$PKG_CONFIG"; then
3266  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3267echo "${ECHO_T}$PKG_CONFIG" >&6
3268else
3269  echo "$as_me:$LINENO: result: no" >&5
3270echo "${ECHO_T}no" >&6
3271fi
3272
3273fi
3274if test -z "$ac_cv_prog_PKG_CONFIG"; then
3275  ac_ct_PKG_CONFIG=$PKG_CONFIG
3276  # Extract the first word of "pkg-config", so it can be a program name with args.
3277set dummy pkg-config; ac_word=$2
3278echo "$as_me:$LINENO: checking for $ac_word" >&5
3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3281  echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283  if test -n "$ac_ct_PKG_CONFIG"; then
3284  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3285else
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289  IFS=$as_save_IFS
3290  test -z "$as_dir" && as_dir=.
3291  for ac_exec_ext in '' $ac_executable_extensions; do
3292  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3294    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295    break 2
3296  fi
3297done
3298done
3299
3300fi
3301fi
3302ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3303if test -n "$ac_ct_PKG_CONFIG"; then
3304  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3305echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3306else
3307  echo "$as_me:$LINENO: result: no" >&5
3308echo "${ECHO_T}no" >&6
3309fi
3310
3311  PKG_CONFIG=$ac_ct_PKG_CONFIG
3312else
3313  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3314fi
3315
3316  fi
3317  if test -n "$PKG_CONFIG"; then
3318    _pkg_min_version=0.16.0
3319    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3320echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3321    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3322      echo "$as_me:$LINENO: result: yes" >&5
3323echo "${ECHO_T}yes" >&6
3324    else
3325      echo "$as_me:$LINENO: result: no" >&5
3326echo "${ECHO_T}no" >&6
3327      PKG_CONFIG=""
3328    fi
3329  fi
3330
3331  # check if pkg-config supports the short-errors flag
3332  if test -n "$PKG_CONFIG" && \
3333    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3334    pkg_short_errors=" --short-errors "
3335  else
3336    pkg_short_errors=""
3337  fi
3338fi
3339
3340
3341
3342if test -n "$PKG_CONFIG"; then
3343  COIN_HAS_PKGCONFIG_TRUE=
3344  COIN_HAS_PKGCONFIG_FALSE='#'
3345else
3346  COIN_HAS_PKGCONFIG_TRUE='#'
3347  COIN_HAS_PKGCONFIG_FALSE=
3348fi
3349
3350
3351
3352# assemble pkg-config search path for installed projects
3353COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3354
3355# 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
3356# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3357# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3358if test "x${prefix}" = xNONE ; then
3359  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3360else
3361  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3362fi
3363
3364
3365# Check whether --with-coin-instdir or --without-coin-instdir was given.
3366if test "${with_coin_instdir+set}" = set; then
3367  withval="$with_coin_instdir"
3368  if test -d "$withval"; then : ; else
3369     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3370echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3371   { (exit 1); exit 1; }; }
3372   fi
3373   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3374
3375fi;
3376
3377
3378
3379# assemble additional pkg-config search paths for uninstalled projects
3380if test x$coin_projectdir = xyes ; then
3381  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3382  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3383  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3384  # 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)
3385  COIN_PKG_CONFIG_PATH_UNINSTALLED=
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  if test -e ../../coin_subdirs.txt ; then
3398    for i in `cat ../../coin_subdirs.txt` ; do
3399      if test -d ../../$i ; then
3400        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3401      fi
3402      if test -d ../../$i/pkgconfig ; then
3403        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3404      fi
3405    done
3406  fi
3407
3408
3409fi
3410
3411if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3412  { 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
3413echo "$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;}
3414fi
3415
3416
3417
3418# Initialize automake
3419{
3420
3421
3422
3423# START
3424
3425coin_disable_shared=no
3426# Test if force_shared has been set
3427if test "x" = xforce_shared; then
3428  if test x$enable_shared = xno; then
3429    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3430echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3431   { (exit 1); exit 1; }; }
3432  fi
3433  enable_shared=yes;
3434else
3435  # On Cygwin and AIX, building DLLs doesn't work
3436  case $build in
3437    *-cygwin*)
3438      coin_disable_shared=yes
3439      platform=Cygwin
3440    ;;
3441    *-aix*)
3442      coin_disable_shared=yes
3443      platform=AIX
3444    ;;
3445    *-mingw*)
3446      coin_disable_shared=yes
3447      platform="Msys"
3448#      case "$CXX" in
3449#        cl*)
3450#          coin_disable_shared=yes
3451#          platform="Msys with cl"
3452#      ;;
3453#      esac
3454    ;;
3455  esac
3456fi
3457if test x"$coin_disable_shared" = xyes; then
3458  if test x"$enable_shared" = xyes; then
3459    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3460echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3461  else
3462    # we don't disable shared, because it was not selected anyway
3463    coin_disable_shared=no
3464  fi
3465  enable_shared=no
3466fi
3467# By default, we only want the shared objects to be compiled
3468# Check whether --enable-static or --disable-static was given.
3469if test "${enable_static+set}" = set; then
3470  enableval="$enable_static"
3471  p=${PACKAGE-default}
3472    case $enableval in
3473    yes) enable_static=yes ;;
3474    no) enable_static=no ;;
3475    *)
3476     enable_static=no
3477      # Look at the argument we got.  We use all the common list separators.
3478      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3479      for pkg in $enableval; do
3480        IFS="$lt_save_ifs"
3481        if test "X$pkg" = "X$p"; then
3482          enable_static=yes
3483        fi
3484      done
3485      IFS="$lt_save_ifs"
3486      ;;
3487    esac
3488else
3489  enable_static=no
3490fi;
3491
3492
3493
3494
3495# Initialize automake
3496echo "$as_me:$LINENO: checking for egrep" >&5
3497echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3498if test "${ac_cv_prog_egrep+set}" = set; then
3499  echo $ECHO_N "(cached) $ECHO_C" >&6
3500else
3501  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3502    then ac_cv_prog_egrep='grep -E'
3503    else ac_cv_prog_egrep='egrep'
3504    fi
3505fi
3506echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3507echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3508 EGREP=$ac_cv_prog_egrep
3509
3510
3511echo "$as_me:$LINENO: checking whether ln -s works" >&5
3512echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3513LN_S=$as_ln_s
3514if test "$LN_S" = "ln -s"; then
3515  echo "$as_me:$LINENO: result: yes" >&5
3516echo "${ECHO_T}yes" >&6
3517else
3518  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3519echo "${ECHO_T}no, using $LN_S" >&6
3520fi
3521
3522am__api_version="1.9"
3523# Find a good install program.  We prefer a C program (faster),
3524# so one script is as good as another.  But avoid the broken or
3525# incompatible versions:
3526# SysV /etc/install, /usr/sbin/install
3527# SunOS /usr/etc/install
3528# IRIX /sbin/install
3529# AIX /bin/install
3530# AmigaOS /C/install, which installs bootblocks on floppy discs
3531# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3532# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3533# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3534# OS/2's system install, which has a completely different semantic
3535# ./install, which can be erroneously created by make from ./install.sh.
3536echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3537echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3538if test -z "$INSTALL"; then
3539if test "${ac_cv_path_install+set}" = set; then
3540  echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543for as_dir in $PATH
3544do
3545  IFS=$as_save_IFS
3546  test -z "$as_dir" && as_dir=.
3547  # Account for people who put trailing slashes in PATH elements.
3548case $as_dir/ in
3549  ./ | .// | /cC/* | \
3550  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3551  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3552  /usr/ucb/* ) ;;
3553  *)
3554    # OSF1 and SCO ODT 3.0 have their own names for install.
3555    # Don't use installbsd from OSF since it installs stuff as root
3556    # by default.
3557    for ac_prog in ginstall scoinst install; do
3558      for ac_exec_ext in '' $ac_executable_extensions; do
3559        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3560          if test $ac_prog = install &&
3561            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3562            # AIX install.  It has an incompatible calling convention.
3563            :
3564          elif test $ac_prog = install &&
3565            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566            # program-specific install script used by HP pwplus--don't use.
3567            :
3568          else
3569            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3570            break 3
3571          fi
3572        fi
3573      done
3574    done
3575    ;;
3576esac
3577done
3578
3579
3580fi
3581  if test "${ac_cv_path_install+set}" = set; then
3582    INSTALL=$ac_cv_path_install
3583  else
3584    # As a last resort, use the slow shell script.  We don't cache a
3585    # path for INSTALL within a source directory, because that will
3586    # break other packages using the cache if that directory is
3587    # removed, or if the path is relative.
3588    INSTALL=$ac_install_sh
3589  fi
3590fi
3591echo "$as_me:$LINENO: result: $INSTALL" >&5
3592echo "${ECHO_T}$INSTALL" >&6
3593
3594# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3595# It thinks the first close brace ends the variable substitution.
3596test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3597
3598test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3599
3600test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3601
3602echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3603echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3604# Just in case
3605sleep 1
3606echo timestamp > conftest.file
3607# Do `set' in a subshell so we don't clobber the current shell's
3608# arguments.  Must try -L first in case configure is actually a
3609# symlink; some systems play weird games with the mod time of symlinks
3610# (eg FreeBSD returns the mod time of the symlink's containing
3611# directory).
3612if (
3613   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3614   if test "$*" = "X"; then
3615      # -L didn't work.
3616      set X `ls -t $srcdir/configure conftest.file`
3617   fi
3618   rm -f conftest.file
3619   if test "$*" != "X $srcdir/configure conftest.file" \
3620      && test "$*" != "X conftest.file $srcdir/configure"; then
3621
3622      # If neither matched, then we have a broken ls.  This can happen
3623      # if, for instance, CONFIG_SHELL is bash and it inherits a
3624      # broken ls alias from the environment.  This has actually
3625      # happened.  Such a system could not be considered "sane".
3626      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3627alias in your environment" >&5
3628echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3629alias in your environment" >&2;}
3630   { (exit 1); exit 1; }; }
3631   fi
3632
3633   test "$2" = conftest.file
3634   )
3635then
3636   # Ok.
3637   :
3638else
3639   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3640Check your system clock" >&5
3641echo "$as_me: error: newly created file is older than distributed files!
3642Check your system clock" >&2;}
3643   { (exit 1); exit 1; }; }
3644fi
3645echo "$as_me:$LINENO: result: yes" >&5
3646echo "${ECHO_T}yes" >&6
3647test "$program_prefix" != NONE &&
3648  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3649# Use a double $ so make ignores it.
3650test "$program_suffix" != NONE &&
3651  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3652# Double any \ or $.  echo might interpret backslashes.
3653# By default was `s,x,x', remove it if useless.
3654cat <<\_ACEOF >conftest.sed
3655s/[\\$]/&&/g;s/;s,x,x,$//
3656_ACEOF
3657program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3658rm conftest.sed
3659
3660# expand $ac_aux_dir to an absolute path
3661am_aux_dir=`cd $ac_aux_dir && pwd`
3662
3663test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3664# Use eval to expand $SHELL
3665if eval "$MISSING --run true"; then
3666  am_missing_run="$MISSING --run "
3667else
3668  am_missing_run=
3669  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3670echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3671fi
3672
3673if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3674  # We used to keeping the `.' as first argument, in order to
3675  # allow $(mkdir_p) to be used without argument.  As in
3676  #   $(mkdir_p) $(somedir)
3677  # where $(somedir) is conditionally defined.  However this is wrong
3678  # for two reasons:
3679  #  1. if the package is installed by a user who cannot write `.'
3680  #     make install will fail,
3681  #  2. the above comment should most certainly read
3682  #     $(mkdir_p) $(DESTDIR)$(somedir)
3683  #     so it does not work when $(somedir) is undefined and
3684  #     $(DESTDIR) is not.
3685  #  To support the latter case, we have to write
3686  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3687  #  so the `.' trick is pointless.
3688  mkdir_p='mkdir -p --'
3689else
3690  # On NextStep and OpenStep, the `mkdir' command does not
3691  # recognize any option.  It will interpret all options as
3692  # directories to create, and then abort because `.' already
3693  # exists.
3694  for d in ./-p ./--version;
3695  do
3696    test -d $d && rmdir $d
3697  done
3698  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3699  if test -f "$ac_aux_dir/mkinstalldirs"; then
3700    mkdir_p='$(mkinstalldirs)'
3701  else
3702    mkdir_p='$(install_sh) -d'
3703  fi
3704fi
3705
3706for ac_prog in gawk mawk nawk awk
3707do
3708  # Extract the first word of "$ac_prog", so it can be a program name with args.
3709set dummy $ac_prog; ac_word=$2
3710echo "$as_me:$LINENO: checking for $ac_word" >&5
3711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712if test "${ac_cv_prog_AWK+set}" = set; then
3713  echo $ECHO_N "(cached) $ECHO_C" >&6
3714else
3715  if test -n "$AWK"; then
3716  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3717else
3718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719for as_dir in $PATH
3720do
3721  IFS=$as_save_IFS
3722  test -z "$as_dir" && as_dir=.
3723  for ac_exec_ext in '' $ac_executable_extensions; do
3724  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725    ac_cv_prog_AWK="$ac_prog"
3726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3727    break 2
3728  fi
3729done
3730done
3731
3732fi
3733fi
3734AWK=$ac_cv_prog_AWK
3735if test -n "$AWK"; then
3736  echo "$as_me:$LINENO: result: $AWK" >&5
3737echo "${ECHO_T}$AWK" >&6
3738else
3739  echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6
3741fi
3742
3743  test -n "$AWK" && break
3744done
3745
3746echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3747echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3748set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3749if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3750  echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752  cat >conftest.make <<\_ACEOF
3753all:
3754        @echo 'ac_maketemp="$(MAKE)"'
3755_ACEOF
3756# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3757eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3758if test -n "$ac_maketemp"; then
3759  eval ac_cv_prog_make_${ac_make}_set=yes
3760else
3761  eval ac_cv_prog_make_${ac_make}_set=no
3762fi
3763rm -f conftest.make
3764fi
3765if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3766  echo "$as_me:$LINENO: result: yes" >&5
3767echo "${ECHO_T}yes" >&6
3768  SET_MAKE=
3769else
3770  echo "$as_me:$LINENO: result: no" >&5
3771echo "${ECHO_T}no" >&6
3772  SET_MAKE="MAKE=${MAKE-make}"
3773fi
3774
3775rm -rf .tst 2>/dev/null
3776mkdir .tst 2>/dev/null
3777if test -d .tst; then
3778  am__leading_dot=.
3779else
3780  am__leading_dot=_
3781fi
3782rmdir .tst 2>/dev/null
3783
3784DEPDIR="${am__leading_dot}deps"
3785
3786          ac_config_commands="$ac_config_commands depfiles"
3787
3788
3789am_make=${MAKE-make}
3790cat > confinc << 'END'
3791am__doit:
3792        @echo done
3793.PHONY: am__doit
3794END
3795# If we don't find an include directive, just comment out the code.
3796echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3797echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3798am__include="#"
3799am__quote=
3800_am_result=none
3801# First try GNU make style include.
3802echo "include confinc" > confmf
3803# We grep out `Entering directory' and `Leaving directory'
3804# messages which can occur if `w' ends up in MAKEFLAGS.
3805# In particular we don't look at `^make:' because GNU make might
3806# be invoked under some other name (usually "gmake"), in which
3807# case it prints its new name instead of `make'.
3808if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3809   am__include=include
3810   am__quote=
3811   _am_result=GNU
3812fi
3813# Now try BSD make style include.
3814if test "$am__include" = "#"; then
3815   echo '.include "confinc"' > confmf
3816   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3817      am__include=.include
3818      am__quote="\""
3819      _am_result=BSD
3820   fi
3821fi
3822
3823
3824echo "$as_me:$LINENO: result: $_am_result" >&5
3825echo "${ECHO_T}$_am_result" >&6
3826rm -f confinc confmf
3827
3828# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3829if test "${enable_dependency_tracking+set}" = set; then
3830  enableval="$enable_dependency_tracking"
3831
3832fi;
3833if test "x$enable_dependency_tracking" != xno; then
3834  am_depcomp="$ac_aux_dir/depcomp"
3835  AMDEPBACKSLASH='\'
3836fi
3837
3838
3839if test "x$enable_dependency_tracking" != xno; then
3840  AMDEP_TRUE=
3841  AMDEP_FALSE='#'
3842else
3843  AMDEP_TRUE='#'
3844  AMDEP_FALSE=
3845fi
3846
3847
3848
3849
3850
3851
3852# AC_MSG_NOTICE([Beginning automake initialisation.])
3853# Stuff for automake
3854# test to see if srcdir already configured
3855if test "`cd $srcdir && pwd`" != "`pwd`" &&
3856   test -f $srcdir/config.status; then
3857  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3858echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3859   { (exit 1); exit 1; }; }
3860fi
3861
3862# test whether we have cygpath
3863if test -z "$CYGPATH_W"; then
3864  if (cygpath --version) >/dev/null 2>/dev/null; then
3865    CYGPATH_W='cygpath -w'
3866  else
3867    CYGPATH_W=echo
3868  fi
3869fi
3870
3871
3872# Define the identity of the package.
3873 PACKAGE='thirdpartyglpk'
3874 VERSION='1.9.1'
3875
3876
3877cat >>confdefs.h <<_ACEOF
3878#define PACKAGE "$PACKAGE"
3879_ACEOF
3880
3881
3882cat >>confdefs.h <<_ACEOF
3883#define VERSION "$VERSION"
3884_ACEOF
3885
3886# Some tools Automake needs.
3887
3888ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3889
3890
3891AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3892
3893
3894AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3895
3896
3897AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3898
3899
3900MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3901
3902install_sh=${install_sh-"$am_aux_dir/install-sh"}
3903
3904# Installed binaries are usually stripped using `strip' when the user
3905# run `make install-strip'.  However `strip' might not be the right
3906# tool to use in cross-compilation environments, therefore Automake
3907# will honor the `STRIP' environment variable to overrule this program.
3908if test "$cross_compiling" != no; then
3909  if test -n "$ac_tool_prefix"; then
3910  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3911set dummy ${ac_tool_prefix}strip; ac_word=$2
3912echo "$as_me:$LINENO: checking for $ac_word" >&5
3913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914if test "${ac_cv_prog_STRIP+set}" = set; then
3915  echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917  if test -n "$STRIP"; then
3918  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3919else
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923  IFS=$as_save_IFS
3924  test -z "$as_dir" && as_dir=.
3925  for ac_exec_ext in '' $ac_executable_extensions; do
3926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929    break 2
3930  fi
3931done
3932done
3933
3934fi
3935fi
3936STRIP=$ac_cv_prog_STRIP
3937if test -n "$STRIP"; then
3938  echo "$as_me:$LINENO: result: $STRIP" >&5
3939echo "${ECHO_T}$STRIP" >&6
3940else
3941  echo "$as_me:$LINENO: result: no" >&5
3942echo "${ECHO_T}no" >&6
3943fi
3944
3945fi
3946if test -z "$ac_cv_prog_STRIP"; then
3947  ac_ct_STRIP=$STRIP
3948  # Extract the first word of "strip", so it can be a program name with args.
3949set dummy strip; ac_word=$2
3950echo "$as_me:$LINENO: checking for $ac_word" >&5
3951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3952if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3953  echo $ECHO_N "(cached) $ECHO_C" >&6
3954else
3955  if test -n "$ac_ct_STRIP"; then
3956  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3957else
3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH
3960do
3961  IFS=$as_save_IFS
3962  test -z "$as_dir" && as_dir=.
3963  for ac_exec_ext in '' $ac_executable_extensions; do
3964  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3965    ac_cv_prog_ac_ct_STRIP="strip"
3966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967    break 2
3968  fi
3969done
3970done
3971
3972  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3973fi
3974fi
3975ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3976if test -n "$ac_ct_STRIP"; then
3977  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3978echo "${ECHO_T}$ac_ct_STRIP" >&6
3979else
3980  echo "$as_me:$LINENO: result: no" >&5
3981echo "${ECHO_T}no" >&6
3982fi
3983
3984  STRIP=$ac_ct_STRIP
3985else
3986  STRIP="$ac_cv_prog_STRIP"
3987fi
3988
3989fi
3990INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3991
3992# We need awk for the "check" target.  The system "awk" is bad on
3993# some platforms.
3994# Always define AMTAR for backward compatibility.
3995
3996AMTAR=${AMTAR-"${am_missing_run}tar"}
3997
3998am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3999
4000
4001
4002
4003depcc="$CC"   am_compiler_list=
4004
4005echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4006echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4007if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4008  echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
4010  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4011  # We make a subdir and do the tests there.  Otherwise we can end up
4012  # making bogus files that we don't know about and never remove.  For
4013  # instance it was reported that on HP-UX the gcc test will end up
4014  # making a dummy file named `D' -- because `-MD' means `put the output
4015  # in D'.
4016  mkdir conftest.dir
4017  # Copy depcomp to subdir because otherwise we won't find it if we're
4018  # using a relative directory.
4019  cp "$am_depcomp" conftest.dir
4020  cd conftest.dir
4021  # We will build objects and dependencies in a subdirectory because
4022  # it helps to detect inapplicable dependency modes.  For instance
4023  # both Tru64's cc and ICC support -MD to output dependencies as a
4024  # side effect of compilation, but ICC will put the dependencies in
4025  # the current directory while Tru64 will put them in the object
4026  # directory.
4027  mkdir sub
4028
4029  am_cv_CC_dependencies_compiler_type=none
4030  if test "$am_compiler_list" = ""; then
4031     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4032  fi
4033  for depmode in $am_compiler_list; do
4034    # Setup a source with many dependencies, because some compilers
4035    # like to wrap large dependency lists on column 80 (with \), and
4036    # we should not choose a depcomp mode which is confused by this.
4037    #
4038    # We need to recreate these files for each test, as the compiler may
4039    # overwrite some of them when testing with obscure command lines.
4040    # This happens at least with the AIX C compiler.
4041    : > sub/conftest.c
4042    for i in 1 2 3 4 5 6; do
4043      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4044      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4045      # Solaris 8's {/usr,}/bin/sh.
4046      touch sub/conftst$i.h
4047    done
4048    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4049
4050    case $depmode in
4051    nosideeffect)
4052      # after this tag, mechanisms are not by side-effect, so they'll
4053      # only be used when explicitly requested
4054      if test "x$enable_dependency_tracking" = xyes; then
4055        continue
4056      else
4057        break
4058      fi
4059      ;;
4060    none) break ;;
4061    esac
4062    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4063    # mode.  It turns out that the SunPro C++ compiler does not properly
4064    # handle `-M -o', and we need to detect this.
4065    if depmode=$depmode \
4066       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4067       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4068       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4069         >/dev/null 2>conftest.err &&
4070       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4071       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4072       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4073      # icc doesn't choke on unknown options, it will just issue warnings
4074      # or remarks (even with -Werror).  So we grep stderr for any message
4075      # that says an option was ignored or not supported.
4076      # When given -MP, icc 7.0 and 7.1 complain thusly:
4077      #   icc: Command line warning: ignoring option '-M'; no argument required
4078      # The diagnosis changed in icc 8.0:
4079      #   icc: Command line remark: option '-MP' not supported
4080      if (grep 'ignoring option' conftest.err ||
4081          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4082        am_cv_CC_dependencies_compiler_type=$depmode
4083        break
4084      fi
4085    fi
4086  done
4087
4088  cd ..
4089  rm -rf conftest.dir
4090else
4091  am_cv_CC_dependencies_compiler_type=none
4092fi
4093
4094fi
4095echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4096echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4097CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4098
4099
4100
4101if
4102  test "x$enable_dependency_tracking" != xno \
4103  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4104  am__fastdepCC_TRUE=
4105  am__fastdepCC_FALSE='#'
4106else
4107  am__fastdepCC_TRUE='#'
4108  am__fastdepCC_FALSE=
4109fi
4110
4111
4112
4113echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4114echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4115    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4116if test "${enable_maintainer_mode+set}" = set; then
4117  enableval="$enable_maintainer_mode"
4118  USE_MAINTAINER_MODE=$enableval
4119else
4120  USE_MAINTAINER_MODE=no
4121fi;
4122  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4123echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4124
4125
4126if test $USE_MAINTAINER_MODE = yes; then
4127  MAINTAINER_MODE_TRUE=
4128  MAINTAINER_MODE_FALSE='#'
4129else
4130  MAINTAINER_MODE_TRUE='#'
4131  MAINTAINER_MODE_FALSE=
4132fi
4133
4134  MAINT=$MAINTAINER_MODE_TRUE
4135
4136
4137
4138coin_have_externals=no
4139if test "$enable_maintainer_mode" = yes; then
4140
4141  # If maintainer mode is chosen, we make sure that the correct versions
4142  # of the tools are used, and that we know where libtool.m4 is (to
4143  # recreate acinclude.m4)
4144
4145
4146  LIBTOOLM4=
4147  # Normally, $HOME
4148  AUTOTOOLS_DFLT=$HOME
4149
4150  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4151echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4152if test "${ac_cv_use_correct_autotools+set}" = set; then
4153  echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155  ac_cv_use_correct_autotools=check
4156fi
4157echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4158echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4159
4160  if test $ac_cv_use_correct_autotools = check; then
4161    ac_cv_use_correct_autotools=yes
4162    # Check if we have autoconf
4163    # Extract the first word of "autoconf", so it can be a program name with args.
4164set dummy autoconf; ac_word=$2
4165echo "$as_me:$LINENO: checking for $ac_word" >&5
4166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167if test "${ac_cv_prog_have_autoconf+set}" = set; then
4168  echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170  if test -n "$have_autoconf"; then
4171  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4172else
4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH
4175do
4176  IFS=$as_save_IFS
4177  test -z "$as_dir" && as_dir=.
4178  for ac_exec_ext in '' $ac_executable_extensions; do
4179  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180    ac_cv_prog_have_autoconf="yes"
4181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182    break 2
4183  fi
4184done
4185done
4186
4187  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4188fi
4189fi
4190have_autoconf=$ac_cv_prog_have_autoconf
4191if test -n "$have_autoconf"; then
4192  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4193echo "${ECHO_T}$have_autoconf" >&6
4194else
4195  echo "$as_me:$LINENO: result: no" >&5
4196echo "${ECHO_T}no" >&6
4197fi
4198
4199    if test $have_autoconf = no; then
4200      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4201echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4202   { (exit 1); exit 1; }; }
4203    fi
4204
4205    # Check whether autoconf is the correct version
4206    correct_version='2.59'
4207    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4208    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4209echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4210    autoconf --version > confauto.out 2>&1
4211    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4212      echo "$as_me:$LINENO: result: yes" >&5
4213echo "${ECHO_T}yes" >&6
4214    else
4215      rm -f confauto.out
4216      echo "$as_me:$LINENO: result: no" >&5
4217echo "${ECHO_T}no" >&6
4218      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4219echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4220   { (exit 1); exit 1; }; }
4221    fi
4222    rm -f confauto.out
4223
4224    # Check if the executable autoconf is picked up from the correct location
4225    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4226echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4227    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4228    autoconf_dir=`cd $autoconf_dir; pwd`
4229    if test x$AUTOTOOLS_DIR = x; then
4230      want_dir=$AUTOTOOLS_DFLT/bin
4231    else
4232      want_dir=$AUTOTOOLS_DIR/bin
4233    fi
4234    if test $autoconf_dir = `cd $want_dir; pwd`; then
4235      echo "$as_me:$LINENO: result: yes" >&5
4236echo "${ECHO_T}yes" >&6
4237    else
4238      rm -f confauto.out
4239      echo "$as_me:$LINENO: result: no" >&5
4240echo "${ECHO_T}no" >&6
4241      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4242echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4243   { (exit 1); exit 1; }; }
4244    fi
4245
4246    # Check if we have automake
4247    # Extract the first word of "automake", so it can be a program name with args.
4248set dummy automake; ac_word=$2
4249echo "$as_me:$LINENO: checking for $ac_word" >&5
4250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4251if test "${ac_cv_prog_have_automake+set}" = set; then
4252  echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254  if test -n "$have_automake"; then
4255  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4256else
4257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258for as_dir in $PATH
4259do
4260  IFS=$as_save_IFS
4261  test -z "$as_dir" && as_dir=.
4262  for ac_exec_ext in '' $ac_executable_extensions; do
4263  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264    ac_cv_prog_have_automake="yes"
4265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266    break 2
4267  fi
4268done
4269done
4270
4271  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4272fi
4273fi
4274have_automake=$ac_cv_prog_have_automake
4275if test -n "$have_automake"; then
4276  echo "$as_me:$LINENO: result: $have_automake" >&5
4277echo "${ECHO_T}$have_automake" >&6
4278else
4279  echo "$as_me:$LINENO: result: no" >&5
4280echo "${ECHO_T}no" >&6
4281fi
4282
4283    if test $have_automake = no; then
4284      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4285echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4286   { (exit 1); exit 1; }; }
4287    fi
4288
4289    # Check whether automake is the correct version
4290    correct_version='1.9.6'
4291    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4292    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4293echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4294    automake --version > confauto.out 2>&1
4295    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4296      echo "$as_me:$LINENO: result: yes" >&5
4297echo "${ECHO_T}yes" >&6
4298    else
4299      rm -f confauto.out
4300      echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6
4302      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4303echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4304   { (exit 1); exit 1; }; }
4305    fi
4306    rm -f confauto.out
4307
4308    # Check if the executable automake is picked up from the correct location
4309    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4310echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4311    automake_dir=`which automake | sed -e 's=/automake=='`
4312    automake_dir=`cd $automake_dir; pwd`
4313    if test x$AUTOTOOLS_DIR = x; then
4314      want_dir=$AUTOTOOLS_DFLT/bin
4315    else
4316      want_dir=$AUTOTOOLS_DIR/bin
4317    fi
4318    if test $automake_dir = `cd $want_dir; pwd`; then
4319      echo "$as_me:$LINENO: result: yes" >&5
4320echo "${ECHO_T}yes" >&6
4321    else
4322      rm -f confauto.out
4323      echo "$as_me:$LINENO: result: no" >&5
4324echo "${ECHO_T}no" >&6
4325      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4326echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4327   { (exit 1); exit 1; }; }
4328    fi
4329
4330    # Check if this is the correct version of libtool (with escaped dots)
4331    if test x$AUTOTOOLS_DIR = x; then
4332      want_dir=$AUTOTOOLS_DFLT/share
4333    else
4334      want_dir=$AUTOTOOLS_DIR/share
4335    fi
4336    correct_version='1.5.22'
4337    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4338    if test -r $want_dir/libtool/ltmain.sh; then
4339  have_ltmain=yes
4340  :
4341else
4342  have_ltmain=no
4343  :
4344fi
4345
4346    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4347echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4348    if test $have_ltmain = yes; then
4349    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4350        echo "$as_me:$LINENO: result: yes" >&5
4351echo "${ECHO_T}yes" >&6
4352      else
4353        echo "$as_me:$LINENO: result: no" >&5
4354echo "${ECHO_T}no" >&6
4355        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4356echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4357   { (exit 1); exit 1; }; }
4358      fi
4359    else
4360      echo "$as_me:$LINENO: result: no" >&5
4361echo "${ECHO_T}no" >&6
4362      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4363echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4364   { (exit 1); exit 1; }; }
4365    fi
4366  fi
4367
4368  # Check if we can find the libtool file
4369  if test x$AUTOTOOLS_DIR = x; then
4370    want_dir=$AUTOTOOLS_DFLT/share
4371  else
4372    want_dir=$AUTOTOOLS_DIR/share
4373  fi
4374  if test -r $want_dir/aclocal/libtool.m4; then
4375  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4376  :
4377else
4378  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4379echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4380   { (exit 1); exit 1; }; }
4381  :
4382fi
4383
4384
4385  # Check if we have an Dependencies file
4386  if test -r $srcdir/Dependencies; then
4387    coin_have_externals=yes
4388  fi
4389  # Check if subversion is installed and understands https
4390  # Extract the first word of "svn", so it can be a program name with args.
4391set dummy svn; ac_word=$2
4392echo "$as_me:$LINENO: checking for $ac_word" >&5
4393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4394if test "${ac_cv_prog_have_svn+set}" = set; then
4395  echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397  if test -n "$have_svn"; then
4398  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4399else
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403  IFS=$as_save_IFS
4404  test -z "$as_dir" && as_dir=.
4405  for ac_exec_ext in '' $ac_executable_extensions; do
4406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407    ac_cv_prog_have_svn="yes"
4408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409    break 2
4410  fi
4411done
4412done
4413
4414  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4415fi
4416fi
4417have_svn=$ac_cv_prog_have_svn
4418if test -n "$have_svn"; then
4419  echo "$as_me:$LINENO: result: $have_svn" >&5
4420echo "${ECHO_T}$have_svn" >&6
4421else
4422  echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6
4424fi
4425
4426  if test x$have_svn = xyes; then
4427    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4428echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4429if test "${ac_cv_svn_understands_https+set}" = set; then
4430  echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432  svn --version > confauto.out 2>&1
4433                    if $EGREP https confauto.out >/dev/null 2>&1; then
4434                      ac_cv_svn_understands_https=yes
4435                    else
4436                      ac_cv_svn_understands_https=no
4437                      have_svn=no
4438                      ac_cv_prog_have_svn=no
4439                    fi
4440                    rm -f confauto.out
4441fi
4442echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4443echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4444  fi
4445
4446  # Find the location of the BuildTools directory
4447  BUILDTOOLSDIR=
4448  if test -r $srcdir/BuildTools/coin.m4; then
4449    BUILDTOOLSDIR=$srcdir/BuildTools
4450  else
4451    if test -r $srcdir/../BuildTools/coin.m4; then
4452      BUILDTOOLSDIR=$srcdir/../BuildTools
4453    else
4454      if test -r $srcdir/../../BuildTools/coin.m4; then
4455        BUILDTOOLSDIR=$srcdir/../../BuildTools
4456      else
4457        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4458echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4459   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4460      fi
4461    fi
4462  fi
4463
4464
4465  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4466  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4467    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4468  fi
4469
4470  # The following variable is set to the name of the directory where
4471  # the autotool scripts are located
4472
4473  AUX_DIR=$ac_aux_dir
4474fi
4475
4476# helpful variable for the base directory of this package
4477abs_source_dir=`cd $srcdir; pwd`
4478
4479
4480# Stuff for example Makefiles
4481if test x$prefix = xNONE; then
4482  full_prefix=$ac_default_prefix
4483else
4484  full_prefix=$prefix
4485fi
4486full_prefix=`cd $full_prefix ; pwd`
4487
4488abs_lib_dir=$full_prefix/lib
4489
4490abs_include_dir=$full_prefix/include
4491
4492abs_bin_dir=$full_prefix/bin
4493
4494
4495
4496if test $coin_have_externals = yes && test x$have_svn = xyes; then
4497  HAVE_EXTERNALS_TRUE=
4498  HAVE_EXTERNALS_FALSE='#'
4499else
4500  HAVE_EXTERNALS_TRUE='#'
4501  HAVE_EXTERNALS_FALSE=
4502fi
4503
4504
4505# AC_MSG_NOTICE([End automake initialisation.])
4506
4507
4508
4509LIBTOOL=
4510if test -r ../libtool; then
4511  coin_config_dir=..
4512  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4513fi
4514if test "x$LIBTOOL" = x; then
4515  if test -r ../../libtool; then
4516    coin_config_dir=../..
4517    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4518  fi
4519fi
4520
4521if test "x$LIBTOOL" = x; then
4522# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4523  # Stuff for libtool
4524  # Check whether --enable-shared or --disable-shared was given.
4525if test "${enable_shared+set}" = set; then
4526  enableval="$enable_shared"
4527  p=${PACKAGE-default}
4528    case $enableval in
4529    yes) enable_shared=yes ;;
4530    no) enable_shared=no ;;
4531    *)
4532      enable_shared=no
4533      # Look at the argument we got.  We use all the common list separators.
4534      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4535      for pkg in $enableval; do
4536        IFS="$lt_save_ifs"
4537        if test "X$pkg" = "X$p"; then
4538          enable_shared=yes
4539        fi
4540      done
4541      IFS="$lt_save_ifs"
4542      ;;
4543    esac
4544else
4545  enable_shared=yes
4546fi;
4547
4548# Check whether --enable-fast-install or --disable-fast-install was given.
4549if test "${enable_fast_install+set}" = set; then
4550  enableval="$enable_fast_install"
4551  p=${PACKAGE-default}
4552    case $enableval in
4553    yes) enable_fast_install=yes ;;
4554    no) enable_fast_install=no ;;
4555    *)
4556      enable_fast_install=no
4557      # Look at the argument we got.  We use all the common list separators.
4558      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4559      for pkg in $enableval; do
4560        IFS="$lt_save_ifs"
4561        if test "X$pkg" = "X$p"; then
4562          enable_fast_install=yes
4563        fi
4564      done
4565      IFS="$lt_save_ifs"
4566      ;;
4567    esac
4568else
4569  enable_fast_install=yes
4570fi;
4571
4572echo "$as_me:$LINENO: checking host system type" >&5
4573echo $ECHO_N "checking host system type... $ECHO_C" >&6
4574if test "${ac_cv_host+set}" = set; then
4575  echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577  ac_cv_host_alias=$host_alias
4578test -z "$ac_cv_host_alias" &&
4579  ac_cv_host_alias=$ac_cv_build_alias
4580ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4581  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4582echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4583   { (exit 1); exit 1; }; }
4584
4585fi
4586echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4587echo "${ECHO_T}$ac_cv_host" >&6
4588host=$ac_cv_host
4589host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4590host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4591host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4592
4593
4594echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4595echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4596if test "${lt_cv_path_SED+set}" = set; then
4597  echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599  # Loop through the user's path and test for sed and gsed.
4600# Then use that list of sed's as ones to test for truncation.
4601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602for as_dir in $PATH
4603do
4604  IFS=$as_save_IFS
4605  test -z "$as_dir" && as_dir=.
4606  for lt_ac_prog in sed gsed; do
4607    for ac_exec_ext in '' $ac_executable_extensions; do
4608      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4609        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4610      fi
4611    done
4612  done
4613done
4614lt_ac_max=0
4615lt_ac_count=0
4616# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4617# along with /bin/sed that truncates output.
4618for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4619  test ! -f $lt_ac_sed && continue
4620  cat /dev/null > conftest.in
4621  lt_ac_count=0
4622  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4623  # Check for GNU sed and select it if it is found.
4624  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4625    lt_cv_path_SED=$lt_ac_sed
4626    break
4627  fi
4628  while true; do
4629    cat conftest.in conftest.in >conftest.tmp
4630    mv conftest.tmp conftest.in
4631    cp conftest.in conftest.nl
4632    echo >>conftest.nl
4633    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4634    cmp -s conftest.out conftest.nl || break
4635    # 10000 chars as input seems more than enough
4636    test $lt_ac_count -gt 10 && break
4637    lt_ac_count=`expr $lt_ac_count + 1`
4638    if test $lt_ac_count -gt $lt_ac_max; then
4639      lt_ac_max=$lt_ac_count
4640      lt_cv_path_SED=$lt_ac_sed
4641    fi
4642  done
4643done
4644
4645fi
4646
4647SED=$lt_cv_path_SED
4648echo "$as_me:$LINENO: result: $SED" >&5
4649echo "${ECHO_T}$SED" >&6
4650
4651
4652# Check whether --with-gnu-ld or --without-gnu-ld was given.
4653if test "${with_gnu_ld+set}" = set; then
4654  withval="$with_gnu_ld"
4655  test "$withval" = no || with_gnu_ld=yes
4656else
4657  with_gnu_ld=no
4658fi;
4659ac_prog=ld
4660if test "$GCC" = yes; then
4661  # Check if gcc -print-prog-name=ld gives a path.
4662  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4663echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4664  case $host in
4665  *-*-mingw*)
4666    # gcc leaves a trailing carriage return which upsets mingw
4667    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4668  *)
4669    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4670  esac
4671  case $ac_prog in
4672    # Accept absolute paths.
4673    [\\/]* | ?:[\\/]*)
4674      re_direlt='/[^/][^/]*/\.\./'
4675      # Canonicalize the pathname of ld
4676      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4677      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4678        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4679      done
4680      test -z "$LD" && LD="$ac_prog"
4681      ;;
4682  "")
4683    # If it fails, then pretend we aren't using GCC.
4684    ac_prog=ld
4685    ;;
4686  *)
4687    # If it is relative, then search for the first ld in PATH.
4688    with_gnu_ld=unknown
4689    ;;
4690  esac
4691elif test "$with_gnu_ld" = yes; then
4692  echo "$as_me:$LINENO: checking for GNU ld" >&5
4693echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4694else
4695  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4696echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4697fi
4698if test "${lt_cv_path_LD+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701  if test -z "$LD"; then
4702  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4703  for ac_dir in $PATH; do
4704    IFS="$lt_save_ifs"
4705    test -z "$ac_dir" && ac_dir=.
4706    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4707      lt_cv_path_LD="$ac_dir/$ac_prog"
4708      # Check to see if the program is GNU ld.  I'd rather use --version,
4709      # but apparently some variants of GNU ld only accept -v.
4710      # Break only if it was the GNU/non-GNU ld that we prefer.
4711      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4712      *GNU* | *'with BFD'*)
4713        test "$with_gnu_ld" != no && break
4714        ;;
4715      *)
4716        test "$with_gnu_ld" != yes && break
4717        ;;
4718      esac
4719    fi
4720  done
4721  IFS="$lt_save_ifs"
4722else
4723  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4724fi
4725fi
4726
4727LD="$lt_cv_path_LD"
4728if test -n "$LD"; then
4729  echo "$as_me:$LINENO: result: $LD" >&5
4730echo "${ECHO_T}$LD" >&6
4731else
4732  echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6
4734fi
4735test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4736echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4737   { (exit 1); exit 1; }; }
4738echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4739echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4740if test "${lt_cv_prog_gnu_ld+set}" = set; then
4741  echo $ECHO_N "(cached) $ECHO_C" >&6
4742else
4743  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4744case `$LD -v 2>&1 </dev/null` in
4745*GNU* | *'with BFD'*)
4746  lt_cv_prog_gnu_ld=yes
4747  ;;
4748*)
4749  lt_cv_prog_gnu_ld=no
4750  ;;
4751esac
4752fi
4753echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4754echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4755with_gnu_ld=$lt_cv_prog_gnu_ld
4756
4757
4758echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4759echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4760if test "${lt_cv_ld_reload_flag+set}" = set; then
4761  echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763  lt_cv_ld_reload_flag='-r'
4764fi
4765echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4766echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4767reload_flag=$lt_cv_ld_reload_flag
4768case $reload_flag in
4769"" | " "*) ;;
4770*) reload_flag=" $reload_flag" ;;
4771esac
4772reload_cmds='$LD$reload_flag -o $output$reload_objs'
4773case $host_os in
4774  darwin*)
4775    if test "$GCC" = yes; then
4776      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4777    else
4778      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4779    fi
4780    ;;
4781esac
4782
4783echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4784echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4785if test "${lt_cv_path_NM+set}" = set; then
4786  echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788  if test -n "$NM"; then
4789  # Let the user override the test.
4790  lt_cv_path_NM="$NM"
4791else
4792  lt_nm_to_check="${ac_tool_prefix}nm"
4793  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4794    lt_nm_to_check="$lt_nm_to_check nm"
4795  fi
4796  for lt_tmp_nm in $lt_nm_to_check; do
4797    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4798    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4799      IFS="$lt_save_ifs"
4800      test -z "$ac_dir" && ac_dir=.
4801      tmp_nm="$ac_dir/$lt_tmp_nm"
4802      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4803        # Check to see if the nm accepts a BSD-compat flag.
4804        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4805        #   nm: unknown option "B" ignored
4806        # Tru64's nm complains that /dev/null is an invalid object file
4807        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4808        */dev/null* | *'Invalid file or object type'*)
4809          lt_cv_path_NM="$tmp_nm -B"
4810          break
4811          ;;
4812        *)
4813          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4814          */dev/null*)
4815            lt_cv_path_NM="$tmp_nm -p"
4816            break
4817            ;;
4818          *)
4819            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4820            continue # so that we can try to find one that supports BSD flags
4821            ;;
4822          esac
4823          ;;
4824        esac
4825      fi
4826    done
4827    IFS="$lt_save_ifs"
4828  done
4829  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4830fi
4831fi
4832echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4833echo "${ECHO_T}$lt_cv_path_NM" >&6
4834NM="$lt_cv_path_NM"
4835
4836echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4837echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4838if test "${lt_cv_deplibs_check_method+set}" = set; then
4839  echo $ECHO_N "(cached) $ECHO_C" >&6
4840else
4841  lt_cv_file_magic_cmd='$MAGIC_CMD'
4842lt_cv_file_magic_test_file=
4843lt_cv_deplibs_check_method='unknown'
4844# Need to set the preceding variable on all platforms that support
4845# interlibrary dependencies.
4846# 'none' -- dependencies not supported.
4847# `unknown' -- same as none, but documents that we really don't know.
4848# 'pass_all' -- all dependencies passed with no checks.
4849# 'test_compile' -- check by making test program.
4850# 'file_magic [[regex]]' -- check by looking for files in library path
4851# which responds to the $file_magic_cmd with a given extended regex.
4852# If you have `file' or equivalent on your system and you're not sure
4853# whether `pass_all' will *always* work, you probably want this one.
4854
4855case $host_os in
4856aix4* | aix5*)
4857  lt_cv_deplibs_check_method=pass_all
4858  ;;
4859
4860beos*)
4861  lt_cv_deplibs_check_method=pass_all
4862  ;;
4863
4864bsdi[45]*)
4865  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4866  lt_cv_file_magic_cmd='/usr/bin/file -L'
4867  lt_cv_file_magic_test_file=/shlib/libc.so
4868  ;;
4869
4870cygwin*)
4871  # func_win32_libid is a shell function defined in ltmain.sh
4872  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4873  lt_cv_file_magic_cmd='func_win32_libid'
4874  ;;
4875
4876mingw* | pw32*)
4877  # Base MSYS/MinGW do not provide the 'file' command needed by
4878  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4879  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4880  lt_cv_file_magic_cmd='$OBJDUMP -f'
4881  ;;
4882
4883darwin* | rhapsody*)
4884  lt_cv_deplibs_check_method=pass_all
4885  ;;
4886
4887freebsd* | kfreebsd*-gnu | dragonfly*)
4888  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4889    case $host_cpu in
4890    i*86 )
4891      # Not sure whether the presence of OpenBSD here was a mistake.
4892      # Let's accept both of them until this is cleared up.
4893      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4894      lt_cv_file_magic_cmd=/usr/bin/file
4895      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4896      ;;
4897    esac
4898  else
4899    lt_cv_deplibs_check_method=pass_all
4900  fi
4901  ;;
4902
4903gnu*)
4904  lt_cv_deplibs_check_method=pass_all
4905  ;;
4906
4907hpux10.20* | hpux11*)
4908  lt_cv_file_magic_cmd=/usr/bin/file
4909  case $host_cpu in
4910  ia64*)
4911    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4912    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4913    ;;
4914  hppa*64*)
4915    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]'
4916    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4917    ;;
4918  *)
4919    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4920    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4921    ;;
4922  esac
4923  ;;
4924
4925interix3*)
4926  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4927  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4928  ;;
4929
4930irix5* | irix6* | nonstopux*)
4931  case $LD in
4932  *-32|*"-32 ") libmagic=32-bit;;
4933  *-n32|*"-n32 ") libmagic=N32;;
4934  *-64|*"-64 ") libmagic=64-bit;;
4935  *) libmagic=never-match;;
4936  esac
4937  lt_cv_deplibs_check_method=pass_all
4938  ;;
4939
4940# This must be Linux ELF.
4941linux*)
4942  lt_cv_deplibs_check_method=pass_all
4943  ;;
4944
4945netbsd*)
4946  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4947    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4948  else
4949    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4950  fi
4951  ;;
4952
4953newos6*)
4954  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4955  lt_cv_file_magic_cmd=/usr/bin/file
4956  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4957  ;;
4958
4959nto-qnx*)
4960  lt_cv_deplibs_check_method=unknown
4961  ;;
4962
4963openbsd*)
4964  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4965    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4966  else
4967    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4968  fi
4969  ;;
4970
4971osf3* | osf4* | osf5*)
4972  lt_cv_deplibs_check_method=pass_all
4973  ;;
4974
4975solaris*)
4976  lt_cv_deplibs_check_method=pass_all
4977  ;;
4978
4979sysv4 | sysv4.3*)
4980  case $host_vendor in
4981  motorola)
4982    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]'
4983    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4984    ;;
4985  ncr)
4986    lt_cv_deplibs_check_method=pass_all
4987    ;;
4988  sequent)
4989    lt_cv_file_magic_cmd='/bin/file'
4990    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4991    ;;
4992  sni)
4993    lt_cv_file_magic_cmd='/bin/file'
4994    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4995    lt_cv_file_magic_test_file=/lib/libc.so
4996    ;;
4997  siemens)
4998    lt_cv_deplibs_check_method=pass_all
4999    ;;
5000  pc)
5001    lt_cv_deplibs_check_method=pass_all
5002    ;;
5003  esac
5004  ;;
5005
5006sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5007  lt_cv_deplibs_check_method=pass_all
5008  ;;
5009esac
5010
5011fi
5012echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5013echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5014file_magic_cmd=$lt_cv_file_magic_cmd
5015deplibs_check_method=$lt_cv_deplibs_check_method
5016test -z "$deplibs_check_method" && deplibs_check_method=unknown
5017
5018
5019
5020
5021# If no C compiler was specified, use CC.
5022LTCC=${LTCC-"$CC"}
5023
5024# If no C compiler flags were specified, use CFLAGS.
5025LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5026
5027# Allow CC to be a program name with arguments.
5028compiler=$CC
5029
5030# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5031if test "${enable_libtool_lock+set}" = set; then
5032  enableval="$enable_libtool_lock"
5033
5034fi;
5035test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5036
5037# Some flags need to be propagated to the compiler or linker for good
5038# libtool support.
5039case $host in
5040ia64-*-hpux*)
5041  # Find out which ABI we are using.
5042  echo 'int i;' > conftest.$ac_ext
5043  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044  (eval $ac_compile) 2>&5
5045  ac_status=$?
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); }; then
5048    case `/usr/bin/file conftest.$ac_objext` in
5049    *ELF-32*)
5050      HPUX_IA64_MODE="32"
5051      ;;
5052    *ELF-64*)
5053      HPUX_IA64_MODE="64"
5054      ;;
5055    esac
5056  fi
5057  rm -rf conftest*
5058  ;;
5059*-*-irix6*)
5060  # Find out which ABI we are using.
5061  echo '#line 5061 "configure"' > conftest.$ac_ext
5062  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063  (eval $ac_compile) 2>&5
5064  ac_status=$?
5065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066  (exit $ac_status); }; then
5067   if test "$lt_cv_prog_gnu_ld" = yes; then
5068    case `/usr/bin/file conftest.$ac_objext` in
5069    *32-bit*)
5070      LD="${LD-ld} -melf32bsmip"
5071      ;;
5072    *N32*)
5073      LD="${LD-ld} -melf32bmipn32"
5074      ;;
5075    *64-bit*)
5076      LD="${LD-ld} -melf64bmip"
5077      ;;
5078    esac
5079   else
5080    case `/usr/bin/file conftest.$ac_objext` in
5081    *32-bit*)
5082      LD="${LD-ld} -32"
5083      ;;
5084    *N32*)
5085      LD="${LD-ld} -n32"
5086      ;;
5087    *64-bit*)
5088      LD="${LD-ld} -64"
5089      ;;
5090    esac
5091   fi
5092  fi
5093  rm -rf conftest*
5094  ;;
5095
5096x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5097  # Find out which ABI we are using.
5098  echo 'int i;' > conftest.$ac_ext
5099  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100  (eval $ac_compile) 2>&5
5101  ac_status=$?
5102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103  (exit $ac_status); }; then
5104    case `/usr/bin/file conftest.o` in
5105    *32-bit*)
5106      case $host in
5107        x86_64-*linux*)
5108          LD="${LD-ld} -m elf_i386"
5109          ;;
5110        ppc64-*linux*|powerpc64-*linux*)
5111          LD="${LD-ld} -m elf32ppclinux"
5112          ;;
5113        s390x-*linux*)
5114          LD="${LD-ld} -m elf_s390"
5115          ;;
5116        sparc64-*linux*)
5117          LD="${LD-ld} -m elf32_sparc"
5118          ;;
5119      esac
5120      ;;
5121    *64-bit*)
5122      case $host in
5123        x86_64-*linux*)
5124          LD="${LD-ld} -m elf_x86_64"
5125          ;;
5126        ppc*-*linux*|powerpc*-*linux*)
5127          LD="${LD-ld} -m elf64ppc"
5128          ;;
5129        s390*-*linux*)
5130          LD="${LD-ld} -m elf64_s390"
5131          ;;
5132        sparc*-*linux*)
5133          LD="${LD-ld} -m elf64_sparc"
5134          ;;
5135      esac
5136      ;;
5137    esac
5138  fi
5139  rm -rf conftest*
5140  ;;
5141
5142*-*-sco3.2v5*)
5143  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5144  SAVE_CFLAGS="$CFLAGS"
5145  CFLAGS="$CFLAGS -belf"
5146  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5147echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5148if test "${lt_cv_cc_needs_belf+set}" = set; then
5149  echo $ECHO_N "(cached) $ECHO_C" >&6
5150else
5151  ac_ext=c
5152ac_cpp='$CPP $CPPFLAGS'
5153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155ac_compiler_gnu=$ac_cv_c_compiler_gnu
5156
5157     cat >conftest.$ac_ext <<_ACEOF
5158/* confdefs.h.  */
5159_ACEOF
5160cat confdefs.h >>conftest.$ac_ext
5161cat >>conftest.$ac_ext <<_ACEOF
5162/* end confdefs.h.  */
5163
5164int
5165main ()
5166{
5167
5168  ;
5169  return 0;
5170}
5171_ACEOF
5172rm -f conftest.$ac_objext conftest$ac_exeext
5173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5174  (eval $ac_link) 2>conftest.er1
5175  ac_status=$?
5176  grep -v '^ *+' conftest.er1 >conftest.err
5177  rm -f conftest.er1
5178  cat conftest.err >&5
5179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180  (exit $ac_status); } &&
5181         { ac_try='test -z "$ac_c_werror_flag"
5182                         || test ! -s conftest.err'
5183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184  (eval $ac_try) 2>&5
5185  ac_status=$?
5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187  (exit $ac_status); }; } &&
5188         { ac_try='test -s conftest$ac_exeext'
5189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190  (eval $ac_try) 2>&5
5191  ac_status=$?
5192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193  (exit $ac_status); }; }; then
5194  lt_cv_cc_needs_belf=yes
5195else
5196  echo "$as_me: failed program was:" >&5
5197sed 's/^/| /' conftest.$ac_ext >&5
5198
5199lt_cv_cc_needs_belf=no
5200fi
5201rm -f conftest.err conftest.$ac_objext \
5202      conftest$ac_exeext conftest.$ac_ext
5203     ac_ext=c
5204ac_cpp='$CPP $CPPFLAGS'
5205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208
5209fi
5210echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5211echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5212  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5213    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5214    CFLAGS="$SAVE_CFLAGS"
5215  fi
5216  ;;
5217sparc*-*solaris*)
5218  # Find out which ABI we are using.
5219  echo 'int i;' > conftest.$ac_ext
5220  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221  (eval $ac_compile) 2>&5
5222  ac_status=$?
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); }; then
5225    case `/usr/bin/file conftest.o` in
5226    *64-bit*)
5227      case $lt_cv_prog_gnu_ld in
5228      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5229      *)    LD="${LD-ld} -64" ;;
5230      esac
5231      ;;
5232    esac
5233  fi
5234  rm -rf conftest*
5235  ;;
5236
5237
5238esac
5239
5240need_locks="$enable_libtool_lock"
5241
5242
5243ac_ext=c
5244ac_cpp='$CPP $CPPFLAGS'
5245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5249echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5250# On Suns, sometimes $CPP names a directory.
5251if test -n "$CPP" && test -d "$CPP"; then
5252  CPP=
5253fi
5254if test -z "$CPP"; then
5255  if test "${ac_cv_prog_CPP+set}" = set; then
5256  echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258      # Double quotes because CPP needs to be expanded
5259    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5260    do
5261      ac_preproc_ok=false
5262for ac_c_preproc_warn_flag in '' yes
5263do
5264  # Use a header file that comes with gcc, so configuring glibc
5265  # with a fresh cross-compiler works.
5266  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5267  # <limits.h> exists even on freestanding compilers.
5268  # On the NeXT, cc -E runs the code through the compiler's parser,
5269  # not just through cpp. "Syntax error" is here to catch this case.
5270  cat >conftest.$ac_ext <<_ACEOF
5271/* confdefs.h.  */
5272_ACEOF
5273cat confdefs.h >>conftest.$ac_ext
5274cat >>conftest.$ac_ext <<_ACEOF
5275/* end confdefs.h.  */
5276#ifdef __STDC__
5277# include <limits.h>
5278#else
5279# include <assert.h>
5280#endif
5281                     Syntax error
5282_ACEOF
5283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5284  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5285  ac_status=$?
5286  grep -v '^ *+' conftest.er1 >conftest.err
5287  rm -f conftest.er1
5288  cat conftest.err >&5
5289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290  (exit $ac_status); } >/dev/null; then
5291  if test -s conftest.err; then
5292    ac_cpp_err=$ac_c_preproc_warn_flag
5293    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5294  else
5295    ac_cpp_err=
5296  fi
5297else
5298  ac_cpp_err=yes
5299fi
5300if test -z "$ac_cpp_err"; then
5301  :
5302else
5303  echo "$as_me: failed program was:" >&5
5304sed 's/^/| /' conftest.$ac_ext >&5
5305
5306  # Broken: fails on valid input.
5307continue
5308fi
5309rm -f conftest.err conftest.$ac_ext
5310
5311  # OK, works on sane cases.  Now check whether non-existent headers
5312  # can be detected and how.
5313  cat >conftest.$ac_ext <<_ACEOF
5314/* confdefs.h.  */
5315_ACEOF
5316cat confdefs.h >>conftest.$ac_ext
5317cat >>conftest.$ac_ext <<_ACEOF
5318/* end confdefs.h.  */
5319#include <ac_nonexistent.h>
5320_ACEOF
5321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5322  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5323  ac_status=$?
5324  grep -v '^ *+' conftest.er1 >conftest.err
5325  rm -f conftest.er1
5326  cat conftest.err >&5
5327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328  (exit $ac_status); } >/dev/null; then
5329  if test -s conftest.err; then
5330    ac_cpp_err=$ac_c_preproc_warn_flag
5331    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5332  else
5333    ac_cpp_err=
5334  fi
5335else
5336  ac_cpp_err=yes
5337fi
5338if test -z "$ac_cpp_err"; then
5339  # Broken: success on invalid input.
5340continue
5341else
5342  echo "$as_me: failed program was:" >&5
5343sed 's/^/| /' conftest.$ac_ext >&5
5344
5345  # Passes both tests.
5346ac_preproc_ok=:
5347break
5348fi
5349rm -f conftest.err conftest.$ac_ext
5350
5351done
5352# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5353rm -f conftest.err conftest.$ac_ext
5354if $ac_preproc_ok; then
5355  break
5356fi
5357
5358    done
5359    ac_cv_prog_CPP=$CPP
5360
5361fi
5362  CPP=$ac_cv_prog_CPP
5363else
5364  ac_cv_prog_CPP=$CPP
5365fi
5366echo "$as_me:$LINENO: result: $CPP" >&5
5367echo "${ECHO_T}$CPP" >&6
5368ac_preproc_ok=false
5369for ac_c_preproc_warn_flag in '' yes
5370do
5371  # Use a header file that comes with gcc, so configuring glibc
5372  # with a fresh cross-compiler works.
5373  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5374  # <limits.h> exists even on freestanding compilers.
5375  # On the NeXT, cc -E runs the code through the compiler's parser,
5376  # not just through cpp. "Syntax error" is here to catch this case.
5377  cat >conftest.$ac_ext <<_ACEOF
5378/* confdefs.h.  */
5379_ACEOF
5380cat confdefs.h >>conftest.$ac_ext
5381cat >>conftest.$ac_ext <<_ACEOF
5382/* end confdefs.h.  */
5383#ifdef __STDC__
5384# include <limits.h>
5385#else
5386# include <assert.h>
5387#endif
5388                     Syntax error
5389_ACEOF
5390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5391  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5392  ac_status=$?
5393  grep -v '^ *+' conftest.er1 >conftest.err
5394  rm -f conftest.er1
5395  cat conftest.err >&5
5396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397  (exit $ac_status); } >/dev/null; then
5398  if test -s conftest.err; then
5399    ac_cpp_err=$ac_c_preproc_warn_flag
5400    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5401  else
5402    ac_cpp_err=
5403  fi
5404else
5405  ac_cpp_err=yes
5406fi
5407if test -z "$ac_cpp_err"; then
5408  :
5409else
5410  echo "$as_me: failed program was:" >&5
5411sed 's/^/| /' conftest.$ac_ext >&5
5412
5413  # Broken: fails on valid input.
5414continue
5415fi
5416rm -f conftest.err conftest.$ac_ext
5417
5418  # OK, works on sane cases.  Now check whether non-existent headers
5419  # can be detected and how.
5420  cat >conftest.$ac_ext <<_ACEOF
5421/* confdefs.h.  */
5422_ACEOF
5423cat confdefs.h >>conftest.$ac_ext
5424cat >>conftest.$ac_ext <<_ACEOF
5425/* end confdefs.h.  */
5426#include <ac_nonexistent.h>
5427_ACEOF
5428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5429  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5430  ac_status=$?
5431  grep -v '^ *+' conftest.er1 >conftest.err
5432  rm -f conftest.er1
5433  cat conftest.err >&5
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); } >/dev/null; then
5436  if test -s conftest.err; then
5437    ac_cpp_err=$ac_c_preproc_warn_flag
5438    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5439  else
5440    ac_cpp_err=
5441  fi
5442else
5443  ac_cpp_err=yes
5444fi
5445if test -z "$ac_cpp_err"; then
5446  # Broken: success on invalid input.
5447continue
5448else
5449  echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
5452  # Passes both tests.
5453ac_preproc_ok=:
5454break
5455fi
5456rm -f conftest.err conftest.$ac_ext
5457
5458done
5459# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5460rm -f conftest.err conftest.$ac_ext
5461if $ac_preproc_ok; then
5462  :
5463else
5464  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5465See \`config.log' for more details." >&5
5466echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5467See \`config.log' for more details." >&2;}
5468   { (exit 1); exit 1; }; }
5469fi
5470
5471ac_ext=c
5472ac_cpp='$CPP $CPPFLAGS'
5473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476
5477
5478echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5479echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5480if test "${ac_cv_header_stdc+set}" = set; then
5481  echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483  cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h.  */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h.  */
5489#include <stdlib.h>
5490#include <stdarg.h>
5491#include <string.h>
5492#include <float.h>
5493
5494int
5495main ()
5496{
5497
5498  ;
5499  return 0;
5500}
5501_ACEOF
5502rm -f conftest.$ac_objext
5503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504  (eval $ac_compile) 2>conftest.er1
5505  ac_status=$?
5506  grep -v '^ *+' conftest.er1 >conftest.err
5507  rm -f conftest.er1
5508  cat conftest.err >&5
5509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510  (exit $ac_status); } &&
5511         { ac_try='test -z "$ac_c_werror_flag"
5512                         || test ! -s conftest.err'
5513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514  (eval $ac_try) 2>&5
5515  ac_status=$?
5516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517  (exit $ac_status); }; } &&
5518         { ac_try='test -s conftest.$ac_objext'
5519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520  (eval $ac_try) 2>&5
5521  ac_status=$?
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); }; }; then
5524  ac_cv_header_stdc=yes
5525else
5526  echo "$as_me: failed program was:" >&5
5527sed 's/^/| /' conftest.$ac_ext >&5
5528
5529ac_cv_header_stdc=no
5530fi
5531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532
5533if test $ac_cv_header_stdc = yes; then
5534  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5535  cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h.  */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h.  */
5541#include <string.h>
5542
5543_ACEOF
5544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545  $EGREP "memchr" >/dev/null 2>&1; then
5546  :
5547else
5548  ac_cv_header_stdc=no
5549fi
5550rm -f conftest*
5551
5552fi
5553
5554if test $ac_cv_header_stdc = yes; then
5555  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5556  cat >conftest.$ac_ext <<_ACEOF
5557/* confdefs.h.  */
5558_ACEOF
5559cat confdefs.h >>conftest.$ac_ext
5560cat >>conftest.$ac_ext <<_ACEOF
5561/* end confdefs.h.  */
5562#include <stdlib.h>
5563
5564_ACEOF
5565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5566  $EGREP "free" >/dev/null 2>&1; then
5567  :
5568else
5569  ac_cv_header_stdc=no
5570fi
5571rm -f conftest*
5572
5573fi
5574
5575if test $ac_cv_header_stdc = yes; then
5576  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5577  if test "$cross_compiling" = yes; then
5578  :
5579else
5580  cat >conftest.$ac_ext <<_ACEOF
5581/* confdefs.h.  */
5582_ACEOF
5583cat confdefs.h >>conftest.$ac_ext
5584cat >>conftest.$ac_ext <<_ACEOF
5585/* end confdefs.h.  */
5586#include <ctype.h>
5587#if ((' ' & 0x0FF) == 0x020)
5588# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5589# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5590#else
5591# define ISLOWER(c) \
5592                   (('a' <= (c) && (c) <= 'i') \
5593                     || ('j' <= (c) && (c) <= 'r') \
5594                     || ('s' <= (c) && (c) <= 'z'))
5595# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5596#endif
5597
5598#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5599int
5600main ()
5601{
5602  int i;
5603  for (i = 0; i < 256; i++)
5604    if (XOR (islower (i), ISLOWER (i))
5605        || toupper (i) != TOUPPER (i))
5606      exit(2);
5607  exit (0);
5608}
5609_ACEOF
5610rm -f conftest$ac_exeext
5611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5612  (eval $ac_link) 2>&5
5613  ac_status=$?
5614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617  (eval $ac_try) 2>&5
5618  ac_status=$?
5619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620  (exit $ac_status); }; }; then
5621  :
5622else
5623  echo "$as_me: program exited with status $ac_status" >&5
5624echo "$as_me: failed program was:" >&5
5625sed 's/^/| /' conftest.$ac_ext >&5
5626
5627( exit $ac_status )
5628ac_cv_header_stdc=no
5629fi
5630rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5631fi
5632fi
5633fi
5634echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5635echo "${ECHO_T}$ac_cv_header_stdc" >&6
5636if test $ac_cv_header_stdc = yes; then
5637
5638cat >>confdefs.h <<\_ACEOF
5639#define STDC_HEADERS 1
5640_ACEOF
5641
5642fi
5643
5644# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5655                  inttypes.h stdint.h unistd.h
5656do
5657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5658echo "$as_me:$LINENO: checking for $ac_header" >&5
5659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5660if eval "test \"\${$as_ac_Header+set}\" = set"; then
5661  echo $ECHO_N "(cached) $ECHO_C" >&6
5662else
5663  cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h.  */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h.  */
5669$ac_includes_default
5670
5671#include <$ac_header>
5672_ACEOF
5673rm -f conftest.$ac_objext
5674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5675  (eval $ac_compile) 2>conftest.er1
5676  ac_status=$?
5677  grep -v '^ *+' conftest.er1 >conftest.err
5678  rm -f conftest.er1
5679  cat conftest.err >&5
5680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681  (exit $ac_status); } &&
5682         { ac_try='test -z "$ac_c_werror_flag"
5683                         || test ! -s conftest.err'
5684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685  (eval $ac_try) 2>&5
5686  ac_status=$?
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); }; } &&
5689         { ac_try='test -s conftest.$ac_objext'
5690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691  (eval $ac_try) 2>&5
5692  ac_status=$?
5693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694  (exit $ac_status); }; }; then
5695  eval "$as_ac_Header=yes"
5696else
5697  echo "$as_me: failed program was:" >&5
5698sed 's/^/| /' conftest.$ac_ext >&5
5699
5700eval "$as_ac_Header=no"
5701fi
5702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5703fi
5704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5706if test `eval echo '${'$as_ac_Header'}'` = yes; then
5707  cat >>confdefs.h <<_ACEOF
5708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5709_ACEOF
5710
5711fi
5712
5713done
5714
5715
5716
5717for ac_header in dlfcn.h
5718do
5719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5720if eval "test \"\${$as_ac_Header+set}\" = set"; then
5721  echo "$as_me:$LINENO: checking for $ac_header" >&5
5722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5723if eval "test \"\${$as_ac_Header+set}\" = set"; then
5724  echo $ECHO_N "(cached) $ECHO_C" >&6
5725fi
5726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5728else
5729  # Is the header compilable?
5730echo "$as_me:$LINENO: checking $ac_header usability" >&5
5731echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5732cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h.  */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h.  */
5738$ac_includes_default
5739#include <$ac_header>
5740_ACEOF
5741rm -f conftest.$ac_objext
5742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5743  (eval $ac_compile) 2>conftest.er1
5744  ac_status=$?
5745  grep -v '^ *+' conftest.er1 >conftest.err
5746  rm -f conftest.er1
5747  cat conftest.err >&5
5748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749  (exit $ac_status); } &&
5750         { ac_try='test -z "$ac_c_werror_flag"
5751                         || test ! -s conftest.err'
5752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753  (eval $ac_try) 2>&5
5754  ac_status=$?
5755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756  (exit $ac_status); }; } &&
5757         { ac_try='test -s conftest.$ac_objext'
5758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759  (eval $ac_try) 2>&5
5760  ac_status=$?
5761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762  (exit $ac_status); }; }; then
5763  ac_header_compiler=yes
5764else
5765  echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768ac_header_compiler=no
5769fi
5770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5771echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5772echo "${ECHO_T}$ac_header_compiler" >&6
5773
5774# Is the header present?
5775echo "$as_me:$LINENO: checking $ac_header presence" >&5
5776echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5777cat >conftest.$ac_ext <<_ACEOF
5778/* confdefs.h.  */
5779_ACEOF
5780cat confdefs.h >>conftest.$ac_ext
5781cat >>conftest.$ac_ext <<_ACEOF
5782/* end confdefs.h.  */
5783#include <$ac_header>
5784_ACEOF
5785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5786  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5787  ac_status=$?
5788  grep -v '^ *+' conftest.er1 >conftest.err
5789  rm -f conftest.er1
5790  cat conftest.err >&5
5791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792  (exit $ac_status); } >/dev/null; then
5793  if test -s conftest.err; then
5794    ac_cpp_err=$ac_c_preproc_warn_flag
5795    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5796  else
5797    ac_cpp_err=
5798  fi
5799else
5800  ac_cpp_err=yes
5801fi
5802if test -z "$ac_cpp_err"; then
5803  ac_header_preproc=yes
5804else
5805  echo "$as_me: failed program was:" >&5
5806sed 's/^/| /' conftest.$ac_ext >&5
5807
5808  ac_header_preproc=no
5809fi
5810rm -f conftest.err conftest.$ac_ext
5811echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5812echo "${ECHO_T}$ac_header_preproc" >&6
5813
5814# So?  What about this header?
5815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5816  yes:no: )
5817    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5818echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5819    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5820echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5821    ac_header_preproc=yes
5822    ;;
5823  no:yes:* )
5824    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5825echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5826    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5827echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5828    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5829echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5830    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5831echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5832    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5834    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5835echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5836    (
5837      cat <<\_ASBOX
5838## --------------------------------------------------------------- ##
5839## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5840## --------------------------------------------------------------- ##
5841_ASBOX
5842    ) |
5843      sed "s/^/$as_me: WARNING:     /" >&2
5844    ;;
5845esac
5846echo "$as_me:$LINENO: checking for $ac_header" >&5
5847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5848if eval "test \"\${$as_ac_Header+set}\" = set"; then
5849  echo $ECHO_N "(cached) $ECHO_C" >&6
5850else
5851  eval "$as_ac_Header=\$ac_header_preproc"
5852fi
5853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5855
5856fi
5857if test `eval echo '${'$as_ac_Header'}'` = yes; then
5858  cat >>confdefs.h <<_ACEOF
5859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5860_ACEOF
5861
5862fi
5863
5864done
5865
5866ac_ext=cc
5867ac_cpp='$CXXCPP $CPPFLAGS'
5868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5871if test -n "$ac_tool_prefix"; then
5872  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5873  do
5874    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5875set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5876echo "$as_me:$LINENO: checking for $ac_word" >&5
5877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878if test "${ac_cv_prog_CXX+set}" = set; then
5879  echo $ECHO_N "(cached) $ECHO_C" >&6
5880else
5881  if test -n "$CXX"; then
5882  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5883else
5884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885for as_dir in $PATH
5886do
5887  IFS=$as_save_IFS
5888  test -z "$as_dir" && as_dir=.
5889  for ac_exec_ext in '' $ac_executable_extensions; do
5890  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893    break 2
5894  fi
5895done
5896done
5897
5898fi
5899fi
5900CXX=$ac_cv_prog_CXX
5901if test -n "$CXX"; then
5902  echo "$as_me:$LINENO: result: $CXX" >&5
5903echo "${ECHO_T}$CXX" >&6
5904else
5905  echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6
5907fi
5908
5909    test -n "$CXX" && break
5910  done
5911fi
5912if test -z "$CXX"; then
5913  ac_ct_CXX=$CXX
5914  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5915do
5916  # Extract the first word of "$ac_prog", so it can be a program name with args.
5917set dummy $ac_prog; ac_word=$2
5918echo "$as_me:$LINENO: checking for $ac_word" >&5
5919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5920if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5921  echo $ECHO_N "(cached) $ECHO_C" >&6
5922else
5923  if test -n "$ac_ct_CXX"; then
5924  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5925else
5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929  IFS=$as_save_IFS
5930  test -z "$as_dir" && as_dir=.
5931  for ac_exec_ext in '' $ac_executable_extensions; do
5932  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933    ac_cv_prog_ac_ct_CXX="$ac_prog"
5934    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935    break 2
5936  fi
5937done
5938done
5939
5940fi
5941fi
5942ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5943if test -n "$ac_ct_CXX"; then
5944  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5945echo "${ECHO_T}$ac_ct_CXX" >&6
5946else
5947  echo "$as_me:$LINENO: result: no" >&5
5948echo "${ECHO_T}no" >&6
5949fi
5950
5951  test -n "$ac_ct_CXX" && break
5952done
5953test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5954
5955  CXX=$ac_ct_CXX
5956fi
5957
5958
5959# Provide some information about the compiler.
5960echo "$as_me:$LINENO:" \
5961     "checking for C++ compiler version" >&5
5962ac_compiler=`set X $ac_compile; echo $2`
5963{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5964  (eval $ac_compiler --version </dev/null >&5) 2>&5
5965  ac_status=$?
5966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967  (exit $ac_status); }
5968{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5969  (eval $ac_compiler -v </dev/null >&5) 2>&5
5970  ac_status=$?
5971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972  (exit $ac_status); }
5973{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5974  (eval $ac_compiler -V </dev/null >&5) 2>&5
5975  ac_status=$?
5976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977  (exit $ac_status); }
5978
5979echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5980echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5981if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5982  echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984  cat >conftest.$ac_ext <<_ACEOF
5985/* confdefs.h.  */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h.  */
5990
5991int
5992main ()
5993{
5994#ifndef __GNUC__
5995       choke me
5996#endif
5997
5998  ;
5999  return 0;
6000}
6001_ACEOF
6002rm -f conftest.$ac_objext
6003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004  (eval $ac_compile) 2>conftest.er1
6005  ac_status=$?
6006  grep -v '^ *+' conftest.er1 >conftest.err
6007  rm -f conftest.er1
6008  cat conftest.err >&5
6009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010  (exit $ac_status); } &&
6011         { ac_try='test -z "$ac_cxx_werror_flag"
6012                         || test ! -s conftest.err'
6013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014  (eval $ac_try) 2>&5
6015  ac_status=$?
6016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017  (exit $ac_status); }; } &&
6018         { ac_try='test -s conftest.$ac_objext'
6019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020  (eval $ac_try) 2>&5
6021  ac_status=$?
6022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023  (exit $ac_status); }; }; then
6024  ac_compiler_gnu=yes
6025else
6026  echo "$as_me: failed program was:" >&5
6027sed 's/^/| /' conftest.$ac_ext >&5
6028
6029ac_compiler_gnu=no
6030fi
6031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6032ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6033
6034fi
6035echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6036echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6037GXX=`test $ac_compiler_gnu = yes && echo yes`
6038ac_test_CXXFLAGS=${CXXFLAGS+set}
6039ac_save_CXXFLAGS=$CXXFLAGS
6040CXXFLAGS="-g"
6041echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6042echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6043if test "${ac_cv_prog_cxx_g+set}" = set; then
6044  echo $ECHO_N "(cached) $ECHO_C" >&6
6045else
6046  cat >conftest.$ac_ext <<_ACEOF
6047/* confdefs.h.  */
6048_ACEOF
6049cat confdefs.h >>conftest.$ac_ext
6050cat >>conftest.$ac_ext <<_ACEOF
6051/* end confdefs.h.  */
6052
6053int
6054main ()
6055{
6056
6057  ;
6058  return 0;
6059}
6060_ACEOF
6061rm -f conftest.$ac_objext
6062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063  (eval $ac_compile) 2>conftest.er1
6064  ac_status=$?
6065  grep -v '^ *+' conftest.er1 >conftest.err
6066  rm -f conftest.er1
6067  cat conftest.err >&5
6068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069  (exit $ac_status); } &&
6070         { ac_try='test -z "$ac_cxx_werror_flag"
6071                         || test ! -s conftest.err'
6072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073  (eval $ac_try) 2>&5
6074  ac_status=$?
6075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076  (exit $ac_status); }; } &&
6077         { ac_try='test -s conftest.$ac_objext'
6078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079  (eval $ac_try) 2>&5
6080  ac_status=$?
6081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082  (exit $ac_status); }; }; then
6083  ac_cv_prog_cxx_g=yes
6084else
6085  echo "$as_me: failed program was:" >&5
6086sed 's/^/| /' conftest.$ac_ext >&5
6087
6088ac_cv_prog_cxx_g=no
6089fi
6090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6091fi
6092echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6093echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6094if test "$ac_test_CXXFLAGS" = set; then
6095  CXXFLAGS=$ac_save_CXXFLAGS
6096elif test $ac_cv_prog_cxx_g = yes; then
6097  if test "$GXX" = yes; then
6098    CXXFLAGS="-g -O2"
6099  else
6100    CXXFLAGS="-g"
6101  fi
6102else
6103  if test "$GXX" = yes; then
6104    CXXFLAGS="-O2"
6105  else
6106    CXXFLAGS=
6107  fi
6108fi
6109for ac_declaration in \
6110   '' \
6111   'extern "C" void std::exit (int) throw (); using std::exit;' \
6112   'extern "C" void std::exit (int); using std::exit;' \
6113   'extern "C" void exit (int) throw ();' \
6114   'extern "C" void exit (int);' \
6115   'void exit (int);'
6116do
6117  cat >conftest.$ac_ext <<_ACEOF
6118/* confdefs.h.  */
6119_ACEOF
6120cat confdefs.h >>conftest.$ac_ext
6121cat >>conftest.$ac_ext <<_ACEOF
6122/* end confdefs.h.  */
6123$ac_declaration
6124#include <stdlib.h>
6125int
6126main ()
6127{
6128exit (42);
6129  ;
6130  return 0;
6131}
6132_ACEOF
6133rm -f conftest.$ac_objext
6134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135  (eval $ac_compile) 2>conftest.er1
6136  ac_status=$?
6137  grep -v '^ *+' conftest.er1 >conftest.err
6138  rm -f conftest.er1
6139  cat conftest.err >&5
6140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141  (exit $ac_status); } &&
6142         { ac_try='test -z "$ac_cxx_werror_flag"
6143                         || test ! -s conftest.err'
6144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145  (eval $ac_try) 2>&5
6146  ac_status=$?
6147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148  (exit $ac_status); }; } &&
6149         { ac_try='test -s conftest.$ac_objext'
6150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151  (eval $ac_try) 2>&5
6152  ac_status=$?
6153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154  (exit $ac_status); }; }; then
6155  :
6156else
6157  echo "$as_me: failed program was:" >&5
6158sed 's/^/| /' conftest.$ac_ext >&5
6159
6160continue
6161fi
6162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6163  cat >conftest.$ac_ext <<_ACEOF
6164/* confdefs.h.  */
6165_ACEOF
6166cat confdefs.h >>conftest.$ac_ext
6167cat >>conftest.$ac_ext <<_ACEOF
6168/* end confdefs.h.  */
6169$ac_declaration
6170int
6171main ()
6172{
6173exit (42);
6174  ;
6175  return 0;
6176}
6177_ACEOF
6178rm -f conftest.$ac_objext
6179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180  (eval $ac_compile) 2>conftest.er1
6181  ac_status=$?
6182  grep -v '^ *+' conftest.er1 >conftest.err
6183  rm -f conftest.er1
6184  cat conftest.err >&5
6185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186  (exit $ac_status); } &&
6187         { ac_try='test -z "$ac_cxx_werror_flag"
6188                         || test ! -s conftest.err'
6189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190  (eval $ac_try) 2>&5
6191  ac_status=$?
6192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193  (exit $ac_status); }; } &&
6194         { ac_try='test -s conftest.$ac_objext'
6195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196  (eval $ac_try) 2>&5
6197  ac_status=$?
6198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199  (exit $ac_status); }; }; then
6200  break
6201else
6202  echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205fi
6206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207done
6208rm -f conftest*
6209if test -n "$ac_declaration"; then
6210  echo '#ifdef __cplusplus' >>confdefs.h
6211  echo $ac_declaration      >>confdefs.h
6212  echo '#endif'             >>confdefs.h
6213fi
6214
6215ac_ext=cc
6216ac_cpp='$CXXCPP $CPPFLAGS'
6217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6220
6221depcc="$CXX"  am_compiler_list=
6222
6223echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6224echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6225if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6226  echo $ECHO_N "(cached) $ECHO_C" >&6
6227else
6228  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6229  # We make a subdir and do the tests there.  Otherwise we can end up
6230  # making bogus files that we don't know about and never remove.  For
6231  # instance it was reported that on HP-UX the gcc test will end up
6232  # making a dummy file named `D' -- because `-MD' means `put the output
6233  # in D'.
6234  mkdir conftest.dir
6235  # Copy depcomp to subdir because otherwise we won't find it if we're
6236  # using a relative directory.
6237  cp "$am_depcomp" conftest.dir
6238  cd conftest.dir
6239  # We will build objects and dependencies in a subdirectory because
6240  # it helps to detect inapplicable dependency modes.  For instance
6241  # both Tru64's cc and ICC support -MD to output dependencies as a
6242  # side effect of compilation, but ICC will put the dependencies in
6243  # the current directory while Tru64 will put them in the object
6244  # directory.
6245  mkdir sub
6246
6247  am_cv_CXX_dependencies_compiler_type=none
6248  if test "$am_compiler_list" = ""; then
6249     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6250  fi
6251  for depmode in $am_compiler_list; do
6252    # Setup a source with many dependencies, because some compilers
6253    # like to wrap large dependency lists on column 80 (with \), and
6254    # we should not choose a depcomp mode which is confused by this.
6255    #
6256    # We need to recreate these files for each test, as the compiler may
6257    # overwrite some of them when testing with obscure command lines.
6258    # This happens at least with the AIX C compiler.
6259    : > sub/conftest.c
6260    for i in 1 2 3 4 5 6; do
6261      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6262      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6263      # Solaris 8's {/usr,}/bin/sh.
6264      touch sub/conftst$i.h
6265    done
6266    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6267
6268    case $depmode in
6269    nosideeffect)
6270      # after this tag, mechanisms are not by side-effect, so they'll
6271      # only be used when explicitly requested
6272      if test "x$enable_dependency_tracking" = xyes; then
6273        continue
6274      else
6275        break
6276      fi
6277      ;;
6278    none) break ;;
6279    esac
6280    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6281    # mode.  It turns out that the SunPro C++ compiler does not properly
6282    # handle `-M -o', and we need to detect this.
6283    if depmode=$depmode \
6284       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6285       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6286       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6287         >/dev/null 2>conftest.err &&
6288       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6289       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6290       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6291      # icc doesn't choke on unknown options, it will just issue warnings
6292      # or remarks (even with -Werror).  So we grep stderr for any message
6293      # that says an option was ignored or not supported.
6294      # When given -MP, icc 7.0 and 7.1 complain thusly:
6295      #   icc: Command line warning: ignoring option '-M'; no argument required
6296      # The diagnosis changed in icc 8.0:
6297      #   icc: Command line remark: option '-MP' not supported
6298      if (grep 'ignoring option' conftest.err ||
6299          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6300        am_cv_CXX_dependencies_compiler_type=$depmode
6301        break
6302      fi
6303    fi
6304  done
6305
6306  cd ..
6307  rm -rf conftest.dir
6308else
6309  am_cv_CXX_dependencies_compiler_type=none
6310fi
6311
6312fi
6313echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6314echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6315CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6316
6317
6318
6319if
6320  test "x$enable_dependency_tracking" != xno \
6321  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6322  am__fastdepCXX_TRUE=
6323  am__fastdepCXX_FALSE='#'
6324else
6325  am__fastdepCXX_TRUE='#'
6326  am__fastdepCXX_FALSE=
6327fi
6328
6329
6330
6331
6332if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6333    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6334    (test "X$CXX" != "Xg++"))) ; then
6335  ac_ext=cc
6336ac_cpp='$CXXCPP $CPPFLAGS'
6337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6340echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6341echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6342if test -z "$CXXCPP"; then
6343  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6344  echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346      # Double quotes because CXXCPP needs to be expanded
6347    for CXXCPP in "$CXX -E" "/lib/cpp"
6348    do
6349      ac_preproc_ok=false
6350for ac_cxx_preproc_warn_flag in '' yes
6351do
6352  # Use a header file that comes with gcc, so configuring glibc
6353  # with a fresh cross-compiler works.
6354  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6355  # <limits.h> exists even on freestanding compilers.
6356  # On the NeXT, cc -E runs the code through the compiler's parser,
6357  # not just through cpp. "Syntax error" is here to catch this case.
6358  cat >conftest.$ac_ext <<_ACEOF
6359/* confdefs.h.  */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h.  */
6364#ifdef __STDC__
6365# include <limits.h>
6366#else
6367# include <assert.h>
6368#endif
6369                     Syntax error
6370_ACEOF
6371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6372  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6373  ac_status=$?
6374  grep -v '^ *+' conftest.er1 >conftest.err
6375  rm -f conftest.er1
6376  cat conftest.err >&5
6377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378  (exit $ac_status); } >/dev/null; then
6379  if test -s conftest.err; then
6380    ac_cpp_err=$ac_cxx_preproc_warn_flag
6381    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6382  else
6383    ac_cpp_err=
6384  fi
6385else
6386  ac_cpp_err=yes
6387fi
6388if test -z "$ac_cpp_err"; then
6389  :
6390else
6391  echo "$as_me: failed program was:" >&5
6392sed 's/^/| /' conftest.$ac_ext >&5
6393
6394  # Broken: fails on valid input.
6395continue
6396fi
6397rm -f conftest.err conftest.$ac_ext
6398
6399  # OK, works on sane cases.  Now check whether non-existent headers
6400  # can be detected and how.
6401  cat >conftest.$ac_ext <<_ACEOF
6402/* confdefs.h.  */
6403_ACEOF
6404cat confdefs.h >>conftest.$ac_ext
6405cat >>conftest.$ac_ext <<_ACEOF
6406/* end confdefs.h.  */
6407#include <ac_nonexistent.h>
6408_ACEOF
6409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6410  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6411  ac_status=$?
6412  grep -v '^ *+' conftest.er1 >conftest.err
6413  rm -f conftest.er1
6414  cat conftest.err >&5
6415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416  (exit $ac_status); } >/dev/null; then
6417  if test -s conftest.err; then
6418    ac_cpp_err=$ac_cxx_preproc_warn_flag
6419    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6420  else
6421    ac_cpp_err=
6422  fi
6423else
6424  ac_cpp_err=yes
6425fi
6426if test -z "$ac_cpp_err"; then
6427  # Broken: success on invalid input.
6428continue
6429else
6430  echo "$as_me: failed program was:" >&5
6431sed 's/^/| /' conftest.$ac_ext >&5
6432
6433  # Passes both tests.
6434ac_preproc_ok=:
6435break
6436fi
6437rm -f conftest.err conftest.$ac_ext
6438
6439done
6440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6441rm -f conftest.err conftest.$ac_ext
6442if $ac_preproc_ok; then
6443  break
6444fi
6445
6446    done
6447    ac_cv_prog_CXXCPP=$CXXCPP
6448
6449fi
6450  CXXCPP=$ac_cv_prog_CXXCPP
6451else
6452  ac_cv_prog_CXXCPP=$CXXCPP
6453fi
6454echo "$as_me:$LINENO: result: $CXXCPP" >&5
6455echo "${ECHO_T}$CXXCPP" >&6
6456ac_preproc_ok=false
6457for ac_cxx_preproc_warn_flag in '' yes
6458do
6459  # Use a header file that comes with gcc, so configuring glibc
6460  # with a fresh cross-compiler works.
6461  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6462  # <limits.h> exists even on freestanding compilers.
6463  # On the NeXT, cc -E runs the code through the compiler's parser,
6464  # not just through cpp. "Syntax error" is here to catch this case.
6465  cat >conftest.$ac_ext <<_ACEOF
6466/* confdefs.h.  */
6467_ACEOF
6468cat confdefs.h >>conftest.$ac_ext
6469cat >>conftest.$ac_ext <<_ACEOF
6470/* end confdefs.h.  */
6471#ifdef __STDC__
6472# include <limits.h>
6473#else
6474# include <assert.h>
6475#endif
6476                     Syntax error
6477_ACEOF
6478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6479  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6480  ac_status=$?
6481  grep -v '^ *+' conftest.er1 >conftest.err
6482  rm -f conftest.er1
6483  cat conftest.err >&5
6484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485  (exit $ac_status); } >/dev/null; then
6486  if test -s conftest.err; then
6487    ac_cpp_err=$ac_cxx_preproc_warn_flag
6488    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6489  else
6490    ac_cpp_err=
6491  fi
6492else
6493  ac_cpp_err=yes
6494fi
6495if test -z "$ac_cpp_err"; then
6496  :
6497else
6498  echo "$as_me: failed program was:" >&5
6499sed 's/^/| /' conftest.$ac_ext >&5
6500
6501  # Broken: fails on valid input.
6502continue
6503fi
6504rm -f conftest.err conftest.$ac_ext
6505
6506  # OK, works on sane cases.  Now check whether non-existent headers
6507  # can be detected and how.
6508  cat >conftest.$ac_ext <<_ACEOF
6509/* confdefs.h.  */
6510_ACEOF
6511cat confdefs.h >>conftest.$ac_ext
6512cat >>conftest.$ac_ext <<_ACEOF
6513/* end confdefs.h.  */
6514#include <ac_nonexistent.h>
6515_ACEOF
6516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6517  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6518  ac_status=$?
6519  grep -v '^ *+' conftest.er1 >conftest.err
6520  rm -f conftest.er1
6521  cat conftest.err >&5
6522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523  (exit $ac_status); } >/dev/null; then
6524  if test -s conftest.err; then
6525    ac_cpp_err=$ac_cxx_preproc_warn_flag
6526    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6527  else
6528    ac_cpp_err=
6529  fi
6530else
6531  ac_cpp_err=yes
6532fi
6533if test -z "$ac_cpp_err"; then
6534  # Broken: success on invalid input.
6535continue
6536else
6537  echo "$as_me: failed program was:" >&5
6538sed 's/^/| /' conftest.$ac_ext >&5
6539
6540  # Passes both tests.
6541ac_preproc_ok=:
6542break
6543fi
6544rm -f conftest.err conftest.$ac_ext
6545
6546done
6547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6548rm -f conftest.err conftest.$ac_ext
6549if $ac_preproc_ok; then
6550  :
6551else
6552  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6553See \`config.log' for more details." >&5
6554echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6555See \`config.log' for more details." >&2;}
6556   { (exit 1); exit 1; }; }
6557fi
6558
6559ac_ext=cc
6560ac_cpp='$CXXCPP $CPPFLAGS'
6561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6564
6565fi
6566
6567
6568ac_ext=f
6569ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6570ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6571ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6572if test -n "$ac_tool_prefix"; then
6573  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6574  do
6575    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6576set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6577echo "$as_me:$LINENO: checking for $ac_word" >&5
6578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6579if test "${ac_cv_prog_F77+set}" = set; then
6580  echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
6582  if test -n "$F77"; then
6583  ac_cv_prog_F77="$F77" # Let the user override the test.
6584else
6585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588  IFS=$as_save_IFS
6589  test -z "$as_dir" && as_dir=.
6590  for ac_exec_ext in '' $ac_executable_extensions; do
6591  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6593    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594    break 2
6595  fi
6596done
6597done
6598
6599fi
6600fi
6601F77=$ac_cv_prog_F77
6602if test -n "$F77"; then
6603  echo "$as_me:$LINENO: result: $F77" >&5
6604echo "${ECHO_T}$F77" >&6
6605else
6606  echo "$as_me:$LINENO: result: no" >&5
6607echo "${ECHO_T}no" >&6
6608fi
6609
6610    test -n "$F77" && break
6611  done
6612fi
6613if test -z "$F77"; then
6614  ac_ct_F77=$F77
6615  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6616do
6617  # Extract the first word of "$ac_prog", so it can be a program name with args.
6618set dummy $ac_prog; ac_word=$2
6619echo "$as_me:$LINENO: checking for $ac_word" >&5
6620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6621if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6622  echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
6624  if test -n "$ac_ct_F77"; then
6625  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6626else
6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630  IFS=$as_save_IFS
6631  test -z "$as_dir" && as_dir=.
6632  for ac_exec_ext in '' $ac_executable_extensions; do
6633  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6634    ac_cv_prog_ac_ct_F77="$ac_prog"
6635    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636    break 2
6637  fi
6638done
6639done
6640
6641fi
6642fi
6643ac_ct_F77=$ac_cv_prog_ac_ct_F77
6644if test -n "$ac_ct_F77"; then
6645  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6646echo "${ECHO_T}$ac_ct_F77" >&6
6647else
6648  echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6
6650fi
6651
6652  test -n "$ac_ct_F77" && break
6653done
6654
6655  F77=$ac_ct_F77
6656fi
6657
6658
6659# Provide some information about the compiler.
6660echo "$as_me:6660:" \
6661     "checking for Fortran 77 compiler version" >&5
6662ac_compiler=`set X $ac_compile; echo $2`
6663{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6664  (eval $ac_compiler --version </dev/null >&5) 2>&5
6665  ac_status=$?
6666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667  (exit $ac_status); }
6668{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6669  (eval $ac_compiler -v </dev/null >&5) 2>&5
6670  ac_status=$?
6671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672  (exit $ac_status); }
6673{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6674  (eval $ac_compiler -V </dev/null >&5) 2>&5
6675  ac_status=$?
6676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677  (exit $ac_status); }
6678rm -f a.out
6679
6680# If we don't use `.F' as extension, the preprocessor is not run on the
6681# input file.  (Note that this only needs to work for GNU compilers.)
6682ac_save_ext=$ac_ext
6683ac_ext=F
6684echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6685echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6686if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6687  echo $ECHO_N "(cached) $ECHO_C" >&6
6688else
6689  cat >conftest.$ac_ext <<_ACEOF
6690      program main
6691#ifndef __GNUC__
6692       choke me
6693#endif
6694
6695      end
6696_ACEOF
6697rm -f conftest.$ac_objext
6698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6699  (eval $ac_compile) 2>conftest.er1
6700  ac_status=$?
6701  grep -v '^ *+' conftest.er1 >conftest.err
6702  rm -f conftest.er1
6703  cat conftest.err >&5
6704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705  (exit $ac_status); } &&
6706         { ac_try='test -z "$ac_f77_werror_flag"
6707                         || test ! -s conftest.err'
6708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709  (eval $ac_try) 2>&5
6710  ac_status=$?
6711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712  (exit $ac_status); }; } &&
6713         { ac_try='test -s conftest.$ac_objext'
6714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715  (eval $ac_try) 2>&5
6716  ac_status=$?
6717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718  (exit $ac_status); }; }; then
6719  ac_compiler_gnu=yes
6720else
6721  echo "$as_me: failed program was:" >&5
6722sed 's/^/| /' conftest.$ac_ext >&5
6723
6724ac_compiler_gnu=no
6725fi
6726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6727ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6728
6729fi
6730echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6731echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6732ac_ext=$ac_save_ext
6733ac_test_FFLAGS=${FFLAGS+set}
6734ac_save_FFLAGS=$FFLAGS
6735FFLAGS=
6736echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6737echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6738if test "${ac_cv_prog_f77_g+set}" = set; then
6739  echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741  FFLAGS=-g
6742cat >conftest.$ac_ext <<_ACEOF
6743      program main
6744
6745      end
6746_ACEOF
6747rm -f conftest.$ac_objext
6748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6749  (eval $ac_compile) 2>conftest.er1
6750  ac_status=$?
6751  grep -v '^ *+' conftest.er1 >conftest.err
6752  rm -f conftest.er1
6753  cat conftest.err >&5
6754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755  (exit $ac_status); } &&
6756         { ac_try='test -z "$ac_f77_werror_flag"
6757                         || test ! -s conftest.err'
6758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759  (eval $ac_try) 2>&5
6760  ac_status=$?
6761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762  (exit $ac_status); }; } &&
6763         { ac_try='test -s conftest.$ac_objext'
6764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765  (eval $ac_try) 2>&5
6766  ac_status=$?
6767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768  (exit $ac_status); }; }; then
6769  ac_cv_prog_f77_g=yes
6770else
6771  echo "$as_me: failed program was:" >&5
6772sed 's/^/| /' conftest.$ac_ext >&5
6773
6774ac_cv_prog_f77_g=no
6775fi
6776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6777
6778fi
6779echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6780echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6781if test "$ac_test_FFLAGS" = set; then
6782  FFLAGS=$ac_save_FFLAGS
6783elif test $ac_cv_prog_f77_g = yes; then
6784  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6785    FFLAGS="-g -O2"
6786  else
6787    FFLAGS="-g"
6788  fi
6789else
6790  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6791    FFLAGS="-O2"
6792  else
6793    FFLAGS=
6794  fi
6795fi
6796
6797G77=`test $ac_compiler_gnu = yes && echo yes`
6798ac_ext=c
6799ac_cpp='$CPP $CPPFLAGS'
6800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6802ac_compiler_gnu=$ac_cv_c_compiler_gnu
6803
6804
6805
6806# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6807
6808# find the maximum length of command line arguments
6809echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6810echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6811if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6812  echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814    i=0
6815  teststring="ABCD"
6816
6817  case $build_os in
6818  msdosdjgpp*)
6819    # On DJGPP, this test can blow up pretty badly due to problems in libc
6820    # (any single argument exceeding 2000 bytes causes a buffer overrun
6821    # during glob expansion).  Even if it were fixed, the result of this
6822    # check would be larger than it should be.
6823    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6824    ;;
6825
6826  gnu*)
6827    # Under GNU Hurd, this test is not required because there is
6828    # no limit to the length of command line arguments.
6829    # Libtool will interpret -1 as no limit whatsoever
6830    lt_cv_sys_max_cmd_len=-1;
6831    ;;
6832
6833  cygwin* | mingw*)
6834    # On Win9x/ME, this test blows up -- it succeeds, but takes
6835    # about 5 minutes as the teststring grows exponentially.
6836    # Worse, since 9x/ME are not pre-emptively multitasking,
6837    # you end up with a "frozen" computer, even though with patience
6838    # the test eventually succeeds (with a max line length of 256k).
6839    # Instead, let's just punt: use the minimum linelength reported by
6840    # all of the supported platforms: 8192 (on NT/2K/XP).
6841    lt_cv_sys_max_cmd_len=8192;
6842    ;;
6843
6844  amigaos*)
6845    # On AmigaOS with pdksh, this test takes hours, literally.
6846    # So we just punt and use a minimum line length of 8192.
6847    lt_cv_sys_max_cmd_len=8192;
6848    ;;
6849
6850  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6851    # This has been around since 386BSD, at least.  Likely further.
6852    if test -x /sbin/sysctl; then
6853      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6854    elif test -x /usr/sbin/sysctl; then
6855      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6856    else
6857      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6858    fi
6859    # And add a safety zone
6860    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6861    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6862    ;;
6863
6864  interix*)
6865    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6866    lt_cv_sys_max_cmd_len=196608
6867    ;;
6868
6869  osf*)
6870    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6871    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6872    # nice to cause kernel panics so lets avoid the loop below.
6873    # First set a reasonable default.
6874    lt_cv_sys_max_cmd_len=16384
6875    #
6876    if test -x /sbin/sysconfig; then
6877      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6878        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6879      esac
6880    fi
6881    ;;
6882  sco3.2v5*)
6883    lt_cv_sys_max_cmd_len=102400
6884    ;;
6885  sysv5* | sco5v6* | sysv4.2uw2*)
6886    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6887    if test -n "$kargmax"; then
6888      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6889    else
6890      lt_cv_sys_max_cmd_len=32768
6891    fi
6892    ;;
6893  *)
6894    # If test is not a shell built-in, we'll probably end up computing a
6895    # maximum length that is only half of the actual maximum length, but
6896    # we can't tell.
6897    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6898    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6899               = "XX$teststring") >/dev/null 2>&1 &&
6900            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6901            lt_cv_sys_max_cmd_len=$new_result &&
6902            test $i != 17 # 1/2 MB should be enough
6903    do
6904      i=`expr $i + 1`
6905      teststring=$teststring$teststring
6906    done
6907    teststring=
6908    # Add a significant safety factor because C++ compilers can tack on massive
6909    # amounts of additional arguments before passing them to the linker.
6910    # It appears as though 1/2 is a usable value.
6911    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6912    ;;
6913  esac
6914
6915fi
6916
6917if test -n $lt_cv_sys_max_cmd_len ; then
6918  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6919echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6920else
6921  echo "$as_me:$LINENO: result: none" >&5
6922echo "${ECHO_T}none" >&6
6923fi
6924
6925
6926
6927
6928# Check for command to grab the raw symbol name followed by C symbol from nm.
6929echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6930echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6931if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6932  echo $ECHO_N "(cached) $ECHO_C" >&6
6933else
6934
6935# These are sane defaults that work on at least a few old systems.
6936# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6937
6938# Character class describing NM global symbol codes.
6939symcode='[BCDEGRST]'
6940
6941# Regexp to match symbols that can be accessed directly from C.
6942sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6943
6944# Transform an extracted symbol line into a proper C declaration
6945lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6946
6947# Transform an extracted symbol line into symbol name and symbol address
6948lt_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
6950# Define system-specific variables.
6951case $host_os in
6952aix*)
6953  symcode='[BCDT]'
6954  ;;
6955cygwin* | mingw* | pw32*)
6956  symcode='[ABCDGISTW]'
6957  ;;
6958hpux*) # Its linker distinguishes data from code symbols
6959  if test "$host_cpu" = ia64; then
6960    symcode='[ABCDEGRST]'
6961  fi
6962  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6963  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'"
6964  ;;
6965linux*)
6966  if test "$host_cpu" = ia64; then
6967    symcode='[ABCDGIRSTW]'
6968    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6969    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'"
6970  fi
6971  ;;
6972irix* | nonstopux*)
6973  symcode='[BCDEGRST]'
6974  ;;
6975osf*)
6976  symcode='[BCDEGQRST]'
6977  ;;
6978solaris*)
6979  symcode='[BDRT]'
6980  ;;
6981sco3.2v5*)
6982  symcode='[DT]'
6983  ;;
6984sysv4.2uw2*)
6985  symcode='[DT]'
6986  ;;
6987sysv5* | sco5v6* | unixware* | OpenUNIX*)
6988  symcode='[ABDT]'
6989  ;;
6990sysv4)
6991  symcode='[DFNSTU]'
6992  ;;
6993esac
6994
6995# Handle CRLF in mingw tool chain
6996opt_cr=
6997case $build_os in
6998mingw*)
6999  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7000  ;;
7001esac
7002
7003# If we're using GNU nm, then use its standard symbol codes.
7004case `$NM -V 2>&1` in
7005*GNU* | *'with BFD'*)
7006  symcode='[ABCDGIRSTW]' ;;
7007esac
7008
7009# Try without a prefix undercore, then with it.
7010for ac_symprfx in "" "_"; do
7011
7012  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7013  symxfrm="\\1 $ac_symprfx\\2 \\2"
7014
7015  # Write the raw and C identifiers.
7016  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7017
7018  # Check to see that the pipe works correctly.
7019  pipe_works=no
7020
7021  rm -f conftest*
7022  cat > conftest.$ac_ext <<EOF
7023#ifdef __cplusplus
7024extern "C" {
7025#endif
7026char nm_test_var;
7027void nm_test_func(){}
7028#ifdef __cplusplus
7029}
7030#endif
7031int main(){nm_test_var='a';nm_test_func();return(0);}
7032EOF
7033
7034  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7035  (eval $ac_compile) 2>&5
7036  ac_status=$?
7037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038  (exit $ac_status); }; then
7039    # Now try to grab the symbols.
7040    nlist=conftest.nm
7041    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7042  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7043  ac_status=$?
7044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045  (exit $ac_status); } && test -s "$nlist"; then
7046      # Try sorting and uniquifying the output.
7047      if sort "$nlist" | uniq > "$nlist"T; then
7048        mv -f "$nlist"T "$nlist"
7049      else
7050        rm -f "$nlist"T
7051      fi
7052
7053      # Make sure that we snagged all the symbols we need.
7054      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7055        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7056          cat <<EOF > conftest.$ac_ext
7057#ifdef __cplusplus
7058extern "C" {
7059#endif
7060
7061EOF
7062          # Now generate the symbol file.
7063          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7064
7065          cat <<EOF >> conftest.$ac_ext
7066#if defined (__STDC__) && __STDC__
7067# define lt_ptr_t void *
7068#else
7069# define lt_ptr_t char *
7070# define const
7071#endif
7072
7073/* The mapping between symbol names and symbols. */
7074const struct {
7075  const char *name;
7076  lt_ptr_t address;
7077}
7078lt_preloaded_symbols[] =
7079{
7080EOF
7081          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7082          cat <<\EOF >> conftest.$ac_ext
7083  {0, (lt_ptr_t) 0}
7084};
7085
7086#ifdef __cplusplus
7087}
7088#endif
7089EOF
7090          # Now try linking the two files.
7091          mv conftest.$ac_objext conftstm.$ac_objext
7092          lt_save_LIBS="$LIBS"
7093          lt_save_CFLAGS="$CFLAGS"
7094          LIBS="conftstm.$ac_objext"
7095          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7096          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7097  (eval $ac_link) 2>&5
7098  ac_status=$?
7099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7101            pipe_works=yes
7102          fi
7103          LIBS="$lt_save_LIBS"
7104          CFLAGS="$lt_save_CFLAGS"
7105        else
7106          echo "cannot find nm_test_func in $nlist" >&5
7107        fi
7108      else
7109        echo "cannot find nm_test_var in $nlist" >&5
7110      fi
7111    else
7112      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7113    fi
7114  else
7115    echo "$progname: failed program was:" >&5
7116    cat conftest.$ac_ext >&5
7117  fi
7118  rm -f conftest* conftst*
7119
7120  # Do not use the global_symbol_pipe unless it works.
7121  if test "$pipe_works" = yes; then
7122    break
7123  else
7124    lt_cv_sys_global_symbol_pipe=
7125  fi
7126done
7127
7128fi
7129
7130if test -z "$lt_cv_sys_global_symbol_pipe"; then
7131  lt_cv_sys_global_symbol_to_cdecl=
7132fi
7133if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7134  echo "$as_me:$LINENO: result: failed" >&5
7135echo "${ECHO_T}failed" >&6
7136else
7137  echo "$as_me:$LINENO: result: ok" >&5
7138echo "${ECHO_T}ok" >&6
7139fi
7140
7141echo "$as_me:$LINENO: checking for objdir" >&5
7142echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7143if test "${lt_cv_objdir+set}" = set; then
7144  echo $ECHO_N "(cached) $ECHO_C" >&6
7145else
7146  rm -f .libs 2>/dev/null
7147mkdir .libs 2>/dev/null
7148if test -d .libs; then
7149  lt_cv_objdir=.libs
7150else
7151  # MS-DOS does not allow filenames that begin with a dot.
7152  lt_cv_objdir=_libs
7153fi
7154rmdir .libs 2>/dev/null
7155fi
7156echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7157echo "${ECHO_T}$lt_cv_objdir" >&6
7158objdir=$lt_cv_objdir
7159
7160
7161
7162
7163
7164case $host_os in
7165aix3*)
7166  # AIX sometimes has problems with the GCC collect2 program.  For some
7167  # reason, if we set the COLLECT_NAMES environment variable, the problems
7168  # vanish in a puff of smoke.
7169  if test "X${COLLECT_NAMES+set}" != Xset; then
7170    COLLECT_NAMES=
7171    export COLLECT_NAMES
7172  fi
7173  ;;
7174esac
7175
7176# Sed substitution that helps us do robust quoting.  It backslashifies
7177# metacharacters that are still active within double-quoted strings.
7178Xsed='sed -e 1s/^X//'
7179sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7180
7181# Same as above, but do not quote variable references.
7182double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7183
7184# Sed substitution to delay expansion of an escaped shell variable in a
7185# double_quote_subst'ed string.
7186delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7187
7188# Sed substitution to avoid accidental globbing in evaled expressions
7189no_glob_subst='s/\*/\\\*/g'
7190
7191# Constants:
7192rm="rm -f"
7193
7194# Global variables:
7195default_ofile=libtool
7196can_build_shared=yes
7197
7198# All known linkers require a `.a' archive for static linking (except MSVC,
7199# which needs '.lib').
7200libext=a
7201ltmain="$ac_aux_dir/ltmain.sh"
7202ofile="$default_ofile"
7203with_gnu_ld="$lt_cv_prog_gnu_ld"
7204
7205if test -n "$ac_tool_prefix"; then
7206  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7207set dummy ${ac_tool_prefix}ar; ac_word=$2
7208echo "$as_me:$LINENO: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7210if test "${ac_cv_prog_AR+set}" = set; then
7211  echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213  if test -n "$AR"; then
7214  ac_cv_prog_AR="$AR" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219  IFS=$as_save_IFS
7220  test -z "$as_dir" && as_dir=.
7221  for ac_exec_ext in '' $ac_executable_extensions; do
7222  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223    ac_cv_prog_AR="${ac_tool_prefix}ar"
7224    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225    break 2
7226  fi
7227done
7228done
7229
7230fi
7231fi
7232AR=$ac_cv_prog_AR
7233if test -n "$AR"; then
7234  echo "$as_me:$LINENO: result: $AR" >&5
7235echo "${ECHO_T}$AR" >&6
7236else
7237  echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6
7239fi
7240
7241fi
7242if test -z "$ac_cv_prog_AR"; then
7243  ac_ct_AR=$AR
7244  # Extract the first word of "ar", so it can be a program name with args.
7245set dummy ar; ac_word=$2
7246echo "$as_me:$LINENO: checking for $ac_word" >&5
7247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7248if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7249  echo $ECHO_N "(cached) $ECHO_C" >&6
7250else
7251  if test -n "$ac_ct_AR"; then
7252  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7253else
7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257  IFS=$as_save_IFS
7258  test -z "$as_dir" && as_dir=.
7259  for ac_exec_ext in '' $ac_executable_extensions; do
7260  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261    ac_cv_prog_ac_ct_AR="ar"
7262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263    break 2
7264  fi
7265done
7266done
7267
7268  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7269fi
7270fi
7271ac_ct_AR=$ac_cv_prog_ac_ct_AR
7272if test -n "$ac_ct_AR"; then
7273  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7274echo "${ECHO_T}$ac_ct_AR" >&6
7275else
7276  echo "$as_me:$LINENO: result: no" >&5
7277echo "${ECHO_T}no" >&6
7278fi
7279
7280  AR=$ac_ct_AR
7281else
7282  AR="$ac_cv_prog_AR"
7283fi
7284
7285if test -n "$ac_tool_prefix"; then
7286  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7287set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7288echo "$as_me:$LINENO: checking for $ac_word" >&5
7289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7290if test "${ac_cv_prog_RANLIB+set}" = set; then
7291  echo $ECHO_N "(cached) $ECHO_C" >&6
7292else
7293  if test -n "$RANLIB"; then
7294  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7295else
7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299  IFS=$as_save_IFS
7300  test -z "$as_dir" && as_dir=.
7301  for ac_exec_ext in '' $ac_executable_extensions; do
7302  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7304    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305    break 2
7306  fi
7307done
7308done
7309
7310fi
7311fi
7312RANLIB=$ac_cv_prog_RANLIB
7313if test -n "$RANLIB"; then
7314  echo "$as_me:$LINENO: result: $RANLIB" >&5
7315echo "${ECHO_T}$RANLIB" >&6
7316else
7317  echo "$as_me:$LINENO: result: no" >&5
7318echo "${ECHO_T}no" >&6
7319fi
7320
7321fi
7322if test -z "$ac_cv_prog_RANLIB"; then
7323  ac_ct_RANLIB=$RANLIB
7324  # Extract the first word of "ranlib", so it can be a program name with args.
7325set dummy ranlib; ac_word=$2
7326echo "$as_me:$LINENO: checking for $ac_word" >&5
7327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7328if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7329  echo $ECHO_N "(cached) $ECHO_C" >&6
7330else
7331  if test -n "$ac_ct_RANLIB"; then
7332  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7333else
7334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335for as_dir in $PATH
7336do
7337  IFS=$as_save_IFS
7338  test -z "$as_dir" && as_dir=.
7339  for ac_exec_ext in '' $ac_executable_extensions; do
7340  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341    ac_cv_prog_ac_ct_RANLIB="ranlib"
7342    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343    break 2
7344  fi
7345done
7346done
7347
7348  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7349fi
7350fi
7351ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7352if test -n "$ac_ct_RANLIB"; then
7353  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7354echo "${ECHO_T}$ac_ct_RANLIB" >&6
7355else
7356  echo "$as_me:$LINENO: result: no" >&5
7357echo "${ECHO_T}no" >&6
7358fi
7359
7360  RANLIB=$ac_ct_RANLIB
7361else
7362  RANLIB="$ac_cv_prog_RANLIB"
7363fi
7364
7365if test -n "$ac_tool_prefix"; then
7366  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7367set dummy ${ac_tool_prefix}strip; ac_word=$2
7368echo "$as_me:$LINENO: checking for $ac_word" >&5
7369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7370if test "${ac_cv_prog_STRIP+set}" = set; then
7371  echo $ECHO_N "(cached) $ECHO_C" >&6
7372else
7373  if test -n "$STRIP"; then
7374  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7375else
7376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377for as_dir in $PATH
7378do
7379  IFS=$as_save_IFS
7380  test -z "$as_dir" && as_dir=.
7381  for ac_exec_ext in '' $ac_executable_extensions; do
7382  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7384    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385    break 2
7386  fi
7387done
7388done
7389
7390fi
7391fi
7392STRIP=$ac_cv_prog_STRIP
7393if test -n "$STRIP"; then
7394  echo "$as_me:$LINENO: result: $STRIP" >&5
7395echo "${ECHO_T}$STRIP" >&6
7396else
7397  echo "$as_me:$LINENO: result: no" >&5
7398echo "${ECHO_T}no" >&6
7399fi
7400
7401fi
7402if test -z "$ac_cv_prog_STRIP"; then
7403  ac_ct_STRIP=$STRIP
7404  # Extract the first word of "strip", so it can be a program name with args.
7405set dummy strip; ac_word=$2
7406echo "$as_me:$LINENO: checking for $ac_word" >&5
7407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7408if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7409  echo $ECHO_N "(cached) $ECHO_C" >&6
7410else
7411  if test -n "$ac_ct_STRIP"; then
7412  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417  IFS=$as_save_IFS
7418  test -z "$as_dir" && as_dir=.
7419  for ac_exec_ext in '' $ac_executable_extensions; do
7420  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421    ac_cv_prog_ac_ct_STRIP="strip"
7422    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423    break 2
7424  fi
7425done
7426done
7427
7428  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7429fi
7430fi
7431ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7432if test -n "$ac_ct_STRIP"; then
7433  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7434echo "${ECHO_T}$ac_ct_STRIP" >&6
7435else
7436  echo "$as_me:$LINENO: result: no" >&5
7437echo "${ECHO_T}no" >&6
7438fi
7439
7440  STRIP=$ac_ct_STRIP
7441else
7442  STRIP="$ac_cv_prog_STRIP"
7443fi
7444
7445
7446old_CC="$CC"
7447old_CFLAGS="$CFLAGS"
7448
7449# Set sane defaults for various variables
7450test -z "$AR" && AR=ar
7451test -z "$AR_FLAGS" && AR_FLAGS=cru
7452test -z "$AS" && AS=as
7453test -z "$CC" && CC=cc
7454test -z "$LTCC" && LTCC=$CC
7455test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7456test -z "$DLLTOOL" && DLLTOOL=dlltool
7457test -z "$LD" && LD=ld
7458test -z "$LN_S" && LN_S="ln -s"
7459test -z "$MAGIC_CMD" && MAGIC_CMD=file
7460test -z "$NM" && NM=nm
7461test -z "$SED" && SED=sed
7462test -z "$OBJDUMP" && OBJDUMP=objdump
7463test -z "$RANLIB" && RANLIB=:
7464test -z "$STRIP" && STRIP=:
7465test -z "$ac_objext" && ac_objext=o
7466
7467# Determine commands to create old-style static archives.
7468old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7469old_postinstall_cmds='chmod 644 $oldlib'
7470old_postuninstall_cmds=
7471
7472if test -n "$RANLIB"; then
7473  case $host_os in
7474  openbsd*)
7475    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7476    ;;
7477  *)
7478    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7479    ;;
7480  esac
7481  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7482fi
7483
7484for cc_temp in $compiler""; do
7485  case $cc_temp in
7486    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7487    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7488    \-*) ;;
7489    *) break;;
7490  esac
7491done
7492cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7493
7494
7495# Only perform the check for file, if the check method requires it
7496case $deplibs_check_method in
7497file_magic*)
7498  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7499    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7500echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7501if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7502  echo $ECHO_N "(cached) $ECHO_C" >&6
7503else
7504  case $MAGIC_CMD in
7505[\\/*] |  ?:[\\/]*)
7506  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7507  ;;
7508*)
7509  lt_save_MAGIC_CMD="$MAGIC_CMD"
7510  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7511  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7512  for ac_dir in $ac_dummy; do
7513    IFS="$lt_save_ifs"
7514    test -z "$ac_dir" && ac_dir=.
7515    if test -f $ac_dir/${ac_tool_prefix}file; then
7516      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7517      if test -n "$file_magic_test_file"; then
7518        case $deplibs_check_method in
7519        "file_magic "*)
7520          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7521          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7522          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7523            $EGREP "$file_magic_regex" > /dev/null; then
7524            :
7525          else
7526            cat <<EOF 1>&2
7527
7528*** Warning: the command libtool uses to detect shared libraries,
7529*** $file_magic_cmd, produces output that libtool cannot recognize.
7530*** The result is that libtool may fail to recognize shared libraries
7531*** as such.  This will affect the creation of libtool libraries that
7532*** depend on shared libraries, but programs linked with such libtool
7533*** libraries will work regardless of this problem.  Nevertheless, you
7534*** may want to report the problem to your system manager and/or to
7535*** bug-libtool@gnu.org
7536
7537EOF
7538          fi ;;
7539        esac
7540      fi
7541      break
7542    fi
7543  done
7544  IFS="$lt_save_ifs"
7545  MAGIC_CMD="$lt_save_MAGIC_CMD"
7546  ;;
7547esac
7548fi
7549
7550MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7551if test -n "$MAGIC_CMD"; then
7552  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7553echo "${ECHO_T}$MAGIC_CMD" >&6
7554else
7555  echo "$as_me:$LINENO: result: no" >&5
7556echo "${ECHO_T}no" >&6
7557fi
7558
7559if test -z "$lt_cv_path_MAGIC_CMD"; then
7560  if test -n "$ac_tool_prefix"; then
7561    echo "$as_me:$LINENO: checking for file" >&5
7562echo $ECHO_N "checking for file... $ECHO_C" >&6
7563if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7564  echo $ECHO_N "(cached) $ECHO_C" >&6
7565else
7566  case $MAGIC_CMD in
7567[\\/*] |  ?:[\\/]*)
7568  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7569  ;;
7570*)
7571  lt_save_MAGIC_CMD="$MAGIC_CMD"
7572  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7573  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7574  for ac_dir in $ac_dummy; do
7575    IFS="$lt_save_ifs"
7576    test -z "$ac_dir" && ac_dir=.
7577    if test -f $ac_dir/file; then
7578      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7579      if test -n "$file_magic_test_file"; then
7580        case $deplibs_check_method in
7581        "file_magic "*)
7582          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7583          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7584          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7585            $EGREP "$file_magic_regex" > /dev/null; then
7586            :
7587          else
7588            cat <<EOF 1>&2
7589
7590*** Warning: the command libtool uses to detect shared libraries,
7591*** $file_magic_cmd, produces output that libtool cannot recognize.
7592*** The result is that libtool may fail to recognize shared libraries
7593*** as such.  This will affect the creation of libtool libraries that
7594*** depend on shared libraries, but programs linked with such libtool
7595*** libraries will work regardless of this problem.  Nevertheless, you
7596*** may want to report the problem to your system manager and/or to
7597*** bug-libtool@gnu.org
7598
7599EOF
7600          fi ;;
7601        esac
7602      fi
7603      break
7604    fi
7605  done
7606  IFS="$lt_save_ifs"
7607  MAGIC_CMD="$lt_save_MAGIC_CMD"
7608  ;;
7609esac
7610fi
7611
7612MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7613if test -n "$MAGIC_CMD"; then
7614  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7615echo "${ECHO_T}$MAGIC_CMD" >&6
7616else
7617  echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6
7619fi
7620
7621  else
7622    MAGIC_CMD=:
7623  fi
7624fi
7625
7626  fi
7627  ;;
7628esac
7629
7630enable_dlopen=no
7631enable_win32_dll=no
7632
7633# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7634if test "${enable_libtool_lock+set}" = set; then
7635  enableval="$enable_libtool_lock"
7636
7637fi;
7638test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7639
7640
7641# Check whether --with-pic or --without-pic was given.
7642if test "${with_pic+set}" = set; then
7643  withval="$with_pic"
7644  pic_mode="$withval"
7645else
7646  pic_mode=default
7647fi;
7648test -z "$pic_mode" && pic_mode=default
7649
7650# Use C for the default configuration in the libtool script
7651tagname=
7652lt_save_CC="$CC"
7653ac_ext=c
7654ac_cpp='$CPP $CPPFLAGS'
7655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658
7659
7660# Source file extension for C test sources.
7661ac_ext=c
7662
7663# Object file extension for compiled C test sources.
7664objext=o
7665objext=$objext
7666
7667# Code to be used in simple compile tests
7668lt_simple_compile_test_code="int some_variable = 0;\n"
7669
7670# Code to be used in simple link tests
7671lt_simple_link_test_code='int main(){return(0);}\n'
7672
7673
7674# If no C compiler was specified, use CC.
7675LTCC=${LTCC-"$CC"}
7676
7677# If no C compiler flags were specified, use CFLAGS.
7678LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7679
7680# Allow CC to be a program name with arguments.
7681compiler=$CC
7682
7683
7684# save warnings/boilerplate of simple test code
7685ac_outfile=conftest.$ac_objext
7686printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7687eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7688_lt_compiler_boilerplate=`cat conftest.err`
7689$rm conftest*
7690
7691ac_outfile=conftest.$ac_objext
7692printf "$lt_simple_link_test_code" >conftest.$ac_ext
7693eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7694_lt_linker_boilerplate=`cat conftest.err`
7695$rm conftest*
7696
7697
7698## CAVEAT EMPTOR:
7699## There is no encapsulation within the following macros, do not change
7700## the running order or otherwise move them around unless you know exactly
7701## what you are doing...
7702
7703lt_prog_compiler_no_builtin_flag=
7704
7705if test "$GCC" = yes; then
7706  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7707
7708
7709echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7710echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7711if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7712  echo $ECHO_N "(cached) $ECHO_C" >&6
7713else
7714  lt_cv_prog_compiler_rtti_exceptions=no
7715  ac_outfile=conftest.$ac_objext
7716   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7717   lt_compiler_flag="-fno-rtti -fno-exceptions"
7718   # Insert the option either (1) after the last *FLAGS variable, or
7719   # (2) before a word containing "conftest.", or (3) at the end.
7720   # Note that $ac_compile itself does not contain backslashes and begins
7721   # with a dollar sign (not a hyphen), so the echo should work correctly.
7722   # The option is referenced via a variable to avoid confusing sed.
7723   lt_compile=`echo "$ac_compile" | $SED \
7724   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7725   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7726   -e 's:$: $lt_compiler_flag:'`
7727   (eval echo "\"\$as_me:7727: $lt_compile\"" >&5)
7728   (eval "$lt_compile" 2>conftest.err)
7729   ac_status=$?
7730   cat conftest.err >&5
7731   echo "$as_me:7731: \$? = $ac_status" >&5
7732   if (exit $ac_status) && test -s "$ac_outfile"; then
7733     # The compiler can only warn and ignore the option if not recognized
7734     # So say no if there are warnings other than the usual output.
7735     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7736     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7737     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7738       lt_cv_prog_compiler_rtti_exceptions=yes
7739     fi
7740   fi
7741   $rm conftest*
7742
7743fi
7744echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7745echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7746
7747if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7748    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7749else
7750    :
7751fi
7752
7753fi
7754
7755lt_prog_compiler_wl=
7756lt_prog_compiler_pic=
7757lt_prog_compiler_static=
7758
7759echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7760echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7761
7762  if test "$GCC" = yes; then
7763    lt_prog_compiler_wl='-Wl,'
7764    lt_prog_compiler_static='-static'
7765
7766    case $host_os in
7767      aix*)
7768      # All AIX code is PIC.
7769      if test "$host_cpu" = ia64; then
7770        # AIX 5 now supports IA64 processor
7771        lt_prog_compiler_static='-Bstatic'
7772      fi
7773      ;;
7774
7775    amigaos*)
7776      # FIXME: we need at least 68020 code to build shared libraries, but
7777      # adding the `-m68020' flag to GCC prevents building anything better,
7778      # like `-m68040'.
7779      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7780      ;;
7781
7782    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7783      # PIC is the default for these OSes.
7784      ;;
7785
7786    mingw* | pw32* | os2*)
7787      # This hack is so that the source file can tell whether it is being
7788      # built for inclusion in a dll (and should export symbols for example).
7789      lt_prog_compiler_pic='-DDLL_EXPORT'
7790      ;;
7791
7792    darwin* | rhapsody*)
7793      # PIC is the default on this platform
7794      # Common symbols not allowed in MH_DYLIB files
7795      lt_prog_compiler_pic='-fno-common'
7796      ;;
7797
7798    interix3*)
7799      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7800      # Instead, we relocate shared libraries at runtime.
7801      ;;
7802
7803    msdosdjgpp*)
7804      # Just because we use GCC doesn't mean we suddenly get shared libraries
7805      # on systems that don't support them.
7806      lt_prog_compiler_can_build_shared=no
7807      enable_shared=no
7808      ;;
7809
7810    sysv4*MP*)
7811      if test -d /usr/nec; then
7812        lt_prog_compiler_pic=-Kconform_pic
7813      fi
7814      ;;
7815
7816    hpux*)
7817      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7818      # not for PA HP-UX.
7819      case $host_cpu in
7820      hppa*64*|ia64*)
7821        # +Z the default
7822        ;;
7823      *)
7824        lt_prog_compiler_pic='-fPIC'
7825        ;;
7826      esac
7827      ;;
7828
7829    *)
7830      lt_prog_compiler_pic='-fPIC'
7831      ;;
7832    esac
7833  else
7834    # PORTME Check for flag to pass linker flags through the system compiler.
7835    case $host_os in
7836    aix*)
7837      lt_prog_compiler_wl='-Wl,'
7838      if test "$host_cpu" = ia64; then
7839        # AIX 5 now supports IA64 processor
7840        lt_prog_compiler_static='-Bstatic'
7841      else
7842        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7843      fi
7844      ;;
7845      darwin*)
7846        # PIC is the default on this platform
7847        # Common symbols not allowed in MH_DYLIB files
7848       case $cc_basename in
7849         xlc*)
7850         lt_prog_compiler_pic='-qnocommon'
7851         lt_prog_compiler_wl='-Wl,'
7852         ;;
7853       esac
7854       ;;
7855
7856    mingw* | pw32* | os2*)
7857      # This hack is so that the source file can tell whether it is being
7858      # built for inclusion in a dll (and should export symbols for example).
7859      lt_prog_compiler_pic='-DDLL_EXPORT'
7860      ;;
7861
7862    hpux9* | hpux10* | hpux11*)
7863      lt_prog_compiler_wl='-Wl,'
7864      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7865      # not for PA HP-UX.
7866      case $host_cpu in
7867      hppa*64*|ia64*)
7868        # +Z the default
7869        ;;
7870      *)
7871        lt_prog_compiler_pic='+Z'
7872        ;;
7873      esac
7874      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7875      lt_prog_compiler_static='${wl}-a ${wl}archive'
7876      ;;
7877
7878    irix5* | irix6* | nonstopux*)
7879      lt_prog_compiler_wl='-Wl,'
7880      # PIC (with -KPIC) is the default.
7881      lt_prog_compiler_static='-non_shared'
7882      ;;
7883
7884    newsos6)
7885      lt_prog_compiler_pic='-KPIC'
7886      lt_prog_compiler_static='-Bstatic'
7887      ;;
7888
7889    linux*)
7890      case $cc_basename in
7891      icc* | ecc*)
7892        lt_prog_compiler_wl='-Wl,'
7893        lt_prog_compiler_pic='-KPIC'
7894        lt_prog_compiler_static='-static'
7895        ;;
7896      pgcc* | pgf77* | pgf90* | pgf95*)
7897        # Portland Group compilers (*not* the Pentium gcc compiler,
7898        # which looks to be a dead project)
7899        lt_prog_compiler_wl='-Wl,'
7900        lt_prog_compiler_pic='-fpic'
7901        lt_prog_compiler_static='-Bstatic'
7902        ;;
7903      ccc*)
7904        lt_prog_compiler_wl='-Wl,'
7905        # All Alpha code is PIC.
7906        lt_prog_compiler_static='-non_shared'
7907        ;;
7908      esac
7909      ;;
7910
7911    osf3* | osf4* | osf5*)
7912      lt_prog_compiler_wl='-Wl,'
7913      # All OSF/1 code is PIC.
7914      lt_prog_compiler_static='-non_shared'
7915      ;;
7916
7917    solaris*)
7918      lt_prog_compiler_pic='-KPIC'
7919      lt_prog_compiler_static='-Bstatic'
7920      case $cc_basename in
7921      f77* | f90* | f95*)
7922        lt_prog_compiler_wl='-Qoption ld ';;
7923      *)
7924        lt_prog_compiler_wl='-Wl,';;
7925      esac
7926      ;;
7927
7928    sunos4*)
7929      lt_prog_compiler_wl='-Qoption ld '
7930      lt_prog_compiler_pic='-PIC'
7931      lt_prog_compiler_static='-Bstatic'
7932      ;;
7933
7934    sysv4 | sysv4.2uw2* | sysv4.3*)
7935      lt_prog_compiler_wl='-Wl,'
7936      lt_prog_compiler_pic='-KPIC'
7937      lt_prog_compiler_static='-Bstatic'
7938      ;;
7939
7940    sysv4*MP*)
7941      if test -d /usr/nec ;then
7942        lt_prog_compiler_pic='-Kconform_pic'
7943        lt_prog_compiler_static='-Bstatic'
7944      fi
7945      ;;
7946
7947    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7948      lt_prog_compiler_wl='-Wl,'
7949      lt_prog_compiler_pic='-KPIC'
7950      lt_prog_compiler_static='-Bstatic'
7951      ;;
7952
7953    unicos*)
7954      lt_prog_compiler_wl='-Wl,'
7955      lt_prog_compiler_can_build_shared=no
7956      ;;
7957
7958    uts4*)
7959      lt_prog_compiler_pic='-pic'
7960      lt_prog_compiler_static='-Bstatic'
7961      ;;
7962
7963    *)
7964      lt_prog_compiler_can_build_shared=no
7965      ;;
7966    esac
7967  fi
7968
7969echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7970echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7971
7972#
7973# Check to make sure the PIC flag actually works.
7974#
7975if test -n "$lt_prog_compiler_pic"; then
7976
7977echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7978echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7979if test "${lt_prog_compiler_pic_works+set}" = set; then
7980  echo $ECHO_N "(cached) $ECHO_C" >&6
7981else
7982  lt_prog_compiler_pic_works=no
7983  ac_outfile=conftest.$ac_objext
7984   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7985   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7986   # Insert the option either (1) after the last *FLAGS variable, or
7987   # (2) before a word containing "conftest.", or (3) at the end.
7988   # Note that $ac_compile itself does not contain backslashes and begins
7989   # with a dollar sign (not a hyphen), so the echo should work correctly.
7990   # The option is referenced via a variable to avoid confusing sed.
7991   lt_compile=`echo "$ac_compile" | $SED \
7992   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7994   -e 's:$: $lt_compiler_flag:'`
7995   (eval echo "\"\$as_me:7995: $lt_compile\"" >&5)
7996   (eval "$lt_compile" 2>conftest.err)
7997   ac_status=$?
7998   cat conftest.err >&5
7999   echo "$as_me:7999: \$? = $ac_status" >&5
8000   if (exit $ac_status) && test -s "$ac_outfile"; then
8001     # The compiler can only warn and ignore the option if not recognized
8002     # So say no if there are warnings other than the usual output.
8003     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8004     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8005     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8006       lt_prog_compiler_pic_works=yes
8007     fi
8008   fi
8009   $rm conftest*
8010
8011fi
8012echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8013echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8014
8015if test x"$lt_prog_compiler_pic_works" = xyes; then
8016    case $lt_prog_compiler_pic in
8017     "" | " "*) ;;
8018     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8019     esac
8020else
8021    lt_prog_compiler_pic=
8022     lt_prog_compiler_can_build_shared=no
8023fi
8024
8025fi
8026case $host_os in
8027  # For platforms which do not support PIC, -DPIC is meaningless:
8028  *djgpp*)
8029    lt_prog_compiler_pic=
8030    ;;
8031  *)
8032    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8033    ;;
8034esac
8035
8036#
8037# Check to make sure the static flag actually works.
8038#
8039wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8040echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8041echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8042if test "${lt_prog_compiler_static_works+set}" = set; then
8043  echo $ECHO_N "(cached) $ECHO_C" >&6
8044else
8045  lt_prog_compiler_static_works=no
8046   save_LDFLAGS="$LDFLAGS"
8047   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8048   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8049   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8050     # The linker can only warn and ignore the option if not recognized
8051     # So say no if there are warnings
8052     if test -s conftest.err; then
8053       # Append any errors to the config.log.
8054       cat conftest.err 1>&5
8055       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8056       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8057       if diff conftest.exp conftest.er2 >/dev/null; then
8058         lt_prog_compiler_static_works=yes
8059       fi
8060     else
8061       lt_prog_compiler_static_works=yes
8062     fi
8063   fi
8064   $rm conftest*
8065   LDFLAGS="$save_LDFLAGS"
8066
8067fi
8068echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8069echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8070
8071if test x"$lt_prog_compiler_static_works" = xyes; then
8072    :
8073else
8074    lt_prog_compiler_static=
8075fi
8076
8077
8078echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8079echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8080if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8081  echo $ECHO_N "(cached) $ECHO_C" >&6
8082else
8083  lt_cv_prog_compiler_c_o=no
8084   $rm -r conftest 2>/dev/null
8085   mkdir conftest
8086   cd conftest
8087   mkdir out
8088   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8089
8090   lt_compiler_flag="-o out/conftest2.$ac_objext"
8091   # Insert the option either (1) after the last *FLAGS variable, or
8092   # (2) before a word containing "conftest.", or (3) at the end.
8093   # Note that $ac_compile itself does not contain backslashes and begins
8094   # with a dollar sign (not a hyphen), so the echo should work correctly.
8095   lt_compile=`echo "$ac_compile" | $SED \
8096   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8097   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8098   -e 's:$: $lt_compiler_flag:'`
8099   (eval echo "\"\$as_me:8099: $lt_compile\"" >&5)
8100   (eval "$lt_compile" 2>out/conftest.err)
8101   ac_status=$?
8102   cat out/conftest.err >&5
8103   echo "$as_me:8103: \$? = $ac_status" >&5
8104   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8105   then
8106     # The compiler can only warn and ignore the option if not recognized
8107     # So say no if there are warnings
8108     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8109     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8110     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8111       lt_cv_prog_compiler_c_o=yes
8112     fi
8113   fi
8114   chmod u+w . 2>&5
8115   $rm conftest*
8116   # SGI C++ compiler will create directory out/ii_files/ for
8117   # template instantiation
8118   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8119   $rm out/* && rmdir out
8120   cd ..
8121   rmdir conftest
8122   $rm conftest*
8123
8124fi
8125echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8126echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8127
8128
8129hard_links="nottested"
8130if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8131  # do not overwrite the value of need_locks provided by the user
8132  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8133echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8134  hard_links=yes
8135  $rm conftest*
8136  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8137  touch conftest.a
8138  ln conftest.a conftest.b 2>&5 || hard_links=no
8139  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8140  echo "$as_me:$LINENO: result: $hard_links" >&5
8141echo "${ECHO_T}$hard_links" >&6
8142  if test "$hard_links" = no; then
8143    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8144echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8145    need_locks=warn
8146  fi
8147else
8148  need_locks=no
8149fi
8150
8151echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8152echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8153
8154  runpath_var=
8155  allow_undefined_flag=
8156  enable_shared_with_static_runtimes=no
8157  archive_cmds=
8158  archive_expsym_cmds=
8159  old_archive_From_new_cmds=
8160  old_archive_from_expsyms_cmds=
8161  export_dynamic_flag_spec=
8162  whole_archive_flag_spec=
8163  thread_safe_flag_spec=
8164  hardcode_libdir_flag_spec=
8165  hardcode_libdir_flag_spec_ld=
8166  hardcode_libdir_separator=
8167  hardcode_direct=no
8168  hardcode_minus_L=no
8169  hardcode_shlibpath_var=unsupported
8170  link_all_deplibs=unknown
8171  hardcode_automatic=no
8172  module_cmds=
8173  module_expsym_cmds=
8174  always_export_symbols=no
8175  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8176  # include_expsyms should be a list of space-separated symbols to be *always*
8177  # included in the symbol list
8178  include_expsyms=
8179  # exclude_expsyms can be an extended regexp of symbols to exclude
8180  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8181  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8182  # as well as any symbol that contains `d'.
8183  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8184  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8185  # platforms (ab)use it in PIC code, but their linkers get confused if
8186  # the symbol is explicitly referenced.  Since portable code cannot
8187  # rely on this symbol name, it's probably fine to never include it in
8188  # preloaded symbol tables.
8189  extract_expsyms_cmds=
8190  # Just being paranoid about ensuring that cc_basename is set.
8191  for cc_temp in $compiler""; do
8192  case $cc_temp in
8193    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8194    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8195    \-*) ;;
8196    *) break;;
8197  esac
8198done
8199cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8200
8201  case $host_os in
8202  cygwin* | mingw* | pw32*)
8203    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8204    # When not using gcc, we currently assume that we are using
8205    # Microsoft Visual C++.
8206    if test "$GCC" != yes; then
8207      with_gnu_ld=no
8208    fi
8209    ;;
8210  interix*)
8211    # we just hope/assume this is gcc and not c89 (= MSVC++)
8212    with_gnu_ld=yes
8213    ;;
8214  openbsd*)
8215    with_gnu_ld=no
8216    ;;
8217  esac
8218
8219  ld_shlibs=yes
8220  if test "$with_gnu_ld" = yes; then
8221    # If archive_cmds runs LD, not CC, wlarc should be empty
8222    wlarc='${wl}'
8223
8224    # Set some defaults for GNU ld with shared library support. These
8225    # are reset later if shared libraries are not supported. Putting them
8226    # here allows them to be overridden if necessary.
8227    runpath_var=LD_RUN_PATH
8228    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8229    export_dynamic_flag_spec='${wl}--export-dynamic'
8230    # ancient GNU ld didn't support --whole-archive et. al.
8231    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8232        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8233      else
8234        whole_archive_flag_spec=
8235    fi
8236    supports_anon_versioning=no
8237    case `$LD -v 2>/dev/null` in
8238      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8239      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8240      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8241      *\ 2.11.*) ;; # other 2.11 versions
8242      *) supports_anon_versioning=yes ;;
8243    esac
8244
8245    # See if GNU ld supports shared libraries.
8246    case $host_os in
8247    aix3* | aix4* | aix5*)
8248      # On AIX/PPC, the GNU linker is very broken
8249      if test "$host_cpu" != ia64; then
8250        ld_shlibs=no
8251        cat <<EOF 1>&2
8252
8253*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8254*** to be unable to reliably create shared libraries on AIX.
8255*** Therefore, libtool is disabling shared libraries support.  If you
8256*** really care for shared libraries, you may want to modify your PATH
8257*** so that a non-GNU linker is found, and then restart.
8258
8259EOF
8260      fi
8261      ;;
8262
8263    amigaos*)
8264      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)'
8265      hardcode_libdir_flag_spec='-L$libdir'
8266      hardcode_minus_L=yes
8267
8268      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8269      # that the semantics of dynamic libraries on AmigaOS, at least up
8270      # to version 4, is to share data among multiple programs linked
8271      # with the same dynamic library.  Since this doesn't match the
8272      # behavior of shared libraries on other platforms, we can't use
8273      # them.
8274      ld_shlibs=no
8275      ;;
8276
8277    beos*)
8278      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8279        allow_undefined_flag=unsupported
8280        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8281        # support --undefined.  This deserves some investigation.  FIXME
8282        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283      else
8284        ld_shlibs=no
8285      fi
8286      ;;
8287
8288    cygwin* | mingw* | pw32*)
8289      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8290      # as there is no search path for DLLs.
8291      hardcode_libdir_flag_spec='-L$libdir'
8292      allow_undefined_flag=unsupported
8293      always_export_symbols=no
8294      enable_shared_with_static_runtimes=yes
8295      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8296
8297      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8298        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8299        # If the export-symbols file already is a .def file (1st line
8300        # is EXPORTS), use it as is; otherwise, prepend...
8301        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8302          cp $export_symbols $output_objdir/$soname.def;
8303        else
8304          echo EXPORTS > $output_objdir/$soname.def;
8305          cat $export_symbols >> $output_objdir/$soname.def;
8306        fi~
8307        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8308      else
8309        ld_shlibs=no
8310      fi
8311      ;;
8312
8313    interix3*)
8314      hardcode_direct=no
8315      hardcode_shlibpath_var=no
8316      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8317      export_dynamic_flag_spec='${wl}-E'
8318      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8319      # Instead, shared libraries are loaded at an image base (0x10000000 by
8320      # default) and relocated if they conflict, which is a slow very memory
8321      # consuming and fragmenting process.  To avoid this, we pick a random,
8322      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8323      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8324      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8325      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'
8326      ;;
8327
8328    linux*)
8329      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8330        tmp_addflag=
8331        case $cc_basename,$host_cpu in
8332        pgcc*)                          # Portland Group C compiler
8333          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'
8334          tmp_addflag=' $pic_flag'
8335          ;;
8336        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8337          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'
8338          tmp_addflag=' $pic_flag -Mnomain' ;;
8339        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8340          tmp_addflag=' -i_dynamic' ;;
8341        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8342          tmp_addflag=' -i_dynamic -nofor_main' ;;
8343        ifc* | ifort*)                  # Intel Fortran compiler
8344          tmp_addflag=' -nofor_main' ;;
8345        esac
8346        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8347
8348        if test $supports_anon_versioning = yes; then
8349          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8350  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8351  $echo "local: *; };" >> $output_objdir/$libname.ver~
8352          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8353        fi
8354      else
8355        ld_shlibs=no
8356      fi
8357      ;;
8358
8359    netbsd*)
8360      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8361        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8362        wlarc=
8363      else
8364        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8366      fi
8367      ;;
8368
8369    solaris*)
8370      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8371        ld_shlibs=no
8372        cat <<EOF 1>&2
8373
8374*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8375*** create shared libraries on Solaris systems.  Therefore, libtool
8376*** is disabling shared libraries support.  We urge you to upgrade GNU
8377*** binutils to release 2.9.1 or newer.  Another option is to modify
8378*** your PATH or compiler configuration so that the native linker is
8379*** used, and then restart.
8380
8381EOF
8382      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8383        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8384        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8385      else
8386        ld_shlibs=no
8387      fi
8388      ;;
8389
8390    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8391      case `$LD -v 2>&1` in
8392        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8393        ld_shlibs=no
8394        cat <<_LT_EOF 1>&2
8395
8396*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8397*** reliably create shared libraries on SCO systems.  Therefore, libtool
8398*** is disabling shared libraries support.  We urge you to upgrade GNU
8399*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8400*** your PATH or compiler configuration so that the native linker is
8401*** used, and then restart.
8402
8403_LT_EOF
8404        ;;
8405        *)
8406          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8407            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8408            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8409            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8410          else
8411            ld_shlibs=no
8412          fi
8413        ;;
8414      esac
8415      ;;
8416
8417    sunos4*)
8418      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8419      wlarc=
8420      hardcode_direct=yes
8421      hardcode_shlibpath_var=no
8422      ;;
8423
8424    *)
8425      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8426        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8427        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8428      else
8429        ld_shlibs=no
8430      fi
8431      ;;
8432    esac
8433
8434    if test "$ld_shlibs" = no; then
8435      runpath_var=
8436      hardcode_libdir_flag_spec=
8437      export_dynamic_flag_spec=
8438      whole_archive_flag_spec=
8439    fi
8440  else
8441    # PORTME fill in a description of your system's linker (not GNU ld)
8442    case $host_os in
8443    aix3*)
8444      allow_undefined_flag=unsupported
8445      always_export_symbols=yes
8446      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'
8447      # Note: this linker hardcodes the directories in LIBPATH if there
8448      # are no directories specified by -L.
8449      hardcode_minus_L=yes
8450      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8451        # Neither direct hardcoding nor static linking is supported with a
8452        # broken collect2.
8453        hardcode_direct=unsupported
8454      fi
8455      ;;
8456
8457    aix4* | aix5*)
8458      if test "$host_cpu" = ia64; then
8459        # On IA64, the linker does run time linking by default, so we don't
8460        # have to do anything special.
8461        aix_use_runtimelinking=no
8462        exp_sym_flag='-Bexport'
8463        no_entry_flag=""
8464      else
8465        # If we're using GNU nm, then we don't want the "-C" option.
8466        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8467        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8468          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'
8469        else
8470          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'
8471        fi
8472        aix_use_runtimelinking=no
8473
8474        # Test if we are trying to use run time linking or normal
8475        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8476        # need to do runtime linking.
8477        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8478          for ld_flag in $LDFLAGS; do
8479          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8480            aix_use_runtimelinking=yes
8481            break
8482          fi
8483          done
8484          ;;
8485        esac
8486
8487        exp_sym_flag='-bexport'
8488        no_entry_flag='-bnoentry'
8489      fi
8490
8491      # When large executables or shared objects are built, AIX ld can
8492      # have problems creating the table of contents.  If linking a library
8493      # or program results in "error TOC overflow" add -mminimal-toc to
8494      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8495      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8496
8497      archive_cmds=''
8498      hardcode_direct=yes
8499      hardcode_libdir_separator=':'
8500      link_all_deplibs=yes
8501
8502      if test "$GCC" = yes; then
8503        case $host_os in aix4.[012]|aix4.[012].*)
8504        # We only want to do this on AIX 4.2 and lower, the check
8505        # below for broken collect2 doesn't work under 4.3+
8506          collect2name=`${CC} -print-prog-name=collect2`
8507          if test -f "$collect2name" && \
8508           strings "$collect2name" | grep resolve_lib_name >/dev/null
8509          then
8510          # We have reworked collect2
8511          hardcode_direct=yes
8512          else
8513          # We have old collect2
8514          hardcode_direct=unsupported
8515          # It fails to find uninstalled libraries when the uninstalled
8516          # path is not listed in the libpath.  Setting hardcode_minus_L
8517          # to unsupported forces relinking
8518          hardcode_minus_L=yes
8519          hardcode_libdir_flag_spec='-L$libdir'
8520          hardcode_libdir_separator=
8521          fi
8522          ;;
8523        esac
8524        shared_flag='-shared'
8525        if test "$aix_use_runtimelinking" = yes; then
8526          shared_flag="$shared_flag "'${wl}-G'
8527        fi
8528      else
8529        # not using gcc
8530        if test "$host_cpu" = ia64; then
8531        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8532        # chokes on -Wl,-G. The following line is correct:
8533          shared_flag='-G'
8534        else
8535          if test "$aix_use_runtimelinking" = yes; then
8536            shared_flag='${wl}-G'
8537          else
8538            shared_flag='${wl}-bM:SRE'
8539          fi
8540        fi
8541      fi
8542
8543      # It seems that -bexpall does not export symbols beginning with
8544      # underscore (_), so it is better to generate a list of symbols to export.
8545      always_export_symbols=yes
8546      if test "$aix_use_runtimelinking" = yes; then
8547        # Warning - without using the other runtime loading flags (-brtl),
8548        # -berok will link without error, but may produce a broken library.
8549        allow_undefined_flag='-berok'
8550       # Determine the default libpath from the value encoded in an empty executable.
8551       cat >conftest.$ac_ext <<_ACEOF
8552/* confdefs.h.  */
8553_ACEOF
8554cat confdefs.h >>conftest.$ac_ext
8555cat >>conftest.$ac_ext <<_ACEOF
8556/* end confdefs.h.  */
8557
8558int
8559main ()
8560{
8561
8562  ;
8563  return 0;
8564}
8565_ACEOF
8566rm -f conftest.$ac_objext conftest$ac_exeext
8567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8568  (eval $ac_link) 2>conftest.er1
8569  ac_status=$?
8570  grep -v '^ *+' conftest.er1 >conftest.err
8571  rm -f conftest.er1
8572  cat conftest.err >&5
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); } &&
8575         { ac_try='test -z "$ac_c_werror_flag"
8576                         || test ! -s conftest.err'
8577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578  (eval $ac_try) 2>&5
8579  ac_status=$?
8580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581  (exit $ac_status); }; } &&
8582         { ac_try='test -s conftest$ac_exeext'
8583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584  (eval $ac_try) 2>&5
8585  ac_status=$?
8586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587  (exit $ac_status); }; }; then
8588
8589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8590}'`
8591# Check for a 64-bit object if we didn't find anything.
8592if 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; }
8593}'`; fi
8594else
8595  echo "$as_me: failed program was:" >&5
8596sed 's/^/| /' conftest.$ac_ext >&5
8597
8598fi
8599rm -f conftest.err conftest.$ac_objext \
8600      conftest$ac_exeext conftest.$ac_ext
8601if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8602
8603       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8604        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"
8605       else
8606        if test "$host_cpu" = ia64; then
8607          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8608          allow_undefined_flag="-z nodefs"
8609          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"
8610        else
8611         # Determine the default libpath from the value encoded in an empty executable.
8612         cat >conftest.$ac_ext <<_ACEOF
8613/* confdefs.h.  */
8614_ACEOF
8615cat confdefs.h >>conftest.$ac_ext
8616cat >>conftest.$ac_ext <<_ACEOF
8617/* end confdefs.h.  */
8618
8619int
8620main ()
8621{
8622
8623  ;
8624  return 0;
8625}
8626_ACEOF
8627rm -f conftest.$ac_objext conftest$ac_exeext
8628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629  (eval $ac_link) 2>conftest.er1
8630  ac_status=$?
8631  grep -v '^ *+' conftest.er1 >conftest.err
8632  rm -f conftest.er1
8633  cat conftest.err >&5
8634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635  (exit $ac_status); } &&
8636         { ac_try='test -z "$ac_c_werror_flag"
8637                         || test ! -s conftest.err'
8638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639  (eval $ac_try) 2>&5
8640  ac_status=$?
8641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642  (exit $ac_status); }; } &&
8643         { ac_try='test -s conftest$ac_exeext'
8644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645  (eval $ac_try) 2>&5
8646  ac_status=$?
8647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648  (exit $ac_status); }; }; then
8649
8650aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8651}'`
8652# Check for a 64-bit object if we didn't find anything.
8653if 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; }
8654}'`; fi
8655else
8656  echo "$as_me: failed program was:" >&5
8657sed 's/^/| /' conftest.$ac_ext >&5
8658
8659fi
8660rm -f conftest.err conftest.$ac_objext \
8661      conftest$ac_exeext conftest.$ac_ext
8662if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8663
8664         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8665          # Warning - without using the other run time loading flags,
8666          # -berok will link without error, but may produce a broken library.
8667          no_undefined_flag=' ${wl}-bernotok'
8668          allow_undefined_flag=' ${wl}-berok'
8669          # Exported symbols can be pulled into shared objects from archives
8670          whole_archive_flag_spec='$convenience'
8671          archive_cmds_need_lc=yes
8672          # This is similar to how AIX traditionally builds its shared libraries.
8673          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'
8674        fi
8675      fi
8676      ;;
8677
8678    amigaos*)
8679      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)'
8680      hardcode_libdir_flag_spec='-L$libdir'
8681      hardcode_minus_L=yes
8682      # see comment about different semantics on the GNU ld section
8683      ld_shlibs=no
8684      ;;
8685
8686    bsdi[45]*)
8687      export_dynamic_flag_spec=-rdynamic
8688      ;;
8689
8690    cygwin* | mingw* | pw32*)
8691      # When not using gcc, we currently assume that we are using
8692      # Microsoft Visual C++.
8693      # hardcode_libdir_flag_spec is actually meaningless, as there is
8694      # no search path for DLLs.
8695      hardcode_libdir_flag_spec=' '
8696      allow_undefined_flag=unsupported
8697      # Tell ltmain to make .lib files, not .a files.
8698      libext=lib
8699      # Tell ltmain to make .dll files, not .so files.
8700      shrext_cmds=".dll"
8701      # FIXME: Setting linknames here is a bad hack.
8702      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8703      # The linker will automatically build a .lib file if we build a DLL.
8704      old_archive_From_new_cmds='true'
8705      # FIXME: Should let the user specify the lib program.
8706      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8707      fix_srcfile_path='`cygpath -w "$srcfile"`'
8708      enable_shared_with_static_runtimes=yes
8709      ;;
8710
8711    darwin* | rhapsody*)
8712      case $host_os in
8713        rhapsody* | darwin1.[012])
8714         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8715         ;;
8716       *) # Darwin 1.3 on
8717         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8718           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8719         else
8720           case ${MACOSX_DEPLOYMENT_TARGET} in
8721             10.[012])
8722               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8723               ;;
8724             10.*)
8725               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8726               ;;
8727           esac
8728         fi
8729         ;;
8730      esac
8731      archive_cmds_need_lc=no
8732      hardcode_direct=no
8733      hardcode_automatic=yes
8734      hardcode_shlibpath_var=unsupported
8735      whole_archive_flag_spec=''
8736      link_all_deplibs=yes
8737    if test "$GCC" = yes ; then
8738        output_verbose_link_cmd='echo'
8739        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8740      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8741      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8742      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}'
8743      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}'
8744    else
8745      case $cc_basename in
8746        xlc*)
8747         output_verbose_link_cmd='echo'
8748         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8749         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8750          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8751         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}'
8752          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}'
8753          ;;
8754       *)
8755         ld_shlibs=no
8756          ;;
8757      esac
8758    fi
8759      ;;
8760
8761    dgux*)
8762      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763      hardcode_libdir_flag_spec='-L$libdir'
8764      hardcode_shlibpath_var=no
8765      ;;
8766
8767    freebsd1*)
8768      ld_shlibs=no
8769      ;;
8770
8771    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8772    # support.  Future versions do this automatically, but an explicit c++rt0.o
8773    # does not break anything, and helps significantly (at the cost of a little
8774    # extra space).
8775    freebsd2.2*)
8776      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8777      hardcode_libdir_flag_spec='-R$libdir'
8778      hardcode_direct=yes
8779      hardcode_shlibpath_var=no
8780      ;;
8781
8782    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8783    freebsd2*)
8784      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8785      hardcode_direct=yes
8786      hardcode_minus_L=yes
8787      hardcode_shlibpath_var=no
8788      ;;
8789
8790    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8791    freebsd* | kfreebsd*-gnu | dragonfly*)
8792      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8793      hardcode_libdir_flag_spec='-R$libdir'
8794      hardcode_direct=yes
8795      hardcode_shlibpath_var=no
8796      ;;
8797
8798    hpux9*)
8799      if test "$GCC" = yes; then
8800        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'
8801      else
8802        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'
8803      fi
8804      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8805      hardcode_libdir_separator=:
8806      hardcode_direct=yes
8807
8808      # hardcode_minus_L: Not really in the search PATH,
8809      # but as the default location of the library.
8810      hardcode_minus_L=yes
8811      export_dynamic_flag_spec='${wl}-E'
8812      ;;
8813
8814    hpux10*)
8815      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8816        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8817      else
8818        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8819      fi
8820      if test "$with_gnu_ld" = no; then
8821        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8822        hardcode_libdir_separator=:
8823
8824        hardcode_direct=yes
8825        export_dynamic_flag_spec='${wl}-E'
8826
8827        # hardcode_minus_L: Not really in the search PATH,
8828        # but as the default location of the library.
8829        hardcode_minus_L=yes
8830      fi
8831      ;;
8832
8833    hpux11*)
8834      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8835        case $host_cpu in
8836        hppa*64*)
8837          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838          ;;
8839        ia64*)
8840          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8841          ;;
8842        *)
8843          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8844          ;;
8845        esac
8846      else
8847        case $host_cpu in
8848        hppa*64*)
8849          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850          ;;
8851        ia64*)
8852          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8853          ;;
8854        *)
8855          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8856          ;;
8857        esac
8858      fi
8859      if test "$with_gnu_ld" = no; then
8860        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8861        hardcode_libdir_separator=:
8862
8863        case $host_cpu in
8864        hppa*64*|ia64*)
8865          hardcode_libdir_flag_spec_ld='+b $libdir'
8866          hardcode_direct=no
8867          hardcode_shlibpath_var=no
8868          ;;
8869        *)
8870          hardcode_direct=yes
8871          export_dynamic_flag_spec='${wl}-E'
8872
8873          # hardcode_minus_L: Not really in the search PATH,
8874          # but as the default location of the library.
8875          hardcode_minus_L=yes
8876          ;;
8877        esac
8878      fi
8879      ;;
8880
8881    irix5* | irix6* | nonstopux*)
8882      if test "$GCC" = yes; then
8883        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'
8884      else
8885        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'
8886        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8887      fi
8888      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889      hardcode_libdir_separator=:
8890      link_all_deplibs=yes
8891      ;;
8892
8893    netbsd*)
8894      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8895        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8896      else
8897        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8898      fi
8899      hardcode_libdir_flag_spec='-R$libdir'
8900      hardcode_direct=yes
8901      hardcode_shlibpath_var=no
8902      ;;
8903
8904    newsos6)
8905      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906      hardcode_direct=yes
8907      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8908      hardcode_libdir_separator=:
8909      hardcode_shlibpath_var=no
8910      ;;
8911
8912    openbsd*)
8913      hardcode_direct=yes
8914      hardcode_shlibpath_var=no
8915      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8916        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8917        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8918        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8919        export_dynamic_flag_spec='${wl}-E'
8920      else
8921       case $host_os in
8922         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8923           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8924           hardcode_libdir_flag_spec='-R$libdir'
8925           ;;
8926         *)
8927           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8928           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8929           ;;
8930       esac
8931      fi
8932      ;;
8933
8934    os2*)
8935      hardcode_libdir_flag_spec='-L$libdir'
8936      hardcode_minus_L=yes
8937      allow_undefined_flag=unsupported
8938      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'
8939      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8940      ;;
8941
8942    osf3*)
8943      if test "$GCC" = yes; then
8944        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8945        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'
8946      else
8947        allow_undefined_flag=' -expect_unresolved \*'
8948        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'
8949      fi
8950      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951      hardcode_libdir_separator=:
8952      ;;
8953
8954    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8955      if test "$GCC" = yes; then
8956        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8957        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'
8958        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8959      else
8960        allow_undefined_flag=' -expect_unresolved \*'
8961        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'
8962        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8963        $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'
8964
8965        # Both c and cxx compiler support -rpath directly
8966        hardcode_libdir_flag_spec='-rpath $libdir'
8967      fi
8968      hardcode_libdir_separator=:
8969      ;;
8970
8971    solaris*)
8972      no_undefined_flag=' -z text'
8973      if test "$GCC" = yes; then
8974        wlarc='${wl}'
8975        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8977          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8978      else
8979        wlarc=''
8980        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8982        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8983      fi
8984      hardcode_libdir_flag_spec='-R$libdir'
8985      hardcode_shlibpath_var=no
8986      case $host_os in
8987      solaris2.[0-5] | solaris2.[0-5].*) ;;
8988      *)
8989        # The compiler driver will combine linker options so we
8990        # cannot just pass the convience library names through
8991        # without $wl, iff we do not link with $LD.
8992        # Luckily, gcc supports the same syntax we need for Sun Studio.
8993        # Supported since Solaris 2.6 (maybe 2.5.1?)
8994        case $wlarc in
8995        '')
8996          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8997        *)
8998          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' ;;
8999        esac ;;
9000      esac
9001      link_all_deplibs=yes
9002      ;;
9003
9004    sunos4*)
9005      if test "x$host_vendor" = xsequent; then
9006        # Use $CC to link under sequent, because it throws in some extra .o
9007        # files that make .init and .fini sections work.
9008        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9009      else
9010        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9011      fi
9012      hardcode_libdir_flag_spec='-L$libdir'
9013      hardcode_direct=yes
9014      hardcode_minus_L=yes
9015      hardcode_shlibpath_var=no
9016      ;;
9017
9018    sysv4)
9019      case $host_vendor in
9020        sni)
9021          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022          hardcode_direct=yes # is this really true???
9023        ;;
9024        siemens)
9025          ## LD is ld it makes a PLAMLIB
9026          ## CC just makes a GrossModule.
9027          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9028          reload_cmds='$CC -r -o $output$reload_objs'
9029          hardcode_direct=no
9030        ;;
9031        motorola)
9032          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9034        ;;
9035      esac
9036      runpath_var='LD_RUN_PATH'
9037      hardcode_shlibpath_var=no
9038      ;;
9039
9040    sysv4.3*)
9041      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9042      hardcode_shlibpath_var=no
9043      export_dynamic_flag_spec='-Bexport'
9044      ;;
9045
9046    sysv4*MP*)
9047      if test -d /usr/nec; then
9048        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049        hardcode_shlibpath_var=no
9050        runpath_var=LD_RUN_PATH
9051        hardcode_runpath_var=yes
9052        ld_shlibs=yes
9053      fi
9054      ;;
9055
9056    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9057      no_undefined_flag='${wl}-z,text'
9058      archive_cmds_need_lc=no
9059      hardcode_shlibpath_var=no
9060      runpath_var='LD_RUN_PATH'
9061
9062      if test "$GCC" = yes; then
9063        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9064        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9065      else
9066        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9068      fi
9069      ;;
9070
9071    sysv5* | sco3.2v5* | sco5v6*)
9072      # Note: We can NOT use -z defs as we might desire, because we do not
9073      # link with -lc, and that would cause any symbols used from libc to
9074      # always be unresolved, which means just about no library would
9075      # ever link correctly.  If we're not using GNU ld we use -z text
9076      # though, which does catch some bad symbols but isn't as heavy-handed
9077      # as -z defs.
9078      no_undefined_flag='${wl}-z,text'
9079      allow_undefined_flag='${wl}-z,nodefs'
9080      archive_cmds_need_lc=no
9081      hardcode_shlibpath_var=no
9082      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9083      hardcode_libdir_separator=':'
9084      link_all_deplibs=yes
9085      export_dynamic_flag_spec='${wl}-Bexport'
9086      runpath_var='LD_RUN_PATH'
9087
9088      if test "$GCC" = yes; then
9089        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9090        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9091      else
9092        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9093        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9094      fi
9095      ;;
9096
9097    uts4*)
9098      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099      hardcode_libdir_flag_spec='-L$libdir'
9100      hardcode_shlibpath_var=no
9101      ;;
9102
9103    *)
9104      ld_shlibs=no
9105      ;;
9106    esac
9107  fi
9108
9109echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9110echo "${ECHO_T}$ld_shlibs" >&6
9111test "$ld_shlibs" = no && can_build_shared=no
9112
9113#
9114# Do we need to explicitly link libc?
9115#
9116case "x$archive_cmds_need_lc" in
9117x|xyes)
9118  # Assume -lc should be added
9119  archive_cmds_need_lc=yes
9120
9121  if test "$enable_shared" = yes && test "$GCC" = yes; then
9122    case $archive_cmds in
9123    *'~'*)
9124      # FIXME: we may have to deal with multi-command sequences.
9125      ;;
9126    '$CC '*)
9127      # Test whether the compiler implicitly links with -lc since on some
9128      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9129      # to ld, don't add -lc before -lgcc.
9130      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9131echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9132      $rm conftest*
9133      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9134
9135      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136  (eval $ac_compile) 2>&5
9137  ac_status=$?
9138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139  (exit $ac_status); } 2>conftest.err; then
9140        soname=conftest
9141        lib=conftest
9142        libobjs=conftest.$ac_objext
9143        deplibs=
9144        wl=$lt_prog_compiler_wl
9145        pic_flag=$lt_prog_compiler_pic
9146        compiler_flags=-v
9147        linker_flags=-v
9148        verstring=
9149        output_objdir=.
9150        libname=conftest
9151        lt_save_allow_undefined_flag=$allow_undefined_flag
9152        allow_undefined_flag=
9153        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9154  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9155  ac_status=$?
9156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157  (exit $ac_status); }
9158        then
9159          archive_cmds_need_lc=no
9160        else
9161          archive_cmds_need_lc=yes
9162        fi
9163        allow_undefined_flag=$lt_save_allow_undefined_flag
9164      else
9165        cat conftest.err 1>&5
9166      fi
9167      $rm conftest*
9168      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9169echo "${ECHO_T}$archive_cmds_need_lc" >&6
9170      ;;
9171    esac
9172  fi
9173  ;;
9174esac
9175
9176echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9177echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9178library_names_spec=
9179libname_spec='lib$name'
9180soname_spec=
9181shrext_cmds=".so"
9182postinstall_cmds=
9183postuninstall_cmds=
9184finish_cmds=
9185finish_eval=
9186shlibpath_var=
9187shlibpath_overrides_runpath=unknown
9188version_type=none
9189dynamic_linker="$host_os ld.so"
9190sys_lib_dlsearch_path_spec="/lib /usr/lib"
9191if test "$GCC" = yes; then
9192  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9193  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9194    # if the path contains ";" then we assume it to be the separator
9195    # otherwise default to the standard path separator (i.e. ":") - it is
9196    # assumed that no part of a normal pathname contains ";" but that should
9197    # okay in the real world where ";" in dirpaths is itself problematic.
9198    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9199  else
9200    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9201  fi
9202else
9203  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9204fi
9205need_lib_prefix=unknown
9206hardcode_into_libs=no
9207
9208# when you set need_version to no, make sure it does not cause -set_version
9209# flags to be left without arguments
9210need_version=unknown
9211
9212case $host_os in
9213aix3*)
9214  version_type=linux
9215  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9216  shlibpath_var=LIBPATH
9217
9218  # AIX 3 has no versioning support, so we append a major version to the name.
9219  soname_spec='${libname}${release}${shared_ext}$major'
9220  ;;
9221
9222aix4* | aix5*)
9223  version_type=linux
9224  need_lib_prefix=no
9225  need_version=no
9226  hardcode_into_libs=yes
9227  if test "$host_cpu" = ia64; then
9228    # AIX 5 supports IA64
9229    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9230    shlibpath_var=LD_LIBRARY_PATH
9231  else
9232    # With GCC up to 2.95.x, collect2 would create an import file
9233    # for dependence libraries.  The import file would start with
9234    # the line `#! .'.  This would cause the generated library to
9235    # depend on `.', always an invalid library.  This was fixed in
9236    # development snapshots of GCC prior to 3.0.
9237    case $host_os in
9238      aix4 | aix4.[01] | aix4.[01].*)
9239      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9240           echo ' yes '
9241           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9242        :
9243      else
9244        can_build_shared=no
9245      fi
9246      ;;
9247    esac
9248    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9249    # soname into executable. Probably we can add versioning support to
9250    # collect2, so additional links can be useful in future.
9251    if test "$aix_use_runtimelinking" = yes; then
9252      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9253      # instead of lib<name>.a to let people know that these are not
9254      # typical AIX shared libraries.
9255      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256    else
9257      # We preserve .a as extension for shared libraries through AIX4.2
9258      # and later when we are not doing run time linking.
9259      library_names_spec='${libname}${release}.a $libname.a'
9260      soname_spec='${libname}${release}${shared_ext}$major'
9261    fi
9262    shlibpath_var=LIBPATH
9263  fi
9264  ;;
9265
9266amigaos*)
9267  library_names_spec='$libname.ixlibrary $libname.a'
9268  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9269  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'
9270  ;;
9271
9272beos*)
9273  library_names_spec='${libname}${shared_ext}'
9274  dynamic_linker="$host_os ld.so"
9275  shlibpath_var=LIBRARY_PATH
9276  ;;
9277
9278bsdi[45]*)
9279  version_type=linux
9280  need_version=no
9281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282  soname_spec='${libname}${release}${shared_ext}$major'
9283  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9284  shlibpath_var=LD_LIBRARY_PATH
9285  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9286  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9287  # the default ld.so.conf also contains /usr/contrib/lib and
9288  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9289  # libtool to hard-code these into programs
9290  ;;
9291
9292cygwin* | mingw* | pw32*)
9293  version_type=windows
9294  shrext_cmds=".dll"
9295  need_version=no
9296  need_lib_prefix=no
9297
9298  case $GCC,$host_os in
9299  yes,cygwin* | yes,mingw* | yes,pw32*)
9300    library_names_spec='$libname.dll.a'
9301    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9302    postinstall_cmds='base_file=`basename \${file}`~
9303      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9304      dldir=$destdir/`dirname \$dlpath`~
9305      test -d \$dldir || mkdir -p \$dldir~
9306      $install_prog $dir/$dlname \$dldir/$dlname~
9307      chmod a+x \$dldir/$dlname'
9308    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9309      dlpath=$dir/\$dldll~
9310       $rm \$dlpath'
9311    shlibpath_overrides_runpath=yes
9312
9313    case $host_os in
9314    cygwin*)
9315      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9316      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9317      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9318      ;;
9319    mingw*)
9320      # MinGW DLLs use traditional 'lib' prefix
9321      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9322      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9323      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9324        # It is most probably a Windows format PATH printed by
9325        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9326        # path with ; separators, and with drive letters. We can handle the
9327        # drive letters (cygwin fileutils understands them), so leave them,
9328        # especially as we might pass files found there to a mingw objdump,
9329        # which wouldn't understand a cygwinified path. Ahh.
9330        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9331      else
9332        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9333      fi
9334      ;;
9335    pw32*)
9336      # pw32 DLLs use 'pw' prefix rather than 'lib'
9337      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9338      ;;
9339    esac
9340    ;;
9341
9342  *)
9343    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9344    ;;
9345  esac
9346  dynamic_linker='Win32 ld.exe'
9347  # FIXME: first we should search . and the directory the executable is in
9348  shlibpath_var=PATH
9349  ;;
9350
9351darwin* | rhapsody*)
9352  dynamic_linker="$host_os dyld"
9353  version_type=darwin
9354  need_lib_prefix=no
9355  need_version=no
9356  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9357  soname_spec='${libname}${release}${major}$shared_ext'
9358  shlibpath_overrides_runpath=yes
9359  shlibpath_var=DYLD_LIBRARY_PATH
9360  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9361  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9362  if test "$GCC" = yes; then
9363    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"`
9364  else
9365    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9366  fi
9367  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9368  ;;
9369
9370dgux*)
9371  version_type=linux
9372  need_lib_prefix=no
9373  need_version=no
9374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9375  soname_spec='${libname}${release}${shared_ext}$major'
9376  shlibpath_var=LD_LIBRARY_PATH
9377  ;;
9378
9379freebsd1*)
9380  dynamic_linker=no
9381  ;;
9382
9383kfreebsd*-gnu)
9384  version_type=linux
9385  need_lib_prefix=no
9386  need_version=no
9387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9388  soname_spec='${libname}${release}${shared_ext}$major'
9389  shlibpath_var=LD_LIBRARY_PATH
9390  shlibpath_overrides_runpath=no
9391  hardcode_into_libs=yes
9392  dynamic_linker='GNU ld.so'
9393  ;;
9394
9395freebsd* | dragonfly*)
9396  # DragonFly does not have aout.  When/if they implement a new
9397  # versioning mechanism, adjust this.
9398  if test -x /usr/bin/objformat; then
9399    objformat=`/usr/bin/objformat`
9400  else
9401    case $host_os in
9402    freebsd[123]*) objformat=aout ;;
9403    *) objformat=elf ;;
9404    esac
9405  fi
9406  version_type=freebsd-$objformat
9407  case $version_type in
9408    freebsd-elf*)
9409      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9410      need_version=no
9411      need_lib_prefix=no
9412      ;;
9413    freebsd-*)
9414      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9415      need_version=yes
9416      ;;
9417  esac
9418  shlibpath_var=LD_LIBRARY_PATH
9419  case $host_os in
9420  freebsd2*)
9421    shlibpath_overrides_runpath=yes
9422    ;;
9423  freebsd3.[01]* | freebsdelf3.[01]*)
9424    shlibpath_overrides_runpath=yes
9425    hardcode_into_libs=yes
9426    ;;
9427  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9428  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9429    shlibpath_overrides_runpath=no
9430    hardcode_into_libs=yes
9431    ;;
9432  freebsd*) # from 4.6 on
9433    shlibpath_overrides_runpath=yes
9434    hardcode_into_libs=yes
9435    ;;
9436  esac
9437  ;;
9438
9439gnu*)
9440  version_type=linux
9441  need_lib_prefix=no
9442  need_version=no
9443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9444  soname_spec='${libname}${release}${shared_ext}$major'
9445  shlibpath_var=LD_LIBRARY_PATH
9446  hardcode_into_libs=yes
9447  ;;
9448
9449hpux9* | hpux10* | hpux11*)
9450  # Give a soname corresponding to the major version so that dld.sl refuses to
9451  # link against other versions.
9452  version_type=sunos
9453  need_lib_prefix=no
9454  need_version=no
9455  case $host_cpu in
9456  ia64*)
9457    shrext_cmds='.so'
9458    hardcode_into_libs=yes
9459    dynamic_linker="$host_os dld.so"
9460    shlibpath_var=LD_LIBRARY_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    if test "X$HPUX_IA64_MODE" = X32; then
9465      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9466    else
9467      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9468    fi
9469    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9470    ;;
9471   hppa*64*)
9472     shrext_cmds='.sl'
9473     hardcode_into_libs=yes
9474     dynamic_linker="$host_os dld.sl"
9475     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9476     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478     soname_spec='${libname}${release}${shared_ext}$major'
9479     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9480     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9481     ;;
9482   *)
9483    shrext_cmds='.sl'
9484    dynamic_linker="$host_os dld.sl"
9485    shlibpath_var=SHLIB_PATH
9486    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9487    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488    soname_spec='${libname}${release}${shared_ext}$major'
9489    ;;
9490  esac
9491  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9492  postinstall_cmds='chmod 555 $lib'
9493  ;;
9494
9495interix3*)
9496  version_type=linux
9497  need_lib_prefix=no
9498  need_version=no
9499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9500  soname_spec='${libname}${release}${shared_ext}$major'
9501  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9502  shlibpath_var=LD_LIBRARY_PATH
9503  shlibpath_overrides_runpath=no
9504  hardcode_into_libs=yes
9505  ;;
9506
9507irix5* | irix6* | nonstopux*)
9508  case $host_os in
9509    nonstopux*) version_type=nonstopux ;;
9510    *)
9511        if test "$lt_cv_prog_gnu_ld" = yes; then
9512                version_type=linux
9513        else
9514                version_type=irix
9515        fi ;;
9516  esac
9517  need_lib_prefix=no
9518  need_version=no
9519  soname_spec='${libname}${release}${shared_ext}$major'
9520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9521  case $host_os in
9522  irix5* | nonstopux*)
9523    libsuff= shlibsuff=
9524    ;;
9525  *)
9526    case $LD in # libtool.m4 will add one of these switches to LD
9527    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9528      libsuff= shlibsuff= libmagic=32-bit;;
9529    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9530      libsuff=32 shlibsuff=N32 libmagic=N32;;
9531    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9532      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9533    *) libsuff= shlibsuff= libmagic=never-match;;
9534    esac
9535    ;;
9536  esac
9537  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9538  shlibpath_overrides_runpath=no
9539  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9540  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9541  hardcode_into_libs=yes
9542  ;;
9543
9544# No shared lib support for Linux oldld, aout, or coff.
9545linux*oldld* | linux*aout* | linux*coff*)
9546  dynamic_linker=no
9547  ;;
9548
9549# This must be Linux ELF.
9550linux*)
9551  version_type=linux
9552  need_lib_prefix=no
9553  need_version=no
9554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555  soname_spec='${libname}${release}${shared_ext}$major'
9556  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9557  shlibpath_var=LD_LIBRARY_PATH
9558  shlibpath_overrides_runpath=no
9559  # This implies no fast_install, which is unacceptable.
9560  # Some rework will be needed to allow for fast_install
9561  # before this can be enabled.
9562  hardcode_into_libs=yes
9563
9564  # Append ld.so.conf contents to the search path
9565  if test -f /etc/ld.so.conf; then
9566    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' ' '`
9567    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9568  fi
9569
9570  # We used to test for /lib/ld.so.1 and disable shared libraries on
9571  # powerpc, because MkLinux only supported shared libraries with the
9572  # GNU dynamic linker.  Since this was broken with cross compilers,
9573  # most powerpc-linux boxes support dynamic linking these days and
9574  # people can always --disable-shared, the test was removed, and we
9575  # assume the GNU/Linux dynamic linker is in use.
9576  dynamic_linker='GNU/Linux ld.so'
9577  ;;
9578
9579knetbsd*-gnu)
9580  version_type=linux
9581  need_lib_prefix=no
9582  need_version=no
9583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9584  soname_spec='${libname}${release}${shared_ext}$major'
9585  shlibpath_var=LD_LIBRARY_PATH
9586  shlibpath_overrides_runpath=no
9587  hardcode_into_libs=yes
9588  dynamic_linker='GNU ld.so'
9589  ;;
9590
9591netbsd*)
9592  version_type=sunos
9593  need_lib_prefix=no
9594  need_version=no
9595  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9596    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9597    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9598    dynamic_linker='NetBSD (a.out) ld.so'
9599  else
9600    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601    soname_spec='${libname}${release}${shared_ext}$major'
9602    dynamic_linker='NetBSD ld.elf_so'
9603  fi
9604  shlibpath_var=LD_LIBRARY_PATH
9605  shlibpath_overrides_runpath=yes
9606  hardcode_into_libs=yes
9607  ;;
9608
9609newsos6)
9610  version_type=linux
9611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612  shlibpath_var=LD_LIBRARY_PATH
9613  shlibpath_overrides_runpath=yes
9614  ;;
9615
9616nto-qnx*)
9617  version_type=linux
9618  need_lib_prefix=no
9619  need_version=no
9620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9621  soname_spec='${libname}${release}${shared_ext}$major'
9622  shlibpath_var=LD_LIBRARY_PATH
9623  shlibpath_overrides_runpath=yes
9624  ;;
9625
9626openbsd*)
9627  version_type=sunos
9628  sys_lib_dlsearch_path_spec="/usr/lib"
9629  need_lib_prefix=no
9630  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9631  case $host_os in
9632    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9633    *)                         need_version=no  ;;
9634  esac
9635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9636  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9637  shlibpath_var=LD_LIBRARY_PATH
9638  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9639    case $host_os in
9640      openbsd2.[89] | openbsd2.[89].*)
9641        shlibpath_overrides_runpath=no
9642        ;;
9643      *)
9644        shlibpath_overrides_runpath=yes
9645        ;;
9646      esac
9647  else
9648    shlibpath_overrides_runpath=yes
9649  fi
9650  ;;
9651
9652os2*)
9653  libname_spec='$name'
9654  shrext_cmds=".dll"
9655  need_lib_prefix=no
9656  library_names_spec='$libname${shared_ext} $libname.a'
9657  dynamic_linker='OS/2 ld.exe'
9658  shlibpath_var=LIBPATH
9659  ;;
9660
9661osf3* | osf4* | osf5*)
9662  version_type=osf
9663  need_lib_prefix=no
9664  need_version=no
9665  soname_spec='${libname}${release}${shared_ext}$major'
9666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667  shlibpath_var=LD_LIBRARY_PATH
9668  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9669  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9670  ;;
9671
9672solaris*)
9673  version_type=linux
9674  need_lib_prefix=no
9675  need_version=no
9676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677  soname_spec='${libname}${release}${shared_ext}$major'
9678  shlibpath_var=LD_LIBRARY_PATH
9679  shlibpath_overrides_runpath=yes
9680  hardcode_into_libs=yes
9681  # ldd complains unless libraries are executable
9682  postinstall_cmds='chmod +x $lib'
9683  ;;
9684
9685sunos4*)
9686  version_type=sunos
9687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9688  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9689  shlibpath_var=LD_LIBRARY_PATH
9690  shlibpath_overrides_runpath=yes
9691  if test "$with_gnu_ld" = yes; then
9692    need_lib_prefix=no
9693  fi
9694  need_version=yes
9695  ;;
9696
9697sysv4 | sysv4.3*)
9698  version_type=linux
9699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9700  soname_spec='${libname}${release}${shared_ext}$major'
9701  shlibpath_var=LD_LIBRARY_PATH
9702  case $host_vendor in
9703    sni)
9704      shlibpath_overrides_runpath=no
9705      need_lib_prefix=no
9706      export_dynamic_flag_spec='${wl}-Blargedynsym'
9707      runpath_var=LD_RUN_PATH
9708      ;;
9709    siemens)
9710      need_lib_prefix=no
9711      ;;
9712    motorola)
9713      need_lib_prefix=no
9714      need_version=no
9715      shlibpath_overrides_runpath=no
9716      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9717      ;;
9718  esac
9719  ;;
9720
9721sysv4*MP*)
9722  if test -d /usr/nec ;then
9723    version_type=linux
9724    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9725    soname_spec='$libname${shared_ext}.$major'
9726    shlibpath_var=LD_LIBRARY_PATH
9727  fi
9728  ;;
9729
9730sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9731  version_type=freebsd-elf
9732  need_lib_prefix=no
9733  need_version=no
9734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9735  soname_spec='${libname}${release}${shared_ext}$major'
9736  shlibpath_var=LD_LIBRARY_PATH
9737  hardcode_into_libs=yes
9738  if test "$with_gnu_ld" = yes; then
9739    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9740    shlibpath_overrides_runpath=no
9741  else
9742    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9743    shlibpath_overrides_runpath=yes
9744    case $host_os in
9745      sco3.2v5*)
9746        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9747        ;;
9748    esac
9749  fi
9750  sys_lib_dlsearch_path_spec='/usr/lib'
9751  ;;
9752
9753uts4*)
9754  version_type=linux
9755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756  soname_spec='${libname}${release}${shared_ext}$major'
9757  shlibpath_var=LD_LIBRARY_PATH
9758  ;;
9759
9760*)
9761  dynamic_linker=no
9762  ;;
9763esac
9764echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9765echo "${ECHO_T}$dynamic_linker" >&6
9766test "$dynamic_linker" = no && can_build_shared=no
9767
9768variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9769if test "$GCC" = yes; then
9770  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9771fi
9772
9773echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9774echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9775hardcode_action=
9776if test -n "$hardcode_libdir_flag_spec" || \
9777   test -n "$runpath_var" || \
9778   test "X$hardcode_automatic" = "Xyes" ; then
9779
9780  # We can hardcode non-existant directories.
9781  if test "$hardcode_direct" != no &&
9782     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9783     # have to relink, otherwise we might link with an installed library
9784     # when we should be linking with a yet-to-be-installed one
9785     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9786     test "$hardcode_minus_L" != no; then
9787    # Linking always hardcodes the temporary library directory.
9788    hardcode_action=relink
9789  else
9790    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9791    hardcode_action=immediate
9792  fi
9793else
9794  # We cannot hardcode anything, or else we can only hardcode existing
9795  # directories.
9796  hardcode_action=unsupported
9797fi
9798echo "$as_me:$LINENO: result: $hardcode_action" >&5
9799echo "${ECHO_T}$hardcode_action" >&6
9800
9801if test "$hardcode_action" = relink; then
9802  # Fast installation is not supported
9803  enable_fast_install=no
9804elif test "$shlibpath_overrides_runpath" = yes ||
9805     test "$enable_shared" = no; then
9806  # Fast installation is not necessary
9807  enable_fast_install=needless
9808fi
9809
9810striplib=
9811old_striplib=
9812echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9813echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9814if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9815  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9816  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9817  echo "$as_me:$LINENO: result: yes" >&5
9818echo "${ECHO_T}yes" >&6
9819else
9820# FIXME - insert some real tests, host_os isn't really good enough
9821  case $host_os in
9822   darwin*)
9823       if test -n "$STRIP" ; then
9824         striplib="$STRIP -x"
9825         echo "$as_me:$LINENO: result: yes" >&5
9826echo "${ECHO_T}yes" >&6
9827       else
9828  echo "$as_me:$LINENO: result: no" >&5
9829echo "${ECHO_T}no" >&6
9830fi
9831       ;;
9832   *)
9833  echo "$as_me:$LINENO: result: no" >&5
9834echo "${ECHO_T}no" >&6
9835    ;;
9836  esac
9837fi
9838
9839if test "x$enable_dlopen" != xyes; then
9840  enable_dlopen=unknown
9841  enable_dlopen_self=unknown
9842  enable_dlopen_self_static=unknown
9843else
9844  lt_cv_dlopen=no
9845  lt_cv_dlopen_libs=
9846
9847  case $host_os in
9848  beos*)
9849    lt_cv_dlopen="load_add_on"
9850    lt_cv_dlopen_libs=
9851    lt_cv_dlopen_self=yes
9852    ;;
9853
9854  mingw* | pw32*)
9855    lt_cv_dlopen="LoadLibrary"
9856    lt_cv_dlopen_libs=
9857   ;;
9858
9859  cygwin*)
9860    lt_cv_dlopen="dlopen"
9861    lt_cv_dlopen_libs=
9862   ;;
9863
9864  darwin*)
9865  # if libdl is installed we need to link against it
9866    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9867echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9868if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9869  echo $ECHO_N "(cached) $ECHO_C" >&6
9870else
9871  ac_check_lib_save_LIBS=$LIBS
9872LIBS="-ldl  $LIBS"
9873cat >conftest.$ac_ext <<_ACEOF
9874/* confdefs.h.  */
9875_ACEOF
9876cat confdefs.h >>conftest.$ac_ext
9877cat >>conftest.$ac_ext <<_ACEOF
9878/* end confdefs.h.  */
9879
9880/* Override any gcc2 internal prototype to avoid an error.  */
9881#ifdef __cplusplus
9882extern "C"
9883#endif
9884/* We use char because int might match the return type of a gcc2
9885   builtin and then its argument prototype would still apply.  */
9886char dlopen ();
9887int
9888main ()
9889{
9890dlopen ();
9891  ;
9892  return 0;
9893}
9894_ACEOF
9895rm -f conftest.$ac_objext conftest$ac_exeext
9896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9897  (eval $ac_link) 2>conftest.er1
9898  ac_status=$?
9899  grep -v '^ *+' conftest.er1 >conftest.err
9900  rm -f conftest.er1
9901  cat conftest.err >&5
9902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903  (exit $ac_status); } &&
9904         { ac_try='test -z "$ac_c_werror_flag"
9905                         || test ! -s conftest.err'
9906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907  (eval $ac_try) 2>&5
9908  ac_status=$?
9909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910  (exit $ac_status); }; } &&
9911         { ac_try='test -s conftest$ac_exeext'
9912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913  (eval $ac_try) 2>&5
9914  ac_status=$?
9915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916  (exit $ac_status); }; }; then
9917  ac_cv_lib_dl_dlopen=yes
9918else
9919  echo "$as_me: failed program was:" >&5
9920sed 's/^/| /' conftest.$ac_ext >&5
9921
9922ac_cv_lib_dl_dlopen=no
9923fi
9924rm -f conftest.err conftest.$ac_objext \
9925      conftest$ac_exeext conftest.$ac_ext
9926LIBS=$ac_check_lib_save_LIBS
9927fi
9928echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9929echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9930if test $ac_cv_lib_dl_dlopen = yes; then
9931  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9932else
9933
9934    lt_cv_dlopen="dyld"
9935    lt_cv_dlopen_libs=
9936    lt_cv_dlopen_self=yes
9937
9938fi
9939
9940   ;;
9941
9942  *)
9943    echo "$as_me:$LINENO: checking for shl_load" >&5
9944echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9945if test "${ac_cv_func_shl_load+set}" = set; then
9946  echo $ECHO_N "(cached) $ECHO_C" >&6
9947else
9948  cat >conftest.$ac_ext <<_ACEOF
9949/* confdefs.h.  */
9950_ACEOF
9951cat confdefs.h >>conftest.$ac_ext
9952cat >>conftest.$ac_ext <<_ACEOF
9953/* end confdefs.h.  */
9954/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9955   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9956#define shl_load innocuous_shl_load
9957
9958/* System header to define __stub macros and hopefully few prototypes,
9959    which can conflict with char shl_load (); below.
9960    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9961    <limits.h> exists even on freestanding compilers.  */
9962
9963#ifdef __STDC__
9964# include <limits.h>
9965#else
9966# include <assert.h>
9967#endif
9968
9969#undef shl_load
9970
9971/* Override any gcc2 internal prototype to avoid an error.  */
9972#ifdef __cplusplus
9973extern "C"
9974{
9975#endif
9976/* We use char because int might match the return type of a gcc2
9977   builtin and then its argument prototype would still apply.  */
9978char shl_load ();
9979/* The GNU C library defines this for functions which it implements
9980    to always fail with ENOSYS.  Some functions are actually named
9981    something starting with __ and the normal name is an alias.  */
9982#if defined (__stub_shl_load) || defined (__stub___shl_load)
9983choke me
9984#else
9985char (*f) () = shl_load;
9986#endif
9987#ifdef __cplusplus
9988}
9989#endif
9990
9991int
9992main ()
9993{
9994return f != shl_load;
9995  ;
9996  return 0;
9997}
9998_ACEOF
9999rm -f conftest.$ac_objext conftest$ac_exeext
10000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001  (eval $ac_link) 2>conftest.er1
10002  ac_status=$?
10003  grep -v '^ *+' conftest.er1 >conftest.err
10004  rm -f conftest.er1
10005  cat conftest.err >&5
10006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007  (exit $ac_status); } &&
10008         { ac_try='test -z "$ac_c_werror_flag"
10009                         || test ! -s conftest.err'
10010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011  (eval $ac_try) 2>&5
10012  ac_status=$?
10013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014  (exit $ac_status); }; } &&
10015         { ac_try='test -s conftest$ac_exeext'
10016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017  (eval $ac_try) 2>&5
10018  ac_status=$?
10019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020  (exit $ac_status); }; }; then
10021  ac_cv_func_shl_load=yes
10022else
10023  echo "$as_me: failed program was:" >&5
10024sed 's/^/| /' conftest.$ac_ext >&5
10025
10026ac_cv_func_shl_load=no
10027fi
10028rm -f conftest.err conftest.$ac_objext \
10029      conftest$ac_exeext conftest.$ac_ext
10030fi
10031echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10032echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10033if test $ac_cv_func_shl_load = yes; then
10034  lt_cv_dlopen="shl_load"
10035else
10036  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10037echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10038if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10039  echo $ECHO_N "(cached) $ECHO_C" >&6
10040else
10041  ac_check_lib_save_LIBS=$LIBS
10042LIBS="-ldld  $LIBS"
10043cat >conftest.$ac_ext <<_ACEOF
10044/* confdefs.h.  */
10045_ACEOF
10046cat confdefs.h >>conftest.$ac_ext
10047cat >>conftest.$ac_ext <<_ACEOF
10048/* end confdefs.h.  */
10049
10050/* Override any gcc2 internal prototype to avoid an error.  */
10051#ifdef __cplusplus
10052extern "C"
10053#endif
10054/* We use char because int might match the return type of a gcc2
10055   builtin and then its argument prototype would still apply.  */
10056char shl_load ();
10057int
10058main ()
10059{
10060shl_load ();
10061  ;
10062  return 0;
10063}
10064_ACEOF
10065rm -f conftest.$ac_objext conftest$ac_exeext
10066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067  (eval $ac_link) 2>conftest.er1
10068  ac_status=$?
10069  grep -v '^ *+' conftest.er1 >conftest.err
10070  rm -f conftest.er1
10071  cat conftest.err >&5
10072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073  (exit $ac_status); } &&
10074         { ac_try='test -z "$ac_c_werror_flag"
10075                         || test ! -s conftest.err'
10076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077  (eval $ac_try) 2>&5
10078  ac_status=$?
10079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080  (exit $ac_status); }; } &&
10081         { ac_try='test -s conftest$ac_exeext'
10082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083  (eval $ac_try) 2>&5
10084  ac_status=$?
10085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086  (exit $ac_status); }; }; then
10087  ac_cv_lib_dld_shl_load=yes
10088else
10089  echo "$as_me: failed program was:" >&5
10090sed 's/^/| /' conftest.$ac_ext >&5
10091
10092ac_cv_lib_dld_shl_load=no
10093fi
10094rm -f conftest.err conftest.$ac_objext \
10095      conftest$ac_exeext conftest.$ac_ext
10096LIBS=$ac_check_lib_save_LIBS
10097fi
10098echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10099echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10100if test $ac_cv_lib_dld_shl_load = yes; then
10101  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10102else
10103  echo "$as_me:$LINENO: checking for dlopen" >&5
10104echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10105if test "${ac_cv_func_dlopen+set}" = set; then
10106  echo $ECHO_N "(cached) $ECHO_C" >&6
10107else
10108  cat >conftest.$ac_ext <<_ACEOF
10109/* confdefs.h.  */
10110_ACEOF
10111cat confdefs.h >>conftest.$ac_ext
10112cat >>conftest.$ac_ext <<_ACEOF
10113/* end confdefs.h.  */
10114/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10115   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10116#define dlopen innocuous_dlopen
10117
10118/* System header to define __stub macros and hopefully few prototypes,
10119    which can conflict with char dlopen (); below.
10120    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10121    <limits.h> exists even on freestanding compilers.  */
10122
10123#ifdef __STDC__
10124# include <limits.h>
10125#else
10126# include <assert.h>
10127#endif
10128
10129#undef dlopen
10130
10131/* Override any gcc2 internal prototype to avoid an error.  */
10132#ifdef __cplusplus
10133extern "C"
10134{
10135#endif
10136/* We use char because int might match the return type of a gcc2
10137   builtin and then its argument prototype would still apply.  */
10138char dlopen ();
10139/* The GNU C library defines this for functions which it implements
10140    to always fail with ENOSYS.  Some functions are actually named
10141    something starting with __ and the normal name is an alias.  */
10142#if defined (__stub_dlopen) || defined (__stub___dlopen)
10143choke me
10144#else
10145char (*f) () = dlopen;
10146#endif
10147#ifdef __cplusplus
10148}
10149#endif
10150
10151int
10152main ()
10153{
10154return f != dlopen;
10155  ;
10156  return 0;
10157}
10158_ACEOF
10159rm -f conftest.$ac_objext conftest$ac_exeext
10160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10161  (eval $ac_link) 2>conftest.er1
10162  ac_status=$?
10163  grep -v '^ *+' conftest.er1 >conftest.err
10164  rm -f conftest.er1
10165  cat conftest.err >&5
10166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167  (exit $ac_status); } &&
10168         { ac_try='test -z "$ac_c_werror_flag"
10169                         || test ! -s conftest.err'
10170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171  (eval $ac_try) 2>&5
10172  ac_status=$?
10173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174  (exit $ac_status); }; } &&
10175         { ac_try='test -s conftest$ac_exeext'
10176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177  (eval $ac_try) 2>&5
10178  ac_status=$?
10179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180  (exit $ac_status); }; }; then
10181  ac_cv_func_dlopen=yes
10182else
10183  echo "$as_me: failed program was:" >&5
10184sed 's/^/| /' conftest.$ac_ext >&5
10185
10186ac_cv_func_dlopen=no
10187fi
10188rm -f conftest.err conftest.$ac_objext \
10189      conftest$ac_exeext conftest.$ac_ext
10190fi
10191echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10192echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10193if test $ac_cv_func_dlopen = yes; then
10194  lt_cv_dlopen="dlopen"
10195else
10196  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10197echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10198if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10199  echo $ECHO_N "(cached) $ECHO_C" >&6
10200else
10201  ac_check_lib_save_LIBS=$LIBS
10202LIBS="-ldl  $LIBS"
10203cat >conftest.$ac_ext <<_ACEOF
10204/* confdefs.h.  */
10205_ACEOF
10206cat confdefs.h >>conftest.$ac_ext
10207cat >>conftest.$ac_ext <<_ACEOF
10208/* end confdefs.h.  */
10209
10210/* Override any gcc2 internal prototype to avoid an error.  */
10211#ifdef __cplusplus
10212extern "C"
10213#endif
10214/* We use char because int might match the return type of a gcc2
10215   builtin and then its argument prototype would still apply.  */
10216char dlopen ();
10217int
10218main ()
10219{
10220dlopen ();
10221  ;
10222  return 0;
10223}
10224_ACEOF
10225rm -f conftest.$ac_objext conftest$ac_exeext
10226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10227  (eval $ac_link) 2>conftest.er1
10228  ac_status=$?
10229  grep -v '^ *+' conftest.er1 >conftest.err
10230  rm -f conftest.er1
10231  cat conftest.err >&5
10232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233  (exit $ac_status); } &&
10234         { ac_try='test -z "$ac_c_werror_flag"
10235                         || test ! -s conftest.err'
10236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237  (eval $ac_try) 2>&5
10238  ac_status=$?
10239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240  (exit $ac_status); }; } &&
10241         { ac_try='test -s conftest$ac_exeext'
10242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243  (eval $ac_try) 2>&5
10244  ac_status=$?
10245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246  (exit $ac_status); }; }; then
10247  ac_cv_lib_dl_dlopen=yes
10248else
10249  echo "$as_me: failed program was:" >&5
10250sed 's/^/| /' conftest.$ac_ext >&5
10251
10252ac_cv_lib_dl_dlopen=no
10253fi
10254rm -f conftest.err conftest.$ac_objext \
10255      conftest$ac_exeext conftest.$ac_ext
10256LIBS=$ac_check_lib_save_LIBS
10257fi
10258echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10259echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10260if test $ac_cv_lib_dl_dlopen = yes; then
10261  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10262else
10263  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10264echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10265if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10266  echo $ECHO_N "(cached) $ECHO_C" >&6
10267else
10268  ac_check_lib_save_LIBS=$LIBS
10269LIBS="-lsvld  $LIBS"
10270cat >conftest.$ac_ext <<_ACEOF
10271/* confdefs.h.  */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h.  */
10276
10277/* Override any gcc2 internal prototype to avoid an error.  */
10278#ifdef __cplusplus
10279extern "C"
10280#endif
10281/* We use char because int might match the return type of a gcc2
10282   builtin and then its argument prototype would still apply.  */
10283char dlopen ();
10284int
10285main ()
10286{
10287dlopen ();
10288  ;
10289  return 0;
10290}
10291_ACEOF
10292rm -f conftest.$ac_objext conftest$ac_exeext
10293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294  (eval $ac_link) 2>conftest.er1
10295  ac_status=$?
10296  grep -v '^ *+' conftest.er1 >conftest.err
10297  rm -f conftest.er1
10298  cat conftest.err >&5
10299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300  (exit $ac_status); } &&
10301         { ac_try='test -z "$ac_c_werror_flag"
10302                         || test ! -s conftest.err'
10303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304  (eval $ac_try) 2>&5
10305  ac_status=$?
10306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307  (exit $ac_status); }; } &&
10308         { ac_try='test -s conftest$ac_exeext'
10309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310  (eval $ac_try) 2>&5
10311  ac_status=$?
10312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313  (exit $ac_status); }; }; then
10314  ac_cv_lib_svld_dlopen=yes
10315else
10316  echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5
10318
10319ac_cv_lib_svld_dlopen=no
10320fi
10321rm -f conftest.err conftest.$ac_objext \
10322      conftest$ac_exeext conftest.$ac_ext
10323LIBS=$ac_check_lib_save_LIBS
10324fi
10325echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10326echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10327if test $ac_cv_lib_svld_dlopen = yes; then
10328  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10329else
10330  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10331echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10332if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10333  echo $ECHO_N "(cached) $ECHO_C" >&6
10334else
10335  ac_check_lib_save_LIBS=$LIBS
10336LIBS="-ldld  $LIBS"
10337cat >conftest.$ac_ext <<_ACEOF
10338/* confdefs.h.  */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h.  */
10343
10344/* Override any gcc2 internal prototype to avoid an error.  */
10345#ifdef __cplusplus
10346extern "C"
10347#endif
10348/* We use char because int might match the return type of a gcc2
10349   builtin and then its argument prototype would still apply.  */
10350char dld_link ();
10351int
10352main ()
10353{
10354dld_link ();
10355  ;
10356  return 0;
10357}
10358_ACEOF
10359rm -f conftest.$ac_objext conftest$ac_exeext
10360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10361  (eval $ac_link) 2>conftest.er1
10362  ac_status=$?
10363  grep -v '^ *+' conftest.er1 >conftest.err
10364  rm -f conftest.er1
10365  cat conftest.err >&5
10366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367  (exit $ac_status); } &&
10368         { ac_try='test -z "$ac_c_werror_flag"
10369                         || test ! -s conftest.err'
10370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371  (eval $ac_try) 2>&5
10372  ac_status=$?
10373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374  (exit $ac_status); }; } &&
10375         { ac_try='test -s conftest$ac_exeext'
10376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377  (eval $ac_try) 2>&5
10378  ac_status=$?
10379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380  (exit $ac_status); }; }; then
10381  ac_cv_lib_dld_dld_link=yes
10382else
10383  echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
10386ac_cv_lib_dld_dld_link=no
10387fi
10388rm -f conftest.err conftest.$ac_objext \
10389      conftest$ac_exeext conftest.$ac_ext
10390LIBS=$ac_check_lib_save_LIBS
10391fi
10392echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10393echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10394if test $ac_cv_lib_dld_dld_link = yes; then
10395  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10396fi
10397
10398
10399fi
10400
10401
10402fi
10403
10404
10405fi
10406
10407
10408fi
10409
10410
10411fi
10412
10413    ;;
10414  esac
10415
10416  if test "x$lt_cv_dlopen" != xno; then
10417    enable_dlopen=yes
10418  else
10419    enable_dlopen=no
10420  fi
10421
10422  case $lt_cv_dlopen in
10423  dlopen)
10424    save_CPPFLAGS="$CPPFLAGS"
10425    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10426
10427    save_LDFLAGS="$LDFLAGS"
10428    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10429
10430    save_LIBS="$LIBS"
10431    LIBS="$lt_cv_dlopen_libs $LIBS"
10432
10433    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10434echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10435if test "${lt_cv_dlopen_self+set}" = set; then
10436  echo $ECHO_N "(cached) $ECHO_C" >&6
10437else
10438          if test "$cross_compiling" = yes; then :
10439  lt_cv_dlopen_self=cross
10440else
10441  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10442  lt_status=$lt_dlunknown
10443  cat > conftest.$ac_ext <<EOF
10444#line 10444 "configure"
10445#include "confdefs.h"
10446
10447#if HAVE_DLFCN_H
10448#include <dlfcn.h>
10449#endif
10450
10451#include <stdio.h>
10452
10453#ifdef RTLD_GLOBAL
10454#  define LT_DLGLOBAL           RTLD_GLOBAL
10455#else
10456#  ifdef DL_GLOBAL
10457#    define LT_DLGLOBAL         DL_GLOBAL
10458#  else
10459#    define LT_DLGLOBAL         0
10460#  endif
10461#endif
10462
10463/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10464   find out it does not work in some platform. */
10465#ifndef LT_DLLAZY_OR_NOW
10466#  ifdef RTLD_LAZY
10467#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10468#  else
10469#    ifdef DL_LAZY
10470#      define LT_DLLAZY_OR_NOW          DL_LAZY
10471#    else
10472#      ifdef RTLD_NOW
10473#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10474#      else
10475#        ifdef DL_NOW
10476#          define LT_DLLAZY_OR_NOW      DL_NOW
10477#        else
10478#          define LT_DLLAZY_OR_NOW      0
10479#        endif
10480#      endif
10481#    endif
10482#  endif
10483#endif
10484
10485#ifdef __cplusplus
10486extern "C" void exit (int);
10487#endif
10488
10489void fnord() { int i=42;}
10490int main ()
10491{
10492  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10493  int status = $lt_dlunknown;
10494
10495  if (self)
10496    {
10497      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10498      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10499      /* dlclose (self); */
10500    }
10501  else
10502    puts (dlerror ());
10503
10504    exit (status);
10505}
10506EOF
10507  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508  (eval $ac_link) 2>&5
10509  ac_status=$?
10510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10512    (./conftest; exit; ) >&5 2>/dev/null
10513    lt_status=$?
10514    case x$lt_status in
10515      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10516      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10517      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10518    esac
10519  else :
10520    # compilation failed
10521    lt_cv_dlopen_self=no
10522  fi
10523fi
10524rm -fr conftest*
10525
10526
10527fi
10528echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10529echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10530
10531    if test "x$lt_cv_dlopen_self" = xyes; then
10532      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10533      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10534echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10535if test "${lt_cv_dlopen_self_static+set}" = set; then
10536  echo $ECHO_N "(cached) $ECHO_C" >&6
10537else
10538          if test "$cross_compiling" = yes; then :
10539  lt_cv_dlopen_self_static=cross
10540else
10541  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10542  lt_status=$lt_dlunknown
10543  cat > conftest.$ac_ext <<EOF
10544#line 10544 "configure"
10545#include "confdefs.h"
10546
10547#if HAVE_DLFCN_H
10548#include <dlfcn.h>
10549#endif
10550
10551#include <stdio.h>
10552
10553#ifdef RTLD_GLOBAL
10554#  define LT_DLGLOBAL           RTLD_GLOBAL
10555#else
10556#  ifdef DL_GLOBAL
10557#    define LT_DLGLOBAL         DL_GLOBAL
10558#  else
10559#    define LT_DLGLOBAL         0
10560#  endif
10561#endif
10562
10563/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10564   find out it does not work in some platform. */
10565#ifndef LT_DLLAZY_OR_NOW
10566#  ifdef RTLD_LAZY
10567#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10568#  else
10569#    ifdef DL_LAZY
10570#      define LT_DLLAZY_OR_NOW          DL_LAZY
10571#    else
10572#      ifdef RTLD_NOW
10573#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10574#      else
10575#        ifdef DL_NOW
10576#          define LT_DLLAZY_OR_NOW      DL_NOW
10577#        else
10578#          define LT_DLLAZY_OR_NOW      0
10579#        endif
10580#      endif
10581#    endif
10582#  endif
10583#endif
10584
10585#ifdef __cplusplus
10586extern "C" void exit (int);
10587#endif
10588
10589void fnord() { int i=42;}
10590int main ()
10591{
10592  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10593  int status = $lt_dlunknown;
10594
10595  if (self)
10596    {
10597      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10598      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10599      /* dlclose (self); */
10600    }
10601  else
10602    puts (dlerror ());
10603
10604    exit (status);
10605}
10606EOF
10607  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608  (eval $ac_link) 2>&5
10609  ac_status=$?
10610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10612    (./conftest; exit; ) >&5 2>/dev/null
10613    lt_status=$?
10614    case x$lt_status in
10615      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10616      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10617      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10618    esac
10619  else :
10620    # compilation failed
10621    lt_cv_dlopen_self_static=no
10622  fi
10623fi
10624rm -fr conftest*
10625
10626
10627fi
10628echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10629echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10630    fi
10631
10632    CPPFLAGS="$save_CPPFLAGS"
10633    LDFLAGS="$save_LDFLAGS"
10634    LIBS="$save_LIBS"
10635    ;;
10636  esac
10637
10638  case $lt_cv_dlopen_self in
10639  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10640  *) enable_dlopen_self=unknown ;;
10641  esac
10642
10643  case $lt_cv_dlopen_self_static in
10644  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10645  *) enable_dlopen_self_static=unknown ;;
10646  esac
10647fi
10648
10649
10650# Report which library types will actually be built
10651echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10652echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10653echo "$as_me:$LINENO: result: $can_build_shared" >&5
10654echo "${ECHO_T}$can_build_shared" >&6
10655
10656echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10657echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10658test "$can_build_shared" = "no" && enable_shared=no
10659
10660# On AIX, shared libraries and static libraries use the same namespace, and
10661# are all built from PIC.
10662case $host_os in
10663aix3*)
10664  test "$enable_shared" = yes && enable_static=no
10665  if test -n "$RANLIB"; then
10666    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10667    postinstall_cmds='$RANLIB $lib'
10668  fi
10669  ;;
10670
10671aix4* | aix5*)
10672  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10673    test "$enable_shared" = yes && enable_static=no
10674  fi
10675    ;;
10676esac
10677echo "$as_me:$LINENO: result: $enable_shared" >&5
10678echo "${ECHO_T}$enable_shared" >&6
10679
10680echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10681echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10682# Make sure either enable_shared or enable_static is yes.
10683test "$enable_shared" = yes || enable_static=yes
10684echo "$as_me:$LINENO: result: $enable_static" >&5
10685echo "${ECHO_T}$enable_static" >&6
10686
10687# The else clause should only fire when bootstrapping the
10688# libtool distribution, otherwise you forgot to ship ltmain.sh
10689# with your package, and you will get complaints that there are
10690# no rules to generate ltmain.sh.
10691if test -f "$ltmain"; then
10692  # See if we are running on zsh, and set the options which allow our commands through
10693  # without removal of \ escapes.
10694  if test -n "${ZSH_VERSION+set}" ; then
10695    setopt NO_GLOB_SUBST
10696  fi
10697  # Now quote all the things that may contain metacharacters while being
10698  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10699  # variables and quote the copies for generation of the libtool script.
10700  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10701    SED SHELL STRIP \
10702    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10703    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10704    deplibs_check_method reload_flag reload_cmds need_locks \
10705    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10706    lt_cv_sys_global_symbol_to_c_name_address \
10707    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10708    old_postinstall_cmds old_postuninstall_cmds \
10709    compiler \
10710    CC \
10711    LD \
10712    lt_prog_compiler_wl \
10713    lt_prog_compiler_pic \
10714    lt_prog_compiler_static \
10715    lt_prog_compiler_no_builtin_flag \
10716    export_dynamic_flag_spec \
10717    thread_safe_flag_spec \
10718    whole_archive_flag_spec \
10719    enable_shared_with_static_runtimes \
10720    old_archive_cmds \
10721    old_archive_from_new_cmds \
10722    predep_objects \
10723    postdep_objects \
10724    predeps \
10725    postdeps \
10726    compiler_lib_search_path \
10727    archive_cmds \
10728    archive_expsym_cmds \
10729    postinstall_cmds \
10730    postuninstall_cmds \
10731    old_archive_from_expsyms_cmds \
10732    allow_undefined_flag \
10733    no_undefined_flag \
10734    export_symbols_cmds \
10735    hardcode_libdir_flag_spec \
10736    hardcode_libdir_flag_spec_ld \
10737    hardcode_libdir_separator \
10738    hardcode_automatic \
10739    module_cmds \
10740    module_expsym_cmds \
10741    lt_cv_prog_compiler_c_o \
10742    exclude_expsyms \
10743    include_expsyms; do
10744
10745    case $var in
10746    old_archive_cmds | \
10747    old_archive_from_new_cmds | \
10748    archive_cmds | \
10749    archive_expsym_cmds | \
10750    module_cmds | \
10751    module_expsym_cmds | \
10752    old_archive_from_expsyms_cmds | \
10753    export_symbols_cmds | \
10754    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10755    postinstall_cmds | postuninstall_cmds | \
10756    old_postinstall_cmds | old_postuninstall_cmds | \
10757    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10758      # Double-quote double-evaled strings.
10759      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10760      ;;
10761    *)
10762      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10763      ;;
10764    esac
10765  done
10766
10767  case $lt_echo in
10768  *'\$0 --fallback-echo"')
10769    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10770    ;;
10771  esac
10772
10773cfgfile="${ofile}T"
10774  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10775  $rm -f "$cfgfile"
10776  { ec