source: ThirdParty/FilterSQP/trunk/configure @ 2124

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

rerun autotools

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