source: ThirdParty/FilterSQP/stable/1.2/configure @ 3019

Last change on this file since 3019 was 3019, checked in by stefan, 7 years ago

restoring BuildTools/ThirdParty?/FilterSQP/stable/1.2

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