source: ThirdParty/Glpk/branches/autotools-update/configure @ 3248

Last change on this file since 3248 was 3248, checked in by stefan, 6 years ago

move more initialization

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