COIN-OR::LEMON - Graph Library

source: lemon-project-template-glpk/deps/glpk/configure

subpack-glpk
Last change on this file was 9:33de93886c88, checked in by Alpar Juttner <alpar@…>, 13 years ago

Import GLPK 4.47

  • Property exe set to *
File size: 384.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for GLPK 4.47.
4#
5# Report bugs to <bug-glpk@gnu.org>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64        expr "X$arg" : "X\\(.*\\)$as_nl";
65        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""        $as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    PATH=/empty FPATH=/empty; export PATH FPATH
182    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184test \$(( 1 + 1 )) = 2 || exit 1"
185  if (eval "$as_required") 2>/dev/null; then :
186  as_have_required=yes
187else
188  as_have_required=no
189fi
190  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197  IFS=$as_save_IFS
198  test -z "$as_dir" && as_dir=.
199  as_found=:
200  case $as_dir in #(
201         /*)
202           for as_base in sh bash ksh sh5; do
203             # Try only shells that exist, to save several forks.
204             as_shell=$as_dir/$as_base
205             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  CONFIG_SHELL=$as_shell as_have_required=yes
208                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  break 2
210fi
211fi
212           done;;
213       esac
214  as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218  CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223      if test "x$CONFIG_SHELL" != x; then :
224  # We cannot yet assume a decent shell, so we have to provide a
225        # neutralization value for shells without unset; and this also
226        # works around shells that cannot unset nonexistent variables.
227        BASH_ENV=/dev/null
228        ENV=/dev/null
229        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230        export CONFIG_SHELL
231        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-glpk@gnu.org
242$0: about your system, including any error possibly output
243$0: before this message. Then install a modern shell, or
244$0: manually run the script under such a shell if you do
245$0: have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306         X"$as_dir" : 'X\(//\)[^/]' \| \
307         X"$as_dir" : 'X\(//\)$' \| \
308         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311            s//\1/
312            q
313          }
314          /^X\(\/\/\)[^/].*/{
315            s//\1/
316            q
317          }
318          /^X\(\/\/\)$/{
319            s//\1/
320            q
321          }
322          /^X\(\/\).*/{
323            s//\1/
324            q
325          }
326          s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error ERROR [LINENO LOG_FD]
371# ---------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with status $?, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$?; test $as_status -eq 0 && as_status=1
378  if test "$3"; then
379    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
381  fi
382  $as_echo "$as_me: error: $1" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407         X"$0" : 'X\(//\)$' \| \
408         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411            s//\1/
412            q
413          }
414          /^X\/\(\/\/\)$/{
415            s//\1/
416            q
417          }
418          /^X\/\(\/\).*/{
419            s//\1/
420            q
421          }
422          s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T=' ';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521        test -d "$1/.";
522      else
523        case $1 in #(
524        -*)set "./$1";;
525        esac;
526        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527        ???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542test -n "$DJDIR" || exec 7<&0 </dev/null
543exec 6>&1
544
545# Name of the host.
546# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
547# so uname gets run too.
548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550#
551# Initializations.
552#
553ac_default_prefix=/usr/local
554ac_clean_files=
555ac_config_libobj_dir=.
556LIBOBJS=
557cross_compiling=no
558subdirs=
559MFLAGS=
560MAKEFLAGS=
561
562# Identity of this package.
563PACKAGE_NAME='GLPK'
564PACKAGE_TARNAME='glpk'
565PACKAGE_VERSION='4.47'
566PACKAGE_STRING='GLPK 4.47'
567PACKAGE_BUGREPORT='bug-glpk@gnu.org'
568PACKAGE_URL=''
569
570ac_unique_file="src/glpk.h"
571# Factoring default headers for most tests.
572ac_includes_default="\
573#include <stdio.h>
574#ifdef HAVE_SYS_TYPES_H
575# include <sys/types.h>
576#endif
577#ifdef HAVE_SYS_STAT_H
578# include <sys/stat.h>
579#endif
580#ifdef STDC_HEADERS
581# include <stdlib.h>
582# include <stddef.h>
583#else
584# ifdef HAVE_STDLIB_H
585#  include <stdlib.h>
586# endif
587#endif
588#ifdef HAVE_STRING_H
589# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590#  include <memory.h>
591# endif
592# include <string.h>
593#endif
594#ifdef HAVE_STRINGS_H
595# include <strings.h>
596#endif
597#ifdef HAVE_INTTYPES_H
598# include <inttypes.h>
599#endif
600#ifdef HAVE_STDINT_H
601# include <stdint.h>
602#endif
603#ifdef HAVE_UNISTD_H
604# include <unistd.h>
605#endif"
606
607ac_subst_vars='am__EXEEXT_FALSE
608am__EXEEXT_TRUE
609LTLIBOBJS
610LIBOBJS
611CPP
612OTOOL64
613OTOOL
614LIPO
615NMEDIT
616DSYMUTIL
617RANLIB
618AR
619DLLTOOL
620OBJDUMP
621to_host_path_cmd
622LN_S
623NM
624ac_ct_DUMPBIN
625DUMPBIN
626LD
627FGREP
628EGREP
629GREP
630SED
631host_os
632host_vendor
633host_cpu
634host
635build_os
636build_vendor
637build_cpu
638build
639LIBTOOL
640am__fastdepCC_FALSE
641am__fastdepCC_TRUE
642CCDEPMODE
643AMDEPBACKSLASH
644AMDEP_FALSE
645AMDEP_TRUE
646am__quote
647am__include
648DEPDIR
649OBJEXT
650EXEEXT
651ac_ct_CC
652CPPFLAGS
653LDFLAGS
654CFLAGS
655CC
656am__untar
657am__tar
658AMTAR
659am__leading_dot
660SET_MAKE
661AWK
662mkdir_p
663MKDIR_P
664INSTALL_STRIP_PROGRAM
665STRIP
666install_sh
667MAKEINFO
668AUTOHEADER
669AUTOMAKE
670AUTOCONF
671ACLOCAL
672VERSION
673PACKAGE
674CYGPATH_W
675am__isrc
676INSTALL_DATA
677INSTALL_SCRIPT
678INSTALL_PROGRAM
679target_alias
680host_alias
681build_alias
682LIBS
683ECHO_T
684ECHO_N
685ECHO_C
686DEFS
687mandir
688localedir
689libdir
690psdir
691pdfdir
692dvidir
693htmldir
694infodir
695docdir
696oldincludedir
697includedir
698localstatedir
699sharedstatedir
700sysconfdir
701datadir
702datarootdir
703libexecdir
704sbindir
705bindir
706program_transform_name
707prefix
708exec_prefix
709PACKAGE_URL
710PACKAGE_BUGREPORT
711PACKAGE_STRING
712PACKAGE_VERSION
713PACKAGE_TARNAME
714PACKAGE_NAME
715PATH_SEPARATOR
716SHELL'
717ac_subst_files=''
718ac_user_opts='
719enable_option_checking
720with_gmp
721enable_dl
722enable_odbc
723enable_mysql
724enable_dependency_tracking
725enable_shared
726enable_static
727with_pic
728enable_fast_install
729with_gnu_ld
730enable_libtool_lock
731'
732      ac_precious_vars='build_alias
733host_alias
734target_alias
735CC
736CFLAGS
737LDFLAGS
738LIBS
739CPPFLAGS
740CPP'
741
742
743# Initialize some variables set by options.
744ac_init_help=
745ac_init_version=false
746ac_unrecognized_opts=
747ac_unrecognized_sep=
748# The variables have the same names as the options, with
749# dashes changed to underlines.
750cache_file=/dev/null
751exec_prefix=NONE
752no_create=
753no_recursion=
754prefix=NONE
755program_prefix=NONE
756program_suffix=NONE
757program_transform_name=s,x,x,
758silent=
759site=
760srcdir=
761verbose=
762x_includes=NONE
763x_libraries=NONE
764
765# Installation directory options.
766# These are left unexpanded so users can "make install exec_prefix=/foo"
767# and all the variables that are supposed to be based on exec_prefix
768# by default will actually change.
769# Use braces instead of parens because sh, perl, etc. also accept them.
770# (The list follows the same order as the GNU Coding Standards.)
771bindir='${exec_prefix}/bin'
772sbindir='${exec_prefix}/sbin'
773libexecdir='${exec_prefix}/libexec'
774datarootdir='${prefix}/share'
775datadir='${datarootdir}'
776sysconfdir='${prefix}/etc'
777sharedstatedir='${prefix}/com'
778localstatedir='${prefix}/var'
779includedir='${prefix}/include'
780oldincludedir='/usr/include'
781docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
782infodir='${datarootdir}/info'
783htmldir='${docdir}'
784dvidir='${docdir}'
785pdfdir='${docdir}'
786psdir='${docdir}'
787libdir='${exec_prefix}/lib'
788localedir='${datarootdir}/locale'
789mandir='${datarootdir}/man'
790
791ac_prev=
792ac_dashdash=
793for ac_option
794do
795  # If the previous option needs an argument, assign it.
796  if test -n "$ac_prev"; then
797    eval $ac_prev=\$ac_option
798    ac_prev=
799    continue
800  fi
801
802  case $ac_option in
803  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804  *)    ac_optarg=yes ;;
805  esac
806
807  # Accept the important Cygnus configure options, so we can diagnose typos.
808
809  case $ac_dashdash$ac_option in
810  --)
811    ac_dashdash=yes ;;
812
813  -bindir | --bindir | --bindi | --bind | --bin | --bi)
814    ac_prev=bindir ;;
815  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816    bindir=$ac_optarg ;;
817
818  -build | --build | --buil | --bui | --bu)
819    ac_prev=build_alias ;;
820  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821    build_alias=$ac_optarg ;;
822
823  -cache-file | --cache-file | --cache-fil | --cache-fi \
824  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825    ac_prev=cache_file ;;
826  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828    cache_file=$ac_optarg ;;
829
830  --config-cache | -C)
831    cache_file=config.cache ;;
832
833  -datadir | --datadir | --datadi | --datad)
834    ac_prev=datadir ;;
835  -datadir=* | --datadir=* | --datadi=* | --datad=*)
836    datadir=$ac_optarg ;;
837
838  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839  | --dataroo | --dataro | --datar)
840    ac_prev=datarootdir ;;
841  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843    datarootdir=$ac_optarg ;;
844
845  -disable-* | --disable-*)
846    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847    # Reject names that are not valid shell variable names.
848    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849      as_fn_error "invalid feature name: $ac_useropt"
850    ac_useropt_orig=$ac_useropt
851    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852    case $ac_user_opts in
853      *"
854"enable_$ac_useropt"
855"*) ;;
856      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
857         ac_unrecognized_sep=', ';;
858    esac
859    eval enable_$ac_useropt=no ;;
860
861  -docdir | --docdir | --docdi | --doc | --do)
862    ac_prev=docdir ;;
863  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864    docdir=$ac_optarg ;;
865
866  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867    ac_prev=dvidir ;;
868  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869    dvidir=$ac_optarg ;;
870
871  -enable-* | --enable-*)
872    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873    # Reject names that are not valid shell variable names.
874    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875      as_fn_error "invalid feature name: $ac_useropt"
876    ac_useropt_orig=$ac_useropt
877    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878    case $ac_user_opts in
879      *"
880"enable_$ac_useropt"
881"*) ;;
882      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
883         ac_unrecognized_sep=', ';;
884    esac
885    eval enable_$ac_useropt=\$ac_optarg ;;
886
887  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889  | --exec | --exe | --ex)
890    ac_prev=exec_prefix ;;
891  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893  | --exec=* | --exe=* | --ex=*)
894    exec_prefix=$ac_optarg ;;
895
896  -gas | --gas | --ga | --g)
897    # Obsolete; use --with-gas.
898    with_gas=yes ;;
899
900  -help | --help | --hel | --he | -h)
901    ac_init_help=long ;;
902  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903    ac_init_help=recursive ;;
904  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905    ac_init_help=short ;;
906
907  -host | --host | --hos | --ho)
908    ac_prev=host_alias ;;
909  -host=* | --host=* | --hos=* | --ho=*)
910    host_alias=$ac_optarg ;;
911
912  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913    ac_prev=htmldir ;;
914  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915  | --ht=*)
916    htmldir=$ac_optarg ;;
917
918  -includedir | --includedir | --includedi | --included | --include \
919  | --includ | --inclu | --incl | --inc)
920    ac_prev=includedir ;;
921  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922  | --includ=* | --inclu=* | --incl=* | --inc=*)
923    includedir=$ac_optarg ;;
924
925  -infodir | --infodir | --infodi | --infod | --info | --inf)
926    ac_prev=infodir ;;
927  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928    infodir=$ac_optarg ;;
929
930  -libdir | --libdir | --libdi | --libd)
931    ac_prev=libdir ;;
932  -libdir=* | --libdir=* | --libdi=* | --libd=*)
933    libdir=$ac_optarg ;;
934
935  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936  | --libexe | --libex | --libe)
937    ac_prev=libexecdir ;;
938  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939  | --libexe=* | --libex=* | --libe=*)
940    libexecdir=$ac_optarg ;;
941
942  -localedir | --localedir | --localedi | --localed | --locale)
943    ac_prev=localedir ;;
944  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945    localedir=$ac_optarg ;;
946
947  -localstatedir | --localstatedir | --localstatedi | --localstated \
948  | --localstate | --localstat | --localsta | --localst | --locals)
949    ac_prev=localstatedir ;;
950  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952    localstatedir=$ac_optarg ;;
953
954  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955    ac_prev=mandir ;;
956  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957    mandir=$ac_optarg ;;
958
959  -nfp | --nfp | --nf)
960    # Obsolete; use --without-fp.
961    with_fp=no ;;
962
963  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964  | --no-cr | --no-c | -n)
965    no_create=yes ;;
966
967  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969    no_recursion=yes ;;
970
971  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973  | --oldin | --oldi | --old | --ol | --o)
974    ac_prev=oldincludedir ;;
975  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978    oldincludedir=$ac_optarg ;;
979
980  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981    ac_prev=prefix ;;
982  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983    prefix=$ac_optarg ;;
984
985  -program-prefix | --program-prefix | --program-prefi | --program-pref \
986  | --program-pre | --program-pr | --program-p)
987    ac_prev=program_prefix ;;
988  -program-prefix=* | --program-prefix=* | --program-prefi=* \
989  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990    program_prefix=$ac_optarg ;;
991
992  -program-suffix | --program-suffix | --program-suffi | --program-suff \
993  | --program-suf | --program-su | --program-s)
994    ac_prev=program_suffix ;;
995  -program-suffix=* | --program-suffix=* | --program-suffi=* \
996  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997    program_suffix=$ac_optarg ;;
998
999  -program-transform-name | --program-transform-name \
1000  | --program-transform-nam | --program-transform-na \
1001  | --program-transform-n | --program-transform- \
1002  | --program-transform | --program-transfor \
1003  | --program-transfo | --program-transf \
1004  | --program-trans | --program-tran \
1005  | --progr-tra | --program-tr | --program-t)
1006    ac_prev=program_transform_name ;;
1007  -program-transform-name=* | --program-transform-name=* \
1008  | --program-transform-nam=* | --program-transform-na=* \
1009  | --program-transform-n=* | --program-transform-=* \
1010  | --program-transform=* | --program-transfor=* \
1011  | --program-transfo=* | --program-transf=* \
1012  | --program-trans=* | --program-tran=* \
1013  | --progr-tra=* | --program-tr=* | --program-t=*)
1014    program_transform_name=$ac_optarg ;;
1015
1016  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017    ac_prev=pdfdir ;;
1018  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019    pdfdir=$ac_optarg ;;
1020
1021  -psdir | --psdir | --psdi | --psd | --ps)
1022    ac_prev=psdir ;;
1023  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024    psdir=$ac_optarg ;;
1025
1026  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027  | -silent | --silent | --silen | --sile | --sil)
1028    silent=yes ;;
1029
1030  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031    ac_prev=sbindir ;;
1032  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033  | --sbi=* | --sb=*)
1034    sbindir=$ac_optarg ;;
1035
1036  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038  | --sharedst | --shareds | --shared | --share | --shar \
1039  | --sha | --sh)
1040    ac_prev=sharedstatedir ;;
1041  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044  | --sha=* | --sh=*)
1045    sharedstatedir=$ac_optarg ;;
1046
1047  -site | --site | --sit)
1048    ac_prev=site ;;
1049  -site=* | --site=* | --sit=*)
1050    site=$ac_optarg ;;
1051
1052  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053    ac_prev=srcdir ;;
1054  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055    srcdir=$ac_optarg ;;
1056
1057  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058  | --syscon | --sysco | --sysc | --sys | --sy)
1059    ac_prev=sysconfdir ;;
1060  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062    sysconfdir=$ac_optarg ;;
1063
1064  -target | --target | --targe | --targ | --tar | --ta | --t)
1065    ac_prev=target_alias ;;
1066  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067    target_alias=$ac_optarg ;;
1068
1069  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070    verbose=yes ;;
1071
1072  -version | --version | --versio | --versi | --vers | -V)
1073    ac_init_version=: ;;
1074
1075  -with-* | --with-*)
1076    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077    # Reject names that are not valid shell variable names.
1078    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079      as_fn_error "invalid package name: $ac_useropt"
1080    ac_useropt_orig=$ac_useropt
1081    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082    case $ac_user_opts in
1083      *"
1084"with_$ac_useropt"
1085"*) ;;
1086      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1087         ac_unrecognized_sep=', ';;
1088    esac
1089    eval with_$ac_useropt=\$ac_optarg ;;
1090
1091  -without-* | --without-*)
1092    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093    # Reject names that are not valid shell variable names.
1094    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095      as_fn_error "invalid package name: $ac_useropt"
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"with_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103         ac_unrecognized_sep=', ';;
1104    esac
1105    eval with_$ac_useropt=no ;;
1106
1107  --x)
1108    # Obsolete; use --with-x.
1109    with_x=yes ;;
1110
1111  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112  | --x-incl | --x-inc | --x-in | --x-i)
1113    ac_prev=x_includes ;;
1114  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116    x_includes=$ac_optarg ;;
1117
1118  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120    ac_prev=x_libraries ;;
1121  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123    x_libraries=$ac_optarg ;;
1124
1125  -*) as_fn_error "unrecognized option: \`$ac_option'
1126Try \`$0 --help' for more information."
1127    ;;
1128
1129  *=*)
1130    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1131    # Reject names that are not valid shell variable names.
1132    case $ac_envvar in #(
1133      '' | [0-9]* | *[!_$as_cr_alnum]* )
1134      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1135    esac
1136    eval $ac_envvar=\$ac_optarg
1137    export $ac_envvar ;;
1138
1139  *)
1140    # FIXME: should be removed in autoconf 3.0.
1141    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1145    ;;
1146
1147  esac
1148done
1149
1150if test -n "$ac_prev"; then
1151  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152  as_fn_error "missing argument to $ac_option"
1153fi
1154
1155if test -n "$ac_unrecognized_opts"; then
1156  case $enable_option_checking in
1157    no) ;;
1158    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1159    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160  esac
1161fi
1162
1163# Check all directory arguments for consistency.
1164for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165                datadir sysconfdir sharedstatedir localstatedir includedir \
1166                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167                libdir localedir mandir
1168do
1169  eval ac_val=\$$ac_var
1170  # Remove trailing slashes.
1171  case $ac_val in
1172    */ )
1173      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174      eval $ac_var=\$ac_val;;
1175  esac
1176  # Be sure to have absolute directory names.
1177  case $ac_val in
1178    [\\/$]* | ?:[\\/]* )  continue;;
1179    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180  esac
1181  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1182done
1183
1184# There might be people who depend on the old broken behavior: `$host'
1185# used to hold the argument of --host etc.
1186# FIXME: To remove some day.
1187build=$build_alias
1188host=$host_alias
1189target=$target_alias
1190
1191# FIXME: To remove some day.
1192if test "x$host_alias" != x; then
1193  if test "x$build_alias" = x; then
1194    cross_compiling=maybe
1195    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1196    If a cross compiler is detected then cross compile mode will be used." >&2
1197  elif test "x$build_alias" != "x$host_alias"; then
1198    cross_compiling=yes
1199  fi
1200fi
1201
1202ac_tool_prefix=
1203test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204
1205test "$silent" = yes && exec 6>/dev/null
1206
1207
1208ac_pwd=`pwd` && test -n "$ac_pwd" &&
1209ac_ls_di=`ls -di .` &&
1210ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211  as_fn_error "working directory cannot be determined"
1212test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213  as_fn_error "pwd does not report name of working directory"
1214
1215
1216# Find the source files, if location was not specified.
1217if test -z "$srcdir"; then
1218  ac_srcdir_defaulted=yes
1219  # Try the directory containing this script, then the parent directory.
1220  ac_confdir=`$as_dirname -- "$as_myself" ||
1221$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222         X"$as_myself" : 'X\(//\)[^/]' \| \
1223         X"$as_myself" : 'X\(//\)$' \| \
1224         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1225$as_echo X"$as_myself" |
1226    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1227            s//\1/
1228            q
1229          }
1230          /^X\(\/\/\)[^/].*/{
1231            s//\1/
1232            q
1233          }
1234          /^X\(\/\/\)$/{
1235            s//\1/
1236            q
1237          }
1238          /^X\(\/\).*/{
1239            s//\1/
1240            q
1241          }
1242          s/.*/./; q'`
1243  srcdir=$ac_confdir
1244  if test ! -r "$srcdir/$ac_unique_file"; then
1245    srcdir=..
1246  fi
1247else
1248  ac_srcdir_defaulted=no
1249fi
1250if test ! -r "$srcdir/$ac_unique_file"; then
1251  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1252  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1253fi
1254ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255ac_abs_confdir=`(
1256        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1257        pwd)`
1258# When building in place, set srcdir=.
1259if test "$ac_abs_confdir" = "$ac_pwd"; then
1260  srcdir=.
1261fi
1262# Remove unnecessary trailing slashes from srcdir.
1263# Double slashes in file names in object file debugging info
1264# mess up M-x gdb in Emacs.
1265case $srcdir in
1266*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1267esac
1268for ac_var in $ac_precious_vars; do
1269  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1270  eval ac_env_${ac_var}_value=\$${ac_var}
1271  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1272  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1273done
1274
1275#
1276# Report the --help message.
1277#
1278if test "$ac_init_help" = "long"; then
1279  # Omit some internal or obsolete options to make the list less imposing.
1280  # This message is too long to be a string in the A/UX 3.1 sh.
1281  cat <<_ACEOF
1282\`configure' configures GLPK 4.47 to adapt to many kinds of systems.
1283
1284Usage: $0 [OPTION]... [VAR=VALUE]...
1285
1286To assign environment variables (e.g., CC, CFLAGS...), specify them as
1287VAR=VALUE.  See below for descriptions of some of the useful variables.
1288
1289Defaults for the options are specified in brackets.
1290
1291Configuration:
1292  -h, --help              display this help and exit
1293      --help=short        display options specific to this package
1294      --help=recursive    display the short help of all the included packages
1295  -V, --version           display version information and exit
1296  -q, --quiet, --silent   do not print \`checking...' messages
1297      --cache-file=FILE   cache test results in FILE [disabled]
1298  -C, --config-cache      alias for \`--cache-file=config.cache'
1299  -n, --no-create         do not create output files
1300      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1301
1302Installation directories:
1303  --prefix=PREFIX         install architecture-independent files in PREFIX
1304                          [$ac_default_prefix]
1305  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1306                          [PREFIX]
1307
1308By default, \`make install' will install all the files in
1309\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1310an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1311for instance \`--prefix=\$HOME'.
1312
1313For better control, use the options below.
1314
1315Fine tuning of the installation directories:
1316  --bindir=DIR            user executables [EPREFIX/bin]
1317  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1318  --libexecdir=DIR        program executables [EPREFIX/libexec]
1319  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1320  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1321  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1322  --libdir=DIR            object code libraries [EPREFIX/lib]
1323  --includedir=DIR        C header files [PREFIX/include]
1324  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1325  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1326  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1327  --infodir=DIR           info documentation [DATAROOTDIR/info]
1328  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1329  --mandir=DIR            man documentation [DATAROOTDIR/man]
1330  --docdir=DIR            documentation root [DATAROOTDIR/doc/glpk]
1331  --htmldir=DIR           html documentation [DOCDIR]
1332  --dvidir=DIR            dvi documentation [DOCDIR]
1333  --pdfdir=DIR            pdf documentation [DOCDIR]
1334  --psdir=DIR             ps documentation [DOCDIR]
1335_ACEOF
1336
1337  cat <<\_ACEOF
1338
1339Program names:
1340  --program-prefix=PREFIX            prepend PREFIX to installed program names
1341  --program-suffix=SUFFIX            append SUFFIX to installed program names
1342  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1343
1344System types:
1345  --build=BUILD     configure for building on BUILD [guessed]
1346  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1347_ACEOF
1348fi
1349
1350if test -n "$ac_init_help"; then
1351  case $ac_init_help in
1352     short | recursive ) echo "Configuration of GLPK 4.47:";;
1353   esac
1354  cat <<\_ACEOF
1355
1356Optional Features:
1357  --disable-option-checking  ignore unrecognized --enable/--with options
1358  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1359  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1360  --enable-dl             enable shared library support [[default=no]]
1361  --enable-odbc           enable MathProg ODBC support [[default=no]]
1362  --enable-mysql          enable MathProg MySQL support [[default=no]]
1363  --disable-dependency-tracking  speeds up one-time build
1364  --enable-dependency-tracking   do not reject slow dependency extractors
1365  --enable-shared[=PKGS]  build shared libraries [default=yes]
1366  --enable-static[=PKGS]  build static libraries [default=yes]
1367  --enable-fast-install[=PKGS]
1368                          optimize for fast installation [default=yes]
1369  --disable-libtool-lock  avoid locking (might break parallel builds)
1370
1371Optional Packages:
1372  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1373  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1374  --with-gmp              use GNU MP bignum library [[default=no]]
1375  --with-pic              try to use only PIC/non-PIC objects [default=use
1376                          both]
1377  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1378
1379Some influential environment variables:
1380  CC          C compiler command
1381  CFLAGS      C compiler flags
1382  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1383              nonstandard directory <lib dir>
1384  LIBS        libraries to pass to the linker, e.g. -l<library>
1385  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1386              you have headers in a nonstandard directory <include dir>
1387  CPP         C preprocessor
1388
1389Use these variables to override the choices made by `configure' or to help
1390it to find libraries and programs with nonstandard names/locations.
1391
1392Report bugs to <bug-glpk@gnu.org>.
1393_ACEOF
1394ac_status=$?
1395fi
1396
1397if test "$ac_init_help" = "recursive"; then
1398  # If there are subdirs, report their specific --help.
1399  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400    test -d "$ac_dir" ||
1401      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1402      continue
1403    ac_builddir=.
1404
1405case "$ac_dir" in
1406.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407*)
1408  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1409  # A ".." for each directory in $ac_dir_suffix.
1410  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1411  case $ac_top_builddir_sub in
1412  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414  esac ;;
1415esac
1416ac_abs_top_builddir=$ac_pwd
1417ac_abs_builddir=$ac_pwd$ac_dir_suffix
1418# for backward compatibility:
1419ac_top_builddir=$ac_top_build_prefix
1420
1421case $srcdir in
1422  .)  # We are building in place.
1423    ac_srcdir=.
1424    ac_top_srcdir=$ac_top_builddir_sub
1425    ac_abs_top_srcdir=$ac_pwd ;;
1426  [\\/]* | ?:[\\/]* )  # Absolute name.
1427    ac_srcdir=$srcdir$ac_dir_suffix;
1428    ac_top_srcdir=$srcdir
1429    ac_abs_top_srcdir=$srcdir ;;
1430  *) # Relative name.
1431    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1432    ac_top_srcdir=$ac_top_build_prefix$srcdir
1433    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434esac
1435ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436
1437    cd "$ac_dir" || { ac_status=$?; continue; }
1438    # Check for guested configure.
1439    if test -f "$ac_srcdir/configure.gnu"; then
1440      echo &&
1441      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442    elif test -f "$ac_srcdir/configure"; then
1443      echo &&
1444      $SHELL "$ac_srcdir/configure" --help=recursive
1445    else
1446      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447    fi || ac_status=$?
1448    cd "$ac_pwd" || { ac_status=$?; break; }
1449  done
1450fi
1451
1452test -n "$ac_init_help" && exit $ac_status
1453if $ac_init_version; then
1454  cat <<\_ACEOF
1455GLPK configure 4.47
1456generated by GNU Autoconf 2.65
1457
1458Copyright (C) 2009 Free Software Foundation, Inc.
1459This configure script is free software; the Free Software Foundation
1460gives unlimited permission to copy, distribute and modify it.
1461_ACEOF
1462  exit
1463fi
1464
1465## ------------------------ ##
1466## Autoconf initialization. ##
1467## ------------------------ ##
1468
1469# ac_fn_c_try_compile LINENO
1470# --------------------------
1471# Try to compile conftest.$ac_ext, and return whether this succeeded.
1472ac_fn_c_try_compile ()
1473{
1474  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475  rm -f conftest.$ac_objext
1476  if { { ac_try="$ac_compile"
1477case "(($ac_try" in
1478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1479  *) ac_try_echo=$ac_try;;
1480esac
1481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482$as_echo "$ac_try_echo"; } >&5
1483  (eval "$ac_compile") 2>conftest.err
1484  ac_status=$?
1485  if test -s conftest.err; then
1486    grep -v '^ *+' conftest.err >conftest.er1
1487    cat conftest.er1 >&5
1488    mv -f conftest.er1 conftest.err
1489  fi
1490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1491  test $ac_status = 0; } && {
1492         test -z "$ac_c_werror_flag" ||
1493         test ! -s conftest.err
1494       } && test -s conftest.$ac_objext; then :
1495  ac_retval=0
1496else
1497  $as_echo "$as_me: failed program was:" >&5
1498sed 's/^/| /' conftest.$ac_ext >&5
1499
1500        ac_retval=1
1501fi
1502  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1503  as_fn_set_status $ac_retval
1504
1505} # ac_fn_c_try_compile
1506
1507# ac_fn_c_try_link LINENO
1508# -----------------------
1509# Try to link conftest.$ac_ext, and return whether this succeeded.
1510ac_fn_c_try_link ()
1511{
1512  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513  rm -f conftest.$ac_objext conftest$ac_exeext
1514  if { { ac_try="$ac_link"
1515case "(($ac_try" in
1516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517  *) ac_try_echo=$ac_try;;
1518esac
1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520$as_echo "$ac_try_echo"; } >&5
1521  (eval "$ac_link") 2>conftest.err
1522  ac_status=$?
1523  if test -s conftest.err; then
1524    grep -v '^ *+' conftest.err >conftest.er1
1525    cat conftest.er1 >&5
1526    mv -f conftest.er1 conftest.err
1527  fi
1528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529  test $ac_status = 0; } && {
1530         test -z "$ac_c_werror_flag" ||
1531         test ! -s conftest.err
1532       } && test -s conftest$ac_exeext && {
1533         test "$cross_compiling" = yes ||
1534         $as_test_x conftest$ac_exeext
1535       }; then :
1536  ac_retval=0
1537else
1538  $as_echo "$as_me: failed program was:" >&5
1539sed 's/^/| /' conftest.$ac_ext >&5
1540
1541        ac_retval=1
1542fi
1543  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1544  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1545  # interfere with the next link command; also delete a directory that is
1546  # left behind by Apple's compiler.  We do this before executing the actions.
1547  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1548  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549  as_fn_set_status $ac_retval
1550
1551} # ac_fn_c_try_link
1552
1553# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1554# -------------------------------------------------------
1555# Tests whether HEADER exists and can be compiled using the include files in
1556# INCLUDES, setting the cache variable VAR accordingly.
1557ac_fn_c_check_header_compile ()
1558{
1559  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1561$as_echo_n "checking for $2... " >&6; }
1562if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1563  $as_echo_n "(cached) " >&6
1564else
1565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1566/* end confdefs.h.  */
1567$4
1568#include <$2>
1569_ACEOF
1570if ac_fn_c_try_compile "$LINENO"; then :
1571  eval "$3=yes"
1572else
1573  eval "$3=no"
1574fi
1575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1576fi
1577eval ac_res=\$$3
1578               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1579$as_echo "$ac_res" >&6; }
1580  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1581
1582} # ac_fn_c_check_header_compile
1583
1584# ac_fn_c_try_cpp LINENO
1585# ----------------------
1586# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_cpp ()
1588{
1589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590  if { { ac_try="$ac_cpp conftest.$ac_ext"
1591case "(($ac_try" in
1592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593  *) ac_try_echo=$ac_try;;
1594esac
1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596$as_echo "$ac_try_echo"; } >&5
1597  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1598  ac_status=$?
1599  if test -s conftest.err; then
1600    grep -v '^ *+' conftest.err >conftest.er1
1601    cat conftest.er1 >&5
1602    mv -f conftest.er1 conftest.err
1603  fi
1604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605  test $ac_status = 0; } >/dev/null && {
1606         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1607         test ! -s conftest.err
1608       }; then :
1609  ac_retval=0
1610else
1611  $as_echo "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
1613
1614    ac_retval=1
1615fi
1616  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617  as_fn_set_status $ac_retval
1618
1619} # ac_fn_c_try_cpp
1620
1621# ac_fn_c_try_run LINENO
1622# ----------------------
1623# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1624# that executables *can* be run.
1625ac_fn_c_try_run ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  if { { ac_try="$ac_link"
1629case "(($ac_try" in
1630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631  *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635  (eval "$ac_link") 2>&5
1636  ac_status=$?
1637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1639  { { case "(($ac_try" in
1640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641  *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645  (eval "$ac_try") 2>&5
1646  ac_status=$?
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; }; }; then :
1649  ac_retval=0
1650else
1651  $as_echo "$as_me: program exited with status $ac_status" >&5
1652       $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655       ac_retval=$ac_status
1656fi
1657  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659  as_fn_set_status $ac_retval
1660
1661} # ac_fn_c_try_run
1662
1663# ac_fn_c_check_func LINENO FUNC VAR
1664# ----------------------------------
1665# Tests whether FUNC exists, setting the cache variable VAR accordingly
1666ac_fn_c_check_func ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670$as_echo_n "checking for $2... " >&6; }
1671if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1672  $as_echo_n "(cached) " >&6
1673else
1674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675/* end confdefs.h.  */
1676/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1677   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1678#define $2 innocuous_$2
1679
1680/* System header to define __stub macros and hopefully few prototypes,
1681    which can conflict with char $2 (); below.
1682    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1683    <limits.h> exists even on freestanding compilers.  */
1684
1685#ifdef __STDC__
1686# include <limits.h>
1687#else
1688# include <assert.h>
1689#endif
1690
1691#undef $2
1692
1693/* Override any GCC internal prototype to avoid an error.
1694   Use char because int might match the return type of a GCC
1695   builtin and then its argument prototype would still apply.  */
1696#ifdef __cplusplus
1697extern "C"
1698#endif
1699char $2 ();
1700/* The GNU C library defines this for functions which it implements
1701    to always fail with ENOSYS.  Some functions are actually named
1702    something starting with __ and the normal name is an alias.  */
1703#if defined __stub_$2 || defined __stub___$2
1704choke me
1705#endif
1706
1707int
1708main ()
1709{
1710return $2 ();
1711  ;
1712  return 0;
1713}
1714_ACEOF
1715if ac_fn_c_try_link "$LINENO"; then :
1716  eval "$3=yes"
1717else
1718  eval "$3=no"
1719fi
1720rm -f core conftest.err conftest.$ac_objext \
1721    conftest$ac_exeext conftest.$ac_ext
1722fi
1723eval ac_res=\$$3
1724               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725$as_echo "$ac_res" >&6; }
1726  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727
1728} # ac_fn_c_check_func
1729
1730# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1731# -------------------------------------------------------
1732# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1733# the include files in INCLUDES and setting the cache variable VAR
1734# accordingly.
1735ac_fn_c_check_header_mongrel ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740$as_echo_n "checking for $2... " >&6; }
1741if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742  $as_echo_n "(cached) " >&6
1743fi
1744eval ac_res=\$$3
1745               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746$as_echo "$ac_res" >&6; }
1747else
1748  # Is the header compilable?
1749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1750$as_echo_n "checking $2 usability... " >&6; }
1751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752/* end confdefs.h.  */
1753$4
1754#include <$2>
1755_ACEOF
1756if ac_fn_c_try_compile "$LINENO"; then :
1757  ac_header_compiler=yes
1758else
1759  ac_header_compiler=no
1760fi
1761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1763$as_echo "$ac_header_compiler" >&6; }
1764
1765# Is the header present?
1766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1767$as_echo_n "checking $2 presence... " >&6; }
1768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h.  */
1770#include <$2>
1771_ACEOF
1772if ac_fn_c_try_cpp "$LINENO"; then :
1773  ac_header_preproc=yes
1774else
1775  ac_header_preproc=no
1776fi
1777rm -f conftest.err conftest.$ac_ext
1778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1779$as_echo "$ac_header_preproc" >&6; }
1780
1781# So?  What about this header?
1782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1783  yes:no: )
1784    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1785$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1786    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1787$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1788    ;;
1789  no:yes:* )
1790    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1791$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1792    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1793$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1794    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1795$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1796    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1797$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1798    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1799$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1800( cat <<\_ASBOX
1801## ------------------------------- ##
1802## Report this to bug-glpk@gnu.org ##
1803## ------------------------------- ##
1804_ASBOX
1805     ) | sed "s/^/$as_me: WARNING:     /" >&2
1806    ;;
1807esac
1808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809$as_echo_n "checking for $2... " >&6; }
1810if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811  $as_echo_n "(cached) " >&6
1812else
1813  eval "$3=\$ac_header_compiler"
1814fi
1815eval ac_res=\$$3
1816               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817$as_echo "$ac_res" >&6; }
1818fi
1819  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820
1821} # ac_fn_c_check_header_mongrel
1822cat >config.log <<_ACEOF
1823This file contains any messages produced by compilers while
1824running configure, to aid debugging if configure makes a mistake.
1825
1826It was created by GLPK $as_me 4.47, which was
1827generated by GNU Autoconf 2.65.  Invocation command line was
1828
1829  $ $0 $@
1830
1831_ACEOF
1832exec 5>>config.log
1833{
1834cat <<_ASUNAME
1835## --------- ##
1836## Platform. ##
1837## --------- ##
1838
1839hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1840uname -m = `(uname -m) 2>/dev/null || echo unknown`
1841uname -r = `(uname -r) 2>/dev/null || echo unknown`
1842uname -s = `(uname -s) 2>/dev/null || echo unknown`
1843uname -v = `(uname -v) 2>/dev/null || echo unknown`
1844
1845/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1846/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1847
1848/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1849/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1850/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1851/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1852/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1853/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1854/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1855
1856_ASUNAME
1857
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861  IFS=$as_save_IFS
1862  test -z "$as_dir" && as_dir=.
1863    $as_echo "PATH: $as_dir"
1864  done
1865IFS=$as_save_IFS
1866
1867} >&5
1868
1869cat >&5 <<_ACEOF
1870
1871
1872## ----------- ##
1873## Core tests. ##
1874## ----------- ##
1875
1876_ACEOF
1877
1878
1879# Keep a trace of the command line.
1880# Strip out --no-create and --no-recursion so they do not pile up.
1881# Strip out --silent because we don't want to record it for future runs.
1882# Also quote any args containing shell meta-characters.
1883# Make two passes to allow for proper duplicate-argument suppression.
1884ac_configure_args=
1885ac_configure_args0=
1886ac_configure_args1=
1887ac_must_keep_next=false
1888for ac_pass in 1 2
1889do
1890  for ac_arg
1891  do
1892    case $ac_arg in
1893    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1894    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1895    | -silent | --silent | --silen | --sile | --sil)
1896      continue ;;
1897    *\'*)
1898      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1899    esac
1900    case $ac_pass in
1901    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1902    2)
1903      as_fn_append ac_configure_args1 " '$ac_arg'"
1904      if test $ac_must_keep_next = true; then
1905        ac_must_keep_next=false # Got value, back to normal.
1906      else
1907        case $ac_arg in
1908          *=* | --config-cache | -C | -disable-* | --disable-* \
1909          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1910          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1911          | -with-* | --with-* | -without-* | --without-* | --x)
1912            case "$ac_configure_args0 " in
1913              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1914            esac
1915            ;;
1916          -* ) ac_must_keep_next=true ;;
1917        esac
1918      fi
1919      as_fn_append ac_configure_args " '$ac_arg'"
1920      ;;
1921    esac
1922  done
1923done
1924{ ac_configure_args0=; unset ac_configure_args0;}
1925{ ac_configure_args1=; unset ac_configure_args1;}
1926
1927# When interrupted or exit'd, cleanup temporary files, and complete
1928# config.log.  We remove comments because anyway the quotes in there
1929# would cause problems or look ugly.
1930# WARNING: Use '\'' to represent an apostrophe within the trap.
1931# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1932trap 'exit_status=$?
1933  # Save into config.log some information that might help in debugging.
1934  {
1935    echo
1936
1937    cat <<\_ASBOX
1938## ---------------- ##
1939## Cache variables. ##
1940## ---------------- ##
1941_ASBOX
1942    echo
1943    # The following way of writing the cache mishandles newlines in values,
1944(
1945  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1946    eval ac_val=\$$ac_var
1947    case $ac_val in #(
1948    *${as_nl}*)
1949      case $ac_var in #(
1950      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1951$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1952      esac
1953      case $ac_var in #(
1954      _ | IFS | as_nl) ;; #(
1955      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1956      *) { eval $ac_var=; unset $ac_var;} ;;
1957      esac ;;
1958    esac
1959  done
1960  (set) 2>&1 |
1961    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1962    *${as_nl}ac_space=\ *)
1963      sed -n \
1964        "s/'\''/'\''\\\\'\'''\''/g;
1965          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1966      ;; #(
1967    *)
1968      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1969      ;;
1970    esac |
1971    sort
1972)
1973    echo
1974
1975    cat <<\_ASBOX
1976## ----------------- ##
1977## Output variables. ##
1978## ----------------- ##
1979_ASBOX
1980    echo
1981    for ac_var in $ac_subst_vars
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
1991    if test -n "$ac_subst_files"; then
1992      cat <<\_ASBOX
1993## ------------------- ##
1994## File substitutions. ##
1995## ------------------- ##
1996_ASBOX
1997      echo
1998      for ac_var in $ac_subst_files
1999      do
2000        eval ac_val=\$$ac_var
2001        case $ac_val in
2002        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003        esac
2004        $as_echo "$ac_var='\''$ac_val'\''"
2005      done | sort
2006      echo
2007    fi
2008
2009    if test -s confdefs.h; then
2010      cat <<\_ASBOX
2011## ----------- ##
2012## confdefs.h. ##
2013## ----------- ##
2014_ASBOX
2015      echo
2016      cat confdefs.h
2017      echo
2018    fi
2019    test "$ac_signal" != 0 &&
2020      $as_echo "$as_me: caught signal $ac_signal"
2021    $as_echo "$as_me: exit $exit_status"
2022  } >&5
2023  rm -f core *.core core.conftest.* &&
2024    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2025    exit $exit_status
2026' 0
2027for ac_signal in 1 2 13 15; do
2028  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2029done
2030ac_signal=0
2031
2032# confdefs.h avoids OS command line length limits that DEFS can exceed.
2033rm -f -r conftest* confdefs.h
2034
2035$as_echo "/* confdefs.h */" > confdefs.h
2036
2037# Predefined preprocessor variables.
2038
2039cat >>confdefs.h <<_ACEOF
2040#define PACKAGE_NAME "$PACKAGE_NAME"
2041_ACEOF
2042
2043cat >>confdefs.h <<_ACEOF
2044#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2045_ACEOF
2046
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_VERSION "$PACKAGE_VERSION"
2049_ACEOF
2050
2051cat >>confdefs.h <<_ACEOF
2052#define PACKAGE_STRING "$PACKAGE_STRING"
2053_ACEOF
2054
2055cat >>confdefs.h <<_ACEOF
2056#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2057_ACEOF
2058
2059cat >>confdefs.h <<_ACEOF
2060#define PACKAGE_URL "$PACKAGE_URL"
2061_ACEOF
2062
2063
2064# Let the site file select an alternate cache file if it wants to.
2065# Prefer an explicitly selected file to automatically selected ones.
2066ac_site_file1=NONE
2067ac_site_file2=NONE
2068if test -n "$CONFIG_SITE"; then
2069  ac_site_file1=$CONFIG_SITE
2070elif test "x$prefix" != xNONE; then
2071  ac_site_file1=$prefix/share/config.site
2072  ac_site_file2=$prefix/etc/config.site
2073else
2074  ac_site_file1=$ac_default_prefix/share/config.site
2075  ac_site_file2=$ac_default_prefix/etc/config.site
2076fi
2077for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2078do
2079  test "x$ac_site_file" = xNONE && continue
2080  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2081    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2082$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2083    sed 's/^/| /' "$ac_site_file" >&5
2084    . "$ac_site_file"
2085  fi
2086done
2087
2088if test -r "$cache_file"; then
2089  # Some versions of bash will fail to source /dev/null (special files
2090  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2091  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2092    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2093$as_echo "$as_me: loading cache $cache_file" >&6;}
2094    case $cache_file in
2095      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2096      *)                      . "./$cache_file";;
2097    esac
2098  fi
2099else
2100  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2101$as_echo "$as_me: creating cache $cache_file" >&6;}
2102  >$cache_file
2103fi
2104
2105# Check that the precious variables saved in the cache have kept the same
2106# value.
2107ac_cache_corrupted=false
2108for ac_var in $ac_precious_vars; do
2109  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2110  eval ac_new_set=\$ac_env_${ac_var}_set
2111  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2112  eval ac_new_val=\$ac_env_${ac_var}_value
2113  case $ac_old_set,$ac_new_set in
2114    set,)
2115      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2116$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2117      ac_cache_corrupted=: ;;
2118    ,set)
2119      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2120$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2121      ac_cache_corrupted=: ;;
2122    ,);;
2123    *)
2124      if test "x$ac_old_val" != "x$ac_new_val"; then
2125        # differences in whitespace do not lead to failure.
2126        ac_old_val_w=`echo x $ac_old_val`
2127        ac_new_val_w=`echo x $ac_new_val`
2128        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2129          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2130$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2131          ac_cache_corrupted=:
2132        else
2133          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2134$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2135          eval $ac_var=\$ac_old_val
2136        fi
2137        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2138$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2139        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2140$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2141      fi;;
2142  esac
2143  # Pass precious variables to config.status.
2144  if test "$ac_new_set" = set; then
2145    case $ac_new_val in
2146    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2147    *) ac_arg=$ac_var=$ac_new_val ;;
2148    esac
2149    case " $ac_configure_args " in
2150      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2151      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2152    esac
2153  fi
2154done
2155if $ac_cache_corrupted; then
2156  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2158  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2159$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2160  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2161fi
2162## -------------------- ##
2163## Main body of script. ##
2164## -------------------- ##
2165
2166ac_ext=c
2167ac_cpp='$CPP $CPPFLAGS'
2168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171
2172
2173
2174
2175
2176
2177
2178am__api_version='1.11'
2179
2180ac_aux_dir=
2181for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2182  for ac_t in install-sh install.sh shtool; do
2183    if test -f "$ac_dir/$ac_t"; then
2184      ac_aux_dir=$ac_dir
2185      ac_install_sh="$ac_aux_dir/$ac_t -c"
2186      break 2
2187    fi
2188  done
2189done
2190if test -z "$ac_aux_dir"; then
2191  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2192fi
2193
2194# These three variables are undocumented and unsupported,
2195# and are intended to be withdrawn in a future Autoconf release.
2196# They can cause serious problems if a builder's source tree is in a directory
2197# whose full name contains unusual characters.
2198ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2199ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2200ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2201
2202
2203# Find a good install program.  We prefer a C program (faster),
2204# so one script is as good as another.  But avoid the broken or
2205# incompatible versions:
2206# SysV /etc/install, /usr/sbin/install
2207# SunOS /usr/etc/install
2208# IRIX /sbin/install
2209# AIX /bin/install
2210# AmigaOS /C/install, which installs bootblocks on floppy discs
2211# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2212# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2213# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2214# OS/2's system install, which has a completely different semantic
2215# ./install, which can be erroneously created by make from ./install.sh.
2216# Reject install programs that cannot install multiple files.
2217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2218$as_echo_n "checking for a BSD-compatible install... " >&6; }
2219if test -z "$INSTALL"; then
2220if test "${ac_cv_path_install+set}" = set; then :
2221  $as_echo_n "(cached) " >&6
2222else
2223  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224for as_dir in $PATH
2225do
2226  IFS=$as_save_IFS
2227  test -z "$as_dir" && as_dir=.
2228    # Account for people who put trailing slashes in PATH elements.
2229case $as_dir/ in #((
2230  ./ | .// | /[cC]/* | \
2231  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2232  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2233  /usr/ucb/* ) ;;
2234  *)
2235    # OSF1 and SCO ODT 3.0 have their own names for install.
2236    # Don't use installbsd from OSF since it installs stuff as root
2237    # by default.
2238    for ac_prog in ginstall scoinst install; do
2239      for ac_exec_ext in '' $ac_executable_extensions; do
2240        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2241          if test $ac_prog = install &&
2242            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2243            # AIX install.  It has an incompatible calling convention.
2244            :
2245          elif test $ac_prog = install &&
2246            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2247            # program-specific install script used by HP pwplus--don't use.
2248            :
2249          else
2250            rm -rf conftest.one conftest.two conftest.dir
2251            echo one > conftest.one
2252            echo two > conftest.two
2253            mkdir conftest.dir
2254            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2255              test -s conftest.one && test -s conftest.two &&
2256              test -s conftest.dir/conftest.one &&
2257              test -s conftest.dir/conftest.two
2258            then
2259              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2260              break 3
2261            fi
2262          fi
2263        fi
2264      done
2265    done
2266    ;;
2267esac
2268
2269  done
2270IFS=$as_save_IFS
2271
2272rm -rf conftest.one conftest.two conftest.dir
2273
2274fi
2275  if test "${ac_cv_path_install+set}" = set; then
2276    INSTALL=$ac_cv_path_install
2277  else
2278    # As a last resort, use the slow shell script.  Don't cache a
2279    # value for INSTALL within a source directory, because that will
2280    # break other packages using the cache if that directory is
2281    # removed, or if the value is a relative name.
2282    INSTALL=$ac_install_sh
2283  fi
2284fi
2285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2286$as_echo "$INSTALL" >&6; }
2287
2288# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2289# It thinks the first close brace ends the variable substitution.
2290test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2291
2292test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2293
2294test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2295
2296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2297$as_echo_n "checking whether build environment is sane... " >&6; }
2298# Just in case
2299sleep 1
2300echo timestamp > conftest.file
2301# Reject unsafe characters in $srcdir or the absolute working directory
2302# name.  Accept space and tab only in the latter.
2303am_lf='
2304'
2305case `pwd` in
2306  *[\\\"\#\$\&\'\`$am_lf]*)
2307    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2308esac
2309case $srcdir in
2310  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2311    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2312esac
2313
2314# Do `set' in a subshell so we don't clobber the current shell's
2315# arguments.  Must try -L first in case configure is actually a
2316# symlink; some systems play weird games with the mod time of symlinks
2317# (eg FreeBSD returns the mod time of the symlink's containing
2318# directory).
2319if (
2320   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2321   if test "$*" = "X"; then
2322      # -L didn't work.
2323      set X `ls -t "$srcdir/configure" conftest.file`
2324   fi
2325   rm -f conftest.file
2326   if test "$*" != "X $srcdir/configure conftest.file" \
2327      && test "$*" != "X conftest.file $srcdir/configure"; then
2328
2329      # If neither matched, then we have a broken ls.  This can happen
2330      # if, for instance, CONFIG_SHELL is bash and it inherits a
2331      # broken ls alias from the environment.  This has actually
2332      # happened.  Such a system could not be considered "sane".
2333      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2334alias in your environment" "$LINENO" 5
2335   fi
2336
2337   test "$2" = conftest.file
2338   )
2339then
2340   # Ok.
2341   :
2342else
2343   as_fn_error "newly created file is older than distributed files!
2344Check your system clock" "$LINENO" 5
2345fi
2346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2347$as_echo "yes" >&6; }
2348test "$program_prefix" != NONE &&
2349  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2350# Use a double $ so make ignores it.
2351test "$program_suffix" != NONE &&
2352  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2353# Double any \ or $.
2354# By default was `s,x,x', remove it if useless.
2355ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2356program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2357
2358# expand $ac_aux_dir to an absolute path
2359am_aux_dir=`cd $ac_aux_dir && pwd`
2360
2361if test x"${MISSING+set}" != xset; then
2362  case $am_aux_dir in
2363  *\ * | *\     *)
2364    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2365  *)
2366    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2367  esac
2368fi
2369# Use eval to expand $SHELL
2370if eval "$MISSING --run true"; then
2371  am_missing_run="$MISSING --run "
2372else
2373  am_missing_run=
2374  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2375$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2376fi
2377
2378if test x"${install_sh}" != xset; then
2379  case $am_aux_dir in
2380  *\ * | *\     *)
2381    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2382  *)
2383    install_sh="\${SHELL} $am_aux_dir/install-sh"
2384  esac
2385fi
2386
2387# Installed binaries are usually stripped using `strip' when the user
2388# run `make install-strip'.  However `strip' might not be the right
2389# tool to use in cross-compilation environments, therefore Automake
2390# will honor the `STRIP' environment variable to overrule this program.
2391if test "$cross_compiling" != no; then
2392  if test -n "$ac_tool_prefix"; then
2393  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2394set dummy ${ac_tool_prefix}strip; ac_word=$2
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2396$as_echo_n "checking for $ac_word... " >&6; }
2397if test "${ac_cv_prog_STRIP+set}" = set; then :
2398  $as_echo_n "(cached) " >&6
2399else
2400  if test -n "$STRIP"; then
2401  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2402else
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406  IFS=$as_save_IFS
2407  test -z "$as_dir" && as_dir=.
2408    for ac_exec_ext in '' $ac_executable_extensions; do
2409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2412    break 2
2413  fi
2414done
2415  done
2416IFS=$as_save_IFS
2417
2418fi
2419fi
2420STRIP=$ac_cv_prog_STRIP
2421if test -n "$STRIP"; then
2422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2423$as_echo "$STRIP" >&6; }
2424else
2425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2426$as_echo "no" >&6; }
2427fi
2428
2429
2430fi
2431if test -z "$ac_cv_prog_STRIP"; then
2432  ac_ct_STRIP=$STRIP
2433  # Extract the first word of "strip", so it can be a program name with args.
2434set dummy strip; ac_word=$2
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2436$as_echo_n "checking for $ac_word... " >&6; }
2437if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2438  $as_echo_n "(cached) " >&6
2439else
2440  if test -n "$ac_ct_STRIP"; then
2441  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446  IFS=$as_save_IFS
2447  test -z "$as_dir" && as_dir=.
2448    for ac_exec_ext in '' $ac_executable_extensions; do
2449  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450    ac_cv_prog_ac_ct_STRIP="strip"
2451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452    break 2
2453  fi
2454done
2455  done
2456IFS=$as_save_IFS
2457
2458fi
2459fi
2460ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2461if test -n "$ac_ct_STRIP"; then
2462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2463$as_echo "$ac_ct_STRIP" >&6; }
2464else
2465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466$as_echo "no" >&6; }
2467fi
2468
2469  if test "x$ac_ct_STRIP" = x; then
2470    STRIP=":"
2471  else
2472    case $cross_compiling:$ac_tool_warned in
2473yes:)
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2476ac_tool_warned=yes ;;
2477esac
2478    STRIP=$ac_ct_STRIP
2479  fi
2480else
2481  STRIP="$ac_cv_prog_STRIP"
2482fi
2483
2484fi
2485INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2486
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2488$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2489if test -z "$MKDIR_P"; then
2490  if test "${ac_cv_path_mkdir+set}" = set; then :
2491  $as_echo_n "(cached) " >&6
2492else
2493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2495do
2496  IFS=$as_save_IFS
2497  test -z "$as_dir" && as_dir=.
2498    for ac_prog in mkdir gmkdir; do
2499         for ac_exec_ext in '' $ac_executable_extensions; do
2500           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2501           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2502             'mkdir (GNU coreutils) '* | \
2503             'mkdir (coreutils) '* | \
2504             'mkdir (fileutils) '4.1*)
2505               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2506               break 3;;
2507           esac
2508         done
2509       done
2510  done
2511IFS=$as_save_IFS
2512
2513fi
2514
2515  test -d ./--version && rmdir ./--version
2516  if test "${ac_cv_path_mkdir+set}" = set; then
2517    MKDIR_P="$ac_cv_path_mkdir -p"
2518  else
2519    # As a last resort, use the slow shell script.  Don't cache a
2520    # value for MKDIR_P within a source directory, because that will
2521    # break other packages using the cache if that directory is
2522    # removed, or if the value is a relative name.
2523    MKDIR_P="$ac_install_sh -d"
2524  fi
2525fi
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2527$as_echo "$MKDIR_P" >&6; }
2528
2529mkdir_p="$MKDIR_P"
2530case $mkdir_p in
2531  [\\/$]* | ?:[\\/]*) ;;
2532  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2533esac
2534
2535for ac_prog in gawk mawk nawk awk
2536do
2537  # Extract the first word of "$ac_prog", so it can be a program name with args.
2538set dummy $ac_prog; ac_word=$2
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540$as_echo_n "checking for $ac_word... " >&6; }
2541if test "${ac_cv_prog_AWK+set}" = set; then :
2542  $as_echo_n "(cached) " >&6
2543else
2544  if test -n "$AWK"; then
2545  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2546else
2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550  IFS=$as_save_IFS
2551  test -z "$as_dir" && as_dir=.
2552    for ac_exec_ext in '' $ac_executable_extensions; do
2553  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554    ac_cv_prog_AWK="$ac_prog"
2555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556    break 2
2557  fi
2558done
2559  done
2560IFS=$as_save_IFS
2561
2562fi
2563fi
2564AWK=$ac_cv_prog_AWK
2565if test -n "$AWK"; then
2566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2567$as_echo "$AWK" >&6; }
2568else
2569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570$as_echo "no" >&6; }
2571fi
2572
2573
2574  test -n "$AWK" && break
2575done
2576
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2578$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2579set x ${MAKE-make}
2580ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2581if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2582  $as_echo_n "(cached) " >&6
2583else
2584  cat >conftest.make <<\_ACEOF
2585SHELL = /bin/sh
2586all:
2587        @echo '@@@%%%=$(MAKE)=@@@%%%'
2588_ACEOF
2589# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2590case `${MAKE-make} -f conftest.make 2>/dev/null` in
2591  *@@@%%%=?*=@@@%%%*)
2592    eval ac_cv_prog_make_${ac_make}_set=yes;;
2593  *)
2594    eval ac_cv_prog_make_${ac_make}_set=no;;
2595esac
2596rm -f conftest.make
2597fi
2598if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2600$as_echo "yes" >&6; }
2601  SET_MAKE=
2602else
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604$as_echo "no" >&6; }
2605  SET_MAKE="MAKE=${MAKE-make}"
2606fi
2607
2608rm -rf .tst 2>/dev/null
2609mkdir .tst 2>/dev/null
2610if test -d .tst; then
2611  am__leading_dot=.
2612else
2613  am__leading_dot=_
2614fi
2615rmdir .tst 2>/dev/null
2616
2617if test "`cd $srcdir && pwd`" != "`pwd`"; then
2618  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2619  # is not polluted with repeated "-I."
2620  am__isrc=' -I$(srcdir)'
2621  # test to see if srcdir already configured
2622  if test -f $srcdir/config.status; then
2623    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2624  fi
2625fi
2626
2627# test whether we have cygpath
2628if test -z "$CYGPATH_W"; then
2629  if (cygpath --version) >/dev/null 2>/dev/null; then
2630    CYGPATH_W='cygpath -w'
2631  else
2632    CYGPATH_W=echo
2633  fi
2634fi
2635
2636
2637# Define the identity of the package.
2638 PACKAGE='glpk'
2639 VERSION='4.47'
2640
2641
2642cat >>confdefs.h <<_ACEOF
2643#define PACKAGE "$PACKAGE"
2644_ACEOF
2645
2646
2647cat >>confdefs.h <<_ACEOF
2648#define VERSION "$VERSION"
2649_ACEOF
2650
2651# Some tools Automake needs.
2652
2653ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2654
2655
2656AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2657
2658
2659AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2660
2661
2662AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2663
2664
2665MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2666
2667# We need awk for the "check" target.  The system "awk" is bad on
2668# some platforms.
2669# Always define AMTAR for backward compatibility.
2670
2671AMTAR=${AMTAR-"${am_missing_run}tar"}
2672
2673am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2674
2675
2676
2677
2678
2679
2680ac_config_headers="$ac_config_headers config.h"
2681
2682
2683
2684# Check whether --with-gmp was given.
2685if test "${with_gmp+set}" = set; then :
2686  withval=$with_gmp; case $withval in
2687      yes | no) ;;
2688      *) as_fn_error "invalid value \`$withval' for --with-gmp" "$LINENO" 5;;
2689      esac
2690else
2691  with_gmp=no
2692fi
2693
2694
2695# Check whether --enable-dl was given.
2696if test "${enable_dl+set}" = set; then :
2697  enableval=$enable_dl; case $enableval in
2698      yes | ltdl | dlfcn | no) ;;
2699      *) as_fn_error "invalid value \`$enableval' for --enable-dl" "$LINENO" 5;;
2700      esac
2701else
2702  enable_dl=no
2703fi
2704
2705
2706# Check whether --enable-odbc was given.
2707if test "${enable_odbc+set}" = set; then :
2708  enableval=$enable_odbc; case $enableval in
2709      yes | unix | no) ;;
2710      *) as_fn_error "invalid value \`$enableval' for --enable-odbc" "$LINENO" 5;;
2711      esac
2712else
2713  enable_odbc=no
2714fi
2715
2716
2717# Check whether --enable-mysql was given.
2718if test "${enable_mysql+set}" = set; then :
2719  enableval=$enable_mysql; case $enableval in
2720      yes | no) ;;
2721      *) as_fn_error "invalid value \`$enableval' for --enable-mysql" "$LINENO" 5;;
2722      esac
2723else
2724  enable_mysql=no
2725fi
2726
2727
2728
2729
2730
2731
2732ac_ext=c
2733ac_cpp='$CPP $CPPFLAGS'
2734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737if test -n "$ac_tool_prefix"; then
2738  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2739set dummy ${ac_tool_prefix}gcc; ac_word=$2
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
2742if test "${ac_cv_prog_CC+set}" = set; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  if test -n "$CC"; then
2746  ac_cv_prog_CC="$CC" # Let the user override the test.
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751  IFS=$as_save_IFS
2752  test -z "$as_dir" && as_dir=.
2753    for ac_exec_ext in '' $ac_executable_extensions; do
2754  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757    break 2
2758  fi
2759done
2760  done
2761IFS=$as_save_IFS
2762
2763fi
2764fi
2765CC=$ac_cv_prog_CC
2766if test -n "$CC"; then
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768$as_echo "$CC" >&6; }
2769else
2770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
2773
2774
2775fi
2776if test -z "$ac_cv_prog_CC"; then
2777  ac_ct_CC=$CC
2778  # Extract the first word of "gcc", so it can be a program name with args.
2779set dummy gcc; ac_word=$2
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781$as_echo_n "checking for $ac_word... " >&6; }
2782if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2783  $as_echo_n "(cached) " >&6
2784else
2785  if test -n "$ac_ct_CC"; then
2786  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791  IFS=$as_save_IFS
2792  test -z "$as_dir" && as_dir=.
2793    for ac_exec_ext in '' $ac_executable_extensions; do
2794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795    ac_cv_prog_ac_ct_CC="gcc"
2796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797    break 2
2798  fi
2799done
2800  done
2801IFS=$as_save_IFS
2802
2803fi
2804fi
2805ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806if test -n "$ac_ct_CC"; then
2807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2808$as_echo "$ac_ct_CC" >&6; }
2809else
2810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811$as_echo "no" >&6; }
2812fi
2813
2814  if test "x$ac_ct_CC" = x; then
2815    CC=""
2816  else
2817    case $cross_compiling:$ac_tool_warned in
2818yes:)
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821ac_tool_warned=yes ;;
2822esac
2823    CC=$ac_ct_CC
2824  fi
2825else
2826  CC="$ac_cv_prog_CC"
2827fi
2828
2829if test -z "$CC"; then
2830          if test -n "$ac_tool_prefix"; then
2831    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2832set dummy ${ac_tool_prefix}cc; ac_word=$2
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
2835if test "${ac_cv_prog_CC+set}" = set; then :
2836  $as_echo_n "(cached) " >&6
2837else
2838  if test -n "$CC"; then
2839  ac_cv_prog_CC="$CC" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846    for ac_exec_ext in '' $ac_executable_extensions; do
2847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848    ac_cv_prog_CC="${ac_tool_prefix}cc"
2849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850    break 2
2851  fi
2852done
2853  done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858CC=$ac_cv_prog_CC
2859if test -n "$CC"; then
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861$as_echo "$CC" >&6; }
2862else
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865fi
2866
2867
2868  fi
2869fi
2870if test -z "$CC"; then
2871  # Extract the first word of "cc", so it can be a program name with args.
2872set dummy cc; ac_word=$2
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874$as_echo_n "checking for $ac_word... " >&6; }
2875if test "${ac_cv_prog_CC+set}" = set; then :
2876  $as_echo_n "(cached) " >&6
2877else
2878  if test -n "$CC"; then
2879  ac_cv_prog_CC="$CC" # Let the user override the test.
2880else
2881  ac_prog_rejected=no
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  test -z "$as_dir" && as_dir=.
2887    for ac_exec_ext in '' $ac_executable_extensions; do
2888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2890       ac_prog_rejected=yes
2891       continue
2892     fi
2893    ac_cv_prog_CC="cc"
2894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895    break 2
2896  fi
2897done
2898  done
2899IFS=$as_save_IFS
2900
2901if test $ac_prog_rejected = yes; then
2902  # We found a bogon in the path, so make sure we never use it.
2903  set dummy $ac_cv_prog_CC
2904  shift
2905  if test $# != 0; then
2906    # We chose a different compiler from the bogus one.
2907    # However, it has the same basename, so the bogon will be chosen
2908    # first if we set CC to just the basename; use the full file name.
2909    shift
2910    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2911  fi
2912fi
2913fi
2914fi
2915CC=$ac_cv_prog_CC
2916if test -n "$CC"; then
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918$as_echo "$CC" >&6; }
2919else
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921$as_echo "no" >&6; }
2922fi
2923
2924
2925fi
2926if test -z "$CC"; then
2927  if test -n "$ac_tool_prefix"; then
2928  for ac_prog in cl.exe
2929  do
2930    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2931set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933$as_echo_n "checking for $ac_word... " >&6; }
2934if test "${ac_cv_prog_CC+set}" = set; then :
2935  $as_echo_n "(cached) " >&6
2936else
2937  if test -n "$CC"; then
2938  ac_cv_prog_CC="$CC" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943  IFS=$as_save_IFS
2944  test -z "$as_dir" && as_dir=.
2945    for ac_exec_ext in '' $ac_executable_extensions; do
2946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949    break 2
2950  fi
2951done
2952  done
2953IFS=$as_save_IFS
2954
2955fi
2956fi
2957CC=$ac_cv_prog_CC
2958if test -n "$CC"; then
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960$as_echo "$CC" >&6; }
2961else
2962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963$as_echo "no" >&6; }
2964fi
2965
2966
2967    test -n "$CC" && break
2968  done
2969fi
2970if test -z "$CC"; then
2971  ac_ct_CC=$CC
2972  for ac_prog in cl.exe
2973do
2974  # Extract the first word of "$ac_prog", so it can be a program name with args.
2975set dummy $ac_prog; ac_word=$2
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977$as_echo_n "checking for $ac_word... " >&6; }
2978if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2979  $as_echo_n "(cached) " >&6
2980else
2981  if test -n "$ac_ct_CC"; then
2982  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983else
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987  IFS=$as_save_IFS
2988  test -z "$as_dir" && as_dir=.
2989    for ac_exec_ext in '' $ac_executable_extensions; do
2990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991    ac_cv_prog_ac_ct_CC="$ac_prog"
2992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993    break 2
2994  fi
2995done
2996  done
2997IFS=$as_save_IFS
2998
2999fi
3000fi
3001ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002if test -n "$ac_ct_CC"; then
3003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3004$as_echo "$ac_ct_CC" >&6; }
3005else
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007$as_echo "no" >&6; }
3008fi
3009
3010
3011  test -n "$ac_ct_CC" && break
3012done
3013
3014  if test "x$ac_ct_CC" = x; then
3015    CC=""
3016  else
3017    case $cross_compiling:$ac_tool_warned in
3018yes:)
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021ac_tool_warned=yes ;;
3022esac
3023    CC=$ac_ct_CC
3024  fi
3025fi
3026
3027fi
3028
3029
3030test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032as_fn_error "no acceptable C compiler found in \$PATH
3033See \`config.log' for more details." "$LINENO" 5; }
3034
3035# Provide some information about the compiler.
3036$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3037set X $ac_compile
3038ac_compiler=$2
3039for ac_option in --version -v -V -qversion; do
3040  { { ac_try="$ac_compiler $ac_option >&5"
3041case "(($ac_try" in
3042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043  *) ac_try_echo=$ac_try;;
3044esac
3045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046$as_echo "$ac_try_echo"; } >&5
3047  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3048  ac_status=$?
3049  if test -s conftest.err; then
3050    sed '10a\
3051... rest of stderr output deleted ...
3052         10q' conftest.err >conftest.er1
3053    cat conftest.er1 >&5
3054  fi
3055  rm -f conftest.er1 conftest.err
3056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057  test $ac_status = 0; }
3058done
3059
3060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061/* end confdefs.h.  */
3062
3063int
3064main ()
3065{
3066
3067  ;
3068  return 0;
3069}
3070_ACEOF
3071ac_clean_files_save=$ac_clean_files
3072ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3073# Try to create an executable without -o first, disregard a.out.
3074# It will help us diagnose broken compilers, and finding out an intuition
3075# of exeext.
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3077$as_echo_n "checking whether the C compiler works... " >&6; }
3078ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3079
3080# The possible output files:
3081ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3082
3083ac_rmfiles=
3084for ac_file in $ac_files
3085do
3086  case $ac_file in
3087    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3088    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3089  esac
3090done
3091rm -f $ac_rmfiles
3092
3093if { { ac_try="$ac_link_default"
3094case "(($ac_try" in
3095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096  *) ac_try_echo=$ac_try;;
3097esac
3098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099$as_echo "$ac_try_echo"; } >&5
3100  (eval "$ac_link_default") 2>&5
3101  ac_status=$?
3102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103  test $ac_status = 0; }; then :
3104  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3105# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3106# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3107# so that the user can short-circuit this test for compilers unknown to
3108# Autoconf.
3109for ac_file in $ac_files ''
3110do
3111  test -f "$ac_file" || continue
3112  case $ac_file in
3113    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3114        ;;
3115    [ab].out )
3116        # We found the default executable, but exeext='' is most
3117        # certainly right.
3118        break;;
3119    *.* )
3120        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3121        then :; else
3122           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123        fi
3124        # We set ac_cv_exeext here because the later test for it is not
3125        # safe: cross compilers may not add the suffix if given an `-o'
3126        # argument, so we may need to know it at that point already.
3127        # Even if this section looks crufty: it has the advantage of
3128        # actually working.
3129        break;;
3130    * )
3131        break;;
3132  esac
3133done
3134test "$ac_cv_exeext" = no && ac_cv_exeext=
3135
3136else
3137  ac_file=''
3138fi
3139if test -z "$ac_file"; then :
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142$as_echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147{ as_fn_set_status 77
3148as_fn_error "C compiler cannot create executables
3149See \`config.log' for more details." "$LINENO" 5; }; }
3150else
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3152$as_echo "yes" >&6; }
3153fi
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3155$as_echo_n "checking for C compiler default output file name... " >&6; }
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3157$as_echo "$ac_file" >&6; }
3158ac_exeext=$ac_cv_exeext
3159
3160rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3161ac_clean_files=$ac_clean_files_save
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3163$as_echo_n "checking for suffix of executables... " >&6; }
3164if { { ac_try="$ac_link"
3165case "(($ac_try" in
3166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167  *) ac_try_echo=$ac_try;;
3168esac
3169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170$as_echo "$ac_try_echo"; } >&5
3171  (eval "$ac_link") 2>&5
3172  ac_status=$?
3173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174  test $ac_status = 0; }; then :
3175  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3177# work properly (i.e., refer to `conftest.exe'), while it won't with
3178# `rm'.
3179for ac_file in conftest.exe conftest conftest.*; do
3180  test -f "$ac_file" || continue
3181  case $ac_file in
3182    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3183    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184          break;;
3185    * ) break;;
3186  esac
3187done
3188else
3189  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191as_fn_error "cannot compute suffix of executables: cannot compile and link
3192See \`config.log' for more details." "$LINENO" 5; }
3193fi
3194rm -f conftest conftest$ac_cv_exeext
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3196$as_echo "$ac_cv_exeext" >&6; }
3197
3198rm -f conftest.$ac_ext
3199EXEEXT=$ac_cv_exeext
3200ac_exeext=$EXEEXT
3201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202/* end confdefs.h.  */
3203#include <stdio.h>
3204int
3205main ()
3206{
3207FILE *f = fopen ("conftest.out", "w");
3208 return ferror (f) || fclose (f) != 0;
3209
3210  ;
3211  return 0;
3212}
3213_ACEOF
3214ac_clean_files="$ac_clean_files conftest.out"
3215# Check that the compiler produces executables we can run.  If not, either
3216# the compiler is broken, or we cross compile.
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3218$as_echo_n "checking whether we are cross compiling... " >&6; }
3219if test "$cross_compiling" != yes; then
3220  { { ac_try="$ac_link"
3221case "(($ac_try" in
3222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223  *) ac_try_echo=$ac_try;;
3224esac
3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226$as_echo "$ac_try_echo"; } >&5
3227  (eval "$ac_link") 2>&5
3228  ac_status=$?
3229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230  test $ac_status = 0; }
3231  if { ac_try='./conftest$ac_cv_exeext'
3232  { { case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237$as_echo "$ac_try_echo"; } >&5
3238  (eval "$ac_try") 2>&5
3239  ac_status=$?
3240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241  test $ac_status = 0; }; }; then
3242    cross_compiling=no
3243  else
3244    if test "$cross_compiling" = maybe; then
3245        cross_compiling=yes
3246    else
3247        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249as_fn_error "cannot run C compiled programs.
3250If you meant to cross compile, use \`--host'.
3251See \`config.log' for more details." "$LINENO" 5; }
3252    fi
3253  fi
3254fi
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3256$as_echo "$cross_compiling" >&6; }
3257
3258rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3259ac_clean_files=$ac_clean_files_save
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3261$as_echo_n "checking for suffix of object files... " >&6; }
3262if test "${ac_cv_objext+set}" = set; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266/* end confdefs.h.  */
3267
3268int
3269main ()
3270{
3271
3272  ;
3273  return 0;
3274}
3275_ACEOF
3276rm -f conftest.o conftest.obj
3277if { { ac_try="$ac_compile"
3278case "(($ac_try" in
3279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280  *) ac_try_echo=$ac_try;;
3281esac
3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283$as_echo "$ac_try_echo"; } >&5
3284  (eval "$ac_compile") 2>&5
3285  ac_status=$?
3286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287  test $ac_status = 0; }; then :
3288  for ac_file in conftest.o conftest.obj conftest.*; do
3289  test -f "$ac_file" || continue;
3290  case $ac_file in
3291    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3292    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3293       break;;
3294  esac
3295done
3296else
3297  $as_echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302as_fn_error "cannot compute suffix of object files: cannot compile
3303See \`config.log' for more details." "$LINENO" 5; }
3304fi
3305rm -f conftest.$ac_cv_objext conftest.$ac_ext
3306fi
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3308$as_echo "$ac_cv_objext" >&6; }
3309OBJEXT=$ac_cv_objext
3310ac_objext=$OBJEXT
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3312$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3313if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3314  $as_echo_n "(cached) " >&6
3315else
3316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317/* end confdefs.h.  */
3318
3319int
3320main ()
3321{
3322#ifndef __GNUC__
3323       choke me
3324#endif
3325
3326  ;
3327  return 0;
3328}
3329_ACEOF
3330if ac_fn_c_try_compile "$LINENO"; then :
3331  ac_compiler_gnu=yes
3332else
3333  ac_compiler_gnu=no
3334fi
3335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336ac_cv_c_compiler_gnu=$ac_compiler_gnu
3337
3338fi
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3340$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3341if test $ac_compiler_gnu = yes; then
3342  GCC=yes
3343else
3344  GCC=
3345fi
3346ac_test_CFLAGS=${CFLAGS+set}
3347ac_save_CFLAGS=$CFLAGS
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3349$as_echo_n "checking whether $CC accepts -g... " >&6; }
3350if test "${ac_cv_prog_cc_g+set}" = set; then :
3351  $as_echo_n "(cached) " >&6
3352else
3353  ac_save_c_werror_flag=$ac_c_werror_flag
3354   ac_c_werror_flag=yes
3355   ac_cv_prog_cc_g=no
3356   CFLAGS="-g"
3357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h.  */
3359
3360int
3361main ()
3362{
3363
3364  ;
3365  return 0;
3366}
3367_ACEOF
3368if ac_fn_c_try_compile "$LINENO"; then :
3369  ac_cv_prog_cc_g=yes
3370else
3371  CFLAGS=""
3372      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373/* end confdefs.h.  */
3374
3375int
3376main ()
3377{
3378
3379  ;
3380  return 0;
3381}
3382_ACEOF
3383if ac_fn_c_try_compile "$LINENO"; then :
3384
3385else
3386  ac_c_werror_flag=$ac_save_c_werror_flag
3387         CFLAGS="-g"
3388         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389/* end confdefs.h.  */
3390
3391int
3392main ()
3393{
3394
3395  ;
3396  return 0;
3397}
3398_ACEOF
3399if ac_fn_c_try_compile "$LINENO"; then :
3400  ac_cv_prog_cc_g=yes
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403fi
3404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405fi
3406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407   ac_c_werror_flag=$ac_save_c_werror_flag
3408fi
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3410$as_echo "$ac_cv_prog_cc_g" >&6; }
3411if test "$ac_test_CFLAGS" = set; then
3412  CFLAGS=$ac_save_CFLAGS
3413elif test $ac_cv_prog_cc_g = yes; then
3414  if test "$GCC" = yes; then
3415    CFLAGS="-g -O2"
3416  else
3417    CFLAGS="-g"
3418  fi
3419else
3420  if test "$GCC" = yes; then
3421    CFLAGS="-O2"
3422  else
3423    CFLAGS=
3424  fi
3425fi
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3427$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3428if test "${ac_cv_prog_cc_c89+set}" = set; then :
3429  $as_echo_n "(cached) " >&6
3430else
3431  ac_cv_prog_cc_c89=no
3432ac_save_CC=$CC
3433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434/* end confdefs.h.  */
3435#include <stdarg.h>
3436#include <stdio.h>
3437#include <sys/types.h>
3438#include <sys/stat.h>
3439/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3440struct buf { int x; };
3441FILE * (*rcsopen) (struct buf *, struct stat *, int);
3442static char *e (p, i)
3443     char **p;
3444     int i;
3445{
3446  return p[i];
3447}
3448static char *f (char * (*g) (char **, int), char **p, ...)
3449{
3450  char *s;
3451  va_list v;
3452  va_start (v,p);
3453  s = g (p, va_arg (v,int));
3454  va_end (v);
3455  return s;
3456}
3457
3458/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3459   function prototypes and stuff, but not '\xHH' hex character constants.
3460   These don't provoke an error unfortunately, instead are silently treated
3461   as 'x'.  The following induces an error, until -std is added to get
3462   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3463   array size at least.  It's necessary to write '\x00'==0 to get something
3464   that's true only with -std.  */
3465int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3466
3467/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3468   inside strings and character constants.  */
3469#define FOO(x) 'x'
3470int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3471
3472int test (int i, double x);
3473struct s1 {int (*f) (int a);};
3474struct s2 {int (*f) (double a);};
3475int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3476int argc;
3477char **argv;
3478int
3479main ()
3480{
3481return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3482  ;
3483  return 0;
3484}
3485_ACEOF
3486for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3487        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3488do
3489  CC="$ac_save_CC $ac_arg"
3490  if ac_fn_c_try_compile "$LINENO"; then :
3491  ac_cv_prog_cc_c89=$ac_arg
3492fi
3493rm -f core conftest.err conftest.$ac_objext
3494  test "x$ac_cv_prog_cc_c89" != "xno" && break
3495done
3496rm -f conftest.$ac_ext
3497CC=$ac_save_CC
3498
3499fi
3500# AC_CACHE_VAL
3501case "x$ac_cv_prog_cc_c89" in
3502  x)
3503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3504$as_echo "none needed" >&6; } ;;
3505  xno)
3506    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3507$as_echo "unsupported" >&6; } ;;
3508  *)
3509    CC="$CC $ac_cv_prog_cc_c89"
3510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3511$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3512esac
3513if test "x$ac_cv_prog_cc_c89" != xno; then :
3514
3515fi
3516
3517ac_ext=c
3518ac_cpp='$CPP $CPPFLAGS'
3519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522DEPDIR="${am__leading_dot}deps"
3523
3524ac_config_commands="$ac_config_commands depfiles"
3525
3526
3527am_make=${MAKE-make}
3528cat > confinc << 'END'
3529am__doit:
3530        @echo this is the am__doit target
3531.PHONY: am__doit
3532END
3533# If we don't find an include directive, just comment out the code.
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3535$as_echo_n "checking for style of include used by $am_make... " >&6; }
3536am__include="#"
3537am__quote=
3538_am_result=none
3539# First try GNU make style include.
3540echo "include confinc" > confmf
3541# Ignore all kinds of additional output from `make'.
3542case `$am_make -s -f confmf 2> /dev/null` in #(
3543*the\ am__doit\ target*)
3544  am__include=include
3545  am__quote=
3546  _am_result=GNU
3547  ;;
3548esac
3549# Now try BSD make style include.
3550if test "$am__include" = "#"; then
3551   echo '.include "confinc"' > confmf
3552   case `$am_make -s -f confmf 2> /dev/null` in #(
3553   *the\ am__doit\ target*)
3554     am__include=.include
3555     am__quote="\""
3556     _am_result=BSD
3557     ;;
3558   esac
3559fi
3560
3561
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3563$as_echo "$_am_result" >&6; }
3564rm -f confinc confmf
3565
3566# Check whether --enable-dependency-tracking was given.
3567if test "${enable_dependency_tracking+set}" = set; then :
3568  enableval=$enable_dependency_tracking;
3569fi
3570
3571if test "x$enable_dependency_tracking" != xno; then
3572  am_depcomp="$ac_aux_dir/depcomp"
3573  AMDEPBACKSLASH='\'
3574fi
3575 if test "x$enable_dependency_tracking" != xno; then
3576  AMDEP_TRUE=
3577  AMDEP_FALSE='#'
3578else
3579  AMDEP_TRUE='#'
3580  AMDEP_FALSE=
3581fi
3582
3583
3584
3585depcc="$CC"   am_compiler_list=
3586
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3588$as_echo_n "checking dependency style of $depcc... " >&6; }
3589if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3593  # We make a subdir and do the tests there.  Otherwise we can end up
3594  # making bogus files that we don't know about and never remove.  For
3595  # instance it was reported that on HP-UX the gcc test will end up
3596  # making a dummy file named `D' -- because `-MD' means `put the output
3597  # in D'.
3598  mkdir conftest.dir
3599  # Copy depcomp to subdir because otherwise we won't find it if we're
3600  # using a relative directory.
3601  cp "$am_depcomp" conftest.dir
3602  cd conftest.dir
3603  # We will build objects and dependencies in a subdirectory because
3604  # it helps to detect inapplicable dependency modes.  For instance
3605  # both Tru64's cc and ICC support -MD to output dependencies as a
3606  # side effect of compilation, but ICC will put the dependencies in
3607  # the current directory while Tru64 will put them in the object
3608  # directory.
3609  mkdir sub
3610
3611  am_cv_CC_dependencies_compiler_type=none
3612  if test "$am_compiler_list" = ""; then
3613     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3614  fi
3615  am__universal=false
3616  case " $depcc " in #(
3617     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3618     esac
3619
3620  for depmode in $am_compiler_list; do
3621    # Setup a source with many dependencies, because some compilers
3622    # like to wrap large dependency lists on column 80 (with \), and
3623    # we should not choose a depcomp mode which is confused by this.
3624    #
3625    # We need to recreate these files for each test, as the compiler may
3626    # overwrite some of them when testing with obscure command lines.
3627    # This happens at least with the AIX C compiler.
3628    : > sub/conftest.c
3629    for i in 1 2 3 4 5 6; do
3630      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3631      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3632      # Solaris 8's {/usr,}/bin/sh.
3633      touch sub/conftst$i.h
3634    done
3635    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3636
3637    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3638    # mode.  It turns out that the SunPro C++ compiler does not properly
3639    # handle `-M -o', and we need to detect this.  Also, some Intel
3640    # versions had trouble with output in subdirs
3641    am__obj=sub/conftest.${OBJEXT-o}
3642    am__minus_obj="-o $am__obj"
3643    case $depmode in
3644    gcc)
3645      # This depmode causes a compiler race in universal mode.
3646      test "$am__universal" = false || continue
3647      ;;
3648    nosideeffect)
3649      # after this tag, mechanisms are not by side-effect, so they'll
3650      # only be used when explicitly requested
3651      if test "x$enable_dependency_tracking" = xyes; then
3652        continue
3653      else
3654        break
3655      fi
3656      ;;
3657    msvisualcpp | msvcmsys)
3658      # This compiler won't grok `-c -o', but also, the minuso test has
3659      # not run yet.  These depmodes are late enough in the game, and
3660      # so weak that their functioning should not be impacted.
3661      am__obj=conftest.${OBJEXT-o}
3662      am__minus_obj=
3663      ;;
3664    none) break ;;
3665    esac
3666    if depmode=$depmode \
3667       source=sub/conftest.c object=$am__obj \
3668       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3669       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3670         >/dev/null 2>conftest.err &&
3671       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3672       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3673       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3674       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3675      # icc doesn't choke on unknown options, it will just issue warnings
3676      # or remarks (even with -Werror).  So we grep stderr for any message
3677      # that says an option was ignored or not supported.
3678      # When given -MP, icc 7.0 and 7.1 complain thusly:
3679      #   icc: Command line warning: ignoring option '-M'; no argument required
3680      # The diagnosis changed in icc 8.0:
3681      #   icc: Command line remark: option '-MP' not supported
3682      if (grep 'ignoring option' conftest.err ||
3683          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3684        am_cv_CC_dependencies_compiler_type=$depmode
3685        break
3686      fi
3687    fi
3688  done
3689
3690  cd ..
3691  rm -rf conftest.dir
3692else
3693  am_cv_CC_dependencies_compiler_type=none
3694fi
3695
3696fi
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3698$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3699CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3700
3701 if
3702  test "x$enable_dependency_tracking" != xno \
3703  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3704  am__fastdepCC_TRUE=
3705  am__fastdepCC_FALSE='#'
3706else
3707  am__fastdepCC_TRUE='#'
3708  am__fastdepCC_FALSE=
3709fi
3710
3711
3712
3713case `pwd` in
3714  *\ * | *\     *)
3715    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3716$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3717esac
3718
3719
3720
3721macro_version='2.2.7a'
3722macro_revision='1.3140'
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736ltmain="$ac_aux_dir/ltmain.sh"
3737
3738# Make sure we can run config.sub.
3739$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3740  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3741
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3743$as_echo_n "checking build system type... " >&6; }
3744if test "${ac_cv_build+set}" = set; then :
3745  $as_echo_n "(cached) " >&6
3746else
3747  ac_build_alias=$build_alias
3748test "x$ac_build_alias" = x &&
3749  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3750test "x$ac_build_alias" = x &&
3751  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3752ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3753  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3754
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3757$as_echo "$ac_cv_build" >&6; }
3758case $ac_cv_build in
3759*-*-*) ;;
3760*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3761esac
3762build=$ac_cv_build
3763ac_save_IFS=$IFS; IFS='-'
3764set x $ac_cv_build
3765shift
3766build_cpu=$1
3767build_vendor=$2
3768shift; shift
3769# Remember, the first character of IFS is used to create $*,
3770# except with old shells:
3771build_os=$*
3772IFS=$ac_save_IFS
3773case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3774
3775
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3777$as_echo_n "checking host system type... " >&6; }
3778if test "${ac_cv_host+set}" = set; then :
3779  $as_echo_n "(cached) " >&6
3780else
3781  if test "x$host_alias" = x; then
3782  ac_cv_host=$ac_cv_build
3783else
3784  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3785    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3786fi
3787
3788fi
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3790$as_echo "$ac_cv_host" >&6; }
3791case $ac_cv_host in
3792*-*-*) ;;
3793*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3794esac
3795host=$ac_cv_host
3796ac_save_IFS=$IFS; IFS='-'
3797set x $ac_cv_host
3798shift
3799host_cpu=$1
3800host_vendor=$2
3801shift; shift
3802# Remember, the first character of IFS is used to create $*,
3803# except with old shells:
3804host_os=$*
3805IFS=$ac_save_IFS
3806case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3807
3808
3809# Backslashify metacharacters that are still active within
3810# double-quoted strings.
3811sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3812
3813# Same as above, but do not quote variable references.
3814double_quote_subst='s/\(["`\\]\)/\\\1/g'
3815
3816# Sed substitution to delay expansion of an escaped shell variable in a
3817# double_quote_subst'ed string.
3818delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3819
3820# Sed substitution to delay expansion of an escaped single quote.
3821delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3822
3823# Sed substitution to avoid accidental globbing in evaled expressions
3824no_glob_subst='s/\*/\\\*/g'
3825
3826ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3827ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3828ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3829
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3831$as_echo_n "checking how to print strings... " >&6; }
3832# Test print first, because it will be a builtin if present.
3833if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3834   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3835  ECHO='print -r --'
3836elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3837  ECHO='printf %s\n'
3838else
3839  # Use this function as a fallback that always works.
3840  func_fallback_echo ()
3841  {
3842    eval 'cat <<_LTECHO_EOF
3843$1
3844_LTECHO_EOF'
3845  }
3846  ECHO='func_fallback_echo'
3847fi
3848
3849# func_echo_all arg...
3850# Invoke $ECHO with all args, space-separated.
3851func_echo_all ()
3852{
3853    $ECHO ""
3854}
3855
3856case "$ECHO" in
3857  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3858$as_echo "printf" >&6; } ;;
3859  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3860$as_echo "print -r" >&6; } ;;
3861  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3862$as_echo "cat" >&6; } ;;
3863esac
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3879$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3880if test "${ac_cv_path_SED+set}" = set; then :
3881  $as_echo_n "(cached) " >&6
3882else
3883            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3884     for ac_i in 1 2 3 4 5 6 7; do
3885       ac_script="$ac_script$as_nl$ac_script"
3886     done
3887     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3888     { ac_script=; unset ac_script;}
3889     if test -z "$SED"; then
3890  ac_path_SED_found=false
3891  # Loop through the user's path and test for each of PROGNAME-LIST
3892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895  IFS=$as_save_IFS
3896  test -z "$as_dir" && as_dir=.
3897    for ac_prog in sed gsed; do
3898    for ac_exec_ext in '' $ac_executable_extensions; do
3899      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3900      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3901# Check for GNU ac_path_SED and select it if it is found.
3902  # Check for GNU $ac_path_SED
3903case `"$ac_path_SED" --version 2>&1` in
3904*GNU*)
3905  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3906*)
3907  ac_count=0
3908  $as_echo_n 0123456789 >"conftest.in"
3909  while :
3910  do
3911    cat "conftest.in" "conftest.in" >"conftest.tmp"
3912    mv "conftest.tmp" "conftest.in"
3913    cp "conftest.in" "conftest.nl"
3914    $as_echo '' >> "conftest.nl"
3915    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917    as_fn_arith $ac_count + 1 && ac_count=$as_val
3918    if test $ac_count -gt ${ac_path_SED_max-0}; then
3919      # Best one so far, save it but keep looking for a better one
3920      ac_cv_path_SED="$ac_path_SED"
3921      ac_path_SED_max=$ac_count
3922    fi
3923    # 10*(2^10) chars as input seems more than enough
3924    test $ac_count -gt 10 && break
3925  done
3926  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927esac
3928
3929      $ac_path_SED_found && break 3
3930    done
3931  done
3932  done
3933IFS=$as_save_IFS
3934  if test -z "$ac_cv_path_SED"; then
3935    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3936  fi
3937else
3938  ac_cv_path_SED=$SED
3939fi
3940
3941fi
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3943$as_echo "$ac_cv_path_SED" >&6; }
3944 SED="$ac_cv_path_SED"
3945  rm -f conftest.sed
3946
3947test -z "$SED" && SED=sed
3948Xsed="$SED -e 1s/^X//"
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3961$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3962if test "${ac_cv_path_GREP+set}" = set; then :
3963  $as_echo_n "(cached) " >&6
3964else
3965  if test -z "$GREP"; then
3966  ac_path_GREP_found=false
3967  # Loop through the user's path and test for each of PROGNAME-LIST
3968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3970do
3971  IFS=$as_save_IFS
3972  test -z "$as_dir" && as_dir=.
3973    for ac_prog in grep ggrep; do
3974    for ac_exec_ext in '' $ac_executable_extensions; do
3975      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3976      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3977# Check for GNU ac_path_GREP and select it if it is found.
3978  # Check for GNU $ac_path_GREP
3979case `"$ac_path_GREP" --version 2>&1` in
3980*GNU*)
3981  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3982*)
3983  ac_count=0
3984  $as_echo_n 0123456789 >"conftest.in"
3985  while :
3986  do
3987    cat "conftest.in" "conftest.in" >"conftest.tmp"
3988    mv "conftest.tmp" "conftest.in"
3989    cp "conftest.in" "conftest.nl"
3990    $as_echo 'GREP' >> "conftest.nl"
3991    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3992    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3993    as_fn_arith $ac_count + 1 && ac_count=$as_val
3994    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3995      # Best one so far, save it but keep looking for a better one
3996      ac_cv_path_GREP="$ac_path_GREP"
3997      ac_path_GREP_max=$ac_count
3998    fi
3999    # 10*(2^10) chars as input seems more than enough
4000    test $ac_count -gt 10 && break
4001  done
4002  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4003esac
4004
4005      $ac_path_GREP_found && break 3
4006    done
4007  done
4008  done
4009IFS=$as_save_IFS
4010  if test -z "$ac_cv_path_GREP"; then
4011    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4012  fi
4013else
4014  ac_cv_path_GREP=$GREP
4015fi
4016
4017fi
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4019$as_echo "$ac_cv_path_GREP" >&6; }
4020 GREP="$ac_cv_path_GREP"
4021
4022
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4024$as_echo_n "checking for egrep... " >&6; }
4025if test "${ac_cv_path_EGREP+set}" = set; then :
4026  $as_echo_n "(cached) " >&6
4027else
4028  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4029   then ac_cv_path_EGREP="$GREP -E"
4030   else
4031     if test -z "$EGREP"; then
4032  ac_path_EGREP_found=false
4033  # Loop through the user's path and test for each of PROGNAME-LIST
4034  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4036do
4037  IFS=$as_save_IFS
4038  test -z "$as_dir" && as_dir=.
4039    for ac_prog in egrep; do
4040    for ac_exec_ext in '' $ac_executable_extensions; do
4041      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4042      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4043# Check for GNU ac_path_EGREP and select it if it is found.
4044  # Check for GNU $ac_path_EGREP
4045case `"$ac_path_EGREP" --version 2>&1` in
4046*GNU*)
4047  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4048*)
4049  ac_count=0
4050  $as_echo_n 0123456789 >"conftest.in"
4051  while :
4052  do
4053    cat "conftest.in" "conftest.in" >"conftest.tmp"
4054    mv "conftest.tmp" "conftest.in"
4055    cp "conftest.in" "conftest.nl"
4056    $as_echo 'EGREP' >> "conftest.nl"
4057    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4058    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4059    as_fn_arith $ac_count + 1 && ac_count=$as_val
4060    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4061      # Best one so far, save it but keep looking for a better one
4062      ac_cv_path_EGREP="$ac_path_EGREP"
4063      ac_path_EGREP_max=$ac_count
4064    fi
4065    # 10*(2^10) chars as input seems more than enough
4066    test $ac_count -gt 10 && break
4067  done
4068  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4069esac
4070
4071      $ac_path_EGREP_found && break 3
4072    done
4073  done
4074  done
4075IFS=$as_save_IFS
4076  if test -z "$ac_cv_path_EGREP"; then
4077    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4078  fi
4079else
4080  ac_cv_path_EGREP=$EGREP
4081fi
4082
4083   fi
4084fi
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4086$as_echo "$ac_cv_path_EGREP" >&6; }
4087 EGREP="$ac_cv_path_EGREP"
4088
4089
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4091$as_echo_n "checking for fgrep... " >&6; }
4092if test "${ac_cv_path_FGREP+set}" = set; then :
4093  $as_echo_n "(cached) " >&6
4094else
4095  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4096   then ac_cv_path_FGREP="$GREP -F"
4097   else
4098     if test -z "$FGREP"; then
4099  ac_path_FGREP_found=false
4100  # Loop through the user's path and test for each of PROGNAME-LIST
4101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106    for ac_prog in fgrep; do
4107    for ac_exec_ext in '' $ac_executable_extensions; do
4108      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4109      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4110# Check for GNU ac_path_FGREP and select it if it is found.
4111  # Check for GNU $ac_path_FGREP
4112case `"$ac_path_FGREP" --version 2>&1` in
4113*GNU*)
4114  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4115*)
4116  ac_count=0
4117  $as_echo_n 0123456789 >"conftest.in"
4118  while :
4119  do
4120    cat "conftest.in" "conftest.in" >"conftest.tmp"
4121    mv "conftest.tmp" "conftest.in"
4122    cp "conftest.in" "conftest.nl"
4123    $as_echo 'FGREP' >> "conftest.nl"
4124    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126    as_fn_arith $ac_count + 1 && ac_count=$as_val
4127    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4128      # Best one so far, save it but keep looking for a better one
4129      ac_cv_path_FGREP="$ac_path_FGREP"
4130      ac_path_FGREP_max=$ac_count
4131    fi
4132    # 10*(2^10) chars as input seems more than enough
4133    test $ac_count -gt 10 && break
4134  done
4135  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136esac
4137
4138      $ac_path_FGREP_found && break 3
4139    done
4140  done
4141  done
4142IFS=$as_save_IFS
4143  if test -z "$ac_cv_path_FGREP"; then
4144    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145  fi
4146else
4147  ac_cv_path_FGREP=$FGREP
4148fi
4149
4150   fi
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4153$as_echo "$ac_cv_path_FGREP" >&6; }
4154 FGREP="$ac_cv_path_FGREP"
4155
4156
4157test -z "$GREP" && GREP=grep
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177# Check whether --with-gnu-ld was given.
4178if test "${with_gnu_ld+set}" = set; then :
4179  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4180else
4181  with_gnu_ld=no
4182fi
4183
4184ac_prog=ld
4185if test "$GCC" = yes; then
4186  # Check if gcc -print-prog-name=ld gives a path.
4187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4188$as_echo_n "checking for ld used by $CC... " >&6; }
4189  case $host in
4190  *-*-mingw*)
4191    # gcc leaves a trailing carriage return which upsets mingw
4192    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4193  *)
4194    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4195  esac
4196  case $ac_prog in
4197    # Accept absolute paths.
4198    [\\/]* | ?:[\\/]*)
4199      re_direlt='/[^/][^/]*/\.\./'
4200      # Canonicalize the pathname of ld
4201      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4202      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4203        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4204      done
4205      test -z "$LD" && LD="$ac_prog"
4206      ;;
4207  "")
4208    # If it fails, then pretend we aren't using GCC.
4209    ac_prog=ld
4210    ;;
4211  *)
4212    # If it is relative, then search for the first ld in PATH.
4213    with_gnu_ld=unknown
4214    ;;
4215  esac
4216elif test "$with_gnu_ld" = yes; then
4217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4218$as_echo_n "checking for GNU ld... " >&6; }
4219else
4220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4221$as_echo_n "checking for non-GNU ld... " >&6; }
4222fi
4223if test "${lt_cv_path_LD+set}" = set; then :
4224  $as_echo_n "(cached) " >&6
4225else
4226  if test -z "$LD"; then
4227  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4228  for ac_dir in $PATH; do
4229    IFS="$lt_save_ifs"
4230    test -z "$ac_dir" && ac_dir=.
4231    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4232      lt_cv_path_LD="$ac_dir/$ac_prog"
4233      # Check to see if the program is GNU ld.  I'd rather use --version,
4234      # but apparently some variants of GNU ld only accept -v.
4235      # Break only if it was the GNU/non-GNU ld that we prefer.
4236      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4237      *GNU* | *'with BFD'*)
4238        test "$with_gnu_ld" != no && break
4239        ;;
4240      *)
4241        test "$with_gnu_ld" != yes && break
4242        ;;
4243      esac
4244    fi
4245  done
4246  IFS="$lt_save_ifs"
4247else
4248  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4249fi
4250fi
4251
4252LD="$lt_cv_path_LD"
4253if test -n "$LD"; then
4254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4255$as_echo "$LD" >&6; }
4256else
4257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258$as_echo "no" >&6; }
4259fi
4260test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4262$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4263if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4267case `$LD -v 2>&1 </dev/null` in
4268*GNU* | *'with BFD'*)
4269  lt_cv_prog_gnu_ld=yes
4270  ;;
4271*)
4272  lt_cv_prog_gnu_ld=no
4273  ;;
4274esac
4275fi
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4277$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4278with_gnu_ld=$lt_cv_prog_gnu_ld
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4289$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4290if test "${lt_cv_path_NM+set}" = set; then :
4291  $as_echo_n "(cached) " >&6
4292else
4293  if test -n "$NM"; then
4294  # Let the user override the test.
4295  lt_cv_path_NM="$NM"
4296else
4297  lt_nm_to_check="${ac_tool_prefix}nm"
4298  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4299    lt_nm_to_check="$lt_nm_to_check nm"
4300  fi
4301  for lt_tmp_nm in $lt_nm_to_check; do
4302    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4303    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4304      IFS="$lt_save_ifs"
4305      test -z "$ac_dir" && ac_dir=.
4306      tmp_nm="$ac_dir/$lt_tmp_nm"
4307      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4308        # Check to see if the nm accepts a BSD-compat flag.
4309        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4310        #   nm: unknown option "B" ignored
4311        # Tru64's nm complains that /dev/null is an invalid object file
4312        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4313        */dev/null* | *'Invalid file or object type'*)
4314          lt_cv_path_NM="$tmp_nm -B"
4315          break
4316          ;;
4317        *)
4318          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4319          */dev/null*)
4320            lt_cv_path_NM="$tmp_nm -p"
4321            break
4322            ;;
4323          *)
4324            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4325            continue # so that we can try to find one that supports BSD flags
4326            ;;
4327          esac
4328          ;;
4329        esac
4330      fi
4331    done
4332    IFS="$lt_save_ifs"
4333  done
4334  : ${lt_cv_path_NM=no}
4335fi
4336fi
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4338$as_echo "$lt_cv_path_NM" >&6; }
4339if test "$lt_cv_path_NM" != "no"; then
4340  NM="$lt_cv_path_NM"
4341else
4342  # Didn't find any BSD compatible name lister, look for dumpbin.
4343  if test -n "$DUMPBIN"; then :
4344    # Let the user override the test.
4345  else
4346    if test -n "$ac_tool_prefix"; then
4347  for ac_prog in dumpbin "link -dump"
4348  do
4349    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352$as_echo_n "checking for $ac_word... " >&6; }
4353if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4354  $as_echo_n "(cached) " >&6
4355else
4356  if test -n "$DUMPBIN"; then
4357  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4358else
4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360for as_dir in $PATH
4361do
4362  IFS=$as_save_IFS
4363  test -z "$as_dir" && as_dir=.
4364    for ac_exec_ext in '' $ac_executable_extensions; do
4365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368    break 2
4369  fi
4370done
4371  done
4372IFS=$as_save_IFS
4373
4374fi
4375fi
4376DUMPBIN=$ac_cv_prog_DUMPBIN
4377if test -n "$DUMPBIN"; then
4378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4379$as_echo "$DUMPBIN" >&6; }
4380else
4381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382$as_echo "no" >&6; }
4383fi
4384
4385
4386    test -n "$DUMPBIN" && break
4387  done
4388fi
4389if test -z "$DUMPBIN"; then
4390  ac_ct_DUMPBIN=$DUMPBIN
4391  for ac_prog in dumpbin "link -dump"
4392do
4393  # Extract the first word of "$ac_prog", so it can be a program name with args.
4394set dummy $ac_prog; ac_word=$2
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396$as_echo_n "checking for $ac_word... " >&6; }
4397if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400  if test -n "$ac_ct_DUMPBIN"; then
4401  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4402else
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406  IFS=$as_save_IFS
4407  test -z "$as_dir" && as_dir=.
4408    for ac_exec_ext in '' $ac_executable_extensions; do
4409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412    break 2
4413  fi
4414done
4415  done
4416IFS=$as_save_IFS
4417
4418fi
4419fi
4420ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4421if test -n "$ac_ct_DUMPBIN"; then
4422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4423$as_echo "$ac_ct_DUMPBIN" >&6; }
4424else
4425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427fi
4428
4429
4430  test -n "$ac_ct_DUMPBIN" && break
4431done
4432
4433  if test "x$ac_ct_DUMPBIN" = x; then
4434    DUMPBIN=":"
4435  else
4436    case $cross_compiling:$ac_tool_warned in
4437yes:)
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4440ac_tool_warned=yes ;;
4441esac
4442    DUMPBIN=$ac_ct_DUMPBIN
4443  fi
4444fi
4445
4446    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4447    *COFF*)
4448      DUMPBIN="$DUMPBIN -symbols"
4449      ;;
4450    *)
4451      DUMPBIN=:
4452      ;;
4453    esac
4454  fi
4455
4456  if test "$DUMPBIN" != ":"; then
4457    NM="$DUMPBIN"
4458  fi
4459fi
4460test -z "$NM" && NM=nm
4461
4462
4463
4464
4465
4466
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4468$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4469if test "${lt_cv_nm_interface+set}" = set; then :
4470  $as_echo_n "(cached) " >&6
4471else
4472  lt_cv_nm_interface="BSD nm"
4473  echo "int some_variable = 0;" > conftest.$ac_ext
4474  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4475  (eval "$ac_compile" 2>conftest.err)
4476  cat conftest.err >&5
4477  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4478  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4479  cat conftest.err >&5
4480  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4481  cat conftest.out >&5
4482  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4483    lt_cv_nm_interface="MS dumpbin"
4484  fi
4485  rm -f conftest*
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4488$as_echo "$lt_cv_nm_interface" >&6; }
4489
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4491$as_echo_n "checking whether ln -s works... " >&6; }
4492LN_S=$as_ln_s
4493if test "$LN_S" = "ln -s"; then
4494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4495$as_echo "yes" >&6; }
4496else
4497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4498$as_echo "no, using $LN_S" >&6; }
4499fi
4500
4501# find the maximum length of command line arguments
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4503$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4504if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507    i=0
4508  teststring="ABCD"
4509
4510  case $build_os in
4511  msdosdjgpp*)
4512    # On DJGPP, this test can blow up pretty badly due to problems in libc
4513    # (any single argument exceeding 2000 bytes causes a buffer overrun
4514    # during glob expansion).  Even if it were fixed, the result of this
4515    # check would be larger than it should be.
4516    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4517    ;;
4518
4519  gnu*)
4520    # Under GNU Hurd, this test is not required because there is
4521    # no limit to the length of command line arguments.
4522    # Libtool will interpret -1 as no limit whatsoever
4523    lt_cv_sys_max_cmd_len=-1;
4524    ;;
4525
4526  cygwin* | mingw* | cegcc*)
4527    # On Win9x/ME, this test blows up -- it succeeds, but takes
4528    # about 5 minutes as the teststring grows exponentially.
4529    # Worse, since 9x/ME are not pre-emptively multitasking,
4530    # you end up with a "frozen" computer, even though with patience
4531    # the test eventually succeeds (with a max line length of 256k).
4532    # Instead, let's just punt: use the minimum linelength reported by
4533    # all of the supported platforms: 8192 (on NT/2K/XP).
4534    lt_cv_sys_max_cmd_len=8192;
4535    ;;
4536
4537  mint*)
4538    # On MiNT this can take a long time and run out of memory.
4539    lt_cv_sys_max_cmd_len=8192;
4540    ;;
4541
4542  amigaos*)
4543    # On AmigaOS with pdksh, this test takes hours, literally.
4544    # So we just punt and use a minimum line length of 8192.
4545    lt_cv_sys_max_cmd_len=8192;
4546    ;;
4547
4548  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4549    # This has been around since 386BSD, at least.  Likely further.
4550    if test -x /sbin/sysctl; then
4551      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4552    elif test -x /usr/sbin/sysctl; then
4553      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4554    else
4555      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4556    fi
4557    # And add a safety zone
4558    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4559    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4560    ;;
4561
4562  interix*)
4563    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4564    lt_cv_sys_max_cmd_len=196608
4565    ;;
4566
4567  osf*)
4568    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4569    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4570    # nice to cause kernel panics so lets avoid the loop below.
4571    # First set a reasonable default.
4572    lt_cv_sys_max_cmd_len=16384
4573    #
4574    if test -x /sbin/sysconfig; then
4575      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4576        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4577      esac
4578    fi
4579    ;;
4580  sco3.2v5*)
4581    lt_cv_sys_max_cmd_len=102400
4582    ;;
4583  sysv5* | sco5v6* | sysv4.2uw2*)
4584    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4585    if test -n "$kargmax"; then
4586      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4587    else
4588      lt_cv_sys_max_cmd_len=32768
4589    fi
4590    ;;
4591  *)
4592    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4593    if test -n "$lt_cv_sys_max_cmd_len"; then
4594      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4596    else
4597      # Make teststring a little bigger before we do anything with it.
4598      # a 1K string should be a reasonable start.
4599      for i in 1 2 3 4 5 6 7 8 ; do
4600        teststring=$teststring$teststring
4601      done
4602      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4603      # If test is not a shell built-in, we'll probably end up computing a
4604      # maximum length that is only half of the actual maximum length, but
4605      # we can't tell.
4606      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4607                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4608              test $i != 17 # 1/2 MB should be enough
4609      do
4610        i=`expr $i + 1`
4611        teststring=$teststring$teststring
4612      done
4613      # Only check the string length outside the loop.
4614      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4615      teststring=
4616      # Add a significant safety factor because C++ compilers can tack on
4617      # massive amounts of additional arguments before passing them to the
4618      # linker.  It appears as though 1/2 is a usable value.
4619      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4620    fi
4621    ;;
4622  esac
4623
4624fi
4625
4626if test -n $lt_cv_sys_max_cmd_len ; then
4627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4628$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4629else
4630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4631$as_echo "none" >&6; }
4632fi
4633max_cmd_len=$lt_cv_sys_max_cmd_len
4634
4635
4636
4637
4638
4639
4640: ${CP="cp -f"}
4641: ${MV="mv -f"}
4642: ${RM="rm -f"}
4643
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4645$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4646# Try some XSI features
4647xsi_shell=no
4648( _lt_dummy="a/b/c"
4649  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4650      = c,a/b,, \
4651    && eval 'test $(( 1 + 1 )) -eq 2 \
4652    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4653  && xsi_shell=yes
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4655$as_echo "$xsi_shell" >&6; }
4656
4657
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4659$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4660lt_shell_append=no
4661( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4662    >/dev/null 2>&1 \
4663  && lt_shell_append=yes
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4665$as_echo "$lt_shell_append" >&6; }
4666
4667
4668if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4669  lt_unset=unset
4670else
4671  lt_unset=false
4672fi
4673
4674
4675
4676
4677
4678# test EBCDIC or ASCII
4679case `echo X|tr X '\101'` in
4680 A) # ASCII based system
4681    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4682  lt_SP2NL='tr \040 \012'
4683  lt_NL2SP='tr \015\012 \040\040'
4684  ;;
4685 *) # EBCDIC based system
4686  lt_SP2NL='tr \100 \n'
4687  lt_NL2SP='tr \r\n \100\100'
4688  ;;
4689esac
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build paths to $host format" >&5
4700$as_echo_n "checking how to convert $build paths to $host format... " >&6; }
4701if test "${lt_cv_to_host_path_cmd+set}" = set; then :
4702  $as_echo_n "(cached) " >&6
4703else
4704  case $host in
4705  *mingw* )
4706    case $build in
4707      *mingw* ) # actually msys
4708        lt_cv_to_host_path_cmd=func_msys_to_mingw_path_convert
4709        ;;
4710      *cygwin* )
4711        lt_cv_to_host_path_cmd=func_cygwin_to_mingw_path_convert
4712        ;;
4713      * ) # otherwise, assume *nix
4714        lt_cv_to_host_path_cmd=func_nix_to_mingw_path_convert
4715        ;;
4716    esac
4717    ;;
4718  *cygwin* )
4719    case $build in
4720      *mingw* ) # actually msys
4721        lt_cv_to_host_path_cmd=func_msys_to_cygwin_path_convert
4722        ;;
4723      *cygwin* )
4724        lt_cv_to_host_path_cmd=func_noop_path_convert
4725        ;;
4726      * ) # otherwise, assume *nix
4727        lt_cv_to_host_path_cmd=func_nix_to_cygwin_path_convert
4728        ;;
4729    esac
4730    ;;
4731  * ) # unhandled hosts (and "normal" native builds)
4732    lt_cv_to_host_path_cmd=func_noop_path_convert
4733    ;;
4734esac
4735
4736fi
4737
4738to_host_path_cmd=$lt_cv_to_host_path_cmd
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_path_cmd" >&5
4740$as_echo "$lt_cv_to_host_path_cmd" >&6; }
4741
4742
4743
4744
4745
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4747$as_echo_n "checking for $LD option to reload object files... " >&6; }
4748if test "${lt_cv_ld_reload_flag+set}" = set; then :
4749  $as_echo_n "(cached) " >&6
4750else
4751  lt_cv_ld_reload_flag='-r'
4752fi
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4754$as_echo "$lt_cv_ld_reload_flag" >&6; }
4755reload_flag=$lt_cv_ld_reload_flag
4756case $reload_flag in
4757"" | " "*) ;;
4758*) reload_flag=" $reload_flag" ;;
4759esac
4760reload_cmds='$LD$reload_flag -o $output$reload_objs'
4761case $host_os in
4762  darwin*)
4763    if test "$GCC" = yes; then
4764      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4765    else
4766      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4767    fi
4768    ;;
4769esac
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779if test -n "$ac_tool_prefix"; then
4780  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4781set dummy ${ac_tool_prefix}objdump; ac_word=$2
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783$as_echo_n "checking for $ac_word... " >&6; }
4784if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4785  $as_echo_n "(cached) " >&6
4786else
4787  if test -n "$OBJDUMP"; then
4788  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793  IFS=$as_save_IFS
4794  test -z "$as_dir" && as_dir=.
4795    for ac_exec_ext in '' $ac_executable_extensions; do
4796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799    break 2
4800  fi
4801done
4802  done
4803IFS=$as_save_IFS
4804
4805fi
4806fi
4807OBJDUMP=$ac_cv_prog_OBJDUMP
4808if test -n "$OBJDUMP"; then
4809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4810$as_echo "$OBJDUMP" >&6; }
4811else
4812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813$as_echo "no" >&6; }
4814fi
4815
4816
4817fi
4818if test -z "$ac_cv_prog_OBJDUMP"; then
4819  ac_ct_OBJDUMP=$OBJDUMP
4820  # Extract the first word of "objdump", so it can be a program name with args.
4821set dummy objdump; ac_word=$2
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823$as_echo_n "checking for $ac_word... " >&6; }
4824if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4825  $as_echo_n "(cached) " >&6
4826else
4827  if test -n "$ac_ct_OBJDUMP"; then
4828  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4829else
4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833  IFS=$as_save_IFS
4834  test -z "$as_dir" && as_dir=.
4835    for ac_exec_ext in '' $ac_executable_extensions; do
4836  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839    break 2
4840  fi
4841done
4842  done
4843IFS=$as_save_IFS
4844
4845fi
4846fi
4847ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4848if test -n "$ac_ct_OBJDUMP"; then
4849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4850$as_echo "$ac_ct_OBJDUMP" >&6; }
4851else
4852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853$as_echo "no" >&6; }
4854fi
4855
4856  if test "x$ac_ct_OBJDUMP" = x; then
4857    OBJDUMP="false"
4858  else
4859    case $cross_compiling:$ac_tool_warned in
4860yes:)
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4863ac_tool_warned=yes ;;
4864esac
4865    OBJDUMP=$ac_ct_OBJDUMP
4866  fi
4867else
4868  OBJDUMP="$ac_cv_prog_OBJDUMP"
4869fi
4870
4871test -z "$OBJDUMP" && OBJDUMP=objdump
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4882$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4883if test "${lt_cv_deplibs_check_method+set}" = set; then :
4884  $as_echo_n "(cached) " >&6
4885else
4886  lt_cv_file_magic_cmd='$MAGIC_CMD'
4887lt_cv_file_magic_test_file=
4888lt_cv_deplibs_check_method='unknown'
4889# Need to set the preceding variable on all platforms that support
4890# interlibrary dependencies.
4891# 'none' -- dependencies not supported.
4892# `unknown' -- same as none, but documents that we really don't know.
4893# 'pass_all' -- all dependencies passed with no checks.
4894# 'test_compile' -- check by making test program.
4895# 'file_magic [[regex]]' -- check by looking for files in library path
4896# which responds to the $file_magic_cmd with a given extended regex.
4897# If you have `file' or equivalent on your system and you're not sure
4898# whether `pass_all' will *always* work, you probably want this one.
4899
4900case $host_os in
4901aix[4-9]*)
4902  lt_cv_deplibs_check_method=pass_all
4903  ;;
4904
4905beos*)
4906  lt_cv_deplibs_check_method=pass_all
4907  ;;
4908
4909bsdi[45]*)
4910  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4911  lt_cv_file_magic_cmd='/usr/bin/file -L'
4912  lt_cv_file_magic_test_file=/shlib/libc.so
4913  ;;
4914
4915cygwin*)
4916  # func_win32_libid is a shell function defined in ltmain.sh
4917  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4918  lt_cv_file_magic_cmd='func_win32_libid'
4919  ;;
4920
4921mingw* | pw32*)
4922  # Base MSYS/MinGW do not provide the 'file' command needed by
4923  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4924  # unless we find 'file', for example because we are cross-compiling.
4925  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4926  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4927    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4928    lt_cv_file_magic_cmd='func_win32_libid'
4929  else
4930    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4931    lt_cv_file_magic_cmd='$OBJDUMP -f'
4932  fi
4933  ;;
4934
4935cegcc*)
4936  # use the weaker test based on 'objdump'. See mingw*.
4937  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4938  lt_cv_file_magic_cmd='$OBJDUMP -f'
4939  ;;
4940
4941darwin* | rhapsody*)
4942  lt_cv_deplibs_check_method=pass_all
4943  ;;
4944
4945freebsd* | dragonfly*)
4946  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4947    case $host_cpu in
4948    i*86 )
4949      # Not sure whether the presence of OpenBSD here was a mistake.
4950      # Let's accept both of them until this is cleared up.
4951      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4952      lt_cv_file_magic_cmd=/usr/bin/file
4953      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4954      ;;
4955    esac
4956  else
4957    lt_cv_deplibs_check_method=pass_all
4958  fi
4959  ;;
4960
4961gnu*)
4962  lt_cv_deplibs_check_method=pass_all
4963  ;;
4964
4965haiku*)
4966  lt_cv_deplibs_check_method=pass_all
4967  ;;
4968
4969hpux10.20* | hpux11*)
4970  lt_cv_file_magic_cmd=/usr/bin/file
4971  case $host_cpu in
4972  ia64*)
4973    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4974    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4975    ;;
4976  hppa*64*)
4977    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]'
4978    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4979    ;;
4980  *)
4981    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4982    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4983    ;;
4984  esac
4985  ;;
4986
4987interix[3-9]*)
4988  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4989  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4990  ;;
4991
4992irix5* | irix6* | nonstopux*)
4993  case $LD in
4994  *-32|*"-32 ") libmagic=32-bit;;
4995  *-n32|*"-n32 ") libmagic=N32;;
4996  *-64|*"-64 ") libmagic=64-bit;;
4997  *) libmagic=never-match;;
4998  esac
4999  lt_cv_deplibs_check_method=pass_all
5000  ;;
5001
5002# This must be Linux ELF.
5003linux* | k*bsd*-gnu | kopensolaris*-gnu)
5004  lt_cv_deplibs_check_method=pass_all
5005  ;;
5006
5007netbsd*)
5008  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5009    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5010  else
5011    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5012  fi
5013  ;;
5014
5015newos6*)
5016  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5017  lt_cv_file_magic_cmd=/usr/bin/file
5018  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5019  ;;
5020
5021*nto* | *qnx*)
5022  lt_cv_deplibs_check_method=pass_all
5023  ;;
5024
5025openbsd*)
5026  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5027    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5028  else
5029    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5030  fi
5031  ;;
5032
5033osf3* | osf4* | osf5*)
5034  lt_cv_deplibs_check_method=pass_all
5035  ;;
5036
5037rdos*)
5038  lt_cv_deplibs_check_method=pass_all
5039  ;;
5040
5041solaris*)
5042  lt_cv_deplibs_check_method=pass_all
5043  ;;
5044
5045sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5046  lt_cv_deplibs_check_method=pass_all
5047  ;;
5048
5049sysv4 | sysv4.3*)
5050  case $host_vendor in
5051  motorola)
5052    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]'
5053    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5054    ;;
5055  ncr)
5056    lt_cv_deplibs_check_method=pass_all
5057    ;;
5058  sequent)
5059    lt_cv_file_magic_cmd='/bin/file'
5060    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5061    ;;
5062  sni)
5063    lt_cv_file_magic_cmd='/bin/file'
5064    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5065    lt_cv_file_magic_test_file=/lib/libc.so
5066    ;;
5067  siemens)
5068    lt_cv_deplibs_check_method=pass_all
5069    ;;
5070  pc)
5071    lt_cv_deplibs_check_method=pass_all
5072    ;;
5073  esac
5074  ;;
5075
5076tpf*)
5077  lt_cv_deplibs_check_method=pass_all
5078  ;;
5079esac
5080
5081fi
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5083$as_echo "$lt_cv_deplibs_check_method" >&6; }
5084file_magic_cmd=$lt_cv_file_magic_cmd
5085deplibs_check_method=$lt_cv_deplibs_check_method
5086test -z "$deplibs_check_method" && deplibs_check_method=unknown
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099if test -n "$ac_tool_prefix"; then
5100  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5101set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103$as_echo_n "checking for $ac_word... " >&6; }
5104if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5105  $as_echo_n "(cached) " >&6
5106else
5107  if test -n "$DLLTOOL"; then
5108  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5109else
5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113  IFS=$as_save_IFS
5114  test -z "$as_dir" && as_dir=.
5115    for ac_exec_ext in '' $ac_executable_extensions; do
5116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119    break 2
5120  fi
5121done
5122  done
5123IFS=$as_save_IFS
5124
5125fi
5126fi
5127DLLTOOL=$ac_cv_prog_DLLTOOL
5128if test -n "$DLLTOOL"; then
5129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5130$as_echo "$DLLTOOL" >&6; }
5131else
5132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133$as_echo "no" >&6; }
5134fi
5135
5136
5137fi
5138if test -z "$ac_cv_prog_DLLTOOL"; then
5139  ac_ct_DLLTOOL=$DLLTOOL
5140  # Extract the first word of "dlltool", so it can be a program name with args.
5141set dummy dlltool; ac_word=$2
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143$as_echo_n "checking for $ac_word... " >&6; }
5144if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5145  $as_echo_n "(cached) " >&6
5146else
5147  if test -n "$ac_ct_DLLTOOL"; then
5148  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5149else
5150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153  IFS=$as_save_IFS
5154  test -z "$as_dir" && as_dir=.
5155    for ac_exec_ext in '' $ac_executable_extensions; do
5156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159    break 2
5160  fi
5161done
5162  done
5163IFS=$as_save_IFS
5164
5165fi
5166fi
5167ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5168if test -n "$ac_ct_DLLTOOL"; then
5169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5170$as_echo "$ac_ct_DLLTOOL" >&6; }
5171else
5172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173$as_echo "no" >&6; }
5174fi
5175
5176  if test "x$ac_ct_DLLTOOL" = x; then
5177    DLLTOOL="false"
5178  else
5179    case $cross_compiling:$ac_tool_warned in
5180yes:)
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5183ac_tool_warned=yes ;;
5184esac
5185    DLLTOOL=$ac_ct_DLLTOOL
5186  fi
5187else
5188  DLLTOOL="$ac_cv_prog_DLLTOOL"
5189fi
5190
5191test -z "$DLLTOOL" && DLLTOOL=dlltool
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5203$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5204if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
5205  $as_echo_n "(cached) " >&6
5206else
5207  lt_cv_sharedlib_from_linklib_cmd='unknown'
5208
5209case $host_os in
5210cygwin* | mingw* | pw32* | cegcc*)
5211  # two different shell functions defined in ltmain.sh
5212  # decide which to use based on capabilities of $DLLTOOL
5213  case `$DLLTOOL --help 2>&1` in
5214  *--identify-strict*)
5215    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5216    ;;
5217  *)
5218    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5219    ;;
5220  esac
5221  ;;
5222*)
5223  # fallback: assume linklib IS sharedlib
5224  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5225  ;;
5226esac
5227
5228fi
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5230$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5231sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5232test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5233
5234
5235
5236
5237
5238
5239
5240if test -n "$ac_tool_prefix"; then
5241  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5242set dummy ${ac_tool_prefix}ar; ac_word=$2
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244$as_echo_n "checking for $ac_word... " >&6; }
5245if test "${ac_cv_prog_AR+set}" = set; then :
5246  $as_echo_n "(cached) " >&6
5247else
5248  if test -n "$AR"; then
5249  ac_cv_prog_AR="$AR" # Let the user override the test.
5250else
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254  IFS=$as_save_IFS
5255  test -z "$as_dir" && as_dir=.
5256    for ac_exec_ext in '' $ac_executable_extensions; do
5257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258    ac_cv_prog_AR="${ac_tool_prefix}ar"
5259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260    break 2
5261  fi
5262done
5263  done
5264IFS=$as_save_IFS
5265
5266fi
5267fi
5268AR=$ac_cv_prog_AR
5269if test -n "$AR"; then
5270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5271$as_echo "$AR" >&6; }
5272else
5273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274$as_echo "no" >&6; }
5275fi
5276
5277
5278fi
5279if test -z "$ac_cv_prog_AR"; then
5280  ac_ct_AR=$AR
5281  # Extract the first word of "ar", so it can be a program name with args.
5282set dummy ar; ac_word=$2
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284$as_echo_n "checking for $ac_word... " >&6; }
5285if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288  if test -n "$ac_ct_AR"; then
5289  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5290else
5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294  IFS=$as_save_IFS
5295  test -z "$as_dir" && as_dir=.
5296    for ac_exec_ext in '' $ac_executable_extensions; do
5297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298    ac_cv_prog_ac_ct_AR="ar"
5299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300    break 2
5301  fi
5302done
5303  done
5304IFS=$as_save_IFS
5305
5306fi
5307fi
5308ac_ct_AR=$ac_cv_prog_ac_ct_AR
5309if test -n "$ac_ct_AR"; then
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5311$as_echo "$ac_ct_AR" >&6; }
5312else
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314$as_echo "no" >&6; }
5315fi
5316
5317  if test "x$ac_ct_AR" = x; then
5318    AR="false"
5319  else
5320    case $cross_compiling:$ac_tool_warned in
5321yes:)
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324ac_tool_warned=yes ;;
5325esac
5326    AR=$ac_ct_AR
5327  fi
5328else
5329  AR="$ac_cv_prog_AR"
5330fi
5331
5332test -z "$AR" && AR=ar
5333test -z "$AR_FLAGS" && AR_FLAGS=cru
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345if test -n "$ac_tool_prefix"; then
5346  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5347set dummy ${ac_tool_prefix}strip; ac_word=$2
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349$as_echo_n "checking for $ac_word... " >&6; }
5350if test "${ac_cv_prog_STRIP+set}" = set; then :
5351  $as_echo_n "(cached) " >&6
5352else
5353  if test -n "$STRIP"; then
5354  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5355else
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359  IFS=$as_save_IFS
5360  test -z "$as_dir" && as_dir=.
5361    for ac_exec_ext in '' $ac_executable_extensions; do
5362  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365    break 2
5366  fi
5367done
5368  done
5369IFS=$as_save_IFS
5370
5371fi
5372fi
5373STRIP=$ac_cv_prog_STRIP
5374if test -n "$STRIP"; then
5375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5376$as_echo "$STRIP" >&6; }
5377else
5378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379$as_echo "no" >&6; }
5380fi
5381
5382
5383fi
5384if test -z "$ac_cv_prog_STRIP"; then
5385  ac_ct_STRIP=$STRIP
5386  # Extract the first word of "strip", so it can be a program name with args.
5387set dummy strip; ac_word=$2
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389$as_echo_n "checking for $ac_word... " >&6; }
5390if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5391  $as_echo_n "(cached) " >&6
5392else
5393  if test -n "$ac_ct_STRIP"; then
5394  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5395else
5396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397for as_dir in $PATH
5398do
5399  IFS=$as_save_IFS
5400  test -z "$as_dir" && as_dir=.
5401    for ac_exec_ext in '' $ac_executable_extensions; do
5402  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403    ac_cv_prog_ac_ct_STRIP="strip"
5404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405    break 2
5406  fi
5407done
5408  done
5409IFS=$as_save_IFS
5410
5411fi
5412fi
5413ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5414if test -n "$ac_ct_STRIP"; then
5415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5416$as_echo "$ac_ct_STRIP" >&6; }
5417else
5418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419$as_echo "no" >&6; }
5420fi
5421
5422  if test "x$ac_ct_STRIP" = x; then
5423    STRIP=":"
5424  else
5425    case $cross_compiling:$ac_tool_warned in
5426yes:)
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429ac_tool_warned=yes ;;
5430esac
5431    STRIP=$ac_ct_STRIP
5432  fi
5433else
5434  STRIP="$ac_cv_prog_STRIP"
5435fi
5436
5437test -z "$STRIP" && STRIP=:
5438
5439
5440
5441
5442
5443
5444if test -n "$ac_tool_prefix"; then
5445  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5446set dummy ${ac_tool_prefix}ranlib; 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 test "${ac_cv_prog_RANLIB+set}" = set; then :
5450  $as_echo_n "(cached) " >&6
5451else
5452  if test -n "$RANLIB"; then
5453  ac_cv_prog_RANLIB="$RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
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
5472RANLIB=$ac_cv_prog_RANLIB
5473if test -n "$RANLIB"; then
5474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5475$as_echo "$RANLIB" >&6; }
5476else
5477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478$as_echo "no" >&6; }
5479fi
5480
5481
5482fi
5483if test -z "$ac_cv_prog_RANLIB"; then
5484  ac_ct_RANLIB=$RANLIB
5485  # Extract the first word of "ranlib", so it can be a program name with args.
5486set dummy ranlib; ac_word=$2
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488$as_echo_n "checking for $ac_word... " >&6; }
5489if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492  if test -n "$ac_ct_RANLIB"; then
5493  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5494else
5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH
5497do
5498  IFS=$as_save_IFS
5499  test -z "$as_dir" && as_dir=.
5500    for ac_exec_ext in '' $ac_executable_extensions; do
5501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502    ac_cv_prog_ac_ct_RANLIB="ranlib"
5503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504    break 2
5505  fi
5506done
5507  done
5508IFS=$as_save_IFS
5509
5510fi
5511fi
5512ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5513if test -n "$ac_ct_RANLIB"; then
5514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5515$as_echo "$ac_ct_RANLIB" >&6; }
5516else
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518$as_echo "no" >&6; }
5519fi
5520
5521  if test "x$ac_ct_RANLIB" = x; then
5522    RANLIB=":"
5523  else
5524    case $cross_compiling:$ac_tool_warned in
5525yes:)
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528ac_tool_warned=yes ;;
5529esac
5530    RANLIB=$ac_ct_RANLIB
5531  fi
5532else
5533  RANLIB="$ac_cv_prog_RANLIB"
5534fi
5535
5536test -z "$RANLIB" && RANLIB=:
5537
5538
5539
5540
5541
5542
5543# Determine commands to create old-style static archives.
5544old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5545old_postinstall_cmds='chmod 644 $oldlib'
5546old_postuninstall_cmds=
5547
5548if test -n "$RANLIB"; then
5549  case $host_os in
5550  openbsd*)
5551    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5552    ;;
5553  *)
5554    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5555    ;;
5556  esac
5557  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5558fi
5559
5560case $host_os in
5561  darwin*)
5562    lock_old_archive_extraction=yes ;;
5563  *)
5564    lock_old_archive_extraction=no ;;
5565esac
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605# If no C compiler was specified, use CC.
5606LTCC=${LTCC-"$CC"}
5607
5608# If no C compiler flags were specified, use CFLAGS.
5609LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5610
5611# Allow CC to be a program name with arguments.
5612compiler=$CC
5613
5614
5615# Check for command to grab the raw symbol name followed by C symbol from nm.
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5617$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5618if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5619  $as_echo_n "(cached) " >&6
5620else
5621
5622# These are sane defaults that work on at least a few old systems.
5623# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5624
5625# Character class describing NM global symbol codes.
5626symcode='[BCDEGRST]'
5627
5628# Regexp to match symbols that can be accessed directly from C.
5629sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5630
5631# Define system-specific variables.
5632case $host_os in
5633aix*)
5634  symcode='[BCDT]'
5635  ;;
5636cygwin* | mingw* | pw32* | cegcc*)
5637  symcode='[ABCDGISTW]'
5638  ;;
5639hpux*)
5640  if test "$host_cpu" = ia64; then
5641    symcode='[ABCDEGRST]'
5642  fi
5643  ;;
5644irix* | nonstopux*)
5645  symcode='[BCDEGRST]'
5646  ;;
5647osf*)
5648  symcode='[BCDEGQRST]'
5649  ;;
5650solaris*)
5651  symcode='[BDRT]'
5652  ;;
5653sco3.2v5*)
5654  symcode='[DT]'
5655  ;;
5656sysv4.2uw2*)
5657  symcode='[DT]'
5658  ;;
5659sysv5* | sco5v6* | unixware* | OpenUNIX*)
5660  symcode='[ABDT]'
5661  ;;
5662sysv4)
5663  symcode='[DFNSTU]'
5664  ;;
5665esac
5666
5667# If we're using GNU nm, then use its standard symbol codes.
5668case `$NM -V 2>&1` in
5669*GNU* | *'with BFD'*)
5670  symcode='[ABCDGIRSTW]' ;;
5671esac
5672
5673# Transform an extracted symbol line into a proper C declaration.
5674# Some systems (esp. on ia64) link data and code symbols differently,
5675# so use this general approach.
5676lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5677
5678# Transform an extracted symbol line into symbol name and symbol address
5679lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5680lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5681
5682# Handle CRLF in mingw tool chain
5683opt_cr=
5684case $build_os in
5685mingw*)
5686  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5687  ;;
5688esac
5689
5690# Try without a prefix underscore, then with it.
5691for ac_symprfx in "" "_"; do
5692
5693  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5694  symxfrm="\\1 $ac_symprfx\\2 \\2"
5695
5696  # Write the raw and C identifiers.
5697  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5698    # Fake it for dumpbin and say T for any non-static function
5699    # and D for any global variable.
5700    # Also find C++ and __fastcall symbols from MSVC++,
5701    # which start with @ or ?.
5702    lt_cv_sys_global_symbol_pipe="$AWK '"\
5703"     {last_section=section; section=\$ 3};"\
5704"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5705"     \$ 0!~/External *\|/{next};"\
5706"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5707"     {if(hide[section]) next};"\
5708"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5709"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5710"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5711"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5712"     ' prfx=^$ac_symprfx"
5713  else
5714    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5715  fi
5716
5717  # Check to see that the pipe works correctly.
5718  pipe_works=no
5719
5720  rm -f conftest*
5721  cat > conftest.$ac_ext <<_LT_EOF
5722#ifdef __cplusplus
5723extern "C" {
5724#endif
5725char nm_test_var;
5726void nm_test_func(void);
5727void nm_test_func(void){}
5728#ifdef __cplusplus
5729}
5730#endif
5731int main(){nm_test_var='a';nm_test_func();return(0);}
5732_LT_EOF
5733
5734  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5735  (eval $ac_compile) 2>&5
5736  ac_status=$?
5737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5738  test $ac_status = 0; }; then
5739    # Now try to grab the symbols.
5740    nlist=conftest.nm
5741    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5742  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5743  ac_status=$?
5744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5745  test $ac_status = 0; } && test -s "$nlist"; then
5746      # Try sorting and uniquifying the output.
5747      if sort "$nlist" | uniq > "$nlist"T; then
5748        mv -f "$nlist"T "$nlist"
5749      else
5750        rm -f "$nlist"T
5751      fi
5752
5753      # Make sure that we snagged all the symbols we need.
5754      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5755        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5756          cat <<_LT_EOF > conftest.$ac_ext
5757#ifdef __cplusplus
5758extern "C" {
5759#endif
5760
5761_LT_EOF
5762          # Now generate the symbol file.
5763          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5764
5765          cat <<_LT_EOF >> conftest.$ac_ext
5766
5767/* The mapping between symbol names and symbols.  */
5768const struct {
5769  const char *name;
5770  void       *address;
5771}
5772lt__PROGRAM__LTX_preloaded_symbols[] =
5773{
5774  { "@PROGRAM@", (void *) 0 },
5775_LT_EOF
5776          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5777          cat <<\_LT_EOF >> conftest.$ac_ext
5778  {0, (void *) 0}
5779};
5780
5781/* This works around a problem in FreeBSD linker */
5782#ifdef FREEBSD_WORKAROUND
5783static const void *lt_preloaded_setup() {
5784  return lt__PROGRAM__LTX_preloaded_symbols;
5785}
5786#endif
5787
5788#ifdef __cplusplus
5789}
5790#endif
5791_LT_EOF
5792          # Now try linking the two files.
5793          mv conftest.$ac_objext conftstm.$ac_objext
5794          lt_save_LIBS="$LIBS"
5795          lt_save_CFLAGS="$CFLAGS"
5796          LIBS="conftstm.$ac_objext"
5797          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5798          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5799  (eval $ac_link) 2>&5
5800  ac_status=$?
5801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5802  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5803            pipe_works=yes
5804          fi
5805          LIBS="$lt_save_LIBS"
5806          CFLAGS="$lt_save_CFLAGS"
5807        else
5808          echo "cannot find nm_test_func in $nlist" >&5
5809        fi
5810      else
5811        echo "cannot find nm_test_var in $nlist" >&5
5812      fi
5813    else
5814      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5815    fi
5816  else
5817    echo "$progname: failed program was:" >&5
5818    cat conftest.$ac_ext >&5
5819  fi
5820  rm -rf conftest* conftst*
5821
5822  # Do not use the global_symbol_pipe unless it works.
5823  if test "$pipe_works" = yes; then
5824    break
5825  else
5826    lt_cv_sys_global_symbol_pipe=
5827  fi
5828done
5829
5830fi
5831
5832if test -z "$lt_cv_sys_global_symbol_pipe"; then
5833  lt_cv_sys_global_symbol_to_cdecl=
5834fi
5835if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5837$as_echo "failed" >&6; }
5838else
5839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5840$as_echo "ok" >&6; }
5841fi
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865# Check whether --enable-libtool-lock was given.
5866if test "${enable_libtool_lock+set}" = set; then :
5867  enableval=$enable_libtool_lock;
5868fi
5869
5870test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5871
5872# Some flags need to be propagated to the compiler or linker for good
5873# libtool support.
5874case $host in
5875ia64-*-hpux*)
5876  # Find out which ABI we are using.
5877  echo 'int i;' > conftest.$ac_ext
5878  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5879  (eval $ac_compile) 2>&5
5880  ac_status=$?
5881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5882  test $ac_status = 0; }; then
5883    case `/usr/bin/file conftest.$ac_objext` in
5884      *ELF-32*)
5885        HPUX_IA64_MODE="32"
5886        ;;
5887      *ELF-64*)
5888        HPUX_IA64_MODE="64"
5889        ;;
5890    esac
5891  fi
5892  rm -rf conftest*
5893  ;;
5894*-*-irix6*)
5895  # Find out which ABI we are using.
5896  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5897  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5898  (eval $ac_compile) 2>&5
5899  ac_status=$?
5900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901  test $ac_status = 0; }; then
5902    if test "$lt_cv_prog_gnu_ld" = yes; then
5903      case `/usr/bin/file conftest.$ac_objext` in
5904        *32-bit*)
5905          LD="${LD-ld} -melf32bsmip"
5906          ;;
5907        *N32*)
5908          LD="${LD-ld} -melf32bmipn32"
5909          ;;
5910        *64-bit*)
5911          LD="${LD-ld} -melf64bmip"
5912        ;;
5913      esac
5914    else
5915      case `/usr/bin/file conftest.$ac_objext` in
5916        *32-bit*)
5917          LD="${LD-ld} -32"
5918          ;;
5919        *N32*)
5920          LD="${LD-ld} -n32"
5921          ;;
5922        *64-bit*)
5923          LD="${LD-ld} -64"
5924          ;;
5925      esac
5926    fi
5927  fi
5928  rm -rf conftest*
5929  ;;
5930
5931x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5932s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5933  # Find out which ABI we are using.
5934  echo 'int i;' > conftest.$ac_ext
5935  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5936  (eval $ac_compile) 2>&5
5937  ac_status=$?
5938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5939  test $ac_status = 0; }; then
5940    case `/usr/bin/file conftest.o` in
5941      *32-bit*)
5942        case $host in
5943          x86_64-*kfreebsd*-gnu)
5944            LD="${LD-ld} -m elf_i386_fbsd"
5945            ;;
5946          x86_64-*linux*)
5947            LD="${LD-ld} -m elf_i386"
5948            ;;
5949          ppc64-*linux*|powerpc64-*linux*)
5950            LD="${LD-ld} -m elf32ppclinux"
5951            ;;
5952          s390x-*linux*)
5953            LD="${LD-ld} -m elf_s390"
5954            ;;
5955          sparc64-*linux*)
5956            LD="${LD-ld} -m elf32_sparc"
5957            ;;
5958        esac
5959        ;;
5960      *64-bit*)
5961        case $host in
5962          x86_64-*kfreebsd*-gnu)
5963            LD="${LD-ld} -m elf_x86_64_fbsd"
5964            ;;
5965          x86_64-*linux*)
5966            LD="${LD-ld} -m elf_x86_64"
5967            ;;
5968          ppc*-*linux*|powerpc*-*linux*)
5969            LD="${LD-ld} -m elf64ppc"
5970            ;;
5971          s390*-*linux*|s390*-*tpf*)
5972            LD="${LD-ld} -m elf64_s390"
5973            ;;
5974          sparc*-*linux*)
5975            LD="${LD-ld} -m elf64_sparc"
5976            ;;
5977        esac
5978        ;;
5979    esac
5980  fi
5981  rm -rf conftest*
5982  ;;
5983
5984*-*-sco3.2v5*)
5985  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5986  SAVE_CFLAGS="$CFLAGS"
5987  CFLAGS="$CFLAGS -belf"
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5989$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5990if test "${lt_cv_cc_needs_belf+set}" = set; then :
5991  $as_echo_n "(cached) " >&6
5992else
5993  ac_ext=c
5994ac_cpp='$CPP $CPPFLAGS'
5995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5997ac_compiler_gnu=$ac_cv_c_compiler_gnu
5998
5999     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000/* end confdefs.h.  */
6001
6002int
6003main ()
6004{
6005
6006  ;
6007  return 0;
6008}
6009_ACEOF
6010if ac_fn_c_try_link "$LINENO"; then :
6011  lt_cv_cc_needs_belf=yes
6012else
6013  lt_cv_cc_needs_belf=no
6014fi
6015rm -f core conftest.err conftest.$ac_objext \
6016    conftest$ac_exeext conftest.$ac_ext
6017     ac_ext=c
6018ac_cpp='$CPP $CPPFLAGS'
6019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021ac_compiler_gnu=$ac_cv_c_compiler_gnu
6022
6023fi
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6025$as_echo "$lt_cv_cc_needs_belf" >&6; }
6026  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6027    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6028    CFLAGS="$SAVE_CFLAGS"
6029  fi
6030  ;;
6031sparc*-*solaris*)
6032  # Find out which ABI we are using.
6033  echo 'int i;' > conftest.$ac_ext
6034  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6035  (eval $ac_compile) 2>&5
6036  ac_status=$?
6037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6038  test $ac_status = 0; }; then
6039    case `/usr/bin/file conftest.o` in
6040    *64-bit*)
6041      case $lt_cv_prog_gnu_ld in
6042      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6043      *)
6044        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6045          LD="${LD-ld} -64"
6046        fi
6047        ;;
6048      esac
6049      ;;
6050    esac
6051  fi
6052  rm -rf conftest*
6053  ;;
6054esac
6055
6056need_locks="$enable_libtool_lock"
6057
6058
6059  case $host_os in
6060    rhapsody* | darwin*)
6061    if test -n "$ac_tool_prefix"; then
6062  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6063set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065$as_echo_n "checking for $ac_word... " >&6; }
6066if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6067  $as_echo_n "(cached) " >&6
6068else
6069  if test -n "$DSYMUTIL"; then
6070  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6071else
6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075  IFS=$as_save_IFS
6076  test -z "$as_dir" && as_dir=.
6077    for ac_exec_ext in '' $ac_executable_extensions; do
6078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081    break 2
6082  fi
6083done
6084  done
6085IFS=$as_save_IFS
6086
6087fi
6088fi
6089DSYMUTIL=$ac_cv_prog_DSYMUTIL
6090if test -n "$DSYMUTIL"; then
6091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6092$as_echo "$DSYMUTIL" >&6; }
6093else
6094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095$as_echo "no" >&6; }
6096fi
6097
6098
6099fi
6100if test -z "$ac_cv_prog_DSYMUTIL"; then
6101  ac_ct_DSYMUTIL=$DSYMUTIL
6102  # Extract the first word of "dsymutil", so it can be a program name with args.
6103set dummy dsymutil; ac_word=$2
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105$as_echo_n "checking for $ac_word... " >&6; }
6106if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6107  $as_echo_n "(cached) " >&6
6108else
6109  if test -n "$ac_ct_DSYMUTIL"; then
6110  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6111else
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115  IFS=$as_save_IFS
6116  test -z "$as_dir" && as_dir=.
6117    for ac_exec_ext in '' $ac_executable_extensions; do
6118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121    break 2
6122  fi
6123done
6124  done
6125IFS=$as_save_IFS
6126
6127fi
6128fi
6129ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6130if test -n "$ac_ct_DSYMUTIL"; then
6131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6132$as_echo "$ac_ct_DSYMUTIL" >&6; }
6133else
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135$as_echo "no" >&6; }
6136fi
6137
6138  if test "x$ac_ct_DSYMUTIL" = x; then
6139    DSYMUTIL=":"
6140  else
6141    case $cross_compiling:$ac_tool_warned in
6142yes:)
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6145ac_tool_warned=yes ;;
6146esac
6147    DSYMUTIL=$ac_ct_DSYMUTIL
6148  fi
6149else
6150  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6151fi
6152
6153    if test -n "$ac_tool_prefix"; then
6154  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6155set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157$as_echo_n "checking for $ac_word... " >&6; }
6158if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6159  $as_echo_n "(cached) " >&6
6160else
6161  if test -n "$NMEDIT"; then
6162  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6163else
6164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165for as_dir in $PATH
6166do
6167  IFS=$as_save_IFS
6168  test -z "$as_dir" && as_dir=.
6169    for ac_exec_ext in '' $ac_executable_extensions; do
6170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173    break 2
6174  fi
6175done
6176  done
6177IFS=$as_save_IFS
6178
6179fi
6180fi
6181NMEDIT=$ac_cv_prog_NMEDIT
6182if test -n "$NMEDIT"; then
6183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6184$as_echo "$NMEDIT" >&6; }
6185else
6186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187$as_echo "no" >&6; }
6188fi
6189
6190
6191fi
6192if test -z "$ac_cv_prog_NMEDIT"; then
6193  ac_ct_NMEDIT=$NMEDIT
6194  # Extract the first word of "nmedit", so it can be a program name with args.
6195set dummy nmedit; ac_word=$2
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197$as_echo_n "checking for $ac_word... " >&6; }
6198if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  if test -n "$ac_ct_NMEDIT"; then
6202  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6203else
6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205for as_dir in $PATH
6206do
6207  IFS=$as_save_IFS
6208  test -z "$as_dir" && as_dir=.
6209    for ac_exec_ext in '' $ac_executable_extensions; do
6210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213    break 2
6214  fi
6215done
6216  done
6217IFS=$as_save_IFS
6218
6219fi
6220fi
6221ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6222if test -n "$ac_ct_NMEDIT"; then
6223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6224$as_echo "$ac_ct_NMEDIT" >&6; }
6225else
6226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227$as_echo "no" >&6; }
6228fi
6229
6230  if test "x$ac_ct_NMEDIT" = x; then
6231    NMEDIT=":"
6232  else
6233    case $cross_compiling:$ac_tool_warned in
6234yes:)
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6237ac_tool_warned=yes ;;
6238esac
6239    NMEDIT=$ac_ct_NMEDIT
6240  fi
6241else
6242  NMEDIT="$ac_cv_prog_NMEDIT"
6243fi
6244
6245    if test -n "$ac_tool_prefix"; then
6246  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6247set dummy ${ac_tool_prefix}lipo; ac_word=$2
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249$as_echo_n "checking for $ac_word... " >&6; }
6250if test "${ac_cv_prog_LIPO+set}" = set; then :
6251  $as_echo_n "(cached) " >&6
6252else
6253  if test -n "$LIPO"; then
6254  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259  IFS=$as_save_IFS
6260  test -z "$as_dir" && as_dir=.
6261    for ac_exec_ext in '' $ac_executable_extensions; do
6262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265    break 2
6266  fi
6267done
6268  done
6269IFS=$as_save_IFS
6270
6271fi
6272fi
6273LIPO=$ac_cv_prog_LIPO
6274if test -n "$LIPO"; then
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6276$as_echo "$LIPO" >&6; }
6277else
6278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279$as_echo "no" >&6; }
6280fi
6281
6282
6283fi
6284if test -z "$ac_cv_prog_LIPO"; then
6285  ac_ct_LIPO=$LIPO
6286  # Extract the first word of "lipo", so it can be a program name with args.
6287set dummy lipo; ac_word=$2
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289$as_echo_n "checking for $ac_word... " >&6; }
6290if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  if test -n "$ac_ct_LIPO"; then
6294  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6295else
6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297for as_dir in $PATH
6298do
6299  IFS=$as_save_IFS
6300  test -z "$as_dir" && as_dir=.
6301    for ac_exec_ext in '' $ac_executable_extensions; do
6302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303    ac_cv_prog_ac_ct_LIPO="lipo"
6304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305    break 2
6306  fi
6307done
6308  done
6309IFS=$as_save_IFS
6310
6311fi
6312fi
6313ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6314if test -n "$ac_ct_LIPO"; then
6315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6316$as_echo "$ac_ct_LIPO" >&6; }
6317else
6318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319$as_echo "no" >&6; }
6320fi
6321
6322  if test "x$ac_ct_LIPO" = x; then
6323    LIPO=":"
6324  else
6325    case $cross_compiling:$ac_tool_warned in
6326yes:)
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329ac_tool_warned=yes ;;
6330esac
6331    LIPO=$ac_ct_LIPO
6332  fi
6333else
6334  LIPO="$ac_cv_prog_LIPO"
6335fi
6336
6337    if test -n "$ac_tool_prefix"; then
6338  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6339set dummy ${ac_tool_prefix}otool; ac_word=$2
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341$as_echo_n "checking for $ac_word... " >&6; }
6342if test "${ac_cv_prog_OTOOL+set}" = set; then :
6343  $as_echo_n "(cached) " >&6
6344else
6345  if test -n "$OTOOL"; then
6346  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6347else
6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH
6350do
6351  IFS=$as_save_IFS
6352  test -z "$as_dir" && as_dir=.
6353    for ac_exec_ext in '' $ac_executable_extensions; do
6354  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357    break 2
6358  fi
6359done
6360  done
6361IFS=$as_save_IFS
6362
6363fi
6364fi
6365OTOOL=$ac_cv_prog_OTOOL
6366if test -n "$OTOOL"; then
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6368$as_echo "$OTOOL" >&6; }
6369else
6370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371$as_echo "no" >&6; }
6372fi
6373
6374
6375fi
6376if test -z "$ac_cv_prog_OTOOL"; then
6377  ac_ct_OTOOL=$OTOOL
6378  # Extract the first word of "otool", so it can be a program name with args.
6379set dummy otool; ac_word=$2
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381$as_echo_n "checking for $ac_word... " >&6; }
6382if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  if test -n "$ac_ct_OTOOL"; then
6386  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6387else
6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391  IFS=$as_save_IFS
6392  test -z "$as_dir" && as_dir=.
6393    for ac_exec_ext in '' $ac_executable_extensions; do
6394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395    ac_cv_prog_ac_ct_OTOOL="otool"
6396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397    break 2
6398  fi
6399done
6400  done
6401IFS=$as_save_IFS
6402
6403fi
6404fi
6405ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6406if test -n "$ac_ct_OTOOL"; then
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6408$as_echo "$ac_ct_OTOOL" >&6; }
6409else
6410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411$as_echo "no" >&6; }
6412fi
6413
6414  if test "x$ac_ct_OTOOL" = x; then
6415    OTOOL=":"
6416  else
6417    case $cross_compiling:$ac_tool_warned in
6418yes:)
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421ac_tool_warned=yes ;;
6422esac
6423    OTOOL=$ac_ct_OTOOL
6424  fi
6425else
6426  OTOOL="$ac_cv_prog_OTOOL"
6427fi
6428
6429    if test -n "$ac_tool_prefix"; then
6430  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6431set dummy ${ac_tool_prefix}otool64; ac_word=$2
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433$as_echo_n "checking for $ac_word... " >&6; }
6434if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6435  $as_echo_n "(cached) " >&6
6436else
6437  if test -n "$OTOOL64"; then
6438  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6439else
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443  IFS=$as_save_IFS
6444  test -z "$as_dir" && as_dir=.
6445    for ac_exec_ext in '' $ac_executable_extensions; do
6446  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449    break 2
6450  fi
6451done
6452  done
6453IFS=$as_save_IFS
6454
6455fi
6456fi
6457OTOOL64=$ac_cv_prog_OTOOL64
6458if test -n "$OTOOL64"; then
6459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6460$as_echo "$OTOOL64" >&6; }
6461else
6462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463$as_echo "no" >&6; }
6464fi
6465
6466
6467fi
6468if test -z "$ac_cv_prog_OTOOL64"; then
6469  ac_ct_OTOOL64=$OTOOL64
6470  # Extract the first word of "otool64", so it can be a program name with args.
6471set dummy otool64; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
6474if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  if test -n "$ac_ct_OTOOL64"; then
6478  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487    ac_cv_prog_ac_ct_OTOOL64="otool64"
6488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492  done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6498if test -n "$ac_ct_OTOOL64"; then
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6500$as_echo "$ac_ct_OTOOL64" >&6; }
6501else
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506  if test "x$ac_ct_OTOOL64" = x; then
6507    OTOOL64=":"
6508  else
6509    case $cross_compiling:$ac_tool_warned in
6510yes:)
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513ac_tool_warned=yes ;;
6514esac
6515    OTOOL64=$ac_ct_OTOOL64
6516  fi
6517else
6518  OTOOL64="$ac_cv_prog_OTOOL64"
6519fi
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6548$as_echo_n "checking for -single_module linker flag... " >&6; }
6549if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6550  $as_echo_n "(cached) " >&6
6551else
6552  lt_cv_apple_cc_single_mod=no
6553      if test -z "${LT_MULTI_MODULE}"; then
6554        # By default we will add the -single_module flag. You can override
6555        # by either setting the environment variable LT_MULTI_MODULE
6556        # non-empty at configure time, or by adding -multi_module to the
6557        # link flags.
6558        rm -rf libconftest.dylib*
6559        echo "int foo(void){return 1;}" > conftest.c
6560        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6561-dynamiclib -Wl,-single_module conftest.c" >&5
6562        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6563          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6564        _lt_result=$?
6565        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6566          lt_cv_apple_cc_single_mod=yes
6567        else
6568          cat conftest.err >&5
6569        fi
6570        rm -rf libconftest.dylib*
6571        rm -f conftest.*
6572      fi
6573fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6575$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6577$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6578if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6579  $as_echo_n "(cached) " >&6
6580else
6581  lt_cv_ld_exported_symbols_list=no
6582      save_LDFLAGS=$LDFLAGS
6583      echo "_main" > conftest.sym
6584      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6585      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586/* end confdefs.h.  */
6587
6588int
6589main ()
6590{
6591
6592  ;
6593  return 0;
6594}
6595_ACEOF
6596if ac_fn_c_try_link "$LINENO"; then :
6597  lt_cv_ld_exported_symbols_list=yes
6598else
6599  lt_cv_ld_exported_symbols_list=no
6600fi
6601rm -f core conftest.err conftest.$ac_objext \
6602    conftest$ac_exeext conftest.$ac_ext
6603        LDFLAGS="$save_LDFLAGS"
6604
6605fi
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6607$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6608    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6609$as_echo_n "checking for -force_load linker flag... " >&6; }
6610if test "${lt_cv_ld_force_load+set}" = set; then :
6611  $as_echo_n "(cached) " >&6
6612else
6613  lt_cv_ld_force_load=no
6614      cat > conftest.c << _LT_EOF
6615int forced_loaded() { return 2;}
6616_LT_EOF
6617      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6618      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6619      echo "$AR cru libconftest.a conftest.o" >&5
6620      $AR cru libconftest.a conftest.o 2>&5
6621      cat > conftest.c << _LT_EOF
6622int main() { return 0;}
6623_LT_EOF
6624      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6625      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6626      _lt_result=$?
6627      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6628        lt_cv_ld_force_load=yes
6629      else
6630        cat conftest.err >&5
6631      fi
6632        rm -f conftest.err libconftest.a conftest conftest.c
6633        rm -rf conftest.dSYM
6634
6635fi
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6637$as_echo "$lt_cv_ld_force_load" >&6; }
6638    case $host_os in
6639    rhapsody* | darwin1.[012])
6640      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6641    darwin1.*)
6642      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6643    darwin*) # darwin 5.x on
6644      # if running on 10.5 or later, the deployment target defaults
6645      # to the OS version, if on x86, and 10.4, the deployment
6646      # target defaults to 10.4. Don't you love it?
6647      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6648        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6649          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6650        10.[012]*)
6651          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6652        10.*)
6653          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6654      esac
6655    ;;
6656  esac
6657    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6658      _lt_dar_single_mod='$single_module'
6659    fi
6660    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6661      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6662    else
6663      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6664    fi
6665    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6666      _lt_dsymutil='~$DSYMUTIL $lib || :'
6667    else
6668      _lt_dsymutil=
6669    fi
6670    ;;
6671  esac
6672
6673ac_ext=c
6674ac_cpp='$CPP $CPPFLAGS'
6675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6677ac_compiler_gnu=$ac_cv_c_compiler_gnu
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6679$as_echo_n "checking how to run the C preprocessor... " >&6; }
6680# On Suns, sometimes $CPP names a directory.
6681if test -n "$CPP" && test -d "$CPP"; then
6682  CPP=
6683fi
6684if test -z "$CPP"; then
6685  if test "${ac_cv_prog_CPP+set}" = set; then :
6686  $as_echo_n "(cached) " >&6
6687else
6688      # Double quotes because CPP needs to be expanded
6689    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6690    do
6691      ac_preproc_ok=false
6692for ac_c_preproc_warn_flag in '' yes
6693do
6694  # Use a header file that comes with gcc, so configuring glibc
6695  # with a fresh cross-compiler works.
6696  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6697  # <limits.h> exists even on freestanding compilers.
6698  # On the NeXT, cc -E runs the code through the compiler's parser,
6699  # not just through cpp. "Syntax error" is here to catch this case.
6700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702#ifdef __STDC__
6703# include <limits.h>
6704#else
6705# include <assert.h>
6706#endif
6707                     Syntax error
6708_ACEOF
6709if ac_fn_c_try_cpp "$LINENO"; then :
6710
6711else
6712  # Broken: fails on valid input.
6713continue
6714fi
6715rm -f conftest.err conftest.$ac_ext
6716
6717  # OK, works on sane cases.  Now check whether nonexistent headers
6718  # can be detected and how.
6719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h.  */
6721#include <ac_nonexistent.h>
6722_ACEOF
6723if ac_fn_c_try_cpp "$LINENO"; then :
6724  # Broken: success on invalid input.
6725continue
6726else
6727  # Passes both tests.
6728ac_preproc_ok=:
6729break
6730fi
6731rm -f conftest.err conftest.$ac_ext
6732
6733done
6734# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6735rm -f conftest.err conftest.$ac_ext
6736if $ac_preproc_ok; then :
6737  break
6738fi
6739
6740    done
6741    ac_cv_prog_CPP=$CPP
6742
6743fi
6744  CPP=$ac_cv_prog_CPP
6745else
6746  ac_cv_prog_CPP=$CPP
6747fi
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6749$as_echo "$CPP" >&6; }
6750ac_preproc_ok=false
6751for ac_c_preproc_warn_flag in '' yes
6752do
6753  # Use a header file that comes with gcc, so configuring glibc
6754  # with a fresh cross-compiler works.
6755  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6756  # <limits.h> exists even on freestanding compilers.
6757  # On the NeXT, cc -E runs the code through the compiler's parser,
6758  # not just through cpp. "Syntax error" is here to catch this case.
6759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760/* end confdefs.h.  */
6761#ifdef __STDC__
6762# include <limits.h>
6763#else
6764# include <assert.h>
6765#endif
6766                     Syntax error
6767_ACEOF
6768if ac_fn_c_try_cpp "$LINENO"; then :
6769
6770else
6771  # Broken: fails on valid input.
6772continue
6773fi
6774rm -f conftest.err conftest.$ac_ext
6775
6776  # OK, works on sane cases.  Now check whether nonexistent headers
6777  # can be detected and how.
6778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779/* end confdefs.h.  */
6780#include <ac_nonexistent.h>
6781_ACEOF
6782if ac_fn_c_try_cpp "$LINENO"; then :
6783  # Broken: success on invalid input.
6784continue
6785else
6786  # Passes both tests.
6787ac_preproc_ok=:
6788break
6789fi
6790rm -f conftest.err conftest.$ac_ext
6791
6792done
6793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6794rm -f conftest.err conftest.$ac_ext
6795if $ac_preproc_ok; then :
6796
6797else
6798  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6800as_fn_error "C preprocessor \"$CPP\" fails sanity check
6801See \`config.log' for more details." "$LINENO" 5; }
6802fi
6803
6804ac_ext=c
6805ac_cpp='$CPP $CPPFLAGS'
6806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6808ac_compiler_gnu=$ac_cv_c_compiler_gnu
6809
6810
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6812$as_echo_n "checking for ANSI C header files... " >&6; }
6813if test "${ac_cv_header_stdc+set}" = set; then :
6814  $as_echo_n "(cached) " >&6
6815else
6816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817/* end confdefs.h.  */
6818#include <stdlib.h>
6819#include <stdarg.h>
6820#include <string.h>
6821#include <float.h>
6822
6823int
6824main ()
6825{
6826
6827  ;
6828  return 0;
6829}
6830_ACEOF
6831if ac_fn_c_try_compile "$LINENO"; then :
6832  ac_cv_header_stdc=yes
6833else
6834  ac_cv_header_stdc=no
6835fi
6836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837
6838if test $ac_cv_header_stdc = yes; then
6839  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841/* end confdefs.h.  */
6842#include <string.h>
6843
6844_ACEOF
6845if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846  $EGREP "memchr" >/dev/null 2>&1; then :
6847
6848else
6849  ac_cv_header_stdc=no
6850fi
6851rm -f conftest*
6852
6853fi
6854
6855if test $ac_cv_header_stdc = yes; then
6856  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858/* end confdefs.h.  */
6859#include <stdlib.h>
6860
6861_ACEOF
6862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6863  $EGREP "free" >/dev/null 2>&1; then :
6864
6865else
6866  ac_cv_header_stdc=no
6867fi
6868rm -f conftest*
6869
6870fi
6871
6872if test $ac_cv_header_stdc = yes; then
6873  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6874  if test "$cross_compiling" = yes; then :
6875  :
6876else
6877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878/* end confdefs.h.  */
6879#include <ctype.h>
6880#include <stdlib.h>
6881#if ((' ' & 0x0FF) == 0x020)
6882# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6883# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6884#else
6885# define ISLOWER(c) \
6886                   (('a' <= (c) && (c) <= 'i') \
6887                     || ('j' <= (c) && (c) <= 'r') \
6888                     || ('s' <= (c) && (c) <= 'z'))
6889# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6890#endif
6891
6892#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6893int
6894main ()
6895{
6896  int i;
6897  for (i = 0; i < 256; i++)
6898    if (XOR (islower (i), ISLOWER (i))
6899        || toupper (i) != TOUPPER (i))
6900      return 2;
6901  return 0;
6902}
6903_ACEOF
6904if ac_fn_c_try_run "$LINENO"; then :
6905
6906else
6907  ac_cv_header_stdc=no
6908fi
6909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6910  conftest.$ac_objext conftest.beam conftest.$ac_ext
6911fi
6912
6913fi
6914fi
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6916$as_echo "$ac_cv_header_stdc" >&6; }
6917if test $ac_cv_header_stdc = yes; then
6918
6919$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6920
6921fi
6922
6923# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6924for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6925                  inttypes.h stdint.h unistd.h
6926do :
6927  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6928ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6929"
6930eval as_val=\$$as_ac_Header
6931   if test "x$as_val" = x""yes; then :
6932  cat >>confdefs.h <<_ACEOF
6933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6934_ACEOF
6935
6936fi
6937
6938done
6939
6940
6941for ac_header in dlfcn.h
6942do :
6943  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6944"
6945if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6946  cat >>confdefs.h <<_ACEOF
6947#define HAVE_DLFCN_H 1
6948_ACEOF
6949
6950fi
6951
6952done
6953
6954
6955
6956
6957
6958# Set options
6959
6960
6961
6962        enable_dlopen=no
6963
6964
6965  enable_win32_dll=no
6966
6967
6968            # Check whether --enable-shared was given.
6969if test "${enable_shared+set}" = set; then :
6970  enableval=$enable_shared; p=${PACKAGE-default}
6971    case $enableval in
6972    yes) enable_shared=yes ;;
6973    no) enable_shared=no ;;
6974    *)
6975      enable_shared=no
6976      # Look at the argument we got.  We use all the common list separators.
6977      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6978      for pkg in $enableval; do
6979        IFS="$lt_save_ifs"
6980        if test "X$pkg" = "X$p"; then
6981          enable_shared=yes
6982        fi
6983      done
6984      IFS="$lt_save_ifs"
6985      ;;
6986    esac
6987else
6988  enable_shared=yes
6989fi
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999  # Check whether --enable-static was given.
7000if test "${enable_static+set}" = set; then :
7001  enableval=$enable_static; p=${PACKAGE-default}
7002    case $enableval in
7003    yes) enable_static=yes ;;
7004    no) enable_static=no ;;
7005    *)
7006     enable_static=no
7007      # Look at the argument we got.  We use all the common list separators.
7008      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7009      for pkg in $enableval; do
7010        IFS="$lt_save_ifs"
7011        if test "X$pkg" = "X$p"; then
7012          enable_static=yes
7013        fi
7014      done
7015      IFS="$lt_save_ifs"
7016      ;;
7017    esac
7018else
7019  enable_static=yes
7020fi
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031# Check whether --with-pic was given.
7032if test "${with_pic+set}" = set; then :
7033  withval=$with_pic; pic_mode="$withval"
7034else
7035  pic_mode=default
7036fi
7037
7038
7039test -z "$pic_mode" && pic_mode=default
7040
7041
7042
7043
7044
7045
7046
7047  # Check whether --enable-fast-install was given.
7048if test "${enable_fast_install+set}" = set; then :
7049  enableval=$enable_fast_install; p=${PACKAGE-default}
7050    case $enableval in
7051    yes) enable_fast_install=yes ;;
7052    no) enable_fast_install=no ;;
7053    *)
7054      enable_fast_install=no
7055      # Look at the argument we got.  We use all the common list separators.
7056      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7057      for pkg in $enableval; do
7058        IFS="$lt_save_ifs"
7059        if test "X$pkg" = "X$p"; then
7060          enable_fast_install=yes
7061        fi
7062      done
7063      IFS="$lt_save_ifs"
7064      ;;
7065    esac
7066else
7067  enable_fast_install=yes
7068fi
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080# This can be used to rebuild libtool when needed
7081LIBTOOL_DEPS="$ltmain"
7082
7083# Always use our own libtool.
7084LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111test -z "$LN_S" && LN_S="ln -s"
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126if test -n "${ZSH_VERSION+set}" ; then
7127   setopt NO_GLOB_SUBST
7128fi
7129
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7131$as_echo_n "checking for objdir... " >&6; }
7132if test "${lt_cv_objdir+set}" = set; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  rm -f .libs 2>/dev/null
7136mkdir .libs 2>/dev/null
7137if test -d .libs; then
7138  lt_cv_objdir=.libs
7139else
7140  # MS-DOS does not allow filenames that begin with a dot.
7141  lt_cv_objdir=_libs
7142fi
7143rmdir .libs 2>/dev/null
7144fi
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7146$as_echo "$lt_cv_objdir" >&6; }
7147objdir=$lt_cv_objdir
7148
7149
7150
7151
7152
7153cat >>confdefs.h <<_ACEOF
7154#define LT_OBJDIR "$lt_cv_objdir/"
7155_ACEOF
7156
7157
7158
7159
7160case $host_os in
7161aix3*)
7162  # AIX sometimes has problems with the GCC collect2 program.  For some
7163  # reason, if we set the COLLECT_NAMES environment variable, the problems
7164  # vanish in a puff of smoke.
7165  if test "X${COLLECT_NAMES+set}" != Xset; then
7166    COLLECT_NAMES=
7167    export COLLECT_NAMES
7168  fi
7169  ;;
7170esac
7171
7172# Global variables:
7173ofile=libtool
7174can_build_shared=yes
7175
7176# All known linkers require a `.a' archive for static linking (except MSVC,
7177# which needs '.lib').
7178libext=a
7179
7180with_gnu_ld="$lt_cv_prog_gnu_ld"
7181
7182old_CC="$CC"
7183old_CFLAGS="$CFLAGS"
7184
7185# Set sane defaults for various variables
7186test -z "$CC" && CC=cc
7187test -z "$LTCC" && LTCC=$CC
7188test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7189test -z "$LD" && LD=ld
7190test -z "$ac_objext" && ac_objext=o
7191
7192for cc_temp in $compiler""; do
7193  case $cc_temp in
7194    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7195    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7196    \-*) ;;
7197    *) break;;
7198  esac
7199done
7200cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7201
7202
7203# Only perform the check for file, if the check method requires it
7204test -z "$MAGIC_CMD" && MAGIC_CMD=file
7205case $deplibs_check_method in
7206file_magic*)
7207  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7208    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7209$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7210if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  case $MAGIC_CMD in
7214[\\/*] |  ?:[\\/]*)
7215  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7216  ;;
7217*)
7218  lt_save_MAGIC_CMD="$MAGIC_CMD"
7219  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7220  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7221  for ac_dir in $ac_dummy; do
7222    IFS="$lt_save_ifs"
7223    test -z "$ac_dir" && ac_dir=.
7224    if test -f $ac_dir/${ac_tool_prefix}file; then
7225      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7226      if test -n "$file_magic_test_file"; then
7227        case $deplibs_check_method in
7228        "file_magic "*)
7229          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7230          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7231          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7232            $EGREP "$file_magic_regex" > /dev/null; then
7233            :
7234          else
7235            cat <<_LT_EOF 1>&2
7236
7237*** Warning: the command libtool uses to detect shared libraries,
7238*** $file_magic_cmd, produces output that libtool cannot recognize.
7239*** The result is that libtool may fail to recognize shared libraries
7240*** as such.  This will affect the creation of libtool libraries that
7241*** depend on shared libraries, but programs linked with such libtool
7242*** libraries will work regardless of this problem.  Nevertheless, you
7243*** may want to report the problem to your system manager and/or to
7244*** bug-libtool@gnu.org
7245
7246_LT_EOF
7247          fi ;;
7248        esac
7249      fi
7250      break
7251    fi
7252  done
7253  IFS="$lt_save_ifs"
7254  MAGIC_CMD="$lt_save_MAGIC_CMD"
7255  ;;
7256esac
7257fi
7258
7259MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7260if test -n "$MAGIC_CMD"; then
7261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7262$as_echo "$MAGIC_CMD" >&6; }
7263else
7264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265$as_echo "no" >&6; }
7266fi
7267
7268
7269
7270
7271
7272if test -z "$lt_cv_path_MAGIC_CMD"; then
7273  if test -n "$ac_tool_prefix"; then
7274    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7275$as_echo_n "checking for file... " >&6; }
7276if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7277  $as_echo_n "(cached) " >&6
7278else
7279  case $MAGIC_CMD in
7280[\\/*] |  ?:[\\/]*)
7281  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7282  ;;
7283*)
7284  lt_save_MAGIC_CMD="$MAGIC_CMD"
7285  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7286  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7287  for ac_dir in $ac_dummy; do
7288    IFS="$lt_save_ifs"
7289    test -z "$ac_dir" && ac_dir=.
7290    if test -f $ac_dir/file; then
7291      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7292      if test -n "$file_magic_test_file"; then
7293        case $deplibs_check_method in
7294        "file_magic "*)
7295          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7296          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7297          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7298            $EGREP "$file_magic_regex" > /dev/null; then
7299            :
7300          else
7301            cat <<_LT_EOF 1>&2
7302
7303*** Warning: the command libtool uses to detect shared libraries,
7304*** $file_magic_cmd, produces output that libtool cannot recognize.
7305*** The result is that libtool may fail to recognize shared libraries
7306*** as such.  This will affect the creation of libtool libraries that
7307*** depend on shared libraries, but programs linked with such libtool
7308*** libraries will work regardless of this problem.  Nevertheless, you
7309*** may want to report the problem to your system manager and/or to
7310*** bug-libtool@gnu.org
7311
7312_LT_EOF
7313          fi ;;
7314        esac
7315      fi
7316      break
7317    fi
7318  done
7319  IFS="$lt_save_ifs"
7320  MAGIC_CMD="$lt_save_MAGIC_CMD"
7321  ;;
7322esac
7323fi
7324
7325MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7326if test -n "$MAGIC_CMD"; then
7327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7328$as_echo "$MAGIC_CMD" >&6; }
7329else
7330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331$as_echo "no" >&6; }
7332fi
7333
7334
7335  else
7336    MAGIC_CMD=:
7337  fi
7338fi
7339
7340  fi
7341  ;;
7342esac
7343
7344# Use C for the default configuration in the libtool script
7345
7346lt_save_CC="$CC"
7347ac_ext=c
7348ac_cpp='$CPP $CPPFLAGS'
7349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352
7353
7354# Source file extension for C test sources.
7355ac_ext=c
7356
7357# Object file extension for compiled C test sources.
7358objext=o
7359objext=$objext
7360
7361# Code to be used in simple compile tests
7362lt_simple_compile_test_code="int some_variable = 0;"
7363
7364# Code to be used in simple link tests
7365lt_simple_link_test_code='int main(){return(0);}'
7366
7367
7368
7369
7370
7371
7372
7373# If no C compiler was specified, use CC.
7374LTCC=${LTCC-"$CC"}
7375
7376# If no C compiler flags were specified, use CFLAGS.
7377LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7378
7379# Allow CC to be a program name with arguments.
7380compiler=$CC
7381
7382# Save the default compiler, since it gets overwritten when the other
7383# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7384compiler_DEFAULT=$CC
7385
7386# save warnings/boilerplate of simple test code
7387ac_outfile=conftest.$ac_objext
7388echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7389eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7390_lt_compiler_boilerplate=`cat conftest.err`
7391$RM conftest*
7392
7393ac_outfile=conftest.$ac_objext
7394echo "$lt_simple_link_test_code" >conftest.$ac_ext
7395eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7396_lt_linker_boilerplate=`cat conftest.err`
7397$RM -r conftest*
7398
7399
7400## CAVEAT EMPTOR:
7401## There is no encapsulation within the following macros, do not change
7402## the running order or otherwise move them around unless you know exactly
7403## what you are doing...
7404if test -n "$compiler"; then
7405
7406lt_prog_compiler_no_builtin_flag=
7407
7408if test "$GCC" = yes; then
7409  case $cc_basename in
7410  nvcc*)
7411    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7412  *)
7413    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7414  esac
7415
7416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7417$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7418if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7419  $as_echo_n "(cached) " >&6
7420else
7421  lt_cv_prog_compiler_rtti_exceptions=no
7422   ac_outfile=conftest.$ac_objext
7423   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7424   lt_compiler_flag="-fno-rtti -fno-exceptions"
7425   # Insert the option either (1) after the last *FLAGS variable, or
7426   # (2) before a word containing "conftest.", or (3) at the end.
7427   # Note that $ac_compile itself does not contain backslashes and begins
7428   # with a dollar sign (not a hyphen), so the echo should work correctly.
7429   # The option is referenced via a variable to avoid confusing sed.
7430   lt_compile=`echo "$ac_compile" | $SED \
7431   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7432   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7433   -e 's:$: $lt_compiler_flag:'`
7434   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7435   (eval "$lt_compile" 2>conftest.err)
7436   ac_status=$?
7437   cat conftest.err >&5
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   if (exit $ac_status) && test -s "$ac_outfile"; then
7440     # The compiler can only warn and ignore the option if not recognized
7441     # So say no if there are warnings other than the usual output.
7442     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7443     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7444     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7445       lt_cv_prog_compiler_rtti_exceptions=yes
7446     fi
7447   fi
7448   $RM conftest*
7449
7450fi
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7452$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7453
7454if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7455    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7456else
7457    :
7458fi
7459
7460fi
7461
7462
7463
7464
7465
7466
7467  lt_prog_compiler_wl=
7468lt_prog_compiler_pic=
7469lt_prog_compiler_static=
7470
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7472$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7473
7474  if test "$GCC" = yes; then
7475    lt_prog_compiler_wl='-Wl,'
7476    lt_prog_compiler_static='-static'
7477
7478    case $host_os in
7479      aix*)
7480      # All AIX code is PIC.
7481      if test "$host_cpu" = ia64; then
7482        # AIX 5 now supports IA64 processor
7483        lt_prog_compiler_static='-Bstatic'
7484      fi
7485      ;;
7486
7487    amigaos*)
7488      case $host_cpu in
7489      powerpc)
7490            # see comment about AmigaOS4 .so support
7491            lt_prog_compiler_pic='-fPIC'
7492        ;;
7493      m68k)
7494            # FIXME: we need at least 68020 code to build shared libraries, but
7495            # adding the `-m68020' flag to GCC prevents building anything better,
7496            # like `-m68040'.
7497            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7498        ;;
7499      esac
7500      ;;
7501
7502    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7503      # PIC is the default for these OSes.
7504      ;;
7505
7506    mingw* | cygwin* | pw32* | os2* | cegcc*)
7507      # This hack is so that the source file can tell whether it is being
7508      # built for inclusion in a dll (and should export symbols for example).
7509      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7510      # (--disable-auto-import) libraries
7511      lt_prog_compiler_pic='-DDLL_EXPORT'
7512      ;;
7513
7514    darwin* | rhapsody*)
7515      # PIC is the default on this platform
7516      # Common symbols not allowed in MH_DYLIB files
7517      lt_prog_compiler_pic='-fno-common'
7518      ;;
7519
7520    haiku*)
7521      # PIC is the default for Haiku.
7522      # The "-static" flag exists, but is broken.
7523      lt_prog_compiler_static=
7524      ;;
7525
7526    hpux*)
7527      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7528      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7529      # sets the default TLS model and affects inlining.
7530      case $host_cpu in
7531      hppa*64*)
7532        # +Z the default
7533        ;;
7534      *)
7535        lt_prog_compiler_pic='-fPIC'
7536        ;;
7537      esac
7538      ;;
7539
7540    interix[3-9]*)
7541      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7542      # Instead, we relocate shared libraries at runtime.
7543      ;;
7544
7545    msdosdjgpp*)
7546      # Just because we use GCC doesn't mean we suddenly get shared libraries
7547      # on systems that don't support them.
7548      lt_prog_compiler_can_build_shared=no
7549      enable_shared=no
7550      ;;
7551
7552    *nto* | *qnx*)
7553      # QNX uses GNU C++, but need to define -shared option too, otherwise
7554      # it will coredump.
7555      lt_prog_compiler_pic='-fPIC -shared'
7556      ;;
7557
7558    sysv4*MP*)
7559      if test -d /usr/nec; then
7560        lt_prog_compiler_pic=-Kconform_pic
7561      fi
7562      ;;
7563
7564    *)
7565      lt_prog_compiler_pic='-fPIC'
7566      ;;
7567    esac
7568
7569    case $cc_basename in
7570    nvcc*) # Cuda Compiler Driver 2.2
7571      lt_prog_compiler_wl='-Xlinker '
7572      lt_prog_compiler_pic='-Xcompiler -fPIC'
7573      ;;
7574    esac
7575  else
7576    # PORTME Check for flag to pass linker flags through the system compiler.
7577    case $host_os in
7578    aix*)
7579      lt_prog_compiler_wl='-Wl,'
7580      if test "$host_cpu" = ia64; then
7581        # AIX 5 now supports IA64 processor
7582        lt_prog_compiler_static='-Bstatic'
7583      else
7584        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7585      fi
7586      ;;
7587
7588    mingw* | cygwin* | pw32* | os2* | cegcc*)
7589      # This hack is so that the source file can tell whether it is being
7590      # built for inclusion in a dll (and should export symbols for example).
7591      lt_prog_compiler_pic='-DDLL_EXPORT'
7592      ;;
7593
7594    hpux9* | hpux10* | hpux11*)
7595      lt_prog_compiler_wl='-Wl,'
7596      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7597      # not for PA HP-UX.
7598      case $host_cpu in
7599      hppa*64*|ia64*)
7600        # +Z the default
7601        ;;
7602      *)
7603        lt_prog_compiler_pic='+Z'
7604        ;;
7605      esac
7606      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7607      lt_prog_compiler_static='${wl}-a ${wl}archive'
7608      ;;
7609
7610    irix5* | irix6* | nonstopux*)
7611      lt_prog_compiler_wl='-Wl,'
7612      # PIC (with -KPIC) is the default.
7613      lt_prog_compiler_static='-non_shared'
7614      ;;
7615
7616    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7617      case $cc_basename in
7618      # old Intel for x86_64 which still supported -KPIC.
7619      ecc*)
7620        lt_prog_compiler_wl='-Wl,'
7621        lt_prog_compiler_pic='-KPIC'
7622        lt_prog_compiler_static='-static'
7623        ;;
7624      # icc used to be incompatible with GCC.
7625      # ICC 10 doesn't accept -KPIC any more.
7626      icc* | ifort*)
7627        lt_prog_compiler_wl='-Wl,'
7628        lt_prog_compiler_pic='-fPIC'
7629        lt_prog_compiler_static='-static'
7630        ;;
7631      # Lahey Fortran 8.1.
7632      lf95*)
7633        lt_prog_compiler_wl='-Wl,'
7634        lt_prog_compiler_pic='--shared'
7635        lt_prog_compiler_static='--static'
7636        ;;
7637      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7638        # Portland Group compilers (*not* the Pentium gcc compiler,
7639        # which looks to be a dead project)
7640        lt_prog_compiler_wl='-Wl,'
7641        lt_prog_compiler_pic='-fpic'
7642        lt_prog_compiler_static='-Bstatic'
7643        ;;
7644      ccc*)
7645        lt_prog_compiler_wl='-Wl,'
7646        # All Alpha code is PIC.
7647        lt_prog_compiler_static='-non_shared'
7648        ;;
7649      xl* | bgxl* | bgf* | mpixl*)
7650        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7651        lt_prog_compiler_wl='-Wl,'
7652        lt_prog_compiler_pic='-qpic'
7653        lt_prog_compiler_static='-qstaticlink'
7654        ;;
7655      *)
7656        case `$CC -V 2>&1 | sed 5q` in
7657        *Sun\ F* | *Sun*Fortran*)
7658          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7659          lt_prog_compiler_pic='-KPIC'
7660          lt_prog_compiler_static='-Bstatic'
7661          lt_prog_compiler_wl=''
7662          ;;
7663        *Sun\ C*)
7664          # Sun C 5.9
7665          lt_prog_compiler_pic='-KPIC'
7666          lt_prog_compiler_static='-Bstatic'
7667          lt_prog_compiler_wl='-Wl,'
7668          ;;
7669        esac
7670        ;;
7671      esac
7672      ;;
7673
7674    newsos6)
7675      lt_prog_compiler_pic='-KPIC'
7676      lt_prog_compiler_static='-Bstatic'
7677      ;;
7678
7679    *nto* | *qnx*)
7680      # QNX uses GNU C++, but need to define -shared option too, otherwise
7681      # it will coredump.
7682      lt_prog_compiler_pic='-fPIC -shared'
7683      ;;
7684
7685    osf3* | osf4* | osf5*)
7686      lt_prog_compiler_wl='-Wl,'
7687      # All OSF/1 code is PIC.
7688      lt_prog_compiler_static='-non_shared'
7689      ;;
7690
7691    rdos*)
7692      lt_prog_compiler_static='-non_shared'
7693      ;;
7694
7695    solaris*)
7696      lt_prog_compiler_pic='-KPIC'
7697      lt_prog_compiler_static='-Bstatic'
7698      case $cc_basename in
7699      f77* | f90* | f95*)
7700        lt_prog_compiler_wl='-Qoption ld ';;
7701      *)
7702        lt_prog_compiler_wl='-Wl,';;
7703      esac
7704      ;;
7705
7706    sunos4*)
7707      lt_prog_compiler_wl='-Qoption ld '
7708      lt_prog_compiler_pic='-PIC'
7709      lt_prog_compiler_static='-Bstatic'
7710      ;;
7711
7712    sysv4 | sysv4.2uw2* | sysv4.3*)
7713      lt_prog_compiler_wl='-Wl,'
7714      lt_prog_compiler_pic='-KPIC'
7715      lt_prog_compiler_static='-Bstatic'
7716      ;;
7717
7718    sysv4*MP*)
7719      if test -d /usr/nec ;then
7720        lt_prog_compiler_pic='-Kconform_pic'
7721        lt_prog_compiler_static='-Bstatic'
7722      fi
7723      ;;
7724
7725    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7726      lt_prog_compiler_wl='-Wl,'
7727      lt_prog_compiler_pic='-KPIC'
7728      lt_prog_compiler_static='-Bstatic'
7729      ;;
7730
7731    unicos*)
7732      lt_prog_compiler_wl='-Wl,'
7733      lt_prog_compiler_can_build_shared=no
7734      ;;
7735
7736    uts4*)
7737      lt_prog_compiler_pic='-pic'
7738      lt_prog_compiler_static='-Bstatic'
7739      ;;
7740
7741    *)
7742      lt_prog_compiler_can_build_shared=no
7743      ;;
7744    esac
7745  fi
7746
7747case $host_os in
7748  # For platforms which do not support PIC, -DPIC is meaningless:
7749  *djgpp*)
7750    lt_prog_compiler_pic=
7751    ;;
7752  *)
7753    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7754    ;;
7755esac
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7757$as_echo "$lt_prog_compiler_pic" >&6; }
7758
7759
7760
7761
7762
7763
7764#
7765# Check to make sure the PIC flag actually works.
7766#
7767if test -n "$lt_prog_compiler_pic"; then
7768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7769$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7770if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  lt_cv_prog_compiler_pic_works=no
7774   ac_outfile=conftest.$ac_objext
7775   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7776   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7777   # Insert the option either (1) after the last *FLAGS variable, or
7778   # (2) before a word containing "conftest.", or (3) at the end.
7779   # Note that $ac_compile itself does not contain backslashes and begins
7780   # with a dollar sign (not a hyphen), so the echo should work correctly.
7781   # The option is referenced via a variable to avoid confusing sed.
7782   lt_compile=`echo "$ac_compile" | $SED \
7783   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7784   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7785   -e 's:$: $lt_compiler_flag:'`
7786   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7787   (eval "$lt_compile" 2>conftest.err)
7788   ac_status=$?
7789   cat conftest.err >&5
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   if (exit $ac_status) && test -s "$ac_outfile"; then
7792     # The compiler can only warn and ignore the option if not recognized
7793     # So say no if there are warnings other than the usual output.
7794     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7795     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7796     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7797       lt_cv_prog_compiler_pic_works=yes
7798     fi
7799   fi
7800   $RM conftest*
7801
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7804$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7805
7806if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7807    case $lt_prog_compiler_pic in
7808     "" | " "*) ;;
7809     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7810     esac
7811else
7812    lt_prog_compiler_pic=
7813     lt_prog_compiler_can_build_shared=no
7814fi
7815
7816fi
7817
7818
7819
7820
7821
7822
7823#
7824# Check to make sure the static flag actually works.
7825#
7826wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7828$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7829if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7830  $as_echo_n "(cached) " >&6
7831else
7832  lt_cv_prog_compiler_static_works=no
7833   save_LDFLAGS="$LDFLAGS"
7834   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7835   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7836   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7837     # The linker can only warn and ignore the option if not recognized
7838     # So say no if there are warnings
7839     if test -s conftest.err; then
7840       # Append any errors to the config.log.
7841       cat conftest.err 1>&5
7842       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7843       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7844       if diff conftest.exp conftest.er2 >/dev/null; then
7845         lt_cv_prog_compiler_static_works=yes
7846       fi
7847     else
7848       lt_cv_prog_compiler_static_works=yes
7849     fi
7850   fi
7851   $RM -r conftest*
7852   LDFLAGS="$save_LDFLAGS"
7853
7854fi
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7856$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7857
7858if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7859    :
7860else
7861    lt_prog_compiler_static=
7862fi
7863
7864
7865
7866
7867
7868
7869
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7871$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7872if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7873  $as_echo_n "(cached) " >&6
7874else
7875  lt_cv_prog_compiler_c_o=no
7876   $RM -r conftest 2>/dev/null
7877   mkdir conftest
7878   cd conftest
7879   mkdir out
7880   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7881
7882   lt_compiler_flag="-o out/conftest2.$ac_objext"
7883   # Insert the option either (1) after the last *FLAGS variable, or
7884   # (2) before a word containing "conftest.", or (3) at the end.
7885   # Note that $ac_compile itself does not contain backslashes and begins
7886   # with a dollar sign (not a hyphen), so the echo should work correctly.
7887   lt_compile=`echo "$ac_compile" | $SED \
7888   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7889   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7890   -e 's:$: $lt_compiler_flag:'`
7891   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7892   (eval "$lt_compile" 2>out/conftest.err)
7893   ac_status=$?
7894   cat out/conftest.err >&5
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7897   then
7898     # The compiler can only warn and ignore the option if not recognized
7899     # So say no if there are warnings
7900     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7901     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7902     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7903       lt_cv_prog_compiler_c_o=yes
7904     fi
7905   fi
7906   chmod u+w . 2>&5
7907   $RM conftest*
7908   # SGI C++ compiler will create directory out/ii_files/ for
7909   # template instantiation
7910   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7911   $RM out/* && rmdir out
7912   cd ..
7913   $RM -r conftest
7914   $RM conftest*
7915
7916fi
7917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7918$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7919
7920
7921
7922
7923
7924
7925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7926$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7927if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7928  $as_echo_n "(cached) " >&6
7929else
7930  lt_cv_prog_compiler_c_o=no
7931   $RM -r conftest 2>/dev/null
7932   mkdir conftest
7933   cd conftest
7934   mkdir out
7935   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7936
7937   lt_compiler_flag="-o out/conftest2.$ac_objext"
7938   # Insert the option either (1) after the last *FLAGS variable, or
7939   # (2) before a word containing "conftest.", or (3) at the end.
7940   # Note that $ac_compile itself does not contain backslashes and begins
7941   # with a dollar sign (not a hyphen), so the echo should work correctly.
7942   lt_compile=`echo "$ac_compile" | $SED \
7943   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7944   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7945   -e 's:$: $lt_compiler_flag:'`
7946   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7947   (eval "$lt_compile" 2>out/conftest.err)
7948   ac_status=$?
7949   cat out/conftest.err >&5
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7952   then
7953     # The compiler can only warn and ignore the option if not recognized
7954     # So say no if there are warnings
7955     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7956     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7957     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7958       lt_cv_prog_compiler_c_o=yes
7959     fi
7960   fi
7961   chmod u+w . 2>&5
7962   $RM conftest*
7963   # SGI C++ compiler will create directory out/ii_files/ for
7964   # template instantiation
7965   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7966   $RM out/* && rmdir out
7967   cd ..
7968   $RM -r conftest
7969   $RM conftest*
7970
7971fi
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7973$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7974
7975
7976
7977
7978hard_links="nottested"
7979if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7980  # do not overwrite the value of need_locks provided by the user
7981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7982$as_echo_n "checking if we can lock with hard links... " >&6; }
7983  hard_links=yes
7984  $RM conftest*
7985  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7986  touch conftest.a
7987  ln conftest.a conftest.b 2>&5 || hard_links=no
7988  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7990$as_echo "$hard_links" >&6; }
7991  if test "$hard_links" = no; then
7992    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7993$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7994    need_locks=warn
7995  fi
7996else
7997  need_locks=no
7998fi
7999
8000
8001
8002
8003
8004
8005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8006$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8007
8008  runpath_var=
8009  allow_undefined_flag=
8010  always_export_symbols=no
8011  archive_cmds=
8012  archive_expsym_cmds=
8013  compiler_needs_object=no
8014  enable_shared_with_static_runtimes=no
8015  export_dynamic_flag_spec=
8016  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8017  hardcode_automatic=no
8018  hardcode_direct=no
8019  hardcode_direct_absolute=no
8020  hardcode_libdir_flag_spec=
8021  hardcode_libdir_flag_spec_ld=
8022  hardcode_libdir_separator=
8023  hardcode_minus_L=no
8024  hardcode_shlibpath_var=unsupported
8025  inherit_rpath=no
8026  link_all_deplibs=unknown
8027  module_cmds=
8028  module_expsym_cmds=
8029  old_archive_from_new_cmds=
8030  old_archive_from_expsyms_cmds=
8031  thread_safe_flag_spec=
8032  whole_archive_flag_spec=
8033  # include_expsyms should be a list of space-separated symbols to be *always*
8034  # included in the symbol list
8035  include_expsyms=
8036  # exclude_expsyms can be an extended regexp of symbols to exclude
8037  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8038  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8039  # as well as any symbol that contains `d'.
8040  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8041  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8042  # platforms (ab)use it in PIC code, but their linkers get confused if
8043  # the symbol is explicitly referenced.  Since portable code cannot
8044  # rely on this symbol name, it's probably fine to never include it in
8045  # preloaded symbol tables.
8046  # Exclude shared library initialization/finalization symbols.
8047  extract_expsyms_cmds=
8048
8049  case $host_os in
8050  cygwin* | mingw* | pw32* | cegcc*)
8051    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8052    # When not using gcc, we currently assume that we are using
8053    # Microsoft Visual C++.
8054    if test "$GCC" != yes; then
8055      with_gnu_ld=no
8056    fi
8057    ;;
8058  interix*)
8059    # we just hope/assume this is gcc and not c89 (= MSVC++)
8060    with_gnu_ld=yes
8061    ;;
8062  openbsd*)
8063    with_gnu_ld=no
8064    ;;
8065  esac
8066
8067  ld_shlibs=yes
8068
8069  # On some targets, GNU ld is compatible enough with the native linker
8070  # that we're better off using the native interface for both.
8071  lt_use_gnu_ld_interface=no
8072  if test "$with_gnu_ld" = yes; then
8073    case $host_os in
8074      aix*)
8075        # The AIX port of GNU ld has always aspired to compatibility
8076        # with the native linker.  However, as the warning in the GNU ld
8077        # block says, versions before 2.19.5* couldn't really create working
8078        # shared libraries, regardless of the interface used.
8079        case `$LD -v 2>&1` in
8080          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8081          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8082          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8083          *)
8084            lt_use_gnu_ld_interface=yes
8085            ;;
8086        esac
8087        ;;
8088      *)
8089        lt_use_gnu_ld_interface=yes
8090        ;;
8091    esac
8092  fi
8093
8094  if test "$lt_use_gnu_ld_interface" = yes; then
8095    # If archive_cmds runs LD, not CC, wlarc should be empty
8096    wlarc='${wl}'
8097
8098    # Set some defaults for GNU ld with shared library support. These
8099    # are reset later if shared libraries are not supported. Putting them
8100    # here allows them to be overridden if necessary.
8101    runpath_var=LD_RUN_PATH
8102    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8103    export_dynamic_flag_spec='${wl}--export-dynamic'
8104    # ancient GNU ld didn't support --whole-archive et. al.
8105    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8106      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8107    else
8108      whole_archive_flag_spec=
8109    fi
8110    supports_anon_versioning=no
8111    case `$LD -v 2>&1` in
8112      *GNU\ gold*) supports_anon_versioning=yes ;;
8113      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8114      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8115      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8116      *\ 2.11.*) ;; # other 2.11 versions
8117      *) supports_anon_versioning=yes ;;
8118    esac
8119
8120    # See if GNU ld supports shared libraries.
8121    case $host_os in
8122    aix[3-9]*)
8123      # On AIX/PPC, the GNU linker is very broken
8124      if test "$host_cpu" != ia64; then
8125        ld_shlibs=no
8126        cat <<_LT_EOF 1>&2
8127
8128*** Warning: the GNU linker, at least up to release 2.19, is reported
8129*** to be unable to reliably create shared libraries on AIX.
8130*** Therefore, libtool is disabling shared libraries support.  If you
8131*** really care for shared libraries, you may want to install binutils
8132*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8133*** You will then need to restart the configuration process.
8134
8135_LT_EOF
8136      fi
8137      ;;
8138
8139    amigaos*)
8140      case $host_cpu in
8141      powerpc)
8142            # see comment about AmigaOS4 .so support
8143            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144            archive_expsym_cmds=''
8145        ;;
8146      m68k)
8147            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)'
8148            hardcode_libdir_flag_spec='-L$libdir'
8149            hardcode_minus_L=yes
8150        ;;
8151      esac
8152      ;;
8153
8154    beos*)
8155      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8156        allow_undefined_flag=unsupported
8157        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8158        # support --undefined.  This deserves some investigation.  FIXME
8159        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8160      else
8161        ld_shlibs=no
8162      fi
8163      ;;
8164
8165    cygwin* | mingw* | pw32* | cegcc*)
8166      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8167      # as there is no search path for DLLs.
8168      hardcode_libdir_flag_spec='-L$libdir'
8169      export_dynamic_flag_spec='${wl}--export-all-symbols'
8170      allow_undefined_flag=unsupported
8171      always_export_symbols=no
8172      enable_shared_with_static_runtimes=yes
8173      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'
8174      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8175
8176      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8177        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8178        # If the export-symbols file already is a .def file (1st line
8179        # is EXPORTS), use it as is; otherwise, prepend...
8180        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8181          cp $export_symbols $output_objdir/$soname.def;
8182        else
8183          echo EXPORTS > $output_objdir/$soname.def;
8184          cat $export_symbols >> $output_objdir/$soname.def;
8185        fi~
8186        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8187      else
8188        ld_shlibs=no
8189      fi
8190      ;;
8191
8192    haiku*)
8193      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8194      link_all_deplibs=yes
8195      ;;
8196
8197    interix[3-9]*)
8198      hardcode_direct=no
8199      hardcode_shlibpath_var=no
8200      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8201      export_dynamic_flag_spec='${wl}-E'
8202      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8203      # Instead, shared libraries are loaded at an image base (0x10000000 by
8204      # default) and relocated if they conflict, which is a slow very memory
8205      # consuming and fragmenting process.  To avoid this, we pick a random,
8206      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8207      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8208      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8209      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'
8210      ;;
8211
8212    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8213      tmp_diet=no
8214      if test "$host_os" = linux-dietlibc; then
8215        case $cc_basename in
8216          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8217        esac
8218      fi
8219      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8220         && test "$tmp_diet" = no
8221      then
8222        tmp_addflag=
8223        tmp_sharedflag='-shared'
8224        case $cc_basename,$host_cpu in
8225        pgcc*)                          # Portland Group C compiler
8226          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'
8227          tmp_addflag=' $pic_flag'
8228          ;;
8229        pgf77* | pgf90* | pgf95* | pgfortran*)
8230                                        # Portland Group f77 and f90 compilers
8231          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'
8232          tmp_addflag=' $pic_flag -Mnomain' ;;
8233        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8234          tmp_addflag=' -i_dynamic' ;;
8235        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8236          tmp_addflag=' -i_dynamic -nofor_main' ;;
8237        ifc* | ifort*)                  # Intel Fortran compiler
8238          tmp_addflag=' -nofor_main' ;;
8239        lf95*)                          # Lahey Fortran 8.1
8240          whole_archive_flag_spec=
8241          tmp_sharedflag='--shared' ;;
8242        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8243          tmp_sharedflag='-qmkshrobj'
8244          tmp_addflag= ;;
8245        nvcc*)  # Cuda Compiler Driver 2.2
8246          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'
8247          compiler_needs_object=yes
8248          ;;
8249        esac
8250        case `$CC -V 2>&1 | sed 5q` in
8251        *Sun\ C*)                       # Sun C 5.9
8252          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'
8253          compiler_needs_object=yes
8254          tmp_sharedflag='-G' ;;
8255        *Sun\ F*)                       # Sun Fortran 8.3
8256          tmp_sharedflag='-G' ;;
8257        esac
8258        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259
8260        if test "x$supports_anon_versioning" = xyes; then
8261          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8262            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8263            echo "local: *; };" >> $output_objdir/$libname.ver~
8264            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8265        fi
8266
8267        case $cc_basename in
8268        xlf* | bgf* | bgxlf* | mpixlf*)
8269          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8270          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8271          hardcode_libdir_flag_spec=
8272          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8273          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8274          if test "x$supports_anon_versioning" = xyes; then
8275            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8276              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8277              echo "local: *; };" >> $output_objdir/$libname.ver~
8278              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8279          fi
8280          ;;
8281        esac
8282      else
8283        ld_shlibs=no
8284      fi
8285      ;;
8286
8287    netbsd*)
8288      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8289        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8290        wlarc=
8291      else
8292        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8293        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8294      fi
8295      ;;
8296
8297    solaris*)
8298      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8299        ld_shlibs=no
8300        cat <<_LT_EOF 1>&2
8301
8302*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8303*** create shared libraries on Solaris systems.  Therefore, libtool
8304*** is disabling shared libraries support.  We urge you to upgrade GNU
8305*** binutils to release 2.9.1 or newer.  Another option is to modify
8306*** your PATH or compiler configuration so that the native linker is
8307*** used, and then restart.
8308
8309_LT_EOF
8310      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8311        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8313      else
8314        ld_shlibs=no
8315      fi
8316      ;;
8317
8318    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8319      case `$LD -v 2>&1` in
8320        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8321        ld_shlibs=no
8322        cat <<_LT_EOF 1>&2
8323
8324*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8325*** reliably create shared libraries on SCO systems.  Therefore, libtool
8326*** is disabling shared libraries support.  We urge you to upgrade GNU
8327*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8328*** your PATH or compiler configuration so that the native linker is
8329*** used, and then restart.
8330
8331_LT_EOF
8332        ;;
8333        *)
8334          # For security reasons, it is highly recommended that you always
8335          # use absolute paths for naming shared libraries, and exclude the
8336          # DT_RUNPATH tag from executables and libraries.  But doing so
8337          # requires that you compile everything twice, which is a pain.
8338          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8339            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8340            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8341            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8342          else
8343            ld_shlibs=no
8344          fi
8345        ;;
8346      esac
8347      ;;
8348
8349    sunos4*)
8350      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8351      wlarc=
8352      hardcode_direct=yes
8353      hardcode_shlibpath_var=no
8354      ;;
8355
8356    *)
8357      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8358        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8359        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8360      else
8361        ld_shlibs=no
8362      fi
8363      ;;
8364    esac
8365
8366    if test "$ld_shlibs" = no; then
8367      runpath_var=
8368      hardcode_libdir_flag_spec=
8369      export_dynamic_flag_spec=
8370      whole_archive_flag_spec=
8371    fi
8372  else
8373    # PORTME fill in a description of your system's linker (not GNU ld)
8374    case $host_os in
8375    aix3*)
8376      allow_undefined_flag=unsupported
8377      always_export_symbols=yes
8378      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'
8379      # Note: this linker hardcodes the directories in LIBPATH if there
8380      # are no directories specified by -L.
8381      hardcode_minus_L=yes
8382      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8383        # Neither direct hardcoding nor static linking is supported with a
8384        # broken collect2.
8385        hardcode_direct=unsupported
8386      fi
8387      ;;
8388
8389    aix[4-9]*)
8390      if test "$host_cpu" = ia64; then
8391        # On IA64, the linker does run time linking by default, so we don't
8392        # have to do anything special.
8393        aix_use_runtimelinking=no
8394        exp_sym_flag='-Bexport'
8395        no_entry_flag=""
8396      else
8397        # If we're using GNU nm, then we don't want the "-C" option.
8398        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8399        # Also, AIX nm treats weak defined symbols like other global
8400        # defined symbols, whereas GNU nm marks them as "W".
8401        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8402          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8403        else
8404          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8405        fi
8406        aix_use_runtimelinking=no
8407
8408        # Test if we are trying to use run time linking or normal
8409        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8410        # need to do runtime linking.
8411        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8412          for ld_flag in $LDFLAGS; do
8413          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8414            aix_use_runtimelinking=yes
8415            break
8416          fi
8417          done
8418          ;;
8419        esac
8420
8421        exp_sym_flag='-bexport'
8422        no_entry_flag='-bnoentry'
8423      fi
8424
8425      # When large executables or shared objects are built, AIX ld can
8426      # have problems creating the table of contents.  If linking a library
8427      # or program results in "error TOC overflow" add -mminimal-toc to
8428      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8429      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8430
8431      archive_cmds=''
8432      hardcode_direct=yes
8433      hardcode_direct_absolute=yes
8434      hardcode_libdir_separator=':'
8435      link_all_deplibs=yes
8436      file_list_spec='${wl}-f,'
8437
8438      if test "$GCC" = yes; then
8439        case $host_os in aix4.[012]|aix4.[012].*)
8440        # We only want to do this on AIX 4.2 and lower, the check
8441        # below for broken collect2 doesn't work under 4.3+
8442          collect2name=`${CC} -print-prog-name=collect2`
8443          if test -f "$collect2name" &&
8444           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8445          then
8446          # We have reworked collect2
8447          :
8448          else
8449          # We have old collect2
8450          hardcode_direct=unsupported
8451          # It fails to find uninstalled libraries when the uninstalled
8452          # path is not listed in the libpath.  Setting hardcode_minus_L
8453          # to unsupported forces relinking
8454          hardcode_minus_L=yes
8455          hardcode_libdir_flag_spec='-L$libdir'
8456          hardcode_libdir_separator=
8457          fi
8458          ;;
8459        esac
8460        shared_flag='-shared'
8461        if test "$aix_use_runtimelinking" = yes; then
8462          shared_flag="$shared_flag "'${wl}-G'
8463        fi
8464      else
8465        # not using gcc
8466        if test "$host_cpu" = ia64; then
8467        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8468        # chokes on -Wl,-G. The following line is correct:
8469          shared_flag='-G'
8470        else
8471          if test "$aix_use_runtimelinking" = yes; then
8472            shared_flag='${wl}-G'
8473          else
8474            shared_flag='${wl}-bM:SRE'
8475          fi
8476        fi
8477      fi
8478
8479      export_dynamic_flag_spec='${wl}-bexpall'
8480      # It seems that -bexpall does not export symbols beginning with
8481      # underscore (_), so it is better to generate a list of symbols to export.
8482      always_export_symbols=yes
8483      if test "$aix_use_runtimelinking" = yes; then
8484        # Warning - without using the other runtime loading flags (-brtl),
8485        # -berok will link without error, but may produce a broken library.
8486        allow_undefined_flag='-berok'
8487        # Determine the default libpath from the value encoded in an
8488        # empty executable.
8489        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490/* end confdefs.h.  */
8491
8492int
8493main ()
8494{
8495
8496  ;
8497  return 0;
8498}
8499_ACEOF
8500if ac_fn_c_try_link "$LINENO"; then :
8501
8502lt_aix_libpath_sed='
8503    /Import File Strings/,/^$/ {
8504        /^0/ {
8505            s/^0  *\(.*\)$/\1/
8506            p
8507        }
8508    }'
8509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510# Check for a 64-bit object if we didn't find anything.
8511if test -z "$aix_libpath"; then
8512  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8513fi
8514fi
8515rm -f core conftest.err conftest.$ac_objext \
8516    conftest$ac_exeext conftest.$ac_ext
8517if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8518
8519        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8520        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8521      else
8522        if test "$host_cpu" = ia64; then
8523          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8524          allow_undefined_flag="-z nodefs"
8525          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"
8526        else
8527         # Determine the default libpath from the value encoded in an
8528         # empty executable.
8529         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530/* end confdefs.h.  */
8531
8532int
8533main ()
8534{
8535
8536  ;
8537  return 0;
8538}
8539_ACEOF
8540if ac_fn_c_try_link "$LINENO"; then :
8541
8542lt_aix_libpath_sed='
8543    /Import File Strings/,/^$/ {
8544        /^0/ {
8545            s/^0  *\(.*\)$/\1/
8546            p
8547        }
8548    }'
8549aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8550# Check for a 64-bit object if we didn't find anything.
8551if test -z "$aix_libpath"; then
8552  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8553fi
8554fi
8555rm -f core conftest.err conftest.$ac_objext \
8556    conftest$ac_exeext conftest.$ac_ext
8557if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8558
8559         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8560          # Warning - without using the other run time loading flags,
8561          # -berok will link without error, but may produce a broken library.
8562          no_undefined_flag=' ${wl}-bernotok'
8563          allow_undefined_flag=' ${wl}-berok'
8564          if test "$with_gnu_ld" = yes; then
8565            # We only use this code for GNU lds that support --whole-archive.
8566            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8567          else
8568            # Exported symbols can be pulled into shared objects from archives
8569            whole_archive_flag_spec='$convenience'
8570          fi
8571          archive_cmds_need_lc=yes
8572          # This is similar to how AIX traditionally builds its shared libraries.
8573          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8574        fi
8575      fi
8576      ;;
8577
8578    amigaos*)
8579      case $host_cpu in
8580      powerpc)
8581            # see comment about AmigaOS4 .so support
8582            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583            archive_expsym_cmds=''
8584        ;;
8585      m68k)
8586            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)'
8587            hardcode_libdir_flag_spec='-L$libdir'
8588            hardcode_minus_L=yes
8589        ;;
8590      esac
8591      ;;
8592
8593    bsdi[45]*)
8594      export_dynamic_flag_spec=-rdynamic
8595      ;;
8596
8597    cygwin* | mingw* | pw32* | cegcc*)
8598      # When not using gcc, we currently assume that we are using
8599      # Microsoft Visual C++.
8600      # hardcode_libdir_flag_spec is actually meaningless, as there is
8601      # no search path for DLLs.
8602      hardcode_libdir_flag_spec=' '
8603      allow_undefined_flag=unsupported
8604      # Tell ltmain to make .lib files, not .a files.
8605      libext=lib
8606      # Tell ltmain to make .dll files, not .so files.
8607      shrext_cmds=".dll"
8608      # FIXME: Setting linknames here is a bad hack.
8609      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8610      # The linker will automatically build a .lib file if we build a DLL.
8611      old_archive_from_new_cmds='true'
8612      # FIXME: Should let the user specify the lib program.
8613      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8614      fix_srcfile_path='`cygpath -w "$srcfile"`'
8615      enable_shared_with_static_runtimes=yes
8616      ;;
8617
8618    darwin* | rhapsody*)
8619
8620
8621  archive_cmds_need_lc=no
8622  hardcode_direct=no
8623  hardcode_automatic=yes
8624  hardcode_shlibpath_var=unsupported
8625  if test "$lt_cv_ld_force_load" = "yes"; then
8626    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\"`'
8627  else
8628    whole_archive_flag_spec=''
8629  fi
8630  link_all_deplibs=yes
8631  allow_undefined_flag="$_lt_dar_allow_undefined"
8632  case $cc_basename in
8633     ifort*) _lt_dar_can_shared=yes ;;
8634     *) _lt_dar_can_shared=$GCC ;;
8635  esac
8636  if test "$_lt_dar_can_shared" = "yes"; then
8637    output_verbose_link_cmd=func_echo_all
8638    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8639    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8640    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}"
8641    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}"
8642
8643  else
8644  ld_shlibs=no
8645  fi
8646
8647      ;;
8648
8649    dgux*)
8650      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8651      hardcode_libdir_flag_spec='-L$libdir'
8652      hardcode_shlibpath_var=no
8653      ;;
8654
8655    freebsd1*)
8656      ld_shlibs=no
8657      ;;
8658
8659    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8660    # support.  Future versions do this automatically, but an explicit c++rt0.o
8661    # does not break anything, and helps significantly (at the cost of a little
8662    # extra space).
8663    freebsd2.2*)
8664      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8665      hardcode_libdir_flag_spec='-R$libdir'
8666      hardcode_direct=yes
8667      hardcode_shlibpath_var=no
8668      ;;
8669
8670    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8671    freebsd2*)
8672      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8673      hardcode_direct=yes
8674      hardcode_minus_L=yes
8675      hardcode_shlibpath_var=no
8676      ;;
8677
8678    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8679    freebsd* | dragonfly*)
8680      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8681      hardcode_libdir_flag_spec='-R$libdir'
8682      hardcode_direct=yes
8683      hardcode_shlibpath_var=no
8684      ;;
8685
8686    hpux9*)
8687      if test "$GCC" = yes; then
8688        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8689      else
8690        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8691      fi
8692      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8693      hardcode_libdir_separator=:
8694      hardcode_direct=yes
8695
8696      # hardcode_minus_L: Not really in the search PATH,
8697      # but as the default location of the library.
8698      hardcode_minus_L=yes
8699      export_dynamic_flag_spec='${wl}-E'
8700      ;;
8701
8702    hpux10*)
8703      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8704        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8705      else
8706        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8707      fi
8708      if test "$with_gnu_ld" = no; then
8709        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8710        hardcode_libdir_flag_spec_ld='+b $libdir'
8711        hardcode_libdir_separator=:
8712        hardcode_direct=yes
8713        hardcode_direct_absolute=yes
8714        export_dynamic_flag_spec='${wl}-E'
8715        # hardcode_minus_L: Not really in the search PATH,
8716        # but as the default location of the library.
8717        hardcode_minus_L=yes
8718      fi
8719      ;;
8720
8721    hpux11*)
8722      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8723        case $host_cpu in
8724        hppa*64*)
8725          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726          ;;
8727        ia64*)
8728          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8729          ;;
8730        *)
8731          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8732          ;;
8733        esac
8734      else
8735        case $host_cpu in
8736        hppa*64*)
8737          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738          ;;
8739        ia64*)
8740          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8741          ;;
8742        *)
8743
8744          # Older versions of the 11.00 compiler do not understand -b yet
8745          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8746          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8747$as_echo_n "checking if $CC understands -b... " >&6; }
8748if test "${lt_cv_prog_compiler__b+set}" = set; then :
8749  $as_echo_n "(cached) " >&6
8750else
8751  lt_cv_prog_compiler__b=no
8752   save_LDFLAGS="$LDFLAGS"
8753   LDFLAGS="$LDFLAGS -b"
8754   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8755   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8756     # The linker can only warn and ignore the option if not recognized
8757     # So say no if there are warnings
8758     if test -s conftest.err; then
8759       # Append any errors to the config.log.
8760       cat conftest.err 1>&5
8761       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8762       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8763       if diff conftest.exp conftest.er2 >/dev/null; then
8764         lt_cv_prog_compiler__b=yes
8765       fi
8766     else
8767       lt_cv_prog_compiler__b=yes
8768     fi
8769   fi
8770   $RM -r conftest*
8771   LDFLAGS="$save_LDFLAGS"
8772
8773fi
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8775$as_echo "$lt_cv_prog_compiler__b" >&6; }
8776
8777if test x"$lt_cv_prog_compiler__b" = xyes; then
8778    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8779else
8780    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8781fi
8782
8783          ;;
8784        esac
8785      fi
8786      if test "$with_gnu_ld" = no; then
8787        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8788        hardcode_libdir_separator=:
8789
8790        case $host_cpu in
8791        hppa*64*|ia64*)
8792          hardcode_direct=no
8793          hardcode_shlibpath_var=no
8794          ;;
8795        *)
8796          hardcode_direct=yes
8797          hardcode_direct_absolute=yes
8798          export_dynamic_flag_spec='${wl}-E'
8799
8800          # hardcode_minus_L: Not really in the search PATH,
8801          # but as the default location of the library.
8802          hardcode_minus_L=yes
8803          ;;
8804        esac
8805      fi
8806      ;;
8807
8808    irix5* | irix6* | nonstopux*)
8809      if test "$GCC" = yes; then
8810        archive_cmds='$CC -shared $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'
8811        # Try to use the -exported_symbol ld option, if it does not
8812        # work, assume that -exports_file does not work either and
8813        # implicitly export all symbols.
8814        save_LDFLAGS="$LDFLAGS"
8815        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8816        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817/* end confdefs.h.  */
8818int foo(void) {}
8819_ACEOF
8820if ac_fn_c_try_link "$LINENO"; then :
8821  archive_expsym_cmds='$CC -shared $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'
8822
8823fi
8824rm -f core conftest.err conftest.$ac_objext \
8825    conftest$ac_exeext conftest.$ac_ext
8826        LDFLAGS="$save_LDFLAGS"
8827      else
8828        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'
8829        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'
8830      fi
8831      archive_cmds_need_lc='no'
8832      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833      hardcode_libdir_separator=:
8834      inherit_rpath=yes
8835      link_all_deplibs=yes
8836      ;;
8837
8838    netbsd*)
8839      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8840        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8841      else
8842        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8843      fi
8844      hardcode_libdir_flag_spec='-R$libdir'
8845      hardcode_direct=yes
8846      hardcode_shlibpath_var=no
8847      ;;
8848
8849    newsos6)
8850      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8851      hardcode_direct=yes
8852      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853      hardcode_libdir_separator=:
8854      hardcode_shlibpath_var=no
8855      ;;
8856
8857    *nto* | *qnx*)
8858      ;;
8859
8860    openbsd*)
8861      if test -f /usr/libexec/ld.so; then
8862        hardcode_direct=yes
8863        hardcode_shlibpath_var=no
8864        hardcode_direct_absolute=yes
8865        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8866          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8867          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8868          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8869          export_dynamic_flag_spec='${wl}-E'
8870        else
8871          case $host_os in
8872           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8873             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8874             hardcode_libdir_flag_spec='-R$libdir'
8875             ;;
8876           *)
8877             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8878             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8879             ;;
8880          esac
8881        fi
8882      else
8883        ld_shlibs=no
8884      fi
8885      ;;
8886
8887    os2*)
8888      hardcode_libdir_flag_spec='-L$libdir'
8889      hardcode_minus_L=yes
8890      allow_undefined_flag=unsupported
8891      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8892      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8893      ;;
8894
8895    osf3*)
8896      if test "$GCC" = yes; then
8897        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8898        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'
8899      else
8900        allow_undefined_flag=' -expect_unresolved \*'
8901        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'
8902      fi
8903      archive_cmds_need_lc='no'
8904      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8905      hardcode_libdir_separator=:
8906      ;;
8907
8908    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8909      if test "$GCC" = yes; then
8910        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8911        archive_cmds='$CC -shared${allow_undefined_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'
8912        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8913      else
8914        allow_undefined_flag=' -expect_unresolved \*'
8915        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'
8916        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~
8917        $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'
8918
8919        # Both c and cxx compiler support -rpath directly
8920        hardcode_libdir_flag_spec='-rpath $libdir'
8921      fi
8922      archive_cmds_need_lc='no'
8923      hardcode_libdir_separator=:
8924      ;;
8925
8926    solaris*)
8927      no_undefined_flag=' -z defs'
8928      if test "$GCC" = yes; then
8929        wlarc='${wl}'
8930        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8931        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8932          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8933      else
8934        case `$CC -V 2>&1` in
8935        *"Compilers 5.0"*)
8936          wlarc=''
8937          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8939          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8940          ;;
8941        *)
8942          wlarc='${wl}'
8943          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8944          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8945          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8946          ;;
8947        esac
8948      fi
8949      hardcode_libdir_flag_spec='-R$libdir'
8950      hardcode_shlibpath_var=no
8951      case $host_os in
8952      solaris2.[0-5] | solaris2.[0-5].*) ;;
8953      *)
8954        # The compiler driver will combine and reorder linker options,
8955        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8956        # but is careful enough not to reorder.
8957        # Supported since Solaris 2.6 (maybe 2.5.1?)
8958        if test "$GCC" = yes; then
8959          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8960        else
8961          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8962        fi
8963        ;;
8964      esac
8965      link_all_deplibs=yes
8966      ;;
8967
8968    sunos4*)
8969      if test "x$host_vendor" = xsequent; then
8970        # Use $CC to link under sequent, because it throws in some extra .o
8971        # files that make .init and .fini sections work.
8972        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8973      else
8974        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8975      fi
8976      hardcode_libdir_flag_spec='-L$libdir'
8977      hardcode_direct=yes
8978      hardcode_minus_L=yes
8979      hardcode_shlibpath_var=no
8980      ;;
8981
8982    sysv4)
8983      case $host_vendor in
8984        sni)
8985          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8986          hardcode_direct=yes # is this really true???
8987        ;;
8988        siemens)
8989          ## LD is ld it makes a PLAMLIB
8990          ## CC just makes a GrossModule.
8991          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8992          reload_cmds='$CC -r -o $output$reload_objs'
8993          hardcode_direct=no
8994        ;;
8995        motorola)
8996          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8998        ;;
8999      esac
9000      runpath_var='LD_RUN_PATH'
9001      hardcode_shlibpath_var=no
9002      ;;
9003
9004    sysv4.3*)
9005      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9006      hardcode_shlibpath_var=no
9007      export_dynamic_flag_spec='-Bexport'
9008      ;;
9009
9010    sysv4*MP*)
9011      if test -d /usr/nec; then
9012        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013        hardcode_shlibpath_var=no
9014        runpath_var=LD_RUN_PATH
9015        hardcode_runpath_var=yes
9016        ld_shlibs=yes
9017      fi
9018      ;;
9019
9020    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9021      no_undefined_flag='${wl}-z,text'
9022      archive_cmds_need_lc=no
9023      hardcode_shlibpath_var=no
9024      runpath_var='LD_RUN_PATH'
9025
9026      if test "$GCC" = yes; then
9027        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9028        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9029      else
9030        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9031        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9032      fi
9033      ;;
9034
9035    sysv5* | sco3.2v5* | sco5v6*)
9036      # Note: We can NOT use -z defs as we might desire, because we do not
9037      # link with -lc, and that would cause any symbols used from libc to
9038      # always be unresolved, which means just about no library would
9039      # ever link correctly.  If we're not using GNU ld we use -z text
9040      # though, which does catch some bad symbols but isn't as heavy-handed
9041      # as -z defs.
9042      no_undefined_flag='${wl}-z,text'
9043      allow_undefined_flag='${wl}-z,nodefs'
9044      archive_cmds_need_lc=no
9045      hardcode_shlibpath_var=no
9046      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9047      hardcode_libdir_separator=':'
9048      link_all_deplibs=yes
9049      export_dynamic_flag_spec='${wl}-Bexport'
9050      runpath_var='LD_RUN_PATH'
9051
9052      if test "$GCC" = yes; then
9053        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9054        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9055      else
9056        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9057        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9058      fi
9059      ;;
9060
9061    uts4*)
9062      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063      hardcode_libdir_flag_spec='-L$libdir'
9064      hardcode_shlibpath_var=no
9065      ;;
9066
9067    *)
9068      ld_shlibs=no
9069      ;;
9070    esac
9071
9072    if test x$host_vendor = xsni; then
9073      case $host in
9074      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9075        export_dynamic_flag_spec='${wl}-Blargedynsym'
9076        ;;
9077      esac
9078    fi
9079  fi
9080
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9082$as_echo "$ld_shlibs" >&6; }
9083test "$ld_shlibs" = no && can_build_shared=no
9084
9085with_gnu_ld=$with_gnu_ld
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101#
9102# Do we need to explicitly link libc?
9103#
9104case "x$archive_cmds_need_lc" in
9105x|xyes)
9106  # Assume -lc should be added
9107  archive_cmds_need_lc=yes
9108
9109  if test "$enable_shared" = yes && test "$GCC" = yes; then
9110    case $archive_cmds in
9111    *'~'*)
9112      # FIXME: we may have to deal with multi-command sequences.
9113      ;;
9114    '$CC '*)
9115      # Test whether the compiler implicitly links with -lc since on some
9116      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9117      # to ld, don't add -lc before -lgcc.
9118      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9119$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9120if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9121  $as_echo_n "(cached) " >&6
9122else
9123  $RM conftest*
9124        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9125
9126        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9127  (eval $ac_compile) 2>&5
9128  ac_status=$?
9129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9130  test $ac_status = 0; } 2>conftest.err; then
9131          soname=conftest
9132          lib=conftest
9133          libobjs=conftest.$ac_objext
9134          deplibs=
9135          wl=$lt_prog_compiler_wl
9136          pic_flag=$lt_prog_compiler_pic
9137          compiler_flags=-v
9138          linker_flags=-v
9139          verstring=
9140          output_objdir=.
9141          libname=conftest
9142          lt_save_allow_undefined_flag=$allow_undefined_flag
9143          allow_undefined_flag=
9144          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9145  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9146  ac_status=$?
9147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9148  test $ac_status = 0; }
9149          then
9150            lt_cv_archive_cmds_need_lc=no
9151          else
9152            lt_cv_archive_cmds_need_lc=yes
9153          fi
9154          allow_undefined_flag=$lt_save_allow_undefined_flag
9155        else
9156          cat conftest.err 1>&5
9157        fi
9158        $RM conftest*
9159
9160fi
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9162$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9163      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9164      ;;
9165    esac
9166  fi
9167  ;;
9168esac
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9327$as_echo_n "checking dynamic linker characteristics... " >&6; }
9328
9329if test "$GCC" = yes; then
9330  case $host_os in
9331    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9332    *) lt_awk_arg="/^libraries:/" ;;
9333  esac
9334  case $host_os in
9335    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9336    *) lt_sed_strip_eq="s,=/,/,g" ;;
9337  esac
9338  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9339  case $lt_search_path_spec in
9340  *\;*)
9341    # if the path contains ";" then we assume it to be the separator
9342    # otherwise default to the standard path separator (i.e. ":") - it is
9343    # assumed that no part of a normal pathname contains ";" but that should
9344    # okay in the real world where ";" in dirpaths is itself problematic.
9345    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9346    ;;
9347  *)
9348    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9349    ;;
9350  esac
9351  # Ok, now we have the path, separated by spaces, we can step through it
9352  # and add multilib dir if necessary.
9353  lt_tmp_lt_search_path_spec=
9354  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9355  for lt_sys_path in $lt_search_path_spec; do
9356    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9357      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9358    else
9359      test -d "$lt_sys_path" && \
9360        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9361    fi
9362  done
9363  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9364BEGIN {RS=" "; FS="/|\n";} {
9365  lt_foo="";
9366  lt_count=0;
9367  for (lt_i = NF; lt_i > 0; lt_i--) {
9368    if ($lt_i != "" && $lt_i != ".") {
9369      if ($lt_i == "..") {
9370        lt_count++;
9371      } else {
9372        if (lt_count == 0) {
9373          lt_foo="/" $lt_i lt_foo;
9374        } else {
9375          lt_count--;
9376        }
9377      }
9378    }
9379  }
9380  if (lt_foo != "") { lt_freq[lt_foo]++; }
9381  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9382}'`
9383  # AWK program above erroneously prepends '/' to C:/dos/paths
9384  # for these hosts.
9385  case $host_os in
9386    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9387      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9388  esac
9389  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9390else
9391  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9392fi
9393library_names_spec=
9394libname_spec='lib$name'
9395soname_spec=
9396shrext_cmds=".so"
9397postinstall_cmds=
9398postuninstall_cmds=
9399finish_cmds=
9400finish_eval=
9401shlibpath_var=
9402shlibpath_overrides_runpath=unknown
9403version_type=none
9404dynamic_linker="$host_os ld.so"
9405sys_lib_dlsearch_path_spec="/lib /usr/lib"
9406need_lib_prefix=unknown
9407hardcode_into_libs=no
9408
9409# when you set need_version to no, make sure it does not cause -set_version
9410# flags to be left without arguments
9411need_version=unknown
9412
9413case $host_os in
9414aix3*)
9415  version_type=linux
9416  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9417  shlibpath_var=LIBPATH
9418
9419  # AIX 3 has no versioning support, so we append a major version to the name.
9420  soname_spec='${libname}${release}${shared_ext}$major'
9421  ;;
9422
9423aix[4-9]*)
9424  version_type=linux
9425  need_lib_prefix=no
9426  need_version=no
9427  hardcode_into_libs=yes
9428  if test "$host_cpu" = ia64; then
9429    # AIX 5 supports IA64
9430    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9431    shlibpath_var=LD_LIBRARY_PATH
9432  else
9433    # With GCC up to 2.95.x, collect2 would create an import file
9434    # for dependence libraries.  The import file would start with
9435    # the line `#! .'.  This would cause the generated library to
9436    # depend on `.', always an invalid library.  This was fixed in
9437    # development snapshots of GCC prior to 3.0.
9438    case $host_os in
9439      aix4 | aix4.[01] | aix4.[01].*)
9440      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9441           echo ' yes '
9442           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9443        :
9444      else
9445        can_build_shared=no
9446      fi
9447      ;;
9448    esac
9449    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9450    # soname into executable. Probably we can add versioning support to
9451    # collect2, so additional links can be useful in future.
9452    if test "$aix_use_runtimelinking" = yes; then
9453      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9454      # instead of lib<name>.a to let people know that these are not
9455      # typical AIX shared libraries.
9456      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457    else
9458      # We preserve .a as extension for shared libraries through AIX4.2
9459      # and later when we are not doing run time linking.
9460      library_names_spec='${libname}${release}.a $libname.a'
9461      soname_spec='${libname}${release}${shared_ext}$major'
9462    fi
9463    shlibpath_var=LIBPATH
9464  fi
9465  ;;
9466
9467amigaos*)
9468  case $host_cpu in
9469  powerpc)
9470    # Since July 2007 AmigaOS4 officially supports .so libraries.
9471    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9472    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473    ;;
9474  m68k)
9475    library_names_spec='$libname.ixlibrary $libname.a'
9476    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9477    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9478    ;;
9479  esac
9480  ;;
9481
9482beos*)
9483  library_names_spec='${libname}${shared_ext}'
9484  dynamic_linker="$host_os ld.so"
9485  shlibpath_var=LIBRARY_PATH
9486  ;;
9487
9488bsdi[45]*)
9489  version_type=linux
9490  need_version=no
9491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492  soname_spec='${libname}${release}${shared_ext}$major'
9493  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9494  shlibpath_var=LD_LIBRARY_PATH
9495  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9496  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9497  # the default ld.so.conf also contains /usr/contrib/lib and
9498  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9499  # libtool to hard-code these into programs
9500  ;;
9501
9502cygwin* | mingw* | pw32* | cegcc*)
9503  version_type=windows
9504  shrext_cmds=".dll"
9505  need_version=no
9506  need_lib_prefix=no
9507
9508  case $GCC,$host_os in
9509  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9510    library_names_spec='$libname.dll.a'
9511    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9512    postinstall_cmds='base_file=`basename \${file}`~
9513      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9514      dldir=$destdir/`dirname \$dlpath`~
9515      test -d \$dldir || mkdir -p \$dldir~
9516      $install_prog $dir/$dlname \$dldir/$dlname~
9517      chmod a+x \$dldir/$dlname~
9518      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9519        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9520      fi'
9521    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9522      dlpath=$dir/\$dldll~
9523       $RM \$dlpath'
9524    shlibpath_overrides_runpath=yes
9525
9526    case $host_os in
9527    cygwin*)
9528      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9529      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9530
9531      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9532      ;;
9533    mingw* | cegcc*)
9534      # MinGW DLLs use traditional 'lib' prefix
9535      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9536      ;;
9537    pw32*)
9538      # pw32 DLLs use 'pw' prefix rather than 'lib'
9539      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9540      ;;
9541    esac
9542    ;;
9543
9544  *)
9545    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9546    ;;
9547  esac
9548  dynamic_linker='Win32 ld.exe'
9549  # FIXME: first we should search . and the directory the executable is in
9550  shlibpath_var=PATH
9551  ;;
9552
9553darwin* | rhapsody*)
9554  dynamic_linker="$host_os dyld"
9555  version_type=darwin
9556  need_lib_prefix=no
9557  need_version=no
9558  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9559  soname_spec='${libname}${release}${major}$shared_ext'
9560  shlibpath_overrides_runpath=yes
9561  shlibpath_var=DYLD_LIBRARY_PATH
9562  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9563
9564  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9565  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9566  ;;
9567
9568dgux*)
9569  version_type=linux
9570  need_lib_prefix=no
9571  need_version=no
9572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9573  soname_spec='${libname}${release}${shared_ext}$major'
9574  shlibpath_var=LD_LIBRARY_PATH
9575  ;;
9576
9577freebsd1*)
9578  dynamic_linker=no
9579  ;;
9580
9581freebsd* | dragonfly*)
9582  # DragonFly does not have aout.  When/if they implement a new
9583  # versioning mechanism, adjust this.
9584  if test -x /usr/bin/objformat; then
9585    objformat=`/usr/bin/objformat`
9586  else
9587    case $host_os in
9588    freebsd[123]*) objformat=aout ;;
9589    *) objformat=elf ;;
9590    esac
9591  fi
9592  version_type=freebsd-$objformat
9593  case $version_type in
9594    freebsd-elf*)
9595      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9596      need_version=no
9597      need_lib_prefix=no
9598      ;;
9599    freebsd-*)
9600      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9601      need_version=yes
9602      ;;
9603  esac
9604  shlibpath_var=LD_LIBRARY_PATH
9605  case $host_os in
9606  freebsd2*)
9607    shlibpath_overrides_runpath=yes
9608    ;;
9609  freebsd3.[01]* | freebsdelf3.[01]*)
9610    shlibpath_overrides_runpath=yes
9611    hardcode_into_libs=yes
9612    ;;
9613  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9614  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9615    shlibpath_overrides_runpath=no
9616    hardcode_into_libs=yes
9617    ;;
9618  *) # from 4.6 on, and DragonFly
9619    shlibpath_overrides_runpath=yes
9620    hardcode_into_libs=yes
9621    ;;
9622  esac
9623  ;;
9624
9625gnu*)
9626  version_type=linux
9627  need_lib_prefix=no
9628  need_version=no
9629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9630  soname_spec='${libname}${release}${shared_ext}$major'
9631  shlibpath_var=LD_LIBRARY_PATH
9632  hardcode_into_libs=yes
9633  ;;
9634
9635haiku*)
9636  version_type=linux
9637  need_lib_prefix=no
9638  need_version=no
9639  dynamic_linker="$host_os runtime_loader"
9640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9641  soname_spec='${libname}${release}${shared_ext}$major'
9642  shlibpath_var=LIBRARY_PATH
9643  shlibpath_overrides_runpath=yes
9644  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9645  hardcode_into_libs=yes
9646  ;;
9647
9648hpux9* | hpux10* | hpux11*)
9649  # Give a soname corresponding to the major version so that dld.sl refuses to
9650  # link against other versions.
9651  version_type=sunos
9652  need_lib_prefix=no
9653  need_version=no
9654  case $host_cpu in
9655  ia64*)
9656    shrext_cmds='.so'
9657    hardcode_into_libs=yes
9658    dynamic_linker="$host_os dld.so"
9659    shlibpath_var=LD_LIBRARY_PATH
9660    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9661    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662    soname_spec='${libname}${release}${shared_ext}$major'
9663    if test "X$HPUX_IA64_MODE" = X32; then
9664      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9665    else
9666      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9667    fi
9668    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9669    ;;
9670  hppa*64*)
9671    shrext_cmds='.sl'
9672    hardcode_into_libs=yes
9673    dynamic_linker="$host_os dld.sl"
9674    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9675    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9676    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677    soname_spec='${libname}${release}${shared_ext}$major'
9678    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9679    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9680    ;;
9681  *)
9682    shrext_cmds='.sl'
9683    dynamic_linker="$host_os dld.sl"
9684    shlibpath_var=SHLIB_PATH
9685    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9686    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687    soname_spec='${libname}${release}${shared_ext}$major'
9688    ;;
9689  esac
9690  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9691  postinstall_cmds='chmod 555 $lib'
9692  # or fails outright, so override atomically:
9693  install_override_mode=555
9694  ;;
9695
9696interix[3-9]*)
9697  version_type=linux
9698  need_lib_prefix=no
9699  need_version=no
9700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9701  soname_spec='${libname}${release}${shared_ext}$major'
9702  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9703  shlibpath_var=LD_LIBRARY_PATH
9704  shlibpath_overrides_runpath=no
9705  hardcode_into_libs=yes
9706  ;;
9707
9708irix5* | irix6* | nonstopux*)
9709  case $host_os in
9710    nonstopux*) version_type=nonstopux ;;
9711    *)
9712        if test "$lt_cv_prog_gnu_ld" = yes; then
9713                version_type=linux
9714        else
9715                version_type=irix
9716        fi ;;
9717  esac
9718  need_lib_prefix=no
9719  need_version=no
9720  soname_spec='${libname}${release}${shared_ext}$major'
9721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9722  case $host_os in
9723  irix5* | nonstopux*)
9724    libsuff= shlibsuff=
9725    ;;
9726  *)
9727    case $LD in # libtool.m4 will add one of these switches to LD
9728    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9729      libsuff= shlibsuff= libmagic=32-bit;;
9730    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9731      libsuff=32 shlibsuff=N32 libmagic=N32;;
9732    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9733      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9734    *) libsuff= shlibsuff= libmagic=never-match;;
9735    esac
9736    ;;
9737  esac
9738  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9739  shlibpath_overrides_runpath=no
9740  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9741  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9742  hardcode_into_libs=yes
9743  ;;
9744
9745# No shared lib support for Linux oldld, aout, or coff.
9746linux*oldld* | linux*aout* | linux*coff*)
9747  dynamic_linker=no
9748  ;;
9749
9750# This must be Linux ELF.
9751linux* | k*bsd*-gnu | kopensolaris*-gnu)
9752  version_type=linux
9753  need_lib_prefix=no
9754  need_version=no
9755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756  soname_spec='${libname}${release}${shared_ext}$major'
9757  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9758  shlibpath_var=LD_LIBRARY_PATH
9759  shlibpath_overrides_runpath=no
9760
9761  # Some binutils ld are patched to set DT_RUNPATH
9762  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9763  $as_echo_n "(cached) " >&6
9764else
9765  lt_cv_shlibpath_overrides_runpath=no
9766    save_LDFLAGS=$LDFLAGS
9767    save_libdir=$libdir
9768    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9769         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9770    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771/* end confdefs.h.  */
9772
9773int
9774main ()
9775{
9776
9777  ;
9778  return 0;
9779}
9780_ACEOF
9781if ac_fn_c_try_link "$LINENO"; then :
9782  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9783  lt_cv_shlibpath_overrides_runpath=yes
9784fi
9785fi
9786rm -f core conftest.err conftest.$ac_objext \
9787    conftest$ac_exeext conftest.$ac_ext
9788    LDFLAGS=$save_LDFLAGS
9789    libdir=$save_libdir
9790
9791fi
9792
9793  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9794
9795  # This implies no fast_install, which is unacceptable.
9796  # Some rework will be needed to allow for fast_install
9797  # before this can be enabled.
9798  hardcode_into_libs=yes
9799
9800  # Append ld.so.conf contents to the search path
9801  if test -f /etc/ld.so.conf; then
9802    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
9803    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9804  fi
9805
9806  # We used to test for /lib/ld.so.1 and disable shared libraries on
9807  # powerpc, because MkLinux only supported shared libraries with the
9808  # GNU dynamic linker.  Since this was broken with cross compilers,
9809  # most powerpc-linux boxes support dynamic linking these days and
9810  # people can always --disable-shared, the test was removed, and we
9811  # assume the GNU/Linux dynamic linker is in use.
9812  dynamic_linker='GNU/Linux ld.so'
9813  ;;
9814
9815netbsd*)
9816  version_type=sunos
9817  need_lib_prefix=no
9818  need_version=no
9819  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9820    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9821    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9822    dynamic_linker='NetBSD (a.out) ld.so'
9823  else
9824    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9825    soname_spec='${libname}${release}${shared_ext}$major'
9826    dynamic_linker='NetBSD ld.elf_so'
9827  fi
9828  shlibpath_var=LD_LIBRARY_PATH
9829  shlibpath_overrides_runpath=yes
9830  hardcode_into_libs=yes
9831  ;;
9832
9833newsos6)
9834  version_type=linux
9835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9836  shlibpath_var=LD_LIBRARY_PATH
9837  shlibpath_overrides_runpath=yes
9838  ;;
9839
9840*nto* | *qnx*)
9841  version_type=qnx
9842  need_lib_prefix=no
9843  need_version=no
9844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9845  soname_spec='${libname}${release}${shared_ext}$major'
9846  shlibpath_var=LD_LIBRARY_PATH
9847  shlibpath_overrides_runpath=no
9848  hardcode_into_libs=yes
9849  dynamic_linker='ldqnx.so'
9850  ;;
9851
9852openbsd*)
9853  version_type=sunos
9854  sys_lib_dlsearch_path_spec="/usr/lib"
9855  need_lib_prefix=no
9856  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9857  case $host_os in
9858    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9859    *)                          need_version=no  ;;
9860  esac
9861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9862  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9863  shlibpath_var=LD_LIBRARY_PATH
9864  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9865    case $host_os in
9866      openbsd2.[89] | openbsd2.[89].*)
9867        shlibpath_overrides_runpath=no
9868        ;;
9869      *)
9870        shlibpath_overrides_runpath=yes
9871        ;;
9872      esac
9873  else
9874    shlibpath_overrides_runpath=yes
9875  fi
9876  ;;
9877
9878os2*)
9879  libname_spec='$name'
9880  shrext_cmds=".dll"
9881  need_lib_prefix=no
9882  library_names_spec='$libname${shared_ext} $libname.a'
9883  dynamic_linker='OS/2 ld.exe'
9884  shlibpath_var=LIBPATH
9885  ;;
9886
9887osf3* | osf4* | osf5*)
9888  version_type=osf
9889  need_lib_prefix=no
9890  need_version=no
9891  soname_spec='${libname}${release}${shared_ext}$major'
9892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893  shlibpath_var=LD_LIBRARY_PATH
9894  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9895  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9896  ;;
9897
9898rdos*)
9899  dynamic_linker=no
9900  ;;
9901
9902solaris*)
9903  version_type=linux
9904  need_lib_prefix=no
9905  need_version=no
9906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907  soname_spec='${libname}${release}${shared_ext}$major'
9908  shlibpath_var=LD_LIBRARY_PATH
9909  shlibpath_overrides_runpath=yes
9910  hardcode_into_libs=yes
9911  # ldd complains unless libraries are executable
9912  postinstall_cmds='chmod +x $lib'
9913  ;;
9914
9915sunos4*)
9916  version_type=sunos
9917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9918  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9919  shlibpath_var=LD_LIBRARY_PATH
9920  shlibpath_overrides_runpath=yes
9921  if test "$with_gnu_ld" = yes; then
9922    need_lib_prefix=no
9923  fi
9924  need_version=yes
9925  ;;
9926
9927sysv4 | sysv4.3*)
9928  version_type=linux
9929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930  soname_spec='${libname}${release}${shared_ext}$major'
9931  shlibpath_var=LD_LIBRARY_PATH
9932  case $host_vendor in
9933    sni)
9934      shlibpath_overrides_runpath=no
9935      need_lib_prefix=no
9936      runpath_var=LD_RUN_PATH
9937      ;;
9938    siemens)
9939      need_lib_prefix=no
9940      ;;
9941    motorola)
9942      need_lib_prefix=no
9943      need_version=no
9944      shlibpath_overrides_runpath=no
9945      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9946      ;;
9947  esac
9948  ;;
9949
9950sysv4*MP*)
9951  if test -d /usr/nec ;then
9952    version_type=linux
9953    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9954    soname_spec='$libname${shared_ext}.$major'
9955    shlibpath_var=LD_LIBRARY_PATH
9956  fi
9957  ;;
9958
9959sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9960  version_type=freebsd-elf
9961  need_lib_prefix=no
9962  need_version=no
9963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9964  soname_spec='${libname}${release}${shared_ext}$major'
9965  shlibpath_var=LD_LIBRARY_PATH
9966  shlibpath_overrides_runpath=yes
9967  hardcode_into_libs=yes
9968  if test "$with_gnu_ld" = yes; then
9969    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9970  else
9971    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9972    case $host_os in
9973      sco3.2v5*)
9974        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9975        ;;
9976    esac
9977  fi
9978  sys_lib_dlsearch_path_spec='/usr/lib'
9979  ;;
9980
9981tpf*)
9982  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9983  version_type=linux
9984  need_lib_prefix=no
9985  need_version=no
9986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987  shlibpath_var=LD_LIBRARY_PATH
9988  shlibpath_overrides_runpath=no
9989  hardcode_into_libs=yes
9990  ;;
9991
9992uts4*)
9993  version_type=linux
9994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995  soname_spec='${libname}${release}${shared_ext}$major'
9996  shlibpath_var=LD_LIBRARY_PATH
9997  ;;
9998
9999*)
10000  dynamic_linker=no
10001  ;;
10002esac
10003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10004$as_echo "$dynamic_linker" >&6; }
10005test "$dynamic_linker" = no && can_build_shared=no
10006
10007variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10008if test "$GCC" = yes; then
10009  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10010fi
10011
10012if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10013  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10014fi
10015if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10016  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10017fi
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10111$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10112hardcode_action=
10113if test -n "$hardcode_libdir_flag_spec" ||
10114   test -n "$runpath_var" ||
10115   test "X$hardcode_automatic" = "Xyes" ; then
10116
10117  # We can hardcode non-existent directories.
10118  if test "$hardcode_direct" != no &&
10119     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10120     # have to relink, otherwise we might link with an installed library
10121     # when we should be linking with a yet-to-be-installed one
10122     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10123     test "$hardcode_minus_L" != no; then
10124    # Linking always hardcodes the temporary library directory.
10125    hardcode_action=relink
10126  else
10127    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10128    hardcode_action=immediate
10129  fi
10130else
10131  # We cannot hardcode anything, or else we can only hardcode existing
10132  # directories.
10133  hardcode_action=unsupported
10134fi
10135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10136$as_echo "$hardcode_action" >&6; }
10137
10138if test "$hardcode_action" = relink ||
10139   test "$inherit_rpath" = yes; then
10140  # Fast installation is not supported
10141  enable_fast_install=no
10142elif test "$shlibpath_overrides_runpath" = yes ||
10143     test "$enable_shared" = no; then
10144  # Fast installation is not necessary
10145  enable_fast_install=needless
10146fi
10147
10148
10149
10150
10151
10152
10153  if test "x$enable_dlopen" != xyes; then
10154  enable_dlopen=unknown
10155  enable_dlopen_self=unknown
10156  enable_dlopen_self_static=unknown
10157else
10158  lt_cv_dlopen=no
10159  lt_cv_dlopen_libs=
10160
10161  case $host_os in
10162  beos*)
10163    lt_cv_dlopen="load_add_on"
10164    lt_cv_dlopen_libs=
10165    lt_cv_dlopen_self=yes
10166    ;;
10167
10168  mingw* | pw32* | cegcc*)
10169    lt_cv_dlopen="LoadLibrary"
10170    lt_cv_dlopen_libs=
10171    ;;
10172
10173  cygwin*)
10174    lt_cv_dlopen="dlopen"
10175    lt_cv_dlopen_libs=
10176    ;;
10177
10178  darwin*)
10179  # if libdl is installed we need to link against it
10180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10181$as_echo_n "checking for dlopen in -ldl... " >&6; }
10182if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10183  $as_echo_n "(cached) " >&6
10184else
10185  ac_check_lib_save_LIBS=$LIBS
10186LIBS="-ldl  $LIBS"
10187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188/* end confdefs.h.  */
10189
10190/* Override any GCC internal prototype to avoid an error.
10191   Use char because int might match the return type of a GCC
10192   builtin and then its argument prototype would still apply.  */
10193#ifdef __cplusplus
10194extern "C"
10195#endif
10196char dlopen ();
10197int
10198main ()
10199{
10200return dlopen ();
10201  ;
10202  return 0;
10203}
10204_ACEOF
10205if ac_fn_c_try_link "$LINENO"; then :
10206  ac_cv_lib_dl_dlopen=yes
10207else
10208  ac_cv_lib_dl_dlopen=no
10209fi
10210rm -f core conftest.err conftest.$ac_objext \
10211    conftest$ac_exeext conftest.$ac_ext
10212LIBS=$ac_check_lib_save_LIBS
10213fi
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10215$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10216if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10217  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10218else
10219
10220    lt_cv_dlopen="dyld"
10221    lt_cv_dlopen_libs=
10222    lt_cv_dlopen_self=yes
10223
10224fi
10225
10226    ;;
10227
10228  *)
10229    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10230if test "x$ac_cv_func_shl_load" = x""yes; then :
10231  lt_cv_dlopen="shl_load"
10232else
10233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10234$as_echo_n "checking for shl_load in -ldld... " >&6; }
10235if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10236  $as_echo_n "(cached) " >&6
10237else
10238  ac_check_lib_save_LIBS=$LIBS
10239LIBS="-ldld  $LIBS"
10240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h.  */
10242
10243/* Override any GCC internal prototype to avoid an error.
10244   Use char because int might match the return type of a GCC
10245   builtin and then its argument prototype would still apply.  */
10246#ifdef __cplusplus
10247extern "C"
10248#endif
10249char shl_load ();
10250int
10251main ()
10252{
10253return shl_load ();
10254  ;
10255  return 0;
10256}
10257_ACEOF
10258if ac_fn_c_try_link "$LINENO"; then :
10259  ac_cv_lib_dld_shl_load=yes
10260else
10261  ac_cv_lib_dld_shl_load=no
10262fi
10263rm -f core conftest.err conftest.$ac_objext \
10264    conftest$ac_exeext conftest.$ac_ext
10265LIBS=$ac_check_lib_save_LIBS
10266fi
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10268$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10269if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10270  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10271else
10272  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10273if test "x$ac_cv_func_dlopen" = x""yes; then :
10274  lt_cv_dlopen="dlopen"
10275else
10276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10277$as_echo_n "checking for dlopen in -ldl... " >&6; }
10278if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10279  $as_echo_n "(cached) " >&6
10280else
10281  ac_check_lib_save_LIBS=$LIBS
10282LIBS="-ldl  $LIBS"
10283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284/* end confdefs.h.  */
10285
10286/* Override any GCC internal prototype to avoid an error.
10287   Use char because int might match the return type of a GCC
10288   builtin and then its argument prototype would still apply.  */
10289#ifdef __cplusplus
10290extern "C"
10291#endif
10292char dlopen ();
10293int
10294main ()
10295{
10296return dlopen ();
10297  ;
10298  return 0;
10299}
10300_ACEOF
10301if ac_fn_c_try_link "$LINENO"; then :
10302  ac_cv_lib_dl_dlopen=yes
10303else
10304  ac_cv_lib_dl_dlopen=no
10305fi
10306rm -f core conftest.err conftest.$ac_objext \
10307    conftest$ac_exeext conftest.$ac_ext
10308LIBS=$ac_check_lib_save_LIBS
10309fi
10310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10311$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10312if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10313  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10314else
10315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10316$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10317if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10318  $as_echo_n "(cached) " >&6
10319else
10320  ac_check_lib_save_LIBS=$LIBS
10321LIBS="-lsvld  $LIBS"
10322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323/* end confdefs.h.  */
10324
10325/* Override any GCC internal prototype to avoid an error.
10326   Use char because int might match the return type of a GCC
10327   builtin and then its argument prototype would still apply.  */
10328#ifdef __cplusplus
10329extern "C"
10330#endif
10331char dlopen ();
10332int
10333main ()
10334{
10335return dlopen ();
10336  ;
10337  return 0;
10338}
10339_ACEOF
10340if ac_fn_c_try_link "$LINENO"; then :
10341  ac_cv_lib_svld_dlopen=yes
10342else
10343  ac_cv_lib_svld_dlopen=no
10344fi
10345rm -f core conftest.err conftest.$ac_objext \
10346    conftest$ac_exeext conftest.$ac_ext
10347LIBS=$ac_check_lib_save_LIBS
10348fi
10349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10350$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10351if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10352  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10353else
10354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10355$as_echo_n "checking for dld_link in -ldld... " >&6; }
10356if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10357  $as_echo_n "(cached) " >&6
10358else
10359  ac_check_lib_save_LIBS=$LIBS
10360LIBS="-ldld  $LIBS"
10361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362/* end confdefs.h.  */
10363
10364/* Override any GCC internal prototype to avoid an error.
10365   Use char because int might match the return type of a GCC
10366   builtin and then its argument prototype would still apply.  */
10367#ifdef __cplusplus
10368extern "C"
10369#endif
10370char dld_link ();
10371int
10372main ()
10373{
10374return dld_link ();
10375  ;
10376  return 0;
10377}
10378_ACEOF
10379if ac_fn_c_try_link "$LINENO"; then :
10380  ac_cv_lib_dld_dld_link=yes
10381else
10382  ac_cv_lib_dld_dld_link=no
10383fi
10384rm -f core conftest.err conftest.$ac_objext \
10385    conftest$ac_exeext conftest.$ac_ext
10386LIBS=$ac_check_lib_save_LIBS
10387fi
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10389$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10390if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10391  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10392fi
10393
10394
10395fi
10396
10397
10398fi
10399
10400
10401fi
10402
10403
10404fi
10405
10406
10407fi
10408
10409    ;;
10410  esac
10411
10412  if test "x$lt_cv_dlopen" != xno; then
10413    enable_dlopen=yes
10414  else
10415    enable_dlopen=no
10416  fi
10417
10418  case $lt_cv_dlopen in
10419  dlopen)
10420    save_CPPFLAGS="$CPPFLAGS"
10421    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10422
10423    save_LDFLAGS="$LDFLAGS"
10424    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10425
10426    save_LIBS="$LIBS"
10427    LIBS="$lt_cv_dlopen_libs $LIBS"
10428
10429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10430$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10431if test "${lt_cv_dlopen_self+set}" = set; then :
10432  $as_echo_n "(cached) " >&6
10433else
10434          if test "$cross_compiling" = yes; then :
10435  lt_cv_dlopen_self=cross
10436else
10437  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10438  lt_status=$lt_dlunknown
10439  cat > conftest.$ac_ext <<_LT_EOF
10440#line $LINENO "configure"
10441#include "confdefs.h"
10442
10443#if HAVE_DLFCN_H
10444#include <dlfcn.h>
10445#endif
10446
10447#include <stdio.h>
10448
10449#ifdef RTLD_GLOBAL
10450#  define LT_DLGLOBAL           RTLD_GLOBAL
10451#else
10452#  ifdef DL_GLOBAL
10453#    define LT_DLGLOBAL         DL_GLOBAL
10454#  else
10455#    define LT_DLGLOBAL         0
10456#  endif
10457#endif
10458
10459/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10460   find out it does not work in some platform. */
10461#ifndef LT_DLLAZY_OR_NOW
10462#  ifdef RTLD_LAZY
10463#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10464#  else
10465#    ifdef DL_LAZY
10466#      define LT_DLLAZY_OR_NOW          DL_LAZY
10467#    else
10468#      ifdef RTLD_NOW
10469#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10470#      else
10471#        ifdef DL_NOW
10472#          define LT_DLLAZY_OR_NOW      DL_NOW
10473#        else
10474#          define LT_DLLAZY_OR_NOW      0
10475#        endif
10476#      endif
10477#    endif
10478#  endif
10479#endif
10480
10481/* When -fvisbility=hidden is used, assume the code has been annotated
10482   correspondingly for the symbols needed.  */
10483#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10484void fnord () __attribute__((visibility("default")));
10485#endif
10486
10487void fnord () { int i=42; }
10488int main ()
10489{
10490  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10491  int status = $lt_dlunknown;
10492
10493  if (self)
10494    {
10495      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10496      else
10497        {
10498          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10499          else puts (dlerror ());
10500        }
10501      /* dlclose (self); */
10502    }
10503  else
10504    puts (dlerror ());
10505
10506  return status;
10507}
10508_LT_EOF
10509  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10510  (eval $ac_link) 2>&5
10511  ac_status=$?
10512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10514    (./conftest; exit; ) >&5 2>/dev/null
10515    lt_status=$?
10516    case x$lt_status in
10517      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10518      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10519      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10520    esac
10521  else :
10522    # compilation failed
10523    lt_cv_dlopen_self=no
10524  fi
10525fi
10526rm -fr conftest*
10527
10528
10529fi
10530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10531$as_echo "$lt_cv_dlopen_self" >&6; }
10532
10533    if test "x$lt_cv_dlopen_self" = xyes; then
10534      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10535      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10536$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10537if test "${lt_cv_dlopen_self_static+set}" = set; then :
10538  $as_echo_n "(cached) " >&6
10539else
10540          if test "$cross_compiling" = yes; then :
10541  lt_cv_dlopen_self_static=cross
10542else
10543  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10544  lt_status=$lt_dlunknown
10545  cat > conftest.$ac_ext <<_LT_EOF
10546#line $LINENO "configure"
10547#include "confdefs.h"
10548
10549#if HAVE_DLFCN_H
10550#include <dlfcn.h>
10551#endif
10552
10553#include <stdio.h>
10554
10555#ifdef RTLD_GLOBAL
10556#  define LT_DLGLOBAL           RTLD_GLOBAL
10557#else
10558#  ifdef DL_GLOBAL
10559#    define LT_DLGLOBAL         DL_GLOBAL
10560#  else
10561#    define LT_DLGLOBAL         0
10562#  endif
10563#endif
10564
10565/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10566   find out it does not work in some platform. */
10567#ifndef LT_DLLAZY_OR_NOW
10568#  ifdef RTLD_LAZY
10569#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10570#  else
10571#    ifdef DL_LAZY
10572#      define LT_DLLAZY_OR_NOW          DL_LAZY
10573#    else
10574#      ifdef RTLD_NOW
10575#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10576#      else
10577#        ifdef DL_NOW
10578#          define LT_DLLAZY_OR_NOW      DL_NOW
10579#        else
10580#          define LT_DLLAZY_OR_NOW      0
10581#        endif
10582#      endif
10583#    endif
10584#  endif
10585#endif
10586
10587/* When -fvisbility=hidden is used, assume the code has been annotated
10588   correspondingly for the symbols needed.  */
10589#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10590void fnord () __attribute__((visibility("default")));
10591#endif
10592
10593void fnord () { int i=42; }
10594int main ()
10595{
10596  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10597  int status = $lt_dlunknown;
10598
10599  if (self)
10600    {
10601      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10602      else
10603        {
10604          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10605          else puts (dlerror ());
10606        }
10607      /* dlclose (self); */
10608    }
10609  else
10610    puts (dlerror ());
10611
10612  return status;
10613}
10614_LT_EOF
10615  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10616  (eval $ac_link) 2>&5
10617  ac_status=$?
10618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10619  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10620    (./conftest; exit; ) >&5 2>/dev/null
10621    lt_status=$?
10622    case x$lt_status in
10623      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10624      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10625      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10626    esac
10627  else :
10628    # compilation failed
10629    lt_cv_dlopen_self_static=no
10630  fi
10631fi
10632rm -fr conftest*
10633
10634
10635fi
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10637$as_echo "$lt_cv_dlopen_self_static" >&6; }
10638    fi
10639
10640    CPPFLAGS="$save_CPPFLAGS"
10641    LDFLAGS="$save_LDFLAGS"
10642    LIBS="$save_LIBS"
10643    ;;
10644  esac
10645
10646  case $lt_cv_dlopen_self in
10647  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10648  *) enable_dlopen_self=unknown ;;
10649  esac
10650
10651  case $lt_cv_dlopen_self_static in
10652  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10653  *) enable_dlopen_self_static=unknown ;;
10654  esac
10655fi
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673striplib=
10674old_striplib=
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10676$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10677if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10678  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10679  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681$as_echo "yes" >&6; }
10682else
10683# FIXME - insert some real tests, host_os isn't really good enough
10684  case $host_os in
10685  darwin*)
10686    if test -n "$STRIP" ; then
10687      striplib="$STRIP -x"
10688      old_striplib="$STRIP -S"
10689      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10690$as_echo "yes" >&6; }
10691    else
10692      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693$as_echo "no" >&6; }
10694    fi
10695    ;;
10696  *)
10697    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698$as_echo "no" >&6; }
10699    ;;
10700  esac
10701fi
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714  # Report which library types will actually be built
10715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10716$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10718$as_echo "$can_build_shared" >&6; }
10719
10720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10721$as_echo_n "checking whether to build shared libraries... " >&6; }
10722  test "$can_build_shared" = "no" && enable_shared=no
10723
10724  # On AIX, shared libraries and static libraries use the same namespace, and
10725  # are all built from PIC.
10726  case $host_os in
10727  aix3*)
10728    test "$enable_shared" = yes && enable_static=no
10729    if test -n "$RANLIB"; then
10730      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10731      postinstall_cmds='$RANLIB $lib'
10732    fi
10733    ;;
10734
10735  aix[4-9]*)
10736    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10737      test "$enable_shared" = yes && enable_static=no
10738    fi
10739    ;;
10740  esac
10741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10742$as_echo "$enable_shared" >&6; }
10743
10744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10745$as_echo_n "checking whether to build static libraries... " >&6; }
10746  # Make sure either enable_shared or enable_static is yes.
10747  test "$enable_shared" = yes || enable_static=yes
10748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10749$as_echo "$enable_static" >&6; }
10750
10751
10752
10753
10754fi
10755ac_ext=c
10756ac_cpp='$CPP $CPPFLAGS'
10757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759ac_compiler_gnu=$ac_cv_c_compiler_gnu
10760
10761CC="$lt_save_CC"
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775        ac_config_commands="$ac_config_commands libtool"
10776
10777
10778
10779
10780# Only expand once:
10781
10782
10783
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
10785$as_echo_n "checking for exp in -lm... " >&6; }
10786if test "${ac_cv_lib_m_exp+set}" = set; then :
10787  $as_echo_n "(cached) " >&6
10788else
10789  ac_check_lib_save_LIBS=$LIBS
10790LIBS="-lm  $LIBS"
10791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792/* end confdefs.h.  */
10793
10794/* Override any GCC internal prototype to avoid an error.
10795   Use char because int might match the return type of a GCC
10796   builtin and then its argument prototype would still apply.  */
10797#ifdef __cplusplus
10798extern "C"
10799#endif
10800char exp ();
10801int
10802main ()
10803{
10804return exp ();
10805  ;
10806  return 0;
10807}
10808_ACEOF
10809if ac_fn_c_try_link "$LINENO"; then :
10810  ac_cv_lib_m_exp=yes
10811else
10812  ac_cv_lib_m_exp=no
10813fi
10814rm -f core conftest.err conftest.$ac_objext \
10815    conftest$ac_exeext conftest.$ac_ext
10816LIBS=$ac_check_lib_save_LIBS
10817fi
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
10819$as_echo "$ac_cv_lib_m_exp" >&6; }
10820if test "x$ac_cv_lib_m_exp" = x""yes; then :
10821  cat >>confdefs.h <<_ACEOF
10822#define HAVE_LIBM 1
10823_ACEOF
10824
10825  LIBS="-lm $LIBS"
10826
10827fi
10828
10829
10830ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
10831if test "x$ac_cv_header_sys_time_h" = x""yes; then :
10832
10833$as_echo "#define HAVE_SYS_TIME_H 1" >>confdefs.h
10834
10835fi
10836
10837
10838
10839ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
10840if test "x$ac_cv_func_gettimeofday" = x""yes; then :
10841
10842$as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
10843
10844fi
10845
10846
10847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GNU MP bignum library" >&5
10848$as_echo_n "checking whether to use GNU MP bignum library... " >&6; }
10849if test "$with_gmp" = "yes"; then
10850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10851$as_echo "yes" >&6; }
10852
10853$as_echo "#define HAVE_GMP 1" >>confdefs.h
10854
10855   LIBS="-lgmp $LIBS"
10856else
10857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858$as_echo "no" >&6; }
10859fi
10860
10861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shared library support" >&5
10862$as_echo_n "checking whether to enable shared library support... " >&6; }
10863if test "$enable_dl" = "yes"; then
10864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
10865$as_echo "ltdl" >&6; }
10866
10867$as_echo "#define HAVE_LTDL 1" >>confdefs.h
10868
10869   LIBS="-lltdl $LIBS"
10870elif test "$enable_dl" = "ltdl"; then
10871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
10872$as_echo "ltdl" >&6; }
10873
10874$as_echo "#define HAVE_LTDL 1" >>confdefs.h
10875
10876   LIBS="-lltdl $LIBS"
10877elif test "$enable_dl" = "dlfcn"; then
10878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: dlfcn" >&5
10879$as_echo "dlfcn" >&6; }
10880
10881$as_echo "#define HAVE_DLFCN 1" >>confdefs.h
10882
10883else
10884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885$as_echo "no" >&6; }
10886fi
10887
10888case $host_os in
10889   darwin* | macosx*)
10890      LIBIODBC="libiodbc.dylib"
10891      LIBODBC="libodbc.dylib"
10892      LIBMYSQL="libmysqlclient.dylib"
10893      ;;
10894   *)
10895      LIBIODBC="libiodbc.so"
10896      LIBODBC="libodbc.so"
10897      LIBMYSQL="libmysqlclient.so"
10898      ;;
10899esac
10900
10901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MathProg ODBC support" >&5
10902$as_echo_n "checking whether to enable MathProg ODBC support... " >&6; }
10903if test "$enable_odbc" = "yes"; then
10904   if test "$enable_dl" = "no"; then
10905      as_fn_error "--enable-odbc requires --enable-dl" "$LINENO" 5
10906   fi
10907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10908$as_echo "yes" >&6; }
10909
10910cat >>confdefs.h <<_ACEOF
10911#define ODBC_DLNAME "$LIBIODBC"
10912_ACEOF
10913
10914elif test "$enable_odbc" = "unix"; then
10915   if test "$enable_dl" = "no"; then
10916      as_fn_error "--enable-odbc requires --enable-dl" "$LINENO" 5
10917   fi
10918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix" >&5
10919$as_echo "unix" >&6; }
10920
10921cat >>confdefs.h <<_ACEOF
10922#define ODBC_DLNAME "$LIBODBC"
10923_ACEOF
10924
10925else
10926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927$as_echo "no" >&6; }
10928fi
10929
10930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MathProg MySQL support" >&5
10931$as_echo_n "checking whether to enable MathProg MySQL support... " >&6; }
10932if test "$enable_mysql" = "yes"; then
10933   if test "$enable_dl" = "no"; then
10934      as_fn_error "--enable-mysql requires --enable-dl" "$LINENO" 5
10935   fi
10936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10937$as_echo "yes" >&6; }
10938   CPPFLAGS="-I/usr/include/mysql $CPPFLAGS"
10939
10940cat >>confdefs.h <<_ACEOF
10941#define MYSQL_DLNAME "$LIBMYSQL"
10942_ACEOF
10943
10944else
10945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946$as_echo "no" >&6; }
10947fi
10948
10949ac_config_files="$ac_config_files src/Makefile examples/Makefile Makefile"
10950
10951cat >confcache <<\_ACEOF
10952# This file is a shell script that caches the results of configure
10953# tests run on this system so they can be shared between configure
10954# scripts and configure runs, see configure's option --config-cache.
10955# It is not useful on other systems.  If it contains results you don't
10956# want to keep, you may remove or edit it.
10957#
10958# config.status only pays attention to the cache file if you give it
10959# the --recheck option to rerun configure.
10960#
10961# `ac_cv_env_foo' variables (set or unset) will be overridden when
10962# loading this file, other *unset* `ac_cv_foo' will be assigned the
10963# following values.
10964
10965_ACEOF
10966
10967# The following way of writing the cache mishandles newlines in values,
10968# but we know of no workaround that is simple, portable, and efficient.
10969# So, we kill variables containing newlines.
10970# Ultrix sh set writes to stderr and can't be redirected directly,
10971# and sets the high bit in the cache file unless we assign to the vars.
10972(
10973  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10974    eval ac_val=\$$ac_var
10975    case $ac_val in #(
10976    *${as_nl}*)
10977      case $ac_var in #(
10978      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10979$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10980      esac
10981      case $ac_var in #(
10982      _ | IFS | as_nl) ;; #(
10983      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10984      *) { eval $ac_var=; unset $ac_var;} ;;
10985      esac ;;
10986    esac
10987  done
10988
10989  (set) 2>&1 |
10990    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10991    *${as_nl}ac_space=\ *)
10992      # `set' does not quote correctly, so add quotes: double-quote
10993      # substitution turns \\\\ into \\, and sed turns \\ into \.
10994      sed -n \
10995        "s/'/'\\\\''/g;
10996          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10997      ;; #(
10998    *)
10999      # `set' quotes correctly as required by POSIX, so do not add quotes.
11000      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11001      ;;
11002    esac |
11003    sort
11004) |
11005  sed '
11006     /^ac_cv_env_/b end
11007     t clear
11008     :clear
11009     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11010     t end
11011     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11012     :end' >>confcache
11013if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11014  if test -w "$cache_file"; then
11015    test "x$cache_file" != "x/dev/null" &&
11016      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11017$as_echo "$as_me: updating cache $cache_file" >&6;}
11018    cat confcache >$cache_file
11019  else
11020    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11021$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11022  fi
11023fi
11024rm -f confcache
11025
11026test "x$prefix" = xNONE && prefix=$ac_default_prefix
11027# Let make expand exec_prefix.
11028test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11029
11030DEFS=-DHAVE_CONFIG_H
11031
11032ac_libobjs=
11033ac_ltlibobjs=
11034for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11035  # 1. Remove the extension, and $U if already installed.
11036  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11037  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11038  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11039  #    will be set to the directory where LIBOBJS objects are built.
11040  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11041  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11042done
11043LIBOBJS=$ac_libobjs
11044
11045LTLIBOBJS=$ac_ltlibobjs
11046
11047
11048 if test -n "$EXEEXT"; then
11049  am__EXEEXT_TRUE=
11050  am__EXEEXT_FALSE='#'
11051else
11052  am__EXEEXT_TRUE='#'
11053  am__EXEEXT_FALSE=
11054fi
11055
11056if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11057  as_fn_error "conditional \"AMDEP\" was never defined.
11058Usually this means the macro was only invoked conditionally." "$LINENO" 5
11059fi
11060if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11061  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11062Usually this means the macro was only invoked conditionally." "$LINENO" 5
11063fi
11064
11065: ${CONFIG_STATUS=./config.status}
11066ac_write_fail=0
11067ac_clean_files_save=$ac_clean_files
11068ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11070$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11071as_write_fail=0
11072cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11073#! $SHELL
11074# Generated by $as_me.
11075# Run this file to recreate the current configuration.
11076# Compiler output produced by configure, useful for debugging
11077# configure, is in config.log if it exists.
11078
11079debug=false
11080ac_cs_recheck=false
11081ac_cs_silent=false
11082
11083SHELL=\${CONFIG_SHELL-$SHELL}
11084export SHELL
11085_ASEOF
11086cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11087## -------------------- ##
11088## M4sh Initialization. ##
11089## -------------------- ##
11090
11091# Be more Bourne compatible
11092DUALCASE=1; export DUALCASE # for MKS sh
11093if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11094  emulate sh
11095  NULLCMD=:
11096  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11097  # is contrary to our usage.  Disable this feature.
11098  alias -g '${1+"$@"}'='"$@"'
11099  setopt NO_GLOB_SUBST
11100else
11101  case `(set -o) 2>/dev/null` in #(
11102  *posix*) :
11103    set -o posix ;; #(
11104  *) :
11105     ;;
11106esac
11107fi
11108
11109
11110as_nl='
11111'
11112export as_nl
11113# Printing a long string crashes Solaris 7 /usr/bin/printf.
11114as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11115as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11116as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11117# Prefer a ksh shell builtin over an external printf program on Solaris,
11118# but without wasting forks for bash or zsh.
11119if test -z "$BASH_VERSION$ZSH_VERSION" \
11120    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11121  as_echo='print -r --'
11122  as_echo_n='print -rn --'
11123elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11124  as_echo='printf %s\n'
11125  as_echo_n='printf %s'
11126else
11127  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11128    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11129    as_echo_n='/usr/ucb/echo -n'
11130  else
11131    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11132    as_echo_n_body='eval
11133      arg=$1;
11134      case $arg in #(
11135      *"$as_nl"*)
11136        expr "X$arg" : "X\\(.*\\)$as_nl";
11137        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11138      esac;
11139      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11140    '
11141    export as_echo_n_body
11142    as_echo_n='sh -c $as_echo_n_body as_echo'
11143  fi
11144  export as_echo_body
11145  as_echo='sh -c $as_echo_body as_echo'
11146fi
11147
11148# The user is always right.
11149if test "${PATH_SEPARATOR+set}" != set; then
11150  PATH_SEPARATOR=:
11151  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11152    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11153      PATH_SEPARATOR=';'
11154  }
11155fi
11156
11157
11158# IFS
11159# We need space, tab and new line, in precisely that order.  Quoting is
11160# there to prevent editors from complaining about space-tab.
11161# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11162# splitting by setting IFS to empty value.)
11163IFS=" ""        $as_nl"
11164
11165# Find who we are.  Look in the path if we contain no directory separator.
11166case $0 in #((
11167  *[\\/]* ) as_myself=$0 ;;
11168  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169for as_dir in $PATH
11170do
11171  IFS=$as_save_IFS
11172  test -z "$as_dir" && as_dir=.
11173    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11174  done
11175IFS=$as_save_IFS
11176
11177     ;;
11178esac
11179# We did not find ourselves, most probably we were run as `sh COMMAND'
11180# in which case we are not to be found in the path.
11181if test "x$as_myself" = x; then
11182  as_myself=$0
11183fi
11184if test ! -f "$as_myself"; then
11185  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11186  exit 1
11187fi
11188
11189# Unset variables that we do not need and which cause bugs (e.g. in
11190# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11191# suppresses any "Segmentation fault" message there.  '((' could
11192# trigger a bug in pdksh 5.2.14.
11193for as_var in BASH_ENV ENV MAIL MAILPATH
11194do eval test x\${$as_var+set} = xset \
11195  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11196done
11197PS1='$ '
11198PS2='> '
11199PS4='+ '
11200
11201# NLS nuisances.
11202LC_ALL=C
11203export LC_ALL
11204LANGUAGE=C
11205export LANGUAGE
11206
11207# CDPATH.
11208(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11209
11210
11211# as_fn_error ERROR [LINENO LOG_FD]
11212# ---------------------------------
11213# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11214# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11215# script with status $?, using 1 if that was 0.
11216as_fn_error ()
11217{
11218  as_status=$?; test $as_status -eq 0 && as_status=1
11219  if test "$3"; then
11220    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11221    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11222  fi
11223  $as_echo "$as_me: error: $1" >&2
11224  as_fn_exit $as_status
11225} # as_fn_error
11226
11227
11228# as_fn_set_status STATUS
11229# -----------------------
11230# Set $? to STATUS, without forking.
11231as_fn_set_status ()
11232{
11233  return $1
11234} # as_fn_set_status
11235
11236# as_fn_exit STATUS
11237# -----------------
11238# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11239as_fn_exit ()
11240{
11241  set +e
11242  as_fn_set_status $1
11243  exit $1
11244} # as_fn_exit
11245
11246# as_fn_unset VAR
11247# ---------------
11248# Portably unset VAR.
11249as_fn_unset ()
11250{
11251  { eval $1=; unset $1;}
11252}
11253as_unset=as_fn_unset
11254# as_fn_append VAR VALUE
11255# ----------------------
11256# Append the text in VALUE to the end of the definition contained in VAR. Take
11257# advantage of any shell optimizations that allow amortized linear growth over
11258# repeated appends, instead of the typical quadratic growth present in naive
11259# implementations.
11260if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11261  eval 'as_fn_append ()
11262  {
11263    eval $1+=\$2
11264  }'
11265else
11266  as_fn_append ()
11267  {
11268    eval $1=\$$1\$2
11269  }
11270fi # as_fn_append
11271
11272# as_fn_arith ARG...
11273# ------------------
11274# Perform arithmetic evaluation on the ARGs, and store the result in the
11275# global $as_val. Take advantage of shells that can avoid forks. The arguments
11276# must be portable across $(()) and expr.
11277if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11278  eval 'as_fn_arith ()
11279  {
11280    as_val=$(( $* ))
11281  }'
11282else
11283  as_fn_arith ()
11284  {
11285    as_val=`expr "$@" || test $? -eq 1`
11286  }
11287fi # as_fn_arith
11288
11289
11290if expr a : '\(a\)' >/dev/null 2>&1 &&
11291   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11292  as_expr=expr
11293else
11294  as_expr=false
11295fi
11296
11297if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11298  as_basename=basename
11299else
11300  as_basename=false
11301fi
11302
11303if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11304  as_dirname=dirname
11305else
11306  as_dirname=false
11307fi
11308
11309as_me=`$as_basename -- "$0" ||
11310$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11311         X"$0" : 'X\(//\)$' \| \
11312         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11313$as_echo X/"$0" |
11314    sed '/^.*\/\([^/][^/]*\)\/*$/{
11315            s//\1/
11316            q
11317          }
11318          /^X\/\(\/\/\)$/{
11319            s//\1/
11320            q
11321          }
11322          /^X\/\(\/\).*/{
11323            s//\1/
11324            q
11325          }
11326          s/.*/./; q'`
11327
11328# Avoid depending upon Character Ranges.
11329as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11330as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11331as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11332as_cr_digits='0123456789'
11333as_cr_alnum=$as_cr_Letters$as_cr_digits
11334
11335ECHO_C= ECHO_N= ECHO_T=
11336case `echo -n x` in #(((((
11337-n*)
11338  case `echo 'xy\c'` in
11339  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11340  xy)  ECHO_C='\c';;
11341  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11342       ECHO_T=' ';;
11343  esac;;
11344*)
11345  ECHO_N='-n';;
11346esac
11347
11348rm -f conf$$ conf$$.exe conf$$.file
11349if test -d conf$$.dir; then
11350  rm -f conf$$.dir/conf$$.file
11351else
11352  rm -f conf$$.dir
11353  mkdir conf$$.dir 2>/dev/null
11354fi
11355if (echo >conf$$.file) 2>/dev/null; then
11356  if ln -s conf$$.file conf$$ 2>/dev/null; then
11357    as_ln_s='ln -s'
11358    # ... but there are two gotchas:
11359    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11360    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11361    # In both cases, we have to default to `cp -p'.
11362    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11363      as_ln_s='cp -p'
11364  elif ln conf$$.file conf$$ 2>/dev/null; then
11365    as_ln_s=ln
11366  else
11367    as_ln_s='cp -p'
11368  fi
11369else
11370  as_ln_s='cp -p'
11371fi
11372rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11373rmdir conf$$.dir 2>/dev/null
11374
11375
11376# as_fn_mkdir_p
11377# -------------
11378# Create "$as_dir" as a directory, including parents if necessary.
11379as_fn_mkdir_p ()
11380{
11381
11382  case $as_dir in #(
11383  -*) as_dir=./$as_dir;;
11384  esac
11385  test -d "$as_dir" || eval $as_mkdir_p || {
11386    as_dirs=
11387    while :; do
11388      case $as_dir in #(
11389      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11390      *) as_qdir=$as_dir;;
11391      esac
11392      as_dirs="'$as_qdir' $as_dirs"
11393      as_dir=`$as_dirname -- "$as_dir" ||
11394$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11395         X"$as_dir" : 'X\(//\)[^/]' \| \
11396         X"$as_dir" : 'X\(//\)$' \| \
11397         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11398$as_echo X"$as_dir" |
11399    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11400            s//\1/
11401            q
11402          }
11403          /^X\(\/\/\)[^/].*/{
11404            s//\1/
11405            q
11406          }
11407          /^X\(\/\/\)$/{
11408            s//\1/
11409            q
11410          }
11411          /^X\(\/\).*/{
11412            s//\1/
11413            q
11414          }
11415          s/.*/./; q'`
11416      test -d "$as_dir" && break
11417    done
11418    test -z "$as_dirs" || eval "mkdir $as_dirs"
11419  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11420
11421
11422} # as_fn_mkdir_p
11423if mkdir -p . 2>/dev/null; then
11424  as_mkdir_p='mkdir -p "$as_dir"'
11425else
11426  test -d ./-p && rmdir ./-p
11427  as_mkdir_p=false
11428fi
11429
11430if test -x / >/dev/null 2>&1; then
11431  as_test_x='test -x'
11432else
11433  if ls -dL / >/dev/null 2>&1; then
11434    as_ls_L_option=L
11435  else
11436    as_ls_L_option=
11437  fi
11438  as_test_x='
11439    eval sh -c '\''
11440      if test -d "$1"; then
11441        test -d "$1/.";
11442      else
11443        case $1 in #(
11444        -*)set "./$1";;
11445        esac;
11446        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11447        ???[sx]*):;;*)false;;esac;fi
11448    '\'' sh
11449  '
11450fi
11451as_executable_p=$as_test_x
11452
11453# Sed expression to map a string onto a valid CPP name.
11454as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11455
11456# Sed expression to map a string onto a valid variable name.
11457as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11458
11459
11460exec 6>&1
11461## ----------------------------------- ##
11462## Main body of $CONFIG_STATUS script. ##
11463## ----------------------------------- ##
11464_ASEOF
11465test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11466
11467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11468# Save the log message, to keep $0 and so on meaningful, and to
11469# report actual input values of CONFIG_FILES etc. instead of their
11470# values after options handling.
11471ac_log="
11472This file was extended by GLPK $as_me 4.47, which was
11473generated by GNU Autoconf 2.65.  Invocation command line was
11474
11475  CONFIG_FILES    = $CONFIG_FILES
11476  CONFIG_HEADERS  = $CONFIG_HEADERS
11477  CONFIG_LINKS    = $CONFIG_LINKS
11478  CONFIG_COMMANDS = $CONFIG_COMMANDS
11479  $ $0 $@
11480
11481on `(hostname || uname -n) 2>/dev/null | sed 1q`
11482"
11483
11484_ACEOF
11485
11486case $ac_config_files in *"
11487"*) set x $ac_config_files; shift; ac_config_files=$*;;
11488esac
11489
11490case $ac_config_headers in *"
11491"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11492esac
11493
11494
11495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11496# Files that config.status was made for.
11497config_files="$ac_config_files"
11498config_headers="$ac_config_headers"
11499config_commands="$ac_config_commands"
11500
11501_ACEOF
11502
11503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11504ac_cs_usage="\
11505\`$as_me' instantiates files and other configuration actions
11506from templates according to the current configuration.  Unless the files
11507and actions are specified as TAGs, all are instantiated by default.
11508
11509Usage: $0 [OPTION]... [TAG]...
11510
11511  -h, --help       print this help, then exit
11512  -V, --version    print version number and configuration settings, then exit
11513      --config     print configuration, then exit
11514  -q, --quiet, --silent
11515                   do not print progress messages
11516  -d, --debug      don't remove temporary files
11517      --recheck    update $as_me by reconfiguring in the same conditions
11518      --file=FILE[:TEMPLATE]
11519                   instantiate the configuration file FILE
11520      --header=FILE[:TEMPLATE]
11521                   instantiate the configuration header FILE
11522
11523Configuration files:
11524$config_files
11525
11526Configuration headers:
11527$config_headers
11528
11529Configuration commands:
11530$config_commands
11531
11532Report bugs to <bug-glpk@gnu.org>."
11533
11534_ACEOF
11535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11536ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11537ac_cs_version="\\
11538GLPK config.status 4.47
11539configured by $0, generated by GNU Autoconf 2.65,
11540  with options \\"\$ac_cs_config\\"
11541
11542Copyright (C) 2009 Free Software Foundation, Inc.
11543This config.status script is free software; the Free Software Foundation
11544gives unlimited permission to copy, distribute and modify it."
11545
11546ac_pwd='$ac_pwd'
11547srcdir='$srcdir'
11548INSTALL='$INSTALL'
11549MKDIR_P='$MKDIR_P'
11550AWK='$AWK'
11551test -n "\$AWK" || AWK=awk
11552_ACEOF
11553
11554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11555# The default lists apply if the user does not specify any file.
11556ac_need_defaults=:
11557while test $# != 0
11558do
11559  case $1 in
11560  --*=*)
11561    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11562    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11563    ac_shift=:
11564    ;;
11565  *)
11566    ac_option=$1
11567    ac_optarg=$2
11568    ac_shift=shift
11569    ;;
11570  esac
11571
11572  case $ac_option in
11573  # Handling of the options.
11574  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11575    ac_cs_recheck=: ;;
11576  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11577    $as_echo "$ac_cs_version"; exit ;;
11578  --config | --confi | --conf | --con | --co | --c )
11579    $as_echo "$ac_cs_config"; exit ;;
11580  --debug | --debu | --deb | --de | --d | -d )
11581    debug=: ;;
11582  --file | --fil | --fi | --f )
11583    $ac_shift
11584    case $ac_optarg in
11585    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11586    esac
11587    as_fn_append CONFIG_FILES " '$ac_optarg'"
11588    ac_need_defaults=false;;
11589  --header | --heade | --head | --hea )
11590    $ac_shift
11591    case $ac_optarg in
11592    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11593    esac
11594    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11595    ac_need_defaults=false;;
11596  --he | --h)
11597    # Conflict between --help and --header
11598    as_fn_error "ambiguous option: \`$1'
11599Try \`$0 --help' for more information.";;
11600  --help | --hel | -h )
11601    $as_echo "$ac_cs_usage"; exit ;;
11602  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11603  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11604    ac_cs_silent=: ;;
11605
11606  # This is an error.
11607  -*) as_fn_error "unrecognized option: \`$1'
11608Try \`$0 --help' for more information." ;;
11609
11610  *) as_fn_append ac_config_targets " $1"
11611     ac_need_defaults=false ;;
11612
11613  esac
11614  shift
11615done
11616
11617ac_configure_extra_args=
11618
11619if $ac_cs_silent; then
11620  exec 6>/dev/null
11621  ac_configure_extra_args="$ac_configure_extra_args --silent"
11622fi
11623
11624_ACEOF
11625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11626if \$ac_cs_recheck; then
11627  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11628  shift
11629  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11630  CONFIG_SHELL='$SHELL'
11631  export CONFIG_SHELL
11632  exec "\$@"
11633fi
11634
11635_ACEOF
11636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11637exec 5>>config.log
11638{
11639  echo
11640  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11641## Running $as_me. ##
11642_ASBOX
11643  $as_echo "$ac_log"
11644} >&5
11645
11646_ACEOF
11647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11648#
11649# INIT-COMMANDS
11650#
11651AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11652
11653
11654# The HP-UX ksh and POSIX shell print the target directory to stdout
11655# if CDPATH is set.
11656(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11657
11658sed_quote_subst='$sed_quote_subst'
11659double_quote_subst='$double_quote_subst'
11660delay_variable_subst='$delay_variable_subst'
11661macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11662macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11663enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11664enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11665pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11666enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11667SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11668ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11669host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11670host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11671host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11672build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11673build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11674build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11675SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11676Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11677GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11678EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11679FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11680LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11681NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11682LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11683max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11684ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11685exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11686lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11687lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11688lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11689lt_cv_to_host_path_cmd='`$ECHO "$lt_cv_to_host_path_cmd" | $SED "$delay_single_quote_subst"`'
11690reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11691reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11692OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11693deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11694file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11695DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
11696sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
11697AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11698AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11699STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11700RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11701old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11702old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11703old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11704lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11705CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11706CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11707compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11708GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11709lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11710lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11711lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11712lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
11713objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11714MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11715lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11716lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11717lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11718lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11719lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11720need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11721DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11722NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11723LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11724OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11725OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11726libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11727shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11728extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11729archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11730enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11731export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11732whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11733compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11734old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11735old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11736archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11737archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11738module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11739module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11740with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11741allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11742no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11743hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11744hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11745hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11746hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11747hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11748hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11749hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11750hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11751inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11752link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11753fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11754always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11755export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11756exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11757include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11758prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11759file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11760variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11761need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11762need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11763version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11764runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11765shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11766shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11767libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11768library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11769soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11770install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11771postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11772postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11773finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11774finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11775hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11776sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11777sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11778hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11779enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11780enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11781enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11782old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11783striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11784
11785LTCC='$LTCC'
11786LTCFLAGS='$LTCFLAGS'
11787compiler='$compiler_DEFAULT'
11788
11789# A function that is used when there is no print builtin or printf.
11790func_fallback_echo ()
11791{
11792  eval 'cat <<_LTECHO_EOF
11793\$1
11794_LTECHO_EOF'
11795}
11796
11797# Quote evaled strings.
11798for var in SHELL \
11799ECHO \
11800SED \
11801GREP \
11802EGREP \
11803FGREP \
11804LD \
11805NM \
11806LN_S \
11807lt_SP2NL \
11808lt_NL2SP \
11809reload_flag \
11810OBJDUMP \
11811deplibs_check_method \
11812file_magic_cmd \
11813DLLTOOL \
11814sharedlib_from_linklib_cmd \
11815AR \
11816AR_FLAGS \
11817STRIP \
11818RANLIB \
11819CC \
11820CFLAGS \
11821compiler \
11822lt_cv_sys_global_symbol_pipe \
11823lt_cv_sys_global_symbol_to_cdecl \
11824lt_cv_sys_global_symbol_to_c_name_address \
11825lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11826lt_prog_compiler_no_builtin_flag \
11827lt_prog_compiler_wl \
11828lt_prog_compiler_pic \
11829lt_prog_compiler_static \
11830lt_cv_prog_compiler_c_o \
11831need_locks \
11832DSYMUTIL \
11833NMEDIT \
11834LIPO \
11835OTOOL \
11836OTOOL64 \
11837shrext_cmds \
11838export_dynamic_flag_spec \
11839whole_archive_flag_spec \
11840compiler_needs_object \
11841with_gnu_ld \
11842allow_undefined_flag \
11843no_undefined_flag \
11844hardcode_libdir_flag_spec \
11845hardcode_libdir_flag_spec_ld \
11846hardcode_libdir_separator \
11847fix_srcfile_path \
11848exclude_expsyms \
11849include_expsyms \
11850file_list_spec \
11851variables_saved_for_relink \
11852libname_spec \
11853library_names_spec \
11854soname_spec \
11855install_override_mode \
11856finish_eval \
11857old_striplib \
11858striplib; do
11859    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11860    *[\\\\\\\`\\"\\\$]*)
11861      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11862      ;;
11863    *)
11864      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11865      ;;
11866    esac
11867done
11868
11869# Double-quote double-evaled strings.
11870for var in reload_cmds \
11871old_postinstall_cmds \
11872old_postuninstall_cmds \
11873old_archive_cmds \
11874extract_expsyms_cmds \
11875old_archive_from_new_cmds \
11876old_archive_from_expsyms_cmds \
11877archive_cmds \
11878archive_expsym_cmds \
11879module_cmds \
11880module_expsym_cmds \
11881export_symbols_cmds \
11882prelink_cmds \
11883postinstall_cmds \
11884postuninstall_cmds \
11885finish_cmds \
11886sys_lib_search_path_spec \
11887sys_lib_dlsearch_path_spec; do
11888    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11889    *[\\\\\\\`\\"\\\$]*)
11890      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11891      ;;
11892    *)
11893      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11894      ;;
11895    esac
11896done
11897
11898ac_aux_dir='$ac_aux_dir'
11899xsi_shell='$xsi_shell'
11900lt_shell_append='$lt_shell_append'
11901
11902# See if we are running on zsh, and set the options which allow our
11903# commands through without removal of \ escapes INIT.
11904if test -n "\${ZSH_VERSION+set}" ; then
11905   setopt NO_GLOB_SUBST
11906fi
11907
11908
11909    PACKAGE='$PACKAGE'
11910    VERSION='$VERSION'
11911    TIMESTAMP='$TIMESTAMP'
11912    RM='$RM'
11913    ofile='$ofile'
11914
11915
11916
11917
11918_ACEOF
11919
11920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11921
11922# Handling of arguments.
11923for ac_config_target in $ac_config_targets
11924do
11925  case $ac_config_target in
11926    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11927    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11928    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11929    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11930    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
11931    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11932
11933  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11934  esac
11935done
11936
11937
11938# If the user did not use the arguments to specify the items to instantiate,
11939# then the envvar interface is used.  Set only those that are not.
11940# We use the long form for the default assignment because of an extremely
11941# bizarre bug on SunOS 4.1.3.
11942if $ac_need_defaults; then
11943  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11944  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11945  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11946fi
11947
11948# Have a temporary directory for convenience.  Make it in the build tree
11949# simply because there is no reason against having it here, and in addition,
11950# creating and moving files from /tmp can sometimes cause problems.
11951# Hook for its removal unless debugging.
11952# Note that there is a small window in which the directory will not be cleaned:
11953# after its creation but before its name has been assigned to `$tmp'.
11954$debug ||
11955{
11956  tmp=
11957  trap 'exit_status=$?
11958  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11959' 0
11960  trap 'as_fn_exit 1' 1 2 13 15
11961}
11962# Create a (secure) tmp directory for tmp files.
11963
11964{
11965  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11966  test -n "$tmp" && test -d "$tmp"
11967}  ||
11968{
11969  tmp=./conf$$-$RANDOM
11970  (umask 077 && mkdir "$tmp")
11971} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11972
11973# Set up the scripts for CONFIG_FILES section.
11974# No need to generate them if there are no CONFIG_FILES.
11975# This happens for instance with `./config.status config.h'.
11976if test -n "$CONFIG_FILES"; then
11977
11978
11979ac_cr=`echo X | tr X '\015'`
11980# On cygwin, bash can eat \r inside `` if the user requested igncr.
11981# But we know of no other shell where ac_cr would be empty at this
11982# point, so we can use a bashism as a fallback.
11983if test "x$ac_cr" = x; then
11984  eval ac_cr=\$\'\\r\'
11985fi
11986ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11987if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11988  ac_cs_awk_cr='\r'
11989else
11990  ac_cs_awk_cr=$ac_cr
11991fi
11992
11993echo 'BEGIN {' >"$tmp/subs1.awk" &&
11994_ACEOF
11995
11996
11997{
11998  echo "cat >conf$$subs.awk <<_ACEOF" &&
11999  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12000  echo "_ACEOF"
12001} >conf$$subs.sh ||
12002  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12003ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12004ac_delim='%!_!# '
12005for ac_last_try in false false false false false :; do
12006  . ./conf$$subs.sh ||
12007    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12008
12009  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12010  if test $ac_delim_n = $ac_delim_num; then
12011    break
12012  elif $ac_last_try; then
12013    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12014  else
12015    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12016  fi
12017done
12018rm -f conf$$subs.sh
12019
12020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12021cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12022_ACEOF
12023sed -n '
12024h
12025s/^/S["/; s/!.*/"]=/
12026p
12027g
12028s/^[^!]*!//
12029:repl
12030t repl
12031s/'"$ac_delim"'$//
12032t delim
12033:nl
12034h
12035s/\(.\{148\}\)..*/\1/
12036t more1
12037s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12038p
12039n
12040b repl
12041:more1
12042s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12043p
12044g
12045s/.\{148\}//
12046t nl
12047:delim
12048h
12049s/\(.\{148\}\)..*/\1/
12050t more2
12051s/["\\]/\\&/g; s/^/"/; s/$/"/
12052p
12053b
12054:more2
12055s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12056p
12057g
12058s/.\{148\}//
12059t delim
12060' <conf$$subs.awk | sed '
12061/^[^""]/{
12062  N
12063  s/\n//
12064}
12065' >>$CONFIG_STATUS || ac_write_fail=1
12066rm -f conf$$subs.awk
12067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12068_ACAWK
12069cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12070  for (key in S) S_is_set[key] = 1
12071  FS = ""
12072
12073}
12074{
12075  line = $ 0
12076  nfields = split(line, field, "@")
12077  substed = 0
12078  len = length(field[1])
12079  for (i = 2; i < nfields; i++) {
12080    key = field[i]
12081    keylen = length(key)
12082    if (S_is_set[key]) {
12083      value = S[key]
12084      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12085      len += length(value) + length(field[++i])
12086      substed = 1
12087    } else
12088      len += 1 + keylen
12089  }
12090
12091  print line
12092}
12093
12094_ACAWK
12095_ACEOF
12096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12097if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12098  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12099else
12100  cat
12101fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12102  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12103_ACEOF
12104
12105# VPATH may cause trouble with some makes, so we remove $(srcdir),
12106# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12107# trailing colons and then remove the whole line if VPATH becomes empty
12108# (actually we leave an empty line to preserve line numbers).
12109if test "x$srcdir" = x.; then
12110  ac_vpsub='/^[  ]*VPATH[        ]*=/{
12111s/:*\$(srcdir):*/:/
12112s/:*\${srcdir}:*/:/
12113s/:*@srcdir@:*/:/
12114s/^\([^=]*=[     ]*\):*/\1/
12115s/:*$//
12116s/^[^=]*=[       ]*$//
12117}'
12118fi
12119
12120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12121fi # test -n "$CONFIG_FILES"
12122
12123# Set up the scripts for CONFIG_HEADERS section.
12124# No need to generate them if there are no CONFIG_HEADERS.
12125# This happens for instance with `./config.status Makefile'.
12126if test -n "$CONFIG_HEADERS"; then
12127cat >"$tmp/defines.awk" <<\_ACAWK ||
12128BEGIN {
12129_ACEOF
12130
12131# Transform confdefs.h into an awk script `defines.awk', embedded as
12132# here-document in config.status, that substitutes the proper values into
12133# config.h.in to produce config.h.
12134
12135# Create a delimiter string that does not exist in confdefs.h, to ease
12136# handling of long lines.
12137ac_delim='%!_!# '
12138for ac_last_try in false false :; do
12139  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12140  if test -z "$ac_t"; then
12141    break
12142  elif $ac_last_try; then
12143    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12144  else
12145    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12146  fi
12147done
12148
12149# For the awk script, D is an array of macro values keyed by name,
12150# likewise P contains macro parameters if any.  Preserve backslash
12151# newline sequences.
12152
12153ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12154sed -n '
12155s/.\{148\}/&'"$ac_delim"'/g
12156t rset
12157:rset
12158s/^[     ]*#[    ]*define[       ][      ]*/ /
12159t def
12160d
12161:def
12162s/\\$//
12163t bsnl
12164s/["\\]/\\&/g
12165s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12166D["\1"]=" \3"/p
12167s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12168d
12169:bsnl
12170s/["\\]/\\&/g
12171s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12172D["\1"]=" \3\\\\\\n"\\/p
12173t cont
12174s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12175t cont
12176d
12177:cont
12178n
12179s/.\{148\}/&'"$ac_delim"'/g
12180t clear
12181:clear
12182s/\\$//
12183t bsnlc
12184s/["\\]/\\&/g; s/^/"/; s/$/"/p
12185d
12186:bsnlc
12187s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12188b cont
12189' <confdefs.h | sed '
12190s/'"$ac_delim"'/"\\\
12191"/g' >>$CONFIG_STATUS || ac_write_fail=1
12192
12193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12194  for (key in D) D_is_set[key] = 1
12195  FS = ""
12196}
12197/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12198  line = \$ 0
12199  split(line, arg, " ")
12200  if (arg[1] == "#") {
12201    defundef = arg[2]
12202    mac1 = arg[3]
12203  } else {
12204    defundef = substr(arg[1], 2)
12205    mac1 = arg[2]
12206  }
12207  split(mac1, mac2, "(") #)
12208  macro = mac2[1]
12209  prefix = substr(line, 1, index(line, defundef) - 1)
12210  if (D_is_set[macro]) {
12211    # Preserve the white space surrounding the "#".
12212    print prefix "define", macro P[macro] D[macro]
12213    next
12214  } else {
12215    # Replace #undef with comments.  This is necessary, for example,
12216    # in the case of _POSIX_SOURCE, which is predefined and required
12217    # on some systems where configure will not decide to define it.
12218    if (defundef == "undef") {
12219      print "/*", prefix defundef, macro, "*/"
12220      next
12221    }
12222  }
12223}
12224{ print }
12225_ACAWK
12226_ACEOF
12227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12228  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12229fi # test -n "$CONFIG_HEADERS"
12230
12231
12232eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12233shift
12234for ac_tag
12235do
12236  case $ac_tag in
12237  :[FHLC]) ac_mode=$ac_tag; continue;;
12238  esac
12239  case $ac_mode$ac_tag in
12240  :[FHL]*:*);;
12241  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12242  :[FH]-) ac_tag=-:-;;
12243  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12244  esac
12245  ac_save_IFS=$IFS
12246  IFS=:
12247  set x $ac_tag
12248  IFS=$ac_save_IFS
12249  shift
12250  ac_file=$1
12251  shift
12252
12253  case $ac_mode in
12254  :L) ac_source=$1;;
12255  :[FH])
12256    ac_file_inputs=
12257    for ac_f
12258    do
12259      case $ac_f in
12260      -) ac_f="$tmp/stdin";;
12261      *) # Look for the file first in the build tree, then in the source tree
12262         # (if the path is not absolute).  The absolute path cannot be DOS-style,
12263         # because $ac_f cannot contain `:'.
12264         test -f "$ac_f" ||
12265           case $ac_f in
12266           [\\/$]*) false;;
12267           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12268           esac ||
12269           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12270      esac
12271      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12272      as_fn_append ac_file_inputs " '$ac_f'"
12273    done
12274
12275    # Let's still pretend it is `configure' which instantiates (i.e., don't
12276    # use $as_me), people would be surprised to read:
12277    #    /* config.h.  Generated by config.status.  */
12278    configure_input='Generated from '`
12279          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12280        `' by configure.'
12281    if test x"$ac_file" != x-; then
12282      configure_input="$ac_file.  $configure_input"
12283      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12284$as_echo "$as_me: creating $ac_file" >&6;}
12285    fi
12286    # Neutralize special characters interpreted by sed in replacement strings.
12287    case $configure_input in #(
12288    *\&* | *\|* | *\\* )
12289       ac_sed_conf_input=`$as_echo "$configure_input" |
12290       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12291    *) ac_sed_conf_input=$configure_input;;
12292    esac
12293
12294    case $ac_tag in
12295    *:-:* | *:-) cat >"$tmp/stdin" \
12296      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12297    esac
12298    ;;
12299  esac
12300
12301  ac_dir=`$as_dirname -- "$ac_file" ||
12302$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12303         X"$ac_file" : 'X\(//\)[^/]' \| \
12304         X"$ac_file" : 'X\(//\)$' \| \
12305         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12306$as_echo X"$ac_file" |
12307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12308            s//\1/
12309            q
12310          }
12311          /^X\(\/\/\)[^/].*/{
12312            s//\1/
12313            q
12314          }
12315          /^X\(\/\/\)$/{
12316            s//\1/
12317            q
12318          }
12319          /^X\(\/\).*/{
12320            s//\1/
12321            q
12322          }
12323          s/.*/./; q'`
12324  as_dir="$ac_dir"; as_fn_mkdir_p
12325  ac_builddir=.
12326
12327case "$ac_dir" in
12328.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12329*)
12330  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12331  # A ".." for each directory in $ac_dir_suffix.
12332  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12333  case $ac_top_builddir_sub in
12334  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12335  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12336  esac ;;
12337esac
12338ac_abs_top_builddir=$ac_pwd
12339ac_abs_builddir=$ac_pwd$ac_dir_suffix
12340# for backward compatibility:
12341ac_top_builddir=$ac_top_build_prefix
12342
12343case $srcdir in
12344  .)  # We are building in place.
12345    ac_srcdir=.
12346    ac_top_srcdir=$ac_top_builddir_sub
12347    ac_abs_top_srcdir=$ac_pwd ;;
12348  [\\/]* | ?:[\\/]* )  # Absolute name.
12349    ac_srcdir=$srcdir$ac_dir_suffix;
12350    ac_top_srcdir=$srcdir
12351    ac_abs_top_srcdir=$srcdir ;;
12352  *) # Relative name.
12353    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12354    ac_top_srcdir=$ac_top_build_prefix$srcdir
12355    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12356esac
12357ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12358
12359
12360  case $ac_mode in
12361  :F)
12362  #
12363  # CONFIG_FILE
12364  #
12365
12366  case $INSTALL in
12367  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12368  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12369  esac
12370  ac_MKDIR_P=$MKDIR_P
12371  case $MKDIR_P in
12372  [\\/$]* | ?:[\\/]* ) ;;
12373  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12374  esac
12375_ACEOF
12376
12377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12378# If the template does not know about datarootdir, expand it.
12379# FIXME: This hack should be removed a few years after 2.60.
12380ac_datarootdir_hack=; ac_datarootdir_seen=
12381ac_sed_dataroot='
12382/datarootdir/ {
12383  p
12384  q
12385}
12386/@datadir@/p
12387/@docdir@/p
12388/@infodir@/p
12389/@localedir@/p
12390/@mandir@/p'
12391case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12392*datarootdir*) ac_datarootdir_seen=yes;;
12393*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12394  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12395$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12396_ACEOF
12397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12398  ac_datarootdir_hack='
12399  s&@datadir@&$datadir&g
12400  s&@docdir@&$docdir&g
12401  s&@infodir@&$infodir&g
12402  s&@localedir@&$localedir&g
12403  s&@mandir@&$mandir&g
12404  s&\\\${datarootdir}&$datarootdir&g' ;;
12405esac
12406_ACEOF
12407
12408# Neutralize VPATH when `$srcdir' = `.'.
12409# Shell code in configure.ac might set extrasub.
12410# FIXME: do we really want to maintain this feature?
12411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12412ac_sed_extra="$ac_vpsub
12413$extrasub
12414_ACEOF
12415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12416:t
12417/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12418s|@configure_input@|$ac_sed_conf_input|;t t
12419s&@top_builddir@&$ac_top_builddir_sub&;t t
12420s&@top_build_prefix@&$ac_top_build_prefix&;t t
12421s&@srcdir@&$ac_srcdir&;t t
12422s&@abs_srcdir@&$ac_abs_srcdir&;t t
12423s&@top_srcdir@&$ac_top_srcdir&;t t
12424s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12425s&@builddir@&$ac_builddir&;t t
12426s&@abs_builddir@&$ac_abs_builddir&;t t
12427s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12428s&@INSTALL@&$ac_INSTALL&;t t
12429s&@MKDIR_P@&$ac_MKDIR_P&;t t
12430$ac_datarootdir_hack
12431"
12432eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12433  || as_fn_error "could not create $ac_file" "$LINENO" 5
12434
12435test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12436  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12437  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12438  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12439which seems to be undefined.  Please make sure it is defined." >&5
12440$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12441which seems to be undefined.  Please make sure it is defined." >&2;}
12442
12443  rm -f "$tmp/stdin"
12444  case $ac_file in
12445  -) cat "$tmp/out" && rm -f "$tmp/out";;
12446  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12447  esac \
12448  || as_fn_error "could not create $ac_file" "$LINENO" 5
12449 ;;
12450  :H)
12451  #
12452  # CONFIG_HEADER
12453  #
12454  if test x"$ac_file" != x-; then
12455    {
12456      $as_echo "/* $configure_input  */" \
12457      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12458    } >"$tmp/config.h" \
12459      || as_fn_error "could not create $ac_file" "$LINENO" 5
12460    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12461      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12462$as_echo "$as_me: $ac_file is unchanged" >&6;}
12463    else
12464      rm -f "$ac_file"
12465      mv "$tmp/config.h" "$ac_file" \
12466        || as_fn_error "could not create $ac_file" "$LINENO" 5
12467    fi
12468  else
12469    $as_echo "/* $configure_input  */" \
12470      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12471      || as_fn_error "could not create -" "$LINENO" 5
12472  fi
12473# Compute "$ac_file"'s index in $config_headers.
12474_am_arg="$ac_file"
12475_am_stamp_count=1
12476for _am_header in $config_headers :; do
12477  case $_am_header in
12478    $_am_arg | $_am_arg:* )
12479      break ;;
12480    * )
12481      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12482  esac
12483done
12484echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12485$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12486         X"$_am_arg" : 'X\(//\)[^/]' \| \
12487         X"$_am_arg" : 'X\(//\)$' \| \
12488         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12489$as_echo X"$_am_arg" |
12490    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12491            s//\1/
12492            q
12493          }
12494          /^X\(\/\/\)[^/].*/{
12495            s//\1/
12496            q
12497          }
12498          /^X\(\/\/\)$/{
12499            s//\1/
12500            q
12501          }
12502          /^X\(\/\).*/{
12503            s//\1/
12504            q
12505          }
12506          s/.*/./; q'`/stamp-h$_am_stamp_count
12507 ;;
12508
12509  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12510$as_echo "$as_me: executing $ac_file commands" >&6;}
12511 ;;
12512  esac
12513
12514
12515  case $ac_file$ac_mode in
12516    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12517  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12518  # are listed without --file.  Let's play safe and only enable the eval
12519  # if we detect the quoting.
12520  case $CONFIG_FILES in
12521  *\'*) eval set x "$CONFIG_FILES" ;;
12522  *)   set x $CONFIG_FILES ;;
12523  esac
12524  shift
12525  for mf
12526  do
12527    # Strip MF so we end up with the name of the file.
12528    mf=`echo "$mf" | sed -e 's/:.*$//'`
12529    # Check whether this is an Automake generated Makefile or not.
12530    # We used to match only the files named `Makefile.in', but
12531    # some people rename them; so instead we look at the file content.
12532    # Grep'ing the first line is not enough: some people post-process
12533    # each Makefile.in and add a new line on top of each file to say so.
12534    # Grep'ing the whole file is not good either: AIX grep has a line
12535    # limit of 2048, but all sed's we know have understand at least 4000.
12536    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12537      dirpart=`$as_dirname -- "$mf" ||
12538$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12539         X"$mf" : 'X\(//\)[^/]' \| \
12540         X"$mf" : 'X\(//\)$' \| \
12541         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12542$as_echo X"$mf" |
12543    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12544            s//\1/
12545            q
12546          }
12547          /^X\(\/\/\)[^/].*/{
12548            s//\1/
12549            q
12550          }
12551          /^X\(\/\/\)$/{
12552            s//\1/
12553            q
12554          }
12555          /^X\(\/\).*/{
12556            s//\1/
12557            q
12558          }
12559          s/.*/./; q'`
12560    else
12561      continue
12562    fi
12563    # Extract the definition of DEPDIR, am__include, and am__quote
12564    # from the Makefile without running `make'.
12565    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12566    test -z "$DEPDIR" && continue
12567    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12568    test -z "am__include" && continue
12569    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12570    # When using ansi2knr, U may be empty or an underscore; expand it
12571    U=`sed -n 's/^U = //p' < "$mf"`
12572    # Find all dependency output files, they are included files with
12573    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12574    # simplest approach to changing $(DEPDIR) to its actual value in the
12575    # expansion.
12576    for file in `sed -n "
12577      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12578         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12579      # Make sure the directory exists.
12580      test -f "$dirpart/$file" && continue
12581      fdir=`$as_dirname -- "$file" ||
12582$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12583         X"$file" : 'X\(//\)[^/]' \| \
12584         X"$file" : 'X\(//\)$' \| \
12585         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12586$as_echo X"$file" |
12587    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12588            s//\1/
12589            q
12590          }
12591          /^X\(\/\/\)[^/].*/{
12592            s//\1/
12593            q
12594          }
12595          /^X\(\/\/\)$/{
12596            s//\1/
12597            q
12598          }
12599          /^X\(\/\).*/{
12600            s//\1/
12601            q
12602          }
12603          s/.*/./; q'`
12604      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12605      # echo "creating $dirpart/$file"
12606      echo '# dummy' > "$dirpart/$file"
12607    done
12608  done
12609}
12610 ;;
12611    "libtool":C)
12612
12613    # See if we are running on zsh, and set the options which allow our
12614    # commands through without removal of \ escapes.
12615    if test -n "${ZSH_VERSION+set}" ; then
12616      setopt NO_GLOB_SUBST
12617    fi
12618
12619    cfgfile="${ofile}T"
12620    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12621    $RM "$cfgfile"
12622
12623    cat <<_LT_EOF >> "$cfgfile"
12624#! $SHELL
12625
12626# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12627# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12628# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12629# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12630#
12631#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12632#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12633#   Written by Gordon Matzigkeit, 1996
12634#
12635#   This file is part of GNU Libtool.
12636#
12637# GNU Libtool is free software; you can redistribute it and/or
12638# modify it under the terms of the GNU General Public License as
12639# published by the Free Software Foundation; either version 2 of
12640# the License, or (at your option) any later version.
12641#
12642# As a special exception to the GNU General Public License,
12643# if you distribute this file as part of a program or library that
12644# is built using GNU Libtool, you may include this file under the
12645# same distribution terms that you use for the rest of that program.
12646#
12647# GNU Libtool is distributed in the hope that it will be useful,
12648# but WITHOUT ANY WARRANTY; without even the implied warranty of
12649# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12650# GNU General Public License for more details.
12651#
12652# You should have received a copy of the GNU General Public License
12653# along with GNU Libtool; see the file COPYING.  If not, a copy
12654# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12655# obtained by writing to the Free Software Foundation, Inc.,
12656# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12657
12658
12659# The names of the tagged configurations supported by this script.
12660available_tags=""
12661
12662# ### BEGIN LIBTOOL CONFIG
12663
12664# Which release of libtool.m4 was used?
12665macro_version=$macro_version
12666macro_revision=$macro_revision
12667
12668# Whether or not to build shared libraries.
12669build_libtool_libs=$enable_shared
12670
12671# Whether or not to build static libraries.
12672build_old_libs=$enable_static
12673
12674# What type of objects to build.
12675pic_mode=$pic_mode
12676
12677# Whether or not to optimize for fast installation.
12678fast_install=$enable_fast_install
12679
12680# Shell to use when invoking shell scripts.
12681SHELL=$lt_SHELL
12682
12683# An echo program that protects backslashes.
12684ECHO=$lt_ECHO
12685
12686# The host system.
12687host_alias=$host_alias
12688host=$host
12689host_os=$host_os
12690
12691# The build system.
12692build_alias=$build_alias
12693build=$build
12694build_os=$build_os
12695
12696# A sed program that does not truncate output.
12697SED=$lt_SED
12698
12699# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12700Xsed="\$SED -e 1s/^X//"
12701
12702# A grep program that handles long lines.
12703GREP=$lt_GREP
12704
12705# An ERE matcher.
12706EGREP=$lt_EGREP
12707
12708# A literal string matcher.
12709FGREP=$lt_FGREP
12710
12711# A BSD- or MS-compatible name lister.
12712NM=$lt_NM
12713
12714# Whether we need soft or hard links.
12715LN_S=$lt_LN_S
12716
12717# What is the maximum length of a command?
12718max_cmd_len=$max_cmd_len
12719
12720# Object file suffix (normally "o").
12721objext=$ac_objext
12722
12723# Executable file suffix (normally "").
12724exeext=$exeext
12725
12726# whether the shell understands "unset".
12727lt_unset=$lt_unset
12728
12729# turn spaces into newlines.
12730SP2NL=$lt_lt_SP2NL
12731
12732# turn newlines into spaces.
12733NL2SP=$lt_lt_NL2SP
12734
12735# convert \$build paths to \$host format.
12736to_host_path_cmd=$lt_cv_to_host_path_cmd
12737
12738# An object symbol dumper.
12739OBJDUMP=$lt_OBJDUMP
12740
12741# Method to check whether dependent libraries are shared objects.
12742deplibs_check_method=$lt_deplibs_check_method
12743
12744# Command to use when deplibs_check_method == "file_magic".
12745file_magic_cmd=$lt_file_magic_cmd
12746
12747# DLL creation program.
12748DLLTOOL=$lt_DLLTOOL
12749
12750# Command to associate shared and link libraries.
12751sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
12752
12753# The archiver.
12754AR=$lt_AR
12755AR_FLAGS=$lt_AR_FLAGS
12756
12757# A symbol stripping program.
12758STRIP=$lt_STRIP
12759
12760# Commands used to install an old-style archive.
12761RANLIB=$lt_RANLIB
12762old_postinstall_cmds=$lt_old_postinstall_cmds
12763old_postuninstall_cmds=$lt_old_postuninstall_cmds
12764
12765# Whether to use a lock for old archive extraction.
12766lock_old_archive_extraction=$lock_old_archive_extraction
12767
12768# A C compiler.
12769LTCC=$lt_CC
12770
12771# LTCC compiler flags.
12772LTCFLAGS=$lt_CFLAGS
12773
12774# Take the output of nm and produce a listing of raw symbols and C names.
12775global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12776
12777# Transform the output of nm in a proper C declaration.
12778global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12779
12780# Transform the output of nm in a C name address pair.
12781global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12782
12783# Transform the output of nm in a C name address pair when lib prefix is needed.
12784global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12785
12786# The name of the directory that contains temporary libtool files.
12787objdir=$objdir
12788
12789# Used to examine libraries when file_magic_cmd begins with "file".
12790MAGIC_CMD=$MAGIC_CMD
12791
12792# Must we lock files when doing compilation?
12793need_locks=$lt_need_locks
12794
12795# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12796DSYMUTIL=$lt_DSYMUTIL
12797
12798# Tool to change global to local symbols on Mac OS X.
12799NMEDIT=$lt_NMEDIT
12800
12801# Tool to manipulate fat objects and archives on Mac OS X.
12802LIPO=$lt_LIPO
12803
12804# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12805OTOOL=$lt_OTOOL
12806
12807# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12808OTOOL64=$lt_OTOOL64
12809
12810# Old archive suffix (normally "a").
12811libext=$libext
12812
12813# Shared library suffix (normally ".so").
12814shrext_cmds=$lt_shrext_cmds
12815
12816# The commands to extract the exported symbol list from a shared archive.
12817extract_expsyms_cmds=$lt_extract_expsyms_cmds
12818
12819# Variables whose values should be saved in libtool wrapper scripts and
12820# restored at link time.
12821variables_saved_for_relink=$lt_variables_saved_for_relink
12822
12823# Do we need the "lib" prefix for modules?
12824need_lib_prefix=$need_lib_prefix
12825
12826# Do we need a version for libraries?
12827need_version=$need_version
12828
12829# Library versioning type.
12830version_type=$version_type
12831
12832# Shared library runtime path variable.
12833runpath_var=$runpath_var
12834
12835# Shared library path variable.
12836shlibpath_var=$shlibpath_var
12837
12838# Is shlibpath searched before the hard-coded library search path?
12839shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12840
12841# Format of library name prefix.
12842libname_spec=$lt_libname_spec
12843
12844# List of archive names.  First name is the real one, the rest are links.
12845# The last name is the one that the linker finds with -lNAME
12846library_names_spec=$lt_library_names_spec
12847
12848# The coded name of the library, if different from the real name.
12849soname_spec=$lt_soname_spec
12850
12851# Permission mode override for installation of shared libraries.
12852install_override_mode=$lt_install_override_mode
12853
12854# Command to use after installation of a shared archive.
12855postinstall_cmds=$lt_postinstall_cmds
12856
12857# Command to use after uninstallation of a shared archive.
12858postuninstall_cmds=$lt_postuninstall_cmds
12859
12860# Commands used to finish a libtool library installation in a directory.
12861finish_cmds=$lt_finish_cmds
12862
12863# As "finish_cmds", except a single script fragment to be evaled but
12864# not shown.
12865finish_eval=$lt_finish_eval
12866
12867# Whether we should hardcode library paths into libraries.
12868hardcode_into_libs=$hardcode_into_libs
12869
12870# Compile-time system search path for libraries.
12871sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12872
12873# Run-time system search path for libraries.
12874sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12875
12876# Whether dlopen is supported.
12877dlopen_support=$enable_dlopen
12878
12879# Whether dlopen of programs is supported.
12880dlopen_self=$enable_dlopen_self
12881
12882# Whether dlopen of statically linked programs is supported.
12883dlopen_self_static=$enable_dlopen_self_static
12884
12885# Commands to strip libraries.
12886old_striplib=$lt_old_striplib
12887striplib=$lt_striplib
12888
12889
12890# The linker used to build libraries.
12891LD=$lt_LD
12892
12893# How to create reloadable object files.
12894reload_flag=$lt_reload_flag
12895reload_cmds=$lt_reload_cmds
12896
12897# Commands used to build an old-style archive.
12898old_archive_cmds=$lt_old_archive_cmds
12899
12900# A language specific compiler.
12901CC=$lt_compiler
12902
12903# Is the compiler the GNU compiler?
12904with_gcc=$GCC
12905
12906# Compiler flag to turn off builtin functions.
12907no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12908
12909# How to pass a linker flag through the compiler.
12910wl=$lt_lt_prog_compiler_wl
12911
12912# Additional compiler flags for building library objects.
12913pic_flag=$lt_lt_prog_compiler_pic
12914
12915# Compiler flag to prevent dynamic linking.
12916link_static_flag=$lt_lt_prog_compiler_static
12917
12918# Does compiler simultaneously support -c and -o options?
12919compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12920
12921# Whether or not to add -lc for building shared libraries.
12922build_libtool_need_lc=$archive_cmds_need_lc
12923
12924# Whether or not to disallow shared libs when runtime libs are static.
12925allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12926
12927# Compiler flag to allow reflexive dlopens.
12928export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12929
12930# Compiler flag to generate shared objects directly from archives.
12931whole_archive_flag_spec=$lt_whole_archive_flag_spec
12932
12933# Whether the compiler copes with passing no objects directly.
12934compiler_needs_object=$lt_compiler_needs_object
12935
12936# Create an old-style archive from a shared archive.
12937old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12938
12939# Create a temporary old-style archive to link instead of a shared archive.
12940old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12941
12942# Commands used to build a shared archive.
12943archive_cmds=$lt_archive_cmds
12944archive_expsym_cmds=$lt_archive_expsym_cmds
12945
12946# Commands used to build a loadable module if different from building
12947# a shared archive.
12948module_cmds=$lt_module_cmds
12949module_expsym_cmds=$lt_module_expsym_cmds
12950
12951# Whether we are building with GNU ld or not.
12952with_gnu_ld=$lt_with_gnu_ld
12953
12954# Flag that allows shared libraries with undefined symbols to be built.
12955allow_undefined_flag=$lt_allow_undefined_flag
12956
12957# Flag that enforces no undefined symbols.
12958no_undefined_flag=$lt_no_undefined_flag
12959
12960# Flag to hardcode \$libdir into a binary during linking.
12961# This must work even if \$libdir does not exist
12962hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12963
12964# If ld is used when linking, flag to hardcode \$libdir into a binary
12965# during linking.  This must work even if \$libdir does not exist.
12966hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12967
12968# Whether we need a single "-rpath" flag with a separated argument.
12969hardcode_libdir_separator=$lt_hardcode_libdir_separator
12970
12971# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12972# DIR into the resulting binary.
12973hardcode_direct=$hardcode_direct
12974
12975# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12976# DIR into the resulting binary and the resulting library dependency is
12977# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12978# library is relocated.
12979hardcode_direct_absolute=$hardcode_direct_absolute
12980
12981# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12982# into the resulting binary.
12983hardcode_minus_L=$hardcode_minus_L
12984
12985# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12986# into the resulting binary.
12987hardcode_shlibpath_var=$hardcode_shlibpath_var
12988
12989# Set to "yes" if building a shared library automatically hardcodes DIR
12990# into the library and all subsequent libraries and executables linked
12991# against it.
12992hardcode_automatic=$hardcode_automatic
12993
12994# Set to yes if linker adds runtime paths of dependent libraries
12995# to runtime path list.
12996inherit_rpath=$inherit_rpath
12997
12998# Whether libtool must link a program against all its dependency libraries.
12999link_all_deplibs=$link_all_deplibs
13000
13001# Fix the shell variable \$srcfile for the compiler.
13002fix_srcfile_path=$lt_fix_srcfile_path
13003
13004# Set to "yes" if exported symbols are required.
13005always_export_symbols=$always_export_symbols
13006
13007# The commands to list exported symbols.
13008export_symbols_cmds=$lt_export_symbols_cmds
13009
13010# Symbols that should not be listed in the preloaded symbols.
13011exclude_expsyms=$lt_exclude_expsyms
13012
13013# Symbols that must always be exported.
13014include_expsyms=$lt_include_expsyms
13015
13016# Commands necessary for linking programs (against libraries) with templates.
13017prelink_cmds=$lt_prelink_cmds
13018
13019# Specify filename containing input files.
13020file_list_spec=$lt_file_list_spec
13021
13022# How to hardcode a shared library path into an executable.
13023hardcode_action=$hardcode_action
13024
13025# ### END LIBTOOL CONFIG
13026
13027_LT_EOF
13028
13029  case $host_os in
13030  aix3*)
13031    cat <<\_LT_EOF >> "$cfgfile"
13032# AIX sometimes has problems with the GCC collect2 program.  For some
13033# reason, if we set the COLLECT_NAMES environment variable, the problems
13034# vanish in a puff of smoke.
13035if test "X${COLLECT_NAMES+set}" != Xset; then
13036  COLLECT_NAMES=
13037  export COLLECT_NAMES
13038fi
13039_LT_EOF
13040    ;;
13041  esac
13042
13043
13044ltmain="$ac_aux_dir/ltmain.sh"
13045
13046
13047  # We use sed instead of cat because bash on DJGPP gets confused if
13048  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13049  # text mode, it properly converts lines to CR/LF.  This bash problem
13050  # is reportedly fixed, but why not run on old versions too?
13051  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13052    || (rm -f "$cfgfile"; exit 1)
13053
13054  case $xsi_shell in
13055  yes)
13056    cat << \_LT_EOF >> "$cfgfile"
13057
13058# func_dirname file append nondir_replacement
13059# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13060# otherwise set result to NONDIR_REPLACEMENT.
13061func_dirname ()
13062{
13063  case ${1} in
13064    */*) func_dirname_result="${1%/*}${2}" ;;
13065    *  ) func_dirname_result="${3}" ;;
13066  esac
13067}
13068
13069# func_basename file
13070func_basename ()
13071{
13072  func_basename_result="${1##*/}"
13073}
13074
13075# func_dirname_and_basename file append nondir_replacement
13076# perform func_basename and func_dirname in a single function
13077# call:
13078#   dirname:  Compute the dirname of FILE.  If nonempty,
13079#             add APPEND to the result, otherwise set result
13080#             to NONDIR_REPLACEMENT.
13081#             value returned in "$func_dirname_result"
13082#   basename: Compute filename of FILE.
13083#             value retuned in "$func_basename_result"
13084# Implementation must be kept synchronized with func_dirname
13085# and func_basename. For efficiency, we do not delegate to
13086# those functions but instead duplicate the functionality here.
13087func_dirname_and_basename ()
13088{
13089  case ${1} in
13090    */*) func_dirname_result="${1%/*}${2}" ;;
13091    *  ) func_dirname_result="${3}" ;;
13092  esac
13093  func_basename_result="${1##*/}"
13094}
13095
13096# func_stripname prefix suffix name
13097# strip PREFIX and SUFFIX off of NAME.
13098# PREFIX and SUFFIX must not contain globbing or regex special
13099# characters, hashes, percent signs, but SUFFIX may contain a leading
13100# dot (in which case that matches only a dot).
13101func_stripname ()
13102{
13103  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13104  # positional parameters, so assign one to ordinary parameter first.
13105  func_stripname_result=${3}
13106  func_stripname_result=${func_stripname_result#"${1}"}
13107  func_stripname_result=${func_stripname_result%"${2}"}
13108}
13109
13110# func_opt_split
13111func_opt_split ()
13112{
13113  func_opt_split_opt=${1%%=*}
13114  func_opt_split_arg=${1#*=}
13115}
13116
13117# func_lo2o object
13118func_lo2o ()
13119{
13120  case ${1} in
13121    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13122    *)    func_lo2o_result=${1} ;;
13123  esac
13124}
13125
13126# func_xform libobj-or-source
13127func_xform ()
13128{
13129  func_xform_result=${1%.*}.lo
13130}
13131
13132# func_arith arithmetic-term...
13133func_arith ()
13134{
13135  func_arith_result=$(( $* ))
13136}
13137
13138# func_len string
13139# STRING may not start with a hyphen.
13140func_len ()
13141{
13142  func_len_result=${#1}
13143}
13144
13145_LT_EOF
13146    ;;
13147  *) # Bourne compatible functions.
13148    cat << \_LT_EOF >> "$cfgfile"
13149
13150# func_dirname file append nondir_replacement
13151# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13152# otherwise set result to NONDIR_REPLACEMENT.
13153func_dirname ()
13154{
13155  # Extract subdirectory from the argument.
13156  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13157  if test "X$func_dirname_result" = "X${1}"; then
13158    func_dirname_result="${3}"
13159  else
13160    func_dirname_result="$func_dirname_result${2}"
13161  fi
13162}
13163
13164# func_basename file
13165func_basename ()
13166{
13167  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13168}
13169
13170
13171# func_stripname prefix suffix name
13172# strip PREFIX and SUFFIX off of NAME.
13173# PREFIX and SUFFIX must not contain globbing or regex special
13174# characters, hashes, percent signs, but SUFFIX may contain a leading
13175# dot (in which case that matches only a dot).
13176# func_strip_suffix prefix name
13177func_stripname ()
13178{
13179  case ${2} in
13180    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13181    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13182  esac
13183}
13184
13185# sed scripts:
13186my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13187my_sed_long_arg='1s/^-[^=]*=//'
13188
13189# func_opt_split
13190func_opt_split ()
13191{
13192  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13193  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13194}
13195
13196# func_lo2o object
13197func_lo2o ()
13198{
13199  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13200}
13201
13202# func_xform libobj-or-source
13203func_xform ()
13204{
13205  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13206}
13207
13208# func_arith arithmetic-term...
13209func_arith ()
13210{
13211  func_arith_result=`expr "$@"`
13212}
13213
13214# func_len string
13215# STRING may not start with a hyphen.
13216func_len ()
13217{
13218  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13219}
13220
13221_LT_EOF
13222esac
13223
13224case $lt_shell_append in
13225  yes)
13226    cat << \_LT_EOF >> "$cfgfile"
13227
13228# func_append var value
13229# Append VALUE to the end of shell variable VAR.
13230func_append ()
13231{
13232  eval "$1+=\$2"
13233}
13234_LT_EOF
13235    ;;
13236  *)
13237    cat << \_LT_EOF >> "$cfgfile"
13238
13239# func_append var value
13240# Append VALUE to the end of shell variable VAR.
13241func_append ()
13242{
13243  eval "$1=\$$1\$2"
13244}
13245
13246_LT_EOF
13247    ;;
13248  esac
13249
13250
13251  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13252    || (rm -f "$cfgfile"; exit 1)
13253
13254  mv -f "$cfgfile" "$ofile" ||
13255    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13256  chmod +x "$ofile"
13257
13258 ;;
13259
13260  esac
13261done # for ac_tag
13262
13263
13264as_fn_exit 0
13265_ACEOF
13266ac_clean_files=$ac_clean_files_save
13267
13268test $ac_write_fail = 0 ||
13269  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13270
13271
13272# configure is writing to config.log, and then calls config.status.
13273# config.status does its own redirection, appending to config.log.
13274# Unfortunately, on DOS this fails, as config.log is still kept open
13275# by configure, so config.status won't be able to write to it; its
13276# output is simply discarded.  So we exec the FD to /dev/null,
13277# effectively closing config.log, so it can be properly (re)opened and
13278# appended to by config.status.  When coming back to configure, we
13279# need to make the FD available again.
13280if test "$no_create" != yes; then
13281  ac_cs_success=:
13282  ac_config_status_args=
13283  test "$silent" = yes &&
13284    ac_config_status_args="$ac_config_status_args --quiet"
13285  exec 5>/dev/null
13286  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13287  exec 5>>config.log
13288  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13289  # would make configure fail if this is the last instruction.
13290  $ac_cs_success || as_fn_exit $?
13291fi
13292if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13293  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13294$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13295fi
13296
13297
Note: See TracBrowser for help on using the repository browser.