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

Last change on this file since 3682 was 3682, checked in by stefan, 3 years ago

rerun autotools

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