xref: /iperf/configure (revision ba7b91d2)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for iperf 3.0a5.
4#
5# Report bugs to <https://code.google.com/p/iperf/>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$lt_ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565ECHO=${lt_ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $ECHO works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<_LT_EOF
584$*
585_LT_EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$lt_ECHO"; then
594  if test "X${echo_test_string+set}" != Xset; then
595    # find a string as large as possible, as long as the shell can cope with it
596    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600      then
601        break
602      fi
603    done
604  fi
605
606  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608     test "X$echo_testing_string" = "X$echo_test_string"; then
609    :
610  else
611    # The Solaris, AIX, and Digital Unix default echo programs unquote
612    # backslashes.  This makes it impossible to quote backslashes using
613    #   echo "$something" | sed 's/\\/\\\\/g'
614    #
615    # So, first we look for a working echo in the user's PATH.
616
617    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618    for dir in $PATH /usr/ucb; do
619      IFS="$lt_save_ifs"
620      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623         test "X$echo_testing_string" = "X$echo_test_string"; then
624        ECHO="$dir/echo"
625        break
626      fi
627    done
628    IFS="$lt_save_ifs"
629
630    if test "X$ECHO" = Xecho; then
631      # We didn't find a better echo, so look for alternatives.
632      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634         test "X$echo_testing_string" = "X$echo_test_string"; then
635        # This shell has a builtin print -r that does the trick.
636        ECHO='print -r'
637      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638	   test "X$CONFIG_SHELL" != X/bin/ksh; then
639        # If we have ksh, try running configure again with it.
640        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641        export ORIGINAL_CONFIG_SHELL
642        CONFIG_SHELL=/bin/ksh
643        export CONFIG_SHELL
644        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645      else
646        # Try using printf.
647        ECHO='printf %s\n'
648        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650	   test "X$echo_testing_string" = "X$echo_test_string"; then
651	  # Cool, printf works
652	  :
653        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654	     test "X$echo_testing_string" = 'X\t' &&
655	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656	     test "X$echo_testing_string" = "X$echo_test_string"; then
657	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658	  export CONFIG_SHELL
659	  SHELL="$CONFIG_SHELL"
660	  export SHELL
661	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
662        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663	     test "X$echo_testing_string" = 'X\t' &&
664	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665	     test "X$echo_testing_string" = "X$echo_test_string"; then
666	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
667        else
668	  # maybe with a smaller string...
669	  prev=:
670
671	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673	    then
674	      break
675	    fi
676	    prev="$cmd"
677	  done
678
679	  if test "$prev" != 'sed 50q "$0"'; then
680	    echo_test_string=`eval $prev`
681	    export echo_test_string
682	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683	  else
684	    # Oops.  We lost completely, so just stick with echo.
685	    ECHO=echo
686	  fi
687        fi
688      fi
689    fi
690  fi
691fi
692
693# Copy echo and quote the copy suitably for passing to libtool from
694# the Makefile, instead of quoting the original, which is used later.
695lt_ECHO=$ECHO
696if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698fi
699
700
701
702
703exec 7<&0 </dev/null 6>&1
704
705# Name of the host.
706# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707# so uname gets run too.
708ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
710#
711# Initializations.
712#
713ac_default_prefix=/usr/local
714ac_clean_files=
715ac_config_libobj_dir=.
716LIBOBJS=
717cross_compiling=no
718subdirs=
719MFLAGS=
720MAKEFLAGS=
721SHELL=${CONFIG_SHELL-/bin/sh}
722
723# Identity of this package.
724PACKAGE_NAME='iperf'
725PACKAGE_TARNAME='iperf'
726PACKAGE_VERSION='3.0a5'
727PACKAGE_STRING='iperf 3.0a5'
728PACKAGE_BUGREPORT='https://code.google.com/p/iperf/'
729
730# Factoring default headers for most tests.
731ac_includes_default="\
732#include <stdio.h>
733#ifdef HAVE_SYS_TYPES_H
734# include <sys/types.h>
735#endif
736#ifdef HAVE_SYS_STAT_H
737# include <sys/stat.h>
738#endif
739#ifdef STDC_HEADERS
740# include <stdlib.h>
741# include <stddef.h>
742#else
743# ifdef HAVE_STDLIB_H
744#  include <stdlib.h>
745# endif
746#endif
747#ifdef HAVE_STRING_H
748# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
749#  include <memory.h>
750# endif
751# include <string.h>
752#endif
753#ifdef HAVE_STRINGS_H
754# include <strings.h>
755#endif
756#ifdef HAVE_INTTYPES_H
757# include <inttypes.h>
758#endif
759#ifdef HAVE_STDINT_H
760# include <stdint.h>
761#endif
762#ifdef HAVE_UNISTD_H
763# include <unistd.h>
764#endif"
765
766ac_subst_vars='SHELL
767PATH_SEPARATOR
768PACKAGE_NAME
769PACKAGE_TARNAME
770PACKAGE_VERSION
771PACKAGE_STRING
772PACKAGE_BUGREPORT
773exec_prefix
774prefix
775program_transform_name
776bindir
777sbindir
778libexecdir
779datarootdir
780datadir
781sysconfdir
782sharedstatedir
783localstatedir
784includedir
785oldincludedir
786docdir
787infodir
788htmldir
789dvidir
790pdfdir
791psdir
792libdir
793localedir
794mandir
795DEFS
796ECHO_C
797ECHO_N
798ECHO_T
799LIBS
800build_alias
801host_alias
802target_alias
803INSTALL_PROGRAM
804INSTALL_SCRIPT
805INSTALL_DATA
806am__isrc
807CYGPATH_W
808PACKAGE
809VERSION
810ACLOCAL
811AUTOCONF
812AUTOMAKE
813AUTOHEADER
814MAKEINFO
815install_sh
816STRIP
817INSTALL_STRIP_PROGRAM
818mkdir_p
819AWK
820SET_MAKE
821am__leading_dot
822AMTAR
823am__tar
824am__untar
825build
826build_cpu
827build_vendor
828build_os
829host
830host_cpu
831host_vendor
832host_os
833CC
834CFLAGS
835LDFLAGS
836CPPFLAGS
837ac_ct_CC
838EXEEXT
839OBJEXT
840DEPDIR
841am__include
842am__quote
843AMDEP_TRUE
844AMDEP_FALSE
845AMDEPBACKSLASH
846CCDEPMODE
847am__fastdepCC_TRUE
848am__fastdepCC_FALSE
849RANLIB
850LN_S
851LIBTOOL
852SED
853GREP
854EGREP
855FGREP
856LD
857DUMPBIN
858ac_ct_DUMPBIN
859NM
860AR
861lt_ECHO
862DSYMUTIL
863NMEDIT
864LIPO
865OTOOL
866OTOOL64
867CPP
868LINUX_TRUE
869LINUX_FALSE
870LIBOBJS
871LTLIBOBJS'
872ac_subst_files=''
873      ac_precious_vars='build_alias
874host_alias
875target_alias
876CC
877CFLAGS
878LDFLAGS
879LIBS
880CPPFLAGS
881CPP'
882
883
884# Initialize some variables set by options.
885ac_init_help=
886ac_init_version=false
887# The variables have the same names as the options, with
888# dashes changed to underlines.
889cache_file=/dev/null
890exec_prefix=NONE
891no_create=
892no_recursion=
893prefix=NONE
894program_prefix=NONE
895program_suffix=NONE
896program_transform_name=s,x,x,
897silent=
898site=
899srcdir=
900verbose=
901x_includes=NONE
902x_libraries=NONE
903
904# Installation directory options.
905# These are left unexpanded so users can "make install exec_prefix=/foo"
906# and all the variables that are supposed to be based on exec_prefix
907# by default will actually change.
908# Use braces instead of parens because sh, perl, etc. also accept them.
909# (The list follows the same order as the GNU Coding Standards.)
910bindir='${exec_prefix}/bin'
911sbindir='${exec_prefix}/sbin'
912libexecdir='${exec_prefix}/libexec'
913datarootdir='${prefix}/share'
914datadir='${datarootdir}'
915sysconfdir='${prefix}/etc'
916sharedstatedir='${prefix}/com'
917localstatedir='${prefix}/var'
918includedir='${prefix}/include'
919oldincludedir='/usr/include'
920docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
921infodir='${datarootdir}/info'
922htmldir='${docdir}'
923dvidir='${docdir}'
924pdfdir='${docdir}'
925psdir='${docdir}'
926libdir='${exec_prefix}/lib'
927localedir='${datarootdir}/locale'
928mandir='${datarootdir}/man'
929
930ac_prev=
931ac_dashdash=
932for ac_option
933do
934  # If the previous option needs an argument, assign it.
935  if test -n "$ac_prev"; then
936    eval $ac_prev=\$ac_option
937    ac_prev=
938    continue
939  fi
940
941  case $ac_option in
942  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943  *)	ac_optarg=yes ;;
944  esac
945
946  # Accept the important Cygnus configure options, so we can diagnose typos.
947
948  case $ac_dashdash$ac_option in
949  --)
950    ac_dashdash=yes ;;
951
952  -bindir | --bindir | --bindi | --bind | --bin | --bi)
953    ac_prev=bindir ;;
954  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955    bindir=$ac_optarg ;;
956
957  -build | --build | --buil | --bui | --bu)
958    ac_prev=build_alias ;;
959  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960    build_alias=$ac_optarg ;;
961
962  -cache-file | --cache-file | --cache-fil | --cache-fi \
963  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964    ac_prev=cache_file ;;
965  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967    cache_file=$ac_optarg ;;
968
969  --config-cache | -C)
970    cache_file=config.cache ;;
971
972  -datadir | --datadir | --datadi | --datad)
973    ac_prev=datadir ;;
974  -datadir=* | --datadir=* | --datadi=* | --datad=*)
975    datadir=$ac_optarg ;;
976
977  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978  | --dataroo | --dataro | --datar)
979    ac_prev=datarootdir ;;
980  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982    datarootdir=$ac_optarg ;;
983
984  -disable-* | --disable-*)
985    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986    # Reject names that are not valid shell variable names.
987    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
988      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
989   { (exit 1); exit 1; }; }
990    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
991    eval enable_$ac_feature=no ;;
992
993  -docdir | --docdir | --docdi | --doc | --do)
994    ac_prev=docdir ;;
995  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996    docdir=$ac_optarg ;;
997
998  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999    ac_prev=dvidir ;;
1000  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001    dvidir=$ac_optarg ;;
1002
1003  -enable-* | --enable-*)
1004    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005    # Reject names that are not valid shell variable names.
1006    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008   { (exit 1); exit 1; }; }
1009    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1010    eval enable_$ac_feature=\$ac_optarg ;;
1011
1012  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014  | --exec | --exe | --ex)
1015    ac_prev=exec_prefix ;;
1016  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018  | --exec=* | --exe=* | --ex=*)
1019    exec_prefix=$ac_optarg ;;
1020
1021  -gas | --gas | --ga | --g)
1022    # Obsolete; use --with-gas.
1023    with_gas=yes ;;
1024
1025  -help | --help | --hel | --he | -h)
1026    ac_init_help=long ;;
1027  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028    ac_init_help=recursive ;;
1029  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030    ac_init_help=short ;;
1031
1032  -host | --host | --hos | --ho)
1033    ac_prev=host_alias ;;
1034  -host=* | --host=* | --hos=* | --ho=*)
1035    host_alias=$ac_optarg ;;
1036
1037  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038    ac_prev=htmldir ;;
1039  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040  | --ht=*)
1041    htmldir=$ac_optarg ;;
1042
1043  -includedir | --includedir | --includedi | --included | --include \
1044  | --includ | --inclu | --incl | --inc)
1045    ac_prev=includedir ;;
1046  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047  | --includ=* | --inclu=* | --incl=* | --inc=*)
1048    includedir=$ac_optarg ;;
1049
1050  -infodir | --infodir | --infodi | --infod | --info | --inf)
1051    ac_prev=infodir ;;
1052  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053    infodir=$ac_optarg ;;
1054
1055  -libdir | --libdir | --libdi | --libd)
1056    ac_prev=libdir ;;
1057  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058    libdir=$ac_optarg ;;
1059
1060  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061  | --libexe | --libex | --libe)
1062    ac_prev=libexecdir ;;
1063  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064  | --libexe=* | --libex=* | --libe=*)
1065    libexecdir=$ac_optarg ;;
1066
1067  -localedir | --localedir | --localedi | --localed | --locale)
1068    ac_prev=localedir ;;
1069  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070    localedir=$ac_optarg ;;
1071
1072  -localstatedir | --localstatedir | --localstatedi | --localstated \
1073  | --localstate | --localstat | --localsta | --localst | --locals)
1074    ac_prev=localstatedir ;;
1075  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077    localstatedir=$ac_optarg ;;
1078
1079  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080    ac_prev=mandir ;;
1081  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082    mandir=$ac_optarg ;;
1083
1084  -nfp | --nfp | --nf)
1085    # Obsolete; use --without-fp.
1086    with_fp=no ;;
1087
1088  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089  | --no-cr | --no-c | -n)
1090    no_create=yes ;;
1091
1092  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094    no_recursion=yes ;;
1095
1096  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098  | --oldin | --oldi | --old | --ol | --o)
1099    ac_prev=oldincludedir ;;
1100  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103    oldincludedir=$ac_optarg ;;
1104
1105  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106    ac_prev=prefix ;;
1107  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108    prefix=$ac_optarg ;;
1109
1110  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111  | --program-pre | --program-pr | --program-p)
1112    ac_prev=program_prefix ;;
1113  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115    program_prefix=$ac_optarg ;;
1116
1117  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118  | --program-suf | --program-su | --program-s)
1119    ac_prev=program_suffix ;;
1120  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122    program_suffix=$ac_optarg ;;
1123
1124  -program-transform-name | --program-transform-name \
1125  | --program-transform-nam | --program-transform-na \
1126  | --program-transform-n | --program-transform- \
1127  | --program-transform | --program-transfor \
1128  | --program-transfo | --program-transf \
1129  | --program-trans | --program-tran \
1130  | --progr-tra | --program-tr | --program-t)
1131    ac_prev=program_transform_name ;;
1132  -program-transform-name=* | --program-transform-name=* \
1133  | --program-transform-nam=* | --program-transform-na=* \
1134  | --program-transform-n=* | --program-transform-=* \
1135  | --program-transform=* | --program-transfor=* \
1136  | --program-transfo=* | --program-transf=* \
1137  | --program-trans=* | --program-tran=* \
1138  | --progr-tra=* | --program-tr=* | --program-t=*)
1139    program_transform_name=$ac_optarg ;;
1140
1141  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142    ac_prev=pdfdir ;;
1143  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144    pdfdir=$ac_optarg ;;
1145
1146  -psdir | --psdir | --psdi | --psd | --ps)
1147    ac_prev=psdir ;;
1148  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149    psdir=$ac_optarg ;;
1150
1151  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152  | -silent | --silent | --silen | --sile | --sil)
1153    silent=yes ;;
1154
1155  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156    ac_prev=sbindir ;;
1157  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158  | --sbi=* | --sb=*)
1159    sbindir=$ac_optarg ;;
1160
1161  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163  | --sharedst | --shareds | --shared | --share | --shar \
1164  | --sha | --sh)
1165    ac_prev=sharedstatedir ;;
1166  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169  | --sha=* | --sh=*)
1170    sharedstatedir=$ac_optarg ;;
1171
1172  -site | --site | --sit)
1173    ac_prev=site ;;
1174  -site=* | --site=* | --sit=*)
1175    site=$ac_optarg ;;
1176
1177  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178    ac_prev=srcdir ;;
1179  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180    srcdir=$ac_optarg ;;
1181
1182  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183  | --syscon | --sysco | --sysc | --sys | --sy)
1184    ac_prev=sysconfdir ;;
1185  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187    sysconfdir=$ac_optarg ;;
1188
1189  -target | --target | --targe | --targ | --tar | --ta | --t)
1190    ac_prev=target_alias ;;
1191  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192    target_alias=$ac_optarg ;;
1193
1194  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195    verbose=yes ;;
1196
1197  -version | --version | --versio | --versi | --vers | -V)
1198    ac_init_version=: ;;
1199
1200  -with-* | --with-*)
1201    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202    # Reject names that are not valid shell variable names.
1203    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204      { echo "$as_me: error: invalid package name: $ac_package" >&2
1205   { (exit 1); exit 1; }; }
1206    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1207    eval with_$ac_package=\$ac_optarg ;;
1208
1209  -without-* | --without-*)
1210    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211    # Reject names that are not valid shell variable names.
1212    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213      { echo "$as_me: error: invalid package name: $ac_package" >&2
1214   { (exit 1); exit 1; }; }
1215    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1216    eval with_$ac_package=no ;;
1217
1218  --x)
1219    # Obsolete; use --with-x.
1220    with_x=yes ;;
1221
1222  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223  | --x-incl | --x-inc | --x-in | --x-i)
1224    ac_prev=x_includes ;;
1225  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227    x_includes=$ac_optarg ;;
1228
1229  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231    ac_prev=x_libraries ;;
1232  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234    x_libraries=$ac_optarg ;;
1235
1236  -*) { echo "$as_me: error: unrecognized option: $ac_option
1237Try \`$0 --help' for more information." >&2
1238   { (exit 1); exit 1; }; }
1239    ;;
1240
1241  *=*)
1242    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243    # Reject names that are not valid shell variable names.
1244    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1245      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1246   { (exit 1); exit 1; }; }
1247    eval $ac_envvar=\$ac_optarg
1248    export $ac_envvar ;;
1249
1250  *)
1251    # FIXME: should be removed in autoconf 3.0.
1252    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1256    ;;
1257
1258  esac
1259done
1260
1261if test -n "$ac_prev"; then
1262  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263  { echo "$as_me: error: missing argument to $ac_option" >&2
1264   { (exit 1); exit 1; }; }
1265fi
1266
1267# Be sure to have absolute directory names.
1268for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269		datadir sysconfdir sharedstatedir localstatedir includedir \
1270		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271		libdir localedir mandir
1272do
1273  eval ac_val=\$$ac_var
1274  case $ac_val in
1275    [\\/$]* | ?:[\\/]* )  continue;;
1276    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277  esac
1278  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1279   { (exit 1); exit 1; }; }
1280done
1281
1282# There might be people who depend on the old broken behavior: `$host'
1283# used to hold the argument of --host etc.
1284# FIXME: To remove some day.
1285build=$build_alias
1286host=$host_alias
1287target=$target_alias
1288
1289# FIXME: To remove some day.
1290if test "x$host_alias" != x; then
1291  if test "x$build_alias" = x; then
1292    cross_compiling=maybe
1293    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1294    If a cross compiler is detected then cross compile mode will be used." >&2
1295  elif test "x$build_alias" != "x$host_alias"; then
1296    cross_compiling=yes
1297  fi
1298fi
1299
1300ac_tool_prefix=
1301test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303test "$silent" = yes && exec 6>/dev/null
1304
1305
1306ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307ac_ls_di=`ls -di .` &&
1308ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309  { echo "$as_me: error: Working directory cannot be determined" >&2
1310   { (exit 1); exit 1; }; }
1311test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312  { echo "$as_me: error: pwd does not report name of working directory" >&2
1313   { (exit 1); exit 1; }; }
1314
1315
1316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318  ac_srcdir_defaulted=yes
1319  # Try the directory containing this script, then the parent directory.
1320  ac_confdir=`$as_dirname -- "$0" ||
1321$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322	 X"$0" : 'X\(//\)[^/]' \| \
1323	 X"$0" : 'X\(//\)$' \| \
1324	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1325echo X"$0" |
1326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\/\)[^/].*/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\/\)$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\).*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  s/.*/./; q'`
1343  srcdir=$ac_confdir
1344  if test ! -r "$srcdir/$ac_unique_file"; then
1345    srcdir=..
1346  fi
1347else
1348  ac_srcdir_defaulted=no
1349fi
1350if test ! -r "$srcdir/$ac_unique_file"; then
1351  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1353   { (exit 1); exit 1; }; }
1354fi
1355ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356ac_abs_confdir=`(
1357	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1358   { (exit 1); exit 1; }; }
1359	pwd)`
1360# When building in place, set srcdir=.
1361if test "$ac_abs_confdir" = "$ac_pwd"; then
1362  srcdir=.
1363fi
1364# Remove unnecessary trailing slashes from srcdir.
1365# Double slashes in file names in object file debugging info
1366# mess up M-x gdb in Emacs.
1367case $srcdir in
1368*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369esac
1370for ac_var in $ac_precious_vars; do
1371  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372  eval ac_env_${ac_var}_value=\$${ac_var}
1373  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375done
1376
1377#
1378# Report the --help message.
1379#
1380if test "$ac_init_help" = "long"; then
1381  # Omit some internal or obsolete options to make the list less imposing.
1382  # This message is too long to be a string in the A/UX 3.1 sh.
1383  cat <<_ACEOF
1384\`configure' configures iperf 3.0a5 to adapt to many kinds of systems.
1385
1386Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389VAR=VALUE.  See below for descriptions of some of the useful variables.
1390
1391Defaults for the options are specified in brackets.
1392
1393Configuration:
1394  -h, --help              display this help and exit
1395      --help=short        display options specific to this package
1396      --help=recursive    display the short help of all the included packages
1397  -V, --version           display version information and exit
1398  -q, --quiet, --silent   do not print \`checking...' messages
1399      --cache-file=FILE   cache test results in FILE [disabled]
1400  -C, --config-cache      alias for \`--cache-file=config.cache'
1401  -n, --no-create         do not create output files
1402      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1403
1404Installation directories:
1405  --prefix=PREFIX         install architecture-independent files in PREFIX
1406			  [$ac_default_prefix]
1407  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1408			  [PREFIX]
1409
1410By default, \`make install' will install all the files in
1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1412an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413for instance \`--prefix=\$HOME'.
1414
1415For better control, use the options below.
1416
1417Fine tuning of the installation directories:
1418  --bindir=DIR           user executables [EPREFIX/bin]
1419  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1420  --libexecdir=DIR       program executables [EPREFIX/libexec]
1421  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1422  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1423  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1424  --libdir=DIR           object code libraries [EPREFIX/lib]
1425  --includedir=DIR       C header files [PREFIX/include]
1426  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1427  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1428  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1429  --infodir=DIR          info documentation [DATAROOTDIR/info]
1430  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1431  --mandir=DIR           man documentation [DATAROOTDIR/man]
1432  --docdir=DIR           documentation root [DATAROOTDIR/doc/iperf]
1433  --htmldir=DIR          html documentation [DOCDIR]
1434  --dvidir=DIR           dvi documentation [DOCDIR]
1435  --pdfdir=DIR           pdf documentation [DOCDIR]
1436  --psdir=DIR            ps documentation [DOCDIR]
1437_ACEOF
1438
1439  cat <<\_ACEOF
1440
1441Program names:
1442  --program-prefix=PREFIX            prepend PREFIX to installed program names
1443  --program-suffix=SUFFIX            append SUFFIX to installed program names
1444  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1445
1446System types:
1447  --build=BUILD     configure for building on BUILD [guessed]
1448  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1449_ACEOF
1450fi
1451
1452if test -n "$ac_init_help"; then
1453  case $ac_init_help in
1454     short | recursive ) echo "Configuration of iperf 3.0a5:";;
1455   esac
1456  cat <<\_ACEOF
1457
1458Optional Features:
1459  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1460  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1461  --disable-dependency-tracking  speeds up one-time build
1462  --enable-dependency-tracking   do not reject slow dependency extractors
1463  --enable-shared[=PKGS]  build shared libraries [default=yes]
1464  --enable-static[=PKGS]  build static libraries [default=yes]
1465  --enable-fast-install[=PKGS]
1466                          optimize for fast installation [default=yes]
1467  --disable-libtool-lock  avoid locking (might break parallel builds)
1468
1469Optional Packages:
1470  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1471  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1472  --with-pic              try to use only PIC/non-PIC objects [default=use
1473                          both]
1474  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1475
1476Some influential environment variables:
1477  CC          C compiler command
1478  CFLAGS      C compiler flags
1479  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1480              nonstandard directory <lib dir>
1481  LIBS        libraries to pass to the linker, e.g. -l<library>
1482  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1483              you have headers in a nonstandard directory <include dir>
1484  CPP         C preprocessor
1485
1486Use these variables to override the choices made by `configure' or to help
1487it to find libraries and programs with nonstandard names/locations.
1488
1489Report bugs to <https://code.google.com/p/iperf/>.
1490_ACEOF
1491ac_status=$?
1492fi
1493
1494if test "$ac_init_help" = "recursive"; then
1495  # If there are subdirs, report their specific --help.
1496  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497    test -d "$ac_dir" || continue
1498    ac_builddir=.
1499
1500case "$ac_dir" in
1501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502*)
1503  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1504  # A ".." for each directory in $ac_dir_suffix.
1505  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1506  case $ac_top_builddir_sub in
1507  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509  esac ;;
1510esac
1511ac_abs_top_builddir=$ac_pwd
1512ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513# for backward compatibility:
1514ac_top_builddir=$ac_top_build_prefix
1515
1516case $srcdir in
1517  .)  # We are building in place.
1518    ac_srcdir=.
1519    ac_top_srcdir=$ac_top_builddir_sub
1520    ac_abs_top_srcdir=$ac_pwd ;;
1521  [\\/]* | ?:[\\/]* )  # Absolute name.
1522    ac_srcdir=$srcdir$ac_dir_suffix;
1523    ac_top_srcdir=$srcdir
1524    ac_abs_top_srcdir=$srcdir ;;
1525  *) # Relative name.
1526    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527    ac_top_srcdir=$ac_top_build_prefix$srcdir
1528    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529esac
1530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532    cd "$ac_dir" || { ac_status=$?; continue; }
1533    # Check for guested configure.
1534    if test -f "$ac_srcdir/configure.gnu"; then
1535      echo &&
1536      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537    elif test -f "$ac_srcdir/configure"; then
1538      echo &&
1539      $SHELL "$ac_srcdir/configure" --help=recursive
1540    else
1541      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542    fi || ac_status=$?
1543    cd "$ac_pwd" || { ac_status=$?; break; }
1544  done
1545fi
1546
1547test -n "$ac_init_help" && exit $ac_status
1548if $ac_init_version; then
1549  cat <<\_ACEOF
1550iperf configure 3.0a5
1551generated by GNU Autoconf 2.61
1552
1553Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15542002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1555This configure script is free software; the Free Software Foundation
1556gives unlimited permission to copy, distribute and modify it.
1557_ACEOF
1558  exit
1559fi
1560cat >config.log <<_ACEOF
1561This file contains any messages produced by compilers while
1562running configure, to aid debugging if configure makes a mistake.
1563
1564It was created by iperf $as_me 3.0a5, which was
1565generated by GNU Autoconf 2.61.  Invocation command line was
1566
1567  $ $0 $@
1568
1569_ACEOF
1570exec 5>>config.log
1571{
1572cat <<_ASUNAME
1573## --------- ##
1574## Platform. ##
1575## --------- ##
1576
1577hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1578uname -m = `(uname -m) 2>/dev/null || echo unknown`
1579uname -r = `(uname -r) 2>/dev/null || echo unknown`
1580uname -s = `(uname -s) 2>/dev/null || echo unknown`
1581uname -v = `(uname -v) 2>/dev/null || echo unknown`
1582
1583/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1584/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1585
1586/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1587/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1588/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1589/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1590/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1591/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1592/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1593
1594_ASUNAME
1595
1596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597for as_dir in $PATH
1598do
1599  IFS=$as_save_IFS
1600  test -z "$as_dir" && as_dir=.
1601  echo "PATH: $as_dir"
1602done
1603IFS=$as_save_IFS
1604
1605} >&5
1606
1607cat >&5 <<_ACEOF
1608
1609
1610## ----------- ##
1611## Core tests. ##
1612## ----------- ##
1613
1614_ACEOF
1615
1616
1617# Keep a trace of the command line.
1618# Strip out --no-create and --no-recursion so they do not pile up.
1619# Strip out --silent because we don't want to record it for future runs.
1620# Also quote any args containing shell meta-characters.
1621# Make two passes to allow for proper duplicate-argument suppression.
1622ac_configure_args=
1623ac_configure_args0=
1624ac_configure_args1=
1625ac_must_keep_next=false
1626for ac_pass in 1 2
1627do
1628  for ac_arg
1629  do
1630    case $ac_arg in
1631    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1632    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1633    | -silent | --silent | --silen | --sile | --sil)
1634      continue ;;
1635    *\'*)
1636      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1637    esac
1638    case $ac_pass in
1639    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1640    2)
1641      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1642      if test $ac_must_keep_next = true; then
1643	ac_must_keep_next=false # Got value, back to normal.
1644      else
1645	case $ac_arg in
1646	  *=* | --config-cache | -C | -disable-* | --disable-* \
1647	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1648	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1649	  | -with-* | --with-* | -without-* | --without-* | --x)
1650	    case "$ac_configure_args0 " in
1651	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1652	    esac
1653	    ;;
1654	  -* ) ac_must_keep_next=true ;;
1655	esac
1656      fi
1657      ac_configure_args="$ac_configure_args '$ac_arg'"
1658      ;;
1659    esac
1660  done
1661done
1662$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1663$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1664
1665# When interrupted or exit'd, cleanup temporary files, and complete
1666# config.log.  We remove comments because anyway the quotes in there
1667# would cause problems or look ugly.
1668# WARNING: Use '\'' to represent an apostrophe within the trap.
1669# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1670trap 'exit_status=$?
1671  # Save into config.log some information that might help in debugging.
1672  {
1673    echo
1674
1675    cat <<\_ASBOX
1676## ---------------- ##
1677## Cache variables. ##
1678## ---------------- ##
1679_ASBOX
1680    echo
1681    # The following way of writing the cache mishandles newlines in values,
1682(
1683  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1684    eval ac_val=\$$ac_var
1685    case $ac_val in #(
1686    *${as_nl}*)
1687      case $ac_var in #(
1688      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1689echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1690      esac
1691      case $ac_var in #(
1692      _ | IFS | as_nl) ;; #(
1693      *) $as_unset $ac_var ;;
1694      esac ;;
1695    esac
1696  done
1697  (set) 2>&1 |
1698    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1699    *${as_nl}ac_space=\ *)
1700      sed -n \
1701	"s/'\''/'\''\\\\'\'''\''/g;
1702	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1703      ;; #(
1704    *)
1705      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1706      ;;
1707    esac |
1708    sort
1709)
1710    echo
1711
1712    cat <<\_ASBOX
1713## ----------------- ##
1714## Output variables. ##
1715## ----------------- ##
1716_ASBOX
1717    echo
1718    for ac_var in $ac_subst_vars
1719    do
1720      eval ac_val=\$$ac_var
1721      case $ac_val in
1722      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723      esac
1724      echo "$ac_var='\''$ac_val'\''"
1725    done | sort
1726    echo
1727
1728    if test -n "$ac_subst_files"; then
1729      cat <<\_ASBOX
1730## ------------------- ##
1731## File substitutions. ##
1732## ------------------- ##
1733_ASBOX
1734      echo
1735      for ac_var in $ac_subst_files
1736      do
1737	eval ac_val=\$$ac_var
1738	case $ac_val in
1739	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740	esac
1741	echo "$ac_var='\''$ac_val'\''"
1742      done | sort
1743      echo
1744    fi
1745
1746    if test -s confdefs.h; then
1747      cat <<\_ASBOX
1748## ----------- ##
1749## confdefs.h. ##
1750## ----------- ##
1751_ASBOX
1752      echo
1753      cat confdefs.h
1754      echo
1755    fi
1756    test "$ac_signal" != 0 &&
1757      echo "$as_me: caught signal $ac_signal"
1758    echo "$as_me: exit $exit_status"
1759  } >&5
1760  rm -f core *.core core.conftest.* &&
1761    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1762    exit $exit_status
1763' 0
1764for ac_signal in 1 2 13 15; do
1765  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1766done
1767ac_signal=0
1768
1769# confdefs.h avoids OS command line length limits that DEFS can exceed.
1770rm -f -r conftest* confdefs.h
1771
1772# Predefined preprocessor variables.
1773
1774cat >>confdefs.h <<_ACEOF
1775#define PACKAGE_NAME "$PACKAGE_NAME"
1776_ACEOF
1777
1778
1779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1781_ACEOF
1782
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_VERSION "$PACKAGE_VERSION"
1786_ACEOF
1787
1788
1789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_STRING "$PACKAGE_STRING"
1791_ACEOF
1792
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1796_ACEOF
1797
1798
1799# Let the site file select an alternate cache file if it wants to.
1800# Prefer explicitly selected file to automatically selected ones.
1801if test -n "$CONFIG_SITE"; then
1802  set x "$CONFIG_SITE"
1803elif test "x$prefix" != xNONE; then
1804  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1805else
1806  set x "$ac_default_prefix/share/config.site" \
1807	"$ac_default_prefix/etc/config.site"
1808fi
1809shift
1810for ac_site_file
1811do
1812  if test -r "$ac_site_file"; then
1813    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1814echo "$as_me: loading site script $ac_site_file" >&6;}
1815    sed 's/^/| /' "$ac_site_file" >&5
1816    . "$ac_site_file"
1817  fi
1818done
1819
1820if test -r "$cache_file"; then
1821  # Some versions of bash will fail to source /dev/null (special
1822  # files actually), so we avoid doing that.
1823  if test -f "$cache_file"; then
1824    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1825echo "$as_me: loading cache $cache_file" >&6;}
1826    case $cache_file in
1827      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1828      *)                      . "./$cache_file";;
1829    esac
1830  fi
1831else
1832  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1833echo "$as_me: creating cache $cache_file" >&6;}
1834  >$cache_file
1835fi
1836
1837# Check that the precious variables saved in the cache have kept the same
1838# value.
1839ac_cache_corrupted=false
1840for ac_var in $ac_precious_vars; do
1841  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1842  eval ac_new_set=\$ac_env_${ac_var}_set
1843  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1844  eval ac_new_val=\$ac_env_${ac_var}_value
1845  case $ac_old_set,$ac_new_set in
1846    set,)
1847      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1848echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1849      ac_cache_corrupted=: ;;
1850    ,set)
1851      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1852echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1853      ac_cache_corrupted=: ;;
1854    ,);;
1855    *)
1856      if test "x$ac_old_val" != "x$ac_new_val"; then
1857	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1858echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1859	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1860echo "$as_me:   former value:  $ac_old_val" >&2;}
1861	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1862echo "$as_me:   current value: $ac_new_val" >&2;}
1863	ac_cache_corrupted=:
1864      fi;;
1865  esac
1866  # Pass precious variables to config.status.
1867  if test "$ac_new_set" = set; then
1868    case $ac_new_val in
1869    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1870    *) ac_arg=$ac_var=$ac_new_val ;;
1871    esac
1872    case " $ac_configure_args " in
1873      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1874      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1875    esac
1876  fi
1877done
1878if $ac_cache_corrupted; then
1879  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1880echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1881  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1882echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1883   { (exit 1); exit 1; }; }
1884fi
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910ac_ext=c
1911ac_cpp='$CPP $CPPFLAGS'
1912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915
1916
1917
1918# Specify where the auxiliary files created by configure should go. The config
1919# directory is picked so that they don't clutter up more useful directories.
1920ac_aux_dir=
1921for ac_dir in config "$srcdir"/config; do
1922  if test -f "$ac_dir/install-sh"; then
1923    ac_aux_dir=$ac_dir
1924    ac_install_sh="$ac_aux_dir/install-sh -c"
1925    break
1926  elif test -f "$ac_dir/install.sh"; then
1927    ac_aux_dir=$ac_dir
1928    ac_install_sh="$ac_aux_dir/install.sh -c"
1929    break
1930  elif test -f "$ac_dir/shtool"; then
1931    ac_aux_dir=$ac_dir
1932    ac_install_sh="$ac_aux_dir/shtool install -c"
1933    break
1934  fi
1935done
1936if test -z "$ac_aux_dir"; then
1937  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1938echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1939   { (exit 1); exit 1; }; }
1940fi
1941
1942# These three variables are undocumented and unsupported,
1943# and are intended to be withdrawn in a future Autoconf release.
1944# They can cause serious problems if a builder's source tree is in a directory
1945# whose full name contains unusual characters.
1946ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1947ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1948ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1949
1950
1951
1952
1953# Initialize the automake system
1954am__api_version='1.10'
1955
1956# Find a good install program.  We prefer a C program (faster),
1957# so one script is as good as another.  But avoid the broken or
1958# incompatible versions:
1959# SysV /etc/install, /usr/sbin/install
1960# SunOS /usr/etc/install
1961# IRIX /sbin/install
1962# AIX /bin/install
1963# AmigaOS /C/install, which installs bootblocks on floppy discs
1964# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1965# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1966# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1967# OS/2's system install, which has a completely different semantic
1968# ./install, which can be erroneously created by make from ./install.sh.
1969{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1970echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1971if test -z "$INSTALL"; then
1972if test "${ac_cv_path_install+set}" = set; then
1973  echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976for as_dir in $PATH
1977do
1978  IFS=$as_save_IFS
1979  test -z "$as_dir" && as_dir=.
1980  # Account for people who put trailing slashes in PATH elements.
1981case $as_dir/ in
1982  ./ | .// | /cC/* | \
1983  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1984  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1985  /usr/ucb/* ) ;;
1986  *)
1987    # OSF1 and SCO ODT 3.0 have their own names for install.
1988    # Don't use installbsd from OSF since it installs stuff as root
1989    # by default.
1990    for ac_prog in ginstall scoinst install; do
1991      for ac_exec_ext in '' $ac_executable_extensions; do
1992	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1993	  if test $ac_prog = install &&
1994	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1995	    # AIX install.  It has an incompatible calling convention.
1996	    :
1997	  elif test $ac_prog = install &&
1998	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1999	    # program-specific install script used by HP pwplus--don't use.
2000	    :
2001	  else
2002	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2003	    break 3
2004	  fi
2005	fi
2006      done
2007    done
2008    ;;
2009esac
2010done
2011IFS=$as_save_IFS
2012
2013
2014fi
2015  if test "${ac_cv_path_install+set}" = set; then
2016    INSTALL=$ac_cv_path_install
2017  else
2018    # As a last resort, use the slow shell script.  Don't cache a
2019    # value for INSTALL within a source directory, because that will
2020    # break other packages using the cache if that directory is
2021    # removed, or if the value is a relative name.
2022    INSTALL=$ac_install_sh
2023  fi
2024fi
2025{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2026echo "${ECHO_T}$INSTALL" >&6; }
2027
2028# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2029# It thinks the first close brace ends the variable substitution.
2030test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2031
2032test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2033
2034test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2035
2036{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2037echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2038# Just in case
2039sleep 1
2040echo timestamp > conftest.file
2041# Do `set' in a subshell so we don't clobber the current shell's
2042# arguments.  Must try -L first in case configure is actually a
2043# symlink; some systems play weird games with the mod time of symlinks
2044# (eg FreeBSD returns the mod time of the symlink's containing
2045# directory).
2046if (
2047   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2048   if test "$*" = "X"; then
2049      # -L didn't work.
2050      set X `ls -t $srcdir/configure conftest.file`
2051   fi
2052   rm -f conftest.file
2053   if test "$*" != "X $srcdir/configure conftest.file" \
2054      && test "$*" != "X conftest.file $srcdir/configure"; then
2055
2056      # If neither matched, then we have a broken ls.  This can happen
2057      # if, for instance, CONFIG_SHELL is bash and it inherits a
2058      # broken ls alias from the environment.  This has actually
2059      # happened.  Such a system could not be considered "sane".
2060      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2061alias in your environment" >&5
2062echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2063alias in your environment" >&2;}
2064   { (exit 1); exit 1; }; }
2065   fi
2066
2067   test "$2" = conftest.file
2068   )
2069then
2070   # Ok.
2071   :
2072else
2073   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2074Check your system clock" >&5
2075echo "$as_me: error: newly created file is older than distributed files!
2076Check your system clock" >&2;}
2077   { (exit 1); exit 1; }; }
2078fi
2079{ echo "$as_me:$LINENO: result: yes" >&5
2080echo "${ECHO_T}yes" >&6; }
2081test "$program_prefix" != NONE &&
2082  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2083# Use a double $ so make ignores it.
2084test "$program_suffix" != NONE &&
2085  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2086# Double any \ or $.  echo might interpret backslashes.
2087# By default was `s,x,x', remove it if useless.
2088cat <<\_ACEOF >conftest.sed
2089s/[\\$]/&&/g;s/;s,x,x,$//
2090_ACEOF
2091program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2092rm -f conftest.sed
2093
2094# expand $ac_aux_dir to an absolute path
2095am_aux_dir=`cd $ac_aux_dir && pwd`
2096
2097test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2098# Use eval to expand $SHELL
2099if eval "$MISSING --run true"; then
2100  am_missing_run="$MISSING --run "
2101else
2102  am_missing_run=
2103  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2104echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2105fi
2106
2107{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2108echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2109if test -z "$MKDIR_P"; then
2110  if test "${ac_cv_path_mkdir+set}" = set; then
2111  echo $ECHO_N "(cached) $ECHO_C" >&6
2112else
2113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2115do
2116  IFS=$as_save_IFS
2117  test -z "$as_dir" && as_dir=.
2118  for ac_prog in mkdir gmkdir; do
2119	 for ac_exec_ext in '' $ac_executable_extensions; do
2120	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2121	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2122	     'mkdir (GNU coreutils) '* | \
2123	     'mkdir (coreutils) '* | \
2124	     'mkdir (fileutils) '4.1*)
2125	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2126	       break 3;;
2127	   esac
2128	 done
2129       done
2130done
2131IFS=$as_save_IFS
2132
2133fi
2134
2135  if test "${ac_cv_path_mkdir+set}" = set; then
2136    MKDIR_P="$ac_cv_path_mkdir -p"
2137  else
2138    # As a last resort, use the slow shell script.  Don't cache a
2139    # value for MKDIR_P within a source directory, because that will
2140    # break other packages using the cache if that directory is
2141    # removed, or if the value is a relative name.
2142    test -d ./--version && rmdir ./--version
2143    MKDIR_P="$ac_install_sh -d"
2144  fi
2145fi
2146{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2147echo "${ECHO_T}$MKDIR_P" >&6; }
2148
2149mkdir_p="$MKDIR_P"
2150case $mkdir_p in
2151  [\\/$]* | ?:[\\/]*) ;;
2152  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2153esac
2154
2155for ac_prog in gawk mawk nawk awk
2156do
2157  # Extract the first word of "$ac_prog", so it can be a program name with args.
2158set dummy $ac_prog; ac_word=$2
2159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2161if test "${ac_cv_prog_AWK+set}" = set; then
2162  echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164  if test -n "$AWK"; then
2165  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2166else
2167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168for as_dir in $PATH
2169do
2170  IFS=$as_save_IFS
2171  test -z "$as_dir" && as_dir=.
2172  for ac_exec_ext in '' $ac_executable_extensions; do
2173  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174    ac_cv_prog_AWK="$ac_prog"
2175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176    break 2
2177  fi
2178done
2179done
2180IFS=$as_save_IFS
2181
2182fi
2183fi
2184AWK=$ac_cv_prog_AWK
2185if test -n "$AWK"; then
2186  { echo "$as_me:$LINENO: result: $AWK" >&5
2187echo "${ECHO_T}$AWK" >&6; }
2188else
2189  { echo "$as_me:$LINENO: result: no" >&5
2190echo "${ECHO_T}no" >&6; }
2191fi
2192
2193
2194  test -n "$AWK" && break
2195done
2196
2197{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2198echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2199set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2200if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2201  echo $ECHO_N "(cached) $ECHO_C" >&6
2202else
2203  cat >conftest.make <<\_ACEOF
2204SHELL = /bin/sh
2205all:
2206	@echo '@@@%%%=$(MAKE)=@@@%%%'
2207_ACEOF
2208# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2209case `${MAKE-make} -f conftest.make 2>/dev/null` in
2210  *@@@%%%=?*=@@@%%%*)
2211    eval ac_cv_prog_make_${ac_make}_set=yes;;
2212  *)
2213    eval ac_cv_prog_make_${ac_make}_set=no;;
2214esac
2215rm -f conftest.make
2216fi
2217if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2218  { echo "$as_me:$LINENO: result: yes" >&5
2219echo "${ECHO_T}yes" >&6; }
2220  SET_MAKE=
2221else
2222  { echo "$as_me:$LINENO: result: no" >&5
2223echo "${ECHO_T}no" >&6; }
2224  SET_MAKE="MAKE=${MAKE-make}"
2225fi
2226
2227rm -rf .tst 2>/dev/null
2228mkdir .tst 2>/dev/null
2229if test -d .tst; then
2230  am__leading_dot=.
2231else
2232  am__leading_dot=_
2233fi
2234rmdir .tst 2>/dev/null
2235
2236if test "`cd $srcdir && pwd`" != "`pwd`"; then
2237  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2238  # is not polluted with repeated "-I."
2239  am__isrc=' -I$(srcdir)'
2240  # test to see if srcdir already configured
2241  if test -f $srcdir/config.status; then
2242    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2243echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2244   { (exit 1); exit 1; }; }
2245  fi
2246fi
2247
2248# test whether we have cygpath
2249if test -z "$CYGPATH_W"; then
2250  if (cygpath --version) >/dev/null 2>/dev/null; then
2251    CYGPATH_W='cygpath -w'
2252  else
2253    CYGPATH_W=echo
2254  fi
2255fi
2256
2257
2258# Define the identity of the package.
2259 PACKAGE='iperf'
2260 VERSION='3.0a5'
2261
2262
2263cat >>confdefs.h <<_ACEOF
2264#define PACKAGE "$PACKAGE"
2265_ACEOF
2266
2267
2268cat >>confdefs.h <<_ACEOF
2269#define VERSION "$VERSION"
2270_ACEOF
2271
2272# Some tools Automake needs.
2273
2274ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2275
2276
2277AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2278
2279
2280AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2281
2282
2283AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2284
2285
2286MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2287
2288install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2289
2290# Installed binaries are usually stripped using `strip' when the user
2291# run `make install-strip'.  However `strip' might not be the right
2292# tool to use in cross-compilation environments, therefore Automake
2293# will honor the `STRIP' environment variable to overrule this program.
2294if test "$cross_compiling" != no; then
2295  if test -n "$ac_tool_prefix"; then
2296  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2297set dummy ${ac_tool_prefix}strip; ac_word=$2
2298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2300if test "${ac_cv_prog_STRIP+set}" = set; then
2301  echo $ECHO_N "(cached) $ECHO_C" >&6
2302else
2303  if test -n "$STRIP"; then
2304  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2305else
2306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307for as_dir in $PATH
2308do
2309  IFS=$as_save_IFS
2310  test -z "$as_dir" && as_dir=.
2311  for ac_exec_ext in '' $ac_executable_extensions; do
2312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315    break 2
2316  fi
2317done
2318done
2319IFS=$as_save_IFS
2320
2321fi
2322fi
2323STRIP=$ac_cv_prog_STRIP
2324if test -n "$STRIP"; then
2325  { echo "$as_me:$LINENO: result: $STRIP" >&5
2326echo "${ECHO_T}$STRIP" >&6; }
2327else
2328  { echo "$as_me:$LINENO: result: no" >&5
2329echo "${ECHO_T}no" >&6; }
2330fi
2331
2332
2333fi
2334if test -z "$ac_cv_prog_STRIP"; then
2335  ac_ct_STRIP=$STRIP
2336  # Extract the first word of "strip", so it can be a program name with args.
2337set dummy strip; ac_word=$2
2338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2341  echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343  if test -n "$ac_ct_STRIP"; then
2344  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2345else
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349  IFS=$as_save_IFS
2350  test -z "$as_dir" && as_dir=.
2351  for ac_exec_ext in '' $ac_executable_extensions; do
2352  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353    ac_cv_prog_ac_ct_STRIP="strip"
2354    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355    break 2
2356  fi
2357done
2358done
2359IFS=$as_save_IFS
2360
2361fi
2362fi
2363ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2364if test -n "$ac_ct_STRIP"; then
2365  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2366echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2367else
2368  { echo "$as_me:$LINENO: result: no" >&5
2369echo "${ECHO_T}no" >&6; }
2370fi
2371
2372  if test "x$ac_ct_STRIP" = x; then
2373    STRIP=":"
2374  else
2375    case $cross_compiling:$ac_tool_warned in
2376yes:)
2377{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2378whose name does not start with the host triplet.  If you think this
2379configuration is useful to you, please write to [email protected]." >&5
2380echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2381whose name does not start with the host triplet.  If you think this
2382configuration is useful to you, please write to [email protected]." >&2;}
2383ac_tool_warned=yes ;;
2384esac
2385    STRIP=$ac_ct_STRIP
2386  fi
2387else
2388  STRIP="$ac_cv_prog_STRIP"
2389fi
2390
2391fi
2392INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2393
2394# We need awk for the "check" target.  The system "awk" is bad on
2395# some platforms.
2396# Always define AMTAR for backward compatibility.
2397
2398AMTAR=${AMTAR-"${am_missing_run}tar"}
2399
2400am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2401
2402
2403
2404
2405
2406
2407ac_config_headers="$ac_config_headers src/config.h"
2408
2409
2410# Make sure we can run config.sub.
2411$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2412  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2413echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2414   { (exit 1); exit 1; }; }
2415
2416{ echo "$as_me:$LINENO: checking build system type" >&5
2417echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2418if test "${ac_cv_build+set}" = set; then
2419  echo $ECHO_N "(cached) $ECHO_C" >&6
2420else
2421  ac_build_alias=$build_alias
2422test "x$ac_build_alias" = x &&
2423  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2424test "x$ac_build_alias" = x &&
2425  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2426echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2427   { (exit 1); exit 1; }; }
2428ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2429  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2430echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2431   { (exit 1); exit 1; }; }
2432
2433fi
2434{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2435echo "${ECHO_T}$ac_cv_build" >&6; }
2436case $ac_cv_build in
2437*-*-*) ;;
2438*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2439echo "$as_me: error: invalid value of canonical build" >&2;}
2440   { (exit 1); exit 1; }; };;
2441esac
2442build=$ac_cv_build
2443ac_save_IFS=$IFS; IFS='-'
2444set x $ac_cv_build
2445shift
2446build_cpu=$1
2447build_vendor=$2
2448shift; shift
2449# Remember, the first character of IFS is used to create $*,
2450# except with old shells:
2451build_os=$*
2452IFS=$ac_save_IFS
2453case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2454
2455
2456{ echo "$as_me:$LINENO: checking host system type" >&5
2457echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2458if test "${ac_cv_host+set}" = set; then
2459  echo $ECHO_N "(cached) $ECHO_C" >&6
2460else
2461  if test "x$host_alias" = x; then
2462  ac_cv_host=$ac_cv_build
2463else
2464  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2465    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2466echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2467   { (exit 1); exit 1; }; }
2468fi
2469
2470fi
2471{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2472echo "${ECHO_T}$ac_cv_host" >&6; }
2473case $ac_cv_host in
2474*-*-*) ;;
2475*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2476echo "$as_me: error: invalid value of canonical host" >&2;}
2477   { (exit 1); exit 1; }; };;
2478esac
2479host=$ac_cv_host
2480ac_save_IFS=$IFS; IFS='-'
2481set x $ac_cv_host
2482shift
2483host_cpu=$1
2484host_vendor=$2
2485shift; shift
2486# Remember, the first character of IFS is used to create $*,
2487# except with old shells:
2488host_os=$*
2489IFS=$ac_save_IFS
2490case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2491
2492
2493
2494# Checks for tools: c compiler, ranlib (used for creating static libraries),
2495# symlinks and libtool
2496ac_ext=c
2497ac_cpp='$CPP $CPPFLAGS'
2498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501if test -n "$ac_tool_prefix"; then
2502  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2503set dummy ${ac_tool_prefix}gcc; ac_word=$2
2504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506if test "${ac_cv_prog_CC+set}" = set; then
2507  echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509  if test -n "$CC"; then
2510  ac_cv_prog_CC="$CC" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515  IFS=$as_save_IFS
2516  test -z "$as_dir" && as_dir=.
2517  for ac_exec_ext in '' $ac_executable_extensions; do
2518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521    break 2
2522  fi
2523done
2524done
2525IFS=$as_save_IFS
2526
2527fi
2528fi
2529CC=$ac_cv_prog_CC
2530if test -n "$CC"; then
2531  { echo "$as_me:$LINENO: result: $CC" >&5
2532echo "${ECHO_T}$CC" >&6; }
2533else
2534  { echo "$as_me:$LINENO: result: no" >&5
2535echo "${ECHO_T}no" >&6; }
2536fi
2537
2538
2539fi
2540if test -z "$ac_cv_prog_CC"; then
2541  ac_ct_CC=$CC
2542  # Extract the first word of "gcc", so it can be a program name with args.
2543set dummy gcc; ac_word=$2
2544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2547  echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549  if test -n "$ac_ct_CC"; then
2550  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551else
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555  IFS=$as_save_IFS
2556  test -z "$as_dir" && as_dir=.
2557  for ac_exec_ext in '' $ac_executable_extensions; do
2558  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559    ac_cv_prog_ac_ct_CC="gcc"
2560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561    break 2
2562  fi
2563done
2564done
2565IFS=$as_save_IFS
2566
2567fi
2568fi
2569ac_ct_CC=$ac_cv_prog_ac_ct_CC
2570if test -n "$ac_ct_CC"; then
2571  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2572echo "${ECHO_T}$ac_ct_CC" >&6; }
2573else
2574  { echo "$as_me:$LINENO: result: no" >&5
2575echo "${ECHO_T}no" >&6; }
2576fi
2577
2578  if test "x$ac_ct_CC" = x; then
2579    CC=""
2580  else
2581    case $cross_compiling:$ac_tool_warned in
2582yes:)
2583{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2584whose name does not start with the host triplet.  If you think this
2585configuration is useful to you, please write to [email protected]." >&5
2586echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2587whose name does not start with the host triplet.  If you think this
2588configuration is useful to you, please write to [email protected]." >&2;}
2589ac_tool_warned=yes ;;
2590esac
2591    CC=$ac_ct_CC
2592  fi
2593else
2594  CC="$ac_cv_prog_CC"
2595fi
2596
2597if test -z "$CC"; then
2598          if test -n "$ac_tool_prefix"; then
2599    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2600set dummy ${ac_tool_prefix}cc; ac_word=$2
2601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603if test "${ac_cv_prog_CC+set}" = set; then
2604  echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606  if test -n "$CC"; then
2607  ac_cv_prog_CC="$CC" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612  IFS=$as_save_IFS
2613  test -z "$as_dir" && as_dir=.
2614  for ac_exec_ext in '' $ac_executable_extensions; do
2615  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616    ac_cv_prog_CC="${ac_tool_prefix}cc"
2617    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618    break 2
2619  fi
2620done
2621done
2622IFS=$as_save_IFS
2623
2624fi
2625fi
2626CC=$ac_cv_prog_CC
2627if test -n "$CC"; then
2628  { echo "$as_me:$LINENO: result: $CC" >&5
2629echo "${ECHO_T}$CC" >&6; }
2630else
2631  { echo "$as_me:$LINENO: result: no" >&5
2632echo "${ECHO_T}no" >&6; }
2633fi
2634
2635
2636  fi
2637fi
2638if test -z "$CC"; then
2639  # Extract the first word of "cc", so it can be a program name with args.
2640set dummy cc; ac_word=$2
2641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643if test "${ac_cv_prog_CC+set}" = set; then
2644  echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646  if test -n "$CC"; then
2647  ac_cv_prog_CC="$CC" # Let the user override the test.
2648else
2649  ac_prog_rejected=no
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653  IFS=$as_save_IFS
2654  test -z "$as_dir" && as_dir=.
2655  for ac_exec_ext in '' $ac_executable_extensions; do
2656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2658       ac_prog_rejected=yes
2659       continue
2660     fi
2661    ac_cv_prog_CC="cc"
2662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663    break 2
2664  fi
2665done
2666done
2667IFS=$as_save_IFS
2668
2669if test $ac_prog_rejected = yes; then
2670  # We found a bogon in the path, so make sure we never use it.
2671  set dummy $ac_cv_prog_CC
2672  shift
2673  if test $# != 0; then
2674    # We chose a different compiler from the bogus one.
2675    # However, it has the same basename, so the bogon will be chosen
2676    # first if we set CC to just the basename; use the full file name.
2677    shift
2678    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2679  fi
2680fi
2681fi
2682fi
2683CC=$ac_cv_prog_CC
2684if test -n "$CC"; then
2685  { echo "$as_me:$LINENO: result: $CC" >&5
2686echo "${ECHO_T}$CC" >&6; }
2687else
2688  { echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6; }
2690fi
2691
2692
2693fi
2694if test -z "$CC"; then
2695  if test -n "$ac_tool_prefix"; then
2696  for ac_prog in cl.exe
2697  do
2698    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702if test "${ac_cv_prog_CC+set}" = set; then
2703  echo $ECHO_N "(cached) $ECHO_C" >&6
2704else
2705  if test -n "$CC"; then
2706  ac_cv_prog_CC="$CC" # Let the user override the test.
2707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711  IFS=$as_save_IFS
2712  test -z "$as_dir" && as_dir=.
2713  for ac_exec_ext in '' $ac_executable_extensions; do
2714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2716    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717    break 2
2718  fi
2719done
2720done
2721IFS=$as_save_IFS
2722
2723fi
2724fi
2725CC=$ac_cv_prog_CC
2726if test -n "$CC"; then
2727  { echo "$as_me:$LINENO: result: $CC" >&5
2728echo "${ECHO_T}$CC" >&6; }
2729else
2730  { echo "$as_me:$LINENO: result: no" >&5
2731echo "${ECHO_T}no" >&6; }
2732fi
2733
2734
2735    test -n "$CC" && break
2736  done
2737fi
2738if test -z "$CC"; then
2739  ac_ct_CC=$CC
2740  for ac_prog in cl.exe
2741do
2742  # Extract the first word of "$ac_prog", so it can be a program name with args.
2743set dummy $ac_prog; ac_word=$2
2744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2746if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2747  echo $ECHO_N "(cached) $ECHO_C" >&6
2748else
2749  if test -n "$ac_ct_CC"; then
2750  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755  IFS=$as_save_IFS
2756  test -z "$as_dir" && as_dir=.
2757  for ac_exec_ext in '' $ac_executable_extensions; do
2758  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759    ac_cv_prog_ac_ct_CC="$ac_prog"
2760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761    break 2
2762  fi
2763done
2764done
2765IFS=$as_save_IFS
2766
2767fi
2768fi
2769ac_ct_CC=$ac_cv_prog_ac_ct_CC
2770if test -n "$ac_ct_CC"; then
2771  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2772echo "${ECHO_T}$ac_ct_CC" >&6; }
2773else
2774  { echo "$as_me:$LINENO: result: no" >&5
2775echo "${ECHO_T}no" >&6; }
2776fi
2777
2778
2779  test -n "$ac_ct_CC" && break
2780done
2781
2782  if test "x$ac_ct_CC" = x; then
2783    CC=""
2784  else
2785    case $cross_compiling:$ac_tool_warned in
2786yes:)
2787{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2788whose name does not start with the host triplet.  If you think this
2789configuration is useful to you, please write to [email protected]." >&5
2790echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2791whose name does not start with the host triplet.  If you think this
2792configuration is useful to you, please write to [email protected]." >&2;}
2793ac_tool_warned=yes ;;
2794esac
2795    CC=$ac_ct_CC
2796  fi
2797fi
2798
2799fi
2800
2801
2802test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2803See \`config.log' for more details." >&5
2804echo "$as_me: error: no acceptable C compiler found in \$PATH
2805See \`config.log' for more details." >&2;}
2806   { (exit 1); exit 1; }; }
2807
2808# Provide some information about the compiler.
2809echo "$as_me:$LINENO: checking for C compiler version" >&5
2810ac_compiler=`set X $ac_compile; echo $2`
2811{ (ac_try="$ac_compiler --version >&5"
2812case "(($ac_try" in
2813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814  *) ac_try_echo=$ac_try;;
2815esac
2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817  (eval "$ac_compiler --version >&5") 2>&5
2818  ac_status=$?
2819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820  (exit $ac_status); }
2821{ (ac_try="$ac_compiler -v >&5"
2822case "(($ac_try" in
2823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824  *) ac_try_echo=$ac_try;;
2825esac
2826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827  (eval "$ac_compiler -v >&5") 2>&5
2828  ac_status=$?
2829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830  (exit $ac_status); }
2831{ (ac_try="$ac_compiler -V >&5"
2832case "(($ac_try" in
2833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834  *) ac_try_echo=$ac_try;;
2835esac
2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837  (eval "$ac_compiler -V >&5") 2>&5
2838  ac_status=$?
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); }
2841
2842cat >conftest.$ac_ext <<_ACEOF
2843/* confdefs.h.  */
2844_ACEOF
2845cat confdefs.h >>conftest.$ac_ext
2846cat >>conftest.$ac_ext <<_ACEOF
2847/* end confdefs.h.  */
2848
2849int
2850main ()
2851{
2852
2853  ;
2854  return 0;
2855}
2856_ACEOF
2857ac_clean_files_save=$ac_clean_files
2858ac_clean_files="$ac_clean_files a.out a.exe b.out"
2859# Try to create an executable without -o first, disregard a.out.
2860# It will help us diagnose broken compilers, and finding out an intuition
2861# of exeext.
2862{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2863echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2864ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2865#
2866# List of possible output files, starting from the most likely.
2867# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2868# only as a last resort.  b.out is created by i960 compilers.
2869ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2870#
2871# The IRIX 6 linker writes into existing files which may not be
2872# executable, retaining their permissions.  Remove them first so a
2873# subsequent execution test works.
2874ac_rmfiles=
2875for ac_file in $ac_files
2876do
2877  case $ac_file in
2878    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2879    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2880  esac
2881done
2882rm -f $ac_rmfiles
2883
2884if { (ac_try="$ac_link_default"
2885case "(($ac_try" in
2886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887  *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890  (eval "$ac_link_default") 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }; then
2894  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2895# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2896# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2897# so that the user can short-circuit this test for compilers unknown to
2898# Autoconf.
2899for ac_file in $ac_files ''
2900do
2901  test -f "$ac_file" || continue
2902  case $ac_file in
2903    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2904	;;
2905    [ab].out )
2906	# We found the default executable, but exeext='' is most
2907	# certainly right.
2908	break;;
2909    *.* )
2910        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2911	then :; else
2912	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913	fi
2914	# We set ac_cv_exeext here because the later test for it is not
2915	# safe: cross compilers may not add the suffix if given an `-o'
2916	# argument, so we may need to know it at that point already.
2917	# Even if this section looks crufty: it has the advantage of
2918	# actually working.
2919	break;;
2920    * )
2921	break;;
2922  esac
2923done
2924test "$ac_cv_exeext" = no && ac_cv_exeext=
2925
2926else
2927  ac_file=''
2928fi
2929
2930{ echo "$as_me:$LINENO: result: $ac_file" >&5
2931echo "${ECHO_T}$ac_file" >&6; }
2932if test -z "$ac_file"; then
2933  echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2937See \`config.log' for more details." >&5
2938echo "$as_me: error: C compiler cannot create executables
2939See \`config.log' for more details." >&2;}
2940   { (exit 77); exit 77; }; }
2941fi
2942
2943ac_exeext=$ac_cv_exeext
2944
2945# Check that the compiler produces executables we can run.  If not, either
2946# the compiler is broken, or we cross compile.
2947{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2948echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2949# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2950# If not cross compiling, check that we can run a simple program.
2951if test "$cross_compiling" != yes; then
2952  if { ac_try='./$ac_file'
2953  { (case "(($ac_try" in
2954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955  *) ac_try_echo=$ac_try;;
2956esac
2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958  (eval "$ac_try") 2>&5
2959  ac_status=$?
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); }; }; then
2962    cross_compiling=no
2963  else
2964    if test "$cross_compiling" = maybe; then
2965	cross_compiling=yes
2966    else
2967	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2968If you meant to cross compile, use \`--host'.
2969See \`config.log' for more details." >&5
2970echo "$as_me: error: cannot run C compiled programs.
2971If you meant to cross compile, use \`--host'.
2972See \`config.log' for more details." >&2;}
2973   { (exit 1); exit 1; }; }
2974    fi
2975  fi
2976fi
2977{ echo "$as_me:$LINENO: result: yes" >&5
2978echo "${ECHO_T}yes" >&6; }
2979
2980rm -f a.out a.exe conftest$ac_cv_exeext b.out
2981ac_clean_files=$ac_clean_files_save
2982# Check that the compiler produces executables we can run.  If not, either
2983# the compiler is broken, or we cross compile.
2984{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2985echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2986{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2987echo "${ECHO_T}$cross_compiling" >&6; }
2988
2989{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2990echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2991if { (ac_try="$ac_link"
2992case "(($ac_try" in
2993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994  *) ac_try_echo=$ac_try;;
2995esac
2996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997  (eval "$ac_link") 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; then
3001  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3002# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3003# work properly (i.e., refer to `conftest.exe'), while it won't with
3004# `rm'.
3005for ac_file in conftest.exe conftest conftest.*; do
3006  test -f "$ac_file" || continue
3007  case $ac_file in
3008    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3009    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3010	  break;;
3011    * ) break;;
3012  esac
3013done
3014else
3015  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3016See \`config.log' for more details." >&5
3017echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3018See \`config.log' for more details." >&2;}
3019   { (exit 1); exit 1; }; }
3020fi
3021
3022rm -f conftest$ac_cv_exeext
3023{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3024echo "${ECHO_T}$ac_cv_exeext" >&6; }
3025
3026rm -f conftest.$ac_ext
3027EXEEXT=$ac_cv_exeext
3028ac_exeext=$EXEEXT
3029{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3030echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3031if test "${ac_cv_objext+set}" = set; then
3032  echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034  cat >conftest.$ac_ext <<_ACEOF
3035/* confdefs.h.  */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h.  */
3040
3041int
3042main ()
3043{
3044
3045  ;
3046  return 0;
3047}
3048_ACEOF
3049rm -f conftest.o conftest.obj
3050if { (ac_try="$ac_compile"
3051case "(($ac_try" in
3052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053  *) ac_try_echo=$ac_try;;
3054esac
3055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056  (eval "$ac_compile") 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; then
3060  for ac_file in conftest.o conftest.obj conftest.*; do
3061  test -f "$ac_file" || continue;
3062  case $ac_file in
3063    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3064    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3065       break;;
3066  esac
3067done
3068else
3069  echo "$as_me: failed program was:" >&5
3070sed 's/^/| /' conftest.$ac_ext >&5
3071
3072{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3073See \`config.log' for more details." >&5
3074echo "$as_me: error: cannot compute suffix of object files: cannot compile
3075See \`config.log' for more details." >&2;}
3076   { (exit 1); exit 1; }; }
3077fi
3078
3079rm -f conftest.$ac_cv_objext conftest.$ac_ext
3080fi
3081{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3082echo "${ECHO_T}$ac_cv_objext" >&6; }
3083OBJEXT=$ac_cv_objext
3084ac_objext=$OBJEXT
3085{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3086echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3087if test "${ac_cv_c_compiler_gnu+set}" = set; then
3088  echo $ECHO_N "(cached) $ECHO_C" >&6
3089else
3090  cat >conftest.$ac_ext <<_ACEOF
3091/* confdefs.h.  */
3092_ACEOF
3093cat confdefs.h >>conftest.$ac_ext
3094cat >>conftest.$ac_ext <<_ACEOF
3095/* end confdefs.h.  */
3096
3097int
3098main ()
3099{
3100#ifndef __GNUC__
3101       choke me
3102#endif
3103
3104  ;
3105  return 0;
3106}
3107_ACEOF
3108rm -f conftest.$ac_objext
3109if { (ac_try="$ac_compile"
3110case "(($ac_try" in
3111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112  *) ac_try_echo=$ac_try;;
3113esac
3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115  (eval "$ac_compile") 2>conftest.er1
3116  ac_status=$?
3117  grep -v '^ *+' conftest.er1 >conftest.err
3118  rm -f conftest.er1
3119  cat conftest.err >&5
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); } && {
3122	 test -z "$ac_c_werror_flag" ||
3123	 test ! -s conftest.err
3124       } && test -s conftest.$ac_objext; then
3125  ac_compiler_gnu=yes
3126else
3127  echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130	ac_compiler_gnu=no
3131fi
3132
3133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134ac_cv_c_compiler_gnu=$ac_compiler_gnu
3135
3136fi
3137{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3138echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3139GCC=`test $ac_compiler_gnu = yes && echo yes`
3140ac_test_CFLAGS=${CFLAGS+set}
3141ac_save_CFLAGS=$CFLAGS
3142{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3143echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3144if test "${ac_cv_prog_cc_g+set}" = set; then
3145  echo $ECHO_N "(cached) $ECHO_C" >&6
3146else
3147  ac_save_c_werror_flag=$ac_c_werror_flag
3148   ac_c_werror_flag=yes
3149   ac_cv_prog_cc_g=no
3150   CFLAGS="-g"
3151   cat >conftest.$ac_ext <<_ACEOF
3152/* confdefs.h.  */
3153_ACEOF
3154cat confdefs.h >>conftest.$ac_ext
3155cat >>conftest.$ac_ext <<_ACEOF
3156/* end confdefs.h.  */
3157
3158int
3159main ()
3160{
3161
3162  ;
3163  return 0;
3164}
3165_ACEOF
3166rm -f conftest.$ac_objext
3167if { (ac_try="$ac_compile"
3168case "(($ac_try" in
3169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170  *) ac_try_echo=$ac_try;;
3171esac
3172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173  (eval "$ac_compile") 2>conftest.er1
3174  ac_status=$?
3175  grep -v '^ *+' conftest.er1 >conftest.err
3176  rm -f conftest.er1
3177  cat conftest.err >&5
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); } && {
3180	 test -z "$ac_c_werror_flag" ||
3181	 test ! -s conftest.err
3182       } && test -s conftest.$ac_objext; then
3183  ac_cv_prog_cc_g=yes
3184else
3185  echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
3188	CFLAGS=""
3189      cat >conftest.$ac_ext <<_ACEOF
3190/* confdefs.h.  */
3191_ACEOF
3192cat confdefs.h >>conftest.$ac_ext
3193cat >>conftest.$ac_ext <<_ACEOF
3194/* end confdefs.h.  */
3195
3196int
3197main ()
3198{
3199
3200  ;
3201  return 0;
3202}
3203_ACEOF
3204rm -f conftest.$ac_objext
3205if { (ac_try="$ac_compile"
3206case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211  (eval "$ac_compile") 2>conftest.er1
3212  ac_status=$?
3213  grep -v '^ *+' conftest.er1 >conftest.err
3214  rm -f conftest.er1
3215  cat conftest.err >&5
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); } && {
3218	 test -z "$ac_c_werror_flag" ||
3219	 test ! -s conftest.err
3220       } && test -s conftest.$ac_objext; then
3221  :
3222else
3223  echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226	ac_c_werror_flag=$ac_save_c_werror_flag
3227	 CFLAGS="-g"
3228	 cat >conftest.$ac_ext <<_ACEOF
3229/* confdefs.h.  */
3230_ACEOF
3231cat confdefs.h >>conftest.$ac_ext
3232cat >>conftest.$ac_ext <<_ACEOF
3233/* end confdefs.h.  */
3234
3235int
3236main ()
3237{
3238
3239  ;
3240  return 0;
3241}
3242_ACEOF
3243rm -f conftest.$ac_objext
3244if { (ac_try="$ac_compile"
3245case "(($ac_try" in
3246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247  *) ac_try_echo=$ac_try;;
3248esac
3249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250  (eval "$ac_compile") 2>conftest.er1
3251  ac_status=$?
3252  grep -v '^ *+' conftest.er1 >conftest.err
3253  rm -f conftest.er1
3254  cat conftest.err >&5
3255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256  (exit $ac_status); } && {
3257	 test -z "$ac_c_werror_flag" ||
3258	 test ! -s conftest.err
3259       } && test -s conftest.$ac_objext; then
3260  ac_cv_prog_cc_g=yes
3261else
3262  echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265
3266fi
3267
3268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269fi
3270
3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272fi
3273
3274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275   ac_c_werror_flag=$ac_save_c_werror_flag
3276fi
3277{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3279if test "$ac_test_CFLAGS" = set; then
3280  CFLAGS=$ac_save_CFLAGS
3281elif test $ac_cv_prog_cc_g = yes; then
3282  if test "$GCC" = yes; then
3283    CFLAGS="-g -O2"
3284  else
3285    CFLAGS="-g"
3286  fi
3287else
3288  if test "$GCC" = yes; then
3289    CFLAGS="-O2"
3290  else
3291    CFLAGS=
3292  fi
3293fi
3294{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3295echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3296if test "${ac_cv_prog_cc_c89+set}" = set; then
3297  echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299  ac_cv_prog_cc_c89=no
3300ac_save_CC=$CC
3301cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h.  */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h.  */
3307#include <stdarg.h>
3308#include <stdio.h>
3309#include <sys/types.h>
3310#include <sys/stat.h>
3311/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3312struct buf { int x; };
3313FILE * (*rcsopen) (struct buf *, struct stat *, int);
3314static char *e (p, i)
3315     char **p;
3316     int i;
3317{
3318  return p[i];
3319}
3320static char *f (char * (*g) (char **, int), char **p, ...)
3321{
3322  char *s;
3323  va_list v;
3324  va_start (v,p);
3325  s = g (p, va_arg (v,int));
3326  va_end (v);
3327  return s;
3328}
3329
3330/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3331   function prototypes and stuff, but not '\xHH' hex character constants.
3332   These don't provoke an error unfortunately, instead are silently treated
3333   as 'x'.  The following induces an error, until -std is added to get
3334   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3335   array size at least.  It's necessary to write '\x00'==0 to get something
3336   that's true only with -std.  */
3337int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3338
3339/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3340   inside strings and character constants.  */
3341#define FOO(x) 'x'
3342int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3343
3344int test (int i, double x);
3345struct s1 {int (*f) (int a);};
3346struct s2 {int (*f) (double a);};
3347int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3348int argc;
3349char **argv;
3350int
3351main ()
3352{
3353return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3354  ;
3355  return 0;
3356}
3357_ACEOF
3358for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3359	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3360do
3361  CC="$ac_save_CC $ac_arg"
3362  rm -f conftest.$ac_objext
3363if { (ac_try="$ac_compile"
3364case "(($ac_try" in
3365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366  *) ac_try_echo=$ac_try;;
3367esac
3368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369  (eval "$ac_compile") 2>conftest.er1
3370  ac_status=$?
3371  grep -v '^ *+' conftest.er1 >conftest.err
3372  rm -f conftest.er1
3373  cat conftest.err >&5
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); } && {
3376	 test -z "$ac_c_werror_flag" ||
3377	 test ! -s conftest.err
3378       } && test -s conftest.$ac_objext; then
3379  ac_cv_prog_cc_c89=$ac_arg
3380else
3381  echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384
3385fi
3386
3387rm -f core conftest.err conftest.$ac_objext
3388  test "x$ac_cv_prog_cc_c89" != "xno" && break
3389done
3390rm -f conftest.$ac_ext
3391CC=$ac_save_CC
3392
3393fi
3394# AC_CACHE_VAL
3395case "x$ac_cv_prog_cc_c89" in
3396  x)
3397    { echo "$as_me:$LINENO: result: none needed" >&5
3398echo "${ECHO_T}none needed" >&6; } ;;
3399  xno)
3400    { echo "$as_me:$LINENO: result: unsupported" >&5
3401echo "${ECHO_T}unsupported" >&6; } ;;
3402  *)
3403    CC="$CC $ac_cv_prog_cc_c89"
3404    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3405echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3406esac
3407
3408
3409ac_ext=c
3410ac_cpp='$CPP $CPPFLAGS'
3411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414DEPDIR="${am__leading_dot}deps"
3415
3416ac_config_commands="$ac_config_commands depfiles"
3417
3418
3419am_make=${MAKE-make}
3420cat > confinc << 'END'
3421am__doit:
3422	@echo done
3423.PHONY: am__doit
3424END
3425# If we don't find an include directive, just comment out the code.
3426{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3427echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3428am__include="#"
3429am__quote=
3430_am_result=none
3431# First try GNU make style include.
3432echo "include confinc" > confmf
3433# We grep out `Entering directory' and `Leaving directory'
3434# messages which can occur if `w' ends up in MAKEFLAGS.
3435# In particular we don't look at `^make:' because GNU make might
3436# be invoked under some other name (usually "gmake"), in which
3437# case it prints its new name instead of `make'.
3438if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3439   am__include=include
3440   am__quote=
3441   _am_result=GNU
3442fi
3443# Now try BSD make style include.
3444if test "$am__include" = "#"; then
3445   echo '.include "confinc"' > confmf
3446   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3447      am__include=.include
3448      am__quote="\""
3449      _am_result=BSD
3450   fi
3451fi
3452
3453
3454{ echo "$as_me:$LINENO: result: $_am_result" >&5
3455echo "${ECHO_T}$_am_result" >&6; }
3456rm -f confinc confmf
3457
3458# Check whether --enable-dependency-tracking was given.
3459if test "${enable_dependency_tracking+set}" = set; then
3460  enableval=$enable_dependency_tracking;
3461fi
3462
3463if test "x$enable_dependency_tracking" != xno; then
3464  am_depcomp="$ac_aux_dir/depcomp"
3465  AMDEPBACKSLASH='\'
3466fi
3467 if test "x$enable_dependency_tracking" != xno; then
3468  AMDEP_TRUE=
3469  AMDEP_FALSE='#'
3470else
3471  AMDEP_TRUE='#'
3472  AMDEP_FALSE=
3473fi
3474
3475
3476
3477depcc="$CC"   am_compiler_list=
3478
3479{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3480echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3481if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3482  echo $ECHO_N "(cached) $ECHO_C" >&6
3483else
3484  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3485  # We make a subdir and do the tests there.  Otherwise we can end up
3486  # making bogus files that we don't know about and never remove.  For
3487  # instance it was reported that on HP-UX the gcc test will end up
3488  # making a dummy file named `D' -- because `-MD' means `put the output
3489  # in D'.
3490  mkdir conftest.dir
3491  # Copy depcomp to subdir because otherwise we won't find it if we're
3492  # using a relative directory.
3493  cp "$am_depcomp" conftest.dir
3494  cd conftest.dir
3495  # We will build objects and dependencies in a subdirectory because
3496  # it helps to detect inapplicable dependency modes.  For instance
3497  # both Tru64's cc and ICC support -MD to output dependencies as a
3498  # side effect of compilation, but ICC will put the dependencies in
3499  # the current directory while Tru64 will put them in the object
3500  # directory.
3501  mkdir sub
3502
3503  am_cv_CC_dependencies_compiler_type=none
3504  if test "$am_compiler_list" = ""; then
3505     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3506  fi
3507  for depmode in $am_compiler_list; do
3508    # Setup a source with many dependencies, because some compilers
3509    # like to wrap large dependency lists on column 80 (with \), and
3510    # we should not choose a depcomp mode which is confused by this.
3511    #
3512    # We need to recreate these files for each test, as the compiler may
3513    # overwrite some of them when testing with obscure command lines.
3514    # This happens at least with the AIX C compiler.
3515    : > sub/conftest.c
3516    for i in 1 2 3 4 5 6; do
3517      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3518      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3519      # Solaris 8's {/usr,}/bin/sh.
3520      touch sub/conftst$i.h
3521    done
3522    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3523
3524    case $depmode in
3525    nosideeffect)
3526      # after this tag, mechanisms are not by side-effect, so they'll
3527      # only be used when explicitly requested
3528      if test "x$enable_dependency_tracking" = xyes; then
3529	continue
3530      else
3531	break
3532      fi
3533      ;;
3534    none) break ;;
3535    esac
3536    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3537    # mode.  It turns out that the SunPro C++ compiler does not properly
3538    # handle `-M -o', and we need to detect this.
3539    if depmode=$depmode \
3540       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3541       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3542       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3543         >/dev/null 2>conftest.err &&
3544       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3545       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3546       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3547       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3548      # icc doesn't choke on unknown options, it will just issue warnings
3549      # or remarks (even with -Werror).  So we grep stderr for any message
3550      # that says an option was ignored or not supported.
3551      # When given -MP, icc 7.0 and 7.1 complain thusly:
3552      #   icc: Command line warning: ignoring option '-M'; no argument required
3553      # The diagnosis changed in icc 8.0:
3554      #   icc: Command line remark: option '-MP' not supported
3555      if (grep 'ignoring option' conftest.err ||
3556          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3557        am_cv_CC_dependencies_compiler_type=$depmode
3558        break
3559      fi
3560    fi
3561  done
3562
3563  cd ..
3564  rm -rf conftest.dir
3565else
3566  am_cv_CC_dependencies_compiler_type=none
3567fi
3568
3569fi
3570{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3571echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3572CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3573
3574 if
3575  test "x$enable_dependency_tracking" != xno \
3576  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3577  am__fastdepCC_TRUE=
3578  am__fastdepCC_FALSE='#'
3579else
3580  am__fastdepCC_TRUE='#'
3581  am__fastdepCC_FALSE=
3582fi
3583
3584
3585if test -n "$ac_tool_prefix"; then
3586  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3587set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3590if test "${ac_cv_prog_RANLIB+set}" = set; then
3591  echo $ECHO_N "(cached) $ECHO_C" >&6
3592else
3593  if test -n "$RANLIB"; then
3594  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3595else
3596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597for as_dir in $PATH
3598do
3599  IFS=$as_save_IFS
3600  test -z "$as_dir" && as_dir=.
3601  for ac_exec_ext in '' $ac_executable_extensions; do
3602  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3604    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605    break 2
3606  fi
3607done
3608done
3609IFS=$as_save_IFS
3610
3611fi
3612fi
3613RANLIB=$ac_cv_prog_RANLIB
3614if test -n "$RANLIB"; then
3615  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3616echo "${ECHO_T}$RANLIB" >&6; }
3617else
3618  { echo "$as_me:$LINENO: result: no" >&5
3619echo "${ECHO_T}no" >&6; }
3620fi
3621
3622
3623fi
3624if test -z "$ac_cv_prog_RANLIB"; then
3625  ac_ct_RANLIB=$RANLIB
3626  # Extract the first word of "ranlib", so it can be a program name with args.
3627set dummy ranlib; ac_word=$2
3628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3630if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3631  echo $ECHO_N "(cached) $ECHO_C" >&6
3632else
3633  if test -n "$ac_ct_RANLIB"; then
3634  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3635else
3636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639  IFS=$as_save_IFS
3640  test -z "$as_dir" && as_dir=.
3641  for ac_exec_ext in '' $ac_executable_extensions; do
3642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643    ac_cv_prog_ac_ct_RANLIB="ranlib"
3644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645    break 2
3646  fi
3647done
3648done
3649IFS=$as_save_IFS
3650
3651fi
3652fi
3653ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3654if test -n "$ac_ct_RANLIB"; then
3655  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3656echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3657else
3658  { echo "$as_me:$LINENO: result: no" >&5
3659echo "${ECHO_T}no" >&6; }
3660fi
3661
3662  if test "x$ac_ct_RANLIB" = x; then
3663    RANLIB=":"
3664  else
3665    case $cross_compiling:$ac_tool_warned in
3666yes:)
3667{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3668whose name does not start with the host triplet.  If you think this
3669configuration is useful to you, please write to [email protected]." >&5
3670echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3671whose name does not start with the host triplet.  If you think this
3672configuration is useful to you, please write to [email protected]." >&2;}
3673ac_tool_warned=yes ;;
3674esac
3675    RANLIB=$ac_ct_RANLIB
3676  fi
3677else
3678  RANLIB="$ac_cv_prog_RANLIB"
3679fi
3680
3681{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3682echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3683LN_S=$as_ln_s
3684if test "$LN_S" = "ln -s"; then
3685  { echo "$as_me:$LINENO: result: yes" >&5
3686echo "${ECHO_T}yes" >&6; }
3687else
3688  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3689echo "${ECHO_T}no, using $LN_S" >&6; }
3690fi
3691
3692case `pwd` in
3693  *\ * | *\	*)
3694    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3695echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3696esac
3697
3698
3699
3700macro_version='2.2.4'
3701macro_revision='1.2976'
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715ltmain="$ac_aux_dir/ltmain.sh"
3716
3717{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3718echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3719if test "${ac_cv_path_SED+set}" = set; then
3720  echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3723     for ac_i in 1 2 3 4 5 6 7; do
3724       ac_script="$ac_script$as_nl$ac_script"
3725     done
3726     echo "$ac_script" | sed 99q >conftest.sed
3727     $as_unset ac_script || ac_script=
3728     # Extract the first word of "sed gsed" to use in msg output
3729if test -z "$SED"; then
3730set dummy sed gsed; ac_prog_name=$2
3731if test "${ac_cv_path_SED+set}" = set; then
3732  echo $ECHO_N "(cached) $ECHO_C" >&6
3733else
3734  ac_path_SED_found=false
3735# Loop through the user's path and test for each of PROGNAME-LIST
3736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737for as_dir in $PATH
3738do
3739  IFS=$as_save_IFS
3740  test -z "$as_dir" && as_dir=.
3741  for ac_prog in sed gsed; do
3742  for ac_exec_ext in '' $ac_executable_extensions; do
3743    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3744    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3745    # Check for GNU ac_path_SED and select it if it is found.
3746  # Check for GNU $ac_path_SED
3747case `"$ac_path_SED" --version 2>&1` in
3748*GNU*)
3749  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3750*)
3751  ac_count=0
3752  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3753  while :
3754  do
3755    cat "conftest.in" "conftest.in" >"conftest.tmp"
3756    mv "conftest.tmp" "conftest.in"
3757    cp "conftest.in" "conftest.nl"
3758    echo '' >> "conftest.nl"
3759    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3760    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3761    ac_count=`expr $ac_count + 1`
3762    if test $ac_count -gt ${ac_path_SED_max-0}; then
3763      # Best one so far, save it but keep looking for a better one
3764      ac_cv_path_SED="$ac_path_SED"
3765      ac_path_SED_max=$ac_count
3766    fi
3767    # 10*(2^10) chars as input seems more than enough
3768    test $ac_count -gt 10 && break
3769  done
3770  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3771esac
3772
3773
3774    $ac_path_SED_found && break 3
3775  done
3776done
3777
3778done
3779IFS=$as_save_IFS
3780
3781
3782fi
3783
3784SED="$ac_cv_path_SED"
3785if test -z "$SED"; then
3786  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3787echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3788   { (exit 1); exit 1; }; }
3789fi
3790
3791else
3792  ac_cv_path_SED=$SED
3793fi
3794
3795fi
3796{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3797echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3798 SED="$ac_cv_path_SED"
3799  rm -f conftest.sed
3800
3801test -z "$SED" && SED=sed
3802Xsed="$SED -e 1s/^X//"
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3815echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3816if test "${ac_cv_path_GREP+set}" = set; then
3817  echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
3819  # Extract the first word of "grep ggrep" to use in msg output
3820if test -z "$GREP"; then
3821set dummy grep ggrep; ac_prog_name=$2
3822if test "${ac_cv_path_GREP+set}" = set; then
3823  echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825  ac_path_GREP_found=false
3826# Loop through the user's path and test for each of PROGNAME-LIST
3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3829do
3830  IFS=$as_save_IFS
3831  test -z "$as_dir" && as_dir=.
3832  for ac_prog in grep ggrep; do
3833  for ac_exec_ext in '' $ac_executable_extensions; do
3834    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3835    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3836    # Check for GNU ac_path_GREP and select it if it is found.
3837  # Check for GNU $ac_path_GREP
3838case `"$ac_path_GREP" --version 2>&1` in
3839*GNU*)
3840  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3841*)
3842  ac_count=0
3843  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3844  while :
3845  do
3846    cat "conftest.in" "conftest.in" >"conftest.tmp"
3847    mv "conftest.tmp" "conftest.in"
3848    cp "conftest.in" "conftest.nl"
3849    echo 'GREP' >> "conftest.nl"
3850    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3851    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3852    ac_count=`expr $ac_count + 1`
3853    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3854      # Best one so far, save it but keep looking for a better one
3855      ac_cv_path_GREP="$ac_path_GREP"
3856      ac_path_GREP_max=$ac_count
3857    fi
3858    # 10*(2^10) chars as input seems more than enough
3859    test $ac_count -gt 10 && break
3860  done
3861  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3862esac
3863
3864
3865    $ac_path_GREP_found && break 3
3866  done
3867done
3868
3869done
3870IFS=$as_save_IFS
3871
3872
3873fi
3874
3875GREP="$ac_cv_path_GREP"
3876if test -z "$GREP"; then
3877  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3878echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3879   { (exit 1); exit 1; }; }
3880fi
3881
3882else
3883  ac_cv_path_GREP=$GREP
3884fi
3885
3886
3887fi
3888{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3889echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3890 GREP="$ac_cv_path_GREP"
3891
3892
3893{ echo "$as_me:$LINENO: checking for egrep" >&5
3894echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3895if test "${ac_cv_path_EGREP+set}" = set; then
3896  echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3899   then ac_cv_path_EGREP="$GREP -E"
3900   else
3901     # Extract the first word of "egrep" to use in msg output
3902if test -z "$EGREP"; then
3903set dummy egrep; ac_prog_name=$2
3904if test "${ac_cv_path_EGREP+set}" = set; then
3905  echo $ECHO_N "(cached) $ECHO_C" >&6
3906else
3907  ac_path_EGREP_found=false
3908# Loop through the user's path and test for each of PROGNAME-LIST
3909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3911do
3912  IFS=$as_save_IFS
3913  test -z "$as_dir" && as_dir=.
3914  for ac_prog in egrep; do
3915  for ac_exec_ext in '' $ac_executable_extensions; do
3916    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3917    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3918    # Check for GNU ac_path_EGREP and select it if it is found.
3919  # Check for GNU $ac_path_EGREP
3920case `"$ac_path_EGREP" --version 2>&1` in
3921*GNU*)
3922  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3923*)
3924  ac_count=0
3925  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3926  while :
3927  do
3928    cat "conftest.in" "conftest.in" >"conftest.tmp"
3929    mv "conftest.tmp" "conftest.in"
3930    cp "conftest.in" "conftest.nl"
3931    echo 'EGREP' >> "conftest.nl"
3932    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3933    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3934    ac_count=`expr $ac_count + 1`
3935    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3936      # Best one so far, save it but keep looking for a better one
3937      ac_cv_path_EGREP="$ac_path_EGREP"
3938      ac_path_EGREP_max=$ac_count
3939    fi
3940    # 10*(2^10) chars as input seems more than enough
3941    test $ac_count -gt 10 && break
3942  done
3943  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3944esac
3945
3946
3947    $ac_path_EGREP_found && break 3
3948  done
3949done
3950
3951done
3952IFS=$as_save_IFS
3953
3954
3955fi
3956
3957EGREP="$ac_cv_path_EGREP"
3958if test -z "$EGREP"; then
3959  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3960echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3961   { (exit 1); exit 1; }; }
3962fi
3963
3964else
3965  ac_cv_path_EGREP=$EGREP
3966fi
3967
3968
3969   fi
3970fi
3971{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3972echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3973 EGREP="$ac_cv_path_EGREP"
3974
3975
3976{ echo "$as_me:$LINENO: checking for fgrep" >&5
3977echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3978if test "${ac_cv_path_FGREP+set}" = set; then
3979  echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3982   then ac_cv_path_FGREP="$GREP -F"
3983   else
3984     # Extract the first word of "fgrep" to use in msg output
3985if test -z "$FGREP"; then
3986set dummy fgrep; ac_prog_name=$2
3987if test "${ac_cv_path_FGREP+set}" = set; then
3988  echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990  ac_path_FGREP_found=false
3991# Loop through the user's path and test for each of PROGNAME-LIST
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3994do
3995  IFS=$as_save_IFS
3996  test -z "$as_dir" && as_dir=.
3997  for ac_prog in fgrep; do
3998  for ac_exec_ext in '' $ac_executable_extensions; do
3999    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4000    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4001    # Check for GNU ac_path_FGREP and select it if it is found.
4002  # Check for GNU $ac_path_FGREP
4003case `"$ac_path_FGREP" --version 2>&1` in
4004*GNU*)
4005  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4006*)
4007  ac_count=0
4008  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4009  while :
4010  do
4011    cat "conftest.in" "conftest.in" >"conftest.tmp"
4012    mv "conftest.tmp" "conftest.in"
4013    cp "conftest.in" "conftest.nl"
4014    echo 'FGREP' >> "conftest.nl"
4015    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017    ac_count=`expr $ac_count + 1`
4018    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4019      # Best one so far, save it but keep looking for a better one
4020      ac_cv_path_FGREP="$ac_path_FGREP"
4021      ac_path_FGREP_max=$ac_count
4022    fi
4023    # 10*(2^10) chars as input seems more than enough
4024    test $ac_count -gt 10 && break
4025  done
4026  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027esac
4028
4029
4030    $ac_path_FGREP_found && break 3
4031  done
4032done
4033
4034done
4035IFS=$as_save_IFS
4036
4037
4038fi
4039
4040FGREP="$ac_cv_path_FGREP"
4041if test -z "$FGREP"; then
4042  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4043echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4044   { (exit 1); exit 1; }; }
4045fi
4046
4047else
4048  ac_cv_path_FGREP=$FGREP
4049fi
4050
4051
4052   fi
4053fi
4054{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4055echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4056 FGREP="$ac_cv_path_FGREP"
4057
4058
4059test -z "$GREP" && GREP=grep
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079# Check whether --with-gnu-ld was given.
4080if test "${with_gnu_ld+set}" = set; then
4081  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4082else
4083  with_gnu_ld=no
4084fi
4085
4086ac_prog=ld
4087if test "$GCC" = yes; then
4088  # Check if gcc -print-prog-name=ld gives a path.
4089  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4090echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4091  case $host in
4092  *-*-mingw*)
4093    # gcc leaves a trailing carriage return which upsets mingw
4094    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4095  *)
4096    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4097  esac
4098  case $ac_prog in
4099    # Accept absolute paths.
4100    [\\/]* | ?:[\\/]*)
4101      re_direlt='/[^/][^/]*/\.\./'
4102      # Canonicalize the pathname of ld
4103      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4104      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4105	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4106      done
4107      test -z "$LD" && LD="$ac_prog"
4108      ;;
4109  "")
4110    # If it fails, then pretend we aren't using GCC.
4111    ac_prog=ld
4112    ;;
4113  *)
4114    # If it is relative, then search for the first ld in PATH.
4115    with_gnu_ld=unknown
4116    ;;
4117  esac
4118elif test "$with_gnu_ld" = yes; then
4119  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4120echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4121else
4122  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4123echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4124fi
4125if test "${lt_cv_path_LD+set}" = set; then
4126  echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128  if test -z "$LD"; then
4129  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4130  for ac_dir in $PATH; do
4131    IFS="$lt_save_ifs"
4132    test -z "$ac_dir" && ac_dir=.
4133    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4134      lt_cv_path_LD="$ac_dir/$ac_prog"
4135      # Check to see if the program is GNU ld.  I'd rather use --version,
4136      # but apparently some variants of GNU ld only accept -v.
4137      # Break only if it was the GNU/non-GNU ld that we prefer.
4138      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4139      *GNU* | *'with BFD'*)
4140	test "$with_gnu_ld" != no && break
4141	;;
4142      *)
4143	test "$with_gnu_ld" != yes && break
4144	;;
4145      esac
4146    fi
4147  done
4148  IFS="$lt_save_ifs"
4149else
4150  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4151fi
4152fi
4153
4154LD="$lt_cv_path_LD"
4155if test -n "$LD"; then
4156  { echo "$as_me:$LINENO: result: $LD" >&5
4157echo "${ECHO_T}$LD" >&6; }
4158else
4159  { echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6; }
4161fi
4162test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4163echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4164   { (exit 1); exit 1; }; }
4165{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4166echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4167if test "${lt_cv_prog_gnu_ld+set}" = set; then
4168  echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4171case `$LD -v 2>&1 </dev/null` in
4172*GNU* | *'with BFD'*)
4173  lt_cv_prog_gnu_ld=yes
4174  ;;
4175*)
4176  lt_cv_prog_gnu_ld=no
4177  ;;
4178esac
4179fi
4180{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4181echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4182with_gnu_ld=$lt_cv_prog_gnu_ld
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4193echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4194if test "${lt_cv_path_NM+set}" = set; then
4195  echo $ECHO_N "(cached) $ECHO_C" >&6
4196else
4197  if test -n "$NM"; then
4198  # Let the user override the test.
4199  lt_cv_path_NM="$NM"
4200else
4201  lt_nm_to_check="${ac_tool_prefix}nm"
4202  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4203    lt_nm_to_check="$lt_nm_to_check nm"
4204  fi
4205  for lt_tmp_nm in $lt_nm_to_check; do
4206    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4207    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4208      IFS="$lt_save_ifs"
4209      test -z "$ac_dir" && ac_dir=.
4210      tmp_nm="$ac_dir/$lt_tmp_nm"
4211      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4212	# Check to see if the nm accepts a BSD-compat flag.
4213	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4214	#   nm: unknown option "B" ignored
4215	# Tru64's nm complains that /dev/null is an invalid object file
4216	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4217	*/dev/null* | *'Invalid file or object type'*)
4218	  lt_cv_path_NM="$tmp_nm -B"
4219	  break
4220	  ;;
4221	*)
4222	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4223	  */dev/null*)
4224	    lt_cv_path_NM="$tmp_nm -p"
4225	    break
4226	    ;;
4227	  *)
4228	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4229	    continue # so that we can try to find one that supports BSD flags
4230	    ;;
4231	  esac
4232	  ;;
4233	esac
4234      fi
4235    done
4236    IFS="$lt_save_ifs"
4237  done
4238  : ${lt_cv_path_NM=no}
4239fi
4240fi
4241{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4242echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4243if test "$lt_cv_path_NM" != "no"; then
4244  NM="$lt_cv_path_NM"
4245else
4246  # Didn't find any BSD compatible name lister, look for dumpbin.
4247  if test -n "$ac_tool_prefix"; then
4248  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4249  do
4250    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4251set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4252{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4254if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4255  echo $ECHO_N "(cached) $ECHO_C" >&6
4256else
4257  if test -n "$DUMPBIN"; then
4258  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4259else
4260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261for as_dir in $PATH
4262do
4263  IFS=$as_save_IFS
4264  test -z "$as_dir" && as_dir=.
4265  for ac_exec_ext in '' $ac_executable_extensions; do
4266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269    break 2
4270  fi
4271done
4272done
4273IFS=$as_save_IFS
4274
4275fi
4276fi
4277DUMPBIN=$ac_cv_prog_DUMPBIN
4278if test -n "$DUMPBIN"; then
4279  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4280echo "${ECHO_T}$DUMPBIN" >&6; }
4281else
4282  { echo "$as_me:$LINENO: result: no" >&5
4283echo "${ECHO_T}no" >&6; }
4284fi
4285
4286
4287    test -n "$DUMPBIN" && break
4288  done
4289fi
4290if test -z "$DUMPBIN"; then
4291  ac_ct_DUMPBIN=$DUMPBIN
4292  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4293do
4294  # Extract the first word of "$ac_prog", so it can be a program name with args.
4295set dummy $ac_prog; ac_word=$2
4296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4298if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4299  echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301  if test -n "$ac_ct_DUMPBIN"; then
4302  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4303else
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307  IFS=$as_save_IFS
4308  test -z "$as_dir" && as_dir=.
4309  for ac_exec_ext in '' $ac_executable_extensions; do
4310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4312    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313    break 2
4314  fi
4315done
4316done
4317IFS=$as_save_IFS
4318
4319fi
4320fi
4321ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4322if test -n "$ac_ct_DUMPBIN"; then
4323  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4324echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4325else
4326  { echo "$as_me:$LINENO: result: no" >&5
4327echo "${ECHO_T}no" >&6; }
4328fi
4329
4330
4331  test -n "$ac_ct_DUMPBIN" && break
4332done
4333
4334  if test "x$ac_ct_DUMPBIN" = x; then
4335    DUMPBIN=":"
4336  else
4337    case $cross_compiling:$ac_tool_warned in
4338yes:)
4339{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4340whose name does not start with the host triplet.  If you think this
4341configuration is useful to you, please write to [email protected]." >&5
4342echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4343whose name does not start with the host triplet.  If you think this
4344configuration is useful to you, please write to [email protected]." >&2;}
4345ac_tool_warned=yes ;;
4346esac
4347    DUMPBIN=$ac_ct_DUMPBIN
4348  fi
4349fi
4350
4351
4352  if test "$DUMPBIN" != ":"; then
4353    NM="$DUMPBIN"
4354  fi
4355fi
4356test -z "$NM" && NM=nm
4357
4358
4359
4360
4361
4362
4363{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4364echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4365if test "${lt_cv_nm_interface+set}" = set; then
4366  echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368  lt_cv_nm_interface="BSD nm"
4369  echo "int some_variable = 0;" > conftest.$ac_ext
4370  (eval echo "\"\$as_me:4370: $ac_compile\"" >&5)
4371  (eval "$ac_compile" 2>conftest.err)
4372  cat conftest.err >&5
4373  (eval echo "\"\$as_me:4373: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4374  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4375  cat conftest.err >&5
4376  (eval echo "\"\$as_me:4376: output\"" >&5)
4377  cat conftest.out >&5
4378  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4379    lt_cv_nm_interface="MS dumpbin"
4380  fi
4381  rm -r -f conftest*
4382fi
4383{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4384echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4385
4386# find the maximum length of command line arguments
4387{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4388echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4389if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4390  echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
4392    i=0
4393  teststring="ABCD"
4394
4395  case $build_os in
4396  msdosdjgpp*)
4397    # On DJGPP, this test can blow up pretty badly due to problems in libc
4398    # (any single argument exceeding 2000 bytes causes a buffer overrun
4399    # during glob expansion).  Even if it were fixed, the result of this
4400    # check would be larger than it should be.
4401    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4402    ;;
4403
4404  gnu*)
4405    # Under GNU Hurd, this test is not required because there is
4406    # no limit to the length of command line arguments.
4407    # Libtool will interpret -1 as no limit whatsoever
4408    lt_cv_sys_max_cmd_len=-1;
4409    ;;
4410
4411  cygwin* | mingw*)
4412    # On Win9x/ME, this test blows up -- it succeeds, but takes
4413    # about 5 minutes as the teststring grows exponentially.
4414    # Worse, since 9x/ME are not pre-emptively multitasking,
4415    # you end up with a "frozen" computer, even though with patience
4416    # the test eventually succeeds (with a max line length of 256k).
4417    # Instead, let's just punt: use the minimum linelength reported by
4418    # all of the supported platforms: 8192 (on NT/2K/XP).
4419    lt_cv_sys_max_cmd_len=8192;
4420    ;;
4421
4422  amigaos*)
4423    # On AmigaOS with pdksh, this test takes hours, literally.
4424    # So we just punt and use a minimum line length of 8192.
4425    lt_cv_sys_max_cmd_len=8192;
4426    ;;
4427
4428  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4429    # This has been around since 386BSD, at least.  Likely further.
4430    if test -x /sbin/sysctl; then
4431      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4432    elif test -x /usr/sbin/sysctl; then
4433      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4434    else
4435      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4436    fi
4437    # And add a safety zone
4438    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4439    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4440    ;;
4441
4442  interix*)
4443    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4444    lt_cv_sys_max_cmd_len=196608
4445    ;;
4446
4447  osf*)
4448    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4449    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4450    # nice to cause kernel panics so lets avoid the loop below.
4451    # First set a reasonable default.
4452    lt_cv_sys_max_cmd_len=16384
4453    #
4454    if test -x /sbin/sysconfig; then
4455      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4456        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4457      esac
4458    fi
4459    ;;
4460  sco3.2v5*)
4461    lt_cv_sys_max_cmd_len=102400
4462    ;;
4463  sysv5* | sco5v6* | sysv4.2uw2*)
4464    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4465    if test -n "$kargmax"; then
4466      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4467    else
4468      lt_cv_sys_max_cmd_len=32768
4469    fi
4470    ;;
4471  *)
4472    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4473    if test -n "$lt_cv_sys_max_cmd_len"; then
4474      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4475      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4476    else
4477      # Make teststring a little bigger before we do anything with it.
4478      # a 1K string should be a reasonable start.
4479      for i in 1 2 3 4 5 6 7 8 ; do
4480        teststring=$teststring$teststring
4481      done
4482      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4483      # If test is not a shell built-in, we'll probably end up computing a
4484      # maximum length that is only half of the actual maximum length, but
4485      # we can't tell.
4486      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4487	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4488	      test $i != 17 # 1/2 MB should be enough
4489      do
4490        i=`expr $i + 1`
4491        teststring=$teststring$teststring
4492      done
4493      # Only check the string length outside the loop.
4494      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4495      teststring=
4496      # Add a significant safety factor because C++ compilers can tack on
4497      # massive amounts of additional arguments before passing them to the
4498      # linker.  It appears as though 1/2 is a usable value.
4499      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4500    fi
4501    ;;
4502  esac
4503
4504fi
4505
4506if test -n $lt_cv_sys_max_cmd_len ; then
4507  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4508echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4509else
4510  { echo "$as_me:$LINENO: result: none" >&5
4511echo "${ECHO_T}none" >&6; }
4512fi
4513max_cmd_len=$lt_cv_sys_max_cmd_len
4514
4515
4516
4517
4518
4519
4520: ${CP="cp -f"}
4521: ${MV="mv -f"}
4522: ${RM="rm -f"}
4523
4524{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4525echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4526# Try some XSI features
4527xsi_shell=no
4528( _lt_dummy="a/b/c"
4529  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4530      = c,a/b,, \
4531    && eval 'test $(( 1 + 1 )) -eq 2 \
4532    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4533  && xsi_shell=yes
4534{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
4535echo "${ECHO_T}$xsi_shell" >&6; }
4536
4537
4538{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4539echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4540lt_shell_append=no
4541( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4542    >/dev/null 2>&1 \
4543  && lt_shell_append=yes
4544{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4545echo "${ECHO_T}$lt_shell_append" >&6; }
4546
4547
4548if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4549  lt_unset=unset
4550else
4551  lt_unset=false
4552fi
4553
4554
4555
4556
4557
4558# test EBCDIC or ASCII
4559case `echo X|tr X '\101'` in
4560 A) # ASCII based system
4561    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4562  lt_SP2NL='tr \040 \012'
4563  lt_NL2SP='tr \015\012 \040\040'
4564  ;;
4565 *) # EBCDIC based system
4566  lt_SP2NL='tr \100 \n'
4567  lt_NL2SP='tr \r\n \100\100'
4568  ;;
4569esac
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4580echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4581if test "${lt_cv_ld_reload_flag+set}" = set; then
4582  echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584  lt_cv_ld_reload_flag='-r'
4585fi
4586{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4587echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4588reload_flag=$lt_cv_ld_reload_flag
4589case $reload_flag in
4590"" | " "*) ;;
4591*) reload_flag=" $reload_flag" ;;
4592esac
4593reload_cmds='$LD$reload_flag -o $output$reload_objs'
4594case $host_os in
4595  darwin*)
4596    if test "$GCC" = yes; then
4597      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4598    else
4599      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4600    fi
4601    ;;
4602esac
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4614echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4615if test "${lt_cv_deplibs_check_method+set}" = set; then
4616  echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618  lt_cv_file_magic_cmd='$MAGIC_CMD'
4619lt_cv_file_magic_test_file=
4620lt_cv_deplibs_check_method='unknown'
4621# Need to set the preceding variable on all platforms that support
4622# interlibrary dependencies.
4623# 'none' -- dependencies not supported.
4624# `unknown' -- same as none, but documents that we really don't know.
4625# 'pass_all' -- all dependencies passed with no checks.
4626# 'test_compile' -- check by making test program.
4627# 'file_magic [[regex]]' -- check by looking for files in library path
4628# which responds to the $file_magic_cmd with a given extended regex.
4629# If you have `file' or equivalent on your system and you're not sure
4630# whether `pass_all' will *always* work, you probably want this one.
4631
4632case $host_os in
4633aix[4-9]*)
4634  lt_cv_deplibs_check_method=pass_all
4635  ;;
4636
4637beos*)
4638  lt_cv_deplibs_check_method=pass_all
4639  ;;
4640
4641bsdi[45]*)
4642  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4643  lt_cv_file_magic_cmd='/usr/bin/file -L'
4644  lt_cv_file_magic_test_file=/shlib/libc.so
4645  ;;
4646
4647cygwin*)
4648  # func_win32_libid is a shell function defined in ltmain.sh
4649  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4650  lt_cv_file_magic_cmd='func_win32_libid'
4651  ;;
4652
4653mingw* | pw32*)
4654  # Base MSYS/MinGW do not provide the 'file' command needed by
4655  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4656  # unless we find 'file', for example because we are cross-compiling.
4657  if ( file / ) >/dev/null 2>&1; then
4658    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4659    lt_cv_file_magic_cmd='func_win32_libid'
4660  else
4661    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4662    lt_cv_file_magic_cmd='$OBJDUMP -f'
4663  fi
4664  ;;
4665
4666darwin* | rhapsody*)
4667  lt_cv_deplibs_check_method=pass_all
4668  ;;
4669
4670freebsd* | dragonfly*)
4671  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4672    case $host_cpu in
4673    i*86 )
4674      # Not sure whether the presence of OpenBSD here was a mistake.
4675      # Let's accept both of them until this is cleared up.
4676      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4677      lt_cv_file_magic_cmd=/usr/bin/file
4678      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4679      ;;
4680    esac
4681  else
4682    lt_cv_deplibs_check_method=pass_all
4683  fi
4684  ;;
4685
4686gnu*)
4687  lt_cv_deplibs_check_method=pass_all
4688  ;;
4689
4690hpux10.20* | hpux11*)
4691  lt_cv_file_magic_cmd=/usr/bin/file
4692  case $host_cpu in
4693  ia64*)
4694    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4695    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4696    ;;
4697  hppa*64*)
4698    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4699    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4700    ;;
4701  *)
4702    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4703    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4704    ;;
4705  esac
4706  ;;
4707
4708interix[3-9]*)
4709  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4710  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4711  ;;
4712
4713irix5* | irix6* | nonstopux*)
4714  case $LD in
4715  *-32|*"-32 ") libmagic=32-bit;;
4716  *-n32|*"-n32 ") libmagic=N32;;
4717  *-64|*"-64 ") libmagic=64-bit;;
4718  *) libmagic=never-match;;
4719  esac
4720  lt_cv_deplibs_check_method=pass_all
4721  ;;
4722
4723# This must be Linux ELF.
4724linux* | k*bsd*-gnu)
4725  lt_cv_deplibs_check_method=pass_all
4726  ;;
4727
4728netbsd*)
4729  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4730    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4731  else
4732    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4733  fi
4734  ;;
4735
4736newos6*)
4737  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4738  lt_cv_file_magic_cmd=/usr/bin/file
4739  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4740  ;;
4741
4742*nto* | *qnx*)
4743  lt_cv_deplibs_check_method=pass_all
4744  ;;
4745
4746openbsd*)
4747  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4748    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4749  else
4750    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4751  fi
4752  ;;
4753
4754osf3* | osf4* | osf5*)
4755  lt_cv_deplibs_check_method=pass_all
4756  ;;
4757
4758rdos*)
4759  lt_cv_deplibs_check_method=pass_all
4760  ;;
4761
4762solaris*)
4763  lt_cv_deplibs_check_method=pass_all
4764  ;;
4765
4766sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4767  lt_cv_deplibs_check_method=pass_all
4768  ;;
4769
4770sysv4 | sysv4.3*)
4771  case $host_vendor in
4772  motorola)
4773    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]'
4774    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4775    ;;
4776  ncr)
4777    lt_cv_deplibs_check_method=pass_all
4778    ;;
4779  sequent)
4780    lt_cv_file_magic_cmd='/bin/file'
4781    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4782    ;;
4783  sni)
4784    lt_cv_file_magic_cmd='/bin/file'
4785    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4786    lt_cv_file_magic_test_file=/lib/libc.so
4787    ;;
4788  siemens)
4789    lt_cv_deplibs_check_method=pass_all
4790    ;;
4791  pc)
4792    lt_cv_deplibs_check_method=pass_all
4793    ;;
4794  esac
4795  ;;
4796
4797tpf*)
4798  lt_cv_deplibs_check_method=pass_all
4799  ;;
4800esac
4801
4802fi
4803{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4804echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4805file_magic_cmd=$lt_cv_file_magic_cmd
4806deplibs_check_method=$lt_cv_deplibs_check_method
4807test -z "$deplibs_check_method" && deplibs_check_method=unknown
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820if test -n "$ac_tool_prefix"; then
4821  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4822set dummy ${ac_tool_prefix}ar; ac_word=$2
4823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4825if test "${ac_cv_prog_AR+set}" = set; then
4826  echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828  if test -n "$AR"; then
4829  ac_cv_prog_AR="$AR" # Let the user override the test.
4830else
4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834  IFS=$as_save_IFS
4835  test -z "$as_dir" && as_dir=.
4836  for ac_exec_ext in '' $ac_executable_extensions; do
4837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838    ac_cv_prog_AR="${ac_tool_prefix}ar"
4839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840    break 2
4841  fi
4842done
4843done
4844IFS=$as_save_IFS
4845
4846fi
4847fi
4848AR=$ac_cv_prog_AR
4849if test -n "$AR"; then
4850  { echo "$as_me:$LINENO: result: $AR" >&5
4851echo "${ECHO_T}$AR" >&6; }
4852else
4853  { echo "$as_me:$LINENO: result: no" >&5
4854echo "${ECHO_T}no" >&6; }
4855fi
4856
4857
4858fi
4859if test -z "$ac_cv_prog_AR"; then
4860  ac_ct_AR=$AR
4861  # Extract the first word of "ar", so it can be a program name with args.
4862set dummy ar; ac_word=$2
4863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4866  echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868  if test -n "$ac_ct_AR"; then
4869  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4870else
4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH
4873do
4874  IFS=$as_save_IFS
4875  test -z "$as_dir" && as_dir=.
4876  for ac_exec_ext in '' $ac_executable_extensions; do
4877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878    ac_cv_prog_ac_ct_AR="ar"
4879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880    break 2
4881  fi
4882done
4883done
4884IFS=$as_save_IFS
4885
4886fi
4887fi
4888ac_ct_AR=$ac_cv_prog_ac_ct_AR
4889if test -n "$ac_ct_AR"; then
4890  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4891echo "${ECHO_T}$ac_ct_AR" >&6; }
4892else
4893  { echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6; }
4895fi
4896
4897  if test "x$ac_ct_AR" = x; then
4898    AR="false"
4899  else
4900    case $cross_compiling:$ac_tool_warned in
4901yes:)
4902{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4903whose name does not start with the host triplet.  If you think this
4904configuration is useful to you, please write to [email protected]." >&5
4905echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4906whose name does not start with the host triplet.  If you think this
4907configuration is useful to you, please write to [email protected]." >&2;}
4908ac_tool_warned=yes ;;
4909esac
4910    AR=$ac_ct_AR
4911  fi
4912else
4913  AR="$ac_cv_prog_AR"
4914fi
4915
4916test -z "$AR" && AR=ar
4917test -z "$AR_FLAGS" && AR_FLAGS=cru
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929if test -n "$ac_tool_prefix"; then
4930  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4931set dummy ${ac_tool_prefix}strip; ac_word=$2
4932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934if test "${ac_cv_prog_STRIP+set}" = set; then
4935  echo $ECHO_N "(cached) $ECHO_C" >&6
4936else
4937  if test -n "$STRIP"; then
4938  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4939else
4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943  IFS=$as_save_IFS
4944  test -z "$as_dir" && as_dir=.
4945  for ac_exec_ext in '' $ac_executable_extensions; do
4946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949    break 2
4950  fi
4951done
4952done
4953IFS=$as_save_IFS
4954
4955fi
4956fi
4957STRIP=$ac_cv_prog_STRIP
4958if test -n "$STRIP"; then
4959  { echo "$as_me:$LINENO: result: $STRIP" >&5
4960echo "${ECHO_T}$STRIP" >&6; }
4961else
4962  { echo "$as_me:$LINENO: result: no" >&5
4963echo "${ECHO_T}no" >&6; }
4964fi
4965
4966
4967fi
4968if test -z "$ac_cv_prog_STRIP"; then
4969  ac_ct_STRIP=$STRIP
4970  # Extract the first word of "strip", so it can be a program name with args.
4971set dummy strip; ac_word=$2
4972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4974if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4975  echo $ECHO_N "(cached) $ECHO_C" >&6
4976else
4977  if test -n "$ac_ct_STRIP"; then
4978  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4979else
4980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983  IFS=$as_save_IFS
4984  test -z "$as_dir" && as_dir=.
4985  for ac_exec_ext in '' $ac_executable_extensions; do
4986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987    ac_cv_prog_ac_ct_STRIP="strip"
4988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989    break 2
4990  fi
4991done
4992done
4993IFS=$as_save_IFS
4994
4995fi
4996fi
4997ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4998if test -n "$ac_ct_STRIP"; then
4999  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5000echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5001else
5002  { echo "$as_me:$LINENO: result: no" >&5
5003echo "${ECHO_T}no" >&6; }
5004fi
5005
5006  if test "x$ac_ct_STRIP" = x; then
5007    STRIP=":"
5008  else
5009    case $cross_compiling:$ac_tool_warned in
5010yes:)
5011{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5012whose name does not start with the host triplet.  If you think this
5013configuration is useful to you, please write to [email protected]." >&5
5014echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5015whose name does not start with the host triplet.  If you think this
5016configuration is useful to you, please write to [email protected]." >&2;}
5017ac_tool_warned=yes ;;
5018esac
5019    STRIP=$ac_ct_STRIP
5020  fi
5021else
5022  STRIP="$ac_cv_prog_STRIP"
5023fi
5024
5025test -z "$STRIP" && STRIP=:
5026
5027
5028
5029
5030
5031
5032if test -n "$ac_tool_prefix"; then
5033  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5034set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5037if test "${ac_cv_prog_RANLIB+set}" = set; then
5038  echo $ECHO_N "(cached) $ECHO_C" >&6
5039else
5040  if test -n "$RANLIB"; then
5041  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5042else
5043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044for as_dir in $PATH
5045do
5046  IFS=$as_save_IFS
5047  test -z "$as_dir" && as_dir=.
5048  for ac_exec_ext in '' $ac_executable_extensions; do
5049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5050    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052    break 2
5053  fi
5054done
5055done
5056IFS=$as_save_IFS
5057
5058fi
5059fi
5060RANLIB=$ac_cv_prog_RANLIB
5061if test -n "$RANLIB"; then
5062  { echo "$as_me:$LINENO: result: $RANLIB" >&5
5063echo "${ECHO_T}$RANLIB" >&6; }
5064else
5065  { echo "$as_me:$LINENO: result: no" >&5
5066echo "${ECHO_T}no" >&6; }
5067fi
5068
5069
5070fi
5071if test -z "$ac_cv_prog_RANLIB"; then
5072  ac_ct_RANLIB=$RANLIB
5073  # Extract the first word of "ranlib", so it can be a program name with args.
5074set dummy ranlib; ac_word=$2
5075{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5077if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5078  echo $ECHO_N "(cached) $ECHO_C" >&6
5079else
5080  if test -n "$ac_ct_RANLIB"; then
5081  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5082else
5083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084for as_dir in $PATH
5085do
5086  IFS=$as_save_IFS
5087  test -z "$as_dir" && as_dir=.
5088  for ac_exec_ext in '' $ac_executable_extensions; do
5089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5090    ac_cv_prog_ac_ct_RANLIB="ranlib"
5091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092    break 2
5093  fi
5094done
5095done
5096IFS=$as_save_IFS
5097
5098fi
5099fi
5100ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5101if test -n "$ac_ct_RANLIB"; then
5102  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5103echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5104else
5105  { echo "$as_me:$LINENO: result: no" >&5
5106echo "${ECHO_T}no" >&6; }
5107fi
5108
5109  if test "x$ac_ct_RANLIB" = x; then
5110    RANLIB=":"
5111  else
5112    case $cross_compiling:$ac_tool_warned in
5113yes:)
5114{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5115whose name does not start with the host triplet.  If you think this
5116configuration is useful to you, please write to [email protected]." >&5
5117echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5118whose name does not start with the host triplet.  If you think this
5119configuration is useful to you, please write to [email protected]." >&2;}
5120ac_tool_warned=yes ;;
5121esac
5122    RANLIB=$ac_ct_RANLIB
5123  fi
5124else
5125  RANLIB="$ac_cv_prog_RANLIB"
5126fi
5127
5128test -z "$RANLIB" && RANLIB=:
5129
5130
5131
5132
5133
5134
5135# Determine commands to create old-style static archives.
5136old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5137old_postinstall_cmds='chmod 644 $oldlib'
5138old_postuninstall_cmds=
5139
5140if test -n "$RANLIB"; then
5141  case $host_os in
5142  openbsd*)
5143    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5144    ;;
5145  *)
5146    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5147    ;;
5148  esac
5149  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5150fi
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185# If no C compiler was specified, use CC.
5186LTCC=${LTCC-"$CC"}
5187
5188# If no C compiler flags were specified, use CFLAGS.
5189LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5190
5191# Allow CC to be a program name with arguments.
5192compiler=$CC
5193
5194
5195# Check for command to grab the raw symbol name followed by C symbol from nm.
5196{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5197echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5198if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5199  echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201
5202# These are sane defaults that work on at least a few old systems.
5203# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5204
5205# Character class describing NM global symbol codes.
5206symcode='[BCDEGRST]'
5207
5208# Regexp to match symbols that can be accessed directly from C.
5209sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5210
5211# Define system-specific variables.
5212case $host_os in
5213aix*)
5214  symcode='[BCDT]'
5215  ;;
5216cygwin* | mingw* | pw32*)
5217  symcode='[ABCDGISTW]'
5218  ;;
5219hpux*)
5220  if test "$host_cpu" = ia64; then
5221    symcode='[ABCDEGRST]'
5222  fi
5223  ;;
5224irix* | nonstopux*)
5225  symcode='[BCDEGRST]'
5226  ;;
5227osf*)
5228  symcode='[BCDEGQRST]'
5229  ;;
5230solaris*)
5231  symcode='[BDRT]'
5232  ;;
5233sco3.2v5*)
5234  symcode='[DT]'
5235  ;;
5236sysv4.2uw2*)
5237  symcode='[DT]'
5238  ;;
5239sysv5* | sco5v6* | unixware* | OpenUNIX*)
5240  symcode='[ABDT]'
5241  ;;
5242sysv4)
5243  symcode='[DFNSTU]'
5244  ;;
5245esac
5246
5247# If we're using GNU nm, then use its standard symbol codes.
5248case `$NM -V 2>&1` in
5249*GNU* | *'with BFD'*)
5250  symcode='[ABCDGIRSTW]' ;;
5251esac
5252
5253# Transform an extracted symbol line into a proper C declaration.
5254# Some systems (esp. on ia64) link data and code symbols differently,
5255# so use this general approach.
5256lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5257
5258# Transform an extracted symbol line into symbol name and symbol address
5259lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5260lt_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'"
5261
5262# Handle CRLF in mingw tool chain
5263opt_cr=
5264case $build_os in
5265mingw*)
5266  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5267  ;;
5268esac
5269
5270# Try without a prefix underscore, then with it.
5271for ac_symprfx in "" "_"; do
5272
5273  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5274  symxfrm="\\1 $ac_symprfx\\2 \\2"
5275
5276  # Write the raw and C identifiers.
5277  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5278    # Fake it for dumpbin and say T for any non-static function
5279    # and D for any global variable.
5280    # Also find C++ and __fastcall symbols from MSVC++,
5281    # which start with @ or ?.
5282    lt_cv_sys_global_symbol_pipe="$AWK '"\
5283"     {last_section=section; section=\$ 3};"\
5284"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5285"     \$ 0!~/External *\|/{next};"\
5286"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5287"     {if(hide[section]) next};"\
5288"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5289"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5290"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5291"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5292"     ' prfx=^$ac_symprfx"
5293  else
5294    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5295  fi
5296
5297  # Check to see that the pipe works correctly.
5298  pipe_works=no
5299
5300  rm -r -f conftest*
5301  cat > conftest.$ac_ext <<_LT_EOF
5302#ifdef __cplusplus
5303extern "C" {
5304#endif
5305char nm_test_var;
5306void nm_test_func(void);
5307void nm_test_func(void){}
5308#ifdef __cplusplus
5309}
5310#endif
5311int main(){nm_test_var='a';nm_test_func();return(0);}
5312_LT_EOF
5313
5314  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5315  (eval $ac_compile) 2>&5
5316  ac_status=$?
5317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318  (exit $ac_status); }; then
5319    # Now try to grab the symbols.
5320    nlist=conftest.nm
5321    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5322  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5323  ac_status=$?
5324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325  (exit $ac_status); } && test -s "$nlist"; then
5326      # Try sorting and uniquifying the output.
5327      if sort "$nlist" | uniq > "$nlist"T; then
5328	mv -f "$nlist"T "$nlist"
5329      else
5330	rm -f "$nlist"T
5331      fi
5332
5333      # Make sure that we snagged all the symbols we need.
5334      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5335	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5336	  cat <<_LT_EOF > conftest.$ac_ext
5337#ifdef __cplusplus
5338extern "C" {
5339#endif
5340
5341_LT_EOF
5342	  # Now generate the symbol file.
5343	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5344
5345	  cat <<_LT_EOF >> conftest.$ac_ext
5346
5347/* The mapping between symbol names and symbols.  */
5348const struct {
5349  const char *name;
5350  void       *address;
5351}
5352lt__PROGRAM__LTX_preloaded_symbols[] =
5353{
5354  { "@PROGRAM@", (void *) 0 },
5355_LT_EOF
5356	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5357	  cat <<\_LT_EOF >> conftest.$ac_ext
5358  {0, (void *) 0}
5359};
5360
5361/* This works around a problem in FreeBSD linker */
5362#ifdef FREEBSD_WORKAROUND
5363static const void *lt_preloaded_setup() {
5364  return lt__PROGRAM__LTX_preloaded_symbols;
5365}
5366#endif
5367
5368#ifdef __cplusplus
5369}
5370#endif
5371_LT_EOF
5372	  # Now try linking the two files.
5373	  mv conftest.$ac_objext conftstm.$ac_objext
5374	  lt_save_LIBS="$LIBS"
5375	  lt_save_CFLAGS="$CFLAGS"
5376	  LIBS="conftstm.$ac_objext"
5377	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5378	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5379  (eval $ac_link) 2>&5
5380  ac_status=$?
5381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5383	    pipe_works=yes
5384	  fi
5385	  LIBS="$lt_save_LIBS"
5386	  CFLAGS="$lt_save_CFLAGS"
5387	else
5388	  echo "cannot find nm_test_func in $nlist" >&5
5389	fi
5390      else
5391	echo "cannot find nm_test_var in $nlist" >&5
5392      fi
5393    else
5394      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5395    fi
5396  else
5397    echo "$progname: failed program was:" >&5
5398    cat conftest.$ac_ext >&5
5399  fi
5400  rm -rf conftest* conftst*
5401
5402  # Do not use the global_symbol_pipe unless it works.
5403  if test "$pipe_works" = yes; then
5404    break
5405  else
5406    lt_cv_sys_global_symbol_pipe=
5407  fi
5408done
5409
5410fi
5411
5412if test -z "$lt_cv_sys_global_symbol_pipe"; then
5413  lt_cv_sys_global_symbol_to_cdecl=
5414fi
5415if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5416  { echo "$as_me:$LINENO: result: failed" >&5
5417echo "${ECHO_T}failed" >&6; }
5418else
5419  { echo "$as_me:$LINENO: result: ok" >&5
5420echo "${ECHO_T}ok" >&6; }
5421fi
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445# Check whether --enable-libtool-lock was given.
5446if test "${enable_libtool_lock+set}" = set; then
5447  enableval=$enable_libtool_lock;
5448fi
5449
5450test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5451
5452# Some flags need to be propagated to the compiler or linker for good
5453# libtool support.
5454case $host in
5455ia64-*-hpux*)
5456  # Find out which ABI we are using.
5457  echo 'int i;' > conftest.$ac_ext
5458  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459  (eval $ac_compile) 2>&5
5460  ac_status=$?
5461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462  (exit $ac_status); }; then
5463    case `/usr/bin/file conftest.$ac_objext` in
5464      *ELF-32*)
5465	HPUX_IA64_MODE="32"
5466	;;
5467      *ELF-64*)
5468	HPUX_IA64_MODE="64"
5469	;;
5470    esac
5471  fi
5472  rm -rf conftest*
5473  ;;
5474*-*-irix6*)
5475  # Find out which ABI we are using.
5476  echo '#line 5476 "configure"' > conftest.$ac_ext
5477  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5478  (eval $ac_compile) 2>&5
5479  ac_status=$?
5480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481  (exit $ac_status); }; then
5482    if test "$lt_cv_prog_gnu_ld" = yes; then
5483      case `/usr/bin/file conftest.$ac_objext` in
5484	*32-bit*)
5485	  LD="${LD-ld} -melf32bsmip"
5486	  ;;
5487	*N32*)
5488	  LD="${LD-ld} -melf32bmipn32"
5489	  ;;
5490	*64-bit*)
5491	  LD="${LD-ld} -melf64bmip"
5492	;;
5493      esac
5494    else
5495      case `/usr/bin/file conftest.$ac_objext` in
5496	*32-bit*)
5497	  LD="${LD-ld} -32"
5498	  ;;
5499	*N32*)
5500	  LD="${LD-ld} -n32"
5501	  ;;
5502	*64-bit*)
5503	  LD="${LD-ld} -64"
5504	  ;;
5505      esac
5506    fi
5507  fi
5508  rm -rf conftest*
5509  ;;
5510
5511x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5512s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5513  # Find out which ABI we are using.
5514  echo 'int i;' > conftest.$ac_ext
5515  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5516  (eval $ac_compile) 2>&5
5517  ac_status=$?
5518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519  (exit $ac_status); }; then
5520    case `/usr/bin/file conftest.o` in
5521      *32-bit*)
5522	case $host in
5523	  x86_64-*kfreebsd*-gnu)
5524	    LD="${LD-ld} -m elf_i386_fbsd"
5525	    ;;
5526	  x86_64-*linux*)
5527	    LD="${LD-ld} -m elf_i386"
5528	    ;;
5529	  ppc64-*linux*|powerpc64-*linux*)
5530	    LD="${LD-ld} -m elf32ppclinux"
5531	    ;;
5532	  s390x-*linux*)
5533	    LD="${LD-ld} -m elf_s390"
5534	    ;;
5535	  sparc64-*linux*)
5536	    LD="${LD-ld} -m elf32_sparc"
5537	    ;;
5538	esac
5539	;;
5540      *64-bit*)
5541	case $host in
5542	  x86_64-*kfreebsd*-gnu)
5543	    LD="${LD-ld} -m elf_x86_64_fbsd"
5544	    ;;
5545	  x86_64-*linux*)
5546	    LD="${LD-ld} -m elf_x86_64"
5547	    ;;
5548	  ppc*-*linux*|powerpc*-*linux*)
5549	    LD="${LD-ld} -m elf64ppc"
5550	    ;;
5551	  s390*-*linux*|s390*-*tpf*)
5552	    LD="${LD-ld} -m elf64_s390"
5553	    ;;
5554	  sparc*-*linux*)
5555	    LD="${LD-ld} -m elf64_sparc"
5556	    ;;
5557	esac
5558	;;
5559    esac
5560  fi
5561  rm -rf conftest*
5562  ;;
5563
5564*-*-sco3.2v5*)
5565  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5566  SAVE_CFLAGS="$CFLAGS"
5567  CFLAGS="$CFLAGS -belf"
5568  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5569echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5570if test "${lt_cv_cc_needs_belf+set}" = set; then
5571  echo $ECHO_N "(cached) $ECHO_C" >&6
5572else
5573  ac_ext=c
5574ac_cpp='$CPP $CPPFLAGS'
5575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5577ac_compiler_gnu=$ac_cv_c_compiler_gnu
5578
5579     cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h.  */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h.  */
5585
5586int
5587main ()
5588{
5589
5590  ;
5591  return 0;
5592}
5593_ACEOF
5594rm -f conftest.$ac_objext conftest$ac_exeext
5595if { (ac_try="$ac_link"
5596case "(($ac_try" in
5597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598  *) ac_try_echo=$ac_try;;
5599esac
5600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601  (eval "$ac_link") 2>conftest.er1
5602  ac_status=$?
5603  grep -v '^ *+' conftest.er1 >conftest.err
5604  rm -f conftest.er1
5605  cat conftest.err >&5
5606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607  (exit $ac_status); } && {
5608	 test -z "$ac_c_werror_flag" ||
5609	 test ! -s conftest.err
5610       } && test -s conftest$ac_exeext &&
5611       $as_test_x conftest$ac_exeext; then
5612  lt_cv_cc_needs_belf=yes
5613else
5614  echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617	lt_cv_cc_needs_belf=no
5618fi
5619
5620rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5621      conftest$ac_exeext conftest.$ac_ext
5622     ac_ext=c
5623ac_cpp='$CPP $CPPFLAGS'
5624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5626ac_compiler_gnu=$ac_cv_c_compiler_gnu
5627
5628fi
5629{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5630echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5631  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5632    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5633    CFLAGS="$SAVE_CFLAGS"
5634  fi
5635  ;;
5636sparc*-*solaris*)
5637  # Find out which ABI we are using.
5638  echo 'int i;' > conftest.$ac_ext
5639  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640  (eval $ac_compile) 2>&5
5641  ac_status=$?
5642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643  (exit $ac_status); }; then
5644    case `/usr/bin/file conftest.o` in
5645    *64-bit*)
5646      case $lt_cv_prog_gnu_ld in
5647      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5648      *)
5649	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5650	  LD="${LD-ld} -64"
5651	fi
5652	;;
5653      esac
5654      ;;
5655    esac
5656  fi
5657  rm -rf conftest*
5658  ;;
5659esac
5660
5661need_locks="$enable_libtool_lock"
5662
5663
5664  case $host_os in
5665    rhapsody* | darwin*)
5666    if test -n "$ac_tool_prefix"; then
5667  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5668set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5671if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5672  echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674  if test -n "$DSYMUTIL"; then
5675  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680  IFS=$as_save_IFS
5681  test -z "$as_dir" && as_dir=.
5682  for ac_exec_ext in '' $ac_executable_extensions; do
5683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5685    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686    break 2
5687  fi
5688done
5689done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694DSYMUTIL=$ac_cv_prog_DSYMUTIL
5695if test -n "$DSYMUTIL"; then
5696  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5697echo "${ECHO_T}$DSYMUTIL" >&6; }
5698else
5699  { echo "$as_me:$LINENO: result: no" >&5
5700echo "${ECHO_T}no" >&6; }
5701fi
5702
5703
5704fi
5705if test -z "$ac_cv_prog_DSYMUTIL"; then
5706  ac_ct_DSYMUTIL=$DSYMUTIL
5707  # Extract the first word of "dsymutil", so it can be a program name with args.
5708set dummy dsymutil; ac_word=$2
5709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5711if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5712  echo $ECHO_N "(cached) $ECHO_C" >&6
5713else
5714  if test -n "$ac_ct_DSYMUTIL"; then
5715  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5716else
5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720  IFS=$as_save_IFS
5721  test -z "$as_dir" && as_dir=.
5722  for ac_exec_ext in '' $ac_executable_extensions; do
5723  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5725    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726    break 2
5727  fi
5728done
5729done
5730IFS=$as_save_IFS
5731
5732fi
5733fi
5734ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5735if test -n "$ac_ct_DSYMUTIL"; then
5736  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5737echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5738else
5739  { echo "$as_me:$LINENO: result: no" >&5
5740echo "${ECHO_T}no" >&6; }
5741fi
5742
5743  if test "x$ac_ct_DSYMUTIL" = x; then
5744    DSYMUTIL=":"
5745  else
5746    case $cross_compiling:$ac_tool_warned in
5747yes:)
5748{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5749whose name does not start with the host triplet.  If you think this
5750configuration is useful to you, please write to [email protected]." >&5
5751echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5752whose name does not start with the host triplet.  If you think this
5753configuration is useful to you, please write to [email protected]." >&2;}
5754ac_tool_warned=yes ;;
5755esac
5756    DSYMUTIL=$ac_ct_DSYMUTIL
5757  fi
5758else
5759  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5760fi
5761
5762    if test -n "$ac_tool_prefix"; then
5763  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5764set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5767if test "${ac_cv_prog_NMEDIT+set}" = set; then
5768  echo $ECHO_N "(cached) $ECHO_C" >&6
5769else
5770  if test -n "$NMEDIT"; then
5771  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5772else
5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776  IFS=$as_save_IFS
5777  test -z "$as_dir" && as_dir=.
5778  for ac_exec_ext in '' $ac_executable_extensions; do
5779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5780    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782    break 2
5783  fi
5784done
5785done
5786IFS=$as_save_IFS
5787
5788fi
5789fi
5790NMEDIT=$ac_cv_prog_NMEDIT
5791if test -n "$NMEDIT"; then
5792  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5793echo "${ECHO_T}$NMEDIT" >&6; }
5794else
5795  { echo "$as_me:$LINENO: result: no" >&5
5796echo "${ECHO_T}no" >&6; }
5797fi
5798
5799
5800fi
5801if test -z "$ac_cv_prog_NMEDIT"; then
5802  ac_ct_NMEDIT=$NMEDIT
5803  # Extract the first word of "nmedit", so it can be a program name with args.
5804set dummy nmedit; ac_word=$2
5805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5807if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5808  echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810  if test -n "$ac_ct_NMEDIT"; then
5811  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5812else
5813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814for as_dir in $PATH
5815do
5816  IFS=$as_save_IFS
5817  test -z "$as_dir" && as_dir=.
5818  for ac_exec_ext in '' $ac_executable_extensions; do
5819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5821    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822    break 2
5823  fi
5824done
5825done
5826IFS=$as_save_IFS
5827
5828fi
5829fi
5830ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5831if test -n "$ac_ct_NMEDIT"; then
5832  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5833echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5834else
5835  { echo "$as_me:$LINENO: result: no" >&5
5836echo "${ECHO_T}no" >&6; }
5837fi
5838
5839  if test "x$ac_ct_NMEDIT" = x; then
5840    NMEDIT=":"
5841  else
5842    case $cross_compiling:$ac_tool_warned in
5843yes:)
5844{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5845whose name does not start with the host triplet.  If you think this
5846configuration is useful to you, please write to [email protected]." >&5
5847echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5848whose name does not start with the host triplet.  If you think this
5849configuration is useful to you, please write to [email protected]." >&2;}
5850ac_tool_warned=yes ;;
5851esac
5852    NMEDIT=$ac_ct_NMEDIT
5853  fi
5854else
5855  NMEDIT="$ac_cv_prog_NMEDIT"
5856fi
5857
5858    if test -n "$ac_tool_prefix"; then
5859  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5860set dummy ${ac_tool_prefix}lipo; ac_word=$2
5861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863if test "${ac_cv_prog_LIPO+set}" = set; then
5864  echo $ECHO_N "(cached) $ECHO_C" >&6
5865else
5866  if test -n "$LIPO"; then
5867  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872  IFS=$as_save_IFS
5873  test -z "$as_dir" && as_dir=.
5874  for ac_exec_ext in '' $ac_executable_extensions; do
5875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878    break 2
5879  fi
5880done
5881done
5882IFS=$as_save_IFS
5883
5884fi
5885fi
5886LIPO=$ac_cv_prog_LIPO
5887if test -n "$LIPO"; then
5888  { echo "$as_me:$LINENO: result: $LIPO" >&5
5889echo "${ECHO_T}$LIPO" >&6; }
5890else
5891  { echo "$as_me:$LINENO: result: no" >&5
5892echo "${ECHO_T}no" >&6; }
5893fi
5894
5895
5896fi
5897if test -z "$ac_cv_prog_LIPO"; then
5898  ac_ct_LIPO=$LIPO
5899  # Extract the first word of "lipo", so it can be a program name with args.
5900set dummy lipo; ac_word=$2
5901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5903if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5904  echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906  if test -n "$ac_ct_LIPO"; then
5907  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912  IFS=$as_save_IFS
5913  test -z "$as_dir" && as_dir=.
5914  for ac_exec_ext in '' $ac_executable_extensions; do
5915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916    ac_cv_prog_ac_ct_LIPO="lipo"
5917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918    break 2
5919  fi
5920done
5921done
5922IFS=$as_save_IFS
5923
5924fi
5925fi
5926ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5927if test -n "$ac_ct_LIPO"; then
5928  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5929echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5930else
5931  { echo "$as_me:$LINENO: result: no" >&5
5932echo "${ECHO_T}no" >&6; }
5933fi
5934
5935  if test "x$ac_ct_LIPO" = x; then
5936    LIPO=":"
5937  else
5938    case $cross_compiling:$ac_tool_warned in
5939yes:)
5940{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5941whose name does not start with the host triplet.  If you think this
5942configuration is useful to you, please write to [email protected]." >&5
5943echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5944whose name does not start with the host triplet.  If you think this
5945configuration is useful to you, please write to [email protected]." >&2;}
5946ac_tool_warned=yes ;;
5947esac
5948    LIPO=$ac_ct_LIPO
5949  fi
5950else
5951  LIPO="$ac_cv_prog_LIPO"
5952fi
5953
5954    if test -n "$ac_tool_prefix"; then
5955  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5956set dummy ${ac_tool_prefix}otool; ac_word=$2
5957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5959if test "${ac_cv_prog_OTOOL+set}" = set; then
5960  echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962  if test -n "$OTOOL"; then
5963  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968  IFS=$as_save_IFS
5969  test -z "$as_dir" && as_dir=.
5970  for ac_exec_ext in '' $ac_executable_extensions; do
5971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974    break 2
5975  fi
5976done
5977done
5978IFS=$as_save_IFS
5979
5980fi
5981fi
5982OTOOL=$ac_cv_prog_OTOOL
5983if test -n "$OTOOL"; then
5984  { echo "$as_me:$LINENO: result: $OTOOL" >&5
5985echo "${ECHO_T}$OTOOL" >&6; }
5986else
5987  { echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6; }
5989fi
5990
5991
5992fi
5993if test -z "$ac_cv_prog_OTOOL"; then
5994  ac_ct_OTOOL=$OTOOL
5995  # Extract the first word of "otool", so it can be a program name with args.
5996set dummy otool; ac_word=$2
5997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6000  echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002  if test -n "$ac_ct_OTOOL"; then
6003  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6004else
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008  IFS=$as_save_IFS
6009  test -z "$as_dir" && as_dir=.
6010  for ac_exec_ext in '' $ac_executable_extensions; do
6011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012    ac_cv_prog_ac_ct_OTOOL="otool"
6013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014    break 2
6015  fi
6016done
6017done
6018IFS=$as_save_IFS
6019
6020fi
6021fi
6022ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6023if test -n "$ac_ct_OTOOL"; then
6024  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6025echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6026else
6027  { echo "$as_me:$LINENO: result: no" >&5
6028echo "${ECHO_T}no" >&6; }
6029fi
6030
6031  if test "x$ac_ct_OTOOL" = x; then
6032    OTOOL=":"
6033  else
6034    case $cross_compiling:$ac_tool_warned in
6035yes:)
6036{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6037whose name does not start with the host triplet.  If you think this
6038configuration is useful to you, please write to [email protected]." >&5
6039echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6040whose name does not start with the host triplet.  If you think this
6041configuration is useful to you, please write to [email protected]." >&2;}
6042ac_tool_warned=yes ;;
6043esac
6044    OTOOL=$ac_ct_OTOOL
6045  fi
6046else
6047  OTOOL="$ac_cv_prog_OTOOL"
6048fi
6049
6050    if test -n "$ac_tool_prefix"; then
6051  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6052set dummy ${ac_tool_prefix}otool64; ac_word=$2
6053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055if test "${ac_cv_prog_OTOOL64+set}" = set; then
6056  echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058  if test -n "$OTOOL64"; then
6059  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064  IFS=$as_save_IFS
6065  test -z "$as_dir" && as_dir=.
6066  for ac_exec_ext in '' $ac_executable_extensions; do
6067  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070    break 2
6071  fi
6072done
6073done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078OTOOL64=$ac_cv_prog_OTOOL64
6079if test -n "$OTOOL64"; then
6080  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6081echo "${ECHO_T}$OTOOL64" >&6; }
6082else
6083  { echo "$as_me:$LINENO: result: no" >&5
6084echo "${ECHO_T}no" >&6; }
6085fi
6086
6087
6088fi
6089if test -z "$ac_cv_prog_OTOOL64"; then
6090  ac_ct_OTOOL64=$OTOOL64
6091  # Extract the first word of "otool64", so it can be a program name with args.
6092set dummy otool64; ac_word=$2
6093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6096  echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098  if test -n "$ac_ct_OTOOL64"; then
6099  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104  IFS=$as_save_IFS
6105  test -z "$as_dir" && as_dir=.
6106  for ac_exec_ext in '' $ac_executable_extensions; do
6107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108    ac_cv_prog_ac_ct_OTOOL64="otool64"
6109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110    break 2
6111  fi
6112done
6113done
6114IFS=$as_save_IFS
6115
6116fi
6117fi
6118ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6119if test -n "$ac_ct_OTOOL64"; then
6120  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6121echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6122else
6123  { echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6; }
6125fi
6126
6127  if test "x$ac_ct_OTOOL64" = x; then
6128    OTOOL64=":"
6129  else
6130    case $cross_compiling:$ac_tool_warned in
6131yes:)
6132{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133whose name does not start with the host triplet.  If you think this
6134configuration is useful to you, please write to [email protected]." >&5
6135echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6136whose name does not start with the host triplet.  If you think this
6137configuration is useful to you, please write to [email protected]." >&2;}
6138ac_tool_warned=yes ;;
6139esac
6140    OTOOL64=$ac_ct_OTOOL64
6141  fi
6142else
6143  OTOOL64="$ac_cv_prog_OTOOL64"
6144fi
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6173echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6174if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6175  echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177  lt_cv_apple_cc_single_mod=no
6178      if test -z "${LT_MULTI_MODULE}"; then
6179	# By default we will add the -single_module flag. You can override
6180	# by either setting the environment variable LT_MULTI_MODULE
6181	# non-empty at configure time, or by adding -multi_module to the
6182	# link flags.
6183	rm -rf libconftest.dylib*
6184	echo "int foo(void){return 1;}" > conftest.c
6185	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6186-dynamiclib -Wl,-single_module conftest.c" >&5
6187	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6188	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6189        _lt_result=$?
6190	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6191	  lt_cv_apple_cc_single_mod=yes
6192	else
6193	  cat conftest.err >&5
6194	fi
6195	rm -rf libconftest.dylib*
6196	rm -f conftest.*
6197      fi
6198fi
6199{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6200echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6201    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6202echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6203if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6204  echo $ECHO_N "(cached) $ECHO_C" >&6
6205else
6206  lt_cv_ld_exported_symbols_list=no
6207      save_LDFLAGS=$LDFLAGS
6208      echo "_main" > conftest.sym
6209      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6210      cat >conftest.$ac_ext <<_ACEOF
6211/* confdefs.h.  */
6212_ACEOF
6213cat confdefs.h >>conftest.$ac_ext
6214cat >>conftest.$ac_ext <<_ACEOF
6215/* end confdefs.h.  */
6216
6217int
6218main ()
6219{
6220
6221  ;
6222  return 0;
6223}
6224_ACEOF
6225rm -f conftest.$ac_objext conftest$ac_exeext
6226if { (ac_try="$ac_link"
6227case "(($ac_try" in
6228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229  *) ac_try_echo=$ac_try;;
6230esac
6231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232  (eval "$ac_link") 2>conftest.er1
6233  ac_status=$?
6234  grep -v '^ *+' conftest.er1 >conftest.err
6235  rm -f conftest.er1
6236  cat conftest.err >&5
6237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238  (exit $ac_status); } && {
6239	 test -z "$ac_c_werror_flag" ||
6240	 test ! -s conftest.err
6241       } && test -s conftest$ac_exeext &&
6242       $as_test_x conftest$ac_exeext; then
6243  lt_cv_ld_exported_symbols_list=yes
6244else
6245  echo "$as_me: failed program was:" >&5
6246sed 's/^/| /' conftest.$ac_ext >&5
6247
6248	lt_cv_ld_exported_symbols_list=no
6249fi
6250
6251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6252      conftest$ac_exeext conftest.$ac_ext
6253	LDFLAGS="$save_LDFLAGS"
6254
6255fi
6256{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6257echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6258    case $host_os in
6259    rhapsody* | darwin1.[012])
6260      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6261    darwin1.*)
6262      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6263    darwin*) # darwin 5.x on
6264      # if running on 10.5 or later, the deployment target defaults
6265      # to the OS version, if on x86, and 10.4, the deployment
6266      # target defaults to 10.4. Don't you love it?
6267      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6268	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6269	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6270	10.[012]*)
6271	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6272	10.*)
6273	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6274      esac
6275    ;;
6276  esac
6277    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6278      _lt_dar_single_mod='$single_module'
6279    fi
6280    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6281      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6282    else
6283      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6284    fi
6285    if test "$DSYMUTIL" != ":"; then
6286      _lt_dsymutil='~$DSYMUTIL $lib || :'
6287    else
6288      _lt_dsymutil=
6289    fi
6290    ;;
6291  esac
6292
6293ac_ext=c
6294ac_cpp='$CPP $CPPFLAGS'
6295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6297ac_compiler_gnu=$ac_cv_c_compiler_gnu
6298{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6299echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6300# On Suns, sometimes $CPP names a directory.
6301if test -n "$CPP" && test -d "$CPP"; then
6302  CPP=
6303fi
6304if test -z "$CPP"; then
6305  if test "${ac_cv_prog_CPP+set}" = set; then
6306  echo $ECHO_N "(cached) $ECHO_C" >&6
6307else
6308      # Double quotes because CPP needs to be expanded
6309    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6310    do
6311      ac_preproc_ok=false
6312for ac_c_preproc_warn_flag in '' yes
6313do
6314  # Use a header file that comes with gcc, so configuring glibc
6315  # with a fresh cross-compiler works.
6316  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6317  # <limits.h> exists even on freestanding compilers.
6318  # On the NeXT, cc -E runs the code through the compiler's parser,
6319  # not just through cpp. "Syntax error" is here to catch this case.
6320  cat >conftest.$ac_ext <<_ACEOF
6321/* confdefs.h.  */
6322_ACEOF
6323cat confdefs.h >>conftest.$ac_ext
6324cat >>conftest.$ac_ext <<_ACEOF
6325/* end confdefs.h.  */
6326#ifdef __STDC__
6327# include <limits.h>
6328#else
6329# include <assert.h>
6330#endif
6331		     Syntax error
6332_ACEOF
6333if { (ac_try="$ac_cpp conftest.$ac_ext"
6334case "(($ac_try" in
6335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336  *) ac_try_echo=$ac_try;;
6337esac
6338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6340  ac_status=$?
6341  grep -v '^ *+' conftest.er1 >conftest.err
6342  rm -f conftest.er1
6343  cat conftest.err >&5
6344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); } >/dev/null && {
6346	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6347	 test ! -s conftest.err
6348       }; then
6349  :
6350else
6351  echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354  # Broken: fails on valid input.
6355continue
6356fi
6357
6358rm -f conftest.err conftest.$ac_ext
6359
6360  # OK, works on sane cases.  Now check whether nonexistent headers
6361  # can be detected and how.
6362  cat >conftest.$ac_ext <<_ACEOF
6363/* confdefs.h.  */
6364_ACEOF
6365cat confdefs.h >>conftest.$ac_ext
6366cat >>conftest.$ac_ext <<_ACEOF
6367/* end confdefs.h.  */
6368#include <ac_nonexistent.h>
6369_ACEOF
6370if { (ac_try="$ac_cpp conftest.$ac_ext"
6371case "(($ac_try" in
6372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373  *) ac_try_echo=$ac_try;;
6374esac
6375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6376  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6377  ac_status=$?
6378  grep -v '^ *+' conftest.er1 >conftest.err
6379  rm -f conftest.er1
6380  cat conftest.err >&5
6381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382  (exit $ac_status); } >/dev/null && {
6383	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6384	 test ! -s conftest.err
6385       }; then
6386  # Broken: success on invalid input.
6387continue
6388else
6389  echo "$as_me: failed program was:" >&5
6390sed 's/^/| /' conftest.$ac_ext >&5
6391
6392  # Passes both tests.
6393ac_preproc_ok=:
6394break
6395fi
6396
6397rm -f conftest.err conftest.$ac_ext
6398
6399done
6400# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6401rm -f conftest.err conftest.$ac_ext
6402if $ac_preproc_ok; then
6403  break
6404fi
6405
6406    done
6407    ac_cv_prog_CPP=$CPP
6408
6409fi
6410  CPP=$ac_cv_prog_CPP
6411else
6412  ac_cv_prog_CPP=$CPP
6413fi
6414{ echo "$as_me:$LINENO: result: $CPP" >&5
6415echo "${ECHO_T}$CPP" >&6; }
6416ac_preproc_ok=false
6417for ac_c_preproc_warn_flag in '' yes
6418do
6419  # Use a header file that comes with gcc, so configuring glibc
6420  # with a fresh cross-compiler works.
6421  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6422  # <limits.h> exists even on freestanding compilers.
6423  # On the NeXT, cc -E runs the code through the compiler's parser,
6424  # not just through cpp. "Syntax error" is here to catch this case.
6425  cat >conftest.$ac_ext <<_ACEOF
6426/* confdefs.h.  */
6427_ACEOF
6428cat confdefs.h >>conftest.$ac_ext
6429cat >>conftest.$ac_ext <<_ACEOF
6430/* end confdefs.h.  */
6431#ifdef __STDC__
6432# include <limits.h>
6433#else
6434# include <assert.h>
6435#endif
6436		     Syntax error
6437_ACEOF
6438if { (ac_try="$ac_cpp conftest.$ac_ext"
6439case "(($ac_try" in
6440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441  *) ac_try_echo=$ac_try;;
6442esac
6443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6445  ac_status=$?
6446  grep -v '^ *+' conftest.er1 >conftest.err
6447  rm -f conftest.er1
6448  cat conftest.err >&5
6449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450  (exit $ac_status); } >/dev/null && {
6451	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6452	 test ! -s conftest.err
6453       }; then
6454  :
6455else
6456  echo "$as_me: failed program was:" >&5
6457sed 's/^/| /' conftest.$ac_ext >&5
6458
6459  # Broken: fails on valid input.
6460continue
6461fi
6462
6463rm -f conftest.err conftest.$ac_ext
6464
6465  # OK, works on sane cases.  Now check whether nonexistent headers
6466  # can be detected and how.
6467  cat >conftest.$ac_ext <<_ACEOF
6468/* confdefs.h.  */
6469_ACEOF
6470cat confdefs.h >>conftest.$ac_ext
6471cat >>conftest.$ac_ext <<_ACEOF
6472/* end confdefs.h.  */
6473#include <ac_nonexistent.h>
6474_ACEOF
6475if { (ac_try="$ac_cpp conftest.$ac_ext"
6476case "(($ac_try" in
6477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478  *) ac_try_echo=$ac_try;;
6479esac
6480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6482  ac_status=$?
6483  grep -v '^ *+' conftest.er1 >conftest.err
6484  rm -f conftest.er1
6485  cat conftest.err >&5
6486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487  (exit $ac_status); } >/dev/null && {
6488	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6489	 test ! -s conftest.err
6490       }; then
6491  # Broken: success on invalid input.
6492continue
6493else
6494  echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497  # Passes both tests.
6498ac_preproc_ok=:
6499break
6500fi
6501
6502rm -f conftest.err conftest.$ac_ext
6503
6504done
6505# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6506rm -f conftest.err conftest.$ac_ext
6507if $ac_preproc_ok; then
6508  :
6509else
6510  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6511See \`config.log' for more details." >&5
6512echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6513See \`config.log' for more details." >&2;}
6514   { (exit 1); exit 1; }; }
6515fi
6516
6517ac_ext=c
6518ac_cpp='$CPP $CPPFLAGS'
6519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6521ac_compiler_gnu=$ac_cv_c_compiler_gnu
6522
6523
6524{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6525echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6526if test "${ac_cv_header_stdc+set}" = set; then
6527  echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529  cat >conftest.$ac_ext <<_ACEOF
6530/* confdefs.h.  */
6531_ACEOF
6532cat confdefs.h >>conftest.$ac_ext
6533cat >>conftest.$ac_ext <<_ACEOF
6534/* end confdefs.h.  */
6535#include <stdlib.h>
6536#include <stdarg.h>
6537#include <string.h>
6538#include <float.h>
6539
6540int
6541main ()
6542{
6543
6544  ;
6545  return 0;
6546}
6547_ACEOF
6548rm -f conftest.$ac_objext
6549if { (ac_try="$ac_compile"
6550case "(($ac_try" in
6551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552  *) ac_try_echo=$ac_try;;
6553esac
6554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555  (eval "$ac_compile") 2>conftest.er1
6556  ac_status=$?
6557  grep -v '^ *+' conftest.er1 >conftest.err
6558  rm -f conftest.er1
6559  cat conftest.err >&5
6560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561  (exit $ac_status); } && {
6562	 test -z "$ac_c_werror_flag" ||
6563	 test ! -s conftest.err
6564       } && test -s conftest.$ac_objext; then
6565  ac_cv_header_stdc=yes
6566else
6567  echo "$as_me: failed program was:" >&5
6568sed 's/^/| /' conftest.$ac_ext >&5
6569
6570	ac_cv_header_stdc=no
6571fi
6572
6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574
6575if test $ac_cv_header_stdc = yes; then
6576  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6577  cat >conftest.$ac_ext <<_ACEOF
6578/* confdefs.h.  */
6579_ACEOF
6580cat confdefs.h >>conftest.$ac_ext
6581cat >>conftest.$ac_ext <<_ACEOF
6582/* end confdefs.h.  */
6583#include <string.h>
6584
6585_ACEOF
6586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6587  $EGREP "memchr" >/dev/null 2>&1; then
6588  :
6589else
6590  ac_cv_header_stdc=no
6591fi
6592rm -f -r conftest*
6593
6594fi
6595
6596if test $ac_cv_header_stdc = yes; then
6597  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6598  cat >conftest.$ac_ext <<_ACEOF
6599/* confdefs.h.  */
6600_ACEOF
6601cat confdefs.h >>conftest.$ac_ext
6602cat >>conftest.$ac_ext <<_ACEOF
6603/* end confdefs.h.  */
6604#include <stdlib.h>
6605
6606_ACEOF
6607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6608  $EGREP "free" >/dev/null 2>&1; then
6609  :
6610else
6611  ac_cv_header_stdc=no
6612fi
6613rm -f -r conftest*
6614
6615fi
6616
6617if test $ac_cv_header_stdc = yes; then
6618  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6619  if test "$cross_compiling" = yes; then
6620  :
6621else
6622  cat >conftest.$ac_ext <<_ACEOF
6623/* confdefs.h.  */
6624_ACEOF
6625cat confdefs.h >>conftest.$ac_ext
6626cat >>conftest.$ac_ext <<_ACEOF
6627/* end confdefs.h.  */
6628#include <ctype.h>
6629#include <stdlib.h>
6630#if ((' ' & 0x0FF) == 0x020)
6631# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6632# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6633#else
6634# define ISLOWER(c) \
6635		   (('a' <= (c) && (c) <= 'i') \
6636		     || ('j' <= (c) && (c) <= 'r') \
6637		     || ('s' <= (c) && (c) <= 'z'))
6638# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6639#endif
6640
6641#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6642int
6643main ()
6644{
6645  int i;
6646  for (i = 0; i < 256; i++)
6647    if (XOR (islower (i), ISLOWER (i))
6648	|| toupper (i) != TOUPPER (i))
6649      return 2;
6650  return 0;
6651}
6652_ACEOF
6653rm -f conftest$ac_exeext
6654if { (ac_try="$ac_link"
6655case "(($ac_try" in
6656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657  *) ac_try_echo=$ac_try;;
6658esac
6659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660  (eval "$ac_link") 2>&5
6661  ac_status=$?
6662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6664  { (case "(($ac_try" in
6665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666  *) ac_try_echo=$ac_try;;
6667esac
6668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669  (eval "$ac_try") 2>&5
6670  ac_status=$?
6671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672  (exit $ac_status); }; }; then
6673  :
6674else
6675  echo "$as_me: program exited with status $ac_status" >&5
6676echo "$as_me: failed program was:" >&5
6677sed 's/^/| /' conftest.$ac_ext >&5
6678
6679( exit $ac_status )
6680ac_cv_header_stdc=no
6681fi
6682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6683fi
6684
6685
6686fi
6687fi
6688{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6689echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6690if test $ac_cv_header_stdc = yes; then
6691
6692cat >>confdefs.h <<\_ACEOF
6693#define STDC_HEADERS 1
6694_ACEOF
6695
6696fi
6697
6698# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6709		  inttypes.h stdint.h unistd.h
6710do
6711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6712{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6715  echo $ECHO_N "(cached) $ECHO_C" >&6
6716else
6717  cat >conftest.$ac_ext <<_ACEOF
6718/* confdefs.h.  */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h.  */
6723$ac_includes_default
6724
6725#include <$ac_header>
6726_ACEOF
6727rm -f conftest.$ac_objext
6728if { (ac_try="$ac_compile"
6729case "(($ac_try" in
6730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731  *) ac_try_echo=$ac_try;;
6732esac
6733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6734  (eval "$ac_compile") 2>conftest.er1
6735  ac_status=$?
6736  grep -v '^ *+' conftest.er1 >conftest.err
6737  rm -f conftest.er1
6738  cat conftest.err >&5
6739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740  (exit $ac_status); } && {
6741	 test -z "$ac_c_werror_flag" ||
6742	 test ! -s conftest.err
6743       } && test -s conftest.$ac_objext; then
6744  eval "$as_ac_Header=yes"
6745else
6746  echo "$as_me: failed program was:" >&5
6747sed 's/^/| /' conftest.$ac_ext >&5
6748
6749	eval "$as_ac_Header=no"
6750fi
6751
6752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6753fi
6754ac_res=`eval echo '${'$as_ac_Header'}'`
6755	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6756echo "${ECHO_T}$ac_res" >&6; }
6757if test `eval echo '${'$as_ac_Header'}'` = yes; then
6758  cat >>confdefs.h <<_ACEOF
6759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6760_ACEOF
6761
6762fi
6763
6764done
6765
6766
6767
6768for ac_header in dlfcn.h
6769do
6770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6771{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6774  echo $ECHO_N "(cached) $ECHO_C" >&6
6775else
6776  cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h.  */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h.  */
6782$ac_includes_default
6783
6784#include <$ac_header>
6785_ACEOF
6786rm -f conftest.$ac_objext
6787if { (ac_try="$ac_compile"
6788case "(($ac_try" in
6789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790  *) ac_try_echo=$ac_try;;
6791esac
6792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793  (eval "$ac_compile") 2>conftest.er1
6794  ac_status=$?
6795  grep -v '^ *+' conftest.er1 >conftest.err
6796  rm -f conftest.er1
6797  cat conftest.err >&5
6798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799  (exit $ac_status); } && {
6800	 test -z "$ac_c_werror_flag" ||
6801	 test ! -s conftest.err
6802       } && test -s conftest.$ac_objext; then
6803  eval "$as_ac_Header=yes"
6804else
6805  echo "$as_me: failed program was:" >&5
6806sed 's/^/| /' conftest.$ac_ext >&5
6807
6808	eval "$as_ac_Header=no"
6809fi
6810
6811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812fi
6813ac_res=`eval echo '${'$as_ac_Header'}'`
6814	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6815echo "${ECHO_T}$ac_res" >&6; }
6816if test `eval echo '${'$as_ac_Header'}'` = yes; then
6817  cat >>confdefs.h <<_ACEOF
6818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6819_ACEOF
6820
6821fi
6822
6823done
6824
6825
6826
6827# Set options
6828
6829
6830
6831        enable_dlopen=no
6832
6833
6834  enable_win32_dll=no
6835
6836
6837            # Check whether --enable-shared was given.
6838if test "${enable_shared+set}" = set; then
6839  enableval=$enable_shared; p=${PACKAGE-default}
6840    case $enableval in
6841    yes) enable_shared=yes ;;
6842    no) enable_shared=no ;;
6843    *)
6844      enable_shared=no
6845      # Look at the argument we got.  We use all the common list separators.
6846      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6847      for pkg in $enableval; do
6848	IFS="$lt_save_ifs"
6849	if test "X$pkg" = "X$p"; then
6850	  enable_shared=yes
6851	fi
6852      done
6853      IFS="$lt_save_ifs"
6854      ;;
6855    esac
6856else
6857  enable_shared=yes
6858fi
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868  # Check whether --enable-static was given.
6869if test "${enable_static+set}" = set; then
6870  enableval=$enable_static; p=${PACKAGE-default}
6871    case $enableval in
6872    yes) enable_static=yes ;;
6873    no) enable_static=no ;;
6874    *)
6875     enable_static=no
6876      # Look at the argument we got.  We use all the common list separators.
6877      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6878      for pkg in $enableval; do
6879	IFS="$lt_save_ifs"
6880	if test "X$pkg" = "X$p"; then
6881	  enable_static=yes
6882	fi
6883      done
6884      IFS="$lt_save_ifs"
6885      ;;
6886    esac
6887else
6888  enable_static=yes
6889fi
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900# Check whether --with-pic was given.
6901if test "${with_pic+set}" = set; then
6902  withval=$with_pic; pic_mode="$withval"
6903else
6904  pic_mode=default
6905fi
6906
6907
6908test -z "$pic_mode" && pic_mode=default
6909
6910
6911
6912
6913
6914
6915
6916  # Check whether --enable-fast-install was given.
6917if test "${enable_fast_install+set}" = set; then
6918  enableval=$enable_fast_install; p=${PACKAGE-default}
6919    case $enableval in
6920    yes) enable_fast_install=yes ;;
6921    no) enable_fast_install=no ;;
6922    *)
6923      enable_fast_install=no
6924      # Look at the argument we got.  We use all the common list separators.
6925      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6926      for pkg in $enableval; do
6927	IFS="$lt_save_ifs"
6928	if test "X$pkg" = "X$p"; then
6929	  enable_fast_install=yes
6930	fi
6931      done
6932      IFS="$lt_save_ifs"
6933      ;;
6934    esac
6935else
6936  enable_fast_install=yes
6937fi
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949# This can be used to rebuild libtool when needed
6950LIBTOOL_DEPS="$ltmain"
6951
6952# Always use our own libtool.
6953LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979test -z "$LN_S" && LN_S="ln -s"
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994if test -n "${ZSH_VERSION+set}" ; then
6995   setopt NO_GLOB_SUBST
6996fi
6997
6998{ echo "$as_me:$LINENO: checking for objdir" >&5
6999echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7000if test "${lt_cv_objdir+set}" = set; then
7001  echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003  rm -f .libs 2>/dev/null
7004mkdir .libs 2>/dev/null
7005if test -d .libs; then
7006  lt_cv_objdir=.libs
7007else
7008  # MS-DOS does not allow filenames that begin with a dot.
7009  lt_cv_objdir=_libs
7010fi
7011rmdir .libs 2>/dev/null
7012fi
7013{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7014echo "${ECHO_T}$lt_cv_objdir" >&6; }
7015objdir=$lt_cv_objdir
7016
7017
7018
7019
7020
7021cat >>confdefs.h <<_ACEOF
7022#define LT_OBJDIR "$lt_cv_objdir/"
7023_ACEOF
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041case $host_os in
7042aix3*)
7043  # AIX sometimes has problems with the GCC collect2 program.  For some
7044  # reason, if we set the COLLECT_NAMES environment variable, the problems
7045  # vanish in a puff of smoke.
7046  if test "X${COLLECT_NAMES+set}" != Xset; then
7047    COLLECT_NAMES=
7048    export COLLECT_NAMES
7049  fi
7050  ;;
7051esac
7052
7053# Sed substitution that helps us do robust quoting.  It backslashifies
7054# metacharacters that are still active within double-quoted strings.
7055sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7056
7057# Same as above, but do not quote variable references.
7058double_quote_subst='s/\(["`\\]\)/\\\1/g'
7059
7060# Sed substitution to delay expansion of an escaped shell variable in a
7061# double_quote_subst'ed string.
7062delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7063
7064# Sed substitution to delay expansion of an escaped single quote.
7065delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7066
7067# Sed substitution to avoid accidental globbing in evaled expressions
7068no_glob_subst='s/\*/\\\*/g'
7069
7070# Global variables:
7071ofile=libtool
7072can_build_shared=yes
7073
7074# All known linkers require a `.a' archive for static linking (except MSVC,
7075# which needs '.lib').
7076libext=a
7077
7078with_gnu_ld="$lt_cv_prog_gnu_ld"
7079
7080old_CC="$CC"
7081old_CFLAGS="$CFLAGS"
7082
7083# Set sane defaults for various variables
7084test -z "$CC" && CC=cc
7085test -z "$LTCC" && LTCC=$CC
7086test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7087test -z "$LD" && LD=ld
7088test -z "$ac_objext" && ac_objext=o
7089
7090for cc_temp in $compiler""; do
7091  case $cc_temp in
7092    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7093    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7094    \-*) ;;
7095    *) break;;
7096  esac
7097done
7098cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7099
7100
7101# Only perform the check for file, if the check method requires it
7102test -z "$MAGIC_CMD" && MAGIC_CMD=file
7103case $deplibs_check_method in
7104file_magic*)
7105  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7106    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7107echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7108if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7109  echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111  case $MAGIC_CMD in
7112[\\/*] |  ?:[\\/]*)
7113  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7114  ;;
7115*)
7116  lt_save_MAGIC_CMD="$MAGIC_CMD"
7117  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7118  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7119  for ac_dir in $ac_dummy; do
7120    IFS="$lt_save_ifs"
7121    test -z "$ac_dir" && ac_dir=.
7122    if test -f $ac_dir/${ac_tool_prefix}file; then
7123      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7124      if test -n "$file_magic_test_file"; then
7125	case $deplibs_check_method in
7126	"file_magic "*)
7127	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7128	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7129	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7130	    $EGREP "$file_magic_regex" > /dev/null; then
7131	    :
7132	  else
7133	    cat <<_LT_EOF 1>&2
7134
7135*** Warning: the command libtool uses to detect shared libraries,
7136*** $file_magic_cmd, produces output that libtool cannot recognize.
7137*** The result is that libtool may fail to recognize shared libraries
7138*** as such.  This will affect the creation of libtool libraries that
7139*** depend on shared libraries, but programs linked with such libtool
7140*** libraries will work regardless of this problem.  Nevertheless, you
7141*** may want to report the problem to your system manager and/or to
7142*** [email protected]
7143
7144_LT_EOF
7145	  fi ;;
7146	esac
7147      fi
7148      break
7149    fi
7150  done
7151  IFS="$lt_save_ifs"
7152  MAGIC_CMD="$lt_save_MAGIC_CMD"
7153  ;;
7154esac
7155fi
7156
7157MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7158if test -n "$MAGIC_CMD"; then
7159  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7160echo "${ECHO_T}$MAGIC_CMD" >&6; }
7161else
7162  { echo "$as_me:$LINENO: result: no" >&5
7163echo "${ECHO_T}no" >&6; }
7164fi
7165
7166
7167
7168
7169
7170if test -z "$lt_cv_path_MAGIC_CMD"; then
7171  if test -n "$ac_tool_prefix"; then
7172    { echo "$as_me:$LINENO: checking for file" >&5
7173echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7174if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7175  echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177  case $MAGIC_CMD in
7178[\\/*] |  ?:[\\/]*)
7179  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7180  ;;
7181*)
7182  lt_save_MAGIC_CMD="$MAGIC_CMD"
7183  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7184  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7185  for ac_dir in $ac_dummy; do
7186    IFS="$lt_save_ifs"
7187    test -z "$ac_dir" && ac_dir=.
7188    if test -f $ac_dir/file; then
7189      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7190      if test -n "$file_magic_test_file"; then
7191	case $deplibs_check_method in
7192	"file_magic "*)
7193	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7194	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7195	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7196	    $EGREP "$file_magic_regex" > /dev/null; then
7197	    :
7198	  else
7199	    cat <<_LT_EOF 1>&2
7200
7201*** Warning: the command libtool uses to detect shared libraries,
7202*** $file_magic_cmd, produces output that libtool cannot recognize.
7203*** The result is that libtool may fail to recognize shared libraries
7204*** as such.  This will affect the creation of libtool libraries that
7205*** depend on shared libraries, but programs linked with such libtool
7206*** libraries will work regardless of this problem.  Nevertheless, you
7207*** may want to report the problem to your system manager and/or to
7208*** [email protected]
7209
7210_LT_EOF
7211	  fi ;;
7212	esac
7213      fi
7214      break
7215    fi
7216  done
7217  IFS="$lt_save_ifs"
7218  MAGIC_CMD="$lt_save_MAGIC_CMD"
7219  ;;
7220esac
7221fi
7222
7223MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7224if test -n "$MAGIC_CMD"; then
7225  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7226echo "${ECHO_T}$MAGIC_CMD" >&6; }
7227else
7228  { echo "$as_me:$LINENO: result: no" >&5
7229echo "${ECHO_T}no" >&6; }
7230fi
7231
7232
7233  else
7234    MAGIC_CMD=:
7235  fi
7236fi
7237
7238  fi
7239  ;;
7240esac
7241
7242# Use C for the default configuration in the libtool script
7243
7244lt_save_CC="$CC"
7245ac_ext=c
7246ac_cpp='$CPP $CPPFLAGS'
7247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249ac_compiler_gnu=$ac_cv_c_compiler_gnu
7250
7251
7252# Source file extension for C test sources.
7253ac_ext=c
7254
7255# Object file extension for compiled C test sources.
7256objext=o
7257objext=$objext
7258
7259# Code to be used in simple compile tests
7260lt_simple_compile_test_code="int some_variable = 0;"
7261
7262# Code to be used in simple link tests
7263lt_simple_link_test_code='int main(){return(0);}'
7264
7265
7266
7267
7268
7269
7270
7271# If no C compiler was specified, use CC.
7272LTCC=${LTCC-"$CC"}
7273
7274# If no C compiler flags were specified, use CFLAGS.
7275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7276
7277# Allow CC to be a program name with arguments.
7278compiler=$CC
7279
7280# Save the default compiler, since it gets overwritten when the other
7281# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7282compiler_DEFAULT=$CC
7283
7284# save warnings/boilerplate of simple test code
7285ac_outfile=conftest.$ac_objext
7286echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7287eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7288_lt_compiler_boilerplate=`cat conftest.err`
7289$RM -r conftest*
7290
7291ac_outfile=conftest.$ac_objext
7292echo "$lt_simple_link_test_code" >conftest.$ac_ext
7293eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7294_lt_linker_boilerplate=`cat conftest.err`
7295$RM -r conftest*
7296
7297
7298if test -n "$compiler"; then
7299
7300lt_prog_compiler_no_builtin_flag=
7301
7302if test "$GCC" = yes; then
7303  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7304
7305  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7306echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7307if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7308  echo $ECHO_N "(cached) $ECHO_C" >&6
7309else
7310  lt_cv_prog_compiler_rtti_exceptions=no
7311   ac_outfile=conftest.$ac_objext
7312   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7313   lt_compiler_flag="-fno-rtti -fno-exceptions"
7314   # Insert the option either (1) after the last *FLAGS variable, or
7315   # (2) before a word containing "conftest.", or (3) at the end.
7316   # Note that $ac_compile itself does not contain backslashes and begins
7317   # with a dollar sign (not a hyphen), so the echo should work correctly.
7318   # The option is referenced via a variable to avoid confusing sed.
7319   lt_compile=`echo "$ac_compile" | $SED \
7320   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7321   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7322   -e 's:$: $lt_compiler_flag:'`
7323   (eval echo "\"\$as_me:7323: $lt_compile\"" >&5)
7324   (eval "$lt_compile" 2>conftest.err)
7325   ac_status=$?
7326   cat conftest.err >&5
7327   echo "$as_me:7327: \$? = $ac_status" >&5
7328   if (exit $ac_status) && test -s "$ac_outfile"; then
7329     # The compiler can only warn and ignore the option if not recognized
7330     # So say no if there are warnings other than the usual output.
7331     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7332     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7333     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7334       lt_cv_prog_compiler_rtti_exceptions=yes
7335     fi
7336   fi
7337   $RM -r conftest*
7338
7339fi
7340{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7341echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7342
7343if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7344    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7345else
7346    :
7347fi
7348
7349fi
7350
7351
7352
7353
7354
7355
7356  lt_prog_compiler_wl=
7357lt_prog_compiler_pic=
7358lt_prog_compiler_static=
7359
7360{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7361echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7362
7363  if test "$GCC" = yes; then
7364    lt_prog_compiler_wl='-Wl,'
7365    lt_prog_compiler_static='-static'
7366
7367    case $host_os in
7368      aix*)
7369      # All AIX code is PIC.
7370      if test "$host_cpu" = ia64; then
7371	# AIX 5 now supports IA64 processor
7372	lt_prog_compiler_static='-Bstatic'
7373      fi
7374      ;;
7375
7376    amigaos*)
7377      case $host_cpu in
7378      powerpc)
7379            # see comment about AmigaOS4 .so support
7380            lt_prog_compiler_pic='-fPIC'
7381        ;;
7382      m68k)
7383            # FIXME: we need at least 68020 code to build shared libraries, but
7384            # adding the `-m68020' flag to GCC prevents building anything better,
7385            # like `-m68040'.
7386            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7387        ;;
7388      esac
7389      ;;
7390
7391    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7392      # PIC is the default for these OSes.
7393      ;;
7394
7395    mingw* | cygwin* | pw32* | os2*)
7396      # This hack is so that the source file can tell whether it is being
7397      # built for inclusion in a dll (and should export symbols for example).
7398      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7399      # (--disable-auto-import) libraries
7400      lt_prog_compiler_pic='-DDLL_EXPORT'
7401      ;;
7402
7403    darwin* | rhapsody*)
7404      # PIC is the default on this platform
7405      # Common symbols not allowed in MH_DYLIB files
7406      lt_prog_compiler_pic='-fno-common'
7407      ;;
7408
7409    hpux*)
7410      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7411      # not for PA HP-UX.
7412      case $host_cpu in
7413      hppa*64*|ia64*)
7414	# +Z the default
7415	;;
7416      *)
7417	lt_prog_compiler_pic='-fPIC'
7418	;;
7419      esac
7420      ;;
7421
7422    interix[3-9]*)
7423      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7424      # Instead, we relocate shared libraries at runtime.
7425      ;;
7426
7427    msdosdjgpp*)
7428      # Just because we use GCC doesn't mean we suddenly get shared libraries
7429      # on systems that don't support them.
7430      lt_prog_compiler_can_build_shared=no
7431      enable_shared=no
7432      ;;
7433
7434    *nto* | *qnx*)
7435      # QNX uses GNU C++, but need to define -shared option too, otherwise
7436      # it will coredump.
7437      lt_prog_compiler_pic='-fPIC -shared'
7438      ;;
7439
7440    sysv4*MP*)
7441      if test -d /usr/nec; then
7442	lt_prog_compiler_pic=-Kconform_pic
7443      fi
7444      ;;
7445
7446    *)
7447      lt_prog_compiler_pic='-fPIC'
7448      ;;
7449    esac
7450  else
7451    # PORTME Check for flag to pass linker flags through the system compiler.
7452    case $host_os in
7453    aix*)
7454      lt_prog_compiler_wl='-Wl,'
7455      if test "$host_cpu" = ia64; then
7456	# AIX 5 now supports IA64 processor
7457	lt_prog_compiler_static='-Bstatic'
7458      else
7459	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7460      fi
7461      ;;
7462
7463    mingw* | cygwin* | pw32* | os2*)
7464      # This hack is so that the source file can tell whether it is being
7465      # built for inclusion in a dll (and should export symbols for example).
7466      lt_prog_compiler_pic='-DDLL_EXPORT'
7467      ;;
7468
7469    hpux9* | hpux10* | hpux11*)
7470      lt_prog_compiler_wl='-Wl,'
7471      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7472      # not for PA HP-UX.
7473      case $host_cpu in
7474      hppa*64*|ia64*)
7475	# +Z the default
7476	;;
7477      *)
7478	lt_prog_compiler_pic='+Z'
7479	;;
7480      esac
7481      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7482      lt_prog_compiler_static='${wl}-a ${wl}archive'
7483      ;;
7484
7485    irix5* | irix6* | nonstopux*)
7486      lt_prog_compiler_wl='-Wl,'
7487      # PIC (with -KPIC) is the default.
7488      lt_prog_compiler_static='-non_shared'
7489      ;;
7490
7491    linux* | k*bsd*-gnu)
7492      case $cc_basename in
7493      icc* | ecc* | ifort*)
7494	lt_prog_compiler_wl='-Wl,'
7495	lt_prog_compiler_pic='-KPIC'
7496	lt_prog_compiler_static='-static'
7497        ;;
7498      pgcc* | pgf77* | pgf90* | pgf95*)
7499        # Portland Group compilers (*not* the Pentium gcc compiler,
7500	# which looks to be a dead project)
7501	lt_prog_compiler_wl='-Wl,'
7502	lt_prog_compiler_pic='-fpic'
7503	lt_prog_compiler_static='-Bstatic'
7504        ;;
7505      ccc*)
7506        lt_prog_compiler_wl='-Wl,'
7507        # All Alpha code is PIC.
7508        lt_prog_compiler_static='-non_shared'
7509        ;;
7510      xl*)
7511	# IBM XL C 8.0/Fortran 10.1 on PPC
7512	lt_prog_compiler_wl='-Wl,'
7513	lt_prog_compiler_pic='-qpic'
7514	lt_prog_compiler_static='-qstaticlink'
7515	;;
7516      *)
7517	case `$CC -V 2>&1 | sed 5q` in
7518	*Sun\ C*)
7519	  # Sun C 5.9
7520	  lt_prog_compiler_pic='-KPIC'
7521	  lt_prog_compiler_static='-Bstatic'
7522	  lt_prog_compiler_wl='-Wl,'
7523	  ;;
7524	*Sun\ F*)
7525	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7526	  lt_prog_compiler_pic='-KPIC'
7527	  lt_prog_compiler_static='-Bstatic'
7528	  lt_prog_compiler_wl=''
7529	  ;;
7530	esac
7531	;;
7532      esac
7533      ;;
7534
7535    newsos6)
7536      lt_prog_compiler_pic='-KPIC'
7537      lt_prog_compiler_static='-Bstatic'
7538      ;;
7539
7540    *nto* | *qnx*)
7541      # QNX uses GNU C++, but need to define -shared option too, otherwise
7542      # it will coredump.
7543      lt_prog_compiler_pic='-fPIC -shared'
7544      ;;
7545
7546    osf3* | osf4* | osf5*)
7547      lt_prog_compiler_wl='-Wl,'
7548      # All OSF/1 code is PIC.
7549      lt_prog_compiler_static='-non_shared'
7550      ;;
7551
7552    rdos*)
7553      lt_prog_compiler_static='-non_shared'
7554      ;;
7555
7556    solaris*)
7557      lt_prog_compiler_pic='-KPIC'
7558      lt_prog_compiler_static='-Bstatic'
7559      case $cc_basename in
7560      f77* | f90* | f95*)
7561	lt_prog_compiler_wl='-Qoption ld ';;
7562      *)
7563	lt_prog_compiler_wl='-Wl,';;
7564      esac
7565      ;;
7566
7567    sunos4*)
7568      lt_prog_compiler_wl='-Qoption ld '
7569      lt_prog_compiler_pic='-PIC'
7570      lt_prog_compiler_static='-Bstatic'
7571      ;;
7572
7573    sysv4 | sysv4.2uw2* | sysv4.3*)
7574      lt_prog_compiler_wl='-Wl,'
7575      lt_prog_compiler_pic='-KPIC'
7576      lt_prog_compiler_static='-Bstatic'
7577      ;;
7578
7579    sysv4*MP*)
7580      if test -d /usr/nec ;then
7581	lt_prog_compiler_pic='-Kconform_pic'
7582	lt_prog_compiler_static='-Bstatic'
7583      fi
7584      ;;
7585
7586    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7587      lt_prog_compiler_wl='-Wl,'
7588      lt_prog_compiler_pic='-KPIC'
7589      lt_prog_compiler_static='-Bstatic'
7590      ;;
7591
7592    unicos*)
7593      lt_prog_compiler_wl='-Wl,'
7594      lt_prog_compiler_can_build_shared=no
7595      ;;
7596
7597    uts4*)
7598      lt_prog_compiler_pic='-pic'
7599      lt_prog_compiler_static='-Bstatic'
7600      ;;
7601
7602    *)
7603      lt_prog_compiler_can_build_shared=no
7604      ;;
7605    esac
7606  fi
7607
7608case $host_os in
7609  # For platforms which do not support PIC, -DPIC is meaningless:
7610  *djgpp*)
7611    lt_prog_compiler_pic=
7612    ;;
7613  *)
7614    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7615    ;;
7616esac
7617{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7618echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7619
7620
7621
7622
7623
7624
7625#
7626# Check to make sure the PIC flag actually works.
7627#
7628if test -n "$lt_prog_compiler_pic"; then
7629  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7630echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7631if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7632  echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634  lt_cv_prog_compiler_pic_works=no
7635   ac_outfile=conftest.$ac_objext
7636   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7637   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7638   # Insert the option either (1) after the last *FLAGS variable, or
7639   # (2) before a word containing "conftest.", or (3) at the end.
7640   # Note that $ac_compile itself does not contain backslashes and begins
7641   # with a dollar sign (not a hyphen), so the echo should work correctly.
7642   # The option is referenced via a variable to avoid confusing sed.
7643   lt_compile=`echo "$ac_compile" | $SED \
7644   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7645   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7646   -e 's:$: $lt_compiler_flag:'`
7647   (eval echo "\"\$as_me:7647: $lt_compile\"" >&5)
7648   (eval "$lt_compile" 2>conftest.err)
7649   ac_status=$?
7650   cat conftest.err >&5
7651   echo "$as_me:7651: \$? = $ac_status" >&5
7652   if (exit $ac_status) && test -s "$ac_outfile"; then
7653     # The compiler can only warn and ignore the option if not recognized
7654     # So say no if there are warnings other than the usual output.
7655     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7656     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7657     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7658       lt_cv_prog_compiler_pic_works=yes
7659     fi
7660   fi
7661   $RM -r conftest*
7662
7663fi
7664{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7665echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7666
7667if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7668    case $lt_prog_compiler_pic in
7669     "" | " "*) ;;
7670     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7671     esac
7672else
7673    lt_prog_compiler_pic=
7674     lt_prog_compiler_can_build_shared=no
7675fi
7676
7677fi
7678
7679
7680
7681
7682
7683
7684#
7685# Check to make sure the static flag actually works.
7686#
7687wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7688{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7689echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7690if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7691  echo $ECHO_N "(cached) $ECHO_C" >&6
7692else
7693  lt_cv_prog_compiler_static_works=no
7694   save_LDFLAGS="$LDFLAGS"
7695   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7696   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7697   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7698     # The linker can only warn and ignore the option if not recognized
7699     # So say no if there are warnings
7700     if test -s conftest.err; then
7701       # Append any errors to the config.log.
7702       cat conftest.err 1>&5
7703       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7704       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7705       if diff conftest.exp conftest.er2 >/dev/null; then
7706         lt_cv_prog_compiler_static_works=yes
7707       fi
7708     else
7709       lt_cv_prog_compiler_static_works=yes
7710     fi
7711   fi
7712   $RM -r conftest*
7713   LDFLAGS="$save_LDFLAGS"
7714
7715fi
7716{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7717echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7718
7719if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7720    :
7721else
7722    lt_prog_compiler_static=
7723fi
7724
7725
7726
7727
7728
7729
7730
7731  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7732echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7733if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7734  echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736  lt_cv_prog_compiler_c_o=no
7737   $RM -r conftest 2>/dev/null
7738   mkdir conftest
7739   cd conftest
7740   mkdir out
7741   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7742
7743   lt_compiler_flag="-o out/conftest2.$ac_objext"
7744   # Insert the option either (1) after the last *FLAGS variable, or
7745   # (2) before a word containing "conftest.", or (3) at the end.
7746   # Note that $ac_compile itself does not contain backslashes and begins
7747   # with a dollar sign (not a hyphen), so the echo should work correctly.
7748   lt_compile=`echo "$ac_compile" | $SED \
7749   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7750   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7751   -e 's:$: $lt_compiler_flag:'`
7752   (eval echo "\"\$as_me:7752: $lt_compile\"" >&5)
7753   (eval "$lt_compile" 2>out/conftest.err)
7754   ac_status=$?
7755   cat out/conftest.err >&5
7756   echo "$as_me:7756: \$? = $ac_status" >&5
7757   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7758   then
7759     # The compiler can only warn and ignore the option if not recognized
7760     # So say no if there are warnings
7761     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7762     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7763     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7764       lt_cv_prog_compiler_c_o=yes
7765     fi
7766   fi
7767   chmod u+w . 2>&5
7768   $RM -r conftest*
7769   # SGI C++ compiler will create directory out/ii_files/ for
7770   # template instantiation
7771   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7772   $RM out/* && rmdir out
7773   cd ..
7774   $RM -r conftest
7775   $RM -r conftest*
7776
7777fi
7778{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7779echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7780
7781
7782
7783
7784
7785
7786  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7787echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7788if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7789  echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791  lt_cv_prog_compiler_c_o=no
7792   $RM -r conftest 2>/dev/null
7793   mkdir conftest
7794   cd conftest
7795   mkdir out
7796   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7797
7798   lt_compiler_flag="-o out/conftest2.$ac_objext"
7799   # Insert the option either (1) after the last *FLAGS variable, or
7800   # (2) before a word containing "conftest.", or (3) at the end.
7801   # Note that $ac_compile itself does not contain backslashes and begins
7802   # with a dollar sign (not a hyphen), so the echo should work correctly.
7803   lt_compile=`echo "$ac_compile" | $SED \
7804   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7805   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7806   -e 's:$: $lt_compiler_flag:'`
7807   (eval echo "\"\$as_me:7807: $lt_compile\"" >&5)
7808   (eval "$lt_compile" 2>out/conftest.err)
7809   ac_status=$?
7810   cat out/conftest.err >&5
7811   echo "$as_me:7811: \$? = $ac_status" >&5
7812   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7813   then
7814     # The compiler can only warn and ignore the option if not recognized
7815     # So say no if there are warnings
7816     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7817     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7818     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7819       lt_cv_prog_compiler_c_o=yes
7820     fi
7821   fi
7822   chmod u+w . 2>&5
7823   $RM -r conftest*
7824   # SGI C++ compiler will create directory out/ii_files/ for
7825   # template instantiation
7826   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7827   $RM out/* && rmdir out
7828   cd ..
7829   $RM -r conftest
7830   $RM -r conftest*
7831
7832fi
7833{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7834echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7835
7836
7837
7838
7839hard_links="nottested"
7840if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7841  # do not overwrite the value of need_locks provided by the user
7842  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7843echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7844  hard_links=yes
7845  $RM -r conftest*
7846  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7847  touch conftest.a
7848  ln conftest.a conftest.b 2>&5 || hard_links=no
7849  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7850  { echo "$as_me:$LINENO: result: $hard_links" >&5
7851echo "${ECHO_T}$hard_links" >&6; }
7852  if test "$hard_links" = no; then
7853    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7854echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7855    need_locks=warn
7856  fi
7857else
7858  need_locks=no
7859fi
7860
7861
7862
7863
7864
7865
7866  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7867echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7868
7869  runpath_var=
7870  allow_undefined_flag=
7871  always_export_symbols=no
7872  archive_cmds=
7873  archive_expsym_cmds=
7874  compiler_needs_object=no
7875  enable_shared_with_static_runtimes=no
7876  export_dynamic_flag_spec=
7877  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7878  hardcode_automatic=no
7879  hardcode_direct=no
7880  hardcode_direct_absolute=no
7881  hardcode_libdir_flag_spec=
7882  hardcode_libdir_flag_spec_ld=
7883  hardcode_libdir_separator=
7884  hardcode_minus_L=no
7885  hardcode_shlibpath_var=unsupported
7886  inherit_rpath=no
7887  link_all_deplibs=unknown
7888  module_cmds=
7889  module_expsym_cmds=
7890  old_archive_from_new_cmds=
7891  old_archive_from_expsyms_cmds=
7892  thread_safe_flag_spec=
7893  whole_archive_flag_spec=
7894  # include_expsyms should be a list of space-separated symbols to be *always*
7895  # included in the symbol list
7896  include_expsyms=
7897  # exclude_expsyms can be an extended regexp of symbols to exclude
7898  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7899  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7900  # as well as any symbol that contains `d'.
7901  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7902  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7903  # platforms (ab)use it in PIC code, but their linkers get confused if
7904  # the symbol is explicitly referenced.  Since portable code cannot
7905  # rely on this symbol name, it's probably fine to never include it in
7906  # preloaded symbol tables.
7907  # Exclude shared library initialization/finalization symbols.
7908  extract_expsyms_cmds=
7909
7910  case $host_os in
7911  cygwin* | mingw* | pw32*)
7912    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7913    # When not using gcc, we currently assume that we are using
7914    # Microsoft Visual C++.
7915    if test "$GCC" != yes; then
7916      with_gnu_ld=no
7917    fi
7918    ;;
7919  interix*)
7920    # we just hope/assume this is gcc and not c89 (= MSVC++)
7921    with_gnu_ld=yes
7922    ;;
7923  openbsd*)
7924    with_gnu_ld=no
7925    ;;
7926  esac
7927
7928  ld_shlibs=yes
7929  if test "$with_gnu_ld" = yes; then
7930    # If archive_cmds runs LD, not CC, wlarc should be empty
7931    wlarc='${wl}'
7932
7933    # Set some defaults for GNU ld with shared library support. These
7934    # are reset later if shared libraries are not supported. Putting them
7935    # here allows them to be overridden if necessary.
7936    runpath_var=LD_RUN_PATH
7937    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7938    export_dynamic_flag_spec='${wl}--export-dynamic'
7939    # ancient GNU ld didn't support --whole-archive et. al.
7940    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7941      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7942    else
7943      whole_archive_flag_spec=
7944    fi
7945    supports_anon_versioning=no
7946    case `$LD -v 2>&1` in
7947      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7948      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7949      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7950      *\ 2.11.*) ;; # other 2.11 versions
7951      *) supports_anon_versioning=yes ;;
7952    esac
7953
7954    # See if GNU ld supports shared libraries.
7955    case $host_os in
7956    aix[3-9]*)
7957      # On AIX/PPC, the GNU linker is very broken
7958      if test "$host_cpu" != ia64; then
7959	ld_shlibs=no
7960	cat <<_LT_EOF 1>&2
7961
7962*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7963*** to be unable to reliably create shared libraries on AIX.
7964*** Therefore, libtool is disabling shared libraries support.  If you
7965*** really care for shared libraries, you may want to modify your PATH
7966*** so that a non-GNU linker is found, and then restart.
7967
7968_LT_EOF
7969      fi
7970      ;;
7971
7972    amigaos*)
7973      case $host_cpu in
7974      powerpc)
7975            # see comment about AmigaOS4 .so support
7976            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7977            archive_expsym_cmds=''
7978        ;;
7979      m68k)
7980            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)'
7981            hardcode_libdir_flag_spec='-L$libdir'
7982            hardcode_minus_L=yes
7983        ;;
7984      esac
7985      ;;
7986
7987    beos*)
7988      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7989	allow_undefined_flag=unsupported
7990	# Joseph Beckenbach <[email protected]> says some releases of gcc
7991	# support --undefined.  This deserves some investigation.  FIXME
7992	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7993      else
7994	ld_shlibs=no
7995      fi
7996      ;;
7997
7998    cygwin* | mingw* | pw32*)
7999      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8000      # as there is no search path for DLLs.
8001      hardcode_libdir_flag_spec='-L$libdir'
8002      allow_undefined_flag=unsupported
8003      always_export_symbols=no
8004      enable_shared_with_static_runtimes=yes
8005      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8006
8007      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8008        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8009	# If the export-symbols file already is a .def file (1st line
8010	# is EXPORTS), use it as is; otherwise, prepend...
8011	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8012	  cp $export_symbols $output_objdir/$soname.def;
8013	else
8014	  echo EXPORTS > $output_objdir/$soname.def;
8015	  cat $export_symbols >> $output_objdir/$soname.def;
8016	fi~
8017	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8018      else
8019	ld_shlibs=no
8020      fi
8021      ;;
8022
8023    interix[3-9]*)
8024      hardcode_direct=no
8025      hardcode_shlibpath_var=no
8026      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8027      export_dynamic_flag_spec='${wl}-E'
8028      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8029      # Instead, shared libraries are loaded at an image base (0x10000000 by
8030      # default) and relocated if they conflict, which is a slow very memory
8031      # consuming and fragmenting process.  To avoid this, we pick a random,
8032      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8033      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8034      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8035      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'
8036      ;;
8037
8038    gnu* | linux* | tpf* | k*bsd*-gnu)
8039      tmp_diet=no
8040      if test "$host_os" = linux-dietlibc; then
8041	case $cc_basename in
8042	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8043	esac
8044      fi
8045      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8046	 && test "$tmp_diet" = no
8047      then
8048	tmp_addflag=
8049	tmp_sharedflag='-shared'
8050	case $cc_basename,$host_cpu in
8051        pgcc*)				# Portland Group C compiler
8052	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8053	  tmp_addflag=' $pic_flag'
8054	  ;;
8055	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8056	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8057	  tmp_addflag=' $pic_flag -Mnomain' ;;
8058	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8059	  tmp_addflag=' -i_dynamic' ;;
8060	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8061	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8062	ifc* | ifort*)			# Intel Fortran compiler
8063	  tmp_addflag=' -nofor_main' ;;
8064	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8065	  tmp_sharedflag='-qmkshrobj'
8066	  tmp_addflag= ;;
8067	esac
8068	case `$CC -V 2>&1 | sed 5q` in
8069	*Sun\ C*)			# Sun C 5.9
8070	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8071	  compiler_needs_object=yes
8072	  tmp_sharedflag='-G' ;;
8073	*Sun\ F*)			# Sun Fortran 8.3
8074	  tmp_sharedflag='-G' ;;
8075	esac
8076	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8077
8078        if test "x$supports_anon_versioning" = xyes; then
8079          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8080	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8081	    echo "local: *; };" >> $output_objdir/$libname.ver~
8082	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8083        fi
8084
8085	case $cc_basename in
8086	xlf*)
8087	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8088	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8089	  hardcode_libdir_flag_spec=
8090	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8091	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8092	  if test "x$supports_anon_versioning" = xyes; then
8093	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8094	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8095	      echo "local: *; };" >> $output_objdir/$libname.ver~
8096	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8097	  fi
8098	  ;;
8099	esac
8100      else
8101        ld_shlibs=no
8102      fi
8103      ;;
8104
8105    netbsd*)
8106      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8107	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8108	wlarc=
8109      else
8110	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8111	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8112      fi
8113      ;;
8114
8115    solaris*)
8116      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8117	ld_shlibs=no
8118	cat <<_LT_EOF 1>&2
8119
8120*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8121*** create shared libraries on Solaris systems.  Therefore, libtool
8122*** is disabling shared libraries support.  We urge you to upgrade GNU
8123*** binutils to release 2.9.1 or newer.  Another option is to modify
8124*** your PATH or compiler configuration so that the native linker is
8125*** used, and then restart.
8126
8127_LT_EOF
8128      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8129	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8131      else
8132	ld_shlibs=no
8133      fi
8134      ;;
8135
8136    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8137      case `$LD -v 2>&1` in
8138        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8139	ld_shlibs=no
8140	cat <<_LT_EOF 1>&2
8141
8142*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8143*** reliably create shared libraries on SCO systems.  Therefore, libtool
8144*** is disabling shared libraries support.  We urge you to upgrade GNU
8145*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8146*** your PATH or compiler configuration so that the native linker is
8147*** used, and then restart.
8148
8149_LT_EOF
8150	;;
8151	*)
8152	  # For security reasons, it is highly recommended that you always
8153	  # use absolute paths for naming shared libraries, and exclude the
8154	  # DT_RUNPATH tag from executables and libraries.  But doing so
8155	  # requires that you compile everything twice, which is a pain.
8156	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8157	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8158	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8159	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8160	  else
8161	    ld_shlibs=no
8162	  fi
8163	;;
8164      esac
8165      ;;
8166
8167    sunos4*)
8168      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8169      wlarc=
8170      hardcode_direct=yes
8171      hardcode_shlibpath_var=no
8172      ;;
8173
8174    *)
8175      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8176	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8177	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8178      else
8179	ld_shlibs=no
8180      fi
8181      ;;
8182    esac
8183
8184    if test "$ld_shlibs" = no; then
8185      runpath_var=
8186      hardcode_libdir_flag_spec=
8187      export_dynamic_flag_spec=
8188      whole_archive_flag_spec=
8189    fi
8190  else
8191    # PORTME fill in a description of your system's linker (not GNU ld)
8192    case $host_os in
8193    aix3*)
8194      allow_undefined_flag=unsupported
8195      always_export_symbols=yes
8196      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'
8197      # Note: this linker hardcodes the directories in LIBPATH if there
8198      # are no directories specified by -L.
8199      hardcode_minus_L=yes
8200      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8201	# Neither direct hardcoding nor static linking is supported with a
8202	# broken collect2.
8203	hardcode_direct=unsupported
8204      fi
8205      ;;
8206
8207    aix[4-9]*)
8208      if test "$host_cpu" = ia64; then
8209	# On IA64, the linker does run time linking by default, so we don't
8210	# have to do anything special.
8211	aix_use_runtimelinking=no
8212	exp_sym_flag='-Bexport'
8213	no_entry_flag=""
8214      else
8215	# If we're using GNU nm, then we don't want the "-C" option.
8216	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8217	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8218	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8219	else
8220	  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'
8221	fi
8222	aix_use_runtimelinking=no
8223
8224	# Test if we are trying to use run time linking or normal
8225	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8226	# need to do runtime linking.
8227	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8228	  for ld_flag in $LDFLAGS; do
8229	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8230	    aix_use_runtimelinking=yes
8231	    break
8232	  fi
8233	  done
8234	  ;;
8235	esac
8236
8237	exp_sym_flag='-bexport'
8238	no_entry_flag='-bnoentry'
8239      fi
8240
8241      # When large executables or shared objects are built, AIX ld can
8242      # have problems creating the table of contents.  If linking a library
8243      # or program results in "error TOC overflow" add -mminimal-toc to
8244      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8245      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8246
8247      archive_cmds=''
8248      hardcode_direct=yes
8249      hardcode_direct_absolute=yes
8250      hardcode_libdir_separator=':'
8251      link_all_deplibs=yes
8252      file_list_spec='${wl}-f,'
8253
8254      if test "$GCC" = yes; then
8255	case $host_os in aix4.[012]|aix4.[012].*)
8256	# We only want to do this on AIX 4.2 and lower, the check
8257	# below for broken collect2 doesn't work under 4.3+
8258	  collect2name=`${CC} -print-prog-name=collect2`
8259	  if test -f "$collect2name" &&
8260	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8261	  then
8262	  # We have reworked collect2
8263	  :
8264	  else
8265	  # We have old collect2
8266	  hardcode_direct=unsupported
8267	  # It fails to find uninstalled libraries when the uninstalled
8268	  # path is not listed in the libpath.  Setting hardcode_minus_L
8269	  # to unsupported forces relinking
8270	  hardcode_minus_L=yes
8271	  hardcode_libdir_flag_spec='-L$libdir'
8272	  hardcode_libdir_separator=
8273	  fi
8274	  ;;
8275	esac
8276	shared_flag='-shared'
8277	if test "$aix_use_runtimelinking" = yes; then
8278	  shared_flag="$shared_flag "'${wl}-G'
8279	fi
8280      else
8281	# not using gcc
8282	if test "$host_cpu" = ia64; then
8283	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8284	# chokes on -Wl,-G. The following line is correct:
8285	  shared_flag='-G'
8286	else
8287	  if test "$aix_use_runtimelinking" = yes; then
8288	    shared_flag='${wl}-G'
8289	  else
8290	    shared_flag='${wl}-bM:SRE'
8291	  fi
8292	fi
8293      fi
8294
8295      # It seems that -bexpall does not export symbols beginning with
8296      # underscore (_), so it is better to generate a list of symbols to export.
8297      always_export_symbols=yes
8298      if test "$aix_use_runtimelinking" = yes; then
8299	# Warning - without using the other runtime loading flags (-brtl),
8300	# -berok will link without error, but may produce a broken library.
8301	allow_undefined_flag='-berok'
8302        # Determine the default libpath from the value encoded in an
8303        # empty executable.
8304        cat >conftest.$ac_ext <<_ACEOF
8305/* confdefs.h.  */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h.  */
8310
8311int
8312main ()
8313{
8314
8315  ;
8316  return 0;
8317}
8318_ACEOF
8319rm -f conftest.$ac_objext conftest$ac_exeext
8320if { (ac_try="$ac_link"
8321case "(($ac_try" in
8322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323  *) ac_try_echo=$ac_try;;
8324esac
8325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326  (eval "$ac_link") 2>conftest.er1
8327  ac_status=$?
8328  grep -v '^ *+' conftest.er1 >conftest.err
8329  rm -f conftest.er1
8330  cat conftest.err >&5
8331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332  (exit $ac_status); } && {
8333	 test -z "$ac_c_werror_flag" ||
8334	 test ! -s conftest.err
8335       } && test -s conftest$ac_exeext &&
8336       $as_test_x conftest$ac_exeext; then
8337
8338lt_aix_libpath_sed='
8339    /Import File Strings/,/^$/ {
8340	/^0/ {
8341	    s/^0  *\(.*\)$/\1/
8342	    p
8343	}
8344    }'
8345aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8346# Check for a 64-bit object if we didn't find anything.
8347if test -z "$aix_libpath"; then
8348  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8349fi
8350else
8351  echo "$as_me: failed program was:" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5
8353
8354
8355fi
8356
8357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8358      conftest$ac_exeext conftest.$ac_ext
8359if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8360
8361        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8362        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8363      else
8364	if test "$host_cpu" = ia64; then
8365	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8366	  allow_undefined_flag="-z nodefs"
8367	  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"
8368	else
8369	 # Determine the default libpath from the value encoded in an
8370	 # empty executable.
8371	 cat >conftest.$ac_ext <<_ACEOF
8372/* confdefs.h.  */
8373_ACEOF
8374cat confdefs.h >>conftest.$ac_ext
8375cat >>conftest.$ac_ext <<_ACEOF
8376/* end confdefs.h.  */
8377
8378int
8379main ()
8380{
8381
8382  ;
8383  return 0;
8384}
8385_ACEOF
8386rm -f conftest.$ac_objext conftest$ac_exeext
8387if { (ac_try="$ac_link"
8388case "(($ac_try" in
8389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390  *) ac_try_echo=$ac_try;;
8391esac
8392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393  (eval "$ac_link") 2>conftest.er1
8394  ac_status=$?
8395  grep -v '^ *+' conftest.er1 >conftest.err
8396  rm -f conftest.er1
8397  cat conftest.err >&5
8398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399  (exit $ac_status); } && {
8400	 test -z "$ac_c_werror_flag" ||
8401	 test ! -s conftest.err
8402       } && test -s conftest$ac_exeext &&
8403       $as_test_x conftest$ac_exeext; then
8404
8405lt_aix_libpath_sed='
8406    /Import File Strings/,/^$/ {
8407	/^0/ {
8408	    s/^0  *\(.*\)$/\1/
8409	    p
8410	}
8411    }'
8412aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8413# Check for a 64-bit object if we didn't find anything.
8414if test -z "$aix_libpath"; then
8415  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8416fi
8417else
8418  echo "$as_me: failed program was:" >&5
8419sed 's/^/| /' conftest.$ac_ext >&5
8420
8421
8422fi
8423
8424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8425      conftest$ac_exeext conftest.$ac_ext
8426if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8427
8428	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8429	  # Warning - without using the other run time loading flags,
8430	  # -berok will link without error, but may produce a broken library.
8431	  no_undefined_flag=' ${wl}-bernotok'
8432	  allow_undefined_flag=' ${wl}-berok'
8433	  # Exported symbols can be pulled into shared objects from archives
8434	  whole_archive_flag_spec='$convenience'
8435	  archive_cmds_need_lc=yes
8436	  # This is similar to how AIX traditionally builds its shared libraries.
8437	  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'
8438	fi
8439      fi
8440      ;;
8441
8442    amigaos*)
8443      case $host_cpu in
8444      powerpc)
8445            # see comment about AmigaOS4 .so support
8446            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8447            archive_expsym_cmds=''
8448        ;;
8449      m68k)
8450            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)'
8451            hardcode_libdir_flag_spec='-L$libdir'
8452            hardcode_minus_L=yes
8453        ;;
8454      esac
8455      ;;
8456
8457    bsdi[45]*)
8458      export_dynamic_flag_spec=-rdynamic
8459      ;;
8460
8461    cygwin* | mingw* | pw32*)
8462      # When not using gcc, we currently assume that we are using
8463      # Microsoft Visual C++.
8464      # hardcode_libdir_flag_spec is actually meaningless, as there is
8465      # no search path for DLLs.
8466      hardcode_libdir_flag_spec=' '
8467      allow_undefined_flag=unsupported
8468      # Tell ltmain to make .lib files, not .a files.
8469      libext=lib
8470      # Tell ltmain to make .dll files, not .so files.
8471      shrext_cmds=".dll"
8472      # FIXME: Setting linknames here is a bad hack.
8473      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8474      # The linker will automatically build a .lib file if we build a DLL.
8475      old_archive_from_new_cmds='true'
8476      # FIXME: Should let the user specify the lib program.
8477      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8478      fix_srcfile_path='`cygpath -w "$srcfile"`'
8479      enable_shared_with_static_runtimes=yes
8480      ;;
8481
8482    darwin* | rhapsody*)
8483
8484
8485  archive_cmds_need_lc=no
8486  hardcode_direct=no
8487  hardcode_automatic=yes
8488  hardcode_shlibpath_var=unsupported
8489  whole_archive_flag_spec=''
8490  link_all_deplibs=yes
8491  allow_undefined_flag="$_lt_dar_allow_undefined"
8492  if test "$GCC" = "yes"; then
8493    output_verbose_link_cmd=echo
8494    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8495    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8496    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}"
8497    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}"
8498
8499  else
8500  ld_shlibs=no
8501  fi
8502
8503      ;;
8504
8505    dgux*)
8506      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507      hardcode_libdir_flag_spec='-L$libdir'
8508      hardcode_shlibpath_var=no
8509      ;;
8510
8511    freebsd1*)
8512      ld_shlibs=no
8513      ;;
8514
8515    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8516    # support.  Future versions do this automatically, but an explicit c++rt0.o
8517    # does not break anything, and helps significantly (at the cost of a little
8518    # extra space).
8519    freebsd2.2*)
8520      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8521      hardcode_libdir_flag_spec='-R$libdir'
8522      hardcode_direct=yes
8523      hardcode_shlibpath_var=no
8524      ;;
8525
8526    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8527    freebsd2*)
8528      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8529      hardcode_direct=yes
8530      hardcode_minus_L=yes
8531      hardcode_shlibpath_var=no
8532      ;;
8533
8534    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8535    freebsd* | dragonfly*)
8536      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8537      hardcode_libdir_flag_spec='-R$libdir'
8538      hardcode_direct=yes
8539      hardcode_shlibpath_var=no
8540      ;;
8541
8542    hpux9*)
8543      if test "$GCC" = yes; then
8544	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'
8545      else
8546	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'
8547      fi
8548      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8549      hardcode_libdir_separator=:
8550      hardcode_direct=yes
8551
8552      # hardcode_minus_L: Not really in the search PATH,
8553      # but as the default location of the library.
8554      hardcode_minus_L=yes
8555      export_dynamic_flag_spec='${wl}-E'
8556      ;;
8557
8558    hpux10*)
8559      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8560	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8561      else
8562	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8563      fi
8564      if test "$with_gnu_ld" = no; then
8565	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8566	hardcode_libdir_flag_spec_ld='+b $libdir'
8567	hardcode_libdir_separator=:
8568	hardcode_direct=yes
8569	hardcode_direct_absolute=yes
8570	export_dynamic_flag_spec='${wl}-E'
8571	# hardcode_minus_L: Not really in the search PATH,
8572	# but as the default location of the library.
8573	hardcode_minus_L=yes
8574      fi
8575      ;;
8576
8577    hpux11*)
8578      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8579	case $host_cpu in
8580	hppa*64*)
8581	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8582	  ;;
8583	ia64*)
8584	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8585	  ;;
8586	*)
8587	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8588	  ;;
8589	esac
8590      else
8591	case $host_cpu in
8592	hppa*64*)
8593	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8594	  ;;
8595	ia64*)
8596	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8597	  ;;
8598	*)
8599	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8600	  ;;
8601	esac
8602      fi
8603      if test "$with_gnu_ld" = no; then
8604	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8605	hardcode_libdir_separator=:
8606
8607	case $host_cpu in
8608	hppa*64*|ia64*)
8609	  hardcode_direct=no
8610	  hardcode_shlibpath_var=no
8611	  ;;
8612	*)
8613	  hardcode_direct=yes
8614	  hardcode_direct_absolute=yes
8615	  export_dynamic_flag_spec='${wl}-E'
8616
8617	  # hardcode_minus_L: Not really in the search PATH,
8618	  # but as the default location of the library.
8619	  hardcode_minus_L=yes
8620	  ;;
8621	esac
8622      fi
8623      ;;
8624
8625    irix5* | irix6* | nonstopux*)
8626      if test "$GCC" = yes; then
8627	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8628	# Try to use the -exported_symbol ld option, if it does not
8629	# work, assume that -exports_file does not work either and
8630	# implicitly export all symbols.
8631        save_LDFLAGS="$LDFLAGS"
8632        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8633        cat >conftest.$ac_ext <<_ACEOF
8634int foo(void) {}
8635_ACEOF
8636rm -f conftest.$ac_objext conftest$ac_exeext
8637if { (ac_try="$ac_link"
8638case "(($ac_try" in
8639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640  *) ac_try_echo=$ac_try;;
8641esac
8642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643  (eval "$ac_link") 2>conftest.er1
8644  ac_status=$?
8645  grep -v '^ *+' conftest.er1 >conftest.err
8646  rm -f conftest.er1
8647  cat conftest.err >&5
8648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649  (exit $ac_status); } && {
8650	 test -z "$ac_c_werror_flag" ||
8651	 test ! -s conftest.err
8652       } && test -s conftest$ac_exeext &&
8653       $as_test_x conftest$ac_exeext; then
8654  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8655
8656else
8657  echo "$as_me: failed program was:" >&5
8658sed 's/^/| /' conftest.$ac_ext >&5
8659
8660
8661fi
8662
8663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8664      conftest$ac_exeext conftest.$ac_ext
8665        LDFLAGS="$save_LDFLAGS"
8666      else
8667	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8668	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8669      fi
8670      archive_cmds_need_lc='no'
8671      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8672      hardcode_libdir_separator=:
8673      inherit_rpath=yes
8674      link_all_deplibs=yes
8675      ;;
8676
8677    netbsd*)
8678      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8679	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8680      else
8681	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8682      fi
8683      hardcode_libdir_flag_spec='-R$libdir'
8684      hardcode_direct=yes
8685      hardcode_shlibpath_var=no
8686      ;;
8687
8688    newsos6)
8689      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8690      hardcode_direct=yes
8691      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8692      hardcode_libdir_separator=:
8693      hardcode_shlibpath_var=no
8694      ;;
8695
8696    *nto* | *qnx*)
8697      ;;
8698
8699    openbsd*)
8700      if test -f /usr/libexec/ld.so; then
8701	hardcode_direct=yes
8702	hardcode_shlibpath_var=no
8703	hardcode_direct_absolute=yes
8704	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8705	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8706	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8707	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8708	  export_dynamic_flag_spec='${wl}-E'
8709	else
8710	  case $host_os in
8711	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8712	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8713	     hardcode_libdir_flag_spec='-R$libdir'
8714	     ;;
8715	   *)
8716	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8717	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8718	     ;;
8719	  esac
8720	fi
8721      else
8722	ld_shlibs=no
8723      fi
8724      ;;
8725
8726    os2*)
8727      hardcode_libdir_flag_spec='-L$libdir'
8728      hardcode_minus_L=yes
8729      allow_undefined_flag=unsupported
8730      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'
8731      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8732      ;;
8733
8734    osf3*)
8735      if test "$GCC" = yes; then
8736	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8737	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8738      else
8739	allow_undefined_flag=' -expect_unresolved \*'
8740	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8741      fi
8742      archive_cmds_need_lc='no'
8743      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8744      hardcode_libdir_separator=:
8745      ;;
8746
8747    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8748      if test "$GCC" = yes; then
8749	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8750	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8751	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8752      else
8753	allow_undefined_flag=' -expect_unresolved \*'
8754	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8755	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~
8756	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8757
8758	# Both c and cxx compiler support -rpath directly
8759	hardcode_libdir_flag_spec='-rpath $libdir'
8760      fi
8761      archive_cmds_need_lc='no'
8762      hardcode_libdir_separator=:
8763      ;;
8764
8765    solaris*)
8766      no_undefined_flag=' -z defs'
8767      if test "$GCC" = yes; then
8768	wlarc='${wl}'
8769	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8770	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8771	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8772      else
8773	case `$CC -V 2>&1` in
8774	*"Compilers 5.0"*)
8775	  wlarc=''
8776	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8777	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8778	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8779	  ;;
8780	*)
8781	  wlarc='${wl}'
8782	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8783	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8784	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8785	  ;;
8786	esac
8787      fi
8788      hardcode_libdir_flag_spec='-R$libdir'
8789      hardcode_shlibpath_var=no
8790      case $host_os in
8791      solaris2.[0-5] | solaris2.[0-5].*) ;;
8792      *)
8793	# The compiler driver will combine and reorder linker options,
8794	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8795	# but is careful enough not to reorder.
8796	# Supported since Solaris 2.6 (maybe 2.5.1?)
8797	if test "$GCC" = yes; then
8798	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8799	else
8800	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8801	fi
8802	;;
8803      esac
8804      link_all_deplibs=yes
8805      ;;
8806
8807    sunos4*)
8808      if test "x$host_vendor" = xsequent; then
8809	# Use $CC to link under sequent, because it throws in some extra .o
8810	# files that make .init and .fini sections work.
8811	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8812      else
8813	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8814      fi
8815      hardcode_libdir_flag_spec='-L$libdir'
8816      hardcode_direct=yes
8817      hardcode_minus_L=yes
8818      hardcode_shlibpath_var=no
8819      ;;
8820
8821    sysv4)
8822      case $host_vendor in
8823	sni)
8824	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8825	  hardcode_direct=yes # is this really true???
8826	;;
8827	siemens)
8828	  ## LD is ld it makes a PLAMLIB
8829	  ## CC just makes a GrossModule.
8830	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8831	  reload_cmds='$CC -r -o $output$reload_objs'
8832	  hardcode_direct=no
8833        ;;
8834	motorola)
8835	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8836	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8837	;;
8838      esac
8839      runpath_var='LD_RUN_PATH'
8840      hardcode_shlibpath_var=no
8841      ;;
8842
8843    sysv4.3*)
8844      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845      hardcode_shlibpath_var=no
8846      export_dynamic_flag_spec='-Bexport'
8847      ;;
8848
8849    sysv4*MP*)
8850      if test -d /usr/nec; then
8851	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8852	hardcode_shlibpath_var=no
8853	runpath_var=LD_RUN_PATH
8854	hardcode_runpath_var=yes
8855	ld_shlibs=yes
8856      fi
8857      ;;
8858
8859    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8860      no_undefined_flag='${wl}-z,text'
8861      archive_cmds_need_lc=no
8862      hardcode_shlibpath_var=no
8863      runpath_var='LD_RUN_PATH'
8864
8865      if test "$GCC" = yes; then
8866	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8867	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8868      else
8869	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8870	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8871      fi
8872      ;;
8873
8874    sysv5* | sco3.2v5* | sco5v6*)
8875      # Note: We can NOT use -z defs as we might desire, because we do not
8876      # link with -lc, and that would cause any symbols used from libc to
8877      # always be unresolved, which means just about no library would
8878      # ever link correctly.  If we're not using GNU ld we use -z text
8879      # though, which does catch some bad symbols but isn't as heavy-handed
8880      # as -z defs.
8881      no_undefined_flag='${wl}-z,text'
8882      allow_undefined_flag='${wl}-z,nodefs'
8883      archive_cmds_need_lc=no
8884      hardcode_shlibpath_var=no
8885      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8886      hardcode_libdir_separator=':'
8887      link_all_deplibs=yes
8888      export_dynamic_flag_spec='${wl}-Bexport'
8889      runpath_var='LD_RUN_PATH'
8890
8891      if test "$GCC" = yes; then
8892	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8893	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8894      else
8895	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8896	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8897      fi
8898      ;;
8899
8900    uts4*)
8901      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8902      hardcode_libdir_flag_spec='-L$libdir'
8903      hardcode_shlibpath_var=no
8904      ;;
8905
8906    *)
8907      ld_shlibs=no
8908      ;;
8909    esac
8910
8911    if test x$host_vendor = xsni; then
8912      case $host in
8913      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8914	export_dynamic_flag_spec='${wl}-Blargedynsym'
8915	;;
8916      esac
8917    fi
8918  fi
8919
8920{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8921echo "${ECHO_T}$ld_shlibs" >&6; }
8922test "$ld_shlibs" = no && can_build_shared=no
8923
8924with_gnu_ld=$with_gnu_ld
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940#
8941# Do we need to explicitly link libc?
8942#
8943case "x$archive_cmds_need_lc" in
8944x|xyes)
8945  # Assume -lc should be added
8946  archive_cmds_need_lc=yes
8947
8948  if test "$enable_shared" = yes && test "$GCC" = yes; then
8949    case $archive_cmds in
8950    *'~'*)
8951      # FIXME: we may have to deal with multi-command sequences.
8952      ;;
8953    '$CC '*)
8954      # Test whether the compiler implicitly links with -lc since on some
8955      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8956      # to ld, don't add -lc before -lgcc.
8957      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8958echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8959      $RM -r conftest*
8960      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8961
8962      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8963  (eval $ac_compile) 2>&5
8964  ac_status=$?
8965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966  (exit $ac_status); } 2>conftest.err; then
8967        soname=conftest
8968        lib=conftest
8969        libobjs=conftest.$ac_objext
8970        deplibs=
8971        wl=$lt_prog_compiler_wl
8972	pic_flag=$lt_prog_compiler_pic
8973        compiler_flags=-v
8974        linker_flags=-v
8975        verstring=
8976        output_objdir=.
8977        libname=conftest
8978        lt_save_allow_undefined_flag=$allow_undefined_flag
8979        allow_undefined_flag=
8980        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8981  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8982  ac_status=$?
8983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984  (exit $ac_status); }
8985        then
8986	  archive_cmds_need_lc=no
8987        else
8988	  archive_cmds_need_lc=yes
8989        fi
8990        allow_undefined_flag=$lt_save_allow_undefined_flag
8991      else
8992        cat conftest.err 1>&5
8993      fi
8994      $RM -r conftest*
8995      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8996echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8997      ;;
8998    esac
8999  fi
9000  ;;
9001esac
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9160echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9161
9162if test "$GCC" = yes; then
9163  case $host_os in
9164    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9165    *) lt_awk_arg="/^libraries:/" ;;
9166  esac
9167  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9168  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9169    # if the path contains ";" then we assume it to be the separator
9170    # otherwise default to the standard path separator (i.e. ":") - it is
9171    # assumed that no part of a normal pathname contains ";" but that should
9172    # okay in the real world where ";" in dirpaths is itself problematic.
9173    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9174  else
9175    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9176  fi
9177  # Ok, now we have the path, separated by spaces, we can step through it
9178  # and add multilib dir if necessary.
9179  lt_tmp_lt_search_path_spec=
9180  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9181  for lt_sys_path in $lt_search_path_spec; do
9182    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9183      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9184    else
9185      test -d "$lt_sys_path" && \
9186	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9187    fi
9188  done
9189  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9190BEGIN {RS=" "; FS="/|\n";} {
9191  lt_foo="";
9192  lt_count=0;
9193  for (lt_i = NF; lt_i > 0; lt_i--) {
9194    if ($lt_i != "" && $lt_i != ".") {
9195      if ($lt_i == "..") {
9196        lt_count++;
9197      } else {
9198        if (lt_count == 0) {
9199          lt_foo="/" $lt_i lt_foo;
9200        } else {
9201          lt_count--;
9202        }
9203      }
9204    }
9205  }
9206  if (lt_foo != "") { lt_freq[lt_foo]++; }
9207  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9208}'`
9209  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9210else
9211  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9212fi
9213library_names_spec=
9214libname_spec='lib$name'
9215soname_spec=
9216shrext_cmds=".so"
9217postinstall_cmds=
9218postuninstall_cmds=
9219finish_cmds=
9220finish_eval=
9221shlibpath_var=
9222shlibpath_overrides_runpath=unknown
9223version_type=none
9224dynamic_linker="$host_os ld.so"
9225sys_lib_dlsearch_path_spec="/lib /usr/lib"
9226need_lib_prefix=unknown
9227hardcode_into_libs=no
9228
9229# when you set need_version to no, make sure it does not cause -set_version
9230# flags to be left without arguments
9231need_version=unknown
9232
9233case $host_os in
9234aix3*)
9235  version_type=linux
9236  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9237  shlibpath_var=LIBPATH
9238
9239  # AIX 3 has no versioning support, so we append a major version to the name.
9240  soname_spec='${libname}${release}${shared_ext}$major'
9241  ;;
9242
9243aix[4-9]*)
9244  version_type=linux
9245  need_lib_prefix=no
9246  need_version=no
9247  hardcode_into_libs=yes
9248  if test "$host_cpu" = ia64; then
9249    # AIX 5 supports IA64
9250    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9251    shlibpath_var=LD_LIBRARY_PATH
9252  else
9253    # With GCC up to 2.95.x, collect2 would create an import file
9254    # for dependence libraries.  The import file would start with
9255    # the line `#! .'.  This would cause the generated library to
9256    # depend on `.', always an invalid library.  This was fixed in
9257    # development snapshots of GCC prior to 3.0.
9258    case $host_os in
9259      aix4 | aix4.[01] | aix4.[01].*)
9260      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9261	   echo ' yes '
9262	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9263	:
9264      else
9265	can_build_shared=no
9266      fi
9267      ;;
9268    esac
9269    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9270    # soname into executable. Probably we can add versioning support to
9271    # collect2, so additional links can be useful in future.
9272    if test "$aix_use_runtimelinking" = yes; then
9273      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9274      # instead of lib<name>.a to let people know that these are not
9275      # typical AIX shared libraries.
9276      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277    else
9278      # We preserve .a as extension for shared libraries through AIX4.2
9279      # and later when we are not doing run time linking.
9280      library_names_spec='${libname}${release}.a $libname.a'
9281      soname_spec='${libname}${release}${shared_ext}$major'
9282    fi
9283    shlibpath_var=LIBPATH
9284  fi
9285  ;;
9286
9287amigaos*)
9288  case $host_cpu in
9289  powerpc)
9290    # Since July 2007 AmigaOS4 officially supports .so libraries.
9291    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9292    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293    ;;
9294  m68k)
9295    library_names_spec='$libname.ixlibrary $libname.a'
9296    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9297    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9298    ;;
9299  esac
9300  ;;
9301
9302beos*)
9303  library_names_spec='${libname}${shared_ext}'
9304  dynamic_linker="$host_os ld.so"
9305  shlibpath_var=LIBRARY_PATH
9306  ;;
9307
9308bsdi[45]*)
9309  version_type=linux
9310  need_version=no
9311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312  soname_spec='${libname}${release}${shared_ext}$major'
9313  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9314  shlibpath_var=LD_LIBRARY_PATH
9315  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9316  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9317  # the default ld.so.conf also contains /usr/contrib/lib and
9318  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9319  # libtool to hard-code these into programs
9320  ;;
9321
9322cygwin* | mingw* | pw32*)
9323  version_type=windows
9324  shrext_cmds=".dll"
9325  need_version=no
9326  need_lib_prefix=no
9327
9328  case $GCC,$host_os in
9329  yes,cygwin* | yes,mingw* | yes,pw32*)
9330    library_names_spec='$libname.dll.a'
9331    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9332    postinstall_cmds='base_file=`basename \${file}`~
9333      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9334      dldir=$destdir/`dirname \$dlpath`~
9335      test -d \$dldir || mkdir -p \$dldir~
9336      $install_prog $dir/$dlname \$dldir/$dlname~
9337      chmod a+x \$dldir/$dlname~
9338      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9339        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9340      fi'
9341    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9342      dlpath=$dir/\$dldll~
9343       $RM \$dlpath'
9344    shlibpath_overrides_runpath=yes
9345
9346    case $host_os in
9347    cygwin*)
9348      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9349      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9350      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9351      ;;
9352    mingw*)
9353      # MinGW DLLs use traditional 'lib' prefix
9354      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9355      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9356      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9357        # It is most probably a Windows format PATH printed by
9358        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9359        # path with ; separators, and with drive letters. We can handle the
9360        # drive letters (cygwin fileutils understands them), so leave them,
9361        # especially as we might pass files found there to a mingw objdump,
9362        # which wouldn't understand a cygwinified path. Ahh.
9363        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9364      else
9365        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9366      fi
9367      ;;
9368    pw32*)
9369      # pw32 DLLs use 'pw' prefix rather than 'lib'
9370      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9371      ;;
9372    esac
9373    ;;
9374
9375  *)
9376    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9377    ;;
9378  esac
9379  dynamic_linker='Win32 ld.exe'
9380  # FIXME: first we should search . and the directory the executable is in
9381  shlibpath_var=PATH
9382  ;;
9383
9384darwin* | rhapsody*)
9385  dynamic_linker="$host_os dyld"
9386  version_type=darwin
9387  need_lib_prefix=no
9388  need_version=no
9389  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
9390  soname_spec='${libname}${release}${major}$shared_ext'
9391  shlibpath_overrides_runpath=yes
9392  shlibpath_var=DYLD_LIBRARY_PATH
9393  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9394
9395  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9396  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9397  ;;
9398
9399dgux*)
9400  version_type=linux
9401  need_lib_prefix=no
9402  need_version=no
9403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9404  soname_spec='${libname}${release}${shared_ext}$major'
9405  shlibpath_var=LD_LIBRARY_PATH
9406  ;;
9407
9408freebsd1*)
9409  dynamic_linker=no
9410  ;;
9411
9412freebsd* | dragonfly*)
9413  # DragonFly does not have aout.  When/if they implement a new
9414  # versioning mechanism, adjust this.
9415  if test -x /usr/bin/objformat; then
9416    objformat=`/usr/bin/objformat`
9417  else
9418    case $host_os in
9419    freebsd[123]*) objformat=aout ;;
9420    *) objformat=elf ;;
9421    esac
9422  fi
9423  version_type=freebsd-$objformat
9424  case $version_type in
9425    freebsd-elf*)
9426      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9427      need_version=no
9428      need_lib_prefix=no
9429      ;;
9430    freebsd-*)
9431      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9432      need_version=yes
9433      ;;
9434  esac
9435  shlibpath_var=LD_LIBRARY_PATH
9436  case $host_os in
9437  freebsd2*)
9438    shlibpath_overrides_runpath=yes
9439    ;;
9440  freebsd3.[01]* | freebsdelf3.[01]*)
9441    shlibpath_overrides_runpath=yes
9442    hardcode_into_libs=yes
9443    ;;
9444  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9445  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9446    shlibpath_overrides_runpath=no
9447    hardcode_into_libs=yes
9448    ;;
9449  *) # from 4.6 on, and DragonFly
9450    shlibpath_overrides_runpath=yes
9451    hardcode_into_libs=yes
9452    ;;
9453  esac
9454  ;;
9455
9456gnu*)
9457  version_type=linux
9458  need_lib_prefix=no
9459  need_version=no
9460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9461  soname_spec='${libname}${release}${shared_ext}$major'
9462  shlibpath_var=LD_LIBRARY_PATH
9463  hardcode_into_libs=yes
9464  ;;
9465
9466hpux9* | hpux10* | hpux11*)
9467  # Give a soname corresponding to the major version so that dld.sl refuses to
9468  # link against other versions.
9469  version_type=sunos
9470  need_lib_prefix=no
9471  need_version=no
9472  case $host_cpu in
9473  ia64*)
9474    shrext_cmds='.so'
9475    hardcode_into_libs=yes
9476    dynamic_linker="$host_os dld.so"
9477    shlibpath_var=LD_LIBRARY_PATH
9478    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9479    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480    soname_spec='${libname}${release}${shared_ext}$major'
9481    if test "X$HPUX_IA64_MODE" = X32; then
9482      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9483    else
9484      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9485    fi
9486    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9487    ;;
9488  hppa*64*)
9489    shrext_cmds='.sl'
9490    hardcode_into_libs=yes
9491    dynamic_linker="$host_os dld.sl"
9492    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9493    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9494    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495    soname_spec='${libname}${release}${shared_ext}$major'
9496    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9497    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9498    ;;
9499  *)
9500    shrext_cmds='.sl'
9501    dynamic_linker="$host_os dld.sl"
9502    shlibpath_var=SHLIB_PATH
9503    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9504    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9505    soname_spec='${libname}${release}${shared_ext}$major'
9506    ;;
9507  esac
9508  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9509  postinstall_cmds='chmod 555 $lib'
9510  ;;
9511
9512interix[3-9]*)
9513  version_type=linux
9514  need_lib_prefix=no
9515  need_version=no
9516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9517  soname_spec='${libname}${release}${shared_ext}$major'
9518  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9519  shlibpath_var=LD_LIBRARY_PATH
9520  shlibpath_overrides_runpath=no
9521  hardcode_into_libs=yes
9522  ;;
9523
9524irix5* | irix6* | nonstopux*)
9525  case $host_os in
9526    nonstopux*) version_type=nonstopux ;;
9527    *)
9528	if test "$lt_cv_prog_gnu_ld" = yes; then
9529		version_type=linux
9530	else
9531		version_type=irix
9532	fi ;;
9533  esac
9534  need_lib_prefix=no
9535  need_version=no
9536  soname_spec='${libname}${release}${shared_ext}$major'
9537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9538  case $host_os in
9539  irix5* | nonstopux*)
9540    libsuff= shlibsuff=
9541    ;;
9542  *)
9543    case $LD in # libtool.m4 will add one of these switches to LD
9544    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9545      libsuff= shlibsuff= libmagic=32-bit;;
9546    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9547      libsuff=32 shlibsuff=N32 libmagic=N32;;
9548    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9549      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9550    *) libsuff= shlibsuff= libmagic=never-match;;
9551    esac
9552    ;;
9553  esac
9554  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9555  shlibpath_overrides_runpath=no
9556  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9557  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9558  hardcode_into_libs=yes
9559  ;;
9560
9561# No shared lib support for Linux oldld, aout, or coff.
9562linux*oldld* | linux*aout* | linux*coff*)
9563  dynamic_linker=no
9564  ;;
9565
9566# This must be Linux ELF.
9567linux* | k*bsd*-gnu)
9568  version_type=linux
9569  need_lib_prefix=no
9570  need_version=no
9571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572  soname_spec='${libname}${release}${shared_ext}$major'
9573  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9574  shlibpath_var=LD_LIBRARY_PATH
9575  shlibpath_overrides_runpath=no
9576  # Some binutils ld are patched to set DT_RUNPATH
9577  save_LDFLAGS=$LDFLAGS
9578  save_libdir=$libdir
9579  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9580       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9581  cat >conftest.$ac_ext <<_ACEOF
9582/* confdefs.h.  */
9583_ACEOF
9584cat confdefs.h >>conftest.$ac_ext
9585cat >>conftest.$ac_ext <<_ACEOF
9586/* end confdefs.h.  */
9587
9588int
9589main ()
9590{
9591
9592  ;
9593  return 0;
9594}
9595_ACEOF
9596rm -f conftest.$ac_objext conftest$ac_exeext
9597if { (ac_try="$ac_link"
9598case "(($ac_try" in
9599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600  *) ac_try_echo=$ac_try;;
9601esac
9602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603  (eval "$ac_link") 2>conftest.er1
9604  ac_status=$?
9605  grep -v '^ *+' conftest.er1 >conftest.err
9606  rm -f conftest.er1
9607  cat conftest.err >&5
9608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609  (exit $ac_status); } && {
9610	 test -z "$ac_c_werror_flag" ||
9611	 test ! -s conftest.err
9612       } && test -s conftest$ac_exeext &&
9613       $as_test_x conftest$ac_exeext; then
9614  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9615  shlibpath_overrides_runpath=yes
9616fi
9617
9618else
9619  echo "$as_me: failed program was:" >&5
9620sed 's/^/| /' conftest.$ac_ext >&5
9621
9622
9623fi
9624
9625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9626      conftest$ac_exeext conftest.$ac_ext
9627  LDFLAGS=$save_LDFLAGS
9628  libdir=$save_libdir
9629
9630  # This implies no fast_install, which is unacceptable.
9631  # Some rework will be needed to allow for fast_install
9632  # before this can be enabled.
9633  hardcode_into_libs=yes
9634
9635  # Append ld.so.conf contents to the search path
9636  if test -f /etc/ld.so.conf; then
9637    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;/^$/d' | tr '\n' ' '`
9638    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9639  fi
9640
9641  # We used to test for /lib/ld.so.1 and disable shared libraries on
9642  # powerpc, because MkLinux only supported shared libraries with the
9643  # GNU dynamic linker.  Since this was broken with cross compilers,
9644  # most powerpc-linux boxes support dynamic linking these days and
9645  # people can always --disable-shared, the test was removed, and we
9646  # assume the GNU/Linux dynamic linker is in use.
9647  dynamic_linker='GNU/Linux ld.so'
9648  ;;
9649
9650netbsd*)
9651  version_type=sunos
9652  need_lib_prefix=no
9653  need_version=no
9654  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9655    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9656    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9657    dynamic_linker='NetBSD (a.out) ld.so'
9658  else
9659    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9660    soname_spec='${libname}${release}${shared_ext}$major'
9661    dynamic_linker='NetBSD ld.elf_so'
9662  fi
9663  shlibpath_var=LD_LIBRARY_PATH
9664  shlibpath_overrides_runpath=yes
9665  hardcode_into_libs=yes
9666  ;;
9667
9668newsos6)
9669  version_type=linux
9670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671  shlibpath_var=LD_LIBRARY_PATH
9672  shlibpath_overrides_runpath=yes
9673  ;;
9674
9675*nto* | *qnx*)
9676  version_type=qnx
9677  need_lib_prefix=no
9678  need_version=no
9679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680  soname_spec='${libname}${release}${shared_ext}$major'
9681  shlibpath_var=LD_LIBRARY_PATH
9682  shlibpath_overrides_runpath=no
9683  hardcode_into_libs=yes
9684  dynamic_linker='ldqnx.so'
9685  ;;
9686
9687openbsd*)
9688  version_type=sunos
9689  sys_lib_dlsearch_path_spec="/usr/lib"
9690  need_lib_prefix=no
9691  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9692  case $host_os in
9693    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9694    *)				need_version=no  ;;
9695  esac
9696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9697  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9698  shlibpath_var=LD_LIBRARY_PATH
9699  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9700    case $host_os in
9701      openbsd2.[89] | openbsd2.[89].*)
9702	shlibpath_overrides_runpath=no
9703	;;
9704      *)
9705	shlibpath_overrides_runpath=yes
9706	;;
9707      esac
9708  else
9709    shlibpath_overrides_runpath=yes
9710  fi
9711  ;;
9712
9713os2*)
9714  libname_spec='$name'
9715  shrext_cmds=".dll"
9716  need_lib_prefix=no
9717  library_names_spec='$libname${shared_ext} $libname.a'
9718  dynamic_linker='OS/2 ld.exe'
9719  shlibpath_var=LIBPATH
9720  ;;
9721
9722osf3* | osf4* | osf5*)
9723  version_type=osf
9724  need_lib_prefix=no
9725  need_version=no
9726  soname_spec='${libname}${release}${shared_ext}$major'
9727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728  shlibpath_var=LD_LIBRARY_PATH
9729  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9730  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9731  ;;
9732
9733rdos*)
9734  dynamic_linker=no
9735  ;;
9736
9737solaris*)
9738  version_type=linux
9739  need_lib_prefix=no
9740  need_version=no
9741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9742  soname_spec='${libname}${release}${shared_ext}$major'
9743  shlibpath_var=LD_LIBRARY_PATH
9744  shlibpath_overrides_runpath=yes
9745  hardcode_into_libs=yes
9746  # ldd complains unless libraries are executable
9747  postinstall_cmds='chmod +x $lib'
9748  ;;
9749
9750sunos4*)
9751  version_type=sunos
9752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9753  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9754  shlibpath_var=LD_LIBRARY_PATH
9755  shlibpath_overrides_runpath=yes
9756  if test "$with_gnu_ld" = yes; then
9757    need_lib_prefix=no
9758  fi
9759  need_version=yes
9760  ;;
9761
9762sysv4 | sysv4.3*)
9763  version_type=linux
9764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765  soname_spec='${libname}${release}${shared_ext}$major'
9766  shlibpath_var=LD_LIBRARY_PATH
9767  case $host_vendor in
9768    sni)
9769      shlibpath_overrides_runpath=no
9770      need_lib_prefix=no
9771      runpath_var=LD_RUN_PATH
9772      ;;
9773    siemens)
9774      need_lib_prefix=no
9775      ;;
9776    motorola)
9777      need_lib_prefix=no
9778      need_version=no
9779      shlibpath_overrides_runpath=no
9780      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9781      ;;
9782  esac
9783  ;;
9784
9785sysv4*MP*)
9786  if test -d /usr/nec ;then
9787    version_type=linux
9788    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9789    soname_spec='$libname${shared_ext}.$major'
9790    shlibpath_var=LD_LIBRARY_PATH
9791  fi
9792  ;;
9793
9794sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9795  version_type=freebsd-elf
9796  need_lib_prefix=no
9797  need_version=no
9798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9799  soname_spec='${libname}${release}${shared_ext}$major'
9800  shlibpath_var=LD_LIBRARY_PATH
9801  shlibpath_overrides_runpath=yes
9802  hardcode_into_libs=yes
9803  if test "$with_gnu_ld" = yes; then
9804    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9805  else
9806    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9807    case $host_os in
9808      sco3.2v5*)
9809        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9810	;;
9811    esac
9812  fi
9813  sys_lib_dlsearch_path_spec='/usr/lib'
9814  ;;
9815
9816tpf*)
9817  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9818  version_type=linux
9819  need_lib_prefix=no
9820  need_version=no
9821  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822  shlibpath_var=LD_LIBRARY_PATH
9823  shlibpath_overrides_runpath=no
9824  hardcode_into_libs=yes
9825  ;;
9826
9827uts4*)
9828  version_type=linux
9829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830  soname_spec='${libname}${release}${shared_ext}$major'
9831  shlibpath_var=LD_LIBRARY_PATH
9832  ;;
9833
9834*)
9835  dynamic_linker=no
9836  ;;
9837esac
9838{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9839echo "${ECHO_T}$dynamic_linker" >&6; }
9840test "$dynamic_linker" = no && can_build_shared=no
9841
9842variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9843if test "$GCC" = yes; then
9844  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9845fi
9846
9847if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9848  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9849fi
9850if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9851  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9852fi
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9941echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9942hardcode_action=
9943if test -n "$hardcode_libdir_flag_spec" ||
9944   test -n "$runpath_var" ||
9945   test "X$hardcode_automatic" = "Xyes" ; then
9946
9947  # We can hardcode non-existent directories.
9948  if test "$hardcode_direct" != no &&
9949     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9950     # have to relink, otherwise we might link with an installed library
9951     # when we should be linking with a yet-to-be-installed one
9952     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9953     test "$hardcode_minus_L" != no; then
9954    # Linking always hardcodes the temporary library directory.
9955    hardcode_action=relink
9956  else
9957    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9958    hardcode_action=immediate
9959  fi
9960else
9961  # We cannot hardcode anything, or else we can only hardcode existing
9962  # directories.
9963  hardcode_action=unsupported
9964fi
9965{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9966echo "${ECHO_T}$hardcode_action" >&6; }
9967
9968if test "$hardcode_action" = relink ||
9969   test "$inherit_rpath" = yes; then
9970  # Fast installation is not supported
9971  enable_fast_install=no
9972elif test "$shlibpath_overrides_runpath" = yes ||
9973     test "$enable_shared" = no; then
9974  # Fast installation is not necessary
9975  enable_fast_install=needless
9976fi
9977
9978
9979
9980
9981
9982
9983  if test "x$enable_dlopen" != xyes; then
9984  enable_dlopen=unknown
9985  enable_dlopen_self=unknown
9986  enable_dlopen_self_static=unknown
9987else
9988  lt_cv_dlopen=no
9989  lt_cv_dlopen_libs=
9990
9991  case $host_os in
9992  beos*)
9993    lt_cv_dlopen="load_add_on"
9994    lt_cv_dlopen_libs=
9995    lt_cv_dlopen_self=yes
9996    ;;
9997
9998  mingw* | pw32*)
9999    lt_cv_dlopen="LoadLibrary"
10000    lt_cv_dlopen_libs=
10001    ;;
10002
10003  cygwin*)
10004    lt_cv_dlopen="dlopen"
10005    lt_cv_dlopen_libs=
10006    ;;
10007
10008  darwin*)
10009  # if libdl is installed we need to link against it
10010    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10011echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10012if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10013  echo $ECHO_N "(cached) $ECHO_C" >&6
10014else
10015  ac_check_lib_save_LIBS=$LIBS
10016LIBS="-ldl  $LIBS"
10017cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h.  */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h.  */
10023
10024/* Override any GCC internal prototype to avoid an error.
10025   Use char because int might match the return type of a GCC
10026   builtin and then its argument prototype would still apply.  */
10027#ifdef __cplusplus
10028extern "C"
10029#endif
10030char dlopen ();
10031int
10032main ()
10033{
10034return dlopen ();
10035  ;
10036  return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext conftest$ac_exeext
10040if { (ac_try="$ac_link"
10041case "(($ac_try" in
10042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043  *) ac_try_echo=$ac_try;;
10044esac
10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046  (eval "$ac_link") 2>conftest.er1
10047  ac_status=$?
10048  grep -v '^ *+' conftest.er1 >conftest.err
10049  rm -f conftest.er1
10050  cat conftest.err >&5
10051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052  (exit $ac_status); } && {
10053	 test -z "$ac_c_werror_flag" ||
10054	 test ! -s conftest.err
10055       } && test -s conftest$ac_exeext &&
10056       $as_test_x conftest$ac_exeext; then
10057  ac_cv_lib_dl_dlopen=yes
10058else
10059  echo "$as_me: failed program was:" >&5
10060sed 's/^/| /' conftest.$ac_ext >&5
10061
10062	ac_cv_lib_dl_dlopen=no
10063fi
10064
10065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10066      conftest$ac_exeext conftest.$ac_ext
10067LIBS=$ac_check_lib_save_LIBS
10068fi
10069{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10070echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10071if test $ac_cv_lib_dl_dlopen = yes; then
10072  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10073else
10074
10075    lt_cv_dlopen="dyld"
10076    lt_cv_dlopen_libs=
10077    lt_cv_dlopen_self=yes
10078
10079fi
10080
10081    ;;
10082
10083  *)
10084    { echo "$as_me:$LINENO: checking for shl_load" >&5
10085echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10086if test "${ac_cv_func_shl_load+set}" = set; then
10087  echo $ECHO_N "(cached) $ECHO_C" >&6
10088else
10089  cat >conftest.$ac_ext <<_ACEOF
10090/* confdefs.h.  */
10091_ACEOF
10092cat confdefs.h >>conftest.$ac_ext
10093cat >>conftest.$ac_ext <<_ACEOF
10094/* end confdefs.h.  */
10095/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10096   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10097#define shl_load innocuous_shl_load
10098
10099/* System header to define __stub macros and hopefully few prototypes,
10100    which can conflict with char shl_load (); below.
10101    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10102    <limits.h> exists even on freestanding compilers.  */
10103
10104#ifdef __STDC__
10105# include <limits.h>
10106#else
10107# include <assert.h>
10108#endif
10109
10110#undef shl_load
10111
10112/* Override any GCC internal prototype to avoid an error.
10113   Use char because int might match the return type of a GCC
10114   builtin and then its argument prototype would still apply.  */
10115#ifdef __cplusplus
10116extern "C"
10117#endif
10118char shl_load ();
10119/* The GNU C library defines this for functions which it implements
10120    to always fail with ENOSYS.  Some functions are actually named
10121    something starting with __ and the normal name is an alias.  */
10122#if defined __stub_shl_load || defined __stub___shl_load
10123choke me
10124#endif
10125
10126int
10127main ()
10128{
10129return shl_load ();
10130  ;
10131  return 0;
10132}
10133_ACEOF
10134rm -f conftest.$ac_objext conftest$ac_exeext
10135if { (ac_try="$ac_link"
10136case "(($ac_try" in
10137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138  *) ac_try_echo=$ac_try;;
10139esac
10140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141  (eval "$ac_link") 2>conftest.er1
10142  ac_status=$?
10143  grep -v '^ *+' conftest.er1 >conftest.err
10144  rm -f conftest.er1
10145  cat conftest.err >&5
10146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147  (exit $ac_status); } && {
10148	 test -z "$ac_c_werror_flag" ||
10149	 test ! -s conftest.err
10150       } && test -s conftest$ac_exeext &&
10151       $as_test_x conftest$ac_exeext; then
10152  ac_cv_func_shl_load=yes
10153else
10154  echo "$as_me: failed program was:" >&5
10155sed 's/^/| /' conftest.$ac_ext >&5
10156
10157	ac_cv_func_shl_load=no
10158fi
10159
10160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10161      conftest$ac_exeext conftest.$ac_ext
10162fi
10163{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10164echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10165if test $ac_cv_func_shl_load = yes; then
10166  lt_cv_dlopen="shl_load"
10167else
10168  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10169echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10170if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10171  echo $ECHO_N "(cached) $ECHO_C" >&6
10172else
10173  ac_check_lib_save_LIBS=$LIBS
10174LIBS="-ldld  $LIBS"
10175cat >conftest.$ac_ext <<_ACEOF
10176/* confdefs.h.  */
10177_ACEOF
10178cat confdefs.h >>conftest.$ac_ext
10179cat >>conftest.$ac_ext <<_ACEOF
10180/* end confdefs.h.  */
10181
10182/* Override any GCC internal prototype to avoid an error.
10183   Use char because int might match the return type of a GCC
10184   builtin and then its argument prototype would still apply.  */
10185#ifdef __cplusplus
10186extern "C"
10187#endif
10188char shl_load ();
10189int
10190main ()
10191{
10192return shl_load ();
10193  ;
10194  return 0;
10195}
10196_ACEOF
10197rm -f conftest.$ac_objext conftest$ac_exeext
10198if { (ac_try="$ac_link"
10199case "(($ac_try" in
10200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201  *) ac_try_echo=$ac_try;;
10202esac
10203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10204  (eval "$ac_link") 2>conftest.er1
10205  ac_status=$?
10206  grep -v '^ *+' conftest.er1 >conftest.err
10207  rm -f conftest.er1
10208  cat conftest.err >&5
10209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210  (exit $ac_status); } && {
10211	 test -z "$ac_c_werror_flag" ||
10212	 test ! -s conftest.err
10213       } && test -s conftest$ac_exeext &&
10214       $as_test_x conftest$ac_exeext; then
10215  ac_cv_lib_dld_shl_load=yes
10216else
10217  echo "$as_me: failed program was:" >&5
10218sed 's/^/| /' conftest.$ac_ext >&5
10219
10220	ac_cv_lib_dld_shl_load=no
10221fi
10222
10223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10224      conftest$ac_exeext conftest.$ac_ext
10225LIBS=$ac_check_lib_save_LIBS
10226fi
10227{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10228echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10229if test $ac_cv_lib_dld_shl_load = yes; then
10230  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10231else
10232  { echo "$as_me:$LINENO: checking for dlopen" >&5
10233echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10234if test "${ac_cv_func_dlopen+set}" = set; then
10235  echo $ECHO_N "(cached) $ECHO_C" >&6
10236else
10237  cat >conftest.$ac_ext <<_ACEOF
10238/* confdefs.h.  */
10239_ACEOF
10240cat confdefs.h >>conftest.$ac_ext
10241cat >>conftest.$ac_ext <<_ACEOF
10242/* end confdefs.h.  */
10243/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10244   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10245#define dlopen innocuous_dlopen
10246
10247/* System header to define __stub macros and hopefully few prototypes,
10248    which can conflict with char dlopen (); below.
10249    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10250    <limits.h> exists even on freestanding compilers.  */
10251
10252#ifdef __STDC__
10253# include <limits.h>
10254#else
10255# include <assert.h>
10256#endif
10257
10258#undef dlopen
10259
10260/* Override any GCC internal prototype to avoid an error.
10261   Use char because int might match the return type of a GCC
10262   builtin and then its argument prototype would still apply.  */
10263#ifdef __cplusplus
10264extern "C"
10265#endif
10266char dlopen ();
10267/* The GNU C library defines this for functions which it implements
10268    to always fail with ENOSYS.  Some functions are actually named
10269    something starting with __ and the normal name is an alias.  */
10270#if defined __stub_dlopen || defined __stub___dlopen
10271choke me
10272#endif
10273
10274int
10275main ()
10276{
10277return dlopen ();
10278  ;
10279  return 0;
10280}
10281_ACEOF
10282rm -f conftest.$ac_objext conftest$ac_exeext
10283if { (ac_try="$ac_link"
10284case "(($ac_try" in
10285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286  *) ac_try_echo=$ac_try;;
10287esac
10288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289  (eval "$ac_link") 2>conftest.er1
10290  ac_status=$?
10291  grep -v '^ *+' conftest.er1 >conftest.err
10292  rm -f conftest.er1
10293  cat conftest.err >&5
10294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295  (exit $ac_status); } && {
10296	 test -z "$ac_c_werror_flag" ||
10297	 test ! -s conftest.err
10298       } && test -s conftest$ac_exeext &&
10299       $as_test_x conftest$ac_exeext; then
10300  ac_cv_func_dlopen=yes
10301else
10302  echo "$as_me: failed program was:" >&5
10303sed 's/^/| /' conftest.$ac_ext >&5
10304
10305	ac_cv_func_dlopen=no
10306fi
10307
10308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10309      conftest$ac_exeext conftest.$ac_ext
10310fi
10311{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10312echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10313if test $ac_cv_func_dlopen = yes; then
10314  lt_cv_dlopen="dlopen"
10315else
10316  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10317echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10318if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10319  echo $ECHO_N "(cached) $ECHO_C" >&6
10320else
10321  ac_check_lib_save_LIBS=$LIBS
10322LIBS="-ldl  $LIBS"
10323cat >conftest.$ac_ext <<_ACEOF
10324/* confdefs.h.  */
10325_ACEOF
10326cat confdefs.h >>conftest.$ac_ext
10327cat >>conftest.$ac_ext <<_ACEOF
10328/* end confdefs.h.  */
10329
10330/* Override any GCC internal prototype to avoid an error.
10331   Use char because int might match the return type of a GCC
10332   builtin and then its argument prototype would still apply.  */
10333#ifdef __cplusplus
10334extern "C"
10335#endif
10336char dlopen ();
10337int
10338main ()
10339{
10340return dlopen ();
10341  ;
10342  return 0;
10343}
10344_ACEOF
10345rm -f conftest.$ac_objext conftest$ac_exeext
10346if { (ac_try="$ac_link"
10347case "(($ac_try" in
10348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349  *) ac_try_echo=$ac_try;;
10350esac
10351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352  (eval "$ac_link") 2>conftest.er1
10353  ac_status=$?
10354  grep -v '^ *+' conftest.er1 >conftest.err
10355  rm -f conftest.er1
10356  cat conftest.err >&5
10357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358  (exit $ac_status); } && {
10359	 test -z "$ac_c_werror_flag" ||
10360	 test ! -s conftest.err
10361       } && test -s conftest$ac_exeext &&
10362       $as_test_x conftest$ac_exeext; then
10363  ac_cv_lib_dl_dlopen=yes
10364else
10365  echo "$as_me: failed program was:" >&5
10366sed 's/^/| /' conftest.$ac_ext >&5
10367
10368	ac_cv_lib_dl_dlopen=no
10369fi
10370
10371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10372      conftest$ac_exeext conftest.$ac_ext
10373LIBS=$ac_check_lib_save_LIBS
10374fi
10375{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10376echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10377if test $ac_cv_lib_dl_dlopen = yes; then
10378  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10379else
10380  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10381echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10382if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10383  echo $ECHO_N "(cached) $ECHO_C" >&6
10384else
10385  ac_check_lib_save_LIBS=$LIBS
10386LIBS="-lsvld  $LIBS"
10387cat >conftest.$ac_ext <<_ACEOF
10388/* confdefs.h.  */
10389_ACEOF
10390cat confdefs.h >>conftest.$ac_ext
10391cat >>conftest.$ac_ext <<_ACEOF
10392/* end confdefs.h.  */
10393
10394/* Override any GCC internal prototype to avoid an error.
10395   Use char because int might match the return type of a GCC
10396   builtin and then its argument prototype would still apply.  */
10397#ifdef __cplusplus
10398extern "C"
10399#endif
10400char dlopen ();
10401int
10402main ()
10403{
10404return dlopen ();
10405  ;
10406  return 0;
10407}
10408_ACEOF
10409rm -f conftest.$ac_objext conftest$ac_exeext
10410if { (ac_try="$ac_link"
10411case "(($ac_try" in
10412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413  *) ac_try_echo=$ac_try;;
10414esac
10415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416  (eval "$ac_link") 2>conftest.er1
10417  ac_status=$?
10418  grep -v '^ *+' conftest.er1 >conftest.err
10419  rm -f conftest.er1
10420  cat conftest.err >&5
10421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422  (exit $ac_status); } && {
10423	 test -z "$ac_c_werror_flag" ||
10424	 test ! -s conftest.err
10425       } && test -s conftest$ac_exeext &&
10426       $as_test_x conftest$ac_exeext; then
10427  ac_cv_lib_svld_dlopen=yes
10428else
10429  echo "$as_me: failed program was:" >&5
10430sed 's/^/| /' conftest.$ac_ext >&5
10431
10432	ac_cv_lib_svld_dlopen=no
10433fi
10434
10435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10436      conftest$ac_exeext conftest.$ac_ext
10437LIBS=$ac_check_lib_save_LIBS
10438fi
10439{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10440echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10441if test $ac_cv_lib_svld_dlopen = yes; then
10442  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10443else
10444  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10445echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10446if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10447  echo $ECHO_N "(cached) $ECHO_C" >&6
10448else
10449  ac_check_lib_save_LIBS=$LIBS
10450LIBS="-ldld  $LIBS"
10451cat >conftest.$ac_ext <<_ACEOF
10452/* confdefs.h.  */
10453_ACEOF
10454cat confdefs.h >>conftest.$ac_ext
10455cat >>conftest.$ac_ext <<_ACEOF
10456/* end confdefs.h.  */
10457
10458/* Override any GCC internal prototype to avoid an error.
10459   Use char because int might match the return type of a GCC
10460   builtin and then its argument prototype would still apply.  */
10461#ifdef __cplusplus
10462extern "C"
10463#endif
10464char dld_link ();
10465int
10466main ()
10467{
10468return dld_link ();
10469  ;
10470  return 0;
10471}
10472_ACEOF
10473rm -f conftest.$ac_objext conftest$ac_exeext
10474if { (ac_try="$ac_link"
10475case "(($ac_try" in
10476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477  *) ac_try_echo=$ac_try;;
10478esac
10479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480  (eval "$ac_link") 2>conftest.er1
10481  ac_status=$?
10482  grep -v '^ *+' conftest.er1 >conftest.err
10483  rm -f conftest.er1
10484  cat conftest.err >&5
10485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486  (exit $ac_status); } && {
10487	 test -z "$ac_c_werror_flag" ||
10488	 test ! -s conftest.err
10489       } && test -s conftest$ac_exeext &&
10490       $as_test_x conftest$ac_exeext; then
10491  ac_cv_lib_dld_dld_link=yes
10492else
10493  echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
10496	ac_cv_lib_dld_dld_link=no
10497fi
10498
10499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500      conftest$ac_exeext conftest.$ac_ext
10501LIBS=$ac_check_lib_save_LIBS
10502fi
10503{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10504echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10505if test $ac_cv_lib_dld_dld_link = yes; then
10506  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10507fi
10508
10509
10510fi
10511
10512
10513fi
10514
10515
10516fi
10517
10518
10519fi
10520
10521
10522fi
10523
10524    ;;
10525  esac
10526
10527  if test "x$lt_cv_dlopen" != xno; then
10528    enable_dlopen=yes
10529  else
10530    enable_dlopen=no
10531  fi
10532
10533  case $lt_cv_dlopen in
10534  dlopen)
10535    save_CPPFLAGS="$CPPFLAGS"
10536    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10537
10538    save_LDFLAGS="$LDFLAGS"
10539    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10540
10541    save_LIBS="$LIBS"
10542    LIBS="$lt_cv_dlopen_libs $LIBS"
10543
10544    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10545echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10546if test "${lt_cv_dlopen_self+set}" = set; then
10547  echo $ECHO_N "(cached) $ECHO_C" >&6
10548else
10549  	  if test "$cross_compiling" = yes; then :
10550  lt_cv_dlopen_self=cross
10551else
10552  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10553  lt_status=$lt_dlunknown
10554  cat > conftest.$ac_ext <<_LT_EOF
10555#line 10555 "configure"
10556#include "confdefs.h"
10557
10558#if HAVE_DLFCN_H
10559#include <dlfcn.h>
10560#endif
10561
10562#include <stdio.h>
10563
10564#ifdef RTLD_GLOBAL
10565#  define LT_DLGLOBAL		RTLD_GLOBAL
10566#else
10567#  ifdef DL_GLOBAL
10568#    define LT_DLGLOBAL		DL_GLOBAL
10569#  else
10570#    define LT_DLGLOBAL		0
10571#  endif
10572#endif
10573
10574/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10575   find out it does not work in some platform. */
10576#ifndef LT_DLLAZY_OR_NOW
10577#  ifdef RTLD_LAZY
10578#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10579#  else
10580#    ifdef DL_LAZY
10581#      define LT_DLLAZY_OR_NOW		DL_LAZY
10582#    else
10583#      ifdef RTLD_NOW
10584#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10585#      else
10586#        ifdef DL_NOW
10587#          define LT_DLLAZY_OR_NOW	DL_NOW
10588#        else
10589#          define LT_DLLAZY_OR_NOW	0
10590#        endif
10591#      endif
10592#    endif
10593#  endif
10594#endif
10595
10596#ifdef __cplusplus
10597extern "C" void exit (int);
10598#endif
10599
10600void fnord() { int i=42;}
10601int main ()
10602{
10603  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10604  int status = $lt_dlunknown;
10605
10606  if (self)
10607    {
10608      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10609      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10610      /* dlclose (self); */
10611    }
10612  else
10613    puts (dlerror ());
10614
10615    exit (status);
10616}
10617_LT_EOF
10618  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10619  (eval $ac_link) 2>&5
10620  ac_status=$?
10621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10623    (./conftest; exit; ) >&5 2>/dev/null
10624    lt_status=$?
10625    case x$lt_status in
10626      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10627      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10628      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10629    esac
10630  else :
10631    # compilation failed
10632    lt_cv_dlopen_self=no
10633  fi
10634fi
10635rm -fr conftest*
10636
10637
10638fi
10639{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10640echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10641
10642    if test "x$lt_cv_dlopen_self" = xyes; then
10643      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10644      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10645echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10646if test "${lt_cv_dlopen_self_static+set}" = set; then
10647  echo $ECHO_N "(cached) $ECHO_C" >&6
10648else
10649  	  if test "$cross_compiling" = yes; then :
10650  lt_cv_dlopen_self_static=cross
10651else
10652  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10653  lt_status=$lt_dlunknown
10654  cat > conftest.$ac_ext <<_LT_EOF
10655#line 10655 "configure"
10656#include "confdefs.h"
10657
10658#if HAVE_DLFCN_H
10659#include <dlfcn.h>
10660#endif
10661
10662#include <stdio.h>
10663
10664#ifdef RTLD_GLOBAL
10665#  define LT_DLGLOBAL		RTLD_GLOBAL
10666#else
10667#  ifdef DL_GLOBAL
10668#    define LT_DLGLOBAL		DL_GLOBAL
10669#  else
10670#    define LT_DLGLOBAL		0
10671#  endif
10672#endif
10673
10674/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10675   find out it does not work in some platform. */
10676#ifndef LT_DLLAZY_OR_NOW
10677#  ifdef RTLD_LAZY
10678#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10679#  else
10680#    ifdef DL_LAZY
10681#      define LT_DLLAZY_OR_NOW		DL_LAZY
10682#    else
10683#      ifdef RTLD_NOW
10684#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10685#      else
10686#        ifdef DL_NOW
10687#          define LT_DLLAZY_OR_NOW	DL_NOW
10688#        else
10689#          define LT_DLLAZY_OR_NOW	0
10690#        endif
10691#      endif
10692#    endif
10693#  endif
10694#endif
10695
10696#ifdef __cplusplus
10697extern "C" void exit (int);
10698#endif
10699
10700void fnord() { int i=42;}
10701int main ()
10702{
10703  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10704  int status = $lt_dlunknown;
10705
10706  if (self)
10707    {
10708      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10709      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10710      /* dlclose (self); */
10711    }
10712  else
10713    puts (dlerror ());
10714
10715    exit (status);
10716}
10717_LT_EOF
10718  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10719  (eval $ac_link) 2>&5
10720  ac_status=$?
10721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10723    (./conftest; exit; ) >&5 2>/dev/null
10724    lt_status=$?
10725    case x$lt_status in
10726      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10727      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10728      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10729    esac
10730  else :
10731    # compilation failed
10732    lt_cv_dlopen_self_static=no
10733  fi
10734fi
10735rm -fr conftest*
10736
10737
10738fi
10739{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10740echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10741    fi
10742
10743    CPPFLAGS="$save_CPPFLAGS"
10744    LDFLAGS="$save_LDFLAGS"
10745    LIBS="$save_LIBS"
10746    ;;
10747  esac
10748
10749  case $lt_cv_dlopen_self in
10750  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10751  *) enable_dlopen_self=unknown ;;
10752  esac
10753
10754  case $lt_cv_dlopen_self_static in
10755  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10756  *) enable_dlopen_self_static=unknown ;;
10757  esac
10758fi
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776striplib=
10777old_striplib=
10778{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10779echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10780if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10781  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10782  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10783  { echo "$as_me:$LINENO: result: yes" >&5
10784echo "${ECHO_T}yes" >&6; }
10785else
10786# FIXME - insert some real tests, host_os isn't really good enough
10787  case $host_os in
10788  darwin*)
10789    if test -n "$STRIP" ; then
10790      striplib="$STRIP -x"
10791      old_striplib="$STRIP -S"
10792      { echo "$as_me:$LINENO: result: yes" >&5
10793echo "${ECHO_T}yes" >&6; }
10794    else
10795      { echo "$as_me:$LINENO: result: no" >&5
10796echo "${ECHO_T}no" >&6; }
10797    fi
10798    ;;
10799  *)
10800    { echo "$as_me:$LINENO: result: no" >&5
10801echo "${ECHO_T}no" >&6; }
10802    ;;
10803  esac
10804fi
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817  # Report which library types will actually be built
10818  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10819echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10820  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10821echo "${ECHO_T}$can_build_shared" >&6; }
10822
10823  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10824echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10825  test "$can_build_shared" = "no" && enable_shared=no
10826
10827  # On AIX, shared libraries and static libraries use the same namespace, and
10828  # are all built from PIC.
10829  case $host_os in
10830  aix3*)
10831    test "$enable_shared" = yes && enable_static=no
10832    if test -n "$RANLIB"; then
10833      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10834      postinstall_cmds='$RANLIB $lib'
10835    fi
10836    ;;
10837
10838  aix[4-9]*)
10839    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10840      test "$enable_shared" = yes && enable_static=no
10841    fi
10842    ;;
10843  esac
10844  { echo "$as_me:$LINENO: result: $enable_shared" >&5
10845echo "${ECHO_T}$enable_shared" >&6; }
10846
10847  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10848echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10849  # Make sure either enable_shared or enable_static is yes.
10850  test "$enable_shared" = yes || enable_static=yes
10851  { echo "$as_me:$LINENO: result: $enable_static" >&5
10852echo "${ECHO_T}$enable_static" >&6; }
10853
10854
10855
10856
10857fi
10858ac_ext=c
10859ac_cpp='$CPP $CPPFLAGS'
10860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10862ac_compiler_gnu=$ac_cv_c_compiler_gnu
10863
10864CC="$lt_save_CC"
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878        ac_config_commands="$ac_config_commands libtool"
10879
10880
10881
10882
10883# Only expand once:
10884
10885
10886
10887
10888# Sets a conditional makefile variable so that certain Makefile tasks will be
10889# performed only on linux (currently, add -luuid to LD_FLAGS)
10890 if case $host_os in linux*) true;; *) false;; esac; then
10891  LINUX_TRUE=
10892  LINUX_FALSE='#'
10893else
10894  LINUX_TRUE='#'
10895  LINUX_FALSE=
10896fi
10897
10898
10899# Checks for header files.
10900{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10901echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10902if test "${ac_cv_header_stdc+set}" = set; then
10903  echo $ECHO_N "(cached) $ECHO_C" >&6
10904else
10905  cat >conftest.$ac_ext <<_ACEOF
10906/* confdefs.h.  */
10907_ACEOF
10908cat confdefs.h >>conftest.$ac_ext
10909cat >>conftest.$ac_ext <<_ACEOF
10910/* end confdefs.h.  */
10911#include <stdlib.h>
10912#include <stdarg.h>
10913#include <string.h>
10914#include <float.h>
10915
10916int
10917main ()
10918{
10919
10920  ;
10921  return 0;
10922}
10923_ACEOF
10924rm -f conftest.$ac_objext
10925if { (ac_try="$ac_compile"
10926case "(($ac_try" in
10927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928  *) ac_try_echo=$ac_try;;
10929esac
10930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931  (eval "$ac_compile") 2>conftest.er1
10932  ac_status=$?
10933  grep -v '^ *+' conftest.er1 >conftest.err
10934  rm -f conftest.er1
10935  cat conftest.err >&5
10936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937  (exit $ac_status); } && {
10938	 test -z "$ac_c_werror_flag" ||
10939	 test ! -s conftest.err
10940       } && test -s conftest.$ac_objext; then
10941  ac_cv_header_stdc=yes
10942else
10943  echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946	ac_cv_header_stdc=no
10947fi
10948
10949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950
10951if test $ac_cv_header_stdc = yes; then
10952  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10953  cat >conftest.$ac_ext <<_ACEOF
10954/* confdefs.h.  */
10955_ACEOF
10956cat confdefs.h >>conftest.$ac_ext
10957cat >>conftest.$ac_ext <<_ACEOF
10958/* end confdefs.h.  */
10959#include <string.h>
10960
10961_ACEOF
10962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10963  $EGREP "memchr" >/dev/null 2>&1; then
10964  :
10965else
10966  ac_cv_header_stdc=no
10967fi
10968rm -f -r conftest*
10969
10970fi
10971
10972if test $ac_cv_header_stdc = yes; then
10973  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10974  cat >conftest.$ac_ext <<_ACEOF
10975/* confdefs.h.  */
10976_ACEOF
10977cat confdefs.h >>conftest.$ac_ext
10978cat >>conftest.$ac_ext <<_ACEOF
10979/* end confdefs.h.  */
10980#include <stdlib.h>
10981
10982_ACEOF
10983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10984  $EGREP "free" >/dev/null 2>&1; then
10985  :
10986else
10987  ac_cv_header_stdc=no
10988fi
10989rm -f -r conftest*
10990
10991fi
10992
10993if test $ac_cv_header_stdc = yes; then
10994  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10995  if test "$cross_compiling" = yes; then
10996  :
10997else
10998  cat >conftest.$ac_ext <<_ACEOF
10999/* confdefs.h.  */
11000_ACEOF
11001cat confdefs.h >>conftest.$ac_ext
11002cat >>conftest.$ac_ext <<_ACEOF
11003/* end confdefs.h.  */
11004#include <ctype.h>
11005#include <stdlib.h>
11006#if ((' ' & 0x0FF) == 0x020)
11007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11009#else
11010# define ISLOWER(c) \
11011		   (('a' <= (c) && (c) <= 'i') \
11012		     || ('j' <= (c) && (c) <= 'r') \
11013		     || ('s' <= (c) && (c) <= 'z'))
11014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11015#endif
11016
11017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11018int
11019main ()
11020{
11021  int i;
11022  for (i = 0; i < 256; i++)
11023    if (XOR (islower (i), ISLOWER (i))
11024	|| toupper (i) != TOUPPER (i))
11025      return 2;
11026  return 0;
11027}
11028_ACEOF
11029rm -f conftest$ac_exeext
11030if { (ac_try="$ac_link"
11031case "(($ac_try" in
11032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033  *) ac_try_echo=$ac_try;;
11034esac
11035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036  (eval "$ac_link") 2>&5
11037  ac_status=$?
11038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11040  { (case "(($ac_try" in
11041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042  *) ac_try_echo=$ac_try;;
11043esac
11044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045  (eval "$ac_try") 2>&5
11046  ac_status=$?
11047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048  (exit $ac_status); }; }; then
11049  :
11050else
11051  echo "$as_me: program exited with status $ac_status" >&5
11052echo "$as_me: failed program was:" >&5
11053sed 's/^/| /' conftest.$ac_ext >&5
11054
11055( exit $ac_status )
11056ac_cv_header_stdc=no
11057fi
11058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11059fi
11060
11061
11062fi
11063fi
11064{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11065echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11066if test $ac_cv_header_stdc = yes; then
11067
11068cat >>confdefs.h <<\_ACEOF
11069#define STDC_HEADERS 1
11070_ACEOF
11071
11072fi
11073
11074
11075# Check for systems which need -lsocket and -lnsl
11076#AX_LIB_SOCKET_NSL
11077
11078# Solaris puts nanosleep in -lrt
11079{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
11080echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
11081if test "${ac_cv_search_nanosleep+set}" = set; then
11082  echo $ECHO_N "(cached) $ECHO_C" >&6
11083else
11084  ac_func_search_save_LIBS=$LIBS
11085cat >conftest.$ac_ext <<_ACEOF
11086/* confdefs.h.  */
11087_ACEOF
11088cat confdefs.h >>conftest.$ac_ext
11089cat >>conftest.$ac_ext <<_ACEOF
11090/* end confdefs.h.  */
11091
11092/* Override any GCC internal prototype to avoid an error.
11093   Use char because int might match the return type of a GCC
11094   builtin and then its argument prototype would still apply.  */
11095#ifdef __cplusplus
11096extern "C"
11097#endif
11098char nanosleep ();
11099int
11100main ()
11101{
11102return nanosleep ();
11103  ;
11104  return 0;
11105}
11106_ACEOF
11107for ac_lib in '' rt; do
11108  if test -z "$ac_lib"; then
11109    ac_res="none required"
11110  else
11111    ac_res=-l$ac_lib
11112    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11113  fi
11114  rm -f conftest.$ac_objext conftest$ac_exeext
11115if { (ac_try="$ac_link"
11116case "(($ac_try" in
11117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118  *) ac_try_echo=$ac_try;;
11119esac
11120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121  (eval "$ac_link") 2>conftest.er1
11122  ac_status=$?
11123  grep -v '^ *+' conftest.er1 >conftest.err
11124  rm -f conftest.er1
11125  cat conftest.err >&5
11126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127  (exit $ac_status); } && {
11128	 test -z "$ac_c_werror_flag" ||
11129	 test ! -s conftest.err
11130       } && test -s conftest$ac_exeext &&
11131       $as_test_x conftest$ac_exeext; then
11132  ac_cv_search_nanosleep=$ac_res
11133else
11134  echo "$as_me: failed program was:" >&5
11135sed 's/^/| /' conftest.$ac_ext >&5
11136
11137
11138fi
11139
11140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11141      conftest$ac_exeext
11142  if test "${ac_cv_search_nanosleep+set}" = set; then
11143  break
11144fi
11145done
11146if test "${ac_cv_search_nanosleep+set}" = set; then
11147  :
11148else
11149  ac_cv_search_nanosleep=no
11150fi
11151rm conftest.$ac_ext
11152LIBS=$ac_func_search_save_LIBS
11153fi
11154{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
11155echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
11156ac_res=$ac_cv_search_nanosleep
11157if test "$ac_res" != no; then
11158  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11159
11160else
11161
11162echo "nanosleep() required for timing operations."
11163exit 1
11164
11165fi
11166
11167
11168# Solaris puts hstrerror in -lresolv
11169{ echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
11170echo $ECHO_N "checking for library containing hstrerror... $ECHO_C" >&6; }
11171if test "${ac_cv_search_hstrerror+set}" = set; then
11172  echo $ECHO_N "(cached) $ECHO_C" >&6
11173else
11174  ac_func_search_save_LIBS=$LIBS
11175cat >conftest.$ac_ext <<_ACEOF
11176/* confdefs.h.  */
11177_ACEOF
11178cat confdefs.h >>conftest.$ac_ext
11179cat >>conftest.$ac_ext <<_ACEOF
11180/* end confdefs.h.  */
11181
11182/* Override any GCC internal prototype to avoid an error.
11183   Use char because int might match the return type of a GCC
11184   builtin and then its argument prototype would still apply.  */
11185#ifdef __cplusplus
11186extern "C"
11187#endif
11188char hstrerror ();
11189int
11190main ()
11191{
11192return hstrerror ();
11193  ;
11194  return 0;
11195}
11196_ACEOF
11197for ac_lib in '' resolv; do
11198  if test -z "$ac_lib"; then
11199    ac_res="none required"
11200  else
11201    ac_res=-l$ac_lib
11202    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11203  fi
11204  rm -f conftest.$ac_objext conftest$ac_exeext
11205if { (ac_try="$ac_link"
11206case "(($ac_try" in
11207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208  *) ac_try_echo=$ac_try;;
11209esac
11210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211  (eval "$ac_link") 2>conftest.er1
11212  ac_status=$?
11213  grep -v '^ *+' conftest.er1 >conftest.err
11214  rm -f conftest.er1
11215  cat conftest.err >&5
11216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217  (exit $ac_status); } && {
11218	 test -z "$ac_c_werror_flag" ||
11219	 test ! -s conftest.err
11220       } && test -s conftest$ac_exeext &&
11221       $as_test_x conftest$ac_exeext; then
11222  ac_cv_search_hstrerror=$ac_res
11223else
11224  echo "$as_me: failed program was:" >&5
11225sed 's/^/| /' conftest.$ac_ext >&5
11226
11227
11228fi
11229
11230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11231      conftest$ac_exeext
11232  if test "${ac_cv_search_hstrerror+set}" = set; then
11233  break
11234fi
11235done
11236if test "${ac_cv_search_hstrerror+set}" = set; then
11237  :
11238else
11239  ac_cv_search_hstrerror=no
11240fi
11241rm conftest.$ac_ext
11242LIBS=$ac_func_search_save_LIBS
11243fi
11244{ echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5
11245echo "${ECHO_T}$ac_cv_search_hstrerror" >&6; }
11246ac_res=$ac_cv_search_hstrerror
11247if test "$ac_res" != no; then
11248  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11249
11250else
11251
11252echo "nanosleep() required for timing operations."
11253exit 1
11254
11255fi
11256
11257
11258# Checks for typedefs, structures, and compiler characteristics.
11259{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11260echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11261if test "${ac_cv_c_const+set}" = set; then
11262  echo $ECHO_N "(cached) $ECHO_C" >&6
11263else
11264  cat >conftest.$ac_ext <<_ACEOF
11265/* confdefs.h.  */
11266_ACEOF
11267cat confdefs.h >>conftest.$ac_ext
11268cat >>conftest.$ac_ext <<_ACEOF
11269/* end confdefs.h.  */
11270
11271int
11272main ()
11273{
11274/* FIXME: Include the comments suggested by Paul. */
11275#ifndef __cplusplus
11276  /* Ultrix mips cc rejects this.  */
11277  typedef int charset[2];
11278  const charset cs;
11279  /* SunOS 4.1.1 cc rejects this.  */
11280  char const *const *pcpcc;
11281  char **ppc;
11282  /* NEC SVR4.0.2 mips cc rejects this.  */
11283  struct point {int x, y;};
11284  static struct point const zero = {0,0};
11285  /* AIX XL C 1.02.0.0 rejects this.
11286     It does not let you subtract one const X* pointer from another in
11287     an arm of an if-expression whose if-part is not a constant
11288     expression */
11289  const char *g = "string";
11290  pcpcc = &g + (g ? g-g : 0);
11291  /* HPUX 7.0 cc rejects these. */
11292  ++pcpcc;
11293  ppc = (char**) pcpcc;
11294  pcpcc = (char const *const *) ppc;
11295  { /* SCO 3.2v4 cc rejects this.  */
11296    char *t;
11297    char const *s = 0 ? (char *) 0 : (char const *) 0;
11298
11299    *t++ = 0;
11300    if (s) return 0;
11301  }
11302  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11303    int x[] = {25, 17};
11304    const int *foo = &x[0];
11305    ++foo;
11306  }
11307  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11308    typedef const int *iptr;
11309    iptr p = 0;
11310    ++p;
11311  }
11312  { /* AIX XL C 1.02.0.0 rejects this saying
11313       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11314    struct s { int j; const int *ap[3]; };
11315    struct s *b; b->j = 5;
11316  }
11317  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11318    const int foo = 10;
11319    if (!foo) return 0;
11320  }
11321  return !cs[0] && !zero.x;
11322#endif
11323
11324  ;
11325  return 0;
11326}
11327_ACEOF
11328rm -f conftest.$ac_objext
11329if { (ac_try="$ac_compile"
11330case "(($ac_try" in
11331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332  *) ac_try_echo=$ac_try;;
11333esac
11334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335  (eval "$ac_compile") 2>conftest.er1
11336  ac_status=$?
11337  grep -v '^ *+' conftest.er1 >conftest.err
11338  rm -f conftest.er1
11339  cat conftest.err >&5
11340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341  (exit $ac_status); } && {
11342	 test -z "$ac_c_werror_flag" ||
11343	 test ! -s conftest.err
11344       } && test -s conftest.$ac_objext; then
11345  ac_cv_c_const=yes
11346else
11347  echo "$as_me: failed program was:" >&5
11348sed 's/^/| /' conftest.$ac_ext >&5
11349
11350	ac_cv_c_const=no
11351fi
11352
11353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354fi
11355{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11356echo "${ECHO_T}$ac_cv_c_const" >&6; }
11357if test $ac_cv_c_const = no; then
11358
11359cat >>confdefs.h <<\_ACEOF
11360#define const
11361_ACEOF
11362
11363fi
11364
11365
11366ac_config_files="$ac_config_files Makefile src/Makefile"
11367
11368cat >confcache <<\_ACEOF
11369# This file is a shell script that caches the results of configure
11370# tests run on this system so they can be shared between configure
11371# scripts and configure runs, see configure's option --config-cache.
11372# It is not useful on other systems.  If it contains results you don't
11373# want to keep, you may remove or edit it.
11374#
11375# config.status only pays attention to the cache file if you give it
11376# the --recheck option to rerun configure.
11377#
11378# `ac_cv_env_foo' variables (set or unset) will be overridden when
11379# loading this file, other *unset* `ac_cv_foo' will be assigned the
11380# following values.
11381
11382_ACEOF
11383
11384# The following way of writing the cache mishandles newlines in values,
11385# but we know of no workaround that is simple, portable, and efficient.
11386# So, we kill variables containing newlines.
11387# Ultrix sh set writes to stderr and can't be redirected directly,
11388# and sets the high bit in the cache file unless we assign to the vars.
11389(
11390  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11391    eval ac_val=\$$ac_var
11392    case $ac_val in #(
11393    *${as_nl}*)
11394      case $ac_var in #(
11395      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11396echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11397      esac
11398      case $ac_var in #(
11399      _ | IFS | as_nl) ;; #(
11400      *) $as_unset $ac_var ;;
11401      esac ;;
11402    esac
11403  done
11404
11405  (set) 2>&1 |
11406    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11407    *${as_nl}ac_space=\ *)
11408      # `set' does not quote correctly, so add quotes (double-quote
11409      # substitution turns \\\\ into \\, and sed turns \\ into \).
11410      sed -n \
11411	"s/'/'\\\\''/g;
11412	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11413      ;; #(
11414    *)
11415      # `set' quotes correctly as required by POSIX, so do not add quotes.
11416      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11417      ;;
11418    esac |
11419    sort
11420) |
11421  sed '
11422     /^ac_cv_env_/b end
11423     t clear
11424     :clear
11425     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11426     t end
11427     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11428     :end' >>confcache
11429if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11430  if test -w "$cache_file"; then
11431    test "x$cache_file" != "x/dev/null" &&
11432      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11433echo "$as_me: updating cache $cache_file" >&6;}
11434    cat confcache >$cache_file
11435  else
11436    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11437echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11438  fi
11439fi
11440rm -f confcache
11441
11442test "x$prefix" = xNONE && prefix=$ac_default_prefix
11443# Let make expand exec_prefix.
11444test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11445
11446DEFS=-DHAVE_CONFIG_H
11447
11448ac_libobjs=
11449ac_ltlibobjs=
11450for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11451  # 1. Remove the extension, and $U if already installed.
11452  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11453  ac_i=`echo "$ac_i" | sed "$ac_script"`
11454  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11455  #    will be set to the directory where LIBOBJS objects are built.
11456  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11457  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11458done
11459LIBOBJS=$ac_libobjs
11460
11461LTLIBOBJS=$ac_ltlibobjs
11462
11463
11464if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11465  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11466Usually this means the macro was only invoked conditionally." >&5
11467echo "$as_me: error: conditional \"AMDEP\" was never defined.
11468Usually this means the macro was only invoked conditionally." >&2;}
11469   { (exit 1); exit 1; }; }
11470fi
11471if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11472  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11473Usually this means the macro was only invoked conditionally." >&5
11474echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11475Usually this means the macro was only invoked conditionally." >&2;}
11476   { (exit 1); exit 1; }; }
11477fi
11478if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
11479  { { echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
11480Usually this means the macro was only invoked conditionally." >&5
11481echo "$as_me: error: conditional \"LINUX\" was never defined.
11482Usually this means the macro was only invoked conditionally." >&2;}
11483   { (exit 1); exit 1; }; }
11484fi
11485
11486: ${CONFIG_STATUS=./config.status}
11487ac_clean_files_save=$ac_clean_files
11488ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11489{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11490echo "$as_me: creating $CONFIG_STATUS" >&6;}
11491cat >$CONFIG_STATUS <<_ACEOF
11492#! $SHELL
11493# Generated by $as_me.
11494# Run this file to recreate the current configuration.
11495# Compiler output produced by configure, useful for debugging
11496# configure, is in config.log if it exists.
11497
11498debug=false
11499ac_cs_recheck=false
11500ac_cs_silent=false
11501SHELL=\${CONFIG_SHELL-$SHELL}
11502_ACEOF
11503
11504cat >>$CONFIG_STATUS <<\_ACEOF
11505## --------------------- ##
11506## M4sh Initialization.  ##
11507## --------------------- ##
11508
11509# Be more Bourne compatible
11510DUALCASE=1; export DUALCASE # for MKS sh
11511if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11512  emulate sh
11513  NULLCMD=:
11514  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11515  # is contrary to our usage.  Disable this feature.
11516  alias -g '${1+"$@"}'='"$@"'
11517  setopt NO_GLOB_SUBST
11518else
11519  case `(set -o) 2>/dev/null` in
11520  *posix*) set -o posix ;;
11521esac
11522
11523fi
11524
11525
11526
11527
11528# PATH needs CR
11529# Avoid depending upon Character Ranges.
11530as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11531as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11532as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11533as_cr_digits='0123456789'
11534as_cr_alnum=$as_cr_Letters$as_cr_digits
11535
11536# The user is always right.
11537if test "${PATH_SEPARATOR+set}" != set; then
11538  echo "#! /bin/sh" >conf$$.sh
11539  echo  "exit 0"   >>conf$$.sh
11540  chmod +x conf$$.sh
11541  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11542    PATH_SEPARATOR=';'
11543  else
11544    PATH_SEPARATOR=:
11545  fi
11546  rm -f conf$$.sh
11547fi
11548
11549# Support unset when possible.
11550if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11551  as_unset=unset
11552else
11553  as_unset=false
11554fi
11555
11556
11557# IFS
11558# We need space, tab and new line, in precisely that order.  Quoting is
11559# there to prevent editors from complaining about space-tab.
11560# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11561# splitting by setting IFS to empty value.)
11562as_nl='
11563'
11564IFS=" ""	$as_nl"
11565
11566# Find who we are.  Look in the path if we contain no directory separator.
11567case $0 in
11568  *[\\/]* ) as_myself=$0 ;;
11569  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570for as_dir in $PATH
11571do
11572  IFS=$as_save_IFS
11573  test -z "$as_dir" && as_dir=.
11574  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11575done
11576IFS=$as_save_IFS
11577
11578     ;;
11579esac
11580# We did not find ourselves, most probably we were run as `sh COMMAND'
11581# in which case we are not to be found in the path.
11582if test "x$as_myself" = x; then
11583  as_myself=$0
11584fi
11585if test ! -f "$as_myself"; then
11586  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11587  { (exit 1); exit 1; }
11588fi
11589
11590# Work around bugs in pre-3.0 UWIN ksh.
11591for as_var in ENV MAIL MAILPATH
11592do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11593done
11594PS1='$ '
11595PS2='> '
11596PS4='+ '
11597
11598# NLS nuisances.
11599for as_var in \
11600  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11601  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11602  LC_TELEPHONE LC_TIME
11603do
11604  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11605    eval $as_var=C; export $as_var
11606  else
11607    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11608  fi
11609done
11610
11611# Required to use basename.
11612if expr a : '\(a\)' >/dev/null 2>&1 &&
11613   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11614  as_expr=expr
11615else
11616  as_expr=false
11617fi
11618
11619if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11620  as_basename=basename
11621else
11622  as_basename=false
11623fi
11624
11625
11626# Name of the executable.
11627as_me=`$as_basename -- "$0" ||
11628$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11629	 X"$0" : 'X\(//\)$' \| \
11630	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11631echo X/"$0" |
11632    sed '/^.*\/\([^/][^/]*\)\/*$/{
11633	    s//\1/
11634	    q
11635	  }
11636	  /^X\/\(\/\/\)$/{
11637	    s//\1/
11638	    q
11639	  }
11640	  /^X\/\(\/\).*/{
11641	    s//\1/
11642	    q
11643	  }
11644	  s/.*/./; q'`
11645
11646# CDPATH.
11647$as_unset CDPATH
11648
11649
11650
11651  as_lineno_1=$LINENO
11652  as_lineno_2=$LINENO
11653  test "x$as_lineno_1" != "x$as_lineno_2" &&
11654  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11655
11656  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11657  # uniformly replaced by the line number.  The first 'sed' inserts a
11658  # line-number line after each line using $LINENO; the second 'sed'
11659  # does the real work.  The second script uses 'N' to pair each
11660  # line-number line with the line containing $LINENO, and appends
11661  # trailing '-' during substitution so that $LINENO is not a special
11662  # case at line end.
11663  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11664  # scripts with optimization help from Paolo Bonzini.  Blame Lee
11665  # E. McMahon (1931-1989) for sed's syntax.  :-)
11666  sed -n '
11667    p
11668    /[$]LINENO/=
11669  ' <$as_myself |
11670    sed '
11671      s/[$]LINENO.*/&-/
11672      t lineno
11673      b
11674      :lineno
11675      N
11676      :loop
11677      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11678      t loop
11679      s/-\n.*//
11680    ' >$as_me.lineno &&
11681  chmod +x "$as_me.lineno" ||
11682    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11683   { (exit 1); exit 1; }; }
11684
11685  # Don't try to exec as it changes $[0], causing all sort of problems
11686  # (the dirname of $[0] is not the place where we might find the
11687  # original and so on.  Autoconf is especially sensitive to this).
11688  . "./$as_me.lineno"
11689  # Exit status is that of the last command.
11690  exit
11691}
11692
11693
11694if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11695  as_dirname=dirname
11696else
11697  as_dirname=false
11698fi
11699
11700ECHO_C= ECHO_N= ECHO_T=
11701case `echo -n x` in
11702-n*)
11703  case `echo 'x\c'` in
11704  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11705  *)   ECHO_C='\c';;
11706  esac;;
11707*)
11708  ECHO_N='-n';;
11709esac
11710
11711if expr a : '\(a\)' >/dev/null 2>&1 &&
11712   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11713  as_expr=expr
11714else
11715  as_expr=false
11716fi
11717
11718rm -f conf$$ conf$$.exe conf$$.file
11719if test -d conf$$.dir; then
11720  rm -f conf$$.dir/conf$$.file
11721else
11722  rm -f conf$$.dir
11723  mkdir conf$$.dir
11724fi
11725echo >conf$$.file
11726if ln -s conf$$.file conf$$ 2>/dev/null; then
11727  as_ln_s='ln -s'
11728  # ... but there are two gotchas:
11729  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11730  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11731  # In both cases, we have to default to `cp -p'.
11732  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11733    as_ln_s='cp -p'
11734elif ln conf$$.file conf$$ 2>/dev/null; then
11735  as_ln_s=ln
11736else
11737  as_ln_s='cp -p'
11738fi
11739rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11740rmdir conf$$.dir 2>/dev/null
11741
11742if mkdir -p . 2>/dev/null; then
11743  as_mkdir_p=:
11744else
11745  test -d ./-p && rmdir ./-p
11746  as_mkdir_p=false
11747fi
11748
11749if test -x / >/dev/null 2>&1; then
11750  as_test_x='test -x'
11751else
11752  if ls -dL / >/dev/null 2>&1; then
11753    as_ls_L_option=L
11754  else
11755    as_ls_L_option=
11756  fi
11757  as_test_x='
11758    eval sh -c '\''
11759      if test -d "$1"; then
11760        test -d "$1/.";
11761      else
11762	case $1 in
11763        -*)set "./$1";;
11764	esac;
11765	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11766	???[sx]*):;;*)false;;esac;fi
11767    '\'' sh
11768  '
11769fi
11770as_executable_p=$as_test_x
11771
11772# Sed expression to map a string onto a valid CPP name.
11773as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11774
11775# Sed expression to map a string onto a valid variable name.
11776as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11777
11778
11779exec 6>&1
11780
11781# Save the log message, to keep $[0] and so on meaningful, and to
11782# report actual input values of CONFIG_FILES etc. instead of their
11783# values after options handling.
11784ac_log="
11785This file was extended by iperf $as_me 3.0a5, which was
11786generated by GNU Autoconf 2.61.  Invocation command line was
11787
11788  CONFIG_FILES    = $CONFIG_FILES
11789  CONFIG_HEADERS  = $CONFIG_HEADERS
11790  CONFIG_LINKS    = $CONFIG_LINKS
11791  CONFIG_COMMANDS = $CONFIG_COMMANDS
11792  $ $0 $@
11793
11794on `(hostname || uname -n) 2>/dev/null | sed 1q`
11795"
11796
11797_ACEOF
11798
11799cat >>$CONFIG_STATUS <<_ACEOF
11800# Files that config.status was made for.
11801config_files="$ac_config_files"
11802config_headers="$ac_config_headers"
11803config_commands="$ac_config_commands"
11804
11805_ACEOF
11806
11807cat >>$CONFIG_STATUS <<\_ACEOF
11808ac_cs_usage="\
11809\`$as_me' instantiates files from templates according to the
11810current configuration.
11811
11812Usage: $0 [OPTIONS] [FILE]...
11813
11814  -h, --help       print this help, then exit
11815  -V, --version    print version number and configuration settings, then exit
11816  -q, --quiet      do not print progress messages
11817  -d, --debug      don't remove temporary files
11818      --recheck    update $as_me by reconfiguring in the same conditions
11819  --file=FILE[:TEMPLATE]
11820		   instantiate the configuration file FILE
11821  --header=FILE[:TEMPLATE]
11822		   instantiate the configuration header FILE
11823
11824Configuration files:
11825$config_files
11826
11827Configuration headers:
11828$config_headers
11829
11830Configuration commands:
11831$config_commands
11832
11833Report bugs to <[email protected]>."
11834
11835_ACEOF
11836cat >>$CONFIG_STATUS <<_ACEOF
11837ac_cs_version="\\
11838iperf config.status 3.0a5
11839configured by $0, generated by GNU Autoconf 2.61,
11840  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11841
11842Copyright (C) 2006 Free Software Foundation, Inc.
11843This config.status script is free software; the Free Software Foundation
11844gives unlimited permission to copy, distribute and modify it."
11845
11846ac_pwd='$ac_pwd'
11847srcdir='$srcdir'
11848INSTALL='$INSTALL'
11849MKDIR_P='$MKDIR_P'
11850_ACEOF
11851
11852cat >>$CONFIG_STATUS <<\_ACEOF
11853# If no file are specified by the user, then we need to provide default
11854# value.  By we need to know if files were specified by the user.
11855ac_need_defaults=:
11856while test $# != 0
11857do
11858  case $1 in
11859  --*=*)
11860    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11861    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11862    ac_shift=:
11863    ;;
11864  *)
11865    ac_option=$1
11866    ac_optarg=$2
11867    ac_shift=shift
11868    ;;
11869  esac
11870
11871  case $ac_option in
11872  # Handling of the options.
11873  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11874    ac_cs_recheck=: ;;
11875  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11876    echo "$ac_cs_version"; exit ;;
11877  --debug | --debu | --deb | --de | --d | -d )
11878    debug=: ;;
11879  --file | --fil | --fi | --f )
11880    $ac_shift
11881    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11882    ac_need_defaults=false;;
11883  --header | --heade | --head | --hea )
11884    $ac_shift
11885    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11886    ac_need_defaults=false;;
11887  --he | --h)
11888    # Conflict between --help and --header
11889    { echo "$as_me: error: ambiguous option: $1
11890Try \`$0 --help' for more information." >&2
11891   { (exit 1); exit 1; }; };;
11892  --help | --hel | -h )
11893    echo "$ac_cs_usage"; exit ;;
11894  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11895  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11896    ac_cs_silent=: ;;
11897
11898  # This is an error.
11899  -*) { echo "$as_me: error: unrecognized option: $1
11900Try \`$0 --help' for more information." >&2
11901   { (exit 1); exit 1; }; } ;;
11902
11903  *) ac_config_targets="$ac_config_targets $1"
11904     ac_need_defaults=false ;;
11905
11906  esac
11907  shift
11908done
11909
11910ac_configure_extra_args=
11911
11912if $ac_cs_silent; then
11913  exec 6>/dev/null
11914  ac_configure_extra_args="$ac_configure_extra_args --silent"
11915fi
11916
11917_ACEOF
11918cat >>$CONFIG_STATUS <<_ACEOF
11919if \$ac_cs_recheck; then
11920  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11921  CONFIG_SHELL=$SHELL
11922  export CONFIG_SHELL
11923  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11924fi
11925
11926_ACEOF
11927cat >>$CONFIG_STATUS <<\_ACEOF
11928exec 5>>config.log
11929{
11930  echo
11931  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11932## Running $as_me. ##
11933_ASBOX
11934  echo "$ac_log"
11935} >&5
11936
11937_ACEOF
11938cat >>$CONFIG_STATUS <<_ACEOF
11939#
11940# INIT-COMMANDS
11941#
11942AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11943
11944
11945# The HP-UX ksh and POSIX shell print the target directory to stdout
11946# if CDPATH is set.
11947(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11948
11949sed_quote_subst='$sed_quote_subst'
11950double_quote_subst='$double_quote_subst'
11951delay_variable_subst='$delay_variable_subst'
11952macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11953macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11954enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11955enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11956pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11957enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11958host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11959host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11960host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11961build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11962build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11963build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11964SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11965Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11966GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11967EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11968FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11969LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11970NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11971LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11972max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11973ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11974exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11975lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11976lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11977lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11978reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11979reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11980deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11981file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11982AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11983AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11984STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11985RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11986old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11987old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11988old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11989CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11990CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11991compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11992GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11993lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11994lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11995lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11996lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11997objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11998SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11999ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12000MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12001lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12002lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12003lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12004lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12005lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12006need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12007DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12008NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12009LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12010OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12011OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12012libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12013shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12014extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12015archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12016enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12017export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12018whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12019compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12020old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12021old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12022archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12023archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12024module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12025module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12026with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12027allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12028no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12029hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12030hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12031hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12032hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12033hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12034hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12035hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12036hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12037inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12038link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12039fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12040always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12041export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12042exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12043include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12044prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12045file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12046variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12047need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12048need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12049version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12050runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12051shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12052shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12053libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12054library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12055soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12056postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12057postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12058finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12059finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12060hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12061sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12062sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12063hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12064enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12065enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12066enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12067old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12068striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12069
12070LTCC='$LTCC'
12071LTCFLAGS='$LTCFLAGS'
12072compiler='$compiler_DEFAULT'
12073
12074# Quote evaled strings.
12075for var in SED \
12076GREP \
12077EGREP \
12078FGREP \
12079LD \
12080NM \
12081LN_S \
12082lt_SP2NL \
12083lt_NL2SP \
12084reload_flag \
12085deplibs_check_method \
12086file_magic_cmd \
12087AR \
12088AR_FLAGS \
12089STRIP \
12090RANLIB \
12091CC \
12092CFLAGS \
12093compiler \
12094lt_cv_sys_global_symbol_pipe \
12095lt_cv_sys_global_symbol_to_cdecl \
12096lt_cv_sys_global_symbol_to_c_name_address \
12097lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12098SHELL \
12099ECHO \
12100lt_prog_compiler_no_builtin_flag \
12101lt_prog_compiler_wl \
12102lt_prog_compiler_pic \
12103lt_prog_compiler_static \
12104lt_cv_prog_compiler_c_o \
12105need_locks \
12106DSYMUTIL \
12107NMEDIT \
12108LIPO \
12109OTOOL \
12110OTOOL64 \
12111shrext_cmds \
12112export_dynamic_flag_spec \
12113whole_archive_flag_spec \
12114compiler_needs_object \
12115with_gnu_ld \
12116allow_undefined_flag \
12117no_undefined_flag \
12118hardcode_libdir_flag_spec \
12119hardcode_libdir_flag_spec_ld \
12120hardcode_libdir_separator \
12121fix_srcfile_path \
12122exclude_expsyms \
12123include_expsyms \
12124file_list_spec \
12125variables_saved_for_relink \
12126libname_spec \
12127library_names_spec \
12128soname_spec \
12129finish_eval \
12130old_striplib \
12131striplib; do
12132    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12133    *[\\\\\\\`\\"\\\$]*)
12134      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12135      ;;
12136    *)
12137      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12138      ;;
12139    esac
12140done
12141
12142# Double-quote double-evaled strings.
12143for var in reload_cmds \
12144old_postinstall_cmds \
12145old_postuninstall_cmds \
12146old_archive_cmds \
12147extract_expsyms_cmds \
12148old_archive_from_new_cmds \
12149old_archive_from_expsyms_cmds \
12150archive_cmds \
12151archive_expsym_cmds \
12152module_cmds \
12153module_expsym_cmds \
12154export_symbols_cmds \
12155prelink_cmds \
12156postinstall_cmds \
12157postuninstall_cmds \
12158finish_cmds \
12159sys_lib_search_path_spec \
12160sys_lib_dlsearch_path_spec; do
12161    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12162    *[\\\\\\\`\\"\\\$]*)
12163      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12164      ;;
12165    *)
12166      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12167      ;;
12168    esac
12169done
12170
12171# Fix-up fallback echo if it was mangled by the above quoting rules.
12172case \$lt_ECHO in
12173*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12174  ;;
12175esac
12176
12177ac_aux_dir='$ac_aux_dir'
12178xsi_shell='$xsi_shell'
12179lt_shell_append='$lt_shell_append'
12180
12181# See if we are running on zsh, and set the options which allow our
12182# commands through without removal of \ escapes INIT.
12183if test -n "\${ZSH_VERSION+set}" ; then
12184   setopt NO_GLOB_SUBST
12185fi
12186
12187
12188    PACKAGE='$PACKAGE'
12189    VERSION='$VERSION'
12190    TIMESTAMP='$TIMESTAMP'
12191    RM='$RM'
12192    ofile='$ofile'
12193
12194
12195
12196
12197_ACEOF
12198
12199cat >>$CONFIG_STATUS <<\_ACEOF
12200
12201# Handling of arguments.
12202for ac_config_target in $ac_config_targets
12203do
12204  case $ac_config_target in
12205    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
12206    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12207    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12208    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12209    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12210
12211  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12212echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12213   { (exit 1); exit 1; }; };;
12214  esac
12215done
12216
12217
12218# If the user did not use the arguments to specify the items to instantiate,
12219# then the envvar interface is used.  Set only those that are not.
12220# We use the long form for the default assignment because of an extremely
12221# bizarre bug on SunOS 4.1.3.
12222if $ac_need_defaults; then
12223  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12224  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12225  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12226fi
12227
12228# Have a temporary directory for convenience.  Make it in the build tree
12229# simply because there is no reason against having it here, and in addition,
12230# creating and moving files from /tmp can sometimes cause problems.
12231# Hook for its removal unless debugging.
12232# Note that there is a small window in which the directory will not be cleaned:
12233# after its creation but before its name has been assigned to `$tmp'.
12234$debug ||
12235{
12236  tmp=
12237  trap 'exit_status=$?
12238  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12239' 0
12240  trap '{ (exit 1); exit 1; }' 1 2 13 15
12241}
12242# Create a (secure) tmp directory for tmp files.
12243
12244{
12245  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12246  test -n "$tmp" && test -d "$tmp"
12247}  ||
12248{
12249  tmp=./conf$$-$RANDOM
12250  (umask 077 && mkdir "$tmp")
12251} ||
12252{
12253   echo "$me: cannot create a temporary directory in ." >&2
12254   { (exit 1); exit 1; }
12255}
12256
12257#
12258# Set up the sed scripts for CONFIG_FILES section.
12259#
12260
12261# No need to generate the scripts if there are no CONFIG_FILES.
12262# This happens for instance when ./config.status config.h
12263if test -n "$CONFIG_FILES"; then
12264
12265_ACEOF
12266
12267
12268
12269ac_delim='%!_!# '
12270for ac_last_try in false false false false false :; do
12271  cat >conf$$subs.sed <<_ACEOF
12272SHELL!$SHELL$ac_delim
12273PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12274PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12275PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12276PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12277PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12278PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12279exec_prefix!$exec_prefix$ac_delim
12280prefix!$prefix$ac_delim
12281program_transform_name!$program_transform_name$ac_delim
12282bindir!$bindir$ac_delim
12283sbindir!$sbindir$ac_delim
12284libexecdir!$libexecdir$ac_delim
12285datarootdir!$datarootdir$ac_delim
12286datadir!$datadir$ac_delim
12287sysconfdir!$sysconfdir$ac_delim
12288sharedstatedir!$sharedstatedir$ac_delim
12289localstatedir!$localstatedir$ac_delim
12290includedir!$includedir$ac_delim
12291oldincludedir!$oldincludedir$ac_delim
12292docdir!$docdir$ac_delim
12293infodir!$infodir$ac_delim
12294htmldir!$htmldir$ac_delim
12295dvidir!$dvidir$ac_delim
12296pdfdir!$pdfdir$ac_delim
12297psdir!$psdir$ac_delim
12298libdir!$libdir$ac_delim
12299localedir!$localedir$ac_delim
12300mandir!$mandir$ac_delim
12301DEFS!$DEFS$ac_delim
12302ECHO_C!$ECHO_C$ac_delim
12303ECHO_N!$ECHO_N$ac_delim
12304ECHO_T!$ECHO_T$ac_delim
12305LIBS!$LIBS$ac_delim
12306build_alias!$build_alias$ac_delim
12307host_alias!$host_alias$ac_delim
12308target_alias!$target_alias$ac_delim
12309INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12310INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12311INSTALL_DATA!$INSTALL_DATA$ac_delim
12312am__isrc!$am__isrc$ac_delim
12313CYGPATH_W!$CYGPATH_W$ac_delim
12314PACKAGE!$PACKAGE$ac_delim
12315VERSION!$VERSION$ac_delim
12316ACLOCAL!$ACLOCAL$ac_delim
12317AUTOCONF!$AUTOCONF$ac_delim
12318AUTOMAKE!$AUTOMAKE$ac_delim
12319AUTOHEADER!$AUTOHEADER$ac_delim
12320MAKEINFO!$MAKEINFO$ac_delim
12321install_sh!$install_sh$ac_delim
12322STRIP!$STRIP$ac_delim
12323INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12324mkdir_p!$mkdir_p$ac_delim
12325AWK!$AWK$ac_delim
12326SET_MAKE!$SET_MAKE$ac_delim
12327am__leading_dot!$am__leading_dot$ac_delim
12328AMTAR!$AMTAR$ac_delim
12329am__tar!$am__tar$ac_delim
12330am__untar!$am__untar$ac_delim
12331build!$build$ac_delim
12332build_cpu!$build_cpu$ac_delim
12333build_vendor!$build_vendor$ac_delim
12334build_os!$build_os$ac_delim
12335host!$host$ac_delim
12336host_cpu!$host_cpu$ac_delim
12337host_vendor!$host_vendor$ac_delim
12338host_os!$host_os$ac_delim
12339CC!$CC$ac_delim
12340CFLAGS!$CFLAGS$ac_delim
12341LDFLAGS!$LDFLAGS$ac_delim
12342CPPFLAGS!$CPPFLAGS$ac_delim
12343ac_ct_CC!$ac_ct_CC$ac_delim
12344EXEEXT!$EXEEXT$ac_delim
12345OBJEXT!$OBJEXT$ac_delim
12346DEPDIR!$DEPDIR$ac_delim
12347am__include!$am__include$ac_delim
12348am__quote!$am__quote$ac_delim
12349AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12350AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12351AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12352CCDEPMODE!$CCDEPMODE$ac_delim
12353am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12354am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12355RANLIB!$RANLIB$ac_delim
12356LN_S!$LN_S$ac_delim
12357LIBTOOL!$LIBTOOL$ac_delim
12358SED!$SED$ac_delim
12359GREP!$GREP$ac_delim
12360EGREP!$EGREP$ac_delim
12361FGREP!$FGREP$ac_delim
12362LD!$LD$ac_delim
12363DUMPBIN!$DUMPBIN$ac_delim
12364ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
12365NM!$NM$ac_delim
12366AR!$AR$ac_delim
12367lt_ECHO!$lt_ECHO$ac_delim
12368DSYMUTIL!$DSYMUTIL$ac_delim
12369_ACEOF
12370
12371  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12372    break
12373  elif $ac_last_try; then
12374    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12375echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12376   { (exit 1); exit 1; }; }
12377  else
12378    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12379  fi
12380done
12381
12382ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12383if test -n "$ac_eof"; then
12384  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12385  ac_eof=`expr $ac_eof + 1`
12386fi
12387
12388cat >>$CONFIG_STATUS <<_ACEOF
12389cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12390/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12391_ACEOF
12392sed '
12393s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12394s/^/s,@/; s/!/@,|#_!!_#|/
12395:n
12396t n
12397s/'"$ac_delim"'$/,g/; t
12398s/$/\\/; p
12399N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12400' >>$CONFIG_STATUS <conf$$subs.sed
12401rm -f conf$$subs.sed
12402cat >>$CONFIG_STATUS <<_ACEOF
12403CEOF$ac_eof
12404_ACEOF
12405
12406
12407ac_delim='%!_!# '
12408for ac_last_try in false false false false false :; do
12409  cat >conf$$subs.sed <<_ACEOF
12410NMEDIT!$NMEDIT$ac_delim
12411LIPO!$LIPO$ac_delim
12412OTOOL!$OTOOL$ac_delim
12413OTOOL64!$OTOOL64$ac_delim
12414CPP!$CPP$ac_delim
12415LINUX_TRUE!$LINUX_TRUE$ac_delim
12416LINUX_FALSE!$LINUX_FALSE$ac_delim
12417LIBOBJS!$LIBOBJS$ac_delim
12418LTLIBOBJS!$LTLIBOBJS$ac_delim
12419_ACEOF
12420
12421  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
12422    break
12423  elif $ac_last_try; then
12424    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12425echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12426   { (exit 1); exit 1; }; }
12427  else
12428    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12429  fi
12430done
12431
12432ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12433if test -n "$ac_eof"; then
12434  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12435  ac_eof=`expr $ac_eof + 1`
12436fi
12437
12438cat >>$CONFIG_STATUS <<_ACEOF
12439cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12441_ACEOF
12442sed '
12443s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12444s/^/s,@/; s/!/@,|#_!!_#|/
12445:n
12446t n
12447s/'"$ac_delim"'$/,g/; t
12448s/$/\\/; p
12449N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12450' >>$CONFIG_STATUS <conf$$subs.sed
12451rm -f conf$$subs.sed
12452cat >>$CONFIG_STATUS <<_ACEOF
12453:end
12454s/|#_!!_#|//g
12455CEOF$ac_eof
12456_ACEOF
12457
12458
12459# VPATH may cause trouble with some makes, so we remove $(srcdir),
12460# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12461# trailing colons and then remove the whole line if VPATH becomes empty
12462# (actually we leave an empty line to preserve line numbers).
12463if test "x$srcdir" = x.; then
12464  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12465s/:*\$(srcdir):*/:/
12466s/:*\${srcdir}:*/:/
12467s/:*@srcdir@:*/:/
12468s/^\([^=]*=[	 ]*\):*/\1/
12469s/:*$//
12470s/^[^=]*=[	 ]*$//
12471}'
12472fi
12473
12474cat >>$CONFIG_STATUS <<\_ACEOF
12475fi # test -n "$CONFIG_FILES"
12476
12477
12478for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
12479do
12480  case $ac_tag in
12481  :[FHLC]) ac_mode=$ac_tag; continue;;
12482  esac
12483  case $ac_mode$ac_tag in
12484  :[FHL]*:*);;
12485  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12486echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12487   { (exit 1); exit 1; }; };;
12488  :[FH]-) ac_tag=-:-;;
12489  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12490  esac
12491  ac_save_IFS=$IFS
12492  IFS=:
12493  set x $ac_tag
12494  IFS=$ac_save_IFS
12495  shift
12496  ac_file=$1
12497  shift
12498
12499  case $ac_mode in
12500  :L) ac_source=$1;;
12501  :[FH])
12502    ac_file_inputs=
12503    for ac_f
12504    do
12505      case $ac_f in
12506      -) ac_f="$tmp/stdin";;
12507      *) # Look for the file first in the build tree, then in the source tree
12508	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12509	 # because $ac_f cannot contain `:'.
12510	 test -f "$ac_f" ||
12511	   case $ac_f in
12512	   [\\/$]*) false;;
12513	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12514	   esac ||
12515	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12516echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12517   { (exit 1); exit 1; }; };;
12518      esac
12519      ac_file_inputs="$ac_file_inputs $ac_f"
12520    done
12521
12522    # Let's still pretend it is `configure' which instantiates (i.e., don't
12523    # use $as_me), people would be surprised to read:
12524    #    /* config.h.  Generated by config.status.  */
12525    configure_input="Generated from "`IFS=:
12526	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12527    if test x"$ac_file" != x-; then
12528      configure_input="$ac_file.  $configure_input"
12529      { echo "$as_me:$LINENO: creating $ac_file" >&5
12530echo "$as_me: creating $ac_file" >&6;}
12531    fi
12532
12533    case $ac_tag in
12534    *:-:* | *:-) cat >"$tmp/stdin";;
12535    esac
12536    ;;
12537  esac
12538
12539  ac_dir=`$as_dirname -- "$ac_file" ||
12540$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12541	 X"$ac_file" : 'X\(//\)[^/]' \| \
12542	 X"$ac_file" : 'X\(//\)$' \| \
12543	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12544echo X"$ac_file" |
12545    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12546	    s//\1/
12547	    q
12548	  }
12549	  /^X\(\/\/\)[^/].*/{
12550	    s//\1/
12551	    q
12552	  }
12553	  /^X\(\/\/\)$/{
12554	    s//\1/
12555	    q
12556	  }
12557	  /^X\(\/\).*/{
12558	    s//\1/
12559	    q
12560	  }
12561	  s/.*/./; q'`
12562  { as_dir="$ac_dir"
12563  case $as_dir in #(
12564  -*) as_dir=./$as_dir;;
12565  esac
12566  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12567    as_dirs=
12568    while :; do
12569      case $as_dir in #(
12570      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12571      *) as_qdir=$as_dir;;
12572      esac
12573      as_dirs="'$as_qdir' $as_dirs"
12574      as_dir=`$as_dirname -- "$as_dir" ||
12575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12576	 X"$as_dir" : 'X\(//\)[^/]' \| \
12577	 X"$as_dir" : 'X\(//\)$' \| \
12578	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12579echo X"$as_dir" |
12580    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12581	    s//\1/
12582	    q
12583	  }
12584	  /^X\(\/\/\)[^/].*/{
12585	    s//\1/
12586	    q
12587	  }
12588	  /^X\(\/\/\)$/{
12589	    s//\1/
12590	    q
12591	  }
12592	  /^X\(\/\).*/{
12593	    s//\1/
12594	    q
12595	  }
12596	  s/.*/./; q'`
12597      test -d "$as_dir" && break
12598    done
12599    test -z "$as_dirs" || eval "mkdir $as_dirs"
12600  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12601echo "$as_me: error: cannot create directory $as_dir" >&2;}
12602   { (exit 1); exit 1; }; }; }
12603  ac_builddir=.
12604
12605case "$ac_dir" in
12606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12607*)
12608  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12609  # A ".." for each directory in $ac_dir_suffix.
12610  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12611  case $ac_top_builddir_sub in
12612  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12613  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12614  esac ;;
12615esac
12616ac_abs_top_builddir=$ac_pwd
12617ac_abs_builddir=$ac_pwd$ac_dir_suffix
12618# for backward compatibility:
12619ac_top_builddir=$ac_top_build_prefix
12620
12621case $srcdir in
12622  .)  # We are building in place.
12623    ac_srcdir=.
12624    ac_top_srcdir=$ac_top_builddir_sub
12625    ac_abs_top_srcdir=$ac_pwd ;;
12626  [\\/]* | ?:[\\/]* )  # Absolute name.
12627    ac_srcdir=$srcdir$ac_dir_suffix;
12628    ac_top_srcdir=$srcdir
12629    ac_abs_top_srcdir=$srcdir ;;
12630  *) # Relative name.
12631    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12632    ac_top_srcdir=$ac_top_build_prefix$srcdir
12633    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12634esac
12635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12636
12637
12638  case $ac_mode in
12639  :F)
12640  #
12641  # CONFIG_FILE
12642  #
12643
12644  case $INSTALL in
12645  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12646  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12647  esac
12648  ac_MKDIR_P=$MKDIR_P
12649  case $MKDIR_P in
12650  [\\/$]* | ?:[\\/]* ) ;;
12651  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12652  esac
12653_ACEOF
12654
12655cat >>$CONFIG_STATUS <<\_ACEOF
12656# If the template does not know about datarootdir, expand it.
12657# FIXME: This hack should be removed a few years after 2.60.
12658ac_datarootdir_hack=; ac_datarootdir_seen=
12659
12660case `sed -n '/datarootdir/ {
12661  p
12662  q
12663}
12664/@datadir@/p
12665/@docdir@/p
12666/@infodir@/p
12667/@localedir@/p
12668/@mandir@/p
12669' $ac_file_inputs` in
12670*datarootdir*) ac_datarootdir_seen=yes;;
12671*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12672  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12673echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12674_ACEOF
12675cat >>$CONFIG_STATUS <<_ACEOF
12676  ac_datarootdir_hack='
12677  s&@datadir@&$datadir&g
12678  s&@docdir@&$docdir&g
12679  s&@infodir@&$infodir&g
12680  s&@localedir@&$localedir&g
12681  s&@mandir@&$mandir&g
12682    s&\\\${datarootdir}&$datarootdir&g' ;;
12683esac
12684_ACEOF
12685
12686# Neutralize VPATH when `$srcdir' = `.'.
12687# Shell code in configure.ac might set extrasub.
12688# FIXME: do we really want to maintain this feature?
12689cat >>$CONFIG_STATUS <<_ACEOF
12690  sed "$ac_vpsub
12691$extrasub
12692_ACEOF
12693cat >>$CONFIG_STATUS <<\_ACEOF
12694:t
12695/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12696s&@configure_input@&$configure_input&;t t
12697s&@top_builddir@&$ac_top_builddir_sub&;t t
12698s&@srcdir@&$ac_srcdir&;t t
12699s&@abs_srcdir@&$ac_abs_srcdir&;t t
12700s&@top_srcdir@&$ac_top_srcdir&;t t
12701s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12702s&@builddir@&$ac_builddir&;t t
12703s&@abs_builddir@&$ac_abs_builddir&;t t
12704s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12705s&@INSTALL@&$ac_INSTALL&;t t
12706s&@MKDIR_P@&$ac_MKDIR_P&;t t
12707$ac_datarootdir_hack
12708" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12709
12710test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12711  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12712  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12713  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12714which seems to be undefined.  Please make sure it is defined." >&5
12715echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12716which seems to be undefined.  Please make sure it is defined." >&2;}
12717
12718  rm -f "$tmp/stdin"
12719  case $ac_file in
12720  -) cat "$tmp/out"; rm -f "$tmp/out";;
12721  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12722  esac
12723 ;;
12724  :H)
12725  #
12726  # CONFIG_HEADER
12727  #
12728_ACEOF
12729
12730# Transform confdefs.h into a sed script `conftest.defines', that
12731# substitutes the proper values into config.h.in to produce config.h.
12732rm -f conftest.defines conftest.tail
12733# First, append a space to every undef/define line, to ease matching.
12734echo 's/$/ /' >conftest.defines
12735# Then, protect against being on the right side of a sed subst, or in
12736# an unquoted here document, in config.status.  If some macros were
12737# called several times there might be several #defines for the same
12738# symbol, which is useless.  But do not sort them, since the last
12739# AC_DEFINE must be honored.
12740ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12741# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12742# NAME is the cpp macro being defined, VALUE is the value it is being given.
12743# PARAMS is the parameter list in the macro definition--in most cases, it's
12744# just an empty string.
12745ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
12746ac_dB='\\)[	 (].*,\\1define\\2'
12747ac_dC=' '
12748ac_dD=' ,'
12749
12750uniq confdefs.h |
12751  sed -n '
12752	t rset
12753	:rset
12754	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
12755	t ok
12756	d
12757	:ok
12758	s/[\\&,]/\\&/g
12759	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12760	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12761  ' >>conftest.defines
12762
12763# Remove the space that was appended to ease matching.
12764# Then replace #undef with comments.  This is necessary, for
12765# example, in the case of _POSIX_SOURCE, which is predefined and required
12766# on some systems where configure will not decide to define it.
12767# (The regexp can be short, since the line contains either #define or #undef.)
12768echo 's/ $//
12769s,^[	 #]*u.*,/* & */,' >>conftest.defines
12770
12771# Break up conftest.defines:
12772ac_max_sed_lines=50
12773
12774# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12775# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12776# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12777# et cetera.
12778ac_in='$ac_file_inputs'
12779ac_out='"$tmp/out1"'
12780ac_nxt='"$tmp/out2"'
12781
12782while :
12783do
12784  # Write a here document:
12785    cat >>$CONFIG_STATUS <<_ACEOF
12786    # First, check the format of the line:
12787    cat >"\$tmp/defines.sed" <<\\CEOF
12788/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
12789/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
12790b
12791:def
12792_ACEOF
12793  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12794  echo 'CEOF
12795    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12796  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12797  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12798  grep . conftest.tail >/dev/null || break
12799  rm -f conftest.defines
12800  mv conftest.tail conftest.defines
12801done
12802rm -f conftest.defines conftest.tail
12803
12804echo "ac_result=$ac_in" >>$CONFIG_STATUS
12805cat >>$CONFIG_STATUS <<\_ACEOF
12806  if test x"$ac_file" != x-; then
12807    echo "/* $configure_input  */" >"$tmp/config.h"
12808    cat "$ac_result" >>"$tmp/config.h"
12809    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12810      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12811echo "$as_me: $ac_file is unchanged" >&6;}
12812    else
12813      rm -f $ac_file
12814      mv "$tmp/config.h" $ac_file
12815    fi
12816  else
12817    echo "/* $configure_input  */"
12818    cat "$ac_result"
12819  fi
12820  rm -f "$tmp/out12"
12821# Compute $ac_file's index in $config_headers.
12822_am_stamp_count=1
12823for _am_header in $config_headers :; do
12824  case $_am_header in
12825    $ac_file | $ac_file:* )
12826      break ;;
12827    * )
12828      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12829  esac
12830done
12831echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
12832$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12833	 X$ac_file : 'X\(//\)[^/]' \| \
12834	 X$ac_file : 'X\(//\)$' \| \
12835	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
12836echo X$ac_file |
12837    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12838	    s//\1/
12839	    q
12840	  }
12841	  /^X\(\/\/\)[^/].*/{
12842	    s//\1/
12843	    q
12844	  }
12845	  /^X\(\/\/\)$/{
12846	    s//\1/
12847	    q
12848	  }
12849	  /^X\(\/\).*/{
12850	    s//\1/
12851	    q
12852	  }
12853	  s/.*/./; q'`/stamp-h$_am_stamp_count
12854 ;;
12855
12856  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12857echo "$as_me: executing $ac_file commands" >&6;}
12858 ;;
12859  esac
12860
12861
12862  case $ac_file$ac_mode in
12863    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12864  # Strip MF so we end up with the name of the file.
12865  mf=`echo "$mf" | sed -e 's/:.*$//'`
12866  # Check whether this is an Automake generated Makefile or not.
12867  # We used to match only the files named `Makefile.in', but
12868  # some people rename them; so instead we look at the file content.
12869  # Grep'ing the first line is not enough: some people post-process
12870  # each Makefile.in and add a new line on top of each file to say so.
12871  # Grep'ing the whole file is not good either: AIX grep has a line
12872  # limit of 2048, but all sed's we know have understand at least 4000.
12873  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
12874    dirpart=`$as_dirname -- "$mf" ||
12875$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12876	 X"$mf" : 'X\(//\)[^/]' \| \
12877	 X"$mf" : 'X\(//\)$' \| \
12878	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12879echo X"$mf" |
12880    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12881	    s//\1/
12882	    q
12883	  }
12884	  /^X\(\/\/\)[^/].*/{
12885	    s//\1/
12886	    q
12887	  }
12888	  /^X\(\/\/\)$/{
12889	    s//\1/
12890	    q
12891	  }
12892	  /^X\(\/\).*/{
12893	    s//\1/
12894	    q
12895	  }
12896	  s/.*/./; q'`
12897  else
12898    continue
12899  fi
12900  # Extract the definition of DEPDIR, am__include, and am__quote
12901  # from the Makefile without running `make'.
12902  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12903  test -z "$DEPDIR" && continue
12904  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12905  test -z "am__include" && continue
12906  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12907  # When using ansi2knr, U may be empty or an underscore; expand it
12908  U=`sed -n 's/^U = //p' < "$mf"`
12909  # Find all dependency output files, they are included files with
12910  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12911  # simplest approach to changing $(DEPDIR) to its actual value in the
12912  # expansion.
12913  for file in `sed -n "
12914    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12915       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12916    # Make sure the directory exists.
12917    test -f "$dirpart/$file" && continue
12918    fdir=`$as_dirname -- "$file" ||
12919$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12920	 X"$file" : 'X\(//\)[^/]' \| \
12921	 X"$file" : 'X\(//\)$' \| \
12922	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12923echo X"$file" |
12924    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12925	    s//\1/
12926	    q
12927	  }
12928	  /^X\(\/\/\)[^/].*/{
12929	    s//\1/
12930	    q
12931	  }
12932	  /^X\(\/\/\)$/{
12933	    s//\1/
12934	    q
12935	  }
12936	  /^X\(\/\).*/{
12937	    s//\1/
12938	    q
12939	  }
12940	  s/.*/./; q'`
12941    { as_dir=$dirpart/$fdir
12942  case $as_dir in #(
12943  -*) as_dir=./$as_dir;;
12944  esac
12945  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12946    as_dirs=
12947    while :; do
12948      case $as_dir in #(
12949      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12950      *) as_qdir=$as_dir;;
12951      esac
12952      as_dirs="'$as_qdir' $as_dirs"
12953      as_dir=`$as_dirname -- "$as_dir" ||
12954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12955	 X"$as_dir" : 'X\(//\)[^/]' \| \
12956	 X"$as_dir" : 'X\(//\)$' \| \
12957	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12958echo X"$as_dir" |
12959    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12960	    s//\1/
12961	    q
12962	  }
12963	  /^X\(\/\/\)[^/].*/{
12964	    s//\1/
12965	    q
12966	  }
12967	  /^X\(\/\/\)$/{
12968	    s//\1/
12969	    q
12970	  }
12971	  /^X\(\/\).*/{
12972	    s//\1/
12973	    q
12974	  }
12975	  s/.*/./; q'`
12976      test -d "$as_dir" && break
12977    done
12978    test -z "$as_dirs" || eval "mkdir $as_dirs"
12979  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12980echo "$as_me: error: cannot create directory $as_dir" >&2;}
12981   { (exit 1); exit 1; }; }; }
12982    # echo "creating $dirpart/$file"
12983    echo '# dummy' > "$dirpart/$file"
12984  done
12985done
12986 ;;
12987    "libtool":C)
12988
12989    # See if we are running on zsh, and set the options which allow our
12990    # commands through without removal of \ escapes.
12991    if test -n "${ZSH_VERSION+set}" ; then
12992      setopt NO_GLOB_SUBST
12993    fi
12994
12995    cfgfile="${ofile}T"
12996    trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
12997    $RM -f "$cfgfile"
12998
12999    cat <<_LT_EOF >> "$cfgfile"
13000#! $SHELL
13001
13002# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13003# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13004# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13005# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13006#
13007#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13008#                 2006, 2007, 2008 Free Software Foundation, Inc.
13009#   Written by Gordon Matzigkeit, 1996
13010#
13011#   This file is part of GNU Libtool.
13012#
13013# GNU Libtool is free software; you can redistribute it and/or
13014# modify it under the terms of the GNU General Public License as
13015# published by the Free Software Foundation; either version 2 of
13016# the License, or (at your option) any later version.
13017#
13018# As a special exception to the GNU General Public License,
13019# if you distribute this file as part of a program or library that
13020# is built using GNU Libtool, you may include this file under the
13021# same distribution terms that you use for the rest of that program.
13022#
13023# GNU Libtool is distributed in the hope that it will be useful,
13024# but WITHOUT ANY WARRANTY; without even the implied warranty of
13025# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13026# GNU General Public License for more details.
13027#
13028# You should have received a copy of the GNU General Public License
13029# along with GNU Libtool; see the file COPYING.  If not, a copy
13030# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13031# obtained by writing to the Free Software Foundation, Inc.,
13032# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13033
13034
13035# The names of the tagged configurations supported by this script.
13036available_tags=""
13037
13038# ### BEGIN LIBTOOL CONFIG
13039
13040# Which release of libtool.m4 was used?
13041macro_version=$macro_version
13042macro_revision=$macro_revision
13043
13044# Whether or not to build shared libraries.
13045build_libtool_libs=$enable_shared
13046
13047# Whether or not to build static libraries.
13048build_old_libs=$enable_static
13049
13050# What type of objects to build.
13051pic_mode=$pic_mode
13052
13053# Whether or not to optimize for fast installation.
13054fast_install=$enable_fast_install
13055
13056# The host system.
13057host_alias=$host_alias
13058host=$host
13059host_os=$host_os
13060
13061# The build system.
13062build_alias=$build_alias
13063build=$build
13064build_os=$build_os
13065
13066# A sed program that does not truncate output.
13067SED=$lt_SED
13068
13069# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13070Xsed="\$SED -e 1s/^X//"
13071
13072# A grep program that handles long lines.
13073GREP=$lt_GREP
13074
13075# An ERE matcher.
13076EGREP=$lt_EGREP
13077
13078# A literal string matcher.
13079FGREP=$lt_FGREP
13080
13081# A BSD- or MS-compatible name lister.
13082NM=$lt_NM
13083
13084# Whether we need soft or hard links.
13085LN_S=$lt_LN_S
13086
13087# What is the maximum length of a command?
13088max_cmd_len=$max_cmd_len
13089
13090# Object file suffix (normally "o").
13091objext=$ac_objext
13092
13093# Executable file suffix (normally "").
13094exeext=$exeext
13095
13096# whether the shell understands "unset".
13097lt_unset=$lt_unset
13098
13099# turn spaces into newlines.
13100SP2NL=$lt_lt_SP2NL
13101
13102# turn newlines into spaces.
13103NL2SP=$lt_lt_NL2SP
13104
13105# How to create reloadable object files.
13106reload_flag=$lt_reload_flag
13107reload_cmds=$lt_reload_cmds
13108
13109# Method to check whether dependent libraries are shared objects.
13110deplibs_check_method=$lt_deplibs_check_method
13111
13112# Command to use when deplibs_check_method == "file_magic".
13113file_magic_cmd=$lt_file_magic_cmd
13114
13115# The archiver.
13116AR=$lt_AR
13117AR_FLAGS=$lt_AR_FLAGS
13118
13119# A symbol stripping program.
13120STRIP=$lt_STRIP
13121
13122# Commands used to install an old-style archive.
13123RANLIB=$lt_RANLIB
13124old_postinstall_cmds=$lt_old_postinstall_cmds
13125old_postuninstall_cmds=$lt_old_postuninstall_cmds
13126
13127# A C compiler.
13128LTCC=$lt_CC
13129
13130# LTCC compiler flags.
13131LTCFLAGS=$lt_CFLAGS
13132
13133# Take the output of nm and produce a listing of raw symbols and C names.
13134global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13135
13136# Transform the output of nm in a proper C declaration.
13137global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13138
13139# Transform the output of nm in a C name address pair.
13140global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13141
13142# Transform the output of nm in a C name address pair when lib prefix is needed.
13143global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13144
13145# The name of the directory that contains temporary libtool files.
13146objdir=$objdir
13147
13148# Shell to use when invoking shell scripts.
13149SHELL=$lt_SHELL
13150
13151# An echo program that does not interpret backslashes.
13152ECHO=$lt_ECHO
13153
13154# Used to examine libraries when file_magic_cmd begins with "file".
13155MAGIC_CMD=$MAGIC_CMD
13156
13157# Must we lock files when doing compilation?
13158need_locks=$lt_need_locks
13159
13160# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13161DSYMUTIL=$lt_DSYMUTIL
13162
13163# Tool to change global to local symbols on Mac OS X.
13164NMEDIT=$lt_NMEDIT
13165
13166# Tool to manipulate fat objects and archives on Mac OS X.
13167LIPO=$lt_LIPO
13168
13169# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13170OTOOL=$lt_OTOOL
13171
13172# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13173OTOOL64=$lt_OTOOL64
13174
13175# Old archive suffix (normally "a").
13176libext=$libext
13177
13178# Shared library suffix (normally ".so").
13179shrext_cmds=$lt_shrext_cmds
13180
13181# The commands to extract the exported symbol list from a shared archive.
13182extract_expsyms_cmds=$lt_extract_expsyms_cmds
13183
13184# Variables whose values should be saved in libtool wrapper scripts and
13185# restored at link time.
13186variables_saved_for_relink=$lt_variables_saved_for_relink
13187
13188# Do we need the "lib" prefix for modules?
13189need_lib_prefix=$need_lib_prefix
13190
13191# Do we need a version for libraries?
13192need_version=$need_version
13193
13194# Library versioning type.
13195version_type=$version_type
13196
13197# Shared library runtime path variable.
13198runpath_var=$runpath_var
13199
13200# Shared library path variable.
13201shlibpath_var=$shlibpath_var
13202
13203# Is shlibpath searched before the hard-coded library search path?
13204shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13205
13206# Format of library name prefix.
13207libname_spec=$lt_libname_spec
13208
13209# List of archive names.  First name is the real one, the rest are links.
13210# The last name is the one that the linker finds with -lNAME
13211library_names_spec=$lt_library_names_spec
13212
13213# The coded name of the library, if different from the real name.
13214soname_spec=$lt_soname_spec
13215
13216# Command to use after installation of a shared archive.
13217postinstall_cmds=$lt_postinstall_cmds
13218
13219# Command to use after uninstallation of a shared archive.
13220postuninstall_cmds=$lt_postuninstall_cmds
13221
13222# Commands used to finish a libtool library installation in a directory.
13223finish_cmds=$lt_finish_cmds
13224
13225# As "finish_cmds", except a single script fragment to be evaled but
13226# not shown.
13227finish_eval=$lt_finish_eval
13228
13229# Whether we should hardcode library paths into libraries.
13230hardcode_into_libs=$hardcode_into_libs
13231
13232# Compile-time system search path for libraries.
13233sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13234
13235# Run-time system search path for libraries.
13236sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13237
13238# Whether dlopen is supported.
13239dlopen_support=$enable_dlopen
13240
13241# Whether dlopen of programs is supported.
13242dlopen_self=$enable_dlopen_self
13243
13244# Whether dlopen of statically linked programs is supported.
13245dlopen_self_static=$enable_dlopen_self_static
13246
13247# Commands to strip libraries.
13248old_striplib=$lt_old_striplib
13249striplib=$lt_striplib
13250
13251
13252# The linker used to build libraries.
13253LD=$lt_LD
13254
13255# Commands used to build an old-style archive.
13256old_archive_cmds=$lt_old_archive_cmds
13257
13258# A language specific compiler.
13259CC=$lt_compiler
13260
13261# Is the compiler the GNU compiler?
13262with_gcc=$GCC
13263
13264# Compiler flag to turn off builtin functions.
13265no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13266
13267# How to pass a linker flag through the compiler.
13268wl=$lt_lt_prog_compiler_wl
13269
13270# Additional compiler flags for building library objects.
13271pic_flag=$lt_lt_prog_compiler_pic
13272
13273# Compiler flag to prevent dynamic linking.
13274link_static_flag=$lt_lt_prog_compiler_static
13275
13276# Does compiler simultaneously support -c and -o options?
13277compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13278
13279# Whether or not to add -lc for building shared libraries.
13280build_libtool_need_lc=$archive_cmds_need_lc
13281
13282# Whether or not to disallow shared libs when runtime libs are static.
13283allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13284
13285# Compiler flag to allow reflexive dlopens.
13286export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13287
13288# Compiler flag to generate shared objects directly from archives.
13289whole_archive_flag_spec=$lt_whole_archive_flag_spec
13290
13291# Whether the compiler copes with passing no objects directly.
13292compiler_needs_object=$lt_compiler_needs_object
13293
13294# Create an old-style archive from a shared archive.
13295old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13296
13297# Create a temporary old-style archive to link instead of a shared archive.
13298old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13299
13300# Commands used to build a shared archive.
13301archive_cmds=$lt_archive_cmds
13302archive_expsym_cmds=$lt_archive_expsym_cmds
13303
13304# Commands used to build a loadable module if different from building
13305# a shared archive.
13306module_cmds=$lt_module_cmds
13307module_expsym_cmds=$lt_module_expsym_cmds
13308
13309# Whether we are building with GNU ld or not.
13310with_gnu_ld=$lt_with_gnu_ld
13311
13312# Flag that allows shared libraries with undefined symbols to be built.
13313allow_undefined_flag=$lt_allow_undefined_flag
13314
13315# Flag that enforces no undefined symbols.
13316no_undefined_flag=$lt_no_undefined_flag
13317
13318# Flag to hardcode \$libdir into a binary during linking.
13319# This must work even if \$libdir does not exist
13320hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13321
13322# If ld is used when linking, flag to hardcode \$libdir into a binary
13323# during linking.  This must work even if \$libdir does not exist.
13324hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13325
13326# Whether we need a single "-rpath" flag with a separated argument.
13327hardcode_libdir_separator=$lt_hardcode_libdir_separator
13328
13329# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13330# DIR into the resulting binary.
13331hardcode_direct=$hardcode_direct
13332
13333# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13334# DIR into the resulting binary and the resulting library dependency is
13335# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13336# library is relocated.
13337hardcode_direct_absolute=$hardcode_direct_absolute
13338
13339# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13340# into the resulting binary.
13341hardcode_minus_L=$hardcode_minus_L
13342
13343# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13344# into the resulting binary.
13345hardcode_shlibpath_var=$hardcode_shlibpath_var
13346
13347# Set to "yes" if building a shared library automatically hardcodes DIR
13348# into the library and all subsequent libraries and executables linked
13349# against it.
13350hardcode_automatic=$hardcode_automatic
13351
13352# Set to yes if linker adds runtime paths of dependent libraries
13353# to runtime path list.
13354inherit_rpath=$inherit_rpath
13355
13356# Whether libtool must link a program against all its dependency libraries.
13357link_all_deplibs=$link_all_deplibs
13358
13359# Fix the shell variable \$srcfile for the compiler.
13360fix_srcfile_path=$lt_fix_srcfile_path
13361
13362# Set to "yes" if exported symbols are required.
13363always_export_symbols=$always_export_symbols
13364
13365# The commands to list exported symbols.
13366export_symbols_cmds=$lt_export_symbols_cmds
13367
13368# Symbols that should not be listed in the preloaded symbols.
13369exclude_expsyms=$lt_exclude_expsyms
13370
13371# Symbols that must always be exported.
13372include_expsyms=$lt_include_expsyms
13373
13374# Commands necessary for linking programs (against libraries) with templates.
13375prelink_cmds=$lt_prelink_cmds
13376
13377# Specify filename containing input files.
13378file_list_spec=$lt_file_list_spec
13379
13380# How to hardcode a shared library path into an executable.
13381hardcode_action=$hardcode_action
13382
13383# ### END LIBTOOL CONFIG
13384
13385_LT_EOF
13386
13387  case $host_os in
13388  aix3*)
13389    cat <<\_LT_EOF >> "$cfgfile"
13390# AIX sometimes has problems with the GCC collect2 program.  For some
13391# reason, if we set the COLLECT_NAMES environment variable, the problems
13392# vanish in a puff of smoke.
13393if test "X${COLLECT_NAMES+set}" != Xset; then
13394  COLLECT_NAMES=
13395  export COLLECT_NAMES
13396fi
13397_LT_EOF
13398    ;;
13399  esac
13400
13401
13402ltmain="$ac_aux_dir/ltmain.sh"
13403
13404
13405  # We use sed instead of cat because bash on DJGPP gets confused if
13406  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13407  # text mode, it properly converts lines to CR/LF.  This bash problem
13408  # is reportedly fixed, but why not run on old versions too?
13409  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13410    || (rm -f "$cfgfile"; exit 1)
13411
13412  case $xsi_shell in
13413  yes)
13414    cat << \_LT_EOF >> "$cfgfile"
13415
13416# func_dirname file append nondir_replacement
13417# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13418# otherwise set result to NONDIR_REPLACEMENT.
13419func_dirname ()
13420{
13421  case ${1} in
13422    */*) func_dirname_result="${1%/*}${2}" ;;
13423    *  ) func_dirname_result="${3}" ;;
13424  esac
13425}
13426
13427# func_basename file
13428func_basename ()
13429{
13430  func_basename_result="${1##*/}"
13431}
13432
13433# func_dirname_and_basename file append nondir_replacement
13434# perform func_basename and func_dirname in a single function
13435# call:
13436#   dirname:  Compute the dirname of FILE.  If nonempty,
13437#             add APPEND to the result, otherwise set result
13438#             to NONDIR_REPLACEMENT.
13439#             value returned in "$func_dirname_result"
13440#   basename: Compute filename of FILE.
13441#             value retuned in "$func_basename_result"
13442# Implementation must be kept synchronized with func_dirname
13443# and func_basename. For efficiency, we do not delegate to
13444# those functions but instead duplicate the functionality here.
13445func_dirname_and_basename ()
13446{
13447  case ${1} in
13448    */*) func_dirname_result="${1%/*}${2}" ;;
13449    *  ) func_dirname_result="${3}" ;;
13450  esac
13451  func_basename_result="${1##*/}"
13452}
13453
13454# func_stripname prefix suffix name
13455# strip PREFIX and SUFFIX off of NAME.
13456# PREFIX and SUFFIX must not contain globbing or regex special
13457# characters, hashes, percent signs, but SUFFIX may contain a leading
13458# dot (in which case that matches only a dot).
13459func_stripname ()
13460{
13461  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13462  # positional parameters, so assign one to ordinary parameter first.
13463  func_stripname_result=${3}
13464  func_stripname_result=${func_stripname_result#"${1}"}
13465  func_stripname_result=${func_stripname_result%"${2}"}
13466}
13467
13468# func_opt_split
13469func_opt_split ()
13470{
13471  func_opt_split_opt=${1%%=*}
13472  func_opt_split_arg=${1#*=}
13473}
13474
13475# func_lo2o object
13476func_lo2o ()
13477{
13478  case ${1} in
13479    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13480    *)    func_lo2o_result=${1} ;;
13481  esac
13482}
13483
13484# func_xform libobj-or-source
13485func_xform ()
13486{
13487  func_xform_result=${1%.*}.lo
13488}
13489
13490# func_arith arithmetic-term...
13491func_arith ()
13492{
13493  func_arith_result=$(( $* ))
13494}
13495
13496# func_len string
13497# STRING may not start with a hyphen.
13498func_len ()
13499{
13500  func_len_result=${#1}
13501}
13502
13503_LT_EOF
13504    ;;
13505  *) # Bourne compatible functions.
13506    cat << \_LT_EOF >> "$cfgfile"
13507
13508# func_dirname file append nondir_replacement
13509# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13510# otherwise set result to NONDIR_REPLACEMENT.
13511func_dirname ()
13512{
13513  # Extract subdirectory from the argument.
13514  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13515  if test "X$func_dirname_result" = "X${1}"; then
13516    func_dirname_result="${3}"
13517  else
13518    func_dirname_result="$func_dirname_result${2}"
13519  fi
13520}
13521
13522# func_basename file
13523func_basename ()
13524{
13525  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13526}
13527
13528
13529# func_stripname prefix suffix name
13530# strip PREFIX and SUFFIX off of NAME.
13531# PREFIX and SUFFIX must not contain globbing or regex special
13532# characters, hashes, percent signs, but SUFFIX may contain a leading
13533# dot (in which case that matches only a dot).
13534# func_strip_suffix prefix name
13535func_stripname ()
13536{
13537  case ${2} in
13538    .*) func_stripname_result=`$ECHO "X${3}" \
13539           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13540    *)  func_stripname_result=`$ECHO "X${3}" \
13541           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13542  esac
13543}
13544
13545# sed scripts:
13546my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13547my_sed_long_arg='1s/^-[^=]*=//'
13548
13549# func_opt_split
13550func_opt_split ()
13551{
13552  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13553  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13554}
13555
13556# func_lo2o object
13557func_lo2o ()
13558{
13559  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13560}
13561
13562# func_xform libobj-or-source
13563func_xform ()
13564{
13565  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13566}
13567
13568# func_arith arithmetic-term...
13569func_arith ()
13570{
13571  func_arith_result=`expr "$@"`
13572}
13573
13574# func_len string
13575# STRING may not start with a hyphen.
13576func_len ()
13577{
13578  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13579}
13580
13581_LT_EOF
13582esac
13583
13584case $lt_shell_append in
13585  yes)
13586    cat << \_LT_EOF >> "$cfgfile"
13587
13588# func_append var value
13589# Append VALUE to the end of shell variable VAR.
13590func_append ()
13591{
13592  eval "$1+=\$2"
13593}
13594_LT_EOF
13595    ;;
13596  *)
13597    cat << \_LT_EOF >> "$cfgfile"
13598
13599# func_append var value
13600# Append VALUE to the end of shell variable VAR.
13601func_append ()
13602{
13603  eval "$1=\$$1\$2"
13604}
13605
13606_LT_EOF
13607    ;;
13608  esac
13609
13610
13611  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13612    || (rm -f "$cfgfile"; exit 1)
13613
13614  mv -f "$cfgfile" "$ofile" ||
13615    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13616  chmod +x "$ofile"
13617
13618 ;;
13619
13620  esac
13621done # for ac_tag
13622
13623
13624{ (exit 0); exit 0; }
13625_ACEOF
13626chmod +x $CONFIG_STATUS
13627ac_clean_files=$ac_clean_files_save
13628
13629
13630# configure is writing to config.log, and then calls config.status.
13631# config.status does its own redirection, appending to config.log.
13632# Unfortunately, on DOS this fails, as config.log is still kept open
13633# by configure, so config.status won't be able to write to it; its
13634# output is simply discarded.  So we exec the FD to /dev/null,
13635# effectively closing config.log, so it can be properly (re)opened and
13636# appended to by config.status.  When coming back to configure, we
13637# need to make the FD available again.
13638if test "$no_create" != yes; then
13639  ac_cs_success=:
13640  ac_config_status_args=
13641  test "$silent" = yes &&
13642    ac_config_status_args="$ac_config_status_args --quiet"
13643  exec 5>/dev/null
13644  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13645  exec 5>>config.log
13646  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13647  # would make configure fail if this is the last instruction.
13648  $ac_cs_success || { (exit 1); exit 1; }
13649fi
13650
13651