source: ThirdParty/FilterSQP/trunk/configure @ 580

Last change on this file since 580 was 580, checked in by andreasw, 12 years ago

reran autotools

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