source: ThirdParty/FilterSQP/stable/1.3/configure

Last change on this file was 4086, checked in by stefan, 16 months ago

restoring BuildTools/ThirdParty?/FilterSQP/stable/1.3

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