source: branches/autotools-update/Cbc/configure

Last change on this file was 2627, checked in by lou, 4 months ago

Collateral damage from adding --enable-debug to BuildTools?.

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