source: trunk/Clp/configure @ 2030

Last change on this file since 2030 was 2030, checked in by forrest, 5 years ago

fix some ampl stuff, add ClpSolver? and a few fixes

  • Property svn:executable set to *
File size: 1006.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for Clp trunk.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14#
15# Copyright 2006 International Business Machines and others.
16# All Rights Reserved.
17# This file is part of the open source package Coin which is distributed
18# under the Eclipse Public License.
19## -------------------- ##
20## M4sh Initialization. ##
21## -------------------- ##
22
23# Be more Bourne compatible
24DUALCASE=1; export DUALCASE # for MKS sh
25if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26  emulate sh
27  NULLCMD=:
28  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29  # is contrary to our usage.  Disable this feature.
30  alias -g '${1+"$@"}'='"$@"'
31  setopt NO_GLOB_SUBST
32else
33  case `(set -o) 2>/dev/null` in #(
34  *posix*) :
35    set -o posix ;; #(
36  *) :
37     ;;
38esac
39fi
40
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49# Prefer a ksh shell builtin over an external printf program on Solaris,
50# but without wasting forks for bash or zsh.
51if test -z "$BASH_VERSION$ZSH_VERSION" \
52    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='print -r --'
54  as_echo_n='print -rn --'
55elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56  as_echo='printf %s\n'
57  as_echo_n='printf %s'
58else
59  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
60    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
61    as_echo_n='/usr/ucb/echo -n'
62  else
63    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64    as_echo_n_body='eval
65      arg=$1;
66      case $arg in #(
67      *"$as_nl"*)
68        expr "X$arg" : "X\\(.*\\)$as_nl";
69        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70      esac;
71      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72    '
73    export as_echo_n_body
74    as_echo_n='sh -c $as_echo_n_body as_echo'
75  fi
76  export as_echo_body
77  as_echo='sh -c $as_echo_body as_echo'
78fi
79
80# The user is always right.
81if test "${PATH_SEPARATOR+set}" != set; then
82  PATH_SEPARATOR=:
83  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
84    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85      PATH_SEPARATOR=';'
86  }
87fi
88
89
90# IFS
91# We need space, tab and new line, in precisely that order.  Quoting is
92# there to prevent editors from complaining about space-tab.
93# (If _AS_PATH_WALK were called with IFS unset, it would disable word
94# splitting by setting IFS to empty value.)
95IFS=" ""        $as_nl"
96
97# Find who we are.  Look in the path if we contain no directory separator.
98case $0 in #((
99  *[\\/]* ) as_myself=$0 ;;
100  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101for as_dir in $PATH
102do
103  IFS=$as_save_IFS
104  test -z "$as_dir" && as_dir=.
105    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106  done
107IFS=$as_save_IFS
108
109     ;;
110esac
111# We did not find ourselves, most probably we were run as `sh COMMAND'
112# in which case we are not to be found in the path.
113if test "x$as_myself" = x; then
114  as_myself=$0
115fi
116if test ! -f "$as_myself"; then
117  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118  exit 1
119fi
120
121# Unset variables that we do not need and which cause bugs (e.g. in
122# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
123# suppresses any "Segmentation fault" message there.  '((' could
124# trigger a bug in pdksh 5.2.14.
125for as_var in BASH_ENV ENV MAIL MAILPATH
126do eval test x\${$as_var+set} = xset \
127  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
128done
129PS1='$ '
130PS2='> '
131PS4='+ '
132
133# NLS nuisances.
134LC_ALL=C
135export LC_ALL
136LANGUAGE=C
137export LANGUAGE
138
139# CDPATH.
140(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144  emulate sh
145  NULLCMD=:
146  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147  # is contrary to our usage.  Disable this feature.
148  alias -g '\${1+\"\$@\"}'='\"\$@\"'
149  setopt NO_GLOB_SUBST
150else
151  case \`(set -o) 2>/dev/null\` in #(
152  *posix*) :
153    set -o posix ;; #(
154  *) :
155     ;;
156esac
157fi
158"
159  as_required="as_fn_return () { (exit \$1); }
160as_fn_success () { as_fn_return 0; }
161as_fn_failure () { as_fn_return 1; }
162as_fn_ret_success () { return 0; }
163as_fn_ret_failure () { return 1; }
164
165exitcode=0
166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171
172else
173  exitcode=1; echo positional parameters were not saved.
174fi
175test x\$exitcode = x0 || exit 1"
176  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
177  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
178  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
179  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
180test \$(( 1 + 1 )) = 2 || exit 1"
181  if (eval "$as_required") 2>/dev/null; then :
182  as_have_required=yes
183else
184  as_have_required=no
185fi
186  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193  IFS=$as_save_IFS
194  test -z "$as_dir" && as_dir=.
195  as_found=:
196  case $as_dir in #(
197         /*)
198           for as_base in sh bash ksh sh5; do
199             # Try only shells that exist, to save several forks.
200             as_shell=$as_dir/$as_base
201             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  CONFIG_SHELL=$as_shell as_have_required=yes
204                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  break 2
206fi
207fi
208           done;;
209       esac
210  as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214  CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219      if test "x$CONFIG_SHELL" != x; then :
220  # We cannot yet assume a decent shell, so we have to provide a
221        # neutralization value for shells without unset; and this also
222        # works around shells that cannot unset nonexistent variables.
223        BASH_ENV=/dev/null
224        ENV=/dev/null
225        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226        export CONFIG_SHELL
227        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230    if test x$as_have_required = xno; then :
231  $as_echo "$0: This script requires a shell more modern than all"
232  $as_echo "$0: the shells that I found on your system."
233  if test x${ZSH_VERSION+set} = xset ; then
234    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236  else
237    $as_echo "$0: Please tell bug-autoconf@gnu.org and
238$0: clp@list.coin-or.org about your system, including any
239$0: error possibly output before this message. Then install
240$0: a modern shell, or manually run the script under such a
241$0: shell if you do have one."
242  fi
243  exit 1
244fi
245fi
246fi
247SHELL=${CONFIG_SHELL-/bin/sh}
248export SHELL
249# Unset more variables known to interfere with behavior of common tools.
250CLICOLOR_FORCE= GREP_OPTIONS=
251unset CLICOLOR_FORCE GREP_OPTIONS
252
253## --------------------- ##
254## M4sh Shell Functions. ##
255## --------------------- ##
256# as_fn_unset VAR
257# ---------------
258# Portably unset VAR.
259as_fn_unset ()
260{
261  { eval $1=; unset $1;}
262}
263as_unset=as_fn_unset
264
265# as_fn_set_status STATUS
266# -----------------------
267# Set $? to STATUS, without forking.
268as_fn_set_status ()
269{
270  return $1
271} # as_fn_set_status
272
273# as_fn_exit STATUS
274# -----------------
275# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276as_fn_exit ()
277{
278  set +e
279  as_fn_set_status $1
280  exit $1
281} # as_fn_exit
282
283# as_fn_mkdir_p
284# -------------
285# Create "$as_dir" as a directory, including parents if necessary.
286as_fn_mkdir_p ()
287{
288
289  case $as_dir in #(
290  -*) as_dir=./$as_dir;;
291  esac
292  test -d "$as_dir" || eval $as_mkdir_p || {
293    as_dirs=
294    while :; do
295      case $as_dir in #(
296      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
297      *) as_qdir=$as_dir;;
298      esac
299      as_dirs="'$as_qdir' $as_dirs"
300      as_dir=`$as_dirname -- "$as_dir" ||
301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
302         X"$as_dir" : 'X\(//\)[^/]' \| \
303         X"$as_dir" : 'X\(//\)$' \| \
304         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
305$as_echo X"$as_dir" |
306    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
307            s//\1/
308            q
309          }
310          /^X\(\/\/\)[^/].*/{
311            s//\1/
312            q
313          }
314          /^X\(\/\/\)$/{
315            s//\1/
316            q
317          }
318          /^X\(\/\).*/{
319            s//\1/
320            q
321          }
322          s/.*/./; q'`
323      test -d "$as_dir" && break
324    done
325    test -z "$as_dirs" || eval "mkdir $as_dirs"
326  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
327
328
329} # as_fn_mkdir_p
330# as_fn_append VAR VALUE
331# ----------------------
332# Append the text in VALUE to the end of the definition contained in VAR. Take
333# advantage of any shell optimizations that allow amortized linear growth over
334# repeated appends, instead of the typical quadratic growth present in naive
335# implementations.
336if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
337  eval 'as_fn_append ()
338  {
339    eval $1+=\$2
340  }'
341else
342  as_fn_append ()
343  {
344    eval $1=\$$1\$2
345  }
346fi # as_fn_append
347
348# as_fn_arith ARG...
349# ------------------
350# Perform arithmetic evaluation on the ARGs, and store the result in the
351# global $as_val. Take advantage of shells that can avoid forks. The arguments
352# must be portable across $(()) and expr.
353if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354  eval 'as_fn_arith ()
355  {
356    as_val=$(( $* ))
357  }'
358else
359  as_fn_arith ()
360  {
361    as_val=`expr "$@" || test $? -eq 1`
362  }
363fi # as_fn_arith
364
365
366# as_fn_error ERROR [LINENO LOG_FD]
367# ---------------------------------
368# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
369# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
370# script with status $?, using 1 if that was 0.
371as_fn_error ()
372{
373  as_status=$?; test $as_status -eq 0 && as_status=1
374  if test "$3"; then
375    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
376    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377  fi
378  $as_echo "$as_me: error: $1" >&2
379  as_fn_exit $as_status
380} # as_fn_error
381
382if expr a : '\(a\)' >/dev/null 2>&1 &&
383   test "X`expr 00001 : '.*\(...\)'`" = X001; then
384  as_expr=expr
385else
386  as_expr=false
387fi
388
389if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
390  as_basename=basename
391else
392  as_basename=false
393fi
394
395if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
396  as_dirname=dirname
397else
398  as_dirname=false
399fi
400
401as_me=`$as_basename -- "$0" ||
402$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
403         X"$0" : 'X\(//\)$' \| \
404         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405$as_echo X/"$0" |
406    sed '/^.*\/\([^/][^/]*\)\/*$/{
407            s//\1/
408            q
409          }
410          /^X\/\(\/\/\)$/{
411            s//\1/
412            q
413          }
414          /^X\/\(\/\).*/{
415            s//\1/
416            q
417          }
418          s/.*/./; q'`
419
420# Avoid depending upon Character Ranges.
421as_cr_letters='abcdefghijklmnopqrstuvwxyz'
422as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
423as_cr_Letters=$as_cr_letters$as_cr_LETTERS
424as_cr_digits='0123456789'
425as_cr_alnum=$as_cr_Letters$as_cr_digits
426
427
428  as_lineno_1=$LINENO as_lineno_1a=$LINENO
429  as_lineno_2=$LINENO as_lineno_2a=$LINENO
430  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
431  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
432  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
433  sed -n '
434    p
435    /[$]LINENO/=
436  ' <$as_myself |
437    sed '
438      s/[$]LINENO.*/&-/
439      t lineno
440      b
441      :lineno
442      N
443      :loop
444      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445      t loop
446      s/-\n.*//
447    ' >$as_me.lineno &&
448  chmod +x "$as_me.lineno" ||
449    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450
451  # Don't try to exec as it changes $[0], causing all sort of problems
452  # (the dirname of $[0] is not the place where we might find the
453  # original and so on.  Autoconf is especially sensitive to this).
454  . "./$as_me.lineno"
455  # Exit status is that of the last command.
456  exit
457}
458
459ECHO_C= ECHO_N= ECHO_T=
460case `echo -n x` in #(((((
461-n*)
462  case `echo 'xy\c'` in
463  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
464  xy)  ECHO_C='\c';;
465  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
466       ECHO_T=' ';;
467  esac;;
468*)
469  ECHO_N='-n';;
470esac
471
472rm -f conf$$ conf$$.exe conf$$.file
473if test -d conf$$.dir; then
474  rm -f conf$$.dir/conf$$.file
475else
476  rm -f conf$$.dir
477  mkdir conf$$.dir 2>/dev/null
478fi
479if (echo >conf$$.file) 2>/dev/null; then
480  if ln -s conf$$.file conf$$ 2>/dev/null; then
481    as_ln_s='ln -s'
482    # ... but there are two gotchas:
483    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
484    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
485    # In both cases, we have to default to `cp -p'.
486    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487      as_ln_s='cp -p'
488  elif ln conf$$.file conf$$ 2>/dev/null; then
489    as_ln_s=ln
490  else
491    as_ln_s='cp -p'
492  fi
493else
494  as_ln_s='cp -p'
495fi
496rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
497rmdir conf$$.dir 2>/dev/null
498
499if mkdir -p . 2>/dev/null; then
500  as_mkdir_p='mkdir -p "$as_dir"'
501else
502  test -d ./-p && rmdir ./-p
503  as_mkdir_p=false
504fi
505
506if test -x / >/dev/null 2>&1; then
507  as_test_x='test -x'
508else
509  if ls -dL / >/dev/null 2>&1; then
510    as_ls_L_option=L
511  else
512    as_ls_L_option=
513  fi
514  as_test_x='
515    eval sh -c '\''
516      if test -d "$1"; then
517        test -d "$1/.";
518      else
519        case $1 in #(
520        -*)set "./$1";;
521        esac;
522        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
523        ???[sx]*):;;*)false;;esac;fi
524    '\'' sh
525  '
526fi
527as_executable_p=$as_test_x
528
529# Sed expression to map a string onto a valid CPP name.
530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532# Sed expression to map a string onto a valid variable name.
533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537# Check that we are running under the correct shell.
538SHELL=${CONFIG_SHELL-/bin/sh}
539
540case X$ECHO in
541X*--fallback-echo)
542  # Remove one level of quotation (which was required for Make).
543  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
544  ;;
545esac
546
547echo=${ECHO-echo}
548if test "X$1" = X--no-reexec; then
549  # Discard the --no-reexec flag, and continue.
550  shift
551elif test "X$1" = X--fallback-echo; then
552  # Avoid inline document here, it may be left over
553  :
554elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
555  # Yippee, $echo works!
556  :
557else
558  # Restart under the correct shell.
559  exec $SHELL "$0" --no-reexec ${1+"$@"}
560fi
561
562if test "X$1" = X--fallback-echo; then
563  # used as fallback echo
564  shift
565  cat <<EOF
566$*
567EOF
568  exit 0
569fi
570
571# The HP-UX ksh and POSIX shell print the target directory to stdout
572# if CDPATH is set.
573(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
574
575if test -z "$ECHO"; then
576if test "X${echo_test_string+set}" != Xset; then
577# find a string as large as possible, as long as the shell can cope with it
578  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
579    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
580    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
581       echo_test_string=`eval $cmd` &&
582       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
583    then
584      break
585    fi
586  done
587fi
588
589if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
590   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
591   test "X$echo_testing_string" = "X$echo_test_string"; then
592  :
593else
594  # The Solaris, AIX, and Digital Unix default echo programs unquote
595  # backslashes.  This makes it impossible to quote backslashes using
596  #   echo "$something" | sed 's/\\/\\\\/g'
597  #
598  # So, first we look for a working echo in the user's PATH.
599
600  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601  for dir in $PATH /usr/ucb; do
602    IFS="$lt_save_ifs"
603    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606       test "X$echo_testing_string" = "X$echo_test_string"; then
607      echo="$dir/echo"
608      break
609    fi
610  done
611  IFS="$lt_save_ifs"
612
613  if test "X$echo" = Xecho; then
614    # We didn't find a better echo, so look for alternatives.
615    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
616       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
617       test "X$echo_testing_string" = "X$echo_test_string"; then
618      # This shell has a builtin print -r that does the trick.
619      echo='print -r'
620    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
621         test "X$CONFIG_SHELL" != X/bin/ksh; then
622      # If we have ksh, try running configure again with it.
623      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624      export ORIGINAL_CONFIG_SHELL
625      CONFIG_SHELL=/bin/ksh
626      export CONFIG_SHELL
627      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628    else
629      # Try using printf.
630      echo='printf %s\n'
631      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
632         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
633         test "X$echo_testing_string" = "X$echo_test_string"; then
634        # Cool, printf works
635        :
636      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637           test "X$echo_testing_string" = 'X\t' &&
638           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639           test "X$echo_testing_string" = "X$echo_test_string"; then
640        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641        export CONFIG_SHELL
642        SHELL="$CONFIG_SHELL"
643        export SHELL
644        echo="$CONFIG_SHELL $0 --fallback-echo"
645      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646           test "X$echo_testing_string" = 'X\t' &&
647           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648           test "X$echo_testing_string" = "X$echo_test_string"; then
649        echo="$CONFIG_SHELL $0 --fallback-echo"
650      else
651        # maybe with a smaller string...
652        prev=:
653
654        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
656          then
657            break
658          fi
659          prev="$cmd"
660        done
661
662        if test "$prev" != 'sed 50q "$0"'; then
663          echo_test_string=`eval $prev`
664          export echo_test_string
665          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666        else
667          # Oops.  We lost completely, so just stick with echo.
668          echo=echo
669        fi
670      fi
671    fi
672  fi
673fi
674fi
675
676# Copy echo and quote the copy suitably for passing to libtool from
677# the Makefile, instead of quoting the original, which is used later.
678ECHO=$echo
679if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681fi
682
683
684
685
686tagnames=${tagnames+${tagnames},}CXX
687
688tagnames=${tagnames+${tagnames},}F77
689
690exec 7<&0 </dev/null 6>&1
691
692# Name of the host.
693# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
694# so uname gets run too.
695ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696
697#
698# Initializations.
699#
700ac_default_prefix=/usr/local
701ac_clean_files=
702ac_config_libobj_dir=.
703LIBOBJS=
704cross_compiling=no
705subdirs=
706MFLAGS=
707MAKEFLAGS=
708
709# Identity of this package.
710PACKAGE_NAME='Clp'
711PACKAGE_TARNAME='clp'
712PACKAGE_VERSION='trunk'
713PACKAGE_STRING='Clp trunk'
714PACKAGE_BUGREPORT='clp@list.coin-or.org'
715PACKAGE_URL=''
716
717ac_unique_file="src/ClpSimplex.cpp"
718ac_default_prefix=`pwd`
719# Factoring default headers for most tests.
720ac_includes_default="\
721#include <stdio.h>
722#ifdef HAVE_SYS_TYPES_H
723# include <sys/types.h>
724#endif
725#ifdef HAVE_SYS_STAT_H
726# include <sys/stat.h>
727#endif
728#ifdef STDC_HEADERS
729# include <stdlib.h>
730# include <stddef.h>
731#else
732# ifdef HAVE_STDLIB_H
733#  include <stdlib.h>
734# endif
735#endif
736#ifdef HAVE_STRING_H
737# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
738#  include <memory.h>
739# endif
740# include <string.h>
741#endif
742#ifdef HAVE_STRINGS_H
743# include <strings.h>
744#endif
745#ifdef HAVE_INTTYPES_H
746# include <inttypes.h>
747#endif
748#ifdef HAVE_STDINT_H
749# include <stdint.h>
750#endif
751#ifdef HAVE_UNISTD_H
752# include <unistd.h>
753#endif"
754
755ac_subst_vars='LTLIBOBJS
756LIBOBJS
757ABSBUILDDIR
758VPATH_DISTCLEANFILES
759LIBEXT
760coin_doxy_excludes
761coin_doxy_tagfiles
762coin_doxy_logname
763coin_doxy_tagname
764coin_doxy_usedot
765coin_have_doxygen
766COIN_HAS_ASL_FALSE
767COIN_HAS_ASL_TRUE
768ASL_DATA_INSTALLED
769ASL_CFLAGS_INSTALLED
770ASL_LIBS_INSTALLED
771ASL_DEPENDENCIES
772ASL_DATA
773ASL_CFLAGS
774ASL_LIBS
775COIN_HAS_WSMP_FALSE
776COIN_HAS_WSMP_TRUE
777COIN_HAS_BLAS_FALSE
778COIN_HAS_BLAS_TRUE
779BLAS_DATA_INSTALLED
780BLAS_CFLAGS_INSTALLED
781BLAS_LIBS_INSTALLED
782BLAS_DEPENDENCIES
783BLAS_DATA
784BLAS_CFLAGS
785BLAS_LIBS
786FLIBS
787MPIF77
788OPT_FFLAGS
789DBG_FFLAGS
790ADD_FFLAGS
791COIN_HAS_MUMPS_FALSE
792COIN_HAS_MUMPS_TRUE
793MUMPS_DATA_INSTALLED
794MUMPS_CFLAGS_INSTALLED
795MUMPS_LIBS_INSTALLED
796MUMPS_DEPENDENCIES
797MUMPS_DATA
798MUMPS_CFLAGS
799MUMPS_LIBS
800COIN_HAS_GLPK_FALSE
801COIN_HAS_GLPK_TRUE
802GLPK_DATA_INSTALLED
803GLPK_CFLAGS_INSTALLED
804GLPK_LIBS_INSTALLED
805GLPK_DEPENDENCIES
806GLPK_DATA
807GLPK_CFLAGS
808GLPK_LIBS
809COIN_HAS_CHOLMOD_FALSE
810COIN_HAS_CHOLMOD_TRUE
811CHOLMODLIB
812CHOLMODINCDIR
813COIN_HAS_AMD_FALSE
814COIN_HAS_AMD_TRUE
815AMDLIB
816AMDINCDIR
817COIN_HAS_ABC_FALSE
818COIN_HAS_ABC_TRUE
819COIN_HAS_NETLIB_FALSE
820COIN_HAS_NETLIB_TRUE
821NETLIB_DATA_INSTALLED
822NETLIB_CFLAGS_INSTALLED
823NETLIB_LIBS_INSTALLED
824NETLIB_DEPENDENCIES
825NETLIB_DATA
826NETLIB_CFLAGS
827NETLIB_LIBS
828COIN_HAS_SAMPLE_FALSE
829COIN_HAS_SAMPLE_TRUE
830SAMPLE_DATA_INSTALLED
831SAMPLE_CFLAGS_INSTALLED
832SAMPLE_LIBS_INSTALLED
833SAMPLE_DEPENDENCIES
834SAMPLE_DATA
835SAMPLE_CFLAGS
836SAMPLE_LIBS
837COIN_HAS_OSITESTS_FALSE
838COIN_HAS_OSITESTS_TRUE
839OSITESTS_DATA_INSTALLED
840OSITESTS_CFLAGS_INSTALLED
841OSITESTS_LIBS_INSTALLED
842OSITESTS_DEPENDENCIES
843OSITESTS_DATA
844OSITESTS_CFLAGS
845OSITESTS_LIBS
846COIN_HAS_OSI_FALSE
847COIN_HAS_OSI_TRUE
848OSICLPLIB_LIBS_INSTALLED
849OSICLPLIB_CFLAGS_INSTALLED
850OSICLPLIB_DEPENDENCIES
851OSICLPLIB_PCREQUIRES
852OSICLPLIB_PCLIBS
853OSICLPLIB_LIBS
854OSICLPLIB_CFLAGS
855OSI_DATA_INSTALLED
856OSI_CFLAGS_INSTALLED
857OSI_LIBS_INSTALLED
858OSI_DEPENDENCIES
859OSI_DATA
860OSI_CFLAGS
861OSI_LIBS
862COIN_HAS_COINUTILS_FALSE
863COIN_HAS_COINUTILS_TRUE
864CLPLIB_LIBS_INSTALLED
865CLPLIB_CFLAGS_INSTALLED
866CLPLIB_DEPENDENCIES
867CLPLIB_PCREQUIRES
868CLPLIB_PCLIBS
869CLPLIB_LIBS
870CLPLIB_CFLAGS
871COINUTILS_DATA_INSTALLED
872COINUTILS_CFLAGS_INSTALLED
873COINUTILS_LIBS_INSTALLED
874COINUTILS_DEPENDENCIES
875COINUTILS_DATA
876COINUTILS_CFLAGS
877COINUTILS_LIBS
878COIN_PKG_CONFIG_PATH_UNINSTALLED
879COIN_PKG_CONFIG_PATH
880COIN_HAS_PKGCONFIG_FALSE
881COIN_HAS_PKGCONFIG_TRUE
882PKG_CONFIG
883LT_LDFLAGS
884DEPENDENCY_LINKING_FALSE
885DEPENDENCY_LINKING_TRUE
886RPATH_FLAGS
887ac_cxx_preproc_warn_flag
888ac_c_preproc_warn_flag
889LIBTOOL
890ac_ct_F77
891FFLAGS
892F77
893CXXCPP
894CPP
895RANLIB
896AR
897ECHO
898host_os
899host_vendor
900host_cpu
901host
902HAVE_EXTERNALS_FALSE
903HAVE_EXTERNALS_TRUE
904abs_bin_dir
905abs_include_dir
906abs_lib_dir
907abs_source_dir
908AUX_DIR
909BUILDTOOLSDIR
910have_svn
911have_automake
912have_autoconf
913LIBTOOLM4
914MAINT
915MAINTAINER_MODE_FALSE
916MAINTAINER_MODE_TRUE
917am__fastdepCXX_FALSE
918am__fastdepCXX_TRUE
919CXXDEPMODE
920am__fastdepCC_FALSE
921am__fastdepCC_TRUE
922CCDEPMODE
923AMDEPBACKSLASH
924AMDEP_FALSE
925AMDEP_TRUE
926am__quote
927am__include
928DEPDIR
929am__untar
930am__tar
931AMTAR
932am__leading_dot
933SET_MAKE
934AWK
935mkdir_p
936INSTALL_STRIP_PROGRAM
937STRIP
938install_sh
939MAKEINFO
940AUTOHEADER
941AUTOMAKE
942AUTOCONF
943ACLOCAL
944VERSION
945PACKAGE
946CYGPATH_W
947INSTALL_DATA
948INSTALL_SCRIPT
949INSTALL_PROGRAM
950LN_S
951EGREP
952GREP
953MPICXX
954COIN_CXX_IS_CL_FALSE
955COIN_CXX_IS_CL_TRUE
956ac_ct_CXX
957CXXFLAGS
958CXX
959OPT_CXXFLAGS
960DBG_CXXFLAGS
961ADD_CXXFLAGS
962CXXDEFS
963MPICC
964COIN_CC_IS_CL_FALSE
965COIN_CC_IS_CL_TRUE
966OBJEXT
967EXEEXT
968ac_ct_CC
969CPPFLAGS
970LDFLAGS
971CFLAGS
972CC
973sol_cc_compiler
974OPT_CFLAGS
975DBG_CFLAGS
976ADD_CFLAGS
977CDEFS
978CLP_SVN_REV
979have_svnversion
980ALWAYS_FALSE_FALSE
981ALWAYS_FALSE_TRUE
982build_os
983build_vendor
984build_cpu
985build
986target_alias
987host_alias
988build_alias
989LIBS
990ECHO_T
991ECHO_N
992ECHO_C
993DEFS
994mandir
995localedir
996libdir
997psdir
998pdfdir
999dvidir
1000htmldir
1001infodir
1002docdir
1003oldincludedir
1004includedir
1005localstatedir
1006sharedstatedir
1007sysconfdir
1008datadir
1009datarootdir
1010libexecdir
1011sbindir
1012bindir
1013program_transform_name
1014prefix
1015exec_prefix
1016PACKAGE_URL
1017PACKAGE_BUGREPORT
1018PACKAGE_STRING
1019PACKAGE_VERSION
1020PACKAGE_TARNAME
1021PACKAGE_NAME
1022PATH_SEPARATOR
1023SHELL'
1024ac_subst_files=''
1025ac_user_opts='
1026enable_option_checking
1027enable_debug
1028enable_debug_clp
1029with_clp_verbosity
1030with_clp_checklevel
1031enable_doscompile
1032enable_msvc
1033enable_static
1034enable_dependency_tracking
1035enable_maintainer_mode
1036enable_shared
1037enable_fast_install
1038with_gnu_ld
1039enable_libtool_lock
1040with_pic
1041with_tags
1042enable_dependency_linking
1043enable_pkg_config
1044with_coin_instdir
1045with_coinutils
1046with_coinutils_lib
1047with_coinutils_incdir
1048with_coinutils_datadir
1049enable_interpackage_dependencies
1050with_osi
1051with_osi_lib
1052with_osi_incdir
1053with_osi_datadir
1054with_ositests
1055with_ositests_lib
1056with_ositests_incdir
1057with_ositests_datadir
1058with_sample
1059with_sample_lib
1060with_sample_incdir
1061with_sample_datadir
1062with_netlib
1063with_netlib_lib
1064with_netlib_incdir
1065with_netlib_datadir
1066enable_aboca
1067with_amd_incdir
1068with_amd_lib
1069enable_amd_libcheck
1070with_cholmod_incdir
1071with_cholmod_lib
1072enable_cholmod_libcheck
1073with_glpk
1074with_glpk_lib
1075with_glpk_incdir
1076with_glpk_datadir
1077with_mumps
1078with_mumps_lib
1079with_mumps_incdir
1080with_mumps_datadir
1081with_wsmp
1082with_blas
1083with_blas_lib
1084with_blas_incdir
1085with_blas_datadir
1086with_asl
1087with_asl_lib
1088with_asl_incdir
1089with_asl_datadir
1090enable_gnu_packages
1091with_dot
1092'
1093      ac_precious_vars='build_alias
1094host_alias
1095target_alias
1096CDEFS
1097ADD_CFLAGS
1098DBG_CFLAGS
1099OPT_CFLAGS
1100CC
1101CFLAGS
1102LDFLAGS
1103LIBS
1104CPPFLAGS
1105MPICC
1106CXXDEFS
1107ADD_CXXFLAGS
1108DBG_CXXFLAGS
1109OPT_CXXFLAGS
1110CXX
1111CXXFLAGS
1112CCC
1113MPICXX
1114CPP
1115CXXCPP
1116F77
1117FFLAGS
1118PKG_CONFIG
1119ADD_FFLAGS
1120DBG_FFLAGS
1121OPT_FFLAGS
1122MPIF77'
1123
1124
1125# Initialize some variables set by options.
1126ac_init_help=
1127ac_init_version=false
1128ac_unrecognized_opts=
1129ac_unrecognized_sep=
1130# The variables have the same names as the options, with
1131# dashes changed to underlines.
1132cache_file=/dev/null
1133exec_prefix=NONE
1134no_create=
1135no_recursion=
1136prefix=NONE
1137program_prefix=NONE
1138program_suffix=NONE
1139program_transform_name=s,x,x,
1140silent=
1141site=
1142srcdir=
1143verbose=
1144x_includes=NONE
1145x_libraries=NONE
1146
1147# Installation directory options.
1148# These are left unexpanded so users can "make install exec_prefix=/foo"
1149# and all the variables that are supposed to be based on exec_prefix
1150# by default will actually change.
1151# Use braces instead of parens because sh, perl, etc. also accept them.
1152# (The list follows the same order as the GNU Coding Standards.)
1153bindir='${exec_prefix}/bin'
1154sbindir='${exec_prefix}/sbin'
1155libexecdir='${exec_prefix}/libexec'
1156datarootdir='${prefix}/share'
1157datadir='${datarootdir}'
1158sysconfdir='${prefix}/etc'
1159sharedstatedir='${prefix}/com'
1160localstatedir='${prefix}/var'
1161includedir='${prefix}/include'
1162oldincludedir='/usr/include'
1163docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1164infodir='${datarootdir}/info'
1165htmldir='${docdir}'
1166dvidir='${docdir}'
1167pdfdir='${docdir}'
1168psdir='${docdir}'
1169libdir='${exec_prefix}/lib'
1170localedir='${datarootdir}/locale'
1171mandir='${datarootdir}/man'
1172
1173ac_prev=
1174ac_dashdash=
1175for ac_option
1176do
1177  # If the previous option needs an argument, assign it.
1178  if test -n "$ac_prev"; then
1179    eval $ac_prev=\$ac_option
1180    ac_prev=
1181    continue
1182  fi
1183
1184  case $ac_option in
1185  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1186  *)    ac_optarg=yes ;;
1187  esac
1188
1189  # Accept the important Cygnus configure options, so we can diagnose typos.
1190
1191  case $ac_dashdash$ac_option in
1192  --)
1193    ac_dashdash=yes ;;
1194
1195  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1196    ac_prev=bindir ;;
1197  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1198    bindir=$ac_optarg ;;
1199
1200  -build | --build | --buil | --bui | --bu)
1201    ac_prev=build_alias ;;
1202  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1203    build_alias=$ac_optarg ;;
1204
1205  -cache-file | --cache-file | --cache-fil | --cache-fi \
1206  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1207    ac_prev=cache_file ;;
1208  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1209  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1210    cache_file=$ac_optarg ;;
1211
1212  --config-cache | -C)
1213    cache_file=config.cache ;;
1214
1215  -datadir | --datadir | --datadi | --datad)
1216    ac_prev=datadir ;;
1217  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1218    datadir=$ac_optarg ;;
1219
1220  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1221  | --dataroo | --dataro | --datar)
1222    ac_prev=datarootdir ;;
1223  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1224  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1225    datarootdir=$ac_optarg ;;
1226
1227  -disable-* | --disable-*)
1228    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1229    # Reject names that are not valid shell variable names.
1230    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231      as_fn_error "invalid feature name: $ac_useropt"
1232    ac_useropt_orig=$ac_useropt
1233    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234    case $ac_user_opts in
1235      *"
1236"enable_$ac_useropt"
1237"*) ;;
1238      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1239         ac_unrecognized_sep=', ';;
1240    esac
1241    eval enable_$ac_useropt=no ;;
1242
1243  -docdir | --docdir | --docdi | --doc | --do)
1244    ac_prev=docdir ;;
1245  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1246    docdir=$ac_optarg ;;
1247
1248  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1249    ac_prev=dvidir ;;
1250  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1251    dvidir=$ac_optarg ;;
1252
1253  -enable-* | --enable-*)
1254    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1255    # Reject names that are not valid shell variable names.
1256    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257      as_fn_error "invalid feature name: $ac_useropt"
1258    ac_useropt_orig=$ac_useropt
1259    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260    case $ac_user_opts in
1261      *"
1262"enable_$ac_useropt"
1263"*) ;;
1264      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1265         ac_unrecognized_sep=', ';;
1266    esac
1267    eval enable_$ac_useropt=\$ac_optarg ;;
1268
1269  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1270  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1271  | --exec | --exe | --ex)
1272    ac_prev=exec_prefix ;;
1273  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1274  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1275  | --exec=* | --exe=* | --ex=*)
1276    exec_prefix=$ac_optarg ;;
1277
1278  -gas | --gas | --ga | --g)
1279    # Obsolete; use --with-gas.
1280    with_gas=yes ;;
1281
1282  -help | --help | --hel | --he | -h)
1283    ac_init_help=long ;;
1284  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1285    ac_init_help=recursive ;;
1286  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1287    ac_init_help=short ;;
1288
1289  -host | --host | --hos | --ho)
1290    ac_prev=host_alias ;;
1291  -host=* | --host=* | --hos=* | --ho=*)
1292    host_alias=$ac_optarg ;;
1293
1294  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1295    ac_prev=htmldir ;;
1296  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1297  | --ht=*)
1298    htmldir=$ac_optarg ;;
1299
1300  -includedir | --includedir | --includedi | --included | --include \
1301  | --includ | --inclu | --incl | --inc)
1302    ac_prev=includedir ;;
1303  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1304  | --includ=* | --inclu=* | --incl=* | --inc=*)
1305    includedir=$ac_optarg ;;
1306
1307  -infodir | --infodir | --infodi | --infod | --info | --inf)
1308    ac_prev=infodir ;;
1309  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1310    infodir=$ac_optarg ;;
1311
1312  -libdir | --libdir | --libdi | --libd)
1313    ac_prev=libdir ;;
1314  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1315    libdir=$ac_optarg ;;
1316
1317  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1318  | --libexe | --libex | --libe)
1319    ac_prev=libexecdir ;;
1320  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1321  | --libexe=* | --libex=* | --libe=*)
1322    libexecdir=$ac_optarg ;;
1323
1324  -localedir | --localedir | --localedi | --localed | --locale)
1325    ac_prev=localedir ;;
1326  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1327    localedir=$ac_optarg ;;
1328
1329  -localstatedir | --localstatedir | --localstatedi | --localstated \
1330  | --localstate | --localstat | --localsta | --localst | --locals)
1331    ac_prev=localstatedir ;;
1332  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1333  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1334    localstatedir=$ac_optarg ;;
1335
1336  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1337    ac_prev=mandir ;;
1338  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1339    mandir=$ac_optarg ;;
1340
1341  -nfp | --nfp | --nf)
1342    # Obsolete; use --without-fp.
1343    with_fp=no ;;
1344
1345  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1346  | --no-cr | --no-c | -n)
1347    no_create=yes ;;
1348
1349  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1350  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1351    no_recursion=yes ;;
1352
1353  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1354  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1355  | --oldin | --oldi | --old | --ol | --o)
1356    ac_prev=oldincludedir ;;
1357  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1358  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1359  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1360    oldincludedir=$ac_optarg ;;
1361
1362  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1363    ac_prev=prefix ;;
1364  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1365    prefix=$ac_optarg ;;
1366
1367  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1368  | --program-pre | --program-pr | --program-p)
1369    ac_prev=program_prefix ;;
1370  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1371  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1372    program_prefix=$ac_optarg ;;
1373
1374  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1375  | --program-suf | --program-su | --program-s)
1376    ac_prev=program_suffix ;;
1377  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1378  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1379    program_suffix=$ac_optarg ;;
1380
1381  -program-transform-name | --program-transform-name \
1382  | --program-transform-nam | --program-transform-na \
1383  | --program-transform-n | --program-transform- \
1384  | --program-transform | --program-transfor \
1385  | --program-transfo | --program-transf \
1386  | --program-trans | --program-tran \
1387  | --progr-tra | --program-tr | --program-t)
1388    ac_prev=program_transform_name ;;
1389  -program-transform-name=* | --program-transform-name=* \
1390  | --program-transform-nam=* | --program-transform-na=* \
1391  | --program-transform-n=* | --program-transform-=* \
1392  | --program-transform=* | --program-transfor=* \
1393  | --program-transfo=* | --program-transf=* \
1394  | --program-trans=* | --program-tran=* \
1395  | --progr-tra=* | --program-tr=* | --program-t=*)
1396    program_transform_name=$ac_optarg ;;
1397
1398  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1399    ac_prev=pdfdir ;;
1400  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1401    pdfdir=$ac_optarg ;;
1402
1403  -psdir | --psdir | --psdi | --psd | --ps)
1404    ac_prev=psdir ;;
1405  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1406    psdir=$ac_optarg ;;
1407
1408  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1409  | -silent | --silent | --silen | --sile | --sil)
1410    silent=yes ;;
1411
1412  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1413    ac_prev=sbindir ;;
1414  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1415  | --sbi=* | --sb=*)
1416    sbindir=$ac_optarg ;;
1417
1418  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1419  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1420  | --sharedst | --shareds | --shared | --share | --shar \
1421  | --sha | --sh)
1422    ac_prev=sharedstatedir ;;
1423  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1424  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1425  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1426  | --sha=* | --sh=*)
1427    sharedstatedir=$ac_optarg ;;
1428
1429  -site | --site | --sit)
1430    ac_prev=site ;;
1431  -site=* | --site=* | --sit=*)
1432    site=$ac_optarg ;;
1433
1434  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1435    ac_prev=srcdir ;;
1436  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1437    srcdir=$ac_optarg ;;
1438
1439  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1440  | --syscon | --sysco | --sysc | --sys | --sy)
1441    ac_prev=sysconfdir ;;
1442  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1443  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1444    sysconfdir=$ac_optarg ;;
1445
1446  -target | --target | --targe | --targ | --tar | --ta | --t)
1447    ac_prev=target_alias ;;
1448  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1449    target_alias=$ac_optarg ;;
1450
1451  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1452    verbose=yes ;;
1453
1454  -version | --version | --versio | --versi | --vers | -V)
1455    ac_init_version=: ;;
1456
1457  -with-* | --with-*)
1458    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1459    # Reject names that are not valid shell variable names.
1460    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1461      as_fn_error "invalid package name: $ac_useropt"
1462    ac_useropt_orig=$ac_useropt
1463    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1464    case $ac_user_opts in
1465      *"
1466"with_$ac_useropt"
1467"*) ;;
1468      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1469         ac_unrecognized_sep=', ';;
1470    esac
1471    eval with_$ac_useropt=\$ac_optarg ;;
1472
1473  -without-* | --without-*)
1474    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1475    # Reject names that are not valid shell variable names.
1476    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1477      as_fn_error "invalid package name: $ac_useropt"
1478    ac_useropt_orig=$ac_useropt
1479    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1480    case $ac_user_opts in
1481      *"
1482"with_$ac_useropt"
1483"*) ;;
1484      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1485         ac_unrecognized_sep=', ';;
1486    esac
1487    eval with_$ac_useropt=no ;;
1488
1489  --x)
1490    # Obsolete; use --with-x.
1491    with_x=yes ;;
1492
1493  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1494  | --x-incl | --x-inc | --x-in | --x-i)
1495    ac_prev=x_includes ;;
1496  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1497  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1498    x_includes=$ac_optarg ;;
1499
1500  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1501  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1502    ac_prev=x_libraries ;;
1503  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1504  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1505    x_libraries=$ac_optarg ;;
1506
1507  -*) as_fn_error "unrecognized option: \`$ac_option'
1508Try \`$0 --help' for more information."
1509    ;;
1510
1511  *=*)
1512    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1513    # Reject names that are not valid shell variable names.
1514    case $ac_envvar in #(
1515      '' | [0-9]* | *[!_$as_cr_alnum]* )
1516      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1517    esac
1518    eval $ac_envvar=\$ac_optarg
1519    export $ac_envvar ;;
1520
1521  *)
1522    # FIXME: should be removed in autoconf 3.0.
1523    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1524    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1525      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1526    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1527    ;;
1528
1529  esac
1530done
1531
1532if test -n "$ac_prev"; then
1533  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1534  as_fn_error "missing argument to $ac_option"
1535fi
1536
1537if test -n "$ac_unrecognized_opts"; then
1538  case $enable_option_checking in
1539    no) ;;
1540    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1541    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1542  esac
1543fi
1544
1545# Check all directory arguments for consistency.
1546for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1547                datadir sysconfdir sharedstatedir localstatedir includedir \
1548                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1549                libdir localedir mandir
1550do
1551  eval ac_val=\$$ac_var
1552  # Remove trailing slashes.
1553  case $ac_val in
1554    */ )
1555      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1556      eval $ac_var=\$ac_val;;
1557  esac
1558  # Be sure to have absolute directory names.
1559  case $ac_val in
1560    [\\/$]* | ?:[\\/]* )  continue;;
1561    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1562  esac
1563  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1564done
1565
1566# There might be people who depend on the old broken behavior: `$host'
1567# used to hold the argument of --host etc.
1568# FIXME: To remove some day.
1569build=$build_alias
1570host=$host_alias
1571target=$target_alias
1572
1573# FIXME: To remove some day.
1574if test "x$host_alias" != x; then
1575  if test "x$build_alias" = x; then
1576    cross_compiling=maybe
1577    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1578    If a cross compiler is detected then cross compile mode will be used." >&2
1579  elif test "x$build_alias" != "x$host_alias"; then
1580    cross_compiling=yes
1581  fi
1582fi
1583
1584ac_tool_prefix=
1585test -n "$host_alias" && ac_tool_prefix=$host_alias-
1586
1587test "$silent" = yes && exec 6>/dev/null
1588
1589
1590ac_pwd=`pwd` && test -n "$ac_pwd" &&
1591ac_ls_di=`ls -di .` &&
1592ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1593  as_fn_error "working directory cannot be determined"
1594test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1595  as_fn_error "pwd does not report name of working directory"
1596
1597
1598# Find the source files, if location was not specified.
1599if test -z "$srcdir"; then
1600  ac_srcdir_defaulted=yes
1601  # Try the directory containing this script, then the parent directory.
1602  ac_confdir=`$as_dirname -- "$as_myself" ||
1603$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1604         X"$as_myself" : 'X\(//\)[^/]' \| \
1605         X"$as_myself" : 'X\(//\)$' \| \
1606         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1607$as_echo X"$as_myself" |
1608    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1609            s//\1/
1610            q
1611          }
1612          /^X\(\/\/\)[^/].*/{
1613            s//\1/
1614            q
1615          }
1616          /^X\(\/\/\)$/{
1617            s//\1/
1618            q
1619          }
1620          /^X\(\/\).*/{
1621            s//\1/
1622            q
1623          }
1624          s/.*/./; q'`
1625  srcdir=$ac_confdir
1626  if test ! -r "$srcdir/$ac_unique_file"; then
1627    srcdir=..
1628  fi
1629else
1630  ac_srcdir_defaulted=no
1631fi
1632if test ! -r "$srcdir/$ac_unique_file"; then
1633  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1634  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1635fi
1636ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1637ac_abs_confdir=`(
1638        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1639        pwd)`
1640# When building in place, set srcdir=.
1641if test "$ac_abs_confdir" = "$ac_pwd"; then
1642  srcdir=.
1643fi
1644# Remove unnecessary trailing slashes from srcdir.
1645# Double slashes in file names in object file debugging info
1646# mess up M-x gdb in Emacs.
1647case $srcdir in
1648*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1649esac
1650for ac_var in $ac_precious_vars; do
1651  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1652  eval ac_env_${ac_var}_value=\$${ac_var}
1653  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1654  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1655done
1656
1657#
1658# Report the --help message.
1659#
1660if test "$ac_init_help" = "long"; then
1661  # Omit some internal or obsolete options to make the list less imposing.
1662  # This message is too long to be a string in the A/UX 3.1 sh.
1663  cat <<_ACEOF
1664\`configure' configures Clp trunk to adapt to many kinds of systems.
1665
1666Usage: $0 [OPTION]... [VAR=VALUE]...
1667
1668To assign environment variables (e.g., CC, CFLAGS...), specify them as
1669VAR=VALUE.  See below for descriptions of some of the useful variables.
1670
1671Defaults for the options are specified in brackets.
1672
1673Configuration:
1674  -h, --help              display this help and exit
1675      --help=short        display options specific to this package
1676      --help=recursive    display the short help of all the included packages
1677  -V, --version           display version information and exit
1678  -q, --quiet, --silent   do not print \`checking...' messages
1679      --cache-file=FILE   cache test results in FILE [disabled]
1680  -C, --config-cache      alias for \`--cache-file=config.cache'
1681  -n, --no-create         do not create output files
1682      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1683
1684Installation directories:
1685  --prefix=PREFIX         install architecture-independent files in PREFIX
1686                          [$ac_default_prefix]
1687  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1688                          [PREFIX]
1689
1690By default, \`make install' will install all the files in
1691\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1692an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1693for instance \`--prefix=\$HOME'.
1694
1695For better control, use the options below.
1696
1697Fine tuning of the installation directories:
1698  --bindir=DIR            user executables [EPREFIX/bin]
1699  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1700  --libexecdir=DIR        program executables [EPREFIX/libexec]
1701  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1702  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1703  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1704  --libdir=DIR            object code libraries [EPREFIX/lib]
1705  --includedir=DIR        C header files [PREFIX/include]
1706  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1707  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1708  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1709  --infodir=DIR           info documentation [DATAROOTDIR/info]
1710  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1711  --mandir=DIR            man documentation [DATAROOTDIR/man]
1712  --docdir=DIR            documentation root [DATAROOTDIR/doc/clp]
1713  --htmldir=DIR           html documentation [DOCDIR]
1714  --dvidir=DIR            dvi documentation [DOCDIR]
1715  --pdfdir=DIR            pdf documentation [DOCDIR]
1716  --psdir=DIR             ps documentation [DOCDIR]
1717_ACEOF
1718
1719  cat <<\_ACEOF
1720
1721Program names:
1722  --program-prefix=PREFIX            prepend PREFIX to installed program names
1723  --program-suffix=SUFFIX            append SUFFIX to installed program names
1724  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1725
1726System types:
1727  --build=BUILD     configure for building on BUILD [guessed]
1728  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1729_ACEOF
1730fi
1731
1732if test -n "$ac_init_help"; then
1733  case $ac_init_help in
1734     short | recursive ) echo "Configuration of Clp trunk:";;
1735   esac
1736  cat <<\_ACEOF
1737
1738Optional Features:
1739  --disable-option-checking  ignore unrecognized --enable/--with options
1740  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1741  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1742  --enable-debug          compile all projects with debug options tests
1743                          (implies --disable-shared)
1744  --enable-debug-clp      compile project Clp with debug compiler flags
1745
1746  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1747  --enable-static[=PKGS]  build static libraries [default=no]
1748  --disable-dependency-tracking  speeds up one-time build
1749  --enable-dependency-tracking   do not reject slow dependency extractors
1750  --enable-maintainer-mode  enable make rules and dependencies not useful
1751                          (and sometimes confusing) to the casual installer
1752  --enable-shared[=PKGS]  build shared libraries [default=yes]
1753  --enable-fast-install[=PKGS]
1754                          optimize for fast installation [default=yes]
1755  --disable-libtool-lock  avoid locking (might break parallel builds)
1756  --disable-pkg-config    disable use of pkg-config (if available)
1757  --disable-interpackage-dependencies
1758                          disables deduction of Makefile dependencies from
1759                          package linker flags
1760  --enable-aboca          enables build of Aboca solver (set to 1,2,3,4)
1761  --disable-amd-libcheck  skip the link check at configuration time
1762  --disable-cholmod-libcheck
1763                          skip the link check at configuration time
1764  --enable-gnu-packages   compile with GNU packages (disabled by default)
1765
1766Optional Packages:
1767  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1768  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1769  --with-clp-verbosity    specify the debug verbosity level for project Clp
1770  --with-clp-checklevel   specify the sanity check level for project Clp
1771  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1772  --with-pic              try to use only PIC/non-PIC objects [default=use
1773                          both]
1774  --with-tags[=TAGS]      include additional configurations [automatic]
1775  --with-coin-instdir     prefix of installation directory for precompiled
1776                          COIN packages
1777
1778  --with-coinutils-lib    linker flags for using package CoinUtils
1779  --with-coinutils-incdir directory with header files for using package
1780                          CoinUtils
1781  --with-coinutils-datadir
1782                          directory with data files for using package
1783                          CoinUtils
1784  --with-osi-lib          linker flags for using package Osi
1785  --with-osi-incdir       directory with header files for using package Osi
1786  --with-osi-datadir      directory with data files for using package Osi
1787  --with-ositests-lib     linker flags for using package OsiTests
1788  --with-ositests-incdir  directory with header files for using package
1789                          OsiTests
1790  --with-ositests-datadir directory with data files for using package OsiTests
1791  --with-sample-lib       linker flags for using package Sample
1792  --with-sample-incdir    directory with header files for using package Sample
1793  --with-sample-datadir   directory with data files for using package Sample
1794  --with-netlib-lib       linker flags for using package Netlib
1795  --with-netlib-incdir    directory with header files for using package Netlib
1796  --with-netlib-datadir   directory with data files for using package Netlib
1797  --with-amd-incdir       specify the header file directory for library AMD
1798  --with-amd-lib          specify the flags used to link with the library AMD
1799  --with-cholmod-incdir   specify the header file directory for library
1800                          CHOLMOD
1801  --with-cholmod-lib      specify the flags used to link with the library
1802                          CHOLMOD
1803  --with-glpk-lib         linker flags for using package Glpk
1804  --with-glpk-incdir      directory with header files for using package Glpk
1805  --with-glpk-datadir     directory with data files for using package Glpk
1806  --with-mumps-lib        linker flags for using package Mumps
1807  --with-mumps-incdir     directory with header files for using package Mumps
1808  --with-mumps-datadir    directory with data files for using package Mumps
1809  --with-wsmp             specify WSMP library
1810  --with-blas             specify BLAS library (or BUILD to enforce use of
1811                          ThirdParty/Blas)
1812  --with-blas-lib         linker flags for using package Blas
1813  --with-blas-incdir      directory with header files for using package Blas
1814  --with-blas-datadir     directory with data files for using package Blas
1815  --with-asl-lib          linker flags for using package ASL
1816  --with-asl-incdir       directory with header files for using package ASL
1817  --with-asl-datadir      directory with data files for using package ASL
1818  --with-dot              use dot (from graphviz) when creating documentation
1819                          with doxygen if available; --without-dot to disable
1820
1821Some influential environment variables:
1822  CDEFS       Additional -D flags to be used when compiling C code.
1823  ADD_CFLAGS  Additional C compiler options
1824  DBG_CFLAGS  Debug C compiler options
1825  OPT_CFLAGS  Optimize C compiler options
1826  CC          C compiler command
1827  CFLAGS      C compiler flags
1828  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1829              nonstandard directory <lib dir>
1830  LIBS        libraries to pass to the linker, e.g. -l<library>
1831  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1832              you have headers in a nonstandard directory <include dir>
1833  MPICC       C MPI Compiler
1834  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1835  ADD_CXXFLAGS
1836              Additional C++ compiler options
1837  DBG_CXXFLAGS
1838              Debug C++ compiler options
1839  OPT_CXXFLAGS
1840              Optimize C++ compiler options
1841  CXX         C++ compiler command
1842  CXXFLAGS    C++ compiler flags
1843  MPICXX      C++ MPI Compiler
1844  CPP         C preprocessor
1845  CXXCPP      C++ preprocessor
1846  F77         Fortran 77 compiler command
1847  FFLAGS      Fortran 77 compiler flags
1848  PKG_CONFIG  path to pkg-config utility
1849  ADD_FFLAGS  Additional Fortran compiler options
1850  DBG_FFLAGS  Debug Fortran compiler options
1851  OPT_FFLAGS  Optimize Fortran compiler options
1852  MPIF77      Fortran MPI Compiler
1853
1854Use these variables to override the choices made by `configure' or to help
1855it to find libraries and programs with nonstandard names/locations.
1856
1857Report bugs to <clp@list.coin-or.org>.
1858_ACEOF
1859ac_status=$?
1860fi
1861
1862if test "$ac_init_help" = "recursive"; then
1863  # If there are subdirs, report their specific --help.
1864  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1865    test -d "$ac_dir" ||
1866      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1867      continue
1868    ac_builddir=.
1869
1870case "$ac_dir" in
1871.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1872*)
1873  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1874  # A ".." for each directory in $ac_dir_suffix.
1875  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1876  case $ac_top_builddir_sub in
1877  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1878  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1879  esac ;;
1880esac
1881ac_abs_top_builddir=$ac_pwd
1882ac_abs_builddir=$ac_pwd$ac_dir_suffix
1883# for backward compatibility:
1884ac_top_builddir=$ac_top_build_prefix
1885
1886case $srcdir in
1887  .)  # We are building in place.
1888    ac_srcdir=.
1889    ac_top_srcdir=$ac_top_builddir_sub
1890    ac_abs_top_srcdir=$ac_pwd ;;
1891  [\\/]* | ?:[\\/]* )  # Absolute name.
1892    ac_srcdir=$srcdir$ac_dir_suffix;
1893    ac_top_srcdir=$srcdir
1894    ac_abs_top_srcdir=$srcdir ;;
1895  *) # Relative name.
1896    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1897    ac_top_srcdir=$ac_top_build_prefix$srcdir
1898    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1899esac
1900ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1901
1902    cd "$ac_dir" || { ac_status=$?; continue; }
1903    # Check for guested configure.
1904    if test -f "$ac_srcdir/configure.gnu"; then
1905      echo &&
1906      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1907    elif test -f "$ac_srcdir/configure"; then
1908      echo &&
1909      $SHELL "$ac_srcdir/configure" --help=recursive
1910    else
1911      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1912    fi || ac_status=$?
1913    cd "$ac_pwd" || { ac_status=$?; break; }
1914  done
1915fi
1916
1917test -n "$ac_init_help" && exit $ac_status
1918if $ac_init_version; then
1919  cat <<\_ACEOF
1920Clp configure trunk
1921generated by GNU Autoconf 2.64
1922
1923Copyright (C) 2009 Free Software Foundation, Inc.
1924This configure script is free software; the Free Software Foundation
1925gives unlimited permission to copy, distribute and modify it.
1926
1927
1928Copyright 2006 International Business Machines and others.
1929All Rights Reserved.
1930This file is part of the open source package Coin which is distributed
1931under the Eclipse Public License.
1932_ACEOF
1933  exit
1934fi
1935
1936## ------------------------ ##
1937## Autoconf initialization. ##
1938## ------------------------ ##
1939
1940# ac_fn_c_try_compile LINENO
1941# --------------------------
1942# Try to compile conftest.$ac_ext, and return whether this succeeded.
1943ac_fn_c_try_compile ()
1944{
1945  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946  rm -f conftest.$ac_objext
1947  if { { ac_try="$ac_compile"
1948case "(($ac_try" in
1949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950  *) ac_try_echo=$ac_try;;
1951esac
1952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953$as_echo "$ac_try_echo"; } >&5
1954  (eval "$ac_compile") 2>conftest.err
1955  ac_status=$?
1956  if test -s conftest.err; then
1957    grep -v '^ *+' conftest.err >conftest.er1
1958    cat conftest.er1 >&5
1959    mv -f conftest.er1 conftest.err
1960  fi
1961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962  test $ac_status = 0; } && {
1963         test -z "$ac_c_werror_flag" ||
1964         test ! -s conftest.err
1965       } && test -s conftest.$ac_objext; then :
1966  ac_retval=0
1967else
1968  $as_echo "$as_me: failed program was:" >&5
1969sed 's/^/| /' conftest.$ac_ext >&5
1970
1971        ac_retval=1
1972fi
1973  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974  return $ac_retval
1975
1976} # ac_fn_c_try_compile
1977
1978# ac_fn_c_try_link LINENO
1979# -----------------------
1980# Try to link conftest.$ac_ext, and return whether this succeeded.
1981ac_fn_c_try_link ()
1982{
1983  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984  rm -f conftest.$ac_objext conftest$ac_exeext
1985  if { { ac_try="$ac_link"
1986case "(($ac_try" in
1987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988  *) ac_try_echo=$ac_try;;
1989esac
1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991$as_echo "$ac_try_echo"; } >&5
1992  (eval "$ac_link") 2>conftest.err
1993  ac_status=$?
1994  if test -s conftest.err; then
1995    grep -v '^ *+' conftest.err >conftest.er1
1996    cat conftest.er1 >&5
1997    mv -f conftest.er1 conftest.err
1998  fi
1999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000  test $ac_status = 0; } && {
2001         test -z "$ac_c_werror_flag" ||
2002         test ! -s conftest.err
2003       } && test -s conftest$ac_exeext && {
2004         test "$cross_compiling" = yes ||
2005         $as_test_x conftest$ac_exeext
2006       }; then :
2007  ac_retval=0
2008else
2009  $as_echo "$as_me: failed program was:" >&5
2010sed 's/^/| /' conftest.$ac_ext >&5
2011
2012        ac_retval=1
2013fi
2014  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2015  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2016  # interfere with the next link command; also delete a directory that is
2017  # left behind by Apple's compiler.  We do this before executing the actions.
2018  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2019  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2020  return $ac_retval
2021
2022} # ac_fn_c_try_link
2023
2024# ac_fn_cxx_try_compile LINENO
2025# ----------------------------
2026# Try to compile conftest.$ac_ext, and return whether this succeeded.
2027ac_fn_cxx_try_compile ()
2028{
2029  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030  rm -f conftest.$ac_objext
2031  if { { ac_try="$ac_compile"
2032case "(($ac_try" in
2033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034  *) ac_try_echo=$ac_try;;
2035esac
2036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037$as_echo "$ac_try_echo"; } >&5
2038  (eval "$ac_compile") 2>conftest.err
2039  ac_status=$?
2040  if test -s conftest.err; then
2041    grep -v '^ *+' conftest.err >conftest.er1
2042    cat conftest.er1 >&5
2043    mv -f conftest.er1 conftest.err
2044  fi
2045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046  test $ac_status = 0; } && {
2047         test -z "$ac_cxx_werror_flag" ||
2048         test ! -s conftest.err
2049       } && test -s conftest.$ac_objext; then :
2050  ac_retval=0
2051else
2052  $as_echo "$as_me: failed program was:" >&5
2053sed 's/^/| /' conftest.$ac_ext >&5
2054
2055        ac_retval=1
2056fi
2057  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058  return $ac_retval
2059
2060} # ac_fn_cxx_try_compile
2061
2062# ac_fn_cxx_try_link LINENO
2063# -------------------------
2064# Try to link conftest.$ac_ext, and return whether this succeeded.
2065ac_fn_cxx_try_link ()
2066{
2067  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068  rm -f conftest.$ac_objext conftest$ac_exeext
2069  if { { ac_try="$ac_link"
2070case "(($ac_try" in
2071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072  *) ac_try_echo=$ac_try;;
2073esac
2074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075$as_echo "$ac_try_echo"; } >&5
2076  (eval "$ac_link") 2>conftest.err
2077  ac_status=$?
2078  if test -s conftest.err; then
2079    grep -v '^ *+' conftest.err >conftest.er1
2080    cat conftest.er1 >&5
2081    mv -f conftest.er1 conftest.err
2082  fi
2083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084  test $ac_status = 0; } && {
2085         test -z "$ac_cxx_werror_flag" ||
2086         test ! -s conftest.err
2087       } && test -s conftest$ac_exeext && {
2088         test "$cross_compiling" = yes ||
2089         $as_test_x conftest$ac_exeext
2090       }; then :
2091  ac_retval=0
2092else
2093  $as_echo "$as_me: failed program was:" >&5
2094sed 's/^/| /' conftest.$ac_ext >&5
2095
2096        ac_retval=1
2097fi
2098  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2099  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2100  # interfere with the next link command; also delete a directory that is
2101  # left behind by Apple's compiler.  We do this before executing the actions.
2102  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2103  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104  return $ac_retval
2105
2106} # ac_fn_cxx_try_link
2107
2108# ac_fn_c_try_cpp LINENO
2109# ----------------------
2110# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2111ac_fn_c_try_cpp ()
2112{
2113  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114  if { { ac_try="$ac_cpp conftest.$ac_ext"
2115case "(($ac_try" in
2116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117  *) ac_try_echo=$ac_try;;
2118esac
2119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120$as_echo "$ac_try_echo"; } >&5
2121  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2122  ac_status=$?
2123  if test -s conftest.err; then
2124    grep -v '^ *+' conftest.err >conftest.er1
2125    cat conftest.er1 >&5
2126    mv -f conftest.er1 conftest.err
2127  fi
2128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129  test $ac_status = 0; } >/dev/null && {
2130         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2131         test ! -s conftest.err
2132       }; then :
2133  ac_retval=0
2134else
2135  $as_echo "$as_me: failed program was:" >&5
2136sed 's/^/| /' conftest.$ac_ext >&5
2137
2138    ac_retval=1
2139fi
2140  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2141  return $ac_retval
2142
2143} # ac_fn_c_try_cpp
2144
2145# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2146# -------------------------------------------------------
2147# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2148# the include files in INCLUDES and setting the cache variable VAR
2149# accordingly.
2150ac_fn_c_check_header_mongrel ()
2151{
2152  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155$as_echo_n "checking for $2... " >&6; }
2156if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2157  $as_echo_n "(cached) " >&6
2158fi
2159eval ac_res=\$$3
2160               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161$as_echo "$ac_res" >&6; }
2162else
2163  # Is the header compilable?
2164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2165$as_echo_n "checking $2 usability... " >&6; }
2166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167/* end confdefs.h.  */
2168$4
2169#include <$2>
2170_ACEOF
2171if ac_fn_c_try_compile "$LINENO"; then :
2172  ac_header_compiler=yes
2173else
2174  ac_header_compiler=no
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2178$as_echo "$ac_header_compiler" >&6; }
2179
2180# Is the header present?
2181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2182$as_echo_n "checking $2 presence... " >&6; }
2183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h.  */
2185#include <$2>
2186_ACEOF
2187if ac_fn_c_try_cpp "$LINENO"; then :
2188  ac_header_preproc=yes
2189else
2190  ac_header_preproc=no
2191fi
2192rm -f conftest.err conftest.$ac_ext
2193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2194$as_echo "$ac_header_preproc" >&6; }
2195
2196# So?  What about this header?
2197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2198  yes:no: )
2199    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2200$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2201    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2202$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2203    ;;
2204  no:yes:* )
2205    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2206$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2207    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2208$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2209    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2210$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2211    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2212$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2213    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2214$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2215( cat <<\_ASBOX
2216## ----------------------------------- ##
2217## Report this to clp@list.coin-or.org ##
2218## ----------------------------------- ##
2219_ASBOX
2220     ) | sed "s/^/$as_me: WARNING:     /" >&2
2221    ;;
2222esac
2223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224$as_echo_n "checking for $2... " >&6; }
2225if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2226  $as_echo_n "(cached) " >&6
2227else
2228  eval "$3=\$ac_header_compiler"
2229fi
2230eval ac_res=\$$3
2231               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232$as_echo "$ac_res" >&6; }
2233fi
2234  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235
2236} # ac_fn_c_check_header_mongrel
2237
2238# ac_fn_c_try_run LINENO
2239# ----------------------
2240# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2241# that executables *can* be run.
2242ac_fn_c_try_run ()
2243{
2244  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245  if { { ac_try="$ac_link"
2246case "(($ac_try" in
2247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248  *) ac_try_echo=$ac_try;;
2249esac
2250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2251$as_echo "$ac_try_echo"; } >&5
2252  (eval "$ac_link") 2>&5
2253  ac_status=$?
2254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2255  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2256  { { case "(($ac_try" in
2257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258  *) ac_try_echo=$ac_try;;
2259esac
2260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2261$as_echo "$ac_try_echo"; } >&5
2262  (eval "$ac_try") 2>&5
2263  ac_status=$?
2264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2265  test $ac_status = 0; }; }; then :
2266  ac_retval=0
2267else
2268  $as_echo "$as_me: program exited with status $ac_status" >&5
2269       $as_echo "$as_me: failed program was:" >&5
2270sed 's/^/| /' conftest.$ac_ext >&5
2271
2272       ac_retval=$ac_status
2273fi
2274  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2275  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276  return $ac_retval
2277
2278} # ac_fn_c_try_run
2279
2280# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2281# -------------------------------------------------------
2282# Tests whether HEADER exists and can be compiled using the include files in
2283# INCLUDES, setting the cache variable VAR accordingly.
2284ac_fn_c_check_header_compile ()
2285{
2286  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288$as_echo_n "checking for $2... " >&6; }
2289if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2290  $as_echo_n "(cached) " >&6
2291else
2292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293/* end confdefs.h.  */
2294$4
2295#include <$2>
2296_ACEOF
2297if ac_fn_c_try_compile "$LINENO"; then :
2298  eval "$3=yes"
2299else
2300  eval "$3=no"
2301fi
2302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303fi
2304eval ac_res=\$$3
2305               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306$as_echo "$ac_res" >&6; }
2307  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308
2309} # ac_fn_c_check_header_compile
2310
2311# ac_fn_c_check_func LINENO FUNC VAR
2312# ----------------------------------
2313# Tests whether FUNC exists, setting the cache variable VAR accordingly
2314ac_fn_c_check_func ()
2315{
2316  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318$as_echo_n "checking for $2... " >&6; }
2319if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2320  $as_echo_n "(cached) " >&6
2321else
2322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323/* end confdefs.h.  */
2324/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2325   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2326#define $2 innocuous_$2
2327
2328/* System header to define __stub macros and hopefully few prototypes,
2329    which can conflict with char $2 (); below.
2330    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2331    <limits.h> exists even on freestanding compilers.  */
2332
2333#ifdef __STDC__
2334# include <limits.h>
2335#else
2336# include <assert.h>
2337#endif
2338
2339#undef $2
2340
2341/* Override any GCC internal prototype to avoid an error.
2342   Use char because int might match the return type of a GCC
2343   builtin and then its argument prototype would still apply.  */
2344#ifdef __cplusplus
2345extern "C"
2346#endif
2347char $2 ();
2348/* The GNU C library defines this for functions which it implements
2349    to always fail with ENOSYS.  Some functions are actually named
2350    something starting with __ and the normal name is an alias.  */
2351#if defined __stub_$2 || defined __stub___$2
2352choke me
2353#endif
2354
2355int
2356main ()
2357{
2358return $2 ();
2359  ;
2360  return 0;
2361}
2362_ACEOF
2363if ac_fn_c_try_link "$LINENO"; then :
2364  eval "$3=yes"
2365else
2366  eval "$3=no"
2367fi
2368rm -f core conftest.err conftest.$ac_objext \
2369    conftest$ac_exeext conftest.$ac_ext
2370fi
2371eval ac_res=\$$3
2372               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373$as_echo "$ac_res" >&6; }
2374  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375
2376} # ac_fn_c_check_func
2377
2378# ac_fn_cxx_try_cpp LINENO
2379# ------------------------
2380# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2381ac_fn_cxx_try_cpp ()
2382{
2383  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384  if { { ac_try="$ac_cpp conftest.$ac_ext"
2385case "(($ac_try" in
2386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387  *) ac_try_echo=$ac_try;;
2388esac
2389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2390$as_echo "$ac_try_echo"; } >&5
2391  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2392  ac_status=$?
2393  if test -s conftest.err; then
2394    grep -v '^ *+' conftest.err >conftest.er1
2395    cat conftest.er1 >&5
2396    mv -f conftest.er1 conftest.err
2397  fi
2398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399  test $ac_status = 0; } >/dev/null && {
2400         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2401         test ! -s conftest.err
2402       }; then :
2403  ac_retval=0
2404else
2405  $as_echo "$as_me: failed program was:" >&5
2406sed 's/^/| /' conftest.$ac_ext >&5
2407
2408    ac_retval=1
2409fi
2410  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2411  return $ac_retval
2412
2413} # ac_fn_cxx_try_cpp
2414
2415# ac_fn_f77_try_compile LINENO
2416# ----------------------------
2417# Try to compile conftest.$ac_ext, and return whether this succeeded.
2418ac_fn_f77_try_compile ()
2419{
2420  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421  rm -f conftest.$ac_objext
2422  if { { ac_try="$ac_compile"
2423case "(($ac_try" in
2424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425  *) ac_try_echo=$ac_try;;
2426esac
2427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2428$as_echo "$ac_try_echo"; } >&5
2429  (eval "$ac_compile") 2>conftest.err
2430  ac_status=$?
2431  if test -s conftest.err; then
2432    grep -v '^ *+' conftest.err >conftest.er1
2433    cat conftest.er1 >&5
2434    mv -f conftest.er1 conftest.err
2435  fi
2436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437  test $ac_status = 0; } && {
2438         test -z "$ac_f77_werror_flag" ||
2439         test ! -s conftest.err
2440       } && test -s conftest.$ac_objext; then :
2441  ac_retval=0
2442else
2443  $as_echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
2445
2446        ac_retval=1
2447fi
2448  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449  return $ac_retval
2450
2451} # ac_fn_f77_try_compile
2452
2453# ac_fn_f77_try_link LINENO
2454# -------------------------
2455# Try to link conftest.$ac_ext, and return whether this succeeded.
2456ac_fn_f77_try_link ()
2457{
2458  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459  rm -f conftest.$ac_objext conftest$ac_exeext
2460  if { { ac_try="$ac_link"
2461case "(($ac_try" in
2462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463  *) ac_try_echo=$ac_try;;
2464esac
2465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466$as_echo "$ac_try_echo"; } >&5
2467  (eval "$ac_link") 2>conftest.err
2468  ac_status=$?
2469  if test -s conftest.err; then
2470    grep -v '^ *+' conftest.err >conftest.er1
2471    cat conftest.er1 >&5
2472    mv -f conftest.er1 conftest.err
2473  fi
2474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475  test $ac_status = 0; } && {
2476         test -z "$ac_f77_werror_flag" ||
2477         test ! -s conftest.err
2478       } && test -s conftest$ac_exeext && {
2479         test "$cross_compiling" = yes ||
2480         $as_test_x conftest$ac_exeext
2481       }; then :
2482  ac_retval=0
2483else
2484  $as_echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487        ac_retval=1
2488fi
2489  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2490  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2491  # interfere with the next link command; also delete a directory that is
2492  # left behind by Apple's compiler.  We do this before executing the actions.
2493  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2494  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2495  return $ac_retval
2496
2497} # ac_fn_f77_try_link
2498
2499# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2500# ---------------------------------------------------------
2501# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2502# the include files in INCLUDES and setting the cache variable VAR
2503# accordingly.
2504ac_fn_cxx_check_header_mongrel ()
2505{
2506  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2509$as_echo_n "checking for $2... " >&6; }
2510if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2511  $as_echo_n "(cached) " >&6
2512fi
2513eval ac_res=\$$3
2514               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515$as_echo "$ac_res" >&6; }
2516else
2517  # Is the header compilable?
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2519$as_echo_n "checking $2 usability... " >&6; }
2520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521/* end confdefs.h.  */
2522$4
2523#include <$2>
2524_ACEOF
2525if ac_fn_cxx_try_compile "$LINENO"; then :
2526  ac_header_compiler=yes
2527else
2528  ac_header_compiler=no
2529fi
2530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2532$as_echo "$ac_header_compiler" >&6; }
2533
2534# Is the header present?
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2536$as_echo_n "checking $2 presence... " >&6; }
2537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538/* end confdefs.h.  */
2539#include <$2>
2540_ACEOF
2541if ac_fn_cxx_try_cpp "$LINENO"; then :
2542  ac_header_preproc=yes
2543else
2544  ac_header_preproc=no
2545fi
2546rm -f conftest.err conftest.$ac_ext
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2548$as_echo "$ac_header_preproc" >&6; }
2549
2550# So?  What about this header?
2551case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2552  yes:no: )
2553    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2554$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2555    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2556$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2557    ;;
2558  no:yes:* )
2559    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2560$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2561    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2562$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2563    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2564$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2565    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2566$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2567    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2568$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2569( cat <<\_ASBOX
2570## ----------------------------------- ##
2571## Report this to clp@list.coin-or.org ##
2572## ----------------------------------- ##
2573_ASBOX
2574     ) | sed "s/^/$as_me: WARNING:     /" >&2
2575    ;;
2576esac
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578$as_echo_n "checking for $2... " >&6; }
2579if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2580  $as_echo_n "(cached) " >&6
2581else
2582  eval "$3=\$ac_header_compiler"
2583fi
2584eval ac_res=\$$3
2585               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2586$as_echo "$ac_res" >&6; }
2587fi
2588  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2589
2590} # ac_fn_cxx_check_header_mongrel
2591cat >config.log <<_ACEOF
2592This file contains any messages produced by compilers while
2593running configure, to aid debugging if configure makes a mistake.
2594
2595It was created by Clp $as_me trunk, which was
2596generated by GNU Autoconf 2.64.  Invocation command line was
2597
2598  $ $0 $@
2599
2600_ACEOF
2601exec 5>>config.log
2602{
2603cat <<_ASUNAME
2604## --------- ##
2605## Platform. ##
2606## --------- ##
2607
2608hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2609uname -m = `(uname -m) 2>/dev/null || echo unknown`
2610uname -r = `(uname -r) 2>/dev/null || echo unknown`
2611uname -s = `(uname -s) 2>/dev/null || echo unknown`
2612uname -v = `(uname -v) 2>/dev/null || echo unknown`
2613
2614/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2615/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2616
2617/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2618/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2619/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2620/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2621/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2622/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2623/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2624
2625_ASUNAME
2626
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630  IFS=$as_save_IFS
2631  test -z "$as_dir" && as_dir=.
2632    $as_echo "PATH: $as_dir"
2633  done
2634IFS=$as_save_IFS
2635
2636} >&5
2637
2638cat >&5 <<_ACEOF
2639
2640
2641## ----------- ##
2642## Core tests. ##
2643## ----------- ##
2644
2645_ACEOF
2646
2647
2648# Keep a trace of the command line.
2649# Strip out --no-create and --no-recursion so they do not pile up.
2650# Strip out --silent because we don't want to record it for future runs.
2651# Also quote any args containing shell meta-characters.
2652# Make two passes to allow for proper duplicate-argument suppression.
2653ac_configure_args=
2654ac_configure_args0=
2655ac_configure_args1=
2656ac_must_keep_next=false
2657for ac_pass in 1 2
2658do
2659  for ac_arg
2660  do
2661    case $ac_arg in
2662    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2663    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2664    | -silent | --silent | --silen | --sile | --sil)
2665      continue ;;
2666    *\'*)
2667      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2668    esac
2669    case $ac_pass in
2670    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2671    2)
2672      as_fn_append ac_configure_args1 " '$ac_arg'"
2673      if test $ac_must_keep_next = true; then
2674        ac_must_keep_next=false # Got value, back to normal.
2675      else
2676        case $ac_arg in
2677          *=* | --config-cache | -C | -disable-* | --disable-* \
2678          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2679          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2680          | -with-* | --with-* | -without-* | --without-* | --x)
2681            case "$ac_configure_args0 " in
2682              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2683            esac
2684            ;;
2685          -* ) ac_must_keep_next=true ;;
2686        esac
2687      fi
2688      as_fn_append ac_configure_args " '$ac_arg'"
2689      ;;
2690    esac
2691  done
2692done
2693{ ac_configure_args0=; unset ac_configure_args0;}
2694{ ac_configure_args1=; unset ac_configure_args1;}
2695
2696# When interrupted or exit'd, cleanup temporary files, and complete
2697# config.log.  We remove comments because anyway the quotes in there
2698# would cause problems or look ugly.
2699# WARNING: Use '\'' to represent an apostrophe within the trap.
2700# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2701trap 'exit_status=$?
2702  # Save into config.log some information that might help in debugging.
2703  {
2704    echo
2705
2706    cat <<\_ASBOX
2707## ---------------- ##
2708## Cache variables. ##
2709## ---------------- ##
2710_ASBOX
2711    echo
2712    # The following way of writing the cache mishandles newlines in values,
2713(
2714  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2715    eval ac_val=\$$ac_var
2716    case $ac_val in #(
2717    *${as_nl}*)
2718      case $ac_var in #(
2719      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2720$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2721      esac
2722      case $ac_var in #(
2723      _ | IFS | as_nl) ;; #(
2724      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2725      *) { eval $ac_var=; unset $ac_var;} ;;
2726      esac ;;
2727    esac
2728  done
2729  (set) 2>&1 |
2730    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2731    *${as_nl}ac_space=\ *)
2732      sed -n \
2733        "s/'\''/'\''\\\\'\'''\''/g;
2734          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2735      ;; #(
2736    *)
2737      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2738      ;;
2739    esac |
2740    sort
2741)
2742    echo
2743
2744    cat <<\_ASBOX
2745## ----------------- ##
2746## Output variables. ##
2747## ----------------- ##
2748_ASBOX
2749    echo
2750    for ac_var in $ac_subst_vars
2751    do
2752      eval ac_val=\$$ac_var
2753      case $ac_val in
2754      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2755      esac
2756      $as_echo "$ac_var='\''$ac_val'\''"
2757    done | sort
2758    echo
2759
2760    if test -n "$ac_subst_files"; then
2761      cat <<\_ASBOX
2762## ------------------- ##
2763## File substitutions. ##
2764## ------------------- ##
2765_ASBOX
2766      echo
2767      for ac_var in $ac_subst_files
2768      do
2769        eval ac_val=\$$ac_var
2770        case $ac_val in
2771        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2772        esac
2773        $as_echo "$ac_var='\''$ac_val'\''"
2774      done | sort
2775      echo
2776    fi
2777
2778    if test -s confdefs.h; then
2779      cat <<\_ASBOX
2780## ----------- ##
2781## confdefs.h. ##
2782## ----------- ##
2783_ASBOX
2784      echo
2785      cat confdefs.h
2786      echo
2787    fi
2788    test "$ac_signal" != 0 &&
2789      $as_echo "$as_me: caught signal $ac_signal"
2790    $as_echo "$as_me: exit $exit_status"
2791  } >&5
2792  rm -f core *.core core.conftest.* &&
2793    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2794    exit $exit_status
2795' 0
2796for ac_signal in 1 2 13 15; do
2797  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2798done
2799ac_signal=0
2800
2801# confdefs.h avoids OS command line length limits that DEFS can exceed.
2802rm -f -r conftest* confdefs.h
2803
2804$as_echo "/* confdefs.h */" > confdefs.h
2805
2806# Predefined preprocessor variables.
2807
2808cat >>confdefs.h <<_ACEOF
2809#define PACKAGE_NAME "$PACKAGE_NAME"
2810_ACEOF
2811
2812cat >>confdefs.h <<_ACEOF
2813#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2814_ACEOF
2815
2816cat >>confdefs.h <<_ACEOF
2817#define PACKAGE_VERSION "$PACKAGE_VERSION"
2818_ACEOF
2819
2820cat >>confdefs.h <<_ACEOF
2821#define PACKAGE_STRING "$PACKAGE_STRING"
2822_ACEOF
2823
2824cat >>confdefs.h <<_ACEOF
2825#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2826_ACEOF
2827
2828cat >>confdefs.h <<_ACEOF
2829#define PACKAGE_URL "$PACKAGE_URL"
2830_ACEOF
2831
2832
2833# Let the site file select an alternate cache file if it wants to.
2834# Prefer an explicitly selected file to automatically selected ones.
2835ac_site_file1=NONE
2836ac_site_file2=NONE
2837if test -n "$CONFIG_SITE"; then
2838  ac_site_file1=$CONFIG_SITE
2839elif test "x$prefix" != xNONE; then
2840  ac_site_file1=$prefix/share/config.site
2841  ac_site_file2=$prefix/etc/config.site
2842else
2843  ac_site_file1=$ac_default_prefix/share/config.site
2844  ac_site_file2=$ac_default_prefix/etc/config.site
2845fi
2846for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2847do
2848  test "x$ac_site_file" = xNONE && continue
2849  if test -r "$ac_site_file"; then
2850    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2851$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2852    sed 's/^/| /' "$ac_site_file" >&5
2853    . "$ac_site_file"
2854  fi
2855done
2856
2857if test -r "$cache_file"; then
2858  # Some versions of bash will fail to source /dev/null (special
2859  # files actually), so we avoid doing that.
2860  if test -f "$cache_file"; then
2861    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2862$as_echo "$as_me: loading cache $cache_file" >&6;}
2863    case $cache_file in
2864      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2865      *)                      . "./$cache_file";;
2866    esac
2867  fi
2868else
2869  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2870$as_echo "$as_me: creating cache $cache_file" >&6;}
2871  >$cache_file
2872fi
2873
2874# Check that the precious variables saved in the cache have kept the same
2875# value.
2876ac_cache_corrupted=false
2877for ac_var in $ac_precious_vars; do
2878  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2879  eval ac_new_set=\$ac_env_${ac_var}_set
2880  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2881  eval ac_new_val=\$ac_env_${ac_var}_value
2882  case $ac_old_set,$ac_new_set in
2883    set,)
2884      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2885$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2886      ac_cache_corrupted=: ;;
2887    ,set)
2888      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2889$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2890      ac_cache_corrupted=: ;;
2891    ,);;
2892    *)
2893      if test "x$ac_old_val" != "x$ac_new_val"; then
2894        # differences in whitespace do not lead to failure.
2895        ac_old_val_w=`echo x $ac_old_val`
2896        ac_new_val_w=`echo x $ac_new_val`
2897        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2898          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2899$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2900          ac_cache_corrupted=:
2901        else
2902          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2903$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2904          eval $ac_var=\$ac_old_val
2905        fi
2906        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2907$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2908        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2909$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2910      fi;;
2911  esac
2912  # Pass precious variables to config.status.
2913  if test "$ac_new_set" = set; then
2914    case $ac_new_val in
2915    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2916    *) ac_arg=$ac_var=$ac_new_val ;;
2917    esac
2918    case " $ac_configure_args " in
2919      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2920      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2921    esac
2922  fi
2923done
2924if $ac_cache_corrupted; then
2925  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2928$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2929  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2930fi
2931## -------------------- ##
2932## Main body of script. ##
2933## -------------------- ##
2934
2935ac_ext=c
2936ac_cpp='$CPP $CPPFLAGS'
2937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940
2941
2942
2943
2944
2945# List one file in the package so that the configure script can test
2946# whether the package is actually there
2947
2948
2949# Where should everything be installed by default?  Here, we want it
2950# to be installed directly in 'bin', 'lib', 'include' subdirectories
2951# of the directory where configure is run.  The default would be
2952# /usr/local.
2953
2954
2955#############################################################################
2956#                         Standard build tool stuff                         #
2957#############################################################################
2958
2959# Get the system type
2960ac_aux_dir=
2961for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2962  for ac_t in install-sh install.sh shtool; do
2963    if test -f "$ac_dir/$ac_t"; then
2964      ac_aux_dir=$ac_dir
2965      ac_install_sh="$ac_aux_dir/$ac_t -c"
2966      break 2
2967    fi
2968  done
2969done
2970if test -z "$ac_aux_dir"; then
2971  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2972fi
2973
2974# These three variables are undocumented and unsupported,
2975# and are intended to be withdrawn in a future Autoconf release.
2976# They can cause serious problems if a builder's source tree is in a directory
2977# whose full name contains unusual characters.
2978ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2979ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2980ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2981
2982
2983# Make sure we can run config.sub.
2984$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2985  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2986
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2988$as_echo_n "checking build system type... " >&6; }
2989if test "${ac_cv_build+set}" = set; then :
2990  $as_echo_n "(cached) " >&6
2991else
2992  ac_build_alias=$build_alias
2993test "x$ac_build_alias" = x &&
2994  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2995test "x$ac_build_alias" = x &&
2996  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2997ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2998  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2999
3000fi
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3002$as_echo "$ac_cv_build" >&6; }
3003case $ac_cv_build in
3004*-*-*) ;;
3005*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3006esac
3007build=$ac_cv_build
3008ac_save_IFS=$IFS; IFS='-'
3009set x $ac_cv_build
3010shift
3011build_cpu=$1
3012build_vendor=$2
3013shift; shift
3014# Remember, the first character of IFS is used to create $*,
3015# except with old shells:
3016build_os=$*
3017IFS=$ac_save_IFS
3018case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3019
3020
3021
3022# If this project depends on external projects, the Externals file in
3023# the source root directory contains definition of where to find those
3024# externals.  The following macro ensures that those externals are
3025# retrieved by svn if they are not there yet.
3026
3027# As backup, we make sure we don't loose an FLIBS if it has been set
3028# by the user
3029save_FLIBS="$FLIBS"
3030
3031# A useful makefile conditional that is always false
3032
3033
3034if false; then
3035  ALWAYS_FALSE_TRUE=
3036  ALWAYS_FALSE_FALSE='#'
3037else
3038  ALWAYS_FALSE_TRUE='#'
3039  ALWAYS_FALSE_FALSE=
3040fi
3041
3042
3043# We set the following variable so that we know later in AC_COIN_FINALIZE
3044# that we are in a project main directory
3045coin_projectdir=yes
3046
3047# Set the project's version numbers
3048
3049
3050cat >>confdefs.h <<_ACEOF
3051#define CLP_VERSION "$PACKAGE_VERSION"
3052_ACEOF
3053
3054
3055  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
3056  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
3057  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
3058  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
3059  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
3060  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
3061
3062cat >>confdefs.h <<_ACEOF
3063#define CLP_VERSION_MAJOR $coin_majorver
3064_ACEOF
3065
3066
3067cat >>confdefs.h <<_ACEOF
3068#define CLP_VERSION_MINOR $coin_minorver
3069_ACEOF
3070
3071
3072cat >>confdefs.h <<_ACEOF
3073#define CLP_VERSION_RELEASE $coin_releasever
3074_ACEOF
3075
3076
3077  # We use the following variable to have a string with the upper case
3078  # version of the project name
3079  COIN_PRJCT=CLP
3080
3081  # Set the project's SVN revision number. The complicated sed expression
3082  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
3083  # as a single number.
3084  # Extract the first word of "svnversion", so it can be a program name with args.
3085set dummy svnversion; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if test "${ac_cv_prog_have_svnversion+set}" = set; then :
3089  $as_echo_n "(cached) " >&6
3090else
3091  if test -n "$have_svnversion"; then
3092  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097  IFS=$as_save_IFS
3098  test -z "$as_dir" && as_dir=.
3099    for ac_exec_ext in '' $ac_executable_extensions; do
3100  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101    ac_cv_prog_have_svnversion="yes"
3102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103    break 2
3104  fi
3105done
3106  done
3107IFS=$as_save_IFS
3108
3109  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
3110fi
3111fi
3112have_svnversion=$ac_cv_prog_have_svnversion
3113if test -n "$have_svnversion"; then
3114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_svnversion" >&5
3115$as_echo "$have_svnversion" >&6; }
3116else
3117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; }
3119fi
3120
3121
3122  if test "x$have_svnversion" = xyes; then
3123
3124    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
3125    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
3126      CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
3127
3128cat >>confdefs.h <<_ACEOF
3129#define CLP_SVN_REV $CLP_SVN_REV
3130_ACEOF
3131
3132    fi
3133  fi
3134
3135
3136
3137# Capture libtool library version, if given.
3138
3139
3140
3141
3142# Check if user wants to produce debugging code
3143
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we want to compile in debug mode" >&5
3145$as_echo_n "checking whether we want to compile in debug mode... " >&6; }
3146
3147# Check whether --enable-debug was given.
3148if test "${enable_debug+set}" = set; then :
3149  enableval=$enable_debug; case "${enableval}" in
3150   yes) coin_debug_compile=true
3151        if test "${enable_shared+set}" = set; then :; else
3152          enable_shared=no
3153        fi
3154        ;;
3155   no)  coin_debug_compile=false
3156        ;;
3157   *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5
3158        ;;
3159esac
3160else
3161  coin_debug_compile=false
3162fi
3163
3164
3165# Check whether --enable-debug-clp was given.
3166if test "${enable_debug_clp+set}" = set; then :
3167  enableval=$enable_debug_clp; case "${enableval}" in
3168    yes) coin_debug_compile=true
3169         ;;
3170    no)  coin_debug_compile=false
3171         ;;
3172    *) as_fn_error "bad value ${enableval} for --enable-debug-clp" "$LINENO" 5
3173         ;;
3174 esac
3175else
3176  :
3177fi
3178
3179
3180 # m4_ifvaln([Clp],
3181
3182if test $coin_debug_compile = true; then
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3184$as_echo "yes" >&6; }
3185else
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188fi
3189
3190
3191# Check whether --with-clp-verbosity was given.
3192if test "${with_clp_verbosity+set}" = set; then :
3193  withval=$with_clp_verbosity; if test "$withval" = yes; then
3194                withval=1
3195              fi
3196              coin_clp_verbosity=$withval
3197else
3198  coin_clp_verbosity=0
3199fi
3200
3201
3202cat >>confdefs.h <<_ACEOF
3203#define COIN_CLP_VERBOSITY $coin_clp_verbosity
3204_ACEOF
3205
3206
3207
3208# Check whether --with-clp-checklevel was given.
3209if test "${with_clp_checklevel+set}" = set; then :
3210  withval=$with_clp_checklevel; if test "$withval" = yes; then
3211                withval=1
3212              fi
3213              coin_clp_checklevel=$withval
3214else
3215  coin_clp_checklevel=0
3216fi
3217
3218
3219cat >>confdefs.h <<_ACEOF
3220#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
3221_ACEOF
3222
3223
3224 # m4_ifvaln([Clp],
3225
3226
3227
3228# Get the name of the C++ compiler and appropriate compiler options
3229
3230
3231  # for backward compatibility
3232  # Check whether --enable-doscompile was given.
3233if test "${enable_doscompile+set}" = set; then :
3234  enableval=$enable_doscompile; enable_doscompile=$enableval
3235else
3236  enable_doscompile=no
3237fi
3238
3239
3240  # Check whether --enable-msvc was given.
3241if test "${enable_msvc+set}" = set; then :
3242  enableval=$enable_msvc; enable_msvc=$enableval
3243else
3244  enable_msvc=no
3245     if test "$enable_doscompile" = msvc ; then
3246       enable_msvc=yes
3247     elif test "$enable_doscompile" != no ; then
3248       as_fn_error "--enable-doscompile=$enable_doscompile not supported anymore." "$LINENO" 5
3249     fi
3250
3251fi
3252
3253
3254  if test "$enable_msvc" = MD; then
3255    enable_shared=yes
3256    enable_msvc=yes
3257  fi
3258
3259  if test "$enable_msvc" = yes; then
3260    case $build in
3261      *-cygwin* | *-mingw*) ;;
3262      *) as_fn_error "--enable-msvc option makes sense only under Cygwin or MinGW" "$LINENO" 5 ;;
3263    esac
3264  fi
3265
3266ac_ext=c
3267ac_cpp='$CPP $CPPFLAGS'
3268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271if test -n "$ac_tool_prefix"; then
3272  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3273set dummy ${ac_tool_prefix}gcc; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
3276if test "${ac_cv_prog_CC+set}" = set; then :
3277  $as_echo_n "(cached) " >&6
3278else
3279  if test -n "$CC"; then
3280  ac_cv_prog_CC="$CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294  done
3295IFS=$as_save_IFS
3296
3297fi
3298fi
3299CC=$ac_cv_prog_CC
3300if test -n "$CC"; then
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302$as_echo "$CC" >&6; }
3303else
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306fi
3307
3308
3309fi
3310if test -z "$ac_cv_prog_CC"; then
3311  ac_ct_CC=$CC
3312  # Extract the first word of "gcc", so it can be a program name with args.
3313set dummy gcc; ac_word=$2
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315$as_echo_n "checking for $ac_word... " >&6; }
3316if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3317  $as_echo_n "(cached) " >&6
3318else
3319  if test -n "$ac_ct_CC"; then
3320  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3321else
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325  IFS=$as_save_IFS
3326  test -z "$as_dir" && as_dir=.
3327    for ac_exec_ext in '' $ac_executable_extensions; do
3328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329    ac_cv_prog_ac_ct_CC="gcc"
3330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331    break 2
3332  fi
3333done
3334  done
3335IFS=$as_save_IFS
3336
3337fi
3338fi
3339ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340if test -n "$ac_ct_CC"; then
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3342$as_echo "$ac_ct_CC" >&6; }
3343else
3344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
3346fi
3347
3348  if test "x$ac_ct_CC" = x; then
3349    CC=""
3350  else
3351    case $cross_compiling:$ac_tool_warned in
3352yes:)
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3355ac_tool_warned=yes ;;
3356esac
3357    CC=$ac_ct_CC
3358  fi
3359else
3360  CC="$ac_cv_prog_CC"
3361fi
3362
3363if test -z "$CC"; then
3364          if test -n "$ac_tool_prefix"; then
3365    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3366set dummy ${ac_tool_prefix}cc; ac_word=$2
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368$as_echo_n "checking for $ac_word... " >&6; }
3369if test "${ac_cv_prog_CC+set}" = set; then :
3370  $as_echo_n "(cached) " >&6
3371else
3372  if test -n "$CC"; then
3373  ac_cv_prog_CC="$CC" # Let the user override the test.
3374else
3375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376for as_dir in $PATH
3377do
3378  IFS=$as_save_IFS
3379  test -z "$as_dir" && as_dir=.
3380    for ac_exec_ext in '' $ac_executable_extensions; do
3381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382    ac_cv_prog_CC="${ac_tool_prefix}cc"
3383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384    break 2
3385  fi
3386done
3387  done
3388IFS=$as_save_IFS
3389
3390fi
3391fi
3392CC=$ac_cv_prog_CC
3393if test -n "$CC"; then
3394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3395$as_echo "$CC" >&6; }
3396else
3397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398$as_echo "no" >&6; }
3399fi
3400
3401
3402  fi
3403fi
3404if test -z "$CC"; then
3405  # Extract the first word of "cc", so it can be a program name with args.
3406set dummy cc; ac_word=$2
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408$as_echo_n "checking for $ac_word... " >&6; }
3409if test "${ac_cv_prog_CC+set}" = set; then :
3410  $as_echo_n "(cached) " >&6
3411else
3412  if test -n "$CC"; then
3413  ac_cv_prog_CC="$CC" # Let the user override the test.
3414else
3415  ac_prog_rejected=no
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419  IFS=$as_save_IFS
3420  test -z "$as_dir" && as_dir=.
3421    for ac_exec_ext in '' $ac_executable_extensions; do
3422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3424       ac_prog_rejected=yes
3425       continue
3426     fi
3427    ac_cv_prog_CC="cc"
3428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429    break 2
3430  fi
3431done
3432  done
3433IFS=$as_save_IFS
3434
3435if test $ac_prog_rejected = yes; then
3436  # We found a bogon in the path, so make sure we never use it.
3437  set dummy $ac_cv_prog_CC
3438  shift
3439  if test $# != 0; then
3440    # We chose a different compiler from the bogus one.
3441    # However, it has the same basename, so the bogon will be chosen
3442    # first if we set CC to just the basename; use the full file name.
3443    shift
3444    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3445  fi
3446fi
3447fi
3448fi
3449CC=$ac_cv_prog_CC
3450if test -n "$CC"; then
3451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452$as_echo "$CC" >&6; }
3453else
3454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455$as_echo "no" >&6; }
3456fi
3457
3458
3459fi
3460if test -z "$CC"; then
3461  if test -n "$ac_tool_prefix"; then
3462  for ac_prog in cl.exe
3463  do
3464    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467$as_echo_n "checking for $ac_word... " >&6; }
3468if test "${ac_cv_prog_CC+set}" = set; then :
3469  $as_echo_n "(cached) " >&6
3470else
3471  if test -n "$CC"; then
3472  ac_cv_prog_CC="$CC" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477  IFS=$as_save_IFS
3478  test -z "$as_dir" && as_dir=.
3479    for ac_exec_ext in '' $ac_executable_extensions; do
3480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483    break 2
3484  fi
3485done
3486  done
3487IFS=$as_save_IFS
3488
3489fi
3490fi
3491CC=$ac_cv_prog_CC
3492if test -n "$CC"; then
3493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3494$as_echo "$CC" >&6; }
3495else
3496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497$as_echo "no" >&6; }
3498fi
3499
3500
3501    test -n "$CC" && break
3502  done
3503fi
3504if test -z "$CC"; then
3505  ac_ct_CC=$CC
3506  for ac_prog in cl.exe
3507do
3508  # Extract the first word of "$ac_prog", so it can be a program name with args.
3509set dummy $ac_prog; ac_word=$2
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511$as_echo_n "checking for $ac_word... " >&6; }
3512if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3513  $as_echo_n "(cached) " >&6
3514else
3515  if test -n "$ac_ct_CC"; then
3516  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517else
3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519for as_dir in $PATH
3520do
3521  IFS=$as_save_IFS
3522  test -z "$as_dir" && as_dir=.
3523    for ac_exec_ext in '' $ac_executable_extensions; do
3524  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525    ac_cv_prog_ac_ct_CC="$ac_prog"
3526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527    break 2
3528  fi
3529done
3530  done
3531IFS=$as_save_IFS
3532
3533fi
3534fi
3535ac_ct_CC=$ac_cv_prog_ac_ct_CC
3536if test -n "$ac_ct_CC"; then
3537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3538$as_echo "$ac_ct_CC" >&6; }
3539else
3540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
3542fi
3543
3544
3545  test -n "$ac_ct_CC" && break
3546done
3547
3548  if test "x$ac_ct_CC" = x; then
3549    CC=""
3550  else
3551    case $cross_compiling:$ac_tool_warned in
3552yes:)
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3555ac_tool_warned=yes ;;
3556esac
3557    CC=$ac_ct_CC
3558  fi
3559fi
3560
3561fi
3562
3563
3564test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566as_fn_error "no acceptable C compiler found in \$PATH
3567See \`config.log' for more details." "$LINENO" 5; }
3568
3569# Provide some information about the compiler.
3570$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3571set X $ac_compile
3572ac_compiler=$2
3573for ac_option in --version -v -V -qversion; do
3574  { { ac_try="$ac_compiler $ac_option >&5"
3575case "(($ac_try" in
3576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577  *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580$as_echo "$ac_try_echo"; } >&5
3581  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3582  ac_status=$?
3583  if test -s conftest.err; then
3584    sed '10a\
3585... rest of stderr output deleted ...
3586         10q' conftest.err >conftest.er1
3587    cat conftest.er1 >&5
3588    rm -f conftest.er1 conftest.err
3589  fi
3590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591  test $ac_status = 0; }
3592done
3593
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3595$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3596if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3597  $as_echo_n "(cached) " >&6
3598else
3599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600/* end confdefs.h.  */
3601
3602int
3603main ()
3604{
3605#ifndef __GNUC__
3606       choke me
3607#endif
3608
3609  ;
3610  return 0;
3611}
3612_ACEOF
3613if ac_fn_c_try_compile "$LINENO"; then :
3614  ac_compiler_gnu=yes
3615else
3616  ac_compiler_gnu=no
3617fi
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619ac_cv_c_compiler_gnu=$ac_compiler_gnu
3620
3621fi
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3623$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3624if test $ac_compiler_gnu = yes; then
3625  GCC=yes
3626else
3627  GCC=
3628fi
3629ac_test_CFLAGS=${CFLAGS+set}
3630ac_save_CFLAGS=$CFLAGS
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3632$as_echo_n "checking whether $CC accepts -g... " >&6; }
3633if test "${ac_cv_prog_cc_g+set}" = set; then :
3634  $as_echo_n "(cached) " >&6
3635else
3636  ac_save_c_werror_flag=$ac_c_werror_flag
3637   ac_c_werror_flag=yes
3638   ac_cv_prog_cc_g=no
3639   CFLAGS="-g"
3640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h.  */
3642
3643int
3644main ()
3645{
3646
3647  ;
3648  return 0;
3649}
3650_ACEOF
3651if ac_fn_c_try_compile "$LINENO"; then :
3652  ac_cv_prog_cc_g=yes
3653else
3654  CFLAGS=""
3655      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656/* end confdefs.h.  */
3657
3658int
3659main ()
3660{
3661
3662  ;
3663  return 0;
3664}
3665_ACEOF
3666if ac_fn_c_try_compile "$LINENO"; then :
3667
3668else
3669  ac_c_werror_flag=$ac_save_c_werror_flag
3670         CFLAGS="-g"
3671         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672/* end confdefs.h.  */
3673
3674int
3675main ()
3676{
3677
3678  ;
3679  return 0;
3680}
3681_ACEOF
3682if ac_fn_c_try_compile "$LINENO"; then :
3683  ac_cv_prog_cc_g=yes
3684fi
3685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686fi
3687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688fi
3689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690   ac_c_werror_flag=$ac_save_c_werror_flag
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3693$as_echo "$ac_cv_prog_cc_g" >&6; }
3694if test "$ac_test_CFLAGS" = set; then
3695  CFLAGS=$ac_save_CFLAGS
3696elif test $ac_cv_prog_cc_g = yes; then
3697  if test "$GCC" = yes; then
3698    CFLAGS="-g -O2"
3699  else
3700    CFLAGS="-g"
3701  fi
3702else
3703  if test "$GCC" = yes; then
3704    CFLAGS="-O2"
3705  else
3706    CFLAGS=
3707  fi
3708fi
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3710$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3711if test "${ac_cv_prog_cc_c89+set}" = set; then :
3712  $as_echo_n "(cached) " >&6
3713else
3714  ac_cv_prog_cc_c89=no
3715ac_save_CC=$CC
3716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717/* end confdefs.h.  */
3718#include <stdarg.h>
3719#include <stdio.h>
3720#include <sys/types.h>
3721#include <sys/stat.h>
3722/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3723struct buf { int x; };
3724FILE * (*rcsopen) (struct buf *, struct stat *, int);
3725static char *e (p, i)
3726     char **p;
3727     int i;
3728{
3729  return p[i];
3730}
3731static char *f (char * (*g) (char **, int), char **p, ...)
3732{
3733  char *s;
3734  va_list v;
3735  va_start (v,p);
3736  s = g (p, va_arg (v,int));
3737  va_end (v);
3738  return s;
3739}
3740
3741/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3742   function prototypes and stuff, but not '\xHH' hex character constants.
3743   These don't provoke an error unfortunately, instead are silently treated
3744   as 'x'.  The following induces an error, until -std is added to get
3745   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3746   array size at least.  It's necessary to write '\x00'==0 to get something
3747   that's true only with -std.  */
3748int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3749
3750/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3751   inside strings and character constants.  */
3752#define FOO(x) 'x'
3753int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3754
3755int test (int i, double x);
3756struct s1 {int (*f) (int a);};
3757struct s2 {int (*f) (double a);};
3758int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3759int argc;
3760char **argv;
3761int
3762main ()
3763{
3764return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3765  ;
3766  return 0;
3767}
3768_ACEOF
3769for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3770        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3771do
3772  CC="$ac_save_CC $ac_arg"
3773  if ac_fn_c_try_compile "$LINENO"; then :
3774  ac_cv_prog_cc_c89=$ac_arg
3775fi
3776rm -f core conftest.err conftest.$ac_objext
3777  test "x$ac_cv_prog_cc_c89" != "xno" && break
3778done
3779rm -f conftest.$ac_ext
3780CC=$ac_save_CC
3781
3782fi
3783# AC_CACHE_VAL
3784case "x$ac_cv_prog_cc_c89" in
3785  x)
3786    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3787$as_echo "none needed" >&6; } ;;
3788  xno)
3789    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3790$as_echo "unsupported" >&6; } ;;
3791  *)
3792    CC="$CC $ac_cv_prog_cc_c89"
3793    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3794$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3795esac
3796if test "x$ac_cv_prog_cc_c89" != xno; then :
3797
3798fi
3799
3800ac_ext=c
3801ac_cpp='$CPP $CPPFLAGS'
3802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805
3806
3807
3808ac_ext=c
3809ac_cpp='$CPP $CPPFLAGS'
3810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813
3814
3815# For consistency, we set the C compiler to the same value of the C++
3816# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
3817if test x"$CXX" != x; then
3818  case "$CXX" in
3819    clang* ) ;;
3820    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3821      if test x"$CC" = x; then
3822        CC="$CXX"
3823        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
3824$as_echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
3825      fi
3826      ;;
3827  esac
3828fi
3829
3830
3831
3832
3833
3834
3835coin_has_cc=yes
3836
3837save_cflags="$CFLAGS"
3838
3839# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
3840# Depending on the user's PATH, when Studio/Workshop cc is not present we may
3841# find /usr/ucb/cc, which is almost certainly not a good choice for the C
3842# compiler. In this case, put cc after gcc.
3843
3844case $build in
3845  *-cygwin* | *-mingw*)
3846             if test "$enable_msvc" = yes ; then
3847               comps="icl cl gcc"
3848             else
3849               comps="gcc icl cl"
3850             fi ;;
3851  *-*-solaris*)
3852             # Extract the first word of "cc", so it can be a program name with args.
3853set dummy cc; ac_word=$2
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855$as_echo_n "checking for $ac_word... " >&6; }
3856if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then :
3857  $as_echo_n "(cached) " >&6
3858else
3859  if test -n "$sol_cc_compiler"; then
3860  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
3861else
3862  ac_prog_rejected=no
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866  IFS=$as_save_IFS
3867  test -z "$as_dir" && as_dir=.
3868    for ac_exec_ext in '' $ac_executable_extensions; do
3869  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3871       ac_prog_rejected=yes
3872       continue
3873     fi
3874    ac_cv_prog_sol_cc_compiler="cc"
3875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876    break 2
3877  fi
3878done
3879  done
3880IFS=$as_save_IFS
3881
3882if test $ac_prog_rejected = yes; then
3883  # We found a bogon in the path, so make sure we never use it.
3884  set dummy $ac_cv_prog_sol_cc_compiler
3885  shift
3886  if test $# != 0; then
3887    # We chose a different compiler from the bogus one.
3888    # However, it has the same basename, so the bogon will be chosen
3889    # first if we set sol_cc_compiler to just the basename; use the full file name.
3890    shift
3891    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
3892  fi
3893fi
3894fi
3895fi
3896sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
3897if test -n "$sol_cc_compiler"; then
3898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_cc_compiler" >&5
3899$as_echo "$sol_cc_compiler" >&6; }
3900else
3901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902$as_echo "no" >&6; }
3903fi
3904
3905
3906             if test "$sol_cc_compiler" = "cc" ; then
3907               comps="cc xlc gcc pgcc icc"
3908             else
3909               comps="xlc gcc pgcc icc cc"
3910             fi
3911             ;;
3912  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
3913  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
3914  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
3915esac
3916
3917# We delete the cached value, since the test might not have been
3918# performed with our choice of compilers earlier
3919$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
3920# AC_MSG_NOTICE([C compiler candidates: $comps])
3921ac_ext=c
3922ac_cpp='$CPP $CPPFLAGS'
3923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926if test -n "$ac_tool_prefix"; then
3927  for ac_prog in $comps
3928  do
3929    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
3933if test "${ac_cv_prog_CC+set}" = set; then :
3934  $as_echo_n "(cached) " >&6
3935else
3936  if test -n "$CC"; then
3937  ac_cv_prog_CC="$CC" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942  IFS=$as_save_IFS
3943  test -z "$as_dir" && as_dir=.
3944    for ac_exec_ext in '' $ac_executable_extensions; do
3945  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948    break 2
3949  fi
3950done
3951  done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956CC=$ac_cv_prog_CC
3957if test -n "$CC"; then
3958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3959$as_echo "$CC" >&6; }
3960else
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966    test -n "$CC" && break
3967  done
3968fi
3969if test -z "$CC"; then
3970  ac_ct_CC=$CC
3971  for ac_prog in $comps
3972do
3973  # Extract the first word of "$ac_prog", so it can be a program name with args.
3974set dummy $ac_prog; ac_word=$2
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976$as_echo_n "checking for $ac_word... " >&6; }
3977if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3978  $as_echo_n "(cached) " >&6
3979else
3980  if test -n "$ac_ct_CC"; then
3981  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3982else
3983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986  IFS=$as_save_IFS
3987  test -z "$as_dir" && as_dir=.
3988    for ac_exec_ext in '' $ac_executable_extensions; do
3989  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990    ac_cv_prog_ac_ct_CC="$ac_prog"
3991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992    break 2
3993  fi
3994done
3995  done
3996IFS=$as_save_IFS
3997
3998fi
3999fi
4000ac_ct_CC=$ac_cv_prog_ac_ct_CC
4001if test -n "$ac_ct_CC"; then
4002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4003$as_echo "$ac_ct_CC" >&6; }
4004else
4005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006$as_echo "no" >&6; }
4007fi
4008
4009
4010  test -n "$ac_ct_CC" && break
4011done
4012
4013  if test "x$ac_ct_CC" = x; then
4014    CC=""
4015  else
4016    case $cross_compiling:$ac_tool_warned in
4017yes:)
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4020ac_tool_warned=yes ;;
4021esac
4022    CC=$ac_ct_CC
4023  fi
4024fi
4025
4026
4027test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029as_fn_error "no acceptable C compiler found in \$PATH
4030See \`config.log' for more details." "$LINENO" 5; }
4031
4032# Provide some information about the compiler.
4033$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4034set X $ac_compile
4035ac_compiler=$2
4036for ac_option in --version -v -V -qversion; do
4037  { { ac_try="$ac_compiler $ac_option >&5"
4038case "(($ac_try" in
4039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040  *) ac_try_echo=$ac_try;;
4041esac
4042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043$as_echo "$ac_try_echo"; } >&5
4044  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4045  ac_status=$?
4046  if test -s conftest.err; then
4047    sed '10a\
4048... rest of stderr output deleted ...
4049         10q' conftest.err >conftest.er1
4050    cat conftest.er1 >&5
4051    rm -f conftest.er1 conftest.err
4052  fi
4053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054  test $ac_status = 0; }
4055done
4056
4057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h.  */
4059#include <stdio.h>
4060int
4061main ()
4062{
4063FILE *f = fopen ("conftest.out", "w");
4064 return ferror (f) || fclose (f) != 0;
4065
4066  ;
4067  return 0;
4068}
4069_ACEOF
4070ac_clean_files_save=$ac_clean_files
4071ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4072# Try to create an executable without -o first, disregard a.out.
4073# It will help us diagnose broken compilers, and finding out an intuition
4074# of exeext.
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4076$as_echo_n "checking for C compiler default output file name... " >&6; }
4077ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4078
4079# The possible output files:
4080ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4081
4082ac_rmfiles=
4083for ac_file in $ac_files
4084do
4085  case $ac_file in
4086    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4087    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4088  esac
4089done
4090rm -f $ac_rmfiles
4091
4092if { { ac_try="$ac_link_default"
4093case "(($ac_try" in
4094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095  *) ac_try_echo=$ac_try;;
4096esac
4097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4098$as_echo "$ac_try_echo"; } >&5
4099  (eval "$ac_link_default") 2>&5
4100  ac_status=$?
4101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102  test $ac_status = 0; }; then :
4103  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4104# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4105# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4106# so that the user can short-circuit this test for compilers unknown to
4107# Autoconf.
4108for ac_file in $ac_files ''
4109do
4110  test -f "$ac_file" || continue
4111  case $ac_file in
4112    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4113        ;;
4114    [ab].out )
4115        # We found the default executable, but exeext='' is most
4116        # certainly right.
4117        break;;
4118    *.* )
4119        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4120        then :; else
4121           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4122        fi
4123        # We set ac_cv_exeext here because the later test for it is not
4124        # safe: cross compilers may not add the suffix if given an `-o'
4125        # argument, so we may need to know it at that point already.
4126        # Even if this section looks crufty: it has the advantage of
4127        # actually working.
4128        break;;
4129    * )
4130        break;;
4131  esac
4132done
4133test "$ac_cv_exeext" = no && ac_cv_exeext=
4134
4135else
4136  ac_file=''
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4139$as_echo "$ac_file" >&6; }
4140if test -z "$ac_file"; then :
4141  $as_echo "$as_me: failed program was:" >&5
4142sed 's/^/| /' conftest.$ac_ext >&5
4143
4144{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4146{ as_fn_set_status 77
4147as_fn_error "C compiler cannot create executables
4148See \`config.log' for more details." "$LINENO" 5; }; }
4149fi
4150ac_exeext=$ac_cv_exeext
4151
4152# Check that the compiler produces executables we can run.  If not, either
4153# the compiler is broken, or we cross compile.
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4155$as_echo_n "checking whether the C compiler works... " >&6; }
4156# If not cross compiling, check that we can run a simple program.
4157if test "$cross_compiling" != yes; then
4158  if { ac_try='./$ac_file'
4159  { { case "(($ac_try" in
4160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161  *) ac_try_echo=$ac_try;;
4162esac
4163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4164$as_echo "$ac_try_echo"; } >&5
4165  (eval "$ac_try") 2>&5
4166  ac_status=$?
4167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4168  test $ac_status = 0; }; }; then
4169    cross_compiling=no
4170  else
4171    if test "$cross_compiling" = maybe; then
4172        cross_compiling=yes
4173    else
4174        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4176as_fn_error "cannot run C compiled programs.
4177If you meant to cross compile, use \`--host'.
4178See \`config.log' for more details." "$LINENO" 5; }
4179    fi
4180  fi
4181fi
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183$as_echo "yes" >&6; }
4184
4185rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4186ac_clean_files=$ac_clean_files_save
4187# Check that the compiler produces executables we can run.  If not, either
4188# the compiler is broken, or we cross compile.
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4190$as_echo_n "checking whether we are cross compiling... " >&6; }
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4192$as_echo "$cross_compiling" >&6; }
4193
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4195$as_echo_n "checking for suffix of executables... " >&6; }
4196if { { ac_try="$ac_link"
4197case "(($ac_try" in
4198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199  *) ac_try_echo=$ac_try;;
4200esac
4201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4202$as_echo "$ac_try_echo"; } >&5
4203  (eval "$ac_link") 2>&5
4204  ac_status=$?
4205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4206  test $ac_status = 0; }; then :
4207  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4208# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4209# work properly (i.e., refer to `conftest.exe'), while it won't with
4210# `rm'.
4211for ac_file in conftest.exe conftest conftest.*; do
4212  test -f "$ac_file" || continue
4213  case $ac_file in
4214    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4215    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4216          break;;
4217    * ) break;;
4218  esac
4219done
4220else
4221  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4223as_fn_error "cannot compute suffix of executables: cannot compile and link
4224See \`config.log' for more details." "$LINENO" 5; }
4225fi
4226rm -f conftest$ac_cv_exeext
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4228$as_echo "$ac_cv_exeext" >&6; }
4229
4230rm -f conftest.$ac_ext
4231EXEEXT=$ac_cv_exeext
4232ac_exeext=$EXEEXT
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4234$as_echo_n "checking for suffix of object files... " >&6; }
4235if test "${ac_cv_objext+set}" = set; then :
4236  $as_echo_n "(cached) " >&6
4237else
4238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h.  */
4240
4241int
4242main ()
4243{
4244
4245  ;
4246  return 0;
4247}
4248_ACEOF
4249rm -f conftest.o conftest.obj
4250if { { ac_try="$ac_compile"
4251case "(($ac_try" in
4252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253  *) ac_try_echo=$ac_try;;
4254esac
4255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256$as_echo "$ac_try_echo"; } >&5
4257  (eval "$ac_compile") 2>&5
4258  ac_status=$?
4259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260  test $ac_status = 0; }; then :
4261  for ac_file in conftest.o conftest.obj conftest.*; do
4262  test -f "$ac_file" || continue;
4263  case $ac_file in
4264    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4265    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4266       break;;
4267  esac
4268done
4269else
4270  $as_echo "$as_me: failed program was:" >&5
4271sed 's/^/| /' conftest.$ac_ext >&5
4272
4273{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4275as_fn_error "cannot compute suffix of object files: cannot compile
4276See \`config.log' for more details." "$LINENO" 5; }
4277fi
4278rm -f conftest.$ac_cv_objext conftest.$ac_ext
4279fi
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4281$as_echo "$ac_cv_objext" >&6; }
4282OBJEXT=$ac_cv_objext
4283ac_objext=$OBJEXT
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4285$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4286if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290/* end confdefs.h.  */
4291
4292int
4293main ()
4294{
4295#ifndef __GNUC__
4296       choke me
4297#endif
4298
4299  ;
4300  return 0;
4301}
4302_ACEOF
4303if ac_fn_c_try_compile "$LINENO"; then :
4304  ac_compiler_gnu=yes
4305else
4306  ac_compiler_gnu=no
4307fi
4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309ac_cv_c_compiler_gnu=$ac_compiler_gnu
4310
4311fi
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4313$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4314if test $ac_compiler_gnu = yes; then
4315  GCC=yes
4316else
4317  GCC=
4318fi
4319ac_test_CFLAGS=${CFLAGS+set}
4320ac_save_CFLAGS=$CFLAGS
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4322$as_echo_n "checking whether $CC accepts -g... " >&6; }
4323if test "${ac_cv_prog_cc_g+set}" = set; then :
4324  $as_echo_n "(cached) " >&6
4325else
4326  ac_save_c_werror_flag=$ac_c_werror_flag
4327   ac_c_werror_flag=yes
4328   ac_cv_prog_cc_g=no
4329   CFLAGS="-g"
4330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h.  */
4332
4333int
4334main ()
4335{
4336
4337  ;
4338  return 0;
4339}
4340_ACEOF
4341if ac_fn_c_try_compile "$LINENO"; then :
4342  ac_cv_prog_cc_g=yes
4343else
4344  CFLAGS=""
4345      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346/* end confdefs.h.  */
4347
4348int
4349main ()
4350{
4351
4352  ;
4353  return 0;
4354}
4355_ACEOF
4356if ac_fn_c_try_compile "$LINENO"; then :
4357
4358else
4359  ac_c_werror_flag=$ac_save_c_werror_flag
4360         CFLAGS="-g"
4361         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362/* end confdefs.h.  */
4363
4364int
4365main ()
4366{
4367
4368  ;
4369  return 0;
4370}
4371_ACEOF
4372if ac_fn_c_try_compile "$LINENO"; then :
4373  ac_cv_prog_cc_g=yes
4374fi
4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376fi
4377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378fi
4379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380   ac_c_werror_flag=$ac_save_c_werror_flag
4381fi
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4383$as_echo "$ac_cv_prog_cc_g" >&6; }
4384if test "$ac_test_CFLAGS" = set; then
4385  CFLAGS=$ac_save_CFLAGS
4386elif test $ac_cv_prog_cc_g = yes; then
4387  if test "$GCC" = yes; then
4388    CFLAGS="-g -O2"
4389  else
4390    CFLAGS="-g"
4391  fi
4392else
4393  if test "$GCC" = yes; then
4394    CFLAGS="-O2"
4395  else
4396    CFLAGS=
4397  fi
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4400$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4401if test "${ac_cv_prog_cc_c89+set}" = set; then :
4402  $as_echo_n "(cached) " >&6
4403else
4404  ac_cv_prog_cc_c89=no
4405ac_save_CC=$CC
4406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h.  */
4408#include <stdarg.h>
4409#include <stdio.h>
4410#include <sys/types.h>
4411#include <sys/stat.h>
4412/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4413struct buf { int x; };
4414FILE * (*rcsopen) (struct buf *, struct stat *, int);
4415static char *e (p, i)
4416     char **p;
4417     int i;
4418{
4419  return p[i];
4420}
4421static char *f (char * (*g) (char **, int), char **p, ...)
4422{
4423  char *s;
4424  va_list v;
4425  va_start (v,p);
4426  s = g (p, va_arg (v,int));
4427  va_end (v);
4428  return s;
4429}
4430
4431/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4432   function prototypes and stuff, but not '\xHH' hex character constants.
4433   These don't provoke an error unfortunately, instead are silently treated
4434   as 'x'.  The following induces an error, until -std is added to get
4435   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4436   array size at least.  It's necessary to write '\x00'==0 to get something
4437   that's true only with -std.  */
4438int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4439
4440/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4441   inside strings and character constants.  */
4442#define FOO(x) 'x'
4443int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4444
4445int test (int i, double x);
4446struct s1 {int (*f) (int a);};
4447struct s2 {int (*f) (double a);};
4448int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4449int argc;
4450char **argv;
4451int
4452main ()
4453{
4454return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4455  ;
4456  return 0;
4457}
4458_ACEOF
4459for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4460        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4461do
4462  CC="$ac_save_CC $ac_arg"
4463  if ac_fn_c_try_compile "$LINENO"; then :
4464  ac_cv_prog_cc_c89=$ac_arg
4465fi
4466rm -f core conftest.err conftest.$ac_objext
4467  test "x$ac_cv_prog_cc_c89" != "xno" && break
4468done
4469rm -f conftest.$ac_ext
4470CC=$ac_save_CC
4471
4472fi
4473# AC_CACHE_VAL
4474case "x$ac_cv_prog_cc_c89" in
4475  x)
4476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4477$as_echo "none needed" >&6; } ;;
4478  xno)
4479    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4480$as_echo "unsupported" >&6; } ;;
4481  *)
4482    CC="$CC $ac_cv_prog_cc_c89"
4483    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4484$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4485esac
4486if test "x$ac_cv_prog_cc_c89" != xno; then :
4487
4488fi
4489
4490ac_ext=c
4491ac_cpp='$CPP $CPPFLAGS'
4492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495
4496if test -z "$CC" ; then
4497  as_fn_error "Failed to find a C compiler!" "$LINENO" 5
4498fi
4499# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
4500case "$CC" in
4501  clang* ) ;;
4502  cl* | */cl* | CL* | */CL* )
4503    if test "$ac_cv_prog_cc_g" = yes ; then
4504      ac_cv_prog_cc_g=no
4505      { $as_echo "$as_me:${as_lineno-$LINENO}: Overruling autoconf; cl does not recognise -g." >&5
4506$as_echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
4507    fi ;;
4508  * )
4509    if test x"$CYGPATH_W" = x ; then
4510      CYGPATH_W=echo
4511    fi
4512    ;;
4513esac
4514CFLAGS="$save_cflags"
4515
4516# add automake conditional so we can recognize cl compiler in makefile
4517coin_cc_is_cl=false
4518case "$CC" in
4519  clang* ) ;;
4520  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4521    coin_cc_is_cl=true
4522    ;;
4523esac
4524
4525
4526if test $coin_cc_is_cl = true; then
4527  COIN_CC_IS_CL_TRUE=
4528  COIN_CC_IS_CL_FALSE='#'
4529else
4530  COIN_CC_IS_CL_TRUE='#'
4531  COIN_CC_IS_CL_FALSE=
4532fi
4533
4534
4535# Check if a project specific CFLAGS variable has been set
4536if test x$COIN_PRJCT != x; then
4537  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
4538  if test x$coin_tmp = xset; then
4539    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
4540  fi
4541fi
4542
4543if test x"$CFLAGS" = x; then
4544
4545  coin_add_cflags=
4546  coin_opt_cflags=
4547  coin_dbg_cflags=
4548  coin_warn_cflags=
4549
4550  if test "$GCC" = "yes"; then
4551    case "$CC" in
4552      icc* | */icc*)
4553        ;;
4554      *)
4555        coin_opt_cflags="-O3"
4556        coin_add_cflags="-pipe"
4557        coin_dbg_cflags="-g -O0"
4558        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
4559        case $build in
4560          *-darwin*)
4561            ;;
4562          *)
4563            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
4564            ;;
4565        esac
4566    esac
4567  fi
4568  if test -z "$coin_opt_cflags"; then
4569    case $build in
4570      *-cygwin* | *-mingw*)
4571        case "$CC" in
4572          clang* ) ;;
4573          cl* | */cl* | CL* | */CL*)
4574            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4575              coin_opt_cflags='-MD -O2'
4576              coin_dbg_cflags='-MDd'
4577            else
4578              coin_opt_cflags='-MT -O2'
4579              coin_dbg_cflags='-MTd'
4580            fi
4581            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
4582            ;;
4583          icl* | */icl* | ICL* | */ICL*)
4584            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4585              coin_opt_cflags='-MD -Ox'
4586              coin_dbg_cflags='-MDd -debug'
4587            else
4588              coin_opt_cflags='-MT -Ox'
4589              coin_dbg_cflags='-MTd -debug'
4590            fi
4591            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
4592            ;;
4593        esac
4594        ;;
4595      *-linux-*)
4596        case "$CC" in
4597          icc* | */icc*)
4598            coin_opt_cflags="-O3 -ip -mp1"
4599            coin_add_cflags=""
4600            coin_dbg_cflags="-g"
4601            # Check if -i_dynamic is necessary (for new glibc library)
4602            CFLAGS=
4603            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h.  */
4605
4606int
4607main ()
4608{
4609int i=0; i++;
4610  ;
4611  return 0;
4612}
4613_ACEOF
4614if ac_fn_c_try_link "$LINENO"; then :
4615
4616else
4617  coin_add_cflags="-i_dynamic $coin_add_cflags"
4618fi
4619rm -f core conftest.err conftest.$ac_objext \
4620    conftest$ac_exeext conftest.$ac_ext
4621            ;;
4622          pgcc* | */pgcc*)
4623            coin_opt_cflags="-fast"
4624            coin_add_cflags="-Kieee -pc 64"
4625            coin_dbg_cflags="-g"
4626            ;;
4627        esac
4628        ;;
4629      *-ibm-*)
4630        case "$CC" in
4631          xlc* | */xlc* | mpxlc* | */mpxlc*)
4632            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4633            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4634            coin_dbg_cflags="-g"
4635          ;;
4636        esac
4637        ;;
4638      *-hp-*)
4639        coin_opt_cflags="-O"
4640        coin_add_cflags="-Ae"
4641        coin_dbg_cflags="-g"
4642        ;;
4643      *-*-solaris*)
4644        coin_opt_cflags="-xO4"
4645        coin_dbg_cflags="-g"
4646        ;;
4647      *-sgi-*)
4648        coin_opt_cflags="-O -OPT:Olimit=0"
4649        coin_dbg_cflags="-g"
4650        ;;
4651    esac
4652  fi
4653
4654  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
4655    coin_dbg_cflags="-g"
4656  fi
4657
4658  if test -z "$coin_opt_cflags"; then
4659    # Try if -O option works if nothing else is set
4660    CFLAGS="-O"
4661    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662/* end confdefs.h.  */
4663
4664int
4665main ()
4666{
4667int i=0; i++;
4668  ;
4669  return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_link "$LINENO"; then :
4673  coin_opt_cflags="-O"
4674fi
4675rm -f core conftest.err conftest.$ac_objext \
4676    conftest$ac_exeext conftest.$ac_ext
4677  fi
4678
4679  # if PM doesn't want the warning messages, take them out
4680  if test x"$coin_skip_warn_cflags" = xyes; then
4681    coin_warn_cflags=
4682  fi
4683
4684  if test x${DBG_CFLAGS+set} != xset; then
4685    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
4686  fi
4687  if test x${OPT_CFLAGS+set} != xset; then
4688    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
4689  fi
4690
4691  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
4692  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
4693
4694  if test "$coin_debug_compile" = "true"; then
4695    CFLAGS="$DBG_CFLAGS"
4696  else
4697    CFLAGS="$OPT_CFLAGS"
4698  fi
4699else
4700  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
4701  if test x${DBG_CFLAGS+set} != xset; then
4702    DBG_CFLAGS="$CFLAGS"
4703  fi
4704  if test x${OPT_CFLAGS+set} != xset; then
4705    OPT_CFLAGS="$CFLAGS"
4706  fi
4707fi
4708
4709# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4710if test x$COIN_PRJCT != x; then
4711  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
4712fi
4713
4714# Try if CFLAGS works
4715save_CFLAGS="$CFLAGS"
4716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717/* end confdefs.h.  */
4718
4719int
4720main ()
4721{
4722int i=0; i++;
4723  ;
4724  return 0;
4725}
4726_ACEOF
4727if ac_fn_c_try_link "$LINENO"; then :
4728
4729else
4730  CFLAGS=
4731fi
4732rm -f core conftest.err conftest.$ac_objext \
4733    conftest$ac_exeext conftest.$ac_ext
4734if test -z "$CFLAGS"; then
4735  { $as_echo "$as_me:${as_lineno-$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
4736$as_echo "$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;}
4737  CFLAGS='-O'
4738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740
4741int
4742main ()
4743{
4744int i=0; i++;
4745  ;
4746  return 0;
4747}
4748_ACEOF
4749if ac_fn_c_try_link "$LINENO"; then :
4750
4751else
4752  CFLAGS=
4753fi
4754rm -f core conftest.err conftest.$ac_objext \
4755    conftest$ac_exeext conftest.$ac_ext
4756  if test -z "$CFLAGS"; then
4757    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
4758$as_echo "$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;}
4759  fi
4760fi
4761
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: C compiler options are: $CFLAGS" >&5
4763$as_echo "$as_me: C compiler options are: $CFLAGS" >&6;}
4764
4765
4766if test x"$MPICC" = x; then :; else
4767  { $as_echo "$as_me:${as_lineno-$LINENO}: Will use MPI C compiler $MPICC" >&5
4768$as_echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
4769  CC="$MPICC"
4770fi
4771
4772# Correct the LD variable if we are using the MS or Intel-windows compiler
4773case "$CC" in
4774  clang* ) ;;
4775  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4776    LD=link
4777    ;;
4778esac
4779
4780ac_ext=c
4781ac_cpp='$CPP $CPPFLAGS'
4782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785
4786
4787ac_ext=cpp
4788ac_cpp='$CXXCPP $CPPFLAGS'
4789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4792if test -z "$CXX"; then
4793  if test -n "$CCC"; then
4794    CXX=$CCC
4795  else
4796    if test -n "$ac_tool_prefix"; then
4797  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4798  do
4799    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4800set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802$as_echo_n "checking for $ac_word... " >&6; }
4803if test "${ac_cv_prog_CXX+set}" = set; then :
4804  $as_echo_n "(cached) " >&6
4805else
4806  if test -n "$CXX"; then
4807  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4808else
4809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812  IFS=$as_save_IFS
4813  test -z "$as_dir" && as_dir=.
4814    for ac_exec_ext in '' $ac_executable_extensions; do
4815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818    break 2
4819  fi
4820done
4821  done
4822IFS=$as_save_IFS
4823
4824fi
4825fi
4826CXX=$ac_cv_prog_CXX
4827if test -n "$CXX"; then
4828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4829$as_echo "$CXX" >&6; }
4830else
4831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832$as_echo "no" >&6; }
4833fi
4834
4835
4836    test -n "$CXX" && break
4837  done
4838fi
4839if test -z "$CXX"; then
4840  ac_ct_CXX=$CXX
4841  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4842do
4843  # Extract the first word of "$ac_prog", so it can be a program name with args.
4844set dummy $ac_prog; ac_word=$2
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846$as_echo_n "checking for $ac_word... " >&6; }
4847if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4848  $as_echo_n "(cached) " >&6
4849else
4850  if test -n "$ac_ct_CXX"; then
4851  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4852else
4853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854for as_dir in $PATH
4855do
4856  IFS=$as_save_IFS
4857  test -z "$as_dir" && as_dir=.
4858    for ac_exec_ext in '' $ac_executable_extensions; do
4859  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860    ac_cv_prog_ac_ct_CXX="$ac_prog"
4861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862    break 2
4863  fi
4864done
4865  done
4866IFS=$as_save_IFS
4867
4868fi
4869fi
4870ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4871if test -n "$ac_ct_CXX"; then
4872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4873$as_echo "$ac_ct_CXX" >&6; }
4874else
4875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876$as_echo "no" >&6; }
4877fi
4878
4879
4880  test -n "$ac_ct_CXX" && break
4881done
4882
4883  if test "x$ac_ct_CXX" = x; then
4884    CXX="g++"
4885  else
4886    case $cross_compiling:$ac_tool_warned in
4887yes:)
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4890ac_tool_warned=yes ;;
4891esac
4892    CXX=$ac_ct_CXX
4893  fi
4894fi
4895
4896  fi
4897fi
4898# Provide some information about the compiler.
4899$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4900set X $ac_compile
4901ac_compiler=$2
4902for ac_option in --version -v -V -qversion; do
4903  { { ac_try="$ac_compiler $ac_option >&5"
4904case "(($ac_try" in
4905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906  *) ac_try_echo=$ac_try;;
4907esac
4908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4909$as_echo "$ac_try_echo"; } >&5
4910  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4911  ac_status=$?
4912  if test -s conftest.err; then
4913    sed '10a\
4914... rest of stderr output deleted ...
4915         10q' conftest.err >conftest.er1
4916    cat conftest.er1 >&5
4917    rm -f conftest.er1 conftest.err
4918  fi
4919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4920  test $ac_status = 0; }
4921done
4922
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4924$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4925if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h.  */
4930
4931int
4932main ()
4933{
4934#ifndef __GNUC__
4935       choke me
4936#endif
4937
4938  ;
4939  return 0;
4940}
4941_ACEOF
4942if ac_fn_cxx_try_compile "$LINENO"; then :
4943  ac_compiler_gnu=yes
4944else
4945  ac_compiler_gnu=no
4946fi
4947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4949
4950fi
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4952$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4953if test $ac_compiler_gnu = yes; then
4954  GXX=yes
4955else
4956  GXX=
4957fi
4958ac_test_CXXFLAGS=${CXXFLAGS+set}
4959ac_save_CXXFLAGS=$CXXFLAGS
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4961$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4962if test "${ac_cv_prog_cxx_g+set}" = set; then :
4963  $as_echo_n "(cached) " >&6
4964else
4965  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4966   ac_cxx_werror_flag=yes
4967   ac_cv_prog_cxx_g=no
4968   CXXFLAGS="-g"
4969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970/* end confdefs.h.  */
4971
4972int
4973main ()
4974{
4975
4976  ;
4977  return 0;
4978}
4979_ACEOF
4980if ac_fn_cxx_try_compile "$LINENO"; then :
4981  ac_cv_prog_cxx_g=yes
4982else
4983  CXXFLAGS=""
4984      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985/* end confdefs.h.  */
4986
4987int
4988main ()
4989{
4990
4991  ;
4992  return 0;
4993}
4994_ACEOF
4995if ac_fn_cxx_try_compile "$LINENO"; then :
4996
4997else
4998  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4999         CXXFLAGS="-g"
5000         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001/* end confdefs.h.  */
5002
5003int
5004main ()
5005{
5006
5007  ;
5008  return 0;
5009}
5010_ACEOF
5011if ac_fn_cxx_try_compile "$LINENO"; then :
5012  ac_cv_prog_cxx_g=yes
5013fi
5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015fi
5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017fi
5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5020fi
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5022$as_echo "$ac_cv_prog_cxx_g" >&6; }
5023if test "$ac_test_CXXFLAGS" = set; then
5024  CXXFLAGS=$ac_save_CXXFLAGS
5025elif test $ac_cv_prog_cxx_g = yes; then
5026  if test "$GXX" = yes; then
5027    CXXFLAGS="-g -O2"
5028  else
5029    CXXFLAGS="-g"
5030  fi
5031else
5032  if test "$GXX" = yes; then
5033    CXXFLAGS="-O2"
5034  else
5035    CXXFLAGS=
5036  fi
5037fi
5038ac_ext=cpp
5039ac_cpp='$CXXCPP $CPPFLAGS'
5040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5043
5044
5045 #Let's try if that overcomes configuration problem with VC++ 6.0
5046
5047ac_ext=cpp
5048ac_cpp='$CXXCPP $CPPFLAGS'
5049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5052
5053
5054
5055
5056
5057
5058
5059coin_has_cxx=yes
5060
5061save_cxxflags="$CXXFLAGS"
5062# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
5063case $build in
5064  *-cygwin* | *-mingw*)
5065      if test "$enable_msvc" = yes ; then
5066         comps="icl cl g++"
5067      else
5068         comps="g++ icl cl"
5069      fi ;;
5070  *-*-solaris*)
5071             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
5072  *-darwin*) comps="g++ c++ CC" ;;
5073  *-linux-gnu*)
5074             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
5075          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
5076esac
5077
5078# We delete the cached value, since the test might not have been
5079# performed with our choice of compilers earlier
5080$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
5081# AC_MSG_NOTICE([C++ compiler candidates: $comps])
5082ac_ext=cpp
5083ac_cpp='$CXXCPP $CPPFLAGS'
5084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5087if test -z "$CXX"; then
5088  if test -n "$CCC"; then
5089    CXX=$CCC
5090  else
5091    if test -n "$ac_tool_prefix"; then
5092  for ac_prog in $comps
5093  do
5094    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5095set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097$as_echo_n "checking for $ac_word... " >&6; }
5098if test "${ac_cv_prog_CXX+set}" = set; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101  if test -n "$CXX"; then
5102  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5103else
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107  IFS=$as_save_IFS
5108  test -z "$as_dir" && as_dir=.
5109    for ac_exec_ext in '' $ac_executable_extensions; do
5110  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113    break 2
5114  fi
5115done
5116  done
5117IFS=$as_save_IFS
5118
5119fi
5120fi
5121CXX=$ac_cv_prog_CXX
5122if test -n "$CXX"; then
5123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5124$as_echo "$CXX" >&6; }
5125else
5126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
5128fi
5129
5130
5131    test -n "$CXX" && break
5132  done
5133fi
5134if test -z "$CXX"; then
5135  ac_ct_CXX=$CXX
5136  for ac_prog in $comps
5137do
5138  # Extract the first word of "$ac_prog", so it can be a program name with args.
5139set dummy $ac_prog; ac_word=$2
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141$as_echo_n "checking for $ac_word... " >&6; }
5142if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5143  $as_echo_n "(cached) " >&6
5144else
5145  if test -n "$ac_ct_CXX"; then
5146  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151  IFS=$as_save_IFS
5152  test -z "$as_dir" && as_dir=.
5153    for ac_exec_ext in '' $ac_executable_extensions; do
5154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155    ac_cv_prog_ac_ct_CXX="$ac_prog"
5156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157    break 2
5158  fi
5159done
5160  done
5161IFS=$as_save_IFS
5162
5163fi
5164fi
5165ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5166if test -n "$ac_ct_CXX"; then
5167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5168$as_echo "$ac_ct_CXX" >&6; }
5169else
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
5172fi
5173
5174
5175  test -n "$ac_ct_CXX" && break
5176done
5177
5178  if test "x$ac_ct_CXX" = x; then
5179    CXX="g++"
5180  else
5181    case $cross_compiling:$ac_tool_warned in
5182yes:)
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5185ac_tool_warned=yes ;;
5186esac
5187    CXX=$ac_ct_CXX
5188  fi
5189fi
5190
5191  fi
5192fi
5193# Provide some information about the compiler.
5194$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5195set X $ac_compile
5196ac_compiler=$2
5197for ac_option in --version -v -V -qversion; do
5198  { { ac_try="$ac_compiler $ac_option >&5"
5199case "(($ac_try" in
5200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201  *) ac_try_echo=$ac_try;;
5202esac
5203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5204$as_echo "$ac_try_echo"; } >&5
5205  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5206  ac_status=$?
5207  if test -s conftest.err; then
5208    sed '10a\
5209... rest of stderr output deleted ...
5210         10q' conftest.err >conftest.er1
5211    cat conftest.er1 >&5
5212    rm -f conftest.er1 conftest.err
5213  fi
5214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215  test $ac_status = 0; }
5216done
5217
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5219$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5220if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225
5226int
5227main ()
5228{
5229#ifndef __GNUC__
5230       choke me
5231#endif
5232
5233  ;
5234  return 0;
5235}
5236_ACEOF
5237if ac_fn_cxx_try_compile "$LINENO"; then :
5238  ac_compiler_gnu=yes
5239else
5240  ac_compiler_gnu=no
5241fi
5242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5244
5245fi
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5247$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5248if test $ac_compiler_gnu = yes; then
5249  GXX=yes
5250else
5251  GXX=
5252fi
5253ac_test_CXXFLAGS=${CXXFLAGS+set}
5254ac_save_CXXFLAGS=$CXXFLAGS
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5256$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5257if test "${ac_cv_prog_cxx_g+set}" = set; then :
5258  $as_echo_n "(cached) " >&6
5259else
5260  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5261   ac_cxx_werror_flag=yes
5262   ac_cv_prog_cxx_g=no
5263   CXXFLAGS="-g"
5264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265/* end confdefs.h.  */
5266
5267int
5268main ()
5269{
5270
5271  ;
5272  return 0;
5273}
5274_ACEOF
5275if ac_fn_cxx_try_compile "$LINENO"; then :
5276  ac_cv_prog_cxx_g=yes
5277else
5278  CXXFLAGS=""
5279      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280/* end confdefs.h.  */
5281
5282int
5283main ()
5284{
5285
5286  ;
5287  return 0;
5288}
5289_ACEOF
5290if ac_fn_cxx_try_compile "$LINENO"; then :
5291
5292else
5293  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5294         CXXFLAGS="-g"
5295         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296/* end confdefs.h.  */
5297
5298int
5299main ()
5300{
5301
5302  ;
5303  return 0;
5304}
5305_ACEOF
5306if ac_fn_cxx_try_compile "$LINENO"; then :
5307  ac_cv_prog_cxx_g=yes
5308fi
5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310fi
5311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312fi
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5315fi
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5317$as_echo "$ac_cv_prog_cxx_g" >&6; }
5318if test "$ac_test_CXXFLAGS" = set; then
5319  CXXFLAGS=$ac_save_CXXFLAGS
5320elif test $ac_cv_prog_cxx_g = yes; then
5321  if test "$GXX" = yes; then
5322    CXXFLAGS="-g -O2"
5323  else
5324    CXXFLAGS="-g"
5325  fi
5326else
5327  if test "$GXX" = yes; then
5328    CXXFLAGS="-O2"
5329  else
5330    CXXFLAGS=
5331  fi
5332fi
5333ac_ext=cpp
5334ac_cpp='$CXXCPP $CPPFLAGS'
5335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5338
5339
5340#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
5341#thus, we test here whether $CXX is actually working
5342ac_ext=cpp
5343ac_cpp='$CXXCPP $CPPFLAGS'
5344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5347
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler $CXX works" >&5
5349$as_echo_n "checking whether C++ compiler $CXX works... " >&6; };
5350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351/* end confdefs.h.  */
5352
5353int
5354main ()
5355{
5356int i=0;
5357  ;
5358  return 0;
5359}
5360_ACEOF
5361if ac_fn_cxx_try_compile "$LINENO"; then :
5362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5363$as_echo "yes" >&6; }
5364else
5365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366$as_echo "no" >&6; }
5367   as_fn_error "failed to find a C++ compiler or C++ compiler $CXX does not work" "$LINENO" 5
5368
5369fi
5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371ac_ext=cpp
5372ac_cpp='$CXXCPP $CPPFLAGS'
5373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5376
5377
5378coin_cxx_is_cl=false
5379# It seems that we need to cleanup something here for the Windows
5380case "$CXX" in
5381  clang* ) ;;
5382  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5383    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
5384    mv confdefs.hh confdefs.h
5385    coin_cxx_is_cl=true
5386    ;;
5387esac
5388
5389# add automake conditional so we can recognize cl compiler in makefile
5390
5391
5392if test $coin_cxx_is_cl = true; then
5393  COIN_CXX_IS_CL_TRUE=
5394  COIN_CXX_IS_CL_FALSE='#'
5395else
5396  COIN_CXX_IS_CL_TRUE='#'
5397  COIN_CXX_IS_CL_FALSE=
5398fi
5399
5400
5401# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
5402case "$CXX" in
5403  clang* ) ;;
5404  cl* | */cl* | CL* | */CL* )
5405    if test "$ac_cv_prog_cxx_g" = yes ; then
5406      ac_cv_prog_cxx_g=no
5407      { $as_echo "$as_me:${as_lineno-$LINENO}: Overruling autoconf; cl does not recognise -g." >&5
5408$as_echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
5409    fi ;;
5410  * )
5411    if test x"$CYGPATH_W" = x ; then
5412      CYGPATH_W=echo
5413    fi
5414    ;;
5415esac
5416CXXFLAGS="$save_cxxflags"
5417
5418# Check if a project specific CXXFLAGS variable has been set
5419if test x$COIN_PRJCT != x; then
5420  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
5421  if test x$coin_tmp = xset; then
5422    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
5423  fi
5424fi
5425
5426if test x"$CXXFLAGS" = x; then
5427
5428# ToDo decide whether we want -DNDEBUG for optimization
5429  coin_add_cxxflags=
5430  coin_opt_cxxflags=
5431  coin_dbg_cxxflags=
5432  coin_warn_cxxflags=
5433
5434  if test "$GXX" = "yes"; then
5435    case "$CXX" in
5436      icpc* | */icpc*)
5437        ;;
5438      *)
5439# ToDo decide about unroll-loops
5440        coin_opt_cxxflags="-O3"
5441        coin_add_cxxflags="-pipe"
5442        coin_dbg_cxxflags="-g -O0"
5443        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
5444        case $build in
5445          *-darwin*)
5446            ;;
5447          *)
5448            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
5449            ;;
5450        esac
5451    esac
5452  fi
5453
5454# Note that we do not need to cover GCC in the following tests.
5455
5456  if test -z "$coin_opt_cxxflags"; then
5457    case $build in
5458      *-cygwin* | *-mingw*)
5459        case "$CXX" in
5460          clang* ) ;;
5461          cl* | */cl* | CL* | */CL*)
5462            # The MT and MTd options are mutually exclusive
5463            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
5464               coin_opt_cxxflags='-MD -O2'
5465               coin_dbg_cxxflags='-MDd'
5466            else
5467               coin_opt_cxxflags='-MT -O2'
5468               coin_dbg_cxxflags='-MTd'
5469            fi
5470            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
5471            ;;
5472          icl* | */icl* | ICL* | */ICL*)
5473          # The MT and MTd options are mutually exclusive
5474            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
5475              coin_opt_cxxflags='-MD -Ox'
5476              coin_dbg_cxxflags='-MDd -debug'
5477            else
5478              coin_opt_cxxflags='-MT -Ox'
5479              coin_dbg_cxxflags='-MTd -debug'
5480            fi
5481            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
5482            ;;
5483        esac
5484        ;;
5485      *-linux-*)
5486        case "$CXX" in
5487          icpc* | */icpc*)
5488            coin_opt_cxxflags="-O3 -ip -mp1"
5489            coin_add_cxxflags=""
5490            coin_dbg_cxxflags="-g"
5491            # Check if -i_dynamic is necessary (for new glibc library)
5492            CXXFLAGS=
5493            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h.  */
5495
5496int
5497main ()
5498{
5499int i=0; i++;
5500  ;
5501  return 0;
5502}
5503_ACEOF
5504if ac_fn_cxx_try_link "$LINENO"; then :
5505
5506else
5507  coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
5508fi
5509rm -f core conftest.err conftest.$ac_objext \
5510    conftest$ac_exeext conftest.$ac_ext
5511            ;;
5512          pgCC* | */pgCC*)
5513            coin_opt_cxxflags="-fast"
5514            coin_add_cxxflags="-Kieee -pc 64"
5515            coin_dbg_cxxflags="-g"
5516            ;;
5517        esac
5518        ;;
5519      *-ibm-*)
5520        case "$CXX" in
5521          xlC* | */xlC* | mpxlC* | */mpxlC*)
5522            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
5523            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
5524            coin_dbg_cxxflags="-g"
5525            ;;
5526        esac
5527        ;;
5528      *-hp-*)
5529        case "$CXX" in
5530          aCC* | */aCC* )
5531            coin_opt_cxxflags="-O"
5532            coin_add_cxxflags="-AA"
5533            coin_dbg_cxxflags="-g"
5534            ;;
5535        esac
5536        ;;
5537      *-*-solaris*)
5538          coin_opt_cxxflags="-O4"
5539          coin_dbg_cxxflags="-g"
5540        ;;
5541    esac
5542  fi
5543
5544# Generic flag settings. If these don't work, add a case above.
5545
5546  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
5547    coin_dbg_cxxflags="-g"
5548  fi
5549
5550  if test -z "$coin_opt_cxxflags"; then
5551    # Try if -O option works if nothing else is set
5552    CXXFLAGS=-O
5553    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h.  */
5555
5556int
5557main ()
5558{
5559int i=0; i++;
5560  ;
5561  return 0;
5562}
5563_ACEOF
5564if ac_fn_cxx_try_link "$LINENO"; then :
5565  coin_opt_cxxflags="-O"
5566fi
5567rm -f core conftest.err conftest.$ac_objext \
5568    conftest$ac_exeext conftest.$ac_ext
5569  fi
5570
5571  # if PM doesn't want the warning messages, take them out
5572  if test x"$coin_skip_warn_cxxflags" = xyes; then
5573    coin_warn_cxxflags=
5574  fi
5575
5576# Do final setup of flags based on values determined above.
5577
5578  if test x${DBG_CXXFLAGS+set} != xset; then
5579    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
5580  fi
5581  if test x${OPT_CXXFLAGS+set} != xset; then
5582    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
5583  fi
5584
5585  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
5586  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
5587
5588  if test "$coin_debug_compile" = "true"; then
5589    CXXFLAGS="$DBG_CXXFLAGS"
5590  else
5591    CXXFLAGS="$OPT_CXXFLAGS"
5592  fi
5593
5594# Handle the case where CXXFLAGS was set externally.
5595else
5596  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
5597  if test x${DBG_CXXFLAGS+set} != xset; then
5598    DBG_CXXFLAGS="$CXXFLAGS"
5599  fi
5600  if test x${OPT_CXXFLAGS+set} != xset; then
5601    OPT_CXXFLAGS="$CXXFLAGS"
5602  fi
5603fi
5604
5605# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
5606if test x$COIN_PRJCT != x; then
5607  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
5608fi
5609
5610# Try if CXXFLAGS works
5611save_CXXFLAGS="$CXXFLAGS"
5612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613/* end confdefs.h.  */
5614
5615int
5616main ()
5617{
5618int i=0; i++;
5619  ;
5620  return 0;
5621}
5622_ACEOF
5623if ac_fn_cxx_try_link "$LINENO"; then :
5624
5625else
5626  CXXFLAGS=
5627fi
5628rm -f core conftest.err conftest.$ac_objext \
5629    conftest$ac_exeext conftest.$ac_ext
5630if test -z "$CXXFLAGS"; then
5631  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
5632$as_echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
5633  CXXFLAGS='-O'
5634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h.  */
5636
5637int
5638main ()
5639{
5640int i=0; i++;
5641  ;
5642  return 0;
5643}
5644_ACEOF
5645if ac_fn_cxx_try_link "$LINENO"; then :
5646
5647else
5648  CXXFLAGS=
5649fi
5650rm -f core conftest.err conftest.$ac_objext \
5651    conftest$ac_exeext conftest.$ac_ext
5652  if test -z "$CXXFLAGS"; then
5653    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
5654$as_echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
5655  fi
5656fi
5657
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler options are: $CXXFLAGS" >&5
5659$as_echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
5660
5661
5662if test x"$MPICXX" = x; then :; else
5663  { $as_echo "$as_me:${as_lineno-$LINENO}: Will use MPI C++ compiler $MPICXX" >&5
5664$as_echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
5665  CXX="$MPICXX"
5666fi
5667
5668# correct the LD variable in a build with MS or intel compiler
5669case "$CXX" in
5670  clang* ) ;;
5671  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5672    LD=link
5673    ;;
5674esac
5675
5676ac_ext=c
5677ac_cpp='$CPP $CPPFLAGS'
5678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681
5682
5683
5684# Initialize automake and libtool
5685{
5686
5687
5688
5689# START
5690
5691coin_disable_shared=no
5692# Test if force_shared has been set
5693if test "x" = xforce_shared; then
5694  if test x$enable_shared = xno; then
5695    as_fn_error "Shared libraries are disabled by user, but this is not feasible with the given options" "$LINENO" 5
5696  fi
5697  enable_shared=yes;
5698else
5699  # On Cygwin and AIX, building DLLs doesn't work
5700  case $build in
5701    *-cygwin* | *-mingw*)
5702      coin_disable_shared=yes
5703      if test x"$enable_shared" = xyes; then
5704        case "$CC" in
5705          clang* )
5706            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DLL building not supported. I'm disabling your choice." >&5
5707$as_echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5708            ;;
5709          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5710            { $as_echo "$as_me:${as_lineno-$LINENO}: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
5711$as_echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
5712            ;;
5713          *gcc*)
5714            if test x"$enable_dependency_linking" = xyes; then
5715              coin_disable_shared=no
5716            else
5717              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
5718$as_echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
5719            fi
5720            ;;
5721          *)
5722            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DLL building not supported. I'm disabling your choice." >&5
5723$as_echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5724            ;;
5725        esac
5726      fi
5727    ;;
5728    *-aix*)
5729      coin_disable_shared=yes
5730      platform=AIX
5731      if test x"$enable_shared" = xyes; then
5732        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
5733$as_echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
5734      fi
5735    ;;
5736  esac
5737fi
5738if test x"$coin_disable_shared" = xyes; then
5739  if test x"$enable_shared" = xyes; then
5740    :
5741  else
5742    # we don't disable shared, because it was not selected anyway
5743    coin_disable_shared=no
5744  fi
5745  enable_shared=no
5746fi
5747# By default, we only want the shared objects to be compiled
5748# Check whether --enable-static was given.
5749if test "${enable_static+set}" = set; then :
5750  enableval=$enable_static; p=${PACKAGE-default}
5751    case $enableval in
5752    yes) enable_static=yes ;;
5753    no) enable_static=no ;;
5754    *)
5755     enable_static=no
5756      # Look at the argument we got.  We use all the common list separators.
5757      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5758      for pkg in $enableval; do
5759        IFS="$lt_save_ifs"
5760        if test "X$pkg" = "X$p"; then
5761          enable_static=yes
5762        fi
5763      done
5764      IFS="$lt_save_ifs"
5765      ;;
5766    esac
5767else
5768  enable_static=no
5769fi
5770
5771
5772
5773
5774
5775# Initialize automake
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5777$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5778if test "${ac_cv_path_GREP+set}" = set; then :
5779  $as_echo_n "(cached) " >&6
5780else
5781  if test -z "$GREP"; then
5782  ac_path_GREP_found=false
5783  # Loop through the user's path and test for each of PROGNAME-LIST
5784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5786do
5787  IFS=$as_save_IFS
5788  test -z "$as_dir" && as_dir=.
5789    for ac_prog in grep ggrep; do
5790    for ac_exec_ext in '' $ac_executable_extensions; do
5791      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5792      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5793# Check for GNU ac_path_GREP and select it if it is found.
5794  # Check for GNU $ac_path_GREP
5795case `"$ac_path_GREP" --version 2>&1` in
5796*GNU*)
5797  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5798*)
5799  ac_count=0
5800  $as_echo_n 0123456789 >"conftest.in"
5801  while :
5802  do
5803    cat "conftest.in" "conftest.in" >"conftest.tmp"
5804    mv "conftest.tmp" "conftest.in"
5805    cp "conftest.in" "conftest.nl"
5806    $as_echo 'GREP' >> "conftest.nl"
5807    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5808    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5809    as_fn_arith $ac_count + 1 && ac_count=$as_val
5810    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5811      # Best one so far, save it but keep looking for a better one
5812      ac_cv_path_GREP="$ac_path_GREP"
5813      ac_path_GREP_max=$ac_count
5814    fi
5815    # 10*(2^10) chars as input seems more than enough
5816    test $ac_count -gt 10 && break
5817  done
5818  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5819esac
5820
5821      $ac_path_GREP_found && break 3
5822    done
5823  done
5824  done
5825IFS=$as_save_IFS
5826  if test -z "$ac_cv_path_GREP"; then
5827    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5828  fi
5829else
5830  ac_cv_path_GREP=$GREP
5831fi
5832
5833fi
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5835$as_echo "$ac_cv_path_GREP" >&6; }
5836 GREP="$ac_cv_path_GREP"
5837
5838
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5840$as_echo_n "checking for egrep... " >&6; }
5841if test "${ac_cv_path_EGREP+set}" = set; then :
5842  $as_echo_n "(cached) " >&6
5843else
5844  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5845   then ac_cv_path_EGREP="$GREP -E"
5846   else
5847     if test -z "$EGREP"; then
5848  ac_path_EGREP_found=false
5849  # Loop through the user's path and test for each of PROGNAME-LIST
5850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5852do
5853  IFS=$as_save_IFS
5854  test -z "$as_dir" && as_dir=.
5855    for ac_prog in egrep; do
5856    for ac_exec_ext in '' $ac_executable_extensions; do
5857      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5858      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5859# Check for GNU ac_path_EGREP and select it if it is found.
5860  # Check for GNU $ac_path_EGREP
5861case `"$ac_path_EGREP" --version 2>&1` in
5862*GNU*)
5863  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5864*)
5865  ac_count=0
5866  $as_echo_n 0123456789 >"conftest.in"
5867  while :
5868  do
5869    cat "conftest.in" "conftest.in" >"conftest.tmp"
5870    mv "conftest.tmp" "conftest.in"
5871    cp "conftest.in" "conftest.nl"
5872    $as_echo 'EGREP' >> "conftest.nl"
5873    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5874    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5875    as_fn_arith $ac_count + 1 && ac_count=$as_val
5876    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5877      # Best one so far, save it but keep looking for a better one
5878      ac_cv_path_EGREP="$ac_path_EGREP"
5879      ac_path_EGREP_max=$ac_count
5880    fi
5881    # 10*(2^10) chars as input seems more than enough
5882    test $ac_count -gt 10 && break
5883  done
5884  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5885esac
5886
5887      $ac_path_EGREP_found && break 3
5888    done
5889  done
5890  done
5891IFS=$as_save_IFS
5892  if test -z "$ac_cv_path_EGREP"; then
5893    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5894  fi
5895else
5896  ac_cv_path_EGREP=$EGREP
5897fi
5898
5899   fi
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5902$as_echo "$ac_cv_path_EGREP" >&6; }
5903 EGREP="$ac_cv_path_EGREP"
5904
5905
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5907$as_echo_n "checking whether ln -s works... " >&6; }
5908LN_S=$as_ln_s
5909if test "$LN_S" = "ln -s"; then
5910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5911$as_echo "yes" >&6; }
5912else
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5914$as_echo "no, using $LN_S" >&6; }
5915fi
5916
5917am__api_version="1.9"
5918# Find a good install program.  We prefer a C program (faster),
5919# so one script is as good as another.  But avoid the broken or
5920# incompatible versions:
5921# SysV /etc/install, /usr/sbin/install
5922# SunOS /usr/etc/install
5923# IRIX /sbin/install
5924# AIX /bin/install
5925# AmigaOS /C/install, which installs bootblocks on floppy discs
5926# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5927# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5928# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5929# OS/2's system install, which has a completely different semantic
5930# ./install, which can be erroneously created by make from ./install.sh.
5931# Reject install programs that cannot install multiple files.
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5933$as_echo_n "checking for a BSD-compatible install... " >&6; }
5934if test -z "$INSTALL"; then
5935if test "${ac_cv_path_install+set}" = set; then :
5936  $as_echo_n "(cached) " >&6
5937else
5938  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939for as_dir in $PATH
5940do
5941  IFS=$as_save_IFS
5942  test -z "$as_dir" && as_dir=.
5943    # Account for people who put trailing slashes in PATH elements.
5944case $as_dir/ in #((
5945  ./ | .// | /[cC]/* | \
5946  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5947  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5948  /usr/ucb/* ) ;;
5949  *)
5950    # OSF1 and SCO ODT 3.0 have their own names for install.
5951    # Don't use installbsd from OSF since it installs stuff as root
5952    # by default.
5953    for ac_prog in ginstall scoinst install; do
5954      for ac_exec_ext in '' $ac_executable_extensions; do
5955        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5956          if test $ac_prog = install &&
5957            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5958            # AIX install.  It has an incompatible calling convention.
5959            :
5960          elif test $ac_prog = install &&
5961            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5962            # program-specific install script used by HP pwplus--don't use.
5963            :
5964          else
5965            rm -rf conftest.one conftest.two conftest.dir
5966            echo one > conftest.one
5967            echo two > conftest.two
5968            mkdir conftest.dir
5969            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5970              test -s conftest.one && test -s conftest.two &&
5971              test -s conftest.dir/conftest.one &&
5972              test -s conftest.dir/conftest.two
5973            then
5974              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5975              break 3
5976            fi
5977          fi
5978        fi
5979      done
5980    done
5981    ;;
5982esac
5983
5984  done
5985IFS=$as_save_IFS
5986
5987rm -rf conftest.one conftest.two conftest.dir
5988
5989fi
5990  if test "${ac_cv_path_install+set}" = set; then
5991    INSTALL=$ac_cv_path_install
5992  else
5993    # As a last resort, use the slow shell script.  Don't cache a
5994    # value for INSTALL within a source directory, because that will
5995    # break other packages using the cache if that directory is
5996    # removed, or if the value is a relative name.
5997    INSTALL=$ac_install_sh
5998  fi
5999fi
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6001$as_echo "$INSTALL" >&6; }
6002
6003# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6004# It thinks the first close brace ends the variable substitution.
6005test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6006
6007test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6008
6009test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6010
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6012$as_echo_n "checking whether build environment is sane... " >&6; }
6013# Just in case
6014sleep 1
6015echo timestamp > conftest.file
6016# Do `set' in a subshell so we don't clobber the current shell's
6017# arguments.  Must try -L first in case configure is actually a
6018# symlink; some systems play weird games with the mod time of symlinks
6019# (eg FreeBSD returns the mod time of the symlink's containing
6020# directory).
6021if (
6022   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6023   if test "$*" = "X"; then
6024      # -L didn't work.
6025      set X `ls -t $srcdir/configure conftest.file`
6026   fi
6027   rm -f conftest.file
6028   if test "$*" != "X $srcdir/configure conftest.file" \
6029      && test "$*" != "X conftest.file $srcdir/configure"; then
6030
6031      # If neither matched, then we have a broken ls.  This can happen
6032      # if, for instance, CONFIG_SHELL is bash and it inherits a
6033      # broken ls alias from the environment.  This has actually
6034      # happened.  Such a system could not be considered "sane".
6035      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
6036alias in your environment" "$LINENO" 5
6037   fi
6038
6039   test "$2" = conftest.file
6040   )
6041then
6042   # Ok.
6043   :
6044else
6045   as_fn_error "newly created file is older than distributed files!
6046Check your system clock" "$LINENO" 5
6047fi
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6049$as_echo "yes" >&6; }
6050test "$program_prefix" != NONE &&
6051  program_transform_name="s&^&$program_prefix&;$program_transform_name"
6052# Use a double $ so make ignores it.
6053test "$program_suffix" != NONE &&
6054  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6055# Double any \ or $.
6056# By default was `s,x,x', remove it if useless.
6057ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6058program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6059
6060# expand $ac_aux_dir to an absolute path
6061am_aux_dir=`cd $ac_aux_dir && pwd`
6062
6063test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6064# Use eval to expand $SHELL
6065if eval "$MISSING --run true"; then
6066  am_missing_run="$MISSING --run "
6067else
6068  am_missing_run=
6069  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
6070$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6071fi
6072
6073if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6074  # We used to keeping the `.' as first argument, in order to
6075  # allow $(mkdir_p) to be used without argument.  As in
6076  #   $(mkdir_p) $(somedir)
6077  # where $(somedir) is conditionally defined.  However this is wrong
6078  # for two reasons:
6079  #  1. if the package is installed by a user who cannot write `.'
6080  #     make install will fail,
6081  #  2. the above comment should most certainly read
6082  #     $(mkdir_p) $(DESTDIR)$(somedir)
6083  #     so it does not work when $(somedir) is undefined and
6084  #     $(DESTDIR) is not.
6085  #  To support the latter case, we have to write
6086  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6087  #  so the `.' trick is pointless.
6088  mkdir_p='mkdir -p --'
6089else
6090  # On NextStep and OpenStep, the `mkdir' command does not
6091  # recognize any option.  It will interpret all options as
6092  # directories to create, and then abort because `.' already
6093  # exists.
6094  for d in ./-p ./--version;
6095  do
6096    test -d $d && rmdir $d
6097  done
6098  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6099  if test -f "$ac_aux_dir/mkinstalldirs"; then
6100    mkdir_p='$(mkinstalldirs)'
6101  else
6102    mkdir_p='$(install_sh) -d'
6103  fi
6104fi
6105
6106for ac_prog in gawk mawk nawk awk
6107do
6108  # Extract the first word of "$ac_prog", so it can be a program name with args.
6109set dummy $ac_prog; ac_word=$2
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111$as_echo_n "checking for $ac_word... " >&6; }
6112if test "${ac_cv_prog_AWK+set}" = set; then :
6113  $as_echo_n "(cached) " >&6
6114else
6115  if test -n "$AWK"; then
6116  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121  IFS=$as_save_IFS
6122  test -z "$as_dir" && as_dir=.
6123    for ac_exec_ext in '' $ac_executable_extensions; do
6124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125    ac_cv_prog_AWK="$ac_prog"
6126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127    break 2
6128  fi
6129done
6130  done
6131IFS=$as_save_IFS
6132
6133fi
6134fi
6135AWK=$ac_cv_prog_AWK
6136if test -n "$AWK"; then
6137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6138$as_echo "$AWK" >&6; }
6139else
6140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141$as_echo "no" >&6; }
6142fi
6143
6144
6145  test -n "$AWK" && break
6146done
6147
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6149$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6150set x ${MAKE-make}
6151ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6152if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  cat >conftest.make <<\_ACEOF
6156SHELL = /bin/sh
6157all:
6158        @echo '@@@%%%=$(MAKE)=@@@%%%'
6159_ACEOF
6160# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6161case `${MAKE-make} -f conftest.make 2>/dev/null` in
6162  *@@@%%%=?*=@@@%%%*)
6163    eval ac_cv_prog_make_${ac_make}_set=yes;;
6164  *)
6165    eval ac_cv_prog_make_${ac_make}_set=no;;
6166esac
6167rm -f conftest.make
6168fi
6169if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6171$as_echo "yes" >&6; }
6172  SET_MAKE=
6173else
6174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175$as_echo "no" >&6; }
6176  SET_MAKE="MAKE=${MAKE-make}"
6177fi
6178
6179rm -rf .tst 2>/dev/null
6180mkdir .tst 2>/dev/null
6181if test -d .tst; then
6182  am__leading_dot=.
6183else
6184  am__leading_dot=_
6185fi
6186rmdir .tst 2>/dev/null
6187
6188DEPDIR="${am__leading_dot}deps"
6189
6190ac_config_commands="$ac_config_commands depfiles"
6191
6192
6193am_make=${MAKE-make}
6194cat > confinc << 'END'
6195am__doit:
6196        @echo done
6197.PHONY: am__doit
6198END
6199# If we don't find an include directive, just comment out the code.
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6201$as_echo_n "checking for style of include used by $am_make... " >&6; }
6202am__include="#"
6203am__quote=
6204_am_result=none
6205# First try GNU make style include.
6206echo "include confinc" > confmf
6207# We grep out `Entering directory' and `Leaving directory'
6208# messages which can occur if `w' ends up in MAKEFLAGS.
6209# In particular we don't look at `^make:' because GNU make might
6210# be invoked under some other name (usually "gmake"), in which
6211# case it prints its new name instead of `make'.
6212if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6213   am__include=include
6214   am__quote=
6215   _am_result=GNU
6216fi
6217# Now try BSD make style include.
6218if test "$am__include" = "#"; then
6219   echo '.include "confinc"' > confmf
6220   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6221      am__include=.include
6222      am__quote="\""
6223      _am_result=BSD
6224   fi
6225fi
6226
6227
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6229$as_echo "$_am_result" >&6; }
6230rm -f confinc confmf
6231
6232# Check whether --enable-dependency-tracking was given.
6233if test "${enable_dependency_tracking+set}" = set; then :
6234  enableval=$enable_dependency_tracking;
6235fi
6236
6237if test "x$enable_dependency_tracking" != xno; then
6238  am_depcomp="$ac_aux_dir/depcomp"
6239  AMDEPBACKSLASH='\'
6240fi
6241
6242
6243if test "x$enable_dependency_tracking" != xno; then
6244  AMDEP_TRUE=
6245  AMDEP_FALSE='#'
6246else
6247  AMDEP_TRUE='#'
6248  AMDEP_FALSE=
6249fi
6250
6251
6252
6253
6254
6255
6256# AC_MSG_NOTICE([Beginning automake initialisation.])
6257# Stuff for automake
6258# test to see if srcdir already configured
6259if test "`cd $srcdir && pwd`" != "`pwd`" &&
6260   test -f $srcdir/config.status; then
6261  as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6262fi
6263
6264# test whether we have cygpath
6265if test -z "$CYGPATH_W"; then
6266  if (cygpath --version) >/dev/null 2>/dev/null; then
6267    CYGPATH_W='cygpath -w'
6268  else
6269    CYGPATH_W=echo
6270  fi
6271fi
6272
6273
6274# Define the identity of the package.
6275 PACKAGE='clp'
6276 VERSION='trunk'
6277
6278
6279cat >>confdefs.h <<_ACEOF
6280#define PACKAGE "$PACKAGE"
6281_ACEOF
6282
6283
6284cat >>confdefs.h <<_ACEOF
6285#define VERSION "$VERSION"
6286_ACEOF
6287
6288# Some tools Automake needs.
6289
6290ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6291
6292
6293AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6294
6295
6296AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6297
6298
6299AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6300
6301
6302MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6303
6304install_sh=${install_sh-"$am_aux_dir/install-sh"}
6305
6306# Installed binaries are usually stripped using `strip' when the user
6307# run `make install-strip'.  However `strip' might not be the right
6308# tool to use in cross-compilation environments, therefore Automake
6309# will honor the `STRIP' environment variable to overrule this program.
6310if test "$cross_compiling" != no; then
6311  if test -n "$ac_tool_prefix"; then
6312  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6313set dummy ${ac_tool_prefix}strip; ac_word=$2
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315$as_echo_n "checking for $ac_word... " >&6; }
6316if test "${ac_cv_prog_STRIP+set}" = set; then :
6317  $as_echo_n "(cached) " >&6
6318else
6319  if test -n "$STRIP"; then
6320  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6321else
6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323for as_dir in $PATH
6324do
6325  IFS=$as_save_IFS
6326  test -z "$as_dir" && as_dir=.
6327    for ac_exec_ext in '' $ac_executable_extensions; do
6328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331    break 2
6332  fi
6333done
6334  done
6335IFS=$as_save_IFS
6336
6337fi
6338fi
6339STRIP=$ac_cv_prog_STRIP
6340if test -n "$STRIP"; then
6341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6342$as_echo "$STRIP" >&6; }
6343else
6344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345$as_echo "no" >&6; }
6346fi
6347
6348
6349fi
6350if test -z "$ac_cv_prog_STRIP"; then
6351  ac_ct_STRIP=$STRIP
6352  # Extract the first word of "strip", so it can be a program name with args.
6353set dummy strip; ac_word=$2
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355$as_echo_n "checking for $ac_word... " >&6; }
6356if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6357  $as_echo_n "(cached) " >&6
6358else
6359  if test -n "$ac_ct_STRIP"; then
6360  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6361else
6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH
6364do
6365  IFS=$as_save_IFS
6366  test -z "$as_dir" && as_dir=.
6367    for ac_exec_ext in '' $ac_executable_extensions; do
6368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369    ac_cv_prog_ac_ct_STRIP="strip"
6370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371    break 2
6372  fi
6373done
6374  done
6375IFS=$as_save_IFS
6376
6377fi
6378fi
6379ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6380if test -n "$ac_ct_STRIP"; then
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6382$as_echo "$ac_ct_STRIP" >&6; }
6383else
6384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385$as_echo "no" >&6; }
6386fi
6387
6388  if test "x$ac_ct_STRIP" = x; then
6389    STRIP=":"
6390  else
6391    case $cross_compiling:$ac_tool_warned in
6392yes:)
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395ac_tool_warned=yes ;;
6396esac
6397    STRIP=$ac_ct_STRIP
6398  fi
6399else
6400  STRIP="$ac_cv_prog_STRIP"
6401fi
6402
6403fi
6404INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6405
6406# We need awk for the "check" target.  The system "awk" is bad on
6407# some platforms.
6408# Always define AMTAR for backward compatibility.
6409
6410AMTAR=${AMTAR-"${am_missing_run}tar"}
6411
6412am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6413
6414
6415
6416
6417depcc="$CC"   am_compiler_list=
6418
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6420$as_echo_n "checking dependency style of $depcc... " >&6; }
6421if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6422  $as_echo_n "(cached) " >&6
6423else
6424  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6425  # We make a subdir and do the tests there.  Otherwise we can end up
6426  # making bogus files that we don't know about and never remove.  For
6427  # instance it was reported that on HP-UX the gcc test will end up
6428  # making a dummy file named `D' -- because `-MD' means `put the output
6429  # in D'.
6430  mkdir conftest.dir
6431  # Copy depcomp to subdir because otherwise we won't find it if we're
6432  # using a relative directory.
6433  cp "$am_depcomp" conftest.dir
6434  cd conftest.dir
6435  # We will build objects and dependencies in a subdirectory because
6436  # it helps to detect inapplicable dependency modes.  For instance
6437  # both Tru64's cc and ICC support -MD to output dependencies as a
6438  # side effect of compilation, but ICC will put the dependencies in
6439  # the current directory while Tru64 will put them in the object
6440  # directory.
6441  mkdir sub
6442
6443  am_cv_CC_dependencies_compiler_type=none
6444  if test "$am_compiler_list" = ""; then
6445     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6446  fi
6447  for depmode in $am_compiler_list; do
6448    # Setup a source with many dependencies, because some compilers
6449    # like to wrap large dependency lists on column 80 (with \), and
6450    # we should not choose a depcomp mode which is confused by this.
6451    #
6452    # We need to recreate these files for each test, as the compiler may
6453    # overwrite some of them when testing with obscure command lines.
6454    # This happens at least with the AIX C compiler.
6455    : > sub/conftest.c
6456    for i in 1 2 3 4 5 6; do
6457      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6458      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6459      # Solaris 8's {/usr,}/bin/sh.
6460      touch sub/conftst$i.h
6461    done
6462    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6463
6464    case $depmode in
6465    nosideeffect)
6466      # after this tag, mechanisms are not by side-effect, so they'll
6467      # only be used when explicitly requested
6468      if test "x$enable_dependency_tracking" = xyes; then
6469        continue
6470      else
6471        break
6472      fi
6473      ;;
6474    none) break ;;
6475    esac
6476    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6477    # mode.  It turns out that the SunPro C++ compiler does not properly
6478    # handle `-M -o', and we need to detect this.
6479    if depmode=$depmode \
6480       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6481       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6482       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6483         >/dev/null 2>conftest.err &&
6484       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6485       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6486       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6487      # icc doesn't choke on unknown options, it will just issue warnings
6488      # or remarks (even with -Werror).  So we grep stderr for any message
6489      # that says an option was ignored or not supported.
6490      # When given -MP, icc 7.0 and 7.1 complain thusly:
6491      #   icc: Command line warning: ignoring option '-M'; no argument required
6492      # The diagnosis changed in icc 8.0:
6493      #   icc: Command line remark: option '-MP' not supported
6494      if (grep 'ignoring option' conftest.err ||
6495          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6496        am_cv_CC_dependencies_compiler_type=$depmode
6497        break
6498      fi
6499    fi
6500  done
6501
6502  cd ..
6503  rm -rf conftest.dir
6504else
6505  am_cv_CC_dependencies_compiler_type=none
6506fi
6507
6508fi
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6510$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6511CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6512
6513
6514
6515if
6516  test "x$enable_dependency_tracking" != xno \
6517  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6518  am__fastdepCC_TRUE=
6519  am__fastdepCC_FALSE='#'
6520else
6521  am__fastdepCC_TRUE='#'
6522  am__fastdepCC_FALSE=
6523fi
6524
6525
6526depcc="$CXX"  am_compiler_list=
6527
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6529$as_echo_n "checking dependency style of $depcc... " >&6; }
6530if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6531  $as_echo_n "(cached) " >&6
6532else
6533  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6534  # We make a subdir and do the tests there.  Otherwise we can end up
6535  # making bogus files that we don't know about and never remove.  For
6536  # instance it was reported that on HP-UX the gcc test will end up
6537  # making a dummy file named `D' -- because `-MD' means `put the output
6538  # in D'.
6539  mkdir conftest.dir
6540  # Copy depcomp to subdir because otherwise we won't find it if we're
6541  # using a relative directory.
6542  cp "$am_depcomp" conftest.dir
6543  cd conftest.dir
6544  # We will build objects and dependencies in a subdirectory because
6545  # it helps to detect inapplicable dependency modes.  For instance
6546  # both Tru64's cc and ICC support -MD to output dependencies as a
6547  # side effect of compilation, but ICC will put the dependencies in
6548  # the current directory while Tru64 will put them in the object
6549  # directory.
6550  mkdir sub
6551
6552  am_cv_CXX_dependencies_compiler_type=none
6553  if test "$am_compiler_list" = ""; then
6554     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6555  fi
6556  for depmode in $am_compiler_list; do
6557    # Setup a source with many dependencies, because some compilers
6558    # like to wrap large dependency lists on column 80 (with \), and
6559    # we should not choose a depcomp mode which is confused by this.
6560    #
6561    # We need to recreate these files for each test, as the compiler may
6562    # overwrite some of them when testing with obscure command lines.
6563    # This happens at least with the AIX C compiler.
6564    : > sub/conftest.c
6565    for i in 1 2 3 4 5 6; do
6566      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6567      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6568      # Solaris 8's {/usr,}/bin/sh.
6569      touch sub/conftst$i.h
6570    done
6571    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6572
6573    case $depmode in
6574    nosideeffect)
6575      # after this tag, mechanisms are not by side-effect, so they'll
6576      # only be used when explicitly requested
6577      if test "x$enable_dependency_tracking" = xyes; then
6578        continue
6579      else
6580        break
6581      fi
6582      ;;
6583    none) break ;;
6584    esac
6585    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6586    # mode.  It turns out that the SunPro C++ compiler does not properly
6587    # handle `-M -o', and we need to detect this.
6588    if depmode=$depmode \
6589       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6590       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6591       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6592         >/dev/null 2>conftest.err &&
6593       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6594       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6595       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6596      # icc doesn't choke on unknown options, it will just issue warnings
6597      # or remarks (even with -Werror).  So we grep stderr for any message
6598      # that says an option was ignored or not supported.
6599      # When given -MP, icc 7.0 and 7.1 complain thusly:
6600      #   icc: Command line warning: ignoring option '-M'; no argument required
6601      # The diagnosis changed in icc 8.0:
6602      #   icc: Command line remark: option '-MP' not supported
6603      if (grep 'ignoring option' conftest.err ||
6604          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6605        am_cv_CXX_dependencies_compiler_type=$depmode
6606        break
6607      fi
6608    fi
6609  done
6610
6611  cd ..
6612  rm -rf conftest.dir
6613else
6614  am_cv_CXX_dependencies_compiler_type=none
6615fi
6616
6617fi
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6619$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6620CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6621
6622
6623
6624if
6625  test "x$enable_dependency_tracking" != xno \
6626  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6627  am__fastdepCXX_TRUE=
6628  am__fastdepCXX_FALSE='#'
6629else
6630  am__fastdepCXX_TRUE='#'
6631  am__fastdepCXX_FALSE=
6632fi
6633
6634
6635
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6637$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6638    # Check whether --enable-maintainer-mode was given.
6639if test "${enable_maintainer_mode+set}" = set; then :
6640  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6641else
6642  USE_MAINTAINER_MODE=no
6643fi
6644
6645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6646$as_echo "$USE_MAINTAINER_MODE" >&6; }
6647
6648
6649if test $USE_MAINTAINER_MODE = yes; then
6650  MAINTAINER_MODE_TRUE=
6651  MAINTAINER_MODE_FALSE='#'
6652else
6653  MAINTAINER_MODE_TRUE='#'
6654  MAINTAINER_MODE_FALSE=
6655fi
6656
6657  MAINT=$MAINTAINER_MODE_TRUE
6658
6659
6660
6661coin_have_externals=no
6662if test "$enable_maintainer_mode" = yes; then
6663
6664  # If maintainer mode is chosen, we make sure that the correct versions
6665  # of the tools are used, and that we know where libtool.m4 is (to
6666  # recreate acinclude.m4)
6667
6668
6669  LIBTOOLM4=
6670  # Normally, $HOME
6671  AUTOTOOLS_DFLT=$HOME
6672
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the correct autotools" >&5
6674$as_echo_n "checking whether we are using the correct autotools... " >&6; }
6675if test "${ac_cv_use_correct_autotools+set}" = set; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  ac_cv_use_correct_autotools=check
6679fi
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_correct_autotools" >&5
6681$as_echo "$ac_cv_use_correct_autotools" >&6; }
6682
6683  if test $ac_cv_use_correct_autotools = check; then
6684    ac_cv_use_correct_autotools=yes
6685    # Check if we have autoconf
6686    # Extract the first word of "autoconf", so it can be a program name with args.
6687set dummy autoconf; ac_word=$2
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689$as_echo_n "checking for $ac_word... " >&6; }
6690if test "${ac_cv_prog_have_autoconf+set}" = set; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693  if test -n "$have_autoconf"; then
6694  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6695else
6696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697for as_dir in $PATH
6698do
6699  IFS=$as_save_IFS
6700  test -z "$as_dir" && as_dir=.
6701    for ac_exec_ext in '' $ac_executable_extensions; do
6702  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703    ac_cv_prog_have_autoconf="yes"
6704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705    break 2
6706  fi
6707done
6708  done
6709IFS=$as_save_IFS
6710
6711  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6712fi
6713fi
6714have_autoconf=$ac_cv_prog_have_autoconf
6715if test -n "$have_autoconf"; then
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_autoconf" >&5
6717$as_echo "$have_autoconf" >&6; }
6718else
6719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720$as_echo "no" >&6; }
6721fi
6722
6723
6724    if test $have_autoconf = no; then
6725      as_fn_error "You specified you want to use maintainer mode, but I cannot find autoconf in your path." "$LINENO" 5
6726    fi
6727
6728    # Check whether autoconf is the correct version
6729    correct_version='2.59'
6730    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6732$as_echo_n "checking whether we are using the correct version ($correct_version) of autoconf... " >&6; }
6733    autoconf --version > confauto.out 2>&1
6734    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6735      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6736$as_echo "yes" >&6; }
6737    else
6738      rm -f confauto.out
6739      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740$as_echo "no" >&6; }
6741      as_fn_error "You don't have the correct version of autoconf as the first one in your path." "$LINENO" 5
6742    fi
6743    rm -f confauto.out
6744
6745    # Check if the executable autoconf is picked up from the correct location
6746    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoconf is coming from the correct location" >&5
6747$as_echo_n "checking whether autoconf is coming from the correct location... " >&6; }
6748    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6749    autoconf_dir=`cd $autoconf_dir; pwd`
6750    if test x$AUTOTOOLS_DIR = x; then
6751      want_dir=$AUTOTOOLS_DFLT/bin
6752    else
6753      want_dir=$AUTOTOOLS_DIR/bin
6754    fi
6755    if test $autoconf_dir = `cd $want_dir; pwd`; then
6756      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6757$as_echo "yes" >&6; }
6758    else
6759      rm -f confauto.out
6760      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762      as_fn_error "The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." "$LINENO" 5
6763    fi
6764
6765    # Check if we have automake
6766    # Extract the first word of "automake", so it can be a program name with args.
6767set dummy automake; ac_word=$2
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769$as_echo_n "checking for $ac_word... " >&6; }
6770if test "${ac_cv_prog_have_automake+set}" = set; then :
6771  $as_echo_n "(cached) " >&6
6772else
6773  if test -n "$have_automake"; then
6774  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779  IFS=$as_save_IFS
6780  test -z "$as_dir" && as_dir=.
6781    for ac_exec_ext in '' $ac_executable_extensions; do
6782  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783    ac_cv_prog_have_automake="yes"
6784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785    break 2
6786  fi
6787done
6788  done
6789IFS=$as_save_IFS
6790
6791  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6792fi
6793fi
6794have_automake=$ac_cv_prog_have_automake
6795if test -n "$have_automake"; then
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_automake" >&5
6797$as_echo "$have_automake" >&6; }
6798else
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803
6804    if test $have_automake = no; then
6805      as_fn_error "You specified you want to use maintainer mode, but I cannot find automake in your path." "$LINENO" 5
6806    fi
6807
6808    # Check whether automake is the correct version
6809    correct_version='1.9.6'
6810    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the correct version ($correct_version) of automake" >&5
6812$as_echo_n "checking whether we are using the correct version ($correct_version) of automake... " >&6; }
6813    automake --version > confauto.out 2>&1
6814    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6815      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6816$as_echo "yes" >&6; }
6817    else
6818      rm -f confauto.out
6819      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820$as_echo "no" >&6; }
6821      as_fn_error "You don't have the correct version of automake as the first one in your path." "$LINENO" 5
6822    fi
6823    rm -f confauto.out
6824
6825    # Check if the executable automake is picked up from the correct location
6826    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether automake is coming from the correct location" >&5
6827$as_echo_n "checking whether automake is coming from the correct location... " >&6; }
6828    automake_dir=`which automake | sed -e 's=/automake=='`
6829    automake_dir=`cd $automake_dir; pwd`
6830    if test x$AUTOTOOLS_DIR = x; then
6831      want_dir=$AUTOTOOLS_DFLT/bin
6832    else
6833      want_dir=$AUTOTOOLS_DIR/bin
6834    fi
6835    if test $automake_dir = `cd $want_dir; pwd`; then
6836      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6837$as_echo "yes" >&6; }
6838    else
6839      rm -f confauto.out
6840      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842      as_fn_error "The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." "$LINENO" 5
6843    fi
6844
6845    # Check if this is the correct version of libtool (with escaped dots)
6846    if test x$AUTOTOOLS_DIR = x; then
6847      want_dir=$AUTOTOOLS_DFLT/share
6848    else
6849      want_dir=$AUTOTOOLS_DIR/share
6850    fi
6851    correct_version='1.5.22'
6852    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6853    if test -r $want_dir/libtool/ltmain.sh; then
6854  have_ltmain=yes
6855  :
6856else
6857  have_ltmain=no
6858  :
6859fi
6860
6861    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the correct version ($correct_version) of libtool." >&5
6862$as_echo_n "checking whether we are using the correct version ($correct_version) of libtool.... " >&6; }
6863    if test $have_ltmain = yes; then
6864    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6865        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6866$as_echo "yes" >&6; }
6867      else
6868        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869$as_echo "no" >&6; }
6870        as_fn_error "You don't have the correct version of libtool." "$LINENO" 5
6871      fi
6872    else
6873      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875      as_fn_error "I cannot find the ltmain.sh file." "$LINENO" 5
6876    fi
6877  fi
6878
6879  # Check if we can find the libtool file
6880  if test x$AUTOTOOLS_DIR = x; then
6881    want_dir=$AUTOTOOLS_DFLT/share
6882  else
6883    want_dir=$AUTOTOOLS_DIR/share
6884  fi
6885  if test -r $want_dir/aclocal/libtool.m4; then
6886  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6887  :
6888else
6889  as_fn_error "I cannot find the libtool.m4 file." "$LINENO" 5
6890  :
6891fi
6892
6893
6894  # Check if we have an Dependencies file
6895  if test -r $srcdir/Dependencies; then
6896    coin_have_externals=yes
6897  fi
6898  # Check if subversion is installed and understands https
6899  # Extract the first word of "svn", so it can be a program name with args.
6900set dummy svn; ac_word=$2
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902$as_echo_n "checking for $ac_word... " >&6; }
6903if test "${ac_cv_prog_have_svn+set}" = set; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906  if test -n "$have_svn"; then
6907  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912  IFS=$as_save_IFS
6913  test -z "$as_dir" && as_dir=.
6914    for ac_exec_ext in '' $ac_executable_extensions; do
6915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916    ac_cv_prog_have_svn="yes"
6917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918    break 2
6919  fi
6920done
6921  done
6922IFS=$as_save_IFS
6923
6924  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6925fi
6926fi
6927have_svn=$ac_cv_prog_have_svn
6928if test -n "$have_svn"; then
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_svn" >&5
6930$as_echo "$have_svn" >&6; }
6931else
6932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933$as_echo "no" >&6; }
6934fi
6935
6936
6937  if test x$have_svn = xyes; then
6938    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether svn understands https" >&5
6939$as_echo_n "checking whether svn understands https... " >&6; }
6940if test "${ac_cv_svn_understands_https+set}" = set; then :
6941  $as_echo_n "(cached) " >&6
6942else
6943  svn --version > confauto.out 2>&1
6944                    if $EGREP https confauto.out >/dev/null 2>&1; then
6945                      ac_cv_svn_understands_https=yes
6946                    else
6947                      ac_cv_svn_understands_https=no
6948                      have_svn=no
6949                      ac_cv_prog_have_svn=no
6950                    fi
6951                    rm -f confauto.out
6952fi
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_svn_understands_https" >&5
6954$as_echo "$ac_cv_svn_understands_https" >&6; }
6955  fi
6956
6957  # Find the location of the BuildTools directory
6958  BUILDTOOLSDIR=
6959  if test -r $srcdir/BuildTools/coin.m4; then
6960    BUILDTOOLSDIR=$srcdir/BuildTools
6961  else
6962    if test -r $srcdir/../BuildTools/coin.m4; then
6963      BUILDTOOLSDIR=$srcdir/../BuildTools
6964    else
6965      if test -r $srcdir/../../BuildTools/coin.m4; then
6966        BUILDTOOLSDIR=$srcdir/../../BuildTools
6967      else
6968        { as_fn_set_status better disable maintainer mode.
6969as_fn_error "Cannot find the BuildTools directory" "$LINENO" 5; }
6970      fi
6971    fi
6972  fi
6973
6974
6975  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6976  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6977    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6978  fi
6979
6980  # The following variable is set to the name of the directory where
6981  # the autotool scripts are located
6982
6983  AUX_DIR=$ac_aux_dir
6984fi
6985
6986# helpful variable for the base directory of this package
6987abs_source_dir=`cd $srcdir; pwd`
6988
6989
6990# Stuff for example Makefiles
6991if test x$prefix = xNONE; then
6992  full_prefix=$ac_default_prefix
6993else
6994  full_prefix=$prefix
6995fi
6996full_prefix=`cd $full_prefix ; pwd`
6997
6998abs_lib_dir=$full_prefix/lib
6999
7000abs_include_dir=$full_prefix/include
7001
7002abs_bin_dir=$full_prefix/bin
7003
7004
7005
7006if test $coin_have_externals = yes && test x$have_svn = xyes; then
7007  HAVE_EXTERNALS_TRUE=
7008  HAVE_EXTERNALS_FALSE='#'
7009else
7010  HAVE_EXTERNALS_TRUE='#'
7011  HAVE_EXTERNALS_FALSE=
7012fi
7013
7014
7015# AC_MSG_NOTICE([End automake initialisation.])
7016
7017
7018
7019LIBTOOL=
7020if test -f ../libtool; then
7021  coin_config_dir=..
7022  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
7023fi
7024if test "x$LIBTOOL" = x; then
7025  if test -f ../../libtool; then
7026    coin_config_dir=../..
7027    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
7028  fi
7029fi
7030
7031if test "x$LIBTOOL" = x; then
7032# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
7033  # Stuff for libtool
7034  # Check whether --enable-shared was given.
7035if test "${enable_shared+set}" = set; then :
7036  enableval=$enable_shared; p=${PACKAGE-default}
7037    case $enableval in
7038    yes) enable_shared=yes ;;
7039    no) enable_shared=no ;;
7040    *)
7041      enable_shared=no
7042      # Look at the argument we got.  We use all the common list separators.
7043      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7044      for pkg in $enableval; do
7045        IFS="$lt_save_ifs"
7046        if test "X$pkg" = "X$p"; then
7047          enable_shared=yes
7048        fi
7049      done
7050      IFS="$lt_save_ifs"
7051      ;;
7052    esac
7053else
7054  enable_shared=yes
7055fi
7056
7057
7058# Check whether --enable-fast-install was given.
7059if test "${enable_fast_install+set}" = set; then :
7060  enableval=$enable_fast_install; p=${PACKAGE-default}
7061    case $enableval in
7062    yes) enable_fast_install=yes ;;
7063    no) enable_fast_install=no ;;
7064    *)
7065      enable_fast_install=no
7066      # Look at the argument we got.  We use all the common list separators.
7067      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7068      for pkg in $enableval; do
7069        IFS="$lt_save_ifs"
7070        if test "X$pkg" = "X$p"; then
7071          enable_fast_install=yes
7072        fi
7073      done
7074      IFS="$lt_save_ifs"
7075      ;;
7076    esac
7077else
7078  enable_fast_install=yes
7079fi
7080
7081
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7083$as_echo_n "checking host system type... " >&6; }
7084if test "${ac_cv_host+set}" = set; then :
7085  $as_echo_n "(cached) " >&6
7086else
7087  if test "x$host_alias" = x; then
7088  ac_cv_host=$ac_cv_build
7089else
7090  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7091    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7092fi
7093
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7096$as_echo "$ac_cv_host" >&6; }
7097case $ac_cv_host in
7098*-*-*) ;;
7099*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
7100esac
7101host=$ac_cv_host
7102ac_save_IFS=$IFS; IFS='-'
7103set x $ac_cv_host
7104shift
7105host_cpu=$1
7106host_vendor=$2
7107shift; shift
7108# Remember, the first character of IFS is used to create $*,
7109# except with old shells:
7110host_os=$*
7111IFS=$ac_save_IFS
7112case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7113
7114
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7116$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7117if test "${lt_cv_path_SED+set}" = set; then :
7118  $as_echo_n "(cached) " >&6
7119else
7120  # Loop through the user's path and test for sed and gsed.
7121# Then use that list of sed's as ones to test for truncation.
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125  IFS=$as_save_IFS
7126  test -z "$as_dir" && as_dir=.
7127  for lt_ac_prog in sed gsed; do
7128    for ac_exec_ext in '' $ac_executable_extensions; do
7129      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7130        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7131      fi
7132    done
7133  done
7134done
7135lt_ac_max=0
7136lt_ac_count=0
7137# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7138# along with /bin/sed that truncates output.
7139for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7140  test ! -f $lt_ac_sed && continue
7141  cat /dev/null > conftest.in
7142  lt_ac_count=0
7143  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7144  # Check for GNU sed and select it if it is found.
7145  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7146    lt_cv_path_SED=$lt_ac_sed
7147    break
7148  fi
7149  while true; do
7150    cat conftest.in conftest.in >conftest.tmp
7151    mv conftest.tmp conftest.in
7152    cp conftest.in conftest.nl
7153    echo >>conftest.nl
7154    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7155    cmp -s conftest.out conftest.nl || break
7156    # 10000 chars as input seems more than enough
7157    test $lt_ac_count -gt 10 && break
7158    lt_ac_count=`expr $lt_ac_count + 1`
7159    if test $lt_ac_count -gt $lt_ac_max; then
7160      lt_ac_max=$lt_ac_count
7161      lt_cv_path_SED=$lt_ac_sed
7162    fi
7163  done
7164done
7165
7166fi
7167
7168SED=$lt_cv_path_SED
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
7170$as_echo "$SED" >&6; }
7171
7172
7173# Check whether --with-gnu-ld was given.
7174if test "${with_gnu_ld+set}" = set; then :
7175  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7176else
7177  with_gnu_ld=no
7178fi
7179
7180ac_prog=ld
7181if test "$GCC" = yes; then
7182  # Check if gcc -print-prog-name=ld gives a path.
7183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7184$as_echo_n "checking for ld used by $CC... " >&6; }
7185  case $host in
7186  *-*-mingw*)
7187    # gcc leaves a trailing carriage return which upsets mingw
7188    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7189  *)
7190    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7191  esac
7192  case $ac_prog in
7193    # Accept absolute paths.
7194    [\\/]* | ?:[\\/]*)
7195      re_direlt='/[^/][^/]*/\.\./'
7196      # Canonicalize the pathname of ld
7197      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7198      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7199        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7200      done
7201      test -z "$LD" && LD="$ac_prog"
7202      ;;
7203  "")
7204    # If it fails, then pretend we aren't using GCC.
7205    ac_prog=ld
7206    ;;
7207  *)
7208    # If it is relative, then search for the first ld in PATH.
7209    with_gnu_ld=unknown
7210    ;;
7211  esac
7212elif test "$with_gnu_ld" = yes; then
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7214$as_echo_n "checking for GNU ld... " >&6; }
7215else
7216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7217$as_echo_n "checking for non-GNU ld... " >&6; }
7218fi
7219if test "${lt_cv_path_LD+set}" = set; then :
7220  $as_echo_n "(cached) " >&6
7221else
7222  if test -z "$LD"; then
7223  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7224  for ac_dir in $PATH; do
7225    IFS="$lt_save_ifs"
7226    test -z "$ac_dir" && ac_dir=.
7227    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7228      lt_cv_path_LD="$ac_dir/$ac_prog"
7229      # Check to see if the program is GNU ld.  I'd rather use --version,
7230      # but apparently some variants of GNU ld only accept -v.
7231      # Break only if it was the GNU/non-GNU ld that we prefer.
7232      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7233      *GNU* | *'with BFD'*)
7234        test "$with_gnu_ld" != no && break
7235        ;;
7236      *)
7237        test "$with_gnu_ld" != yes && break
7238        ;;
7239      esac
7240    fi
7241  done
7242  IFS="$lt_save_ifs"
7243else
7244  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7245fi
7246fi
7247
7248LD="$lt_cv_path_LD"
7249if test -n "$LD"; then
7250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7251$as_echo "$LD" >&6; }
7252else
7253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254$as_echo "no" >&6; }
7255fi
7256test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7258$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7259if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7260  $as_echo_n "(cached) " >&6
7261else
7262  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7263case `$LD -v 2>&1 </dev/null` in
7264*GNU* | *'with BFD'*)
7265  lt_cv_prog_gnu_ld=yes
7266  ;;
7267*)
7268  lt_cv_prog_gnu_ld=no
7269  ;;
7270esac
7271fi
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7273$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7274with_gnu_ld=$lt_cv_prog_gnu_ld
7275
7276
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7278$as_echo_n "checking for $LD option to reload object files... " >&6; }
7279if test "${lt_cv_ld_reload_flag+set}" = set; then :
7280  $as_echo_n "(cached) " >&6
7281else
7282  lt_cv_ld_reload_flag='-r'
7283fi
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7285$as_echo "$lt_cv_ld_reload_flag" >&6; }
7286reload_flag=$lt_cv_ld_reload_flag
7287case $reload_flag in
7288"" | " "*) ;;
7289*) reload_flag=" $reload_flag" ;;
7290esac
7291reload_cmds='$LD$reload_flag -o $output$reload_objs'
7292case $host_os in
7293  darwin*)
7294    if test "$GCC" = yes; then
7295      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7296    else
7297      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7298    fi
7299    ;;
7300esac
7301
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
7303$as_echo_n "checking for BSD-compatible nm... " >&6; }
7304if test "${lt_cv_path_NM+set}" = set; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  if test -n "$NM"; then
7308  # Let the user override the test.
7309  lt_cv_path_NM="$NM"
7310else
7311  lt_nm_to_check="${ac_tool_prefix}nm"
7312  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7313    lt_nm_to_check="$lt_nm_to_check nm"
7314  fi
7315  for lt_tmp_nm in $lt_nm_to_check; do
7316    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7317    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7318      IFS="$lt_save_ifs"
7319      test -z "$ac_dir" && ac_dir=.
7320      tmp_nm="$ac_dir/$lt_tmp_nm"
7321      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7322        # Check to see if the nm accepts a BSD-compat flag.
7323        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7324        #   nm: unknown option "B" ignored
7325        # Tru64's nm complains that /dev/null is an invalid object file
7326        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7327        */dev/null* | *'Invalid file or object type'*)
7328          lt_cv_path_NM="$tmp_nm -B"
7329          break
7330          ;;
7331        *)
7332          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7333          */dev/null*)
7334            lt_cv_path_NM="$tmp_nm -p"
7335            break
7336            ;;
7337          *)
7338            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7339            continue # so that we can try to find one that supports BSD flags
7340            ;;
7341          esac
7342          ;;
7343        esac
7344      fi
7345    done
7346    IFS="$lt_save_ifs"
7347  done
7348  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7349fi
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7352$as_echo "$lt_cv_path_NM" >&6; }
7353NM="$lt_cv_path_NM"
7354
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
7356$as_echo_n "checking how to recognise dependent libraries... " >&6; }
7357if test "${lt_cv_deplibs_check_method+set}" = set; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  lt_cv_file_magic_cmd='$MAGIC_CMD'
7361lt_cv_file_magic_test_file=
7362lt_cv_deplibs_check_method='unknown'
7363# Need to set the preceding variable on all platforms that support
7364# interlibrary dependencies.
7365# 'none' -- dependencies not supported.
7366# `unknown' -- same as none, but documents that we really don't know.
7367# 'pass_all' -- all dependencies passed with no checks.
7368# 'test_compile' -- check by making test program.
7369# 'file_magic [[regex]]' -- check by looking for files in library path
7370# which responds to the $file_magic_cmd with a given extended regex.
7371# If you have `file' or equivalent on your system and you're not sure
7372# whether `pass_all' will *always* work, you probably want this one.
7373
7374case $host_os in
7375aix4* | aix5*)
7376  lt_cv_deplibs_check_method=pass_all
7377  ;;
7378
7379beos*)
7380  lt_cv_deplibs_check_method=pass_all
7381  ;;
7382
7383bsdi[45]*)
7384  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7385  lt_cv_file_magic_cmd='/usr/bin/file -L'
7386  lt_cv_file_magic_test_file=/shlib/libc.so
7387  ;;
7388
7389cygwin*)
7390  # func_win32_libid is a shell function defined in ltmain.sh
7391  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7392  lt_cv_file_magic_cmd='func_win32_libid'
7393  ;;
7394
7395mingw* | pw32*)
7396  # Base MSYS/MinGW do not provide the 'file' command needed by
7397  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7398  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7399  lt_cv_file_magic_cmd='$OBJDUMP -f'
7400  ;;
7401
7402darwin* | rhapsody*)
7403  lt_cv_deplibs_check_method=pass_all
7404  ;;
7405
7406freebsd* | kfreebsd*-gnu | dragonfly*)
7407  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7408    case $host_cpu in
7409    i*86 )
7410      # Not sure whether the presence of OpenBSD here was a mistake.
7411      # Let's accept both of them until this is cleared up.
7412      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7413      lt_cv_file_magic_cmd=/usr/bin/file
7414      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7415      ;;
7416    esac
7417  else
7418    lt_cv_deplibs_check_method=pass_all
7419  fi
7420  ;;
7421
7422gnu*)
7423  lt_cv_deplibs_check_method=pass_all
7424  ;;
7425
7426hpux10.20* | hpux11*)
7427  lt_cv_file_magic_cmd=/usr/bin/file
7428  case $host_cpu in
7429  ia64*)
7430    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7431    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7432    ;;
7433  hppa*64*)
7434    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7435    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7436    ;;
7437  *)
7438    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7439    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7440    ;;
7441  esac
7442  ;;
7443
7444interix3*)
7445  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7446  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7447  ;;
7448
7449irix5* | irix6* | nonstopux*)
7450  case $LD in
7451  *-32|*"-32 ") libmagic=32-bit;;
7452  *-n32|*"-n32 ") libmagic=N32;;
7453  *-64|*"-64 ") libmagic=64-bit;;
7454  *) libmagic=never-match;;
7455  esac
7456  lt_cv_deplibs_check_method=pass_all
7457  ;;
7458
7459# This must be Linux ELF.
7460linux*)
7461  lt_cv_deplibs_check_method=pass_all
7462  ;;
7463
7464netbsd*)
7465  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7466    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7467  else
7468    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7469  fi
7470  ;;
7471
7472newos6*)
7473  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7474  lt_cv_file_magic_cmd=/usr/bin/file
7475  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7476  ;;
7477
7478nto-qnx*)
7479  lt_cv_deplibs_check_method=unknown
7480  ;;
7481
7482openbsd*)
7483  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7484    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7485  else
7486    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7487  fi
7488  ;;
7489
7490osf3* | osf4* | osf5*)
7491  lt_cv_deplibs_check_method=pass_all
7492  ;;
7493
7494solaris*)
7495  lt_cv_deplibs_check_method=pass_all
7496  ;;
7497
7498sysv4 | sysv4.3*)
7499  case $host_vendor in
7500  motorola)
7501    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7502    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7503    ;;
7504  ncr)
7505    lt_cv_deplibs_check_method=pass_all
7506    ;;
7507  sequent)
7508    lt_cv_file_magic_cmd='/bin/file'
7509    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7510    ;;
7511  sni)
7512    lt_cv_file_magic_cmd='/bin/file'
7513    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7514    lt_cv_file_magic_test_file=/lib/libc.so
7515    ;;
7516  siemens)
7517    lt_cv_deplibs_check_method=pass_all
7518    ;;
7519  pc)
7520    lt_cv_deplibs_check_method=pass_all
7521    ;;
7522  esac
7523  ;;
7524
7525sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7526  lt_cv_deplibs_check_method=pass_all
7527  ;;
7528esac
7529
7530fi
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7532$as_echo "$lt_cv_deplibs_check_method" >&6; }
7533file_magic_cmd=$lt_cv_file_magic_cmd
7534deplibs_check_method=$lt_cv_deplibs_check_method
7535test -z "$deplibs_check_method" && deplibs_check_method=unknown
7536
7537
7538
7539
7540# If no C compiler was specified, use CC.
7541LTCC=${LTCC-"$CC"}
7542
7543# If no C compiler flags were specified, use CFLAGS.
7544LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7545
7546# Allow CC to be a program name with arguments.
7547compiler=$CC
7548
7549# Check whether --enable-libtool-lock was given.
7550if test "${enable_libtool_lock+set}" = set; then :
7551  enableval=$enable_libtool_lock;
7552fi
7553
7554test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7555
7556# Some flags need to be propagated to the compiler or linker for good
7557# libtool support.
7558case $host in
7559ia64-*-hpux*)
7560  # Find out which ABI we are using.
7561  echo 'int i;' > conftest.$ac_ext
7562  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7563  (eval $ac_compile) 2>&5
7564  ac_status=$?
7565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7566  test $ac_status = 0; }; then
7567    case `/usr/bin/file conftest.$ac_objext` in
7568    *ELF-32*)
7569      HPUX_IA64_MODE="32"
7570      ;;
7571    *ELF-64*)
7572      HPUX_IA64_MODE="64"
7573      ;;
7574    esac
7575  fi
7576  rm -rf conftest*
7577  ;;
7578*-*-irix6*)
7579  # Find out which ABI we are using.
7580  echo '#line 7580 "configure"' > conftest.$ac_ext
7581  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7582  (eval $ac_compile) 2>&5
7583  ac_status=$?
7584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585  test $ac_status = 0; }; then
7586   if test "$lt_cv_prog_gnu_ld" = yes; then
7587    case `/usr/bin/file conftest.$ac_objext` in
7588    *32-bit*)
7589      LD="${LD-ld} -melf32bsmip"
7590      ;;
7591    *N32*)
7592      LD="${LD-ld} -melf32bmipn32"
7593      ;;
7594    *64-bit*)
7595      LD="${LD-ld} -melf64bmip"
7596      ;;
7597    esac
7598   else
7599    case `/usr/bin/file conftest.$ac_objext` in
7600    *32-bit*)
7601      LD="${LD-ld} -32"
7602      ;;
7603    *N32*)
7604      LD="${LD-ld} -n32"
7605      ;;
7606    *64-bit*)
7607      LD="${LD-ld} -64"
7608      ;;
7609    esac
7610   fi
7611  fi
7612  rm -rf conftest*
7613  ;;
7614
7615x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7616  # Find out which ABI we are using.
7617  echo 'int i;' > conftest.$ac_ext
7618  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7619  (eval $ac_compile) 2>&5
7620  ac_status=$?
7621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7622  test $ac_status = 0; }; then
7623    case `/usr/bin/file conftest.o` in
7624    *32-bit*)
7625      case $host in
7626        x86_64-*linux*)
7627          LD="${LD-ld} -m elf_i386"
7628          ;;
7629        ppc64-*linux*|powerpc64-*linux*)
7630          LD="${LD-ld} -m elf32ppclinux"
7631          ;;
7632        s390x-*linux*)
7633          LD="${LD-ld} -m elf_s390"
7634          ;;
7635        sparc64-*linux*)
7636          LD="${LD-ld} -m elf32_sparc"
7637          ;;
7638      esac
7639      ;;
7640    *64-bit*)
7641      case $host in
7642        x86_64-*linux*)
7643          LD="${LD-ld} -m elf_x86_64"
7644          ;;
7645        ppc*-*linux*|powerpc*-*linux*)
7646          LD="${LD-ld} -m elf64ppc"
7647          ;;
7648        s390*-*linux*)
7649          LD="${LD-ld} -m elf64_s390"
7650          ;;
7651        sparc*-*linux*)
7652          LD="${LD-ld} -m elf64_sparc"
7653          ;;
7654      esac
7655      ;;
7656    esac
7657  fi
7658  rm -rf conftest*
7659  ;;
7660
7661*-*-sco3.2v5*)
7662  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7663  SAVE_CFLAGS="$CFLAGS"
7664  CFLAGS="$CFLAGS -belf"
7665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7666$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7667if test "${lt_cv_cc_needs_belf+set}" = set; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  ac_ext=c
7671ac_cpp='$CPP $CPPFLAGS'
7672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7674ac_compiler_gnu=$ac_cv_c_compiler_gnu
7675
7676     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677/* end confdefs.h.  */
7678
7679int
7680main ()
7681{
7682
7683  ;
7684  return 0;
7685}
7686_ACEOF
7687if ac_fn_c_try_link "$LINENO"; then :
7688  lt_cv_cc_needs_belf=yes
7689else
7690  lt_cv_cc_needs_belf=no
7691fi
7692rm -f core conftest.err conftest.$ac_objext \
7693    conftest$ac_exeext conftest.$ac_ext
7694     ac_ext=c
7695ac_cpp='$CPP $CPPFLAGS'
7696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7698ac_compiler_gnu=$ac_cv_c_compiler_gnu
7699
7700fi
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7702$as_echo "$lt_cv_cc_needs_belf" >&6; }
7703  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7704    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7705    CFLAGS="$SAVE_CFLAGS"
7706  fi
7707  ;;
7708sparc*-*solaris*)
7709  # Find out which ABI we are using.
7710  echo 'int i;' > conftest.$ac_ext
7711  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7712  (eval $ac_compile) 2>&5
7713  ac_status=$?
7714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7715  test $ac_status = 0; }; then
7716    case `/usr/bin/file conftest.o` in
7717    *64-bit*)
7718      case $lt_cv_prog_gnu_ld in
7719      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7720      *)    LD="${LD-ld} -64" ;;
7721      esac
7722      ;;
7723    esac
7724  fi
7725  rm -rf conftest*
7726  ;;
7727
7728
7729esac
7730
7731need_locks="$enable_libtool_lock"
7732
7733
7734ac_ext=c
7735ac_cpp='$CPP $CPPFLAGS'
7736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7740$as_echo_n "checking how to run the C preprocessor... " >&6; }
7741# On Suns, sometimes $CPP names a directory.
7742if test -n "$CPP" && test -d "$CPP"; then
7743  CPP=
7744fi
7745if test -z "$CPP"; then
7746  if test "${ac_cv_prog_CPP+set}" = set; then :
7747  $as_echo_n "(cached) " >&6
7748else
7749      # Double quotes because CPP needs to be expanded
7750    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7751    do
7752      ac_preproc_ok=false
7753for ac_c_preproc_warn_flag in '' yes
7754do
7755  # Use a header file that comes with gcc, so configuring glibc
7756  # with a fresh cross-compiler works.
7757  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7758  # <limits.h> exists even on freestanding compilers.
7759  # On the NeXT, cc -E runs the code through the compiler's parser,
7760  # not just through cpp. "Syntax error" is here to catch this case.
7761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762/* end confdefs.h.  */
7763#ifdef __STDC__
7764# include <limits.h>
7765#else
7766# include <assert.h>
7767#endif
7768                     Syntax error
7769_ACEOF
7770if ac_fn_c_try_cpp "$LINENO"; then :
7771
7772else
7773  # Broken: fails on valid input.
7774continue
7775fi
7776rm -f conftest.err conftest.$ac_ext
7777
7778  # OK, works on sane cases.  Now check whether nonexistent headers
7779  # can be detected and how.
7780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h.  */
7782#include <ac_nonexistent.h>
7783_ACEOF
7784if ac_fn_c_try_cpp "$LINENO"; then :
7785  # Broken: success on invalid input.
7786continue
7787else
7788  # Passes both tests.
7789ac_preproc_ok=:
7790break
7791fi
7792rm -f conftest.err conftest.$ac_ext
7793
7794done
7795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7796rm -f conftest.err conftest.$ac_ext
7797if $ac_preproc_ok; then :
7798  break
7799fi
7800
7801    done
7802    ac_cv_prog_CPP=$CPP
7803
7804fi
7805  CPP=$ac_cv_prog_CPP
7806else
7807  ac_cv_prog_CPP=$CPP
7808fi
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7810$as_echo "$CPP" >&6; }
7811ac_preproc_ok=false
7812for ac_c_preproc_warn_flag in '' yes
7813do
7814  # Use a header file that comes with gcc, so configuring glibc
7815  # with a fresh cross-compiler works.
7816  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7817  # <limits.h> exists even on freestanding compilers.
7818  # On the NeXT, cc -E runs the code through the compiler's parser,
7819  # not just through cpp. "Syntax error" is here to catch this case.
7820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821/* end confdefs.h.  */
7822#ifdef __STDC__
7823# include <limits.h>
7824#else
7825# include <assert.h>
7826#endif
7827                     Syntax error
7828_ACEOF
7829if ac_fn_c_try_cpp "$LINENO"; then :
7830
7831else
7832  # Broken: fails on valid input.
7833continue
7834fi
7835rm -f conftest.err conftest.$ac_ext
7836
7837  # OK, works on sane cases.  Now check whether nonexistent headers
7838  # can be detected and how.
7839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840/* end confdefs.h.  */
7841#include <ac_nonexistent.h>
7842_ACEOF
7843if ac_fn_c_try_cpp "$LINENO"; then :
7844  # Broken: success on invalid input.
7845continue
7846else
7847  # Passes both tests.
7848ac_preproc_ok=:
7849break
7850fi
7851rm -f conftest.err conftest.$ac_ext
7852
7853done
7854# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7855rm -f conftest.err conftest.$ac_ext
7856if $ac_preproc_ok; then :
7857
7858else
7859  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7861as_fn_error "C preprocessor \"$CPP\" fails sanity check
7862See \`config.log' for more details." "$LINENO" 5; }
7863fi
7864
7865ac_ext=c
7866ac_cpp='$CPP $CPPFLAGS'
7867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869ac_compiler_gnu=$ac_cv_c_compiler_gnu
7870
7871
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7873$as_echo_n "checking for ANSI C header files... " >&6; }
7874if test "${ac_cv_header_stdc+set}" = set; then :
7875  $as_echo_n "(cached) " >&6
7876else
7877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878/* end confdefs.h.  */
7879#include <stdlib.h>
7880#include <stdarg.h>
7881#include <string.h>
7882#include <float.h>
7883
7884int
7885main ()
7886{
7887
7888  ;
7889  return 0;
7890}
7891_ACEOF
7892if ac_fn_c_try_compile "$LINENO"; then :
7893  ac_cv_header_stdc=yes
7894else
7895  ac_cv_header_stdc=no
7896fi
7897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898
7899if test $ac_cv_header_stdc = yes; then
7900  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902/* end confdefs.h.  */
7903#include <string.h>
7904
7905_ACEOF
7906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7907  $EGREP "memchr" >/dev/null 2>&1; then :
7908
7909else
7910  ac_cv_header_stdc=no
7911fi
7912rm -f conftest*
7913
7914fi
7915
7916if test $ac_cv_header_stdc = yes; then
7917  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h.  */
7920#include <stdlib.h>
7921
7922_ACEOF
7923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924  $EGREP "free" >/dev/null 2>&1; then :
7925
7926else
7927  ac_cv_header_stdc=no
7928fi
7929rm -f conftest*
7930
7931fi
7932
7933if test $ac_cv_header_stdc = yes; then
7934  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7935  if test "$cross_compiling" = yes; then :
7936  :
7937else
7938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939/* end confdefs.h.  */
7940#include <ctype.h>
7941#include <stdlib.h>
7942#if ((' ' & 0x0FF) == 0x020)
7943# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7944# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7945#else
7946# define ISLOWER(c) \
7947                   (('a' <= (c) && (c) <= 'i') \
7948                     || ('j' <= (c) && (c) <= 'r') \
7949                     || ('s' <= (c) && (c) <= 'z'))
7950# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7951#endif
7952
7953#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7954int
7955main ()
7956{
7957  int i;
7958  for (i = 0; i < 256; i++)
7959    if (XOR (islower (i), ISLOWER (i))
7960        || toupper (i) != TOUPPER (i))
7961      return 2;
7962  return 0;
7963}
7964_ACEOF
7965if ac_fn_c_try_run "$LINENO"; then :
7966
7967else
7968  ac_cv_header_stdc=no
7969fi
7970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7971  conftest.$ac_objext conftest.beam conftest.$ac_ext
7972fi
7973
7974fi
7975fi
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7977$as_echo "$ac_cv_header_stdc" >&6; }
7978if test $ac_cv_header_stdc = yes; then
7979
7980$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7981
7982fi
7983
7984# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7985for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7986                  inttypes.h stdint.h unistd.h
7987do :
7988  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7989ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7990"
7991eval as_val=\$$as_ac_Header
7992   if test "x$as_val" = x""yes; then :
7993  cat >>confdefs.h <<_ACEOF
7994#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7995_ACEOF
7996
7997fi
7998
7999done
8000
8001
8002for ac_header in dlfcn.h
8003do :
8004  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8005if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8006  cat >>confdefs.h <<_ACEOF
8007#define HAVE_DLFCN_H 1
8008_ACEOF
8009
8010fi
8011
8012done
8013
8014
8015
8016if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8017    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8018    (test "X$CXX" != "Xg++"))) ; then
8019  ac_ext=cpp
8020ac_cpp='$CXXCPP $CPPFLAGS'
8021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8025$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8026if test -z "$CXXCPP"; then
8027  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8028  $as_echo_n "(cached) " >&6
8029else
8030      # Double quotes because CXXCPP needs to be expanded
8031    for CXXCPP in "$CXX -E" "/lib/cpp"
8032    do
8033      ac_preproc_ok=false
8034for ac_cxx_preproc_warn_flag in '' yes
8035do
8036  # Use a header file that comes with gcc, so configuring glibc
8037  # with a fresh cross-compiler works.
8038  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8039  # <limits.h> exists even on freestanding compilers.
8040  # On the NeXT, cc -E runs the code through the compiler's parser,
8041  # not just through cpp. "Syntax error" is here to catch this case.
8042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043/* end confdefs.h.  */
8044#ifdef __STDC__
8045# include <limits.h>
8046#else
8047# include <assert.h>
8048#endif
8049                     Syntax error
8050_ACEOF
8051if ac_fn_cxx_try_cpp "$LINENO"; then :
8052
8053else
8054  # Broken: fails on valid input.
8055continue
8056fi
8057rm -f conftest.err conftest.$ac_ext
8058
8059  # OK, works on sane cases.  Now check whether nonexistent headers
8060  # can be detected and how.
8061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062/* end confdefs.h.  */
8063#include <ac_nonexistent.h>
8064_ACEOF
8065if ac_fn_cxx_try_cpp "$LINENO"; then :
8066  # Broken: success on invalid input.
8067continue
8068else
8069  # Passes both tests.
8070ac_preproc_ok=:
8071break
8072fi
8073rm -f conftest.err conftest.$ac_ext
8074
8075done
8076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8077rm -f conftest.err conftest.$ac_ext
8078if $ac_preproc_ok; then :
8079  break
8080fi
8081
8082    done
8083    ac_cv_prog_CXXCPP=$CXXCPP
8084
8085fi
8086  CXXCPP=$ac_cv_prog_CXXCPP
8087else
8088  ac_cv_prog_CXXCPP=$CXXCPP
8089fi
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8091$as_echo "$CXXCPP" >&6; }
8092ac_preproc_ok=false
8093for ac_cxx_preproc_warn_flag in '' yes
8094do
8095  # Use a header file that comes with gcc, so configuring glibc
8096  # with a fresh cross-compiler works.
8097  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8098  # <limits.h> exists even on freestanding compilers.
8099  # On the NeXT, cc -E runs the code through the compiler's parser,
8100  # not just through cpp. "Syntax error" is here to catch this case.
8101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102/* end confdefs.h.  */
8103#ifdef __STDC__
8104# include <limits.h>
8105#else
8106# include <assert.h>
8107#endif
8108                     Syntax error
8109_ACEOF
8110if ac_fn_cxx_try_cpp "$LINENO"; then :
8111
8112else
8113  # Broken: fails on valid input.
8114continue
8115fi
8116rm -f conftest.err conftest.$ac_ext
8117
8118  # OK, works on sane cases.  Now check whether nonexistent headers
8119  # can be detected and how.
8120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121/* end confdefs.h.  */
8122#include <ac_nonexistent.h>
8123_ACEOF
8124if ac_fn_cxx_try_cpp "$LINENO"; then :
8125  # Broken: success on invalid input.
8126continue
8127else
8128  # Passes both tests.
8129ac_preproc_ok=:
8130break
8131fi
8132rm -f conftest.err conftest.$ac_ext
8133
8134done
8135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8136rm -f conftest.err conftest.$ac_ext
8137if $ac_preproc_ok; then :
8138
8139else
8140  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8142as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
8143See \`config.log' for more details." "$LINENO" 5; }
8144fi
8145
8146ac_ext=cpp
8147ac_cpp='$CXXCPP $CPPFLAGS'
8148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8151
8152fi
8153
8154ac_ext=f
8155ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8156ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8158if test -n "$ac_tool_prefix"; then
8159  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8160  do
8161    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8162set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164$as_echo_n "checking for $ac_word... " >&6; }
8165if test "${ac_cv_prog_F77+set}" = set; then :
8166  $as_echo_n "(cached) " >&6
8167else
8168  if test -n "$F77"; then
8169  ac_cv_prog_F77="$F77" # Let the user override the test.
8170else
8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172for as_dir in $PATH
8173do
8174  IFS=$as_save_IFS
8175  test -z "$as_dir" && as_dir=.
8176    for ac_exec_ext in '' $ac_executable_extensions; do
8177  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180    break 2
8181  fi
8182done
8183  done
8184IFS=$as_save_IFS
8185
8186fi
8187fi
8188F77=$ac_cv_prog_F77
8189if test -n "$F77"; then
8190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
8191$as_echo "$F77" >&6; }
8192else
8193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194$as_echo "no" >&6; }
8195fi
8196
8197
8198    test -n "$F77" && break
8199  done
8200fi
8201if test -z "$F77"; then
8202  ac_ct_F77=$F77
8203  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8204do
8205  # Extract the first word of "$ac_prog", so it can be a program name with args.
8206set dummy $ac_prog; ac_word=$2
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208$as_echo_n "checking for $ac_word... " >&6; }
8209if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
8210  $as_echo_n "(cached) " >&6
8211else
8212  if test -n "$ac_ct_F77"; then
8213  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8214else
8215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216for as_dir in $PATH
8217do
8218  IFS=$as_save_IFS
8219  test -z "$as_dir" && as_dir=.
8220    for ac_exec_ext in '' $ac_executable_extensions; do
8221  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222    ac_cv_prog_ac_ct_F77="$ac_prog"
8223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224    break 2
8225  fi
8226done
8227  done
8228IFS=$as_save_IFS
8229
8230fi
8231fi
8232ac_ct_F77=$ac_cv_prog_ac_ct_F77
8233if test -n "$ac_ct_F77"; then
8234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
8235$as_echo "$ac_ct_F77" >&6; }
8236else
8237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238$as_echo "no" >&6; }
8239fi
8240
8241
8242  test -n "$ac_ct_F77" && break
8243done
8244
8245  if test "x$ac_ct_F77" = x; then
8246    F77=""
8247  else
8248    case $cross_compiling:$ac_tool_warned in
8249yes:)
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252ac_tool_warned=yes ;;
8253esac
8254    F77=$ac_ct_F77
8255  fi
8256fi
8257
8258
8259# Provide some information about the compiler.
8260$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
8261set X $ac_compile
8262ac_compiler=$2
8263for ac_option in --version -v -V -qversion; do
8264  { { ac_try="$ac_compiler $ac_option >&5"
8265case "(($ac_try" in
8266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267  *) ac_try_echo=$ac_try;;
8268esac
8269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8270$as_echo "$ac_try_echo"; } >&5
8271  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8272  ac_status=$?
8273  if test -s conftest.err; then
8274    sed '10a\
8275... rest of stderr output deleted ...
8276         10q' conftest.err >conftest.er1
8277    cat conftest.er1 >&5
8278    rm -f conftest.er1 conftest.err
8279  fi
8280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8281  test $ac_status = 0; }
8282done
8283rm -f a.out
8284
8285# If we don't use `.F' as extension, the preprocessor is not run on the
8286# input file.  (Note that this only needs to work for GNU compilers.)
8287ac_save_ext=$ac_ext
8288ac_ext=F
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
8290$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
8291if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  cat > conftest.$ac_ext <<_ACEOF
8295      program main
8296#ifndef __GNUC__
8297       choke me
8298#endif
8299
8300      end
8301_ACEOF
8302if ac_fn_f77_try_compile "$LINENO"; then :
8303  ac_compiler_gnu=yes
8304else
8305  ac_compiler_gnu=no
8306fi
8307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8309
8310fi
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
8312$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
8313ac_ext=$ac_save_ext
8314ac_test_FFLAGS=${FFLAGS+set}
8315ac_save_FFLAGS=$FFLAGS
8316FFLAGS=
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
8318$as_echo_n "checking whether $F77 accepts -g... " >&6; }
8319if test "${ac_cv_prog_f77_g+set}" = set; then :
8320  $as_echo_n "(cached) " >&6
8321else
8322  FFLAGS=-g
8323cat > conftest.$ac_ext <<_ACEOF
8324      program main
8325
8326      end
8327_ACEOF
8328if ac_fn_f77_try_compile "$LINENO"; then :
8329  ac_cv_prog_f77_g=yes
8330else
8331  ac_cv_prog_f77_g=no
8332fi
8333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334
8335fi
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
8337$as_echo "$ac_cv_prog_f77_g" >&6; }
8338if test "$ac_test_FFLAGS" = set; then
8339  FFLAGS=$ac_save_FFLAGS
8340elif test $ac_cv_prog_f77_g = yes; then
8341  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8342    FFLAGS="-g -O2"
8343  else
8344    FFLAGS="-g"
8345  fi
8346else
8347  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8348    FFLAGS="-O2"
8349  else
8350    FFLAGS=
8351  fi
8352fi
8353
8354if test $ac_compiler_gnu = yes; then
8355  G77=yes
8356else
8357  G77=
8358fi
8359ac_ext=c
8360ac_cpp='$CPP $CPPFLAGS'
8361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8363ac_compiler_gnu=$ac_cv_c_compiler_gnu
8364
8365
8366
8367# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8368
8369# find the maximum length of command line arguments
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8371$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8372if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8373  $as_echo_n "(cached) " >&6
8374else
8375    i=0
8376  teststring="ABCD"
8377
8378  case $build_os in
8379  msdosdjgpp*)
8380    # On DJGPP, this test can blow up pretty badly due to problems in libc
8381    # (any single argument exceeding 2000 bytes causes a buffer overrun
8382    # during glob expansion).  Even if it were fixed, the result of this
8383    # check would be larger than it should be.
8384    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8385    ;;
8386
8387  gnu*)
8388    # Under GNU Hurd, this test is not required because there is
8389    # no limit to the length of command line arguments.
8390    # Libtool will interpret -1 as no limit whatsoever
8391    lt_cv_sys_max_cmd_len=-1;
8392    ;;
8393
8394  cygwin* | mingw*)
8395    # On Win9x/ME, this test blows up -- it succeeds, but takes
8396    # about 5 minutes as the teststring grows exponentially.
8397    # Worse, since 9x/ME are not pre-emptively multitasking,
8398    # you end up with a "frozen" computer, even though with patience
8399    # the test eventually succeeds (with a max line length of 256k).
8400    # Instead, let's just punt: use the minimum linelength reported by
8401    # all of the supported platforms: 8192 (on NT/2K/XP).
8402    lt_cv_sys_max_cmd_len=8192;
8403    ;;
8404
8405  amigaos*)
8406    # On AmigaOS with pdksh, this test takes hours, literally.
8407    # So we just punt and use a minimum line length of 8192.
8408    lt_cv_sys_max_cmd_len=8192;
8409    ;;
8410
8411  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8412    # This has been around since 386BSD, at least.  Likely further.
8413    if test -x /sbin/sysctl; then
8414      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8415    elif test -x /usr/sbin/sysctl; then
8416      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8417    else
8418      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8419    fi
8420    # And add a safety zone
8421    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8422    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8423    ;;
8424
8425  interix*)
8426    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8427    lt_cv_sys_max_cmd_len=196608
8428    ;;
8429
8430  osf*)
8431    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8432    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8433    # nice to cause kernel panics so lets avoid the loop below.
8434    # First set a reasonable default.
8435    lt_cv_sys_max_cmd_len=16384
8436    #
8437    if test -x /sbin/sysconfig; then
8438      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8439        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8440      esac
8441    fi
8442    ;;
8443  sco3.2v5*)
8444    lt_cv_sys_max_cmd_len=102400
8445    ;;
8446  sysv5* | sco5v6* | sysv4.2uw2*)
8447    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8448    if test -n "$kargmax"; then
8449      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8450    else
8451      lt_cv_sys_max_cmd_len=32768
8452    fi
8453    ;;
8454  *)
8455    # If test is not a shell built-in, we'll probably end up computing a
8456    # maximum length that is only half of the actual maximum length, but
8457    # we can't tell.
8458    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8459    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8460               = "XX$teststring") >/dev/null 2>&1 &&
8461            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8462            lt_cv_sys_max_cmd_len=$new_result &&
8463            test $i != 17 # 1/2 MB should be enough
8464    do
8465      i=`expr $i + 1`
8466      teststring=$teststring$teststring
8467    done
8468    teststring=
8469    # Add a significant safety factor because C++ compilers can tack on massive
8470    # amounts of additional arguments before passing them to the linker.
8471    # It appears as though 1/2 is a usable value.
8472    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8473    ;;
8474  esac
8475
8476fi
8477
8478if test -n $lt_cv_sys_max_cmd_len ; then
8479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8480$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8481else
8482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8483$as_echo "none" >&6; }
8484fi
8485
8486
8487
8488
8489# Check for command to grab the raw symbol name followed by C symbol from nm.
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8491$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8492if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495
8496# These are sane defaults that work on at least a few old systems.
8497# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8498
8499# Character class describing NM global symbol codes.
8500symcode='[BCDEGRST]'
8501
8502# Regexp to match symbols that can be accessed directly from C.
8503sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8504
8505# Transform an extracted symbol line into a proper C declaration
8506lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8507
8508# Transform an extracted symbol line into symbol name and symbol address
8509lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8510
8511# Define system-specific variables.
8512case $host_os in
8513aix*)
8514  symcode='[BCDT]'
8515  ;;
8516cygwin* | mingw* | pw32*)
8517  symcode='[ABCDGISTW]'
8518  ;;
8519hpux*) # Its linker distinguishes data from code symbols
8520  if test "$host_cpu" = ia64; then
8521    symcode='[ABCDEGRST]'
8522  fi
8523  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8524  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8525  ;;
8526linux*)
8527  if test "$host_cpu" = ia64; then
8528    symcode='[ABCDGIRSTW]'
8529    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8530    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8531  fi
8532  ;;
8533irix* | nonstopux*)
8534  symcode='[BCDEGRST]'
8535  ;;
8536osf*)
8537  symcode='[BCDEGQRST]'
8538  ;;
8539solaris*)
8540  symcode='[BDRT]'
8541  ;;
8542sco3.2v5*)
8543  symcode='[DT]'
8544  ;;
8545sysv4.2uw2*)
8546  symcode='[DT]'
8547  ;;
8548sysv5* | sco5v6* | unixware* | OpenUNIX*)
8549  symcode='[ABDT]'
8550  ;;
8551sysv4)
8552  symcode='[DFNSTU]'
8553  ;;
8554esac
8555
8556# Handle CRLF in mingw tool chain
8557opt_cr=
8558case $build_os in
8559mingw*)
8560  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8561  ;;
8562esac
8563
8564# If we're using GNU nm, then use its standard symbol codes.
8565case `$NM -V 2>&1` in
8566*GNU* | *'with BFD'*)
8567  symcode='[ABCDGIRSTW]' ;;
8568esac
8569
8570# Try without a prefix undercore, then with it.
8571for ac_symprfx in "" "_"; do
8572
8573  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8574  symxfrm="\\1 $ac_symprfx\\2 \\2"
8575
8576  # Write the raw and C identifiers.
8577  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8578
8579  # Check to see that the pipe works correctly.
8580  pipe_works=no
8581
8582  rm -f conftest*
8583  cat > conftest.$ac_ext <<EOF
8584#ifdef __cplusplus
8585extern "C" {
8586#endif
8587char nm_test_var;
8588void nm_test_func(){}
8589#ifdef __cplusplus
8590}
8591#endif
8592int main(){nm_test_var='a';nm_test_func();return(0);}
8593EOF
8594
8595  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8596  (eval $ac_compile) 2>&5
8597  ac_status=$?
8598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8599  test $ac_status = 0; }; then
8600    # Now try to grab the symbols.
8601    nlist=conftest.nm
8602    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8603  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8604  ac_status=$?
8605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8606  test $ac_status = 0; } && test -s "$nlist"; then
8607      # Try sorting and uniquifying the output.
8608      if sort "$nlist" | uniq > "$nlist"T; then
8609        mv -f "$nlist"T "$nlist"
8610      else
8611        rm -f "$nlist"T
8612      fi
8613
8614      # Make sure that we snagged all the symbols we need.
8615      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8616        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8617          cat <<EOF > conftest.$ac_ext
8618#ifdef __cplusplus
8619extern "C" {
8620#endif
8621
8622EOF
8623          # Now generate the symbol file.
8624          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8625
8626          cat <<EOF >> conftest.$ac_ext
8627#if defined (__STDC__) && __STDC__
8628# define lt_ptr_t void *
8629#else
8630# define lt_ptr_t char *
8631# define const
8632#endif
8633
8634/* The mapping between symbol names and symbols. */
8635const struct {
8636  const char *name;
8637  lt_ptr_t address;
8638}
8639lt_preloaded_symbols[] =
8640{
8641EOF
8642          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8643          cat <<\EOF >> conftest.$ac_ext
8644  {0, (lt_ptr_t) 0}
8645};
8646
8647#ifdef __cplusplus
8648}
8649#endif
8650EOF
8651          # Now try linking the two files.
8652          mv conftest.$ac_objext conftstm.$ac_objext
8653          lt_save_LIBS="$LIBS"
8654          lt_save_CFLAGS="$CFLAGS"
8655          LIBS="conftstm.$ac_objext"
8656          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8657          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8658  (eval $ac_link) 2>&5
8659  ac_status=$?
8660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8661  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8662            pipe_works=yes
8663          fi
8664          LIBS="$lt_save_LIBS"
8665          CFLAGS="$lt_save_CFLAGS"
8666        else
8667          echo "cannot find nm_test_func in $nlist" >&5
8668        fi
8669      else
8670        echo "cannot find nm_test_var in $nlist" >&5
8671      fi
8672    else
8673      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8674    fi
8675  else
8676    echo "$progname: failed program was:" >&5
8677    cat conftest.$ac_ext >&5
8678  fi
8679  rm -f conftest* conftst*
8680
8681  # Do not use the global_symbol_pipe unless it works.
8682  if test "$pipe_works" = yes; then
8683    break
8684  else
8685    lt_cv_sys_global_symbol_pipe=
8686  fi
8687done
8688
8689fi
8690
8691if test -z "$lt_cv_sys_global_symbol_pipe"; then
8692  lt_cv_sys_global_symbol_to_cdecl=
8693fi
8694if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8696$as_echo "failed" >&6; }
8697else
8698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8699$as_echo "ok" >&6; }
8700fi
8701
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8703$as_echo_n "checking for objdir... " >&6; }
8704if test "${lt_cv_objdir+set}" = set; then :
8705  $as_echo_n "(cached) " >&6
8706else
8707  rm -f .libs 2>/dev/null
8708mkdir .libs 2>/dev/null
8709if test -d .libs; then
8710  lt_cv_objdir=.libs
8711else
8712  # MS-DOS does not allow filenames that begin with a dot.
8713  lt_cv_objdir=_libs
8714fi
8715rmdir .libs 2>/dev/null
8716fi
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8718$as_echo "$lt_cv_objdir" >&6; }
8719objdir=$lt_cv_objdir
8720
8721
8722
8723
8724
8725case $host_os in
8726aix3*)
8727  # AIX sometimes has problems with the GCC collect2 program.  For some
8728  # reason, if we set the COLLECT_NAMES environment variable, the problems
8729  # vanish in a puff of smoke.
8730  if test "X${COLLECT_NAMES+set}" != Xset; then
8731    COLLECT_NAMES=
8732    export COLLECT_NAMES
8733  fi
8734  ;;
8735esac
8736
8737# Sed substitution that helps us do robust quoting.  It backslashifies
8738# metacharacters that are still active within double-quoted strings.
8739Xsed='sed -e 1s/^X//'
8740sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8741
8742# Same as above, but do not quote variable references.
8743double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8744
8745# Sed substitution to delay expansion of an escaped shell variable in a
8746# double_quote_subst'ed string.
8747delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8748
8749# Sed substitution to avoid accidental globbing in evaled expressions
8750no_glob_subst='s/\*/\\\*/g'
8751
8752# Constants:
8753rm="rm -f"
8754
8755# Global variables:
8756default_ofile=libtool
8757can_build_shared=yes
8758
8759# All known linkers require a `.a' archive for static linking (except MSVC,
8760# which needs '.lib').
8761libext=a
8762ltmain="$ac_aux_dir/ltmain.sh"
8763ofile="$default_ofile"
8764with_gnu_ld="$lt_cv_prog_gnu_ld"
8765
8766if test -n "$ac_tool_prefix"; then
8767  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8768set dummy ${ac_tool_prefix}ar; ac_word=$2
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770$as_echo_n "checking for $ac_word... " >&6; }
8771if test "${ac_cv_prog_AR+set}" = set; then :
8772  $as_echo_n "(cached) " >&6
8773else
8774  if test -n "$AR"; then
8775  ac_cv_prog_AR="$AR" # Let the user override the test.
8776else
8777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778for as_dir in $PATH
8779do
8780  IFS=$as_save_IFS
8781  test -z "$as_dir" && as_dir=.
8782    for ac_exec_ext in '' $ac_executable_extensions; do
8783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8784    ac_cv_prog_AR="${ac_tool_prefix}ar"
8785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8786    break 2
8787  fi
8788done
8789  done
8790IFS=$as_save_IFS
8791
8792fi
8793fi
8794AR=$ac_cv_prog_AR
8795if test -n "$AR"; then
8796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8797$as_echo "$AR" >&6; }
8798else
8799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800$as_echo "no" >&6; }
8801fi
8802
8803
8804fi
8805if test -z "$ac_cv_prog_AR"; then
8806  ac_ct_AR=$AR
8807  # Extract the first word of "ar", so it can be a program name with args.
8808set dummy ar; ac_word=$2
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810$as_echo_n "checking for $ac_word... " >&6; }
8811if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8812  $as_echo_n "(cached) " >&6
8813else
8814  if test -n "$ac_ct_AR"; then
8815  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8816else
8817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818for as_dir in $PATH
8819do
8820  IFS=$as_save_IFS
8821  test -z "$as_dir" && as_dir=.
8822    for ac_exec_ext in '' $ac_executable_extensions; do
8823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8824    ac_cv_prog_ac_ct_AR="ar"
8825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8826    break 2
8827  fi
8828done
8829  done
8830IFS=$as_save_IFS
8831
8832fi
8833fi
8834ac_ct_AR=$ac_cv_prog_ac_ct_AR
8835if test -n "$ac_ct_AR"; then
8836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8837$as_echo "$ac_ct_AR" >&6; }
8838else
8839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841fi
8842
8843  if test "x$ac_ct_AR" = x; then
8844    AR="false"
8845  else
8846    case $cross_compiling:$ac_tool_warned in
8847yes:)
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8850ac_tool_warned=yes ;;
8851esac
8852    AR=$ac_ct_AR
8853  fi
8854else
8855  AR="$ac_cv_prog_AR"
8856fi
8857
8858if test -n "$ac_tool_prefix"; then
8859  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8860set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862$as_echo_n "checking for $ac_word... " >&6; }
8863if test "${ac_cv_prog_RANLIB+set}" = set; then :
8864  $as_echo_n "(cached) " >&6
8865else
8866  if test -n "$RANLIB"; then
8867  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8868else
8869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870for as_dir in $PATH
8871do
8872  IFS=$as_save_IFS
8873  test -z "$as_dir" && as_dir=.
8874    for ac_exec_ext in '' $ac_executable_extensions; do
8875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878    break 2
8879  fi
8880done
8881  done
8882IFS=$as_save_IFS
8883
8884fi
8885fi
8886RANLIB=$ac_cv_prog_RANLIB
8887if test -n "$RANLIB"; then
8888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8889$as_echo "$RANLIB" >&6; }
8890else
8891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892$as_echo "no" >&6; }
8893fi
8894
8895
8896fi
8897if test -z "$ac_cv_prog_RANLIB"; then
8898  ac_ct_RANLIB=$RANLIB
8899  # Extract the first word of "ranlib", so it can be a program name with args.
8900set dummy ranlib; ac_word=$2
8901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8902$as_echo_n "checking for $ac_word... " >&6; }
8903if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8904  $as_echo_n "(cached) " >&6
8905else
8906  if test -n "$ac_ct_RANLIB"; then
8907  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8908else
8909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910for as_dir in $PATH
8911do
8912  IFS=$as_save_IFS
8913  test -z "$as_dir" && as_dir=.
8914    for ac_exec_ext in '' $ac_executable_extensions; do
8915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8916    ac_cv_prog_ac_ct_RANLIB="ranlib"
8917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8918    break 2
8919  fi
8920done
8921  done
8922IFS=$as_save_IFS
8923
8924fi
8925fi
8926ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8927if test -n "$ac_ct_RANLIB"; then
8928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8929$as_echo "$ac_ct_RANLIB" >&6; }
8930else
8931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932$as_echo "no" >&6; }
8933fi
8934
8935  if test "x$ac_ct_RANLIB" = x; then
8936    RANLIB=":"
8937  else
8938    case $cross_compiling:$ac_tool_warned in
8939yes:)
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8942ac_tool_warned=yes ;;
8943esac
8944    RANLIB=$ac_ct_RANLIB
8945  fi
8946else
8947  RANLIB="$ac_cv_prog_RANLIB"
8948fi
8949
8950if test -n "$ac_tool_prefix"; then
8951  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8952set dummy ${ac_tool_prefix}strip; ac_word=$2
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954$as_echo_n "checking for $ac_word... " >&6; }
8955if test "${ac_cv_prog_STRIP+set}" = set; then :
8956  $as_echo_n "(cached) " >&6
8957else
8958  if test -n "$STRIP"; then
8959  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8960else
8961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962for as_dir in $PATH
8963do
8964  IFS=$as_save_IFS
8965  test -z "$as_dir" && as_dir=.
8966    for ac_exec_ext in '' $ac_executable_extensions; do
8967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970    break 2
8971  fi
8972done
8973  done
8974IFS=$as_save_IFS
8975
8976fi
8977fi
8978STRIP=$ac_cv_prog_STRIP
8979if test -n "$STRIP"; then
8980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8981$as_echo "$STRIP" >&6; }
8982else
8983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984$as_echo "no" >&6; }
8985fi
8986
8987
8988fi
8989if test -z "$ac_cv_prog_STRIP"; then
8990  ac_ct_STRIP=$STRIP
8991  # Extract the first word of "strip", so it can be a program name with args.
8992set dummy strip; ac_word=$2
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994$as_echo_n "checking for $ac_word... " >&6; }
8995if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8996  $as_echo_n "(cached) " >&6
8997else
8998  if test -n "$ac_ct_STRIP"; then
8999  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9000else
9001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002for as_dir in $PATH
9003do
9004  IFS=$as_save_IFS
9005  test -z "$as_dir" && as_dir=.
9006    for ac_exec_ext in '' $ac_executable_extensions; do
9007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9008    ac_cv_prog_ac_ct_STRIP="strip"
9009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9010    break 2
9011  fi
9012done
9013  done
9014IFS=$as_save_IFS
9015
9016fi
9017fi
9018ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9019if test -n "$ac_ct_STRIP"; then
9020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9021$as_echo "$ac_ct_STRIP" >&6; }
9022else
9023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024$as_echo "no" >&6; }
9025fi
9026
9027  if test "x$ac_ct_STRIP" = x; then
9028    STRIP=":"
9029  else
9030    case $cross_compiling:$ac_tool_warned in
9031yes:)
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9034ac_tool_warned=yes ;;
9035esac
9036    STRIP=$ac_ct_STRIP
9037  fi
9038else
9039  STRIP="$ac_cv_prog_STRIP"
9040fi
9041
9042
9043old_CC="$CC"
9044old_CFLAGS="$CFLAGS"
9045
9046# Set sane defaults for various variables
9047test -z "$AR" && AR=ar
9048test -z "$AR_FLAGS" && AR_FLAGS=cru
9049test -z "$AS" && AS=as
9050test -z "$CC" && CC=cc
9051test -z "$LTCC" && LTCC=$CC
9052test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9053test -z "$DLLTOOL" && DLLTOOL=dlltool
9054test -z "$LD" && LD=ld
9055test -z "$LN_S" && LN_S="ln -s"
9056test -z "$MAGIC_CMD" && MAGIC_CMD=file
9057test -z "$NM" && NM=nm
9058test -z "$SED" && SED=sed
9059test -z "$OBJDUMP" && OBJDUMP=objdump
9060test -z "$RANLIB" && RANLIB=:
9061test -z "$STRIP" && STRIP=:
9062test -z "$ac_objext" && ac_objext=o
9063
9064# Determine commands to create old-style static archives.
9065old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9066old_postinstall_cmds='chmod 644 $oldlib'
9067old_postuninstall_cmds=
9068
9069if test -n "$RANLIB"; then
9070  case $host_os in
9071  openbsd*)
9072    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9073    ;;
9074  *)
9075    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9076    ;;
9077  esac
9078  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9079fi
9080
9081for cc_temp in $compiler""; do
9082  case $cc_temp in
9083    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9084    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9085    \-*) ;;
9086    *) break;;
9087  esac
9088done
9089cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9090
9091
9092# Only perform the check for file, if the check method requires it
9093case $deplibs_check_method in
9094file_magic*)
9095  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9097$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9098if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9099  $as_echo_n "(cached) " >&6
9100else
9101  case $MAGIC_CMD in
9102[\\/*] |  ?:[\\/]*)
9103  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9104  ;;
9105*)
9106  lt_save_MAGIC_CMD="$MAGIC_CMD"
9107  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9108  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9109  for ac_dir in $ac_dummy; do
9110    IFS="$lt_save_ifs"
9111    test -z "$ac_dir" && ac_dir=.
9112    if test -f $ac_dir/${ac_tool_prefix}file; then
9113      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9114      if test -n "$file_magic_test_file"; then
9115        case $deplibs_check_method in
9116        "file_magic "*)
9117          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9118          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9119          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9120            $EGREP "$file_magic_regex" > /dev/null; then
9121            :
9122          else
9123            cat <<EOF 1>&2
9124
9125*** Warning: the command libtool uses to detect shared libraries,
9126*** $file_magic_cmd, produces output that libtool cannot recognize.
9127*** The result is that libtool may fail to recognize shared libraries
9128*** as such.  This will affect the creation of libtool libraries that
9129*** depend on shared libraries, but programs linked with such libtool
9130*** libraries will work regardless of this problem.  Nevertheless, you
9131*** may want to report the problem to your system manager and/or to
9132*** bug-libtool@gnu.org
9133
9134EOF
9135          fi ;;
9136        esac
9137      fi
9138      break
9139    fi
9140  done
9141  IFS="$lt_save_ifs"
9142  MAGIC_CMD="$lt_save_MAGIC_CMD"
9143  ;;
9144esac
9145fi
9146
9147MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9148if test -n "$MAGIC_CMD"; then
9149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9150$as_echo "$MAGIC_CMD" >&6; }
9151else
9152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153$as_echo "no" >&6; }
9154fi
9155
9156if test -z "$lt_cv_path_MAGIC_CMD"; then
9157  if test -n "$ac_tool_prefix"; then
9158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9159$as_echo_n "checking for file... " >&6; }
9160if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9161  $as_echo_n "(cached) " >&6
9162else
9163  case $MAGIC_CMD in
9164[\\/*] |  ?:[\\/]*)
9165  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9166  ;;
9167*)
9168  lt_save_MAGIC_CMD="$MAGIC_CMD"
9169  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9170  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9171  for ac_dir in $ac_dummy; do
9172    IFS="$lt_save_ifs"
9173    test -z "$ac_dir" && ac_dir=.
9174    if test -f $ac_dir/file; then
9175      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9176      if test -n "$file_magic_test_file"; then
9177        case $deplibs_check_method in
9178        "file_magic "*)
9179          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9180          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9181          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9182            $EGREP "$file_magic_regex" > /dev/null; then
9183            :
9184          else
9185            cat <<EOF 1>&2
9186
9187*** Warning: the command libtool uses to detect shared libraries,
9188*** $file_magic_cmd, produces output that libtool cannot recognize.
9189*** The result is that libtool may fail to recognize shared libraries
9190*** as such.  This will affect the creation of libtool libraries that
9191*** depend on shared libraries, but programs linked with such libtool
9192*** libraries will work regardless of this problem.  Nevertheless, you
9193*** may want to report the problem to your system manager and/or to
9194*** bug-libtool@gnu.org
9195
9196EOF
9197          fi ;;
9198        esac
9199      fi
9200      break
9201    fi
9202  done
9203  IFS="$lt_save_ifs"
9204  MAGIC_CMD="$lt_save_MAGIC_CMD"
9205  ;;
9206esac
9207fi
9208
9209MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9210if test -n "$MAGIC_CMD"; then
9211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9212$as_echo "$MAGIC_CMD" >&6; }
9213else
9214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215$as_echo "no" >&6; }
9216fi
9217
9218  else
9219    MAGIC_CMD=:
9220  fi
9221fi
9222
9223  fi
9224  ;;
9225esac
9226
9227enable_dlopen=no
9228enable_win32_dll=no
9229
9230# Check whether --enable-libtool-lock was given.
9231if test "${enable_libtool_lock+set}" = set; then :
9232  enableval=$enable_libtool_lock;
9233fi
9234
9235test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9236
9237
9238# Check whether --with-pic was given.
9239if test "${with_pic+set}" = set; then :
9240  withval=$with_pic; pic_mode="$withval"
9241else
9242  pic_mode=default
9243fi
9244
9245test -z "$pic_mode" && pic_mode=default
9246
9247# Use C for the default configuration in the libtool script
9248tagname=
9249lt_save_CC="$CC"
9250ac_ext=c
9251ac_cpp='$CPP $CPPFLAGS'
9252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9254ac_compiler_gnu=$ac_cv_c_compiler_gnu
9255
9256
9257# Source file extension for C test sources.
9258ac_ext=c
9259
9260# Object file extension for compiled C test sources.
9261objext=o
9262objext=$objext
9263
9264# Code to be used in simple compile tests
9265lt_simple_compile_test_code="int some_variable = 0;\n"
9266
9267# Code to be used in simple link tests
9268lt_simple_link_test_code='int main(){return(0);}\n'
9269
9270
9271# If no C compiler was specified, use CC.
9272LTCC=${LTCC-"$CC"}
9273
9274# If no C compiler flags were specified, use CFLAGS.
9275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9276
9277# Allow CC to be a program name with arguments.
9278compiler=$CC
9279
9280
9281# save warnings/boilerplate of simple test code
9282ac_outfile=conftest.$ac_objext
9283printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9284eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9285_lt_compiler_boilerplate=`cat conftest.err`
9286$rm conftest*
9287
9288ac_outfile=conftest.$ac_objext
9289printf "$lt_simple_link_test_code" >conftest.$ac_ext
9290eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9291_lt_linker_boilerplate=`cat conftest.err`
9292$rm conftest*
9293
9294
9295## CAVEAT EMPTOR:
9296## There is no encapsulation within the following macros, do not change
9297## the running order or otherwise move them around unless you know exactly
9298## what you are doing...
9299
9300lt_prog_compiler_no_builtin_flag=
9301
9302if test "$GCC" = yes; then
9303  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9304
9305
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9307$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9308if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9309  $as_echo_n "(cached) " >&6
9310else
9311  lt_cv_prog_compiler_rtti_exceptions=no
9312  ac_outfile=conftest.$ac_objext
9313   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9314   lt_compiler_flag="-fno-rtti -fno-exceptions"
9315   # Insert the option either (1) after the last *FLAGS variable, or
9316   # (2) before a word containing "conftest.", or (3) at the end.
9317   # Note that $ac_compile itself does not contain backslashes and begins
9318   # with a dollar sign (not a hyphen), so the echo should work correctly.
9319   # The option is referenced via a variable to avoid confusing sed.
9320   lt_compile=`echo "$ac_compile" | $SED \
9321   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9322   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9323   -e 's:$: $lt_compiler_flag:'`
9324   (eval echo "\"\$as_me:9324: $lt_compile\"" >&5)
9325   (eval "$lt_compile" 2>conftest.err)
9326   ac_status=$?
9327   cat conftest.err >&5
9328   echo "$as_me:9328: \$? = $ac_status" >&5
9329   if (exit $ac_status) && test -s "$ac_outfile"; then
9330     # The compiler can only warn and ignore the option if not recognized
9331     # So say no if there are warnings other than the usual output.
9332     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9333     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9334     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9335       lt_cv_prog_compiler_rtti_exceptions=yes
9336     fi
9337   fi
9338   $rm conftest*
9339
9340fi
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9342$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9343
9344if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9345    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9346else
9347    :
9348fi
9349
9350fi
9351
9352lt_prog_compiler_wl=
9353lt_prog_compiler_pic=
9354lt_prog_compiler_static=
9355
9356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9357$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9358
9359  if test "$GCC" = yes; then
9360    lt_prog_compiler_wl='-Wl,'
9361    lt_prog_compiler_static='-static'
9362
9363    case $host_os in
9364      aix*)
9365      # All AIX code is PIC.
9366      if test "$host_cpu" = ia64; then
9367        # AIX 5 now supports IA64 processor
9368        lt_prog_compiler_static='-Bstatic'
9369      fi
9370      ;;
9371
9372    amigaos*)
9373      # FIXME: we need at least 68020 code to build shared libraries, but
9374      # adding the `-m68020' flag to GCC prevents building anything better,
9375      # like `-m68040'.
9376      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9377      ;;
9378
9379    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9380      # PIC is the default for these OSes.
9381      ;;
9382
9383    mingw* | pw32* | os2*)
9384      # This hack is so that the source file can tell whether it is being
9385      # built for inclusion in a dll (and should export symbols for example).
9386      lt_prog_compiler_pic='-DDLL_EXPORT'
9387      ;;
9388
9389    darwin* | rhapsody*)
9390      # PIC is the default on this platform
9391      # Common symbols not allowed in MH_DYLIB files
9392      lt_prog_compiler_pic='-fno-common'
9393      ;;
9394
9395    interix3*)
9396      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9397      # Instead, we relocate shared libraries at runtime.
9398      ;;
9399
9400    msdosdjgpp*)
9401      # Just because we use GCC doesn't mean we suddenly get shared libraries
9402      # on systems that don't support them.
9403      lt_prog_compiler_can_build_shared=no
9404      enable_shared=no
9405      ;;
9406
9407    sysv4*MP*)
9408      if test -d /usr/nec; then
9409        lt_prog_compiler_pic=-Kconform_pic
9410      fi
9411      ;;
9412
9413    hpux*)
9414      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9415      # not for PA HP-UX.
9416      case $host_cpu in
9417      hppa*64*|ia64*)
9418        # +Z the default
9419        ;;
9420      *)
9421        lt_prog_compiler_pic='-fPIC'
9422        ;;
9423      esac
9424      ;;
9425
9426    *)
9427      lt_prog_compiler_pic='-fPIC'
9428      ;;
9429    esac
9430  else
9431    # PORTME Check for flag to pass linker flags through the system compiler.
9432    case $host_os in
9433    aix*)
9434      lt_prog_compiler_wl='-Wl,'
9435      if test "$host_cpu" = ia64; then
9436        # AIX 5 now supports IA64 processor
9437        lt_prog_compiler_static='-Bstatic'
9438      else
9439        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9440      fi
9441      ;;
9442      darwin*)
9443        # PIC is the default on this platform
9444        # Common symbols not allowed in MH_DYLIB files
9445       case $cc_basename in
9446         xlc*)
9447         lt_prog_compiler_pic='-qnocommon'
9448         lt_prog_compiler_wl='-Wl,'
9449         ;;
9450       esac
9451       ;;
9452
9453    mingw* | pw32* | os2*)
9454      # This hack is so that the source file can tell whether it is being
9455      # built for inclusion in a dll (and should export symbols for example).
9456      lt_prog_compiler_pic='-DDLL_EXPORT'
9457      ;;
9458
9459    hpux9* | hpux10* | hpux11*)
9460      lt_prog_compiler_wl='-Wl,'
9461      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9462      # not for PA HP-UX.
9463      case $host_cpu in
9464      hppa*64*|ia64*)
9465        # +Z the default
9466        ;;
9467      *)
9468        lt_prog_compiler_pic='+Z'
9469        ;;
9470      esac
9471      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9472      lt_prog_compiler_static='${wl}-a ${wl}archive'
9473      ;;
9474
9475    irix5* | irix6* | nonstopux*)
9476      lt_prog_compiler_wl='-Wl,'
9477      # PIC (with -KPIC) is the default.
9478      lt_prog_compiler_static='-non_shared'
9479      ;;
9480
9481    newsos6)
9482      lt_prog_compiler_pic='-KPIC'
9483      lt_prog_compiler_static='-Bstatic'
9484      ;;
9485
9486    linux*)
9487      case $cc_basename in
9488      icc* | ecc*)
9489        lt_prog_compiler_wl='-Wl,'
9490        lt_prog_compiler_pic='-KPIC'
9491        lt_prog_compiler_static='-static'
9492        ;;
9493      pgcc* | pgf77* | pgf90* | pgf95*)
9494        # Portland Group compilers (*not* the Pentium gcc compiler,
9495        # which looks to be a dead project)
9496        lt_prog_compiler_wl='-Wl,'
9497        lt_prog_compiler_pic='-fpic'
9498        lt_prog_compiler_static='-Bstatic'
9499        ;;
9500      ccc*)
9501        lt_prog_compiler_wl='-Wl,'
9502        # All Alpha code is PIC.
9503        lt_prog_compiler_static='-non_shared'
9504        ;;
9505      esac
9506      ;;
9507
9508    osf3* | osf4* | osf5*)
9509      lt_prog_compiler_wl='-Wl,'
9510      # All OSF/1 code is PIC.
9511      lt_prog_compiler_static='-non_shared'
9512      ;;
9513
9514    solaris*)
9515      lt_prog_compiler_pic='-KPIC'
9516      lt_prog_compiler_static='-Bstatic'
9517      case $cc_basename in
9518      f77* | f90* | f95*)
9519        lt_prog_compiler_wl='-Qoption ld ';;
9520      *)
9521        lt_prog_compiler_wl='-Wl,';;
9522      esac
9523      ;;
9524
9525    sunos4*)
9526      lt_prog_compiler_wl='-Qoption ld '
9527      lt_prog_compiler_pic='-PIC'
9528      lt_prog_compiler_static='-Bstatic'
9529      ;;
9530
9531    sysv4 | sysv4.2uw2* | sysv4.3*)
9532      lt_prog_compiler_wl='-Wl,'
9533      lt_prog_compiler_pic='-KPIC'
9534      lt_prog_compiler_static='-Bstatic'
9535      ;;
9536
9537    sysv4*MP*)
9538      if test -d /usr/nec ;then
9539        lt_prog_compiler_pic='-Kconform_pic'
9540        lt_prog_compiler_static='-Bstatic'
9541      fi
9542      ;;
9543
9544    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9545      lt_prog_compiler_wl='-Wl,'
9546      lt_prog_compiler_pic='-KPIC'
9547      lt_prog_compiler_static='-Bstatic'
9548      ;;
9549
9550    unicos*)
9551      lt_prog_compiler_wl='-Wl,'
9552      lt_prog_compiler_can_build_shared=no
9553      ;;
9554
9555    uts4*)
9556      lt_prog_compiler_pic='-pic'
9557      lt_prog_compiler_static='-Bstatic'
9558      ;;
9559
9560    *)
9561      lt_prog_compiler_can_build_shared=no
9562      ;;
9563    esac
9564  fi
9565
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9567$as_echo "$lt_prog_compiler_pic" >&6; }
9568
9569#
9570# Check to make sure the PIC flag actually works.
9571#
9572if test -n "$lt_prog_compiler_pic"; then
9573
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9575$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9576if test "${lt_prog_compiler_pic_works+set}" = set; then :
9577  $as_echo_n "(cached) " >&6
9578else
9579  lt_prog_compiler_pic_works=no
9580  ac_outfile=conftest.$ac_objext
9581   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9582   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9583   # Insert the option either (1) after the last *FLAGS variable, or
9584   # (2) before a word containing "conftest.", or (3) at the end.
9585   # Note that $ac_compile itself does not contain backslashes and begins
9586   # with a dollar sign (not a hyphen), so the echo should work correctly.
9587   # The option is referenced via a variable to avoid confusing sed.
9588   lt_compile=`echo "$ac_compile" | $SED \
9589   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9590   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9591   -e 's:$: $lt_compiler_flag:'`
9592   (eval echo "\"\$as_me:9592: $lt_compile\"" >&5)
9593   (eval "$lt_compile" 2>conftest.err)
9594   ac_status=$?
9595   cat conftest.err >&5
9596   echo "$as_me:9596: \$? = $ac_status" >&5
9597   if (exit $ac_status) && test -s "$ac_outfile"; then
9598     # The compiler can only warn and ignore the option if not recognized
9599     # So say no if there are warnings other than the usual output.
9600     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9601     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9602     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9603       lt_prog_compiler_pic_works=yes
9604     fi
9605   fi
9606   $rm conftest*
9607
9608fi
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
9610$as_echo "$lt_prog_compiler_pic_works" >&6; }
9611
9612if test x"$lt_prog_compiler_pic_works" = xyes; then
9613    case $lt_prog_compiler_pic in
9614     "" | " "*) ;;
9615     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9616     esac
9617else
9618    lt_prog_compiler_pic=
9619     lt_prog_compiler_can_build_shared=no
9620fi
9621
9622fi
9623case $host_os in
9624  # For platforms which do not support PIC, -DPIC is meaningless:
9625  *djgpp*)
9626    lt_prog_compiler_pic=
9627    ;;
9628  *)
9629    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9630    ;;
9631esac
9632
9633#
9634# Check to make sure the static flag actually works.
9635#
9636wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9638$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9639if test "${lt_prog_compiler_static_works+set}" = set; then :
9640  $as_echo_n "(cached) " >&6
9641else
9642  lt_prog_compiler_static_works=no
9643   save_LDFLAGS="$LDFLAGS"
9644   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9645   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9646   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9647     # The linker can only warn and ignore the option if not recognized
9648     # So say no if there are warnings
9649     if test -s conftest.err; then
9650       # Append any errors to the config.log.
9651       cat conftest.err 1>&5
9652       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9653       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9654       if diff conftest.exp conftest.er2 >/dev/null; then
9655         lt_prog_compiler_static_works=yes
9656       fi
9657     else
9658       lt_prog_compiler_static_works=yes
9659     fi
9660   fi
9661   $rm conftest*
9662   LDFLAGS="$save_LDFLAGS"
9663
9664fi
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
9666$as_echo "$lt_prog_compiler_static_works" >&6; }
9667
9668if test x"$lt_prog_compiler_static_works" = xyes; then
9669    :
9670else
9671    lt_prog_compiler_static=
9672fi
9673
9674
9675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9676$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9677if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9678  $as_echo_n "(cached) " >&6
9679else
9680  lt_cv_prog_compiler_c_o=no
9681   $rm -r conftest 2>/dev/null
9682   mkdir conftest
9683   cd conftest
9684   mkdir out
9685   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9686
9687   lt_compiler_flag="-o out/conftest2.$ac_objext"
9688   # Insert the option either (1) after the last *FLAGS variable, or
9689   # (2) before a word containing "conftest.", or (3) at the end.
9690   # Note that $ac_compile itself does not contain backslashes and begins
9691   # with a dollar sign (not a hyphen), so the echo should work correctly.
9692   lt_compile=`echo "$ac_compile" | $SED \
9693   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9694   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9695   -e 's:$: $lt_compiler_flag:'`
9696   (eval echo "\"\$as_me:9696: $lt_compile\"" >&5)
9697   (eval "$lt_compile" 2>out/conftest.err)
9698   ac_status=$?
9699   cat out/conftest.err >&5
9700   echo "$as_me:9700: \$? = $ac_status" >&5
9701   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9702   then
9703     # The compiler can only warn and ignore the option if not recognized
9704     # So say no if there are warnings
9705     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9706     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9707     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9708       lt_cv_prog_compiler_c_o=yes
9709     fi
9710   fi
9711   chmod u+w . 2>&5
9712   $rm conftest*
9713   # SGI C++ compiler will create directory out/ii_files/ for
9714   # template instantiation
9715   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9716   $rm out/* && rmdir out
9717   cd ..
9718   rmdir conftest
9719   $rm conftest*
9720
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9723$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9724
9725
9726hard_links="nottested"
9727if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9728  # do not overwrite the value of need_locks provided by the user
9729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9730$as_echo_n "checking if we can lock with hard links... " >&6; }
9731  hard_links=yes
9732  $rm conftest*
9733  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9734  touch conftest.a
9735  ln conftest.a conftest.b 2>&5 || hard_links=no
9736  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9738$as_echo "$hard_links" >&6; }
9739  if test "$hard_links" = no; then
9740    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9741$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9742    need_locks=warn
9743  fi
9744else
9745  need_locks=no
9746fi
9747
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9749$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9750
9751  runpath_var=
9752  allow_undefined_flag=
9753  enable_shared_with_static_runtimes=no
9754  archive_cmds=
9755  archive_expsym_cmds=
9756  old_archive_From_new_cmds=
9757  old_archive_from_expsyms_cmds=
9758  export_dynamic_flag_spec=
9759  whole_archive_flag_spec=
9760  thread_safe_flag_spec=
9761  hardcode_libdir_flag_spec=
9762  hardcode_libdir_flag_spec_ld=
9763  hardcode_libdir_separator=
9764  hardcode_direct=no
9765  hardcode_minus_L=no
9766  hardcode_shlibpath_var=unsupported
9767  link_all_deplibs=unknown
9768  hardcode_automatic=no
9769  module_cmds=
9770  module_expsym_cmds=
9771  always_export_symbols=no
9772  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9773  # include_expsyms should be a list of space-separated symbols to be *always*
9774  # included in the symbol list
9775  include_expsyms=
9776  # exclude_expsyms can be an extended regexp of symbols to exclude
9777  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9778  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9779  # as well as any symbol that contains `d'.
9780  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9781  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9782  # platforms (ab)use it in PIC code, but their linkers get confused if
9783  # the symbol is explicitly referenced.  Since portable code cannot
9784  # rely on this symbol name, it's probably fine to never include it in
9785  # preloaded symbol tables.
9786  extract_expsyms_cmds=
9787  # Just being paranoid about ensuring that cc_basename is set.
9788  for cc_temp in $compiler""; do
9789  case $cc_temp in
9790    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9791    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9792    \-*) ;;
9793    *) break;;
9794  esac
9795done
9796cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9797
9798  case $host_os in
9799  cygwin* | mingw* | pw32*)
9800    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9801    # When not using gcc, we currently assume that we are using
9802    # Microsoft Visual C++.
9803    if test "$GCC" != yes; then
9804      with_gnu_ld=no
9805    fi
9806    ;;
9807  interix*)
9808    # we just hope/assume this is gcc and not c89 (= MSVC++)
9809    with_gnu_ld=yes
9810    ;;
9811  openbsd*)
9812    with_gnu_ld=no
9813    ;;
9814  esac
9815
9816  ld_shlibs=yes
9817  if test "$with_gnu_ld" = yes; then
9818    # If archive_cmds runs LD, not CC, wlarc should be empty
9819    wlarc='${wl}'
9820
9821    # Set some defaults for GNU ld with shared library support. These
9822    # are reset later if shared libraries are not supported. Putting them
9823    # here allows them to be overridden if necessary.
9824    runpath_var=LD_RUN_PATH
9825    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9826    export_dynamic_flag_spec='${wl}--export-dynamic'
9827    # ancient GNU ld didn't support --whole-archive et. al.
9828    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9829        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9830      else
9831        whole_archive_flag_spec=
9832    fi
9833    supports_anon_versioning=no
9834    case `$LD -v 2>/dev/null` in
9835      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9836      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9837      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9838      *\ 2.11.*) ;; # other 2.11 versions
9839      *) supports_anon_versioning=yes ;;
9840    esac
9841
9842    # See if GNU ld supports shared libraries.
9843    case $host_os in
9844    aix3* | aix4* | aix5*)
9845      # On AIX/PPC, the GNU linker is very broken
9846      if test "$host_cpu" != ia64; then
9847        ld_shlibs=no
9848        cat <<EOF 1>&2
9849
9850*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9851*** to be unable to reliably create shared libraries on AIX.
9852*** Therefore, libtool is disabling shared libraries support.  If you
9853*** really care for shared libraries, you may want to modify your PATH
9854*** so that a non-GNU linker is found, and then restart.
9855
9856EOF
9857      fi
9858      ;;
9859
9860    amigaos*)
9861      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9862      hardcode_libdir_flag_spec='-L$libdir'
9863      hardcode_minus_L=yes
9864
9865      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9866      # that the semantics of dynamic libraries on AmigaOS, at least up
9867      # to version 4, is to share data among multiple programs linked
9868      # with the same dynamic library.  Since this doesn't match the
9869      # behavior of shared libraries on other platforms, we can't use
9870      # them.
9871      ld_shlibs=no
9872      ;;
9873
9874    beos*)
9875      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9876        allow_undefined_flag=unsupported
9877        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9878        # support --undefined.  This deserves some investigation.  FIXME
9879        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9880      else
9881        ld_shlibs=no
9882      fi
9883      ;;
9884
9885    cygwin* | mingw* | pw32*)
9886      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9887      # as there is no search path for DLLs.
9888      hardcode_libdir_flag_spec='-L$libdir'
9889      allow_undefined_flag=unsupported
9890      always_export_symbols=no
9891      enable_shared_with_static_runtimes=yes
9892      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9893
9894      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9895        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9896        # If the export-symbols file already is a .def file (1st line
9897        # is EXPORTS), use it as is; otherwise, prepend...
9898        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9899          cp $export_symbols $output_objdir/$soname.def;
9900        else
9901          echo EXPORTS > $output_objdir/$soname.def;
9902          cat $export_symbols >> $output_objdir/$soname.def;
9903        fi~
9904        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9905      else
9906        ld_shlibs=no
9907      fi
9908      ;;
9909
9910    interix3*)
9911      hardcode_direct=no
9912      hardcode_shlibpath_var=no
9913      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9914      export_dynamic_flag_spec='${wl}-E'
9915      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9916      # Instead, shared libraries are loaded at an image base (0x10000000 by
9917      # default) and relocated if they conflict, which is a slow very memory
9918      # consuming and fragmenting process.  To avoid this, we pick a random,
9919      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9920      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9921      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9922      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9923      ;;
9924
9925    linux*)
9926      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9927        tmp_addflag=
9928        case $cc_basename,$host_cpu in
9929        pgcc*)                          # Portland Group C compiler
9930          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9931          tmp_addflag=' $pic_flag'
9932          ;;
9933        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9934          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9935          tmp_addflag=' $pic_flag -Mnomain' ;;
9936        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9937          tmp_addflag=' -i_dynamic' ;;
9938        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9939          tmp_addflag=' -i_dynamic -nofor_main' ;;
9940        ifc* | ifort*)                  # Intel Fortran compiler
9941          tmp_addflag=' -nofor_main' ;;
9942        esac
9943        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9944
9945        if test $supports_anon_versioning = yes; then
9946          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9947  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9948  $echo "local: *; };" >> $output_objdir/$libname.ver~
9949          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9950        fi
9951      else
9952        ld_shlibs=no
9953      fi
9954      ;;
9955
9956    netbsd*)
9957      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9958        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9959        wlarc=
9960      else
9961        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9963      fi
9964      ;;
9965
9966    solaris*)
9967      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9968        ld_shlibs=no
9969        cat <<EOF 1>&2
9970
9971*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9972*** create shared libraries on Solaris systems.  Therefore, libtool
9973*** is disabling shared libraries support.  We urge you to upgrade GNU
9974*** binutils to release 2.9.1 or newer.  Another option is to modify
9975*** your PATH or compiler configuration so that the native linker is
9976*** used, and then restart.
9977
9978EOF
9979      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9980        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9982      else
9983        ld_shlibs=no
9984      fi
9985      ;;
9986
9987    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9988      case `$LD -v 2>&1` in
9989        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9990        ld_shlibs=no
9991        cat <<_LT_EOF 1>&2
9992
9993*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9994*** reliably create shared libraries on SCO systems.  Therefore, libtool
9995*** is disabling shared libraries support.  We urge you to upgrade GNU
9996*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9997*** your PATH or compiler configuration so that the native linker is
9998*** used, and then restart.
9999
10000_LT_EOF
10001        ;;
10002        *)
10003          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10004            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10005            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10006            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10007          else
10008            ld_shlibs=no
10009          fi
10010        ;;
10011      esac
10012      ;;
10013
10014    sunos4*)
10015      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10016      wlarc=
10017      hardcode_direct=yes
10018      hardcode_shlibpath_var=no
10019      ;;
10020
10021    *)
10022      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10023        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10024        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10025      else
10026        ld_shlibs=no
10027      fi
10028      ;;
10029    esac
10030
10031    if test "$ld_shlibs" = no; then
10032      runpath_var=
10033      hardcode_libdir_flag_spec=
10034      export_dynamic_flag_spec=
10035      whole_archive_flag_spec=
10036    fi
10037  else
10038    # PORTME fill in a description of your system's linker (not GNU ld)
10039    case $host_os in
10040    aix3*)
10041      allow_undefined_flag=unsupported
10042      always_export_symbols=yes
10043      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10044      # Note: this linker hardcodes the directories in LIBPATH if there
10045      # are no directories specified by -L.
10046      hardcode_minus_L=yes
10047      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10048        # Neither direct hardcoding nor static linking is supported with a
10049        # broken collect2.
10050        hardcode_direct=unsupported
10051      fi
10052      ;;
10053
10054    aix4* | aix5*)
10055      if test "$host_cpu" = ia64; then
10056        # On IA64, the linker does run time linking by default, so we don't
10057        # have to do anything special.
10058        aix_use_runtimelinking=no
10059        exp_sym_flag='-Bexport'
10060        no_entry_flag=""
10061      else
10062        # If we're using GNU nm, then we don't want the "-C" option.
10063        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10064        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10065          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10066        else
10067          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10068        fi
10069        aix_use_runtimelinking=no
10070
10071        # Test if we are trying to use run time linking or normal
10072        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10073        # need to do runtime linking.
10074        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10075          for ld_flag in $LDFLAGS; do
10076          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10077            aix_use_runtimelinking=yes
10078            break
10079          fi
10080          done
10081          ;;
10082        esac
10083
10084        exp_sym_flag='-bexport'
10085        no_entry_flag='-bnoentry'
10086      fi
10087
10088      # When large executables or shared objects are built, AIX ld can
10089      # have problems creating the table of contents.  If linking a library
10090      # or program results in "error TOC overflow" add -mminimal-toc to
10091      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10092      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10093
10094      archive_cmds=''
10095      hardcode_direct=yes
10096      hardcode_libdir_separator=':'
10097      link_all_deplibs=yes
10098
10099      if test "$GCC" = yes; then
10100        case $host_os in aix4.[012]|aix4.[012].*)
10101        # We only want to do this on AIX 4.2 and lower, the check
10102        # below for broken collect2 doesn't work under 4.3+
10103          collect2name=`${CC} -print-prog-name=collect2`
10104          if test -f "$collect2name" && \
10105           strings "$collect2name" | grep resolve_lib_name >/dev/null
10106          then
10107          # We have reworked collect2
10108          hardcode_direct=yes
10109          else
10110          # We have old collect2
10111          hardcode_direct=unsupported
10112          # It fails to find uninstalled libraries when the uninstalled
10113          # path is not listed in the libpath.  Setting hardcode_minus_L
10114          # to unsupported forces relinking
10115          hardcode_minus_L=yes
10116          hardcode_libdir_flag_spec='-L$libdir'
10117          hardcode_libdir_separator=
10118          fi
10119          ;;
10120        esac
10121        shared_flag='-shared'
10122        if test "$aix_use_runtimelinking" = yes; then
10123          shared_flag="$shared_flag "'${wl}-G'
10124        fi
10125      else
10126        # not using gcc
10127        if test "$host_cpu" = ia64; then
10128        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10129        # chokes on -Wl,-G. The following line is correct:
10130          shared_flag='-G'
10131        else
10132          if test "$aix_use_runtimelinking" = yes; then
10133            shared_flag='${wl}-G'
10134          else
10135            shared_flag='${wl}-bM:SRE'
10136          fi
10137        fi
10138      fi
10139
10140      # It seems that -bexpall does not export symbols beginning with
10141      # underscore (_), so it is better to generate a list of symbols to export.
10142      always_export_symbols=yes
10143      if test "$aix_use_runtimelinking" = yes; then
10144        # Warning - without using the other runtime loading flags (-brtl),
10145        # -berok will link without error, but may produce a broken library.
10146        allow_undefined_flag='-berok'
10147       # Determine the default libpath from the value encoded in an empty executable.
10148       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149/* end confdefs.h.  */
10150
10151int
10152main ()
10153{
10154
10155  ;
10156  return 0;
10157}
10158_ACEOF
10159if ac_fn_c_try_link "$LINENO"; then :
10160
10161aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10162}'`
10163# Check for a 64-bit object if we didn't find anything.
10164if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10165}'`; fi
10166fi
10167rm -f core conftest.err conftest.$ac_objext \
10168    conftest$ac_exeext conftest.$ac_ext
10169if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10170
10171       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10172        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10173       else
10174        if test "$host_cpu" = ia64; then
10175          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10176          allow_undefined_flag="-z nodefs"
10177          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10178        else
10179         # Determine the default libpath from the value encoded in an empty executable.
10180         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h.  */
10182
10183int
10184main ()
10185{
10186
10187  ;
10188  return 0;
10189}
10190_ACEOF
10191if ac_fn_c_try_link "$LINENO"; then :
10192
10193aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10194}'`
10195# Check for a 64-bit object if we didn't find anything.
10196if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10197}'`; fi
10198fi
10199rm -f core conftest.err conftest.$ac_objext \
10200    conftest$ac_exeext conftest.$ac_ext
10201if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10202
10203         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10204          # Warning - without using the other run time loading flags,
10205          # -berok will link without error, but may produce a broken library.
10206          no_undefined_flag=' ${wl}-bernotok'
10207          allow_undefined_flag=' ${wl}-berok'
10208          # Exported symbols can be pulled into shared objects from archives
10209          whole_archive_flag_spec='$convenience'
10210          archive_cmds_need_lc=yes
10211          # This is similar to how AIX traditionally builds its shared libraries.
10212          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10213        fi
10214      fi
10215      ;;
10216
10217    amigaos*)
10218      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10219      hardcode_libdir_flag_spec='-L$libdir'
10220      hardcode_minus_L=yes
10221      # see comment about different semantics on the GNU ld section
10222      ld_shlibs=no
10223      ;;
10224
10225    bsdi[45]*)
10226      export_dynamic_flag_spec=-rdynamic
10227      ;;
10228
10229    cygwin* | mingw* | pw32*)
10230      # When not using gcc, we currently assume that we are using
10231      # Microsoft Visual C++.
10232      # hardcode_libdir_flag_spec is actually meaningless, as there is
10233      # no search path for DLLs.
10234      hardcode_libdir_flag_spec=' '
10235      allow_undefined_flag=unsupported
10236      # Tell ltmain to make .lib files, not .a files.
10237      libext=lib
10238      # Tell ltmain to make .dll files, not .so files.
10239      shrext_cmds=".dll"
10240      # FIXME: Setting linknames here is a bad hack.
10241      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10242      # The linker will automatically build a .lib file if we build a DLL.
10243      old_archive_From_new_cmds='true'
10244      # FIXME: Should let the user specify the lib program.
10245      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10246      fix_srcfile_path='`cygpath -w "$srcfile"`'
10247      enable_shared_with_static_runtimes=yes
10248      ;;
10249
10250    darwin* | rhapsody*)
10251      case $host_os in
10252        rhapsody* | darwin1.[012])
10253         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10254         ;;
10255       *) # Darwin 1.3 on
10256         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10257           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10258         else
10259           case ${MACOSX_DEPLOYMENT_TARGET} in
10260             10.[012])
10261               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10262               ;;
10263             10.*)
10264               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10265               ;;
10266           esac
10267         fi
10268         ;;
10269      esac
10270      archive_cmds_need_lc=no
10271      hardcode_direct=no
10272      hardcode_automatic=yes
10273      hardcode_shlibpath_var=unsupported
10274      whole_archive_flag_spec=''
10275      link_all_deplibs=yes
10276    if test "$GCC" = yes ; then
10277        output_verbose_link_cmd='echo'
10278        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10279      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10280      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10281      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10282      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10283    else
10284      case $cc_basename in
10285        xlc*)
10286         output_verbose_link_cmd='echo'
10287         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10288         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10289          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10290         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10291          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10292          ;;
10293       *)
10294         ld_shlibs=no
10295          ;;
10296      esac
10297    fi
10298      ;;
10299
10300    dgux*)
10301      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302      hardcode_libdir_flag_spec='-L$libdir'
10303      hardcode_shlibpath_var=no
10304      ;;
10305
10306    freebsd1*)
10307      ld_shlibs=no
10308      ;;
10309
10310    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10311    # support.  Future versions do this automatically, but an explicit c++rt0.o
10312    # does not break anything, and helps significantly (at the cost of a little
10313    # extra space).
10314    freebsd2.2*)
10315      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10316      hardcode_libdir_flag_spec='-R$libdir'
10317      hardcode_direct=yes
10318      hardcode_shlibpath_var=no
10319      ;;
10320
10321    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10322    freebsd2*)
10323      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10324      hardcode_direct=yes
10325      hardcode_minus_L=yes
10326      hardcode_shlibpath_var=no
10327      ;;
10328
10329    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10330    freebsd* | kfreebsd*-gnu | dragonfly*)
10331      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10332      hardcode_libdir_flag_spec='-R$libdir'
10333      hardcode_direct=yes
10334      hardcode_shlibpath_var=no
10335      ;;
10336
10337    hpux9*)
10338      if test "$GCC" = yes; then
10339        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10340      else
10341        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10342      fi
10343      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10344      hardcode_libdir_separator=:
10345      hardcode_direct=yes
10346
10347      # hardcode_minus_L: Not really in the search PATH,
10348      # but as the default location of the library.
10349      hardcode_minus_L=yes
10350      export_dynamic_flag_spec='${wl}-E'
10351      ;;
10352
10353    hpux10*)
10354      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10355        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10356      else
10357        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10358      fi
10359      if test "$with_gnu_ld" = no; then
10360        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10361        hardcode_libdir_separator=:
10362
10363        hardcode_direct=yes
10364        export_dynamic_flag_spec='${wl}-E'
10365
10366        # hardcode_minus_L: Not really in the search PATH,
10367        # but as the default location of the library.
10368        hardcode_minus_L=yes
10369      fi
10370      ;;
10371
10372    hpux11*)
10373      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10374        case $host_cpu in
10375        hppa*64*)
10376          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10377          ;;
10378        ia64*)
10379          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10380          ;;
10381        *)
10382          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10383          ;;
10384        esac
10385      else
10386        case $host_cpu in
10387        hppa*64*)
10388          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10389          ;;
10390        ia64*)
10391          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10392          ;;
10393        *)
10394          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10395          ;;
10396        esac
10397      fi
10398      if test "$with_gnu_ld" = no; then
10399        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10400        hardcode_libdir_separator=:
10401
10402        case $host_cpu in
10403        hppa*64*|ia64*)
10404          hardcode_libdir_flag_spec_ld='+b $libdir'
10405          hardcode_direct=no
10406          hardcode_shlibpath_var=no
10407          ;;
10408        *)
10409          hardcode_direct=yes
10410          export_dynamic_flag_spec='${wl}-E'
10411
10412          # hardcode_minus_L: Not really in the search PATH,
10413          # but as the default location of the library.
10414          hardcode_minus_L=yes
10415          ;;
10416        esac
10417      fi
10418      ;;
10419
10420    irix5* | irix6* | nonstopux*)
10421      if test "$GCC" = yes; then
10422        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10423      else
10424        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10425        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10426      fi
10427      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10428      hardcode_libdir_separator=:
10429      link_all_deplibs=yes
10430      ;;
10431
10432    netbsd*)
10433      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10434        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10435      else
10436        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10437      fi
10438      hardcode_libdir_flag_spec='-R$libdir'
10439      hardcode_direct=yes
10440      hardcode_shlibpath_var=no
10441      ;;
10442
10443    newsos6)
10444      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10445      hardcode_direct=yes
10446      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10447      hardcode_libdir_separator=:
10448      hardcode_shlibpath_var=no
10449      ;;
10450
10451    openbsd*)
10452      hardcode_direct=yes
10453      hardcode_shlibpath_var=no
10454      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10455        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10456        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10457        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10458        export_dynamic_flag_spec='${wl}-E'
10459      else
10460       case $host_os in
10461         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10462           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10463           hardcode_libdir_flag_spec='-R$libdir'
10464           ;;
10465         *)
10466           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10467           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10468           ;;
10469       esac
10470      fi
10471      ;;
10472
10473    os2*)
10474      hardcode_libdir_flag_spec='-L$libdir'
10475      hardcode_minus_L=yes
10476      allow_undefined_flag=unsupported
10477      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10478      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10479      ;;
10480
10481    osf3*)
10482      if test "$GCC" = yes; then
10483        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10484        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10485      else
10486        allow_undefined_flag=' -expect_unresolved \*'
10487        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10488      fi
10489      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10490      hardcode_libdir_separator=:
10491      ;;
10492
10493    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10494      if test "$GCC" = yes; then
10495        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10496        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10497        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10498      else
10499        allow_undefined_flag=' -expect_unresolved \*'
10500        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10501        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10502        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10503
10504        # Both c and cxx compiler support -rpath directly
10505        hardcode_libdir_flag_spec='-rpath $libdir'
10506      fi
10507      hardcode_libdir_separator=:
10508      ;;
10509
10510    solaris*)
10511      no_undefined_flag=' -z text'
10512      if test "$GCC" = yes; then
10513        wlarc='${wl}'
10514        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10515        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10516          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10517      else
10518        wlarc=''
10519        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10520        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10521        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10522      fi
10523      hardcode_libdir_flag_spec='-R$libdir'
10524      hardcode_shlibpath_var=no
10525      case $host_os in
10526      solaris2.[0-5] | solaris2.[0-5].*) ;;
10527      *)
10528        # The compiler driver will combine linker options so we
10529        # cannot just pass the convience library names through
10530        # without $wl, iff we do not link with $LD.
10531        # Luckily, gcc supports the same syntax we need for Sun Studio.
10532        # Supported since Solaris 2.6 (maybe 2.5.1?)
10533        case $wlarc in
10534        '')
10535          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10536        *)
10537          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10538        esac ;;
10539      esac
10540      link_all_deplibs=yes
10541      ;;
10542
10543    sunos4*)
10544      if test "x$host_vendor" = xsequent; then
10545        # Use $CC to link under sequent, because it throws in some extra .o
10546        # files that make .init and .fini sections work.
10547        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10548      else
10549        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10550      fi
10551      hardcode_libdir_flag_spec='-L$libdir'
10552      hardcode_direct=yes
10553      hardcode_minus_L=yes
10554      hardcode_shlibpath_var=no
10555      ;;
10556
10557    sysv4)
10558      case $host_vendor in
10559        sni)
10560          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10561          hardcode_direct=yes # is this really true???
10562        ;;
10563        siemens)
10564          ## LD is ld it makes a PLAMLIB
10565          ## CC just makes a GrossModule.
10566          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10567          reload_cmds='$CC -r -o $output$reload_objs'
10568          hardcode_direct=no
10569        ;;
10570        motorola)
10571          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10572          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10573        ;;
10574      esac
10575      runpath_var='LD_RUN_PATH'
10576      hardcode_shlibpath_var=no
10577      ;;
10578
10579    sysv4.3*)
10580      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581      hardcode_shlibpath_var=no
10582      export_dynamic_flag_spec='-Bexport'
10583      ;;
10584
10585    sysv4*MP*)
10586      if test -d /usr/nec; then
10587        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10588        hardcode_shlibpath_var=no
10589        runpath_var=LD_RUN_PATH
10590        hardcode_runpath_var=yes
10591        ld_shlibs=yes
10592      fi
10593      ;;
10594
10595    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10596      no_undefined_flag='${wl}-z,text'
10597      archive_cmds_need_lc=no
10598      hardcode_shlibpath_var=no
10599      runpath_var='LD_RUN_PATH'
10600
10601      if test "$GCC" = yes; then
10602        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10603        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10604      else
10605        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607      fi
10608      ;;
10609
10610    sysv5* | sco3.2v5* | sco5v6*)
10611      # Note: We can NOT use -z defs as we might desire, because we do not
10612      # link with -lc, and that would cause any symbols used from libc to
10613      # always be unresolved, which means just about no library would
10614      # ever link correctly.  If we're not using GNU ld we use -z text
10615      # though, which does catch some bad symbols but isn't as heavy-handed
10616      # as -z defs.
10617      no_undefined_flag='${wl}-z,text'
10618      allow_undefined_flag='${wl}-z,nodefs'
10619      archive_cmds_need_lc=no
10620      hardcode_shlibpath_var=no
10621      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10622      hardcode_libdir_separator=':'
10623      link_all_deplibs=yes
10624      export_dynamic_flag_spec='${wl}-Bexport'
10625      runpath_var='LD_RUN_PATH'
10626
10627      if test "$GCC" = yes; then
10628        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10629        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10630      else
10631        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10632        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10633      fi
10634      ;;
10635
10636    uts4*)
10637      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638      hardcode_libdir_flag_spec='-L$libdir'
10639      hardcode_shlibpath_var=no
10640      ;;
10641
10642    *)
10643      ld_shlibs=no
10644      ;;
10645    esac
10646  fi
10647
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10649$as_echo "$ld_shlibs" >&6; }
10650test "$ld_shlibs" = no && can_build_shared=no
10651
10652#
10653# Do we need to explicitly link libc?
10654#
10655case "x$archive_cmds_need_lc" in
10656x|xyes)
10657  # Assume -lc should be added
10658  archive_cmds_need_lc=yes
10659
10660  if test "$enable_shared" = yes && test "$GCC" = yes; then
10661    case $archive_cmds in
10662    *'~'*)
10663      # FIXME: we may have to deal with multi-command sequences.
10664      ;;
10665    '$CC '*)
10666      # Test whether the compiler implicitly links with -lc since on some
10667      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10668      # to ld, don't add -lc before -lgcc.
10669      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10670$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10671      $rm conftest*
10672      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10673
10674      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10675  (eval $ac_compile) 2>&5
10676  ac_status=$?
10677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10678  test $ac_status = 0; } 2>conftest.err; then
10679        soname=conftest
10680        lib=conftest
10681        libobjs=conftest.$ac_objext
10682        deplibs=
10683        wl=$lt_prog_compiler_wl
10684        pic_flag=$lt_prog_compiler_pic
10685        compiler_flags=-v
10686        linker_flags=-v
10687        verstring=
10688        output_objdir=.
10689        libname=conftest
10690        lt_save_allow_undefined_flag=$allow_undefined_flag
10691        allow_undefined_flag=
10692        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10693  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10694  ac_status=$?
10695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10696  test $ac_status = 0; }
10697        then
10698          archive_cmds_need_lc=no
10699        else
10700          archive_cmds_need_lc=yes
10701        fi
10702        allow_undefined_flag=$lt_save_allow_undefined_flag
10703      else
10704        cat conftest.err 1>&5
10705      fi
10706      $rm conftest*
10707      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10708$as_echo "$archive_cmds_need_lc" >&6; }
10709      ;;
10710    esac
10711  fi
10712  ;;
10713esac
10714
10715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10716$as_echo_n "checking dynamic linker characteristics... " >&6; }
10717library_names_spec=
10718libname_spec='lib$name'
10719soname_spec=
10720shrext_cmds=".so"
10721postinstall_cmds=
10722postuninstall_cmds=
10723finish_cmds=
10724finish_eval=
10725shlibpath_var=
10726shlibpath_overrides_runpath=unknown
10727version_type=none
10728dynamic_linker="$host_os ld.so"
10729sys_lib_dlsearch_path_spec="/lib /usr/lib"
10730if test "$GCC" = yes; then
10731  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10732  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10733    # if the path contains ";" then we assume it to be the separator
10734    # otherwise default to the standard path separator (i.e. ":") - it is
10735    # assumed that no part of a normal pathname contains ";" but that should
10736    # okay in the real world where ";" in dirpaths is itself problematic.
10737    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10738  else
10739    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10740  fi
10741else
10742  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10743fi
10744need_lib_prefix=unknown
10745hardcode_into_libs=no
10746
10747# when you set need_version to no, make sure it does not cause -set_version
10748# flags to be left without arguments
10749need_version=unknown
10750
10751case $host_os in
10752aix3*)
10753  version_type=linux
10754  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10755  shlibpath_var=LIBPATH
10756
10757  # AIX 3 has no versioning support, so we append a major version to the name.
10758  soname_spec='${libname}${release}${shared_ext}$major'
10759  ;;
10760
10761aix4* | aix5*)
10762  version_type=linux
10763  need_lib_prefix=no
10764  need_version=no
10765  hardcode_into_libs=yes
10766  if test "$host_cpu" = ia64; then
10767    # AIX 5 supports IA64
10768    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10769    shlibpath_var=LD_LIBRARY_PATH
10770  else
10771    # With GCC up to 2.95.x, collect2 would create an import file
10772    # for dependence libraries.  The import file would start with
10773    # the line `#! .'.  This would cause the generated library to
10774    # depend on `.', always an invalid library.  This was fixed in
10775    # development snapshots of GCC prior to 3.0.
10776    case $host_os in
10777      aix4 | aix4.[01] | aix4.[01].*)
10778      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10779           echo ' yes '
10780           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10781        :
10782      else
10783        can_build_shared=no
10784      fi
10785      ;;
10786    esac
10787    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10788    # soname into executable. Probably we can add versioning support to
10789    # collect2, so additional links can be useful in future.
10790    if test "$aix_use_runtimelinking" = yes; then
10791      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10792      # instead of lib<name>.a to let people know that these are not
10793      # typical AIX shared libraries.
10794      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795    else
10796      # We preserve .a as extension for shared libraries through AIX4.2
10797      # and later when we are not doing run time linking.
10798      library_names_spec='${libname}${release}.a $libname.a'
10799      soname_spec='${libname}${release}${shared_ext}$major'
10800    fi
10801    shlibpath_var=LIBPATH
10802  fi
10803  ;;
10804
10805amigaos*)
10806  library_names_spec='$libname.ixlibrary $libname.a'
10807  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10808  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10809  ;;
10810
10811beos*)
10812  library_names_spec='${libname}${shared_ext}'
10813  dynamic_linker="$host_os ld.so"
10814  shlibpath_var=LIBRARY_PATH
10815  ;;
10816
10817bsdi[45]*)
10818  version_type=linux
10819  need_version=no
10820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821  soname_spec='${libname}${release}${shared_ext}$major'
10822  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10823  shlibpath_var=LD_LIBRARY_PATH
10824  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10825  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10826  # the default ld.so.conf also contains /usr/contrib/lib and
10827  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10828  # libtool to hard-code these into programs
10829  ;;
10830
10831cygwin* | mingw* | pw32*)
10832  version_type=windows
10833  shrext_cmds=".dll"
10834  need_version=no
10835  need_lib_prefix=no
10836
10837  case $GCC,$host_os in
10838  yes,cygwin* | yes,mingw* | yes,pw32*)
10839    library_names_spec='$libname.dll.a'
10840    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10841    postinstall_cmds='base_file=`basename \${file}`~
10842      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10843      dldir=$destdir/`dirname \$dlpath`~
10844      test -d \$dldir || mkdir -p \$dldir~
10845      $install_prog $dir/$dlname \$dldir/$dlname~
10846      chmod a+x \$dldir/$dlname'
10847    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\