source: ThirdParty/FilterSQP/stable/1.1/configure @ 1990

Last change on this file since 1990 was 1990, checked in by stefan, 9 years ago

temporarily commit release candidate to stable

File size: 767.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyFilterSQP 1.1.3.
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 Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyFilterSQP'
431PACKAGE_TARNAME='thirdpartyfiltersqp'
432PACKAGE_VERSION='1.1.3'
433PACKAGE_STRING='ThirdPartyFilterSQP 1.1.3'
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 PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion FILTERSQP_SVN_REV build build_cpu build_vendor build_os COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS FILTERSQP_PCLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED 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 ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_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_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyFilterSQP 1.1.3 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyFilterSQP 1.1.3:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-filtersqp
1079                          compile this project (FilterSQP) with debug options
1080  --enable-doscompile     Under Cygwin, compile so that executables run under
1081                          DOS. Set to mingw to use gcc/g++/ld with
1082                          -mno-cygwin. Set to msvc to use cl/link (or
1083                          icl/link). Default when mentioned: mingw. Default
1084                          when not mentioned: disabled.
1085  --enable-pkg-config     use pkg-config if available (default is yes)
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-static[=PKGS]
1091                          build static libraries [default=no]
1092  --enable-shared[=PKGS]
1093                          build shared libraries [default=yes]
1094  --enable-fast-install[=PKGS]
1095                          optimize for fast installation [default=yes]
1096  --disable-libtool-lock  avoid locking (might break parallel builds)
1097
1098Optional Packages:
1099  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1100  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1101  --with-filtersqp-verbosity
1102                          specify the debug verbosity level for project
1103                          FilterSQP
1104  --with-filtersqp-checklevel
1105                          specify the sanity check level for project FilterSQP
1106  --with-coin-instdir     prefix of installation directory for precompiled
1107                          COIN packages
1108  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1109  --with-pic              try to use only PIC/non-PIC objects [default=use
1110                          both]
1111  --with-tags[=TAGS]
1112                          include additional configurations [automatic]
1113
1114Some influential environment variables:
1115  CDEFS       Additional -D flags to be used when compiling C code.
1116  ADD_CFLAGS  Additional C compiler options
1117  DBG_CFLAGS  Debug C compiler options
1118  OPT_CFLAGS  Optimize C compiler options
1119  CC          C compiler command
1120  CFLAGS      C compiler flags
1121  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1122              nonstandard directory <lib dir>
1123  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1124              headers in a nonstandard directory <include dir>
1125  MPICC       C MPI Compiler
1126  ADD_FFLAGS  Additional Fortran compiler options
1127  DBG_FFLAGS  Debug Fortran compiler options
1128  OPT_FFLAGS  Optimize Fortran compiler options
1129  F77         Fortran 77 compiler command
1130  FFLAGS      Fortran 77 compiler flags
1131  MPIF77      Fortran MPI Compiler
1132  PKG_CONFIG  path to pkg-config utility
1133  CPP         C preprocessor
1134  CXX         C++ compiler command
1135  CXXFLAGS    C++ compiler flags
1136  CXXCPP      C++ preprocessor
1137
1138Use these variables to override the choices made by `configure' or to help
1139it to find libraries and programs with nonstandard names/locations.
1140
1141Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1142_ACEOF
1143fi
1144
1145if test "$ac_init_help" = "recursive"; then
1146  # If there are subdirs, report their specific --help.
1147  ac_popdir=`pwd`
1148  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1149    test -d $ac_dir || continue
1150    ac_builddir=.
1151
1152if test "$ac_dir" != .; then
1153  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1154  # A "../" for each directory in $ac_dir_suffix.
1155  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1156else
1157  ac_dir_suffix= ac_top_builddir=
1158fi
1159
1160case $srcdir in
1161  .)  # No --srcdir option.  We are building in place.
1162    ac_srcdir=.
1163    if test -z "$ac_top_builddir"; then
1164       ac_top_srcdir=.
1165    else
1166       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1167    fi ;;
1168  [\\/]* | ?:[\\/]* )  # Absolute path.
1169    ac_srcdir=$srcdir$ac_dir_suffix;
1170    ac_top_srcdir=$srcdir ;;
1171  *) # Relative path.
1172    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1173    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1174esac
1175
1176# Do not use `cd foo && pwd` to compute absolute paths, because
1177# the directories may not exist.
1178case `pwd` in
1179.) ac_abs_builddir="$ac_dir";;
1180*)
1181  case "$ac_dir" in
1182  .) ac_abs_builddir=`pwd`;;
1183  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1184  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1185  esac;;
1186esac
1187case $ac_abs_builddir in
1188.) ac_abs_top_builddir=${ac_top_builddir}.;;
1189*)
1190  case ${ac_top_builddir}. in
1191  .) ac_abs_top_builddir=$ac_abs_builddir;;
1192  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1193  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1194  esac;;
1195esac
1196case $ac_abs_builddir in
1197.) ac_abs_srcdir=$ac_srcdir;;
1198*)
1199  case $ac_srcdir in
1200  .) ac_abs_srcdir=$ac_abs_builddir;;
1201  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1202  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1203  esac;;
1204esac
1205case $ac_abs_builddir in
1206.) ac_abs_top_srcdir=$ac_top_srcdir;;
1207*)
1208  case $ac_top_srcdir in
1209  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1210  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1211  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1212  esac;;
1213esac
1214
1215    cd $ac_dir
1216    # Check for guested configure; otherwise get Cygnus style configure.
1217    if test -f $ac_srcdir/configure.gnu; then
1218      echo
1219      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1220    elif test -f $ac_srcdir/configure; then
1221      echo
1222      $SHELL $ac_srcdir/configure  --help=recursive
1223    elif test -f $ac_srcdir/configure.ac ||
1224           test -f $ac_srcdir/configure.in; then
1225      echo
1226      $ac_configure --help
1227    else
1228      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1229    fi
1230    cd $ac_popdir
1231  done
1232fi
1233
1234test -n "$ac_init_help" && exit 0
1235if $ac_init_version; then
1236  cat <<\_ACEOF
1237ThirdPartyFilterSQP configure 1.1.3
1238generated by GNU Autoconf 2.59
1239
1240Copyright (C) 2003 Free Software Foundation, Inc.
1241This configure script is free software; the Free Software Foundation
1242gives unlimited permission to copy, distribute and modify it.
1243
1244
1245Copyright 2006 International Business Machines and others.
1246All Rights Reserved.
1247This file is part of the open source package Coin which is distributed
1248under the Eclipse Public License.
1249_ACEOF
1250  exit 0
1251fi
1252exec 5>config.log
1253cat >&5 <<_ACEOF
1254This file contains any messages produced by compilers while
1255running configure, to aid debugging if configure makes a mistake.
1256
1257It was created by ThirdPartyFilterSQP $as_me 1.1.3, which was
1258generated by GNU Autoconf 2.59.  Invocation command line was
1259
1260  $ $0 $@
1261
1262_ACEOF
1263{
1264cat <<_ASUNAME
1265## --------- ##
1266## Platform. ##
1267## --------- ##
1268
1269hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1270uname -m = `(uname -m) 2>/dev/null || echo unknown`
1271uname -r = `(uname -r) 2>/dev/null || echo unknown`
1272uname -s = `(uname -s) 2>/dev/null || echo unknown`
1273uname -v = `(uname -v) 2>/dev/null || echo unknown`
1274
1275/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1276/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1277
1278/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1279/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1280/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1281hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1282/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1283/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1284/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1285
1286_ASUNAME
1287
1288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1289for as_dir in $PATH
1290do
1291  IFS=$as_save_IFS
1292  test -z "$as_dir" && as_dir=.
1293  echo "PATH: $as_dir"
1294done
1295
1296} >&5
1297
1298cat >&5 <<_ACEOF
1299
1300
1301## ----------- ##
1302## Core tests. ##
1303## ----------- ##
1304
1305_ACEOF
1306
1307
1308# Keep a trace of the command line.
1309# Strip out --no-create and --no-recursion so they do not pile up.
1310# Strip out --silent because we don't want to record it for future runs.
1311# Also quote any args containing shell meta-characters.
1312# Make two passes to allow for proper duplicate-argument suppression.
1313ac_configure_args=
1314ac_configure_args0=
1315ac_configure_args1=
1316ac_sep=
1317ac_must_keep_next=false
1318for ac_pass in 1 2
1319do
1320  for ac_arg
1321  do
1322    case $ac_arg in
1323    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1324    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325    | -silent | --silent | --silen | --sile | --sil)
1326      continue ;;
1327    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1328      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1329    esac
1330    case $ac_pass in
1331    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1332    2)
1333      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1334      if test $ac_must_keep_next = true; then
1335        ac_must_keep_next=false # Got value, back to normal.
1336      else
1337        case $ac_arg in
1338          *=* | --config-cache | -C | -disable-* | --disable-* \
1339          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1340          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1341          | -with-* | --with-* | -without-* | --without-* | --x)
1342            case "$ac_configure_args0 " in
1343              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1344            esac
1345            ;;
1346          -* ) ac_must_keep_next=true ;;
1347        esac
1348      fi
1349      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1350      # Get rid of the leading space.
1351      ac_sep=" "
1352      ;;
1353    esac
1354  done
1355done
1356$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1357$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1358
1359# When interrupted or exit'd, cleanup temporary files, and complete
1360# config.log.  We remove comments because anyway the quotes in there
1361# would cause problems or look ugly.
1362# WARNING: Be sure not to use single quotes in there, as some shells,
1363# such as our DU 5.0 friend, will then `close' the trap.
1364trap 'exit_status=$?
1365  # Save into config.log some information that might help in debugging.
1366  {
1367    echo
1368
1369    cat <<\_ASBOX
1370## ---------------- ##
1371## Cache variables. ##
1372## ---------------- ##
1373_ASBOX
1374    echo
1375    # The following way of writing the cache mishandles newlines in values,
1376{
1377  (set) 2>&1 |
1378    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1379    *ac_space=\ *)
1380      sed -n \
1381        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1382          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1383      ;;
1384    *)
1385      sed -n \
1386        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1387      ;;
1388    esac;
1389}
1390    echo
1391
1392    cat <<\_ASBOX
1393## ----------------- ##
1394## Output variables. ##
1395## ----------------- ##
1396_ASBOX
1397    echo
1398    for ac_var in $ac_subst_vars
1399    do
1400      eval ac_val=$`echo $ac_var`
1401      echo "$ac_var='"'"'$ac_val'"'"'"
1402    done | sort
1403    echo
1404
1405    if test -n "$ac_subst_files"; then
1406      cat <<\_ASBOX
1407## ------------- ##
1408## Output files. ##
1409## ------------- ##
1410_ASBOX
1411      echo
1412      for ac_var in $ac_subst_files
1413      do
1414        eval ac_val=$`echo $ac_var`
1415        echo "$ac_var='"'"'$ac_val'"'"'"
1416      done | sort
1417      echo
1418    fi
1419
1420    if test -s confdefs.h; then
1421      cat <<\_ASBOX
1422## ----------- ##
1423## confdefs.h. ##
1424## ----------- ##
1425_ASBOX
1426      echo
1427      sed "/^$/d" confdefs.h | sort
1428      echo
1429    fi
1430    test "$ac_signal" != 0 &&
1431      echo "$as_me: caught signal $ac_signal"
1432    echo "$as_me: exit $exit_status"
1433  } >&5
1434  rm -f core *.core &&
1435  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1436    exit $exit_status
1437     ' 0
1438for ac_signal in 1 2 13 15; do
1439  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1440done
1441ac_signal=0
1442
1443# confdefs.h avoids OS command line length limits that DEFS can exceed.
1444rm -rf conftest* confdefs.h
1445# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1446echo >confdefs.h
1447
1448# Predefined preprocessor variables.
1449
1450cat >>confdefs.h <<_ACEOF
1451#define PACKAGE_NAME "$PACKAGE_NAME"
1452_ACEOF
1453
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1457_ACEOF
1458
1459
1460cat >>confdefs.h <<_ACEOF
1461#define PACKAGE_VERSION "$PACKAGE_VERSION"
1462_ACEOF
1463
1464
1465cat >>confdefs.h <<_ACEOF
1466#define PACKAGE_STRING "$PACKAGE_STRING"
1467_ACEOF
1468
1469
1470cat >>confdefs.h <<_ACEOF
1471#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1472_ACEOF
1473
1474
1475# Let the site file select an alternate cache file if it wants to.
1476# Prefer explicitly selected file to automatically selected ones.
1477if test -z "$CONFIG_SITE"; then
1478  if test "x$prefix" != xNONE; then
1479    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1480  else
1481    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1482  fi
1483fi
1484for ac_site_file in $CONFIG_SITE; do
1485  if test -r "$ac_site_file"; then
1486    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1487echo "$as_me: loading site script $ac_site_file" >&6;}
1488    sed 's/^/| /' "$ac_site_file" >&5
1489    . "$ac_site_file"
1490  fi
1491done
1492
1493if test -r "$cache_file"; then
1494  # Some versions of bash will fail to source /dev/null (special
1495  # files actually), so we avoid doing that.
1496  if test -f "$cache_file"; then
1497    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1498echo "$as_me: loading cache $cache_file" >&6;}
1499    case $cache_file in
1500      [\\/]* | ?:[\\/]* ) . $cache_file;;
1501      *)                      . ./$cache_file;;
1502    esac
1503  fi
1504else
1505  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1506echo "$as_me: creating cache $cache_file" >&6;}
1507  >$cache_file
1508fi
1509
1510# Check that the precious variables saved in the cache have kept the same
1511# value.
1512ac_cache_corrupted=false
1513for ac_var in `(set) 2>&1 |
1514               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1515  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1516  eval ac_new_set=\$ac_env_${ac_var}_set
1517  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1518  eval ac_new_val="\$ac_env_${ac_var}_value"
1519  case $ac_old_set,$ac_new_set in
1520    set,)
1521      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1522echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1523      ac_cache_corrupted=: ;;
1524    ,set)
1525      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1526echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1527      ac_cache_corrupted=: ;;
1528    ,);;
1529    *)
1530      if test "x$ac_old_val" != "x$ac_new_val"; then
1531        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1532echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1533        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1534echo "$as_me:   former value:  $ac_old_val" >&2;}
1535        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1536echo "$as_me:   current value: $ac_new_val" >&2;}
1537        ac_cache_corrupted=:
1538      fi;;
1539  esac
1540  # Pass precious variables to config.status.
1541  if test "$ac_new_set" = set; then
1542    case $ac_new_val in
1543    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1544      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1545    *) ac_arg=$ac_var=$ac_new_val ;;
1546    esac
1547    case " $ac_configure_args " in
1548      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1549      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1550    esac
1551  fi
1552done
1553if $ac_cache_corrupted; then
1554  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1555echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1556  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1557echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1558   { (exit 1); exit 1; }; }
1559fi
1560
1561ac_ext=c
1562ac_cpp='$CPP $CPPFLAGS'
1563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1565ac_compiler_gnu=$ac_cv_c_compiler_gnu
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596# List one file in the package so that the configure script can test
1597# whether the package is actually there
1598
1599
1600# Where should everything be installed by default?  Here, we want it
1601# to be installed directly in 'bin', 'lib', 'include' subdirectories
1602# of the directory where configure is run.  The default would be
1603# /usr/local.
1604
1605
1606# Initialize the ADDLIBS variable
1607ADDLIBS="-lm $LIBS"
1608
1609
1610# Initialize the PCADDLIBS variable.
1611# This variable is used to setup library flags for the "Libs:" section in a .pc file.
1612# In certain cases, it may contain more flags than the ADDLIBS variable.
1613PCADDLIBS=""
1614
1615
1616# As backup, we make sure we don't loose an FLIBS if it has been set
1617# by the user
1618save_FLIBS="$FLIBS"
1619
1620# Initialize the FADDLIBS variable (which is to be used with a fortran
1621# compiler and will not include FLIBS)
1622FADDLIBS="$LIBS"
1623
1624
1625# A useful makefile conditional that is always false
1626
1627
1628if false; then
1629  ALWAYS_FALSE_TRUE=
1630  ALWAYS_FALSE_FALSE='#'
1631else
1632  ALWAYS_FALSE_TRUE='#'
1633  ALWAYS_FALSE_FALSE=
1634fi
1635
1636
1637# We set the following variable so that we know later in AC_COIN_FINALIZE
1638# that we are in a project main directory
1639coin_projectdir=yes
1640
1641# Set the project's version number
1642if test "xFilterSQP" != x; then
1643
1644cat >>confdefs.h <<_ACEOF
1645#define FILTERSQP_VERSION "$PACKAGE_VERSION"
1646_ACEOF
1647
1648fi
1649
1650# Set the project's SVN revision number. The complicated sed expression
1651# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1652# as a single number.
1653# Extract the first word of "svnversion", so it can be a program name with args.
1654set dummy svnversion; ac_word=$2
1655echo "$as_me:$LINENO: checking for $ac_word" >&5
1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657if test "${ac_cv_prog_have_svnversion+set}" = set; then
1658  echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660  if test -n "$have_svnversion"; then
1661  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1662else
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666  IFS=$as_save_IFS
1667  test -z "$as_dir" && as_dir=.
1668  for ac_exec_ext in '' $ac_executable_extensions; do
1669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670    ac_cv_prog_have_svnversion="yes"
1671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672    break 2
1673  fi
1674done
1675done
1676
1677  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1678fi
1679fi
1680have_svnversion=$ac_cv_prog_have_svnversion
1681if test -n "$have_svnversion"; then
1682  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1683echo "${ECHO_T}$have_svnversion" >&6
1684else
1685  echo "$as_me:$LINENO: result: no" >&5
1686echo "${ECHO_T}no" >&6
1687fi
1688
1689if test "x$have_svnversion" = xyes && test "xFilterSQP" != x; then
1690
1691  svn_rev_tmp=`cd $srcdir/$coin_has_filtersqp ; svnversion`
1692  FILTERSQP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1693  if test $FILTERSQP_SVN_REV != exported; then
1694
1695cat >>confdefs.h <<_ACEOF
1696#define FILTERSQP_SVN_REV $FILTERSQP_SVN_REV
1697_ACEOF
1698
1699  fi
1700fi
1701
1702# Capture libtool library version, if given.
1703coin_libversion=2:3:1
1704
1705
1706
1707#############################################################################
1708#                         Standard build tool stuff                         #
1709#############################################################################
1710
1711# Get the system type
1712ac_aux_dir=
1713for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1714  if test -f $ac_dir/install-sh; then
1715    ac_aux_dir=$ac_dir
1716    ac_install_sh="$ac_aux_dir/install-sh -c"
1717    break
1718  elif test -f $ac_dir/install.sh; then
1719    ac_aux_dir=$ac_dir
1720    ac_install_sh="$ac_aux_dir/install.sh -c"
1721    break
1722  elif test -f $ac_dir/shtool; then
1723    ac_aux_dir=$ac_dir
1724    ac_install_sh="$ac_aux_dir/shtool install -c"
1725    break
1726  fi
1727done
1728if test -z "$ac_aux_dir"; then
1729  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1730echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1731   { (exit 1); exit 1; }; }
1732fi
1733ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1734ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1735ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1736
1737# Make sure we can run config.sub.
1738$ac_config_sub sun4 >/dev/null 2>&1 ||
1739  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1740echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1741   { (exit 1); exit 1; }; }
1742
1743echo "$as_me:$LINENO: checking build system type" >&5
1744echo $ECHO_N "checking build system type... $ECHO_C" >&6
1745if test "${ac_cv_build+set}" = set; then
1746  echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748  ac_cv_build_alias=$build_alias
1749test -z "$ac_cv_build_alias" &&
1750  ac_cv_build_alias=`$ac_config_guess`
1751test -z "$ac_cv_build_alias" &&
1752  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1753echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1754   { (exit 1); exit 1; }; }
1755ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1756  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1757echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1758   { (exit 1); exit 1; }; }
1759
1760fi
1761echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1762echo "${ECHO_T}$ac_cv_build" >&6
1763build=$ac_cv_build
1764build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1765build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1766build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1767
1768
1769
1770# Check if user wants to produce debugging code
1771
1772echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1773echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1774
1775# Check whether --enable-debug or --disable-debug was given.
1776if test "${enable_debug+set}" = set; then
1777  enableval="$enable_debug"
1778  case "${enableval}" in
1779   yes) coin_debug_compile=true
1780        if test "${enable_shared+set}" = set; then :; else
1781          enable_shared=no
1782        fi
1783        ;;
1784   no)  coin_debug_compile=false
1785        ;;
1786   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1787echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1788   { (exit 1); exit 1; }; }
1789        ;;
1790esac
1791else
1792  coin_debug_compile=false
1793fi;
1794
1795# Check whether --enable-debug-filtersqp or --disable-debug-filtersqp was given.
1796if test "${enable_debug_filtersqp+set}" = set; then
1797  enableval="$enable_debug_filtersqp"
1798  case "${enableval}" in
1799    yes) coin_debug_compile=true
1800         enable_shared=no
1801         ;;
1802    no)  coin_debug_compile=false
1803         ;;
1804    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-filtersqp" >&5
1805echo "$as_me: error: bad value ${enableval} for --enable-debug-filtersqp" >&2;}
1806   { (exit 1); exit 1; }; }
1807         ;;
1808 esac
1809else
1810  :
1811fi;
1812
1813 # m4_ifvaln([FilterSQP],
1814
1815if test $coin_debug_compile = true; then
1816  echo "$as_me:$LINENO: result: yes" >&5
1817echo "${ECHO_T}yes" >&6
1818else
1819  echo "$as_me:$LINENO: result: no" >&5
1820echo "${ECHO_T}no" >&6
1821fi
1822
1823
1824# Check whether --with-filtersqp-verbosity or --without-filtersqp-verbosity was given.
1825if test "${with_filtersqp_verbosity+set}" = set; then
1826  withval="$with_filtersqp_verbosity"
1827  if test "$withval" = yes; then
1828                withval=1
1829              fi
1830              coin_filtersqp_verbosity=$withval
1831else
1832  coin_filtersqp_verbosity=0
1833fi;
1834
1835cat >>confdefs.h <<_ACEOF
1836#define COIN_FILTERSQP_VERBOSITY $coin_filtersqp_verbosity
1837_ACEOF
1838
1839
1840
1841# Check whether --with-filtersqp-checklevel or --without-filtersqp-checklevel was given.
1842if test "${with_filtersqp_checklevel+set}" = set; then
1843  withval="$with_filtersqp_checklevel"
1844  if test "$withval" = yes; then
1845                withval=1
1846              fi
1847              coin_filtersqp_checklevel=$withval
1848else
1849  coin_filtersqp_checklevel=0
1850fi;
1851
1852cat >>confdefs.h <<_ACEOF
1853#define COIN_FILTERSQP_CHECKLEVEL $coin_filtersqp_checklevel
1854_ACEOF
1855
1856
1857# We use the following variable to have a string with the upper case
1858# version of the project name
1859COIN_PRJCT=FILTERSQP
1860
1861
1862 # m4_ifvaln([FilterSQP],
1863
1864
1865
1866# Get the name of the Fortran compiler and appropriate compiler options
1867case $build in
1868  *-mingw*)
1869    if test "${LD+set}" = set; then :; else
1870      LD=link
1871    fi
1872    ;;
1873 esac
1874 case $enable_doscompile in
1875   msvc)
1876     if test "x${LD+set}" = xset; then :; else
1877       LD=link
1878     fi
1879     ;;
1880 esac
1881
1882
1883 # Check whether --enable-doscompile or --disable-doscompile was given.
1884if test "${enable_doscompile+set}" = set; then
1885  enableval="$enable_doscompile"
1886  if test "$enable_doscompile" != no; then
1887     case $build in
1888       *-cygwin* | *-mingw*) ;;
1889       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1890echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1891   { (exit 1); exit 1; }; } ;;
1892     esac
1893   fi
1894else
1895  enable_doscompile=no
1896fi;
1897 case "$enable_doscompile" in
1898   mingw)
1899     case $build in
1900       *-mingw*) enable_doscompile=no ;;
1901     esac
1902     ;;
1903   msvc|no) ;;
1904   yes) enable_doscompile=mingw ;;
1905   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1906                    Try configure --help=recursive." >&5
1907echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1908                    Try configure --help=recursive." >&2;}
1909   { (exit 1); exit 1; }; }
1910      ;;
1911  esac
1912  if test "$enable_doscompile" != no ; then
1913    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1914echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1915  fi
1916
1917
1918
1919
1920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927# For consistency, we set the C compiler to the same value of the C++
1928# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1929if test x"$CXX" != x; then
1930  case "$CXX" in
1931    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1932      if test x"$CC" = x; then
1933        CC="$CXX"
1934        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1935echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1936      fi
1937      ;;
1938  esac
1939fi
1940
1941# add automake conditional so we can recognize cl compiler in makefile
1942coin_cc_is_cl=false
1943if test x"$CXX" != x; then
1944  case "$CXX" in
1945    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1946      coin_cc_is_cl=true
1947      ;;
1948  esac
1949fi
1950
1951
1952if test $coin_cc_is_cl = true; then
1953  COIN_CC_IS_CL_TRUE=
1954  COIN_CC_IS_CL_FALSE='#'
1955else
1956  COIN_CC_IS_CL_TRUE='#'
1957  COIN_CC_IS_CL_FALSE=
1958fi
1959
1960
1961
1962
1963
1964
1965
1966coin_has_cc=yes
1967
1968save_cflags="$CFLAGS"
1969
1970# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1971# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1972# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1973# compiler. In this case, put cc after gcc.
1974
1975case $build in
1976  *-cygwin* | *-mingw*)
1977             if test "$enable_doscompile" = msvc ; then
1978               comps="icl cl"
1979             else
1980               comps="gcc cl"
1981             fi ;;
1982  *-*-solaris*)
1983             # Extract the first word of "cc", so it can be a program name with args.
1984set dummy cc; ac_word=$2
1985echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1988  echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990  if test -n "$sol_cc_compiler"; then
1991  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1992else
1993  ac_prog_rejected=no
1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997  IFS=$as_save_IFS
1998  test -z "$as_dir" && as_dir=.
1999  for ac_exec_ext in '' $ac_executable_extensions; do
2000  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2002       ac_prog_rejected=yes
2003       continue
2004     fi
2005    ac_cv_prog_sol_cc_compiler="cc"
2006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007    break 2
2008  fi
2009done
2010done
2011
2012if test $ac_prog_rejected = yes; then
2013  # We found a bogon in the path, so make sure we never use it.
2014  set dummy $ac_cv_prog_sol_cc_compiler
2015  shift
2016  if test $# != 0; then
2017    # We chose a different compiler from the bogus one.
2018    # However, it has the same basename, so the bogon will be chosen
2019    # first if we set sol_cc_compiler to just the basename; use the full file name.
2020    shift
2021    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2022  fi
2023fi
2024fi
2025fi
2026sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2027if test -n "$sol_cc_compiler"; then
2028  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2029echo "${ECHO_T}$sol_cc_compiler" >&6
2030else
2031  echo "$as_me:$LINENO: result: no" >&5
2032echo "${ECHO_T}no" >&6
2033fi
2034
2035             if test "$sol_cc_compiler" = "cc" ; then
2036               comps="cc xlc gcc pgcc icc"
2037             else
2038               comps="xlc gcc pgcc icc cc"
2039             fi
2040             ;;
2041  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2042  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2043esac
2044
2045# We delete the cached value, since the test might not have been
2046# performed with our choice of compilers earlier
2047$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2048# AC_MSG_NOTICE([C compiler candidates: $comps])
2049ac_ext=c
2050ac_cpp='$CPP $CPPFLAGS'
2051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054if test -n "$ac_tool_prefix"; then
2055  for ac_prog in $comps
2056  do
2057    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2058set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2059echo "$as_me:$LINENO: checking for $ac_word" >&5
2060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061if test "${ac_cv_prog_CC+set}" = set; then
2062  echo $ECHO_N "(cached) $ECHO_C" >&6
2063else
2064  if test -n "$CC"; then
2065  ac_cv_prog_CC="$CC" # Let the user override the test.
2066else
2067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070  IFS=$as_save_IFS
2071  test -z "$as_dir" && as_dir=.
2072  for ac_exec_ext in '' $ac_executable_extensions; do
2073  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076    break 2
2077  fi
2078done
2079done
2080
2081fi
2082fi
2083CC=$ac_cv_prog_CC
2084if test -n "$CC"; then
2085  echo "$as_me:$LINENO: result: $CC" >&5
2086echo "${ECHO_T}$CC" >&6
2087else
2088  echo "$as_me:$LINENO: result: no" >&5
2089echo "${ECHO_T}no" >&6
2090fi
2091
2092    test -n "$CC" && break
2093  done
2094fi
2095if test -z "$CC"; then
2096  ac_ct_CC=$CC
2097  for ac_prog in $comps
2098do
2099  # Extract the first word of "$ac_prog", so it can be a program name with args.
2100set dummy $ac_prog; ac_word=$2
2101echo "$as_me:$LINENO: checking for $ac_word" >&5
2102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104  echo $ECHO_N "(cached) $ECHO_C" >&6
2105else
2106  if test -n "$ac_ct_CC"; then
2107  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2108else
2109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110for as_dir in $PATH
2111do
2112  IFS=$as_save_IFS
2113  test -z "$as_dir" && as_dir=.
2114  for ac_exec_ext in '' $ac_executable_extensions; do
2115  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116    ac_cv_prog_ac_ct_CC="$ac_prog"
2117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118    break 2
2119  fi
2120done
2121done
2122
2123fi
2124fi
2125ac_ct_CC=$ac_cv_prog_ac_ct_CC
2126if test -n "$ac_ct_CC"; then
2127  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2128echo "${ECHO_T}$ac_ct_CC" >&6
2129else
2130  echo "$as_me:$LINENO: result: no" >&5
2131echo "${ECHO_T}no" >&6
2132fi
2133
2134  test -n "$ac_ct_CC" && break
2135done
2136
2137  CC=$ac_ct_CC
2138fi
2139
2140
2141test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: no acceptable C compiler found in \$PATH
2144See \`config.log' for more details." >&2;}
2145   { (exit 1); exit 1; }; }
2146
2147# Provide some information about the compiler.
2148echo "$as_me:$LINENO:" \
2149     "checking for C compiler version" >&5
2150ac_compiler=`set X $ac_compile; echo $2`
2151{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2152  (eval $ac_compiler --version </dev/null >&5) 2>&5
2153  ac_status=$?
2154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155  (exit $ac_status); }
2156{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2157  (eval $ac_compiler -v </dev/null >&5) 2>&5
2158  ac_status=$?
2159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160  (exit $ac_status); }
2161{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2162  (eval $ac_compiler -V </dev/null >&5) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }
2166
2167cat >conftest.$ac_ext <<_ACEOF
2168/* confdefs.h.  */
2169_ACEOF
2170cat confdefs.h >>conftest.$ac_ext
2171cat >>conftest.$ac_ext <<_ACEOF
2172/* end confdefs.h.  */
2173
2174int
2175main ()
2176{
2177
2178  ;
2179  return 0;
2180}
2181_ACEOF
2182ac_clean_files_save=$ac_clean_files
2183ac_clean_files="$ac_clean_files a.out a.exe b.out"
2184# Try to create an executable without -o first, disregard a.out.
2185# It will help us diagnose broken compilers, and finding out an intuition
2186# of exeext.
2187echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2188echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2189ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2190if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2191  (eval $ac_link_default) 2>&5
2192  ac_status=$?
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); }; then
2195  # Find the output, starting from the most likely.  This scheme is
2196# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2197# resort.
2198
2199# Be careful to initialize this variable, since it used to be cached.
2200# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2201ac_cv_exeext=
2202# b.out is created by i960 compilers.
2203for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2204do
2205  test -f "$ac_file" || continue
2206  case $ac_file in
2207    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2208        ;;
2209    conftest.$ac_ext )
2210        # This is the source file.
2211        ;;
2212    [ab].out )
2213        # We found the default executable, but exeext='' is most
2214        # certainly right.
2215        break;;
2216    *.* )
2217        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218        # FIXME: I believe we export ac_cv_exeext for Libtool,
2219        # but it would be cool to find out if it's true.  Does anybody
2220        # maintain Libtool? --akim.
2221        export ac_cv_exeext
2222        break;;
2223    * )
2224        break;;
2225  esac
2226done
2227else
2228  echo "$as_me: failed program was:" >&5
2229sed 's/^/| /' conftest.$ac_ext >&5
2230
2231{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232See \`config.log' for more details." >&5
2233echo "$as_me: error: C compiler cannot create executables
2234See \`config.log' for more details." >&2;}
2235   { (exit 77); exit 77; }; }
2236fi
2237
2238ac_exeext=$ac_cv_exeext
2239echo "$as_me:$LINENO: result: $ac_file" >&5
2240echo "${ECHO_T}$ac_file" >&6
2241
2242# Check the compiler produces executables we can run.  If not, either
2243# the compiler is broken, or we cross compile.
2244echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2246# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247# If not cross compiling, check that we can run a simple program.
2248if test "$cross_compiling" != yes; then
2249  if { ac_try='./$ac_file'
2250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251  (eval $ac_try) 2>&5
2252  ac_status=$?
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); }; }; then
2255    cross_compiling=no
2256  else
2257    if test "$cross_compiling" = maybe; then
2258        cross_compiling=yes
2259    else
2260        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2261If you meant to cross compile, use \`--host'.
2262See \`config.log' for more details." >&5
2263echo "$as_me: error: cannot run C compiled programs.
2264If you meant to cross compile, use \`--host'.
2265See \`config.log' for more details." >&2;}
2266   { (exit 1); exit 1; }; }
2267    fi
2268  fi
2269fi
2270echo "$as_me:$LINENO: result: yes" >&5
2271echo "${ECHO_T}yes" >&6
2272
2273rm -f a.out a.exe conftest$ac_cv_exeext b.out
2274ac_clean_files=$ac_clean_files_save
2275# Check the compiler produces executables we can run.  If not, either
2276# the compiler is broken, or we cross compile.
2277echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2278echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2279echo "$as_me:$LINENO: result: $cross_compiling" >&5
2280echo "${ECHO_T}$cross_compiling" >&6
2281
2282echo "$as_me:$LINENO: checking for suffix of executables" >&5
2283echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2285  (eval $ac_link) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }; then
2289  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2290# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2291# work properly (i.e., refer to `conftest.exe'), while it won't with
2292# `rm'.
2293for ac_file in conftest.exe conftest conftest.*; do
2294  test -f "$ac_file" || continue
2295  case $ac_file in
2296    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2297    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2298          export ac_cv_exeext
2299          break;;
2300    * ) break;;
2301  esac
2302done
2303else
2304  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2305See \`config.log' for more details." >&5
2306echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2307See \`config.log' for more details." >&2;}
2308   { (exit 1); exit 1; }; }
2309fi
2310
2311rm -f conftest$ac_cv_exeext
2312echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2313echo "${ECHO_T}$ac_cv_exeext" >&6
2314
2315rm -f conftest.$ac_ext
2316EXEEXT=$ac_cv_exeext
2317ac_exeext=$EXEEXT
2318echo "$as_me:$LINENO: checking for suffix of object files" >&5
2319echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2320if test "${ac_cv_objext+set}" = set; then
2321  echo $ECHO_N "(cached) $ECHO_C" >&6
2322else
2323  cat >conftest.$ac_ext <<_ACEOF
2324/* confdefs.h.  */
2325_ACEOF
2326cat confdefs.h >>conftest.$ac_ext
2327cat >>conftest.$ac_ext <<_ACEOF
2328/* end confdefs.h.  */
2329
2330int
2331main ()
2332{
2333
2334  ;
2335  return 0;
2336}
2337_ACEOF
2338rm -f conftest.o conftest.obj
2339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2340  (eval $ac_compile) 2>&5
2341  ac_status=$?
2342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343  (exit $ac_status); }; then
2344  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2345  case $ac_file in
2346    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2347    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2348       break;;
2349  esac
2350done
2351else
2352  echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2356See \`config.log' for more details." >&5
2357echo "$as_me: error: cannot compute suffix of object files: cannot compile
2358See \`config.log' for more details." >&2;}
2359   { (exit 1); exit 1; }; }
2360fi
2361
2362rm -f conftest.$ac_cv_objext conftest.$ac_ext
2363fi
2364echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2365echo "${ECHO_T}$ac_cv_objext" >&6
2366OBJEXT=$ac_cv_objext
2367ac_objext=$OBJEXT
2368echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2369echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2370if test "${ac_cv_c_compiler_gnu+set}" = set; then
2371  echo $ECHO_N "(cached) $ECHO_C" >&6
2372else
2373  cat >conftest.$ac_ext <<_ACEOF
2374/* confdefs.h.  */
2375_ACEOF
2376cat confdefs.h >>conftest.$ac_ext
2377cat >>conftest.$ac_ext <<_ACEOF
2378/* end confdefs.h.  */
2379
2380int
2381main ()
2382{
2383#ifndef __GNUC__
2384       choke me
2385#endif
2386
2387  ;
2388  return 0;
2389}
2390_ACEOF
2391rm -f conftest.$ac_objext
2392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393  (eval $ac_compile) 2>conftest.er1
2394  ac_status=$?
2395  grep -v '^ *+' conftest.er1 >conftest.err
2396  rm -f conftest.er1
2397  cat conftest.err >&5
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); } &&
2400         { ac_try='test -z "$ac_c_werror_flag"
2401                         || test ! -s conftest.err'
2402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403  (eval $ac_try) 2>&5
2404  ac_status=$?
2405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406  (exit $ac_status); }; } &&
2407         { ac_try='test -s conftest.$ac_objext'
2408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409  (eval $ac_try) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; }; then
2413  ac_compiler_gnu=yes
2414else
2415  echo "$as_me: failed program was:" >&5
2416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418ac_compiler_gnu=no
2419fi
2420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2421ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423fi
2424echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2426GCC=`test $ac_compiler_gnu = yes && echo yes`
2427ac_test_CFLAGS=${CFLAGS+set}
2428ac_save_CFLAGS=$CFLAGS
2429CFLAGS="-g"
2430echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2431echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2432if test "${ac_cv_prog_cc_g+set}" = set; then
2433  echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435  cat >conftest.$ac_ext <<_ACEOF
2436/* confdefs.h.  */
2437_ACEOF
2438cat confdefs.h >>conftest.$ac_ext
2439cat >>conftest.$ac_ext <<_ACEOF
2440/* end confdefs.h.  */
2441
2442int
2443main ()
2444{
2445
2446  ;
2447  return 0;
2448}
2449_ACEOF
2450rm -f conftest.$ac_objext
2451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452  (eval $ac_compile) 2>conftest.er1
2453  ac_status=$?
2454  grep -v '^ *+' conftest.er1 >conftest.err
2455  rm -f conftest.er1
2456  cat conftest.err >&5
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); } &&
2459         { ac_try='test -z "$ac_c_werror_flag"
2460                         || test ! -s conftest.err'
2461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462  (eval $ac_try) 2>&5
2463  ac_status=$?
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); }; } &&
2466         { ac_try='test -s conftest.$ac_objext'
2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468  (eval $ac_try) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; }; then
2472  ac_cv_prog_cc_g=yes
2473else
2474  echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477ac_cv_prog_cc_g=no
2478fi
2479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2480fi
2481echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2482echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2483if test "$ac_test_CFLAGS" = set; then
2484  CFLAGS=$ac_save_CFLAGS
2485elif test $ac_cv_prog_cc_g = yes; then
2486  if test "$GCC" = yes; then
2487    CFLAGS="-g -O2"
2488  else
2489    CFLAGS="-g"
2490  fi
2491else
2492  if test "$GCC" = yes; then
2493    CFLAGS="-O2"
2494  else
2495    CFLAGS=
2496  fi
2497fi
2498echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2499echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2500if test "${ac_cv_prog_cc_stdc+set}" = set; then
2501  echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503  ac_cv_prog_cc_stdc=no
2504ac_save_CC=$CC
2505cat >conftest.$ac_ext <<_ACEOF
2506/* confdefs.h.  */
2507_ACEOF
2508cat confdefs.h >>conftest.$ac_ext
2509cat >>conftest.$ac_ext <<_ACEOF
2510/* end confdefs.h.  */
2511#include <stdarg.h>
2512#include <stdio.h>
2513#include <sys/types.h>
2514#include <sys/stat.h>
2515/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2516struct buf { int x; };
2517FILE * (*rcsopen) (struct buf *, struct stat *, int);
2518static char *e (p, i)
2519     char **p;
2520     int i;
2521{
2522  return p[i];
2523}
2524static char *f (char * (*g) (char **, int), char **p, ...)
2525{
2526  char *s;
2527  va_list v;
2528  va_start (v,p);
2529  s = g (p, va_arg (v,int));
2530  va_end (v);
2531  return s;
2532}
2533
2534/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2535   function prototypes and stuff, but not '\xHH' hex character constants.
2536   These don't provoke an error unfortunately, instead are silently treated
2537   as 'x'.  The following induces an error, until -std1 is added to get
2538   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2539   array size at least.  It's necessary to write '\x00'==0 to get something
2540   that's true only with -std1.  */
2541int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2542
2543int test (int i, double x);
2544struct s1 {int (*f) (int a);};
2545struct s2 {int (*f) (double a);};
2546int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2547int argc;
2548char **argv;
2549int
2550main ()
2551{
2552return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2553  ;
2554  return 0;
2555}
2556_ACEOF
2557# Don't try gcc -ansi; that turns off useful extensions and
2558# breaks some systems' header files.
2559# AIX                   -qlanglvl=ansi
2560# Ultrix and OSF/1      -std1
2561# HP-UX 10.20 and later -Ae
2562# HP-UX older versions  -Aa -D_HPUX_SOURCE
2563# SVR4                  -Xc -D__EXTENSIONS__
2564for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2565do
2566  CC="$ac_save_CC $ac_arg"
2567  rm -f conftest.$ac_objext
2568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569  (eval $ac_compile) 2>conftest.er1
2570  ac_status=$?
2571  grep -v '^ *+' conftest.er1 >conftest.err
2572  rm -f conftest.er1
2573  cat conftest.err >&5
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); } &&
2576         { ac_try='test -z "$ac_c_werror_flag"
2577                         || test ! -s conftest.err'
2578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579  (eval $ac_try) 2>&5
2580  ac_status=$?
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); }; } &&
2583         { ac_try='test -s conftest.$ac_objext'
2584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585  (eval $ac_try) 2>&5
2586  ac_status=$?
2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588  (exit $ac_status); }; }; then
2589  ac_cv_prog_cc_stdc=$ac_arg
2590break
2591else
2592  echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595fi
2596rm -f conftest.err conftest.$ac_objext
2597done
2598rm -f conftest.$ac_ext conftest.$ac_objext
2599CC=$ac_save_CC
2600
2601fi
2602
2603case "x$ac_cv_prog_cc_stdc" in
2604  x|xno)
2605    echo "$as_me:$LINENO: result: none needed" >&5
2606echo "${ECHO_T}none needed" >&6 ;;
2607  *)
2608    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2609echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2610    CC="$CC $ac_cv_prog_cc_stdc" ;;
2611esac
2612
2613# Some people use a C++ compiler to compile C.  Since we use `exit',
2614# in C++ we need to declare it.  In case someone uses the same compiler
2615# for both compiling C and C++ we need to have the C++ compiler decide
2616# the declaration of exit, since it's the most demanding environment.
2617cat >conftest.$ac_ext <<_ACEOF
2618#ifndef __cplusplus
2619  choke me
2620#endif
2621_ACEOF
2622rm -f conftest.$ac_objext
2623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624  (eval $ac_compile) 2>conftest.er1
2625  ac_status=$?
2626  grep -v '^ *+' conftest.er1 >conftest.err
2627  rm -f conftest.er1
2628  cat conftest.err >&5
2629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630  (exit $ac_status); } &&
2631         { ac_try='test -z "$ac_c_werror_flag"
2632                         || test ! -s conftest.err'
2633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634  (eval $ac_try) 2>&5
2635  ac_status=$?
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); }; } &&
2638         { ac_try='test -s conftest.$ac_objext'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; }; then
2644  for ac_declaration in \
2645   '' \
2646   'extern "C" void std::exit (int) throw (); using std::exit;' \
2647   'extern "C" void std::exit (int); using std::exit;' \
2648   'extern "C" void exit (int) throw ();' \
2649   'extern "C" void exit (int);' \
2650   'void exit (int);'
2651do
2652  cat >conftest.$ac_ext <<_ACEOF
2653/* confdefs.h.  */
2654_ACEOF
2655cat confdefs.h >>conftest.$ac_ext
2656cat >>conftest.$ac_ext <<_ACEOF
2657/* end confdefs.h.  */
2658$ac_declaration
2659#include <stdlib.h>
2660int
2661main ()
2662{
2663exit (42);
2664  ;
2665  return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext
2669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670  (eval $ac_compile) 2>conftest.er1
2671  ac_status=$?
2672  grep -v '^ *+' conftest.er1 >conftest.err
2673  rm -f conftest.er1
2674  cat conftest.err >&5
2675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); } &&
2677         { ac_try='test -z "$ac_c_werror_flag"
2678                         || test ! -s conftest.err'
2679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680  (eval $ac_try) 2>&5
2681  ac_status=$?
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); }; } &&
2684         { ac_try='test -s conftest.$ac_objext'
2685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686  (eval $ac_try) 2>&5
2687  ac_status=$?
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); }; }; then
2690  :
2691else
2692  echo "$as_me: failed program was:" >&5
2693sed 's/^/| /' conftest.$ac_ext >&5
2694
2695continue
2696fi
2697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2698  cat >conftest.$ac_ext <<_ACEOF
2699/* confdefs.h.  */
2700_ACEOF
2701cat confdefs.h >>conftest.$ac_ext
2702cat >>conftest.$ac_ext <<_ACEOF
2703/* end confdefs.h.  */
2704$ac_declaration
2705int
2706main ()
2707{
2708exit (42);
2709  ;
2710  return 0;
2711}
2712_ACEOF
2713rm -f conftest.$ac_objext
2714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2715  (eval $ac_compile) 2>conftest.er1
2716  ac_status=$?
2717  grep -v '^ *+' conftest.er1 >conftest.err
2718  rm -f conftest.er1
2719  cat conftest.err >&5
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); } &&
2722         { ac_try='test -z "$ac_c_werror_flag"
2723                         || test ! -s conftest.err'
2724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725  (eval $ac_try) 2>&5
2726  ac_status=$?
2727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728  (exit $ac_status); }; } &&
2729         { ac_try='test -s conftest.$ac_objext'
2730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731  (eval $ac_try) 2>&5
2732  ac_status=$?
2733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734  (exit $ac_status); }; }; then
2735  break
2736else
2737  echo "$as_me: failed program was:" >&5
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
2740fi
2741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742done
2743rm -f conftest*
2744if test -n "$ac_declaration"; then
2745  echo '#ifdef __cplusplus' >>confdefs.h
2746  echo $ac_declaration      >>confdefs.h
2747  echo '#endif'             >>confdefs.h
2748fi
2749
2750else
2751  echo "$as_me: failed program was:" >&5
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754fi
2755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756ac_ext=c
2757ac_cpp='$CPP $CPPFLAGS'
2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
2762if test -z "$CC" ; then
2763  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2764echo "$as_me: error: Failed to find a C compiler!" >&2;}
2765   { (exit 1); exit 1; }; }
2766fi
2767# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2768case "$CC" in
2769  cl* | */cl* | CL* | */CL* )
2770    if test "$ac_cv_prog_cc_g" = yes ; then
2771      ac_cv_prog_cc_g=no
2772      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2773echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2774    fi ;;
2775esac
2776CFLAGS="$save_cflags"
2777
2778# Check if a project specific CFLAGS variable has been set
2779if test x$COIN_PRJCT != x; then
2780  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2781  if test x$coin_tmp = xset; then
2782    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2783  fi
2784fi
2785
2786if test x"$CFLAGS" = x; then
2787
2788  coin_add_cflags=
2789  coin_opt_cflags=
2790  coin_dbg_cflags=
2791  coin_warn_cflags=
2792
2793  if test "$GCC" = "yes"; then
2794    case "$CC" in
2795      icc* | */icc*)
2796        ;;
2797      *)
2798        coin_opt_cflags="-O3"
2799        coin_add_cflags="-pipe"
2800        coin_dbg_cflags="-g"
2801        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2802        case $build in
2803          *-darwin*)
2804            ;;
2805          *)
2806            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2807            ;;
2808        esac
2809        case $enable_doscompile in
2810          mingw)
2811            CFLAGS="-mno-cygwin"
2812            cat >conftest.$ac_ext <<_ACEOF
2813/* confdefs.h.  */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h.  */
2818
2819int
2820main ()
2821{
2822int i=0; i++;
2823  ;
2824  return 0;
2825}
2826_ACEOF
2827rm -f conftest.$ac_objext conftest$ac_exeext
2828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2829  (eval $ac_link) 2>conftest.er1
2830  ac_status=$?
2831  grep -v '^ *+' conftest.er1 >conftest.err
2832  rm -f conftest.er1
2833  cat conftest.err >&5
2834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835  (exit $ac_status); } &&
2836         { ac_try='test -z "$ac_c_werror_flag"
2837                         || test ! -s conftest.err'
2838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839  (eval $ac_try) 2>&5
2840  ac_status=$?
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); }; } &&
2843         { ac_try='test -s conftest$ac_exeext'
2844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845  (eval $ac_try) 2>&5
2846  ac_status=$?
2847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848  (exit $ac_status); }; }; then
2849  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2850else
2851  echo "$as_me: failed program was:" >&5
2852sed 's/^/| /' conftest.$ac_ext >&5
2853
2854fi
2855rm -f conftest.err conftest.$ac_objext \
2856      conftest$ac_exeext conftest.$ac_ext
2857            CFLAGS=
2858          ;;
2859        esac
2860    esac
2861  fi
2862  if test -z "$coin_opt_cflags"; then
2863    case $build in
2864      *-cygwin* | *-mingw*)
2865        case "$CC" in
2866          cl* | */cl* | CL* | */CL*)
2867            coin_opt_cflags='-MT -O2'
2868            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2869            coin_dbg_cflags='-MTd'
2870            ;;
2871          icl* | */icl* | ICL* | */ICL*)
2872            coin_opt_cflags='-MT -Ox'
2873            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2874            coin_dbg_cflags='-MTd -debug'
2875            ;;
2876        esac
2877        ;;
2878      *-linux-*)
2879        case "$CC" in
2880          icc* | */icc*)
2881            coin_opt_cflags="-O3 -ip -mp1"
2882            coin_add_cflags=""
2883            coin_dbg_cflags="-g"
2884            # Check if -i_dynamic is necessary (for new glibc library)
2885            CFLAGS=
2886            cat >conftest.$ac_ext <<_ACEOF
2887/* confdefs.h.  */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h.  */
2892
2893int
2894main ()
2895{
2896int i=0; i++;
2897  ;
2898  return 0;
2899}
2900_ACEOF
2901rm -f conftest.$ac_objext conftest$ac_exeext
2902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2903  (eval $ac_link) 2>conftest.er1
2904  ac_status=$?
2905  grep -v '^ *+' conftest.er1 >conftest.err
2906  rm -f conftest.er1
2907  cat conftest.err >&5
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); } &&
2910         { ac_try='test -z "$ac_c_werror_flag"
2911                         || test ! -s conftest.err'
2912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913  (eval $ac_try) 2>&5
2914  ac_status=$?
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); }; } &&
2917         { ac_try='test -s conftest$ac_exeext'
2918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919  (eval $ac_try) 2>&5
2920  ac_status=$?
2921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922  (exit $ac_status); }; }; then
2923  :
2924else
2925  echo "$as_me: failed program was:" >&5
2926sed 's/^/| /' conftest.$ac_ext >&5
2927
2928coin_add_cflags="-i_dynamic $coin_add_cflags"
2929fi
2930rm -f conftest.err conftest.$ac_objext \
2931      conftest$ac_exeext conftest.$ac_ext
2932            ;;
2933          pgcc* | */pgcc*)
2934            coin_opt_cflags="-fast"
2935            coin_add_cflags="-Kieee -pc 64"
2936            coin_dbg_cflags="-g"
2937            ;;
2938        esac
2939        ;;
2940      *-ibm-*)
2941        case "$CC" in
2942          xlc* | */xlc* | mpxlc* | */mpxlc*)
2943            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2944            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2945            coin_dbg_cflags="-g"
2946          ;;
2947        esac
2948        ;;
2949      *-hp-*)
2950        coin_opt_cflags="-O"
2951        coin_add_cflags="-Ae"
2952        coin_dbg_cflags="-g"
2953        ;;
2954      *-*-solaris*)
2955        coin_opt_cflags="-xO4"
2956        coin_dbg_cflags="-g"
2957        ;;
2958      *-sgi-*)
2959        coin_opt_cflags="-O -OPT:Olimit=0"
2960        coin_dbg_cflags="-g"
2961        ;;
2962    esac
2963  fi
2964
2965  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2966    coin_dbg_cflags="-g"
2967  fi
2968
2969  if test -z "$coin_opt_cflags"; then
2970    # Try if -O option works if nothing else is set
2971    CFLAGS="-O"
2972    cat >conftest.$ac_ext <<_ACEOF
2973/* confdefs.h.  */
2974_ACEOF
2975cat confdefs.h >>conftest.$ac_ext
2976cat >>conftest.$ac_ext <<_ACEOF
2977/* end confdefs.h.  */
2978
2979int
2980main ()
2981{
2982int i=0; i++;
2983  ;
2984  return 0;
2985}
2986_ACEOF
2987rm -f conftest.$ac_objext conftest$ac_exeext
2988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2989  (eval $ac_link) 2>conftest.er1
2990  ac_status=$?
2991  grep -v '^ *+' conftest.er1 >conftest.err
2992  rm -f conftest.er1
2993  cat conftest.err >&5
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); } &&
2996         { ac_try='test -z "$ac_c_werror_flag"
2997                         || test ! -s conftest.err'
2998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999  (eval $ac_try) 2>&5
3000  ac_status=$?
3001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002  (exit $ac_status); }; } &&
3003         { ac_try='test -s conftest$ac_exeext'
3004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005  (eval $ac_try) 2>&5
3006  ac_status=$?
3007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008  (exit $ac_status); }; }; then
3009  coin_opt_cflags="-O"
3010else
3011  echo "$as_me: failed program was:" >&5
3012sed 's/^/| /' conftest.$ac_ext >&5
3013
3014fi
3015rm -f conftest.err conftest.$ac_objext \
3016      conftest$ac_exeext conftest.$ac_ext
3017  fi
3018
3019  # if PM doesn't want the warning messages, take them out
3020  if test x"$coin_skip_warn_cflags" = xyes; then
3021    coin_warn_cflags=
3022  fi
3023
3024  if test x${DBG_CFLAGS+set} != xset; then
3025    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3026  fi
3027  if test x${OPT_CFLAGS+set} != xset; then
3028    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3029  fi
3030
3031  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3032  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3033
3034  if test "$coin_debug_compile" = "true"; then
3035    CFLAGS="$DBG_CFLAGS"
3036  else
3037    CFLAGS="$OPT_CFLAGS"
3038  fi
3039else
3040  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3041  if test x${DBG_CFLAGS+set} != xset; then
3042    DBG_CFLAGS="$CFLAGS"
3043  fi
3044  if test x${OPT_CFLAGS+set} != xset; then
3045    OPT_CFLAGS="$CFLAGS"
3046  fi
3047fi
3048
3049# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3050
3051case "$CFLAGS" in
3052  *-mno-cygwin*)
3053    if test x${CPPFLAGS+set} != xset ; then
3054      CPPFLAGS="-mno-cygwin"
3055    else
3056      case "$CPPFLAGS" in
3057        *-mno-cygwin*)
3058          ;;
3059        *)
3060          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3061          ;;
3062      esac
3063    fi ;;
3064esac
3065
3066# Try if CFLAGS works
3067save_CFLAGS="$CFLAGS"
3068cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h.  */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h.  */
3074
3075int
3076main ()
3077{
3078int i=0; i++;
3079  ;
3080  return 0;
3081}
3082_ACEOF
3083rm -f conftest.$ac_objext conftest$ac_exeext
3084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3085  (eval $ac_link) 2>conftest.er1
3086  ac_status=$?
3087  grep -v '^ *+' conftest.er1 >conftest.err
3088  rm -f conftest.er1
3089  cat conftest.err >&5
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); } &&
3092         { ac_try='test -z "$ac_c_werror_flag"
3093                         || test ! -s conftest.err'
3094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095  (eval $ac_try) 2>&5
3096  ac_status=$?
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); }; } &&
3099         { ac_try='test -s conftest$ac_exeext'
3100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101  (eval $ac_try) 2>&5
3102  ac_status=$?
3103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104  (exit $ac_status); }; }; then
3105  :
3106else
3107  echo "$as_me: failed program was:" >&5
3108sed 's/^/| /' conftest.$ac_ext >&5
3109
3110CFLAGS=
3111fi
3112rm -f conftest.err conftest.$ac_objext \
3113      conftest$ac_exeext conftest.$ac_ext
3114if test -z "$CFLAGS"; then
3115  { 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
3116echo "$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;}
3117  CFLAGS='-O'
3118  cat >conftest.$ac_ext <<_ACEOF
3119/* confdefs.h.  */
3120_ACEOF
3121cat confdefs.h >>conftest.$ac_ext
3122cat >>conftest.$ac_ext <<_ACEOF
3123/* end confdefs.h.  */
3124
3125int
3126main ()
3127{
3128int i=0; i++;
3129  ;
3130  return 0;
3131}
3132_ACEOF
3133rm -f conftest.$ac_objext conftest$ac_exeext
3134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3135  (eval $ac_link) 2>conftest.er1
3136  ac_status=$?
3137  grep -v '^ *+' conftest.er1 >conftest.err
3138  rm -f conftest.er1
3139  cat conftest.err >&5
3140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); } &&
3142         { ac_try='test -z "$ac_c_werror_flag"
3143                         || test ! -s conftest.err'
3144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145  (eval $ac_try) 2>&5
3146  ac_status=$?
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); }; } &&
3149         { ac_try='test -s conftest$ac_exeext'
3150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151  (eval $ac_try) 2>&5
3152  ac_status=$?
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); }; }; then
3155  :
3156else
3157  echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160CFLAGS=
3161fi
3162rm -f conftest.err conftest.$ac_objext \
3163      conftest$ac_exeext conftest.$ac_ext
3164  if test -z "$CFLAGS"; then
3165    { 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
3166echo "$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;}
3167  fi
3168fi
3169
3170{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3171echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3172
3173
3174if test x"$MPICC" = x; then :; else
3175  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3176echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3177  CC="$MPICC"
3178fi
3179
3180# Correct ADDLIBS initialization if we are using the MS compiler
3181case "$CC" in
3182  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3183    ADDLIBS=
3184    case $build in
3185  *-mingw*)
3186    if test "${LD+set}" = set; then :; else
3187      LD=link
3188    fi
3189    ;;
3190 esac
3191 case $enable_doscompile in
3192   msvc)
3193     if test "x${LD+set}" = xset; then :; else
3194       LD=link
3195     fi
3196     ;;
3197 esac
3198
3199    ;;
3200esac
3201
3202ac_ext=c
3203ac_cpp='$CPP $CPPFLAGS'
3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207
3208
3209case $build in
3210  *-cygwin* | *-mingw*)
3211     if test "$enable_doscompile" = msvc ; then
3212       coin_f77_comps="ifort fl32 compile_f2c"
3213     else
3214       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3215     fi ;;
3216  *-*-solaris*)
3217     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3218  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3219 esac
3220
3221
3222
3223
3224
3225
3226ac_ext=f
3227ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3228ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3230
3231
3232
3233
3234
3235
3236coin_has_f77=yes
3237
3238save_fflags="$FFLAGS"
3239
3240# We delete the cached value, since the test might not have been
3241# performed with our choice of compilers earlier
3242$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3243
3244# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3245# coin_f77_comps to see if there's a program that matches one of the names.
3246# If there's no such program, F77 = unavailable. If we match the name,
3247# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3248# compiler.
3249# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3250
3251
3252{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3253echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3254for ac_prog in $coin_f77_comps
3255do
3256  # Extract the first word of "$ac_prog", so it can be a program name with args.
3257set dummy $ac_prog; ac_word=$2
3258echo "$as_me:$LINENO: checking for $ac_word" >&5
3259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260if test "${ac_cv_prog_F77+set}" = set; then
3261  echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
3263  if test -n "$F77"; then
3264  ac_cv_prog_F77="$F77" # Let the user override the test.
3265else
3266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267for as_dir in $PATH
3268do
3269  IFS=$as_save_IFS
3270  test -z "$as_dir" && as_dir=.
3271  for ac_exec_ext in '' $ac_executable_extensions; do
3272  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273    ac_cv_prog_F77="$ac_prog"
3274    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275    break 2
3276  fi
3277done
3278done
3279
3280fi
3281fi
3282F77=$ac_cv_prog_F77
3283if test -n "$F77"; then
3284  echo "$as_me:$LINENO: result: $F77" >&5
3285echo "${ECHO_T}$F77" >&6
3286else
3287  echo "$as_me:$LINENO: result: no" >&5
3288echo "${ECHO_T}no" >&6
3289fi
3290
3291  test -n "$F77" && break
3292done
3293test -n "$F77" || F77="unavailable"
3294
3295
3296if test "$F77" != "unavailable" ; then
3297  ac_ext=f
3298ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3299ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3301if test -n "$ac_tool_prefix"; then
3302  for ac_prog in $coin_f77_comps
3303  do
3304    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3305set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3306echo "$as_me:$LINENO: checking for $ac_word" >&5
3307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308if test "${ac_cv_prog_F77+set}" = set; then
3309  echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311  if test -n "$F77"; then
3312  ac_cv_prog_F77="$F77" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317  IFS=$as_save_IFS
3318  test -z "$as_dir" && as_dir=.
3319  for ac_exec_ext in '' $ac_executable_extensions; do
3320  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323    break 2
3324  fi
3325done
3326done
3327
3328fi
3329fi
3330F77=$ac_cv_prog_F77
3331if test -n "$F77"; then
3332  echo "$as_me:$LINENO: result: $F77" >&5
3333echo "${ECHO_T}$F77" >&6
3334else
3335  echo "$as_me:$LINENO: result: no" >&5
3336echo "${ECHO_T}no" >&6
3337fi
3338
3339    test -n "$F77" && break
3340  done
3341fi
3342if test -z "$F77"; then
3343  ac_ct_F77=$F77
3344  for ac_prog in $coin_f77_comps
3345do
3346  # Extract the first word of "$ac_prog", so it can be a program name with args.
3347set dummy $ac_prog; ac_word=$2
3348echo "$as_me:$LINENO: checking for $ac_word" >&5
3349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3351  echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353  if test -n "$ac_ct_F77"; then
3354  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3355else
3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359  IFS=$as_save_IFS
3360  test -z "$as_dir" && as_dir=.
3361  for ac_exec_ext in '' $ac_executable_extensions; do
3362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363    ac_cv_prog_ac_ct_F77="$ac_prog"
3364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365    break 2
3366  fi
3367done
3368done
3369
3370fi
3371fi
3372ac_ct_F77=$ac_cv_prog_ac_ct_F77
3373if test -n "$ac_ct_F77"; then
3374  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3375echo "${ECHO_T}$ac_ct_F77" >&6
3376else
3377  echo "$as_me:$LINENO: result: no" >&5
3378echo "${ECHO_T}no" >&6
3379fi
3380
3381  test -n "$ac_ct_F77" && break
3382done
3383
3384  F77=$ac_ct_F77
3385fi
3386
3387
3388# Provide some information about the compiler.
3389echo "$as_me:3389:" \
3390     "checking for Fortran 77 compiler version" >&5
3391ac_compiler=`set X $ac_compile; echo $2`
3392{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3393  (eval $ac_compiler --version </dev/null >&5) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }
3397{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3398  (eval $ac_compiler -v </dev/null >&5) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }
3402{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3403  (eval $ac_compiler -V </dev/null >&5) 2>&5
3404  ac_status=$?
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); }
3407rm -f a.out
3408
3409# If we don't use `.F' as extension, the preprocessor is not run on the
3410# input file.  (Note that this only needs to work for GNU compilers.)
3411ac_save_ext=$ac_ext
3412ac_ext=F
3413echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3414echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3415if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3416  echo $ECHO_N "(cached) $ECHO_C" >&6
3417else
3418  cat >conftest.$ac_ext <<_ACEOF
3419      program main
3420#ifndef __GNUC__
3421       choke me
3422#endif
3423
3424      end
3425_ACEOF
3426rm -f conftest.$ac_objext
3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428  (eval $ac_compile) 2>conftest.er1
3429  ac_status=$?
3430  grep -v '^ *+' conftest.er1 >conftest.err
3431  rm -f conftest.er1
3432  cat conftest.err >&5
3433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434  (exit $ac_status); } &&
3435         { ac_try='test -z "$ac_f77_werror_flag"
3436                         || test ! -s conftest.err'
3437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438  (eval $ac_try) 2>&5
3439  ac_status=$?
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); }; } &&
3442         { ac_try='test -s conftest.$ac_objext'
3443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444  (eval $ac_try) 2>&5
3445  ac_status=$?
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); }; }; then
3448  ac_compiler_gnu=yes
3449else
3450  echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453ac_compiler_gnu=no
3454fi
3455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3457
3458fi
3459echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3460echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3461ac_ext=$ac_save_ext
3462ac_test_FFLAGS=${FFLAGS+set}
3463ac_save_FFLAGS=$FFLAGS
3464FFLAGS=
3465echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3466echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3467if test "${ac_cv_prog_f77_g+set}" = set; then
3468  echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470  FFLAGS=-g
3471cat >conftest.$ac_ext <<_ACEOF
3472      program main
3473
3474      end
3475_ACEOF
3476rm -f conftest.$ac_objext
3477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478  (eval $ac_compile) 2>conftest.er1
3479  ac_status=$?
3480  grep -v '^ *+' conftest.er1 >conftest.err
3481  rm -f conftest.er1
3482  cat conftest.err >&5
3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); } &&
3485         { ac_try='test -z "$ac_f77_werror_flag"
3486                         || test ! -s conftest.err'
3487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488  (eval $ac_try) 2>&5
3489  ac_status=$?
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); }; } &&
3492         { ac_try='test -s conftest.$ac_objext'
3493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494  (eval $ac_try) 2>&5
3495  ac_status=$?
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); }; }; then
3498  ac_cv_prog_f77_g=yes
3499else
3500  echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503ac_cv_prog_f77_g=no
3504fi
3505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506
3507fi
3508echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3509echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3510if test "$ac_test_FFLAGS" = set; then
3511  FFLAGS=$ac_save_FFLAGS
3512elif test $ac_cv_prog_f77_g = yes; then
3513  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3514    FFLAGS="-g -O2"
3515  else
3516    FFLAGS="-g"
3517  fi
3518else
3519  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3520    FFLAGS="-O2"
3521  else
3522    FFLAGS=
3523  fi
3524fi
3525
3526G77=`test $ac_compiler_gnu = yes && echo yes`
3527ac_ext=f
3528ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3529ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3531
3532else
3533  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3534echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3535fi
3536
3537FFLAGS="$save_fflags"
3538
3539# Check if a project specific FFLAGS variable has been set
3540if test x$COIN_PRJCT != x; then
3541  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3542  if test x$coin_tmp = xset; then
3543    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3544  fi
3545fi
3546
3547if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3548
3549  coin_add_fflags=
3550  coin_opt_fflags=
3551  coin_dbg_fflags=
3552  coin_warn_fflags=
3553
3554  if test "$G77" = "yes"; then
3555    coin_opt_fflags="-O3"
3556    coin_add_fflags="-pipe"
3557    coin_dbg_fflags="-g"
3558    case $enable_doscompile in
3559      mingw)
3560        FFLAGS="-mno-cygwin"
3561        cat >conftest.$ac_ext <<_ACEOF
3562      program main
3563      write(*,*) 'Hello world'
3564      end
3565_ACEOF
3566rm -f conftest.$ac_objext conftest$ac_exeext
3567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3568  (eval $ac_link) 2>conftest.er1
3569  ac_status=$?
3570  grep -v '^ *+' conftest.er1 >conftest.err
3571  rm -f conftest.er1
3572  cat conftest.err >&5
3573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574  (exit $ac_status); } &&
3575         { ac_try='test -z "$ac_f77_werror_flag"
3576                         || test ! -s conftest.err'
3577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578  (eval $ac_try) 2>&5
3579  ac_status=$?
3580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581  (exit $ac_status); }; } &&
3582         { ac_try='test -s conftest$ac_exeext'
3583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584  (eval $ac_try) 2>&5
3585  ac_status=$?
3586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); }; }; then
3588  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3589else
3590  echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593fi
3594rm -f conftest.err conftest.$ac_objext \
3595      conftest$ac_exeext conftest.$ac_ext
3596        FFLAGS=
3597      ;;
3598    esac
3599  else
3600    case $build in
3601      *-cygwin* | *-mingw*)
3602        case $F77 in
3603          ifort* | */ifort* | IFORT* | */IFORT* )
3604            coin_opt_fflags='-MT -O3'
3605            coin_add_fflags='-fpp -nologo'
3606            coin_dbg_fflags='-MTd -debug'
3607          ;;
3608          compile_f2c*)
3609            coin_opt_fflags='-MT -O2'
3610            coin_add_fflags='-nologo -wd4996'
3611            coin_dbg_fflags='-MTd'
3612          ;;
3613        esac
3614        ;;
3615      *-linux-*)
3616        case $F77 in
3617          ifc* | */ifc* | ifort* | */ifort*)
3618            coin_opt_fflags="-O3 -ip"
3619            coin_add_fflags="-cm -w90 -w95"
3620            coin_dbg_fflags="-g -CA -CB -CS"
3621            # Check if -i_dynamic is necessary (for new glibc library)
3622            FFLAGS=
3623            cat >conftest.$ac_ext <<_ACEOF
3624      program main
3625      write(*,*) 'Hello world'
3626      end
3627_ACEOF
3628rm -f conftest.$ac_objext conftest$ac_exeext
3629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3630  (eval $ac_link) 2>conftest.er1
3631  ac_status=$?
3632  grep -v '^ *+' conftest.er1 >conftest.err
3633  rm -f conftest.er1
3634  cat conftest.err >&5
3635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636  (exit $ac_status); } &&
3637         { ac_try='test -z "$ac_f77_werror_flag"
3638                         || test ! -s conftest.err'
3639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640  (eval $ac_try) 2>&5
3641  ac_status=$?
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); }; } &&
3644         { ac_try='test -s conftest$ac_exeext'
3645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646  (eval $ac_try) 2>&5
3647  ac_status=$?
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); }; }; then
3650  :
3651else
3652  echo "$as_me: failed program was:" >&5
3653sed 's/^/| /' conftest.$ac_ext >&5
3654
3655coin_add_fflags="-i_dynamic $coin_add_fflags"
3656fi
3657rm -f conftest.err conftest.$ac_objext \
3658      conftest$ac_exeext conftest.$ac_ext
3659            ;;
3660          pgf77* | */pgf77* | pgf90* | */pgf90*)
3661            coin_opt_fflags="-fast"
3662            coin_add_fflags="-Kieee -pc 64"
3663            coin_dbg_fflags="-g"
3664          ;;
3665        esac
3666        ;;
3667      *-ibm-*)
3668        case "$F77" in
3669          xlf* | */xlf* | mpxlf* | */mpxlf* )
3670            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3671            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3672            coin_dbg_fflags="-g -C"
3673            ;;
3674        esac
3675        ;;
3676      *-hp-*)
3677        coin_opt_fflags="+O3"
3678        coin_add_fflags="+U77"
3679        coin_dbg_fflags="-C -g"
3680        ;;
3681      *-*-solaris*)
3682        coin_opt_fflags="-O4"
3683        coin_dbg_fflags="-g"
3684        ;;
3685      *-sgi-*)
3686        coin_opt_fflags="-O5 -OPT:Olimit=0"
3687        coin_dbg_fflags="-g"
3688        ;;
3689    esac
3690  fi
3691
3692  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3693    coin_dbg_fflags="-g"
3694  fi
3695
3696  if test -z "$coin_opt_fflags"; then
3697    # Try if -O option works if nothing else is set
3698    FFLAGS=-O
3699    cat >conftest.$ac_ext <<_ACEOF
3700      program main
3701      integer i
3702      end
3703_ACEOF
3704rm -f conftest.$ac_objext conftest$ac_exeext
3705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706  (eval $ac_link) 2>conftest.er1
3707  ac_status=$?
3708  grep -v '^ *+' conftest.er1 >conftest.err
3709  rm -f conftest.er1
3710  cat conftest.err >&5
3711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712  (exit $ac_status); } &&
3713         { ac_try='test -z "$ac_f77_werror_flag"
3714                         || test ! -s conftest.err'
3715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716  (eval $ac_try) 2>&5
3717  ac_status=$?
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); }; } &&
3720         { ac_try='test -s conftest$ac_exeext'
3721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722  (eval $ac_try) 2>&5
3723  ac_status=$?
3724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725  (exit $ac_status); }; }; then
3726  coin_opt_fflags="-O"
3727else
3728  echo "$as_me: failed program was:" >&5
3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731fi
3732rm -f conftest.err conftest.$ac_objext \
3733      conftest$ac_exeext conftest.$ac_ext
3734  fi
3735
3736  # if PM doesn't want the warning messages, take them out
3737  if test x"$coin_skip_warn_fflags" = xyes; then
3738    coin_warn_fflags=
3739  fi
3740
3741  if test x${DBG_FFLAGS+set} != xset; then
3742    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3743  fi
3744  if test x${OPT_FFLAGS+set} != xset; then
3745    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3746  fi
3747
3748  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3749  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3750
3751  if test "$coin_debug_compile" = "true"; then
3752    FFLAGS="$DBG_FFLAGS"
3753  else
3754    FFLAGS="$OPT_FFLAGS"
3755  fi
3756else
3757  FFLAGS="$FFLAGS $ADD_FFLAGS"
3758  if test x${DBG_FFLAGS+set} != xset; then
3759    DBG_FFLAGS="$FFLAGS"
3760  fi
3761  if test x${OPT_FFLAGS+set} != xset; then
3762    OPT_FFLAGS="$FFLAGS"
3763  fi
3764fi
3765
3766# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3767case "$FFLAGS" in
3768  *-mno-cygwin*)
3769    if test x${CPPFLAGS+set} != xset ; then
3770      CPPFLAGS="-mno-cygwin"
3771    else
3772      case "$CPPFLAGS" in
3773        *-mno-cygwin*)
3774          ;;
3775        *)
3776          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3777          ;;
3778      esac
3779    fi ;;
3780esac
3781
3782# Try if FFLAGS works
3783if test "$F77" != "unavailable" ; then
3784  cat >conftest.$ac_ext <<_ACEOF
3785      program main
3786      integer i
3787      end
3788_ACEOF
3789rm -f conftest.$ac_objext conftest$ac_exeext
3790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791  (eval $ac_link) 2>conftest.er1
3792  ac_status=$?
3793  grep -v '^ *+' conftest.er1 >conftest.err
3794  rm -f conftest.er1
3795  cat conftest.err >&5
3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797  (exit $ac_status); } &&
3798         { ac_try='test -z "$ac_f77_werror_flag"
3799                         || test ! -s conftest.err'
3800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801  (eval $ac_try) 2>&5
3802  ac_status=$?
3803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804  (exit $ac_status); }; } &&
3805         { ac_try='test -s conftest$ac_exeext'
3806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807  (eval $ac_try) 2>&5
3808  ac_status=$?
3809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810  (exit $ac_status); }; }; then
3811  :
3812else
3813  echo "$as_me: failed program was:" >&5
3814sed 's/^/| /' conftest.$ac_ext >&5
3815
3816FFLAGS=
3817fi
3818rm -f conftest.err conftest.$ac_objext \
3819      conftest$ac_exeext conftest.$ac_ext
3820  if test -z "$FFLAGS"; then
3821    { 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
3822echo "$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;}
3823    FFLAGS='-O'
3824    cat >conftest.$ac_ext <<_ACEOF
3825      program main
3826      integer i
3827      end
3828_ACEOF
3829rm -f conftest.$ac_objext conftest$ac_exeext
3830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831  (eval $ac_link) 2>conftest.er1
3832  ac_status=$?
3833  grep -v '^ *+' conftest.er1 >conftest.err
3834  rm -f conftest.er1
3835  cat conftest.err >&5
3836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); } &&
3838         { ac_try='test -z "$ac_f77_werror_flag"
3839                         || test ! -s conftest.err'
3840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841  (eval $ac_try) 2>&5
3842  ac_status=$?
3843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844  (exit $ac_status); }; } &&
3845         { ac_try='test -s conftest$ac_exeext'
3846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847  (eval $ac_try) 2>&5
3848  ac_status=$?
3849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850  (exit $ac_status); }; }; then
3851  :
3852else
3853  echo "$as_me: failed program was:" >&5
3854sed 's/^/| /' conftest.$ac_ext >&5
3855
3856FFLAGS=
3857fi
3858rm -f conftest.err conftest.$ac_objext \
3859      conftest$ac_exeext conftest.$ac_ext
3860    if test -z "$FFLAGS"; then
3861      { 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
3862echo "$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;}
3863    fi
3864  fi
3865fi
3866
3867{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3868echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3869
3870
3871if test x"$MPIF77" = x; then :; else
3872  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3873echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3874  F77="$MPIF77"
3875fi
3876
3877case "$F77" in
3878  ifort* | */ifort* | IFORT* | */IFORT*)
3879    case $build in
3880  *-mingw*)
3881    if test "${LD+set}" = set; then :; else
3882      LD=link
3883    fi
3884    ;;
3885 esac
3886 case $enable_doscompile in
3887   msvc)
3888     if test "x${LD+set}" = xset; then :; else
3889       LD=link
3890     fi
3891     ;;
3892 esac
3893
3894    ;;
3895esac
3896
3897ac_ext=c
3898ac_cpp='$CPP $CPPFLAGS'
3899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902
3903
3904
3905# Get the linker flags (FLIBS) that are required for linking against this blas library
3906ac_ext=f
3907ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3908ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3910echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3911echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3912if test "${ac_cv_prog_f77_v+set}" = set; then
3913  echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915  cat >conftest.$ac_ext <<_ACEOF
3916      program main
3917
3918      end
3919_ACEOF
3920rm -f conftest.$ac_objext
3921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922  (eval $ac_compile) 2>conftest.er1
3923  ac_status=$?
3924  grep -v '^ *+' conftest.er1 >conftest.err
3925  rm -f conftest.er1
3926  cat conftest.err >&5
3927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928  (exit $ac_status); } &&
3929         { ac_try='test -z "$ac_f77_werror_flag"
3930                         || test ! -s conftest.err'
3931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932  (eval $ac_try) 2>&5
3933  ac_status=$?
3934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935  (exit $ac_status); }; } &&
3936         { ac_try='test -s conftest.$ac_objext'
3937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938  (eval $ac_try) 2>&5
3939  ac_status=$?
3940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941  (exit $ac_status); }; }; then
3942  ac_cv_prog_f77_v=
3943# Try some options frequently used verbose output
3944for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3945  cat >conftest.$ac_ext <<_ACEOF
3946      program main
3947
3948      end
3949_ACEOF
3950
3951# Compile and link our simple test program by passing a flag (argument
3952# 1 to this macro) to the Fortran compiler in order to get
3953# "verbose" output that we can then parse for the Fortran linker
3954# flags.
3955ac_save_FFLAGS=$FFLAGS
3956FFLAGS="$FFLAGS $ac_verb"
3957(eval echo $as_me:3957: \"$ac_link\") >&5
3958ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3959echo "$ac_f77_v_output" >&5
3960FFLAGS=$ac_save_FFLAGS
3961
3962rm -f conftest*
3963
3964# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3965# /foo, /bar, and /baz are search directories for the Fortran linker.
3966# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3967ac_f77_v_output="`echo $ac_f77_v_output |
3968        grep 'LPATH is:' |
3969        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3970
3971case $ac_f77_v_output in
3972  # If we are using xlf then replace all the commas with spaces.
3973  *xlfentry*)
3974    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3975
3976  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3977  # $LIBS confuse us, and the libraries appear later in the output anyway).
3978  *mGLOB_options_string*)
3979    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3980
3981  # If we are using Cray Fortran then delete quotes.
3982  # Use "\"" instead of '"' for font-lock-mode.
3983  # FIXME: a more general fix for quoted arguments with spaces?
3984  *cft90*)
3985    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3986esac
3987
3988
3989  # look for -l* and *.a constructs in the output
3990  for ac_arg in $ac_f77_v_output; do
3991     case $ac_arg in
3992        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3993          ac_cv_prog_f77_v=$ac_verb
3994          break 2 ;;
3995     esac
3996  done
3997done
3998if test -z "$ac_cv_prog_f77_v"; then
3999   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4000echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4001fi
4002else
4003  echo "$as_me: failed program was:" >&5
4004sed 's/^/| /' conftest.$ac_ext >&5
4005
4006{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4007echo "$as_me: WARNING: compilation failed" >&2;}
4008fi
4009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4010
4011fi
4012echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4013echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4014echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4015echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4016if test "${ac_cv_f77_libs+set}" = set; then
4017  echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019  if test "x$FLIBS" != "x"; then
4020  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4021else
4022
4023cat >conftest.$ac_ext <<_ACEOF
4024      program main
4025
4026      end
4027_ACEOF
4028
4029# Compile and link our simple test program by passing a flag (argument
4030# 1 to this macro) to the Fortran compiler in order to get
4031# "verbose" output that we can then parse for the Fortran linker
4032# flags.
4033ac_save_FFLAGS=$FFLAGS
4034FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4035(eval echo $as_me:4035: \"$ac_link\") >&5
4036ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4037echo "$ac_f77_v_output" >&5
4038FFLAGS=$ac_save_FFLAGS
4039
4040rm -f conftest*
4041
4042# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4043# /foo, /bar, and /baz are search directories for the Fortran linker.
4044# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4045ac_f77_v_output="`echo $ac_f77_v_output |
4046        grep 'LPATH is:' |
4047        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4048
4049case $ac_f77_v_output in
4050  # If we are using xlf then replace all the commas with spaces.
4051  *xlfentry*)
4052    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4053
4054  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4055  # $LIBS confuse us, and the libraries appear later in the output anyway).
4056  *mGLOB_options_string*)
4057    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4058
4059  # If we are using Cray Fortran then delete quotes.
4060  # Use "\"" instead of '"' for font-lock-mode.
4061  # FIXME: a more general fix for quoted arguments with spaces?
4062  *cft90*)
4063    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4064esac
4065
4066
4067
4068ac_cv_f77_libs=
4069
4070# Save positional arguments (if any)
4071ac_save_positional="$@"
4072
4073set X $ac_f77_v_output
4074while test $# != 1; do
4075  shift
4076  ac_arg=$1
4077  case $ac_arg in
4078        [\\/]*.a | ?:[\\/]*.a)
4079            ac_exists=false
4080  for ac_i in $ac_cv_f77_libs; do
4081    if test x"$ac_arg" = x"$ac_i"; then
4082      ac_exists=true
4083      break
4084    fi
4085  done
4086
4087  if test x"$ac_exists" = xtrue; then
4088  :
4089else
4090  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4091fi
4092
4093          ;;
4094        -bI:*)
4095            ac_exists=false
4096  for ac_i in $ac_cv_f77_libs; do
4097    if test x"$ac_arg" = x"$ac_i"; then
4098      ac_exists=true
4099      break
4100    fi
4101  done
4102
4103  if test x"$ac_exists" = xtrue; then
4104  :
4105else
4106  if test "$ac_compiler_gnu" = yes; then
4107  for ac_link_opt in $ac_arg; do
4108    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4109  done
4110else
4111  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4112fi
4113fi
4114
4115          ;;
4116          # Ignore these flags.
4117        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4118          ;;
4119        -lkernel32)
4120          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4121          ;;
4122        -[LRuY])
4123          # These flags, when seen by themselves, take an argument.
4124          # We remove the space between option and argument and re-iterate
4125          # unless we find an empty arg or a new option (starting with -)
4126          case $2 in
4127             "" | -*);;
4128             *)
4129                ac_arg="$ac_arg$2"
4130                shift; shift
4131                set X $ac_arg "$@"
4132                ;;
4133          esac
4134          ;;
4135        -YP,*)
4136          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4137              ac_exists=false
4138  for ac_i in $ac_cv_f77_libs; do
4139    if test x"$ac_j" = x"$ac_i"; then
4140      ac_exists=true
4141      break
4142    fi
4143  done
4144
4145  if test x"$ac_exists" = xtrue; then
4146  :
4147else
4148  ac_arg="$ac_arg $ac_j"
4149                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4150fi
4151
4152          done
4153          ;;
4154        -[lLR]*)
4155            ac_exists=false
4156  for ac_i in $ac_cv_f77_libs; do
4157    if test x"$ac_arg" = x"$ac_i"; then
4158      ac_exists=true
4159      break
4160    fi
4161  done
4162
4163  if test x"$ac_exists" = xtrue; then
4164  :
4165else
4166  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4167fi
4168
4169          ;;
4170          # Ignore everything else.
4171  esac
4172done
4173# restore positional arguments
4174set X $ac_save_positional; shift
4175
4176# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4177# then we insist that the "run path" must be an absolute path (i.e. it
4178# must begin with a "/").
4179case `(uname -sr) 2>/dev/null` in
4180   "SunOS 5"*)
4181      ac_ld_run_path=`echo $ac_f77_v_output |
4182                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4183      test "x$ac_ld_run_path" != x &&
4184        if test "$ac_compiler_gnu" = yes; then
4185  for ac_link_opt in $ac_ld_run_path; do
4186    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4187  done
4188else
4189  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4190fi
4191      ;;
4192esac
4193fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4194
4195fi
4196echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4197echo "${ECHO_T}$ac_cv_f77_libs" >&6
4198FLIBS="$ac_cv_f77_libs"
4199
4200
4201ac_ext=f
4202ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4203ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4205
4206ac_ext=f
4207ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4208ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4210
4211echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4212echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4213if test "${ac_cv_f77_dummy_main+set}" = set; then
4214  echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216  ac_f77_dm_save_LIBS=$LIBS
4217 LIBS="$LIBS $FLIBS"
4218 ac_fortran_dm_var=F77_DUMMY_MAIN
4219 ac_ext=c
4220ac_cpp='$CPP $CPPFLAGS'
4221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224
4225 # First, try linking without a dummy main:
4226 cat >conftest.$ac_ext <<_ACEOF
4227/* confdefs.h.  */
4228_ACEOF
4229cat confdefs.h >>conftest.$ac_ext
4230cat >>conftest.$ac_ext <<_ACEOF
4231/* end confdefs.h.  */
4232
4233#ifdef F77_DUMMY_MAIN
4234
4235#  ifdef __cplusplus
4236     extern "C"
4237#  endif
4238   int F77_DUMMY_MAIN() { return 1; }
4239
4240#endif
4241int
4242main ()
4243{
4244
4245  ;
4246  return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext conftest$ac_exeext
4250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251  (eval $ac_link) 2>conftest.er1
4252  ac_status=$?
4253  grep -v '^ *+' conftest.er1 >conftest.err
4254  rm -f conftest.er1
4255  cat conftest.err >&5
4256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257  (exit $ac_status); } &&
4258         { ac_try='test -z "$ac_c_werror_flag"
4259                         || test ! -s conftest.err'
4260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261  (eval $ac_try) 2>&5
4262  ac_status=$?
4263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264  (exit $ac_status); }; } &&
4265         { ac_try='test -s conftest$ac_exeext'
4266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267  (eval $ac_try) 2>&5
4268  ac_status=$?
4269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270  (exit $ac_status); }; }; then
4271  ac_cv_fortran_dummy_main=none
4272else
4273  echo "$as_me: failed program was:" >&5
4274sed 's/^/| /' conftest.$ac_ext >&5
4275
4276ac_cv_fortran_dummy_main=unknown
4277fi
4278rm -f conftest.err conftest.$ac_objext \
4279      conftest$ac_exeext conftest.$ac_ext
4280
4281 if test $ac_cv_fortran_dummy_main = unknown; then
4282   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4283     cat >conftest.$ac_ext <<_ACEOF
4284/* confdefs.h.  */
4285_ACEOF
4286cat confdefs.h >>conftest.$ac_ext
4287cat >>conftest.$ac_ext <<_ACEOF
4288/* end confdefs.h.  */
4289#define $ac_fortran_dm_var $ac_func
4290#ifdef F77_DUMMY_MAIN
4291
4292#  ifdef __cplusplus
4293     extern "C"
4294#  endif
4295   int F77_DUMMY_MAIN() { return 1; }
4296
4297#endif
4298int
4299main ()
4300{
4301
4302  ;
4303  return 0;
4304}
4305_ACEOF
4306rm -f conftest.$ac_objext conftest$ac_exeext
4307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4308  (eval $ac_link) 2>conftest.er1
4309  ac_status=$?
4310  grep -v '^ *+' conftest.er1 >conftest.err
4311  rm -f conftest.er1
4312  cat conftest.err >&5
4313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314  (exit $ac_status); } &&
4315         { ac_try='test -z "$ac_c_werror_flag"
4316                         || test ! -s conftest.err'
4317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318  (eval $ac_try) 2>&5
4319  ac_status=$?
4320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321  (exit $ac_status); }; } &&
4322         { ac_try='test -s conftest$ac_exeext'
4323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324  (eval $ac_try) 2>&5
4325  ac_status=$?
4326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327  (exit $ac_status); }; }; then
4328  ac_cv_fortran_dummy_main=$ac_func; break
4329else
4330  echo "$as_me: failed program was:" >&5
4331sed 's/^/| /' conftest.$ac_ext >&5
4332
4333fi
4334rm -f conftest.err conftest.$ac_objext \
4335      conftest$ac_exeext conftest.$ac_ext
4336   done
4337 fi
4338 ac_ext=f
4339ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4340ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4342 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4343 rm -f conftest*
4344 LIBS=$ac_f77_dm_save_LIBS
4345
4346fi
4347echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4348echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4349F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4350if test "$F77_DUMMY_MAIN" != unknown; then
4351  if test $F77_DUMMY_MAIN != none; then
4352
4353cat >>confdefs.h <<_ACEOF
4354#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4355_ACEOF
4356
4357  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4358
4359cat >>confdefs.h <<\_ACEOF
4360#define FC_DUMMY_MAIN_EQ_F77 1
4361_ACEOF
4362
4363  fi
4364fi
4365else
4366  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4367See \`config.log' for more details." >&5
4368echo "$as_me: error: linking to Fortran libraries from C fails
4369See \`config.log' for more details." >&2;}
4370   { (exit 1); exit 1; }; }
4371fi
4372
4373
4374ac_ext=f
4375ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4376ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4378
4379ac_ext=f
4380ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4381ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4383echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4384echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4385if test "${ac_cv_f77_mangling+set}" = set; then
4386  echo $ECHO_N "(cached) $ECHO_C" >&6
4387else
4388  cat >conftest.$ac_ext <<_ACEOF
4389      subroutine foobar()
4390      return
4391      end
4392      subroutine foo_bar()
4393      return
4394      end
4395_ACEOF
4396rm -f conftest.$ac_objext
4397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398  (eval $ac_compile) 2>conftest.er1
4399  ac_status=$?
4400  grep -v '^ *+' conftest.er1 >conftest.err
4401  rm -f conftest.er1
4402  cat conftest.err >&5
4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404  (exit $ac_status); } &&
4405         { ac_try='test -z "$ac_f77_werror_flag"
4406                         || test ! -s conftest.err'
4407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408  (eval $ac_try) 2>&5
4409  ac_status=$?
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); }; } &&
4412         { ac_try='test -s conftest.$ac_objext'
4413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414  (eval $ac_try) 2>&5
4415  ac_status=$?
4416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417  (exit $ac_status); }; }; then
4418  mv conftest.$ac_objext cfortran_test.$ac_objext
4419
4420  ac_save_LIBS=$LIBS
4421  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4422
4423  ac_ext=c
4424ac_cpp='$CPP $CPPFLAGS'
4425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428  ac_success=no
4429  for ac_foobar in foobar FOOBAR; do
4430    for ac_underscore in "" "_"; do
4431      ac_func="$ac_foobar$ac_underscore"
4432      cat >conftest.$ac_ext <<_ACEOF
4433/* confdefs.h.  */
4434_ACEOF
4435cat confdefs.h >>conftest.$ac_ext
4436cat >>conftest.$ac_ext <<_ACEOF
4437/* end confdefs.h.  */
4438
4439/* Override any gcc2 internal prototype to avoid an error.  */
4440#ifdef __cplusplus
4441extern "C"
4442#endif
4443/* We use char because int might match the return type of a gcc2
4444   builtin and then its argument prototype would still apply.  */
4445char $ac_func ();
4446#ifdef F77_DUMMY_MAIN
4447
4448#  ifdef __cplusplus
4449     extern "C"
4450#  endif
4451   int F77_DUMMY_MAIN() { return 1; }
4452
4453#endif
4454int
4455main ()
4456{
4457$ac_func ();
4458  ;
4459  return 0;
4460}
4461_ACEOF
4462rm -f conftest.$ac_objext conftest$ac_exeext
4463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4464  (eval $ac_link) 2>conftest.er1
4465  ac_status=$?
4466  grep -v '^ *+' conftest.er1 >conftest.err
4467  rm -f conftest.er1
4468  cat conftest.err >&5
4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470  (exit $ac_status); } &&
4471         { ac_try='test -z "$ac_c_werror_flag"
4472                         || test ! -s conftest.err'
4473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474  (eval $ac_try) 2>&5
4475  ac_status=$?
4476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477  (exit $ac_status); }; } &&
4478         { ac_try='test -s conftest$ac_exeext'
4479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480  (eval $ac_try) 2>&5
4481  ac_status=$?
4482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483  (exit $ac_status); }; }; then
4484  ac_success=yes; break 2
4485else
4486  echo "$as_me: failed program was:" >&5
4487sed 's/^/| /' conftest.$ac_ext >&5
4488
4489fi
4490rm -f conftest.err conftest.$ac_objext \
4491      conftest$ac_exeext conftest.$ac_ext
4492    done
4493  done
4494  ac_ext=f
4495ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4496ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4498
4499  if test "$ac_success" = "yes"; then
4500     case $ac_foobar in
4501        foobar)
4502           ac_case=lower
4503           ac_foo_bar=foo_bar
4504           ;;
4505        FOOBAR)
4506           ac_case=upper
4507           ac_foo_bar=FOO_BAR
4508           ;;
4509     esac
4510
4511     ac_ext=c
4512ac_cpp='$CPP $CPPFLAGS'
4513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515ac_compiler_gnu=$ac_cv_c_compiler_gnu
4516     ac_success_extra=no
4517     for ac_extra in "" "_"; do
4518        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4519        cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h.  */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h.  */
4525
4526/* Override any gcc2 internal prototype to avoid an error.  */
4527#ifdef __cplusplus
4528extern "C"
4529#endif
4530/* We use char because int might match the return type of a gcc2
4531   builtin and then its argument prototype would still apply.  */
4532char $ac_func ();
4533#ifdef F77_DUMMY_MAIN
4534
4535#  ifdef __cplusplus
4536     extern "C"
4537#  endif
4538   int F77_DUMMY_MAIN() { return 1; }
4539
4540#endif
4541int
4542main ()
4543{
4544$ac_func ();
4545  ;
4546  return 0;
4547}
4548_ACEOF
4549rm -f conftest.$ac_objext conftest$ac_exeext
4550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4551  (eval $ac_link) 2>conftest.er1
4552  ac_status=$?
4553  grep -v '^ *+' conftest.er1 >conftest.err
4554  rm -f conftest.er1
4555  cat conftest.err >&5
4556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557  (exit $ac_status); } &&
4558         { ac_try='test -z "$ac_c_werror_flag"
4559                         || test ! -s conftest.err'
4560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561  (eval $ac_try) 2>&5
4562  ac_status=$?
4563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564  (exit $ac_status); }; } &&
4565         { ac_try='test -s conftest$ac_exeext'
4566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567  (eval $ac_try) 2>&5
4568  ac_status=$?
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); }; }; then
4571  ac_success_extra=yes; break
4572else
4573  echo "$as_me: failed program was:" >&5
4574sed 's/^/| /' conftest.$ac_ext >&5
4575
4576fi
4577rm -f conftest.err conftest.$ac_objext \
4578      conftest$ac_exeext conftest.$ac_ext
4579     done
4580     ac_ext=f
4581ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4582ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4584
4585     if test "$ac_success_extra" = "yes"; then
4586        ac_cv_f77_mangling="$ac_case case"
4587        if test -z "$ac_underscore"; then
4588           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4589        else
4590           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4591        fi
4592        if test -z "$ac_extra"; then
4593           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4594        else
4595           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4596        fi
4597      else
4598        ac_cv_f77_mangling="unknown"
4599      fi
4600  else
4601     ac_cv_f77_mangling="unknown"
4602  fi
4603
4604  LIBS=$ac_save_LIBS
4605  rm -f cfortran_test* conftest*
4606else
4607  echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
4610{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4611See \`config.log' for more details." >&5
4612echo "$as_me: error: cannot compile a simple Fortran program
4613See \`config.log' for more details." >&2;}
4614   { (exit 1); exit 1; }; }
4615fi
4616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617
4618fi
4619echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4620echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4621
4622ac_ext=f
4623ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4624ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4626
4627
4628ac_ext=f
4629ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4630ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4632
4633
4634ac_ext=f
4635ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4636ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4638
4639
4640case $ac_cv_f77_mangling in
4641  "lower case, no underscore, no extra underscore")
4642          cat >>confdefs.h <<\_ACEOF
4643#define F77_FUNC(name,NAME) name
4644_ACEOF
4645
4646          cat >>confdefs.h <<\_ACEOF
4647#define F77_FUNC_(name,NAME) name
4648_ACEOF
4649 ;;
4650  "lower case, no underscore, extra underscore")
4651          cat >>confdefs.h <<\_ACEOF
4652#define F77_FUNC(name,NAME) name
4653_ACEOF
4654
4655          cat >>confdefs.h <<\_ACEOF
4656#define F77_FUNC_(name,NAME) name ## _
4657_ACEOF
4658 ;;
4659  "lower case, underscore, no extra underscore")
4660          cat >>confdefs.h <<\_ACEOF
4661#define F77_FUNC(name,NAME) name ## _
4662_ACEOF
4663
4664          cat >>confdefs.h <<\_ACEOF
4665#define F77_FUNC_(name,NAME) name ## _
4666_ACEOF
4667 ;;
4668  "lower case, underscore, extra underscore")
4669          cat >>confdefs.h <<\_ACEOF
4670#define F77_FUNC(name,NAME) name ## _
4671_ACEOF
4672
4673          cat >>confdefs.h <<\_ACEOF
4674#define F77_FUNC_(name,NAME) name ## __
4675_ACEOF
4676 ;;
4677  "upper case, no underscore, no extra underscore")
4678          cat >>confdefs.h <<\_ACEOF
4679#define F77_FUNC(name,NAME) NAME
4680_ACEOF
4681
4682          cat >>confdefs.h <<\_ACEOF
4683#define F77_FUNC_(name,NAME) NAME
4684_ACEOF
4685 ;;
4686  "upper case, no underscore, extra underscore")
4687          cat >>confdefs.h <<\_ACEOF
4688#define F77_FUNC(name,NAME) NAME
4689_ACEOF
4690
4691          cat >>confdefs.h <<\_ACEOF
4692#define F77_FUNC_(name,NAME) NAME ## _
4693_ACEOF
4694 ;;
4695  "upper case, underscore, no extra underscore")
4696          cat >>confdefs.h <<\_ACEOF
4697#define F77_FUNC(name,NAME) NAME ## _
4698_ACEOF
4699
4700          cat >>confdefs.h <<\_ACEOF
4701#define F77_FUNC_(name,NAME) NAME ## _
4702_ACEOF
4703 ;;
4704  "upper case, underscore, extra underscore")
4705          cat >>confdefs.h <<\_ACEOF
4706#define F77_FUNC(name,NAME) NAME ## _
4707_ACEOF
4708
4709          cat >>confdefs.h <<\_ACEOF
4710#define F77_FUNC_(name,NAME) NAME ## __
4711_ACEOF
4712 ;;
4713  *)
4714          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4715echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4716          ;;
4717esac
4718
4719ac_ext=f
4720ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4721ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4723
4724
4725# If FLIBS has been set by the user, we just restore its value here
4726if test x"$save_FLIBS" != x; then
4727  FLIBS="$save_FLIBS"
4728else
4729  # This is to correct a missing exclusion in autoconf 2.59
4730  if test x"$FLIBS" != x; then
4731    my_flibs=
4732    for flag in $FLIBS; do
4733      case $flag in
4734        -lcrt*.o) ;;
4735        -lcygwin) ;;
4736               *) my_flibs="$my_flibs $flag" ;;
4737      esac
4738    done
4739    FLIBS="$my_flibs"
4740  fi
4741
4742  case $build in
4743  # The following is a fix to define FLIBS for ifort on Windows
4744  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4745  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4746  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4747  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4748  # Since the corresponding flag seems to make more trouble that it avoid, it has been removed now.
4749     *-cygwin* | *-mingw*)
4750       case "$F77" in
4751#         ifort* | */ifort* | IFORT* | */IFORT*)
4752#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4753#           if "$coin_debug_compile" = true ; then
4754#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4755#           else
4756#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4757#           fi
4758#           ;;
4759         compile_f2c*)
4760           FLIBS=`$F77 -FLIBS` ;;
4761       esac;;
4762     *-hp-*)
4763         FLIBS="$FLIBS -lm";;
4764     *-ibm-*)
4765         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4766     *-linux-*)
4767       case "$F77" in
4768         pgf77* | */pgf77* | pgf90* | */pgf90*)
4769# ask linker to go through the archives multiple times
4770# (the Fortran compiler seems to do that automatically...)
4771           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4772       esac
4773  esac
4774  ac_cv_f77_libs="$FLIBS"
4775fi
4776
4777ac_ext=c
4778ac_cpp='$CPP $CPPFLAGS'
4779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781ac_compiler_gnu=$ac_cv_c_compiler_gnu
4782
4783
4784
4785
4786# Add FLIBS to FILTERSQP_PCLIBS, so that they get into the .pc files
4787FILTERSQP_PCLIBS="$FLIBS"
4788
4789
4790# Check if pkg-config is available (to setup addlibs file)
4791
4792
4793# Check whether --enable-pkg-config or --disable-pkg-config was given.
4794if test "${enable_pkg_config+set}" = set; then
4795  enableval="$enable_pkg_config"
4796  use_pkgconfig="$enableval"
4797else
4798  use_pkgconfig=yes
4799fi;
4800
4801if test $use_pkgconfig = yes ; then
4802  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4803    if test -n "$ac_tool_prefix"; then
4804  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4805set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4806echo "$as_me:$LINENO: checking for $ac_word" >&5
4807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4808if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4809  echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
4811  case $PKG_CONFIG in
4812  [\\/]* | ?:[\\/]*)
4813  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4814  ;;
4815  *)
4816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819  IFS=$as_save_IFS
4820  test -z "$as_dir" && as_dir=.
4821  for ac_exec_ext in '' $ac_executable_extensions; do
4822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825    break 2
4826  fi
4827done
4828done
4829
4830  ;;
4831esac
4832fi
4833PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4834
4835if test -n "$PKG_CONFIG"; then
4836  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4837echo "${ECHO_T}$PKG_CONFIG" >&6
4838else
4839  echo "$as_me:$LINENO: result: no" >&5
4840echo "${ECHO_T}no" >&6
4841fi
4842
4843fi
4844if test -z "$ac_cv_path_PKG_CONFIG"; then
4845  ac_pt_PKG_CONFIG=$PKG_CONFIG
4846  # Extract the first word of "pkg-config", so it can be a program name with args.
4847set dummy pkg-config; ac_word=$2
4848echo "$as_me:$LINENO: checking for $ac_word" >&5
4849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4851  echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853  case $ac_pt_PKG_CONFIG in
4854  [\\/]* | ?:[\\/]*)
4855  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4856  ;;
4857  *)
4858  as_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_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867    break 2
4868  fi
4869done
4870done
4871
4872  ;;
4873esac
4874fi
4875ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4876
4877if test -n "$ac_pt_PKG_CONFIG"; then
4878  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4879echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4880else
4881  echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
4883fi
4884
4885  PKG_CONFIG=$ac_pt_PKG_CONFIG
4886else
4887  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4888fi
4889
4890  fi
4891  if test -n "$PKG_CONFIG"; then
4892    _pkg_min_version=0.9.0
4893    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4894echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4895    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4896      echo "$as_me:$LINENO: result: yes" >&5
4897echo "${ECHO_T}yes" >&6
4898    else
4899      echo "$as_me:$LINENO: result: no" >&5
4900echo "${ECHO_T}no" >&6
4901      PKG_CONFIG=""
4902    fi
4903  fi
4904
4905  # check if pkg-config supports the short-errors flag
4906  if test -n "$PKG_CONFIG" && \
4907    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4908    pkg_short_errors=" --short-errors "
4909  else
4910    pkg_short_errors=""
4911  fi
4912fi
4913
4914
4915
4916if test -n "$PKG_CONFIG"; then
4917  COIN_HAS_PKGCONFIG_TRUE=
4918  COIN_HAS_PKGCONFIG_FALSE='#'
4919else
4920  COIN_HAS_PKGCONFIG_TRUE='#'
4921  COIN_HAS_PKGCONFIG_FALSE=
4922fi
4923
4924
4925
4926# assemble pkg-config search path for installed projects
4927COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4928
4929# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
4930# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4931# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4932if test "x${prefix}" = xNONE ; then
4933  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4934else
4935  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4936fi
4937
4938
4939# Check whether --with-coin-instdir or --without-coin-instdir was given.
4940if test "${with_coin_instdir+set}" = set; then
4941  withval="$with_coin_instdir"
4942  if test -d "$withval"; then : ; else
4943     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4944echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4945   { (exit 1); exit 1; }; }
4946   fi
4947   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4948
4949fi;
4950
4951
4952
4953# assemble additional pkg-config search paths for uninstalled projects
4954if test x$coin_projectdir = xyes ; then
4955  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4956  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4957  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4958  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
4959  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4960  if test -e ../coin_subdirs.txt ; then
4961    for i in `cat ../coin_subdirs.txt` ; do
4962      if test -d ../$i ; then
4963        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4964      fi
4965    done
4966  fi
4967
4968  if test -e ../../coin_subdirs.txt ; then
4969    for i in `cat ../../coin_subdirs.txt` ; do
4970      if test -d ../../$i ; then
4971        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4972      fi
4973    done
4974  fi
4975
4976
4977fi
4978
4979
4980
4981# Initialize automake
4982echo "$as_me:$LINENO: checking for egrep" >&5
4983echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4984if test "${ac_cv_prog_egrep+set}" = set; then
4985  echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4988    then ac_cv_prog_egrep='grep -E'
4989    else ac_cv_prog_egrep='egrep'
4990    fi
4991fi
4992echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4993echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4994 EGREP=$ac_cv_prog_egrep
4995
4996
4997am__api_version="1.9"
4998# Find a good install program.  We prefer a C program (faster),
4999# so one script is as good as another.  But avoid the broken or
5000# incompatible versions:
5001# SysV /etc/install, /usr/sbin/install
5002# SunOS /usr/etc/install
5003# IRIX /sbin/install
5004# AIX /bin/install
5005# AmigaOS /C/install, which installs bootblocks on floppy discs
5006# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5007# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5008# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5009# OS/2's system install, which has a completely different semantic
5010# ./install, which can be erroneously created by make from ./install.sh.
5011echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5012echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5013if test -z "$INSTALL"; then
5014if test "${ac_cv_path_install+set}" = set; then
5015  echo $ECHO_N "(cached) $ECHO_C" >&6
5016else
5017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022  # Account for people who put trailing slashes in PATH elements.
5023case $as_dir/ in
5024  ./ | .// | /cC/* | \
5025  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5026  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5027  /usr/ucb/* ) ;;
5028  *)
5029    # OSF1 and SCO ODT 3.0 have their own names for install.
5030    # Don't use installbsd from OSF since it installs stuff as root
5031    # by default.
5032    for ac_prog in ginstall scoinst install; do
5033      for ac_exec_ext in '' $ac_executable_extensions; do
5034        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5035          if test $ac_prog = install &&
5036            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5037            # AIX install.  It has an incompatible calling convention.
5038            :
5039          elif test $ac_prog = install &&
5040            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5041            # program-specific install script used by HP pwplus--don't use.
5042            :
5043          else
5044            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5045            break 3
5046          fi
5047        fi
5048      done
5049    done
5050    ;;
5051esac
5052done
5053
5054
5055fi
5056  if test "${ac_cv_path_install+set}" = set; then
5057    INSTALL=$ac_cv_path_install
5058  else
5059    # As a last resort, use the slow shell script.  We don't cache a
5060    # path for INSTALL within a source directory, because that will
5061    # break other packages using the cache if that directory is
5062    # removed, or if the path is relative.
5063    INSTALL=$ac_install_sh
5064  fi
5065fi
5066echo "$as_me:$LINENO: result: $INSTALL" >&5
5067echo "${ECHO_T}$INSTALL" >&6
5068
5069# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5070# It thinks the first close brace ends the variable substitution.
5071test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5072
5073test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5074
5075test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5076
5077echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5078echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5079# Just in case
5080sleep 1
5081echo timestamp > conftest.file
5082# Do `set' in a subshell so we don't clobber the current shell's
5083# arguments.  Must try -L first in case configure is actually a
5084# symlink; some systems play weird games with the mod time of symlinks
5085# (eg FreeBSD returns the mod time of the symlink's containing
5086# directory).
5087if (
5088   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5089   if test "$*" = "X"; then
5090      # -L didn't work.
5091      set X `ls -t $srcdir/configure conftest.file`
5092   fi
5093   rm -f conftest.file
5094   if test "$*" != "X $srcdir/configure conftest.file" \
5095      && test "$*" != "X conftest.file $srcdir/configure"; then
5096
5097      # If neither matched, then we have a broken ls.  This can happen
5098      # if, for instance, CONFIG_SHELL is bash and it inherits a
5099      # broken ls alias from the environment.  This has actually
5100      # happened.  Such a system could not be considered "sane".
5101      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5102alias in your environment" >&5
5103echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5104alias in your environment" >&2;}
5105   { (exit 1); exit 1; }; }
5106   fi
5107
5108   test "$2" = conftest.file
5109   )
5110then
5111   # Ok.
5112   :
5113else
5114   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5115Check your system clock" >&5
5116echo "$as_me: error: newly created file is older than distributed files!
5117Check your system clock" >&2;}
5118   { (exit 1); exit 1; }; }
5119fi
5120echo "$as_me:$LINENO: result: yes" >&5
5121echo "${ECHO_T}yes" >&6
5122test "$program_prefix" != NONE &&
5123  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5124# Use a double $ so make ignores it.
5125test "$program_suffix" != NONE &&
5126  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5127# Double any \ or $.  echo might interpret backslashes.
5128# By default was `s,x,x', remove it if useless.
5129cat <<\_ACEOF >conftest.sed
5130s/[\\$]/&&/g;s/;s,x,x,$//
5131_ACEOF
5132program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5133rm conftest.sed
5134
5135# expand $ac_aux_dir to an absolute path
5136am_aux_dir=`cd $ac_aux_dir && pwd`
5137
5138test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5139# Use eval to expand $SHELL
5140if eval "$MISSING --run true"; then
5141  am_missing_run="$MISSING --run "
5142else
5143  am_missing_run=
5144  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5145echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5146fi
5147
5148if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5149  # We used to keeping the `.' as first argument, in order to
5150  # allow $(mkdir_p) to be used without argument.  As in
5151  #   $(mkdir_p) $(somedir)
5152  # where $(somedir) is conditionally defined.  However this is wrong
5153  # for two reasons:
5154  #  1. if the package is installed by a user who cannot write `.'
5155  #     make install will fail,
5156  #  2. the above comment should most certainly read
5157  #     $(mkdir_p) $(DESTDIR)$(somedir)
5158  #     so it does not work when $(somedir) is undefined and
5159  #     $(DESTDIR) is not.
5160  #  To support the latter case, we have to write
5161  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5162  #  so the `.' trick is pointless.
5163  mkdir_p='mkdir -p --'
5164else
5165  # On NextStep and OpenStep, the `mkdir' command does not
5166  # recognize any option.  It will interpret all options as
5167  # directories to create, and then abort because `.' already
5168  # exists.
5169  for d in ./-p ./--version;
5170  do
5171    test -d $d && rmdir $d
5172  done
5173  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5174  if test -f "$ac_aux_dir/mkinstalldirs"; then
5175    mkdir_p='$(mkinstalldirs)'
5176  else
5177    mkdir_p='$(install_sh) -d'
5178  fi
5179fi
5180
5181for ac_prog in gawk mawk nawk awk
5182do
5183  # Extract the first word of "$ac_prog", so it can be a program name with args.
5184set dummy $ac_prog; ac_word=$2
5185echo "$as_me:$LINENO: checking for $ac_word" >&5
5186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5187if test "${ac_cv_prog_AWK+set}" = set; then
5188  echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190  if test -n "$AWK"; then
5191  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5192else
5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196  IFS=$as_save_IFS
5197  test -z "$as_dir" && as_dir=.
5198  for ac_exec_ext in '' $ac_executable_extensions; do
5199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200    ac_cv_prog_AWK="$ac_prog"
5201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202    break 2
5203  fi
5204done
5205done
5206
5207fi
5208fi
5209AWK=$ac_cv_prog_AWK
5210if test -n "$AWK"; then
5211  echo "$as_me:$LINENO: result: $AWK" >&5
5212echo "${ECHO_T}$AWK" >&6
5213else
5214  echo "$as_me:$LINENO: result: no" >&5
5215echo "${ECHO_T}no" >&6
5216fi
5217
5218  test -n "$AWK" && break
5219done
5220
5221echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5222echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5223set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5224if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5225  echo $ECHO_N "(cached) $ECHO_C" >&6
5226else
5227  cat >conftest.make <<\_ACEOF
5228all:
5229        @echo 'ac_maketemp="$(MAKE)"'
5230_ACEOF
5231# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5232eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5233if test -n "$ac_maketemp"; then
5234  eval ac_cv_prog_make_${ac_make}_set=yes
5235else
5236  eval ac_cv_prog_make_${ac_make}_set=no
5237fi
5238rm -f conftest.make
5239fi
5240if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5241  echo "$as_me:$LINENO: result: yes" >&5
5242echo "${ECHO_T}yes" >&6
5243  SET_MAKE=
5244else
5245  echo "$as_me:$LINENO: result: no" >&5
5246echo "${ECHO_T}no" >&6
5247  SET_MAKE="MAKE=${MAKE-make}"
5248fi
5249
5250rm -rf .tst 2>/dev/null
5251mkdir .tst 2>/dev/null
5252if test -d .tst; then
5253  am__leading_dot=.
5254else
5255  am__leading_dot=_
5256fi
5257rmdir .tst 2>/dev/null
5258
5259DEPDIR="${am__leading_dot}deps"
5260
5261          ac_config_commands="$ac_config_commands depfiles"
5262
5263
5264am_make=${MAKE-make}
5265cat > confinc << 'END'
5266am__doit:
5267        @echo done
5268.PHONY: am__doit
5269END
5270# If we don't find an include directive, just comment out the code.
5271echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5272echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5273am__include="#"
5274am__quote=
5275_am_result=none
5276# First try GNU make style include.
5277echo "include confinc" > confmf
5278# We grep out `Entering directory' and `Leaving directory'
5279# messages which can occur if `w' ends up in MAKEFLAGS.
5280# In particular we don't look at `^make:' because GNU make might
5281# be invoked under some other name (usually "gmake"), in which
5282# case it prints its new name instead of `make'.
5283if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5284   am__include=include
5285   am__quote=
5286   _am_result=GNU
5287fi
5288# Now try BSD make style include.
5289if test "$am__include" = "#"; then
5290   echo '.include "confinc"' > confmf
5291   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5292      am__include=.include
5293      am__quote="\""
5294      _am_result=BSD
5295   fi
5296fi
5297
5298
5299echo "$as_me:$LINENO: result: $_am_result" >&5
5300echo "${ECHO_T}$_am_result" >&6
5301rm -f confinc confmf
5302
5303# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5304if test "${enable_dependency_tracking+set}" = set; then
5305  enableval="$enable_dependency_tracking"
5306
5307fi;
5308if test "x$enable_dependency_tracking" != xno; then
5309  am_depcomp="$ac_aux_dir/depcomp"
5310  AMDEPBACKSLASH='\'
5311fi
5312
5313
5314if test "x$enable_dependency_tracking" != xno; then
5315  AMDEP_TRUE=
5316  AMDEP_FALSE='#'
5317else
5318  AMDEP_TRUE='#'
5319  AMDEP_FALSE=
5320fi
5321
5322
5323
5324
5325
5326# AC_MSG_NOTICE([Beginning automake initialisation.])
5327# Stuff for automake
5328# test to see if srcdir already configured
5329if test "`cd $srcdir && pwd`" != "`pwd`" &&
5330   test -f $srcdir/config.status; then
5331  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5332echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5333   { (exit 1); exit 1; }; }
5334fi
5335
5336# test whether we have cygpath
5337if test -z "$CYGPATH_W"; then
5338  if (cygpath --version) >/dev/null 2>/dev/null; then
5339    CYGPATH_W='cygpath -w'
5340  else
5341    CYGPATH_W=echo
5342  fi
5343fi
5344
5345
5346# Define the identity of the package.
5347 PACKAGE='thirdpartyfiltersqp'
5348 VERSION='1.1.3'
5349
5350
5351cat >>confdefs.h <<_ACEOF
5352#define PACKAGE "$PACKAGE"
5353_ACEOF
5354
5355
5356cat >>confdefs.h <<_ACEOF
5357#define VERSION "$VERSION"
5358_ACEOF
5359
5360# Some tools Automake needs.
5361
5362ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5363
5364
5365AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5366
5367
5368AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5369
5370
5371AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5372
5373
5374MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5375
5376install_sh=${install_sh-"$am_aux_dir/install-sh"}
5377
5378# Installed binaries are usually stripped using `strip' when the user
5379# run `make install-strip'.  However `strip' might not be the right
5380# tool to use in cross-compilation environments, therefore Automake
5381# will honor the `STRIP' environment variable to overrule this program.
5382if test "$cross_compiling" != no; then
5383  if test -n "$ac_tool_prefix"; then
5384  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5385set dummy ${ac_tool_prefix}strip; ac_word=$2
5386echo "$as_me:$LINENO: checking for $ac_word" >&5
5387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388if test "${ac_cv_prog_STRIP+set}" = set; then
5389  echo $ECHO_N "(cached) $ECHO_C" >&6
5390else
5391  if test -n "$STRIP"; then
5392  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5393else
5394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395for as_dir in $PATH
5396do
5397  IFS=$as_save_IFS
5398  test -z "$as_dir" && as_dir=.
5399  for ac_exec_ext in '' $ac_executable_extensions; do
5400  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5402    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403    break 2
5404  fi
5405done
5406done
5407
5408fi
5409fi
5410STRIP=$ac_cv_prog_STRIP
5411if test -n "$STRIP"; then
5412  echo "$as_me:$LINENO: result: $STRIP" >&5
5413echo "${ECHO_T}$STRIP" >&6
5414else
5415  echo "$as_me:$LINENO: result: no" >&5
5416echo "${ECHO_T}no" >&6
5417fi
5418
5419fi
5420if test -z "$ac_cv_prog_STRIP"; then
5421  ac_ct_STRIP=$STRIP
5422  # Extract the first word of "strip", so it can be a program name with args.
5423set dummy strip; ac_word=$2
5424echo "$as_me:$LINENO: checking for $ac_word" >&5
5425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5427  echo $ECHO_N "(cached) $ECHO_C" >&6
5428else
5429  if test -n "$ac_ct_STRIP"; then
5430  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5431else
5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH
5434do
5435  IFS=$as_save_IFS
5436  test -z "$as_dir" && as_dir=.
5437  for ac_exec_ext in '' $ac_executable_extensions; do
5438  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439    ac_cv_prog_ac_ct_STRIP="strip"
5440    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441    break 2
5442  fi
5443done
5444done
5445
5446  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5447fi
5448fi
5449ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5450if test -n "$ac_ct_STRIP"; then
5451  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5452echo "${ECHO_T}$ac_ct_STRIP" >&6
5453else
5454  echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
5456fi
5457
5458  STRIP=$ac_ct_STRIP
5459else
5460  STRIP="$ac_cv_prog_STRIP"
5461fi
5462
5463fi
5464INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5465
5466# We need awk for the "check" target.  The system "awk" is bad on
5467# some platforms.
5468# Always define AMTAR for backward compatibility.
5469
5470AMTAR=${AMTAR-"${am_missing_run}tar"}
5471
5472am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5473
5474
5475
5476
5477depcc="$CC"   am_compiler_list=
5478
5479echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5480echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5481if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5482  echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5485  # We make a subdir and do the tests there.  Otherwise we can end up
5486  # making bogus files that we don't know about and never remove.  For
5487  # instance it was reported that on HP-UX the gcc test will end up
5488  # making a dummy file named `D' -- because `-MD' means `put the output
5489  # in D'.
5490  mkdir conftest.dir
5491  # Copy depcomp to subdir because otherwise we won't find it if we're
5492  # using a relative directory.
5493  cp "$am_depcomp" conftest.dir
5494  cd conftest.dir
5495  # We will build objects and dependencies in a subdirectory because
5496  # it helps to detect inapplicable dependency modes.  For instance
5497  # both Tru64's cc and ICC support -MD to output dependencies as a
5498  # side effect of compilation, but ICC will put the dependencies in
5499  # the current directory while Tru64 will put them in the object
5500  # directory.
5501  mkdir sub
5502
5503  am_cv_CC_dependencies_compiler_type=none
5504  if test "$am_compiler_list" = ""; then
5505     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5506  fi
5507  for depmode in $am_compiler_list; do
5508    # Setup a source with many dependencies, because some compilers
5509    # like to wrap large dependency lists on column 80 (with \), and
5510    # we should not choose a depcomp mode which is confused by this.
5511    #
5512    # We need to recreate these files for each test, as the compiler may
5513    # overwrite some of them when testing with obscure command lines.
5514    # This happens at least with the AIX C compiler.
5515    : > sub/conftest.c
5516    for i in 1 2 3 4 5 6; do
5517      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5518      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5519      # Solaris 8's {/usr,}/bin/sh.
5520      touch sub/conftst$i.h
5521    done
5522    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5523
5524    case $depmode in
5525    nosideeffect)
5526      # after this tag, mechanisms are not by side-effect, so they'll
5527      # only be used when explicitly requested
5528      if test "x$enable_dependency_tracking" = xyes; then
5529        continue
5530      else
5531        break
5532      fi
5533      ;;
5534    none) break ;;
5535    esac
5536    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5537    # mode.  It turns out that the SunPro C++ compiler does not properly
5538    # handle `-M -o', and we need to detect this.
5539    if depmode=$depmode \
5540       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5541       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5542       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5543         >/dev/null 2>conftest.err &&
5544       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5545       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5546       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5547      # icc doesn't choke on unknown options, it will just issue warnings
5548      # or remarks (even with -Werror).  So we grep stderr for any message
5549      # that says an option was ignored or not supported.
5550      # When given -MP, icc 7.0 and 7.1 complain thusly:
5551      #   icc: Command line warning: ignoring option '-M'; no argument required
5552      # The diagnosis changed in icc 8.0:
5553      #   icc: Command line remark: option '-MP' not supported
5554      if (grep 'ignoring option' conftest.err ||
5555          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5556        am_cv_CC_dependencies_compiler_type=$depmode
5557        break
5558      fi
5559    fi
5560  done
5561
5562  cd ..
5563  rm -rf conftest.dir
5564else
5565  am_cv_CC_dependencies_compiler_type=none
5566fi
5567
5568fi
5569echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5570echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5571CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5572
5573
5574
5575if
5576  test "x$enable_dependency_tracking" != xno \
5577  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5578  am__fastdepCC_TRUE=
5579  am__fastdepCC_FALSE='#'
5580else
5581  am__fastdepCC_TRUE='#'
5582  am__fastdepCC_FALSE=
5583fi
5584
5585
5586
5587echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5588echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5589    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5590if test "${enable_maintainer_mode+set}" = set; then
5591  enableval="$enable_maintainer_mode"
5592  USE_MAINTAINER_MODE=$enableval
5593else
5594  USE_MAINTAINER_MODE=no
5595fi;
5596  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5597echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5598
5599
5600if test $USE_MAINTAINER_MODE = yes; then
5601  MAINTAINER_MODE_TRUE=
5602  MAINTAINER_MODE_FALSE='#'
5603else
5604  MAINTAINER_MODE_TRUE='#'
5605  MAINTAINER_MODE_FALSE=
5606fi
5607
5608  MAINT=$MAINTAINER_MODE_TRUE
5609
5610
5611
5612coin_have_externals=no
5613if test "$enable_maintainer_mode" = yes; then
5614
5615  # If maintainer mode is chosen, we make sure that the correct versions
5616  # of the tools are used, and that we know where libtool.m4 is (to
5617  # recreate acinclude.m4)
5618
5619
5620  LIBTOOLM4=
5621  # Normally, $HOME
5622  AUTOTOOLS_DFLT=$HOME
5623
5624  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5625echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5626if test "${ac_cv_use_correct_autotools+set}" = set; then
5627  echo $ECHO_N "(cached) $ECHO_C" >&6
5628else
5629  ac_cv_use_correct_autotools=check
5630fi
5631echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5632echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5633
5634  if test $ac_cv_use_correct_autotools = check; then
5635    ac_cv_use_correct_autotools=yes
5636    # Check if we have autoconf
5637    # Extract the first word of "autoconf", so it can be a program name with args.
5638set dummy autoconf; ac_word=$2
5639echo "$as_me:$LINENO: checking for $ac_word" >&5
5640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5641if test "${ac_cv_prog_have_autoconf+set}" = set; then
5642  echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
5644  if test -n "$have_autoconf"; then
5645  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650  IFS=$as_save_IFS
5651  test -z "$as_dir" && as_dir=.
5652  for ac_exec_ext in '' $ac_executable_extensions; do
5653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654    ac_cv_prog_have_autoconf="yes"
5655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656    break 2
5657  fi
5658done
5659done
5660
5661  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5662fi
5663fi
5664have_autoconf=$ac_cv_prog_have_autoconf
5665if test -n "$have_autoconf"; then
5666  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5667echo "${ECHO_T}$have_autoconf" >&6
5668else
5669  echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6
5671fi
5672
5673    if test $have_autoconf = no; then
5674      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5675echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5676   { (exit 1); exit 1; }; }
5677    fi
5678
5679    # Check whether autoconf is the correct version
5680    correct_version='2.59'
5681    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5682    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5683echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5684    autoconf --version > confauto.out 2>&1
5685    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5686      echo "$as_me:$LINENO: result: yes" >&5
5687echo "${ECHO_T}yes" >&6
5688    else
5689      rm -f confauto.out
5690      echo "$as_me:$LINENO: result: no" >&5
5691echo "${ECHO_T}no" >&6
5692      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5693echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5694   { (exit 1); exit 1; }; }
5695    fi
5696    rm -f confauto.out
5697
5698    # Check if the executable autoconf is picked up from the correct location
5699    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5700echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5701    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5702    autoconf_dir=`cd $autoconf_dir; pwd`
5703    if test x$AUTOTOOLS_DIR = x; then
5704      want_dir=$AUTOTOOLS_DFLT/bin
5705    else
5706      want_dir=$AUTOTOOLS_DIR/bin
5707    fi
5708    if test $autoconf_dir = `cd $want_dir; pwd`; then
5709      echo "$as_me:$LINENO: result: yes" >&5
5710echo "${ECHO_T}yes" >&6
5711    else
5712      rm -f confauto.out
5713      echo "$as_me:$LINENO: result: no" >&5
5714echo "${ECHO_T}no" >&6
5715      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5716echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5717   { (exit 1); exit 1; }; }
5718    fi
5719
5720    # Check if we have automake
5721    # Extract the first word of "automake", so it can be a program name with args.
5722set dummy automake; ac_word=$2
5723echo "$as_me:$LINENO: checking for $ac_word" >&5
5724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5725if test "${ac_cv_prog_have_automake+set}" = set; then
5726  echo $ECHO_N "(cached) $ECHO_C" >&6
5727else
5728  if test -n "$have_automake"; then
5729  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5730else
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734  IFS=$as_save_IFS
5735  test -z "$as_dir" && as_dir=.
5736  for ac_exec_ext in '' $ac_executable_extensions; do
5737  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738    ac_cv_prog_have_automake="yes"
5739    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740    break 2
5741  fi
5742done
5743done
5744
5745  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5746fi
5747fi
5748have_automake=$ac_cv_prog_have_automake
5749if test -n "$have_automake"; then
5750  echo "$as_me:$LINENO: result: $have_automake" >&5
5751echo "${ECHO_T}$have_automake" >&6
5752else
5753  echo "$as_me:$LINENO: result: no" >&5
5754echo "${ECHO_T}no" >&6
5755fi
5756
5757    if test $have_automake = no; then
5758      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5759echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5760   { (exit 1); exit 1; }; }
5761    fi
5762
5763    # Check whether automake is the correct version
5764    correct_version='1.9.6'
5765    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5766    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5767echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5768    automake --version > confauto.out 2>&1
5769    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5770      echo "$as_me:$LINENO: result: yes" >&5
5771echo "${ECHO_T}yes" >&6
5772    else
5773      rm -f confauto.out
5774      echo "$as_me:$LINENO: result: no" >&5
5775echo "${ECHO_T}no" >&6
5776      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5777echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5778   { (exit 1); exit 1; }; }
5779    fi
5780    rm -f confauto.out
5781
5782    # Check if the executable automake is picked up from the correct location
5783    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5784echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5785    automake_dir=`which automake | sed -e 's=/automake=='`
5786    automake_dir=`cd $automake_dir; pwd`
5787    if test x$AUTOTOOLS_DIR = x; then
5788      want_dir=$AUTOTOOLS_DFLT/bin
5789    else
5790      want_dir=$AUTOTOOLS_DIR/bin
5791    fi
5792    if test $automake_dir = `cd $want_dir; pwd`; then
5793      echo "$as_me:$LINENO: result: yes" >&5
5794echo "${ECHO_T}yes" >&6
5795    else
5796      rm -f confauto.out
5797      echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5800echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5801   { (exit 1); exit 1; }; }
5802    fi
5803
5804    # Check if this is the correct version of libtool (with escaped dots)
5805    if test x$AUTOTOOLS_DIR = x; then
5806      want_dir=$AUTOTOOLS_DFLT/share
5807    else
5808      want_dir=$AUTOTOOLS_DIR/share
5809    fi
5810    correct_version='1.5.22'
5811    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5812    if test -r $want_dir/libtool/ltmain.sh; then
5813  have_ltmain=yes
5814  :
5815else
5816  have_ltmain=no
5817  :
5818fi
5819
5820    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5821echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5822    if test $have_ltmain = yes; then
5823    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5824        echo "$as_me:$LINENO: result: yes" >&5
5825echo "${ECHO_T}yes" >&6
5826      else
5827        echo "$as_me:$LINENO: result: no" >&5
5828echo "${ECHO_T}no" >&6
5829        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5830echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5831   { (exit 1); exit 1; }; }
5832      fi
5833    else
5834      echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6
5836      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5837echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5838   { (exit 1); exit 1; }; }
5839    fi
5840  fi
5841
5842  # Check if we can find the libtool file
5843  if test x$AUTOTOOLS_DIR = x; then
5844    want_dir=$AUTOTOOLS_DFLT/share
5845  else
5846    want_dir=$AUTOTOOLS_DIR/share
5847  fi
5848  if test -r $want_dir/aclocal/libtool.m4; then
5849  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5850  :
5851else
5852  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5853echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5854   { (exit 1); exit 1; }; }
5855  :
5856fi
5857
5858
5859  # Check if we have an Externals file
5860  if test -r $srcdir/Externals; then
5861    coin_have_externals=yes
5862  fi
5863  # Check if subversion is installed and understands https
5864  # Extract the first word of "svn", so it can be a program name with args.
5865set dummy svn; ac_word=$2
5866echo "$as_me:$LINENO: checking for $ac_word" >&5
5867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5868if test "${ac_cv_prog_have_svn+set}" = set; then
5869  echo $ECHO_N "(cached) $ECHO_C" >&6
5870else
5871  if test -n "$have_svn"; then
5872  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5873else
5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877  IFS=$as_save_IFS
5878  test -z "$as_dir" && as_dir=.
5879  for ac_exec_ext in '' $ac_executable_extensions; do
5880  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881    ac_cv_prog_have_svn="yes"
5882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883    break 2
5884  fi
5885done
5886done
5887
5888  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5889fi
5890fi
5891have_svn=$ac_cv_prog_have_svn
5892if test -n "$have_svn"; then
5893  echo "$as_me:$LINENO: result: $have_svn" >&5
5894echo "${ECHO_T}$have_svn" >&6
5895else
5896  echo "$as_me:$LINENO: result: no" >&5
5897echo "${ECHO_T}no" >&6
5898fi
5899
5900  if test x$have_svn = xyes; then
5901    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5902echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5903if test "${ac_cv_svn_understands_https+set}" = set; then
5904  echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906  svn --version > confauto.out 2>&1
5907                    if $EGREP https confauto.out >/dev/null 2>&1; then
5908                      ac_cv_svn_understands_https=yes
5909                    else
5910                      ac_cv_svn_understands_https=no
5911                      have_svn=no
5912                      ac_cv_prog_have_svn=no
5913                    fi
5914                    rm -f confauto.out
5915fi
5916echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5917echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5918  fi
5919
5920  # Find the location of the BuildTools directory
5921  BUILDTOOLSDIR=
5922  if test -r $srcdir/BuildTools/coin.m4; then
5923    BUILDTOOLSDIR=$srcdir/BuildTools
5924  else
5925    if test -r $srcdir/../BuildTools/coin.m4; then
5926      BUILDTOOLSDIR=$srcdir/../BuildTools
5927    else
5928      if test -r $srcdir/../../BuildTools/coin.m4; then
5929        BUILDTOOLSDIR=$srcdir/../../BuildTools
5930      else
5931        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5932echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5933   { (exit 1); exit 1; }; }
5934      fi
5935    fi
5936  fi
5937
5938
5939  # The following variable is set to the name of the directory where
5940  # the autotool scripts are located
5941
5942  AUX_DIR=$ac_aux_dir
5943fi
5944
5945# helpful variable for the base directory of this package
5946abs_source_dir=`cd $srcdir; pwd`
5947
5948
5949# Stuff for example Makefiles
5950if test x$prefix = xNONE; then
5951  full_prefix=$ac_default_prefix
5952else
5953  full_prefix=$prefix
5954fi
5955full_prefix=`cd $full_prefix ; pwd`
5956
5957abs_lib_dir=$full_prefix/lib/coin
5958
5959abs_include_dir=$full_prefix/include
5960
5961abs_bin_dir=$full_prefix/bin
5962
5963
5964
5965if test $coin_have_externals = yes && test x$have_svn = xyes; then
5966  HAVE_EXTERNALS_TRUE=
5967  HAVE_EXTERNALS_FALSE='#'
5968else
5969  HAVE_EXTERNALS_TRUE='#'
5970  HAVE_EXTERNALS_FALSE=
5971fi
5972
5973
5974# AC_MSG_NOTICE([End automake initialisation.])
5975
5976
5977
5978# Initialize automake
5979{
5980
5981
5982
5983# START
5984
5985# Test if force_shared has been set
5986if test "x" = xforce_shared; then
5987  if test x$enable_shared = xno; then
5988    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5989echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5990   { (exit 1); exit 1; }; }
5991  fi
5992  enable_shared=yes;
5993else
5994  # On Cygwin and AIX, building DLLs doesn't work
5995  case $build in
5996    *-cygwin*)
5997      coin_disable_shared=yes
5998      platform=Cygwin
5999    ;;
6000    *-aix*)
6001      coin_disable_shared=yes
6002      platform=AIX
6003    ;;
6004    *-mingw*)
6005      coin_disable_shared=yes
6006      platform="Msys"
6007#      case "$CXX" in
6008#        cl*)
6009#          coin_disable_shared=yes
6010#          platform="Msys with cl"
6011#      ;;
6012#      esac
6013    ;;
6014  esac
6015fi
6016if test x"$coin_disable_shared" = xyes; then
6017  if test x"$enable_shared" = xyes; then
6018    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
6019echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
6020  fi
6021  enable_shared=no
6022fi
6023# By default, we only want the shared objects to be compiled
6024# Check whether --enable-static or --disable-static was given.
6025if test "${enable_static+set}" = set; then
6026  enableval="$enable_static"
6027  p=${PACKAGE-default}
6028    case $enableval in
6029    yes) enable_static=yes ;;
6030    no) enable_static=no ;;
6031    *)
6032     enable_static=no
6033      # Look at the argument we got.  We use all the common list separators.
6034      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6035      for pkg in $enableval; do
6036        IFS="$lt_save_ifs"
6037        if test "X$pkg" = "X$p"; then
6038          enable_static=yes
6039        fi
6040      done
6041      IFS="$lt_save_ifs"
6042      ;;
6043    esac
6044else
6045  enable_static=no
6046fi;
6047
6048
6049
6050
6051# Initialize automake
6052
6053
6054# AC_MSG_NOTICE([Beginning automake initialisation.])
6055# Stuff for automake
6056# test to see if srcdir already configured
6057if test "`cd $srcdir && pwd`" != "`pwd`" &&
6058   test -f $srcdir/config.status; then
6059  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6060echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6061   { (exit 1); exit 1; }; }
6062fi
6063
6064# test whether we have cygpath
6065if test -z "$CYGPATH_W"; then
6066  if (cygpath --version) >/dev/null 2>/dev/null; then
6067    CYGPATH_W='cygpath -w'
6068  else
6069    CYGPATH_W=echo
6070  fi
6071fi
6072
6073
6074# Define the identity of the package.
6075 PACKAGE='thirdpartyfiltersqp'
6076 VERSION='1.1.3'
6077
6078
6079cat >>confdefs.h <<_ACEOF
6080#define PACKAGE "$PACKAGE"
6081_ACEOF
6082
6083
6084cat >>confdefs.h <<_ACEOF
6085#define VERSION "$VERSION"
6086_ACEOF
6087
6088# Some tools Automake needs.
6089
6090ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6091
6092
6093AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6094
6095
6096AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6097
6098
6099AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6100
6101
6102MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6103
6104install_sh=${install_sh-"$am_aux_dir/install-sh"}
6105
6106# Installed binaries are usually stripped using `strip' when the user
6107# run `make install-strip'.  However `strip' might not be the right
6108# tool to use in cross-compilation environments, therefore Automake
6109# will honor the `STRIP' environment variable to overrule this program.
6110if test "$cross_compiling" != no; then
6111  if test -n "$ac_tool_prefix"; then
6112  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6113set dummy ${ac_tool_prefix}strip; ac_word=$2
6114echo "$as_me:$LINENO: checking for $ac_word" >&5
6115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6116if test "${ac_cv_prog_STRIP+set}" = set; then
6117  echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119  if test -n "$STRIP"; then
6120  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6121else
6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123for as_dir in $PATH
6124do
6125  IFS=$as_save_IFS
6126  test -z "$as_dir" && as_dir=.
6127  for ac_exec_ext in '' $ac_executable_extensions; do
6128  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131    break 2
6132  fi
6133done
6134done
6135
6136fi
6137fi
6138STRIP=$ac_cv_prog_STRIP
6139if test -n "$STRIP"; then
6140  echo "$as_me:$LINENO: result: $STRIP" >&5
6141echo "${ECHO_T}$STRIP" >&6
6142else
6143  echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
6145fi
6146
6147fi
6148if test -z "$ac_cv_prog_STRIP"; then
6149  ac_ct_STRIP=$STRIP
6150  # Extract the first word of "strip", so it can be a program name with args.
6151set dummy strip; ac_word=$2
6152echo "$as_me:$LINENO: checking for $ac_word" >&5
6153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6154if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6155  echo $ECHO_N "(cached) $ECHO_C" >&6
6156else
6157  if test -n "$ac_ct_STRIP"; then
6158  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6159else
6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163  IFS=$as_save_IFS
6164  test -z "$as_dir" && as_dir=.
6165  for ac_exec_ext in '' $ac_executable_extensions; do
6166  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167    ac_cv_prog_ac_ct_STRIP="strip"
6168    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169    break 2
6170  fi
6171done
6172done
6173
6174  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6175fi
6176fi
6177ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6178if test -n "$ac_ct_STRIP"; then
6179  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6180echo "${ECHO_T}$ac_ct_STRIP" >&6
6181else
6182  echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6
6184fi
6185
6186  STRIP=$ac_ct_STRIP
6187else
6188  STRIP="$ac_cv_prog_STRIP"
6189fi
6190
6191fi
6192INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6193
6194# We need awk for the "check" target.  The system "awk" is bad on
6195# some platforms.
6196# Always define AMTAR for backward compatibility.
6197
6198AMTAR=${AMTAR-"${am_missing_run}tar"}
6199
6200am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6201
6202
6203
6204
6205depcc="$CC"   am_compiler_list=
6206
6207echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6208echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6209if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6210  echo $ECHO_N "(cached) $ECHO_C" >&6
6211else
6212  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6213  # We make a subdir and do the tests there.  Otherwise we can end up
6214  # making bogus files that we don't know about and never remove.  For
6215  # instance it was reported that on HP-UX the gcc test will end up
6216  # making a dummy file named `D' -- because `-MD' means `put the output
6217  # in D'.
6218  mkdir conftest.dir
6219  # Copy depcomp to subdir because otherwise we won't find it if we're
6220  # using a relative directory.
6221  cp "$am_depcomp" conftest.dir
6222  cd conftest.dir
6223  # We will build objects and dependencies in a subdirectory because
6224  # it helps to detect inapplicable dependency modes.  For instance
6225  # both Tru64's cc and ICC support -MD to output dependencies as a
6226  # side effect of compilation, but ICC will put the dependencies in
6227  # the current directory while Tru64 will put them in the object
6228  # directory.
6229  mkdir sub
6230
6231  am_cv_CC_dependencies_compiler_type=none
6232  if test "$am_compiler_list" = ""; then
6233     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6234  fi
6235  for depmode in $am_compiler_list; do
6236    # Setup a source with many dependencies, because some compilers
6237    # like to wrap large dependency lists on column 80 (with \), and
6238    # we should not choose a depcomp mode which is confused by this.
6239    #
6240    # We need to recreate these files for each test, as the compiler may
6241    # overwrite some of them when testing with obscure command lines.
6242    # This happens at least with the AIX C compiler.
6243    : > sub/conftest.c
6244    for i in 1 2 3 4 5 6; do
6245      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6246      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6247      # Solaris 8's {/usr,}/bin/sh.
6248      touch sub/conftst$i.h
6249    done
6250    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6251
6252    case $depmode in
6253    nosideeffect)
6254      # after this tag, mechanisms are not by side-effect, so they'll
6255      # only be used when explicitly requested
6256      if test "x$enable_dependency_tracking" = xyes; then
6257        continue
6258      else
6259        break
6260      fi
6261      ;;
6262    none) break ;;
6263    esac
6264    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6265    # mode.  It turns out that the SunPro C++ compiler does not properly
6266    # handle `-M -o', and we need to detect this.
6267    if depmode=$depmode \
6268       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6269       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6270       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6271         >/dev/null 2>conftest.err &&
6272       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6273       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6274       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6275      # icc doesn't choke on unknown options, it will just issue warnings
6276      # or remarks (even with -Werror).  So we grep stderr for any message
6277      # that says an option was ignored or not supported.
6278      # When given -MP, icc 7.0 and 7.1 complain thusly:
6279      #   icc: Command line warning: ignoring option '-M'; no argument required
6280      # The diagnosis changed in icc 8.0:
6281      #   icc: Command line remark: option '-MP' not supported
6282      if (grep 'ignoring option' conftest.err ||
6283          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6284        am_cv_CC_dependencies_compiler_type=$depmode
6285        break
6286      fi
6287    fi
6288  done
6289
6290  cd ..
6291  rm -rf conftest.dir
6292else
6293  am_cv_CC_dependencies_compiler_type=none
6294fi
6295
6296fi
6297echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6298echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6299CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6300
6301
6302
6303if
6304  test "x$enable_dependency_tracking" != xno \
6305  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6306  am__fastdepCC_TRUE=
6307  am__fastdepCC_FALSE='#'
6308else
6309  am__fastdepCC_TRUE='#'
6310  am__fastdepCC_FALSE=
6311fi
6312
6313
6314
6315echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6316echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6317    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6318if test "${enable_maintainer_mode+set}" = set; then
6319  enableval="$enable_maintainer_mode"
6320  USE_MAINTAINER_MODE=$enableval
6321else
6322  USE_MAINTAINER_MODE=no
6323fi;
6324  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6325echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6326
6327
6328if test $USE_MAINTAINER_MODE = yes; then
6329  MAINTAINER_MODE_TRUE=
6330  MAINTAINER_MODE_FALSE='#'
6331else
6332  MAINTAINER_MODE_TRUE='#'
6333  MAINTAINER_MODE_FALSE=
6334fi
6335
6336  MAINT=$MAINTAINER_MODE_TRUE
6337
6338
6339
6340coin_have_externals=no
6341if test "$enable_maintainer_mode" = yes; then
6342
6343  # If maintainer mode is chosen, we make sure that the correct versions
6344  # of the tools are used, and that we know where libtool.m4 is (to
6345  # recreate acinclude.m4)
6346
6347
6348  LIBTOOLM4=
6349  # Normally, $HOME
6350  AUTOTOOLS_DFLT=$HOME
6351
6352  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6353echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6354if test "${ac_cv_use_correct_autotools+set}" = set; then
6355  echo $ECHO_N "(cached) $ECHO_C" >&6
6356else
6357  ac_cv_use_correct_autotools=check
6358fi
6359echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6360echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6361
6362  if test $ac_cv_use_correct_autotools = check; then
6363    ac_cv_use_correct_autotools=yes
6364    # Check if we have autoconf
6365    # Extract the first word of "autoconf", so it can be a program name with args.
6366set dummy autoconf; ac_word=$2
6367echo "$as_me:$LINENO: checking for $ac_word" >&5
6368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6369if test "${ac_cv_prog_have_autoconf+set}" = set; then
6370  echo $ECHO_N "(cached) $ECHO_C" >&6
6371else
6372  if test -n "$have_autoconf"; then
6373  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6374else
6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378  IFS=$as_save_IFS
6379  test -z "$as_dir" && as_dir=.
6380  for ac_exec_ext in '' $ac_executable_extensions; do
6381  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382    ac_cv_prog_have_autoconf="yes"
6383    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384    break 2
6385  fi
6386done
6387done
6388
6389  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6390fi
6391fi
6392have_autoconf=$ac_cv_prog_have_autoconf
6393if test -n "$have_autoconf"; then
6394  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6395echo "${ECHO_T}$have_autoconf" >&6
6396else
6397  echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6
6399fi
6400
6401    if test $have_autoconf = no; then
6402      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6403echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6404   { (exit 1); exit 1; }; }
6405    fi
6406
6407    # Check whether autoconf is the correct version
6408    correct_version='2.59'
6409    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6410    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6411echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6412    autoconf --version > confauto.out 2>&1
6413    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6414      echo "$as_me:$LINENO: result: yes" >&5
6415echo "${ECHO_T}yes" >&6
6416    else
6417      rm -f confauto.out
6418      echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6
6420      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6421echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6422   { (exit 1); exit 1; }; }
6423    fi
6424    rm -f confauto.out
6425
6426    # Check if the executable autoconf is picked up from the correct location
6427    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6428echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6429    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6430    autoconf_dir=`cd $autoconf_dir; pwd`
6431    if test x$AUTOTOOLS_DIR = x; then
6432      want_dir=$AUTOTOOLS_DFLT/bin
6433    else
6434      want_dir=$AUTOTOOLS_DIR/bin
6435    fi
6436    if test $autoconf_dir = `cd $want_dir; pwd`; then
6437      echo "$as_me:$LINENO: result: yes" >&5
6438echo "${ECHO_T}yes" >&6
6439    else
6440      rm -f confauto.out
6441      echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6
6443      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6444echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6445   { (exit 1); exit 1; }; }
6446    fi
6447
6448    # Check if we have automake
6449    # Extract the first word of "automake", so it can be a program name with args.
6450set dummy automake; ac_word=$2
6451echo "$as_me:$LINENO: checking for $ac_word" >&5
6452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6453if test "${ac_cv_prog_have_automake+set}" = set; then
6454  echo $ECHO_N "(cached) $ECHO_C" >&6
6455else
6456  if test -n "$have_automake"; then
6457  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6458else
6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460for as_dir in $PATH
6461do
6462  IFS=$as_save_IFS
6463  test -z "$as_dir" && as_dir=.
6464  for ac_exec_ext in '' $ac_executable_extensions; do
6465  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6466    ac_cv_prog_have_automake="yes"
6467    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6468    break 2
6469  fi
6470done
6471done
6472
6473  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6474fi
6475fi
6476have_automake=$ac_cv_prog_have_automake
6477if test -n "$have_automake"; then
6478  echo "$as_me:$LINENO: result: $have_automake" >&5
6479echo "${ECHO_T}$have_automake" >&6
6480else
6481  echo "$as_me:$LINENO: result: no" >&5
6482echo "${ECHO_T}no" >&6
6483fi
6484
6485    if test $have_automake = no; then
6486      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6487echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6488   { (exit 1); exit 1; }; }
6489    fi
6490
6491    # Check whether automake is the correct version
6492    correct_version='1.9.6'
6493    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6494    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6495echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6496    automake --version > confauto.out 2>&1
6497    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6498      echo "$as_me:$LINENO: result: yes" >&5
6499echo "${ECHO_T}yes" >&6
6500    else
6501      rm -f confauto.out
6502      echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
6504      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6505echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6506   { (exit 1); exit 1; }; }
6507    fi
6508    rm -f confauto.out
6509
6510    # Check if the executable automake is picked up from the correct location
6511    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6512echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6513    automake_dir=`which automake | sed -e 's=/automake=='`
6514    automake_dir=`cd $automake_dir; pwd`
6515    if test x$AUTOTOOLS_DIR = x; then
6516      want_dir=$AUTOTOOLS_DFLT/bin
6517    else
6518      want_dir=$AUTOTOOLS_DIR/bin
6519    fi
6520    if test $automake_dir = `cd $want_dir; pwd`; then
6521      echo "$as_me:$LINENO: result: yes" >&5
6522echo "${ECHO_T}yes" >&6
6523    else
6524      rm -f confauto.out
6525      echo "$as_me:$LINENO: result: no" >&5
6526echo "${ECHO_T}no" >&6
6527      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6528echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6529   { (exit 1); exit 1; }; }
6530    fi
6531
6532    # Check if this is the correct version of libtool (with escaped dots)
6533    if test x$AUTOTOOLS_DIR = x; then
6534      want_dir=$AUTOTOOLS_DFLT/share
6535    else
6536      want_dir=$AUTOTOOLS_DIR/share
6537    fi
6538    correct_version='1.5.22'
6539    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6540    if test -r $want_dir/libtool/ltmain.sh; then
6541  have_ltmain=yes
6542  :
6543else
6544  have_ltmain=no
6545  :
6546fi
6547
6548    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6549echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6550    if test $have_ltmain = yes; then
6551    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6552        echo "$as_me:$LINENO: result: yes" >&5
6553echo "${ECHO_T}yes" >&6
6554      else
6555        echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6
6557        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6558echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6559   { (exit 1); exit 1; }; }
6560      fi
6561    else
6562      echo "$as_me:$LINENO: result: no" >&5
6563echo "${ECHO_T}no" >&6
6564      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6565echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6566   { (exit 1); exit 1; }; }
6567    fi
6568  fi
6569
6570  # Check if we can find the libtool file
6571  if test x$AUTOTOOLS_DIR = x; then
6572    want_dir=$AUTOTOOLS_DFLT/share
6573  else
6574    want_dir=$AUTOTOOLS_DIR/share
6575  fi
6576  if test -r $want_dir/aclocal/libtool.m4; then
6577  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6578  :
6579else
6580  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6581echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6582   { (exit 1); exit 1; }; }
6583  :
6584fi
6585
6586
6587  # Check if we have an Externals file
6588  if test -r $srcdir/Externals; then
6589    coin_have_externals=yes
6590  fi
6591  # Check if subversion is installed and understands https
6592  # Extract the first word of "svn", so it can be a program name with args.
6593set dummy svn; ac_word=$2
6594echo "$as_me:$LINENO: checking for $ac_word" >&5
6595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6596if test "${ac_cv_prog_have_svn+set}" = set; then
6597  echo $ECHO_N "(cached) $ECHO_C" >&6
6598else
6599  if test -n "$have_svn"; then
6600  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6601else
6602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603for as_dir in $PATH
6604do
6605  IFS=$as_save_IFS
6606  test -z "$as_dir" && as_dir=.
6607  for ac_exec_ext in '' $ac_executable_extensions; do
6608  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6609    ac_cv_prog_have_svn="yes"
6610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611    break 2
6612  fi
6613done
6614done
6615
6616  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6617fi
6618fi
6619have_svn=$ac_cv_prog_have_svn
6620if test -n "$have_svn"; then
6621  echo "$as_me:$LINENO: result: $have_svn" >&5
6622echo "${ECHO_T}$have_svn" >&6
6623else
6624  echo "$as_me:$LINENO: result: no" >&5
6625echo "${ECHO_T}no" >&6
6626fi
6627
6628  if test x$have_svn = xyes; then
6629    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6630echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6631if test "${ac_cv_svn_understands_https+set}" = set; then
6632  echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
6634  svn --version > confauto.out 2>&1
6635                    if $EGREP https confauto.out >/dev/null 2>&1; then
6636                      ac_cv_svn_understands_https=yes
6637                    else
6638                      ac_cv_svn_understands_https=no
6639                      have_svn=no
6640                      ac_cv_prog_have_svn=no
6641                    fi
6642                    rm -f confauto.out
6643fi
6644echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6645echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6646  fi
6647
6648  # Find the location of the BuildTools directory
6649  BUILDTOOLSDIR=
6650  if test -r $srcdir/BuildTools/coin.m4; then
6651    BUILDTOOLSDIR=$srcdir/BuildTools
6652  else
6653    if test -r $srcdir/../BuildTools/coin.m4; then
6654      BUILDTOOLSDIR=$srcdir/../BuildTools
6655    else
6656      if test -r $srcdir/../../BuildTools/coin.m4; then
6657        BUILDTOOLSDIR=$srcdir/../../BuildTools
6658      else
6659        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6660echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6661   { (exit 1); exit 1; }; }
6662      fi
6663    fi
6664  fi
6665
6666
6667  # The following variable is set to the name of the directory where
6668  # the autotool scripts are located
6669
6670  AUX_DIR=$ac_aux_dir
6671fi
6672
6673# helpful variable for the base directory of this package
6674abs_source_dir=`cd $srcdir; pwd`
6675
6676
6677# Stuff for example Makefiles
6678if test x$prefix = xNONE; then
6679  full_prefix=$ac_default_prefix
6680else
6681  full_prefix=$prefix
6682fi
6683full_prefix=`cd $full_prefix ; pwd`
6684
6685abs_lib_dir=$full_prefix/lib/coin
6686
6687abs_include_dir=$full_prefix/include
6688
6689abs_bin_dir=$full_prefix/bin
6690
6691
6692
6693if test $coin_have_externals = yes && test x$have_svn = xyes; then
6694  HAVE_EXTERNALS_TRUE=
6695  HAVE_EXTERNALS_FALSE='#'
6696else
6697  HAVE_EXTERNALS_TRUE='#'
6698  HAVE_EXTERNALS_FALSE=
6699fi
6700
6701
6702# AC_MSG_NOTICE([End automake initialisation.])
6703
6704
6705
6706LIBTOOL=
6707if test -r ../libtool; then
6708  coin_config_dir=..
6709  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6710fi
6711if test "x$LIBTOOL" = x; then
6712  if test -r ../../libtool; then
6713    coin_config_dir=../..
6714    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6715  fi
6716fi
6717
6718if test "x$LIBTOOL" = x; then
6719# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6720  # Stuff for libtool
6721  # Check whether --enable-shared or --disable-shared was given.
6722if test "${enable_shared+set}" = set; then
6723  enableval="$enable_shared"
6724  p=${PACKAGE-default}
6725    case $enableval in
6726    yes) enable_shared=yes ;;
6727    no) enable_shared=no ;;
6728    *)
6729      enable_shared=no
6730      # Look at the argument we got.  We use all the common list separators.
6731      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6732      for pkg in $enableval; do
6733        IFS="$lt_save_ifs"
6734        if test "X$pkg" = "X$p"; then
6735          enable_shared=yes
6736        fi
6737      done
6738      IFS="$lt_save_ifs"
6739      ;;
6740    esac
6741else
6742  enable_shared=yes
6743fi;
6744
6745# Check whether --enable-fast-install or --disable-fast-install was given.
6746if test "${enable_fast_install+set}" = set; then
6747  enableval="$enable_fast_install"
6748  p=${PACKAGE-default}
6749    case $enableval in
6750    yes) enable_fast_install=yes ;;
6751    no) enable_fast_install=no ;;
6752    *)
6753      enable_fast_install=no
6754      # Look at the argument we got.  We use all the common list separators.
6755      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6756      for pkg in $enableval; do
6757        IFS="$lt_save_ifs"
6758        if test "X$pkg" = "X$p"; then
6759          enable_fast_install=yes
6760        fi
6761      done
6762      IFS="$lt_save_ifs"
6763      ;;
6764    esac
6765else
6766  enable_fast_install=yes
6767fi;
6768
6769echo "$as_me:$LINENO: checking host system type" >&5
6770echo $ECHO_N "checking host system type... $ECHO_C" >&6
6771if test "${ac_cv_host+set}" = set; then
6772  echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774  ac_cv_host_alias=$host_alias
6775test -z "$ac_cv_host_alias" &&
6776  ac_cv_host_alias=$ac_cv_build_alias
6777ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6778  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6779echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6780   { (exit 1); exit 1; }; }
6781
6782fi
6783echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6784echo "${ECHO_T}$ac_cv_host" >&6
6785host=$ac_cv_host
6786host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6787host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6788host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6789
6790
6791echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6792echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6793if test "${lt_cv_path_SED+set}" = set; then
6794  echo $ECHO_N "(cached) $ECHO_C" >&6
6795else
6796  # Loop through the user's path and test for sed and gsed.
6797# Then use that list of sed's as ones to test for truncation.
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801  IFS=$as_save_IFS
6802  test -z "$as_dir" && as_dir=.
6803  for lt_ac_prog in sed gsed; do
6804    for ac_exec_ext in '' $ac_executable_extensions; do
6805      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6806        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6807      fi
6808    done
6809  done
6810done
6811lt_ac_max=0
6812lt_ac_count=0
6813# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6814# along with /bin/sed that truncates output.
6815for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6816  test ! -f $lt_ac_sed && continue
6817  cat /dev/null > conftest.in
6818  lt_ac_count=0
6819  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6820  # Check for GNU sed and select it if it is found.
6821  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6822    lt_cv_path_SED=$lt_ac_sed
6823    break
6824  fi
6825  while true; do
6826    cat conftest.in conftest.in >conftest.tmp
6827    mv conftest.tmp conftest.in
6828    cp conftest.in conftest.nl
6829    echo >>conftest.nl
6830    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6831    cmp -s conftest.out conftest.nl || break
6832    # 10000 chars as input seems more than enough
6833    test $lt_ac_count -gt 10 && break
6834    lt_ac_count=`expr $lt_ac_count + 1`
6835    if test $lt_ac_count -gt $lt_ac_max; then
6836      lt_ac_max=$lt_ac_count
6837      lt_cv_path_SED=$lt_ac_sed
6838    fi
6839  done
6840done
6841
6842fi
6843
6844SED=$lt_cv_path_SED
6845echo "$as_me:$LINENO: result: $SED" >&5
6846echo "${ECHO_T}$SED" >&6
6847
6848
6849# Check whether --with-gnu-ld or --without-gnu-ld was given.
6850if test "${with_gnu_ld+set}" = set; then
6851  withval="$with_gnu_ld"
6852  test "$withval" = no || with_gnu_ld=yes
6853else
6854  with_gnu_ld=no
6855fi;
6856ac_prog=ld
6857if test "$GCC" = yes; then
6858  # Check if gcc -print-prog-name=ld gives a path.
6859  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6860echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6861  case $host in
6862  *-*-mingw*)
6863    # gcc leaves a trailing carriage return which upsets mingw
6864    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6865  *)
6866    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6867  esac
6868  case $ac_prog in
6869    # Accept absolute paths.
6870    [\\/]* | ?:[\\/]*)
6871      re_direlt='/[^/][^/]*/\.\./'
6872      # Canonicalize the pathname of ld
6873      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6874      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6875        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6876      done
6877      test -z "$LD" && LD="$ac_prog"
6878      ;;
6879  "")
6880    # If it fails, then pretend we aren't using GCC.
6881    ac_prog=ld
6882    ;;
6883  *)
6884    # If it is relative, then search for the first ld in PATH.
6885    with_gnu_ld=unknown
6886    ;;
6887  esac
6888elif test "$with_gnu_ld" = yes; then
6889  echo "$as_me:$LINENO: checking for GNU ld" >&5
6890echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6891else
6892  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6893echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6894fi
6895if test "${lt_cv_path_LD+set}" = set; then
6896  echo $ECHO_N "(cached) $ECHO_C" >&6
6897else
6898  if test -z "$LD"; then
6899  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6900  for ac_dir in $PATH; do
6901    IFS="$lt_save_ifs"
6902    test -z "$ac_dir" && ac_dir=.
6903    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6904      lt_cv_path_LD="$ac_dir/$ac_prog"
6905      # Check to see if the program is GNU ld.  I'd rather use --version,
6906      # but apparently some variants of GNU ld only accept -v.
6907      # Break only if it was the GNU/non-GNU ld that we prefer.
6908      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6909      *GNU* | *'with BFD'*)
6910        test "$with_gnu_ld" != no && break
6911        ;;
6912      *)
6913        test "$with_gnu_ld" != yes && break
6914        ;;
6915      esac
6916    fi
6917  done
6918  IFS="$lt_save_ifs"
6919else
6920  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6921fi
6922fi
6923
6924LD="$lt_cv_path_LD"
6925if test -n "$LD"; then
6926  echo "$as_me:$LINENO: result: $LD" >&5
6927echo "${ECHO_T}$LD" >&6
6928else
6929  echo "$as_me:$LINENO: result: no" >&5
6930echo "${ECHO_T}no" >&6
6931fi
6932test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6933echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6934   { (exit 1); exit 1; }; }
6935echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6936echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6937if test "${lt_cv_prog_gnu_ld+set}" = set; then
6938  echo $ECHO_N "(cached) $ECHO_C" >&6
6939else
6940  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6941case `$LD -v 2>&1 </dev/null` in
6942*GNU* | *'with BFD'*)
6943  lt_cv_prog_gnu_ld=yes
6944  ;;
6945*)
6946  lt_cv_prog_gnu_ld=no
6947  ;;
6948esac
6949fi
6950echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6951echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6952with_gnu_ld=$lt_cv_prog_gnu_ld
6953
6954
6955echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6956echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6957if test "${lt_cv_ld_reload_flag+set}" = set; then
6958  echo $ECHO_N "(cached) $ECHO_C" >&6
6959else
6960  lt_cv_ld_reload_flag='-r'
6961fi
6962echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6963echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6964reload_flag=$lt_cv_ld_reload_flag
6965case $reload_flag in
6966"" | " "*) ;;
6967*) reload_flag=" $reload_flag" ;;
6968esac
6969reload_cmds='$LD$reload_flag -o $output$reload_objs'
6970case $host_os in
6971  darwin*)
6972    if test "$GCC" = yes; then
6973      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6974    else
6975      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6976    fi
6977    ;;
6978esac
6979
6980echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6981echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6982if test "${lt_cv_path_NM+set}" = set; then
6983  echo $ECHO_N "(cached) $ECHO_C" >&6
6984else
6985  if test -n "$NM"; then
6986  # Let the user override the test.
6987  lt_cv_path_NM="$NM"
6988else
6989  lt_nm_to_check="${ac_tool_prefix}nm"
6990  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6991    lt_nm_to_check="$lt_nm_to_check nm"
6992  fi
6993  for lt_tmp_nm in $lt_nm_to_check; do
6994    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6995    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6996      IFS="$lt_save_ifs"
6997      test -z "$ac_dir" && ac_dir=.
6998      tmp_nm="$ac_dir/$lt_tmp_nm"
6999      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7000        # Check to see if the nm accepts a BSD-compat flag.
7001        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7002        #   nm: unknown option "B" ignored
7003        # Tru64's nm complains that /dev/null is an invalid object file
7004        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7005        */dev/null* | *'Invalid file or object type'*)
7006          lt_cv_path_NM="$tmp_nm -B"
7007          break
7008          ;;
7009        *)
7010          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7011          */dev/null*)
7012            lt_cv_path_NM="$tmp_nm -p"
7013            break
7014            ;;
7015          *)
7016            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7017            continue # so that we can try to find one that supports BSD flags
7018            ;;
7019          esac
7020          ;;
7021        esac
7022      fi
7023    done
7024    IFS="$lt_save_ifs"
7025  done
7026  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7027fi
7028fi
7029echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7030echo "${ECHO_T}$lt_cv_path_NM" >&6
7031NM="$lt_cv_path_NM"
7032
7033echo "$as_me:$LINENO: checking whether ln -s works" >&5
7034echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7035LN_S=$as_ln_s
7036if test "$LN_S" = "ln -s"; then
7037  echo "$as_me:$LINENO: result: yes" >&5
7038echo "${ECHO_T}yes" >&6
7039else
7040  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7041echo "${ECHO_T}no, using $LN_S" >&6
7042fi
7043
7044echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7045echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7046if test "${lt_cv_deplibs_check_method+set}" = set; then
7047  echo $ECHO_N "(cached) $ECHO_C" >&6
7048else
7049  lt_cv_file_magic_cmd='$MAGIC_CMD'
7050lt_cv_file_magic_test_file=
7051lt_cv_deplibs_check_method='unknown'
7052# Need to set the preceding variable on all platforms that support
7053# interlibrary dependencies.
7054# 'none' -- dependencies not supported.
7055# `unknown' -- same as none, but documents that we really don't know.
7056# 'pass_all' -- all dependencies passed with no checks.
7057# 'test_compile' -- check by making test program.
7058# 'file_magic [[regex]]' -- check by looking for files in library path
7059# which responds to the $file_magic_cmd with a given extended regex.
7060# If you have `file' or equivalent on your system and you're not sure
7061# whether `pass_all' will *always* work, you probably want this one.
7062
7063case $host_os in
7064aix4* | aix5*)
7065  lt_cv_deplibs_check_method=pass_all
7066  ;;
7067
7068beos*)
7069  lt_cv_deplibs_check_method=pass_all
7070  ;;
7071
7072bsdi[45]*)
7073  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7074  lt_cv_file_magic_cmd='/usr/bin/file -L'
7075  lt_cv_file_magic_test_file=/shlib/libc.so
7076  ;;
7077
7078cygwin*)
7079  # func_win32_libid is a shell function defined in ltmain.sh
7080  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7081  lt_cv_file_magic_cmd='func_win32_libid'
7082  ;;
7083
7084mingw* | pw32*)
7085  # Base MSYS/MinGW do not provide the 'file' command needed by
7086  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7087  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7088  lt_cv_file_magic_cmd='$OBJDUMP -f'
7089  ;;
7090
7091darwin* | rhapsody*)
7092  lt_cv_deplibs_check_method=pass_all
7093  ;;
7094
7095freebsd* | kfreebsd*-gnu | dragonfly*)
7096  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7097    case $host_cpu in
7098    i*86 )
7099      # Not sure whether the presence of OpenBSD here was a mistake.
7100      # Let's accept both of them until this is cleared up.
7101      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7102      lt_cv_file_magic_cmd=/usr/bin/file
7103      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7104      ;;
7105    esac
7106  else
7107    lt_cv_deplibs_check_method=pass_all
7108  fi
7109  ;;
7110
7111gnu*)
7112  lt_cv_deplibs_check_method=pass_all
7113  ;;
7114
7115hpux10.20* | hpux11*)
7116  lt_cv_file_magic_cmd=/usr/bin/file
7117  case $host_cpu in
7118  ia64*)
7119    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7120    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7121    ;;
7122  hppa*64*)
7123    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]'
7124    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7125    ;;
7126  *)
7127    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7128    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7129    ;;
7130  esac
7131  ;;
7132
7133interix3*)
7134  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7135  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7136  ;;
7137
7138irix5* | irix6* | nonstopux*)
7139  case $LD in
7140  *-32|*"-32 ") libmagic=32-bit;;
7141  *-n32|*"-n32 ") libmagic=N32;;
7142  *-64|*"-64 ") libmagic=64-bit;;
7143  *) libmagic=never-match;;
7144  esac
7145  lt_cv_deplibs_check_method=pass_all
7146  ;;
7147
7148# This must be Linux ELF.
7149linux*)
7150  lt_cv_deplibs_check_method=pass_all
7151  ;;
7152
7153netbsd*)
7154  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7155    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7156  else
7157    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7158  fi
7159  ;;
7160
7161newos6*)
7162  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7163  lt_cv_file_magic_cmd=/usr/bin/file
7164  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7165  ;;
7166
7167nto-qnx*)
7168  lt_cv_deplibs_check_method=unknown
7169  ;;
7170
7171openbsd*)
7172  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7173    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7174  else
7175    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7176  fi
7177  ;;
7178
7179osf3* | osf4* | osf5*)
7180  lt_cv_deplibs_check_method=pass_all
7181  ;;
7182
7183solaris*)
7184  lt_cv_deplibs_check_method=pass_all
7185  ;;
7186
7187sysv4 | sysv4.3*)
7188  case $host_vendor in
7189  motorola)
7190    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]'
7191    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7192    ;;
7193  ncr)
7194    lt_cv_deplibs_check_method=pass_all
7195    ;;
7196  sequent)
7197    lt_cv_file_magic_cmd='/bin/file'
7198    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7199    ;;
7200  sni)
7201    lt_cv_file_magic_cmd='/bin/file'
7202    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7203    lt_cv_file_magic_test_file=/lib/libc.so
7204    ;;
7205  siemens)
7206    lt_cv_deplibs_check_method=pass_all
7207    ;;
7208  pc)
7209    lt_cv_deplibs_check_method=pass_all
7210    ;;
7211  esac
7212  ;;
7213
7214sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7215  lt_cv_deplibs_check_method=pass_all
7216  ;;
7217esac
7218
7219fi
7220echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7221echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7222file_magic_cmd=$lt_cv_file_magic_cmd
7223deplibs_check_method=$lt_cv_deplibs_check_method
7224test -z "$deplibs_check_method" && deplibs_check_method=unknown
7225
7226
7227
7228
7229# If no C compiler was specified, use CC.
7230LTCC=${LTCC-"$CC"}
7231
7232# If no C compiler flags were specified, use CFLAGS.
7233LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7234
7235# Allow CC to be a program name with arguments.
7236compiler=$CC
7237
7238# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7239if test "${enable_libtool_lock+set}" = set; then
7240  enableval="$enable_libtool_lock"
7241
7242fi;
7243test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7244
7245# Some flags need to be propagated to the compiler or linker for good
7246# libtool support.
7247case $host in
7248ia64-*-hpux*)
7249  # Find out which ABI we are using.
7250  echo 'int i;' > conftest.$ac_ext
7251  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7252  (eval $ac_compile) 2>&5
7253  ac_status=$?
7254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255  (exit $ac_status); }; then
7256    case `/usr/bin/file conftest.$ac_objext` in
7257    *ELF-32*)
7258      HPUX_IA64_MODE="32"
7259      ;;
7260    *ELF-64*)
7261      HPUX_IA64_MODE="64"
7262      ;;
7263    esac
7264  fi
7265  rm -rf conftest*
7266  ;;
7267*-*-irix6*)
7268  # Find out which ABI we are using.
7269  echo '#line 7269 "configure"' > conftest.$ac_ext
7270  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7271  (eval $ac_compile) 2>&5
7272  ac_status=$?
7273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274  (exit $ac_status); }; then
7275   if test "$lt_cv_prog_gnu_ld" = yes; then
7276    case `/usr/bin/file conftest.$ac_objext` in
7277    *32-bit*)
7278      LD="${LD-ld} -melf32bsmip"
7279      ;;
7280    *N32*)
7281      LD="${LD-ld} -melf32bmipn32"
7282      ;;
7283    *64-bit*)
7284      LD="${LD-ld} -melf64bmip"
7285      ;;
7286    esac
7287   else
7288    case `/usr/bin/file conftest.$ac_objext` in
7289    *32-bit*)
7290      LD="${LD-ld} -32"
7291      ;;
7292    *N32*)
7293      LD="${LD-ld} -n32"
7294      ;;
7295    *64-bit*)
7296      LD="${LD-ld} -64"
7297      ;;
7298    esac
7299   fi
7300  fi
7301  rm -rf conftest*
7302  ;;
7303
7304x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7305  # Find out which ABI we are using.
7306  echo 'int i;' > conftest.$ac_ext
7307  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7308  (eval $ac_compile) 2>&5
7309  ac_status=$?
7310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311  (exit $ac_status); }; then
7312    case `/usr/bin/file conftest.o` in
7313    *32-bit*)
7314      case $host in
7315        x86_64-*linux*)
7316          LD="${LD-ld} -m elf_i386"
7317          ;;
7318        ppc64-*linux*|powerpc64-*linux*)
7319          LD="${LD-ld} -m elf32ppclinux"
7320          ;;
7321        s390x-*linux*)
7322          LD="${LD-ld} -m elf_s390"
7323          ;;
7324        sparc64-*linux*)
7325          LD="${LD-ld} -m elf32_sparc"
7326          ;;
7327      esac
7328      ;;
7329    *64-bit*)
7330      case $host in
7331        x86_64-*linux*)
7332          LD="${LD-ld} -m elf_x86_64"
7333          ;;
7334        ppc*-*linux*|powerpc*-*linux*)
7335          LD="${LD-ld} -m elf64ppc"
7336          ;;
7337        s390*-*linux*)
7338          LD="${LD-ld} -m elf64_s390"
7339          ;;
7340        sparc*-*linux*)
7341          LD="${LD-ld} -m elf64_sparc"
7342          ;;
7343      esac
7344      ;;
7345    esac
7346  fi
7347  rm -rf conftest*
7348  ;;
7349
7350*-*-sco3.2v5*)
7351  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7352  SAVE_CFLAGS="$CFLAGS"
7353  CFLAGS="$CFLAGS -belf"
7354  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7355echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7356if test "${lt_cv_cc_needs_belf+set}" = set; then
7357  echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359  ac_ext=c
7360ac_cpp='$CPP $CPPFLAGS'
7361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364
7365     cat >conftest.$ac_ext <<_ACEOF
7366/* confdefs.h.  */
7367_ACEOF
7368cat confdefs.h >>conftest.$ac_ext
7369cat >>conftest.$ac_ext <<_ACEOF
7370/* end confdefs.h.  */
7371
7372#ifdef F77_DUMMY_MAIN
7373
7374#  ifdef __cplusplus
7375     extern "C"
7376#  endif
7377   int F77_DUMMY_MAIN() { return 1; }
7378
7379#endif
7380int
7381main ()
7382{
7383
7384  ;
7385  return 0;
7386}
7387_ACEOF
7388rm -f conftest.$ac_objext conftest$ac_exeext
7389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7390  (eval $ac_link) 2>conftest.er1
7391  ac_status=$?
7392  grep -v '^ *+' conftest.er1 >conftest.err
7393  rm -f conftest.er1
7394  cat conftest.err >&5
7395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396  (exit $ac_status); } &&
7397         { ac_try='test -z "$ac_c_werror_flag"
7398                         || test ! -s conftest.err'
7399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400  (eval $ac_try) 2>&5
7401  ac_status=$?
7402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403  (exit $ac_status); }; } &&
7404         { ac_try='test -s conftest$ac_exeext'
7405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406  (eval $ac_try) 2>&5
7407  ac_status=$?
7408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409  (exit $ac_status); }; }; then
7410  lt_cv_cc_needs_belf=yes
7411else
7412  echo "$as_me: failed program was:" >&5
7413sed 's/^/| /' conftest.$ac_ext >&5
7414
7415lt_cv_cc_needs_belf=no
7416fi
7417rm -f conftest.err conftest.$ac_objext \
7418      conftest$ac_exeext conftest.$ac_ext
7419     ac_ext=c
7420ac_cpp='$CPP $CPPFLAGS'
7421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7423ac_compiler_gnu=$ac_cv_c_compiler_gnu
7424
7425fi
7426echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7427echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7428  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7429    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7430    CFLAGS="$SAVE_CFLAGS"
7431  fi
7432  ;;
7433sparc*-*solaris*)
7434  # Find out which ABI we are using.
7435  echo 'int i;' > conftest.$ac_ext
7436  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7437  (eval $ac_compile) 2>&5
7438  ac_status=$?
7439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440  (exit $ac_status); }; then
7441    case `/usr/bin/file conftest.o` in
7442    *64-bit*)
7443      case $lt_cv_prog_gnu_ld in
7444      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7445      *)    LD="${LD-ld} -64" ;;
7446      esac
7447      ;;
7448    esac
7449  fi
7450  rm -rf conftest*
7451  ;;
7452
7453
7454esac
7455
7456need_locks="$enable_libtool_lock"
7457
7458
7459ac_ext=c
7460ac_cpp='$CPP $CPPFLAGS'
7461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463ac_compiler_gnu=$ac_cv_c_compiler_gnu
7464echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7465echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7466# On Suns, sometimes $CPP names a directory.
7467if test -n "$CPP" && test -d "$CPP"; then
7468  CPP=
7469fi
7470if test -z "$CPP"; then
7471  if test "${ac_cv_prog_CPP+set}" = set; then
7472  echo $ECHO_N "(cached) $ECHO_C" >&6
7473else
7474      # Double quotes because CPP needs to be expanded
7475    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7476    do
7477      ac_preproc_ok=false
7478for ac_c_preproc_warn_flag in '' yes
7479do
7480  # Use a header file that comes with gcc, so configuring glibc
7481  # with a fresh cross-compiler works.
7482  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7483  # <limits.h> exists even on freestanding compilers.
7484  # On the NeXT, cc -E runs the code through the compiler's parser,
7485  # not just through cpp. "Syntax error" is here to catch this case.
7486  cat >conftest.$ac_ext <<_ACEOF
7487/* confdefs.h.  */
7488_ACEOF
7489cat confdefs.h >>conftest.$ac_ext
7490cat >>conftest.$ac_ext <<_ACEOF
7491/* end confdefs.h.  */
7492#ifdef __STDC__
7493# include <limits.h>
7494#else
7495# include <assert.h>
7496#endif
7497                     Syntax error
7498_ACEOF
7499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7500  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7501  ac_status=$?
7502  grep -v '^ *+' conftest.er1 >conftest.err
7503  rm -f conftest.er1
7504  cat conftest.err >&5
7505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506  (exit $ac_status); } >/dev/null; then
7507  if test -s conftest.err; then
7508    ac_cpp_err=$ac_c_preproc_warn_flag
7509    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7510  else
7511    ac_cpp_err=
7512  fi
7513else
7514  ac_cpp_err=yes
7515fi
7516if test -z "$ac_cpp_err"; then
7517  :
7518else
7519  echo "$as_me: failed program was:" >&5
7520sed 's/^/| /' conftest.$ac_ext >&5
7521
7522  # Broken: fails on valid input.
7523continue
7524fi
7525rm -f conftest.err conftest.$ac_ext
7526
7527  # OK, works on sane cases.  Now check whether non-existent headers
7528  # can be detected and how.
7529  cat >conftest.$ac_ext <<_ACEOF
7530/* confdefs.h.  */
7531_ACEOF
7532cat confdefs.h >>conftest.$ac_ext
7533cat >>conftest.$ac_ext <<_ACEOF
7534/* end confdefs.h.  */
7535#include <ac_nonexistent.h>
7536_ACEOF
7537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7538  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7539  ac_status=$?
7540  grep -v '^ *+' conftest.er1 >conftest.err
7541  rm -f conftest.er1
7542  cat conftest.err >&5
7543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544  (exit $ac_status); } >/dev/null; then
7545  if test -s conftest.err; then
7546    ac_cpp_err=$ac_c_preproc_warn_flag
7547    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7548  else
7549    ac_cpp_err=
7550  fi
7551else
7552  ac_cpp_err=yes
7553fi
7554if test -z "$ac_cpp_err"; then
7555  # Broken: success on invalid input.
7556continue
7557else
7558  echo "$as_me: failed program was:" >&5
7559sed 's/^/| /' conftest.$ac_ext >&5
7560
7561  # Passes both tests.
7562ac_preproc_ok=:
7563break
7564fi
7565rm -f conftest.err conftest.$ac_ext
7566
7567done
7568# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7569rm -f conftest.err conftest.$ac_ext
7570if $ac_preproc_ok; then
7571  break
7572fi
7573
7574    done
7575    ac_cv_prog_CPP=$CPP
7576
7577fi
7578  CPP=$ac_cv_prog_CPP
7579else
7580  ac_cv_prog_CPP=$CPP
7581fi
7582echo "$as_me:$LINENO: result: $CPP" >&5
7583echo "${ECHO_T}$CPP" >&6
7584ac_preproc_ok=false
7585for ac_c_preproc_warn_flag in '' yes
7586do
7587  # Use a header file that comes with gcc, so configuring glibc
7588  # with a fresh cross-compiler works.
7589  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7590  # <limits.h> exists even on freestanding compilers.
7591  # On the NeXT, cc -E runs the code through the compiler's parser,
7592  # not just through cpp. "Syntax error" is here to catch this case.
7593  cat >conftest.$ac_ext <<_ACEOF
7594/* confdefs.h.  */
7595_ACEOF
7596cat confdefs.h >>conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h.  */
7599#ifdef __STDC__
7600# include <limits.h>
7601#else
7602# include <assert.h>
7603#endif
7604                     Syntax error
7605_ACEOF
7606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7607  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7608  ac_status=$?
7609  grep -v '^ *+' conftest.er1 >conftest.err
7610  rm -f conftest.er1
7611  cat conftest.err >&5
7612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613  (exit $ac_status); } >/dev/null; then
7614  if test -s conftest.err; then
7615    ac_cpp_err=$ac_c_preproc_warn_flag
7616    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7617  else
7618    ac_cpp_err=
7619  fi
7620else
7621  ac_cpp_err=yes
7622fi
7623if test -z "$ac_cpp_err"; then
7624  :
7625else
7626  echo "$as_me: failed program was:" >&5
7627sed 's/^/| /' conftest.$ac_ext >&5
7628
7629  # Broken: fails on valid input.
7630continue
7631fi
7632rm -f conftest.err conftest.$ac_ext
7633
7634  # OK, works on sane cases.  Now check whether non-existent headers
7635  # can be detected and how.
7636  cat >conftest.$ac_ext <<_ACEOF
7637/* confdefs.h.  */
7638_ACEOF
7639cat confdefs.h >>conftest.$ac_ext
7640cat >>conftest.$ac_ext <<_ACEOF
7641/* end confdefs.h.  */
7642#include <ac_nonexistent.h>
7643_ACEOF
7644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7645  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7646  ac_status=$?
7647  grep -v '^ *+' conftest.er1 >conftest.err
7648  rm -f conftest.er1
7649  cat conftest.err >&5
7650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651  (exit $ac_status); } >/dev/null; then
7652  if test -s conftest.err; then
7653    ac_cpp_err=$ac_c_preproc_warn_flag
7654    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7655  else
7656    ac_cpp_err=
7657  fi
7658else
7659  ac_cpp_err=yes
7660fi
7661if test -z "$ac_cpp_err"; then
7662  # Broken: success on invalid input.
7663continue
7664else
7665  echo "$as_me: failed program was:" >&5
7666sed 's/^/| /' conftest.$ac_ext >&5
7667
7668  # Passes both tests.
7669ac_preproc_ok=:
7670break
7671fi
7672rm -f conftest.err conftest.$ac_ext
7673
7674done
7675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7676rm -f conftest.err conftest.$ac_ext
7677if $ac_preproc_ok; then
7678  :
7679else
7680  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7681See \`config.log' for more details." >&5
7682echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7683See \`config.log' for more details." >&2;}
7684   { (exit 1); exit 1; }; }
7685fi
7686
7687ac_ext=c
7688ac_cpp='$CPP $CPPFLAGS'
7689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691ac_compiler_gnu=$ac_cv_c_compiler_gnu
7692
7693
7694echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7695echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7696if test "${ac_cv_header_stdc+set}" = set; then
7697  echo $ECHO_N "(cached) $ECHO_C" >&6
7698else
7699  cat >conftest.$ac_ext <<_ACEOF
7700/* confdefs.h.  */
7701_ACEOF
7702cat confdefs.h >>conftest.$ac_ext
7703cat >>conftest.$ac_ext <<_ACEOF
7704/* end confdefs.h.  */
7705#include <stdlib.h>
7706#include <stdarg.h>
7707#include <string.h>
7708#include <float.h>
7709
7710#ifdef F77_DUMMY_MAIN
7711
7712#  ifdef __cplusplus
7713     extern "C"
7714#  endif
7715   int F77_DUMMY_MAIN() { return 1; }
7716
7717#endif
7718int
7719main ()
7720{
7721
7722  ;
7723  return 0;
7724}
7725_ACEOF
7726rm -f conftest.$ac_objext
7727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7728  (eval $ac_compile) 2>conftest.er1
7729  ac_status=$?
7730  grep -v '^ *+' conftest.er1 >conftest.err
7731  rm -f conftest.er1
7732  cat conftest.err >&5
7733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734  (exit $ac_status); } &&
7735         { ac_try='test -z "$ac_c_werror_flag"
7736                         || test ! -s conftest.err'
7737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738  (eval $ac_try) 2>&5
7739  ac_status=$?
7740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741  (exit $ac_status); }; } &&
7742         { ac_try='test -s conftest.$ac_objext'
7743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744  (eval $ac_try) 2>&5
7745  ac_status=$?
7746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747  (exit $ac_status); }; }; then
7748  ac_cv_header_stdc=yes
7749else
7750  echo "$as_me: failed program was:" >&5
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
7753ac_cv_header_stdc=no
7754fi
7755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7756
7757if test $ac_cv_header_stdc = yes; then
7758  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7759  cat >conftest.$ac_ext <<_ACEOF
7760/* confdefs.h.  */
7761_ACEOF
7762cat confdefs.h >>conftest.$ac_ext
7763cat >>conftest.$ac_ext <<_ACEOF
7764/* end confdefs.h.  */
7765#include <string.h>
7766
7767_ACEOF
7768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7769  $EGREP "memchr" >/dev/null 2>&1; then
7770  :
7771else
7772  ac_cv_header_stdc=no
7773fi
7774rm -f conftest*
7775
7776fi
7777
7778if test $ac_cv_header_stdc = yes; then
7779  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7780  cat >conftest.$ac_ext <<_ACEOF
7781/* confdefs.h.  */
7782_ACEOF
7783cat confdefs.h >>conftest.$ac_ext
7784cat >>conftest.$ac_ext <<_ACEOF
7785/* end confdefs.h.  */
7786#include <stdlib.h>
7787
7788_ACEOF
7789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7790  $EGREP "free" >/dev/null 2>&1; then
7791  :
7792else
7793  ac_cv_header_stdc=no
7794fi
7795rm -f conftest*
7796
7797fi
7798
7799if test $ac_cv_header_stdc = yes; then
7800  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7801  if test "$cross_compiling" = yes; then
7802  :
7803else
7804  cat >conftest.$ac_ext <<_ACEOF
7805/* confdefs.h.  */
7806_ACEOF
7807cat confdefs.h >>conftest.$ac_ext
7808cat >>conftest.$ac_ext <<_ACEOF
7809/* end confdefs.h.  */
7810#include <ctype.h>
7811#if ((' ' & 0x0FF) == 0x020)
7812# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7813# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7814#else
7815# define ISLOWER(c) \
7816                   (('a' <= (c) && (c) <= 'i') \
7817                     || ('j' <= (c) && (c) <= 'r') \
7818                     || ('s' <= (c) && (c) <= 'z'))
7819# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7820#endif
7821
7822#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7823int
7824main ()
7825{
7826  int i;
7827  for (i = 0; i < 256; i++)
7828    if (XOR (islower (i), ISLOWER (i))
7829        || toupper (i) != TOUPPER (i))
7830      exit(2);
7831  exit (0);
7832}
7833_ACEOF
7834rm -f conftest$ac_exeext
7835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7836  (eval $ac_link) 2>&5
7837  ac_status=$?
7838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841  (eval $ac_try) 2>&5
7842  ac_status=$?
7843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844  (exit $ac_status); }; }; then
7845  :
7846else
7847  echo "$as_me: program exited with status $ac_status" >&5
7848echo "$as_me: failed program was:" >&5
7849sed 's/^/| /' conftest.$ac_ext >&5
7850
7851( exit $ac_status )
7852ac_cv_header_stdc=no
7853fi
7854rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7855fi
7856fi
7857fi
7858echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7859echo "${ECHO_T}$ac_cv_header_stdc" >&6
7860if test $ac_cv_header_stdc = yes; then
7861
7862cat >>confdefs.h <<\_ACEOF
7863#define STDC_HEADERS 1
7864_ACEOF
7865
7866fi
7867
7868# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7879                  inttypes.h stdint.h unistd.h
7880do
7881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7882echo "$as_me:$LINENO: checking for $ac_header" >&5
7883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7884if eval "test \"\${$as_ac_Header+set}\" = set"; then
7885  echo $ECHO_N "(cached) $ECHO_C" >&6
7886else
7887  cat >conftest.$ac_ext <<_ACEOF
7888/* confdefs.h.  */
7889_ACEOF
7890cat confdefs.h >>conftest.$ac_ext
7891cat >>conftest.$ac_ext <<_ACEOF
7892/* end confdefs.h.  */
7893$ac_includes_default
7894
7895#include <$ac_header>
7896_ACEOF
7897rm -f conftest.$ac_objext
7898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7899  (eval $ac_compile) 2>conftest.er1
7900  ac_status=$?
7901  grep -v '^ *+' conftest.er1 >conftest.err
7902  rm -f conftest.er1
7903  cat conftest.err >&5
7904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905  (exit $ac_status); } &&
7906         { ac_try='test -z "$ac_c_werror_flag"
7907                         || test ! -s conftest.err'
7908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909  (eval $ac_try) 2>&5
7910  ac_status=$?
7911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912  (exit $ac_status); }; } &&
7913         { ac_try='test -s conftest.$ac_objext'
7914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915  (eval $ac_try) 2>&5
7916  ac_status=$?
7917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918  (exit $ac_status); }; }; then
7919  eval "$as_ac_Header=yes"
7920else
7921  echo "$as_me: failed program was:" >&5
7922sed 's/^/| /' conftest.$ac_ext >&5
7923
7924eval "$as_ac_Header=no"
7925fi
7926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7927fi
7928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7930if test `eval echo '${'$as_ac_Header'}'` = yes; then
7931  cat >>confdefs.h <<_ACEOF
7932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7933_ACEOF
7934
7935fi
7936
7937done
7938
7939
7940
7941for ac_header in dlfcn.h
7942do
7943as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7944if eval "test \"\${$as_ac_Header+set}\" = set"; then
7945  echo "$as_me:$LINENO: checking for $ac_header" >&5
7946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7947if eval "test \"\${$as_ac_Header+set}\" = set"; then
7948  echo $ECHO_N "(cached) $ECHO_C" >&6
7949fi
7950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7951echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7952else
7953  # Is the header compilable?
7954echo "$as_me:$LINENO: checking $ac_header usability" >&5
7955echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7956cat >conftest.$ac_ext <<_ACEOF
7957/* confdefs.h.  */
7958_ACEOF
7959cat confdefs.h >>conftest.$ac_ext
7960cat >>conftest.$ac_ext <<_ACEOF
7961/* end confdefs.h.  */
7962$ac_includes_default
7963#include <$ac_header>
7964_ACEOF
7965rm -f conftest.$ac_objext
7966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7967  (eval $ac_compile) 2>conftest.er1
7968  ac_status=$?
7969  grep -v '^ *+' conftest.er1 >conftest.err
7970  rm -f conftest.er1
7971  cat conftest.err >&5
7972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973  (exit $ac_status); } &&
7974         { ac_try='test -z "$ac_c_werror_flag"
7975                         || test ! -s conftest.err'
7976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977  (eval $ac_try) 2>&5
7978  ac_status=$?
7979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980  (exit $ac_status); }; } &&
7981         { ac_try='test -s conftest.$ac_objext'
7982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983  (eval $ac_try) 2>&5
7984  ac_status=$?
7985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986  (exit $ac_status); }; }; then
7987  ac_header_compiler=yes
7988else
7989  echo "$as_me: failed program was:" >&5
7990sed 's/^/| /' conftest.$ac_ext >&5
7991
7992ac_header_compiler=no
7993fi
7994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7995echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7996echo "${ECHO_T}$ac_header_compiler" >&6
7997
7998# Is the header present?
7999echo "$as_me:$LINENO: checking $ac_header presence" >&5
8000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8001cat >conftest.$ac_ext <<_ACEOF
8002/* confdefs.h.  */
8003_ACEOF
8004cat confdefs.h >>conftest.$ac_ext
8005cat >>conftest.$ac_ext <<_ACEOF
8006/* end confdefs.h.  */
8007#include <$ac_header>
8008_ACEOF
8009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8010  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8011  ac_status=$?
8012  grep -v '^ *+' conftest.er1 >conftest.err
8013  rm -f conftest.er1
8014  cat conftest.err >&5
8015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016  (exit $ac_status); } >/dev/null; then
8017  if test -s conftest.err; then
8018    ac_cpp_err=$ac_c_preproc_warn_flag
8019    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8020  else
8021    ac_cpp_err=
8022  fi
8023else
8024  ac_cpp_err=yes
8025fi
8026if test -z "$ac_cpp_err"; then
8027  ac_header_preproc=yes
8028else
8029  echo "$as_me: failed program was:" >&5
8030sed 's/^/| /' conftest.$ac_ext >&5
8031
8032  ac_header_preproc=no
8033fi
8034rm -f conftest.err conftest.$ac_ext
8035echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8036echo "${ECHO_T}$ac_header_preproc" >&6
8037
8038# So?  What about this header?
8039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8040  yes:no: )
8041    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8043    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8044echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8045    ac_header_preproc=yes
8046    ;;
8047  no:yes:* )
8048    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8049echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8050    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8051echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8052    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8053echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8054    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8055echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8056    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8057echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8058    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8059echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8060    (
8061      cat <<\_ASBOX
8062## --------------------------------------------------------------- ##
8063## Report this to http://projects.coin-or.org/BuildTools/newticket ##
8064## --------------------------------------------------------------- ##
8065_ASBOX
8066    ) |
8067      sed "s/^/$as_me: WARNING:     /" >&2
8068    ;;
8069esac
8070echo "$as_me:$LINENO: checking for $ac_header" >&5
8071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8072if eval "test \"\${$as_ac_Header+set}\" = set"; then
8073  echo $ECHO_N "(cached) $ECHO_C" >&6
8074else
8075  eval "$as_ac_Header=\$ac_header_preproc"
8076fi
8077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8078echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8079
8080fi
8081if test `eval echo '${'$as_ac_Header'}'` = yes; then
8082  cat >>confdefs.h <<_ACEOF
8083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8084_ACEOF
8085
8086fi
8087
8088done
8089
8090ac_ext=cc
8091ac_cpp='$CXXCPP $CPPFLAGS'
8092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8095if test -n "$ac_tool_prefix"; then
8096  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8097  do
8098    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8099set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8100echo "$as_me:$LINENO: checking for $ac_word" >&5
8101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8102if test "${ac_cv_prog_CXX+set}" = set; then
8103  echo $ECHO_N "(cached) $ECHO_C" >&6
8104else
8105  if test -n "$CXX"; then
8106  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8107else
8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111  IFS=$as_save_IFS
8112  test -z "$as_dir" && as_dir=.
8113  for ac_exec_ext in '' $ac_executable_extensions; do
8114  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117    break 2
8118  fi
8119done
8120done
8121
8122fi
8123fi
8124CXX=$ac_cv_prog_CXX
8125if test -n "$CXX"; then
8126  echo "$as_me:$LINENO: result: $CXX" >&5
8127echo "${ECHO_T}$CXX" >&6
8128else
8129  echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6
8131fi
8132
8133    test -n "$CXX" && break
8134  done
8135fi
8136if test -z "$CXX"; then
8137  ac_ct_CXX=$CXX
8138  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8139do
8140  # Extract the first word of "$ac_prog", so it can be a program name with args.
8141set dummy $ac_prog; 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_CXX+set}" = set; then
8145  echo $ECHO_N "(cached) $ECHO_C" >&6
8146else
8147  if test -n "$ac_ct_CXX"; then
8148  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$ac_prog"
8158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159    break 2
8160  fi
8161done
8162done
8163
8164fi
8165fi
8166ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8167if test -n "$ac_ct_CXX"; then
8168  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8169echo "${ECHO_T}$ac_ct_CXX" >&6
8170else
8171  echo "$as_me:$LINENO: result: no" >&5
8172echo "${ECHO_T}no" >&6
8173fi
8174
8175  test -n "$ac_ct_CXX" && break
8176done
8177test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8178
8179  CXX=$ac_ct_CXX
8180fi
8181
8182
8183# Provide some information about the compiler.
8184echo "$as_me:$LINENO:" \
8185     "checking for C++ compiler version" >&5
8186ac_compiler=`set X $ac_compile; echo $2`
8187{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8188  (eval $ac_compiler --version </dev/null >&5) 2>&5
8189  ac_status=$?
8190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191  (exit $ac_status); }
8192{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8193  (eval $ac_compiler -v </dev/null >&5) 2>&5
8194  ac_status=$?
8195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196  (exit $ac_status); }
8197{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8198  (eval $ac_compiler -V </dev/null >&5) 2>&5
8199  ac_status=$?
8200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201  (exit $ac_status); }
8202
8203echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8204echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8205if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8206  echo $ECHO_N "(cached) $ECHO_C" >&6
8207else
8208  cat >conftest.$ac_ext <<_ACEOF
8209/* confdefs.h.  */
8210_ACEOF
8211cat confdefs.h >>conftest.$ac_ext
8212cat >>conftest.$ac_ext <<_ACEOF
8213/* end confdefs.h.  */
8214
8215#ifdef F77_DUMMY_MAIN
8216
8217#  ifdef __cplusplus
8218     extern "C"
8219#  endif
8220   int F77_DUMMY_MAIN() { return 1; }
8221
8222#endif
8223int
8224main ()
8225{
8226#ifndef __GNUC__
8227       choke me
8228#endif
8229
8230  ;
8231  return 0;
8232}
8233_ACEOF
8234rm -f conftest.$ac_objext
8235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8236  (eval $ac_compile) 2>conftest.er1
8237  ac_status=$?
8238  grep -v '^ *+' conftest.er1 >conftest.err
8239  rm -f conftest.er1
8240  cat conftest.err >&5
8241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242  (exit $ac_status); } &&
8243         { ac_try='test -z "$ac_cxx_werror_flag"
8244                         || test ! -s conftest.err'
8245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246  (eval $ac_try) 2>&5
8247  ac_status=$?
8248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249  (exit $ac_status); }; } &&
8250         { ac_try='test -s conftest.$ac_objext'
8251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252  (eval $ac_try) 2>&5
8253  ac_status=$?
8254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255  (exit $ac_status); }; }; then
8256  ac_compiler_gnu=yes
8257else
8258  echo "$as_me: failed program was:" >&5
8259sed 's/^/| /' conftest.$ac_ext >&5
8260
8261ac_compiler_gnu=no
8262fi
8263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8264ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8265
8266fi
8267echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8268echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8269GXX=`test $ac_compiler_gnu = yes && echo yes`
8270ac_test_CXXFLAGS=${CXXFLAGS+set}
8271ac_save_CXXFLAGS=$CXXFLAGS
8272CXXFLAGS="-g"
8273echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8274echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8275if test "${ac_cv_prog_cxx_g+set}" = set; then
8276  echo $ECHO_N "(cached) $ECHO_C" >&6
8277else
8278  cat >conftest.$ac_ext <<_ACEOF
8279/* confdefs.h.  */
8280_ACEOF
8281cat confdefs.h >>conftest.$ac_ext
8282cat >>conftest.$ac_ext <<_ACEOF
8283/* end confdefs.h.  */
8284
8285#ifdef F77_DUMMY_MAIN
8286
8287#  ifdef __cplusplus
8288     extern "C"
8289#  endif
8290   int F77_DUMMY_MAIN() { return 1; }
8291
8292#endif
8293int
8294main ()
8295{
8296
8297  ;
8298  return 0;
8299}
8300_ACEOF
8301rm -f conftest.$ac_objext
8302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8303  (eval $ac_compile) 2>conftest.er1
8304  ac_status=$?
8305  grep -v '^ *+' conftest.er1 >conftest.err
8306  rm -f conftest.er1
8307  cat conftest.err >&5
8308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309  (exit $ac_status); } &&
8310         { ac_try='test -z "$ac_cxx_werror_flag"
8311                         || test ! -s conftest.err'
8312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313  (eval $ac_try) 2>&5
8314  ac_status=$?
8315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316  (exit $ac_status); }; } &&
8317         { ac_try='test -s conftest.$ac_objext'
8318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319  (eval $ac_try) 2>&5
8320  ac_status=$?
8321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322  (exit $ac_status); }; }; then
8323  ac_cv_prog_cxx_g=yes
8324else
8325  echo "$as_me: failed program was:" >&5
8326sed 's/^/| /' conftest.$ac_ext >&5
8327
8328ac_cv_prog_cxx_g=no
8329fi
8330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8331fi
8332echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8333echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8334if test "$ac_test_CXXFLAGS" = set; then
8335  CXXFLAGS=$ac_save_CXXFLAGS
8336elif test $ac_cv_prog_cxx_g = yes; then
8337  if test "$GXX" = yes; then
8338    CXXFLAGS="-g -O2"
8339  else
8340    CXXFLAGS="-g"
8341  fi
8342else
8343  if test "$GXX" = yes; then
8344    CXXFLAGS="-O2"
8345  else
8346    CXXFLAGS=
8347  fi
8348fi
8349for ac_declaration in \
8350   '' \
8351   'extern "C" void std::exit (int) throw (); using std::exit;' \
8352   'extern "C" void std::exit (int); using std::exit;' \
8353   'extern "C" void exit (int) throw ();' \
8354   'extern "C" void exit (int);' \
8355   'void exit (int);'
8356do
8357  cat >conftest.$ac_ext <<_ACEOF
8358/* confdefs.h.  */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h.  */
8363$ac_declaration
8364#include <stdlib.h>
8365#ifdef F77_DUMMY_MAIN
8366
8367#  ifdef __cplusplus
8368     extern "C"
8369#  endif
8370   int F77_DUMMY_MAIN() { return 1; }
8371
8372#endif
8373int
8374main ()
8375{
8376exit (42);
8377  ;
8378  return 0;
8379}
8380_ACEOF
8381rm -f conftest.$ac_objext
8382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8383  (eval $ac_compile) 2>conftest.er1
8384  ac_status=$?
8385  grep -v '^ *+' conftest.er1 >conftest.err
8386  rm -f conftest.er1
8387  cat conftest.err >&5
8388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389  (exit $ac_status); } &&
8390         { ac_try='test -z "$ac_cxx_werror_flag"
8391                         || test ! -s conftest.err'
8392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393  (eval $ac_try) 2>&5
8394  ac_status=$?
8395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396  (exit $ac_status); }; } &&
8397         { ac_try='test -s conftest.$ac_objext'
8398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399  (eval $ac_try) 2>&5
8400  ac_status=$?
8401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402  (exit $ac_status); }; }; then
8403  :
8404else
8405  echo "$as_me: failed program was:" >&5
8406sed 's/^/| /' conftest.$ac_ext >&5
8407
8408continue
8409fi
8410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8411  cat >conftest.$ac_ext <<_ACEOF
8412/* confdefs.h.  */
8413_ACEOF
8414cat confdefs.h >>conftest.$ac_ext
8415cat >>conftest.$ac_ext <<_ACEOF
8416/* end confdefs.h.  */
8417$ac_declaration
8418#ifdef F77_DUMMY_MAIN
8419
8420#  ifdef __cplusplus
8421     extern "C"
8422#  endif
8423   int F77_DUMMY_MAIN() { return 1; }
8424
8425#endif
8426int
8427main ()
8428{
8429exit (42);
8430  ;
8431  return 0;
8432}
8433_ACEOF
8434rm -f conftest.$ac_objext
8435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8436  (eval $ac_compile) 2>conftest.er1
8437  ac_status=$?
8438  grep -v '^ *+' conftest.er1 >conftest.err
8439  rm -f conftest.er1
8440  cat conftest.err >&5
8441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442  (exit $ac_status); } &&
8443         { ac_try='test -z "$ac_cxx_werror_flag"
8444                         || test ! -s conftest.err'
8445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446  (eval $ac_try) 2>&5
8447  ac_status=$?
8448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449  (exit $ac_status); }; } &&
8450         { ac_try='test -s conftest.$ac_objext'
8451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452  (eval $ac_try) 2>&5
8453  ac_status=$?
8454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455  (exit $ac_status); }; }; then
8456  break
8457else
8458  echo "$as_me: failed program was:" >&5
8459sed 's/^/| /' conftest.$ac_ext >&5
8460
8461fi
8462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8463done
8464rm -f conftest*
8465if test -n "$ac_declaration"; then
8466  echo '#ifdef __cplusplus' >>confdefs.h
8467  echo $ac_declaration      >>confdefs.h
8468  echo '#endif'             >>confdefs.h
8469fi
8470
8471ac_ext=cc
8472ac_cpp='$CXXCPP $CPPFLAGS'
8473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8476
8477depcc="$CXX"  am_compiler_list=
8478
8479echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8480echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8481if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8482  echo $ECHO_N "(cached) $ECHO_C" >&6
8483else
8484  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8485  # We make a subdir and do the tests there.  Otherwise we can end up
8486  # making bogus files that we don't know about and never remove.  For
8487  # instance it was reported that on HP-UX the gcc test will end up
8488  # making a dummy file named `D' -- because `-MD' means `put the output
8489  # in D'.
8490  mkdir conftest.dir
8491  # Copy depcomp to subdir because otherwise we won't find it if we're
8492  # using a relative directory.
8493  cp "$am_depcomp" conftest.dir
8494  cd conftest.dir
8495  # We will build objects and dependencies in a subdirectory because
8496  # it helps to detect inapplicable dependency modes.  For instance
8497  # both Tru64's cc and ICC support -MD to output dependencies as a
8498  # side effect of compilation, but ICC will put the dependencies in
8499  # the current directory while Tru64 will put them in the object
8500  # directory.
8501  mkdir sub
8502
8503  am_cv_CXX_dependencies_compiler_type=none
8504  if test "$am_compiler_list" = ""; then
8505     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8506  fi
8507  for depmode in $am_compiler_list; do
8508    # Setup a source with many dependencies, because some compilers
8509    # like to wrap large dependency lists on column 80 (with \), and
8510    # we should not choose a depcomp mode which is confused by this.
8511    #
8512    # We need to recreate these files for each test, as the compiler may
8513    # overwrite some of them when testing with obscure command lines.
8514    # This happens at least with the AIX C compiler.
8515    : > sub/conftest.c
8516    for i in 1 2 3 4 5 6; do
8517      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8518      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8519      # Solaris 8's {/usr,}/bin/sh.
8520      touch sub/conftst$i.h
8521    done
8522    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8523
8524    case $depmode in
8525    nosideeffect)
8526      # after this tag, mechanisms are not by side-effect, so they'll
8527      # only be used when explicitly requested
8528      if test "x$enable_dependency_tracking" = xyes; then
8529        continue
8530      else
8531        break
8532      fi
8533      ;;
8534    none) break ;;
8535    esac
8536    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8537    # mode.  It turns out that the SunPro C++ compiler does not properly
8538    # handle `-M -o', and we need to detect this.
8539    if depmode=$depmode \
8540       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8541       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8542       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8543         >/dev/null 2>conftest.err &&
8544       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8545       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8546       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8547      # icc doesn't choke on unknown options, it will just issue warnings
8548      # or remarks (even with -Werror).  So we grep stderr for any message
8549      # that says an option was ignored or not supported.
8550      # When given -MP, icc 7.0 and 7.1 complain thusly:
8551      #   icc: Command line warning: ignoring option '-M'; no argument required
8552      # The diagnosis changed in icc 8.0:
8553      #   icc: Command line remark: option '-MP' not supported
8554      if (grep 'ignoring option' conftest.err ||
8555          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8556        am_cv_CXX_dependencies_compiler_type=$depmode
8557        break
8558      fi
8559    fi
8560  done
8561
8562  cd ..
8563  rm -rf conftest.dir
8564else
8565  am_cv_CXX_dependencies_compiler_type=none
8566fi
8567
8568fi
8569echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8570echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8571CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8572
8573
8574
8575if
8576  test "x$enable_dependency_tracking" != xno \
8577  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8578  am__fastdepCXX_TRUE=
8579  am__fastdepCXX_FALSE='#'
8580else
8581  am__fastdepCXX_TRUE='#'
8582  am__fastdepCXX_FALSE=
8583fi
8584
8585
8586depcc="$CXX"  am_compiler_list=
8587
8588echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8589echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8590if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8591  echo $ECHO_N "(cached) $ECHO_C" >&6
8592else
8593  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8594  # We make a subdir and do the tests there.  Otherwise we can end up
8595  # making bogus files that we don't know about and never remove.  For
8596  # instance it was reported that on HP-UX the gcc test will end up
8597  # making a dummy file named `D' -- because `-MD' means `put the output
8598  # in D'.
8599  mkdir conftest.dir
8600  # Copy depcomp to subdir because otherwise we won't find it if we're
8601  # using a relative directory.
8602  cp "$am_depcomp" conftest.dir
8603  cd conftest.dir
8604  # We will build objects and dependencies in a subdirectory because
8605  # it helps to detect inapplicable dependency modes.  For instance
8606  # both Tru64's cc and ICC support -MD to output dependencies as a
8607  # side effect of compilation, but ICC will put the dependencies in
8608  # the current directory while Tru64 will put them in the object
8609  # directory.
8610  mkdir sub
8611
8612  am_cv_CXX_dependencies_compiler_type=none
8613  if test "$am_compiler_list" = ""; then
8614     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8615  fi
8616  for depmode in $am_compiler_list; do
8617    # Setup a source with many dependencies, because some compilers
8618    # like to wrap large dependency lists on column 80 (with \), and
8619    # we should not choose a depcomp mode which is confused by this.
8620    #
8621    # We need to recreate these files for each test, as the compiler may
8622    # overwrite some of them when testing with obscure command lines.
8623    # This happens at least with the AIX C compiler.
8624    : > sub/conftest.c
8625    for i in 1 2 3 4 5 6; do
8626      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8627      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8628      # Solaris 8's {/usr,}/bin/sh.
8629      touch sub/conftst$i.h
8630    done
8631    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8632
8633    case $depmode in
8634    nosideeffect)
8635      # after this tag, mechanisms are not by side-effect, so they'll
8636      # only be used when explicitly requested
8637      if test "x$enable_dependency_tracking" = xyes; then
8638        continue
8639      else
8640        break
8641      fi
8642      ;;
8643    none) break ;;
8644    esac
8645    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8646    # mode.  It turns out that the SunPro C++ compiler does not properly
8647    # handle `-M -o', and we need to detect this.
8648    if depmode=$depmode \
8649       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8650       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8651       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8652         >/dev/null 2>conftest.err &&
8653       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8654       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8655       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8656      # icc doesn't choke on unknown options, it will just issue warnings
8657      # or remarks (even with -Werror).  So we grep stderr for any message
8658      # that says an option was ignored or not supported.
8659      # When given -MP, icc 7.0 and 7.1 complain thusly:
8660      #   icc: Command line warning: ignoring option '-M'; no argument required
8661      # The diagnosis changed in icc 8.0:
8662      #   icc: Command line remark: option '-MP' not supported
8663      if (grep 'ignoring option' conftest.err ||
8664          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8665        am_cv_CXX_dependencies_compiler_type=$depmode
8666        break
8667      fi
8668    fi
8669  done
8670
8671  cd ..
8672  rm -rf conftest.dir
8673else
8674  am_cv_CXX_dependencies_compiler_type=none
8675fi
8676
8677fi
8678echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8679echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8680CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8681
8682
8683
8684if
8685  test "x$enable_dependency_tracking" != xno \
8686  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8687  am__fastdepCXX_TRUE=
8688  am__fastdepCXX_FALSE='#'
8689else
8690  am__fastdepCXX_TRUE='#'
8691  am__fastdepCXX_FALSE=
8692fi
8693
8694
8695
8696
8697if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8698    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8699    (test "X$CXX" != "Xg++"))) ; then
8700  ac_ext=cc
8701ac_cpp='$CXXCPP $CPPFLAGS'
8702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8705echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8706echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8707if test -z "$CXXCPP"; then
8708  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8709  echo $ECHO_N "(cached) $ECHO_C" >&6
8710else
8711      # Double quotes because CXXCPP needs to be expanded
8712    for CXXCPP in "$CXX -E" "/lib/cpp"
8713    do
8714      ac_preproc_ok=false
8715for ac_cxx_preproc_warn_flag in '' yes
8716do
8717  # Use a header file that comes with gcc, so configuring glibc
8718  # with a fresh cross-compiler works.
8719  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720  # <limits.h> exists even on freestanding compilers.
8721  # On the NeXT, cc -E runs the code through the compiler's parser,
8722  # not just through cpp. "Syntax error" is here to catch this case.
8723  cat >conftest.$ac_ext <<_ACEOF
8724/* confdefs.h.  */
8725_ACEOF
8726cat confdefs.h >>conftest.$ac_ext
8727cat >>conftest.$ac_ext <<_ACEOF
8728/* end confdefs.h.  */
8729#ifdef __STDC__
8730# include <limits.h>
8731#else
8732# include <assert.h>
8733#endif
8734                     Syntax error
8735_ACEOF
8736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8737  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8738  ac_status=$?
8739  grep -v '^ *+' conftest.er1 >conftest.err
8740  rm -f conftest.er1
8741  cat conftest.err >&5
8742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743  (exit $ac_status); } >/dev/null; then
8744  if test -s conftest.err; then
8745    ac_cpp_err=$ac_cxx_preproc_warn_flag
8746    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8747  else
8748    ac_cpp_err=
8749  fi
8750else
8751  ac_cpp_err=yes
8752fi
8753if test -z "$ac_cpp_err"; then
8754  :
8755else
8756  echo "$as_me: failed program was:" >&5
8757sed 's/^/| /' conftest.$ac_ext >&5
8758
8759  # Broken: fails on valid input.
8760continue
8761fi
8762rm -f conftest.err conftest.$ac_ext
8763
8764  # OK, works on sane cases.  Now check whether non-existent headers
8765  # can be detected and how.
8766  cat >conftest.$ac_ext <<_ACEOF
8767/* confdefs.h.  */
8768_ACEOF
8769cat confdefs.h >>conftest.$ac_ext
8770cat >>conftest.$ac_ext <<_ACEOF
8771/* end confdefs.h.  */
8772#include <ac_nonexistent.h>
8773_ACEOF
8774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8775  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8776  ac_status=$?
8777  grep -v '^ *+' conftest.er1 >conftest.err
8778  rm -f conftest.er1
8779  cat conftest.err >&5
8780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781  (exit $ac_status); } >/dev/null; then
8782  if test -s conftest.err; then
8783    ac_cpp_err=$ac_cxx_preproc_warn_flag
8784    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8785  else
8786    ac_cpp_err=
8787  fi
8788else
8789  ac_cpp_err=yes
8790fi
8791if test -z "$ac_cpp_err"; then
8792  # Broken: success on invalid input.
8793continue
8794else
8795  echo "$as_me: failed program was:" >&5
8796sed 's/^/| /' conftest.$ac_ext >&5
8797
8798  # Passes both tests.
8799ac_preproc_ok=:
8800break
8801fi
8802rm -f conftest.err conftest.$ac_ext
8803
8804done
8805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8806rm -f conftest.err conftest.$ac_ext
8807if $ac_preproc_ok; then
8808  break
8809fi
8810
8811    done
8812    ac_cv_prog_CXXCPP=$CXXCPP
8813
8814fi
8815  CXXCPP=$ac_cv_prog_CXXCPP
8816else
8817  ac_cv_prog_CXXCPP=$CXXCPP
8818fi
8819echo "$as_me:$LINENO: result: $CXXCPP" >&5
8820echo "${ECHO_T}$CXXCPP" >&6
8821ac_preproc_ok=false
8822for ac_cxx_preproc_warn_flag in '' yes
8823do
8824  # Use a header file that comes with gcc, so configuring glibc
8825  # with a fresh cross-compiler works.
8826  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8827  # <limits.h> exists even on freestanding compilers.
8828  # On the NeXT, cc -E runs the code through the compiler's parser,
8829  # not just through cpp. "Syntax error" is here to catch this case.
8830  cat >conftest.$ac_ext <<_ACEOF
8831/* confdefs.h.  */
8832_ACEOF
8833cat confdefs.h >>conftest.$ac_ext
8834cat >>conftest.$ac_ext <<_ACEOF
8835/* end confdefs.h.  */
8836#ifdef __STDC__
8837# include <limits.h>
8838#else
8839# include <assert.h>
8840#endif
8841                     Syntax error
8842_ACEOF
8843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8844  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8845  ac_status=$?
8846  grep -v '^ *+' conftest.er1 >conftest.err
8847  rm -f conftest.er1
8848  cat conftest.err >&5
8849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850  (exit $ac_status); } >/dev/null; then
8851  if test -s conftest.err; then
8852    ac_cpp_err=$ac_cxx_preproc_warn_flag
8853    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8854  else
8855    ac_cpp_err=
8856  fi
8857else
8858  ac_cpp_err=yes
8859fi
8860if test -z "$ac_cpp_err"; then
8861  :
8862else
8863  echo "$as_me: failed program was:" >&5
8864sed 's/^/| /' conftest.$ac_ext >&5
8865
8866  # Broken: fails on valid input.
8867continue
8868fi
8869rm -f conftest.err conftest.$ac_ext
8870
8871  # OK, works on sane cases.  Now check whether non-existent headers
8872  # can be detected and how.
8873  cat >conftest.$ac_ext <<_ACEOF
8874/* confdefs.h.  */
8875_ACEOF
8876cat confdefs.h >>conftest.$ac_ext
8877cat >>conftest.$ac_ext <<_ACEOF
8878/* end confdefs.h.  */
8879#include <ac_nonexistent.h>
8880_ACEOF
8881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8882  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8883  ac_status=$?
8884  grep -v '^ *+' conftest.er1 >conftest.err
8885  rm -f conftest.er1
8886  cat conftest.err >&5
8887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888  (exit $ac_status); } >/dev/null; then
8889  if test -s conftest.err; then
8890    ac_cpp_err=$ac_cxx_preproc_warn_flag
8891    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8892  else
8893    ac_cpp_err=
8894  fi
8895else
8896  ac_cpp_err=yes
8897fi
8898if test -z "$ac_cpp_err"; then
8899  # Broken: success on invalid input.
8900continue
8901else
8902  echo "$as_me: failed program was:" >&5
8903sed 's/^/| /' conftest.$ac_ext >&5
8904
8905  # Passes both tests.
8906ac_preproc_ok=:
8907break
8908fi
8909rm -f conftest.err conftest.$ac_ext
8910
8911done
8912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8913rm -f conftest.err conftest.$ac_ext
8914if $ac_preproc_ok; then
8915  :
8916else
8917  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8918See \`config.log' for more details." >&5
8919echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8920See \`config.log' for more details." >&2;}
8921   { (exit 1); exit 1; }; }
8922fi
8923
8924ac_ext=cc
8925ac_cpp='$CXXCPP $CPPFLAGS'
8926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8929
8930fi
8931
8932
8933
8934# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8935
8936# find the maximum length of command line arguments
8937echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8938echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8939if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8940  echo $ECHO_N "(cached) $ECHO_C" >&6
8941else
8942    i=0
8943  teststring="ABCD"
8944
8945  case $build_os in
8946  msdosdjgpp*)
8947    # On DJGPP, this test can blow up pretty badly due to problems in libc
8948    # (any single argument exceeding 2000 bytes causes a buffer overrun
8949    # during glob expansion).  Even if it were fixed, the result of this
8950    # check would be larger than it should be.
8951    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8952    ;;
8953
8954  gnu*)
8955    # Under GNU Hurd, this test is not required because there is
8956    # no limit to the length of command line arguments.
8957    # Libtool will interpret -1 as no limit whatsoever
8958    lt_cv_sys_max_cmd_len=-1;
8959    ;;
8960
8961  cygwin* | mingw*)
8962    # On Win9x/ME, this test blows up -- it succeeds, but takes
8963    # about 5 minutes as the teststring grows exponentially.
8964    # Worse, since 9x/ME are not pre-emptively multitasking,
8965    # you end up with a "frozen" computer, even though with patience
8966    # the test eventually succeeds (with a max line length of 256k).
8967    # Instead, let's just punt: use the minimum linelength reported by
8968    # all of the supported platforms: 8192 (on NT/2K/XP).
8969    lt_cv_sys_max_cmd_len=8192;
8970    ;;
8971
8972  amigaos*)
8973    # On AmigaOS with pdksh, this test takes hours, literally.
8974    # So we just punt and use a minimum line length of 8192.
8975    lt_cv_sys_max_cmd_len=8192;
8976    ;;
8977
8978  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8979    # This has been around since 386BSD, at least.  Likely further.
8980    if test -x /sbin/sysctl; then
8981      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8982    elif test -x /usr/sbin/sysctl; then
8983      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8984    else
8985      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8986    fi
8987    # And add a safety zone
8988    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8989    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8990    ;;
8991
8992  interix*)
8993    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8994    lt_cv_sys_max_cmd_len=196608
8995    ;;
8996
8997  osf*)
8998    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8999    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9000    # nice to cause kernel panics so lets avoid the loop below.
9001    # First set a reasonable default.
9002    lt_cv_sys_max_cmd_len=16384
9003    #
9004    if test -x /sbin/sysconfig; then
9005      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9006        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9007      esac
9008    fi
9009    ;;
9010  sco3.2v5*)
9011    lt_cv_sys_max_cmd_len=102400
9012    ;;
9013  sysv5* | sco5v6* | sysv4.2uw2*)
9014    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9015    if test -n "$kargmax"; then
9016      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
9017    else
9018      lt_cv_sys_max_cmd_len=32768
9019    fi
9020    ;;
9021  *)
9022    # If test is not a shell built-in, we'll probably end up computing a
9023    # maximum length that is only half of the actual maximum length, but
9024    # we can't tell.
9025    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9026    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9027               = "XX$teststring") >/dev/null 2>&1 &&
9028            new_result=`expr "X$teststring" : ".*" 2>&1` &&
9029            lt_cv_sys_max_cmd_len=$new_result &&
9030            test $i != 17 # 1/2 MB should be enough
9031    do
9032      i=`expr $i + 1`
9033      teststring=$teststring$teststring
9034    done
9035    teststring=
9036    # Add a significant safety factor because C++ compilers can tack on massive
9037    # amounts of additional arguments before passing them to the linker.
9038    # It appears as though 1/2 is a usable value.
9039    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9040    ;;
9041  esac
9042
9043fi
9044
9045if test -n $lt_cv_sys_max_cmd_len ; then
9046  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9047echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9048else
9049  echo "$as_me:$LINENO: result: none" >&5
9050echo "${ECHO_T}none" >&6
9051fi
9052
9053
9054
9055
9056# Check for command to grab the raw symbol name followed by C symbol from nm.
9057echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9058echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9059if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9060  echo $ECHO_N "(cached) $ECHO_C" >&6
9061else
9062
9063# These are sane defaults that work on at least a few old systems.
9064# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9065
9066# Character class describing NM global symbol codes.
9067symcode='[BCDEGRST]'
9068
9069# Regexp to match symbols that can be accessed directly from C.
9070sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9071
9072# Transform an extracted symbol line into a proper C declaration
9073lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9074
9075# Transform an extracted symbol line into symbol name and symbol address
9076lt_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'"
9077
9078# Define system-specific variables.
9079case $host_os in
9080aix*)
9081  symcode='[BCDT]'
9082  ;;
9083cygwin* | mingw* | pw32*)
9084  symcode='[ABCDGISTW]'
9085  ;;
9086hpux*) # Its linker distinguishes data from code symbols
9087  if test "$host_cpu" = ia64; then
9088    symcode='[ABCDEGRST]'
9089  fi
9090  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9091  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'"
9092  ;;
9093linux*)
9094  if test "$host_cpu" = ia64; then
9095    symcode='[ABCDGIRSTW]'
9096    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9097    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'"
9098  fi
9099  ;;
9100irix* | nonstopux*)
9101  symcode='[BCDEGRST]'
9102  ;;
9103osf*)
9104  symcode='[BCDEGQRST]'
9105  ;;
9106solaris*)
9107  symcode='[BDRT]'
9108  ;;
9109sco3.2v5*)
9110  symcode='[DT]'
9111  ;;
9112sysv4.2uw2*)
9113  symcode='[DT]'
9114  ;;
9115sysv5* | sco5v6* | unixware* | OpenUNIX*)
9116  symcode='[ABDT]'
9117  ;;
9118sysv4)
9119  symcode='[DFNSTU]'
9120  ;;
9121esac
9122
9123# Handle CRLF in mingw tool chain
9124opt_cr=
9125case $build_os in
9126mingw*)
9127  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9128  ;;
9129esac
9130
9131# If we're using GNU nm, then use its standard symbol codes.
9132case `$NM -V 2>&1` in
9133*GNU* | *'with BFD'*)
9134  symcode='[ABCDGIRSTW]' ;;
9135esac
9136
9137# Try without a prefix undercore, then with it.
9138for ac_symprfx in "" "_"; do
9139
9140  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9141  symxfrm="\\1 $ac_symprfx\\2 \\2"
9142
9143  # Write the raw and C identifiers.
9144  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9145
9146  # Check to see that the pipe works correctly.
9147  pipe_works=no
9148
9149  rm -f conftest*
9150  cat > conftest.$ac_ext <<EOF
9151#ifdef __cplusplus
9152extern "C" {
9153#endif
9154char nm_test_var;
9155void nm_test_func(){}
9156#ifdef __cplusplus
9157}
9158#endif
9159int main(){nm_test_var='a';nm_test_func();return(0);}
9160EOF
9161
9162  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9163  (eval $ac_compile) 2>&5
9164  ac_status=$?
9165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166  (exit $ac_status); }; then
9167    # Now try to grab the symbols.
9168    nlist=conftest.nm
9169    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9170  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9171  ac_status=$?
9172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173  (exit $ac_status); } && test -s "$nlist"; then
9174      # Try sorting and uniquifying the output.
9175      if sort "$nlist" | uniq > "$nlist"T; then
9176        mv -f "$nlist"T "$nlist"
9177      else
9178        rm -f "$nlist"T
9179      fi
9180
9181      # Make sure that we snagged all the symbols we need.
9182      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9183        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9184          cat <<EOF > conftest.$ac_ext
9185#ifdef __cplusplus
9186extern "C" {
9187#endif
9188
9189EOF
9190          # Now generate the symbol file.
9191          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9192
9193          cat <<EOF >> conftest.$ac_ext
9194#if defined (__STDC__) && __STDC__
9195# define lt_ptr_t void *
9196#else
9197# define lt_ptr_t char *
9198# define const
9199#endif
9200
9201/* The mapping between symbol names and symbols. */
9202const struct {
9203  const char *name;
9204  lt_ptr_t address;
9205}
9206lt_preloaded_symbols[] =
9207{
9208EOF
9209          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9210          cat <<\EOF >> conftest.$ac_ext
9211  {0, (lt_ptr_t) 0}
9212};
9213
9214#ifdef __cplusplus
9215}
9216#endif
9217EOF
9218          # Now try linking the two files.
9219          mv conftest.$ac_objext conftstm.$ac_objext
9220          lt_save_LIBS="$LIBS"
9221          lt_save_CFLAGS="$CFLAGS"
9222          LIBS="conftstm.$ac_objext"
9223          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9224          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225  (eval $ac_link) 2>&5
9226  ac_status=$?
9227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9229            pipe_works=yes
9230          fi
9231          LIBS="$lt_save_LIBS"
9232          CFLAGS="$lt_save_CFLAGS"
9233        else
9234          echo "cannot find nm_test_func in $nlist" >&5
9235        fi
9236      else
9237        echo "cannot find nm_test_var in $nlist" >&5
9238      fi
9239    else
9240      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9241    fi
9242  else
9243    echo "$progname: failed program was:" >&5
9244    cat conftest.$ac_ext >&5
9245  fi
9246  rm -f conftest* conftst*
9247
9248  # Do not use the global_symbol_pipe unless it works.
9249  if test "$pipe_works" = yes; then
9250    break
9251  else
9252    lt_cv_sys_global_symbol_pipe=
9253  fi
9254done
9255
9256fi
9257
9258if test -z "$lt_cv_sys_global_symbol_pipe"; then
9259  lt_cv_sys_global_symbol_to_cdecl=
9260fi
9261if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9262  echo "$as_me:$LINENO: result: failed" >&5
9263echo "${ECHO_T}failed" >&6
9264else
9265  echo "$as_me:$LINENO: result: ok" >&5
9266echo "${ECHO_T}ok" >&6
9267fi
9268
9269echo "$as_me:$LINENO: checking for objdir" >&5
9270echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9271if test "${lt_cv_objdir+set}" = set; then
9272  echo $ECHO_N "(cached) $ECHO_C" >&6
9273else
9274  rm -f .libs 2>/dev/null
9275mkdir .libs 2>/dev/null
9276if test -d .libs; then
9277  lt_cv_objdir=.libs
9278else
9279  # MS-DOS does not allow filenames that begin with a dot.
9280  lt_cv_objdir=_libs
9281fi
9282rmdir .libs 2>/dev/null
9283fi
9284echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9285echo "${ECHO_T}$lt_cv_objdir" >&6
9286objdir=$lt_cv_objdir
9287
9288
9289
9290
9291
9292case $host_os in
9293aix3*)
9294  # AIX sometimes has problems with the GCC collect2 program.  For some
9295  # reason, if we set the COLLECT_NAMES environment variable, the problems
9296  # vanish in a puff of smoke.
9297  if test "X${COLLECT_NAMES+set}" != Xset; then
9298    COLLECT_NAMES=
9299    export COLLECT_NAMES
9300  fi
9301  ;;
9302esac
9303
9304# Sed substitution that helps us do robust quoting.  It backslashifies
9305# metacharacters that are still active within double-quoted strings.
9306Xsed='sed -e 1s/^X//'
9307sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9308
9309# Same as above, but do not quote variable references.
9310double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9311
9312# Sed substitution to delay expansion of an escaped shell variable in a
9313# double_quote_subst'ed string.
9314delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9315
9316# Sed substitution to avoid accidental globbing in evaled expressions
9317no_glob_subst='s/\*/\\\*/g'
9318
9319# Constants:
9320rm="rm -f"
9321
9322# Global variables:
9323default_ofile=libtool
9324can_build_shared=yes
9325
9326# All known linkers require a `.a' archive for static linking (except MSVC,
9327# which needs '.lib').
9328libext=a
9329ltmain="$ac_aux_dir/ltmain.sh"
9330ofile="$default_ofile"
9331with_gnu_ld="$lt_cv_prog_gnu_ld"
9332
9333if test -n "$ac_tool_prefix"; then
9334  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9335set dummy ${ac_tool_prefix}ar; ac_word=$2
9336echo "$as_me:$LINENO: checking for $ac_word" >&5
9337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9338if test "${ac_cv_prog_AR+set}" = set; then
9339  echo $ECHO_N "(cached) $ECHO_C" >&6
9340else
9341  if test -n "$AR"; then
9342  ac_cv_prog_AR="$AR" # Let the user override the test.
9343else
9344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345for as_dir in $PATH
9346do
9347  IFS=$as_save_IFS
9348  test -z "$as_dir" && as_dir=.
9349  for ac_exec_ext in '' $ac_executable_extensions; do
9350  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9351    ac_cv_prog_AR="${ac_tool_prefix}ar"
9352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9353    break 2
9354  fi
9355done
9356done
9357
9358fi
9359fi
9360AR=$ac_cv_prog_AR
9361if test -n "$AR"; then
9362  echo "$as_me:$LINENO: result: $AR" >&5
9363echo "${ECHO_T}$AR" >&6
9364else
9365  echo "$as_me:$LINENO: result: no" >&5
9366echo "${ECHO_T}no" >&6
9367fi
9368
9369fi
9370if test -z "$ac_cv_prog_AR"; then
9371  ac_ct_AR=$AR
9372  # Extract the first word of "ar", so it can be a program name with args.
9373set dummy ar; ac_word=$2
9374echo "$as_me:$LINENO: checking for $ac_word" >&5
9375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9376if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9377  echo $ECHO_N "(cached) $ECHO_C" >&6
9378else
9379  if test -n "$ac_ct_AR"; then
9380  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9381else
9382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383for as_dir in $PATH
9384do
9385  IFS=$as_save_IFS
9386  test -z "$as_dir" && as_dir=.
9387  for ac_exec_ext in '' $ac_executable_extensions; do
9388  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9389    ac_cv_prog_ac_ct_AR="ar"
9390    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9391    break 2
9392  fi
9393done
9394done
9395
9396  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9397fi
9398fi
9399ac_ct_AR=$ac_cv_prog_ac_ct_AR
9400if test -n "$ac_ct_AR"; then
9401  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9402echo "${ECHO_T}$ac_ct_AR" >&6
9403else
9404  echo "$as_me:$LINENO: result: no" >&5
9405echo "${ECHO_T}no" >&6
9406fi
9407
9408  AR=$ac_ct_AR
9409else
9410  AR="$ac_cv_prog_AR"
9411fi
9412
9413if test -n "$ac_tool_prefix"; then
9414  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9415set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9416echo "$as_me:$LINENO: checking for $ac_word" >&5
9417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9418if test "${ac_cv_prog_RANLIB+set}" = set; then
9419  echo $ECHO_N "(cached) $ECHO_C" >&6
9420else
9421  if test -n "$RANLIB"; then
9422  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9423else
9424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425for as_dir in $PATH
9426do
9427  IFS=$as_save_IFS
9428  test -z "$as_dir" && as_dir=.
9429  for ac_exec_ext in '' $ac_executable_extensions; do
9430  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9431    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9433    break 2
9434  fi
9435done
9436done
9437
9438fi
9439fi
9440RANLIB=$ac_cv_prog_RANLIB
9441if test -n "$RANLIB"; then
9442  echo "$as_me:$LINENO: result: $RANLIB" >&5
9443echo "${ECHO_T}$RANLIB" >&6
9444else
9445  echo "$as_me:$LINENO: result: no" >&5
9446echo "${ECHO_T}no" >&6
9447fi
9448
9449fi
9450if test -z "$ac_cv_prog_RANLIB"; then
9451  ac_ct_RANLIB=$RANLIB
9452  # Extract the first word of "ranlib", so it can be a program name with args.
9453set dummy ranlib; ac_word=$2
9454echo "$as_me:$LINENO: checking for $ac_word" >&5
9455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9456if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9457  echo $ECHO_N "(cached) $ECHO_C" >&6
9458else
9459  if test -n "$ac_ct_RANLIB"; then
9460  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9461else
9462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463for as_dir in $PATH
9464do
9465  IFS=$as_save_IFS
9466  test -z "$as_dir" && as_dir=.
9467  for ac_exec_ext in '' $ac_executable_extensions; do
9468  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9469    ac_cv_prog_ac_ct_RANLIB="ranlib"
9470    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9471    break 2
9472  fi
9473done
9474done
9475
9476  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9477fi
9478fi
9479ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9480if test -n "$ac_ct_RANLIB"; then
9481  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9482echo "${ECHO_T}$ac_ct_RANLIB" >&6
9483else
9484  echo "$as_me:$LINENO: result: no" >&5
9485echo "${ECHO_T}no" >&6
9486fi
9487
9488  RANLIB=$ac_ct_RANLIB
9489else
9490  RANLIB="$ac_cv_prog_RANLIB"
9491fi
9492
9493if test -n "$ac_tool_prefix"; then
9494  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9495set dummy ${ac_tool_prefix}strip; ac_word=$2
9496echo "$as_me:$LINENO: checking for $ac_word" >&5
9497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9498if test "${ac_cv_prog_STRIP+set}" = set; then
9499  echo $ECHO_N "(cached) $ECHO_C" >&6
9500else
9501  if test -n "$STRIP"; then
9502  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9503else
9504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505for as_dir in $PATH
9506do
9507  IFS=$as_save_IFS
9508  test -z "$as_dir" && as_dir=.
9509  for ac_exec_ext in '' $ac_executable_extensions; do
9510  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9511    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9513    break 2
9514  fi
9515done
9516done
9517
9518fi
9519fi
9520STRIP=$ac_cv_prog_STRIP
9521if test -n "$STRIP"; then
9522  echo "$as_me:$LINENO: result: $STRIP" >&5
9523echo "${ECHO_T}$STRIP" >&6
9524else
9525  echo "$as_me:$LINENO: result: no" >&5
9526echo "${ECHO_T}no" >&6
9527fi
9528
9529fi
9530if test -z "$ac_cv_prog_STRIP"; then
9531  ac_ct_STRIP=$STRIP
9532  # Extract the first word of "strip", so it can be a program name with args.
9533set dummy strip; ac_word=$2
9534echo "$as_me:$LINENO: checking for $ac_word" >&5
9535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9536if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9537  echo $ECHO_N "(cached) $ECHO_C" >&6
9538else
9539  if test -n "$ac_ct_STRIP"; then
9540  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9541else
9542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543for as_dir in $PATH
9544do
9545  IFS=$as_save_IFS
9546  test -z "$as_dir" && as_dir=.
9547  for ac_exec_ext in '' $ac_executable_extensions; do
9548  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9549    ac_cv_prog_ac_ct_STRIP="strip"
9550    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9551    break 2
9552  fi
9553done
9554done
9555
9556  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9557fi
9558fi
9559ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9560if test -n "$ac_ct_STRIP"; then
9561  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9562echo "${ECHO_T}$ac_ct_STRIP" >&6
9563else
9564  echo "$as_me:$LINENO: result: no" >&5
9565echo "${ECHO_T}no" >&6
9566fi
9567
9568  STRIP=$ac_ct_STRIP
9569else
9570  STRIP="$ac_cv_prog_STRIP"
9571fi
9572
9573
9574old_CC="$CC"
9575old_CFLAGS="$CFLAGS"
9576
9577# Set sane defaults for various variables
9578test -z "$AR" && AR=ar
9579test -z "$AR_FLAGS" && AR_FLAGS=cru
9580test -z "$AS" && AS=as
9581test -z "$CC" && CC=cc
9582test -z "$LTCC" && LTCC=$CC
9583test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9584test -z "$DLLTOOL" && DLLTOOL=dlltool
9585test -z "$LD" && LD=ld
9586test -z "$LN_S" && LN_S="ln -s"
9587test -z "$MAGIC_CMD" && MAGIC_CMD=file
9588test -z "$NM" && NM=nm
9589test -z "$SED" && SED=sed
9590test -z "$OBJDUMP" && OBJDUMP=objdump
9591test -z "$RANLIB" && RANLIB=:
9592test -z "$STRIP" && STRIP=:
9593test -z "$ac_objext" && ac_objext=o
9594
9595# Determine commands to create old-style static archives.
9596old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9597old_postinstall_cmds='chmod 644 $oldlib'
9598old_postuninstall_cmds=
9599
9600if test -n "$RANLIB"; then
9601  case $host_os in
9602  openbsd*)
9603    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9604    ;;
9605  *)
9606    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9607    ;;
9608  esac
9609  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9610fi
9611
9612for cc_temp in $compiler""; do
9613  case $cc_temp in
9614    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9615    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9616    \-*) ;;
9617    *) break;;
9618  esac
9619done
9620cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9621
9622
9623# Only perform the check for file, if the check method requires it
9624case $deplibs_check_method in
9625file_magic*)
9626  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9627    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9628echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9629if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9630  echo $ECHO_N "(cached) $ECHO_C" >&6
9631else
9632  case $MAGIC_CMD in
9633[\\/*] |  ?:[\\/]*)
9634  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9635  ;;
9636*)
9637  lt_save_MAGIC_CMD="$MAGIC_CMD"
9638  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9639  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9640  for ac_dir in $ac_dummy; do
9641    IFS="$lt_save_ifs"
9642    test -z "$ac_dir" && ac_dir=.
9643    if test -f $ac_dir/${ac_tool_prefix}file; then
9644      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9645      if test -n "$file_magic_test_file"; then
9646        case $deplibs_check_method in
9647        "file_magic "*)
9648          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9649          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9650          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9651            $EGREP "$file_magic_regex" > /dev/null; then
9652            :
9653          else
9654            cat <<EOF 1>&2
9655
9656*** Warning: the command libtool uses to detect shared libraries,
9657*** $file_magic_cmd, produces output that libtool cannot recognize.
9658*** The result is that libtool may fail to recognize shared libraries
9659*** as such.  This will affect the creation of libtool libraries that
9660*** depend on shared libraries, but programs linked with such libtool
9661*** libraries will work regardless of this problem.  Nevertheless, you
9662*** may want to report the problem to your system manager and/or to
9663*** bug-libtool@gnu.org
9664
9665EOF
9666          fi ;;
9667        esac
9668      fi
9669      break
9670    fi
9671  done
9672  IFS="$lt_save_ifs"
9673  MAGIC_CMD="$lt_save_MAGIC_CMD"
9674  ;;
9675esac
9676fi
9677
9678MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9679if test -n "$MAGIC_CMD"; then
9680  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9681echo "${ECHO_T}$MAGIC_CMD" >&6
9682else
9683  echo "$as_me:$LINENO: result: no" >&5
9684echo "${ECHO_T}no" >&6
9685fi
9686
9687if test -z "$lt_cv_path_MAGIC_CMD"; then
9688  if test -n "$ac_tool_prefix"; then
9689    echo "$as_me:$LINENO: checking for file" >&5
9690echo $ECHO_N "checking for file... $ECHO_C" >&6
9691if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9692  echo $ECHO_N "(cached) $ECHO_C" >&6
9693else
9694  case $MAGIC_CMD in
9695[\\/*] |  ?:[\\/]*)
9696  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9697  ;;
9698*)
9699  lt_save_MAGIC_CMD="$MAGIC_CMD"
9700  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9701  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9702  for ac_dir in $ac_dummy; do
9703    IFS="$lt_save_ifs"
9704    test -z "$ac_dir" && ac_dir=.
9705    if test -f $ac_dir/file; then
9706      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9707      if test -n "$file_magic_test_file"; then
9708        case $deplibs_check_method in
9709        "file_magic "*)
9710          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9711          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9712          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9713            $EGREP "$file_magic_regex" > /dev/null; then
9714            :
9715          else
9716            cat <<EOF 1>&2
9717
9718*** Warning: the command libtool uses to detect shared libraries,
9719*** $file_magic_cmd, produces output that libtool cannot recognize.
9720*** The result is that libtool may fail to recognize shared libraries
9721*** as such.  This will affect the creation of libtool libraries that
9722*** depend on shared libraries, but programs linked with such libtool
9723*** libraries will work regardless of this problem.  Nevertheless, you
9724*** may want to report the problem to your system manager and/or to
9725*** bug-libtool@gnu.org
9726
9727EOF
9728          fi ;;
9729        esac
9730      fi
9731      break
9732    fi
9733  done
9734  IFS="$lt_save_ifs"
9735  MAGIC_CMD="$lt_save_MAGIC_CMD"
9736  ;;
9737esac
9738fi
9739
9740MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9741if test -n "$MAGIC_CMD"; then
9742  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9743echo "${ECHO_T}$MAGIC_CMD" >&6
9744else
9745  echo "$as_me:$LINENO: result: no" >&5
9746echo "${ECHO_T}no" >&6
9747fi
9748
9749  else
9750    MAGIC_CMD=:
9751  fi
9752fi
9753
9754  fi
9755  ;;
9756esac
9757
9758enable_dlopen=no
9759enable_win32_dll=no
9760
9761# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9762if test "${enable_libtool_lock+set}" = set; then
9763  enableval="$enable_libtool_lock"
9764
9765fi;
9766test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9767
9768
9769# Check whether --with-pic or --without-pic was given.
9770if test "${with_pic+set}" = set; then
9771  withval="$with_pic"
9772  pic_mode="$withval"
9773else
9774  pic_mode=default
9775fi;
9776test -z "$pic_mode" && pic_mode=default
9777
9778# Use C for the default configuration in the libtool script
9779tagname=
9780lt_save_CC="$CC"
9781ac_ext=c
9782ac_cpp='$CPP $CPPFLAGS'
9783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9785ac_compiler_gnu=$ac_cv_c_compiler_gnu
9786
9787
9788# Source file extension for C test sources.
9789ac_ext=c
9790
9791# Object file extension for compiled C test sources.
9792objext=o
9793objext=$objext
9794
9795# Code to be used in simple compile tests
9796lt_simple_compile_test_code="int some_variable = 0;\n"
9797
9798# Code to be used in simple link tests
9799lt_simple_link_test_code='int main(){return(0);}\n'
9800
9801
9802# If no C compiler was specified, use CC.
9803LTCC=${LTCC-"$CC"}
9804
9805# If no C compiler flags were specified, use CFLAGS.
9806LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9807
9808# Allow CC to be a program name with arguments.
9809compiler=$CC
9810
9811
9812# save warnings/boilerplate of simple test code
9813ac_outfile=conftest.$ac_objext
9814printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9815eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9816_lt_compiler_boilerplate=`cat conftest.err`
9817$rm conftest*
9818
9819ac_outfile=conftest.$ac_objext
9820printf "$lt_simple_link_test_code" >conftest.$ac_ext
9821eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9822_lt_linker_boilerplate=`cat conftest.err`
9823$rm conftest*
9824
9825
9826## CAVEAT EMPTOR:
9827## There is no encapsulation within the following macros, do not change
9828## the running order or otherwise move them around unless you know exactly
9829## what you are doing...
9830
9831lt_prog_compiler_no_builtin_flag=
9832
9833if test "$GCC" = yes; then
9834  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9835
9836
9837echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9838echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9839if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9840  echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842  lt_cv_prog_compiler_rtti_exceptions=no
9843  ac_outfile=conftest.$ac_objext
9844   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9845   lt_compiler_flag="-fno-rtti -fno-exceptions"
9846   # Insert the option either (1) after the last *FLAGS variable, or
9847   # (2) before a word containing "conftest.", or (3) at the end.
9848   # Note that $ac_compile itself does not contain backslashes and begins
9849   # with a dollar sign (not a hyphen), so the echo should work correctly.
9850   # The option is referenced via a variable to avoid confusing sed.
9851   lt_compile=`echo "$ac_compile" | $SED \
9852   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9853   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9854   -e 's:$: $lt_compiler_flag:'`
9855   (eval echo "\"\$as_me:9855: $lt_compile\"" >&5)
9856   (eval "$lt_compile" 2>conftest.err)
9857   ac_status=$?
9858   cat conftest.err >&5
9859   echo "$as_me:9859: \$? = $ac_status" >&5
9860   if (exit $ac_status) && test -s "$ac_outfile"; then
9861     # The compiler can only warn and ignore the option if not recognized
9862     # So say no if there are warnings other than the usual output.
9863     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9864     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9865     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9866       lt_cv_prog_compiler_rtti_exceptions=yes
9867     fi
9868   fi
9869   $rm conftest*
9870
9871fi
9872echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9873echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9874
9875if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9876    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9877else
9878    :
9879fi
9880
9881fi
9882
9883lt_prog_compiler_wl=
9884lt_prog_compiler_pic=
9885lt_prog_compiler_static=
9886
9887echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9888echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9889
9890  if test "$GCC" = yes; then
9891    lt_prog_compiler_wl='-Wl,'
9892    lt_prog_compiler_static='-static'
9893
9894    case $host_os in
9895      aix*)
9896      # All AIX code is PIC.
9897      if test "$host_cpu" = ia64; then
9898        # AIX 5 now supports IA64 processor
9899        lt_prog_compiler_static='-Bstatic'
9900      fi
9901      ;;
9902
9903    amigaos*)
9904      # FIXME: we need at least 68020 code to build shared libraries, but
9905      # adding the `-m68020' flag to GCC prevents building anything better,
9906      # like `-m68040'.
9907      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9908      ;;
9909
9910    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9911      # PIC is the default for these OSes.
9912      ;;
9913
9914    mingw* | pw32* | os2*)
9915      # This hack is so that the source file can tell whether it is being
9916      # built for inclusion in a dll (and should export symbols for example).
9917      lt_prog_compiler_pic='-DDLL_EXPORT'
9918      ;;
9919
9920    darwin* | rhapsody*)
9921      # PIC is the default on this platform
9922      # Common symbols not allowed in MH_DYLIB files
9923      lt_prog_compiler_pic='-fno-common'
9924      ;;
9925
9926    interix3*)
9927      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9928      # Instead, we relocate shared libraries at runtime.
9929      ;;
9930
9931    msdosdjgpp*)
9932      # Just because we use GCC doesn't mean we suddenly get shared libraries
9933      # on systems that don't support them.
9934      lt_prog_compiler_can_build_shared=no
9935      enable_shared=no
9936      ;;
9937
9938    sysv4*MP*)
9939      if test -d /usr/nec; then
9940        lt_prog_compiler_pic=-Kconform_pic
9941      fi
9942      ;;
9943
9944    hpux*)
9945      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9946      # not for PA HP-UX.
9947      case $host_cpu in
9948      hppa*64*|ia64*)
9949        # +Z the default
9950        ;;
9951      *)
9952        lt_prog_compiler_pic='-fPIC'
9953        ;;
9954      esac
9955      ;;
9956
9957    *)
9958      lt_prog_compiler_pic='-fPIC'
9959      ;;
9960    esac
9961  else
9962    # PORTME Check for flag to pass linker flags through the system compiler.
9963    case $host_os in
9964    aix*)
9965      lt_prog_compiler_wl='-Wl,'
9966      if test "$host_cpu" = ia64; then
9967        # AIX 5 now supports IA64 processor
9968        lt_prog_compiler_static='-Bstatic'
9969      else
9970        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9971      fi
9972      ;;
9973      darwin*)
9974        # PIC is the default on this platform
9975        # Common symbols not allowed in MH_DYLIB files
9976       case $cc_basename in
9977         xlc*)
9978         lt_prog_compiler_pic='-qnocommon'
9979         lt_prog_compiler_wl='-Wl,'
9980         ;;
9981       esac
9982       ;;
9983
9984    mingw* | pw32* | os2*)
9985      # This hack is so that the source file can tell whether it is being
9986      # built for inclusion in a dll (and should export symbols for example).
9987      lt_prog_compiler_pic='-DDLL_EXPORT'
9988      ;;
9989
9990    hpux9* | hpux10* | hpux11*)
9991      lt_prog_compiler_wl='-Wl,'
9992      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9993      # not for PA HP-UX.
9994      case $host_cpu in
9995      hppa*64*|ia64*)
9996        # +Z the default
9997        ;;
9998      *)
9999        lt_prog_compiler_pic='+Z'
10000        ;;
10001      esac
10002      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10003      lt_prog_compiler_static='${wl}-a ${wl}archive'
10004      ;;
10005
10006    irix5* | irix6* | nonstopux*)
10007      lt_prog_compiler_wl='-Wl,'
10008      # PIC (with -KPIC) is the default.
10009      lt_prog_compiler_static='-non_shared'
10010      ;;
10011
10012    newsos6)
10013      lt_prog_compiler_pic='-KPIC'
10014      lt_prog_compiler_static='-Bstatic'
10015      ;;
10016
10017    linux*)
10018      case $cc_basename in
10019      icc* | ecc*)
10020        lt_prog_compiler_wl='-Wl,'
10021        lt_prog_compiler_pic='-KPIC'
10022        lt_prog_compiler_static='-static'
10023        ;;
10024      pgcc* | pgf77* | pgf90* | pgf95*)
10025        # Portland Group compilers (*not* the Pentium gcc compiler,
10026        # which looks to be a dead project)
10027        lt_prog_compiler_wl='-Wl,'
10028        lt_prog_compiler_pic='-fpic'
10029        lt_prog_compiler_static='-Bstatic'
10030        ;;
10031      ccc*)
10032        lt_prog_compiler_wl='-Wl,'
10033        # All Alpha code is PIC.
10034        lt_prog_compiler_static='-non_shared'
10035        ;;
10036      esac
10037      ;;
10038
10039    osf3* | osf4* | osf5*)
10040      lt_prog_compiler_wl='-Wl,'
10041      # All OSF/1 code is PIC.
10042      lt_prog_compiler_static='-non_shared'
10043      ;;
10044
10045    solaris*)
10046      lt_prog_compiler_pic='-KPIC'
10047      lt_prog_compiler_static='-Bstatic'
10048      case $cc_basename in
10049      f77* | f90* | f95*)
10050        lt_prog_compiler_wl='-Qoption ld ';;
10051      *)
10052        lt_prog_compiler_wl='-Wl,';;
10053      esac
10054      ;;
10055
10056    sunos4*)
10057      lt_prog_compiler_wl='-Qoption ld '
10058      lt_prog_compiler_pic='-PIC'
10059      lt_prog_compiler_static='-Bstatic'
10060      ;;
10061
10062    sysv4 | sysv4.2uw2* | sysv4.3*)
10063      lt_prog_compiler_wl='-Wl,'
10064      lt_prog_compiler_pic='-KPIC'
10065      lt_prog_compiler_static='-Bstatic'
10066      ;;
10067
10068    sysv4*MP*)
10069      if test -d /usr/nec ;then
10070        lt_prog_compiler_pic='-Kconform_pic'
10071        lt_prog_compiler_static='-Bstatic'
10072      fi
10073      ;;
10074
10075    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10076      lt_prog_compiler_wl='-Wl,'
10077      lt_prog_compiler_pic='-KPIC'
10078      lt_prog_compiler_static='-Bstatic'
10079      ;;
10080
10081    unicos*)
10082      lt_prog_compiler_wl='-Wl,'
10083      lt_prog_compiler_can_build_shared=no
10084      ;;
10085
10086    uts4*)
10087      lt_prog_compiler_pic='-pic'
10088      lt_prog_compiler_static='-Bstatic'
10089      ;;
10090
10091    *)
10092      lt_prog_compiler_can_build_shared=no
10093      ;;
10094    esac
10095  fi
10096
10097echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10098echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10099
10100#
10101# Check to make sure the PIC flag actually works.
10102#
10103if test -n "$lt_prog_compiler_pic"; then
10104
10105echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10106echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10107if test "${lt_prog_compiler_pic_works+set}" = set; then
10108  echo $ECHO_N "(cached) $ECHO_C" >&6
10109else
10110  lt_prog_compiler_pic_works=no
10111  ac_outfile=conftest.$ac_objext
10112   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10113   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10114   # Insert the option either (1) after the last *FLAGS variable, or
10115   # (2) before a word containing "conftest.", or (3) at the end.
10116   # Note that $ac_compile itself does not contain backslashes and begins
10117   # with a dollar sign (not a hyphen), so the echo should work correctly.
10118   # The option is referenced via a variable to avoid confusing sed.
10119   lt_compile=`echo "$ac_compile" | $SED \
10120   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10121   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10122   -e 's:$: $lt_compiler_flag:'`
10123   (eval echo "\"\$as_me:10123: $lt_compile\"" >&5)
10124   (eval "$lt_compile" 2>conftest.err)
10125   ac_status=$?
10126   cat conftest.err >&5
10127   echo "$as_me:10127: \$? = $ac_status" >&5
10128   if (exit $ac_status) && test -s "$ac_outfile"; then
10129     # The compiler can only warn and ignore the option if not recognized
10130     # So say no if there are warnings other than the usual output.
10131     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10132     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10133     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10134       lt_prog_compiler_pic_works=yes
10135     fi
10136   fi
10137   $rm conftest*
10138
10139fi
10140echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10141echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10142
10143if test x"$lt_prog_compiler_pic_works" = xyes; then
10144    case $lt_prog_compiler_pic in
10145     "" | " "*) ;;
10146     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10147     esac
10148else
10149    lt_prog_compiler_pic=
10150     lt_prog_compiler_can_build_shared=no
10151fi
10152
10153fi
10154case $host_os in
10155  # For platforms which do not support PIC, -DPIC is meaningless:
10156  *djgpp*)
10157    lt_prog_compiler_pic=
10158    ;;
10159  *)
10160    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10161    ;;
10162esac
10163
10164#
10165# Check to make sure the static flag actually works.
10166#
10167wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10168echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10169echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10170if test "${lt_prog_compiler_static_works+set}" = set; then
10171  echo $ECHO_N "(cached) $ECHO_C" >&6
10172else
10173  lt_prog_compiler_static_works=no
10174   save_LDFLAGS="$LDFLAGS"
10175   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10176   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10177   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10178     # The linker can only warn and ignore the option if not recognized
10179     # So say no if there are warnings
10180     if test -s conftest.err; then
10181       # Append any errors to the config.log.
10182       cat conftest.err 1>&5
10183       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10184       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10185       if diff conftest.exp conftest.er2 >/dev/null; then
10186         lt_prog_compiler_static_works=yes
10187       fi
10188     else
10189       lt_prog_compiler_static_works=yes
10190     fi
10191   fi
10192   $rm conftest*
10193   LDFLAGS="$save_LDFLAGS"
10194
10195fi
10196echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10197echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10198
10199if test x"$lt_prog_compiler_static_works" = xyes; then
10200    :
10201else
10202    lt_prog_compiler_static=
10203fi
10204
10205
10206echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10207echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10208if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10209  echo $ECHO_N "(cached) $ECHO_C" >&6
10210else
10211  lt_cv_prog_compiler_c_o=no
10212   $rm -r conftest 2>/dev/null
10213   mkdir conftest
10214   cd conftest
10215   mkdir out
10216   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10217
10218   lt_compiler_flag="-o out/conftest2.$ac_objext"
10219   # Insert the option either (1) after the last *FLAGS variable, or
10220   # (2) before a word containing "conftest.", or (3) at the end.
10221   # Note that $ac_compile itself does not contain backslashes and begins
10222   # with a dollar sign (not a hyphen), so the echo should work correctly.
10223   lt_compile=`echo "$ac_compile" | $SED \
10224   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10225   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10226   -e 's:$: $lt_compiler_flag:'`
10227   (eval echo "\"\$as_me:10227: $lt_compile\"" >&5)
10228   (eval "$lt_compile" 2>out/conftest.err)
10229   ac_status=$?
10230   cat out/conftest.err >&5
10231   echo "$as_me:10231: \$? = $ac_status" >&5
10232   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10233   then
10234     # The compiler can only warn and ignore the option if not recognized
10235     # So say no if there are warnings
10236     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10237     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10238     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10239       lt_cv_prog_compiler_c_o=yes
10240     fi
10241   fi
10242   chmod u+w . 2>&5
10243   $rm conftest*
10244   # SGI C++ compiler will create directory out/ii_files/ for
10245   # template instantiation
10246   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10247   $rm out/* && rmdir out
10248   cd ..
10249   rmdir conftest
10250   $rm conftest*
10251
10252fi
10253echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10254echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10255
10256
10257hard_links="nottested"
10258if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10259  # do not overwrite the value of need_locks provided by the user
10260  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10261echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10262  hard_links=yes
10263  $rm conftest*
10264  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10265  touch conftest.a
10266  ln conftest.a conftest.b 2>&5 || hard_links=no
10267  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10268  echo "$as_me:$LINENO: result: $hard_links" >&5
10269echo "${ECHO_T}$hard_links" >&6
10270  if test "$hard_links" = no; then
10271    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10272echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10273    need_locks=warn
10274  fi
10275else
10276  need_locks=no
10277fi
10278
10279echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10280echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10281
10282  runpath_var=
10283  allow_undefined_flag=
10284  enable_shared_with_static_runtimes=no
10285  archive_cmds=
10286  archive_expsym_cmds=
10287  old_archive_From_new_cmds=
10288  old_archive_from_expsyms_cmds=
10289  export_dynamic_flag_spec=
10290  whole_archive_flag_spec=
10291  thread_safe_flag_spec=
10292  hardcode_libdir_flag_spec=
10293  hardcode_libdir_flag_spec_ld=
10294  hardcode_libdir_separator=
10295  hardcode_direct=no
10296  hardcode_minus_L=no
10297  hardcode_shlibpath_var=unsupported
10298  link_all_deplibs=unknown
10299  hardcode_automatic=no
10300  module_cmds=
10301  module_expsym_cmds=
10302  always_export_symbols=no
10303  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10304  # include_expsyms should be a list of space-separated symbols to be *always*
10305  # included in the symbol list
10306  include_expsyms=
10307  # exclude_expsyms can be an extended regexp of symbols to exclude
10308  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10309  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10310  # as well as any symbol that contains `d'.
10311  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10312  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10313  # platforms (ab)use it in PIC code, but their linkers get confused if
10314  # the symbol is explicitly referenced.  Since portable code cannot
10315  # rely on this symbol name, it's probably fine to never include it in
10316  # preloaded symbol tables.
10317  extract_expsyms_cmds=
10318  # Just being paranoid about ensuring that cc_basename is set.
10319  for cc_temp in $compiler""; do
10320  case $cc_temp in
10321    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10322    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10323    \-*) ;;
10324    *) break;;
10325  esac
10326done
10327cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10328
10329  case $host_os in
10330  cygwin* | mingw* | pw32*)
10331    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10332    # When not using gcc, we currently assume that we are using
10333    # Microsoft Visual C++.
10334    if test "$GCC" != yes; then
10335      with_gnu_ld=no
10336    fi
10337    ;;
10338  interix*)
10339    # we just hope/assume this is gcc and not c89 (= MSVC++)
10340    with_gnu_ld=yes
10341    ;;
10342  openbsd*)
10343    with_gnu_ld=no
10344    ;;
10345  esac
10346
10347  ld_shlibs=yes
10348  if test "$with_gnu_ld" = yes; then
10349    # If archive_cmds runs LD, not CC, wlarc should be empty
10350    wlarc='${wl}'
10351
10352    # Set some defaults for GNU ld with shared library support. These
10353    # are reset later if shared libraries are not supported. Putting them
10354    # here allows them to be overridden if necessary.
10355    runpath_var=LD_RUN_PATH
10356    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10357    export_dynamic_flag_spec='${wl}--export-dynamic'
10358    # ancient GNU ld didn't support --whole-archive et. al.
10359    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10360        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10361      else
10362        whole_archive_flag_spec=
10363    fi
10364    supports_anon_versioning=no
10365    case `$LD -v 2>/dev/null` in
10366      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10367      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10368      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10369      *\ 2.11.*) ;; # other 2.11 versions
10370      *) supports_anon_versioning=yes ;;
10371    esac
10372
10373    # See if GNU ld supports shared libraries.
10374    case $host_os in
10375    aix3* | aix4* | aix5*)
10376      # On AIX/PPC, the GNU linker is very broken
10377      if test "$host_cpu" != ia64; then
10378        ld_shlibs=no
10379        cat <<EOF 1>&2
10380
10381*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10382*** to be unable to reliably create shared libraries on AIX.
10383*** Therefore, libtool is disabling shared libraries support.  If you
10384*** really care for shared libraries, you may want to modify your PATH
10385*** so that a non-GNU linker is found, and then restart.
10386
10387EOF
10388      fi
10389      ;;
10390
10391    amigaos*)
10392      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)'
10393      hardcode_libdir_flag_spec='-L$libdir'
10394      hardcode_minus_L=yes
10395
10396      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10397      # that the semantics of dynamic libraries on AmigaOS, at least up
10398      # to version 4, is to share data among multiple programs linked
10399      # with the same dynamic library.  Since this doesn't match the
10400      # behavior of shared libraries on other platforms, we can't use
10401      # them.
10402      ld_shlibs=no
10403      ;;
10404
10405    beos*)
10406      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10407        allow_undefined_flag=unsupported
10408        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10409        # support --undefined.  This deserves some investigation.  FIXME
10410        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10411      else
10412        ld_shlibs=no
10413      fi
10414      ;;
10415
10416    cygwin* | mingw* | pw32*)
10417      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10418      # as there is no search path for DLLs.
10419      hardcode_libdir_flag_spec='-L$libdir'
10420      allow_undefined_flag=unsupported
10421      always_export_symbols=no
10422      enable_shared_with_static_runtimes=yes
10423      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10424
10425      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10426        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10427        # If the export-symbols file already is a .def file (1st line
10428        # is EXPORTS), use it as is; otherwise, prepend...
10429        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10430          cp $export_symbols $output_objdir/$soname.def;
10431        else
10432          echo EXPORTS > $output_objdir/$soname.def;
10433          cat $export_symbols >> $output_objdir/$soname.def;
10434        fi~
10435        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10436      else
10437        ld_shlibs=no
10438      fi
10439      ;;
10440
10441    interix3*)
10442      hardcode_direct=no
10443      hardcode_shlibpath_var=no
10444      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10445      export_dynamic_flag_spec='${wl}-E'
10446      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10447      # Instead, shared libraries are loaded at an image base (0x10000000 by
10448      # default) and relocated if they conflict, which is a slow very memory
10449      # consuming and fragmenting process.  To avoid this, we pick a random,
10450      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10451      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10452      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10453      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'
10454      ;;
10455
10456    linux*)
10457      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10458        tmp_addflag=
10459        case $cc_basename,$host_cpu in
10460        pgcc*)                          # Portland Group C compiler
10461          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'
10462          tmp_addflag=' $pic_flag'
10463          ;;
10464        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10465          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'
10466          tmp_addflag=' $pic_flag -Mnomain' ;;
10467        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10468          tmp_addflag=' -i_dynamic' ;;
10469        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10470          tmp_addflag=' -i_dynamic -nofor_main' ;;
10471        ifc* | ifort*)                  # Intel Fortran compiler
10472          tmp_addflag=' -nofor_main' ;;
10473        esac
10474        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10475
10476        if test $supports_anon_versioning = yes; then
10477          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10478  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10479  $echo "local: *; };" >> $output_objdir/$libname.ver~
10480          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10481        fi
10482      else
10483        ld_shlibs=no
10484      fi
10485      ;;
10486
10487    netbsd*)
10488      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10489        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10490        wlarc=
10491      else
10492        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10493        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10494      fi
10495      ;;
10496
10497    solaris*)
10498      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10499        ld_shlibs=no
10500        cat <<EOF 1>&2
10501
10502*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10503*** create shared libraries on Solaris systems.  Therefore, libtool
10504*** is disabling shared libraries support.  We urge you to upgrade GNU
10505*** binutils to release 2.9.1 or newer.  Another option is to modify
10506*** your PATH or compiler configuration so that the native linker is
10507*** used, and then restart.
10508
10509EOF
10510      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10511        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10512        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10513      else
10514        ld_shlibs=no
10515      fi
10516      ;;
10517
10518    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10519      case `$LD -v 2>&1` in
10520        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10521        ld_shlibs=no
10522        cat <<_LT_EOF 1>&2
10523
10524*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10525*** reliably create shared libraries on SCO systems.  Therefore, libtool
10526*** is disabling shared libraries support.  We urge you to upgrade GNU
10527*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10528*** your PATH or compiler configuration so that the native linker is
10529*** used, and then restart.
10530
10531_LT_EOF
10532        ;;
10533        *)
10534          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10535            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10536            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10537            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10538          else
10539            ld_shlibs=no
10540          fi
10541        ;;
10542      esac
10543      ;;
10544
10545    sunos4*)
10546      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10547      wlarc=
10548      hardcode_direct=yes
10549      hardcode_shlibpath_var=no
10550      ;;
10551
10552    *)
10553      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10554        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10555        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10556      else
10557        ld_shlibs=no
10558      fi
10559      ;;
10560    esac
10561
10562    if test "$ld_shlibs" = no; then
10563      runpath_var=
10564      hardcode_libdir_flag_spec=
10565      export_dynamic_flag_spec=
10566      whole_archive_flag_spec=
10567    fi
10568  else
10569    # PORTME fill in a description of your system's linker (not GNU ld)
10570    case $host_os in
10571    aix3*)
10572      allow_undefined_flag=unsupported
10573      always_export_symbols=yes
10574      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'
10575      # Note: this linker hardcodes the directories in LIBPATH if there
10576      # are no directories specified by -L.
10577      hardcode_minus_L=yes
10578      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10579        # Neither direct hardcoding nor static linking is supported with a
10580        # broken collect2.
10581        hardcode_direct=unsupported
10582      fi
10583      ;;
10584
10585    aix4* | aix5*)
10586      if test "$host_cpu" = ia64; then
10587        # On IA64, the linker does run time linking by default, so we don't
10588        # have to do anything special.
10589        aix_use_runtimelinking=no
10590        exp_sym_flag='-Bexport'
10591        no_entry_flag=""
10592      else
10593        # If we're using GNU nm, then we don't want the "-C" option.
10594        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10595        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10596          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'
10597        else
10598          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'
10599        fi
10600        aix_use_runtimelinking=no
10601
10602        # Test if we are trying to use run time linking or normal
10603        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10604        # need to do runtime linking.
10605        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10606          for ld_flag in $LDFLAGS; do
10607          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10608            aix_use_runtimelinking=yes
10609            break
10610          fi
10611          done
10612          ;;
10613        esac
10614
10615        exp_sym_flag='-bexport'
10616        no_entry_flag='-bnoentry'
10617      fi
10618
10619      # When large executables or shared objects are built, AIX ld can
10620      # have problems creating the table of contents.  If linking a library
10621      # or program results in "error TOC overflow" add -mminimal-toc to
10622      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10623      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10624
10625      archive_cmds=''
10626      hardcode_direct=yes
10627      hardcode_libdir_separator=':'
10628      link_all_deplibs=yes
10629
10630      if test "$GCC" = yes; then
10631        case $host_os in aix4.[012]|aix4.[012].*)
10632        # We only want to do this on AIX 4.2 and lower, the check
10633        # below for broken collect2 doesn't work under 4.3+
10634          collect2name=`${CC} -print-prog-name=collect2`
10635          if test -f "$collect2name" && \
10636           strings "$collect2name" | grep resolve_lib_name >/dev/null
10637          then
10638          # We have reworked collect2
10639          hardcode_direct=yes
10640          else
10641          # We have old collect2
10642          hardcode_direct=unsupported
10643          # It fails to find uninstalled libraries when the uninstalled
10644          # path is not listed in the libpath.  Setting hardcode_minus_L
10645          # to unsupported forces relinking
10646          hardcode_minus_L=yes
10647          hardcode_libdir_flag_spec='-L$libdir'
10648          hardcode_libdir_separator=
10649          fi
10650          ;;
10651        esac
10652        shared_flag='-shared'
10653        if test "$aix_use_runtimelinking" = yes; then
10654          shared_flag="$shared_flag "'${wl}-G'
10655        fi
10656      else
10657        # not using gcc
10658        if test "$host_cpu" = ia64; then
10659        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10660        # chokes on -Wl,-G. The following line is correct:
10661          shared_flag='-G'
10662        else
10663          if test "$aix_use_runtimelinking" = yes; then
10664            shared_flag='${wl}-G'
10665          else
10666            shared_flag='${wl}-bM:SRE'
10667          fi
10668        fi
10669      fi
10670
10671      # It seems that -bexpall does not export symbols beginning with
10672      # underscore (_), so it is better to generate a list of symbols to export.
10673      always_export_symbols=yes
10674      if test "$aix_use_runtimelinking" = yes; then
10675        # Warning - without using the other runtime loading flags (-brtl),
10676        # -berok will link without error, but may produce a broken library.
10677        allow_undefined_flag='-berok'
10678       # Determine the default libpath from the value encoded in an empty executable.
10679       cat >conftest.$ac_ext <<_ACEOF
10680/* confdefs.h.  */
10681_ACEOF
10682cat confdefs.h >>conftest.$ac_ext
10683cat >>conftest.$ac_ext <<_ACEOF
10684/* end confdefs.h.  */
10685
10686#ifdef F77_DUMMY_MAIN
10687
10688#  ifdef __cplusplus
10689     extern "C"
10690#  endif
10691   int F77_DUMMY_MAIN() { return 1; }
10692
10693#endif
10694int
10695main ()
10696{
10697
10698  ;
10699  return 0;
10700}
10701_ACEOF
10702rm -f conftest.$ac_objext conftest$ac_exeext
10703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10704  (eval $ac_link) 2>conftest.er1
10705  ac_status=$?
10706  grep -v '^ *+' conftest.er1 >conftest.err
10707  rm -f conftest.er1
10708  cat conftest.err >&5
10709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710  (exit $ac_status); } &&
10711         { ac_try='test -z "$ac_c_werror_flag"
10712                         || test ! -s conftest.err'
10713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714  (eval $ac_try) 2>&5
10715  ac_status=$?
10716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717  (exit $ac_status); }; } &&
10718         { ac_try='test -s conftest$ac_exeext'
10719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720  (eval $ac_try) 2>&5
10721  ac_status=$?
10722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723  (exit $ac_status); }; }; then
10724
10725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10726}'`
10727# Check for a 64-bit object if we didn't find anything.
10728if 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; }
10729}'`; fi
10730else
10731  echo "$as_me: failed program was:" >&5
10732sed 's/^/| /' conftest.$ac_ext >&5
10733
10734fi
10735rm -f conftest.err conftest.$ac_objext \
10736      conftest$ac_exeext conftest.$ac_ext
10737if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10738
10739       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10740        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"
10741       else
10742        if test "$host_cpu" = ia64; then
10743          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10744          allow_undefined_flag="-z nodefs"
10745          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"
10746        else
10747         # Determine the default libpath from the value encoded in an empty executable.
10748         cat >conftest.$ac_ext <<_ACEOF
10749/* confdefs.h.  */
10750_ACEOF
10751cat confdefs.h >>conftest.$ac_ext
10752cat >>conftest.$ac_ext <<_ACEOF
10753/* end confdefs.h.  */
10754
10755#ifdef F77_DUMMY_MAIN
10756
10757#  ifdef __cplusplus
10758     extern "C"
10759#  endif
10760   int F77_DUMMY_MAIN() { return 1; }
10761
10762#endif
10763int
10764main ()
10765{
10766
10767  ;
10768  return 0;
10769}
10770_ACEOF
10771rm -f conftest.$ac_objext conftest$ac_exeext
10772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10773  (eval $ac_link) 2>conftest.er1
10774  ac_status=$?
10775  grep -v '^ *+' conftest.er1 >conftest.err
10776  rm -f conftest.er1
10777  cat conftest.err >&5
10778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779  (exit $ac_status); } &&
10780         { ac_try='test -z "$ac_c_werror_flag"
10781                         || test ! -s conftest.err'
10782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783  (eval $ac_try) 2>&5
10784  ac_status=$?
10785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786  (exit $ac_status); }; } &&
10787         { ac_try='test -s conftest$ac_exeext'
10788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789  (eval $ac_try) 2>&5
10790  ac_status=$?
10791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792  (exit $ac_status); }; }; then
10793
10794aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10795}'`
10796# Check for a 64-bit object if we didn't find anything.
10797if 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; }
10798}'`; fi
10799else
10800  echo "$as_me: failed program was:" >&5
10801sed 's/^/| /' conftest.$ac_ext >&5
10802
10803fi
10804rm -f conftest.err conftest.$ac_objext \
10805      conftest$ac_exeext conftest.$ac_ext
10806if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10807
10808         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10809          # Warning - without using the other run time loading flags,
10810          # -berok will link without error, but may produce a broken library.
10811          no_undefined_flag=' ${wl}-bernotok'
10812          allow_undefined_flag=' ${wl}-berok'
10813          # Exported symbols can be pulled into shared objects from archives
10814          whole_archive_flag_spec='$convenience'
10815          archive_cmds_need_lc=yes
10816          # This is similar to how AIX traditionally builds its shared libraries.
10817          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'
10818        fi
10819      fi
10820      ;;
10821
10822    amigaos*)
10823      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)'
10824      hardcode_libdir_flag_spec='-L$libdir'
10825      hardcode_minus_L=yes
10826      # see comment about different semantics on the GNU ld section
10827      ld_shlibs=no
10828      ;;
10829
10830    bsdi[45]*)
10831      export_dynamic_flag_spec=-rdynamic
10832      ;;
10833
10834    cygwin* | mingw* | pw32*)
10835      # When not using gcc, we currently assume that we are using
10836      # Microsoft Visual C++.
10837      # hardcode_libdir_flag_spec is actually meaningless, as there is
10838      # no search path for DLLs.
10839      hardcode_libdir_flag_spec=' '
10840      allow_undefined_flag=unsupported
10841      # Tell ltmain to make .lib files, not .a files.
10842      libext=lib
10843      # Tell ltmain to make .dll files, not .so files.
10844      shrext_cmds=".dll"
10845      # FIXME: Setting linknames here is a bad hack.
10846      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10847      # The linker will automatically build a .lib file if we build a DLL.
10848      old_archive_From_new_cmds='true'
10849      # FIXME: Should let the user specify the lib program.
10850      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10851      fix_srcfile_path='`cygpath -w "$srcfile"`'
10852      enable_shared_with_static_runtimes=yes
10853      ;;
10854
10855    darwin* | rhapsody*)
10856      case $host_os in
10857        rhapsody* | darwin1.[012])
10858         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10859         ;;
10860       *) # Darwin 1.3 on
10861         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then