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

Last change on this file since 3851 was 3851, checked in by lou, 11 months ago

Update configure.ac and coinglpk.pc.in to work with INIT_LIBVARS.

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