source: ThirdParty/ASL/stable/1.1/configure @ 2360

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

merge chgset 2336 from trunk

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