source: ThirdParty/ASL/branches/BSP/trunk/configure @ 506

Last change on this file since 506 was 506, checked in by andreasw, 14 years ago

suppress warning messages for AIX compilers

  • Property svn:executable set to *
File size: 165.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyASL 1.0trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252# Name of the host.
253# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
254# so uname gets run too.
255ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256
257exec 6>&1
258
259#
260# Initializations.
261#
262ac_default_prefix=/usr/local
263ac_config_libobj_dir=.
264cross_compiling=no
265subdirs=
266MFLAGS=
267MAKEFLAGS=
268SHELL=${CONFIG_SHELL-/bin/sh}
269
270# Maximum number of lines to put in a shell here document.
271# This variable seems obsolete.  It should probably be removed, and
272# only ac_max_sed_lines should be used.
273: ${ac_max_here_lines=38}
274
275# Identity of this package.
276PACKAGE_NAME='ThirdPartyASL'
277PACKAGE_TARNAME='thirdpartyasl'
278PACKAGE_VERSION='1.0trunk'
279PACKAGE_STRING='ThirdPartyASL 1.0trunk'
280PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
281
282ac_unique_file="solvers/asl.h"
283ac_default_prefix=`pwd`
284ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC 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 ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE AMPLSOLVER_A ASLMAKEFLAGS ASLMAKEFILECMDS MSVC_COMPILE_TRUE MSVC_COMPILE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
285ac_subst_files=''
286
287# Initialize some variables set by options.
288ac_init_help=
289ac_init_version=false
290# The variables have the same names as the options, with
291# dashes changed to underlines.
292cache_file=/dev/null
293exec_prefix=NONE
294no_create=
295no_recursion=
296prefix=NONE
297program_prefix=NONE
298program_suffix=NONE
299program_transform_name=s,x,x,
300silent=
301site=
302srcdir=
303verbose=
304x_includes=NONE
305x_libraries=NONE
306
307# Installation directory options.
308# These are left unexpanded so users can "make install exec_prefix=/foo"
309# and all the variables that are supposed to be based on exec_prefix
310# by default will actually change.
311# Use braces instead of parens because sh, perl, etc. also accept them.
312bindir='${exec_prefix}/bin'
313sbindir='${exec_prefix}/sbin'
314libexecdir='${exec_prefix}/libexec'
315datadir='${prefix}/share'
316sysconfdir='${prefix}/etc'
317sharedstatedir='${prefix}/com'
318localstatedir='${prefix}/var'
319libdir='${exec_prefix}/lib'
320includedir='${prefix}/include'
321oldincludedir='/usr/include'
322infodir='${prefix}/info'
323mandir='${prefix}/man'
324
325ac_prev=
326for ac_option
327do
328  # If the previous option needs an argument, assign it.
329  if test -n "$ac_prev"; then
330    eval "$ac_prev=\$ac_option"
331    ac_prev=
332    continue
333  fi
334
335  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
336
337  # Accept the important Cygnus configure options, so we can diagnose typos.
338
339  case $ac_option in
340
341  -bindir | --bindir | --bindi | --bind | --bin | --bi)
342    ac_prev=bindir ;;
343  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
344    bindir=$ac_optarg ;;
345
346  -build | --build | --buil | --bui | --bu)
347    ac_prev=build_alias ;;
348  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
349    build_alias=$ac_optarg ;;
350
351  -cache-file | --cache-file | --cache-fil | --cache-fi \
352  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
353    ac_prev=cache_file ;;
354  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
355  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
356    cache_file=$ac_optarg ;;
357
358  --config-cache | -C)
359    cache_file=config.cache ;;
360
361  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
362    ac_prev=datadir ;;
363  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
364  | --da=*)
365    datadir=$ac_optarg ;;
366
367  -disable-* | --disable-*)
368    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
369    # Reject names that are not valid shell variable names.
370    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372   { (exit 1); exit 1; }; }
373    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374    eval "enable_$ac_feature=no" ;;
375
376  -enable-* | --enable-*)
377    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
378    # Reject names that are not valid shell variable names.
379    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
380      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
381   { (exit 1); exit 1; }; }
382    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
383    case $ac_option in
384      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
385      *) ac_optarg=yes ;;
386    esac
387    eval "enable_$ac_feature='$ac_optarg'" ;;
388
389  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
390  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
391  | --exec | --exe | --ex)
392    ac_prev=exec_prefix ;;
393  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
394  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
395  | --exec=* | --exe=* | --ex=*)
396    exec_prefix=$ac_optarg ;;
397
398  -gas | --gas | --ga | --g)
399    # Obsolete; use --with-gas.
400    with_gas=yes ;;
401
402  -help | --help | --hel | --he | -h)
403    ac_init_help=long ;;
404  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
405    ac_init_help=recursive ;;
406  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
407    ac_init_help=short ;;
408
409  -host | --host | --hos | --ho)
410    ac_prev=host_alias ;;
411  -host=* | --host=* | --hos=* | --ho=*)
412    host_alias=$ac_optarg ;;
413
414  -includedir | --includedir | --includedi | --included | --include \
415  | --includ | --inclu | --incl | --inc)
416    ac_prev=includedir ;;
417  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
418  | --includ=* | --inclu=* | --incl=* | --inc=*)
419    includedir=$ac_optarg ;;
420
421  -infodir | --infodir | --infodi | --infod | --info | --inf)
422    ac_prev=infodir ;;
423  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
424    infodir=$ac_optarg ;;
425
426  -libdir | --libdir | --libdi | --libd)
427    ac_prev=libdir ;;
428  -libdir=* | --libdir=* | --libdi=* | --libd=*)
429    libdir=$ac_optarg ;;
430
431  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
432  | --libexe | --libex | --libe)
433    ac_prev=libexecdir ;;
434  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
435  | --libexe=* | --libex=* | --libe=*)
436    libexecdir=$ac_optarg ;;
437
438  -localstatedir | --localstatedir | --localstatedi | --localstated \
439  | --localstate | --localstat | --localsta | --localst \
440  | --locals | --local | --loca | --loc | --lo)
441    ac_prev=localstatedir ;;
442  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
443  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
444  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
445    localstatedir=$ac_optarg ;;
446
447  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
448    ac_prev=mandir ;;
449  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
450    mandir=$ac_optarg ;;
451
452  -nfp | --nfp | --nf)
453    # Obsolete; use --without-fp.
454    with_fp=no ;;
455
456  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457  | --no-cr | --no-c | -n)
458    no_create=yes ;;
459
460  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
462    no_recursion=yes ;;
463
464  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
465  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
466  | --oldin | --oldi | --old | --ol | --o)
467    ac_prev=oldincludedir ;;
468  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
469  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
470  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
471    oldincludedir=$ac_optarg ;;
472
473  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
474    ac_prev=prefix ;;
475  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
476    prefix=$ac_optarg ;;
477
478  -program-prefix | --program-prefix | --program-prefi | --program-pref \
479  | --program-pre | --program-pr | --program-p)
480    ac_prev=program_prefix ;;
481  -program-prefix=* | --program-prefix=* | --program-prefi=* \
482  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
483    program_prefix=$ac_optarg ;;
484
485  -program-suffix | --program-suffix | --program-suffi | --program-suff \
486  | --program-suf | --program-su | --program-s)
487    ac_prev=program_suffix ;;
488  -program-suffix=* | --program-suffix=* | --program-suffi=* \
489  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
490    program_suffix=$ac_optarg ;;
491
492  -program-transform-name | --program-transform-name \
493  | --program-transform-nam | --program-transform-na \
494  | --program-transform-n | --program-transform- \
495  | --program-transform | --program-transfor \
496  | --program-transfo | --program-transf \
497  | --program-trans | --program-tran \
498  | --progr-tra | --program-tr | --program-t)
499    ac_prev=program_transform_name ;;
500  -program-transform-name=* | --program-transform-name=* \
501  | --program-transform-nam=* | --program-transform-na=* \
502  | --program-transform-n=* | --program-transform-=* \
503  | --program-transform=* | --program-transfor=* \
504  | --program-transfo=* | --program-transf=* \
505  | --program-trans=* | --program-tran=* \
506  | --progr-tra=* | --program-tr=* | --program-t=*)
507    program_transform_name=$ac_optarg ;;
508
509  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
510  | -silent | --silent | --silen | --sile | --sil)
511    silent=yes ;;
512
513  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
514    ac_prev=sbindir ;;
515  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
516  | --sbi=* | --sb=*)
517    sbindir=$ac_optarg ;;
518
519  -sharedstatedir | --sharedstatedir | --sharedstatedi \
520  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
521  | --sharedst | --shareds | --shared | --share | --shar \
522  | --sha | --sh)
523    ac_prev=sharedstatedir ;;
524  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
525  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
526  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
527  | --sha=* | --sh=*)
528    sharedstatedir=$ac_optarg ;;
529
530  -site | --site | --sit)
531    ac_prev=site ;;
532  -site=* | --site=* | --sit=*)
533    site=$ac_optarg ;;
534
535  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
536    ac_prev=srcdir ;;
537  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
538    srcdir=$ac_optarg ;;
539
540  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
541  | --syscon | --sysco | --sysc | --sys | --sy)
542    ac_prev=sysconfdir ;;
543  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
544  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
545    sysconfdir=$ac_optarg ;;
546
547  -target | --target | --targe | --targ | --tar | --ta | --t)
548    ac_prev=target_alias ;;
549  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
550    target_alias=$ac_optarg ;;
551
552  -v | -verbose | --verbose | --verbos | --verbo | --verb)
553    verbose=yes ;;
554
555  -version | --version | --versio | --versi | --vers | -V)
556    ac_init_version=: ;;
557
558  -with-* | --with-*)
559    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid package name: $ac_package" >&2
563   { (exit 1); exit 1; }; }
564    ac_package=`echo $ac_package| sed 's/-/_/g'`
565    case $ac_option in
566      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567      *) ac_optarg=yes ;;
568    esac
569    eval "with_$ac_package='$ac_optarg'" ;;
570
571  -without-* | --without-*)
572    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
573    # Reject names that are not valid shell variable names.
574    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575      { echo "$as_me: error: invalid package name: $ac_package" >&2
576   { (exit 1); exit 1; }; }
577    ac_package=`echo $ac_package | sed 's/-/_/g'`
578    eval "with_$ac_package=no" ;;
579
580  --x)
581    # Obsolete; use --with-x.
582    with_x=yes ;;
583
584  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
585  | --x-incl | --x-inc | --x-in | --x-i)
586    ac_prev=x_includes ;;
587  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
588  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
589    x_includes=$ac_optarg ;;
590
591  -x-libraries | --x-libraries | --x-librarie | --x-librari \
592  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
593    ac_prev=x_libraries ;;
594  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
595  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
596    x_libraries=$ac_optarg ;;
597
598  -*) { echo "$as_me: error: unrecognized option: $ac_option
599Try \`$0 --help' for more information." >&2
600   { (exit 1); exit 1; }; }
601    ;;
602
603  *=*)
604    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
605    # Reject names that are not valid shell variable names.
606    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
607      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
608   { (exit 1); exit 1; }; }
609    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
610    eval "$ac_envvar='$ac_optarg'"
611    export $ac_envvar ;;
612
613  *)
614    # FIXME: should be removed in autoconf 3.0.
615    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
616    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
617      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
618    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
619    ;;
620
621  esac
622done
623
624if test -n "$ac_prev"; then
625  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
626  { echo "$as_me: error: missing argument to $ac_option" >&2
627   { (exit 1); exit 1; }; }
628fi
629
630# Be sure to have absolute paths.
631for ac_var in exec_prefix prefix
632do
633  eval ac_val=$`echo $ac_var`
634  case $ac_val in
635    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
636    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
637   { (exit 1); exit 1; }; };;
638  esac
639done
640
641# Be sure to have absolute paths.
642for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
643              localstatedir libdir includedir oldincludedir infodir mandir
644do
645  eval ac_val=$`echo $ac_var`
646  case $ac_val in
647    [\\/$]* | ?:[\\/]* ) ;;
648    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
649   { (exit 1); exit 1; }; };;
650  esac
651done
652
653# There might be people who depend on the old broken behavior: `$host'
654# used to hold the argument of --host etc.
655# FIXME: To remove some day.
656build=$build_alias
657host=$host_alias
658target=$target_alias
659
660# FIXME: To remove some day.
661if test "x$host_alias" != x; then
662  if test "x$build_alias" = x; then
663    cross_compiling=maybe
664    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
665    If a cross compiler is detected then cross compile mode will be used." >&2
666  elif test "x$build_alias" != "x$host_alias"; then
667    cross_compiling=yes
668  fi
669fi
670
671ac_tool_prefix=
672test -n "$host_alias" && ac_tool_prefix=$host_alias-
673
674test "$silent" = yes && exec 6>/dev/null
675
676
677# Find the source files, if location was not specified.
678if test -z "$srcdir"; then
679  ac_srcdir_defaulted=yes
680  # Try the directory containing this script, then its parent.
681  ac_confdir=`(dirname "$0") 2>/dev/null ||
682$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
683         X"$0" : 'X\(//\)[^/]' \| \
684         X"$0" : 'X\(//\)$' \| \
685         X"$0" : 'X\(/\)' \| \
686         .     : '\(.\)' 2>/dev/null ||
687echo X"$0" |
688    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
689          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
690          /^X\(\/\/\)$/{ s//\1/; q; }
691          /^X\(\/\).*/{ s//\1/; q; }
692          s/.*/./; q'`
693  srcdir=$ac_confdir
694  if test ! -r $srcdir/$ac_unique_file; then
695    srcdir=..
696  fi
697else
698  ac_srcdir_defaulted=no
699fi
700if test ! -r $srcdir/$ac_unique_file; then
701  if test "$ac_srcdir_defaulted" = yes; then
702    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
703   { (exit 1); exit 1; }; }
704  else
705    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
706   { (exit 1); exit 1; }; }
707  fi
708fi
709(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
710  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
711   { (exit 1); exit 1; }; }
712srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
713ac_env_build_alias_set=${build_alias+set}
714ac_env_build_alias_value=$build_alias
715ac_cv_env_build_alias_set=${build_alias+set}
716ac_cv_env_build_alias_value=$build_alias
717ac_env_host_alias_set=${host_alias+set}
718ac_env_host_alias_value=$host_alias
719ac_cv_env_host_alias_set=${host_alias+set}
720ac_cv_env_host_alias_value=$host_alias
721ac_env_target_alias_set=${target_alias+set}
722ac_env_target_alias_value=$target_alias
723ac_cv_env_target_alias_set=${target_alias+set}
724ac_cv_env_target_alias_value=$target_alias
725ac_env_CDEFS_set=${CDEFS+set}
726ac_env_CDEFS_value=$CDEFS
727ac_cv_env_CDEFS_set=${CDEFS+set}
728ac_cv_env_CDEFS_value=$CDEFS
729ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
730ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
731ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
732ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
733ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
734ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
735ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
736ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
737ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
738ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
739ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
740ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
741ac_env_CC_set=${CC+set}
742ac_env_CC_value=$CC
743ac_cv_env_CC_set=${CC+set}
744ac_cv_env_CC_value=$CC
745ac_env_CFLAGS_set=${CFLAGS+set}
746ac_env_CFLAGS_value=$CFLAGS
747ac_cv_env_CFLAGS_set=${CFLAGS+set}
748ac_cv_env_CFLAGS_value=$CFLAGS
749ac_env_LDFLAGS_set=${LDFLAGS+set}
750ac_env_LDFLAGS_value=$LDFLAGS
751ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
752ac_cv_env_LDFLAGS_value=$LDFLAGS
753ac_env_CPPFLAGS_set=${CPPFLAGS+set}
754ac_env_CPPFLAGS_value=$CPPFLAGS
755ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
756ac_cv_env_CPPFLAGS_value=$CPPFLAGS
757ac_env_MPICC_set=${MPICC+set}
758ac_env_MPICC_value=$MPICC
759ac_cv_env_MPICC_set=${MPICC+set}
760ac_cv_env_MPICC_value=$MPICC
761ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
762ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
763ac_cv_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
764ac_cv_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
765
766#
767# Report the --help message.
768#
769if test "$ac_init_help" = "long"; then
770  # Omit some internal or obsolete options to make the list less imposing.
771  # This message is too long to be a string in the A/UX 3.1 sh.
772  cat <<_ACEOF
773\`configure' configures ThirdPartyASL 1.0trunk to adapt to many kinds of systems.
774
775Usage: $0 [OPTION]... [VAR=VALUE]...
776
777To assign environment variables (e.g., CC, CFLAGS...), specify them as
778VAR=VALUE.  See below for descriptions of some of the useful variables.
779
780Defaults for the options are specified in brackets.
781
782Configuration:
783  -h, --help              display this help and exit
784      --help=short        display options specific to this package
785      --help=recursive    display the short help of all the included packages
786  -V, --version           display version information and exit
787  -q, --quiet, --silent   do not print \`checking...' messages
788      --cache-file=FILE   cache test results in FILE [disabled]
789  -C, --config-cache      alias for \`--cache-file=config.cache'
790  -n, --no-create         do not create output files
791      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
792
793_ACEOF
794
795  cat <<_ACEOF
796Installation directories:
797  --prefix=PREFIX         install architecture-independent files in PREFIX
798                          [$ac_default_prefix]
799  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
800                          [PREFIX]
801
802By default, \`make install' will install all the files in
803\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
804an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805for instance \`--prefix=\$HOME'.
806
807For better control, use the options below.
808
809Fine tuning of the installation directories:
810  --bindir=DIR           user executables [EPREFIX/bin]
811  --sbindir=DIR          system admin executables [EPREFIX/sbin]
812  --libexecdir=DIR       program executables [EPREFIX/libexec]
813  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
814  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
815  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
816  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
817  --libdir=DIR           object code libraries [EPREFIX/lib]
818  --includedir=DIR       C header files [PREFIX/include]
819  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
820  --infodir=DIR          info documentation [PREFIX/info]
821  --mandir=DIR           man documentation [PREFIX/man]
822_ACEOF
823
824  cat <<\_ACEOF
825
826Program names:
827  --program-prefix=PREFIX            prepend PREFIX to installed program names
828  --program-suffix=SUFFIX            append SUFFIX to installed program names
829  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
830
831System types:
832  --build=BUILD     configure for building on BUILD [guessed]
833_ACEOF
834fi
835
836if test -n "$ac_init_help"; then
837  case $ac_init_help in
838     short | recursive ) echo "Configuration of ThirdPartyASL 1.0trunk:";;
839   esac
840  cat <<\_ACEOF
841
842Optional Features:
843  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
844  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
845  --enable-debug          compile all projects with debug options tests
846  --enable-debug-asl compile this project (ASL) with debug options
847  --enable-doscompile     Under Cygwin, compile so that executables run under
848                          DOS. Set to mingw to use gcc/g++/ld with
849                          -mno-cygwin. Set to msvc to use cl/link. Default
850                          when mentioned: mingw. Default when not mentioned:
851                          disabled.
852  --disable-dependency-tracking  speeds up one-time build
853  --enable-dependency-tracking   do not reject slow dependency extractors
854  --enable-maintainer-mode  enable make rules and dependencies not useful
855                          (and sometimes confusing) to the casual installer
856
857Optional Packages:
858  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
859  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
860  --with-asl-verbosity specify the debug verbosity level for project ASL
861  --with-asl-checklevel specify the sanity check level for project ASL
862  --with-asldir           specify path to AMPL solver directory (or BUILD for
863                          compilation, or "no" for disabling AMPL)
864
865Some influential environment variables:
866  CDEFS       Additional -D flags to be used when compiling C code.
867  ADD_CFLAGS  Additional C compiler options
868  DBG_CFLAGS  Debug C compiler options
869  OPT_CFLAGS  Optimize C compiler options
870  CC          C compiler command
871  CFLAGS      C compiler flags
872  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
873              nonstandard directory <lib dir>
874  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
875              headers in a nonstandard directory <include dir>
876  MPICC       C MPI Compiler
877  ASLMAKEFLAGS
878              Compilation flags necessary for compiling the AMPL solver
879              library
880
881Use these variables to override the choices made by `configure' or to help
882it to find libraries and programs with nonstandard names/locations.
883
884Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
885_ACEOF
886fi
887
888if test "$ac_init_help" = "recursive"; then
889  # If there are subdirs, report their specific --help.
890  ac_popdir=`pwd`
891  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892    test -d $ac_dir || continue
893    ac_builddir=.
894
895if test "$ac_dir" != .; then
896  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897  # A "../" for each directory in $ac_dir_suffix.
898  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900  ac_dir_suffix= ac_top_builddir=
901fi
902
903case $srcdir in
904  .)  # No --srcdir option.  We are building in place.
905    ac_srcdir=.
906    if test -z "$ac_top_builddir"; then
907       ac_top_srcdir=.
908    else
909       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910    fi ;;
911  [\\/]* | ?:[\\/]* )  # Absolute path.
912    ac_srcdir=$srcdir$ac_dir_suffix;
913    ac_top_srcdir=$srcdir ;;
914  *) # Relative path.
915    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916    ac_top_srcdir=$ac_top_builddir$srcdir ;;
917esac
918
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924  case "$ac_dir" in
925  .) ac_abs_builddir=`pwd`;;
926  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927  *) ac_abs_builddir=`pwd`/"$ac_dir";;
928  esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933  case ${ac_top_builddir}. in
934  .) ac_abs_top_builddir=$ac_abs_builddir;;
935  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937  esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942  case $ac_srcdir in
943  .) ac_abs_srcdir=$ac_abs_builddir;;
944  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946  esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951  case $ac_top_srcdir in
952  .) ac_abs_top_srcdir=$ac_abs_builddir;;
953  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955  esac;;
956esac
957
958    cd $ac_dir
959    # Check for guested configure; otherwise get Cygnus style configure.
960    if test -f $ac_srcdir/configure.gnu; then
961      echo
962      $SHELL $ac_srcdir/configure.gnu  --help=recursive
963    elif test -f $ac_srcdir/configure; then
964      echo
965      $SHELL $ac_srcdir/configure  --help=recursive
966    elif test -f $ac_srcdir/configure.ac ||
967           test -f $ac_srcdir/configure.in; then
968      echo
969      $ac_configure --help
970    else
971      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972    fi
973    cd $ac_popdir
974  done
975fi
976
977test -n "$ac_init_help" && exit 0
978if $ac_init_version; then
979  cat <<\_ACEOF
980ThirdPartyASL configure 1.0trunk
981generated by GNU Autoconf 2.59
982
983Copyright (C) 2003 Free Software Foundation, Inc.
984This configure script is free software; the Free Software Foundation
985gives unlimited permission to copy, distribute and modify it.
986
987
988Copyright 2006 International Business Machines and others.
989All Rights Reserved.
990This file is part of the open source package Coin which is distributed
991under the Common Public License.
992_ACEOF
993  exit 0
994fi
995exec 5>config.log
996cat >&5 <<_ACEOF
997This file contains any messages produced by compilers while
998running configure, to aid debugging if configure makes a mistake.
999
1000It was created by ThirdPartyASL $as_me 1.0trunk, which was
1001generated by GNU Autoconf 2.59.  Invocation command line was
1002
1003  $ $0 $@
1004
1005_ACEOF
1006{
1007cat <<_ASUNAME
1008## --------- ##
1009## Platform. ##
1010## --------- ##
1011
1012hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017
1018/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1020
1021/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1022/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1023/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1024hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1025/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1026/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1027/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1028
1029_ASUNAME
1030
1031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032for as_dir in $PATH
1033do
1034  IFS=$as_save_IFS
1035  test -z "$as_dir" && as_dir=.
1036  echo "PATH: $as_dir"
1037done
1038
1039} >&5
1040
1041cat >&5 <<_ACEOF
1042
1043
1044## ----------- ##
1045## Core tests. ##
1046## ----------- ##
1047
1048_ACEOF
1049
1050
1051# Keep a trace of the command line.
1052# Strip out --no-create and --no-recursion so they do not pile up.
1053# Strip out --silent because we don't want to record it for future runs.
1054# Also quote any args containing shell meta-characters.
1055# Make two passes to allow for proper duplicate-argument suppression.
1056ac_configure_args=
1057ac_configure_args0=
1058ac_configure_args1=
1059ac_sep=
1060ac_must_keep_next=false
1061for ac_pass in 1 2
1062do
1063  for ac_arg
1064  do
1065    case $ac_arg in
1066    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068    | -silent | --silent | --silen | --sile | --sil)
1069      continue ;;
1070    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072    esac
1073    case $ac_pass in
1074    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075    2)
1076      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077      if test $ac_must_keep_next = true; then
1078        ac_must_keep_next=false # Got value, back to normal.
1079      else
1080        case $ac_arg in
1081          *=* | --config-cache | -C | -disable-* | --disable-* \
1082          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084          | -with-* | --with-* | -without-* | --without-* | --x)
1085            case "$ac_configure_args0 " in
1086              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087            esac
1088            ;;
1089          -* ) ac_must_keep_next=true ;;
1090        esac
1091      fi
1092      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093      # Get rid of the leading space.
1094      ac_sep=" "
1095      ;;
1096    esac
1097  done
1098done
1099$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101
1102# When interrupted or exit'd, cleanup temporary files, and complete
1103# config.log.  We remove comments because anyway the quotes in there
1104# would cause problems or look ugly.
1105# WARNING: Be sure not to use single quotes in there, as some shells,
1106# such as our DU 5.0 friend, will then `close' the trap.
1107trap 'exit_status=$?
1108  # Save into config.log some information that might help in debugging.
1109  {
1110    echo
1111
1112    cat <<\_ASBOX
1113## ---------------- ##
1114## Cache variables. ##
1115## ---------------- ##
1116_ASBOX
1117    echo
1118    # The following way of writing the cache mishandles newlines in values,
1119{
1120  (set) 2>&1 |
1121    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122    *ac_space=\ *)
1123      sed -n \
1124        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1126      ;;
1127    *)
1128      sed -n \
1129        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130      ;;
1131    esac;
1132}
1133    echo
1134
1135    cat <<\_ASBOX
1136## ----------------- ##
1137## Output variables. ##
1138## ----------------- ##
1139_ASBOX
1140    echo
1141    for ac_var in $ac_subst_vars
1142    do
1143      eval ac_val=$`echo $ac_var`
1144      echo "$ac_var='"'"'$ac_val'"'"'"
1145    done | sort
1146    echo
1147
1148    if test -n "$ac_subst_files"; then
1149      cat <<\_ASBOX
1150## ------------- ##
1151## Output files. ##
1152## ------------- ##
1153_ASBOX
1154      echo
1155      for ac_var in $ac_subst_files
1156      do
1157        eval ac_val=$`echo $ac_var`
1158        echo "$ac_var='"'"'$ac_val'"'"'"
1159      done | sort
1160      echo
1161    fi
1162
1163    if test -s confdefs.h; then
1164      cat <<\_ASBOX
1165## ----------- ##
1166## confdefs.h. ##
1167## ----------- ##
1168_ASBOX
1169      echo
1170      sed "/^$/d" confdefs.h | sort
1171      echo
1172    fi
1173    test "$ac_signal" != 0 &&
1174      echo "$as_me: caught signal $ac_signal"
1175    echo "$as_me: exit $exit_status"
1176  } >&5
1177  rm -f core *.core &&
1178  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179    exit $exit_status
1180     ' 0
1181for ac_signal in 1 2 13 15; do
1182  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183done
1184ac_signal=0
1185
1186# confdefs.h avoids OS command line length limits that DEFS can exceed.
1187rm -rf conftest* confdefs.h
1188# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189echo >confdefs.h
1190
1191# Predefined preprocessor variables.
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_NAME "$PACKAGE_NAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_VERSION "$PACKAGE_VERSION"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_STRING "$PACKAGE_STRING"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215_ACEOF
1216
1217
1218# Let the site file select an alternate cache file if it wants to.
1219# Prefer explicitly selected file to automatically selected ones.
1220if test -z "$CONFIG_SITE"; then
1221  if test "x$prefix" != xNONE; then
1222    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223  else
1224    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225  fi
1226fi
1227for ac_site_file in $CONFIG_SITE; do
1228  if test -r "$ac_site_file"; then
1229    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230echo "$as_me: loading site script $ac_site_file" >&6;}
1231    sed 's/^/| /' "$ac_site_file" >&5
1232    . "$ac_site_file"
1233  fi
1234done
1235
1236if test -r "$cache_file"; then
1237  # Some versions of bash will fail to source /dev/null (special
1238  # files actually), so we avoid doing that.
1239  if test -f "$cache_file"; then
1240    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241echo "$as_me: loading cache $cache_file" >&6;}
1242    case $cache_file in
1243      [\\/]* | ?:[\\/]* ) . $cache_file;;
1244      *)                      . ./$cache_file;;
1245    esac
1246  fi
1247else
1248  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249echo "$as_me: creating cache $cache_file" >&6;}
1250  >$cache_file
1251fi
1252
1253# Check that the precious variables saved in the cache have kept the same
1254# value.
1255ac_cache_corrupted=false
1256for ac_var in `(set) 2>&1 |
1257               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1258  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259  eval ac_new_set=\$ac_env_${ac_var}_set
1260  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261  eval ac_new_val="\$ac_env_${ac_var}_value"
1262  case $ac_old_set,$ac_new_set in
1263    set,)
1264      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1265echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266      ac_cache_corrupted=: ;;
1267    ,set)
1268      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1269echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270      ac_cache_corrupted=: ;;
1271    ,);;
1272    *)
1273      if test "x$ac_old_val" != "x$ac_new_val"; then
1274        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1275echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1276        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1277echo "$as_me:   former value:  $ac_old_val" >&2;}
1278        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1279echo "$as_me:   current value: $ac_new_val" >&2;}
1280        ac_cache_corrupted=:
1281      fi;;
1282  esac
1283  # Pass precious variables to config.status.
1284  if test "$ac_new_set" = set; then
1285    case $ac_new_val in
1286    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1288    *) ac_arg=$ac_var=$ac_new_val ;;
1289    esac
1290    case " $ac_configure_args " in
1291      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1292      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1293    esac
1294  fi
1295done
1296if $ac_cache_corrupted; then
1297  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1300echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301   { (exit 1); exit 1; }; }
1302fi
1303
1304ac_ext=c
1305ac_cpp='$CPP $CPPFLAGS'
1306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339# List one file in the package so that the configure script can test
1340# whether the package is actually there
1341
1342
1343# Where should everything be installed by default?  Here, we want it
1344# to be installed directly in 'bin', 'lib', 'include' subdirectories
1345# of the directory where configure is run.  The default would be
1346# /usr/local.
1347
1348
1349# Initialize the ADDLIBS variable
1350ADDLIBS="-lm $LIBS"
1351
1352
1353# Initialize the FADDLIBS variable (which is to be used with a fortran
1354# compiler and will not include FLIBS)
1355FADDLIBS="$LIBS"
1356
1357
1358# A useful makefile conditional that is always false
1359
1360
1361if false; then
1362  ALWAYS_FALSE_TRUE=
1363  ALWAYS_FALSE_FALSE='#'
1364else
1365  ALWAYS_FALSE_TRUE='#'
1366  ALWAYS_FALSE_FALSE=
1367fi
1368
1369
1370# We set the following variable so that we know later in AC_COIN_FINALIZE
1371# that we are in a project main directory
1372coin_projectdir=yes
1373
1374
1375#############################################################################
1376#                         Standard build tool stuff                         #
1377#############################################################################
1378
1379# Get the system type
1380ac_aux_dir=
1381for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1382  if test -f $ac_dir/install-sh; then
1383    ac_aux_dir=$ac_dir
1384    ac_install_sh="$ac_aux_dir/install-sh -c"
1385    break
1386  elif test -f $ac_dir/install.sh; then
1387    ac_aux_dir=$ac_dir
1388    ac_install_sh="$ac_aux_dir/install.sh -c"
1389    break
1390  elif test -f $ac_dir/shtool; then
1391    ac_aux_dir=$ac_dir
1392    ac_install_sh="$ac_aux_dir/shtool install -c"
1393    break
1394  fi
1395done
1396if test -z "$ac_aux_dir"; then
1397  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1398echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1399   { (exit 1); exit 1; }; }
1400fi
1401ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1402ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1403ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1404
1405# Make sure we can run config.sub.
1406$ac_config_sub sun4 >/dev/null 2>&1 ||
1407  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1408echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1409   { (exit 1); exit 1; }; }
1410
1411echo "$as_me:$LINENO: checking build system type" >&5
1412echo $ECHO_N "checking build system type... $ECHO_C" >&6
1413if test "${ac_cv_build+set}" = set; then
1414  echo $ECHO_N "(cached) $ECHO_C" >&6
1415else
1416  ac_cv_build_alias=$build_alias
1417test -z "$ac_cv_build_alias" &&
1418  ac_cv_build_alias=`$ac_config_guess`
1419test -z "$ac_cv_build_alias" &&
1420  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1421echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1422   { (exit 1); exit 1; }; }
1423ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1424  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1425echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1426   { (exit 1); exit 1; }; }
1427
1428fi
1429echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1430echo "${ECHO_T}$ac_cv_build" >&6
1431build=$ac_cv_build
1432build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1433build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1434build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435
1436
1437
1438#turn off warnings and pedantic mode since they could make trouble on some platforms,
1439#and we couldn't fix them anyway
1440coin_skip_warn_cflags=yes
1441
1442# Check if user wants to produce debugging code
1443
1444echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1445echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1446
1447# Check whether --enable-debug or --disable-debug was given.
1448if test "${enable_debug+set}" = set; then
1449  enableval="$enable_debug"
1450  case "${enableval}" in
1451   yes) coin_debug_compile=true
1452        if test "${enable_shared+set}" = set; then :; else
1453          enable_shared=no
1454        fi
1455        ;;
1456   no)  coin_debug_compile=false
1457        ;;
1458   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1459echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1460   { (exit 1); exit 1; }; }
1461        ;;
1462esac
1463else
1464  coin_debug_compile=false
1465fi;
1466
1467# Check whether --enable-debug-asl or --disable-debug-asl was given.
1468if test "${enable_debug_asl+set}" = set; then
1469  enableval="$enable_debug_asl"
1470  case "${enableval}" in
1471    yes) coin_debug_compile=true
1472         enable_shared=no
1473         ;;
1474    no)  coin_debug_compile=false
1475         ;;
1476    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-asl" >&5
1477echo "$as_me: error: bad value ${enableval} for --enable-debug-asl" >&2;}
1478   { (exit 1); exit 1; }; }
1479         ;;
1480 esac
1481else
1482  :
1483fi;
1484
1485 # m4_ifvaln([ASL],
1486
1487if test $coin_debug_compile = true; then
1488  echo "$as_me:$LINENO: result: yes" >&5
1489echo "${ECHO_T}yes" >&6
1490else
1491  echo "$as_me:$LINENO: result: no" >&5
1492echo "${ECHO_T}no" >&6
1493fi
1494
1495
1496# Check whether --with-asl-verbosity or --without-asl-verbosity was given.
1497if test "${with_asl_verbosity+set}" = set; then
1498  withval="$with_asl_verbosity"
1499  if test "$withval" = yes; then
1500                withval=1
1501              fi
1502              coin_asl_verbosity=$withval
1503else
1504  coin_asl_verbosity=0
1505fi;
1506
1507cat >>confdefs.h <<_ACEOF
1508#define COIN_ASL_VERBOSITY $coin_asl_verbosity
1509_ACEOF
1510
1511
1512
1513# Check whether --with-asl-checklevel or --without-asl-checklevel was given.
1514if test "${with_asl_checklevel+set}" = set; then
1515  withval="$with_asl_checklevel"
1516  if test "$withval" = yes; then
1517                withval=1
1518              fi
1519              coin_asl_checklevel=$withval
1520else
1521  coin_asl_checklevel=0
1522fi;
1523
1524cat >>confdefs.h <<_ACEOF
1525#define COIN_ASL_CHECKLEVEL $coin_asl_checklevel
1526_ACEOF
1527
1528
1529# We use the following variable to have a string with the upper case
1530# version of the project name
1531COIN_PRJCT=ASL
1532
1533
1534 # m4_ifvaln([ASL],
1535
1536
1537
1538# We need egrep and ln -s somewhere
1539echo "$as_me:$LINENO: checking for egrep" >&5
1540echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1541if test "${ac_cv_prog_egrep+set}" = set; then
1542  echo $ECHO_N "(cached) $ECHO_C" >&6
1543else
1544  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1545    then ac_cv_prog_egrep='grep -E'
1546    else ac_cv_prog_egrep='egrep'
1547    fi
1548fi
1549echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1550echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1551 EGREP=$ac_cv_prog_egrep
1552
1553
1554echo "$as_me:$LINENO: checking whether ln -s works" >&5
1555echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1556LN_S=$as_ln_s
1557if test "$LN_S" = "ln -s"; then
1558  echo "$as_me:$LINENO: result: yes" >&5
1559echo "${ECHO_T}yes" >&6
1560else
1561  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1562echo "${ECHO_T}no, using $LN_S" >&6
1563fi
1564
1565
1566# Get the name of the C compiler and appropriate compiler options
1567coin_skip_warn_cflags=yes
1568case $build in
1569  *-mingw*)
1570    if test "${LD+set}" = set; then :; else
1571      LD=link
1572    fi
1573    ;;
1574 esac
1575 case $enable_doscompile in
1576   msvc)
1577     if test "x${LD+set}" = xset; then :; else
1578       LD=link
1579     fi
1580     ;;
1581 esac
1582
1583
1584 # Check whether --enable-doscompile or --disable-doscompile was given.
1585if test "${enable_doscompile+set}" = set; then
1586  enableval="$enable_doscompile"
1587  if test "$enable_doscompile" != no; then
1588     case $build in
1589       *-cygwin*) ;;
1590       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1591echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1592   { (exit 1); exit 1; }; } ;;
1593     esac
1594   fi
1595else
1596  enable_doscompile=no
1597fi;
1598 case "$enable_doscompile" in
1599   msvc|mingw|no) ;;
1600   yes) enable_doscompile=mingw ;;
1601   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1602                    Try configure --help=recursive." >&5
1603echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1604                    Try configure --help=recursive." >&2;}
1605   { (exit 1); exit 1; }; }
1606      ;;
1607  esac
1608  if test "$enable_doscompile" != no ; then
1609    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1610echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1611  fi
1612
1613
1614
1615
1616ac_ext=c
1617ac_cpp='$CPP $CPPFLAGS'
1618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1620ac_compiler_gnu=$ac_cv_c_compiler_gnu
1621
1622
1623# For consistency, we set the C compiler to the same value of the C++
1624# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1625if test x"$CXX" != x; then
1626  case "$CXX" in
1627    cl* | */cl* | CL* | */CL*)
1628      if test x"$CC" = x; then
1629        CC="$CXX"
1630        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1631echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1632      fi
1633      ;;
1634  esac
1635fi
1636
1637
1638
1639
1640
1641
1642coin_has_cc=yes
1643
1644save_cflags="$CFLAGS"
1645# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1646# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1647# is likely to be a non-functional shell. But many installations will have
1648# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1649case $build in
1650  *-cygwin* | *-mingw*)
1651             if test "$enable_doscompile" = msvc ; then
1652               comps="cl"
1653             else
1654               comps="gcc cl"
1655             fi ;;
1656  sparc-sun-solaris*)
1657             comps="cc xlc gcc pgcc icc" ;;
1658  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1659  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1660esac
1661
1662# We delete the cached value, since the test might not have been
1663# performed with our choice of compilers earlier
1664$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1665# AC_MSG_NOTICE([C compiler candidates: $comps])
1666ac_ext=c
1667ac_cpp='$CPP $CPPFLAGS'
1668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1670ac_compiler_gnu=$ac_cv_c_compiler_gnu
1671if test -n "$ac_tool_prefix"; then
1672  for ac_prog in $comps
1673  do
1674    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1675set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1676echo "$as_me:$LINENO: checking for $ac_word" >&5
1677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678if test "${ac_cv_prog_CC+set}" = set; then
1679  echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681  if test -n "$CC"; then
1682  ac_cv_prog_CC="$CC" # Let the user override the test.
1683else
1684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685for as_dir in $PATH
1686do
1687  IFS=$as_save_IFS
1688  test -z "$as_dir" && as_dir=.
1689  for ac_exec_ext in '' $ac_executable_extensions; do
1690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693    break 2
1694  fi
1695done
1696done
1697
1698fi
1699fi
1700CC=$ac_cv_prog_CC
1701if test -n "$CC"; then
1702  echo "$as_me:$LINENO: result: $CC" >&5
1703echo "${ECHO_T}$CC" >&6
1704else
1705  echo "$as_me:$LINENO: result: no" >&5
1706echo "${ECHO_T}no" >&6
1707fi
1708
1709    test -n "$CC" && break
1710  done
1711fi
1712if test -z "$CC"; then
1713  ac_ct_CC=$CC
1714  for ac_prog in $comps
1715do
1716  # Extract the first word of "$ac_prog", so it can be a program name with args.
1717set dummy $ac_prog; ac_word=$2
1718echo "$as_me:$LINENO: checking for $ac_word" >&5
1719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1721  echo $ECHO_N "(cached) $ECHO_C" >&6
1722else
1723  if test -n "$ac_ct_CC"; then
1724  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725else
1726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727for as_dir in $PATH
1728do
1729  IFS=$as_save_IFS
1730  test -z "$as_dir" && as_dir=.
1731  for ac_exec_ext in '' $ac_executable_extensions; do
1732  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733    ac_cv_prog_ac_ct_CC="$ac_prog"
1734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735    break 2
1736  fi
1737done
1738done
1739
1740fi
1741fi
1742ac_ct_CC=$ac_cv_prog_ac_ct_CC
1743if test -n "$ac_ct_CC"; then
1744  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1745echo "${ECHO_T}$ac_ct_CC" >&6
1746else
1747  echo "$as_me:$LINENO: result: no" >&5
1748echo "${ECHO_T}no" >&6
1749fi
1750
1751  test -n "$ac_ct_CC" && break
1752done
1753
1754  CC=$ac_ct_CC
1755fi
1756
1757
1758test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1759See \`config.log' for more details." >&5
1760echo "$as_me: error: no acceptable C compiler found in \$PATH
1761See \`config.log' for more details." >&2;}
1762   { (exit 1); exit 1; }; }
1763
1764# Provide some information about the compiler.
1765echo "$as_me:$LINENO:" \
1766     "checking for C compiler version" >&5
1767ac_compiler=`set X $ac_compile; echo $2`
1768{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1769  (eval $ac_compiler --version </dev/null >&5) 2>&5
1770  ac_status=$?
1771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772  (exit $ac_status); }
1773{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1774  (eval $ac_compiler -v </dev/null >&5) 2>&5
1775  ac_status=$?
1776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1777  (exit $ac_status); }
1778{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1779  (eval $ac_compiler -V </dev/null >&5) 2>&5
1780  ac_status=$?
1781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782  (exit $ac_status); }
1783
1784cat >conftest.$ac_ext <<_ACEOF
1785/* confdefs.h.  */
1786_ACEOF
1787cat confdefs.h >>conftest.$ac_ext
1788cat >>conftest.$ac_ext <<_ACEOF
1789/* end confdefs.h.  */
1790
1791int
1792main ()
1793{
1794
1795  ;
1796  return 0;
1797}
1798_ACEOF
1799ac_clean_files_save=$ac_clean_files
1800ac_clean_files="$ac_clean_files a.out a.exe b.out"
1801# Try to create an executable without -o first, disregard a.out.
1802# It will help us diagnose broken compilers, and finding out an intuition
1803# of exeext.
1804echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1805echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1806ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1807if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1808  (eval $ac_link_default) 2>&5
1809  ac_status=$?
1810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811  (exit $ac_status); }; then
1812  # Find the output, starting from the most likely.  This scheme is
1813# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1814# resort.
1815
1816# Be careful to initialize this variable, since it used to be cached.
1817# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1818ac_cv_exeext=
1819# b.out is created by i960 compilers.
1820for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1821do
1822  test -f "$ac_file" || continue
1823  case $ac_file in
1824    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1825        ;;
1826    conftest.$ac_ext )
1827        # This is the source file.
1828        ;;
1829    [ab].out )
1830        # We found the default executable, but exeext='' is most
1831        # certainly right.
1832        break;;
1833    *.* )
1834        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835        # FIXME: I believe we export ac_cv_exeext for Libtool,
1836        # but it would be cool to find out if it's true.  Does anybody
1837        # maintain Libtool? --akim.
1838        export ac_cv_exeext
1839        break;;
1840    * )
1841        break;;
1842  esac
1843done
1844else
1845  echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
1848{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1849See \`config.log' for more details." >&5
1850echo "$as_me: error: C compiler cannot create executables
1851See \`config.log' for more details." >&2;}
1852   { (exit 77); exit 77; }; }
1853fi
1854
1855ac_exeext=$ac_cv_exeext
1856echo "$as_me:$LINENO: result: $ac_file" >&5
1857echo "${ECHO_T}$ac_file" >&6
1858
1859# Check the compiler produces executables we can run.  If not, either
1860# the compiler is broken, or we cross compile.
1861echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1862echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1863# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1864# If not cross compiling, check that we can run a simple program.
1865if test "$cross_compiling" != yes; then
1866  if { ac_try='./$ac_file'
1867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1868  (eval $ac_try) 2>&5
1869  ac_status=$?
1870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871  (exit $ac_status); }; }; then
1872    cross_compiling=no
1873  else
1874    if test "$cross_compiling" = maybe; then
1875        cross_compiling=yes
1876    else
1877        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1878If you meant to cross compile, use \`--host'.
1879See \`config.log' for more details." >&5
1880echo "$as_me: error: cannot run C compiled programs.
1881If you meant to cross compile, use \`--host'.
1882See \`config.log' for more details." >&2;}
1883   { (exit 1); exit 1; }; }
1884    fi
1885  fi
1886fi
1887echo "$as_me:$LINENO: result: yes" >&5
1888echo "${ECHO_T}yes" >&6
1889
1890rm -f a.out a.exe conftest$ac_cv_exeext b.out
1891ac_clean_files=$ac_clean_files_save
1892# Check the compiler produces executables we can run.  If not, either
1893# the compiler is broken, or we cross compile.
1894echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1895echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1896echo "$as_me:$LINENO: result: $cross_compiling" >&5
1897echo "${ECHO_T}$cross_compiling" >&6
1898
1899echo "$as_me:$LINENO: checking for suffix of executables" >&5
1900echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1902  (eval $ac_link) 2>&5
1903  ac_status=$?
1904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905  (exit $ac_status); }; then
1906  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1907# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1908# work properly (i.e., refer to `conftest.exe'), while it won't with
1909# `rm'.
1910for ac_file in conftest.exe conftest conftest.*; do
1911  test -f "$ac_file" || continue
1912  case $ac_file in
1913    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1914    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1915          export ac_cv_exeext
1916          break;;
1917    * ) break;;
1918  esac
1919done
1920else
1921  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1922See \`config.log' for more details." >&5
1923echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1924See \`config.log' for more details." >&2;}
1925   { (exit 1); exit 1; }; }
1926fi
1927
1928rm -f conftest$ac_cv_exeext
1929echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1930echo "${ECHO_T}$ac_cv_exeext" >&6
1931
1932rm -f conftest.$ac_ext
1933EXEEXT=$ac_cv_exeext
1934ac_exeext=$EXEEXT
1935echo "$as_me:$LINENO: checking for suffix of object files" >&5
1936echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1937if test "${ac_cv_objext+set}" = set; then
1938  echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940  cat >conftest.$ac_ext <<_ACEOF
1941/* confdefs.h.  */
1942_ACEOF
1943cat confdefs.h >>conftest.$ac_ext
1944cat >>conftest.$ac_ext <<_ACEOF
1945/* end confdefs.h.  */
1946
1947int
1948main ()
1949{
1950
1951  ;
1952  return 0;
1953}
1954_ACEOF
1955rm -f conftest.o conftest.obj
1956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1957  (eval $ac_compile) 2>&5
1958  ac_status=$?
1959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960  (exit $ac_status); }; then
1961  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1962  case $ac_file in
1963    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1964    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1965       break;;
1966  esac
1967done
1968else
1969  echo "$as_me: failed program was:" >&5
1970sed 's/^/| /' conftest.$ac_ext >&5
1971
1972{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1973See \`config.log' for more details." >&5
1974echo "$as_me: error: cannot compute suffix of object files: cannot compile
1975See \`config.log' for more details." >&2;}
1976   { (exit 1); exit 1; }; }
1977fi
1978
1979rm -f conftest.$ac_cv_objext conftest.$ac_ext
1980fi
1981echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1982echo "${ECHO_T}$ac_cv_objext" >&6
1983OBJEXT=$ac_cv_objext
1984ac_objext=$OBJEXT
1985echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1986echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1987if test "${ac_cv_c_compiler_gnu+set}" = set; then
1988  echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990  cat >conftest.$ac_ext <<_ACEOF
1991/* confdefs.h.  */
1992_ACEOF
1993cat confdefs.h >>conftest.$ac_ext
1994cat >>conftest.$ac_ext <<_ACEOF
1995/* end confdefs.h.  */
1996
1997int
1998main ()
1999{
2000#ifndef __GNUC__
2001       choke me
2002#endif
2003
2004  ;
2005  return 0;
2006}
2007_ACEOF
2008rm -f conftest.$ac_objext
2009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2010  (eval $ac_compile) 2>conftest.er1
2011  ac_status=$?
2012  grep -v '^ *+' conftest.er1 >conftest.err
2013  rm -f conftest.er1
2014  cat conftest.err >&5
2015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016  (exit $ac_status); } &&
2017         { ac_try='test -z "$ac_c_werror_flag"
2018                         || test ! -s conftest.err'
2019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020  (eval $ac_try) 2>&5
2021  ac_status=$?
2022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023  (exit $ac_status); }; } &&
2024         { ac_try='test -s conftest.$ac_objext'
2025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2026  (eval $ac_try) 2>&5
2027  ac_status=$?
2028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029  (exit $ac_status); }; }; then
2030  ac_compiler_gnu=yes
2031else
2032  echo "$as_me: failed program was:" >&5
2033sed 's/^/| /' conftest.$ac_ext >&5
2034
2035ac_compiler_gnu=no
2036fi
2037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2038ac_cv_c_compiler_gnu=$ac_compiler_gnu
2039
2040fi
2041echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2042echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2043GCC=`test $ac_compiler_gnu = yes && echo yes`
2044ac_test_CFLAGS=${CFLAGS+set}
2045ac_save_CFLAGS=$CFLAGS
2046CFLAGS="-g"
2047echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2048echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2049if test "${ac_cv_prog_cc_g+set}" = set; then
2050  echo $ECHO_N "(cached) $ECHO_C" >&6
2051else
2052  cat >conftest.$ac_ext <<_ACEOF
2053/* confdefs.h.  */
2054_ACEOF
2055cat confdefs.h >>conftest.$ac_ext
2056cat >>conftest.$ac_ext <<_ACEOF
2057/* end confdefs.h.  */
2058
2059int
2060main ()
2061{
2062
2063  ;
2064  return 0;
2065}
2066_ACEOF
2067rm -f conftest.$ac_objext
2068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2069  (eval $ac_compile) 2>conftest.er1
2070  ac_status=$?
2071  grep -v '^ *+' conftest.er1 >conftest.err
2072  rm -f conftest.er1
2073  cat conftest.err >&5
2074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075  (exit $ac_status); } &&
2076         { ac_try='test -z "$ac_c_werror_flag"
2077                         || test ! -s conftest.err'
2078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079  (eval $ac_try) 2>&5
2080  ac_status=$?
2081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082  (exit $ac_status); }; } &&
2083         { ac_try='test -s conftest.$ac_objext'
2084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085  (eval $ac_try) 2>&5
2086  ac_status=$?
2087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088  (exit $ac_status); }; }; then
2089  ac_cv_prog_cc_g=yes
2090else
2091  echo "$as_me: failed program was:" >&5
2092sed 's/^/| /' conftest.$ac_ext >&5
2093
2094ac_cv_prog_cc_g=no
2095fi
2096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2097fi
2098echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2099echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2100if test "$ac_test_CFLAGS" = set; then
2101  CFLAGS=$ac_save_CFLAGS
2102elif test $ac_cv_prog_cc_g = yes; then
2103  if test "$GCC" = yes; then
2104    CFLAGS="-g -O2"
2105  else
2106    CFLAGS="-g"
2107  fi
2108else
2109  if test "$GCC" = yes; then
2110    CFLAGS="-O2"
2111  else
2112    CFLAGS=
2113  fi
2114fi
2115echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2116echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2117if test "${ac_cv_prog_cc_stdc+set}" = set; then
2118  echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120  ac_cv_prog_cc_stdc=no
2121ac_save_CC=$CC
2122cat >conftest.$ac_ext <<_ACEOF
2123/* confdefs.h.  */
2124_ACEOF
2125cat confdefs.h >>conftest.$ac_ext
2126cat >>conftest.$ac_ext <<_ACEOF
2127/* end confdefs.h.  */
2128#include <stdarg.h>
2129#include <stdio.h>
2130#include <sys/types.h>
2131#include <sys/stat.h>
2132/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2133struct buf { int x; };
2134FILE * (*rcsopen) (struct buf *, struct stat *, int);
2135static char *e (p, i)
2136     char **p;
2137     int i;
2138{
2139  return p[i];
2140}
2141static char *f (char * (*g) (char **, int), char **p, ...)
2142{
2143  char *s;
2144  va_list v;
2145  va_start (v,p);
2146  s = g (p, va_arg (v,int));
2147  va_end (v);
2148  return s;
2149}
2150
2151/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2152   function prototypes and stuff, but not '\xHH' hex character constants.
2153   These don't provoke an error unfortunately, instead are silently treated
2154   as 'x'.  The following induces an error, until -std1 is added to get
2155   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2156   array size at least.  It's necessary to write '\x00'==0 to get something
2157   that's true only with -std1.  */
2158int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2159
2160int test (int i, double x);
2161struct s1 {int (*f) (int a);};
2162struct s2 {int (*f) (double a);};
2163int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2164int argc;
2165char **argv;
2166int
2167main ()
2168{
2169return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2170  ;
2171  return 0;
2172}
2173_ACEOF
2174# Don't try gcc -ansi; that turns off useful extensions and
2175# breaks some systems' header files.
2176# AIX                   -qlanglvl=ansi
2177# Ultrix and OSF/1      -std1
2178# HP-UX 10.20 and later -Ae
2179# HP-UX older versions  -Aa -D_HPUX_SOURCE
2180# SVR4                  -Xc -D__EXTENSIONS__
2181for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2182do
2183  CC="$ac_save_CC $ac_arg"
2184  rm -f conftest.$ac_objext
2185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186  (eval $ac_compile) 2>conftest.er1
2187  ac_status=$?
2188  grep -v '^ *+' conftest.er1 >conftest.err
2189  rm -f conftest.er1
2190  cat conftest.err >&5
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); } &&
2193         { ac_try='test -z "$ac_c_werror_flag"
2194                         || test ! -s conftest.err'
2195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196  (eval $ac_try) 2>&5
2197  ac_status=$?
2198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199  (exit $ac_status); }; } &&
2200         { ac_try='test -s conftest.$ac_objext'
2201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202  (eval $ac_try) 2>&5
2203  ac_status=$?
2204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205  (exit $ac_status); }; }; then
2206  ac_cv_prog_cc_stdc=$ac_arg
2207break
2208else
2209  echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212fi
2213rm -f conftest.err conftest.$ac_objext
2214done
2215rm -f conftest.$ac_ext conftest.$ac_objext
2216CC=$ac_save_CC
2217
2218fi
2219
2220case "x$ac_cv_prog_cc_stdc" in
2221  x|xno)
2222    echo "$as_me:$LINENO: result: none needed" >&5
2223echo "${ECHO_T}none needed" >&6 ;;
2224  *)
2225    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2226echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2227    CC="$CC $ac_cv_prog_cc_stdc" ;;
2228esac
2229
2230# Some people use a C++ compiler to compile C.  Since we use `exit',
2231# in C++ we need to declare it.  In case someone uses the same compiler
2232# for both compiling C and C++ we need to have the C++ compiler decide
2233# the declaration of exit, since it's the most demanding environment.
2234cat >conftest.$ac_ext <<_ACEOF
2235#ifndef __cplusplus
2236  choke me
2237#endif
2238_ACEOF
2239rm -f conftest.$ac_objext
2240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241  (eval $ac_compile) 2>conftest.er1
2242  ac_status=$?
2243  grep -v '^ *+' conftest.er1 >conftest.err
2244  rm -f conftest.er1
2245  cat conftest.err >&5
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); } &&
2248         { ac_try='test -z "$ac_c_werror_flag"
2249                         || test ! -s conftest.err'
2250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251  (eval $ac_try) 2>&5
2252  ac_status=$?
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); }; } &&
2255         { ac_try='test -s conftest.$ac_objext'
2256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257  (eval $ac_try) 2>&5
2258  ac_status=$?
2259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260  (exit $ac_status); }; }; then
2261  for ac_declaration in \
2262   '' \
2263   'extern "C" void std::exit (int) throw (); using std::exit;' \
2264   'extern "C" void std::exit (int); using std::exit;' \
2265   'extern "C" void exit (int) throw ();' \
2266   'extern "C" void exit (int);' \
2267   'void exit (int);'
2268do
2269  cat >conftest.$ac_ext <<_ACEOF
2270/* confdefs.h.  */
2271_ACEOF
2272cat confdefs.h >>conftest.$ac_ext
2273cat >>conftest.$ac_ext <<_ACEOF
2274/* end confdefs.h.  */
2275$ac_declaration
2276#include <stdlib.h>
2277int
2278main ()
2279{
2280exit (42);
2281  ;
2282  return 0;
2283}
2284_ACEOF
2285rm -f conftest.$ac_objext
2286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287  (eval $ac_compile) 2>conftest.er1
2288  ac_status=$?
2289  grep -v '^ *+' conftest.er1 >conftest.err
2290  rm -f conftest.er1
2291  cat conftest.err >&5
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); } &&
2294         { ac_try='test -z "$ac_c_werror_flag"
2295                         || test ! -s conftest.err'
2296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297  (eval $ac_try) 2>&5
2298  ac_status=$?
2299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300  (exit $ac_status); }; } &&
2301         { ac_try='test -s conftest.$ac_objext'
2302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303  (eval $ac_try) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); }; }; then
2307  :
2308else
2309  echo "$as_me: failed program was:" >&5
2310sed 's/^/| /' conftest.$ac_ext >&5
2311
2312continue
2313fi
2314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321$ac_declaration
2322int
2323main ()
2324{
2325exit (42);
2326  ;
2327  return 0;
2328}
2329_ACEOF
2330rm -f conftest.$ac_objext
2331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332  (eval $ac_compile) 2>conftest.er1
2333  ac_status=$?
2334  grep -v '^ *+' conftest.er1 >conftest.err
2335  rm -f conftest.er1
2336  cat conftest.err >&5
2337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338  (exit $ac_status); } &&
2339         { ac_try='test -z "$ac_c_werror_flag"
2340                         || test ! -s conftest.err'
2341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342  (eval $ac_try) 2>&5
2343  ac_status=$?
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }; } &&
2346         { ac_try='test -s conftest.$ac_objext'
2347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348  (eval $ac_try) 2>&5
2349  ac_status=$?
2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351  (exit $ac_status); }; }; then
2352  break
2353else
2354  echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357fi
2358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359done
2360rm -f conftest*
2361if test -n "$ac_declaration"; then
2362  echo '#ifdef __cplusplus' >>confdefs.h
2363  echo $ac_declaration      >>confdefs.h
2364  echo '#endif'             >>confdefs.h
2365fi
2366
2367else
2368  echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371fi
2372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2373ac_ext=c
2374ac_cpp='$CPP $CPPFLAGS'
2375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378
2379if test -z "$CC" ; then
2380  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2381echo "$as_me: error: Failed to find a C compiler!" >&2;}
2382   { (exit 1); exit 1; }; }
2383fi
2384# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2385case "$CC" in
2386  cl* | */cl* | CL* | */CL* )
2387    if test "$ac_cv_prog_cc_g" = yes ; then
2388      ac_cv_prog_cc_g=no
2389      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2390echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2391    fi ;;
2392esac
2393CFLAGS="$save_cflags"
2394
2395# Check if a project specific CFLAGS variable has been set
2396if test x$COIN_PRJCT != x; then
2397  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2398  if test x$coin_tmp = xset; then
2399    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2400  fi
2401fi
2402
2403if test x"$CFLAGS" = x; then
2404
2405  coin_add_cflags=
2406  coin_opt_cflags=
2407  coin_dbg_cflags=
2408  coin_warn_cflags=
2409
2410  if test "$GCC" = "yes"; then
2411    case "$CC" in
2412      icc* | */icc*)
2413        ;;
2414      *)
2415        coin_opt_cflags="-O3 -fomit-frame-pointer"
2416        coin_add_cflags="-pipe"
2417        coin_dbg_cflags="-g"
2418        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2419        case $enable_doscompile in
2420          mingw)
2421            CFLAGS="-mno-cygwin"
2422            cat >conftest.$ac_ext <<_ACEOF
2423/* confdefs.h.  */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
2427/* end confdefs.h.  */
2428
2429int
2430main ()
2431{
2432int i=0; i++;
2433  ;
2434  return 0;
2435}
2436_ACEOF
2437rm -f conftest.$ac_objext conftest$ac_exeext
2438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2439  (eval $ac_link) 2>conftest.er1
2440  ac_status=$?
2441  grep -v '^ *+' conftest.er1 >conftest.err
2442  rm -f conftest.er1
2443  cat conftest.err >&5
2444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445  (exit $ac_status); } &&
2446         { ac_try='test -z "$ac_c_werror_flag"
2447                         || test ! -s conftest.err'
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); }; } &&
2453         { ac_try='test -s conftest$ac_exeext'
2454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455  (eval $ac_try) 2>&5
2456  ac_status=$?
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); }; }; then
2459  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2460else
2461  echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464fi
2465rm -f conftest.err conftest.$ac_objext \
2466      conftest$ac_exeext conftest.$ac_ext
2467            CFLAGS=
2468          ;;
2469        esac
2470    esac
2471  fi
2472  if test -z "$coin_opt_cflags"; then
2473    case $build in
2474      *-cygwin* | *-mingw*)
2475        case "$CC" in
2476          cl* | */cl* | CL* | */CL*)
2477            coin_opt_cflags='-MT -O2'
2478            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2479            coin_dbg_cflags='-MTd'
2480            ;;
2481        esac
2482        ;;
2483      *-linux-*)
2484        case "$CC" in
2485          icc* | */icc*)
2486            coin_opt_cflags="-O3 -ip"
2487            coin_add_cflags=""
2488            coin_dbg_cflags="-g"
2489            # Check if -i_dynamic is necessary (for new glibc library)
2490            CFLAGS=
2491            cat >conftest.$ac_ext <<_ACEOF
2492/* confdefs.h.  */
2493_ACEOF
2494cat confdefs.h >>conftest.$ac_ext
2495cat >>conftest.$ac_ext <<_ACEOF
2496/* end confdefs.h.  */
2497
2498int
2499main ()
2500{
2501int i=0; i++;
2502  ;
2503  return 0;
2504}
2505_ACEOF
2506rm -f conftest.$ac_objext conftest$ac_exeext
2507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2508  (eval $ac_link) 2>conftest.er1
2509  ac_status=$?
2510  grep -v '^ *+' conftest.er1 >conftest.err
2511  rm -f conftest.er1
2512  cat conftest.err >&5
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); } &&
2515         { ac_try='test -z "$ac_c_werror_flag"
2516                         || test ! -s conftest.err'
2517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518  (eval $ac_try) 2>&5
2519  ac_status=$?
2520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521  (exit $ac_status); }; } &&
2522         { ac_try='test -s conftest$ac_exeext'
2523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524  (eval $ac_try) 2>&5
2525  ac_status=$?
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); }; }; then
2528  :
2529else
2530  echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533coin_add_cflags="-i_dynamic $coin_add_cflags"
2534fi
2535rm -f conftest.err conftest.$ac_objext \
2536      conftest$ac_exeext conftest.$ac_ext
2537            ;;
2538          pgcc* | */pgcc*)
2539            coin_opt_cflags="-fast"
2540            coin_add_cflags="-Kieee -pc 64"
2541            coin_dbg_cflags="-g"
2542            ;;
2543        esac
2544        ;;
2545      *-ibm-*)
2546        case "$CC" in
2547          xlc* | */xlc* | mpxlc* | */mpxlc*)
2548            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2549            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2550            coin_dbg_cflags="-g"
2551          ;;
2552        esac
2553        ;;
2554      *-hp-*)
2555        coin_opt_cflags="-O"
2556        coin_add_cflags="-Ae"
2557        coin_dbg_cflags="-g"
2558        ;;
2559      *-sun-*)
2560        coin_opt_cflags="-xO4"
2561        coin_dbg_cflags="-g"
2562        ;;
2563      *-sgi-*)
2564        coin_opt_cflags="-O -OPT:Olimit=0"
2565        coin_dbg_cflags="-g"
2566        ;;
2567    esac
2568  fi
2569
2570  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2571    coin_dbg_cflags="-g"
2572  fi
2573
2574  if test -z "$coin_opt_cflags"; then
2575    # Try if -O option works if nothing else is set
2576    CFLAGS="-O"
2577    cat >conftest.$ac_ext <<_ACEOF
2578/* confdefs.h.  */
2579_ACEOF
2580cat confdefs.h >>conftest.$ac_ext
2581cat >>conftest.$ac_ext <<_ACEOF
2582/* end confdefs.h.  */
2583
2584int
2585main ()
2586{
2587int i=0; i++;
2588  ;
2589  return 0;
2590}
2591_ACEOF
2592rm -f conftest.$ac_objext conftest$ac_exeext
2593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2594  (eval $ac_link) 2>conftest.er1
2595  ac_status=$?
2596  grep -v '^ *+' conftest.er1 >conftest.err
2597  rm -f conftest.er1
2598  cat conftest.err >&5
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); } &&
2601         { ac_try='test -z "$ac_c_werror_flag"
2602                         || test ! -s conftest.err'
2603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604  (eval $ac_try) 2>&5
2605  ac_status=$?
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); }; } &&
2608         { ac_try='test -s conftest$ac_exeext'
2609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610  (eval $ac_try) 2>&5
2611  ac_status=$?
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); }; }; then
2614  coin_opt_cflags="-O"
2615else
2616  echo "$as_me: failed program was:" >&5
2617sed 's/^/| /' conftest.$ac_ext >&5
2618
2619fi
2620rm -f conftest.err conftest.$ac_objext \
2621      conftest$ac_exeext conftest.$ac_ext
2622  fi
2623
2624  # if PM doesn't want the warning messages, take them out
2625  if test x"$coin_skip_warn_cflags" = xyes; then
2626    coin_warn_cflags=
2627  fi
2628
2629  if test x${DBG_CFLAGS+set} != xset; then
2630    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2631  fi
2632  if test x${OPT_CFLAGS+set} != xset; then
2633    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2634  fi
2635
2636  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2637  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2638
2639  if test "$coin_debug_compile" = "true"; then
2640    CFLAGS="$DBG_CFLAGS"
2641  else
2642    CFLAGS="$OPT_CFLAGS"
2643  fi
2644else
2645  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2646  if test x${DBG_CFLAGS+set} != xset; then
2647    DBG_CFLAGS="$CFLAGS"
2648  fi
2649  if test x${OPT_CFLAGS+set} != xset; then
2650    OPT_CFLAGS="$CFLAGS"
2651  fi
2652fi
2653
2654# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2655
2656case "$CFLAGS" in
2657  *-mno-cygwin*)
2658    if test x${CPPFLAGS+set} != xset ; then
2659      CPPFLAGS="-mno-cygwin"
2660    else
2661      case "$CPPFLAGS" in
2662        *-mno-cygwin*)
2663          ;;
2664        *)
2665          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2666          ;;
2667      esac
2668    fi ;;
2669esac
2670
2671# Try if CFLAGS works
2672save_CFLAGS="$CFLAGS"
2673cat >conftest.$ac_ext <<_ACEOF
2674/* confdefs.h.  */
2675_ACEOF
2676cat confdefs.h >>conftest.$ac_ext
2677cat >>conftest.$ac_ext <<_ACEOF
2678/* end confdefs.h.  */
2679
2680int
2681main ()
2682{
2683int i=0; i++;
2684  ;
2685  return 0;
2686}
2687_ACEOF
2688rm -f conftest.$ac_objext conftest$ac_exeext
2689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2690  (eval $ac_link) 2>conftest.er1
2691  ac_status=$?
2692  grep -v '^ *+' conftest.er1 >conftest.err
2693  rm -f conftest.er1
2694  cat conftest.err >&5
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); } &&
2697         { ac_try='test -z "$ac_c_werror_flag"
2698                         || test ! -s conftest.err'
2699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700  (eval $ac_try) 2>&5
2701  ac_status=$?
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); }; } &&
2704         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2710  :
2711else
2712  echo "$as_me: failed program was:" >&5
2713sed 's/^/| /' conftest.$ac_ext >&5
2714
2715CFLAGS=
2716fi
2717rm -f conftest.err conftest.$ac_objext \
2718      conftest$ac_exeext conftest.$ac_ext
2719if test -z "$CFLAGS"; then
2720  { 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
2721echo "$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;}
2722  CFLAGS='-O'
2723  cat >conftest.$ac_ext <<_ACEOF
2724/* confdefs.h.  */
2725_ACEOF
2726cat confdefs.h >>conftest.$ac_ext
2727cat >>conftest.$ac_ext <<_ACEOF
2728/* end confdefs.h.  */
2729
2730int
2731main ()
2732{
2733int i=0; i++;
2734  ;
2735  return 0;
2736}
2737_ACEOF
2738rm -f conftest.$ac_objext conftest$ac_exeext
2739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2740  (eval $ac_link) 2>conftest.er1
2741  ac_status=$?
2742  grep -v '^ *+' conftest.er1 >conftest.err
2743  rm -f conftest.er1
2744  cat conftest.err >&5
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); } &&
2747         { ac_try='test -z "$ac_c_werror_flag"
2748                         || test ! -s conftest.err'
2749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750  (eval $ac_try) 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }; } &&
2754         { ac_try='test -s conftest$ac_exeext'
2755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756  (eval $ac_try) 2>&5
2757  ac_status=$?
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); }; }; then
2760  :
2761else
2762  echo "$as_me: failed program was:" >&5
2763sed 's/^/| /' conftest.$ac_ext >&5
2764
2765CFLAGS=
2766fi
2767rm -f conftest.err conftest.$ac_objext \
2768      conftest$ac_exeext conftest.$ac_ext
2769  if test -z "$CFLAGS"; then
2770    { 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
2771echo "$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;}
2772  fi
2773fi
2774
2775{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2776echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2777
2778
2779if test x"$MPICC" = x; then :; else
2780  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2781echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2782  CC="$MPICC"
2783fi
2784
2785# Correct ADDLIBS initialization if we are using the MS compiler
2786case "$CC" in
2787  cl* | */cl* | CL* | */CL*)
2788    ADDLIBS=
2789    case $build in
2790  *-mingw*)
2791    if test "${LD+set}" = set; then :; else
2792      LD=link
2793    fi
2794    ;;
2795 esac
2796 case $enable_doscompile in
2797   msvc)
2798     if test "x${LD+set}" = xset; then :; else
2799       LD=link
2800     fi
2801     ;;
2802 esac
2803
2804    ;;
2805esac
2806
2807ac_ext=c
2808ac_cpp='$CPP $CPPFLAGS'
2809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812
2813
2814
2815# Initialize automake
2816am__api_version="1.9"
2817# Find a good install program.  We prefer a C program (faster),
2818# so one script is as good as another.  But avoid the broken or
2819# incompatible versions:
2820# SysV /etc/install, /usr/sbin/install
2821# SunOS /usr/etc/install
2822# IRIX /sbin/install
2823# AIX /bin/install
2824# AmigaOS /C/install, which installs bootblocks on floppy discs
2825# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2826# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2827# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2828# OS/2's system install, which has a completely different semantic
2829# ./install, which can be erroneously created by make from ./install.sh.
2830echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2831echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2832if test -z "$INSTALL"; then
2833if test "${ac_cv_path_install+set}" = set; then
2834  echo $ECHO_N "(cached) $ECHO_C" >&6
2835else
2836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839  IFS=$as_save_IFS
2840  test -z "$as_dir" && as_dir=.
2841  # Account for people who put trailing slashes in PATH elements.
2842case $as_dir/ in
2843  ./ | .// | /cC/* | \
2844  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2845  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2846  /usr/ucb/* ) ;;
2847  *)
2848    # OSF1 and SCO ODT 3.0 have their own names for install.
2849    # Don't use installbsd from OSF since it installs stuff as root
2850    # by default.
2851    for ac_prog in ginstall scoinst install; do
2852      for ac_exec_ext in '' $ac_executable_extensions; do
2853        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2854          if test $ac_prog = install &&
2855            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2856            # AIX install.  It has an incompatible calling convention.
2857            :
2858          elif test $ac_prog = install &&
2859            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2860            # program-specific install script used by HP pwplus--don't use.
2861            :
2862          else
2863            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2864            break 3
2865          fi
2866        fi
2867      done
2868    done
2869    ;;
2870esac
2871done
2872
2873
2874fi
2875  if test "${ac_cv_path_install+set}" = set; then
2876    INSTALL=$ac_cv_path_install
2877  else
2878    # As a last resort, use the slow shell script.  We don't cache a
2879    # path for INSTALL within a source directory, because that will
2880    # break other packages using the cache if that directory is
2881    # removed, or if the path is relative.
2882    INSTALL=$ac_install_sh
2883  fi
2884fi
2885echo "$as_me:$LINENO: result: $INSTALL" >&5
2886echo "${ECHO_T}$INSTALL" >&6
2887
2888# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2889# It thinks the first close brace ends the variable substitution.
2890test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2891
2892test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2893
2894test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2895
2896echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2897echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2898# Just in case
2899sleep 1
2900echo timestamp > conftest.file
2901# Do `set' in a subshell so we don't clobber the current shell's
2902# arguments.  Must try -L first in case configure is actually a
2903# symlink; some systems play weird games with the mod time of symlinks
2904# (eg FreeBSD returns the mod time of the symlink's containing
2905# directory).
2906if (
2907   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2908   if test "$*" = "X"; then
2909      # -L didn't work.
2910      set X `ls -t $srcdir/configure conftest.file`
2911   fi
2912   rm -f conftest.file
2913   if test "$*" != "X $srcdir/configure conftest.file" \
2914      && test "$*" != "X conftest.file $srcdir/configure"; then
2915
2916      # If neither matched, then we have a broken ls.  This can happen
2917      # if, for instance, CONFIG_SHELL is bash and it inherits a
2918      # broken ls alias from the environment.  This has actually
2919      # happened.  Such a system could not be considered "sane".
2920      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2921alias in your environment" >&5
2922echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2923alias in your environment" >&2;}
2924   { (exit 1); exit 1; }; }
2925   fi
2926
2927   test "$2" = conftest.file
2928   )
2929then
2930   # Ok.
2931   :
2932else
2933   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2934Check your system clock" >&5
2935echo "$as_me: error: newly created file is older than distributed files!
2936Check your system clock" >&2;}
2937   { (exit 1); exit 1; }; }
2938fi
2939echo "$as_me:$LINENO: result: yes" >&5
2940echo "${ECHO_T}yes" >&6
2941test "$program_prefix" != NONE &&
2942  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2943# Use a double $ so make ignores it.
2944test "$program_suffix" != NONE &&
2945  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2946# Double any \ or $.  echo might interpret backslashes.
2947# By default was `s,x,x', remove it if useless.
2948cat <<\_ACEOF >conftest.sed
2949s/[\\$]/&&/g;s/;s,x,x,$//
2950_ACEOF
2951program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2952rm conftest.sed
2953
2954# expand $ac_aux_dir to an absolute path
2955am_aux_dir=`cd $ac_aux_dir && pwd`
2956
2957test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2958# Use eval to expand $SHELL
2959if eval "$MISSING --run true"; then
2960  am_missing_run="$MISSING --run "
2961else
2962  am_missing_run=
2963  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2964echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2965fi
2966
2967if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2968  # We used to keeping the `.' as first argument, in order to
2969  # allow $(mkdir_p) to be used without argument.  As in
2970  #   $(mkdir_p) $(somedir)
2971  # where $(somedir) is conditionally defined.  However this is wrong
2972  # for two reasons:
2973  #  1. if the package is installed by a user who cannot write `.'
2974  #     make install will fail,
2975  #  2. the above comment should most certainly read
2976  #     $(mkdir_p) $(DESTDIR)$(somedir)
2977  #     so it does not work when $(somedir) is undefined and
2978  #     $(DESTDIR) is not.
2979  #  To support the latter case, we have to write
2980  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2981  #  so the `.' trick is pointless.
2982  mkdir_p='mkdir -p --'
2983else
2984  # On NextStep and OpenStep, the `mkdir' command does not
2985  # recognize any option.  It will interpret all options as
2986  # directories to create, and then abort because `.' already
2987  # exists.
2988  for d in ./-p ./--version;
2989  do
2990    test -d $d && rmdir $d
2991  done
2992  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2993  if test -f "$ac_aux_dir/mkinstalldirs"; then
2994    mkdir_p='$(mkinstalldirs)'
2995  else
2996    mkdir_p='$(install_sh) -d'
2997  fi
2998fi
2999
3000for ac_prog in gawk mawk nawk awk
3001do
3002  # Extract the first word of "$ac_prog", so it can be a program name with args.
3003set dummy $ac_prog; ac_word=$2
3004echo "$as_me:$LINENO: checking for $ac_word" >&5
3005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006if test "${ac_cv_prog_AWK+set}" = set; then
3007  echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009  if test -n "$AWK"; then
3010  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017  for ac_exec_ext in '' $ac_executable_extensions; do
3018  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019    ac_cv_prog_AWK="$ac_prog"
3020    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021    break 2
3022  fi
3023done
3024done
3025
3026fi
3027fi
3028AWK=$ac_cv_prog_AWK
3029if test -n "$AWK"; then
3030  echo "$as_me:$LINENO: result: $AWK" >&5
3031echo "${ECHO_T}$AWK" >&6
3032else
3033  echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035fi
3036
3037  test -n "$AWK" && break
3038done
3039
3040echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3041echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3042set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3043if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3044  echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046  cat >conftest.make <<\_ACEOF
3047all:
3048        @echo 'ac_maketemp="$(MAKE)"'
3049_ACEOF
3050# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3051eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3052if test -n "$ac_maketemp"; then
3053  eval ac_cv_prog_make_${ac_make}_set=yes
3054else
3055  eval ac_cv_prog_make_${ac_make}_set=no
3056fi
3057rm -f conftest.make
3058fi
3059if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3060  echo "$as_me:$LINENO: result: yes" >&5
3061echo "${ECHO_T}yes" >&6
3062  SET_MAKE=
3063else
3064  echo "$as_me:$LINENO: result: no" >&5
3065echo "${ECHO_T}no" >&6
3066  SET_MAKE="MAKE=${MAKE-make}"
3067fi
3068
3069rm -rf .tst 2>/dev/null
3070mkdir .tst 2>/dev/null
3071if test -d .tst; then
3072  am__leading_dot=.
3073else
3074  am__leading_dot=_
3075fi
3076rmdir .tst 2>/dev/null
3077
3078DEPDIR="${am__leading_dot}deps"
3079
3080          ac_config_commands="$ac_config_commands depfiles"
3081
3082
3083am_make=${MAKE-make}
3084cat > confinc << 'END'
3085am__doit:
3086        @echo done
3087.PHONY: am__doit
3088END
3089# If we don't find an include directive, just comment out the code.
3090echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3091echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3092am__include="#"
3093am__quote=
3094_am_result=none
3095# First try GNU make style include.
3096echo "include confinc" > confmf
3097# We grep out `Entering directory' and `Leaving directory'
3098# messages which can occur if `w' ends up in MAKEFLAGS.
3099# In particular we don't look at `^make:' because GNU make might
3100# be invoked under some other name (usually "gmake"), in which
3101# case it prints its new name instead of `make'.
3102if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3103   am__include=include
3104   am__quote=
3105   _am_result=GNU
3106fi
3107# Now try BSD make style include.
3108if test "$am__include" = "#"; then
3109   echo '.include "confinc"' > confmf
3110   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3111      am__include=.include
3112      am__quote="\""
3113      _am_result=BSD
3114   fi
3115fi
3116
3117
3118echo "$as_me:$LINENO: result: $_am_result" >&5
3119echo "${ECHO_T}$_am_result" >&6
3120rm -f confinc confmf
3121
3122# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3123if test "${enable_dependency_tracking+set}" = set; then
3124  enableval="$enable_dependency_tracking"
3125
3126fi;
3127if test "x$enable_dependency_tracking" != xno; then
3128  am_depcomp="$ac_aux_dir/depcomp"
3129  AMDEPBACKSLASH='\'
3130fi
3131
3132
3133if test "x$enable_dependency_tracking" != xno; then
3134  AMDEP_TRUE=
3135  AMDEP_FALSE='#'
3136else
3137  AMDEP_TRUE='#'
3138  AMDEP_FALSE=
3139fi
3140
3141
3142
3143
3144
3145# AC_MSG_NOTICE([Beginning automake initialisation.])
3146# Stuff for automake
3147# test to see if srcdir already configured
3148if test "`cd $srcdir && pwd`" != "`pwd`" &&
3149   test -f $srcdir/config.status; then
3150  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3151echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3152   { (exit 1); exit 1; }; }
3153fi
3154
3155# test whether we have cygpath
3156if test -z "$CYGPATH_W"; then
3157  if (cygpath --version) >/dev/null 2>/dev/null; then
3158    CYGPATH_W='cygpath -w'
3159  else
3160    CYGPATH_W=echo
3161  fi
3162fi
3163
3164
3165# Define the identity of the package.
3166 PACKAGE='thirdpartyasl'
3167 VERSION='1.0trunk'
3168
3169
3170cat >>confdefs.h <<_ACEOF
3171#define PACKAGE "$PACKAGE"
3172_ACEOF
3173
3174
3175cat >>confdefs.h <<_ACEOF
3176#define VERSION "$VERSION"
3177_ACEOF
3178
3179# Some tools Automake needs.
3180
3181ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3182
3183
3184AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3185
3186
3187AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3188
3189
3190AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3191
3192
3193MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3194
3195install_sh=${install_sh-"$am_aux_dir/install-sh"}
3196
3197# Installed binaries are usually stripped using `strip' when the user
3198# run `make install-strip'.  However `strip' might not be the right
3199# tool to use in cross-compilation environments, therefore Automake
3200# will honor the `STRIP' environment variable to overrule this program.
3201if test "$cross_compiling" != no; then
3202  if test -n "$ac_tool_prefix"; then
3203  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3204set dummy ${ac_tool_prefix}strip; ac_word=$2
3205echo "$as_me:$LINENO: checking for $ac_word" >&5
3206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207if test "${ac_cv_prog_STRIP+set}" = set; then
3208  echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210  if test -n "$STRIP"; then
3211  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3212else
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH
3215do
3216  IFS=$as_save_IFS
3217  test -z "$as_dir" && as_dir=.
3218  for ac_exec_ext in '' $ac_executable_extensions; do
3219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222    break 2
3223  fi
3224done
3225done
3226
3227fi
3228fi
3229STRIP=$ac_cv_prog_STRIP
3230if test -n "$STRIP"; then
3231  echo "$as_me:$LINENO: result: $STRIP" >&5
3232echo "${ECHO_T}$STRIP" >&6
3233else
3234  echo "$as_me:$LINENO: result: no" >&5
3235echo "${ECHO_T}no" >&6
3236fi
3237
3238fi
3239if test -z "$ac_cv_prog_STRIP"; then
3240  ac_ct_STRIP=$STRIP
3241  # Extract the first word of "strip", so it can be a program name with args.
3242set dummy strip; ac_word=$2
3243echo "$as_me:$LINENO: checking for $ac_word" >&5
3244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3245if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3246  echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248  if test -n "$ac_ct_STRIP"; then
3249  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256  for ac_exec_ext in '' $ac_executable_extensions; do
3257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258    ac_cv_prog_ac_ct_STRIP="strip"
3259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262done
3263done
3264
3265  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3266fi
3267fi
3268ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3269if test -n "$ac_ct_STRIP"; then
3270  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3271echo "${ECHO_T}$ac_ct_STRIP" >&6
3272else
3273  echo "$as_me:$LINENO: result: no" >&5
3274echo "${ECHO_T}no" >&6
3275fi
3276
3277  STRIP=$ac_ct_STRIP
3278else
3279  STRIP="$ac_cv_prog_STRIP"
3280fi
3281
3282fi
3283INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3284
3285# We need awk for the "check" target.  The system "awk" is bad on
3286# some platforms.
3287# Always define AMTAR for backward compatibility.
3288
3289AMTAR=${AMTAR-"${am_missing_run}tar"}
3290
3291am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3292
3293
3294
3295
3296depcc="$CC"   am_compiler_list=
3297
3298echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3299echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3300if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3301  echo $ECHO_N "(cached) $ECHO_C" >&6
3302else
3303  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3304  # We make a subdir and do the tests there.  Otherwise we can end up
3305  # making bogus files that we don't know about and never remove.  For
3306  # instance it was reported that on HP-UX the gcc test will end up
3307  # making a dummy file named `D' -- because `-MD' means `put the output
3308  # in D'.
3309  mkdir conftest.dir
3310  # Copy depcomp to subdir because otherwise we won't find it if we're
3311  # using a relative directory.
3312  cp "$am_depcomp" conftest.dir
3313  cd conftest.dir
3314  # We will build objects and dependencies in a subdirectory because
3315  # it helps to detect inapplicable dependency modes.  For instance
3316  # both Tru64's cc and ICC support -MD to output dependencies as a
3317  # side effect of compilation, but ICC will put the dependencies in
3318  # the current directory while Tru64 will put them in the object
3319  # directory.
3320  mkdir sub
3321
3322  am_cv_CC_dependencies_compiler_type=none
3323  if test "$am_compiler_list" = ""; then
3324     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3325  fi
3326  for depmode in $am_compiler_list; do
3327    # Setup a source with many dependencies, because some compilers
3328    # like to wrap large dependency lists on column 80 (with \), and
3329    # we should not choose a depcomp mode which is confused by this.
3330    #
3331    # We need to recreate these files for each test, as the compiler may
3332    # overwrite some of them when testing with obscure command lines.
3333    # This happens at least with the AIX C compiler.
3334    : > sub/conftest.c
3335    for i in 1 2 3 4 5 6; do
3336      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3337      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3338      # Solaris 8's {/usr,}/bin/sh.
3339      touch sub/conftst$i.h
3340    done
3341    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3342
3343    case $depmode in
3344    nosideeffect)
3345      # after this tag, mechanisms are not by side-effect, so they'll
3346      # only be used when explicitly requested
3347      if test "x$enable_dependency_tracking" = xyes; then
3348        continue
3349      else
3350        break
3351      fi
3352      ;;
3353    none) break ;;
3354    esac
3355    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3356    # mode.  It turns out that the SunPro C++ compiler does not properly
3357    # handle `-M -o', and we need to detect this.
3358    if depmode=$depmode \
3359       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3360       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3361       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3362         >/dev/null 2>conftest.err &&
3363       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3364       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3365       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3366      # icc doesn't choke on unknown options, it will just issue warnings
3367      # or remarks (even with -Werror).  So we grep stderr for any message
3368      # that says an option was ignored or not supported.
3369      # When given -MP, icc 7.0 and 7.1 complain thusly:
3370      #   icc: Command line warning: ignoring option '-M'; no argument required
3371      # The diagnosis changed in icc 8.0:
3372      #   icc: Command line remark: option '-MP' not supported
3373      if (grep 'ignoring option' conftest.err ||
3374          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3375        am_cv_CC_dependencies_compiler_type=$depmode
3376        break
3377      fi
3378    fi
3379  done
3380
3381  cd ..
3382  rm -rf conftest.dir
3383else
3384  am_cv_CC_dependencies_compiler_type=none
3385fi
3386
3387fi
3388echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3389echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3390CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3391
3392
3393
3394if
3395  test "x$enable_dependency_tracking" != xno \
3396  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3397  am__fastdepCC_TRUE=
3398  am__fastdepCC_FALSE='#'
3399else
3400  am__fastdepCC_TRUE='#'
3401  am__fastdepCC_FALSE=
3402fi
3403
3404
3405
3406echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3407echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3408    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3409if test "${enable_maintainer_mode+set}" = set; then
3410  enableval="$enable_maintainer_mode"
3411  USE_MAINTAINER_MODE=$enableval
3412else
3413  USE_MAINTAINER_MODE=no
3414fi;
3415  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3416echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3417
3418
3419if test $USE_MAINTAINER_MODE = yes; then
3420  MAINTAINER_MODE_TRUE=
3421  MAINTAINER_MODE_FALSE='#'
3422else
3423  MAINTAINER_MODE_TRUE='#'
3424  MAINTAINER_MODE_FALSE=
3425fi
3426
3427  MAINT=$MAINTAINER_MODE_TRUE
3428
3429
3430
3431coin_have_externals=no
3432if test "$enable_maintainer_mode" = yes; then
3433
3434  # If maintainer mode is chosen, we make sure that the correct versions
3435  # of the tools are used, and that we know where libtool.m4 is (to
3436  # recreate acinclude.m4)
3437
3438
3439  LIBTOOLM4=
3440  # Normally, $HOME
3441  AUTOTOOLS_DFLT=$HOME
3442
3443  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
3444echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
3445if test "${ac_cv_use_correct_autotools+set}" = set; then
3446  echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
3448  ac_cv_use_correct_autotools=check
3449fi
3450echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
3451echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
3452
3453  if test $ac_cv_use_correct_autotools = check; then
3454    ac_cv_use_correct_autotools=yes
3455    # Check if we have autoconf
3456    # Extract the first word of "autoconf", so it can be a program name with args.
3457set dummy autoconf; ac_word=$2
3458echo "$as_me:$LINENO: checking for $ac_word" >&5
3459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460if test "${ac_cv_prog_have_autoconf+set}" = set; then
3461  echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463  if test -n "$have_autoconf"; then
3464  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
3465else
3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467for as_dir in $PATH
3468do
3469  IFS=$as_save_IFS
3470  test -z "$as_dir" && as_dir=.
3471  for ac_exec_ext in '' $ac_executable_extensions; do
3472  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473    ac_cv_prog_have_autoconf="yes"
3474    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475    break 2
3476  fi
3477done
3478done
3479
3480  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
3481fi
3482fi
3483have_autoconf=$ac_cv_prog_have_autoconf
3484if test -n "$have_autoconf"; then
3485  echo "$as_me:$LINENO: result: $have_autoconf" >&5
3486echo "${ECHO_T}$have_autoconf" >&6
3487else
3488  echo "$as_me:$LINENO: result: no" >&5
3489echo "${ECHO_T}no" >&6
3490fi
3491
3492    if test $have_autoconf = no; then
3493      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
3494echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
3495   { (exit 1); exit 1; }; }
3496    fi
3497
3498    # Check whether autoconf is the correct version
3499    correct_version='2.59'
3500    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
3501    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
3502echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
3503    autoconf --version > confauto.out 2>&1
3504    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
3505      echo "$as_me:$LINENO: result: yes" >&5
3506echo "${ECHO_T}yes" >&6
3507    else
3508      rm -f confauto.out
3509      echo "$as_me:$LINENO: result: no" >&5
3510echo "${ECHO_T}no" >&6
3511      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
3512echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
3513   { (exit 1); exit 1; }; }
3514    fi
3515    rm -f confauto.out
3516
3517    # Check if the executable autoconf is picked up from the correct location
3518    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
3519echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
3520    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
3521    autoconf_dir=`cd $autoconf_dir; pwd`
3522    if test x$AUTOTOOLS_DIR = x; then
3523      want_dir=$AUTOTOOLS_DFLT/bin
3524    else
3525      want_dir=$AUTOTOOLS_DIR/bin
3526    fi
3527    if test $autoconf_dir = `cd $want_dir; pwd`; then
3528      echo "$as_me:$LINENO: result: yes" >&5
3529echo "${ECHO_T}yes" >&6
3530    else
3531      rm -f confauto.out
3532      echo "$as_me:$LINENO: result: no" >&5
3533echo "${ECHO_T}no" >&6
3534      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
3535echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
3536   { (exit 1); exit 1; }; }
3537    fi
3538
3539    # Check if we have automake
3540    # Extract the first word of "automake", so it can be a program name with args.
3541set dummy automake; ac_word=$2
3542echo "$as_me:$LINENO: checking for $ac_word" >&5
3543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544if test "${ac_cv_prog_have_automake+set}" = set; then
3545  echo $ECHO_N "(cached) $ECHO_C" >&6
3546else
3547  if test -n "$have_automake"; then
3548  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
3549else
3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551for as_dir in $PATH
3552do
3553  IFS=$as_save_IFS
3554  test -z "$as_dir" && as_dir=.
3555  for ac_exec_ext in '' $ac_executable_extensions; do
3556  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557    ac_cv_prog_have_automake="yes"
3558    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559    break 2
3560  fi
3561done
3562done
3563
3564  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
3565fi
3566fi
3567have_automake=$ac_cv_prog_have_automake
3568if test -n "$have_automake"; then
3569  echo "$as_me:$LINENO: result: $have_automake" >&5
3570echo "${ECHO_T}$have_automake" >&6
3571else
3572  echo "$as_me:$LINENO: result: no" >&5
3573echo "${ECHO_T}no" >&6
3574fi
3575
3576    if test $have_automake = no; then
3577      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
3578echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
3579   { (exit 1); exit 1; }; }
3580    fi
3581
3582    # Check whether automake is the correct version
3583    correct_version='1.9.6'
3584    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
3585    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
3586echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
3587    automake --version > confauto.out 2>&1
3588    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
3589      echo "$as_me:$LINENO: result: yes" >&5
3590echo "${ECHO_T}yes" >&6
3591    else
3592      rm -f confauto.out
3593      echo "$as_me:$LINENO: result: no" >&5
3594echo "${ECHO_T}no" >&6
3595      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
3596echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
3597   { (exit 1); exit 1; }; }
3598    fi
3599    rm -f confauto.out
3600
3601    # Check if the executable automake is picked up from the correct location
3602    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
3603echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
3604    automake_dir=`which automake | sed -e 's=/automake=='`
3605    automake_dir=`cd $automake_dir; pwd`
3606    if test x$AUTOTOOLS_DIR = x; then
3607      want_dir=$AUTOTOOLS_DFLT/bin
3608    else
3609      want_dir=$AUTOTOOLS_DIR/bin
3610    fi
3611    if test $automake_dir = `cd $want_dir; pwd`; then
3612      echo "$as_me:$LINENO: result: yes" >&5
3613echo "${ECHO_T}yes" >&6
3614    else
3615      rm -f confauto.out
3616      echo "$as_me:$LINENO: result: no" >&5
3617echo "${ECHO_T}no" >&6
3618      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
3619echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
3620   { (exit 1); exit 1; }; }
3621    fi
3622
3623    # Check if this is the correct version of libtool (with escaped dots)
3624    if test x$AUTOTOOLS_DIR = x; then
3625      want_dir=$AUTOTOOLS_DFLT/share
3626    else
3627      want_dir=$AUTOTOOLS_DIR/share
3628    fi
3629    correct_version='1.5.22'
3630    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
3631    if test -r $want_dir/libtool/ltmain.sh; then
3632  have_ltmain=yes
3633  :
3634else
3635  have_ltmain=no
3636  :
3637fi
3638
3639    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
3640echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
3641    if test $have_ltmain = yes; then
3642    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
3643        echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645      else
3646        echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
3648        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
3649echo "$as_me: error: You don't have the correct version of libtool." >&2;}
3650   { (exit 1); exit 1; }; }
3651      fi
3652    else
3653      echo "$as_me:$LINENO: result: no" >&5
3654echo "${ECHO_T}no" >&6
3655      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
3656echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
3657   { (exit 1); exit 1; }; }
3658    fi
3659  fi
3660
3661  # Check if we can find the libtool file
3662  if test x$AUTOTOOLS_DIR = x; then
3663    want_dir=$AUTOTOOLS_DFLT/share
3664  else
3665    want_dir=$AUTOTOOLS_DIR/share
3666  fi
3667  if test -r $want_dir/aclocal/libtool.m4; then
3668  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
3669  :
3670else
3671  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
3672echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
3673   { (exit 1); exit 1; }; }
3674  :
3675fi
3676
3677
3678  # Check if we have an Externals file
3679  if test -r $srcdir/Externals; then
3680    coin_have_externals=yes
3681  fi
3682  # Check if subversion is installed and understands https
3683  # Extract the first word of "svn", so it can be a program name with args.
3684set dummy svn; ac_word=$2
3685echo "$as_me:$LINENO: checking for $ac_word" >&5
3686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3687if test "${ac_cv_prog_have_svn+set}" = set; then
3688  echo $ECHO_N "(cached) $ECHO_C" >&6
3689else
3690  if test -n "$have_svn"; then
3691  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
3692else
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696  IFS=$as_save_IFS
3697  test -z "$as_dir" && as_dir=.
3698  for ac_exec_ext in '' $ac_executable_extensions; do
3699  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700    ac_cv_prog_have_svn="yes"
3701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3702    break 2
3703  fi
3704done
3705done
3706
3707  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
3708fi
3709fi
3710have_svn=$ac_cv_prog_have_svn
3711if test -n "$have_svn"; then
3712  echo "$as_me:$LINENO: result: $have_svn" >&5
3713echo "${ECHO_T}$have_svn" >&6
3714else
3715  echo "$as_me:$LINENO: result: no" >&5
3716echo "${ECHO_T}no" >&6
3717fi
3718
3719  if test x$have_svn = xyes; then
3720    echo "$as_me:$LINENO: checking whether svn understands https" >&5
3721echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
3722if test "${ac_cv_svn_understands_https+set}" = set; then
3723  echo $ECHO_N "(cached) $ECHO_C" >&6
3724else
3725  svn --version > confauto.out 2>&1
3726                    if $EGREP https confauto.out >/dev/null 2>&1; then
3727                      ac_cv_svn_understands_https=yes
3728                    else
3729                      ac_cv_svn_understands_https=no
3730                      have_svn=no
3731                      ac_cv_prog_have_svn=no
3732                    fi
3733                    rm -f confauto.out
3734fi
3735echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
3736echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
3737  fi
3738
3739  # Find the location of the BuildTools directory
3740  BUILDTOOLSDIR=
3741  if test -r $srcdir/BuildTools/coin.m4; then
3742    BUILDTOOLSDIR=$srcdir/BuildTools
3743  else
3744    if test -r $srcdir/../BuildTools/coin.m4; then
3745      BUILDTOOLSDIR=$srcdir/../BuildTools
3746    else
3747      if test -r $srcdir/../../BuildTools/coin.m4; then
3748        BUILDTOOLSDIR=$srcdir/../../BuildTools
3749      else
3750        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
3751echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
3752   { (exit 1); exit 1; }; }
3753      fi
3754    fi
3755  fi
3756
3757
3758  # The following variable is set to the name of the directory where
3759  # the autotool scripts are located
3760
3761  AUX_DIR=$ac_aux_dir
3762fi
3763
3764# helpful variable for the base directory of this package
3765abs_source_dir=`cd $srcdir; pwd`
3766
3767
3768# Stuff for example Makefiles
3769if test x$prefix = xNONE; then
3770  full_prefix=$ac_default_prefix
3771else
3772  full_prefix=$prefix
3773fi
3774full_prefix=`cd $full_prefix ; pwd`
3775
3776abs_lib_dir=$full_prefix/lib
3777
3778abs_include_dir=$full_prefix/include
3779
3780abs_bin_dir=$full_prefix/bin
3781
3782
3783
3784if test $coin_have_externals = yes && test x$have_svn = xyes; then
3785  HAVE_EXTERNALS_TRUE=
3786  HAVE_EXTERNALS_FALSE='#'
3787else
3788  HAVE_EXTERNALS_TRUE='#'
3789  HAVE_EXTERNALS_FALSE=
3790fi
3791
3792
3793# AC_MSG_NOTICE([End automake initialisation.])
3794
3795
3796
3797coin_aslobjdir=../ThirdParty/ASL
3798coin_aslsrcdir=$srcdir/$coin_aslobjdir
3799
3800# Determine the name of the ASL library
3801case "$CC" in
3802  cl* | */cl* | CL* | */CL*)
3803    ampllib=amplsolv.lib ;;
3804  *)
3805    ampllib=amplsolver.a ;;
3806esac
3807
3808
3809# Check whether --with-asldir or --without-asldir was given.
3810if test "${with_asldir+set}" = set; then
3811  withval="$with_asldir"
3812  use_asldir=$withval
3813else
3814  use_asldir=
3815fi;
3816
3817if test "$use_asldir" = BUILD; then
3818  if test "$PACKAGE_NAME" != ThirdPartyASL; then
3819    # If we are configuring ThirdParty/ASL, don't check
3820    if test -r $coin_aslobjdir/.MakeOk; then :; else
3821      { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&5
3822echo "$as_me: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&2;}
3823   { (exit 1); exit 1; }; }
3824    fi
3825  fi
3826elif test -z "$use_asldir"; then
3827 # try to find sources - if not given don't compile
3828  if test "$PACKAGE_NAME" != ThirdPartyASL; then
3829    if test -r $coin_aslobjdir/.MakeOk; then
3830      use_asldir=BUILD
3831    else
3832      use_asldir=no
3833    fi
3834  else
3835    use_asldir=no
3836  fi
3837elif test "$use_asldir" != "no"; then
3838  if test -r $use_asldir/$ampllib; then
3839
3840  :
3841else
3842  { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but library missing" >&5
3843echo "$as_me: error: ASL directory \"$use_asldir\" specified, but library missing" >&2;}
3844   { (exit 1); exit 1; }; }
3845  :
3846fi
3847
3848  if test -r $use_asldir/asl.h; then
3849
3850  :
3851else
3852  { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&5
3853echo "$as_me: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&2;}
3854   { (exit 1); exit 1; }; }
3855  :
3856fi
3857
3858  use_asldir=`cd $use_asldir; pwd`
3859  case $build in
3860    *-cygwin*) use_asldir=`cygpath -w $use_asldir | sed -e sX\\\\\\\\X/Xg` ;;
3861  esac
3862fi
3863
3864# Variable containing ASL library (including full path)
3865
3866# Variable containing flags for including ASL header files
3867
3868
3869if test "$use_asldir" = BUILD; then
3870  coin_aslobjdir=`cd $coin_aslobjdir; pwd`
3871  ASLLIB=`$CYGPATH_W $coin_aslobjdir/$ampllib | sed -e sX\\\\\\\\X/Xg`
3872  coin_aslsrcdir=`cd $coin_aslsrcdir; pwd`
3873  ASL_CPPFLAGS="-I"`$CYGPATH_W $coin_aslobjdir | sed -e sX\\\\\\\\X/Xg`" -I"`$CYGPATH_W $coin_aslsrcdir/solvers | sed -e sX\\\\\\\\X/Xg`
3874elif test "$use_asldir" != no; then
3875  ASLLIB=`$CYGPATH_W $use_asldir/$ampllib | sed -e sX\\\\\\\\X/Xg`
3876  ASL_CPPFLAGS="-I"`$CYGPATH_W $use_asldir | sed -e sX\\\\\\\\X/Xg`
3877fi
3878
3879if test "$use_asldir" != no; then
3880  ac_ext=c
3881ac_cpp='$CPP $CPPFLAGS'
3882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885
3886  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3887echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3888if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3889  echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891  ac_check_lib_save_LIBS=$LIBS
3892LIBS="-ldl  $LIBS"
3893cat >conftest.$ac_ext <<_ACEOF
3894/* confdefs.h.  */
3895_ACEOF
3896cat confdefs.h >>conftest.$ac_ext
3897cat >>conftest.$ac_ext <<_ACEOF
3898/* end confdefs.h.  */
3899
3900/* Override any gcc2 internal prototype to avoid an error.  */
3901#ifdef __cplusplus
3902extern "C"
3903#endif
3904/* We use char because int might match the return type of a gcc2
3905   builtin and then its argument prototype would still apply.  */
3906char dlopen ();
3907int
3908main ()
3909{
3910dlopen ();
3911  ;
3912  return 0;
3913}
3914_ACEOF
3915rm -f conftest.$ac_objext conftest$ac_exeext
3916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3917  (eval $ac_link) 2>conftest.er1
3918  ac_status=$?
3919  grep -v '^ *+' conftest.er1 >conftest.err
3920  rm -f conftest.er1
3921  cat conftest.err >&5
3922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923  (exit $ac_status); } &&
3924         { ac_try='test -z "$ac_c_werror_flag"
3925                         || test ! -s conftest.err'
3926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927  (eval $ac_try) 2>&5
3928  ac_status=$?
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); }; } &&
3931         { ac_try='test -s conftest$ac_exeext'
3932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933  (eval $ac_try) 2>&5
3934  ac_status=$?
3935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936  (exit $ac_status); }; }; then
3937  ac_cv_lib_dl_dlopen=yes
3938else
3939  echo "$as_me: failed program was:" >&5
3940sed 's/^/| /' conftest.$ac_ext >&5
3941
3942ac_cv_lib_dl_dlopen=no
3943fi
3944rm -f conftest.err conftest.$ac_objext \
3945      conftest$ac_exeext conftest.$ac_ext
3946LIBS=$ac_check_lib_save_LIBS
3947fi
3948echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3949echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3950if test $ac_cv_lib_dl_dlopen = yes; then
3951  ASLLIB="$ASLLIB -ldl"
3952fi
3953
3954  coin_has_asl=yes
3955
3956cat >>confdefs.h <<\_ACEOF
3957#define COIN_HAS_ASL 1
3958_ACEOF
3959
3960  ac_ext=c
3961ac_cpp='$CPP $CPPFLAGS'
3962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965
3966else
3967  coin_has_asl=no
3968fi
3969
3970
3971if test $coin_has_asl = yes; then
3972  COIN_HAS_ASL_TRUE=
3973  COIN_HAS_ASL_FALSE='#'
3974else
3975  COIN_HAS_ASL_TRUE='#'
3976  COIN_HAS_ASL_FALSE=
3977fi
3978
3979
3980MAKEOKFILE=.MakeOk
3981if test $coin_has_asl != no && test "$use_asldir" != BUILD; then
3982  skip_further_test=yes
3983  rm -f $MAKEOKFILE
3984  { echo "$as_me:$LINENO: The ASL sources don't need to be compiled" >&5
3985echo "$as_me: The ASL sources don't need to be compiled" >&6;}
3986  MAKEOKFILE=
3987else
3988  touch $MAKEOKFILE
3989fi
3990
3991
3992
3993if test -z "$MAKEOKFILE"; then
3994  SKIPMAKE_TRUE=
3995  SKIPMAKE_FALSE='#'
3996else
3997  SKIPMAKE_TRUE='#'
3998  SKIPMAKE_FALSE=
3999fi
4000
4001
4002#############################################################################
4003#                          AMPL SOLVER LIBRARY                              #
4004#############################################################################
4005
4006if test x$skip_further_test != xyes; then
4007
4008  # Determine the name of the ASL library
4009
4010  case "$CC" in
4011    cl* | */cl* | CL* | */CL*)
4012      AMPLSOLVER_A=amplsolv.lib
4013      msvc_compile=yes ;;
4014    *)
4015      AMPLSOLVER_A=amplsolver.a
4016      msvc_compile=no ;;
4017  esac
4018
4019  if test -z "$ASLMAKEFLAGS" ; then
4020    asladdcflags=
4021    case $build in
4022      *-linux*)
4023        asladdcflags="-DNON_STDIO"
4024        case $CC in
4025          pgcc* | */pgcc* | xlc* | */xlc* | blrts_xlc* | */blrts_xlc*)
4026            asladdcflags="$asladdcflags -DNO_fpu_control";;
4027        esac
4028        ;;
4029      *-cygwin*) # ToDo: If on Cygwin but not using -mno-cygwin, we should not define -DNo_Control87 -DNO_RUSAGE
4030        asladdcflags="-DNON_STDIO -DNo_Control87 -DNO_RUSAGE"
4031        ;;
4032      *-mingw32)
4033        asladdcflags="-DNON_STDIO -DNo_Control87 -DNO_RUSAGE"
4034        ;;
4035    esac
4036
4037# On BlueGene disable dynamic library loading
4038    if test x"$enable_bg" = xyes; then
4039      asladdcflags="$asladdcflags -DNO_FUNCADD"
4040    fi
4041
4042# Do the following for now to make sure we are not interupting compilation
4043# of ASL because of warning message:
4044    bla=
4045    for i in $CFLAGS; do
4046      if test "$i" != "-Werror"; then
4047        bla="$bla $i"
4048      fi
4049    done
4050    ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\""
4051
4052#   Somehow, -qtune=auto makes ASL segfault on AIX compiler, so take them out
4053    case $CC in
4054      xlc* | */xlc* | mpxlc* | */mpxlc*)
4055        ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-qtune=auto//g' -e 's/-qarch=auto//g' -e 's/-qcache=auto//g' -e 's/-qhot//g' -e sed 's/-O3/-O/g'`
4056        ;;
4057      pgcc* | */pgcc*)
4058        ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed 's/-fast/-O1/g'`
4059        ;;
4060    esac
4061
4062    echo "$as_me:$LINENO: checking whether $am_make is the GNU make" >&5
4063echo $ECHO_N "checking whether $am_make is the GNU make... $ECHO_C" >&6
4064    rm -rf conftest.mak
4065    ($am_make -v -f conftest.mak > conftest.grp) 2>&5
4066    if $EGREP GNU conftest.grp >&5 ; then
4067      echo "$as_me:$LINENO: result: yes" >&5
4068echo "${ECHO_T}yes" >&6
4069      ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS"
4070    else
4071      echo "$as_me:$LINENO: result: no" >&5
4072echo "${ECHO_T}no" >&6
4073    fi
4074    rm -f conftest.mak conftest.grp
4075  fi
4076
4077  if test x"$AR" = x; then
4078    AR=ar
4079  fi
4080
4081  ASLMAKEFILECMDS="sed -e 's%ar \$\$(ARFLAGS)%$AR \$\$(ARFLAGS)%' makefile.u | sed -e 's%ar ruv%$AR ruv%' "
4082  if test "$EXEEXT" = ".exe"; then
4083    ASLMAKEFILECMDS="$ASLMAKEFILECMDS | sed 's/a.out/a.exe/'"
4084  fi
4085  case $build in
4086    *-cygwin*)
4087      ASLMAKEFILECMDS="$ASLMAKEFILECMDS | sed 's%s/System_details/\`uname -sr\`/%s|System_details|\`uname -sr\`|%'" ;;
4088  esac
4089  ASLMAKEFILECMDS="$ASLMAKEFILECMDS > makefile"
4090
4091
4092
4093
4094fi
4095
4096
4097
4098if test x$msvc_compile = xyes; then
4099  MSVC_COMPILE_TRUE=
4100  MSVC_COMPILE_FALSE='#'
4101else
4102  MSVC_COMPILE_TRUE='#'
4103  MSVC_COMPILE_FALSE=
4104fi
4105
4106
4107                    ac_config_files="$ac_config_files Makefile compile_MS_ASL"
4108
4109
4110
4111
4112
4113
4114echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
4115echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
4116coin_link_input_cmd="$LN_S"
4117if test "$enable_doscompile" = mingw; then
4118  coin_link_input_cmd=cp
4119fi
4120case "$CC" in
4121  cl* | */cl* | CL* | */CL*)
4122    coin_link_input_cmd=cp ;;
4123esac
4124echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
4125echo "${ECHO_T}$coin_link_input_cmd" >&6
4126
4127
4128
4129if test x$coin_skip_ac_output != xyes; then
4130
4131  FADDLIBS="$ADDLIBS"
4132  if test x"$coin_need_flibs" = xyes; then
4133    ADDLIBS="$ADDLIBS $FLIBS"
4134  fi
4135
4136  # library extension
4137
4138  case "$CC" in
4139    cl* | */cl* | CL* | */CL*)
4140         LIBEXT=lib ;;
4141      *) LIBEXT=a ;;
4142  esac
4143
4144  # Define VPATH_DISTCLEANFILES to be everything that needs to be
4145  # cleaned for distclean in a vpath configuration
4146
4147  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
4148
4149  # Take out subdirectories if their configuration concluded that they
4150  # don't need to be compiled
4151  if test x"$coin_ac_skip_subdirs" != x; then
4152    new_subdirs=
4153    for i in $subdirs; do
4154      skipme=no
4155      for j in $coin_ac_skip_subdirs; do
4156        if test $i = $j; then
4157          skipme=yes;
4158        fi
4159      done
4160      if test $skipme = no; then
4161        new_subdirs="$new_subdirs $i"
4162      fi
4163    done
4164    subdirs="$new_subdirs"
4165  fi
4166
4167  cat >confcache <<\_ACEOF
4168# This file is a shell script that caches the results of configure
4169# tests run on this system so they can be shared between configure
4170# scripts and configure runs, see configure's option --config-cache.
4171# It is not useful on other systems.  If it contains results you don't
4172# want to keep, you may remove or edit it.
4173#
4174# config.status only pays attention to the cache file if you give it
4175# the --recheck option to rerun configure.
4176#
4177# `ac_cv_env_foo' variables (set or unset) will be overridden when
4178# loading this file, other *unset* `ac_cv_foo' will be assigned the
4179# following values.
4180
4181_ACEOF
4182
4183# The following way of writing the cache mishandles newlines in values,
4184# but we know of no workaround that is simple, portable, and efficient.
4185# So, don't put newlines in cache variables' values.
4186# Ultrix sh set writes to stderr and can't be redirected directly,
4187# and sets the high bit in the cache file unless we assign to the vars.
4188{
4189  (set) 2>&1 |
4190    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4191    *ac_space=\ *)
4192      # `set' does not quote correctly, so add quotes (double-quote
4193      # substitution turns \\\\ into \\, and sed turns \\ into \).
4194      sed -n \
4195        "s/'/'\\\\''/g;
4196          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4197      ;;
4198    *)
4199      # `set' quotes correctly as required by POSIX, so do not add quotes.
4200      sed -n \
4201        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4202      ;;
4203    esac;
4204} |
4205  sed '
4206     t clear
4207     : clear
4208     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4209     t end
4210     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4211     : end' >>confcache
4212if diff $cache_file confcache >/dev/null 2>&1; then :; else
4213  if test -w $cache_file; then
4214    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4215    cat confcache >$cache_file
4216  else
4217    echo "not updating unwritable cache $cache_file"
4218  fi
4219fi
4220rm -f confcache
4221
4222test "x$prefix" = xNONE && prefix=$ac_default_prefix
4223# Let make expand exec_prefix.
4224test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4225
4226# VPATH may cause trouble with some makes, so we remove $(srcdir),
4227# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4228# trailing colons and then remove the whole line if VPATH becomes empty
4229# (actually we leave an empty line to preserve line numbers).
4230if test "x$srcdir" = x.; then
4231  ac_vpsub='/^[  ]*VPATH[        ]*=/{
4232s/:*\$(srcdir):*/:/;
4233s/:*\${srcdir}:*/:/;
4234s/:*@srcdir@:*/:/;
4235s/^\([^=]*=[     ]*\):*/\1/;
4236s/:*$//;
4237s/^[^=]*=[       ]*$//;
4238}'
4239fi
4240
4241# Transform confdefs.h into DEFS.
4242# Protect against shell expansion while executing Makefile rules.
4243# Protect against Makefile macro expansion.
4244#
4245# If the first sed substitution is executed (which looks for macros that
4246# take arguments), then we branch to the quote section.  Otherwise,
4247# look for a macro that doesn't take arguments.
4248cat >confdef2opt.sed <<\_ACEOF
4249t clear
4250: clear
4251s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
4252t quote
4253s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
4254t quote
4255d
4256: quote
4257s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
4258s,\[,\\&,g
4259s,\],\\&,g
4260s,\$,$$,g
4261p
4262_ACEOF
4263# We use echo to avoid assuming a particular line-breaking character.
4264# The extra dot is to prevent the shell from consuming trailing
4265# line-breaks from the sub-command output.  A line-break within
4266# single-quotes doesn't work because, if this script is created in a
4267# platform that uses two characters for line-breaks (e.g., DOS), tr
4268# would break.
4269ac_LF_and_DOT=`echo; echo .`
4270DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4271rm -f confdef2opt.sed
4272
4273
4274ac_libobjs=
4275ac_ltlibobjs=
4276for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4277  # 1. Remove the extension, and $U if already installed.
4278  ac_i=`echo "$ac_i" |
4279         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4280  # 2. Add them.
4281  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4282  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4283done
4284LIBOBJS=$ac_libobjs
4285
4286LTLIBOBJS=$ac_ltlibobjs
4287
4288
4289if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
4290  { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
4291Usually this means the macro was only invoked conditionally." >&5
4292echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
4293Usually this means the macro was only invoked conditionally." >&2;}
4294   { (exit 1); exit 1; }; }
4295fi
4296if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4297  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4298Usually this means the macro was only invoked conditionally." >&5
4299echo "$as_me: error: conditional \"AMDEP\" was never defined.
4300Usually this means the macro was only invoked conditionally." >&2;}
4301   { (exit 1); exit 1; }; }
4302fi
4303if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4304  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4305Usually this means the macro was only invoked conditionally." >&5
4306echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4307Usually this means the macro was only invoked conditionally." >&2;}
4308   { (exit 1); exit 1; }; }
4309fi
4310if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4311  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4312Usually this means the macro was only invoked conditionally." >&5
4313echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4314Usually this means the macro was only invoked conditionally." >&2;}
4315   { (exit 1); exit 1; }; }
4316fi
4317if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
4318  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
4319Usually this means the macro was only invoked conditionally." >&5
4320echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
4321Usually this means the macro was only invoked conditionally." >&2;}
4322   { (exit 1); exit 1; }; }
4323fi
4324if test -z "${COIN_HAS_ASL_TRUE}" && test -z "${COIN_HAS_ASL_FALSE}"; then
4325  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ASL\" was never defined.
4326Usually this means the macro was only invoked conditionally." >&5
4327echo "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined.
4328Usually this means the macro was only invoked conditionally." >&2;}
4329   { (exit 1); exit 1; }; }
4330fi
4331if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then
4332  { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined.
4333Usually this means the macro was only invoked conditionally." >&5
4334echo "$as_me: error: conditional \"SKIPMAKE\" was never defined.
4335Usually this means the macro was only invoked conditionally." >&2;}
4336   { (exit 1); exit 1; }; }
4337fi
4338if test -z "${MSVC_COMPILE_TRUE}" && test -z "${MSVC_COMPILE_FALSE}"; then
4339  { { echo "$as_me:$LINENO: error: conditional \"MSVC_COMPILE\" was never defined.
4340Usually this means the macro was only invoked conditionally." >&5
4341echo "$as_me: error: conditional \"MSVC_COMPILE\" was never defined.
4342Usually this means the macro was only invoked conditionally." >&2;}
4343   { (exit 1); exit 1; }; }
4344fi
4345
4346: ${CONFIG_STATUS=./config.status}
4347ac_clean_files_save=$ac_clean_files
4348ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4349{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4350echo "$as_me: creating $CONFIG_STATUS" >&6;}
4351cat >$CONFIG_STATUS <<_ACEOF
4352#! $SHELL
4353# Generated by $as_me.
4354# Run this file to recreate the current configuration.
4355# Compiler output produced by configure, useful for debugging
4356# configure, is in config.log if it exists.
4357
4358debug=false
4359ac_cs_recheck=false
4360ac_cs_silent=false
4361SHELL=\${CONFIG_SHELL-$SHELL}
4362_ACEOF
4363
4364cat >>$CONFIG_STATUS <<\_ACEOF
4365## --------------------- ##
4366## M4sh Initialization.  ##
4367## --------------------- ##
4368
4369# Be Bourne compatible
4370if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4371  emulate sh
4372  NULLCMD=:
4373  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4374  # is contrary to our usage.  Disable this feature.
4375  alias -g '${1+"$@"}'='"$@"'
4376elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4377  set -o posix
4378fi
4379DUALCASE=1; export DUALCASE # for MKS sh
4380
4381# Support unset when possible.
4382if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4383  as_unset=unset
4384else
4385  as_unset=false
4386fi
4387
4388
4389# Work around bugs in pre-3.0 UWIN ksh.
4390$as_unset ENV MAIL MAILPATH
4391PS1='$ '
4392PS2='> '
4393PS4='+ '
4394
4395# NLS nuisances.
4396for as_var in \
4397  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4398  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4399  LC_TELEPHONE LC_TIME
4400do
4401  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4402    eval $as_var=C; export $as_var
4403  else
4404    $as_unset $as_var
4405  fi
4406done
4407
4408# Required to use basename.
4409if expr a : '\(a\)' >/dev/null 2>&1; then
4410  as_expr=expr
4411else
4412  as_expr=false
4413fi
4414
4415if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4416  as_basename=basename
4417else
4418  as_basename=false
4419fi
4420
4421
4422# Name of the executable.
4423as_me=`$as_basename "$0" ||
4424$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4425         X"$0" : 'X\(//\)$' \| \
4426         X"$0" : 'X\(/\)$' \| \
4427         .     : '\(.\)' 2>/dev/null ||
4428echo X/"$0" |
4429    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4430          /^X\/\(\/\/\)$/{ s//\1/; q; }
4431          /^X\/\(\/\).*/{ s//\1/; q; }
4432          s/.*/./; q'`
4433
4434
4435# PATH needs CR, and LINENO needs CR and PATH.
4436# Avoid depending upon Character Ranges.
4437as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4438as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4439as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4440as_cr_digits='0123456789'
4441as_cr_alnum=$as_cr_Letters$as_cr_digits
4442
4443# The user is always right.
4444if test "${PATH_SEPARATOR+set}" != set; then
4445  echo "#! /bin/sh" >conf$$.sh
4446  echo  "exit 0"   >>conf$$.sh
4447  chmod +x conf$$.sh
4448  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4449    PATH_SEPARATOR=';'
4450  else
4451    PATH_SEPARATOR=:
4452  fi
4453  rm -f conf$$.sh
4454fi
4455
4456
4457  as_lineno_1=$LINENO
4458  as_lineno_2=$LINENO
4459  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4460  test "x$as_lineno_1" != "x$as_lineno_2" &&
4461  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4462  # Find who we are.  Look in the path if we contain no path at all
4463  # relative or not.
4464  case $0 in
4465    *[\\/]* ) as_myself=$0 ;;
4466    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in $PATH
4468do
4469  IFS=$as_save_IFS
4470  test -z "$as_dir" && as_dir=.
4471  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4472done
4473
4474       ;;
4475  esac
4476  # We did not find ourselves, most probably we were run as `sh COMMAND'
4477  # in which case we are not to be found in the path.
4478  if test "x$as_myself" = x; then
4479    as_myself=$0
4480  fi
4481  if test ! -f "$as_myself"; then
4482    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4483echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4484   { (exit 1); exit 1; }; }
4485  fi
4486  case $CONFIG_SHELL in
4487  '')
4488    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4490do
4491  IFS=$as_save_IFS
4492  test -z "$as_dir" && as_dir=.
4493  for as_base in sh bash ksh sh5; do
4494         case $as_dir in
4495         /*)
4496           if ("$as_dir/$as_base" -c '
4497  as_lineno_1=$LINENO
4498  as_lineno_2=$LINENO
4499  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4500  test "x$as_lineno_1" != "x$as_lineno_2" &&
4501  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4502             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4503             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4504             CONFIG_SHELL=$as_dir/$as_base
4505             export CONFIG_SHELL
4506             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4507           fi;;
4508         esac
4509       done
4510done
4511;;
4512  esac
4513
4514  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4515  # uniformly replaced by the line number.  The first 'sed' inserts a
4516  # line-number line before each line; the second 'sed' does the real
4517  # work.  The second script uses 'N' to pair each line-number line
4518  # with the numbered line, and appends trailing '-' during
4519  # substitution so that $LINENO is not a special case at line end.
4520  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4521  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4522  sed '=' <$as_myself |
4523    sed '
4524      N
4525      s,$,-,
4526      : loop
4527      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4528      t loop
4529      s,-$,,
4530      s,^['$as_cr_digits']*\n,,
4531    ' >$as_me.lineno &&
4532  chmod +x $as_me.lineno ||
4533    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4534echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4535   { (exit 1); exit 1; }; }
4536
4537  # Don't try to exec as it changes $[0], causing all sort of problems
4538  # (the dirname of $[0] is not the place where we might find the
4539  # original and so on.  Autoconf is especially sensible to this).
4540  . ./$as_me.lineno
4541  # Exit status is that of the last command.
4542  exit
4543}
4544
4545
4546case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4547  *c*,-n*) ECHO_N= ECHO_C='
4548' ECHO_T='      ' ;;
4549  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4550  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4551esac
4552
4553if expr a : '\(a\)' >/dev/null 2>&1; then
4554  as_expr=expr
4555else
4556  as_expr=false
4557fi
4558
4559rm -f conf$$ conf$$.exe conf$$.file
4560echo >conf$$.file
4561if ln -s conf$$.file conf$$ 2>/dev/null; then
4562  # We could just check for DJGPP; but this test a) works b) is more generic
4563  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4564  if test -f conf$$.exe; then
4565    # Don't use ln at all; we don't have any links
4566    as_ln_s='cp -p'
4567  else
4568    as_ln_s='ln -s'
4569  fi
4570elif ln conf$$.file conf$$ 2>/dev/null; then
4571  as_ln_s=ln
4572else
4573  as_ln_s='cp -p'
4574fi
4575rm -f conf$$ conf$$.exe conf$$.file
4576
4577if mkdir -p . 2>/dev/null; then
4578  as_mkdir_p=:
4579else
4580  test -d ./-p && rmdir ./-p
4581  as_mkdir_p=false
4582fi
4583
4584as_executable_p="test -f"
4585
4586# Sed expression to map a string onto a valid CPP name.
4587as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4588
4589# Sed expression to map a string onto a valid variable name.
4590as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4591
4592
4593# IFS
4594# We need space, tab and new line, in precisely that order.
4595as_nl='
4596'
4597IFS="   $as_nl"
4598
4599# CDPATH.
4600$as_unset CDPATH
4601
4602exec 6>&1
4603
4604# Open the log real soon, to keep \$[0] and so on meaningful, and to
4605# report actual input values of CONFIG_FILES etc. instead of their
4606# values after options handling.  Logging --version etc. is OK.
4607exec 5>>config.log
4608{
4609  echo
4610  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4611## Running $as_me. ##
4612_ASBOX
4613} >&5
4614cat >&5 <<_CSEOF
4615
4616This file was extended by ThirdPartyASL $as_me 1.0trunk, which was
4617generated by GNU Autoconf 2.59.  Invocation command line was
4618
4619  CONFIG_FILES    = $CONFIG_FILES
4620  CONFIG_HEADERS  = $CONFIG_HEADERS
4621  CONFIG_LINKS    = $CONFIG_LINKS
4622  CONFIG_COMMANDS = $CONFIG_COMMANDS
4623  $ $0 $@
4624
4625_CSEOF
4626echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4627echo >&5
4628_ACEOF
4629
4630# Files that config.status was made for.
4631if test -n "$ac_config_files"; then
4632  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4633fi
4634
4635if test -n "$ac_config_headers"; then
4636  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4637fi
4638
4639if test -n "$ac_config_links"; then
4640  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4641fi
4642
4643if test -n "$ac_config_commands"; then
4644  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4645fi
4646
4647cat >>$CONFIG_STATUS <<\_ACEOF
4648
4649ac_cs_usage="\
4650\`$as_me' instantiates files from templates according to the
4651current configuration.
4652
4653Usage: $0 [OPTIONS] [FILE]...
4654
4655  -h, --help       print this help, then exit
4656  -V, --version    print version number, then exit
4657  -q, --quiet      do not print progress messages
4658  -d, --debug      don't remove temporary files
4659      --recheck    update $as_me by reconfiguring in the same conditions
4660  --file=FILE[:TEMPLATE]
4661                   instantiate the configuration file FILE
4662
4663Configuration files:
4664$config_files
4665
4666Configuration commands:
4667$config_commands
4668
4669Report bugs to <bug-autoconf@gnu.org>."
4670_ACEOF
4671
4672cat >>$CONFIG_STATUS <<_ACEOF
4673ac_cs_version="\\
4674ThirdPartyASL config.status 1.0trunk
4675configured by $0, generated by GNU Autoconf 2.59,
4676  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4677
4678Copyright (C) 2003 Free Software Foundation, Inc.
4679This config.status script is free software; the Free Software Foundation
4680gives unlimited permission to copy, distribute and modify it."
4681srcdir=$srcdir
4682INSTALL="$INSTALL"
4683_ACEOF
4684
4685cat >>$CONFIG_STATUS <<\_ACEOF
4686# If no file are specified by the user, then we need to provide default
4687# value.  By we need to know if files were specified by the user.
4688ac_need_defaults=:
4689while test $# != 0
4690do
4691  case $1 in
4692  --*=*)
4693    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4694    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4695    ac_shift=:
4696    ;;
4697  -*)
4698    ac_option=$1
4699    ac_optarg=$2
4700    ac_shift=shift
4701    ;;
4702  *) # This is not an option, so the user has probably given explicit
4703     # arguments.
4704     ac_option=$1
4705     ac_need_defaults=false;;
4706  esac
4707
4708  case $ac_option in
4709  # Handling of the options.
4710_ACEOF
4711cat >>$CONFIG_STATUS <<\_ACEOF
4712  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4713    ac_cs_recheck=: ;;
4714  --version | --vers* | -V )
4715    echo "$ac_cs_version"; exit 0 ;;
4716  --he | --h)
4717    # Conflict between --help and --header
4718    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4719Try \`$0 --help' for more information." >&5
4720echo "$as_me: error: ambiguous option: $1
4721Try \`$0 --help' for more information." >&2;}
4722   { (exit 1); exit 1; }; };;
4723  --help | --hel | -h )
4724    echo "$ac_cs_usage"; exit 0 ;;
4725  --debug | --d* | -d )
4726    debug=: ;;
4727  --file | --fil | --fi | --f )
4728    $ac_shift
4729    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4730    ac_need_defaults=false;;
4731  --header | --heade | --head | --hea )
4732    $ac_shift
4733    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4734    ac_need_defaults=false;;
4735  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4736  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4737    ac_cs_silent=: ;;
4738
4739  # This is an error.
4740  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4741Try \`$0 --help' for more information." >&5
4742echo "$as_me: error: unrecognized option: $1
4743Try \`$0 --help' for more information." >&2;}
4744   { (exit 1); exit 1; }; } ;;
4745
4746  *) ac_config_targets="$ac_config_targets $1" ;;
4747
4748  esac
4749  shift
4750done
4751
4752ac_configure_extra_args=
4753
4754if $ac_cs_silent; then
4755  exec 6>/dev/null
4756  ac_configure_extra_args="$ac_configure_extra_args --silent"
4757fi
4758
4759_ACEOF
4760cat >>$CONFIG_STATUS <<_ACEOF
4761if \$ac_cs_recheck; then
4762  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4763  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4764fi
4765
4766_ACEOF
4767
4768cat >>$CONFIG_STATUS <<_ACEOF
4769#
4770# INIT-COMMANDS section.
4771#
4772
4773AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4774
4775_ACEOF
4776
4777
4778
4779cat >>$CONFIG_STATUS <<\_ACEOF
4780for ac_config_target in $ac_config_targets
4781do
4782  case "$ac_config_target" in
4783  # Handling of arguments.
4784  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4785  "compile_MS_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_MS_ASL" ;;
4786  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4787  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4788echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4789   { (exit 1); exit 1; }; };;
4790  esac
4791done
4792
4793# If the user did not use the arguments to specify the items to instantiate,
4794# then the envvar interface is used.  Set only those that are not.
4795# We use the long form for the default assignment because of an extremely
4796# bizarre bug on SunOS 4.1.3.
4797if $ac_need_defaults; then
4798  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4799  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4800fi
4801
4802# Have a temporary directory for convenience.  Make it in the build tree
4803# simply because there is no reason to put it here, and in addition,
4804# creating and moving files from /tmp can sometimes cause problems.
4805# Create a temporary directory, and hook for its removal unless debugging.
4806$debug ||
4807{
4808  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4809  trap '{ (exit 1); exit 1; }' 1 2 13 15
4810}
4811
4812# Create a (secure) tmp directory for tmp files.
4813
4814{
4815  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4816  test -n "$tmp" && test -d "$tmp"
4817}  ||
4818{
4819  tmp=./confstat$$-$RANDOM
4820  (umask 077 && mkdir $tmp)
4821} ||
4822{
4823   echo "$me: cannot create a temporary directory in ." >&2
4824   { (exit 1); exit 1; }
4825}
4826
4827_ACEOF
4828
4829cat >>$CONFIG_STATUS <<_ACEOF
4830
4831#
4832# CONFIG_FILES section.
4833#
4834
4835# No need to generate the scripts if there are no CONFIG_FILES.
4836# This happens for instance when ./config.status config.h
4837if test -n "\$CONFIG_FILES"; then
4838  # Protect against being on the right side of a sed subst in config.status.
4839  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4840   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4841s,@SHELL@,$SHELL,;t t
4842s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4843s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4844s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4845s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4846s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4847s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4848s,@exec_prefix@,$exec_prefix,;t t
4849s,@prefix@,$prefix,;t t
4850s,@program_transform_name@,$program_transform_name,;t t
4851s,@bindir@,$bindir,;t t
4852s,@sbindir@,$sbindir,;t t
4853s,@libexecdir@,$libexecdir,;t t
4854s,@datadir@,$datadir,;t t
4855s,@sysconfdir@,$sysconfdir,;t t
4856s,@sharedstatedir@,$sharedstatedir,;t t
4857s,@localstatedir@,$localstatedir,;t t
4858s,@libdir@,$libdir,;t t
4859s,@includedir@,$includedir,;t t
4860s,@oldincludedir@,$oldincludedir,;t t
4861s,@infodir@,$infodir,;t t
4862s,@mandir@,$mandir,;t t
4863s,@build_alias@,$build_alias,;t t
4864s,@host_alias@,$host_alias,;t t
4865s,@target_alias@,$target_alias,;t t
4866s,@DEFS@,$DEFS,;t t
4867s,@ECHO_C@,$ECHO_C,;t t
4868s,@ECHO_N@,$ECHO_N,;t t
4869s,@ECHO_T@,$ECHO_T,;t t
4870s,@LIBS@,$LIBS,;t t
4871s,@ADDLIBS@,$ADDLIBS,;t t
4872s,@FADDLIBS@,$FADDLIBS,;t t
4873s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
4874s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
4875s,@build@,$build,;t t
4876s,@build_cpu@,$build_cpu,;t t
4877s,@build_vendor@,$build_vendor,;t t
4878s,@build_os@,$build_os,;t t
4879s,@EGREP@,$EGREP,;t t
4880s,@LN_S@,$LN_S,;t t
4881s,@CDEFS@,$CDEFS,;t t
4882s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
4883s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
4884s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
4885s,@CC@,$CC,;t t
4886s,@CFLAGS@,$CFLAGS,;t t
4887s,@LDFLAGS@,$LDFLAGS,;t t
4888s,@CPPFLAGS@,$CPPFLAGS,;t t
4889s,@ac_ct_CC@,$ac_ct_CC,;t t
4890s,@EXEEXT@,$EXEEXT,;t t
4891s,@OBJEXT@,$OBJEXT,;t t
4892s,@MPICC@,$MPICC,;t t
4893s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4894s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4895s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4896s,@CYGPATH_W@,$CYGPATH_W,;t t
4897s,@PACKAGE@,$PACKAGE,;t t
4898s,@VERSION@,$VERSION,;t t
4899s,@ACLOCAL@,$ACLOCAL,;t t
4900s,@AUTOCONF@,$AUTOCONF,;t t
4901s,@AUTOMAKE@,$AUTOMAKE,;t t
4902s,@AUTOHEADER@,$AUTOHEADER,;t t
4903s,@MAKEINFO@,$MAKEINFO,;t t
4904s,@install_sh@,$install_sh,;t t
4905s,@STRIP@,$STRIP,;t t
4906s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4907s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4908s,@mkdir_p@,$mkdir_p,;t t
4909s,@AWK@,$AWK,;t t
4910s,@SET_MAKE@,$SET_MAKE,;t t
4911s,@am__leading_dot@,$am__leading_dot,;t t
4912s,@AMTAR@,$AMTAR,;t t
4913s,@am__tar@,$am__tar,;t t
4914s,@am__untar@,$am__untar,;t t
4915s,@DEPDIR@,$DEPDIR,;t t
4916s,@am__include@,$am__include,;t t
4917s,@am__quote@,$am__quote,;t t
4918s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4919s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4920s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4921s,@CCDEPMODE@,$CCDEPMODE,;t t
4922s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4923s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4924s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4925s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4926s,@MAINT@,$MAINT,;t t
4927s,@LIBTOOLM4@,$LIBTOOLM4,;t t
4928s,@have_autoconf@,$have_autoconf,;t t
4929s,@have_automake@,$have_automake,;t t
4930s,@have_svn@,$have_svn,;t t
4931s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
4932s,@AUX_DIR@,$AUX_DIR,;t t
4933s,@abs_source_dir@,$abs_source_dir,;t t
4934s,@abs_lib_dir@,$abs_lib_dir,;t t
4935s,@abs_include_dir@,$abs_include_dir,;t t
4936s,@abs_bin_dir@,$abs_bin_dir,;t t
4937s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
4938s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
4939s,@ASLLIB@,$ASLLIB,;t t
4940s,@ASL_CPPFLAGS@,$ASL_CPPFLAGS,;t t
4941s,@COIN_HAS_ASL_TRUE@,$COIN_HAS_ASL_TRUE,;t t
4942s,@COIN_HAS_ASL_FALSE@,$COIN_HAS_ASL_FALSE,;t t
4943s,@MAKEOKFILE@,$MAKEOKFILE,;t t
4944s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t
4945s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t
4946s,@AMPLSOLVER_A@,$AMPLSOLVER_A,;t t
4947s,@ASLMAKEFLAGS@,$ASLMAKEFLAGS,;t t
4948s,@ASLMAKEFILECMDS@,$ASLMAKEFILECMDS,;t t
4949s,@MSVC_COMPILE_TRUE@,$MSVC_COMPILE_TRUE,;t t
4950s,@MSVC_COMPILE_FALSE@,$MSVC_COMPILE_FALSE,;t t
4951s,@LIBEXT@,$LIBEXT,;t t
4952s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
4953s,@LIBOBJS@,$LIBOBJS,;t t
4954s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4955CEOF
4956
4957_ACEOF
4958
4959  cat >>$CONFIG_STATUS <<\_ACEOF
4960  # Split the substitutions into bite-sized pieces for seds with
4961  # small command number limits, like on Digital OSF/1 and HP-UX.
4962  ac_max_sed_lines=48
4963  ac_sed_frag=1 # Number of current file.
4964  ac_beg=1 # First line for current file.
4965  ac_end=$ac_max_sed_lines # Line after last line for current file.
4966  ac_more_lines=:
4967  ac_sed_cmds=
4968  while $ac_more_lines; do
4969    if test $ac_beg -gt 1; then
4970      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4971    else
4972      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4973    fi
4974    if test ! -s $tmp/subs.frag; then
4975      ac_more_lines=false
4976    else
4977      # The purpose of the label and of the branching condition is to
4978      # speed up the sed processing (if there are no `@' at all, there
4979      # is no need to browse any of the substitutions).
4980      # These are the two extra sed commands mentioned above.
4981      (echo ':t
4982  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4983      if test -z "$ac_sed_cmds"; then
4984        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4985      else
4986        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4987      fi
4988      ac_sed_frag=`expr $ac_sed_frag + 1`
4989      ac_beg=$ac_end
4990      ac_end=`expr $ac_end + $ac_max_sed_lines`
4991    fi
4992  done
4993  if test -z "$ac_sed_cmds"; then
4994    ac_sed_cmds=cat
4995  fi
4996fi # test -n "$CONFIG_FILES"
4997
4998_ACEOF
4999cat >>$CONFIG_STATUS <<\_ACEOF
5000for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5001  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5002  case $ac_file in
5003  - | *:- | *:-:* ) # input from stdin
5004        cat >$tmp/stdin
5005        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5006        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5007  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5008        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5009  * )   ac_file_in=$ac_file.in ;;
5010  esac
5011
5012  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5013  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5014$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5015         X"$ac_file" : 'X\(//\)[^/]' \| \
5016         X"$ac_file" : 'X\(//\)$' \| \
5017         X"$ac_file" : 'X\(/\)' \| \
5018         .     : '\(.\)' 2>/dev/null ||
5019echo X"$ac_file" |
5020    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5021          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5022          /^X\(\/\/\)$/{ s//\1/; q; }
5023          /^X\(\/\).*/{ s//\1/; q; }
5024          s/.*/./; q'`
5025  { if $as_mkdir_p; then
5026    mkdir -p "$ac_dir"
5027  else
5028    as_dir="$ac_dir"
5029    as_dirs=
5030    while test ! -d "$as_dir"; do
5031      as_dirs="$as_dir $as_dirs"
5032      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5033$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5034         X"$as_dir" : 'X\(//\)[^/]' \| \
5035         X"$as_dir" : 'X\(//\)$' \| \
5036         X"$as_dir" : 'X\(/\)' \| \
5037         .     : '\(.\)' 2>/dev/null ||
5038echo X"$as_dir" |
5039    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5040          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5041          /^X\(\/\/\)$/{ s//\1/; q; }
5042          /^X\(\/\).*/{ s//\1/; q; }
5043          s/.*/./; q'`
5044    done
5045    test ! -n "$as_dirs" || mkdir $as_dirs
5046  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5047echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5048   { (exit 1); exit 1; }; }; }
5049
5050  ac_builddir=.
5051
5052if test "$ac_dir" != .; then
5053  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5054  # A "../" for each directory in $ac_dir_suffix.
5055  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5056else
5057  ac_dir_suffix= ac_top_builddir=
5058fi
5059
5060case $srcdir in
5061  .)  # No --srcdir option.  We are building in place.
5062    ac_srcdir=.
5063    if test -z "$ac_top_builddir"; then
5064       ac_top_srcdir=.
5065    else
5066       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5067    fi ;;
5068  [\\/]* | ?:[\\/]* )  # Absolute path.
5069    ac_srcdir=$srcdir$ac_dir_suffix;
5070    ac_top_srcdir=$srcdir ;;
5071  *) # Relative path.
5072    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5073    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5074esac
5075
5076# Do not use `cd foo && pwd` to compute absolute paths, because
5077# the directories may not exist.
5078case `pwd` in
5079.) ac_abs_builddir="$ac_dir";;
5080*)
5081  case "$ac_dir" in
5082  .) ac_abs_builddir=`pwd`;;
5083  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5084  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5085  esac;;
5086esac
5087case $ac_abs_builddir in
5088.) ac_abs_top_builddir=${ac_top_builddir}.;;
5089*)
5090  case ${ac_top_builddir}. in
5091  .) ac_abs_top_builddir=$ac_abs_builddir;;
5092  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5093  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5094  esac;;
5095esac
5096case $ac_abs_builddir in
5097.) ac_abs_srcdir=$ac_srcdir;;
5098*)
5099  case $ac_srcdir in
5100  .) ac_abs_srcdir=$ac_abs_builddir;;
5101  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5102  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5103  esac;;
5104esac
5105case $ac_abs_builddir in
5106.) ac_abs_top_srcdir=$ac_top_srcdir;;
5107*)
5108  case $ac_top_srcdir in
5109  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5110  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5111  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5112  esac;;
5113esac
5114
5115
5116  case $INSTALL in
5117  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5118  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5119  esac
5120
5121  if test x"$ac_file" != x-; then
5122    { echo "$as_me:$LINENO: creating $ac_file" >&5
5123echo "$as_me: creating $ac_file" >&6;}
5124    rm -f "$ac_file"
5125  fi
5126  # Let's still pretend it is `configure' which instantiates (i.e., don't
5127  # use $as_me), people would be surprised to read:
5128  #    /* config.h.  Generated by config.status.  */
5129  if test x"$ac_file" = x-; then
5130    configure_input=
5131  else
5132    configure_input="$ac_file.  "
5133  fi
5134  configure_input=$configure_input"Generated from `echo $ac_file_in |
5135                                     sed 's,.*/,,'` by configure."
5136
5137  # First look for the input files in the build tree, otherwise in the
5138  # src tree.
5139  ac_file_inputs=`IFS=:
5140    for f in $ac_file_in; do
5141      case $f in
5142      -) echo $tmp/stdin ;;
5143      [\\/$]*)
5144         # Absolute (can't be DOS-style, as IFS=:)
5145         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5146echo "$as_me: error: cannot find input file: $f" >&2;}
5147   { (exit 1); exit 1; }; }
5148         echo "$f";;
5149      *) # Relative
5150         if test -f "$f"; then
5151           # Build tree
5152           echo "$f"
5153         elif test -f "$srcdir/$f"; then
5154           # Source tree
5155           echo "$srcdir/$f"
5156         else
5157           # /dev/null tree
5158           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5159echo "$as_me: error: cannot find input file: $f" >&2;}
5160   { (exit 1); exit 1; }; }
5161         fi;;
5162      esac
5163    done` || { (exit 1); exit 1; }
5164_ACEOF
5165cat >>$CONFIG_STATUS <<_ACEOF
5166  sed "$ac_vpsub
5167$extrasub
5168_ACEOF
5169cat >>$CONFIG_STATUS <<\_ACEOF
5170:t
5171/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5172s,@configure_input@,$configure_input,;t t
5173s,@srcdir@,$ac_srcdir,;t t
5174s,@abs_srcdir@,$ac_abs_srcdir,;t t
5175s,@top_srcdir@,$ac_top_srcdir,;t t
5176s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5177s,@builddir@,$ac_builddir,;t t
5178s,@abs_builddir@,$ac_abs_builddir,;t t
5179s,@top_builddir@,$ac_top_builddir,;t t
5180s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5181s,@INSTALL@,$ac_INSTALL,;t t
5182" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5183  rm -f $tmp/stdin
5184  if test x"$ac_file" != x-; then
5185    mv $tmp/out $ac_file
5186  else
5187    cat $tmp/out
5188    rm -f $tmp/out
5189  fi
5190
5191done
5192_ACEOF
5193cat >>$CONFIG_STATUS <<\_ACEOF
5194
5195#
5196# CONFIG_COMMANDS section.
5197#
5198for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5199  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5200  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5201  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5202$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5203         X"$ac_dest" : 'X\(//\)[^/]' \| \
5204         X"$ac_dest" : 'X\(//\)$' \| \
5205         X"$ac_dest" : 'X\(/\)' \| \
5206         .     : '\(.\)' 2>/dev/null ||
5207echo X"$ac_dest" |
5208    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5209          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5210          /^X\(\/\/\)$/{ s//\1/; q; }
5211          /^X\(\/\).*/{ s//\1/; q; }
5212          s/.*/./; q'`
5213  { if $as_mkdir_p; then
5214    mkdir -p "$ac_dir"
5215  else
5216    as_dir="$ac_dir"
5217    as_dirs=
5218    while test ! -d "$as_dir"; do
5219      as_dirs="$as_dir $as_dirs"
5220      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5221$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5222         X"$as_dir" : 'X\(//\)[^/]' \| \
5223         X"$as_dir" : 'X\(//\)$' \| \
5224         X"$as_dir" : 'X\(/\)' \| \
5225         .     : '\(.\)' 2>/dev/null ||
5226echo X"$as_dir" |
5227    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5228          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5229          /^X\(\/\/\)$/{ s//\1/; q; }
5230          /^X\(\/\).*/{ s//\1/; q; }
5231          s/.*/./; q'`
5232    done
5233    test ! -n "$as_dirs" || mkdir $as_dirs
5234  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5235echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5236   { (exit 1); exit 1; }; }; }
5237
5238  ac_builddir=.
5239
5240if test "$ac_dir" != .; then
5241  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5242  # A "../" for each directory in $ac_dir_suffix.
5243  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5244else
5245  ac_dir_suffix= ac_top_builddir=
5246fi
5247
5248case $srcdir in
5249  .)  # No --srcdir option.  We are building in place.
5250    ac_srcdir=.
5251    if test -z "$ac_top_builddir"; then
5252       ac_top_srcdir=.
5253    else
5254       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5255    fi ;;
5256  [\\/]* | ?:[\\/]* )  # Absolute path.
5257    ac_srcdir=$srcdir$ac_dir_suffix;
5258    ac_top_srcdir=$srcdir ;;
5259  *) # Relative path.
5260    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5261    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5262esac
5263
5264# Do not use `cd foo && pwd` to compute absolute paths, because
5265# the directories may not exist.
5266case `pwd` in
5267.) ac_abs_builddir="$ac_dir";;
5268*)
5269  case "$ac_dir" in
5270  .) ac_abs_builddir=`pwd`;;
5271  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5272  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5273  esac;;
5274esac
5275case $ac_abs_builddir in
5276.) ac_abs_top_builddir=${ac_top_builddir}.;;
5277*)
5278  case ${ac_top_builddir}. in
5279  .) ac_abs_top_builddir=$ac_abs_builddir;;
5280  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5281  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5282  esac;;
5283esac
5284case $ac_abs_builddir in
5285.) ac_abs_srcdir=$ac_srcdir;;
5286*)
5287  case $ac_srcdir in
5288  .) ac_abs_srcdir=$ac_abs_builddir;;
5289  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5290  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5291  esac;;
5292esac
5293case $ac_abs_builddir in
5294.) ac_abs_top_srcdir=$ac_top_srcdir;;
5295*)
5296  case $ac_top_srcdir in
5297  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5298  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5299  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5300  esac;;
5301esac
5302
5303
5304  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5305echo "$as_me: executing $ac_dest commands" >&6;}
5306  case $ac_dest in
5307    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5308  # Strip MF so we end up with the name of the file.
5309  mf=`echo "$mf" | sed -e 's/:.*$//'`
5310  # Check whether this is an Automake generated Makefile or not.
5311  # We used to match only the files named `Makefile.in', but
5312  # some people rename them; so instead we look at the file content.
5313  # Grep'ing the first line is not enough: some people post-process
5314  # each Makefile.in and add a new line on top of each file to say so.
5315  # So let's grep whole file.
5316  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5317    dirpart=`(dirname "$mf") 2>/dev/null ||
5318$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5319         X"$mf" : 'X\(//\)[^/]' \| \
5320         X"$mf" : 'X\(//\)$' \| \
5321         X"$mf" : 'X\(/\)' \| \
5322         .     : '\(.\)' 2>/dev/null ||
5323echo X"$mf" |
5324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5325          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5326          /^X\(\/\/\)$/{ s//\1/; q; }
5327          /^X\(\/\).*/{ s//\1/; q; }
5328          s/.*/./; q'`
5329  else
5330    continue
5331  fi
5332  # Extract the definition of DEPDIR, am__include, and am__quote
5333  # from the Makefile without running `make'.
5334  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5335  test -z "$DEPDIR" && continue
5336  am__include=`sed -n 's/^am__include = //p' < "$mf"`
5337  test -z "am__include" && continue
5338  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5339  # When using ansi2knr, U may be empty or an underscore; expand it
5340  U=`sed -n 's/^U = //p' < "$mf"`
5341  # Find all dependency output files, they are included files with
5342  # $(DEPDIR) in their names.  We invoke sed twice because it is the
5343  # simplest approach to changing $(DEPDIR) to its actual value in the
5344  # expansion.
5345  for file in `sed -n "
5346    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5347       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5348    # Make sure the directory exists.
5349    test -f "$dirpart/$file" && continue
5350    fdir=`(dirname "$file") 2>/dev/null ||
5351$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5352         X"$file" : 'X\(//\)[^/]' \| \
5353         X"$file" : 'X\(//\)$' \| \
5354         X"$file" : 'X\(/\)' \| \
5355         .     : '\(.\)' 2>/dev/null ||
5356echo X"$file" |
5357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5358          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5359          /^X\(\/\/\)$/{ s//\1/; q; }
5360          /^X\(\/\).*/{ s//\1/; q; }
5361          s/.*/./; q'`
5362    { if $as_mkdir_p; then
5363    mkdir -p $dirpart/$fdir
5364  else
5365    as_dir=$dirpart/$fdir
5366    as_dirs=
5367    while test ! -d "$as_dir"; do
5368      as_dirs="$as_dir $as_dirs"
5369      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5370$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5371         X"$as_dir" : 'X\(//\)[^/]' \| \
5372         X"$as_dir" : 'X\(//\)$' \| \
5373         X"$as_dir" : 'X\(/\)' \| \
5374         .     : '\(.\)' 2>/dev/null ||
5375echo X"$as_dir" |
5376    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5377          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5378          /^X\(\/\/\)$/{ s//\1/; q; }
5379          /^X\(\/\).*/{ s//\1/; q; }
5380          s/.*/./; q'`
5381    done
5382    test ! -n "$as_dirs" || mkdir $as_dirs
5383  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5384echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5385   { (exit 1); exit 1; }; }; }
5386
5387    # echo "creating $dirpart/$file"
5388    echo '# dummy' > "$dirpart/$file"
5389  done
5390done
5391 ;;
5392  esac
5393done
5394_ACEOF
5395
5396cat >>$CONFIG_STATUS <<\_ACEOF
5397
5398{ (exit 0); exit 0; }
5399_ACEOF
5400chmod +x $CONFIG_STATUS
5401ac_clean_files=$ac_clean_files_save
5402
5403
5404# configure is writing to config.log, and then calls config.status.
5405# config.status does its own redirection, appending to config.log.
5406# Unfortunately, on DOS this fails, as config.log is still kept open
5407# by configure, so config.status won't be able to write to it; its
5408# output is simply discarded.  So we exec the FD to /dev/null,
5409# effectively closing config.log, so it can be properly (re)opened and
5410# appended to by config.status.  When coming back to configure, we
5411# need to make the FD available again.
5412if test "$no_create" != yes; then
5413  ac_cs_success=:
5414  ac_config_status_args=
5415  test "$silent" = yes &&
5416    ac_config_status_args="$ac_config_status_args --quiet"
5417  exec 5>/dev/null
5418  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5419  exec 5>>config.log
5420  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5421  # would make configure fail if this is the last instruction.
5422  $ac_cs_success || { (exit 1); exit 1; }
5423fi
5424
5425
5426  if test x"$coin_vpath_link_files" = x; then : ; else
5427    lnkcmd="$coin_link_input_cmd"
5428    if test "$lnkcmd" = cp; then
5429      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
5430echo "$as_me: Copying data files for VPATH configuration" >&6;}
5431    else
5432      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
5433echo "$as_me: Creating VPATH links for data files" >&6;}
5434    fi
5435    for file in $coin_vpath_link_files; do
5436      dir=`(dirname "./$file") 2>/dev/null ||
5437$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5438         X"./$file" : 'X\(//\)[^/]' \| \
5439         X"./$file" : 'X\(//\)$' \| \
5440         X"./$file" : 'X\(/\)' \| \
5441         .     : '\(.\)' 2>/dev/null ||
5442echo X"./$file" |
5443    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5444          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5445          /^X\(\/\/\)$/{ s//\1/; q; }
5446          /^X\(\/\).*/{ s//\1/; q; }
5447          s/.*/./; q'`
5448      if test -d $dir; then : ; else
5449        { if $as_mkdir_p; then
5450    mkdir -p $dir
5451  else
5452    as_dir=$dir
5453    as_dirs=
5454    while test ! -d "$as_dir"; do
5455      as_dirs="$as_dir $as_dirs"
5456      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5457$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5458         X"$as_dir" : 'X\(//\)[^/]' \| \
5459         X"$as_dir" : 'X\(//\)$' \| \
5460         X"$as_dir" : 'X\(/\)' \| \
5461         .     : '\(.\)' 2>/dev/null ||
5462echo X"$as_dir" |
5463    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5464          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5465          /^X\(\/\/\)$/{ s//\1/; q; }
5466          /^X\(\/\).*/{ s//\1/; q; }
5467          s/.*/./; q'`
5468    done
5469    test ! -n "$as_dirs" || mkdir $as_dirs
5470  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
5471echo "$as_me: error: cannot create directory $dir" >&2;}
5472   { (exit 1); exit 1; }; }; }
5473
5474      fi
5475      rm -f $file
5476      $lnkcmd $abs_source_dir/$file $file
5477    done
5478  fi
5479
5480  if test x$coin_projectdir = xyes; then
5481    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
5482echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
5483  else
5484    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
5485echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
5486  fi
5487else
5488  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
5489echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
5490fi
5491
5492
5493
5494# Finally, we need to make sure that compile_MS_ASL is executable
5495chmod a+x compile_MS_ASL
Note: See TracBrowser for help on using the repository browser.