1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$lt_ECHO in
557X*--fallback-echo)
558  # Remove one level of quotation (which was required for Make).
559  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560  ;;
561esac
562
563ECHO=${lt_ECHO-echo}
564if test "X$1" = X--no-reexec; then
565  # Discard the --no-reexec flag, and continue.
566  shift
567elif test "X$1" = X--fallback-echo; then
568  # Avoid inline document here, it may be left over
569  :
570elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571  # Yippee, $ECHO works!
572  :
573else
574  # Restart under the correct shell.
575  exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579  # used as fallback echo
580  shift
581  cat <<_LT_EOF
582$*
583_LT_EOF
584  exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$lt_ECHO"; then
592  if test "X${echo_test_string+set}" != Xset; then
593    # find a string as large as possible, as long as the shell can cope with it
594    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598      then
599        break
600      fi
601    done
602  fi
603
604  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606     test "X$echo_testing_string" = "X$echo_test_string"; then
607    :
608  else
609    # The Solaris, AIX, and Digital Unix default echo programs unquote
610    # backslashes.  This makes it impossible to quote backslashes using
611    #   echo "$something" | sed 's/\\/\\\\/g'
612    #
613    # So, first we look for a working echo in the user's PATH.
614
615    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616    for dir in $PATH /usr/ucb; do
617      IFS="$lt_save_ifs"
618      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621         test "X$echo_testing_string" = "X$echo_test_string"; then
622        ECHO="$dir/echo"
623        break
624      fi
625    done
626    IFS="$lt_save_ifs"
627
628    if test "X$ECHO" = Xecho; then
629      # We didn't find a better echo, so look for alternatives.
630      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632         test "X$echo_testing_string" = "X$echo_test_string"; then
633        # This shell has a builtin print -r that does the trick.
634        ECHO='print -r'
635      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636	   test "X$CONFIG_SHELL" != X/bin/ksh; then
637        # If we have ksh, try running configure again with it.
638        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639        export ORIGINAL_CONFIG_SHELL
640        CONFIG_SHELL=/bin/ksh
641        export CONFIG_SHELL
642        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643      else
644        # Try using printf.
645        ECHO='printf %s\n'
646        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648	   test "X$echo_testing_string" = "X$echo_test_string"; then
649	  # Cool, printf works
650	  :
651        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652	     test "X$echo_testing_string" = 'X\t' &&
653	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654	     test "X$echo_testing_string" = "X$echo_test_string"; then
655	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656	  export CONFIG_SHELL
657	  SHELL="$CONFIG_SHELL"
658	  export SHELL
659	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
660        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661	     test "X$echo_testing_string" = 'X\t' &&
662	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663	     test "X$echo_testing_string" = "X$echo_test_string"; then
664	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
665        else
666	  # maybe with a smaller string...
667	  prev=:
668
669	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671	    then
672	      break
673	    fi
674	    prev="$cmd"
675	  done
676
677	  if test "$prev" != 'sed 50q "$0"'; then
678	    echo_test_string=`eval $prev`
679	    export echo_test_string
680	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681	  else
682	    # Oops.  We lost completely, so just stick with echo.
683	    ECHO=echo
684	  fi
685        fi
686      fi
687    fi
688  fi
689fi
690
691# Copy echo and quote the copy suitably for passing to libtool from
692# the Makefile, instead of quoting the original, which is used later.
693lt_ECHO=$ECHO
694if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696fi
697
698
699
700
701exec 7<&0 </dev/null 6>&1
702
703# Name of the host.
704# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705# so uname gets run too.
706ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708#
709# Initializations.
710#
711ac_default_prefix=/usr/local
712ac_clean_files=
713ac_config_libobj_dir=.
714LIBOBJS=
715cross_compiling=no
716subdirs=
717MFLAGS=
718MAKEFLAGS=
719SHELL=${CONFIG_SHELL-/bin/sh}
720
721# Identity of this package.
722PACKAGE_NAME=
723PACKAGE_TARNAME=
724PACKAGE_VERSION=
725PACKAGE_STRING=
726PACKAGE_BUGREPORT=
727
728ac_unique_file="README"
729# Factoring default headers for most tests.
730ac_includes_default="\
731#include <stdio.h>
732#ifdef HAVE_SYS_TYPES_H
733# include <sys/types.h>
734#endif
735#ifdef HAVE_SYS_STAT_H
736# include <sys/stat.h>
737#endif
738#ifdef STDC_HEADERS
739# include <stdlib.h>
740# include <stddef.h>
741#else
742# ifdef HAVE_STDLIB_H
743#  include <stdlib.h>
744# endif
745#endif
746#ifdef HAVE_STRING_H
747# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748#  include <memory.h>
749# endif
750# include <string.h>
751#endif
752#ifdef HAVE_STRINGS_H
753# include <strings.h>
754#endif
755#ifdef HAVE_INTTYPES_H
756# include <inttypes.h>
757#endif
758#ifdef HAVE_STDINT_H
759# include <stdint.h>
760#endif
761#ifdef HAVE_UNISTD_H
762# include <unistd.h>
763#endif"
764
765ac_subst_vars='SHELL
766PATH_SEPARATOR
767PACKAGE_NAME
768PACKAGE_TARNAME
769PACKAGE_VERSION
770PACKAGE_STRING
771PACKAGE_BUGREPORT
772exec_prefix
773prefix
774program_transform_name
775bindir
776sbindir
777libexecdir
778datarootdir
779datadir
780sysconfdir
781sharedstatedir
782localstatedir
783includedir
784oldincludedir
785docdir
786infodir
787htmldir
788dvidir
789pdfdir
790psdir
791libdir
792localedir
793mandir
794DEFS
795ECHO_C
796ECHO_N
797ECHO_T
798LIBS
799build_alias
800host_alias
801target_alias
802MAJOR_VERSION
803MINOR_VERSION
804MICRO_VERSION
805INTERFACE_AGE
806BINARY_AGE
807VERSION
808AS
809DLLTOOL
810OBJDUMP
811LIBTOOL
812build
813build_cpu
814build_vendor
815build_os
816host
817host_cpu
818host_vendor
819host_os
820CC
821CFLAGS
822LDFLAGS
823CPPFLAGS
824ac_ct_CC
825EXEEXT
826OBJEXT
827SED
828GREP
829EGREP
830FGREP
831LD
832DUMPBIN
833ac_ct_DUMPBIN
834NM
835LN_S
836AR
837STRIP
838RANLIB
839lt_ECHO
840DSYMUTIL
841NMEDIT
842LIPO
843OTOOL
844OTOOL64
845CPP
846LT_RELEASE
847LT_CURRENT
848LT_REVISION
849LT_AGE
850INSTALL_PROGRAM
851INSTALL_SCRIPT
852INSTALL_DATA
853am__isrc
854CYGPATH_W
855PACKAGE
856ACLOCAL
857AUTOCONF
858AUTOMAKE
859AUTOHEADER
860MAKEINFO
861install_sh
862INSTALL_STRIP_PROGRAM
863mkdir_p
864AWK
865SET_MAKE
866am__leading_dot
867AMTAR
868am__tar
869am__untar
870DEPDIR
871am__include
872am__quote
873AMDEP_TRUE
874AMDEP_FALSE
875AMDEPBACKSLASH
876CCDEPMODE
877am__fastdepCC_TRUE
878am__fastdepCC_FALSE
879WINDRES
880ALLOCA
881USE_VERSION_RC_TRUE
882USE_VERSION_RC_FALSE
883FREETYPE_CONFIG
884SDL_VERSION
885PKG_CONFIG
886SDL_CFLAGS
887SDL_LIBS
888SDL_CONFIG
889XMKMF
890X_CFLAGS
891X_PRE_LIBS
892X_LIBS
893X_EXTRA_LIBS
894GL_LIBS
895MATHLIB
896LIBOBJS
897LTLIBOBJS'
898ac_subst_files=''
899      ac_precious_vars='build_alias
900host_alias
901target_alias
902CC
903CFLAGS
904LDFLAGS
905LIBS
906CPPFLAGS
907CPP
908PKG_CONFIG
909SDL_CFLAGS
910SDL_LIBS
911XMKMF'
912
913
914# Initialize some variables set by options.
915ac_init_help=
916ac_init_version=false
917# The variables have the same names as the options, with
918# dashes changed to underlines.
919cache_file=/dev/null
920exec_prefix=NONE
921no_create=
922no_recursion=
923prefix=NONE
924program_prefix=NONE
925program_suffix=NONE
926program_transform_name=s,x,x,
927silent=
928site=
929srcdir=
930verbose=
931x_includes=NONE
932x_libraries=NONE
933
934# Installation directory options.
935# These are left unexpanded so users can "make install exec_prefix=/foo"
936# and all the variables that are supposed to be based on exec_prefix
937# by default will actually change.
938# Use braces instead of parens because sh, perl, etc. also accept them.
939# (The list follows the same order as the GNU Coding Standards.)
940bindir='${exec_prefix}/bin'
941sbindir='${exec_prefix}/sbin'
942libexecdir='${exec_prefix}/libexec'
943datarootdir='${prefix}/share'
944datadir='${datarootdir}'
945sysconfdir='${prefix}/etc'
946sharedstatedir='${prefix}/com'
947localstatedir='${prefix}/var'
948includedir='${prefix}/include'
949oldincludedir='/usr/include'
950docdir='${datarootdir}/doc/${PACKAGE}'
951infodir='${datarootdir}/info'
952htmldir='${docdir}'
953dvidir='${docdir}'
954pdfdir='${docdir}'
955psdir='${docdir}'
956libdir='${exec_prefix}/lib'
957localedir='${datarootdir}/locale'
958mandir='${datarootdir}/man'
959
960ac_prev=
961ac_dashdash=
962for ac_option
963do
964  # If the previous option needs an argument, assign it.
965  if test -n "$ac_prev"; then
966    eval $ac_prev=\$ac_option
967    ac_prev=
968    continue
969  fi
970
971  case $ac_option in
972  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973  *)	ac_optarg=yes ;;
974  esac
975
976  # Accept the important Cygnus configure options, so we can diagnose typos.
977
978  case $ac_dashdash$ac_option in
979  --)
980    ac_dashdash=yes ;;
981
982  -bindir | --bindir | --bindi | --bind | --bin | --bi)
983    ac_prev=bindir ;;
984  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985    bindir=$ac_optarg ;;
986
987  -build | --build | --buil | --bui | --bu)
988    ac_prev=build_alias ;;
989  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990    build_alias=$ac_optarg ;;
991
992  -cache-file | --cache-file | --cache-fil | --cache-fi \
993  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994    ac_prev=cache_file ;;
995  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997    cache_file=$ac_optarg ;;
998
999  --config-cache | -C)
1000    cache_file=config.cache ;;
1001
1002  -datadir | --datadir | --datadi | --datad)
1003    ac_prev=datadir ;;
1004  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005    datadir=$ac_optarg ;;
1006
1007  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008  | --dataroo | --dataro | --datar)
1009    ac_prev=datarootdir ;;
1010  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012    datarootdir=$ac_optarg ;;
1013
1014  -disable-* | --disable-*)
1015    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019   { (exit 1); exit 1; }; }
1020    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021    eval enable_$ac_feature=no ;;
1022
1023  -docdir | --docdir | --docdi | --doc | --do)
1024    ac_prev=docdir ;;
1025  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026    docdir=$ac_optarg ;;
1027
1028  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029    ac_prev=dvidir ;;
1030  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031    dvidir=$ac_optarg ;;
1032
1033  -enable-* | --enable-*)
1034    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035    # Reject names that are not valid shell variable names.
1036    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038   { (exit 1); exit 1; }; }
1039    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040    eval enable_$ac_feature=\$ac_optarg ;;
1041
1042  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044  | --exec | --exe | --ex)
1045    ac_prev=exec_prefix ;;
1046  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048  | --exec=* | --exe=* | --ex=*)
1049    exec_prefix=$ac_optarg ;;
1050
1051  -gas | --gas | --ga | --g)
1052    # Obsolete; use --with-gas.
1053    with_gas=yes ;;
1054
1055  -help | --help | --hel | --he | -h)
1056    ac_init_help=long ;;
1057  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058    ac_init_help=recursive ;;
1059  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060    ac_init_help=short ;;
1061
1062  -host | --host | --hos | --ho)
1063    ac_prev=host_alias ;;
1064  -host=* | --host=* | --hos=* | --ho=*)
1065    host_alias=$ac_optarg ;;
1066
1067  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068    ac_prev=htmldir ;;
1069  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070  | --ht=*)
1071    htmldir=$ac_optarg ;;
1072
1073  -includedir | --includedir | --includedi | --included | --include \
1074  | --includ | --inclu | --incl | --inc)
1075    ac_prev=includedir ;;
1076  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077  | --includ=* | --inclu=* | --incl=* | --inc=*)
1078    includedir=$ac_optarg ;;
1079
1080  -infodir | --infodir | --infodi | --infod | --info | --inf)
1081    ac_prev=infodir ;;
1082  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083    infodir=$ac_optarg ;;
1084
1085  -libdir | --libdir | --libdi | --libd)
1086    ac_prev=libdir ;;
1087  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088    libdir=$ac_optarg ;;
1089
1090  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091  | --libexe | --libex | --libe)
1092    ac_prev=libexecdir ;;
1093  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094  | --libexe=* | --libex=* | --libe=*)
1095    libexecdir=$ac_optarg ;;
1096
1097  -localedir | --localedir | --localedi | --localed | --locale)
1098    ac_prev=localedir ;;
1099  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100    localedir=$ac_optarg ;;
1101
1102  -localstatedir | --localstatedir | --localstatedi | --localstated \
1103  | --localstate | --localstat | --localsta | --localst | --locals)
1104    ac_prev=localstatedir ;;
1105  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107    localstatedir=$ac_optarg ;;
1108
1109  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110    ac_prev=mandir ;;
1111  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112    mandir=$ac_optarg ;;
1113
1114  -nfp | --nfp | --nf)
1115    # Obsolete; use --without-fp.
1116    with_fp=no ;;
1117
1118  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119  | --no-cr | --no-c | -n)
1120    no_create=yes ;;
1121
1122  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124    no_recursion=yes ;;
1125
1126  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128  | --oldin | --oldi | --old | --ol | --o)
1129    ac_prev=oldincludedir ;;
1130  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133    oldincludedir=$ac_optarg ;;
1134
1135  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136    ac_prev=prefix ;;
1137  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138    prefix=$ac_optarg ;;
1139
1140  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141  | --program-pre | --program-pr | --program-p)
1142    ac_prev=program_prefix ;;
1143  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145    program_prefix=$ac_optarg ;;
1146
1147  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148  | --program-suf | --program-su | --program-s)
1149    ac_prev=program_suffix ;;
1150  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152    program_suffix=$ac_optarg ;;
1153
1154  -program-transform-name | --program-transform-name \
1155  | --program-transform-nam | --program-transform-na \
1156  | --program-transform-n | --program-transform- \
1157  | --program-transform | --program-transfor \
1158  | --program-transfo | --program-transf \
1159  | --program-trans | --program-tran \
1160  | --progr-tra | --program-tr | --program-t)
1161    ac_prev=program_transform_name ;;
1162  -program-transform-name=* | --program-transform-name=* \
1163  | --program-transform-nam=* | --program-transform-na=* \
1164  | --program-transform-n=* | --program-transform-=* \
1165  | --program-transform=* | --program-transfor=* \
1166  | --program-transfo=* | --program-transf=* \
1167  | --program-trans=* | --program-tran=* \
1168  | --progr-tra=* | --program-tr=* | --program-t=*)
1169    program_transform_name=$ac_optarg ;;
1170
1171  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172    ac_prev=pdfdir ;;
1173  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174    pdfdir=$ac_optarg ;;
1175
1176  -psdir | --psdir | --psdi | --psd | --ps)
1177    ac_prev=psdir ;;
1178  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179    psdir=$ac_optarg ;;
1180
1181  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182  | -silent | --silent | --silen | --sile | --sil)
1183    silent=yes ;;
1184
1185  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186    ac_prev=sbindir ;;
1187  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188  | --sbi=* | --sb=*)
1189    sbindir=$ac_optarg ;;
1190
1191  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193  | --sharedst | --shareds | --shared | --share | --shar \
1194  | --sha | --sh)
1195    ac_prev=sharedstatedir ;;
1196  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199  | --sha=* | --sh=*)
1200    sharedstatedir=$ac_optarg ;;
1201
1202  -site | --site | --sit)
1203    ac_prev=site ;;
1204  -site=* | --site=* | --sit=*)
1205    site=$ac_optarg ;;
1206
1207  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208    ac_prev=srcdir ;;
1209  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210    srcdir=$ac_optarg ;;
1211
1212  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213  | --syscon | --sysco | --sysc | --sys | --sy)
1214    ac_prev=sysconfdir ;;
1215  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217    sysconfdir=$ac_optarg ;;
1218
1219  -target | --target | --targe | --targ | --tar | --ta | --t)
1220    ac_prev=target_alias ;;
1221  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222    target_alias=$ac_optarg ;;
1223
1224  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225    verbose=yes ;;
1226
1227  -version | --version | --versio | --versi | --vers | -V)
1228    ac_init_version=: ;;
1229
1230  -with-* | --with-*)
1231    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232    # Reject names that are not valid shell variable names.
1233    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234      { echo "$as_me: error: invalid package name: $ac_package" >&2
1235   { (exit 1); exit 1; }; }
1236    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237    eval with_$ac_package=\$ac_optarg ;;
1238
1239  -without-* | --without-*)
1240    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241    # Reject names that are not valid shell variable names.
1242    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243      { echo "$as_me: error: invalid package name: $ac_package" >&2
1244   { (exit 1); exit 1; }; }
1245    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1246    eval with_$ac_package=no ;;
1247
1248  --x)
1249    # Obsolete; use --with-x.
1250    with_x=yes ;;
1251
1252  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253  | --x-incl | --x-inc | --x-in | --x-i)
1254    ac_prev=x_includes ;;
1255  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257    x_includes=$ac_optarg ;;
1258
1259  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261    ac_prev=x_libraries ;;
1262  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264    x_libraries=$ac_optarg ;;
1265
1266  -*) { echo "$as_me: error: unrecognized option: $ac_option
1267Try \`$0 --help' for more information." >&2
1268   { (exit 1); exit 1; }; }
1269    ;;
1270
1271  *=*)
1272    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273    # Reject names that are not valid shell variable names.
1274    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1275      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276   { (exit 1); exit 1; }; }
1277    eval $ac_envvar=\$ac_optarg
1278    export $ac_envvar ;;
1279
1280  *)
1281    # FIXME: should be removed in autoconf 3.0.
1282    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286    ;;
1287
1288  esac
1289done
1290
1291if test -n "$ac_prev"; then
1292  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293  { echo "$as_me: error: missing argument to $ac_option" >&2
1294   { (exit 1); exit 1; }; }
1295fi
1296
1297# Be sure to have absolute directory names.
1298for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299		datadir sysconfdir sharedstatedir localstatedir includedir \
1300		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301		libdir localedir mandir
1302do
1303  eval ac_val=\$$ac_var
1304  case $ac_val in
1305    [\\/$]* | ?:[\\/]* )  continue;;
1306    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307  esac
1308  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309   { (exit 1); exit 1; }; }
1310done
1311
1312# There might be people who depend on the old broken behavior: `$host'
1313# used to hold the argument of --host etc.
1314# FIXME: To remove some day.
1315build=$build_alias
1316host=$host_alias
1317target=$target_alias
1318
1319# FIXME: To remove some day.
1320if test "x$host_alias" != x; then
1321  if test "x$build_alias" = x; then
1322    cross_compiling=maybe
1323    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324    If a cross compiler is detected then cross compile mode will be used." >&2
1325  elif test "x$build_alias" != "x$host_alias"; then
1326    cross_compiling=yes
1327  fi
1328fi
1329
1330ac_tool_prefix=
1331test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333test "$silent" = yes && exec 6>/dev/null
1334
1335
1336ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337ac_ls_di=`ls -di .` &&
1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339  { echo "$as_me: error: Working directory cannot be determined" >&2
1340   { (exit 1); exit 1; }; }
1341test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342  { echo "$as_me: error: pwd does not report name of working directory" >&2
1343   { (exit 1); exit 1; }; }
1344
1345
1346# Find the source files, if location was not specified.
1347if test -z "$srcdir"; then
1348  ac_srcdir_defaulted=yes
1349  # Try the directory containing this script, then the parent directory.
1350  ac_confdir=`$as_dirname -- "$0" ||
1351$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352	 X"$0" : 'X\(//\)[^/]' \| \
1353	 X"$0" : 'X\(//\)$' \| \
1354	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1355echo X"$0" |
1356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\/\)[^/].*/{
1361	    s//\1/
1362	    q
1363	  }
1364	  /^X\(\/\/\)$/{
1365	    s//\1/
1366	    q
1367	  }
1368	  /^X\(\/\).*/{
1369	    s//\1/
1370	    q
1371	  }
1372	  s/.*/./; q'`
1373  srcdir=$ac_confdir
1374  if test ! -r "$srcdir/$ac_unique_file"; then
1375    srcdir=..
1376  fi
1377else
1378  ac_srcdir_defaulted=no
1379fi
1380if test ! -r "$srcdir/$ac_unique_file"; then
1381  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383   { (exit 1); exit 1; }; }
1384fi
1385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386ac_abs_confdir=`(
1387	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1388   { (exit 1); exit 1; }; }
1389	pwd)`
1390# When building in place, set srcdir=.
1391if test "$ac_abs_confdir" = "$ac_pwd"; then
1392  srcdir=.
1393fi
1394# Remove unnecessary trailing slashes from srcdir.
1395# Double slashes in file names in object file debugging info
1396# mess up M-x gdb in Emacs.
1397case $srcdir in
1398*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399esac
1400for ac_var in $ac_precious_vars; do
1401  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402  eval ac_env_${ac_var}_value=\$${ac_var}
1403  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405done
1406
1407#
1408# Report the --help message.
1409#
1410if test "$ac_init_help" = "long"; then
1411  # Omit some internal or obsolete options to make the list less imposing.
1412  # This message is too long to be a string in the A/UX 3.1 sh.
1413  cat <<_ACEOF
1414\`configure' configures this package to adapt to many kinds of systems.
1415
1416Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419VAR=VALUE.  See below for descriptions of some of the useful variables.
1420
1421Defaults for the options are specified in brackets.
1422
1423Configuration:
1424  -h, --help              display this help and exit
1425      --help=short        display options specific to this package
1426      --help=recursive    display the short help of all the included packages
1427  -V, --version           display version information and exit
1428  -q, --quiet, --silent   do not print \`checking...' messages
1429      --cache-file=FILE   cache test results in FILE [disabled]
1430  -C, --config-cache      alias for \`--cache-file=config.cache'
1431  -n, --no-create         do not create output files
1432      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1433
1434Installation directories:
1435  --prefix=PREFIX         install architecture-independent files in PREFIX
1436			  [$ac_default_prefix]
1437  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1438			  [PREFIX]
1439
1440By default, \`make install' will install all the files in
1441\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1442an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443for instance \`--prefix=\$HOME'.
1444
1445For better control, use the options below.
1446
1447Fine tuning of the installation directories:
1448  --bindir=DIR           user executables [EPREFIX/bin]
1449  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1450  --libexecdir=DIR       program executables [EPREFIX/libexec]
1451  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1452  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1453  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1454  --libdir=DIR           object code libraries [EPREFIX/lib]
1455  --includedir=DIR       C header files [PREFIX/include]
1456  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1457  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1458  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1459  --infodir=DIR          info documentation [DATAROOTDIR/info]
1460  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1461  --mandir=DIR           man documentation [DATAROOTDIR/man]
1462  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1463  --htmldir=DIR          html documentation [DOCDIR]
1464  --dvidir=DIR           dvi documentation [DOCDIR]
1465  --pdfdir=DIR           pdf documentation [DOCDIR]
1466  --psdir=DIR            ps documentation [DOCDIR]
1467_ACEOF
1468
1469  cat <<\_ACEOF
1470
1471Program names:
1472  --program-prefix=PREFIX            prepend PREFIX to installed program names
1473  --program-suffix=SUFFIX            append SUFFIX to installed program names
1474  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1475
1476X features:
1477  --x-includes=DIR    X include files are in DIR
1478  --x-libraries=DIR   X library files are in DIR
1479
1480System types:
1481  --build=BUILD     configure for building on BUILD [guessed]
1482  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1483_ACEOF
1484fi
1485
1486if test -n "$ac_init_help"; then
1487
1488  cat <<\_ACEOF
1489
1490Optional Features:
1491  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1492  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1493  --enable-shared[=PKGS]  build shared libraries [default=yes]
1494  --enable-static[=PKGS]  build static libraries [default=yes]
1495  --enable-fast-install[=PKGS]
1496                          optimize for fast installation [default=yes]
1497  --disable-libtool-lock  avoid locking (might break parallel builds)
1498  --disable-dependency-tracking  speeds up one-time build
1499  --enable-dependency-tracking   do not reject slow dependency extractors
1500  --disable-sdltest       Do not try to compile and run a test SDL program
1501
1502Optional Packages:
1503  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1504  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1505  --with-pic              try to use only PIC/non-PIC objects [default=use
1506                          both]
1507  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1508  --with-freetype-prefix=PFX   Prefix where FREETYPE is
1509installed (optional)
1510  --with-freetype-exec-prefix=PFX Exec prefix
1511where FREETYPE is installed (optional)
1512  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1513  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1514  --with-x                use the X Window System
1515
1516Some influential environment variables:
1517  CC          C compiler command
1518  CFLAGS      C compiler flags
1519  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1520              nonstandard directory <lib dir>
1521  LIBS        libraries to pass to the linker, e.g. -l<library>
1522  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523              you have headers in a nonstandard directory <include dir>
1524  CPP         C preprocessor
1525  PKG_CONFIG  path to pkg-config utility
1526  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1527  SDL_LIBS    linker flags for SDL, overriding pkg-config
1528  XMKMF       Path to xmkmf, Makefile generator for X Window System
1529
1530Use these variables to override the choices made by `configure' or to help
1531it to find libraries and programs with nonstandard names/locations.
1532
1533_ACEOF
1534ac_status=$?
1535fi
1536
1537if test "$ac_init_help" = "recursive"; then
1538  # If there are subdirs, report their specific --help.
1539  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540    test -d "$ac_dir" || continue
1541    ac_builddir=.
1542
1543case "$ac_dir" in
1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545*)
1546  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1547  # A ".." for each directory in $ac_dir_suffix.
1548  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1549  case $ac_top_builddir_sub in
1550  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552  esac ;;
1553esac
1554ac_abs_top_builddir=$ac_pwd
1555ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556# for backward compatibility:
1557ac_top_builddir=$ac_top_build_prefix
1558
1559case $srcdir in
1560  .)  # We are building in place.
1561    ac_srcdir=.
1562    ac_top_srcdir=$ac_top_builddir_sub
1563    ac_abs_top_srcdir=$ac_pwd ;;
1564  [\\/]* | ?:[\\/]* )  # Absolute name.
1565    ac_srcdir=$srcdir$ac_dir_suffix;
1566    ac_top_srcdir=$srcdir
1567    ac_abs_top_srcdir=$srcdir ;;
1568  *) # Relative name.
1569    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570    ac_top_srcdir=$ac_top_build_prefix$srcdir
1571    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572esac
1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575    cd "$ac_dir" || { ac_status=$?; continue; }
1576    # Check for guested configure.
1577    if test -f "$ac_srcdir/configure.gnu"; then
1578      echo &&
1579      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580    elif test -f "$ac_srcdir/configure"; then
1581      echo &&
1582      $SHELL "$ac_srcdir/configure" --help=recursive
1583    else
1584      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585    fi || ac_status=$?
1586    cd "$ac_pwd" || { ac_status=$?; break; }
1587  done
1588fi
1589
1590test -n "$ac_init_help" && exit $ac_status
1591if $ac_init_version; then
1592  cat <<\_ACEOF
1593configure
1594generated by GNU Autoconf 2.61
1595
1596Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15972002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1598This configure script is free software; the Free Software Foundation
1599gives unlimited permission to copy, distribute and modify it.
1600_ACEOF
1601  exit
1602fi
1603cat >config.log <<_ACEOF
1604This file contains any messages produced by compilers while
1605running configure, to aid debugging if configure makes a mistake.
1606
1607It was created by $as_me, which was
1608generated by GNU Autoconf 2.61.  Invocation command line was
1609
1610  $ $0 $@
1611
1612_ACEOF
1613exec 5>>config.log
1614{
1615cat <<_ASUNAME
1616## --------- ##
1617## Platform. ##
1618## --------- ##
1619
1620hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1621uname -m = `(uname -m) 2>/dev/null || echo unknown`
1622uname -r = `(uname -r) 2>/dev/null || echo unknown`
1623uname -s = `(uname -s) 2>/dev/null || echo unknown`
1624uname -v = `(uname -v) 2>/dev/null || echo unknown`
1625
1626/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1627/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1628
1629/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1630/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1631/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1632/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1633/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1634/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1635/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1636
1637_ASUNAME
1638
1639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642  IFS=$as_save_IFS
1643  test -z "$as_dir" && as_dir=.
1644  echo "PATH: $as_dir"
1645done
1646IFS=$as_save_IFS
1647
1648} >&5
1649
1650cat >&5 <<_ACEOF
1651
1652
1653## ----------- ##
1654## Core tests. ##
1655## ----------- ##
1656
1657_ACEOF
1658
1659
1660# Keep a trace of the command line.
1661# Strip out --no-create and --no-recursion so they do not pile up.
1662# Strip out --silent because we don't want to record it for future runs.
1663# Also quote any args containing shell meta-characters.
1664# Make two passes to allow for proper duplicate-argument suppression.
1665ac_configure_args=
1666ac_configure_args0=
1667ac_configure_args1=
1668ac_must_keep_next=false
1669for ac_pass in 1 2
1670do
1671  for ac_arg
1672  do
1673    case $ac_arg in
1674    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1675    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1676    | -silent | --silent | --silen | --sile | --sil)
1677      continue ;;
1678    *\'*)
1679      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1680    esac
1681    case $ac_pass in
1682    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1683    2)
1684      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1685      if test $ac_must_keep_next = true; then
1686	ac_must_keep_next=false # Got value, back to normal.
1687      else
1688	case $ac_arg in
1689	  *=* | --config-cache | -C | -disable-* | --disable-* \
1690	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1691	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1692	  | -with-* | --with-* | -without-* | --without-* | --x)
1693	    case "$ac_configure_args0 " in
1694	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695	    esac
1696	    ;;
1697	  -* ) ac_must_keep_next=true ;;
1698	esac
1699      fi
1700      ac_configure_args="$ac_configure_args '$ac_arg'"
1701      ;;
1702    esac
1703  done
1704done
1705$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1706$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1707
1708# When interrupted or exit'd, cleanup temporary files, and complete
1709# config.log.  We remove comments because anyway the quotes in there
1710# would cause problems or look ugly.
1711# WARNING: Use '\'' to represent an apostrophe within the trap.
1712# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1713trap 'exit_status=$?
1714  # Save into config.log some information that might help in debugging.
1715  {
1716    echo
1717
1718    cat <<\_ASBOX
1719## ---------------- ##
1720## Cache variables. ##
1721## ---------------- ##
1722_ASBOX
1723    echo
1724    # The following way of writing the cache mishandles newlines in values,
1725(
1726  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1727    eval ac_val=\$$ac_var
1728    case $ac_val in #(
1729    *${as_nl}*)
1730      case $ac_var in #(
1731      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1732echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1733      esac
1734      case $ac_var in #(
1735      _ | IFS | as_nl) ;; #(
1736      *) $as_unset $ac_var ;;
1737      esac ;;
1738    esac
1739  done
1740  (set) 2>&1 |
1741    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1742    *${as_nl}ac_space=\ *)
1743      sed -n \
1744	"s/'\''/'\''\\\\'\'''\''/g;
1745	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1746      ;; #(
1747    *)
1748      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749      ;;
1750    esac |
1751    sort
1752)
1753    echo
1754
1755    cat <<\_ASBOX
1756## ----------------- ##
1757## Output variables. ##
1758## ----------------- ##
1759_ASBOX
1760    echo
1761    for ac_var in $ac_subst_vars
1762    do
1763      eval ac_val=\$$ac_var
1764      case $ac_val in
1765      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766      esac
1767      echo "$ac_var='\''$ac_val'\''"
1768    done | sort
1769    echo
1770
1771    if test -n "$ac_subst_files"; then
1772      cat <<\_ASBOX
1773## ------------------- ##
1774## File substitutions. ##
1775## ------------------- ##
1776_ASBOX
1777      echo
1778      for ac_var in $ac_subst_files
1779      do
1780	eval ac_val=\$$ac_var
1781	case $ac_val in
1782	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783	esac
1784	echo "$ac_var='\''$ac_val'\''"
1785      done | sort
1786      echo
1787    fi
1788
1789    if test -s confdefs.h; then
1790      cat <<\_ASBOX
1791## ----------- ##
1792## confdefs.h. ##
1793## ----------- ##
1794_ASBOX
1795      echo
1796      cat confdefs.h
1797      echo
1798    fi
1799    test "$ac_signal" != 0 &&
1800      echo "$as_me: caught signal $ac_signal"
1801    echo "$as_me: exit $exit_status"
1802  } >&5
1803  rm -f core *.core core.conftest.* &&
1804    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1805    exit $exit_status
1806' 0
1807for ac_signal in 1 2 13 15; do
1808  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1809done
1810ac_signal=0
1811
1812# confdefs.h avoids OS command line length limits that DEFS can exceed.
1813rm -f -r conftest* confdefs.h
1814
1815# Predefined preprocessor variables.
1816
1817cat >>confdefs.h <<_ACEOF
1818#define PACKAGE_NAME "$PACKAGE_NAME"
1819_ACEOF
1820
1821
1822cat >>confdefs.h <<_ACEOF
1823#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1824_ACEOF
1825
1826
1827cat >>confdefs.h <<_ACEOF
1828#define PACKAGE_VERSION "$PACKAGE_VERSION"
1829_ACEOF
1830
1831
1832cat >>confdefs.h <<_ACEOF
1833#define PACKAGE_STRING "$PACKAGE_STRING"
1834_ACEOF
1835
1836
1837cat >>confdefs.h <<_ACEOF
1838#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1839_ACEOF
1840
1841
1842# Let the site file select an alternate cache file if it wants to.
1843# Prefer explicitly selected file to automatically selected ones.
1844if test -n "$CONFIG_SITE"; then
1845  set x "$CONFIG_SITE"
1846elif test "x$prefix" != xNONE; then
1847  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1848else
1849  set x "$ac_default_prefix/share/config.site" \
1850	"$ac_default_prefix/etc/config.site"
1851fi
1852shift
1853for ac_site_file
1854do
1855  if test -r "$ac_site_file"; then
1856    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1857echo "$as_me: loading site script $ac_site_file" >&6;}
1858    sed 's/^/| /' "$ac_site_file" >&5
1859    . "$ac_site_file"
1860  fi
1861done
1862
1863if test -r "$cache_file"; then
1864  # Some versions of bash will fail to source /dev/null (special
1865  # files actually), so we avoid doing that.
1866  if test -f "$cache_file"; then
1867    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1868echo "$as_me: loading cache $cache_file" >&6;}
1869    case $cache_file in
1870      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1871      *)                      . "./$cache_file";;
1872    esac
1873  fi
1874else
1875  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1876echo "$as_me: creating cache $cache_file" >&6;}
1877  >$cache_file
1878fi
1879
1880# Check that the precious variables saved in the cache have kept the same
1881# value.
1882ac_cache_corrupted=false
1883for ac_var in $ac_precious_vars; do
1884  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1885  eval ac_new_set=\$ac_env_${ac_var}_set
1886  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1887  eval ac_new_val=\$ac_env_${ac_var}_value
1888  case $ac_old_set,$ac_new_set in
1889    set,)
1890      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1891echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1892      ac_cache_corrupted=: ;;
1893    ,set)
1894      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1895echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1896      ac_cache_corrupted=: ;;
1897    ,);;
1898    *)
1899      if test "x$ac_old_val" != "x$ac_new_val"; then
1900	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1901echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1902	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1903echo "$as_me:   former value:  $ac_old_val" >&2;}
1904	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1905echo "$as_me:   current value: $ac_new_val" >&2;}
1906	ac_cache_corrupted=:
1907      fi;;
1908  esac
1909  # Pass precious variables to config.status.
1910  if test "$ac_new_set" = set; then
1911    case $ac_new_val in
1912    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1913    *) ac_arg=$ac_var=$ac_new_val ;;
1914    esac
1915    case " $ac_configure_args " in
1916      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1917      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1918    esac
1919  fi
1920done
1921if $ac_cache_corrupted; then
1922  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1923echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1924  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1925echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1926   { (exit 1); exit 1; }; }
1927fi
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945ac_ext=c
1946ac_cpp='$CPP $CPPFLAGS'
1947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1949ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950
1951
1952
1953
1954# Making releases:
1955#   MICRO_VERSION += 1;
1956#   INTERFACE_AGE += 1;
1957#   BINARY_AGE += 1;
1958# if any functions have been added, set INTERFACE_AGE to 0.
1959# if backwards compatibility has been broken,
1960# set BINARY_AGE and INTERFACE_AGE to 0.
1961
1962MAJOR_VERSION=2
1963MINOR_VERSION=0
1964MICRO_VERSION=11
1965INTERFACE_AGE=1
1966BINARY_AGE=11
1967VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
1968
1969
1970
1971
1972
1973
1974
1975
1976# libtool versioning
1977case `pwd` in
1978  *\ * | *\	*)
1979    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
1980echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1981esac
1982
1983
1984
1985macro_version='2.2.6'
1986macro_revision='1.3012'
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000ltmain="$ac_aux_dir/ltmain.sh"
2001
2002ac_aux_dir=
2003for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2004  if test -f "$ac_dir/install-sh"; then
2005    ac_aux_dir=$ac_dir
2006    ac_install_sh="$ac_aux_dir/install-sh -c"
2007    break
2008  elif test -f "$ac_dir/install.sh"; then
2009    ac_aux_dir=$ac_dir
2010    ac_install_sh="$ac_aux_dir/install.sh -c"
2011    break
2012  elif test -f "$ac_dir/shtool"; then
2013    ac_aux_dir=$ac_dir
2014    ac_install_sh="$ac_aux_dir/shtool install -c"
2015    break
2016  fi
2017done
2018if test -z "$ac_aux_dir"; then
2019  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2020echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2021   { (exit 1); exit 1; }; }
2022fi
2023
2024# These three variables are undocumented and unsupported,
2025# and are intended to be withdrawn in a future Autoconf release.
2026# They can cause serious problems if a builder's source tree is in a directory
2027# whose full name contains unusual characters.
2028ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2029ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2030ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2031
2032
2033# Make sure we can run config.sub.
2034$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2035  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2036echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2037   { (exit 1); exit 1; }; }
2038
2039{ echo "$as_me:$LINENO: checking build system type" >&5
2040echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2041if test "${ac_cv_build+set}" = set; then
2042  echo $ECHO_N "(cached) $ECHO_C" >&6
2043else
2044  ac_build_alias=$build_alias
2045test "x$ac_build_alias" = x &&
2046  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2047test "x$ac_build_alias" = x &&
2048  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2049echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2050   { (exit 1); exit 1; }; }
2051ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2052  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2053echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2054   { (exit 1); exit 1; }; }
2055
2056fi
2057{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2058echo "${ECHO_T}$ac_cv_build" >&6; }
2059case $ac_cv_build in
2060*-*-*) ;;
2061*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2062echo "$as_me: error: invalid value of canonical build" >&2;}
2063   { (exit 1); exit 1; }; };;
2064esac
2065build=$ac_cv_build
2066ac_save_IFS=$IFS; IFS='-'
2067set x $ac_cv_build
2068shift
2069build_cpu=$1
2070build_vendor=$2
2071shift; shift
2072# Remember, the first character of IFS is used to create $*,
2073# except with old shells:
2074build_os=$*
2075IFS=$ac_save_IFS
2076case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2077
2078
2079{ echo "$as_me:$LINENO: checking host system type" >&5
2080echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2081if test "${ac_cv_host+set}" = set; then
2082  echo $ECHO_N "(cached) $ECHO_C" >&6
2083else
2084  if test "x$host_alias" = x; then
2085  ac_cv_host=$ac_cv_build
2086else
2087  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2088    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2089echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2090   { (exit 1); exit 1; }; }
2091fi
2092
2093fi
2094{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2095echo "${ECHO_T}$ac_cv_host" >&6; }
2096case $ac_cv_host in
2097*-*-*) ;;
2098*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2099echo "$as_me: error: invalid value of canonical host" >&2;}
2100   { (exit 1); exit 1; }; };;
2101esac
2102host=$ac_cv_host
2103ac_save_IFS=$IFS; IFS='-'
2104set x $ac_cv_host
2105shift
2106host_cpu=$1
2107host_vendor=$2
2108shift; shift
2109# Remember, the first character of IFS is used to create $*,
2110# except with old shells:
2111host_os=$*
2112IFS=$ac_save_IFS
2113case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2114
2115
2116ac_ext=c
2117ac_cpp='$CPP $CPPFLAGS'
2118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120ac_compiler_gnu=$ac_cv_c_compiler_gnu
2121if test -n "$ac_tool_prefix"; then
2122  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2123set dummy ${ac_tool_prefix}gcc; ac_word=$2
2124{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2126if test "${ac_cv_prog_CC+set}" = set; then
2127  echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129  if test -n "$CC"; then
2130  ac_cv_prog_CC="$CC" # Let the user override the test.
2131else
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135  IFS=$as_save_IFS
2136  test -z "$as_dir" && as_dir=.
2137  for ac_exec_ext in '' $ac_executable_extensions; do
2138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2139    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141    break 2
2142  fi
2143done
2144done
2145IFS=$as_save_IFS
2146
2147fi
2148fi
2149CC=$ac_cv_prog_CC
2150if test -n "$CC"; then
2151  { echo "$as_me:$LINENO: result: $CC" >&5
2152echo "${ECHO_T}$CC" >&6; }
2153else
2154  { echo "$as_me:$LINENO: result: no" >&5
2155echo "${ECHO_T}no" >&6; }
2156fi
2157
2158
2159fi
2160if test -z "$ac_cv_prog_CC"; then
2161  ac_ct_CC=$CC
2162  # Extract the first word of "gcc", so it can be a program name with args.
2163set dummy gcc; ac_word=$2
2164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2167  echo $ECHO_N "(cached) $ECHO_C" >&6
2168else
2169  if test -n "$ac_ct_CC"; then
2170  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2171else
2172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173for as_dir in $PATH
2174do
2175  IFS=$as_save_IFS
2176  test -z "$as_dir" && as_dir=.
2177  for ac_exec_ext in '' $ac_executable_extensions; do
2178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179    ac_cv_prog_ac_ct_CC="gcc"
2180    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181    break 2
2182  fi
2183done
2184done
2185IFS=$as_save_IFS
2186
2187fi
2188fi
2189ac_ct_CC=$ac_cv_prog_ac_ct_CC
2190if test -n "$ac_ct_CC"; then
2191  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2192echo "${ECHO_T}$ac_ct_CC" >&6; }
2193else
2194  { echo "$as_me:$LINENO: result: no" >&5
2195echo "${ECHO_T}no" >&6; }
2196fi
2197
2198  if test "x$ac_ct_CC" = x; then
2199    CC=""
2200  else
2201    case $cross_compiling:$ac_tool_warned in
2202yes:)
2203{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2204whose name does not start with the host triplet.  If you think this
2205configuration is useful to you, please write to autoconf@gnu.org." >&5
2206echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2207whose name does not start with the host triplet.  If you think this
2208configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2209ac_tool_warned=yes ;;
2210esac
2211    CC=$ac_ct_CC
2212  fi
2213else
2214  CC="$ac_cv_prog_CC"
2215fi
2216
2217if test -z "$CC"; then
2218          if test -n "$ac_tool_prefix"; then
2219    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2220set dummy ${ac_tool_prefix}cc; ac_word=$2
2221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2223if test "${ac_cv_prog_CC+set}" = set; then
2224  echo $ECHO_N "(cached) $ECHO_C" >&6
2225else
2226  if test -n "$CC"; then
2227  ac_cv_prog_CC="$CC" # Let the user override the test.
2228else
2229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230for as_dir in $PATH
2231do
2232  IFS=$as_save_IFS
2233  test -z "$as_dir" && as_dir=.
2234  for ac_exec_ext in '' $ac_executable_extensions; do
2235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2236    ac_cv_prog_CC="${ac_tool_prefix}cc"
2237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238    break 2
2239  fi
2240done
2241done
2242IFS=$as_save_IFS
2243
2244fi
2245fi
2246CC=$ac_cv_prog_CC
2247if test -n "$CC"; then
2248  { echo "$as_me:$LINENO: result: $CC" >&5
2249echo "${ECHO_T}$CC" >&6; }
2250else
2251  { echo "$as_me:$LINENO: result: no" >&5
2252echo "${ECHO_T}no" >&6; }
2253fi
2254
2255
2256  fi
2257fi
2258if test -z "$CC"; then
2259  # Extract the first word of "cc", so it can be a program name with args.
2260set dummy cc; ac_word=$2
2261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2263if test "${ac_cv_prog_CC+set}" = set; then
2264  echo $ECHO_N "(cached) $ECHO_C" >&6
2265else
2266  if test -n "$CC"; then
2267  ac_cv_prog_CC="$CC" # Let the user override the test.
2268else
2269  ac_prog_rejected=no
2270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271for as_dir in $PATH
2272do
2273  IFS=$as_save_IFS
2274  test -z "$as_dir" && as_dir=.
2275  for ac_exec_ext in '' $ac_executable_extensions; do
2276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2277    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2278       ac_prog_rejected=yes
2279       continue
2280     fi
2281    ac_cv_prog_CC="cc"
2282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283    break 2
2284  fi
2285done
2286done
2287IFS=$as_save_IFS
2288
2289if test $ac_prog_rejected = yes; then
2290  # We found a bogon in the path, so make sure we never use it.
2291  set dummy $ac_cv_prog_CC
2292  shift
2293  if test $# != 0; then
2294    # We chose a different compiler from the bogus one.
2295    # However, it has the same basename, so the bogon will be chosen
2296    # first if we set CC to just the basename; use the full file name.
2297    shift
2298    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2299  fi
2300fi
2301fi
2302fi
2303CC=$ac_cv_prog_CC
2304if test -n "$CC"; then
2305  { echo "$as_me:$LINENO: result: $CC" >&5
2306echo "${ECHO_T}$CC" >&6; }
2307else
2308  { echo "$as_me:$LINENO: result: no" >&5
2309echo "${ECHO_T}no" >&6; }
2310fi
2311
2312
2313fi
2314if test -z "$CC"; then
2315  if test -n "$ac_tool_prefix"; then
2316  for ac_prog in cl.exe
2317  do
2318    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2319set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322if test "${ac_cv_prog_CC+set}" = set; then
2323  echo $ECHO_N "(cached) $ECHO_C" >&6
2324else
2325  if test -n "$CC"; then
2326  ac_cv_prog_CC="$CC" # Let the user override the test.
2327else
2328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329for as_dir in $PATH
2330do
2331  IFS=$as_save_IFS
2332  test -z "$as_dir" && as_dir=.
2333  for ac_exec_ext in '' $ac_executable_extensions; do
2334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337    break 2
2338  fi
2339done
2340done
2341IFS=$as_save_IFS
2342
2343fi
2344fi
2345CC=$ac_cv_prog_CC
2346if test -n "$CC"; then
2347  { echo "$as_me:$LINENO: result: $CC" >&5
2348echo "${ECHO_T}$CC" >&6; }
2349else
2350  { echo "$as_me:$LINENO: result: no" >&5
2351echo "${ECHO_T}no" >&6; }
2352fi
2353
2354
2355    test -n "$CC" && break
2356  done
2357fi
2358if test -z "$CC"; then
2359  ac_ct_CC=$CC
2360  for ac_prog in cl.exe
2361do
2362  # Extract the first word of "$ac_prog", so it can be a program name with args.
2363set dummy $ac_prog; ac_word=$2
2364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2367  echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
2369  if test -n "$ac_ct_CC"; then
2370  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371else
2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373for as_dir in $PATH
2374do
2375  IFS=$as_save_IFS
2376  test -z "$as_dir" && as_dir=.
2377  for ac_exec_ext in '' $ac_executable_extensions; do
2378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379    ac_cv_prog_ac_ct_CC="$ac_prog"
2380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381    break 2
2382  fi
2383done
2384done
2385IFS=$as_save_IFS
2386
2387fi
2388fi
2389ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390if test -n "$ac_ct_CC"; then
2391  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392echo "${ECHO_T}$ac_ct_CC" >&6; }
2393else
2394  { echo "$as_me:$LINENO: result: no" >&5
2395echo "${ECHO_T}no" >&6; }
2396fi
2397
2398
2399  test -n "$ac_ct_CC" && break
2400done
2401
2402  if test "x$ac_ct_CC" = x; then
2403    CC=""
2404  else
2405    case $cross_compiling:$ac_tool_warned in
2406yes:)
2407{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2408whose name does not start with the host triplet.  If you think this
2409configuration is useful to you, please write to autoconf@gnu.org." >&5
2410echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2411whose name does not start with the host triplet.  If you think this
2412configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2413ac_tool_warned=yes ;;
2414esac
2415    CC=$ac_ct_CC
2416  fi
2417fi
2418
2419fi
2420
2421
2422test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2423See \`config.log' for more details." >&5
2424echo "$as_me: error: no acceptable C compiler found in \$PATH
2425See \`config.log' for more details." >&2;}
2426   { (exit 1); exit 1; }; }
2427
2428# Provide some information about the compiler.
2429echo "$as_me:$LINENO: checking for C compiler version" >&5
2430ac_compiler=`set X $ac_compile; echo $2`
2431{ (ac_try="$ac_compiler --version >&5"
2432case "(($ac_try" in
2433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434  *) ac_try_echo=$ac_try;;
2435esac
2436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437  (eval "$ac_compiler --version >&5") 2>&5
2438  ac_status=$?
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); }
2441{ (ac_try="$ac_compiler -v >&5"
2442case "(($ac_try" in
2443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444  *) ac_try_echo=$ac_try;;
2445esac
2446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447  (eval "$ac_compiler -v >&5") 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); }
2451{ (ac_try="$ac_compiler -V >&5"
2452case "(($ac_try" in
2453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454  *) ac_try_echo=$ac_try;;
2455esac
2456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457  (eval "$ac_compiler -V >&5") 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }
2461
2462cat >conftest.$ac_ext <<_ACEOF
2463/* confdefs.h.  */
2464_ACEOF
2465cat confdefs.h >>conftest.$ac_ext
2466cat >>conftest.$ac_ext <<_ACEOF
2467/* end confdefs.h.  */
2468
2469int
2470main ()
2471{
2472
2473  ;
2474  return 0;
2475}
2476_ACEOF
2477ac_clean_files_save=$ac_clean_files
2478ac_clean_files="$ac_clean_files a.out a.exe b.out"
2479# Try to create an executable without -o first, disregard a.out.
2480# It will help us diagnose broken compilers, and finding out an intuition
2481# of exeext.
2482{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2483echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2484ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2485#
2486# List of possible output files, starting from the most likely.
2487# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2488# only as a last resort.  b.out is created by i960 compilers.
2489ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2490#
2491# The IRIX 6 linker writes into existing files which may not be
2492# executable, retaining their permissions.  Remove them first so a
2493# subsequent execution test works.
2494ac_rmfiles=
2495for ac_file in $ac_files
2496do
2497  case $ac_file in
2498    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2499    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2500  esac
2501done
2502rm -f $ac_rmfiles
2503
2504if { (ac_try="$ac_link_default"
2505case "(($ac_try" in
2506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507  *) ac_try_echo=$ac_try;;
2508esac
2509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510  (eval "$ac_link_default") 2>&5
2511  ac_status=$?
2512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513  (exit $ac_status); }; then
2514  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2515# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2516# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2517# so that the user can short-circuit this test for compilers unknown to
2518# Autoconf.
2519for ac_file in $ac_files ''
2520do
2521  test -f "$ac_file" || continue
2522  case $ac_file in
2523    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2524	;;
2525    [ab].out )
2526	# We found the default executable, but exeext='' is most
2527	# certainly right.
2528	break;;
2529    *.* )
2530        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2531	then :; else
2532	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2533	fi
2534	# We set ac_cv_exeext here because the later test for it is not
2535	# safe: cross compilers may not add the suffix if given an `-o'
2536	# argument, so we may need to know it at that point already.
2537	# Even if this section looks crufty: it has the advantage of
2538	# actually working.
2539	break;;
2540    * )
2541	break;;
2542  esac
2543done
2544test "$ac_cv_exeext" = no && ac_cv_exeext=
2545
2546else
2547  ac_file=''
2548fi
2549
2550{ echo "$as_me:$LINENO: result: $ac_file" >&5
2551echo "${ECHO_T}$ac_file" >&6; }
2552if test -z "$ac_file"; then
2553  echo "$as_me: failed program was:" >&5
2554sed 's/^/| /' conftest.$ac_ext >&5
2555
2556{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2557See \`config.log' for more details." >&5
2558echo "$as_me: error: C compiler cannot create executables
2559See \`config.log' for more details." >&2;}
2560   { (exit 77); exit 77; }; }
2561fi
2562
2563ac_exeext=$ac_cv_exeext
2564
2565# Check that the compiler produces executables we can run.  If not, either
2566# the compiler is broken, or we cross compile.
2567{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2568echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2569# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2570# If not cross compiling, check that we can run a simple program.
2571if test "$cross_compiling" != yes; then
2572  if { ac_try='./$ac_file'
2573  { (case "(($ac_try" in
2574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575  *) ac_try_echo=$ac_try;;
2576esac
2577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578  (eval "$ac_try") 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; }; then
2582    cross_compiling=no
2583  else
2584    if test "$cross_compiling" = maybe; then
2585	cross_compiling=yes
2586    else
2587	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2588If you meant to cross compile, use \`--host'.
2589See \`config.log' for more details." >&5
2590echo "$as_me: error: cannot run C compiled programs.
2591If you meant to cross compile, use \`--host'.
2592See \`config.log' for more details." >&2;}
2593   { (exit 1); exit 1; }; }
2594    fi
2595  fi
2596fi
2597{ echo "$as_me:$LINENO: result: yes" >&5
2598echo "${ECHO_T}yes" >&6; }
2599
2600rm -f a.out a.exe conftest$ac_cv_exeext b.out
2601ac_clean_files=$ac_clean_files_save
2602# Check that the compiler produces executables we can run.  If not, either
2603# the compiler is broken, or we cross compile.
2604{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2605echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2606{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2607echo "${ECHO_T}$cross_compiling" >&6; }
2608
2609{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2610echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2611if { (ac_try="$ac_link"
2612case "(($ac_try" in
2613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614  *) ac_try_echo=$ac_try;;
2615esac
2616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617  (eval "$ac_link") 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; then
2621  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2622# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2623# work properly (i.e., refer to `conftest.exe'), while it won't with
2624# `rm'.
2625for ac_file in conftest.exe conftest conftest.*; do
2626  test -f "$ac_file" || continue
2627  case $ac_file in
2628    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2629    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2630	  break;;
2631    * ) break;;
2632  esac
2633done
2634else
2635  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2636See \`config.log' for more details." >&5
2637echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2638See \`config.log' for more details." >&2;}
2639   { (exit 1); exit 1; }; }
2640fi
2641
2642rm -f conftest$ac_cv_exeext
2643{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2644echo "${ECHO_T}$ac_cv_exeext" >&6; }
2645
2646rm -f conftest.$ac_ext
2647EXEEXT=$ac_cv_exeext
2648ac_exeext=$EXEEXT
2649{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2650echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2651if test "${ac_cv_objext+set}" = set; then
2652  echo $ECHO_N "(cached) $ECHO_C" >&6
2653else
2654  cat >conftest.$ac_ext <<_ACEOF
2655/* confdefs.h.  */
2656_ACEOF
2657cat confdefs.h >>conftest.$ac_ext
2658cat >>conftest.$ac_ext <<_ACEOF
2659/* end confdefs.h.  */
2660
2661int
2662main ()
2663{
2664
2665  ;
2666  return 0;
2667}
2668_ACEOF
2669rm -f conftest.o conftest.obj
2670if { (ac_try="$ac_compile"
2671case "(($ac_try" in
2672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673  *) ac_try_echo=$ac_try;;
2674esac
2675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676  (eval "$ac_compile") 2>&5
2677  ac_status=$?
2678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679  (exit $ac_status); }; then
2680  for ac_file in conftest.o conftest.obj conftest.*; do
2681  test -f "$ac_file" || continue;
2682  case $ac_file in
2683    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2684    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2685       break;;
2686  esac
2687done
2688else
2689  echo "$as_me: failed program was:" >&5
2690sed 's/^/| /' conftest.$ac_ext >&5
2691
2692{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2693See \`config.log' for more details." >&5
2694echo "$as_me: error: cannot compute suffix of object files: cannot compile
2695See \`config.log' for more details." >&2;}
2696   { (exit 1); exit 1; }; }
2697fi
2698
2699rm -f conftest.$ac_cv_objext conftest.$ac_ext
2700fi
2701{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2702echo "${ECHO_T}$ac_cv_objext" >&6; }
2703OBJEXT=$ac_cv_objext
2704ac_objext=$OBJEXT
2705{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2706echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2707if test "${ac_cv_c_compiler_gnu+set}" = set; then
2708  echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710  cat >conftest.$ac_ext <<_ACEOF
2711/* confdefs.h.  */
2712_ACEOF
2713cat confdefs.h >>conftest.$ac_ext
2714cat >>conftest.$ac_ext <<_ACEOF
2715/* end confdefs.h.  */
2716
2717int
2718main ()
2719{
2720#ifndef __GNUC__
2721       choke me
2722#endif
2723
2724  ;
2725  return 0;
2726}
2727_ACEOF
2728rm -f conftest.$ac_objext
2729if { (ac_try="$ac_compile"
2730case "(($ac_try" in
2731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732  *) ac_try_echo=$ac_try;;
2733esac
2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735  (eval "$ac_compile") 2>conftest.er1
2736  ac_status=$?
2737  grep -v '^ *+' conftest.er1 >conftest.err
2738  rm -f conftest.er1
2739  cat conftest.err >&5
2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741  (exit $ac_status); } && {
2742	 test -z "$ac_c_werror_flag" ||
2743	 test ! -s conftest.err
2744       } && test -s conftest.$ac_objext; then
2745  ac_compiler_gnu=yes
2746else
2747  echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750	ac_compiler_gnu=no
2751fi
2752
2753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2754ac_cv_c_compiler_gnu=$ac_compiler_gnu
2755
2756fi
2757{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2758echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2759GCC=`test $ac_compiler_gnu = yes && echo yes`
2760ac_test_CFLAGS=${CFLAGS+set}
2761ac_save_CFLAGS=$CFLAGS
2762{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2763echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2764if test "${ac_cv_prog_cc_g+set}" = set; then
2765  echo $ECHO_N "(cached) $ECHO_C" >&6
2766else
2767  ac_save_c_werror_flag=$ac_c_werror_flag
2768   ac_c_werror_flag=yes
2769   ac_cv_prog_cc_g=no
2770   CFLAGS="-g"
2771   cat >conftest.$ac_ext <<_ACEOF
2772/* confdefs.h.  */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
2776/* end confdefs.h.  */
2777
2778int
2779main ()
2780{
2781
2782  ;
2783  return 0;
2784}
2785_ACEOF
2786rm -f conftest.$ac_objext
2787if { (ac_try="$ac_compile"
2788case "(($ac_try" in
2789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790  *) ac_try_echo=$ac_try;;
2791esac
2792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793  (eval "$ac_compile") 2>conftest.er1
2794  ac_status=$?
2795  grep -v '^ *+' conftest.er1 >conftest.err
2796  rm -f conftest.er1
2797  cat conftest.err >&5
2798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799  (exit $ac_status); } && {
2800	 test -z "$ac_c_werror_flag" ||
2801	 test ! -s conftest.err
2802       } && test -s conftest.$ac_objext; then
2803  ac_cv_prog_cc_g=yes
2804else
2805  echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
2808	CFLAGS=""
2809      cat >conftest.$ac_ext <<_ACEOF
2810/* confdefs.h.  */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h.  */
2815
2816int
2817main ()
2818{
2819
2820  ;
2821  return 0;
2822}
2823_ACEOF
2824rm -f conftest.$ac_objext
2825if { (ac_try="$ac_compile"
2826case "(($ac_try" in
2827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828  *) ac_try_echo=$ac_try;;
2829esac
2830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831  (eval "$ac_compile") 2>conftest.er1
2832  ac_status=$?
2833  grep -v '^ *+' conftest.er1 >conftest.err
2834  rm -f conftest.er1
2835  cat conftest.err >&5
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); } && {
2838	 test -z "$ac_c_werror_flag" ||
2839	 test ! -s conftest.err
2840       } && test -s conftest.$ac_objext; then
2841  :
2842else
2843  echo "$as_me: failed program was:" >&5
2844sed 's/^/| /' conftest.$ac_ext >&5
2845
2846	ac_c_werror_flag=$ac_save_c_werror_flag
2847	 CFLAGS="-g"
2848	 cat >conftest.$ac_ext <<_ACEOF
2849/* confdefs.h.  */
2850_ACEOF
2851cat confdefs.h >>conftest.$ac_ext
2852cat >>conftest.$ac_ext <<_ACEOF
2853/* end confdefs.h.  */
2854
2855int
2856main ()
2857{
2858
2859  ;
2860  return 0;
2861}
2862_ACEOF
2863rm -f conftest.$ac_objext
2864if { (ac_try="$ac_compile"
2865case "(($ac_try" in
2866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867  *) ac_try_echo=$ac_try;;
2868esac
2869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870  (eval "$ac_compile") 2>conftest.er1
2871  ac_status=$?
2872  grep -v '^ *+' conftest.er1 >conftest.err
2873  rm -f conftest.er1
2874  cat conftest.err >&5
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); } && {
2877	 test -z "$ac_c_werror_flag" ||
2878	 test ! -s conftest.err
2879       } && test -s conftest.$ac_objext; then
2880  ac_cv_prog_cc_g=yes
2881else
2882  echo "$as_me: failed program was:" >&5
2883sed 's/^/| /' conftest.$ac_ext >&5
2884
2885
2886fi
2887
2888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889fi
2890
2891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892fi
2893
2894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895   ac_c_werror_flag=$ac_save_c_werror_flag
2896fi
2897{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2898echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2899if test "$ac_test_CFLAGS" = set; then
2900  CFLAGS=$ac_save_CFLAGS
2901elif test $ac_cv_prog_cc_g = yes; then
2902  if test "$GCC" = yes; then
2903    CFLAGS="-g -O2"
2904  else
2905    CFLAGS="-g"
2906  fi
2907else
2908  if test "$GCC" = yes; then
2909    CFLAGS="-O2"
2910  else
2911    CFLAGS=
2912  fi
2913fi
2914{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2915echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2916if test "${ac_cv_prog_cc_c89+set}" = set; then
2917  echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919  ac_cv_prog_cc_c89=no
2920ac_save_CC=$CC
2921cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h.  */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h.  */
2927#include <stdarg.h>
2928#include <stdio.h>
2929#include <sys/types.h>
2930#include <sys/stat.h>
2931/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2932struct buf { int x; };
2933FILE * (*rcsopen) (struct buf *, struct stat *, int);
2934static char *e (p, i)
2935     char **p;
2936     int i;
2937{
2938  return p[i];
2939}
2940static char *f (char * (*g) (char **, int), char **p, ...)
2941{
2942  char *s;
2943  va_list v;
2944  va_start (v,p);
2945  s = g (p, va_arg (v,int));
2946  va_end (v);
2947  return s;
2948}
2949
2950/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2951   function prototypes and stuff, but not '\xHH' hex character constants.
2952   These don't provoke an error unfortunately, instead are silently treated
2953   as 'x'.  The following induces an error, until -std is added to get
2954   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2955   array size at least.  It's necessary to write '\x00'==0 to get something
2956   that's true only with -std.  */
2957int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2958
2959/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2960   inside strings and character constants.  */
2961#define FOO(x) 'x'
2962int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2963
2964int test (int i, double x);
2965struct s1 {int (*f) (int a);};
2966struct s2 {int (*f) (double a);};
2967int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2968int argc;
2969char **argv;
2970int
2971main ()
2972{
2973return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2974  ;
2975  return 0;
2976}
2977_ACEOF
2978for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2979	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2980do
2981  CC="$ac_save_CC $ac_arg"
2982  rm -f conftest.$ac_objext
2983if { (ac_try="$ac_compile"
2984case "(($ac_try" in
2985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986  *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989  (eval "$ac_compile") 2>conftest.er1
2990  ac_status=$?
2991  grep -v '^ *+' conftest.er1 >conftest.err
2992  rm -f conftest.er1
2993  cat conftest.err >&5
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); } && {
2996	 test -z "$ac_c_werror_flag" ||
2997	 test ! -s conftest.err
2998       } && test -s conftest.$ac_objext; then
2999  ac_cv_prog_cc_c89=$ac_arg
3000else
3001  echo "$as_me: failed program was:" >&5
3002sed 's/^/| /' conftest.$ac_ext >&5
3003
3004
3005fi
3006
3007rm -f core conftest.err conftest.$ac_objext
3008  test "x$ac_cv_prog_cc_c89" != "xno" && break
3009done
3010rm -f conftest.$ac_ext
3011CC=$ac_save_CC
3012
3013fi
3014# AC_CACHE_VAL
3015case "x$ac_cv_prog_cc_c89" in
3016  x)
3017    { echo "$as_me:$LINENO: result: none needed" >&5
3018echo "${ECHO_T}none needed" >&6; } ;;
3019  xno)
3020    { echo "$as_me:$LINENO: result: unsupported" >&5
3021echo "${ECHO_T}unsupported" >&6; } ;;
3022  *)
3023    CC="$CC $ac_cv_prog_cc_c89"
3024    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3025echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3026esac
3027
3028
3029ac_ext=c
3030ac_cpp='$CPP $CPPFLAGS'
3031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034
3035{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3036echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3037if test "${ac_cv_path_SED+set}" = set; then
3038  echo $ECHO_N "(cached) $ECHO_C" >&6
3039else
3040            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3041     for ac_i in 1 2 3 4 5 6 7; do
3042       ac_script="$ac_script$as_nl$ac_script"
3043     done
3044     echo "$ac_script" | sed 99q >conftest.sed
3045     $as_unset ac_script || ac_script=
3046     # Extract the first word of "sed gsed" to use in msg output
3047if test -z "$SED"; then
3048set dummy sed gsed; ac_prog_name=$2
3049if test "${ac_cv_path_SED+set}" = set; then
3050  echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052  ac_path_SED_found=false
3053# Loop through the user's path and test for each of PROGNAME-LIST
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057  IFS=$as_save_IFS
3058  test -z "$as_dir" && as_dir=.
3059  for ac_prog in sed gsed; do
3060  for ac_exec_ext in '' $ac_executable_extensions; do
3061    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3062    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3063    # Check for GNU ac_path_SED and select it if it is found.
3064  # Check for GNU $ac_path_SED
3065case `"$ac_path_SED" --version 2>&1` in
3066*GNU*)
3067  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3068*)
3069  ac_count=0
3070  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3071  while :
3072  do
3073    cat "conftest.in" "conftest.in" >"conftest.tmp"
3074    mv "conftest.tmp" "conftest.in"
3075    cp "conftest.in" "conftest.nl"
3076    echo '' >> "conftest.nl"
3077    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3078    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3079    ac_count=`expr $ac_count + 1`
3080    if test $ac_count -gt ${ac_path_SED_max-0}; then
3081      # Best one so far, save it but keep looking for a better one
3082      ac_cv_path_SED="$ac_path_SED"
3083      ac_path_SED_max=$ac_count
3084    fi
3085    # 10*(2^10) chars as input seems more than enough
3086    test $ac_count -gt 10 && break
3087  done
3088  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3089esac
3090
3091
3092    $ac_path_SED_found && break 3
3093  done
3094done
3095
3096done
3097IFS=$as_save_IFS
3098
3099
3100fi
3101
3102SED="$ac_cv_path_SED"
3103if test -z "$SED"; then
3104  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3105echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3106   { (exit 1); exit 1; }; }
3107fi
3108
3109else
3110  ac_cv_path_SED=$SED
3111fi
3112
3113fi
3114{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3115echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3116 SED="$ac_cv_path_SED"
3117  rm -f conftest.sed
3118
3119test -z "$SED" && SED=sed
3120Xsed="$SED -e 1s/^X//"
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3133echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3134if test "${ac_cv_path_GREP+set}" = set; then
3135  echo $ECHO_N "(cached) $ECHO_C" >&6
3136else
3137  # Extract the first word of "grep ggrep" to use in msg output
3138if test -z "$GREP"; then
3139set dummy grep ggrep; ac_prog_name=$2
3140if test "${ac_cv_path_GREP+set}" = set; then
3141  echo $ECHO_N "(cached) $ECHO_C" >&6
3142else
3143  ac_path_GREP_found=false
3144# Loop through the user's path and test for each of PROGNAME-LIST
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3147do
3148  IFS=$as_save_IFS
3149  test -z "$as_dir" && as_dir=.
3150  for ac_prog in grep ggrep; do
3151  for ac_exec_ext in '' $ac_executable_extensions; do
3152    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3153    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3154    # Check for GNU ac_path_GREP and select it if it is found.
3155  # Check for GNU $ac_path_GREP
3156case `"$ac_path_GREP" --version 2>&1` in
3157*GNU*)
3158  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3159*)
3160  ac_count=0
3161  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3162  while :
3163  do
3164    cat "conftest.in" "conftest.in" >"conftest.tmp"
3165    mv "conftest.tmp" "conftest.in"
3166    cp "conftest.in" "conftest.nl"
3167    echo 'GREP' >> "conftest.nl"
3168    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3169    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3170    ac_count=`expr $ac_count + 1`
3171    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3172      # Best one so far, save it but keep looking for a better one
3173      ac_cv_path_GREP="$ac_path_GREP"
3174      ac_path_GREP_max=$ac_count
3175    fi
3176    # 10*(2^10) chars as input seems more than enough
3177    test $ac_count -gt 10 && break
3178  done
3179  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3180esac
3181
3182
3183    $ac_path_GREP_found && break 3
3184  done
3185done
3186
3187done
3188IFS=$as_save_IFS
3189
3190
3191fi
3192
3193GREP="$ac_cv_path_GREP"
3194if test -z "$GREP"; then
3195  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3196echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3197   { (exit 1); exit 1; }; }
3198fi
3199
3200else
3201  ac_cv_path_GREP=$GREP
3202fi
3203
3204
3205fi
3206{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3207echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3208 GREP="$ac_cv_path_GREP"
3209
3210
3211{ echo "$as_me:$LINENO: checking for egrep" >&5
3212echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3213if test "${ac_cv_path_EGREP+set}" = set; then
3214  echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3217   then ac_cv_path_EGREP="$GREP -E"
3218   else
3219     # Extract the first word of "egrep" to use in msg output
3220if test -z "$EGREP"; then
3221set dummy egrep; ac_prog_name=$2
3222if test "${ac_cv_path_EGREP+set}" = set; then
3223  echo $ECHO_N "(cached) $ECHO_C" >&6
3224else
3225  ac_path_EGREP_found=false
3226# Loop through the user's path and test for each of PROGNAME-LIST
3227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3229do
3230  IFS=$as_save_IFS
3231  test -z "$as_dir" && as_dir=.
3232  for ac_prog in egrep; do
3233  for ac_exec_ext in '' $ac_executable_extensions; do
3234    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3235    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3236    # Check for GNU ac_path_EGREP and select it if it is found.
3237  # Check for GNU $ac_path_EGREP
3238case `"$ac_path_EGREP" --version 2>&1` in
3239*GNU*)
3240  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3241*)
3242  ac_count=0
3243  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3244  while :
3245  do
3246    cat "conftest.in" "conftest.in" >"conftest.tmp"
3247    mv "conftest.tmp" "conftest.in"
3248    cp "conftest.in" "conftest.nl"
3249    echo 'EGREP' >> "conftest.nl"
3250    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3251    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3252    ac_count=`expr $ac_count + 1`
3253    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3254      # Best one so far, save it but keep looking for a better one
3255      ac_cv_path_EGREP="$ac_path_EGREP"
3256      ac_path_EGREP_max=$ac_count
3257    fi
3258    # 10*(2^10) chars as input seems more than enough
3259    test $ac_count -gt 10 && break
3260  done
3261  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3262esac
3263
3264
3265    $ac_path_EGREP_found && break 3
3266  done
3267done
3268
3269done
3270IFS=$as_save_IFS
3271
3272
3273fi
3274
3275EGREP="$ac_cv_path_EGREP"
3276if test -z "$EGREP"; then
3277  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3278echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3279   { (exit 1); exit 1; }; }
3280fi
3281
3282else
3283  ac_cv_path_EGREP=$EGREP
3284fi
3285
3286
3287   fi
3288fi
3289{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3290echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3291 EGREP="$ac_cv_path_EGREP"
3292
3293
3294{ echo "$as_me:$LINENO: checking for fgrep" >&5
3295echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3296if test "${ac_cv_path_FGREP+set}" = set; then
3297  echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3300   then ac_cv_path_FGREP="$GREP -F"
3301   else
3302     # Extract the first word of "fgrep" to use in msg output
3303if test -z "$FGREP"; then
3304set dummy fgrep; ac_prog_name=$2
3305if test "${ac_cv_path_FGREP+set}" = set; then
3306  echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
3308  ac_path_FGREP_found=false
3309# Loop through the user's path and test for each of PROGNAME-LIST
3310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3312do
3313  IFS=$as_save_IFS
3314  test -z "$as_dir" && as_dir=.
3315  for ac_prog in fgrep; do
3316  for ac_exec_ext in '' $ac_executable_extensions; do
3317    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3318    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3319    # Check for GNU ac_path_FGREP and select it if it is found.
3320  # Check for GNU $ac_path_FGREP
3321case `"$ac_path_FGREP" --version 2>&1` in
3322*GNU*)
3323  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3324*)
3325  ac_count=0
3326  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3327  while :
3328  do
3329    cat "conftest.in" "conftest.in" >"conftest.tmp"
3330    mv "conftest.tmp" "conftest.in"
3331    cp "conftest.in" "conftest.nl"
3332    echo 'FGREP' >> "conftest.nl"
3333    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3334    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3335    ac_count=`expr $ac_count + 1`
3336    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3337      # Best one so far, save it but keep looking for a better one
3338      ac_cv_path_FGREP="$ac_path_FGREP"
3339      ac_path_FGREP_max=$ac_count
3340    fi
3341    # 10*(2^10) chars as input seems more than enough
3342    test $ac_count -gt 10 && break
3343  done
3344  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3345esac
3346
3347
3348    $ac_path_FGREP_found && break 3
3349  done
3350done
3351
3352done
3353IFS=$as_save_IFS
3354
3355
3356fi
3357
3358FGREP="$ac_cv_path_FGREP"
3359if test -z "$FGREP"; then
3360  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3361echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3362   { (exit 1); exit 1; }; }
3363fi
3364
3365else
3366  ac_cv_path_FGREP=$FGREP
3367fi
3368
3369
3370   fi
3371fi
3372{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3373echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3374 FGREP="$ac_cv_path_FGREP"
3375
3376
3377test -z "$GREP" && GREP=grep
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397# Check whether --with-gnu-ld was given.
3398if test "${with_gnu_ld+set}" = set; then
3399  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3400else
3401  with_gnu_ld=no
3402fi
3403
3404ac_prog=ld
3405if test "$GCC" = yes; then
3406  # Check if gcc -print-prog-name=ld gives a path.
3407  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3408echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3409  case $host in
3410  *-*-mingw*)
3411    # gcc leaves a trailing carriage return which upsets mingw
3412    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3413  *)
3414    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3415  esac
3416  case $ac_prog in
3417    # Accept absolute paths.
3418    [\\/]* | ?:[\\/]*)
3419      re_direlt='/[^/][^/]*/\.\./'
3420      # Canonicalize the pathname of ld
3421      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3422      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3423	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3424      done
3425      test -z "$LD" && LD="$ac_prog"
3426      ;;
3427  "")
3428    # If it fails, then pretend we aren't using GCC.
3429    ac_prog=ld
3430    ;;
3431  *)
3432    # If it is relative, then search for the first ld in PATH.
3433    with_gnu_ld=unknown
3434    ;;
3435  esac
3436elif test "$with_gnu_ld" = yes; then
3437  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3438echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3439else
3440  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3441echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3442fi
3443if test "${lt_cv_path_LD+set}" = set; then
3444  echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446  if test -z "$LD"; then
3447  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3448  for ac_dir in $PATH; do
3449    IFS="$lt_save_ifs"
3450    test -z "$ac_dir" && ac_dir=.
3451    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3452      lt_cv_path_LD="$ac_dir/$ac_prog"
3453      # Check to see if the program is GNU ld.  I'd rather use --version,
3454      # but apparently some variants of GNU ld only accept -v.
3455      # Break only if it was the GNU/non-GNU ld that we prefer.
3456      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3457      *GNU* | *'with BFD'*)
3458	test "$with_gnu_ld" != no && break
3459	;;
3460      *)
3461	test "$with_gnu_ld" != yes && break
3462	;;
3463      esac
3464    fi
3465  done
3466  IFS="$lt_save_ifs"
3467else
3468  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3469fi
3470fi
3471
3472LD="$lt_cv_path_LD"
3473if test -n "$LD"; then
3474  { echo "$as_me:$LINENO: result: $LD" >&5
3475echo "${ECHO_T}$LD" >&6; }
3476else
3477  { echo "$as_me:$LINENO: result: no" >&5
3478echo "${ECHO_T}no" >&6; }
3479fi
3480test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3481echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3482   { (exit 1); exit 1; }; }
3483{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3484echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3485if test "${lt_cv_prog_gnu_ld+set}" = set; then
3486  echo $ECHO_N "(cached) $ECHO_C" >&6
3487else
3488  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3489case `$LD -v 2>&1 </dev/null` in
3490*GNU* | *'with BFD'*)
3491  lt_cv_prog_gnu_ld=yes
3492  ;;
3493*)
3494  lt_cv_prog_gnu_ld=no
3495  ;;
3496esac
3497fi
3498{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3499echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3500with_gnu_ld=$lt_cv_prog_gnu_ld
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3511echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
3512if test "${lt_cv_path_NM+set}" = set; then
3513  echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515  if test -n "$NM"; then
3516  # Let the user override the test.
3517  lt_cv_path_NM="$NM"
3518else
3519  lt_nm_to_check="${ac_tool_prefix}nm"
3520  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3521    lt_nm_to_check="$lt_nm_to_check nm"
3522  fi
3523  for lt_tmp_nm in $lt_nm_to_check; do
3524    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3525    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3526      IFS="$lt_save_ifs"
3527      test -z "$ac_dir" && ac_dir=.
3528      tmp_nm="$ac_dir/$lt_tmp_nm"
3529      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3530	# Check to see if the nm accepts a BSD-compat flag.
3531	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3532	#   nm: unknown option "B" ignored
3533	# Tru64's nm complains that /dev/null is an invalid object file
3534	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3535	*/dev/null* | *'Invalid file or object type'*)
3536	  lt_cv_path_NM="$tmp_nm -B"
3537	  break
3538	  ;;
3539	*)
3540	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3541	  */dev/null*)
3542	    lt_cv_path_NM="$tmp_nm -p"
3543	    break
3544	    ;;
3545	  *)
3546	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3547	    continue # so that we can try to find one that supports BSD flags
3548	    ;;
3549	  esac
3550	  ;;
3551	esac
3552      fi
3553    done
3554    IFS="$lt_save_ifs"
3555  done
3556  : ${lt_cv_path_NM=no}
3557fi
3558fi
3559{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3560echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3561if test "$lt_cv_path_NM" != "no"; then
3562  NM="$lt_cv_path_NM"
3563else
3564  # Didn't find any BSD compatible name lister, look for dumpbin.
3565  if test -n "$ac_tool_prefix"; then
3566  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3567  do
3568    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3569set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3572if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3573  echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575  if test -n "$DUMPBIN"; then
3576  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3577else
3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH
3580do
3581  IFS=$as_save_IFS
3582  test -z "$as_dir" && as_dir=.
3583  for ac_exec_ext in '' $ac_executable_extensions; do
3584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3586    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587    break 2
3588  fi
3589done
3590done
3591IFS=$as_save_IFS
3592
3593fi
3594fi
3595DUMPBIN=$ac_cv_prog_DUMPBIN
3596if test -n "$DUMPBIN"; then
3597  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3598echo "${ECHO_T}$DUMPBIN" >&6; }
3599else
3600  { echo "$as_me:$LINENO: result: no" >&5
3601echo "${ECHO_T}no" >&6; }
3602fi
3603
3604
3605    test -n "$DUMPBIN" && break
3606  done
3607fi
3608if test -z "$DUMPBIN"; then
3609  ac_ct_DUMPBIN=$DUMPBIN
3610  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3611do
3612  # Extract the first word of "$ac_prog", so it can be a program name with args.
3613set dummy $ac_prog; ac_word=$2
3614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3616if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3617  echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
3619  if test -n "$ac_ct_DUMPBIN"; then
3620  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3621else
3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $PATH
3624do
3625  IFS=$as_save_IFS
3626  test -z "$as_dir" && as_dir=.
3627  for ac_exec_ext in '' $ac_executable_extensions; do
3628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3630    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631    break 2
3632  fi
3633done
3634done
3635IFS=$as_save_IFS
3636
3637fi
3638fi
3639ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3640if test -n "$ac_ct_DUMPBIN"; then
3641  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3642echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
3643else
3644  { echo "$as_me:$LINENO: result: no" >&5
3645echo "${ECHO_T}no" >&6; }
3646fi
3647
3648
3649  test -n "$ac_ct_DUMPBIN" && break
3650done
3651
3652  if test "x$ac_ct_DUMPBIN" = x; then
3653    DUMPBIN=":"
3654  else
3655    case $cross_compiling:$ac_tool_warned in
3656yes:)
3657{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3658whose name does not start with the host triplet.  If you think this
3659configuration is useful to you, please write to autoconf@gnu.org." >&5
3660echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3661whose name does not start with the host triplet.  If you think this
3662configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3663ac_tool_warned=yes ;;
3664esac
3665    DUMPBIN=$ac_ct_DUMPBIN
3666  fi
3667fi
3668
3669
3670  if test "$DUMPBIN" != ":"; then
3671    NM="$DUMPBIN"
3672  fi
3673fi
3674test -z "$NM" && NM=nm
3675
3676
3677
3678
3679
3680
3681{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3682echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
3683if test "${lt_cv_nm_interface+set}" = set; then
3684  echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686  lt_cv_nm_interface="BSD nm"
3687  echo "int some_variable = 0;" > conftest.$ac_ext
3688  (eval echo "\"\$as_me:3688: $ac_compile\"" >&5)
3689  (eval "$ac_compile" 2>conftest.err)
3690  cat conftest.err >&5
3691  (eval echo "\"\$as_me:3691: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3692  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3693  cat conftest.err >&5
3694  (eval echo "\"\$as_me:3694: output\"" >&5)
3695  cat conftest.out >&5
3696  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3697    lt_cv_nm_interface="MS dumpbin"
3698  fi
3699  rm -f conftest*
3700fi
3701{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3702echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
3703
3704{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3705echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3706LN_S=$as_ln_s
3707if test "$LN_S" = "ln -s"; then
3708  { echo "$as_me:$LINENO: result: yes" >&5
3709echo "${ECHO_T}yes" >&6; }
3710else
3711  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3712echo "${ECHO_T}no, using $LN_S" >&6; }
3713fi
3714
3715# find the maximum length of command line arguments
3716{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3717echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
3718if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3719  echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
3721    i=0
3722  teststring="ABCD"
3723
3724  case $build_os in
3725  msdosdjgpp*)
3726    # On DJGPP, this test can blow up pretty badly due to problems in libc
3727    # (any single argument exceeding 2000 bytes causes a buffer overrun
3728    # during glob expansion).  Even if it were fixed, the result of this
3729    # check would be larger than it should be.
3730    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3731    ;;
3732
3733  gnu*)
3734    # Under GNU Hurd, this test is not required because there is
3735    # no limit to the length of command line arguments.
3736    # Libtool will interpret -1 as no limit whatsoever
3737    lt_cv_sys_max_cmd_len=-1;
3738    ;;
3739
3740  cygwin* | mingw* | cegcc*)
3741    # On Win9x/ME, this test blows up -- it succeeds, but takes
3742    # about 5 minutes as the teststring grows exponentially.
3743    # Worse, since 9x/ME are not pre-emptively multitasking,
3744    # you end up with a "frozen" computer, even though with patience
3745    # the test eventually succeeds (with a max line length of 256k).
3746    # Instead, let's just punt: use the minimum linelength reported by
3747    # all of the supported platforms: 8192 (on NT/2K/XP).
3748    lt_cv_sys_max_cmd_len=8192;
3749    ;;
3750
3751  beos*)
3752    # On BeOS, this test takes a really really long time.
3753    # So we just punt and use a minimum line length of 8192.
3754    lt_cv_sys_max_cmd_len=8192;
3755    ;;
3756
3757  amigaos*)
3758    # On AmigaOS with pdksh, this test takes hours, literally.
3759    # So we just punt and use a minimum line length of 8192.
3760    lt_cv_sys_max_cmd_len=8192;
3761    ;;
3762
3763  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3764    # This has been around since 386BSD, at least.  Likely further.
3765    if test -x /sbin/sysctl; then
3766      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3767    elif test -x /usr/sbin/sysctl; then
3768      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3769    else
3770      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
3771    fi
3772    # And add a safety zone
3773    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3774    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3775    ;;
3776
3777  interix*)
3778    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3779    lt_cv_sys_max_cmd_len=196608
3780    ;;
3781
3782  osf*)
3783    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3784    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3785    # nice to cause kernel panics so lets avoid the loop below.
3786    # First set a reasonable default.
3787    lt_cv_sys_max_cmd_len=16384
3788    #
3789    if test -x /sbin/sysconfig; then
3790      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3791        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3792      esac
3793    fi
3794    ;;
3795  sco3.2v5*)
3796    lt_cv_sys_max_cmd_len=102400
3797    ;;
3798  sysv5* | sco5v6* | sysv4.2uw2*)
3799    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3800    if test -n "$kargmax"; then
3801      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
3802    else
3803      lt_cv_sys_max_cmd_len=32768
3804    fi
3805    ;;
3806  *)
3807    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3808    if test -n "$lt_cv_sys_max_cmd_len"; then
3809      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3810      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3811    else
3812      # Make teststring a little bigger before we do anything with it.
3813      # a 1K string should be a reasonable start.
3814      for i in 1 2 3 4 5 6 7 8 ; do
3815        teststring=$teststring$teststring
3816      done
3817      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3818      # If test is not a shell built-in, we'll probably end up computing a
3819      # maximum length that is only half of the actual maximum length, but
3820      # we can't tell.
3821      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3822	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3823	      test $i != 17 # 1/2 MB should be enough
3824      do
3825        i=`expr $i + 1`
3826        teststring=$teststring$teststring
3827      done
3828      # Only check the string length outside the loop.
3829      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3830      teststring=
3831      # Add a significant safety factor because C++ compilers can tack on
3832      # massive amounts of additional arguments before passing them to the
3833      # linker.  It appears as though 1/2 is a usable value.
3834      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3835    fi
3836    ;;
3837  esac
3838
3839fi
3840
3841if test -n $lt_cv_sys_max_cmd_len ; then
3842  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3843echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
3844else
3845  { echo "$as_me:$LINENO: result: none" >&5
3846echo "${ECHO_T}none" >&6; }
3847fi
3848max_cmd_len=$lt_cv_sys_max_cmd_len
3849
3850
3851
3852
3853
3854
3855: ${CP="cp -f"}
3856: ${MV="mv -f"}
3857: ${RM="rm -f"}
3858
3859{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3860echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
3861# Try some XSI features
3862xsi_shell=no
3863( _lt_dummy="a/b/c"
3864  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3865      = c,a/b,, \
3866    && eval 'test $(( 1 + 1 )) -eq 2 \
3867    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3868  && xsi_shell=yes
3869{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
3870echo "${ECHO_T}$xsi_shell" >&6; }
3871
3872
3873{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3874echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
3875lt_shell_append=no
3876( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3877    >/dev/null 2>&1 \
3878  && lt_shell_append=yes
3879{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3880echo "${ECHO_T}$lt_shell_append" >&6; }
3881
3882
3883if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3884  lt_unset=unset
3885else
3886  lt_unset=false
3887fi
3888
3889
3890
3891
3892
3893# test EBCDIC or ASCII
3894case `echo X|tr X '\101'` in
3895 A) # ASCII based system
3896    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3897  lt_SP2NL='tr \040 \012'
3898  lt_NL2SP='tr \015\012 \040\040'
3899  ;;
3900 *) # EBCDIC based system
3901  lt_SP2NL='tr \100 \n'
3902  lt_NL2SP='tr \r\n \100\100'
3903  ;;
3904esac
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3915echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3916if test "${lt_cv_ld_reload_flag+set}" = set; then
3917  echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919  lt_cv_ld_reload_flag='-r'
3920fi
3921{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3922echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3923reload_flag=$lt_cv_ld_reload_flag
3924case $reload_flag in
3925"" | " "*) ;;
3926*) reload_flag=" $reload_flag" ;;
3927esac
3928reload_cmds='$LD$reload_flag -o $output$reload_objs'
3929case $host_os in
3930  darwin*)
3931    if test "$GCC" = yes; then
3932      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3933    else
3934      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3935    fi
3936    ;;
3937esac
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947if test -n "$ac_tool_prefix"; then
3948  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3949set dummy ${ac_tool_prefix}objdump; ac_word=$2
3950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3952if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3953  echo $ECHO_N "(cached) $ECHO_C" >&6
3954else
3955  if test -n "$OBJDUMP"; then
3956  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3957else
3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH
3960do
3961  IFS=$as_save_IFS
3962  test -z "$as_dir" && as_dir=.
3963  for ac_exec_ext in '' $ac_executable_extensions; do
3964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3965    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967    break 2
3968  fi
3969done
3970done
3971IFS=$as_save_IFS
3972
3973fi
3974fi
3975OBJDUMP=$ac_cv_prog_OBJDUMP
3976if test -n "$OBJDUMP"; then
3977  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3978echo "${ECHO_T}$OBJDUMP" >&6; }
3979else
3980  { echo "$as_me:$LINENO: result: no" >&5
3981echo "${ECHO_T}no" >&6; }
3982fi
3983
3984
3985fi
3986if test -z "$ac_cv_prog_OBJDUMP"; then
3987  ac_ct_OBJDUMP=$OBJDUMP
3988  # Extract the first word of "objdump", so it can be a program name with args.
3989set dummy objdump; ac_word=$2
3990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3992if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3993  echo $ECHO_N "(cached) $ECHO_C" >&6
3994else
3995  if test -n "$ac_ct_OBJDUMP"; then
3996  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3997else
3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH
4000do
4001  IFS=$as_save_IFS
4002  test -z "$as_dir" && as_dir=.
4003  for ac_exec_ext in '' $ac_executable_extensions; do
4004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4007    break 2
4008  fi
4009done
4010done
4011IFS=$as_save_IFS
4012
4013fi
4014fi
4015ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4016if test -n "$ac_ct_OBJDUMP"; then
4017  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4018echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4019else
4020  { echo "$as_me:$LINENO: result: no" >&5
4021echo "${ECHO_T}no" >&6; }
4022fi
4023
4024  if test "x$ac_ct_OBJDUMP" = x; then
4025    OBJDUMP="false"
4026  else
4027    case $cross_compiling:$ac_tool_warned in
4028yes:)
4029{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4030whose name does not start with the host triplet.  If you think this
4031configuration is useful to you, please write to autoconf@gnu.org." >&5
4032echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4033whose name does not start with the host triplet.  If you think this
4034configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4035ac_tool_warned=yes ;;
4036esac
4037    OBJDUMP=$ac_ct_OBJDUMP
4038  fi
4039else
4040  OBJDUMP="$ac_cv_prog_OBJDUMP"
4041fi
4042
4043test -z "$OBJDUMP" && OBJDUMP=objdump
4044
4045
4046
4047
4048
4049
4050{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4051echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4052if test "${lt_cv_deplibs_check_method+set}" = set; then
4053  echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
4055  lt_cv_file_magic_cmd='$MAGIC_CMD'
4056lt_cv_file_magic_test_file=
4057lt_cv_deplibs_check_method='unknown'
4058# Need to set the preceding variable on all platforms that support
4059# interlibrary dependencies.
4060# 'none' -- dependencies not supported.
4061# `unknown' -- same as none, but documents that we really don't know.
4062# 'pass_all' -- all dependencies passed with no checks.
4063# 'test_compile' -- check by making test program.
4064# 'file_magic [[regex]]' -- check by looking for files in library path
4065# which responds to the $file_magic_cmd with a given extended regex.
4066# If you have `file' or equivalent on your system and you're not sure
4067# whether `pass_all' will *always* work, you probably want this one.
4068
4069case $host_os in
4070aix[4-9]*)
4071  lt_cv_deplibs_check_method=pass_all
4072  ;;
4073
4074beos*)
4075  lt_cv_deplibs_check_method=pass_all
4076  ;;
4077
4078bsdi[45]*)
4079  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4080  lt_cv_file_magic_cmd='/usr/bin/file -L'
4081  lt_cv_file_magic_test_file=/shlib/libc.so
4082  ;;
4083
4084cygwin*)
4085  # func_win32_libid is a shell function defined in ltmain.sh
4086  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4087  lt_cv_deplibs_check_method=pass_all
4088  lt_cv_file_magic_cmd='func_win32_libid'
4089  ;;
4090
4091mingw* | pw32*)
4092  # Base MSYS/MinGW do not provide the 'file' command needed by
4093  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4094  # unless we find 'file', for example because we are cross-compiling.
4095  if ( file / ) >/dev/null 2>&1; then
4096    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4097    lt_cv_file_magic_cmd='func_win32_libid'
4098  else
4099    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4100    lt_cv_file_magic_cmd='$OBJDUMP -f'
4101  fi
4102  lt_cv_deplibs_check_method=pass_all
4103  ;;
4104
4105cegcc)
4106  # use the weaker test based on 'objdump'. See mingw*.
4107  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4108  lt_cv_file_magic_cmd='$OBJDUMP -f'
4109  ;;
4110
4111darwin* | rhapsody*)
4112  lt_cv_deplibs_check_method=pass_all
4113  ;;
4114
4115freebsd* | dragonfly*)
4116  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4117    case $host_cpu in
4118    i*86 )
4119      # Not sure whether the presence of OpenBSD here was a mistake.
4120      # Let's accept both of them until this is cleared up.
4121      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4122      lt_cv_file_magic_cmd=/usr/bin/file
4123      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4124      ;;
4125    esac
4126  else
4127    lt_cv_deplibs_check_method=pass_all
4128  fi
4129  ;;
4130
4131gnu*)
4132  lt_cv_deplibs_check_method=pass_all
4133  ;;
4134
4135hpux10.20* | hpux11*)
4136  lt_cv_file_magic_cmd=/usr/bin/file
4137  case $host_cpu in
4138  ia64*)
4139    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4140    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4141    ;;
4142  hppa*64*)
4143    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]'
4144    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4145    ;;
4146  *)
4147    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4148    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4149    ;;
4150  esac
4151  ;;
4152
4153interix[3-9]*)
4154  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4155  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4156  ;;
4157
4158irix5* | irix6* | nonstopux*)
4159  case $LD in
4160  *-32|*"-32 ") libmagic=32-bit;;
4161  *-n32|*"-n32 ") libmagic=N32;;
4162  *-64|*"-64 ") libmagic=64-bit;;
4163  *) libmagic=never-match;;
4164  esac
4165  lt_cv_deplibs_check_method=pass_all
4166  ;;
4167
4168# This must be Linux ELF.
4169linux* | k*bsd*-gnu)
4170  lt_cv_deplibs_check_method=pass_all
4171  ;;
4172
4173netbsd*)
4174  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4175    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4176  else
4177    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4178  fi
4179  ;;
4180
4181newos6*)
4182  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4183  lt_cv_file_magic_cmd=/usr/bin/file
4184  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4185  ;;
4186
4187*nto* | *qnx*)
4188  lt_cv_deplibs_check_method=pass_all
4189  ;;
4190
4191openbsd*)
4192  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4193    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4194  else
4195    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4196  fi
4197  ;;
4198
4199osf3* | osf4* | osf5*)
4200  lt_cv_deplibs_check_method=pass_all
4201  ;;
4202
4203rdos*)
4204  lt_cv_deplibs_check_method=pass_all
4205  ;;
4206
4207solaris*)
4208  lt_cv_deplibs_check_method=pass_all
4209  ;;
4210
4211sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4212  lt_cv_deplibs_check_method=pass_all
4213  ;;
4214
4215sysv4 | sysv4.3*)
4216  case $host_vendor in
4217  motorola)
4218    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]'
4219    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4220    ;;
4221  ncr)
4222    lt_cv_deplibs_check_method=pass_all
4223    ;;
4224  sequent)
4225    lt_cv_file_magic_cmd='/bin/file'
4226    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4227    ;;
4228  sni)
4229    lt_cv_file_magic_cmd='/bin/file'
4230    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4231    lt_cv_file_magic_test_file=/lib/libc.so
4232    ;;
4233  siemens)
4234    lt_cv_deplibs_check_method=pass_all
4235    ;;
4236  pc)
4237    lt_cv_deplibs_check_method=pass_all
4238    ;;
4239  esac
4240  ;;
4241
4242tpf*)
4243  lt_cv_deplibs_check_method=pass_all
4244  ;;
4245esac
4246
4247fi
4248{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4249echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4250file_magic_cmd=$lt_cv_file_magic_cmd
4251deplibs_check_method=$lt_cv_deplibs_check_method
4252test -z "$deplibs_check_method" && deplibs_check_method=unknown
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265if test -n "$ac_tool_prefix"; then
4266  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4267set dummy ${ac_tool_prefix}ar; ac_word=$2
4268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4270if test "${ac_cv_prog_AR+set}" = set; then
4271  echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273  if test -n "$AR"; then
4274  ac_cv_prog_AR="$AR" # Let the user override the test.
4275else
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279  IFS=$as_save_IFS
4280  test -z "$as_dir" && as_dir=.
4281  for ac_exec_ext in '' $ac_executable_extensions; do
4282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283    ac_cv_prog_AR="${ac_tool_prefix}ar"
4284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285    break 2
4286  fi
4287done
4288done
4289IFS=$as_save_IFS
4290
4291fi
4292fi
4293AR=$ac_cv_prog_AR
4294if test -n "$AR"; then
4295  { echo "$as_me:$LINENO: result: $AR" >&5
4296echo "${ECHO_T}$AR" >&6; }
4297else
4298  { echo "$as_me:$LINENO: result: no" >&5
4299echo "${ECHO_T}no" >&6; }
4300fi
4301
4302
4303fi
4304if test -z "$ac_cv_prog_AR"; then
4305  ac_ct_AR=$AR
4306  # Extract the first word of "ar", so it can be a program name with args.
4307set dummy ar; ac_word=$2
4308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4310if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4311  echo $ECHO_N "(cached) $ECHO_C" >&6
4312else
4313  if test -n "$ac_ct_AR"; then
4314  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4315else
4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319  IFS=$as_save_IFS
4320  test -z "$as_dir" && as_dir=.
4321  for ac_exec_ext in '' $ac_executable_extensions; do
4322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323    ac_cv_prog_ac_ct_AR="ar"
4324    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325    break 2
4326  fi
4327done
4328done
4329IFS=$as_save_IFS
4330
4331fi
4332fi
4333ac_ct_AR=$ac_cv_prog_ac_ct_AR
4334if test -n "$ac_ct_AR"; then
4335  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4336echo "${ECHO_T}$ac_ct_AR" >&6; }
4337else
4338  { echo "$as_me:$LINENO: result: no" >&5
4339echo "${ECHO_T}no" >&6; }
4340fi
4341
4342  if test "x$ac_ct_AR" = x; then
4343    AR="false"
4344  else
4345    case $cross_compiling:$ac_tool_warned in
4346yes:)
4347{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4348whose name does not start with the host triplet.  If you think this
4349configuration is useful to you, please write to autoconf@gnu.org." >&5
4350echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4351whose name does not start with the host triplet.  If you think this
4352configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4353ac_tool_warned=yes ;;
4354esac
4355    AR=$ac_ct_AR
4356  fi
4357else
4358  AR="$ac_cv_prog_AR"
4359fi
4360
4361test -z "$AR" && AR=ar
4362test -z "$AR_FLAGS" && AR_FLAGS=cru
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374if test -n "$ac_tool_prefix"; then
4375  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4376set dummy ${ac_tool_prefix}strip; ac_word=$2
4377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379if test "${ac_cv_prog_STRIP+set}" = set; then
4380  echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382  if test -n "$STRIP"; then
4383  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4384else
4385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388  IFS=$as_save_IFS
4389  test -z "$as_dir" && as_dir=.
4390  for ac_exec_ext in '' $ac_executable_extensions; do
4391  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394    break 2
4395  fi
4396done
4397done
4398IFS=$as_save_IFS
4399
4400fi
4401fi
4402STRIP=$ac_cv_prog_STRIP
4403if test -n "$STRIP"; then
4404  { echo "$as_me:$LINENO: result: $STRIP" >&5
4405echo "${ECHO_T}$STRIP" >&6; }
4406else
4407  { echo "$as_me:$LINENO: result: no" >&5
4408echo "${ECHO_T}no" >&6; }
4409fi
4410
4411
4412fi
4413if test -z "$ac_cv_prog_STRIP"; then
4414  ac_ct_STRIP=$STRIP
4415  # Extract the first word of "strip", so it can be a program name with args.
4416set dummy strip; ac_word=$2
4417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4420  echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422  if test -n "$ac_ct_STRIP"; then
4423  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4424else
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428  IFS=$as_save_IFS
4429  test -z "$as_dir" && as_dir=.
4430  for ac_exec_ext in '' $ac_executable_extensions; do
4431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432    ac_cv_prog_ac_ct_STRIP="strip"
4433    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434    break 2
4435  fi
4436done
4437done
4438IFS=$as_save_IFS
4439
4440fi
4441fi
4442ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4443if test -n "$ac_ct_STRIP"; then
4444  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4445echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4446else
4447  { echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6; }
4449fi
4450
4451  if test "x$ac_ct_STRIP" = x; then
4452    STRIP=":"
4453  else
4454    case $cross_compiling:$ac_tool_warned in
4455yes:)
4456{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4457whose name does not start with the host triplet.  If you think this
4458configuration is useful to you, please write to autoconf@gnu.org." >&5
4459echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4460whose name does not start with the host triplet.  If you think this
4461configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4462ac_tool_warned=yes ;;
4463esac
4464    STRIP=$ac_ct_STRIP
4465  fi
4466else
4467  STRIP="$ac_cv_prog_STRIP"
4468fi
4469
4470test -z "$STRIP" && STRIP=:
4471
4472
4473
4474
4475
4476
4477if test -n "$ac_tool_prefix"; then
4478  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4479set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4482if test "${ac_cv_prog_RANLIB+set}" = set; then
4483  echo $ECHO_N "(cached) $ECHO_C" >&6
4484else
4485  if test -n "$RANLIB"; then
4486  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4487else
4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH
4490do
4491  IFS=$as_save_IFS
4492  test -z "$as_dir" && as_dir=.
4493  for ac_exec_ext in '' $ac_executable_extensions; do
4494  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4496    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497    break 2
4498  fi
4499done
4500done
4501IFS=$as_save_IFS
4502
4503fi
4504fi
4505RANLIB=$ac_cv_prog_RANLIB
4506if test -n "$RANLIB"; then
4507  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4508echo "${ECHO_T}$RANLIB" >&6; }
4509else
4510  { echo "$as_me:$LINENO: result: no" >&5
4511echo "${ECHO_T}no" >&6; }
4512fi
4513
4514
4515fi
4516if test -z "$ac_cv_prog_RANLIB"; then
4517  ac_ct_RANLIB=$RANLIB
4518  # Extract the first word of "ranlib", so it can be a program name with args.
4519set dummy ranlib; ac_word=$2
4520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4522if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4523  echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525  if test -n "$ac_ct_RANLIB"; then
4526  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4527else
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531  IFS=$as_save_IFS
4532  test -z "$as_dir" && as_dir=.
4533  for ac_exec_ext in '' $ac_executable_extensions; do
4534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535    ac_cv_prog_ac_ct_RANLIB="ranlib"
4536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537    break 2
4538  fi
4539done
4540done
4541IFS=$as_save_IFS
4542
4543fi
4544fi
4545ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4546if test -n "$ac_ct_RANLIB"; then
4547  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4548echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4549else
4550  { echo "$as_me:$LINENO: result: no" >&5
4551echo "${ECHO_T}no" >&6; }
4552fi
4553
4554  if test "x$ac_ct_RANLIB" = x; then
4555    RANLIB=":"
4556  else
4557    case $cross_compiling:$ac_tool_warned in
4558yes:)
4559{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4560whose name does not start with the host triplet.  If you think this
4561configuration is useful to you, please write to autoconf@gnu.org." >&5
4562echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4563whose name does not start with the host triplet.  If you think this
4564configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4565ac_tool_warned=yes ;;
4566esac
4567    RANLIB=$ac_ct_RANLIB
4568  fi
4569else
4570  RANLIB="$ac_cv_prog_RANLIB"
4571fi
4572
4573test -z "$RANLIB" && RANLIB=:
4574
4575
4576
4577
4578
4579
4580# Determine commands to create old-style static archives.
4581old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4582old_postinstall_cmds='chmod 644 $oldlib'
4583old_postuninstall_cmds=
4584
4585if test -n "$RANLIB"; then
4586  case $host_os in
4587  openbsd*)
4588    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4589    ;;
4590  *)
4591    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4592    ;;
4593  esac
4594  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4595fi
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630# If no C compiler was specified, use CC.
4631LTCC=${LTCC-"$CC"}
4632
4633# If no C compiler flags were specified, use CFLAGS.
4634LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4635
4636# Allow CC to be a program name with arguments.
4637compiler=$CC
4638
4639
4640# Check for command to grab the raw symbol name followed by C symbol from nm.
4641{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4642echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
4643if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4644  echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646
4647# These are sane defaults that work on at least a few old systems.
4648# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4649
4650# Character class describing NM global symbol codes.
4651symcode='[BCDEGRST]'
4652
4653# Regexp to match symbols that can be accessed directly from C.
4654sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4655
4656# Define system-specific variables.
4657case $host_os in
4658aix*)
4659  symcode='[BCDT]'
4660  ;;
4661cygwin* | mingw* | pw32* | cegcc*)
4662  symcode='[ABCDGISTW]'
4663  ;;
4664hpux*)
4665  if test "$host_cpu" = ia64; then
4666    symcode='[ABCDEGRST]'
4667  fi
4668  ;;
4669irix* | nonstopux*)
4670  symcode='[BCDEGRST]'
4671  ;;
4672osf*)
4673  symcode='[BCDEGQRST]'
4674  ;;
4675solaris*)
4676  symcode='[BDRT]'
4677  ;;
4678sco3.2v5*)
4679  symcode='[DT]'
4680  ;;
4681sysv4.2uw2*)
4682  symcode='[DT]'
4683  ;;
4684sysv5* | sco5v6* | unixware* | OpenUNIX*)
4685  symcode='[ABDT]'
4686  ;;
4687sysv4)
4688  symcode='[DFNSTU]'
4689  ;;
4690esac
4691
4692# If we're using GNU nm, then use its standard symbol codes.
4693case `$NM -V 2>&1` in
4694*GNU* | *'with BFD'*)
4695  symcode='[ABCDGIRSTW]' ;;
4696esac
4697
4698# Transform an extracted symbol line into a proper C declaration.
4699# Some systems (esp. on ia64) link data and code symbols differently,
4700# so use this general approach.
4701lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4702
4703# Transform an extracted symbol line into symbol name and symbol address
4704lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4705lt_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'"
4706
4707# Handle CRLF in mingw tool chain
4708opt_cr=
4709case $build_os in
4710mingw*)
4711  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4712  ;;
4713esac
4714
4715# Try without a prefix underscore, then with it.
4716for ac_symprfx in "" "_"; do
4717
4718  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4719  symxfrm="\\1 $ac_symprfx\\2 \\2"
4720
4721  # Write the raw and C identifiers.
4722  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4723    # Fake it for dumpbin and say T for any non-static function
4724    # and D for any global variable.
4725    # Also find C++ and __fastcall symbols from MSVC++,
4726    # which start with @ or ?.
4727    lt_cv_sys_global_symbol_pipe="$AWK '"\
4728"     {last_section=section; section=\$ 3};"\
4729"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4730"     \$ 0!~/External *\|/{next};"\
4731"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4732"     {if(hide[section]) next};"\
4733"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4734"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4735"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4736"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4737"     ' prfx=^$ac_symprfx"
4738  else
4739    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4740  fi
4741
4742  # Check to see that the pipe works correctly.
4743  pipe_works=no
4744
4745  rm -f conftest*
4746  cat > conftest.$ac_ext <<_LT_EOF
4747#ifdef __cplusplus
4748extern "C" {
4749#endif
4750char nm_test_var;
4751void nm_test_func(void);
4752void nm_test_func(void){}
4753#ifdef __cplusplus
4754}
4755#endif
4756int main(){nm_test_var='a';nm_test_func();return(0);}
4757_LT_EOF
4758
4759  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760  (eval $ac_compile) 2>&5
4761  ac_status=$?
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); }; then
4764    # Now try to grab the symbols.
4765    nlist=conftest.nm
4766    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4767  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4768  ac_status=$?
4769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770  (exit $ac_status); } && test -s "$nlist"; then
4771      # Try sorting and uniquifying the output.
4772      if sort "$nlist" | uniq > "$nlist"T; then
4773	mv -f "$nlist"T "$nlist"
4774      else
4775	rm -f "$nlist"T
4776      fi
4777
4778      # Make sure that we snagged all the symbols we need.
4779      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4780	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4781	  cat <<_LT_EOF > conftest.$ac_ext
4782#ifdef __cplusplus
4783extern "C" {
4784#endif
4785
4786_LT_EOF
4787	  # Now generate the symbol file.
4788	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4789
4790	  cat <<_LT_EOF >> conftest.$ac_ext
4791
4792/* The mapping between symbol names and symbols.  */
4793const struct {
4794  const char *name;
4795  void       *address;
4796}
4797lt__PROGRAM__LTX_preloaded_symbols[] =
4798{
4799  { "@PROGRAM@", (void *) 0 },
4800_LT_EOF
4801	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4802	  cat <<\_LT_EOF >> conftest.$ac_ext
4803  {0, (void *) 0}
4804};
4805
4806/* This works around a problem in FreeBSD linker */
4807#ifdef FREEBSD_WORKAROUND
4808static const void *lt_preloaded_setup() {
4809  return lt__PROGRAM__LTX_preloaded_symbols;
4810}
4811#endif
4812
4813#ifdef __cplusplus
4814}
4815#endif
4816_LT_EOF
4817	  # Now try linking the two files.
4818	  mv conftest.$ac_objext conftstm.$ac_objext
4819	  lt_save_LIBS="$LIBS"
4820	  lt_save_CFLAGS="$CFLAGS"
4821	  LIBS="conftstm.$ac_objext"
4822	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4823	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4824  (eval $ac_link) 2>&5
4825  ac_status=$?
4826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); } && test -s conftest${ac_exeext}; then
4828	    pipe_works=yes
4829	  fi
4830	  LIBS="$lt_save_LIBS"
4831	  CFLAGS="$lt_save_CFLAGS"
4832	else
4833	  echo "cannot find nm_test_func in $nlist" >&5
4834	fi
4835      else
4836	echo "cannot find nm_test_var in $nlist" >&5
4837      fi
4838    else
4839      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4840    fi
4841  else
4842    echo "$progname: failed program was:" >&5
4843    cat conftest.$ac_ext >&5
4844  fi
4845  rm -rf conftest* conftst*
4846
4847  # Do not use the global_symbol_pipe unless it works.
4848  if test "$pipe_works" = yes; then
4849    break
4850  else
4851    lt_cv_sys_global_symbol_pipe=
4852  fi
4853done
4854
4855fi
4856
4857if test -z "$lt_cv_sys_global_symbol_pipe"; then
4858  lt_cv_sys_global_symbol_to_cdecl=
4859fi
4860if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4861  { echo "$as_me:$LINENO: result: failed" >&5
4862echo "${ECHO_T}failed" >&6; }
4863else
4864  { echo "$as_me:$LINENO: result: ok" >&5
4865echo "${ECHO_T}ok" >&6; }
4866fi
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890# Check whether --enable-libtool-lock was given.
4891if test "${enable_libtool_lock+set}" = set; then
4892  enableval=$enable_libtool_lock;
4893fi
4894
4895test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4896
4897# Some flags need to be propagated to the compiler or linker for good
4898# libtool support.
4899case $host in
4900ia64-*-hpux*)
4901  # Find out which ABI we are using.
4902  echo 'int i;' > conftest.$ac_ext
4903  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904  (eval $ac_compile) 2>&5
4905  ac_status=$?
4906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907  (exit $ac_status); }; then
4908    case `/usr/bin/file conftest.$ac_objext` in
4909      *ELF-32*)
4910	HPUX_IA64_MODE="32"
4911	;;
4912      *ELF-64*)
4913	HPUX_IA64_MODE="64"
4914	;;
4915    esac
4916  fi
4917  rm -rf conftest*
4918  ;;
4919*-*-irix6*)
4920  # Find out which ABI we are using.
4921  echo '#line 4921 "configure"' > conftest.$ac_ext
4922  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923  (eval $ac_compile) 2>&5
4924  ac_status=$?
4925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926  (exit $ac_status); }; then
4927    if test "$lt_cv_prog_gnu_ld" = yes; then
4928      case `/usr/bin/file conftest.$ac_objext` in
4929	*32-bit*)
4930	  LD="${LD-ld} -melf32bsmip"
4931	  ;;
4932	*N32*)
4933	  LD="${LD-ld} -melf32bmipn32"
4934	  ;;
4935	*64-bit*)
4936	  LD="${LD-ld} -melf64bmip"
4937	;;
4938      esac
4939    else
4940      case `/usr/bin/file conftest.$ac_objext` in
4941	*32-bit*)
4942	  LD="${LD-ld} -32"
4943	  ;;
4944	*N32*)
4945	  LD="${LD-ld} -n32"
4946	  ;;
4947	*64-bit*)
4948	  LD="${LD-ld} -64"
4949	  ;;
4950      esac
4951    fi
4952  fi
4953  rm -rf conftest*
4954  ;;
4955
4956x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4957s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4958  # Find out which ABI we are using.
4959  echo 'int i;' > conftest.$ac_ext
4960  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961  (eval $ac_compile) 2>&5
4962  ac_status=$?
4963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964  (exit $ac_status); }; then
4965    case `/usr/bin/file conftest.o` in
4966      *32-bit*)
4967	case $host in
4968	  x86_64-*kfreebsd*-gnu)
4969	    LD="${LD-ld} -m elf_i386_fbsd"
4970	    ;;
4971	  x86_64-*linux*)
4972	    LD="${LD-ld} -m elf_i386"
4973	    ;;
4974	  ppc64-*linux*|powerpc64-*linux*)
4975	    LD="${LD-ld} -m elf32ppclinux"
4976	    ;;
4977	  s390x-*linux*)
4978	    LD="${LD-ld} -m elf_s390"
4979	    ;;
4980	  sparc64-*linux*)
4981	    LD="${LD-ld} -m elf32_sparc"
4982	    ;;
4983	esac
4984	;;
4985      *64-bit*)
4986	case $host in
4987	  x86_64-*kfreebsd*-gnu)
4988	    LD="${LD-ld} -m elf_x86_64_fbsd"
4989	    ;;
4990	  x86_64-*linux*)
4991	    LD="${LD-ld} -m elf_x86_64"
4992	    ;;
4993	  ppc*-*linux*|powerpc*-*linux*)
4994	    LD="${LD-ld} -m elf64ppc"
4995	    ;;
4996	  s390*-*linux*|s390*-*tpf*)
4997	    LD="${LD-ld} -m elf64_s390"
4998	    ;;
4999	  sparc*-*linux*)
5000	    LD="${LD-ld} -m elf64_sparc"
5001	    ;;
5002	esac
5003	;;
5004    esac
5005  fi
5006  rm -rf conftest*
5007  ;;
5008
5009*-*-sco3.2v5*)
5010  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5011  SAVE_CFLAGS="$CFLAGS"
5012  CFLAGS="$CFLAGS -belf"
5013  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5014echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5015if test "${lt_cv_cc_needs_belf+set}" = set; then
5016  echo $ECHO_N "(cached) $ECHO_C" >&6
5017else
5018  ac_ext=c
5019ac_cpp='$CPP $CPPFLAGS'
5020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023
5024     cat >conftest.$ac_ext <<_ACEOF
5025/* confdefs.h.  */
5026_ACEOF
5027cat confdefs.h >>conftest.$ac_ext
5028cat >>conftest.$ac_ext <<_ACEOF
5029/* end confdefs.h.  */
5030
5031int
5032main ()
5033{
5034
5035  ;
5036  return 0;
5037}
5038_ACEOF
5039rm -f conftest.$ac_objext conftest$ac_exeext
5040if { (ac_try="$ac_link"
5041case "(($ac_try" in
5042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043  *) ac_try_echo=$ac_try;;
5044esac
5045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046  (eval "$ac_link") 2>conftest.er1
5047  ac_status=$?
5048  grep -v '^ *+' conftest.er1 >conftest.err
5049  rm -f conftest.er1
5050  cat conftest.err >&5
5051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052  (exit $ac_status); } && {
5053	 test -z "$ac_c_werror_flag" ||
5054	 test ! -s conftest.err
5055       } && test -s conftest$ac_exeext &&
5056       $as_test_x conftest$ac_exeext; then
5057  lt_cv_cc_needs_belf=yes
5058else
5059  echo "$as_me: failed program was:" >&5
5060sed 's/^/| /' conftest.$ac_ext >&5
5061
5062	lt_cv_cc_needs_belf=no
5063fi
5064
5065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5066      conftest$ac_exeext conftest.$ac_ext
5067     ac_ext=c
5068ac_cpp='$CPP $CPPFLAGS'
5069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
5073fi
5074{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5075echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5076  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5077    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5078    CFLAGS="$SAVE_CFLAGS"
5079  fi
5080  ;;
5081sparc*-*solaris*)
5082  # Find out which ABI we are using.
5083  echo 'int i;' > conftest.$ac_ext
5084  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5085  (eval $ac_compile) 2>&5
5086  ac_status=$?
5087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088  (exit $ac_status); }; then
5089    case `/usr/bin/file conftest.o` in
5090    *64-bit*)
5091      case $lt_cv_prog_gnu_ld in
5092      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5093      *)
5094	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5095	  LD="${LD-ld} -64"
5096	fi
5097	;;
5098      esac
5099      ;;
5100    esac
5101  fi
5102  rm -rf conftest*
5103  ;;
5104esac
5105
5106need_locks="$enable_libtool_lock"
5107
5108
5109  case $host_os in
5110    rhapsody* | darwin*)
5111    if test -n "$ac_tool_prefix"; then
5112  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5113set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5116if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5117  echo $ECHO_N "(cached) $ECHO_C" >&6
5118else
5119  if test -n "$DSYMUTIL"; then
5120  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5121else
5122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH
5124do
5125  IFS=$as_save_IFS
5126  test -z "$as_dir" && as_dir=.
5127  for ac_exec_ext in '' $ac_executable_extensions; do
5128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131    break 2
5132  fi
5133done
5134done
5135IFS=$as_save_IFS
5136
5137fi
5138fi
5139DSYMUTIL=$ac_cv_prog_DSYMUTIL
5140if test -n "$DSYMUTIL"; then
5141  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5142echo "${ECHO_T}$DSYMUTIL" >&6; }
5143else
5144  { echo "$as_me:$LINENO: result: no" >&5
5145echo "${ECHO_T}no" >&6; }
5146fi
5147
5148
5149fi
5150if test -z "$ac_cv_prog_DSYMUTIL"; then
5151  ac_ct_DSYMUTIL=$DSYMUTIL
5152  # Extract the first word of "dsymutil", so it can be a program name with args.
5153set dummy dsymutil; ac_word=$2
5154{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5156if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5157  echo $ECHO_N "(cached) $ECHO_C" >&6
5158else
5159  if test -n "$ac_ct_DSYMUTIL"; then
5160  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165  IFS=$as_save_IFS
5166  test -z "$as_dir" && as_dir=.
5167  for ac_exec_ext in '' $ac_executable_extensions; do
5168  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171    break 2
5172  fi
5173done
5174done
5175IFS=$as_save_IFS
5176
5177fi
5178fi
5179ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5180if test -n "$ac_ct_DSYMUTIL"; then
5181  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5182echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5183else
5184  { echo "$as_me:$LINENO: result: no" >&5
5185echo "${ECHO_T}no" >&6; }
5186fi
5187
5188  if test "x$ac_ct_DSYMUTIL" = x; then
5189    DSYMUTIL=":"
5190  else
5191    case $cross_compiling:$ac_tool_warned in
5192yes:)
5193{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5194whose name does not start with the host triplet.  If you think this
5195configuration is useful to you, please write to autoconf@gnu.org." >&5
5196echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5197whose name does not start with the host triplet.  If you think this
5198configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5199ac_tool_warned=yes ;;
5200esac
5201    DSYMUTIL=$ac_ct_DSYMUTIL
5202  fi
5203else
5204  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5205fi
5206
5207    if test -n "$ac_tool_prefix"; then
5208  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5209set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5212if test "${ac_cv_prog_NMEDIT+set}" = set; then
5213  echo $ECHO_N "(cached) $ECHO_C" >&6
5214else
5215  if test -n "$NMEDIT"; then
5216  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221  IFS=$as_save_IFS
5222  test -z "$as_dir" && as_dir=.
5223  for ac_exec_ext in '' $ac_executable_extensions; do
5224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5226    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227    break 2
5228  fi
5229done
5230done
5231IFS=$as_save_IFS
5232
5233fi
5234fi
5235NMEDIT=$ac_cv_prog_NMEDIT
5236if test -n "$NMEDIT"; then
5237  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5238echo "${ECHO_T}$NMEDIT" >&6; }
5239else
5240  { echo "$as_me:$LINENO: result: no" >&5
5241echo "${ECHO_T}no" >&6; }
5242fi
5243
5244
5245fi
5246if test -z "$ac_cv_prog_NMEDIT"; then
5247  ac_ct_NMEDIT=$NMEDIT
5248  # Extract the first word of "nmedit", so it can be a program name with args.
5249set dummy nmedit; ac_word=$2
5250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5252if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5253  echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255  if test -n "$ac_ct_NMEDIT"; then
5256  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5257else
5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261  IFS=$as_save_IFS
5262  test -z "$as_dir" && as_dir=.
5263  for ac_exec_ext in '' $ac_executable_extensions; do
5264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5266    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267    break 2
5268  fi
5269done
5270done
5271IFS=$as_save_IFS
5272
5273fi
5274fi
5275ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5276if test -n "$ac_ct_NMEDIT"; then
5277  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5278echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5279else
5280  { echo "$as_me:$LINENO: result: no" >&5
5281echo "${ECHO_T}no" >&6; }
5282fi
5283
5284  if test "x$ac_ct_NMEDIT" = x; then
5285    NMEDIT=":"
5286  else
5287    case $cross_compiling:$ac_tool_warned in
5288yes:)
5289{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5290whose name does not start with the host triplet.  If you think this
5291configuration is useful to you, please write to autoconf@gnu.org." >&5
5292echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5293whose name does not start with the host triplet.  If you think this
5294configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5295ac_tool_warned=yes ;;
5296esac
5297    NMEDIT=$ac_ct_NMEDIT
5298  fi
5299else
5300  NMEDIT="$ac_cv_prog_NMEDIT"
5301fi
5302
5303    if test -n "$ac_tool_prefix"; then
5304  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5305set dummy ${ac_tool_prefix}lipo; ac_word=$2
5306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5308if test "${ac_cv_prog_LIPO+set}" = set; then
5309  echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
5311  if test -n "$LIPO"; then
5312  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5313else
5314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317  IFS=$as_save_IFS
5318  test -z "$as_dir" && as_dir=.
5319  for ac_exec_ext in '' $ac_executable_extensions; do
5320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323    break 2
5324  fi
5325done
5326done
5327IFS=$as_save_IFS
5328
5329fi
5330fi
5331LIPO=$ac_cv_prog_LIPO
5332if test -n "$LIPO"; then
5333  { echo "$as_me:$LINENO: result: $LIPO" >&5
5334echo "${ECHO_T}$LIPO" >&6; }
5335else
5336  { echo "$as_me:$LINENO: result: no" >&5
5337echo "${ECHO_T}no" >&6; }
5338fi
5339
5340
5341fi
5342if test -z "$ac_cv_prog_LIPO"; then
5343  ac_ct_LIPO=$LIPO
5344  # Extract the first word of "lipo", so it can be a program name with args.
5345set dummy lipo; ac_word=$2
5346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5348if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5349  echo $ECHO_N "(cached) $ECHO_C" >&6
5350else
5351  if test -n "$ac_ct_LIPO"; then
5352  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5353else
5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355for as_dir in $PATH
5356do
5357  IFS=$as_save_IFS
5358  test -z "$as_dir" && as_dir=.
5359  for ac_exec_ext in '' $ac_executable_extensions; do
5360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5361    ac_cv_prog_ac_ct_LIPO="lipo"
5362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363    break 2
5364  fi
5365done
5366done
5367IFS=$as_save_IFS
5368
5369fi
5370fi
5371ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5372if test -n "$ac_ct_LIPO"; then
5373  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5374echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5375else
5376  { echo "$as_me:$LINENO: result: no" >&5
5377echo "${ECHO_T}no" >&6; }
5378fi
5379
5380  if test "x$ac_ct_LIPO" = x; then
5381    LIPO=":"
5382  else
5383    case $cross_compiling:$ac_tool_warned in
5384yes:)
5385{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5386whose name does not start with the host triplet.  If you think this
5387configuration is useful to you, please write to autoconf@gnu.org." >&5
5388echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5389whose name does not start with the host triplet.  If you think this
5390configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5391ac_tool_warned=yes ;;
5392esac
5393    LIPO=$ac_ct_LIPO
5394  fi
5395else
5396  LIPO="$ac_cv_prog_LIPO"
5397fi
5398
5399    if test -n "$ac_tool_prefix"; then
5400  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5401set dummy ${ac_tool_prefix}otool; ac_word=$2
5402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5404if test "${ac_cv_prog_OTOOL+set}" = set; then
5405  echo $ECHO_N "(cached) $ECHO_C" >&6
5406else
5407  if test -n "$OTOOL"; then
5408  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5409else
5410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411for as_dir in $PATH
5412do
5413  IFS=$as_save_IFS
5414  test -z "$as_dir" && as_dir=.
5415  for ac_exec_ext in '' $ac_executable_extensions; do
5416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5418    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419    break 2
5420  fi
5421done
5422done
5423IFS=$as_save_IFS
5424
5425fi
5426fi
5427OTOOL=$ac_cv_prog_OTOOL
5428if test -n "$OTOOL"; then
5429  { echo "$as_me:$LINENO: result: $OTOOL" >&5
5430echo "${ECHO_T}$OTOOL" >&6; }
5431else
5432  { echo "$as_me:$LINENO: result: no" >&5
5433echo "${ECHO_T}no" >&6; }
5434fi
5435
5436
5437fi
5438if test -z "$ac_cv_prog_OTOOL"; then
5439  ac_ct_OTOOL=$OTOOL
5440  # Extract the first word of "otool", so it can be a program name with args.
5441set dummy otool; ac_word=$2
5442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5444if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5445  echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447  if test -n "$ac_ct_OTOOL"; then
5448  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5449else
5450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453  IFS=$as_save_IFS
5454  test -z "$as_dir" && as_dir=.
5455  for ac_exec_ext in '' $ac_executable_extensions; do
5456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457    ac_cv_prog_ac_ct_OTOOL="otool"
5458    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459    break 2
5460  fi
5461done
5462done
5463IFS=$as_save_IFS
5464
5465fi
5466fi
5467ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5468if test -n "$ac_ct_OTOOL"; then
5469  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5470echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5471else
5472  { echo "$as_me:$LINENO: result: no" >&5
5473echo "${ECHO_T}no" >&6; }
5474fi
5475
5476  if test "x$ac_ct_OTOOL" = x; then
5477    OTOOL=":"
5478  else
5479    case $cross_compiling:$ac_tool_warned in
5480yes:)
5481{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5482whose name does not start with the host triplet.  If you think this
5483configuration is useful to you, please write to autoconf@gnu.org." >&5
5484echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5485whose name does not start with the host triplet.  If you think this
5486configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5487ac_tool_warned=yes ;;
5488esac
5489    OTOOL=$ac_ct_OTOOL
5490  fi
5491else
5492  OTOOL="$ac_cv_prog_OTOOL"
5493fi
5494
5495    if test -n "$ac_tool_prefix"; then
5496  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5497set dummy ${ac_tool_prefix}otool64; ac_word=$2
5498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5500if test "${ac_cv_prog_OTOOL64+set}" = set; then
5501  echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
5503  if test -n "$OTOOL64"; then
5504  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509  IFS=$as_save_IFS
5510  test -z "$as_dir" && as_dir=.
5511  for ac_exec_ext in '' $ac_executable_extensions; do
5512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5514    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515    break 2
5516  fi
5517done
5518done
5519IFS=$as_save_IFS
5520
5521fi
5522fi
5523OTOOL64=$ac_cv_prog_OTOOL64
5524if test -n "$OTOOL64"; then
5525  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
5526echo "${ECHO_T}$OTOOL64" >&6; }
5527else
5528  { echo "$as_me:$LINENO: result: no" >&5
5529echo "${ECHO_T}no" >&6; }
5530fi
5531
5532
5533fi
5534if test -z "$ac_cv_prog_OTOOL64"; then
5535  ac_ct_OTOOL64=$OTOOL64
5536  # Extract the first word of "otool64", so it can be a program name with args.
5537set dummy otool64; ac_word=$2
5538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5540if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5541  echo $ECHO_N "(cached) $ECHO_C" >&6
5542else
5543  if test -n "$ac_ct_OTOOL64"; then
5544  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5545else
5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549  IFS=$as_save_IFS
5550  test -z "$as_dir" && as_dir=.
5551  for ac_exec_ext in '' $ac_executable_extensions; do
5552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553    ac_cv_prog_ac_ct_OTOOL64="otool64"
5554    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555    break 2
5556  fi
5557done
5558done
5559IFS=$as_save_IFS
5560
5561fi
5562fi
5563ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5564if test -n "$ac_ct_OTOOL64"; then
5565  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5566echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
5567else
5568  { echo "$as_me:$LINENO: result: no" >&5
5569echo "${ECHO_T}no" >&6; }
5570fi
5571
5572  if test "x$ac_ct_OTOOL64" = x; then
5573    OTOOL64=":"
5574  else
5575    case $cross_compiling:$ac_tool_warned in
5576yes:)
5577{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5578whose name does not start with the host triplet.  If you think this
5579configuration is useful to you, please write to autoconf@gnu.org." >&5
5580echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5581whose name does not start with the host triplet.  If you think this
5582configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5583ac_tool_warned=yes ;;
5584esac
5585    OTOOL64=$ac_ct_OTOOL64
5586  fi
5587else
5588  OTOOL64="$ac_cv_prog_OTOOL64"
5589fi
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5618echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
5619if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5620  echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622  lt_cv_apple_cc_single_mod=no
5623      if test -z "${LT_MULTI_MODULE}"; then
5624	# By default we will add the -single_module flag. You can override
5625	# by either setting the environment variable LT_MULTI_MODULE
5626	# non-empty at configure time, or by adding -multi_module to the
5627	# link flags.
5628	rm -rf libconftest.dylib*
5629	echo "int foo(void){return 1;}" > conftest.c
5630	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5631-dynamiclib -Wl,-single_module conftest.c" >&5
5632	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5633	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5634        _lt_result=$?
5635	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5636	  lt_cv_apple_cc_single_mod=yes
5637	else
5638	  cat conftest.err >&5
5639	fi
5640	rm -rf libconftest.dylib*
5641	rm -f conftest.*
5642      fi
5643fi
5644{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5645echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
5646    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5647echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
5648if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5649  echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651  lt_cv_ld_exported_symbols_list=no
5652      save_LDFLAGS=$LDFLAGS
5653      echo "_main" > conftest.sym
5654      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5655      cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h.  */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
5660/* end confdefs.h.  */
5661
5662int
5663main ()
5664{
5665
5666  ;
5667  return 0;
5668}
5669_ACEOF
5670rm -f conftest.$ac_objext conftest$ac_exeext
5671if { (ac_try="$ac_link"
5672case "(($ac_try" in
5673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674  *) ac_try_echo=$ac_try;;
5675esac
5676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677  (eval "$ac_link") 2>conftest.er1
5678  ac_status=$?
5679  grep -v '^ *+' conftest.er1 >conftest.err
5680  rm -f conftest.er1
5681  cat conftest.err >&5
5682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683  (exit $ac_status); } && {
5684	 test -z "$ac_c_werror_flag" ||
5685	 test ! -s conftest.err
5686       } && test -s conftest$ac_exeext &&
5687       $as_test_x conftest$ac_exeext; then
5688  lt_cv_ld_exported_symbols_list=yes
5689else
5690  echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
5693	lt_cv_ld_exported_symbols_list=no
5694fi
5695
5696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5697      conftest$ac_exeext conftest.$ac_ext
5698	LDFLAGS="$save_LDFLAGS"
5699
5700fi
5701{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5702echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
5703    case $host_os in
5704    rhapsody* | darwin1.[012])
5705      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5706    darwin1.*)
5707      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5708    darwin*) # darwin 5.x on
5709      # if running on 10.5 or later, the deployment target defaults
5710      # to the OS version, if on x86, and 10.4, the deployment
5711      # target defaults to 10.4. Don't you love it?
5712      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5713	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5714	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5715	10.[012]*)
5716	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5717	10.*)
5718	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5719      esac
5720    ;;
5721  esac
5722    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5723      _lt_dar_single_mod='$single_module'
5724    fi
5725    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5726      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5727    else
5728      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5729    fi
5730    if test "$DSYMUTIL" != ":"; then
5731      _lt_dsymutil='~$DSYMUTIL $lib || :'
5732    else
5733      _lt_dsymutil=
5734    fi
5735    ;;
5736  esac
5737
5738ac_ext=c
5739ac_cpp='$CPP $CPPFLAGS'
5740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5744echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5745# On Suns, sometimes $CPP names a directory.
5746if test -n "$CPP" && test -d "$CPP"; then
5747  CPP=
5748fi
5749if test -z "$CPP"; then
5750  if test "${ac_cv_prog_CPP+set}" = set; then
5751  echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753      # Double quotes because CPP needs to be expanded
5754    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5755    do
5756      ac_preproc_ok=false
5757for ac_c_preproc_warn_flag in '' yes
5758do
5759  # Use a header file that comes with gcc, so configuring glibc
5760  # with a fresh cross-compiler works.
5761  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5762  # <limits.h> exists even on freestanding compilers.
5763  # On the NeXT, cc -E runs the code through the compiler's parser,
5764  # not just through cpp. "Syntax error" is here to catch this case.
5765  cat >conftest.$ac_ext <<_ACEOF
5766/* confdefs.h.  */
5767_ACEOF
5768cat confdefs.h >>conftest.$ac_ext
5769cat >>conftest.$ac_ext <<_ACEOF
5770/* end confdefs.h.  */
5771#ifdef __STDC__
5772# include <limits.h>
5773#else
5774# include <assert.h>
5775#endif
5776		     Syntax error
5777_ACEOF
5778if { (ac_try="$ac_cpp conftest.$ac_ext"
5779case "(($ac_try" in
5780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781  *) ac_try_echo=$ac_try;;
5782esac
5783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5785  ac_status=$?
5786  grep -v '^ *+' conftest.er1 >conftest.err
5787  rm -f conftest.er1
5788  cat conftest.err >&5
5789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790  (exit $ac_status); } >/dev/null && {
5791	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5792	 test ! -s conftest.err
5793       }; then
5794  :
5795else
5796  echo "$as_me: failed program was:" >&5
5797sed 's/^/| /' conftest.$ac_ext >&5
5798
5799  # Broken: fails on valid input.
5800continue
5801fi
5802
5803rm -f conftest.err conftest.$ac_ext
5804
5805  # OK, works on sane cases.  Now check whether nonexistent headers
5806  # can be detected and how.
5807  cat >conftest.$ac_ext <<_ACEOF
5808/* confdefs.h.  */
5809_ACEOF
5810cat confdefs.h >>conftest.$ac_ext
5811cat >>conftest.$ac_ext <<_ACEOF
5812/* end confdefs.h.  */
5813#include <ac_nonexistent.h>
5814_ACEOF
5815if { (ac_try="$ac_cpp conftest.$ac_ext"
5816case "(($ac_try" in
5817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818  *) ac_try_echo=$ac_try;;
5819esac
5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5822  ac_status=$?
5823  grep -v '^ *+' conftest.er1 >conftest.err
5824  rm -f conftest.er1
5825  cat conftest.err >&5
5826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827  (exit $ac_status); } >/dev/null && {
5828	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5829	 test ! -s conftest.err
5830       }; then
5831  # Broken: success on invalid input.
5832continue
5833else
5834  echo "$as_me: failed program was:" >&5
5835sed 's/^/| /' conftest.$ac_ext >&5
5836
5837  # Passes both tests.
5838ac_preproc_ok=:
5839break
5840fi
5841
5842rm -f conftest.err conftest.$ac_ext
5843
5844done
5845# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5846rm -f conftest.err conftest.$ac_ext
5847if $ac_preproc_ok; then
5848  break
5849fi
5850
5851    done
5852    ac_cv_prog_CPP=$CPP
5853
5854fi
5855  CPP=$ac_cv_prog_CPP
5856else
5857  ac_cv_prog_CPP=$CPP
5858fi
5859{ echo "$as_me:$LINENO: result: $CPP" >&5
5860echo "${ECHO_T}$CPP" >&6; }
5861ac_preproc_ok=false
5862for ac_c_preproc_warn_flag in '' yes
5863do
5864  # Use a header file that comes with gcc, so configuring glibc
5865  # with a fresh cross-compiler works.
5866  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5867  # <limits.h> exists even on freestanding compilers.
5868  # On the NeXT, cc -E runs the code through the compiler's parser,
5869  # not just through cpp. "Syntax error" is here to catch this case.
5870  cat >conftest.$ac_ext <<_ACEOF
5871/* confdefs.h.  */
5872_ACEOF
5873cat confdefs.h >>conftest.$ac_ext
5874cat >>conftest.$ac_ext <<_ACEOF
5875/* end confdefs.h.  */
5876#ifdef __STDC__
5877# include <limits.h>
5878#else
5879# include <assert.h>
5880#endif
5881		     Syntax error
5882_ACEOF
5883if { (ac_try="$ac_cpp conftest.$ac_ext"
5884case "(($ac_try" in
5885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886  *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5890  ac_status=$?
5891  grep -v '^ *+' conftest.er1 >conftest.err
5892  rm -f conftest.er1
5893  cat conftest.err >&5
5894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895  (exit $ac_status); } >/dev/null && {
5896	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5897	 test ! -s conftest.err
5898       }; then
5899  :
5900else
5901  echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904  # Broken: fails on valid input.
5905continue
5906fi
5907
5908rm -f conftest.err conftest.$ac_ext
5909
5910  # OK, works on sane cases.  Now check whether nonexistent headers
5911  # can be detected and how.
5912  cat >conftest.$ac_ext <<_ACEOF
5913/* confdefs.h.  */
5914_ACEOF
5915cat confdefs.h >>conftest.$ac_ext
5916cat >>conftest.$ac_ext <<_ACEOF
5917/* end confdefs.h.  */
5918#include <ac_nonexistent.h>
5919_ACEOF
5920if { (ac_try="$ac_cpp conftest.$ac_ext"
5921case "(($ac_try" in
5922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923  *) ac_try_echo=$ac_try;;
5924esac
5925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5927  ac_status=$?
5928  grep -v '^ *+' conftest.er1 >conftest.err
5929  rm -f conftest.er1
5930  cat conftest.err >&5
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); } >/dev/null && {
5933	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5934	 test ! -s conftest.err
5935       }; then
5936  # Broken: success on invalid input.
5937continue
5938else
5939  echo "$as_me: failed program was:" >&5
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
5942  # Passes both tests.
5943ac_preproc_ok=:
5944break
5945fi
5946
5947rm -f conftest.err conftest.$ac_ext
5948
5949done
5950# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5951rm -f conftest.err conftest.$ac_ext
5952if $ac_preproc_ok; then
5953  :
5954else
5955  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5956See \`config.log' for more details." >&5
5957echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5958See \`config.log' for more details." >&2;}
5959   { (exit 1); exit 1; }; }
5960fi
5961
5962ac_ext=c
5963ac_cpp='$CPP $CPPFLAGS'
5964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966ac_compiler_gnu=$ac_cv_c_compiler_gnu
5967
5968
5969{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5970echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5971if test "${ac_cv_header_stdc+set}" = set; then
5972  echo $ECHO_N "(cached) $ECHO_C" >&6
5973else
5974  cat >conftest.$ac_ext <<_ACEOF
5975/* confdefs.h.  */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h.  */
5980#include <stdlib.h>
5981#include <stdarg.h>
5982#include <string.h>
5983#include <float.h>
5984
5985int
5986main ()
5987{
5988
5989  ;
5990  return 0;
5991}
5992_ACEOF
5993rm -f conftest.$ac_objext
5994if { (ac_try="$ac_compile"
5995case "(($ac_try" in
5996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997  *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000  (eval "$ac_compile") 2>conftest.er1
6001  ac_status=$?
6002  grep -v '^ *+' conftest.er1 >conftest.err
6003  rm -f conftest.er1
6004  cat conftest.err >&5
6005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006  (exit $ac_status); } && {
6007	 test -z "$ac_c_werror_flag" ||
6008	 test ! -s conftest.err
6009       } && test -s conftest.$ac_objext; then
6010  ac_cv_header_stdc=yes
6011else
6012  echo "$as_me: failed program was:" >&5
6013sed 's/^/| /' conftest.$ac_ext >&5
6014
6015	ac_cv_header_stdc=no
6016fi
6017
6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019
6020if test $ac_cv_header_stdc = yes; then
6021  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6022  cat >conftest.$ac_ext <<_ACEOF
6023/* confdefs.h.  */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h.  */
6028#include <string.h>
6029
6030_ACEOF
6031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032  $EGREP "memchr" >/dev/null 2>&1; then
6033  :
6034else
6035  ac_cv_header_stdc=no
6036fi
6037rm -f -r conftest*
6038
6039fi
6040
6041if test $ac_cv_header_stdc = yes; then
6042  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6043  cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h.  */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h.  */
6049#include <stdlib.h>
6050
6051_ACEOF
6052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6053  $EGREP "free" >/dev/null 2>&1; then
6054  :
6055else
6056  ac_cv_header_stdc=no
6057fi
6058rm -f -r conftest*
6059
6060fi
6061
6062if test $ac_cv_header_stdc = yes; then
6063  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6064  if test "$cross_compiling" = yes; then
6065  :
6066else
6067  cat >conftest.$ac_ext <<_ACEOF
6068/* confdefs.h.  */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
6072/* end confdefs.h.  */
6073#include <ctype.h>
6074#include <stdlib.h>
6075#if ((' ' & 0x0FF) == 0x020)
6076# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6077# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6078#else
6079# define ISLOWER(c) \
6080		   (('a' <= (c) && (c) <= 'i') \
6081		     || ('j' <= (c) && (c) <= 'r') \
6082		     || ('s' <= (c) && (c) <= 'z'))
6083# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6084#endif
6085
6086#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6087int
6088main ()
6089{
6090  int i;
6091  for (i = 0; i < 256; i++)
6092    if (XOR (islower (i), ISLOWER (i))
6093	|| toupper (i) != TOUPPER (i))
6094      return 2;
6095  return 0;
6096}
6097_ACEOF
6098rm -f conftest$ac_exeext
6099if { (ac_try="$ac_link"
6100case "(($ac_try" in
6101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102  *) ac_try_echo=$ac_try;;
6103esac
6104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105  (eval "$ac_link") 2>&5
6106  ac_status=$?
6107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6109  { (case "(($ac_try" in
6110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111  *) ac_try_echo=$ac_try;;
6112esac
6113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114  (eval "$ac_try") 2>&5
6115  ac_status=$?
6116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117  (exit $ac_status); }; }; then
6118  :
6119else
6120  echo "$as_me: program exited with status $ac_status" >&5
6121echo "$as_me: failed program was:" >&5
6122sed 's/^/| /' conftest.$ac_ext >&5
6123
6124( exit $ac_status )
6125ac_cv_header_stdc=no
6126fi
6127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6128fi
6129
6130
6131fi
6132fi
6133{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6134echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6135if test $ac_cv_header_stdc = yes; then
6136
6137cat >>confdefs.h <<\_ACEOF
6138#define STDC_HEADERS 1
6139_ACEOF
6140
6141fi
6142
6143# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6154		  inttypes.h stdint.h unistd.h
6155do
6156as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6157{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6160  echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162  cat >conftest.$ac_ext <<_ACEOF
6163/* confdefs.h.  */
6164_ACEOF
6165cat confdefs.h >>conftest.$ac_ext
6166cat >>conftest.$ac_ext <<_ACEOF
6167/* end confdefs.h.  */
6168$ac_includes_default
6169
6170#include <$ac_header>
6171_ACEOF
6172rm -f conftest.$ac_objext
6173if { (ac_try="$ac_compile"
6174case "(($ac_try" in
6175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176  *) ac_try_echo=$ac_try;;
6177esac
6178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179  (eval "$ac_compile") 2>conftest.er1
6180  ac_status=$?
6181  grep -v '^ *+' conftest.er1 >conftest.err
6182  rm -f conftest.er1
6183  cat conftest.err >&5
6184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185  (exit $ac_status); } && {
6186	 test -z "$ac_c_werror_flag" ||
6187	 test ! -s conftest.err
6188       } && test -s conftest.$ac_objext; then
6189  eval "$as_ac_Header=yes"
6190else
6191  echo "$as_me: failed program was:" >&5
6192sed 's/^/| /' conftest.$ac_ext >&5
6193
6194	eval "$as_ac_Header=no"
6195fi
6196
6197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198fi
6199ac_res=`eval echo '${'$as_ac_Header'}'`
6200	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6201echo "${ECHO_T}$ac_res" >&6; }
6202if test `eval echo '${'$as_ac_Header'}'` = yes; then
6203  cat >>confdefs.h <<_ACEOF
6204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6205_ACEOF
6206
6207fi
6208
6209done
6210
6211
6212
6213for ac_header in dlfcn.h
6214do
6215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6216{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6219  echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221  cat >conftest.$ac_ext <<_ACEOF
6222/* confdefs.h.  */
6223_ACEOF
6224cat confdefs.h >>conftest.$ac_ext
6225cat >>conftest.$ac_ext <<_ACEOF
6226/* end confdefs.h.  */
6227$ac_includes_default
6228
6229#include <$ac_header>
6230_ACEOF
6231rm -f conftest.$ac_objext
6232if { (ac_try="$ac_compile"
6233case "(($ac_try" in
6234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235  *) ac_try_echo=$ac_try;;
6236esac
6237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238  (eval "$ac_compile") 2>conftest.er1
6239  ac_status=$?
6240  grep -v '^ *+' conftest.er1 >conftest.err
6241  rm -f conftest.er1
6242  cat conftest.err >&5
6243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244  (exit $ac_status); } && {
6245	 test -z "$ac_c_werror_flag" ||
6246	 test ! -s conftest.err
6247       } && test -s conftest.$ac_objext; then
6248  eval "$as_ac_Header=yes"
6249else
6250  echo "$as_me: failed program was:" >&5
6251sed 's/^/| /' conftest.$ac_ext >&5
6252
6253	eval "$as_ac_Header=no"
6254fi
6255
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257fi
6258ac_res=`eval echo '${'$as_ac_Header'}'`
6259	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6260echo "${ECHO_T}$ac_res" >&6; }
6261if test `eval echo '${'$as_ac_Header'}'` = yes; then
6262  cat >>confdefs.h <<_ACEOF
6263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6264_ACEOF
6265
6266fi
6267
6268done
6269
6270
6271
6272# Set options
6273enable_win32_dll=yes
6274
6275case $host in
6276*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6277  if test -n "$ac_tool_prefix"; then
6278  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6279set dummy ${ac_tool_prefix}as; ac_word=$2
6280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282if test "${ac_cv_prog_AS+set}" = set; then
6283  echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285  if test -n "$AS"; then
6286  ac_cv_prog_AS="$AS" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291  IFS=$as_save_IFS
6292  test -z "$as_dir" && as_dir=.
6293  for ac_exec_ext in '' $ac_executable_extensions; do
6294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295    ac_cv_prog_AS="${ac_tool_prefix}as"
6296    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297    break 2
6298  fi
6299done
6300done
6301IFS=$as_save_IFS
6302
6303fi
6304fi
6305AS=$ac_cv_prog_AS
6306if test -n "$AS"; then
6307  { echo "$as_me:$LINENO: result: $AS" >&5
6308echo "${ECHO_T}$AS" >&6; }
6309else
6310  { echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6; }
6312fi
6313
6314
6315fi
6316if test -z "$ac_cv_prog_AS"; then
6317  ac_ct_AS=$AS
6318  # Extract the first word of "as", so it can be a program name with args.
6319set dummy as; ac_word=$2
6320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6322if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6323  echo $ECHO_N "(cached) $ECHO_C" >&6
6324else
6325  if test -n "$ac_ct_AS"; then
6326  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6327else
6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329for as_dir in $PATH
6330do
6331  IFS=$as_save_IFS
6332  test -z "$as_dir" && as_dir=.
6333  for ac_exec_ext in '' $ac_executable_extensions; do
6334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335    ac_cv_prog_ac_ct_AS="as"
6336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337    break 2
6338  fi
6339done
6340done
6341IFS=$as_save_IFS
6342
6343fi
6344fi
6345ac_ct_AS=$ac_cv_prog_ac_ct_AS
6346if test -n "$ac_ct_AS"; then
6347  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6348echo "${ECHO_T}$ac_ct_AS" >&6; }
6349else
6350  { echo "$as_me:$LINENO: result: no" >&5
6351echo "${ECHO_T}no" >&6; }
6352fi
6353
6354  if test "x$ac_ct_AS" = x; then
6355    AS="false"
6356  else
6357    case $cross_compiling:$ac_tool_warned in
6358yes:)
6359{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6360whose name does not start with the host triplet.  If you think this
6361configuration is useful to you, please write to autoconf@gnu.org." >&5
6362echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6363whose name does not start with the host triplet.  If you think this
6364configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6365ac_tool_warned=yes ;;
6366esac
6367    AS=$ac_ct_AS
6368  fi
6369else
6370  AS="$ac_cv_prog_AS"
6371fi
6372
6373  if test -n "$ac_tool_prefix"; then
6374  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6375set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6379  echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381  if test -n "$DLLTOOL"; then
6382  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6383else
6384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385for as_dir in $PATH
6386do
6387  IFS=$as_save_IFS
6388  test -z "$as_dir" && as_dir=.
6389  for ac_exec_ext in '' $ac_executable_extensions; do
6390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6392    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393    break 2
6394  fi
6395done
6396done
6397IFS=$as_save_IFS
6398
6399fi
6400fi
6401DLLTOOL=$ac_cv_prog_DLLTOOL
6402if test -n "$DLLTOOL"; then
6403  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6404echo "${ECHO_T}$DLLTOOL" >&6; }
6405else
6406  { echo "$as_me:$LINENO: result: no" >&5
6407echo "${ECHO_T}no" >&6; }
6408fi
6409
6410
6411fi
6412if test -z "$ac_cv_prog_DLLTOOL"; then
6413  ac_ct_DLLTOOL=$DLLTOOL
6414  # Extract the first word of "dlltool", so it can be a program name with args.
6415set dummy dlltool; ac_word=$2
6416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6418if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  if test -n "$ac_ct_DLLTOOL"; then
6422  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  test -z "$as_dir" && as_dir=.
6429  for ac_exec_ext in '' $ac_executable_extensions; do
6430  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433    break 2
6434  fi
6435done
6436done
6437IFS=$as_save_IFS
6438
6439fi
6440fi
6441ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6442if test -n "$ac_ct_DLLTOOL"; then
6443  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6444echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6445else
6446  { echo "$as_me:$LINENO: result: no" >&5
6447echo "${ECHO_T}no" >&6; }
6448fi
6449
6450  if test "x$ac_ct_DLLTOOL" = x; then
6451    DLLTOOL="false"
6452  else
6453    case $cross_compiling:$ac_tool_warned in
6454yes:)
6455{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6456whose name does not start with the host triplet.  If you think this
6457configuration is useful to you, please write to autoconf@gnu.org." >&5
6458echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6459whose name does not start with the host triplet.  If you think this
6460configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6461ac_tool_warned=yes ;;
6462esac
6463    DLLTOOL=$ac_ct_DLLTOOL
6464  fi
6465else
6466  DLLTOOL="$ac_cv_prog_DLLTOOL"
6467fi
6468
6469  if test -n "$ac_tool_prefix"; then
6470  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6471set dummy ${ac_tool_prefix}objdump; ac_word=$2
6472{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6474if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6475  echo $ECHO_N "(cached) $ECHO_C" >&6
6476else
6477  if test -n "$OBJDUMP"; then
6478  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485  for ac_exec_ext in '' $ac_executable_extensions; do
6486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497OBJDUMP=$ac_cv_prog_OBJDUMP
6498if test -n "$OBJDUMP"; then
6499  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6500echo "${ECHO_T}$OBJDUMP" >&6; }
6501else
6502  { echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6; }
6504fi
6505
6506
6507fi
6508if test -z "$ac_cv_prog_OBJDUMP"; then
6509  ac_ct_OBJDUMP=$OBJDUMP
6510  # Extract the first word of "objdump", so it can be a program name with args.
6511set dummy objdump; ac_word=$2
6512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6515  echo $ECHO_N "(cached) $ECHO_C" >&6
6516else
6517  if test -n "$ac_ct_OBJDUMP"; then
6518  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523  IFS=$as_save_IFS
6524  test -z "$as_dir" && as_dir=.
6525  for ac_exec_ext in '' $ac_executable_extensions; do
6526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6528    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529    break 2
6530  fi
6531done
6532done
6533IFS=$as_save_IFS
6534
6535fi
6536fi
6537ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6538if test -n "$ac_ct_OBJDUMP"; then
6539  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6540echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6541else
6542  { echo "$as_me:$LINENO: result: no" >&5
6543echo "${ECHO_T}no" >&6; }
6544fi
6545
6546  if test "x$ac_ct_OBJDUMP" = x; then
6547    OBJDUMP="false"
6548  else
6549    case $cross_compiling:$ac_tool_warned in
6550yes:)
6551{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6552whose name does not start with the host triplet.  If you think this
6553configuration is useful to you, please write to autoconf@gnu.org." >&5
6554echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6555whose name does not start with the host triplet.  If you think this
6556configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6557ac_tool_warned=yes ;;
6558esac
6559    OBJDUMP=$ac_ct_OBJDUMP
6560  fi
6561else
6562  OBJDUMP="$ac_cv_prog_OBJDUMP"
6563fi
6564
6565  ;;
6566esac
6567
6568test -z "$AS" && AS=as
6569
6570
6571
6572
6573
6574test -z "$DLLTOOL" && DLLTOOL=dlltool
6575
6576
6577
6578
6579
6580test -z "$OBJDUMP" && OBJDUMP=objdump
6581
6582
6583
6584
6585
6586
6587
6588        enable_dlopen=no
6589
6590
6591
6592            # Check whether --enable-shared was given.
6593if test "${enable_shared+set}" = set; then
6594  enableval=$enable_shared; p=${PACKAGE-default}
6595    case $enableval in
6596    yes) enable_shared=yes ;;
6597    no) enable_shared=no ;;
6598    *)
6599      enable_shared=no
6600      # Look at the argument we got.  We use all the common list separators.
6601      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6602      for pkg in $enableval; do
6603	IFS="$lt_save_ifs"
6604	if test "X$pkg" = "X$p"; then
6605	  enable_shared=yes
6606	fi
6607      done
6608      IFS="$lt_save_ifs"
6609      ;;
6610    esac
6611else
6612  enable_shared=yes
6613fi
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623  # Check whether --enable-static was given.
6624if test "${enable_static+set}" = set; then
6625  enableval=$enable_static; p=${PACKAGE-default}
6626    case $enableval in
6627    yes) enable_static=yes ;;
6628    no) enable_static=no ;;
6629    *)
6630     enable_static=no
6631      # Look at the argument we got.  We use all the common list separators.
6632      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6633      for pkg in $enableval; do
6634	IFS="$lt_save_ifs"
6635	if test "X$pkg" = "X$p"; then
6636	  enable_static=yes
6637	fi
6638      done
6639      IFS="$lt_save_ifs"
6640      ;;
6641    esac
6642else
6643  enable_static=yes
6644fi
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655# Check whether --with-pic was given.
6656if test "${with_pic+set}" = set; then
6657  withval=$with_pic; pic_mode="$withval"
6658else
6659  pic_mode=default
6660fi
6661
6662
6663test -z "$pic_mode" && pic_mode=default
6664
6665
6666
6667
6668
6669
6670
6671  # Check whether --enable-fast-install was given.
6672if test "${enable_fast_install+set}" = set; then
6673  enableval=$enable_fast_install; p=${PACKAGE-default}
6674    case $enableval in
6675    yes) enable_fast_install=yes ;;
6676    no) enable_fast_install=no ;;
6677    *)
6678      enable_fast_install=no
6679      # Look at the argument we got.  We use all the common list separators.
6680      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6681      for pkg in $enableval; do
6682	IFS="$lt_save_ifs"
6683	if test "X$pkg" = "X$p"; then
6684	  enable_fast_install=yes
6685	fi
6686      done
6687      IFS="$lt_save_ifs"
6688      ;;
6689    esac
6690else
6691  enable_fast_install=yes
6692fi
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704# This can be used to rebuild libtool when needed
6705LIBTOOL_DEPS="$ltmain"
6706
6707# Always use our own libtool.
6708LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734test -z "$LN_S" && LN_S="ln -s"
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749if test -n "${ZSH_VERSION+set}" ; then
6750   setopt NO_GLOB_SUBST
6751fi
6752
6753{ echo "$as_me:$LINENO: checking for objdir" >&5
6754echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6755if test "${lt_cv_objdir+set}" = set; then
6756  echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758  rm -f .libs 2>/dev/null
6759mkdir .libs 2>/dev/null
6760if test -d .libs; then
6761  lt_cv_objdir=.libs
6762else
6763  # MS-DOS does not allow filenames that begin with a dot.
6764  lt_cv_objdir=_libs
6765fi
6766rmdir .libs 2>/dev/null
6767fi
6768{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6769echo "${ECHO_T}$lt_cv_objdir" >&6; }
6770objdir=$lt_cv_objdir
6771
6772
6773
6774
6775
6776cat >>confdefs.h <<_ACEOF
6777#define LT_OBJDIR "$lt_cv_objdir/"
6778_ACEOF
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796case $host_os in
6797aix3*)
6798  # AIX sometimes has problems with the GCC collect2 program.  For some
6799  # reason, if we set the COLLECT_NAMES environment variable, the problems
6800  # vanish in a puff of smoke.
6801  if test "X${COLLECT_NAMES+set}" != Xset; then
6802    COLLECT_NAMES=
6803    export COLLECT_NAMES
6804  fi
6805  ;;
6806esac
6807
6808# Sed substitution that helps us do robust quoting.  It backslashifies
6809# metacharacters that are still active within double-quoted strings.
6810sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6811
6812# Same as above, but do not quote variable references.
6813double_quote_subst='s/\(["`\\]\)/\\\1/g'
6814
6815# Sed substitution to delay expansion of an escaped shell variable in a
6816# double_quote_subst'ed string.
6817delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6818
6819# Sed substitution to delay expansion of an escaped single quote.
6820delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6821
6822# Sed substitution to avoid accidental globbing in evaled expressions
6823no_glob_subst='s/\*/\\\*/g'
6824
6825# Global variables:
6826ofile=libtool
6827can_build_shared=yes
6828
6829# All known linkers require a `.a' archive for static linking (except MSVC,
6830# which needs '.lib').
6831libext=a
6832
6833with_gnu_ld="$lt_cv_prog_gnu_ld"
6834
6835old_CC="$CC"
6836old_CFLAGS="$CFLAGS"
6837
6838# Set sane defaults for various variables
6839test -z "$CC" && CC=cc
6840test -z "$LTCC" && LTCC=$CC
6841test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6842test -z "$LD" && LD=ld
6843test -z "$ac_objext" && ac_objext=o
6844
6845for cc_temp in $compiler""; do
6846  case $cc_temp in
6847    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6848    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6849    \-*) ;;
6850    *) break;;
6851  esac
6852done
6853cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6854
6855
6856# Only perform the check for file, if the check method requires it
6857test -z "$MAGIC_CMD" && MAGIC_CMD=file
6858case $deplibs_check_method in
6859file_magic*)
6860  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6861    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6862echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6863if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6864  echo $ECHO_N "(cached) $ECHO_C" >&6
6865else
6866  case $MAGIC_CMD in
6867[\\/*] |  ?:[\\/]*)
6868  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6869  ;;
6870*)
6871  lt_save_MAGIC_CMD="$MAGIC_CMD"
6872  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6873  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6874  for ac_dir in $ac_dummy; do
6875    IFS="$lt_save_ifs"
6876    test -z "$ac_dir" && ac_dir=.
6877    if test -f $ac_dir/${ac_tool_prefix}file; then
6878      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6879      if test -n "$file_magic_test_file"; then
6880	case $deplibs_check_method in
6881	"file_magic "*)
6882	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6883	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6884	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6885	    $EGREP "$file_magic_regex" > /dev/null; then
6886	    :
6887	  else
6888	    cat <<_LT_EOF 1>&2
6889
6890*** Warning: the command libtool uses to detect shared libraries,
6891*** $file_magic_cmd, produces output that libtool cannot recognize.
6892*** The result is that libtool may fail to recognize shared libraries
6893*** as such.  This will affect the creation of libtool libraries that
6894*** depend on shared libraries, but programs linked with such libtool
6895*** libraries will work regardless of this problem.  Nevertheless, you
6896*** may want to report the problem to your system manager and/or to
6897*** bug-libtool@gnu.org
6898
6899_LT_EOF
6900	  fi ;;
6901	esac
6902      fi
6903      break
6904    fi
6905  done
6906  IFS="$lt_save_ifs"
6907  MAGIC_CMD="$lt_save_MAGIC_CMD"
6908  ;;
6909esac
6910fi
6911
6912MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6913if test -n "$MAGIC_CMD"; then
6914  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6915echo "${ECHO_T}$MAGIC_CMD" >&6; }
6916else
6917  { echo "$as_me:$LINENO: result: no" >&5
6918echo "${ECHO_T}no" >&6; }
6919fi
6920
6921
6922
6923
6924
6925if test -z "$lt_cv_path_MAGIC_CMD"; then
6926  if test -n "$ac_tool_prefix"; then
6927    { echo "$as_me:$LINENO: checking for file" >&5
6928echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6929if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6930  echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932  case $MAGIC_CMD in
6933[\\/*] |  ?:[\\/]*)
6934  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6935  ;;
6936*)
6937  lt_save_MAGIC_CMD="$MAGIC_CMD"
6938  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6939  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6940  for ac_dir in $ac_dummy; do
6941    IFS="$lt_save_ifs"
6942    test -z "$ac_dir" && ac_dir=.
6943    if test -f $ac_dir/file; then
6944      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6945      if test -n "$file_magic_test_file"; then
6946	case $deplibs_check_method in
6947	"file_magic "*)
6948	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6949	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6950	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6951	    $EGREP "$file_magic_regex" > /dev/null; then
6952	    :
6953	  else
6954	    cat <<_LT_EOF 1>&2
6955
6956*** Warning: the command libtool uses to detect shared libraries,
6957*** $file_magic_cmd, produces output that libtool cannot recognize.
6958*** The result is that libtool may fail to recognize shared libraries
6959*** as such.  This will affect the creation of libtool libraries that
6960*** depend on shared libraries, but programs linked with such libtool
6961*** libraries will work regardless of this problem.  Nevertheless, you
6962*** may want to report the problem to your system manager and/or to
6963*** bug-libtool@gnu.org
6964
6965_LT_EOF
6966	  fi ;;
6967	esac
6968      fi
6969      break
6970    fi
6971  done
6972  IFS="$lt_save_ifs"
6973  MAGIC_CMD="$lt_save_MAGIC_CMD"
6974  ;;
6975esac
6976fi
6977
6978MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6979if test -n "$MAGIC_CMD"; then
6980  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6981echo "${ECHO_T}$MAGIC_CMD" >&6; }
6982else
6983  { echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6; }
6985fi
6986
6987
6988  else
6989    MAGIC_CMD=:
6990  fi
6991fi
6992
6993  fi
6994  ;;
6995esac
6996
6997# Use C for the default configuration in the libtool script
6998
6999lt_save_CC="$CC"
7000ac_ext=c
7001ac_cpp='$CPP $CPPFLAGS'
7002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004ac_compiler_gnu=$ac_cv_c_compiler_gnu
7005
7006
7007# Source file extension for C test sources.
7008ac_ext=c
7009
7010# Object file extension for compiled C test sources.
7011objext=o
7012objext=$objext
7013
7014# Code to be used in simple compile tests
7015lt_simple_compile_test_code="int some_variable = 0;"
7016
7017# Code to be used in simple link tests
7018lt_simple_link_test_code='int main(){return(0);}'
7019
7020
7021
7022
7023
7024
7025
7026# If no C compiler was specified, use CC.
7027LTCC=${LTCC-"$CC"}
7028
7029# If no C compiler flags were specified, use CFLAGS.
7030LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7031
7032# Allow CC to be a program name with arguments.
7033compiler=$CC
7034
7035# Save the default compiler, since it gets overwritten when the other
7036# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7037compiler_DEFAULT=$CC
7038
7039# save warnings/boilerplate of simple test code
7040ac_outfile=conftest.$ac_objext
7041echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7042eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7043_lt_compiler_boilerplate=`cat conftest.err`
7044$RM conftest*
7045
7046ac_outfile=conftest.$ac_objext
7047echo "$lt_simple_link_test_code" >conftest.$ac_ext
7048eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7049_lt_linker_boilerplate=`cat conftest.err`
7050$RM -r conftest*
7051
7052
7053## CAVEAT EMPTOR:
7054## There is no encapsulation within the following macros, do not change
7055## the running order or otherwise move them around unless you know exactly
7056## what you are doing...
7057if test -n "$compiler"; then
7058
7059lt_prog_compiler_no_builtin_flag=
7060
7061if test "$GCC" = yes; then
7062  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7063
7064  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7065echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7066if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7067  echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069  lt_cv_prog_compiler_rtti_exceptions=no
7070   ac_outfile=conftest.$ac_objext
7071   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7072   lt_compiler_flag="-fno-rtti -fno-exceptions"
7073   # Insert the option either (1) after the last *FLAGS variable, or
7074   # (2) before a word containing "conftest.", or (3) at the end.
7075   # Note that $ac_compile itself does not contain backslashes and begins
7076   # with a dollar sign (not a hyphen), so the echo should work correctly.
7077   # The option is referenced via a variable to avoid confusing sed.
7078   lt_compile=`echo "$ac_compile" | $SED \
7079   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7080   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7081   -e 's:$: $lt_compiler_flag:'`
7082   (eval echo "\"\$as_me:7082: $lt_compile\"" >&5)
7083   (eval "$lt_compile" 2>conftest.err)
7084   ac_status=$?
7085   cat conftest.err >&5
7086   echo "$as_me:7086: \$? = $ac_status" >&5
7087   if (exit $ac_status) && test -s "$ac_outfile"; then
7088     # The compiler can only warn and ignore the option if not recognized
7089     # So say no if there are warnings other than the usual output.
7090     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7091     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7092     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7093       lt_cv_prog_compiler_rtti_exceptions=yes
7094     fi
7095   fi
7096   $RM conftest*
7097
7098fi
7099{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7100echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7101
7102if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7103    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7104else
7105    :
7106fi
7107
7108fi
7109
7110
7111
7112
7113
7114
7115  lt_prog_compiler_wl=
7116lt_prog_compiler_pic=
7117lt_prog_compiler_static=
7118
7119{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7120echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7121
7122  if test "$GCC" = yes; then
7123    lt_prog_compiler_wl='-Wl,'
7124    lt_prog_compiler_static='-static'
7125
7126    case $host_os in
7127      aix*)
7128      # All AIX code is PIC.
7129      if test "$host_cpu" = ia64; then
7130	# AIX 5 now supports IA64 processor
7131	lt_prog_compiler_static='-Bstatic'
7132      fi
7133      ;;
7134
7135    amigaos*)
7136      case $host_cpu in
7137      powerpc)
7138            # see comment about AmigaOS4 .so support
7139            lt_prog_compiler_pic='-fPIC'
7140        ;;
7141      m68k)
7142            # FIXME: we need at least 68020 code to build shared libraries, but
7143            # adding the `-m68020' flag to GCC prevents building anything better,
7144            # like `-m68040'.
7145            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7146        ;;
7147      esac
7148      ;;
7149
7150    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7151      # PIC is the default for these OSes.
7152      ;;
7153
7154    mingw* | cygwin* | pw32* | os2* | cegcc*)
7155      # This hack is so that the source file can tell whether it is being
7156      # built for inclusion in a dll (and should export symbols for example).
7157      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7158      # (--disable-auto-import) libraries
7159      lt_prog_compiler_pic='-DDLL_EXPORT'
7160      ;;
7161
7162    darwin* | rhapsody*)
7163      # PIC is the default on this platform
7164      # Common symbols not allowed in MH_DYLIB files
7165      lt_prog_compiler_pic='-fno-common'
7166      ;;
7167
7168    hpux*)
7169      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7170      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7171      # sets the default TLS model and affects inlining.
7172      case $host_cpu in
7173      hppa*64*)
7174	# +Z the default
7175	;;
7176      *)
7177	lt_prog_compiler_pic='-fPIC'
7178	;;
7179      esac
7180      ;;
7181
7182    interix[3-9]*)
7183      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7184      # Instead, we relocate shared libraries at runtime.
7185      ;;
7186
7187    msdosdjgpp*)
7188      # Just because we use GCC doesn't mean we suddenly get shared libraries
7189      # on systems that don't support them.
7190      lt_prog_compiler_can_build_shared=no
7191      enable_shared=no
7192      ;;
7193
7194    *nto* | *qnx*)
7195      # QNX uses GNU C++, but need to define -shared option too, otherwise
7196      # it will coredump.
7197      lt_prog_compiler_pic='-fPIC -shared'
7198      ;;
7199
7200    sysv4*MP*)
7201      if test -d /usr/nec; then
7202	lt_prog_compiler_pic=-Kconform_pic
7203      fi
7204      ;;
7205
7206    *)
7207      lt_prog_compiler_pic='-fPIC'
7208      ;;
7209    esac
7210  else
7211    # PORTME Check for flag to pass linker flags through the system compiler.
7212    case $host_os in
7213    aix*)
7214      lt_prog_compiler_wl='-Wl,'
7215      if test "$host_cpu" = ia64; then
7216	# AIX 5 now supports IA64 processor
7217	lt_prog_compiler_static='-Bstatic'
7218      else
7219	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7220      fi
7221      ;;
7222
7223    mingw* | cygwin* | pw32* | os2* | cegcc*)
7224      # This hack is so that the source file can tell whether it is being
7225      # built for inclusion in a dll (and should export symbols for example).
7226      lt_prog_compiler_pic='-DDLL_EXPORT'
7227      ;;
7228
7229    hpux9* | hpux10* | hpux11*)
7230      lt_prog_compiler_wl='-Wl,'
7231      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7232      # not for PA HP-UX.
7233      case $host_cpu in
7234      hppa*64*|ia64*)
7235	# +Z the default
7236	;;
7237      *)
7238	lt_prog_compiler_pic='+Z'
7239	;;
7240      esac
7241      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7242      lt_prog_compiler_static='${wl}-a ${wl}archive'
7243      ;;
7244
7245    irix5* | irix6* | nonstopux*)
7246      lt_prog_compiler_wl='-Wl,'
7247      # PIC (with -KPIC) is the default.
7248      lt_prog_compiler_static='-non_shared'
7249      ;;
7250
7251    linux* | k*bsd*-gnu)
7252      case $cc_basename in
7253      # old Intel for x86_64 which still supported -KPIC.
7254      ecc*)
7255	lt_prog_compiler_wl='-Wl,'
7256	lt_prog_compiler_pic='-KPIC'
7257	lt_prog_compiler_static='-static'
7258        ;;
7259      # icc used to be incompatible with GCC.
7260      # ICC 10 doesn't accept -KPIC any more.
7261      icc* | ifort*)
7262	lt_prog_compiler_wl='-Wl,'
7263	lt_prog_compiler_pic='-fPIC'
7264	lt_prog_compiler_static='-static'
7265        ;;
7266      # Lahey Fortran 8.1.
7267      lf95*)
7268	lt_prog_compiler_wl='-Wl,'
7269	lt_prog_compiler_pic='--shared'
7270	lt_prog_compiler_static='--static'
7271	;;
7272      pgcc* | pgf77* | pgf90* | pgf95*)
7273        # Portland Group compilers (*not* the Pentium gcc compiler,
7274	# which looks to be a dead project)
7275	lt_prog_compiler_wl='-Wl,'
7276	lt_prog_compiler_pic='-fpic'
7277	lt_prog_compiler_static='-Bstatic'
7278        ;;
7279      ccc*)
7280        lt_prog_compiler_wl='-Wl,'
7281        # All Alpha code is PIC.
7282        lt_prog_compiler_static='-non_shared'
7283        ;;
7284      xl*)
7285	# IBM XL C 8.0/Fortran 10.1 on PPC
7286	lt_prog_compiler_wl='-Wl,'
7287	lt_prog_compiler_pic='-qpic'
7288	lt_prog_compiler_static='-qstaticlink'
7289	;;
7290      *)
7291	case `$CC -V 2>&1 | sed 5q` in
7292	*Sun\ C*)
7293	  # Sun C 5.9
7294	  lt_prog_compiler_pic='-KPIC'
7295	  lt_prog_compiler_static='-Bstatic'
7296	  lt_prog_compiler_wl='-Wl,'
7297	  ;;
7298	*Sun\ F*)
7299	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7300	  lt_prog_compiler_pic='-KPIC'
7301	  lt_prog_compiler_static='-Bstatic'
7302	  lt_prog_compiler_wl=''
7303	  ;;
7304	esac
7305	;;
7306      esac
7307      ;;
7308
7309    newsos6)
7310      lt_prog_compiler_pic='-KPIC'
7311      lt_prog_compiler_static='-Bstatic'
7312      ;;
7313
7314    *nto* | *qnx*)
7315      # QNX uses GNU C++, but need to define -shared option too, otherwise
7316      # it will coredump.
7317      lt_prog_compiler_pic='-fPIC -shared'
7318      ;;
7319
7320    osf3* | osf4* | osf5*)
7321      lt_prog_compiler_wl='-Wl,'
7322      # All OSF/1 code is PIC.
7323      lt_prog_compiler_static='-non_shared'
7324      ;;
7325
7326    rdos*)
7327      lt_prog_compiler_static='-non_shared'
7328      ;;
7329
7330    solaris*)
7331      lt_prog_compiler_pic='-KPIC'
7332      lt_prog_compiler_static='-Bstatic'
7333      case $cc_basename in
7334      f77* | f90* | f95*)
7335	lt_prog_compiler_wl='-Qoption ld ';;
7336      *)
7337	lt_prog_compiler_wl='-Wl,';;
7338      esac
7339      ;;
7340
7341    sunos4*)
7342      lt_prog_compiler_wl='-Qoption ld '
7343      lt_prog_compiler_pic='-PIC'
7344      lt_prog_compiler_static='-Bstatic'
7345      ;;
7346
7347    sysv4 | sysv4.2uw2* | sysv4.3*)
7348      lt_prog_compiler_wl='-Wl,'
7349      lt_prog_compiler_pic='-KPIC'
7350      lt_prog_compiler_static='-Bstatic'
7351      ;;
7352
7353    sysv4*MP*)
7354      if test -d /usr/nec ;then
7355	lt_prog_compiler_pic='-Kconform_pic'
7356	lt_prog_compiler_static='-Bstatic'
7357      fi
7358      ;;
7359
7360    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7361      lt_prog_compiler_wl='-Wl,'
7362      lt_prog_compiler_pic='-KPIC'
7363      lt_prog_compiler_static='-Bstatic'
7364      ;;
7365
7366    unicos*)
7367      lt_prog_compiler_wl='-Wl,'
7368      lt_prog_compiler_can_build_shared=no
7369      ;;
7370
7371    uts4*)
7372      lt_prog_compiler_pic='-pic'
7373      lt_prog_compiler_static='-Bstatic'
7374      ;;
7375
7376    *)
7377      lt_prog_compiler_can_build_shared=no
7378      ;;
7379    esac
7380  fi
7381
7382case $host_os in
7383  # For platforms which do not support PIC, -DPIC is meaningless:
7384  *djgpp*)
7385    lt_prog_compiler_pic=
7386    ;;
7387  *)
7388    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7389    ;;
7390esac
7391{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7392echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7393
7394
7395
7396
7397
7398
7399#
7400# Check to make sure the PIC flag actually works.
7401#
7402if test -n "$lt_prog_compiler_pic"; then
7403  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7404echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7405if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7406  echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408  lt_cv_prog_compiler_pic_works=no
7409   ac_outfile=conftest.$ac_objext
7410   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7411   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7412   # Insert the option either (1) after the last *FLAGS variable, or
7413   # (2) before a word containing "conftest.", or (3) at the end.
7414   # Note that $ac_compile itself does not contain backslashes and begins
7415   # with a dollar sign (not a hyphen), so the echo should work correctly.
7416   # The option is referenced via a variable to avoid confusing sed.
7417   lt_compile=`echo "$ac_compile" | $SED \
7418   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7419   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7420   -e 's:$: $lt_compiler_flag:'`
7421   (eval echo "\"\$as_me:7421: $lt_compile\"" >&5)
7422   (eval "$lt_compile" 2>conftest.err)
7423   ac_status=$?
7424   cat conftest.err >&5
7425   echo "$as_me:7425: \$? = $ac_status" >&5
7426   if (exit $ac_status) && test -s "$ac_outfile"; then
7427     # The compiler can only warn and ignore the option if not recognized
7428     # So say no if there are warnings other than the usual output.
7429     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7430     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7431     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7432       lt_cv_prog_compiler_pic_works=yes
7433     fi
7434   fi
7435   $RM conftest*
7436
7437fi
7438{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7439echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7440
7441if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7442    case $lt_prog_compiler_pic in
7443     "" | " "*) ;;
7444     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7445     esac
7446else
7447    lt_prog_compiler_pic=
7448     lt_prog_compiler_can_build_shared=no
7449fi
7450
7451fi
7452
7453
7454
7455
7456
7457
7458#
7459# Check to make sure the static flag actually works.
7460#
7461wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7462{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7463echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7464if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7465  echo $ECHO_N "(cached) $ECHO_C" >&6
7466else
7467  lt_cv_prog_compiler_static_works=no
7468   save_LDFLAGS="$LDFLAGS"
7469   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7470   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7471   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7472     # The linker can only warn and ignore the option if not recognized
7473     # So say no if there are warnings
7474     if test -s conftest.err; then
7475       # Append any errors to the config.log.
7476       cat conftest.err 1>&5
7477       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7478       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7479       if diff conftest.exp conftest.er2 >/dev/null; then
7480         lt_cv_prog_compiler_static_works=yes
7481       fi
7482     else
7483       lt_cv_prog_compiler_static_works=yes
7484     fi
7485   fi
7486   $RM -r conftest*
7487   LDFLAGS="$save_LDFLAGS"
7488
7489fi
7490{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7491echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7492
7493if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7494    :
7495else
7496    lt_prog_compiler_static=
7497fi
7498
7499
7500
7501
7502
7503
7504
7505  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7506echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7507if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7508  echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510  lt_cv_prog_compiler_c_o=no
7511   $RM -r conftest 2>/dev/null
7512   mkdir conftest
7513   cd conftest
7514   mkdir out
7515   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7516
7517   lt_compiler_flag="-o out/conftest2.$ac_objext"
7518   # Insert the option either (1) after the last *FLAGS variable, or
7519   # (2) before a word containing "conftest.", or (3) at the end.
7520   # Note that $ac_compile itself does not contain backslashes and begins
7521   # with a dollar sign (not a hyphen), so the echo should work correctly.
7522   lt_compile=`echo "$ac_compile" | $SED \
7523   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7524   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7525   -e 's:$: $lt_compiler_flag:'`
7526   (eval echo "\"\$as_me:7526: $lt_compile\"" >&5)
7527   (eval "$lt_compile" 2>out/conftest.err)
7528   ac_status=$?
7529   cat out/conftest.err >&5
7530   echo "$as_me:7530: \$? = $ac_status" >&5
7531   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7532   then
7533     # The compiler can only warn and ignore the option if not recognized
7534     # So say no if there are warnings
7535     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7536     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7537     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7538       lt_cv_prog_compiler_c_o=yes
7539     fi
7540   fi
7541   chmod u+w . 2>&5
7542   $RM conftest*
7543   # SGI C++ compiler will create directory out/ii_files/ for
7544   # template instantiation
7545   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7546   $RM out/* && rmdir out
7547   cd ..
7548   $RM -r conftest
7549   $RM conftest*
7550
7551fi
7552{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7553echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7554
7555
7556
7557
7558
7559
7560  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7561echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7562if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7563  echo $ECHO_N "(cached) $ECHO_C" >&6
7564else
7565  lt_cv_prog_compiler_c_o=no
7566   $RM -r conftest 2>/dev/null
7567   mkdir conftest
7568   cd conftest
7569   mkdir out
7570   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7571
7572   lt_compiler_flag="-o out/conftest2.$ac_objext"
7573   # Insert the option either (1) after the last *FLAGS variable, or
7574   # (2) before a word containing "conftest.", or (3) at the end.
7575   # Note that $ac_compile itself does not contain backslashes and begins
7576   # with a dollar sign (not a hyphen), so the echo should work correctly.
7577   lt_compile=`echo "$ac_compile" | $SED \
7578   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7579   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7580   -e 's:$: $lt_compiler_flag:'`
7581   (eval echo "\"\$as_me:7581: $lt_compile\"" >&5)
7582   (eval "$lt_compile" 2>out/conftest.err)
7583   ac_status=$?
7584   cat out/conftest.err >&5
7585   echo "$as_me:7585: \$? = $ac_status" >&5
7586   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7587   then
7588     # The compiler can only warn and ignore the option if not recognized
7589     # So say no if there are warnings
7590     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7591     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7592     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7593       lt_cv_prog_compiler_c_o=yes
7594     fi
7595   fi
7596   chmod u+w . 2>&5
7597   $RM conftest*
7598   # SGI C++ compiler will create directory out/ii_files/ for
7599   # template instantiation
7600   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7601   $RM out/* && rmdir out
7602   cd ..
7603   $RM -r conftest
7604   $RM conftest*
7605
7606fi
7607{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7608echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7609
7610
7611
7612
7613hard_links="nottested"
7614if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7615  # do not overwrite the value of need_locks provided by the user
7616  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7617echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7618  hard_links=yes
7619  $RM conftest*
7620  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7621  touch conftest.a
7622  ln conftest.a conftest.b 2>&5 || hard_links=no
7623  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7624  { echo "$as_me:$LINENO: result: $hard_links" >&5
7625echo "${ECHO_T}$hard_links" >&6; }
7626  if test "$hard_links" = no; then
7627    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7628echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7629    need_locks=warn
7630  fi
7631else
7632  need_locks=no
7633fi
7634
7635
7636
7637
7638
7639
7640  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7641echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7642
7643  runpath_var=
7644  allow_undefined_flag=
7645  always_export_symbols=no
7646  archive_cmds=
7647  archive_expsym_cmds=
7648  compiler_needs_object=no
7649  enable_shared_with_static_runtimes=no
7650  export_dynamic_flag_spec=
7651  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7652  hardcode_automatic=no
7653  hardcode_direct=no
7654  hardcode_direct_absolute=no
7655  hardcode_libdir_flag_spec=
7656  hardcode_libdir_flag_spec_ld=
7657  hardcode_libdir_separator=
7658  hardcode_minus_L=no
7659  hardcode_shlibpath_var=unsupported
7660  inherit_rpath=no
7661  link_all_deplibs=unknown
7662  module_cmds=
7663  module_expsym_cmds=
7664  old_archive_from_new_cmds=
7665  old_archive_from_expsyms_cmds=
7666  thread_safe_flag_spec=
7667  whole_archive_flag_spec=
7668  # include_expsyms should be a list of space-separated symbols to be *always*
7669  # included in the symbol list
7670  include_expsyms=
7671  # exclude_expsyms can be an extended regexp of symbols to exclude
7672  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7673  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7674  # as well as any symbol that contains `d'.
7675  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7676  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7677  # platforms (ab)use it in PIC code, but their linkers get confused if
7678  # the symbol is explicitly referenced.  Since portable code cannot
7679  # rely on this symbol name, it's probably fine to never include it in
7680  # preloaded symbol tables.
7681  # Exclude shared library initialization/finalization symbols.
7682  extract_expsyms_cmds=
7683
7684  case $host_os in
7685  cygwin* | mingw* | pw32* | cegcc*)
7686    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7687    # When not using gcc, we currently assume that we are using
7688    # Microsoft Visual C++.
7689    if test "$GCC" != yes; then
7690      with_gnu_ld=no
7691    fi
7692    ;;
7693  interix*)
7694    # we just hope/assume this is gcc and not c89 (= MSVC++)
7695    with_gnu_ld=yes
7696    ;;
7697  openbsd*)
7698    with_gnu_ld=no
7699    ;;
7700  esac
7701
7702  ld_shlibs=yes
7703  if test "$with_gnu_ld" = yes; then
7704    # If archive_cmds runs LD, not CC, wlarc should be empty
7705    wlarc='${wl}'
7706
7707    # Set some defaults for GNU ld with shared library support. These
7708    # are reset later if shared libraries are not supported. Putting them
7709    # here allows them to be overridden if necessary.
7710    runpath_var=LD_RUN_PATH
7711    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7712    export_dynamic_flag_spec='${wl}--export-dynamic'
7713    # ancient GNU ld didn't support --whole-archive et. al.
7714    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7715      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7716    else
7717      whole_archive_flag_spec=
7718    fi
7719    supports_anon_versioning=no
7720    case `$LD -v 2>&1` in
7721      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7722      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7723      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7724      *\ 2.11.*) ;; # other 2.11 versions
7725      *) supports_anon_versioning=yes ;;
7726    esac
7727
7728    # See if GNU ld supports shared libraries.
7729    case $host_os in
7730    aix[3-9]*)
7731      # On AIX/PPC, the GNU linker is very broken
7732      if test "$host_cpu" != ia64; then
7733	ld_shlibs=no
7734	cat <<_LT_EOF 1>&2
7735
7736*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7737*** to be unable to reliably create shared libraries on AIX.
7738*** Therefore, libtool is disabling shared libraries support.  If you
7739*** really care for shared libraries, you may want to modify your PATH
7740*** so that a non-GNU linker is found, and then restart.
7741
7742_LT_EOF
7743      fi
7744      ;;
7745
7746    amigaos*)
7747      case $host_cpu in
7748      powerpc)
7749            # see comment about AmigaOS4 .so support
7750            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7751            archive_expsym_cmds=''
7752        ;;
7753      m68k)
7754            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)'
7755            hardcode_libdir_flag_spec='-L$libdir'
7756            hardcode_minus_L=yes
7757        ;;
7758      esac
7759      ;;
7760
7761    beos*)
7762      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7763	allow_undefined_flag=unsupported
7764	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7765	# support --undefined.  This deserves some investigation.  FIXME
7766	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7767      else
7768	ld_shlibs=no
7769      fi
7770      ;;
7771
7772    cygwin* | mingw* | pw32* | cegcc*)
7773      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7774      # as there is no search path for DLLs.
7775      hardcode_libdir_flag_spec='-L$libdir'
7776      allow_undefined_flag=unsupported
7777      always_export_symbols=no
7778      enable_shared_with_static_runtimes=yes
7779      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7780
7781      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7782        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7783	# If the export-symbols file already is a .def file (1st line
7784	# is EXPORTS), use it as is; otherwise, prepend...
7785	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7786	  cp $export_symbols $output_objdir/$soname.def;
7787	else
7788	  echo EXPORTS > $output_objdir/$soname.def;
7789	  cat $export_symbols >> $output_objdir/$soname.def;
7790	fi~
7791	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7792      else
7793	ld_shlibs=no
7794      fi
7795      ;;
7796
7797    interix[3-9]*)
7798      hardcode_direct=no
7799      hardcode_shlibpath_var=no
7800      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7801      export_dynamic_flag_spec='${wl}-E'
7802      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7803      # Instead, shared libraries are loaded at an image base (0x10000000 by
7804      # default) and relocated if they conflict, which is a slow very memory
7805      # consuming and fragmenting process.  To avoid this, we pick a random,
7806      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7807      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7808      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7809      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'
7810      ;;
7811
7812    gnu* | linux* | tpf* | k*bsd*-gnu)
7813      tmp_diet=no
7814      if test "$host_os" = linux-dietlibc; then
7815	case $cc_basename in
7816	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7817	esac
7818      fi
7819      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7820	 && test "$tmp_diet" = no
7821      then
7822	tmp_addflag=
7823	tmp_sharedflag='-shared'
7824	case $cc_basename,$host_cpu in
7825        pgcc*)				# Portland Group C compiler
7826	  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'
7827	  tmp_addflag=' $pic_flag'
7828	  ;;
7829	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7830	  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'
7831	  tmp_addflag=' $pic_flag -Mnomain' ;;
7832	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7833	  tmp_addflag=' -i_dynamic' ;;
7834	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7835	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7836	ifc* | ifort*)			# Intel Fortran compiler
7837	  tmp_addflag=' -nofor_main' ;;
7838	lf95*)				# Lahey Fortran 8.1
7839	  whole_archive_flag_spec=
7840	  tmp_sharedflag='--shared' ;;
7841	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7842	  tmp_sharedflag='-qmkshrobj'
7843	  tmp_addflag= ;;
7844	esac
7845	case `$CC -V 2>&1 | sed 5q` in
7846	*Sun\ C*)			# Sun C 5.9
7847	  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'
7848	  compiler_needs_object=yes
7849	  tmp_sharedflag='-G' ;;
7850	*Sun\ F*)			# Sun Fortran 8.3
7851	  tmp_sharedflag='-G' ;;
7852	esac
7853	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7854
7855        if test "x$supports_anon_versioning" = xyes; then
7856          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7857	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7858	    echo "local: *; };" >> $output_objdir/$libname.ver~
7859	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7860        fi
7861
7862	case $cc_basename in
7863	xlf*)
7864	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7865	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7866	  hardcode_libdir_flag_spec=
7867	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7868	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7869	  if test "x$supports_anon_versioning" = xyes; then
7870	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7871	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7872	      echo "local: *; };" >> $output_objdir/$libname.ver~
7873	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7874	  fi
7875	  ;;
7876	esac
7877      else
7878        ld_shlibs=no
7879      fi
7880      ;;
7881
7882    netbsd*)
7883      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7884	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7885	wlarc=
7886      else
7887	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7888	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7889      fi
7890      ;;
7891
7892    solaris*)
7893      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7894	ld_shlibs=no
7895	cat <<_LT_EOF 1>&2
7896
7897*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7898*** create shared libraries on Solaris systems.  Therefore, libtool
7899*** is disabling shared libraries support.  We urge you to upgrade GNU
7900*** binutils to release 2.9.1 or newer.  Another option is to modify
7901*** your PATH or compiler configuration so that the native linker is
7902*** used, and then restart.
7903
7904_LT_EOF
7905      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7906	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7907	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7908      else
7909	ld_shlibs=no
7910      fi
7911      ;;
7912
7913    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7914      case `$LD -v 2>&1` in
7915        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7916	ld_shlibs=no
7917	cat <<_LT_EOF 1>&2
7918
7919*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7920*** reliably create shared libraries on SCO systems.  Therefore, libtool
7921*** is disabling shared libraries support.  We urge you to upgrade GNU
7922*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7923*** your PATH or compiler configuration so that the native linker is
7924*** used, and then restart.
7925
7926_LT_EOF
7927	;;
7928	*)
7929	  # For security reasons, it is highly recommended that you always
7930	  # use absolute paths for naming shared libraries, and exclude the
7931	  # DT_RUNPATH tag from executables and libraries.  But doing so
7932	  # requires that you compile everything twice, which is a pain.
7933	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7934	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7935	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7936	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7937	  else
7938	    ld_shlibs=no
7939	  fi
7940	;;
7941      esac
7942      ;;
7943
7944    sunos4*)
7945      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7946      wlarc=
7947      hardcode_direct=yes
7948      hardcode_shlibpath_var=no
7949      ;;
7950
7951    *)
7952      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7953	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7954	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7955      else
7956	ld_shlibs=no
7957      fi
7958      ;;
7959    esac
7960
7961    if test "$ld_shlibs" = no; then
7962      runpath_var=
7963      hardcode_libdir_flag_spec=
7964      export_dynamic_flag_spec=
7965      whole_archive_flag_spec=
7966    fi
7967  else
7968    # PORTME fill in a description of your system's linker (not GNU ld)
7969    case $host_os in
7970    aix3*)
7971      allow_undefined_flag=unsupported
7972      always_export_symbols=yes
7973      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'
7974      # Note: this linker hardcodes the directories in LIBPATH if there
7975      # are no directories specified by -L.
7976      hardcode_minus_L=yes
7977      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7978	# Neither direct hardcoding nor static linking is supported with a
7979	# broken collect2.
7980	hardcode_direct=unsupported
7981      fi
7982      ;;
7983
7984    aix[4-9]*)
7985      if test "$host_cpu" = ia64; then
7986	# On IA64, the linker does run time linking by default, so we don't
7987	# have to do anything special.
7988	aix_use_runtimelinking=no
7989	exp_sym_flag='-Bexport'
7990	no_entry_flag=""
7991      else
7992	# If we're using GNU nm, then we don't want the "-C" option.
7993	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7994	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7995	  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'
7996	else
7997	  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'
7998	fi
7999	aix_use_runtimelinking=no
8000
8001	# Test if we are trying to use run time linking or normal
8002	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8003	# need to do runtime linking.
8004	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8005	  for ld_flag in $LDFLAGS; do
8006	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8007	    aix_use_runtimelinking=yes
8008	    break
8009	  fi
8010	  done
8011	  ;;
8012	esac
8013
8014	exp_sym_flag='-bexport'
8015	no_entry_flag='-bnoentry'
8016      fi
8017
8018      # When large executables or shared objects are built, AIX ld can
8019      # have problems creating the table of contents.  If linking a library
8020      # or program results in "error TOC overflow" add -mminimal-toc to
8021      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8022      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8023
8024      archive_cmds=''
8025      hardcode_direct=yes
8026      hardcode_direct_absolute=yes
8027      hardcode_libdir_separator=':'
8028      link_all_deplibs=yes
8029      file_list_spec='${wl}-f,'
8030
8031      if test "$GCC" = yes; then
8032	case $host_os in aix4.[012]|aix4.[012].*)
8033	# We only want to do this on AIX 4.2 and lower, the check
8034	# below for broken collect2 doesn't work under 4.3+
8035	  collect2name=`${CC} -print-prog-name=collect2`
8036	  if test -f "$collect2name" &&
8037	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8038	  then
8039	  # We have reworked collect2
8040	  :
8041	  else
8042	  # We have old collect2
8043	  hardcode_direct=unsupported
8044	  # It fails to find uninstalled libraries when the uninstalled
8045	  # path is not listed in the libpath.  Setting hardcode_minus_L
8046	  # to unsupported forces relinking
8047	  hardcode_minus_L=yes
8048	  hardcode_libdir_flag_spec='-L$libdir'
8049	  hardcode_libdir_separator=
8050	  fi
8051	  ;;
8052	esac
8053	shared_flag='-shared'
8054	if test "$aix_use_runtimelinking" = yes; then
8055	  shared_flag="$shared_flag "'${wl}-G'
8056	fi
8057      else
8058	# not using gcc
8059	if test "$host_cpu" = ia64; then
8060	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8061	# chokes on -Wl,-G. The following line is correct:
8062	  shared_flag='-G'
8063	else
8064	  if test "$aix_use_runtimelinking" = yes; then
8065	    shared_flag='${wl}-G'
8066	  else
8067	    shared_flag='${wl}-bM:SRE'
8068	  fi
8069	fi
8070      fi
8071
8072      export_dynamic_flag_spec='${wl}-bexpall'
8073      # It seems that -bexpall does not export symbols beginning with
8074      # underscore (_), so it is better to generate a list of symbols to export.
8075      always_export_symbols=yes
8076      if test "$aix_use_runtimelinking" = yes; then
8077	# Warning - without using the other runtime loading flags (-brtl),
8078	# -berok will link without error, but may produce a broken library.
8079	allow_undefined_flag='-berok'
8080        # Determine the default libpath from the value encoded in an
8081        # empty executable.
8082        cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h.  */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h.  */
8088
8089int
8090main ()
8091{
8092
8093  ;
8094  return 0;
8095}
8096_ACEOF
8097rm -f conftest.$ac_objext conftest$ac_exeext
8098if { (ac_try="$ac_link"
8099case "(($ac_try" in
8100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101  *) ac_try_echo=$ac_try;;
8102esac
8103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104  (eval "$ac_link") 2>conftest.er1
8105  ac_status=$?
8106  grep -v '^ *+' conftest.er1 >conftest.err
8107  rm -f conftest.er1
8108  cat conftest.err >&5
8109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110  (exit $ac_status); } && {
8111	 test -z "$ac_c_werror_flag" ||
8112	 test ! -s conftest.err
8113       } && test -s conftest$ac_exeext &&
8114       $as_test_x conftest$ac_exeext; then
8115
8116lt_aix_libpath_sed='
8117    /Import File Strings/,/^$/ {
8118	/^0/ {
8119	    s/^0  *\(.*\)$/\1/
8120	    p
8121	}
8122    }'
8123aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8124# Check for a 64-bit object if we didn't find anything.
8125if test -z "$aix_libpath"; then
8126  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8127fi
8128else
8129  echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
8132
8133fi
8134
8135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8136      conftest$ac_exeext conftest.$ac_ext
8137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8138
8139        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8140        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"
8141      else
8142	if test "$host_cpu" = ia64; then
8143	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8144	  allow_undefined_flag="-z nodefs"
8145	  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"
8146	else
8147	 # Determine the default libpath from the value encoded in an
8148	 # empty executable.
8149	 cat >conftest.$ac_ext <<_ACEOF
8150/* confdefs.h.  */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h.  */
8155
8156int
8157main ()
8158{
8159
8160  ;
8161  return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext conftest$ac_exeext
8165if { (ac_try="$ac_link"
8166case "(($ac_try" in
8167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168  *) ac_try_echo=$ac_try;;
8169esac
8170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171  (eval "$ac_link") 2>conftest.er1
8172  ac_status=$?
8173  grep -v '^ *+' conftest.er1 >conftest.err
8174  rm -f conftest.er1
8175  cat conftest.err >&5
8176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177  (exit $ac_status); } && {
8178	 test -z "$ac_c_werror_flag" ||
8179	 test ! -s conftest.err
8180       } && test -s conftest$ac_exeext &&
8181       $as_test_x conftest$ac_exeext; then
8182
8183lt_aix_libpath_sed='
8184    /Import File Strings/,/^$/ {
8185	/^0/ {
8186	    s/^0  *\(.*\)$/\1/
8187	    p
8188	}
8189    }'
8190aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8191# Check for a 64-bit object if we didn't find anything.
8192if test -z "$aix_libpath"; then
8193  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8194fi
8195else
8196  echo "$as_me: failed program was:" >&5
8197sed 's/^/| /' conftest.$ac_ext >&5
8198
8199
8200fi
8201
8202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8203      conftest$ac_exeext conftest.$ac_ext
8204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8205
8206	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8207	  # Warning - without using the other run time loading flags,
8208	  # -berok will link without error, but may produce a broken library.
8209	  no_undefined_flag=' ${wl}-bernotok'
8210	  allow_undefined_flag=' ${wl}-berok'
8211	  # Exported symbols can be pulled into shared objects from archives
8212	  whole_archive_flag_spec='$convenience'
8213	  archive_cmds_need_lc=yes
8214	  # This is similar to how AIX traditionally builds its shared libraries.
8215	  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'
8216	fi
8217      fi
8218      ;;
8219
8220    amigaos*)
8221      case $host_cpu in
8222      powerpc)
8223            # see comment about AmigaOS4 .so support
8224            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8225            archive_expsym_cmds=''
8226        ;;
8227      m68k)
8228            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)'
8229            hardcode_libdir_flag_spec='-L$libdir'
8230            hardcode_minus_L=yes
8231        ;;
8232      esac
8233      ;;
8234
8235    bsdi[45]*)
8236      export_dynamic_flag_spec=-rdynamic
8237      ;;
8238
8239    cygwin* | mingw* | pw32* | cegcc*)
8240      # When not using gcc, we currently assume that we are using
8241      # Microsoft Visual C++.
8242      # hardcode_libdir_flag_spec is actually meaningless, as there is
8243      # no search path for DLLs.
8244      hardcode_libdir_flag_spec=' '
8245      allow_undefined_flag=unsupported
8246      # Tell ltmain to make .lib files, not .a files.
8247      libext=lib
8248      # Tell ltmain to make .dll files, not .so files.
8249      shrext_cmds=".dll"
8250      # FIXME: Setting linknames here is a bad hack.
8251      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8252      # The linker will automatically build a .lib file if we build a DLL.
8253      old_archive_from_new_cmds='true'
8254      # FIXME: Should let the user specify the lib program.
8255      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8256      fix_srcfile_path='`cygpath -w "$srcfile"`'
8257      enable_shared_with_static_runtimes=yes
8258      ;;
8259
8260    darwin* | rhapsody*)
8261
8262
8263  archive_cmds_need_lc=no
8264  hardcode_direct=no
8265  hardcode_automatic=yes
8266  hardcode_shlibpath_var=unsupported
8267  whole_archive_flag_spec=''
8268  link_all_deplibs=yes
8269  allow_undefined_flag="$_lt_dar_allow_undefined"
8270  case $cc_basename in
8271     ifort*) _lt_dar_can_shared=yes ;;
8272     *) _lt_dar_can_shared=$GCC ;;
8273  esac
8274  if test "$_lt_dar_can_shared" = "yes"; then
8275    output_verbose_link_cmd=echo
8276    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8277    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8278    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}"
8279    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}"
8280
8281  else
8282  ld_shlibs=no
8283  fi
8284
8285      ;;
8286
8287    dgux*)
8288      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8289      hardcode_libdir_flag_spec='-L$libdir'
8290      hardcode_shlibpath_var=no
8291      ;;
8292
8293    freebsd1*)
8294      ld_shlibs=no
8295      ;;
8296
8297    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8298    # support.  Future versions do this automatically, but an explicit c++rt0.o
8299    # does not break anything, and helps significantly (at the cost of a little
8300    # extra space).
8301    freebsd2.2*)
8302      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8303      hardcode_libdir_flag_spec='-R$libdir'
8304      hardcode_direct=yes
8305      hardcode_shlibpath_var=no
8306      ;;
8307
8308    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8309    freebsd2*)
8310      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8311      hardcode_direct=yes
8312      hardcode_minus_L=yes
8313      hardcode_shlibpath_var=no
8314      ;;
8315
8316    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8317    freebsd* | dragonfly*)
8318      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8319      hardcode_libdir_flag_spec='-R$libdir'
8320      hardcode_direct=yes
8321      hardcode_shlibpath_var=no
8322      ;;
8323
8324    hpux9*)
8325      if test "$GCC" = yes; then
8326	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'
8327      else
8328	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'
8329      fi
8330      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8331      hardcode_libdir_separator=:
8332      hardcode_direct=yes
8333
8334      # hardcode_minus_L: Not really in the search PATH,
8335      # but as the default location of the library.
8336      hardcode_minus_L=yes
8337      export_dynamic_flag_spec='${wl}-E'
8338      ;;
8339
8340    hpux10*)
8341      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8342	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8343      else
8344	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8345      fi
8346      if test "$with_gnu_ld" = no; then
8347	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8348	hardcode_libdir_flag_spec_ld='+b $libdir'
8349	hardcode_libdir_separator=:
8350	hardcode_direct=yes
8351	hardcode_direct_absolute=yes
8352	export_dynamic_flag_spec='${wl}-E'
8353	# hardcode_minus_L: Not really in the search PATH,
8354	# but as the default location of the library.
8355	hardcode_minus_L=yes
8356      fi
8357      ;;
8358
8359    hpux11*)
8360      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8361	case $host_cpu in
8362	hppa*64*)
8363	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8364	  ;;
8365	ia64*)
8366	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8367	  ;;
8368	*)
8369	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8370	  ;;
8371	esac
8372      else
8373	case $host_cpu in
8374	hppa*64*)
8375	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8376	  ;;
8377	ia64*)
8378	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8379	  ;;
8380	*)
8381	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8382	  ;;
8383	esac
8384      fi
8385      if test "$with_gnu_ld" = no; then
8386	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8387	hardcode_libdir_separator=:
8388
8389	case $host_cpu in
8390	hppa*64*|ia64*)
8391	  hardcode_direct=no
8392	  hardcode_shlibpath_var=no
8393	  ;;
8394	*)
8395	  hardcode_direct=yes
8396	  hardcode_direct_absolute=yes
8397	  export_dynamic_flag_spec='${wl}-E'
8398
8399	  # hardcode_minus_L: Not really in the search PATH,
8400	  # but as the default location of the library.
8401	  hardcode_minus_L=yes
8402	  ;;
8403	esac
8404      fi
8405      ;;
8406
8407    irix5* | irix6* | nonstopux*)
8408      if test "$GCC" = yes; then
8409	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'
8410	# Try to use the -exported_symbol ld option, if it does not
8411	# work, assume that -exports_file does not work either and
8412	# implicitly export all symbols.
8413        save_LDFLAGS="$LDFLAGS"
8414        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8415        cat >conftest.$ac_ext <<_ACEOF
8416int foo(void) {}
8417_ACEOF
8418rm -f conftest.$ac_objext conftest$ac_exeext
8419if { (ac_try="$ac_link"
8420case "(($ac_try" in
8421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422  *) ac_try_echo=$ac_try;;
8423esac
8424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425  (eval "$ac_link") 2>conftest.er1
8426  ac_status=$?
8427  grep -v '^ *+' conftest.er1 >conftest.err
8428  rm -f conftest.er1
8429  cat conftest.err >&5
8430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431  (exit $ac_status); } && {
8432	 test -z "$ac_c_werror_flag" ||
8433	 test ! -s conftest.err
8434       } && test -s conftest$ac_exeext &&
8435       $as_test_x conftest$ac_exeext; then
8436  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'
8437
8438else
8439  echo "$as_me: failed program was:" >&5
8440sed 's/^/| /' conftest.$ac_ext >&5
8441
8442
8443fi
8444
8445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8446      conftest$ac_exeext conftest.$ac_ext
8447        LDFLAGS="$save_LDFLAGS"
8448      else
8449	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'
8450	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'
8451      fi
8452      archive_cmds_need_lc='no'
8453      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8454      hardcode_libdir_separator=:
8455      inherit_rpath=yes
8456      link_all_deplibs=yes
8457      ;;
8458
8459    netbsd*)
8460      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8461	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8462      else
8463	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8464      fi
8465      hardcode_libdir_flag_spec='-R$libdir'
8466      hardcode_direct=yes
8467      hardcode_shlibpath_var=no
8468      ;;
8469
8470    newsos6)
8471      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8472      hardcode_direct=yes
8473      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8474      hardcode_libdir_separator=:
8475      hardcode_shlibpath_var=no
8476      ;;
8477
8478    *nto* | *qnx*)
8479      ;;
8480
8481    openbsd*)
8482      if test -f /usr/libexec/ld.so; then
8483	hardcode_direct=yes
8484	hardcode_shlibpath_var=no
8485	hardcode_direct_absolute=yes
8486	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8487	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8488	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8489	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8490	  export_dynamic_flag_spec='${wl}-E'
8491	else
8492	  case $host_os in
8493	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8494	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8495	     hardcode_libdir_flag_spec='-R$libdir'
8496	     ;;
8497	   *)
8498	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8499	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8500	     ;;
8501	  esac
8502	fi
8503      else
8504	ld_shlibs=no
8505      fi
8506      ;;
8507
8508    os2*)
8509      hardcode_libdir_flag_spec='-L$libdir'
8510      hardcode_minus_L=yes
8511      allow_undefined_flag=unsupported
8512      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'
8513      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8514      ;;
8515
8516    osf3*)
8517      if test "$GCC" = yes; then
8518	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8519	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'
8520      else
8521	allow_undefined_flag=' -expect_unresolved \*'
8522	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'
8523      fi
8524      archive_cmds_need_lc='no'
8525      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8526      hardcode_libdir_separator=:
8527      ;;
8528
8529    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8530      if test "$GCC" = yes; then
8531	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8532	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'
8533	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8534      else
8535	allow_undefined_flag=' -expect_unresolved \*'
8536	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'
8537	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~
8538	$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'
8539
8540	# Both c and cxx compiler support -rpath directly
8541	hardcode_libdir_flag_spec='-rpath $libdir'
8542      fi
8543      archive_cmds_need_lc='no'
8544      hardcode_libdir_separator=:
8545      ;;
8546
8547    solaris*)
8548      no_undefined_flag=' -z defs'
8549      if test "$GCC" = yes; then
8550	wlarc='${wl}'
8551	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8552	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8553	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8554      else
8555	case `$CC -V 2>&1` in
8556	*"Compilers 5.0"*)
8557	  wlarc=''
8558	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8559	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8560	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8561	  ;;
8562	*)
8563	  wlarc='${wl}'
8564	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8565	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8566	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8567	  ;;
8568	esac
8569      fi
8570      hardcode_libdir_flag_spec='-R$libdir'
8571      hardcode_shlibpath_var=no
8572      case $host_os in
8573      solaris2.[0-5] | solaris2.[0-5].*) ;;
8574      *)
8575	# The compiler driver will combine and reorder linker options,
8576	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8577	# but is careful enough not to reorder.
8578	# Supported since Solaris 2.6 (maybe 2.5.1?)
8579	if test "$GCC" = yes; then
8580	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8581	else
8582	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8583	fi
8584	;;
8585      esac
8586      link_all_deplibs=yes
8587      ;;
8588
8589    sunos4*)
8590      if test "x$host_vendor" = xsequent; then
8591	# Use $CC to link under sequent, because it throws in some extra .o
8592	# files that make .init and .fini sections work.
8593	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8594      else
8595	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8596      fi
8597      hardcode_libdir_flag_spec='-L$libdir'
8598      hardcode_direct=yes
8599      hardcode_minus_L=yes
8600      hardcode_shlibpath_var=no
8601      ;;
8602
8603    sysv4)
8604      case $host_vendor in
8605	sni)
8606	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8607	  hardcode_direct=yes # is this really true???
8608	;;
8609	siemens)
8610	  ## LD is ld it makes a PLAMLIB
8611	  ## CC just makes a GrossModule.
8612	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8613	  reload_cmds='$CC -r -o $output$reload_objs'
8614	  hardcode_direct=no
8615        ;;
8616	motorola)
8617	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8618	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8619	;;
8620      esac
8621      runpath_var='LD_RUN_PATH'
8622      hardcode_shlibpath_var=no
8623      ;;
8624
8625    sysv4.3*)
8626      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8627      hardcode_shlibpath_var=no
8628      export_dynamic_flag_spec='-Bexport'
8629      ;;
8630
8631    sysv4*MP*)
8632      if test -d /usr/nec; then
8633	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8634	hardcode_shlibpath_var=no
8635	runpath_var=LD_RUN_PATH
8636	hardcode_runpath_var=yes
8637	ld_shlibs=yes
8638      fi
8639      ;;
8640
8641    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8642      no_undefined_flag='${wl}-z,text'
8643      archive_cmds_need_lc=no
8644      hardcode_shlibpath_var=no
8645      runpath_var='LD_RUN_PATH'
8646
8647      if test "$GCC" = yes; then
8648	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8649	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8650      else
8651	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8652	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8653      fi
8654      ;;
8655
8656    sysv5* | sco3.2v5* | sco5v6*)
8657      # Note: We can NOT use -z defs as we might desire, because we do not
8658      # link with -lc, and that would cause any symbols used from libc to
8659      # always be unresolved, which means just about no library would
8660      # ever link correctly.  If we're not using GNU ld we use -z text
8661      # though, which does catch some bad symbols but isn't as heavy-handed
8662      # as -z defs.
8663      no_undefined_flag='${wl}-z,text'
8664      allow_undefined_flag='${wl}-z,nodefs'
8665      archive_cmds_need_lc=no
8666      hardcode_shlibpath_var=no
8667      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8668      hardcode_libdir_separator=':'
8669      link_all_deplibs=yes
8670      export_dynamic_flag_spec='${wl}-Bexport'
8671      runpath_var='LD_RUN_PATH'
8672
8673      if test "$GCC" = yes; then
8674	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8675	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8676      else
8677	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8678	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8679      fi
8680      ;;
8681
8682    uts4*)
8683      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8684      hardcode_libdir_flag_spec='-L$libdir'
8685      hardcode_shlibpath_var=no
8686      ;;
8687
8688    *)
8689      ld_shlibs=no
8690      ;;
8691    esac
8692
8693    if test x$host_vendor = xsni; then
8694      case $host in
8695      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8696	export_dynamic_flag_spec='${wl}-Blargedynsym'
8697	;;
8698      esac
8699    fi
8700  fi
8701
8702{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8703echo "${ECHO_T}$ld_shlibs" >&6; }
8704test "$ld_shlibs" = no && can_build_shared=no
8705
8706with_gnu_ld=$with_gnu_ld
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722#
8723# Do we need to explicitly link libc?
8724#
8725case "x$archive_cmds_need_lc" in
8726x|xyes)
8727  # Assume -lc should be added
8728  archive_cmds_need_lc=yes
8729
8730  if test "$enable_shared" = yes && test "$GCC" = yes; then
8731    case $archive_cmds in
8732    *'~'*)
8733      # FIXME: we may have to deal with multi-command sequences.
8734      ;;
8735    '$CC '*)
8736      # Test whether the compiler implicitly links with -lc since on some
8737      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8738      # to ld, don't add -lc before -lgcc.
8739      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8740echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8741      $RM conftest*
8742      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8743
8744      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8745  (eval $ac_compile) 2>&5
8746  ac_status=$?
8747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748  (exit $ac_status); } 2>conftest.err; then
8749        soname=conftest
8750        lib=conftest
8751        libobjs=conftest.$ac_objext
8752        deplibs=
8753        wl=$lt_prog_compiler_wl
8754	pic_flag=$lt_prog_compiler_pic
8755        compiler_flags=-v
8756        linker_flags=-v
8757        verstring=
8758        output_objdir=.
8759        libname=conftest
8760        lt_save_allow_undefined_flag=$allow_undefined_flag
8761        allow_undefined_flag=
8762        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8763  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8764  ac_status=$?
8765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766  (exit $ac_status); }
8767        then
8768	  archive_cmds_need_lc=no
8769        else
8770	  archive_cmds_need_lc=yes
8771        fi
8772        allow_undefined_flag=$lt_save_allow_undefined_flag
8773      else
8774        cat conftest.err 1>&5
8775      fi
8776      $RM conftest*
8777      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8778echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8779      ;;
8780    esac
8781  fi
8782  ;;
8783esac
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8942echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8943
8944if test "$GCC" = yes; then
8945  case $host_os in
8946    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8947    *) lt_awk_arg="/^libraries:/" ;;
8948  esac
8949  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8950  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8951    # if the path contains ";" then we assume it to be the separator
8952    # otherwise default to the standard path separator (i.e. ":") - it is
8953    # assumed that no part of a normal pathname contains ";" but that should
8954    # okay in the real world where ";" in dirpaths is itself problematic.
8955    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8956  else
8957    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8958  fi
8959  # Ok, now we have the path, separated by spaces, we can step through it
8960  # and add multilib dir if necessary.
8961  lt_tmp_lt_search_path_spec=
8962  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8963  for lt_sys_path in $lt_search_path_spec; do
8964    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8965      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8966    else
8967      test -d "$lt_sys_path" && \
8968	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8969    fi
8970  done
8971  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8972BEGIN {RS=" "; FS="/|\n";} {
8973  lt_foo="";
8974  lt_count=0;
8975  for (lt_i = NF; lt_i > 0; lt_i--) {
8976    if ($lt_i != "" && $lt_i != ".") {
8977      if ($lt_i == "..") {
8978        lt_count++;
8979      } else {
8980        if (lt_count == 0) {
8981          lt_foo="/" $lt_i lt_foo;
8982        } else {
8983          lt_count--;
8984        }
8985      }
8986    }
8987  }
8988  if (lt_foo != "") { lt_freq[lt_foo]++; }
8989  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8990}'`
8991  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8992else
8993  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8994fi
8995library_names_spec=
8996libname_spec='lib$name'
8997soname_spec=
8998shrext_cmds=".so"
8999postinstall_cmds=
9000postuninstall_cmds=
9001finish_cmds=
9002finish_eval=
9003shlibpath_var=
9004shlibpath_overrides_runpath=unknown
9005version_type=none
9006dynamic_linker="$host_os ld.so"
9007sys_lib_dlsearch_path_spec="/lib /usr/lib"
9008need_lib_prefix=unknown
9009hardcode_into_libs=no
9010
9011# when you set need_version to no, make sure it does not cause -set_version
9012# flags to be left without arguments
9013need_version=unknown
9014
9015case $host_os in
9016aix3*)
9017  version_type=linux
9018  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9019  shlibpath_var=LIBPATH
9020
9021  # AIX 3 has no versioning support, so we append a major version to the name.
9022  soname_spec='${libname}${release}${shared_ext}$major'
9023  ;;
9024
9025aix[4-9]*)
9026  version_type=linux
9027  need_lib_prefix=no
9028  need_version=no
9029  hardcode_into_libs=yes
9030  if test "$host_cpu" = ia64; then
9031    # AIX 5 supports IA64
9032    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9033    shlibpath_var=LD_LIBRARY_PATH
9034  else
9035    # With GCC up to 2.95.x, collect2 would create an import file
9036    # for dependence libraries.  The import file would start with
9037    # the line `#! .'.  This would cause the generated library to
9038    # depend on `.', always an invalid library.  This was fixed in
9039    # development snapshots of GCC prior to 3.0.
9040    case $host_os in
9041      aix4 | aix4.[01] | aix4.[01].*)
9042      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9043	   echo ' yes '
9044	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9045	:
9046      else
9047	can_build_shared=no
9048      fi
9049      ;;
9050    esac
9051    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9052    # soname into executable. Probably we can add versioning support to
9053    # collect2, so additional links can be useful in future.
9054    if test "$aix_use_runtimelinking" = yes; then
9055      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9056      # instead of lib<name>.a to let people know that these are not
9057      # typical AIX shared libraries.
9058      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059    else
9060      # We preserve .a as extension for shared libraries through AIX4.2
9061      # and later when we are not doing run time linking.
9062      library_names_spec='${libname}${release}.a $libname.a'
9063      soname_spec='${libname}${release}${shared_ext}$major'
9064    fi
9065    shlibpath_var=LIBPATH
9066  fi
9067  ;;
9068
9069amigaos*)
9070  case $host_cpu in
9071  powerpc)
9072    # Since July 2007 AmigaOS4 officially supports .so libraries.
9073    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9074    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075    ;;
9076  m68k)
9077    library_names_spec='$libname.ixlibrary $libname.a'
9078    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9079    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'
9080    ;;
9081  esac
9082  ;;
9083
9084beos*)
9085  library_names_spec='${libname}${shared_ext}'
9086  dynamic_linker="$host_os ld.so"
9087  shlibpath_var=LIBRARY_PATH
9088  ;;
9089
9090bsdi[45]*)
9091  version_type=linux
9092  need_version=no
9093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094  soname_spec='${libname}${release}${shared_ext}$major'
9095  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9096  shlibpath_var=LD_LIBRARY_PATH
9097  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9098  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9099  # the default ld.so.conf also contains /usr/contrib/lib and
9100  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9101  # libtool to hard-code these into programs
9102  ;;
9103
9104cygwin* | mingw* | pw32* | cegcc*)
9105  version_type=windows
9106  shrext_cmds=".dll"
9107  need_version=no
9108  need_lib_prefix=no
9109
9110  case $GCC,$host_os in
9111  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9112    library_names_spec='$libname.dll.a'
9113    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9114    postinstall_cmds='base_file=`basename \${file}`~
9115      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9116      dldir=$destdir/`dirname \$dlpath`~
9117      test -d \$dldir || mkdir -p \$dldir~
9118      $install_prog $dir/$dlname \$dldir/$dlname~
9119      chmod a+x \$dldir/$dlname~
9120      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9121        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9122      fi'
9123    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9124      dlpath=$dir/\$dldll~
9125       $RM \$dlpath'
9126    shlibpath_overrides_runpath=yes
9127
9128    case $host_os in
9129    cygwin*)
9130      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9131      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9132      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
9133      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9134      ;;
9135    mingw* | cegcc*)
9136      # MinGW DLLs use traditional 'lib' prefix
9137      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9138      soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
9139      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9140      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9141        # It is most probably a Windows format PATH printed by
9142        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9143        # path with ; separators, and with drive letters. We can handle the
9144        # drive letters (cygwin fileutils understands them), so leave them,
9145        # especially as we might pass files found there to a mingw objdump,
9146        # which wouldn't understand a cygwinified path. Ahh.
9147        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9148      else
9149        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9150      fi
9151      ;;
9152    pw32*)
9153      # pw32 DLLs use 'pw' prefix rather than 'lib'
9154      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9155      ;;
9156    esac
9157    ;;
9158
9159  *)
9160    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9161    ;;
9162  esac
9163  dynamic_linker='Win32 ld.exe'
9164  # FIXME: first we should search . and the directory the executable is in
9165  shlibpath_var=PATH
9166  ;;
9167
9168darwin* | rhapsody*)
9169  dynamic_linker="$host_os dyld"
9170  version_type=darwin
9171  need_lib_prefix=no
9172  need_version=no
9173  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9174  soname_spec='${libname}${release}${major}$shared_ext'
9175  shlibpath_overrides_runpath=yes
9176  shlibpath_var=DYLD_LIBRARY_PATH
9177  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9178
9179  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9180  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9181  ;;
9182
9183dgux*)
9184  version_type=linux
9185  need_lib_prefix=no
9186  need_version=no
9187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9188  soname_spec='${libname}${release}${shared_ext}$major'
9189  shlibpath_var=LD_LIBRARY_PATH
9190  ;;
9191
9192freebsd1*)
9193  dynamic_linker=no
9194  ;;
9195
9196freebsd* | dragonfly*)
9197  # DragonFly does not have aout.  When/if they implement a new
9198  # versioning mechanism, adjust this.
9199  if test -x /usr/bin/objformat; then
9200    objformat=`/usr/bin/objformat`
9201  else
9202    case $host_os in
9203    freebsd[123]*) objformat=aout ;;
9204    *) objformat=elf ;;
9205    esac
9206  fi
9207  version_type=freebsd-$objformat
9208  case $version_type in
9209    freebsd-elf*)
9210      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9211      need_version=no
9212      need_lib_prefix=no
9213      ;;
9214    freebsd-*)
9215      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9216      need_version=yes
9217      ;;
9218  esac
9219  shlibpath_var=LD_LIBRARY_PATH
9220  case $host_os in
9221  freebsd2*)
9222    shlibpath_overrides_runpath=yes
9223    ;;
9224  freebsd3.[01]* | freebsdelf3.[01]*)
9225    shlibpath_overrides_runpath=yes
9226    hardcode_into_libs=yes
9227    ;;
9228  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9229  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9230    shlibpath_overrides_runpath=no
9231    hardcode_into_libs=yes
9232    ;;
9233  *) # from 4.6 on, and DragonFly
9234    shlibpath_overrides_runpath=yes
9235    hardcode_into_libs=yes
9236    ;;
9237  esac
9238  ;;
9239
9240gnu*)
9241  version_type=linux
9242  need_lib_prefix=no
9243  need_version=no
9244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9245  soname_spec='${libname}${release}${shared_ext}$major'
9246  shlibpath_var=LD_LIBRARY_PATH
9247  hardcode_into_libs=yes
9248  ;;
9249
9250hpux9* | hpux10* | hpux11*)
9251  # Give a soname corresponding to the major version so that dld.sl refuses to
9252  # link against other versions.
9253  version_type=sunos
9254  need_lib_prefix=no
9255  need_version=no
9256  case $host_cpu in
9257  ia64*)
9258    shrext_cmds='.so'
9259    hardcode_into_libs=yes
9260    dynamic_linker="$host_os dld.so"
9261    shlibpath_var=LD_LIBRARY_PATH
9262    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9263    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264    soname_spec='${libname}${release}${shared_ext}$major'
9265    if test "X$HPUX_IA64_MODE" = X32; then
9266      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9267    else
9268      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9269    fi
9270    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9271    ;;
9272  hppa*64*)
9273    shrext_cmds='.sl'
9274    hardcode_into_libs=yes
9275    dynamic_linker="$host_os dld.sl"
9276    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9277    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9278    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279    soname_spec='${libname}${release}${shared_ext}$major'
9280    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9281    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9282    ;;
9283  *)
9284    shrext_cmds='.sl'
9285    dynamic_linker="$host_os dld.sl"
9286    shlibpath_var=SHLIB_PATH
9287    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9288    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289    soname_spec='${libname}${release}${shared_ext}$major'
9290    ;;
9291  esac
9292  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9293  postinstall_cmds='chmod 555 $lib'
9294  ;;
9295
9296interix[3-9]*)
9297  version_type=linux
9298  need_lib_prefix=no
9299  need_version=no
9300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9301  soname_spec='${libname}${release}${shared_ext}$major'
9302  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9303  shlibpath_var=LD_LIBRARY_PATH
9304  shlibpath_overrides_runpath=no
9305  hardcode_into_libs=yes
9306  ;;
9307
9308irix5* | irix6* | nonstopux*)
9309  case $host_os in
9310    nonstopux*) version_type=nonstopux ;;
9311    *)
9312	if test "$lt_cv_prog_gnu_ld" = yes; then
9313		version_type=linux
9314	else
9315		version_type=irix
9316	fi ;;
9317  esac
9318  need_lib_prefix=no
9319  need_version=no
9320  soname_spec='${libname}${release}${shared_ext}$major'
9321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9322  case $host_os in
9323  irix5* | nonstopux*)
9324    libsuff= shlibsuff=
9325    ;;
9326  *)
9327    case $LD in # libtool.m4 will add one of these switches to LD
9328    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9329      libsuff= shlibsuff= libmagic=32-bit;;
9330    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9331      libsuff=32 shlibsuff=N32 libmagic=N32;;
9332    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9333      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9334    *) libsuff= shlibsuff= libmagic=never-match;;
9335    esac
9336    ;;
9337  esac
9338  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9339  shlibpath_overrides_runpath=no
9340  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9341  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9342  hardcode_into_libs=yes
9343  ;;
9344
9345# No shared lib support for Linux oldld, aout, or coff.
9346linux*oldld* | linux*aout* | linux*coff*)
9347  dynamic_linker=no
9348  ;;
9349
9350# This must be Linux ELF.
9351linux* | k*bsd*-gnu)
9352  version_type=linux
9353  need_lib_prefix=no
9354  need_version=no
9355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9356  soname_spec='${libname}${release}${shared_ext}$major'
9357  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9358  shlibpath_var=LD_LIBRARY_PATH
9359  shlibpath_overrides_runpath=no
9360  # Some binutils ld are patched to set DT_RUNPATH
9361  save_LDFLAGS=$LDFLAGS
9362  save_libdir=$libdir
9363  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9364       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9365  cat >conftest.$ac_ext <<_ACEOF
9366/* confdefs.h.  */
9367_ACEOF
9368cat confdefs.h >>conftest.$ac_ext
9369cat >>conftest.$ac_ext <<_ACEOF
9370/* end confdefs.h.  */
9371
9372int
9373main ()
9374{
9375
9376  ;
9377  return 0;
9378}
9379_ACEOF
9380rm -f conftest.$ac_objext conftest$ac_exeext
9381if { (ac_try="$ac_link"
9382case "(($ac_try" in
9383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384  *) ac_try_echo=$ac_try;;
9385esac
9386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387  (eval "$ac_link") 2>conftest.er1
9388  ac_status=$?
9389  grep -v '^ *+' conftest.er1 >conftest.err
9390  rm -f conftest.er1
9391  cat conftest.err >&5
9392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393  (exit $ac_status); } && {
9394	 test -z "$ac_c_werror_flag" ||
9395	 test ! -s conftest.err
9396       } && test -s conftest$ac_exeext &&
9397       $as_test_x conftest$ac_exeext; then
9398  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9399  shlibpath_overrides_runpath=yes
9400fi
9401
9402else
9403  echo "$as_me: failed program was:" >&5
9404sed 's/^/| /' conftest.$ac_ext >&5
9405
9406
9407fi
9408
9409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9410      conftest$ac_exeext conftest.$ac_ext
9411  LDFLAGS=$save_LDFLAGS
9412  libdir=$save_libdir
9413
9414  # This implies no fast_install, which is unacceptable.
9415  # Some rework will be needed to allow for fast_install
9416  # before this can be enabled.
9417  hardcode_into_libs=yes
9418
9419  # Append ld.so.conf contents to the search path
9420  if test -f /etc/ld.so.conf; then
9421    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' ' '`
9422    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9423  fi
9424
9425  # We used to test for /lib/ld.so.1 and disable shared libraries on
9426  # powerpc, because MkLinux only supported shared libraries with the
9427  # GNU dynamic linker.  Since this was broken with cross compilers,
9428  # most powerpc-linux boxes support dynamic linking these days and
9429  # people can always --disable-shared, the test was removed, and we
9430  # assume the GNU/Linux dynamic linker is in use.
9431  dynamic_linker='GNU/Linux ld.so'
9432  ;;
9433
9434netbsd*)
9435  version_type=sunos
9436  need_lib_prefix=no
9437  need_version=no
9438  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9439    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9440    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9441    dynamic_linker='NetBSD (a.out) ld.so'
9442  else
9443    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9444    soname_spec='${libname}${release}${shared_ext}$major'
9445    dynamic_linker='NetBSD ld.elf_so'
9446  fi
9447  shlibpath_var=LD_LIBRARY_PATH
9448  shlibpath_overrides_runpath=yes
9449  hardcode_into_libs=yes
9450  ;;
9451
9452newsos6)
9453  version_type=linux
9454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455  shlibpath_var=LD_LIBRARY_PATH
9456  shlibpath_overrides_runpath=yes
9457  ;;
9458
9459*nto* | *qnx*)
9460  version_type=qnx
9461  need_lib_prefix=no
9462  need_version=no
9463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464  soname_spec='${libname}${release}${shared_ext}$major'
9465  shlibpath_var=LD_LIBRARY_PATH
9466  shlibpath_overrides_runpath=no
9467  hardcode_into_libs=yes
9468  dynamic_linker='ldqnx.so'
9469  ;;
9470
9471openbsd*)
9472  version_type=sunos
9473  sys_lib_dlsearch_path_spec="/usr/lib"
9474  need_lib_prefix=no
9475  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9476  case $host_os in
9477    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9478    *)				need_version=no  ;;
9479  esac
9480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9481  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9482  shlibpath_var=LD_LIBRARY_PATH
9483  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9484    case $host_os in
9485      openbsd2.[89] | openbsd2.[89].*)
9486	shlibpath_overrides_runpath=no
9487	;;
9488      *)
9489	shlibpath_overrides_runpath=yes
9490	;;
9491      esac
9492  else
9493    shlibpath_overrides_runpath=yes
9494  fi
9495  ;;
9496
9497os2*)
9498  libname_spec='$name'
9499  shrext_cmds=".dll"
9500  need_lib_prefix=no
9501  library_names_spec='$libname${shared_ext} $libname.a'
9502  dynamic_linker='OS/2 ld.exe'
9503  shlibpath_var=LIBPATH
9504  ;;
9505
9506osf3* | osf4* | osf5*)
9507  version_type=osf
9508  need_lib_prefix=no
9509  need_version=no
9510  soname_spec='${libname}${release}${shared_ext}$major'
9511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9512  shlibpath_var=LD_LIBRARY_PATH
9513  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9514  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9515  ;;
9516
9517rdos*)
9518  dynamic_linker=no
9519  ;;
9520
9521solaris*)
9522  version_type=linux
9523  need_lib_prefix=no
9524  need_version=no
9525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526  soname_spec='${libname}${release}${shared_ext}$major'
9527  shlibpath_var=LD_LIBRARY_PATH
9528  shlibpath_overrides_runpath=yes
9529  hardcode_into_libs=yes
9530  # ldd complains unless libraries are executable
9531  postinstall_cmds='chmod +x $lib'
9532  ;;
9533
9534sunos4*)
9535  version_type=sunos
9536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9537  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9538  shlibpath_var=LD_LIBRARY_PATH
9539  shlibpath_overrides_runpath=yes
9540  if test "$with_gnu_ld" = yes; then
9541    need_lib_prefix=no
9542  fi
9543  need_version=yes
9544  ;;
9545
9546sysv4 | sysv4.3*)
9547  version_type=linux
9548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549  soname_spec='${libname}${release}${shared_ext}$major'
9550  shlibpath_var=LD_LIBRARY_PATH
9551  case $host_vendor in
9552    sni)
9553      shlibpath_overrides_runpath=no
9554      need_lib_prefix=no
9555      runpath_var=LD_RUN_PATH
9556      ;;
9557    siemens)
9558      need_lib_prefix=no
9559      ;;
9560    motorola)
9561      need_lib_prefix=no
9562      need_version=no
9563      shlibpath_overrides_runpath=no
9564      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9565      ;;
9566  esac
9567  ;;
9568
9569sysv4*MP*)
9570  if test -d /usr/nec ;then
9571    version_type=linux
9572    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9573    soname_spec='$libname${shared_ext}.$major'
9574    shlibpath_var=LD_LIBRARY_PATH
9575  fi
9576  ;;
9577
9578sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9579  version_type=freebsd-elf
9580  need_lib_prefix=no
9581  need_version=no
9582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9583  soname_spec='${libname}${release}${shared_ext}$major'
9584  shlibpath_var=LD_LIBRARY_PATH
9585  shlibpath_overrides_runpath=yes
9586  hardcode_into_libs=yes
9587  if test "$with_gnu_ld" = yes; then
9588    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9589  else
9590    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9591    case $host_os in
9592      sco3.2v5*)
9593        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9594	;;
9595    esac
9596  fi
9597  sys_lib_dlsearch_path_spec='/usr/lib'
9598  ;;
9599
9600tpf*)
9601  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9602  version_type=linux
9603  need_lib_prefix=no
9604  need_version=no
9605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606  shlibpath_var=LD_LIBRARY_PATH
9607  shlibpath_overrides_runpath=no
9608  hardcode_into_libs=yes
9609  ;;
9610
9611uts4*)
9612  version_type=linux
9613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614  soname_spec='${libname}${release}${shared_ext}$major'
9615  shlibpath_var=LD_LIBRARY_PATH
9616  ;;
9617
9618*)
9619  dynamic_linker=no
9620  ;;
9621esac
9622{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9623echo "${ECHO_T}$dynamic_linker" >&6; }
9624test "$dynamic_linker" = no && can_build_shared=no
9625
9626variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9627if test "$GCC" = yes; then
9628  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9629fi
9630
9631if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9632  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9633fi
9634if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9635  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9636fi
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9725echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9726hardcode_action=
9727if test -n "$hardcode_libdir_flag_spec" ||
9728   test -n "$runpath_var" ||
9729   test "X$hardcode_automatic" = "Xyes" ; then
9730
9731  # We can hardcode non-existent directories.
9732  if test "$hardcode_direct" != no &&
9733     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9734     # have to relink, otherwise we might link with an installed library
9735     # when we should be linking with a yet-to-be-installed one
9736     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9737     test "$hardcode_minus_L" != no; then
9738    # Linking always hardcodes the temporary library directory.
9739    hardcode_action=relink
9740  else
9741    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9742    hardcode_action=immediate
9743  fi
9744else
9745  # We cannot hardcode anything, or else we can only hardcode existing
9746  # directories.
9747  hardcode_action=unsupported
9748fi
9749{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9750echo "${ECHO_T}$hardcode_action" >&6; }
9751
9752if test "$hardcode_action" = relink ||
9753   test "$inherit_rpath" = yes; then
9754  # Fast installation is not supported
9755  enable_fast_install=no
9756elif test "$shlibpath_overrides_runpath" = yes ||
9757     test "$enable_shared" = no; then
9758  # Fast installation is not necessary
9759  enable_fast_install=needless
9760fi
9761
9762
9763
9764
9765
9766
9767  if test "x$enable_dlopen" != xyes; then
9768  enable_dlopen=unknown
9769  enable_dlopen_self=unknown
9770  enable_dlopen_self_static=unknown
9771else
9772  lt_cv_dlopen=no
9773  lt_cv_dlopen_libs=
9774
9775  case $host_os in
9776  beos*)
9777    lt_cv_dlopen="load_add_on"
9778    lt_cv_dlopen_libs=
9779    lt_cv_dlopen_self=yes
9780    ;;
9781
9782  mingw* | pw32* | cegcc*)
9783    lt_cv_dlopen="LoadLibrary"
9784    lt_cv_dlopen_libs=
9785    ;;
9786
9787  cygwin*)
9788    lt_cv_dlopen="dlopen"
9789    lt_cv_dlopen_libs=
9790    ;;
9791
9792  darwin*)
9793  # if libdl is installed we need to link against it
9794    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9795echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9796if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9797  echo $ECHO_N "(cached) $ECHO_C" >&6
9798else
9799  ac_check_lib_save_LIBS=$LIBS
9800LIBS="-ldl  $LIBS"
9801cat >conftest.$ac_ext <<_ACEOF
9802/* confdefs.h.  */
9803_ACEOF
9804cat confdefs.h >>conftest.$ac_ext
9805cat >>conftest.$ac_ext <<_ACEOF
9806/* end confdefs.h.  */
9807
9808/* Override any GCC internal prototype to avoid an error.
9809   Use char because int might match the return type of a GCC
9810   builtin and then its argument prototype would still apply.  */
9811#ifdef __cplusplus
9812extern "C"
9813#endif
9814char dlopen ();
9815int
9816main ()
9817{
9818return dlopen ();
9819  ;
9820  return 0;
9821}
9822_ACEOF
9823rm -f conftest.$ac_objext conftest$ac_exeext
9824if { (ac_try="$ac_link"
9825case "(($ac_try" in
9826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827  *) ac_try_echo=$ac_try;;
9828esac
9829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830  (eval "$ac_link") 2>conftest.er1
9831  ac_status=$?
9832  grep -v '^ *+' conftest.er1 >conftest.err
9833  rm -f conftest.er1
9834  cat conftest.err >&5
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); } && {
9837	 test -z "$ac_c_werror_flag" ||
9838	 test ! -s conftest.err
9839       } && test -s conftest$ac_exeext &&
9840       $as_test_x conftest$ac_exeext; then
9841  ac_cv_lib_dl_dlopen=yes
9842else
9843  echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846	ac_cv_lib_dl_dlopen=no
9847fi
9848
9849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9850      conftest$ac_exeext conftest.$ac_ext
9851LIBS=$ac_check_lib_save_LIBS
9852fi
9853{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9854echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9855if test $ac_cv_lib_dl_dlopen = yes; then
9856  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9857else
9858
9859    lt_cv_dlopen="dyld"
9860    lt_cv_dlopen_libs=
9861    lt_cv_dlopen_self=yes
9862
9863fi
9864
9865    ;;
9866
9867  *)
9868    { echo "$as_me:$LINENO: checking for shl_load" >&5
9869echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9870if test "${ac_cv_func_shl_load+set}" = set; then
9871  echo $ECHO_N "(cached) $ECHO_C" >&6
9872else
9873  cat >conftest.$ac_ext <<_ACEOF
9874/* confdefs.h.  */
9875_ACEOF
9876cat confdefs.h >>conftest.$ac_ext
9877cat >>conftest.$ac_ext <<_ACEOF
9878/* end confdefs.h.  */
9879/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9880   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9881#define shl_load innocuous_shl_load
9882
9883/* System header to define __stub macros and hopefully few prototypes,
9884    which can conflict with char shl_load (); below.
9885    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9886    <limits.h> exists even on freestanding compilers.  */
9887
9888#ifdef __STDC__
9889# include <limits.h>
9890#else
9891# include <assert.h>
9892#endif
9893
9894#undef shl_load
9895
9896/* Override any GCC internal prototype to avoid an error.
9897   Use char because int might match the return type of a GCC
9898   builtin and then its argument prototype would still apply.  */
9899#ifdef __cplusplus
9900extern "C"
9901#endif
9902char shl_load ();
9903/* The GNU C library defines this for functions which it implements
9904    to always fail with ENOSYS.  Some functions are actually named
9905    something starting with __ and the normal name is an alias.  */
9906#if defined __stub_shl_load || defined __stub___shl_load
9907choke me
9908#endif
9909
9910int
9911main ()
9912{
9913return shl_load ();
9914  ;
9915  return 0;
9916}
9917_ACEOF
9918rm -f conftest.$ac_objext conftest$ac_exeext
9919if { (ac_try="$ac_link"
9920case "(($ac_try" in
9921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922  *) ac_try_echo=$ac_try;;
9923esac
9924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925  (eval "$ac_link") 2>conftest.er1
9926  ac_status=$?
9927  grep -v '^ *+' conftest.er1 >conftest.err
9928  rm -f conftest.er1
9929  cat conftest.err >&5
9930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931  (exit $ac_status); } && {
9932	 test -z "$ac_c_werror_flag" ||
9933	 test ! -s conftest.err
9934       } && test -s conftest$ac_exeext &&
9935       $as_test_x conftest$ac_exeext; then
9936  ac_cv_func_shl_load=yes
9937else
9938  echo "$as_me: failed program was:" >&5
9939sed 's/^/| /' conftest.$ac_ext >&5
9940
9941	ac_cv_func_shl_load=no
9942fi
9943
9944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9945      conftest$ac_exeext conftest.$ac_ext
9946fi
9947{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9948echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9949if test $ac_cv_func_shl_load = yes; then
9950  lt_cv_dlopen="shl_load"
9951else
9952  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9953echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9954if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9955  echo $ECHO_N "(cached) $ECHO_C" >&6
9956else
9957  ac_check_lib_save_LIBS=$LIBS
9958LIBS="-ldld  $LIBS"
9959cat >conftest.$ac_ext <<_ACEOF
9960/* confdefs.h.  */
9961_ACEOF
9962cat confdefs.h >>conftest.$ac_ext
9963cat >>conftest.$ac_ext <<_ACEOF
9964/* end confdefs.h.  */
9965
9966/* Override any GCC internal prototype to avoid an error.
9967   Use char because int might match the return type of a GCC
9968   builtin and then its argument prototype would still apply.  */
9969#ifdef __cplusplus
9970extern "C"
9971#endif
9972char shl_load ();
9973int
9974main ()
9975{
9976return shl_load ();
9977  ;
9978  return 0;
9979}
9980_ACEOF
9981rm -f conftest.$ac_objext conftest$ac_exeext
9982if { (ac_try="$ac_link"
9983case "(($ac_try" in
9984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985  *) ac_try_echo=$ac_try;;
9986esac
9987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988  (eval "$ac_link") 2>conftest.er1
9989  ac_status=$?
9990  grep -v '^ *+' conftest.er1 >conftest.err
9991  rm -f conftest.er1
9992  cat conftest.err >&5
9993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994  (exit $ac_status); } && {
9995	 test -z "$ac_c_werror_flag" ||
9996	 test ! -s conftest.err
9997       } && test -s conftest$ac_exeext &&
9998       $as_test_x conftest$ac_exeext; then
9999  ac_cv_lib_dld_shl_load=yes
10000else
10001  echo "$as_me: failed program was:" >&5
10002sed 's/^/| /' conftest.$ac_ext >&5
10003
10004	ac_cv_lib_dld_shl_load=no
10005fi
10006
10007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10008      conftest$ac_exeext conftest.$ac_ext
10009LIBS=$ac_check_lib_save_LIBS
10010fi
10011{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10012echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10013if test $ac_cv_lib_dld_shl_load = yes; then
10014  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10015else
10016  { echo "$as_me:$LINENO: checking for dlopen" >&5
10017echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10018if test "${ac_cv_func_dlopen+set}" = set; then
10019  echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021  cat >conftest.$ac_ext <<_ACEOF
10022/* confdefs.h.  */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
10026/* end confdefs.h.  */
10027/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10028   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10029#define dlopen innocuous_dlopen
10030
10031/* System header to define __stub macros and hopefully few prototypes,
10032    which can conflict with char dlopen (); below.
10033    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034    <limits.h> exists even on freestanding compilers.  */
10035
10036#ifdef __STDC__
10037# include <limits.h>
10038#else
10039# include <assert.h>
10040#endif
10041
10042#undef dlopen
10043
10044/* Override any GCC internal prototype to avoid an error.
10045   Use char because int might match the return type of a GCC
10046   builtin and then its argument prototype would still apply.  */
10047#ifdef __cplusplus
10048extern "C"
10049#endif
10050char dlopen ();
10051/* The GNU C library defines this for functions which it implements
10052    to always fail with ENOSYS.  Some functions are actually named
10053    something starting with __ and the normal name is an alias.  */
10054#if defined __stub_dlopen || defined __stub___dlopen
10055choke me
10056#endif
10057
10058int
10059main ()
10060{
10061return dlopen ();
10062  ;
10063  return 0;
10064}
10065_ACEOF
10066rm -f conftest.$ac_objext conftest$ac_exeext
10067if { (ac_try="$ac_link"
10068case "(($ac_try" in
10069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070  *) ac_try_echo=$ac_try;;
10071esac
10072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073  (eval "$ac_link") 2>conftest.er1
10074  ac_status=$?
10075  grep -v '^ *+' conftest.er1 >conftest.err
10076  rm -f conftest.er1
10077  cat conftest.err >&5
10078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079  (exit $ac_status); } && {
10080	 test -z "$ac_c_werror_flag" ||
10081	 test ! -s conftest.err
10082       } && test -s conftest$ac_exeext &&
10083       $as_test_x conftest$ac_exeext; then
10084  ac_cv_func_dlopen=yes
10085else
10086  echo "$as_me: failed program was:" >&5
10087sed 's/^/| /' conftest.$ac_ext >&5
10088
10089	ac_cv_func_dlopen=no
10090fi
10091
10092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10093      conftest$ac_exeext conftest.$ac_ext
10094fi
10095{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10096echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10097if test $ac_cv_func_dlopen = yes; then
10098  lt_cv_dlopen="dlopen"
10099else
10100  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10101echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10102if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10103  echo $ECHO_N "(cached) $ECHO_C" >&6
10104else
10105  ac_check_lib_save_LIBS=$LIBS
10106LIBS="-ldl  $LIBS"
10107cat >conftest.$ac_ext <<_ACEOF
10108/* confdefs.h.  */
10109_ACEOF
10110cat confdefs.h >>conftest.$ac_ext
10111cat >>conftest.$ac_ext <<_ACEOF
10112/* end confdefs.h.  */
10113
10114/* Override any GCC internal prototype to avoid an error.
10115   Use char because int might match the return type of a GCC
10116   builtin and then its argument prototype would still apply.  */
10117#ifdef __cplusplus
10118extern "C"
10119#endif
10120char dlopen ();
10121int
10122main ()
10123{
10124return dlopen ();
10125  ;
10126  return 0;
10127}
10128_ACEOF
10129rm -f conftest.$ac_objext conftest$ac_exeext
10130if { (ac_try="$ac_link"
10131case "(($ac_try" in
10132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133  *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136  (eval "$ac_link") 2>conftest.er1
10137  ac_status=$?
10138  grep -v '^ *+' conftest.er1 >conftest.err
10139  rm -f conftest.er1
10140  cat conftest.err >&5
10141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142  (exit $ac_status); } && {
10143	 test -z "$ac_c_werror_flag" ||
10144	 test ! -s conftest.err
10145       } && test -s conftest$ac_exeext &&
10146       $as_test_x conftest$ac_exeext; then
10147  ac_cv_lib_dl_dlopen=yes
10148else
10149  echo "$as_me: failed program was:" >&5
10150sed 's/^/| /' conftest.$ac_ext >&5
10151
10152	ac_cv_lib_dl_dlopen=no
10153fi
10154
10155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10156      conftest$ac_exeext conftest.$ac_ext
10157LIBS=$ac_check_lib_save_LIBS
10158fi
10159{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10160echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10161if test $ac_cv_lib_dl_dlopen = yes; then
10162  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10163else
10164  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10165echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10166if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10167  echo $ECHO_N "(cached) $ECHO_C" >&6
10168else
10169  ac_check_lib_save_LIBS=$LIBS
10170LIBS="-lsvld  $LIBS"
10171cat >conftest.$ac_ext <<_ACEOF
10172/* confdefs.h.  */
10173_ACEOF
10174cat confdefs.h >>conftest.$ac_ext
10175cat >>conftest.$ac_ext <<_ACEOF
10176/* end confdefs.h.  */
10177
10178/* Override any GCC internal prototype to avoid an error.
10179   Use char because int might match the return type of a GCC
10180   builtin and then its argument prototype would still apply.  */
10181#ifdef __cplusplus
10182extern "C"
10183#endif
10184char dlopen ();
10185int
10186main ()
10187{
10188return dlopen ();
10189  ;
10190  return 0;
10191}
10192_ACEOF
10193rm -f conftest.$ac_objext conftest$ac_exeext
10194if { (ac_try="$ac_link"
10195case "(($ac_try" in
10196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197  *) ac_try_echo=$ac_try;;
10198esac
10199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200  (eval "$ac_link") 2>conftest.er1
10201  ac_status=$?
10202  grep -v '^ *+' conftest.er1 >conftest.err
10203  rm -f conftest.er1
10204  cat conftest.err >&5
10205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206  (exit $ac_status); } && {
10207	 test -z "$ac_c_werror_flag" ||
10208	 test ! -s conftest.err
10209       } && test -s conftest$ac_exeext &&
10210       $as_test_x conftest$ac_exeext; then
10211  ac_cv_lib_svld_dlopen=yes
10212else
10213  echo "$as_me: failed program was:" >&5
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
10216	ac_cv_lib_svld_dlopen=no
10217fi
10218
10219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10220      conftest$ac_exeext conftest.$ac_ext
10221LIBS=$ac_check_lib_save_LIBS
10222fi
10223{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10224echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10225if test $ac_cv_lib_svld_dlopen = yes; then
10226  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10227else
10228  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10229echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10230if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10231  echo $ECHO_N "(cached) $ECHO_C" >&6
10232else
10233  ac_check_lib_save_LIBS=$LIBS
10234LIBS="-ldld  $LIBS"
10235cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h.  */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h.  */
10241
10242/* Override any GCC internal prototype to avoid an error.
10243   Use char because int might match the return type of a GCC
10244   builtin and then its argument prototype would still apply.  */
10245#ifdef __cplusplus
10246extern "C"
10247#endif
10248char dld_link ();
10249int
10250main ()
10251{
10252return dld_link ();
10253  ;
10254  return 0;
10255}
10256_ACEOF
10257rm -f conftest.$ac_objext conftest$ac_exeext
10258if { (ac_try="$ac_link"
10259case "(($ac_try" in
10260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261  *) ac_try_echo=$ac_try;;
10262esac
10263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264  (eval "$ac_link") 2>conftest.er1
10265  ac_status=$?
10266  grep -v '^ *+' conftest.er1 >conftest.err
10267  rm -f conftest.er1
10268  cat conftest.err >&5
10269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270  (exit $ac_status); } && {
10271	 test -z "$ac_c_werror_flag" ||
10272	 test ! -s conftest.err
10273       } && test -s conftest$ac_exeext &&
10274       $as_test_x conftest$ac_exeext; then
10275  ac_cv_lib_dld_dld_link=yes
10276else
10277  echo "$as_me: failed program was:" >&5
10278sed 's/^/| /' conftest.$ac_ext >&5
10279
10280	ac_cv_lib_dld_dld_link=no
10281fi
10282
10283rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10284      conftest$ac_exeext conftest.$ac_ext
10285LIBS=$ac_check_lib_save_LIBS
10286fi
10287{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10288echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10289if test $ac_cv_lib_dld_dld_link = yes; then
10290  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10291fi
10292
10293
10294fi
10295
10296
10297fi
10298
10299
10300fi
10301
10302
10303fi
10304
10305
10306fi
10307
10308    ;;
10309  esac
10310
10311  if test "x$lt_cv_dlopen" != xno; then
10312    enable_dlopen=yes
10313  else
10314    enable_dlopen=no
10315  fi
10316
10317  case $lt_cv_dlopen in
10318  dlopen)
10319    save_CPPFLAGS="$CPPFLAGS"
10320    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10321
10322    save_LDFLAGS="$LDFLAGS"
10323    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10324
10325    save_LIBS="$LIBS"
10326    LIBS="$lt_cv_dlopen_libs $LIBS"
10327
10328    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10329echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10330if test "${lt_cv_dlopen_self+set}" = set; then
10331  echo $ECHO_N "(cached) $ECHO_C" >&6
10332else
10333  	  if test "$cross_compiling" = yes; then :
10334  lt_cv_dlopen_self=cross
10335else
10336  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10337  lt_status=$lt_dlunknown
10338  cat > conftest.$ac_ext <<_LT_EOF
10339#line 10339 "configure"
10340#include "confdefs.h"
10341
10342#if HAVE_DLFCN_H
10343#include <dlfcn.h>
10344#endif
10345
10346#include <stdio.h>
10347
10348#ifdef RTLD_GLOBAL
10349#  define LT_DLGLOBAL		RTLD_GLOBAL
10350#else
10351#  ifdef DL_GLOBAL
10352#    define LT_DLGLOBAL		DL_GLOBAL
10353#  else
10354#    define LT_DLGLOBAL		0
10355#  endif
10356#endif
10357
10358/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10359   find out it does not work in some platform. */
10360#ifndef LT_DLLAZY_OR_NOW
10361#  ifdef RTLD_LAZY
10362#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10363#  else
10364#    ifdef DL_LAZY
10365#      define LT_DLLAZY_OR_NOW		DL_LAZY
10366#    else
10367#      ifdef RTLD_NOW
10368#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10369#      else
10370#        ifdef DL_NOW
10371#          define LT_DLLAZY_OR_NOW	DL_NOW
10372#        else
10373#          define LT_DLLAZY_OR_NOW	0
10374#        endif
10375#      endif
10376#    endif
10377#  endif
10378#endif
10379
10380void fnord() { int i=42;}
10381int main ()
10382{
10383  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10384  int status = $lt_dlunknown;
10385
10386  if (self)
10387    {
10388      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10389      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10390      /* dlclose (self); */
10391    }
10392  else
10393    puts (dlerror ());
10394
10395  return status;
10396}
10397_LT_EOF
10398  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399  (eval $ac_link) 2>&5
10400  ac_status=$?
10401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10403    (./conftest; exit; ) >&5 2>/dev/null
10404    lt_status=$?
10405    case x$lt_status in
10406      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10407      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10408      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10409    esac
10410  else :
10411    # compilation failed
10412    lt_cv_dlopen_self=no
10413  fi
10414fi
10415rm -fr conftest*
10416
10417
10418fi
10419{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10420echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10421
10422    if test "x$lt_cv_dlopen_self" = xyes; then
10423      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10424      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10425echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10426if test "${lt_cv_dlopen_self_static+set}" = set; then
10427  echo $ECHO_N "(cached) $ECHO_C" >&6
10428else
10429  	  if test "$cross_compiling" = yes; then :
10430  lt_cv_dlopen_self_static=cross
10431else
10432  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10433  lt_status=$lt_dlunknown
10434  cat > conftest.$ac_ext <<_LT_EOF
10435#line 10435 "configure"
10436#include "confdefs.h"
10437
10438#if HAVE_DLFCN_H
10439#include <dlfcn.h>
10440#endif
10441
10442#include <stdio.h>
10443
10444#ifdef RTLD_GLOBAL
10445#  define LT_DLGLOBAL		RTLD_GLOBAL
10446#else
10447#  ifdef DL_GLOBAL
10448#    define LT_DLGLOBAL		DL_GLOBAL
10449#  else
10450#    define LT_DLGLOBAL		0
10451#  endif
10452#endif
10453
10454/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10455   find out it does not work in some platform. */
10456#ifndef LT_DLLAZY_OR_NOW
10457#  ifdef RTLD_LAZY
10458#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10459#  else
10460#    ifdef DL_LAZY
10461#      define LT_DLLAZY_OR_NOW		DL_LAZY
10462#    else
10463#      ifdef RTLD_NOW
10464#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10465#      else
10466#        ifdef DL_NOW
10467#          define LT_DLLAZY_OR_NOW	DL_NOW
10468#        else
10469#          define LT_DLLAZY_OR_NOW	0
10470#        endif
10471#      endif
10472#    endif
10473#  endif
10474#endif
10475
10476void fnord() { int i=42;}
10477int main ()
10478{
10479  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10480  int status = $lt_dlunknown;
10481
10482  if (self)
10483    {
10484      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10485      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10486      /* dlclose (self); */
10487    }
10488  else
10489    puts (dlerror ());
10490
10491  return status;
10492}
10493_LT_EOF
10494  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495  (eval $ac_link) 2>&5
10496  ac_status=$?
10497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10499    (./conftest; exit; ) >&5 2>/dev/null
10500    lt_status=$?
10501    case x$lt_status in
10502      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10503      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10504      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10505    esac
10506  else :
10507    # compilation failed
10508    lt_cv_dlopen_self_static=no
10509  fi
10510fi
10511rm -fr conftest*
10512
10513
10514fi
10515{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10516echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10517    fi
10518
10519    CPPFLAGS="$save_CPPFLAGS"
10520    LDFLAGS="$save_LDFLAGS"
10521    LIBS="$save_LIBS"
10522    ;;
10523  esac
10524
10525  case $lt_cv_dlopen_self in
10526  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10527  *) enable_dlopen_self=unknown ;;
10528  esac
10529
10530  case $lt_cv_dlopen_self_static in
10531  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10532  *) enable_dlopen_self_static=unknown ;;
10533  esac
10534fi
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552striplib=
10553old_striplib=
10554{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10555echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10556if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10557  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10558  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10559  { echo "$as_me:$LINENO: result: yes" >&5
10560echo "${ECHO_T}yes" >&6; }
10561else
10562# FIXME - insert some real tests, host_os isn't really good enough
10563  case $host_os in
10564  darwin*)
10565    if test -n "$STRIP" ; then
10566      striplib="$STRIP -x"
10567      old_striplib="$STRIP -S"
10568      { echo "$as_me:$LINENO: result: yes" >&5
10569echo "${ECHO_T}yes" >&6; }
10570    else
10571      { echo "$as_me:$LINENO: result: no" >&5
10572echo "${ECHO_T}no" >&6; }
10573    fi
10574    ;;
10575  *)
10576    { echo "$as_me:$LINENO: result: no" >&5
10577echo "${ECHO_T}no" >&6; }
10578    ;;
10579  esac
10580fi
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593  # Report which library types will actually be built
10594  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10595echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10596  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10597echo "${ECHO_T}$can_build_shared" >&6; }
10598
10599  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10600echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10601  test "$can_build_shared" = "no" && enable_shared=no
10602
10603  # On AIX, shared libraries and static libraries use the same namespace, and
10604  # are all built from PIC.
10605  case $host_os in
10606  aix3*)
10607    test "$enable_shared" = yes && enable_static=no
10608    if test -n "$RANLIB"; then
10609      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10610      postinstall_cmds='$RANLIB $lib'
10611    fi
10612    ;;
10613
10614  aix[4-9]*)
10615    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10616      test "$enable_shared" = yes && enable_static=no
10617    fi
10618    ;;
10619  esac
10620  { echo "$as_me:$LINENO: result: $enable_shared" >&5
10621echo "${ECHO_T}$enable_shared" >&6; }
10622
10623  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10624echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10625  # Make sure either enable_shared or enable_static is yes.
10626  test "$enable_shared" = yes || enable_static=yes
10627  { echo "$as_me:$LINENO: result: $enable_static" >&5
10628echo "${ECHO_T}$enable_static" >&6; }
10629
10630
10631
10632
10633fi
10634ac_ext=c
10635ac_cpp='$CPP $CPPFLAGS'
10636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10638ac_compiler_gnu=$ac_cv_c_compiler_gnu
10639
10640CC="$lt_save_CC"
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654        ac_config_commands="$ac_config_commands libtool"
10655
10656
10657
10658
10659# Only expand once:
10660
10661
10662
10663LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
10664LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
10665LT_REVISION=$INTERFACE_AGE
10666LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
10667
10668
10669
10670
10671
10672
10673{ echo "$as_me:$LINENO: checking host system type" >&5
10674echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
10675if test "${ac_cv_host+set}" = set; then
10676  echo $ECHO_N "(cached) $ECHO_C" >&6
10677else
10678  if test "x$host_alias" = x; then
10679  ac_cv_host=$ac_cv_build
10680else
10681  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10682    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10683echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10684   { (exit 1); exit 1; }; }
10685fi
10686
10687fi
10688{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10689echo "${ECHO_T}$ac_cv_host" >&6; }
10690case $ac_cv_host in
10691*-*-*) ;;
10692*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10693echo "$as_me: error: invalid value of canonical host" >&2;}
10694   { (exit 1); exit 1; }; };;
10695esac
10696host=$ac_cv_host
10697ac_save_IFS=$IFS; IFS='-'
10698set x $ac_cv_host
10699shift
10700host_cpu=$1
10701host_vendor=$2
10702shift; shift
10703# Remember, the first character of IFS is used to create $*,
10704# except with old shells:
10705host_os=$*
10706IFS=$ac_save_IFS
10707case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10708
10709
10710
10711am__api_version='1.10'
10712
10713# Find a good install program.  We prefer a C program (faster),
10714# so one script is as good as another.  But avoid the broken or
10715# incompatible versions:
10716# SysV /etc/install, /usr/sbin/install
10717# SunOS /usr/etc/install
10718# IRIX /sbin/install
10719# AIX /bin/install
10720# AmigaOS /C/install, which installs bootblocks on floppy discs
10721# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10722# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10723# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10724# OS/2's system install, which has a completely different semantic
10725# ./install, which can be erroneously created by make from ./install.sh.
10726{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10727echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10728if test -z "$INSTALL"; then
10729if test "${ac_cv_path_install+set}" = set; then
10730  echo $ECHO_N "(cached) $ECHO_C" >&6
10731else
10732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733for as_dir in $PATH
10734do
10735  IFS=$as_save_IFS
10736  test -z "$as_dir" && as_dir=.
10737  # Account for people who put trailing slashes in PATH elements.
10738case $as_dir/ in
10739  ./ | .// | /cC/* | \
10740  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10741  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10742  /usr/ucb/* ) ;;
10743  *)
10744    # OSF1 and SCO ODT 3.0 have their own names for install.
10745    # Don't use installbsd from OSF since it installs stuff as root
10746    # by default.
10747    for ac_prog in ginstall scoinst install; do
10748      for ac_exec_ext in '' $ac_executable_extensions; do
10749	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10750	  if test $ac_prog = install &&
10751	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10752	    # AIX install.  It has an incompatible calling convention.
10753	    :
10754	  elif test $ac_prog = install &&
10755	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10756	    # program-specific install script used by HP pwplus--don't use.
10757	    :
10758	  else
10759	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10760	    break 3
10761	  fi
10762	fi
10763      done
10764    done
10765    ;;
10766esac
10767done
10768IFS=$as_save_IFS
10769
10770
10771fi
10772  if test "${ac_cv_path_install+set}" = set; then
10773    INSTALL=$ac_cv_path_install
10774  else
10775    # As a last resort, use the slow shell script.  Don't cache a
10776    # value for INSTALL within a source directory, because that will
10777    # break other packages using the cache if that directory is
10778    # removed, or if the value is a relative name.
10779    INSTALL=$ac_install_sh
10780  fi
10781fi
10782{ echo "$as_me:$LINENO: result: $INSTALL" >&5
10783echo "${ECHO_T}$INSTALL" >&6; }
10784
10785# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10786# It thinks the first close brace ends the variable substitution.
10787test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10788
10789test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10790
10791test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10792
10793{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10794echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
10795# Just in case
10796sleep 1
10797echo timestamp > conftest.file
10798# Do `set' in a subshell so we don't clobber the current shell's
10799# arguments.  Must try -L first in case configure is actually a
10800# symlink; some systems play weird games with the mod time of symlinks
10801# (eg FreeBSD returns the mod time of the symlink's containing
10802# directory).
10803if (
10804   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
10805   if test "$*" = "X"; then
10806      # -L didn't work.
10807      set X `ls -t $srcdir/configure conftest.file`
10808   fi
10809   rm -f conftest.file
10810   if test "$*" != "X $srcdir/configure conftest.file" \
10811      && test "$*" != "X conftest.file $srcdir/configure"; then
10812
10813      # If neither matched, then we have a broken ls.  This can happen
10814      # if, for instance, CONFIG_SHELL is bash and it inherits a
10815      # broken ls alias from the environment.  This has actually
10816      # happened.  Such a system could not be considered "sane".
10817      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
10818alias in your environment" >&5
10819echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
10820alias in your environment" >&2;}
10821   { (exit 1); exit 1; }; }
10822   fi
10823
10824   test "$2" = conftest.file
10825   )
10826then
10827   # Ok.
10828   :
10829else
10830   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10831Check your system clock" >&5
10832echo "$as_me: error: newly created file is older than distributed files!
10833Check your system clock" >&2;}
10834   { (exit 1); exit 1; }; }
10835fi
10836{ echo "$as_me:$LINENO: result: yes" >&5
10837echo "${ECHO_T}yes" >&6; }
10838test "$program_prefix" != NONE &&
10839  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10840# Use a double $ so make ignores it.
10841test "$program_suffix" != NONE &&
10842  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10843# Double any \ or $.  echo might interpret backslashes.
10844# By default was `s,x,x', remove it if useless.
10845cat <<\_ACEOF >conftest.sed
10846s/[\\$]/&&/g;s/;s,x,x,$//
10847_ACEOF
10848program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
10849rm -f conftest.sed
10850
10851# expand $ac_aux_dir to an absolute path
10852am_aux_dir=`cd $ac_aux_dir && pwd`
10853
10854test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
10855# Use eval to expand $SHELL
10856if eval "$MISSING --run true"; then
10857  am_missing_run="$MISSING --run "
10858else
10859  am_missing_run=
10860  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10861echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10862fi
10863
10864{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
10865echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
10866if test -z "$MKDIR_P"; then
10867  if test "${ac_cv_path_mkdir+set}" = set; then
10868  echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10872do
10873  IFS=$as_save_IFS
10874  test -z "$as_dir" && as_dir=.
10875  for ac_prog in mkdir gmkdir; do
10876	 for ac_exec_ext in '' $ac_executable_extensions; do
10877	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10878	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10879	     'mkdir (GNU coreutils) '* | \
10880	     'mkdir (coreutils) '* | \
10881	     'mkdir (fileutils) '4.1*)
10882	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10883	       break 3;;
10884	   esac
10885	 done
10886       done
10887done
10888IFS=$as_save_IFS
10889
10890fi
10891
10892  if test "${ac_cv_path_mkdir+set}" = set; then
10893    MKDIR_P="$ac_cv_path_mkdir -p"
10894  else
10895    # As a last resort, use the slow shell script.  Don't cache a
10896    # value for MKDIR_P within a source directory, because that will
10897    # break other packages using the cache if that directory is
10898    # removed, or if the value is a relative name.
10899    test -d ./--version && rmdir ./--version
10900    MKDIR_P="$ac_install_sh -d"
10901  fi
10902fi
10903{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
10904echo "${ECHO_T}$MKDIR_P" >&6; }
10905
10906mkdir_p="$MKDIR_P"
10907case $mkdir_p in
10908  [\\/$]* | ?:[\\/]*) ;;
10909  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10910esac
10911
10912for ac_prog in gawk mawk nawk awk
10913do
10914  # Extract the first word of "$ac_prog", so it can be a program name with args.
10915set dummy $ac_prog; ac_word=$2
10916{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10918if test "${ac_cv_prog_AWK+set}" = set; then
10919  echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921  if test -n "$AWK"; then
10922  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10923else
10924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925for as_dir in $PATH
10926do
10927  IFS=$as_save_IFS
10928  test -z "$as_dir" && as_dir=.
10929  for ac_exec_ext in '' $ac_executable_extensions; do
10930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10931    ac_cv_prog_AWK="$ac_prog"
10932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10933    break 2
10934  fi
10935done
10936done
10937IFS=$as_save_IFS
10938
10939fi
10940fi
10941AWK=$ac_cv_prog_AWK
10942if test -n "$AWK"; then
10943  { echo "$as_me:$LINENO: result: $AWK" >&5
10944echo "${ECHO_T}$AWK" >&6; }
10945else
10946  { echo "$as_me:$LINENO: result: no" >&5
10947echo "${ECHO_T}no" >&6; }
10948fi
10949
10950
10951  test -n "$AWK" && break
10952done
10953
10954{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10955echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10956set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10957if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10958  echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960  cat >conftest.make <<\_ACEOF
10961SHELL = /bin/sh
10962all:
10963	@echo '@@@%%%=$(MAKE)=@@@%%%'
10964_ACEOF
10965# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10966case `${MAKE-make} -f conftest.make 2>/dev/null` in
10967  *@@@%%%=?*=@@@%%%*)
10968    eval ac_cv_prog_make_${ac_make}_set=yes;;
10969  *)
10970    eval ac_cv_prog_make_${ac_make}_set=no;;
10971esac
10972rm -f conftest.make
10973fi
10974if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10975  { echo "$as_me:$LINENO: result: yes" >&5
10976echo "${ECHO_T}yes" >&6; }
10977  SET_MAKE=
10978else
10979  { echo "$as_me:$LINENO: result: no" >&5
10980echo "${ECHO_T}no" >&6; }
10981  SET_MAKE="MAKE=${MAKE-make}"
10982fi
10983
10984rm -rf .tst 2>/dev/null
10985mkdir .tst 2>/dev/null
10986if test -d .tst; then
10987  am__leading_dot=.
10988else
10989  am__leading_dot=_
10990fi
10991rmdir .tst 2>/dev/null
10992
10993DEPDIR="${am__leading_dot}deps"
10994
10995ac_config_commands="$ac_config_commands depfiles"
10996
10997
10998am_make=${MAKE-make}
10999cat > confinc << 'END'
11000am__doit:
11001	@echo done
11002.PHONY: am__doit
11003END
11004# If we don't find an include directive, just comment out the code.
11005{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
11006echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
11007am__include="#"
11008am__quote=
11009_am_result=none
11010# First try GNU make style include.
11011echo "include confinc" > confmf
11012# We grep out `Entering directory' and `Leaving directory'
11013# messages which can occur if `w' ends up in MAKEFLAGS.
11014# In particular we don't look at `^make:' because GNU make might
11015# be invoked under some other name (usually "gmake"), in which
11016# case it prints its new name instead of `make'.
11017if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
11018   am__include=include
11019   am__quote=
11020   _am_result=GNU
11021fi
11022# Now try BSD make style include.
11023if test "$am__include" = "#"; then
11024   echo '.include "confinc"' > confmf
11025   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
11026      am__include=.include
11027      am__quote="\""
11028      _am_result=BSD
11029   fi
11030fi
11031
11032
11033{ echo "$as_me:$LINENO: result: $_am_result" >&5
11034echo "${ECHO_T}$_am_result" >&6; }
11035rm -f confinc confmf
11036
11037# Check whether --enable-dependency-tracking was given.
11038if test "${enable_dependency_tracking+set}" = set; then
11039  enableval=$enable_dependency_tracking;
11040fi
11041
11042if test "x$enable_dependency_tracking" != xno; then
11043  am_depcomp="$ac_aux_dir/depcomp"
11044  AMDEPBACKSLASH='\'
11045fi
11046 if test "x$enable_dependency_tracking" != xno; then
11047  AMDEP_TRUE=
11048  AMDEP_FALSE='#'
11049else
11050  AMDEP_TRUE='#'
11051  AMDEP_FALSE=
11052fi
11053
11054
11055if test "`cd $srcdir && pwd`" != "`pwd`"; then
11056  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11057  # is not polluted with repeated "-I."
11058  am__isrc=' -I$(srcdir)'
11059  # test to see if srcdir already configured
11060  if test -f $srcdir/config.status; then
11061    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11062echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11063   { (exit 1); exit 1; }; }
11064  fi
11065fi
11066
11067# test whether we have cygpath
11068if test -z "$CYGPATH_W"; then
11069  if (cygpath --version) >/dev/null 2>/dev/null; then
11070    CYGPATH_W='cygpath -w'
11071  else
11072    CYGPATH_W=echo
11073  fi
11074fi
11075
11076
11077# Define the identity of the package.
11078 PACKAGE=SDL_ttf
11079 VERSION=$VERSION
11080
11081
11082cat >>confdefs.h <<_ACEOF
11083#define PACKAGE "$PACKAGE"
11084_ACEOF
11085
11086
11087cat >>confdefs.h <<_ACEOF
11088#define VERSION "$VERSION"
11089_ACEOF
11090
11091# Some tools Automake needs.
11092
11093ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11094
11095
11096AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11097
11098
11099AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11100
11101
11102AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11103
11104
11105MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11106
11107install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
11108
11109# Installed binaries are usually stripped using `strip' when the user
11110# run `make install-strip'.  However `strip' might not be the right
11111# tool to use in cross-compilation environments, therefore Automake
11112# will honor the `STRIP' environment variable to overrule this program.
11113if test "$cross_compiling" != no; then
11114  if test -n "$ac_tool_prefix"; then
11115  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11116set dummy ${ac_tool_prefix}strip; ac_word=$2
11117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11119if test "${ac_cv_prog_STRIP+set}" = set; then
11120  echo $ECHO_N "(cached) $ECHO_C" >&6
11121else
11122  if test -n "$STRIP"; then
11123  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11124else
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128  IFS=$as_save_IFS
11129  test -z "$as_dir" && as_dir=.
11130  for ac_exec_ext in '' $ac_executable_extensions; do
11131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11132    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11134    break 2
11135  fi
11136done
11137done
11138IFS=$as_save_IFS
11139
11140fi
11141fi
11142STRIP=$ac_cv_prog_STRIP
11143if test -n "$STRIP"; then
11144  { echo "$as_me:$LINENO: result: $STRIP" >&5
11145echo "${ECHO_T}$STRIP" >&6; }
11146else
11147  { echo "$as_me:$LINENO: result: no" >&5
11148echo "${ECHO_T}no" >&6; }
11149fi
11150
11151
11152fi
11153if test -z "$ac_cv_prog_STRIP"; then
11154  ac_ct_STRIP=$STRIP
11155  # Extract the first word of "strip", so it can be a program name with args.
11156set dummy strip; ac_word=$2
11157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11159if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11160  echo $ECHO_N "(cached) $ECHO_C" >&6
11161else
11162  if test -n "$ac_ct_STRIP"; then
11163  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11164else
11165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166for as_dir in $PATH
11167do
11168  IFS=$as_save_IFS
11169  test -z "$as_dir" && as_dir=.
11170  for ac_exec_ext in '' $ac_executable_extensions; do
11171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11172    ac_cv_prog_ac_ct_STRIP="strip"
11173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11174    break 2
11175  fi
11176done
11177done
11178IFS=$as_save_IFS
11179
11180fi
11181fi
11182ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11183if test -n "$ac_ct_STRIP"; then
11184  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11185echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11186else
11187  { echo "$as_me:$LINENO: result: no" >&5
11188echo "${ECHO_T}no" >&6; }
11189fi
11190
11191  if test "x$ac_ct_STRIP" = x; then
11192    STRIP=":"
11193  else
11194    case $cross_compiling:$ac_tool_warned in
11195yes:)
11196{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11197whose name does not start with the host triplet.  If you think this
11198configuration is useful to you, please write to autoconf@gnu.org." >&5
11199echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11200whose name does not start with the host triplet.  If you think this
11201configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11202ac_tool_warned=yes ;;
11203esac
11204    STRIP=$ac_ct_STRIP
11205  fi
11206else
11207  STRIP="$ac_cv_prog_STRIP"
11208fi
11209
11210fi
11211INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11212
11213# We need awk for the "check" target.  The system "awk" is bad on
11214# some platforms.
11215# Always define AMTAR for backward compatibility.
11216
11217AMTAR=${AMTAR-"${am_missing_run}tar"}
11218
11219am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11220
11221
11222
11223
11224depcc="$CC"   am_compiler_list=
11225
11226{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11227echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
11228if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11229  echo $ECHO_N "(cached) $ECHO_C" >&6
11230else
11231  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11232  # We make a subdir and do the tests there.  Otherwise we can end up
11233  # making bogus files that we don't know about and never remove.  For
11234  # instance it was reported that on HP-UX the gcc test will end up
11235  # making a dummy file named `D' -- because `-MD' means `put the output
11236  # in D'.
11237  mkdir conftest.dir
11238  # Copy depcomp to subdir because otherwise we won't find it if we're
11239  # using a relative directory.
11240  cp "$am_depcomp" conftest.dir
11241  cd conftest.dir
11242  # We will build objects and dependencies in a subdirectory because
11243  # it helps to detect inapplicable dependency modes.  For instance
11244  # both Tru64's cc and ICC support -MD to output dependencies as a
11245  # side effect of compilation, but ICC will put the dependencies in
11246  # the current directory while Tru64 will put them in the object
11247  # directory.
11248  mkdir sub
11249
11250  am_cv_CC_dependencies_compiler_type=none
11251  if test "$am_compiler_list" = ""; then
11252     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11253  fi
11254  for depmode in $am_compiler_list; do
11255    # Setup a source with many dependencies, because some compilers
11256    # like to wrap large dependency lists on column 80 (with \), and
11257    # we should not choose a depcomp mode which is confused by this.
11258    #
11259    # We need to recreate these files for each test, as the compiler may
11260    # overwrite some of them when testing with obscure command lines.
11261    # This happens at least with the AIX C compiler.
11262    : > sub/conftest.c
11263    for i in 1 2 3 4 5 6; do
11264      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11265      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11266      # Solaris 8's {/usr,}/bin/sh.
11267      touch sub/conftst$i.h
11268    done
11269    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11270
11271    case $depmode in
11272    nosideeffect)
11273      # after this tag, mechanisms are not by side-effect, so they'll
11274      # only be used when explicitly requested
11275      if test "x$enable_dependency_tracking" = xyes; then
11276	continue
11277      else
11278	break
11279      fi
11280      ;;
11281    none) break ;;
11282    esac
11283    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11284    # mode.  It turns out that the SunPro C++ compiler does not properly
11285    # handle `-M -o', and we need to detect this.
11286    if depmode=$depmode \
11287       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11288       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11289       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11290         >/dev/null 2>conftest.err &&
11291       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11292       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11293       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11294       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11295      # icc doesn't choke on unknown options, it will just issue warnings
11296      # or remarks (even with -Werror).  So we grep stderr for any message
11297      # that says an option was ignored or not supported.
11298      # When given -MP, icc 7.0 and 7.1 complain thusly:
11299      #   icc: Command line warning: ignoring option '-M'; no argument required
11300      # The diagnosis changed in icc 8.0:
11301      #   icc: Command line remark: option '-MP' not supported
11302      if (grep 'ignoring option' conftest.err ||
11303          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11304        am_cv_CC_dependencies_compiler_type=$depmode
11305        break
11306      fi
11307    fi
11308  done
11309
11310  cd ..
11311  rm -rf conftest.dir
11312else
11313  am_cv_CC_dependencies_compiler_type=none
11314fi
11315
11316fi
11317{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11318echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
11319CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11320
11321 if
11322  test "x$enable_dependency_tracking" != xno \
11323  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11324  am__fastdepCC_TRUE=
11325  am__fastdepCC_FALSE='#'
11326else
11327  am__fastdepCC_TRUE='#'
11328  am__fastdepCC_FALSE=
11329fi
11330
11331
11332
11333
11334
11335ac_ext=c
11336ac_cpp='$CPP $CPPFLAGS'
11337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11339ac_compiler_gnu=$ac_cv_c_compiler_gnu
11340if test -n "$ac_tool_prefix"; then
11341  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11342set dummy ${ac_tool_prefix}gcc; ac_word=$2
11343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11345if test "${ac_cv_prog_CC+set}" = set; then
11346  echo $ECHO_N "(cached) $ECHO_C" >&6
11347else
11348  if test -n "$CC"; then
11349  ac_cv_prog_CC="$CC" # Let the user override the test.
11350else
11351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $PATH
11353do
11354  IFS=$as_save_IFS
11355  test -z "$as_dir" && as_dir=.
11356  for ac_exec_ext in '' $ac_executable_extensions; do
11357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11359    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360    break 2
11361  fi
11362done
11363done
11364IFS=$as_save_IFS
11365
11366fi
11367fi
11368CC=$ac_cv_prog_CC
11369if test -n "$CC"; then
11370  { echo "$as_me:$LINENO: result: $CC" >&5
11371echo "${ECHO_T}$CC" >&6; }
11372else
11373  { echo "$as_me:$LINENO: result: no" >&5
11374echo "${ECHO_T}no" >&6; }
11375fi
11376
11377
11378fi
11379if test -z "$ac_cv_prog_CC"; then
11380  ac_ct_CC=$CC
11381  # Extract the first word of "gcc", so it can be a program name with args.
11382set dummy gcc; ac_word=$2
11383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11385if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11386  echo $ECHO_N "(cached) $ECHO_C" >&6
11387else
11388  if test -n "$ac_ct_CC"; then
11389  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11390else
11391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394  IFS=$as_save_IFS
11395  test -z "$as_dir" && as_dir=.
11396  for ac_exec_ext in '' $ac_executable_extensions; do
11397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398    ac_cv_prog_ac_ct_CC="gcc"
11399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400    break 2
11401  fi
11402done
11403done
11404IFS=$as_save_IFS
11405
11406fi
11407fi
11408ac_ct_CC=$ac_cv_prog_ac_ct_CC
11409if test -n "$ac_ct_CC"; then
11410  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11411echo "${ECHO_T}$ac_ct_CC" >&6; }
11412else
11413  { echo "$as_me:$LINENO: result: no" >&5
11414echo "${ECHO_T}no" >&6; }
11415fi
11416
11417  if test "x$ac_ct_CC" = x; then
11418    CC=""
11419  else
11420    case $cross_compiling:$ac_tool_warned in
11421yes:)
11422{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11423whose name does not start with the host triplet.  If you think this
11424configuration is useful to you, please write to autoconf@gnu.org." >&5
11425echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11426whose name does not start with the host triplet.  If you think this
11427configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11428ac_tool_warned=yes ;;
11429esac
11430    CC=$ac_ct_CC
11431  fi
11432else
11433  CC="$ac_cv_prog_CC"
11434fi
11435
11436if test -z "$CC"; then
11437          if test -n "$ac_tool_prefix"; then
11438    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11439set dummy ${ac_tool_prefix}cc; ac_word=$2
11440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11442if test "${ac_cv_prog_CC+set}" = set; then
11443  echo $ECHO_N "(cached) $ECHO_C" >&6
11444else
11445  if test -n "$CC"; then
11446  ac_cv_prog_CC="$CC" # Let the user override the test.
11447else
11448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449for as_dir in $PATH
11450do
11451  IFS=$as_save_IFS
11452  test -z "$as_dir" && as_dir=.
11453  for ac_exec_ext in '' $ac_executable_extensions; do
11454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11455    ac_cv_prog_CC="${ac_tool_prefix}cc"
11456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11457    break 2
11458  fi
11459done
11460done
11461IFS=$as_save_IFS
11462
11463fi
11464fi
11465CC=$ac_cv_prog_CC
11466if test -n "$CC"; then
11467  { echo "$as_me:$LINENO: result: $CC" >&5
11468echo "${ECHO_T}$CC" >&6; }
11469else
11470  { echo "$as_me:$LINENO: result: no" >&5
11471echo "${ECHO_T}no" >&6; }
11472fi
11473
11474
11475  fi
11476fi
11477if test -z "$CC"; then
11478  # Extract the first word of "cc", so it can be a program name with args.
11479set dummy cc; ac_word=$2
11480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11482if test "${ac_cv_prog_CC+set}" = set; then
11483  echo $ECHO_N "(cached) $ECHO_C" >&6
11484else
11485  if test -n "$CC"; then
11486  ac_cv_prog_CC="$CC" # Let the user override the test.
11487else
11488  ac_prog_rejected=no
11489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490for as_dir in $PATH
11491do
11492  IFS=$as_save_IFS
11493  test -z "$as_dir" && as_dir=.
11494  for ac_exec_ext in '' $ac_executable_extensions; do
11495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11497       ac_prog_rejected=yes
11498       continue
11499     fi
11500    ac_cv_prog_CC="cc"
11501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11502    break 2
11503  fi
11504done
11505done
11506IFS=$as_save_IFS
11507
11508if test $ac_prog_rejected = yes; then
11509  # We found a bogon in the path, so make sure we never use it.
11510  set dummy $ac_cv_prog_CC
11511  shift
11512  if test $# != 0; then
11513    # We chose a different compiler from the bogus one.
11514    # However, it has the same basename, so the bogon will be chosen
11515    # first if we set CC to just the basename; use the full file name.
11516    shift
11517    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11518  fi
11519fi
11520fi
11521fi
11522CC=$ac_cv_prog_CC
11523if test -n "$CC"; then
11524  { echo "$as_me:$LINENO: result: $CC" >&5
11525echo "${ECHO_T}$CC" >&6; }
11526else
11527  { echo "$as_me:$LINENO: result: no" >&5
11528echo "${ECHO_T}no" >&6; }
11529fi
11530
11531
11532fi
11533if test -z "$CC"; then
11534  if test -n "$ac_tool_prefix"; then
11535  for ac_prog in cl.exe
11536  do
11537    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11538set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11539{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11541if test "${ac_cv_prog_CC+set}" = set; then
11542  echo $ECHO_N "(cached) $ECHO_C" >&6
11543else
11544  if test -n "$CC"; then
11545  ac_cv_prog_CC="$CC" # Let the user override the test.
11546else
11547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548for as_dir in $PATH
11549do
11550  IFS=$as_save_IFS
11551  test -z "$as_dir" && as_dir=.
11552  for ac_exec_ext in '' $ac_executable_extensions; do
11553  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11554    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11556    break 2
11557  fi
11558done
11559done
11560IFS=$as_save_IFS
11561
11562fi
11563fi
11564CC=$ac_cv_prog_CC
11565if test -n "$CC"; then
11566  { echo "$as_me:$LINENO: result: $CC" >&5
11567echo "${ECHO_T}$CC" >&6; }
11568else
11569  { echo "$as_me:$LINENO: result: no" >&5
11570echo "${ECHO_T}no" >&6; }
11571fi
11572
11573
11574    test -n "$CC" && break
11575  done
11576fi
11577if test -z "$CC"; then
11578  ac_ct_CC=$CC
11579  for ac_prog in cl.exe
11580do
11581  # Extract the first word of "$ac_prog", so it can be a program name with args.
11582set dummy $ac_prog; ac_word=$2
11583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11585if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11586  echo $ECHO_N "(cached) $ECHO_C" >&6
11587else
11588  if test -n "$ac_ct_CC"; then
11589  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11590else
11591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592for as_dir in $PATH
11593do
11594  IFS=$as_save_IFS
11595  test -z "$as_dir" && as_dir=.
11596  for ac_exec_ext in '' $ac_executable_extensions; do
11597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11598    ac_cv_prog_ac_ct_CC="$ac_prog"
11599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11600    break 2
11601  fi
11602done
11603done
11604IFS=$as_save_IFS
11605
11606fi
11607fi
11608ac_ct_CC=$ac_cv_prog_ac_ct_CC
11609if test -n "$ac_ct_CC"; then
11610  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11611echo "${ECHO_T}$ac_ct_CC" >&6; }
11612else
11613  { echo "$as_me:$LINENO: result: no" >&5
11614echo "${ECHO_T}no" >&6; }
11615fi
11616
11617
11618  test -n "$ac_ct_CC" && break
11619done
11620
11621  if test "x$ac_ct_CC" = x; then
11622    CC=""
11623  else
11624    case $cross_compiling:$ac_tool_warned in
11625yes:)
11626{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11627whose name does not start with the host triplet.  If you think this
11628configuration is useful to you, please write to autoconf@gnu.org." >&5
11629echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11630whose name does not start with the host triplet.  If you think this
11631configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11632ac_tool_warned=yes ;;
11633esac
11634    CC=$ac_ct_CC
11635  fi
11636fi
11637
11638fi
11639
11640
11641test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11642See \`config.log' for more details." >&5
11643echo "$as_me: error: no acceptable C compiler found in \$PATH
11644See \`config.log' for more details." >&2;}
11645   { (exit 1); exit 1; }; }
11646
11647# Provide some information about the compiler.
11648echo "$as_me:$LINENO: checking for C compiler version" >&5
11649ac_compiler=`set X $ac_compile; echo $2`
11650{ (ac_try="$ac_compiler --version >&5"
11651case "(($ac_try" in
11652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653  *) ac_try_echo=$ac_try;;
11654esac
11655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656  (eval "$ac_compiler --version >&5") 2>&5
11657  ac_status=$?
11658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659  (exit $ac_status); }
11660{ (ac_try="$ac_compiler -v >&5"
11661case "(($ac_try" in
11662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663  *) ac_try_echo=$ac_try;;
11664esac
11665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666  (eval "$ac_compiler -v >&5") 2>&5
11667  ac_status=$?
11668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669  (exit $ac_status); }
11670{ (ac_try="$ac_compiler -V >&5"
11671case "(($ac_try" in
11672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673  *) ac_try_echo=$ac_try;;
11674esac
11675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676  (eval "$ac_compiler -V >&5") 2>&5
11677  ac_status=$?
11678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679  (exit $ac_status); }
11680
11681{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11682echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
11683if test "${ac_cv_c_compiler_gnu+set}" = set; then
11684  echo $ECHO_N "(cached) $ECHO_C" >&6
11685else
11686  cat >conftest.$ac_ext <<_ACEOF
11687/* confdefs.h.  */
11688_ACEOF
11689cat confdefs.h >>conftest.$ac_ext
11690cat >>conftest.$ac_ext <<_ACEOF
11691/* end confdefs.h.  */
11692
11693int
11694main ()
11695{
11696#ifndef __GNUC__
11697       choke me
11698#endif
11699
11700  ;
11701  return 0;
11702}
11703_ACEOF
11704rm -f conftest.$ac_objext
11705if { (ac_try="$ac_compile"
11706case "(($ac_try" in
11707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708  *) ac_try_echo=$ac_try;;
11709esac
11710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711  (eval "$ac_compile") 2>conftest.er1
11712  ac_status=$?
11713  grep -v '^ *+' conftest.er1 >conftest.err
11714  rm -f conftest.er1
11715  cat conftest.err >&5
11716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717  (exit $ac_status); } && {
11718	 test -z "$ac_c_werror_flag" ||
11719	 test ! -s conftest.err
11720       } && test -s conftest.$ac_objext; then
11721  ac_compiler_gnu=yes
11722else
11723  echo "$as_me: failed program was:" >&5
11724sed 's/^/| /' conftest.$ac_ext >&5
11725
11726	ac_compiler_gnu=no
11727fi
11728
11729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11730ac_cv_c_compiler_gnu=$ac_compiler_gnu
11731
11732fi
11733{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11734echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
11735GCC=`test $ac_compiler_gnu = yes && echo yes`
11736ac_test_CFLAGS=${CFLAGS+set}
11737ac_save_CFLAGS=$CFLAGS
11738{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11739echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
11740if test "${ac_cv_prog_cc_g+set}" = set; then
11741  echo $ECHO_N "(cached) $ECHO_C" >&6
11742else
11743  ac_save_c_werror_flag=$ac_c_werror_flag
11744   ac_c_werror_flag=yes
11745   ac_cv_prog_cc_g=no
11746   CFLAGS="-g"
11747   cat >conftest.$ac_ext <<_ACEOF
11748/* confdefs.h.  */
11749_ACEOF
11750cat confdefs.h >>conftest.$ac_ext
11751cat >>conftest.$ac_ext <<_ACEOF
11752/* end confdefs.h.  */
11753
11754int
11755main ()
11756{
11757
11758  ;
11759  return 0;
11760}
11761_ACEOF
11762rm -f conftest.$ac_objext
11763if { (ac_try="$ac_compile"
11764case "(($ac_try" in
11765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766  *) ac_try_echo=$ac_try;;
11767esac
11768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769  (eval "$ac_compile") 2>conftest.er1
11770  ac_status=$?
11771  grep -v '^ *+' conftest.er1 >conftest.err
11772  rm -f conftest.er1
11773  cat conftest.err >&5
11774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775  (exit $ac_status); } && {
11776	 test -z "$ac_c_werror_flag" ||
11777	 test ! -s conftest.err
11778       } && test -s conftest.$ac_objext; then
11779  ac_cv_prog_cc_g=yes
11780else
11781  echo "$as_me: failed program was:" >&5
11782sed 's/^/| /' conftest.$ac_ext >&5
11783
11784	CFLAGS=""
11785      cat >conftest.$ac_ext <<_ACEOF
11786/* confdefs.h.  */
11787_ACEOF
11788cat confdefs.h >>conftest.$ac_ext
11789cat >>conftest.$ac_ext <<_ACEOF
11790/* end confdefs.h.  */
11791
11792int
11793main ()
11794{
11795
11796  ;
11797  return 0;
11798}
11799_ACEOF
11800rm -f conftest.$ac_objext
11801if { (ac_try="$ac_compile"
11802case "(($ac_try" in
11803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804  *) ac_try_echo=$ac_try;;
11805esac
11806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807  (eval "$ac_compile") 2>conftest.er1
11808  ac_status=$?
11809  grep -v '^ *+' conftest.er1 >conftest.err
11810  rm -f conftest.er1
11811  cat conftest.err >&5
11812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813  (exit $ac_status); } && {
11814	 test -z "$ac_c_werror_flag" ||
11815	 test ! -s conftest.err
11816       } && test -s conftest.$ac_objext; then
11817  :
11818else
11819  echo "$as_me: failed program was:" >&5
11820sed 's/^/| /' conftest.$ac_ext >&5
11821
11822	ac_c_werror_flag=$ac_save_c_werror_flag
11823	 CFLAGS="-g"
11824	 cat >conftest.$ac_ext <<_ACEOF
11825/* confdefs.h.  */
11826_ACEOF
11827cat confdefs.h >>conftest.$ac_ext
11828cat >>conftest.$ac_ext <<_ACEOF
11829/* end confdefs.h.  */
11830
11831int
11832main ()
11833{
11834
11835  ;
11836  return 0;
11837}
11838_ACEOF
11839rm -f conftest.$ac_objext
11840if { (ac_try="$ac_compile"
11841case "(($ac_try" in
11842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843  *) ac_try_echo=$ac_try;;
11844esac
11845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846  (eval "$ac_compile") 2>conftest.er1
11847  ac_status=$?
11848  grep -v '^ *+' conftest.er1 >conftest.err
11849  rm -f conftest.er1
11850  cat conftest.err >&5
11851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852  (exit $ac_status); } && {
11853	 test -z "$ac_c_werror_flag" ||
11854	 test ! -s conftest.err
11855       } && test -s conftest.$ac_objext; then
11856  ac_cv_prog_cc_g=yes
11857else
11858  echo "$as_me: failed program was:" >&5
11859sed 's/^/| /' conftest.$ac_ext >&5
11860
11861
11862fi
11863
11864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865fi
11866
11867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11868fi
11869
11870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871   ac_c_werror_flag=$ac_save_c_werror_flag
11872fi
11873{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11874echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
11875if test "$ac_test_CFLAGS" = set; then
11876  CFLAGS=$ac_save_CFLAGS
11877elif test $ac_cv_prog_cc_g = yes; then
11878  if test "$GCC" = yes; then
11879    CFLAGS="-g -O2"
11880  else
11881    CFLAGS="-g"
11882  fi
11883else
11884  if test "$GCC" = yes; then
11885    CFLAGS="-O2"
11886  else
11887    CFLAGS=
11888  fi
11889fi
11890{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11891echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
11892if test "${ac_cv_prog_cc_c89+set}" = set; then
11893  echo $ECHO_N "(cached) $ECHO_C" >&6
11894else
11895  ac_cv_prog_cc_c89=no
11896ac_save_CC=$CC
11897cat >conftest.$ac_ext <<_ACEOF
11898/* confdefs.h.  */
11899_ACEOF
11900cat confdefs.h >>conftest.$ac_ext
11901cat >>conftest.$ac_ext <<_ACEOF
11902/* end confdefs.h.  */
11903#include <stdarg.h>
11904#include <stdio.h>
11905#include <sys/types.h>
11906#include <sys/stat.h>
11907/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11908struct buf { int x; };
11909FILE * (*rcsopen) (struct buf *, struct stat *, int);
11910static char *e (p, i)
11911     char **p;
11912     int i;
11913{
11914  return p[i];
11915}
11916static char *f (char * (*g) (char **, int), char **p, ...)
11917{
11918  char *s;
11919  va_list v;
11920  va_start (v,p);
11921  s = g (p, va_arg (v,int));
11922  va_end (v);
11923  return s;
11924}
11925
11926/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11927   function prototypes and stuff, but not '\xHH' hex character constants.
11928   These don't provoke an error unfortunately, instead are silently treated
11929   as 'x'.  The following induces an error, until -std is added to get
11930   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11931   array size at least.  It's necessary to write '\x00'==0 to get something
11932   that's true only with -std.  */
11933int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11934
11935/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11936   inside strings and character constants.  */
11937#define FOO(x) 'x'
11938int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11939
11940int test (int i, double x);
11941struct s1 {int (*f) (int a);};
11942struct s2 {int (*f) (double a);};
11943int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11944int argc;
11945char **argv;
11946int
11947main ()
11948{
11949return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11950  ;
11951  return 0;
11952}
11953_ACEOF
11954for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11955	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11956do
11957  CC="$ac_save_CC $ac_arg"
11958  rm -f conftest.$ac_objext
11959if { (ac_try="$ac_compile"
11960case "(($ac_try" in
11961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962  *) ac_try_echo=$ac_try;;
11963esac
11964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965  (eval "$ac_compile") 2>conftest.er1
11966  ac_status=$?
11967  grep -v '^ *+' conftest.er1 >conftest.err
11968  rm -f conftest.er1
11969  cat conftest.err >&5
11970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971  (exit $ac_status); } && {
11972	 test -z "$ac_c_werror_flag" ||
11973	 test ! -s conftest.err
11974       } && test -s conftest.$ac_objext; then
11975  ac_cv_prog_cc_c89=$ac_arg
11976else
11977  echo "$as_me: failed program was:" >&5
11978sed 's/^/| /' conftest.$ac_ext >&5
11979
11980
11981fi
11982
11983rm -f core conftest.err conftest.$ac_objext
11984  test "x$ac_cv_prog_cc_c89" != "xno" && break
11985done
11986rm -f conftest.$ac_ext
11987CC=$ac_save_CC
11988
11989fi
11990# AC_CACHE_VAL
11991case "x$ac_cv_prog_cc_c89" in
11992  x)
11993    { echo "$as_me:$LINENO: result: none needed" >&5
11994echo "${ECHO_T}none needed" >&6; } ;;
11995  xno)
11996    { echo "$as_me:$LINENO: result: unsupported" >&5
11997echo "${ECHO_T}unsupported" >&6; } ;;
11998  *)
11999    CC="$CC $ac_cv_prog_cc_c89"
12000    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12001echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
12002esac
12003
12004
12005ac_ext=c
12006ac_cpp='$CPP $CPPFLAGS'
12007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12009ac_compiler_gnu=$ac_cv_c_compiler_gnu
12010
12011# Find a good install program.  We prefer a C program (faster),
12012# so one script is as good as another.  But avoid the broken or
12013# incompatible versions:
12014# SysV /etc/install, /usr/sbin/install
12015# SunOS /usr/etc/install
12016# IRIX /sbin/install
12017# AIX /bin/install
12018# AmigaOS /C/install, which installs bootblocks on floppy discs
12019# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12020# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12021# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12022# OS/2's system install, which has a completely different semantic
12023# ./install, which can be erroneously created by make from ./install.sh.
12024{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12025echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
12026if test -z "$INSTALL"; then
12027if test "${ac_cv_path_install+set}" = set; then
12028  echo $ECHO_N "(cached) $ECHO_C" >&6
12029else
12030  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031for as_dir in $PATH
12032do
12033  IFS=$as_save_IFS
12034  test -z "$as_dir" && as_dir=.
12035  # Account for people who put trailing slashes in PATH elements.
12036case $as_dir/ in
12037  ./ | .// | /cC/* | \
12038  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12039  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12040  /usr/ucb/* ) ;;
12041  *)
12042    # OSF1 and SCO ODT 3.0 have their own names for install.
12043    # Don't use installbsd from OSF since it installs stuff as root
12044    # by default.
12045    for ac_prog in ginstall scoinst install; do
12046      for ac_exec_ext in '' $ac_executable_extensions; do
12047	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12048	  if test $ac_prog = install &&
12049	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12050	    # AIX install.  It has an incompatible calling convention.
12051	    :
12052	  elif test $ac_prog = install &&
12053	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12054	    # program-specific install script used by HP pwplus--don't use.
12055	    :
12056	  else
12057	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12058	    break 3
12059	  fi
12060	fi
12061      done
12062    done
12063    ;;
12064esac
12065done
12066IFS=$as_save_IFS
12067
12068
12069fi
12070  if test "${ac_cv_path_install+set}" = set; then
12071    INSTALL=$ac_cv_path_install
12072  else
12073    # As a last resort, use the slow shell script.  Don't cache a
12074    # value for INSTALL within a source directory, because that will
12075    # break other packages using the cache if that directory is
12076    # removed, or if the value is a relative name.
12077    INSTALL=$ac_install_sh
12078  fi
12079fi
12080{ echo "$as_me:$LINENO: result: $INSTALL" >&5
12081echo "${ECHO_T}$INSTALL" >&6; }
12082
12083# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12084# It thinks the first close brace ends the variable substitution.
12085test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12086
12087test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12088
12089test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12090
12091{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12092echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
12093set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12094if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12095  echo $ECHO_N "(cached) $ECHO_C" >&6
12096else
12097  cat >conftest.make <<\_ACEOF
12098SHELL = /bin/sh
12099all:
12100	@echo '@@@%%%=$(MAKE)=@@@%%%'
12101_ACEOF
12102# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12103case `${MAKE-make} -f conftest.make 2>/dev/null` in
12104  *@@@%%%=?*=@@@%%%*)
12105    eval ac_cv_prog_make_${ac_make}_set=yes;;
12106  *)
12107    eval ac_cv_prog_make_${ac_make}_set=no;;
12108esac
12109rm -f conftest.make
12110fi
12111if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12112  { echo "$as_me:$LINENO: result: yes" >&5
12113echo "${ECHO_T}yes" >&6; }
12114  SET_MAKE=
12115else
12116  { echo "$as_me:$LINENO: result: no" >&5
12117echo "${ECHO_T}no" >&6; }
12118  SET_MAKE="MAKE=${MAKE-make}"
12119fi
12120
12121if test -z "$host_alias"; then
12122    hostaliaswindres=
12123else
12124    hostaliaswindres="$host_alias-windres"
12125fi
12126for ac_prog in windres $hostaliaswindres $host_os-windres
12127do
12128  # Extract the first word of "$ac_prog", so it can be a program name with args.
12129set dummy $ac_prog; ac_word=$2
12130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12132if test "${ac_cv_prog_WINDRES+set}" = set; then
12133  echo $ECHO_N "(cached) $ECHO_C" >&6
12134else
12135  if test -n "$WINDRES"; then
12136  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12137else
12138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12139for as_dir in $PATH
12140do
12141  IFS=$as_save_IFS
12142  test -z "$as_dir" && as_dir=.
12143  for ac_exec_ext in '' $ac_executable_extensions; do
12144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12145    ac_cv_prog_WINDRES="$ac_prog"
12146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12147    break 2
12148  fi
12149done
12150done
12151IFS=$as_save_IFS
12152
12153fi
12154fi
12155WINDRES=$ac_cv_prog_WINDRES
12156if test -n "$WINDRES"; then
12157  { echo "$as_me:$LINENO: result: $WINDRES" >&5
12158echo "${ECHO_T}$WINDRES" >&6; }
12159else
12160  { echo "$as_me:$LINENO: result: no" >&5
12161echo "${ECHO_T}no" >&6; }
12162fi
12163
12164
12165  test -n "$WINDRES" && break
12166done
12167
12168
12169case "$host" in
12170    *-*-cygwin* | *-*-mingw32*)
12171	;;
12172    *)
12173	# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12174# for constant arguments.  Useless!
12175{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
12176echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
12177if test "${ac_cv_working_alloca_h+set}" = set; then
12178  echo $ECHO_N "(cached) $ECHO_C" >&6
12179else
12180  cat >conftest.$ac_ext <<_ACEOF
12181/* confdefs.h.  */
12182_ACEOF
12183cat confdefs.h >>conftest.$ac_ext
12184cat >>conftest.$ac_ext <<_ACEOF
12185/* end confdefs.h.  */
12186#include <alloca.h>
12187int
12188main ()
12189{
12190char *p = (char *) alloca (2 * sizeof (int));
12191			  if (p) return 0;
12192  ;
12193  return 0;
12194}
12195_ACEOF
12196rm -f conftest.$ac_objext conftest$ac_exeext
12197if { (ac_try="$ac_link"
12198case "(($ac_try" in
12199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200  *) ac_try_echo=$ac_try;;
12201esac
12202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203  (eval "$ac_link") 2>conftest.er1
12204  ac_status=$?
12205  grep -v '^ *+' conftest.er1 >conftest.err
12206  rm -f conftest.er1
12207  cat conftest.err >&5
12208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209  (exit $ac_status); } && {
12210	 test -z "$ac_c_werror_flag" ||
12211	 test ! -s conftest.err
12212       } && test -s conftest$ac_exeext &&
12213       $as_test_x conftest$ac_exeext; then
12214  ac_cv_working_alloca_h=yes
12215else
12216  echo "$as_me: failed program was:" >&5
12217sed 's/^/| /' conftest.$ac_ext >&5
12218
12219	ac_cv_working_alloca_h=no
12220fi
12221
12222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12223      conftest$ac_exeext conftest.$ac_ext
12224fi
12225{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12226echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
12227if test $ac_cv_working_alloca_h = yes; then
12228
12229cat >>confdefs.h <<\_ACEOF
12230#define HAVE_ALLOCA_H 1
12231_ACEOF
12232
12233fi
12234
12235{ echo "$as_me:$LINENO: checking for alloca" >&5
12236echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
12237if test "${ac_cv_func_alloca_works+set}" = set; then
12238  echo $ECHO_N "(cached) $ECHO_C" >&6
12239else
12240  cat >conftest.$ac_ext <<_ACEOF
12241/* confdefs.h.  */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
12245/* end confdefs.h.  */
12246#ifdef __GNUC__
12247# define alloca __builtin_alloca
12248#else
12249# ifdef _MSC_VER
12250#  include <malloc.h>
12251#  define alloca _alloca
12252# else
12253#  ifdef HAVE_ALLOCA_H
12254#   include <alloca.h>
12255#  else
12256#   ifdef _AIX
12257 #pragma alloca
12258#   else
12259#    ifndef alloca /* predefined by HP cc +Olibcalls */
12260char *alloca ();
12261#    endif
12262#   endif
12263#  endif
12264# endif
12265#endif
12266
12267int
12268main ()
12269{
12270char *p = (char *) alloca (1);
12271				    if (p) return 0;
12272  ;
12273  return 0;
12274}
12275_ACEOF
12276rm -f conftest.$ac_objext conftest$ac_exeext
12277if { (ac_try="$ac_link"
12278case "(($ac_try" in
12279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280  *) ac_try_echo=$ac_try;;
12281esac
12282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283  (eval "$ac_link") 2>conftest.er1
12284  ac_status=$?
12285  grep -v '^ *+' conftest.er1 >conftest.err
12286  rm -f conftest.er1
12287  cat conftest.err >&5
12288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289  (exit $ac_status); } && {
12290	 test -z "$ac_c_werror_flag" ||
12291	 test ! -s conftest.err
12292       } && test -s conftest$ac_exeext &&
12293       $as_test_x conftest$ac_exeext; then
12294  ac_cv_func_alloca_works=yes
12295else
12296  echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299	ac_cv_func_alloca_works=no
12300fi
12301
12302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303      conftest$ac_exeext conftest.$ac_ext
12304fi
12305{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12306echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
12307
12308if test $ac_cv_func_alloca_works = yes; then
12309
12310cat >>confdefs.h <<\_ACEOF
12311#define HAVE_ALLOCA 1
12312_ACEOF
12313
12314else
12315  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12316# that cause trouble.  Some versions do not even contain alloca or
12317# contain a buggy version.  If you still want to use their alloca,
12318# use ar to extract alloca.o from them instead of compiling alloca.c.
12319
12320ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12321
12322cat >>confdefs.h <<\_ACEOF
12323#define C_ALLOCA 1
12324_ACEOF
12325
12326
12327{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12328echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
12329if test "${ac_cv_os_cray+set}" = set; then
12330  echo $ECHO_N "(cached) $ECHO_C" >&6
12331else
12332  cat >conftest.$ac_ext <<_ACEOF
12333/* confdefs.h.  */
12334_ACEOF
12335cat confdefs.h >>conftest.$ac_ext
12336cat >>conftest.$ac_ext <<_ACEOF
12337/* end confdefs.h.  */
12338#if defined CRAY && ! defined CRAY2
12339webecray
12340#else
12341wenotbecray
12342#endif
12343
12344_ACEOF
12345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12346  $EGREP "webecray" >/dev/null 2>&1; then
12347  ac_cv_os_cray=yes
12348else
12349  ac_cv_os_cray=no
12350fi
12351rm -f -r conftest*
12352
12353fi
12354{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12355echo "${ECHO_T}$ac_cv_os_cray" >&6; }
12356if test $ac_cv_os_cray = yes; then
12357  for ac_func in _getb67 GETB67 getb67; do
12358    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12359{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12361if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12362  echo $ECHO_N "(cached) $ECHO_C" >&6
12363else
12364  cat >conftest.$ac_ext <<_ACEOF
12365/* confdefs.h.  */
12366_ACEOF
12367cat confdefs.h >>conftest.$ac_ext
12368cat >>conftest.$ac_ext <<_ACEOF
12369/* end confdefs.h.  */
12370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12371   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12372#define $ac_func innocuous_$ac_func
12373
12374/* System header to define __stub macros and hopefully few prototypes,
12375    which can conflict with char $ac_func (); below.
12376    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12377    <limits.h> exists even on freestanding compilers.  */
12378
12379#ifdef __STDC__
12380# include <limits.h>
12381#else
12382# include <assert.h>
12383#endif
12384
12385#undef $ac_func
12386
12387/* Override any GCC internal prototype to avoid an error.
12388   Use char because int might match the return type of a GCC
12389   builtin and then its argument prototype would still apply.  */
12390#ifdef __cplusplus
12391extern "C"
12392#endif
12393char $ac_func ();
12394/* The GNU C library defines this for functions which it implements
12395    to always fail with ENOSYS.  Some functions are actually named
12396    something starting with __ and the normal name is an alias.  */
12397#if defined __stub_$ac_func || defined __stub___$ac_func
12398choke me
12399#endif
12400
12401int
12402main ()
12403{
12404return $ac_func ();
12405  ;
12406  return 0;
12407}
12408_ACEOF
12409rm -f conftest.$ac_objext conftest$ac_exeext
12410if { (ac_try="$ac_link"
12411case "(($ac_try" in
12412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413  *) ac_try_echo=$ac_try;;
12414esac
12415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416  (eval "$ac_link") 2>conftest.er1
12417  ac_status=$?
12418  grep -v '^ *+' conftest.er1 >conftest.err
12419  rm -f conftest.er1
12420  cat conftest.err >&5
12421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422  (exit $ac_status); } && {
12423	 test -z "$ac_c_werror_flag" ||
12424	 test ! -s conftest.err
12425       } && test -s conftest$ac_exeext &&
12426       $as_test_x conftest$ac_exeext; then
12427  eval "$as_ac_var=yes"
12428else
12429  echo "$as_me: failed program was:" >&5
12430sed 's/^/| /' conftest.$ac_ext >&5
12431
12432	eval "$as_ac_var=no"
12433fi
12434
12435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12436      conftest$ac_exeext conftest.$ac_ext
12437fi
12438ac_res=`eval echo '${'$as_ac_var'}'`
12439	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12440echo "${ECHO_T}$ac_res" >&6; }
12441if test `eval echo '${'$as_ac_var'}'` = yes; then
12442
12443cat >>confdefs.h <<_ACEOF
12444#define CRAY_STACKSEG_END $ac_func
12445_ACEOF
12446
12447    break
12448fi
12449
12450  done
12451fi
12452
12453{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12454echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
12455if test "${ac_cv_c_stack_direction+set}" = set; then
12456  echo $ECHO_N "(cached) $ECHO_C" >&6
12457else
12458  if test "$cross_compiling" = yes; then
12459  ac_cv_c_stack_direction=0
12460else
12461  cat >conftest.$ac_ext <<_ACEOF
12462/* confdefs.h.  */
12463_ACEOF
12464cat confdefs.h >>conftest.$ac_ext
12465cat >>conftest.$ac_ext <<_ACEOF
12466/* end confdefs.h.  */
12467$ac_includes_default
12468int
12469find_stack_direction ()
12470{
12471  static char *addr = 0;
12472  auto char dummy;
12473  if (addr == 0)
12474    {
12475      addr = &dummy;
12476      return find_stack_direction ();
12477    }
12478  else
12479    return (&dummy > addr) ? 1 : -1;
12480}
12481
12482int
12483main ()
12484{
12485  return find_stack_direction () < 0;
12486}
12487_ACEOF
12488rm -f conftest$ac_exeext
12489if { (ac_try="$ac_link"
12490case "(($ac_try" in
12491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492  *) ac_try_echo=$ac_try;;
12493esac
12494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495  (eval "$ac_link") 2>&5
12496  ac_status=$?
12497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12499  { (case "(($ac_try" in
12500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501  *) ac_try_echo=$ac_try;;
12502esac
12503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504  (eval "$ac_try") 2>&5
12505  ac_status=$?
12506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507  (exit $ac_status); }; }; then
12508  ac_cv_c_stack_direction=1
12509else
12510  echo "$as_me: program exited with status $ac_status" >&5
12511echo "$as_me: failed program was:" >&5
12512sed 's/^/| /' conftest.$ac_ext >&5
12513
12514( exit $ac_status )
12515ac_cv_c_stack_direction=-1
12516fi
12517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12518fi
12519
12520
12521fi
12522{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12523echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
12524
12525cat >>confdefs.h <<_ACEOF
12526#define STACK_DIRECTION $ac_cv_c_stack_direction
12527_ACEOF
12528
12529
12530fi
12531
12532	;;
12533esac
12534
12535
12536
12537case "$host" in
12538    *-*-beos*)
12539        ac_default_prefix=/boot/develop/tools/gnupro
12540        ;;
12541    *-*-cygwin* | *-*-mingw32*)
12542        if test "$build" != "$host"; then # cross-compiling
12543            # Default cross-compile location
12544            ac_default_prefix=/usr/local/cross-tools/i386-mingw32
12545        else
12546            # Look for the location of the tools and install there
12547            if test "$BUILD_PREFIX" != ""; then
12548                ac_default_prefix=$BUILD_PREFIX
12549            fi
12550        fi
12551        if test x$WINDRES != x; then
12552            use_version_rc=true
12553        fi
12554        ;;
12555esac
12556 if test x$use_version_rc = xtrue; then
12557  USE_VERSION_RC_TRUE=
12558  USE_VERSION_RC_FALSE='#'
12559else
12560  USE_VERSION_RC_TRUE='#'
12561  USE_VERSION_RC_FALSE=
12562fi
12563
12564
12565
12566# Check whether --with-freetype-prefix was given.
12567if test "${with_freetype_prefix+set}" = set; then
12568  withval=$with_freetype_prefix; freetype_prefix="$withval"
12569else
12570  freetype_prefix=""
12571fi
12572
12573
12574# Check whether --with-freetype-exec-prefix was given.
12575if test "${with_freetype_exec_prefix+set}" = set; then
12576  withval=$with_freetype_exec_prefix; freetype_exec_prefix="$withval"
12577else
12578  freetype_exec_prefix=""
12579fi
12580
12581
12582if test x$freetype_exec_prefix != x ; then
12583     freetype_args="$freetype_args --exec-prefix=$freetype_exec_prefix"
12584     if test x${FREETYPE_CONFIG+set} != xset ; then
12585        FREETYPE_CONFIG=$freetype_exec_prefix/bin/freetype-config
12586     fi
12587fi
12588if test x$freetype_prefix != x ; then
12589     freetype_args="$freetype_args --prefix=$freetype_prefix"
12590     if test x${FREETYPE_CONFIG+set} != xset ; then
12591        FREETYPE_CONFIG=$freetype_prefix/bin/freetype-config
12592     fi
12593fi
12594# Extract the first word of "freetype-config", so it can be a program name with args.
12595set dummy freetype-config; ac_word=$2
12596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12598if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
12599  echo $ECHO_N "(cached) $ECHO_C" >&6
12600else
12601  case $FREETYPE_CONFIG in
12602  [\\/]* | ?:[\\/]*)
12603  ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
12604  ;;
12605  *)
12606  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607for as_dir in $PATH
12608do
12609  IFS=$as_save_IFS
12610  test -z "$as_dir" && as_dir=.
12611  for ac_exec_ext in '' $ac_executable_extensions; do
12612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12613    ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12614    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12615    break 2
12616  fi
12617done
12618done
12619IFS=$as_save_IFS
12620
12621  test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no"
12622  ;;
12623esac
12624fi
12625FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
12626if test -n "$FREETYPE_CONFIG"; then
12627  { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
12628echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
12629else
12630  { echo "$as_me:$LINENO: result: no" >&5
12631echo "${ECHO_T}no" >&6; }
12632fi
12633
12634
12635no_freetype=""
12636if test "$FREETYPE_CONFIG" = "no" ; then
12637    { { echo "$as_me:$LINENO: error:
12638*** Unable to find FreeType2 library (http://www.freetype.org/)
12639" >&5
12640echo "$as_me: error:
12641*** Unable to find FreeType2 library (http://www.freetype.org/)
12642" >&2;}
12643   { (exit 1); exit 1; }; }
12644else
12645    CFLAGS="$CFLAGS `pkg-config freetype2 --cflags`"
12646    LIBS="$LIBS `pkg-config freetype2 --libs`"
12647fi
12648
12649SDL_VERSION=1.2.4
12650
12651
12652
12653if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12654	if test -n "$ac_tool_prefix"; then
12655  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12656set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12659if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12660  echo $ECHO_N "(cached) $ECHO_C" >&6
12661else
12662  case $PKG_CONFIG in
12663  [\\/]* | ?:[\\/]*)
12664  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12665  ;;
12666  *)
12667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668for as_dir in $PATH
12669do
12670  IFS=$as_save_IFS
12671  test -z "$as_dir" && as_dir=.
12672  for ac_exec_ext in '' $ac_executable_extensions; do
12673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12674    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12676    break 2
12677  fi
12678done
12679done
12680IFS=$as_save_IFS
12681
12682  ;;
12683esac
12684fi
12685PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12686if test -n "$PKG_CONFIG"; then
12687  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12688echo "${ECHO_T}$PKG_CONFIG" >&6; }
12689else
12690  { echo "$as_me:$LINENO: result: no" >&5
12691echo "${ECHO_T}no" >&6; }
12692fi
12693
12694
12695fi
12696if test -z "$ac_cv_path_PKG_CONFIG"; then
12697  ac_pt_PKG_CONFIG=$PKG_CONFIG
12698  # Extract the first word of "pkg-config", so it can be a program name with args.
12699set dummy pkg-config; ac_word=$2
12700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12702if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12703  echo $ECHO_N "(cached) $ECHO_C" >&6
12704else
12705  case $ac_pt_PKG_CONFIG in
12706  [\\/]* | ?:[\\/]*)
12707  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12708  ;;
12709  *)
12710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711for as_dir in $PATH
12712do
12713  IFS=$as_save_IFS
12714  test -z "$as_dir" && as_dir=.
12715  for ac_exec_ext in '' $ac_executable_extensions; do
12716  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12717    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12718    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12719    break 2
12720  fi
12721done
12722done
12723IFS=$as_save_IFS
12724
12725  ;;
12726esac
12727fi
12728ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12729if test -n "$ac_pt_PKG_CONFIG"; then
12730  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12731echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
12732else
12733  { echo "$as_me:$LINENO: result: no" >&5
12734echo "${ECHO_T}no" >&6; }
12735fi
12736
12737  if test "x$ac_pt_PKG_CONFIG" = x; then
12738    PKG_CONFIG=""
12739  else
12740    case $cross_compiling:$ac_tool_warned in
12741yes:)
12742{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12743whose name does not start with the host triplet.  If you think this
12744configuration is useful to you, please write to autoconf@gnu.org." >&5
12745echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12746whose name does not start with the host triplet.  If you think this
12747configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12748ac_tool_warned=yes ;;
12749esac
12750    PKG_CONFIG=$ac_pt_PKG_CONFIG
12751  fi
12752else
12753  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12754fi
12755
12756fi
12757if test -n "$PKG_CONFIG"; then
12758	_pkg_min_version=0.9.0
12759	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12760echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
12761	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12762		{ echo "$as_me:$LINENO: result: yes" >&5
12763echo "${ECHO_T}yes" >&6; }
12764	else
12765		{ echo "$as_me:$LINENO: result: no" >&5
12766echo "${ECHO_T}no" >&6; }
12767		PKG_CONFIG=""
12768	fi
12769
12770fi
12771
12772# Check whether --with-sdl-prefix was given.
12773if test "${with_sdl_prefix+set}" = set; then
12774  withval=$with_sdl_prefix; sdl_prefix="$withval"
12775else
12776  sdl_prefix=""
12777fi
12778
12779
12780# Check whether --with-sdl-exec-prefix was given.
12781if test "${with_sdl_exec_prefix+set}" = set; then
12782  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12783else
12784  sdl_exec_prefix=""
12785fi
12786
12787# Check whether --enable-sdltest was given.
12788if test "${enable_sdltest+set}" = set; then
12789  enableval=$enable_sdltest;
12790else
12791  enable_sdltest=yes
12792fi
12793
12794
12795  min_sdl_version=$SDL_VERSION
12796
12797  if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
12798
12799pkg_failed=no
12800{ echo "$as_me:$LINENO: checking for SDL" >&5
12801echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
12802
12803if test -n "$PKG_CONFIG"; then
12804    if test -n "$SDL_CFLAGS"; then
12805        pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12806    else
12807        if test -n "$PKG_CONFIG" && \
12808    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\"") >&5
12809  ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
12810  ac_status=$?
12811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812  (exit $ac_status); }; then
12813  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= $min_sdl_version" 2>/dev/null`
12814else
12815  pkg_failed=yes
12816fi
12817    fi
12818else
12819	pkg_failed=untried
12820fi
12821if test -n "$PKG_CONFIG"; then
12822    if test -n "$SDL_LIBS"; then
12823        pkg_cv_SDL_LIBS="$SDL_LIBS"
12824    else
12825        if test -n "$PKG_CONFIG" && \
12826    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\"") >&5
12827  ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
12828  ac_status=$?
12829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830  (exit $ac_status); }; then
12831  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= $min_sdl_version" 2>/dev/null`
12832else
12833  pkg_failed=yes
12834fi
12835    fi
12836else
12837	pkg_failed=untried
12838fi
12839
12840
12841
12842if test $pkg_failed = yes; then
12843
12844if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12845        _pkg_short_errors_supported=yes
12846else
12847        _pkg_short_errors_supported=no
12848fi
12849        if test $_pkg_short_errors_supported = yes; then
12850	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl >= $min_sdl_version"`
12851        else
12852	        SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl >= $min_sdl_version"`
12853        fi
12854	# Put the nasty error message in config.log where it belongs
12855	echo "$SDL_PKG_ERRORS" >&5
12856
12857	{ echo "$as_me:$LINENO: result: no" >&5
12858echo "${ECHO_T}no" >&6; }
12859                             { echo "$as_me:$LINENO: result: no" >&5
12860echo "${ECHO_T}no" >&6; }
12861             sdl_pc=no
12862
12863elif test $pkg_failed = untried; then
12864	             { echo "$as_me:$LINENO: result: no" >&5
12865echo "${ECHO_T}no" >&6; }
12866             sdl_pc=no
12867
12868else
12869	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12870	SDL_LIBS=$pkg_cv_SDL_LIBS
12871        { echo "$as_me:$LINENO: result: yes" >&5
12872echo "${ECHO_T}yes" >&6; }
12873	sdl_pc=yes
12874fi
12875  else
12876    sdl_pc=no
12877    if test x$sdl_exec_prefix != x ; then
12878      sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
12879      if test x${SDL_CONFIG+set} != xset ; then
12880        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12881      fi
12882    fi
12883    if test x$sdl_prefix != x ; then
12884      sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
12885      if test x${SDL_CONFIG+set} != xset ; then
12886        SDL_CONFIG=$sdl_prefix/bin/sdl-config
12887      fi
12888    fi
12889  fi
12890
12891  if test "x$sdl_pc" = xyes ; then
12892    no_sdl=""
12893    SDL_CONFIG="pkg-config sdl"
12894  else
12895    as_save_PATH="$PATH"
12896    if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
12897      PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12898    fi
12899    # Extract the first word of "sdl-config", so it can be a program name with args.
12900set dummy sdl-config; ac_word=$2
12901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12903if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12904  echo $ECHO_N "(cached) $ECHO_C" >&6
12905else
12906  case $SDL_CONFIG in
12907  [\\/]* | ?:[\\/]*)
12908  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12909  ;;
12910  *)
12911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912for as_dir in $PATH
12913do
12914  IFS=$as_save_IFS
12915  test -z "$as_dir" && as_dir=.
12916  for ac_exec_ext in '' $ac_executable_extensions; do
12917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12918    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12920    break 2
12921  fi
12922done
12923done
12924IFS=$as_save_IFS
12925
12926  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12927  ;;
12928esac
12929fi
12930SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12931if test -n "$SDL_CONFIG"; then
12932  { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12933echo "${ECHO_T}$SDL_CONFIG" >&6; }
12934else
12935  { echo "$as_me:$LINENO: result: no" >&5
12936echo "${ECHO_T}no" >&6; }
12937fi
12938
12939
12940    PATH="$as_save_PATH"
12941    { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12942echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12943    no_sdl=""
12944
12945    if test "$SDL_CONFIG" = "no" ; then
12946      no_sdl=yes
12947    else
12948      SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
12949      SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
12950
12951      sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
12952             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12953      sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
12954             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12955      sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12956             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12957      if test "x$enable_sdltest" = "xyes" ; then
12958        ac_save_CFLAGS="$CFLAGS"
12959        ac_save_CXXFLAGS="$CXXFLAGS"
12960        ac_save_LIBS="$LIBS"
12961        CFLAGS="$CFLAGS $SDL_CFLAGS"
12962        CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12963        LIBS="$LIBS $SDL_LIBS"
12964      rm -f conf.sdltest
12965      if test "$cross_compiling" = yes; then
12966  echo $ac_n "cross compiling; assumed OK... $ac_c"
12967else
12968  cat >conftest.$ac_ext <<_ACEOF
12969/* confdefs.h.  */
12970_ACEOF
12971cat confdefs.h >>conftest.$ac_ext
12972cat >>conftest.$ac_ext <<_ACEOF
12973/* end confdefs.h.  */
12974
12975#include <stdio.h>
12976#include <stdlib.h>
12977#include <string.h>
12978#include "SDL.h"
12979
12980char*
12981my_strdup (char *str)
12982{
12983  char *new_str;
12984
12985  if (str)
12986    {
12987      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12988      strcpy (new_str, str);
12989    }
12990  else
12991    new_str = NULL;
12992
12993  return new_str;
12994}
12995
12996int main (int argc, char *argv[])
12997{
12998  int major, minor, micro;
12999  char *tmp_version;
13000
13001  /* This hangs on some systems (?)
13002  system ("touch conf.sdltest");
13003  */
13004  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13005
13006  /* HP/UX 9 (%@#!) writes to sscanf strings */
13007  tmp_version = my_strdup("$min_sdl_version");
13008  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13009     printf("%s, bad version string\n", "$min_sdl_version");
13010     exit(1);
13011   }
13012
13013   if (($sdl_major_version > major) ||
13014      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13015      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13016    {
13017      return 0;
13018    }
13019  else
13020    {
13021      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13022      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13023      printf("*** best to upgrade to the required version.\n");
13024      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13025      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13026      printf("*** config.cache before re-running configure\n");
13027      return 1;
13028    }
13029}
13030
13031
13032_ACEOF
13033rm -f conftest$ac_exeext
13034if { (ac_try="$ac_link"
13035case "(($ac_try" in
13036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037  *) ac_try_echo=$ac_try;;
13038esac
13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040  (eval "$ac_link") 2>&5
13041  ac_status=$?
13042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13044  { (case "(($ac_try" in
13045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046  *) ac_try_echo=$ac_try;;
13047esac
13048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049  (eval "$ac_try") 2>&5
13050  ac_status=$?
13051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052  (exit $ac_status); }; }; then
13053  :
13054else
13055  echo "$as_me: program exited with status $ac_status" >&5
13056echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
13059( exit $ac_status )
13060no_sdl=yes
13061fi
13062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13063fi
13064
13065
13066        CFLAGS="$ac_save_CFLAGS"
13067        CXXFLAGS="$ac_save_CXXFLAGS"
13068        LIBS="$ac_save_LIBS"
13069      fi
13070    fi
13071    if test "x$no_sdl" = x ; then
13072      { echo "$as_me:$LINENO: result: yes" >&5
13073echo "${ECHO_T}yes" >&6; }
13074    else
13075      { echo "$as_me:$LINENO: result: no" >&5
13076echo "${ECHO_T}no" >&6; }
13077    fi
13078  fi
13079  if test "x$no_sdl" = x ; then
13080     :
13081  else
13082     if test "$SDL_CONFIG" = "no" ; then
13083       echo "*** The sdl-config script installed by SDL could not be found"
13084       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
13085       echo "*** your path, or set the SDL_CONFIG environment variable to the"
13086       echo "*** full path to sdl-config."
13087     else
13088       if test -f conf.sdltest ; then
13089        :
13090       else
13091          echo "*** Could not run SDL test program, checking why..."
13092          CFLAGS="$CFLAGS $SDL_CFLAGS"
13093          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13094          LIBS="$LIBS $SDL_LIBS"
13095          cat >conftest.$ac_ext <<_ACEOF
13096/* confdefs.h.  */
13097_ACEOF
13098cat confdefs.h >>conftest.$ac_ext
13099cat >>conftest.$ac_ext <<_ACEOF
13100/* end confdefs.h.  */
13101
13102#include <stdio.h>
13103#include "SDL.h"
13104
13105int main(int argc, char *argv[])
13106{ return 0; }
13107#undef  main
13108#define main K_and_R_C_main
13109
13110int
13111main ()
13112{
13113 return 0;
13114  ;
13115  return 0;
13116}
13117_ACEOF
13118rm -f conftest.$ac_objext conftest$ac_exeext
13119if { (ac_try="$ac_link"
13120case "(($ac_try" in
13121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122  *) ac_try_echo=$ac_try;;
13123esac
13124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125  (eval "$ac_link") 2>conftest.er1
13126  ac_status=$?
13127  grep -v '^ *+' conftest.er1 >conftest.err
13128  rm -f conftest.er1
13129  cat conftest.err >&5
13130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131  (exit $ac_status); } && {
13132	 test -z "$ac_c_werror_flag" ||
13133	 test ! -s conftest.err
13134       } && test -s conftest$ac_exeext &&
13135       $as_test_x conftest$ac_exeext; then
13136   echo "*** The test program compiled, but did not run. This usually means"
13137          echo "*** that the run-time linker is not finding SDL or finding the wrong"
13138          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
13139          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13140          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13141          echo "*** is required on your system"
13142	  echo "***"
13143          echo "*** If you have an old version installed, it is best to remove it, although"
13144          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13145else
13146  echo "$as_me: failed program was:" >&5
13147sed 's/^/| /' conftest.$ac_ext >&5
13148
13149	 echo "*** The test program failed to compile or link. See the file config.log for the"
13150          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
13151          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
13152          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
13153fi
13154
13155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13156      conftest$ac_exeext conftest.$ac_ext
13157          CFLAGS="$ac_save_CFLAGS"
13158          CXXFLAGS="$ac_save_CXXFLAGS"
13159          LIBS="$ac_save_LIBS"
13160       fi
13161     fi
13162     SDL_CFLAGS=""
13163     SDL_LIBS=""
13164     { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
13165echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
13166   { (exit 1); exit 1; }; }
13167
13168  fi
13169
13170
13171  rm -f conf.sdltest
13172
13173CFLAGS="$CFLAGS $SDL_CFLAGS"
13174LIBS="$LIBS $SDL_LIBS"
13175
13176case "$host" in
13177    *-*-cygwin* | *-*-mingw32*)
13178        MATHLIB=""
13179        SYS_GL_LIBS="-lopengl32"
13180        ;;
13181    *-*-beos*)
13182        MATHLIB=""
13183        SYS_GL_LIBS="-lGL"
13184        ;;
13185    *-*-darwin*)
13186        MATHLIB=""
13187        SYS_GL_LIBS="-Wl,-framework,OpenGL"
13188        ;;
13189    *-*-aix*)
13190        if test x$ac_cv_c_compiler_gnu = xyes; then
13191            CFLAGS="-mthreads"
13192	fi
13193        SYS_GL_LIBS=""
13194        ;;
13195    *)
13196        MATHLIB="-lm"
13197        { echo "$as_me:$LINENO: checking for X" >&5
13198echo $ECHO_N "checking for X... $ECHO_C" >&6; }
13199
13200
13201# Check whether --with-x was given.
13202if test "${with_x+set}" = set; then
13203  withval=$with_x;
13204fi
13205
13206# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13207if test "x$with_x" = xno; then
13208  # The user explicitly disabled X.
13209  have_x=disabled
13210else
13211  case $x_includes,$x_libraries in #(
13212    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
13213echo "$as_me: error: Cannot use X directory names containing '" >&2;}
13214   { (exit 1); exit 1; }; };; #(
13215    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
13216  echo $ECHO_N "(cached) $ECHO_C" >&6
13217else
13218  # One or both of the vars are not set, and there is no cached value.
13219ac_x_includes=no ac_x_libraries=no
13220rm -f -r conftest.dir
13221if mkdir conftest.dir; then
13222  cd conftest.dir
13223  cat >Imakefile <<'_ACEOF'
13224incroot:
13225	@echo incroot='${INCROOT}'
13226usrlibdir:
13227	@echo usrlibdir='${USRLIBDIR}'
13228libdir:
13229	@echo libdir='${LIBDIR}'
13230_ACEOF
13231  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13232    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13233    for ac_var in incroot usrlibdir libdir; do
13234      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13235    done
13236    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13237    for ac_extension in a so sl dylib la dll; do
13238      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13239	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13240	ac_im_usrlibdir=$ac_im_libdir; break
13241      fi
13242    done
13243    # Screen out bogus values from the imake configuration.  They are
13244    # bogus both because they are the default anyway, and because
13245    # using them would break gcc on systems where it needs fixed includes.
13246    case $ac_im_incroot in
13247	/usr/include) ac_x_includes= ;;
13248	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13249    esac
13250    case $ac_im_usrlibdir in
13251	/usr/lib | /lib) ;;
13252	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13253    esac
13254  fi
13255  cd ..
13256  rm -f -r conftest.dir
13257fi
13258
13259# Standard set of common directories for X headers.
13260# Check X11 before X11Rn because it is often a symlink to the current release.
13261ac_x_header_dirs='
13262/usr/X11/include
13263/usr/X11R6/include
13264/usr/X11R5/include
13265/usr/X11R4/include
13266
13267/usr/include/X11
13268/usr/include/X11R6
13269/usr/include/X11R5
13270/usr/include/X11R4
13271
13272/usr/local/X11/include
13273/usr/local/X11R6/include
13274/usr/local/X11R5/include
13275/usr/local/X11R4/include
13276
13277/usr/local/include/X11
13278/usr/local/include/X11R6
13279/usr/local/include/X11R5
13280/usr/local/include/X11R4
13281
13282/usr/X386/include
13283/usr/x386/include
13284/usr/XFree86/include/X11
13285
13286/usr/include
13287/usr/local/include
13288/usr/unsupported/include
13289/usr/athena/include
13290/usr/local/x11r5/include
13291/usr/lpp/Xamples/include
13292
13293/usr/openwin/include
13294/usr/openwin/share/include'
13295
13296if test "$ac_x_includes" = no; then
13297  # Guess where to find include files, by looking for Xlib.h.
13298  # First, try using that file with no special directory specified.
13299  cat >conftest.$ac_ext <<_ACEOF
13300/* confdefs.h.  */
13301_ACEOF
13302cat confdefs.h >>conftest.$ac_ext
13303cat >>conftest.$ac_ext <<_ACEOF
13304/* end confdefs.h.  */
13305#include <X11/Xlib.h>
13306_ACEOF
13307if { (ac_try="$ac_cpp conftest.$ac_ext"
13308case "(($ac_try" in
13309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310  *) ac_try_echo=$ac_try;;
13311esac
13312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13314  ac_status=$?
13315  grep -v '^ *+' conftest.er1 >conftest.err
13316  rm -f conftest.er1
13317  cat conftest.err >&5
13318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319  (exit $ac_status); } >/dev/null && {
13320	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13321	 test ! -s conftest.err
13322       }; then
13323  # We can compile using X headers with no special include directory.
13324ac_x_includes=
13325else
13326  echo "$as_me: failed program was:" >&5
13327sed 's/^/| /' conftest.$ac_ext >&5
13328
13329  for ac_dir in $ac_x_header_dirs; do
13330  if test -r "$ac_dir/X11/Xlib.h"; then
13331    ac_x_includes=$ac_dir
13332    break
13333  fi
13334done
13335fi
13336
13337rm -f conftest.err conftest.$ac_ext
13338fi # $ac_x_includes = no
13339
13340if test "$ac_x_libraries" = no; then
13341  # Check for the libraries.
13342  # See if we find them without any special options.
13343  # Don't add to $LIBS permanently.
13344  ac_save_LIBS=$LIBS
13345  LIBS="-lX11 $LIBS"
13346  cat >conftest.$ac_ext <<_ACEOF
13347/* confdefs.h.  */
13348_ACEOF
13349cat confdefs.h >>conftest.$ac_ext
13350cat >>conftest.$ac_ext <<_ACEOF
13351/* end confdefs.h.  */
13352#include <X11/Xlib.h>
13353int
13354main ()
13355{
13356XrmInitialize ()
13357  ;
13358  return 0;
13359}
13360_ACEOF
13361rm -f conftest.$ac_objext conftest$ac_exeext
13362if { (ac_try="$ac_link"
13363case "(($ac_try" in
13364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365  *) ac_try_echo=$ac_try;;
13366esac
13367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368  (eval "$ac_link") 2>conftest.er1
13369  ac_status=$?
13370  grep -v '^ *+' conftest.er1 >conftest.err
13371  rm -f conftest.er1
13372  cat conftest.err >&5
13373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374  (exit $ac_status); } && {
13375	 test -z "$ac_c_werror_flag" ||
13376	 test ! -s conftest.err
13377       } && test -s conftest$ac_exeext &&
13378       $as_test_x conftest$ac_exeext; then
13379  LIBS=$ac_save_LIBS
13380# We can link X programs with no special library path.
13381ac_x_libraries=
13382else
13383  echo "$as_me: failed program was:" >&5
13384sed 's/^/| /' conftest.$ac_ext >&5
13385
13386	LIBS=$ac_save_LIBS
13387for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13388do
13389  # Don't even attempt the hair of trying to link an X program!
13390  for ac_extension in a so sl dylib la dll; do
13391    if test -r "$ac_dir/libX11.$ac_extension"; then
13392      ac_x_libraries=$ac_dir
13393      break 2
13394    fi
13395  done
13396done
13397fi
13398
13399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13400      conftest$ac_exeext conftest.$ac_ext
13401fi # $ac_x_libraries = no
13402
13403case $ac_x_includes,$ac_x_libraries in #(
13404  no,* | *,no | *\'*)
13405    # Didn't find X, or a directory has "'" in its name.
13406    ac_cv_have_x="have_x=no";; #(
13407  *)
13408    # Record where we found X for the cache.
13409    ac_cv_have_x="have_x=yes\
13410	ac_x_includes='$ac_x_includes'\
13411	ac_x_libraries='$ac_x_libraries'"
13412esac
13413fi
13414;; #(
13415    *) have_x=yes;;
13416  esac
13417  eval "$ac_cv_have_x"
13418fi # $with_x != no
13419
13420if test "$have_x" != yes; then
13421  { echo "$as_me:$LINENO: result: $have_x" >&5
13422echo "${ECHO_T}$have_x" >&6; }
13423  no_x=yes
13424else
13425  # If each of the values was on the command line, it overrides each guess.
13426  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13427  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13428  # Update the cache value to reflect the command line values.
13429  ac_cv_have_x="have_x=yes\
13430	ac_x_includes='$x_includes'\
13431	ac_x_libraries='$x_libraries'"
13432  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
13433echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
13434fi
13435
13436        if test "$no_x" = yes; then
13437  # Not all programs may use this symbol, but it does not hurt to define it.
13438
13439cat >>confdefs.h <<\_ACEOF
13440#define X_DISPLAY_MISSING 1
13441_ACEOF
13442
13443  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13444else
13445  if test -n "$x_includes"; then
13446    X_CFLAGS="$X_CFLAGS -I$x_includes"
13447  fi
13448
13449  # It would also be nice to do this for all -L options, not just this one.
13450  if test -n "$x_libraries"; then
13451    X_LIBS="$X_LIBS -L$x_libraries"
13452    # For Solaris; some versions of Sun CC require a space after -R and
13453    # others require no space.  Words are not sufficient . . . .
13454    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
13455echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
13456    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13457    ac_xsave_c_werror_flag=$ac_c_werror_flag
13458    ac_c_werror_flag=yes
13459    cat >conftest.$ac_ext <<_ACEOF
13460/* confdefs.h.  */
13461_ACEOF
13462cat confdefs.h >>conftest.$ac_ext
13463cat >>conftest.$ac_ext <<_ACEOF
13464/* end confdefs.h.  */
13465
13466int
13467main ()
13468{
13469
13470  ;
13471  return 0;
13472}
13473_ACEOF
13474rm -f conftest.$ac_objext conftest$ac_exeext
13475if { (ac_try="$ac_link"
13476case "(($ac_try" in
13477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478  *) ac_try_echo=$ac_try;;
13479esac
13480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481  (eval "$ac_link") 2>conftest.er1
13482  ac_status=$?
13483  grep -v '^ *+' conftest.er1 >conftest.err
13484  rm -f conftest.er1
13485  cat conftest.err >&5
13486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487  (exit $ac_status); } && {
13488	 test -z "$ac_c_werror_flag" ||
13489	 test ! -s conftest.err
13490       } && test -s conftest$ac_exeext &&
13491       $as_test_x conftest$ac_exeext; then
13492  { echo "$as_me:$LINENO: result: no" >&5
13493echo "${ECHO_T}no" >&6; }
13494       X_LIBS="$X_LIBS -R$x_libraries"
13495else
13496  echo "$as_me: failed program was:" >&5
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
13499	LIBS="$ac_xsave_LIBS -R $x_libraries"
13500       cat >conftest.$ac_ext <<_ACEOF
13501/* confdefs.h.  */
13502_ACEOF
13503cat confdefs.h >>conftest.$ac_ext
13504cat >>conftest.$ac_ext <<_ACEOF
13505/* end confdefs.h.  */
13506
13507int
13508main ()
13509{
13510
13511  ;
13512  return 0;
13513}
13514_ACEOF
13515rm -f conftest.$ac_objext conftest$ac_exeext
13516if { (ac_try="$ac_link"
13517case "(($ac_try" in
13518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519  *) ac_try_echo=$ac_try;;
13520esac
13521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522  (eval "$ac_link") 2>conftest.er1
13523  ac_status=$?
13524  grep -v '^ *+' conftest.er1 >conftest.err
13525  rm -f conftest.er1
13526  cat conftest.err >&5
13527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528  (exit $ac_status); } && {
13529	 test -z "$ac_c_werror_flag" ||
13530	 test ! -s conftest.err
13531       } && test -s conftest$ac_exeext &&
13532       $as_test_x conftest$ac_exeext; then
13533  { echo "$as_me:$LINENO: result: yes" >&5
13534echo "${ECHO_T}yes" >&6; }
13535	  X_LIBS="$X_LIBS -R $x_libraries"
13536else
13537  echo "$as_me: failed program was:" >&5
13538sed 's/^/| /' conftest.$ac_ext >&5
13539
13540	{ echo "$as_me:$LINENO: result: neither works" >&5
13541echo "${ECHO_T}neither works" >&6; }
13542fi
13543
13544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13545      conftest$ac_exeext conftest.$ac_ext
13546fi
13547
13548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13549      conftest$ac_exeext conftest.$ac_ext
13550    ac_c_werror_flag=$ac_xsave_c_werror_flag
13551    LIBS=$ac_xsave_LIBS
13552  fi
13553
13554  # Check for system-dependent libraries X programs must link with.
13555  # Do this before checking for the system-independent R6 libraries
13556  # (-lICE), since we may need -lsocket or whatever for X linking.
13557
13558  if test "$ISC" = yes; then
13559    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13560  else
13561    # Martyn Johnson says this is needed for Ultrix, if the X
13562    # libraries were built with DECnet support.  And Karl Berry says
13563    # the Alpha needs dnet_stub (dnet does not exist).
13564    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13565    cat >conftest.$ac_ext <<_ACEOF
13566/* confdefs.h.  */
13567_ACEOF
13568cat confdefs.h >>conftest.$ac_ext
13569cat >>conftest.$ac_ext <<_ACEOF
13570/* end confdefs.h.  */
13571
13572/* Override any GCC internal prototype to avoid an error.
13573   Use char because int might match the return type of a GCC
13574   builtin and then its argument prototype would still apply.  */
13575#ifdef __cplusplus
13576extern "C"
13577#endif
13578char XOpenDisplay ();
13579int
13580main ()
13581{
13582return XOpenDisplay ();
13583  ;
13584  return 0;
13585}
13586_ACEOF
13587rm -f conftest.$ac_objext conftest$ac_exeext
13588if { (ac_try="$ac_link"
13589case "(($ac_try" in
13590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591  *) ac_try_echo=$ac_try;;
13592esac
13593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594  (eval "$ac_link") 2>conftest.er1
13595  ac_status=$?
13596  grep -v '^ *+' conftest.er1 >conftest.err
13597  rm -f conftest.er1
13598  cat conftest.err >&5
13599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600  (exit $ac_status); } && {
13601	 test -z "$ac_c_werror_flag" ||
13602	 test ! -s conftest.err
13603       } && test -s conftest$ac_exeext &&
13604       $as_test_x conftest$ac_exeext; then
13605  :
13606else
13607  echo "$as_me: failed program was:" >&5
13608sed 's/^/| /' conftest.$ac_ext >&5
13609
13610	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
13611echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
13612if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
13613  echo $ECHO_N "(cached) $ECHO_C" >&6
13614else
13615  ac_check_lib_save_LIBS=$LIBS
13616LIBS="-ldnet  $LIBS"
13617cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h.  */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h.  */
13623
13624/* Override any GCC internal prototype to avoid an error.
13625   Use char because int might match the return type of a GCC
13626   builtin and then its argument prototype would still apply.  */
13627#ifdef __cplusplus
13628extern "C"
13629#endif
13630char dnet_ntoa ();
13631int
13632main ()
13633{
13634return dnet_ntoa ();
13635  ;
13636  return 0;
13637}
13638_ACEOF
13639rm -f conftest.$ac_objext conftest$ac_exeext
13640if { (ac_try="$ac_link"
13641case "(($ac_try" in
13642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643  *) ac_try_echo=$ac_try;;
13644esac
13645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646  (eval "$ac_link") 2>conftest.er1
13647  ac_status=$?
13648  grep -v '^ *+' conftest.er1 >conftest.err
13649  rm -f conftest.er1
13650  cat conftest.err >&5
13651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652  (exit $ac_status); } && {
13653	 test -z "$ac_c_werror_flag" ||
13654	 test ! -s conftest.err
13655       } && test -s conftest$ac_exeext &&
13656       $as_test_x conftest$ac_exeext; then
13657  ac_cv_lib_dnet_dnet_ntoa=yes
13658else
13659  echo "$as_me: failed program was:" >&5
13660sed 's/^/| /' conftest.$ac_ext >&5
13661
13662	ac_cv_lib_dnet_dnet_ntoa=no
13663fi
13664
13665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13666      conftest$ac_exeext conftest.$ac_ext
13667LIBS=$ac_check_lib_save_LIBS
13668fi
13669{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13670echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13671if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
13672  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13673fi
13674
13675    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13676      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
13677echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
13678if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
13679  echo $ECHO_N "(cached) $ECHO_C" >&6
13680else
13681  ac_check_lib_save_LIBS=$LIBS
13682LIBS="-ldnet_stub  $LIBS"
13683cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h.  */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h.  */
13689
13690/* Override any GCC internal prototype to avoid an error.
13691   Use char because int might match the return type of a GCC
13692   builtin and then its argument prototype would still apply.  */
13693#ifdef __cplusplus
13694extern "C"
13695#endif
13696char dnet_ntoa ();
13697int
13698main ()
13699{
13700return dnet_ntoa ();
13701  ;
13702  return 0;
13703}
13704_ACEOF
13705rm -f conftest.$ac_objext conftest$ac_exeext
13706if { (ac_try="$ac_link"
13707case "(($ac_try" in
13708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709  *) ac_try_echo=$ac_try;;
13710esac
13711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712  (eval "$ac_link") 2>conftest.er1
13713  ac_status=$?
13714  grep -v '^ *+' conftest.er1 >conftest.err
13715  rm -f conftest.er1
13716  cat conftest.err >&5
13717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718  (exit $ac_status); } && {
13719	 test -z "$ac_c_werror_flag" ||
13720	 test ! -s conftest.err
13721       } && test -s conftest$ac_exeext &&
13722       $as_test_x conftest$ac_exeext; then
13723  ac_cv_lib_dnet_stub_dnet_ntoa=yes
13724else
13725  echo "$as_me: failed program was:" >&5
13726sed 's/^/| /' conftest.$ac_ext >&5
13727
13728	ac_cv_lib_dnet_stub_dnet_ntoa=no
13729fi
13730
13731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13732      conftest$ac_exeext conftest.$ac_ext
13733LIBS=$ac_check_lib_save_LIBS
13734fi
13735{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13736echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13737if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
13738  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13739fi
13740
13741    fi
13742fi
13743
13744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13745      conftest$ac_exeext conftest.$ac_ext
13746    LIBS="$ac_xsave_LIBS"
13747
13748    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13749    # to get the SysV transport functions.
13750    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13751    # needs -lnsl.
13752    # The nsl library prevents programs from opening the X display
13753    # on Irix 5.2, according to T.E. Dickey.
13754    # The functions gethostbyname, getservbyname, and inet_addr are
13755    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13756    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
13757echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
13758if test "${ac_cv_func_gethostbyname+set}" = set; then
13759  echo $ECHO_N "(cached) $ECHO_C" >&6
13760else
13761  cat >conftest.$ac_ext <<_ACEOF
13762/* confdefs.h.  */
13763_ACEOF
13764cat confdefs.h >>conftest.$ac_ext
13765cat >>conftest.$ac_ext <<_ACEOF
13766/* end confdefs.h.  */
13767/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13768   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13769#define gethostbyname innocuous_gethostbyname
13770
13771/* System header to define __stub macros and hopefully few prototypes,
13772    which can conflict with char gethostbyname (); below.
13773    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13774    <limits.h> exists even on freestanding compilers.  */
13775
13776#ifdef __STDC__
13777# include <limits.h>
13778#else
13779# include <assert.h>
13780#endif
13781
13782#undef gethostbyname
13783
13784/* Override any GCC internal prototype to avoid an error.
13785   Use char because int might match the return type of a GCC
13786   builtin and then its argument prototype would still apply.  */
13787#ifdef __cplusplus
13788extern "C"
13789#endif
13790char gethostbyname ();
13791/* The GNU C library defines this for functions which it implements
13792    to always fail with ENOSYS.  Some functions are actually named
13793    something starting with __ and the normal name is an alias.  */
13794#if defined __stub_gethostbyname || defined __stub___gethostbyname
13795choke me
13796#endif
13797
13798int
13799main ()
13800{
13801return gethostbyname ();
13802  ;
13803  return 0;
13804}
13805_ACEOF
13806rm -f conftest.$ac_objext conftest$ac_exeext
13807if { (ac_try="$ac_link"
13808case "(($ac_try" in
13809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810  *) ac_try_echo=$ac_try;;
13811esac
13812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813  (eval "$ac_link") 2>conftest.er1
13814  ac_status=$?
13815  grep -v '^ *+' conftest.er1 >conftest.err
13816  rm -f conftest.er1
13817  cat conftest.err >&5
13818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819  (exit $ac_status); } && {
13820	 test -z "$ac_c_werror_flag" ||
13821	 test ! -s conftest.err
13822       } && test -s conftest$ac_exeext &&
13823       $as_test_x conftest$ac_exeext; then
13824  ac_cv_func_gethostbyname=yes
13825else
13826  echo "$as_me: failed program was:" >&5
13827sed 's/^/| /' conftest.$ac_ext >&5
13828
13829	ac_cv_func_gethostbyname=no
13830fi
13831
13832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13833      conftest$ac_exeext conftest.$ac_ext
13834fi
13835{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13836echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
13837
13838    if test $ac_cv_func_gethostbyname = no; then
13839      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
13840echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
13841if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
13842  echo $ECHO_N "(cached) $ECHO_C" >&6
13843else
13844  ac_check_lib_save_LIBS=$LIBS
13845LIBS="-lnsl  $LIBS"
13846cat >conftest.$ac_ext <<_ACEOF
13847/* confdefs.h.  */
13848_ACEOF
13849cat confdefs.h >>conftest.$ac_ext
13850cat >>conftest.$ac_ext <<_ACEOF
13851/* end confdefs.h.  */
13852
13853/* Override any GCC internal prototype to avoid an error.
13854   Use char because int might match the return type of a GCC
13855   builtin and then its argument prototype would still apply.  */
13856#ifdef __cplusplus
13857extern "C"
13858#endif
13859char gethostbyname ();
13860int
13861main ()
13862{
13863return gethostbyname ();
13864  ;
13865  return 0;
13866}
13867_ACEOF
13868rm -f conftest.$ac_objext conftest$ac_exeext
13869if { (ac_try="$ac_link"
13870case "(($ac_try" in
13871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872  *) ac_try_echo=$ac_try;;
13873esac
13874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875  (eval "$ac_link") 2>conftest.er1
13876  ac_status=$?
13877  grep -v '^ *+' conftest.er1 >conftest.err
13878  rm -f conftest.er1
13879  cat conftest.err >&5
13880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881  (exit $ac_status); } && {
13882	 test -z "$ac_c_werror_flag" ||
13883	 test ! -s conftest.err
13884       } && test -s conftest$ac_exeext &&
13885       $as_test_x conftest$ac_exeext; then
13886  ac_cv_lib_nsl_gethostbyname=yes
13887else
13888  echo "$as_me: failed program was:" >&5
13889sed 's/^/| /' conftest.$ac_ext >&5
13890
13891	ac_cv_lib_nsl_gethostbyname=no
13892fi
13893
13894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13895      conftest$ac_exeext conftest.$ac_ext
13896LIBS=$ac_check_lib_save_LIBS
13897fi
13898{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
13899echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
13900if test $ac_cv_lib_nsl_gethostbyname = yes; then
13901  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13902fi
13903
13904      if test $ac_cv_lib_nsl_gethostbyname = no; then
13905	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
13906echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
13907if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
13908  echo $ECHO_N "(cached) $ECHO_C" >&6
13909else
13910  ac_check_lib_save_LIBS=$LIBS
13911LIBS="-lbsd  $LIBS"
13912cat >conftest.$ac_ext <<_ACEOF
13913/* confdefs.h.  */
13914_ACEOF
13915cat confdefs.h >>conftest.$ac_ext
13916cat >>conftest.$ac_ext <<_ACEOF
13917/* end confdefs.h.  */
13918
13919/* Override any GCC internal prototype to avoid an error.
13920   Use char because int might match the return type of a GCC
13921   builtin and then its argument prototype would still apply.  */
13922#ifdef __cplusplus
13923extern "C"
13924#endif
13925char gethostbyname ();
13926int
13927main ()
13928{
13929return gethostbyname ();
13930  ;
13931  return 0;
13932}
13933_ACEOF
13934rm -f conftest.$ac_objext conftest$ac_exeext
13935if { (ac_try="$ac_link"
13936case "(($ac_try" in
13937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938  *) ac_try_echo=$ac_try;;
13939esac
13940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941  (eval "$ac_link") 2>conftest.er1
13942  ac_status=$?
13943  grep -v '^ *+' conftest.er1 >conftest.err
13944  rm -f conftest.er1
13945  cat conftest.err >&5
13946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947  (exit $ac_status); } && {
13948	 test -z "$ac_c_werror_flag" ||
13949	 test ! -s conftest.err
13950       } && test -s conftest$ac_exeext &&
13951       $as_test_x conftest$ac_exeext; then
13952  ac_cv_lib_bsd_gethostbyname=yes
13953else
13954  echo "$as_me: failed program was:" >&5
13955sed 's/^/| /' conftest.$ac_ext >&5
13956
13957	ac_cv_lib_bsd_gethostbyname=no
13958fi
13959
13960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13961      conftest$ac_exeext conftest.$ac_ext
13962LIBS=$ac_check_lib_save_LIBS
13963fi
13964{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
13965echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
13966if test $ac_cv_lib_bsd_gethostbyname = yes; then
13967  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13968fi
13969
13970      fi
13971    fi
13972
13973    # lieder@skyler.mavd.honeywell.com says without -lsocket,
13974    # socket/setsockopt and other routines are undefined under SCO ODT
13975    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
13976    # on later versions), says Simon Leinen: it contains gethostby*
13977    # variants that don't use the name server (or something).  -lsocket
13978    # must be given before -lnsl if both are needed.  We assume that
13979    # if connect needs -lnsl, so does gethostbyname.
13980    { echo "$as_me:$LINENO: checking for connect" >&5
13981echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
13982if test "${ac_cv_func_connect+set}" = set; then
13983  echo $ECHO_N "(cached) $ECHO_C" >&6
13984else
13985  cat >conftest.$ac_ext <<_ACEOF
13986/* confdefs.h.  */
13987_ACEOF
13988cat confdefs.h >>conftest.$ac_ext
13989cat >>conftest.$ac_ext <<_ACEOF
13990/* end confdefs.h.  */
13991/* Define connect to an innocuous variant, in case <limits.h> declares connect.
13992   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13993#define connect innocuous_connect
13994
13995/* System header to define __stub macros and hopefully few prototypes,
13996    which can conflict with char connect (); below.
13997    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13998    <limits.h> exists even on freestanding compilers.  */
13999
14000#ifdef __STDC__
14001# include <limits.h>
14002#else
14003# include <assert.h>
14004#endif
14005
14006#undef connect
14007
14008/* Override any GCC internal prototype to avoid an error.
14009   Use char because int might match the return type of a GCC
14010   builtin and then its argument prototype would still apply.  */
14011#ifdef __cplusplus
14012extern "C"
14013#endif
14014char connect ();
14015/* The GNU C library defines this for functions which it implements
14016    to always fail with ENOSYS.  Some functions are actually named
14017    something starting with __ and the normal name is an alias.  */
14018#if defined __stub_connect || defined __stub___connect
14019choke me
14020#endif
14021
14022int
14023main ()
14024{
14025return connect ();
14026  ;
14027  return 0;
14028}
14029_ACEOF
14030rm -f conftest.$ac_objext conftest$ac_exeext
14031if { (ac_try="$ac_link"
14032case "(($ac_try" in
14033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034  *) ac_try_echo=$ac_try;;
14035esac
14036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037  (eval "$ac_link") 2>conftest.er1
14038  ac_status=$?
14039  grep -v '^ *+' conftest.er1 >conftest.err
14040  rm -f conftest.er1
14041  cat conftest.err >&5
14042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043  (exit $ac_status); } && {
14044	 test -z "$ac_c_werror_flag" ||
14045	 test ! -s conftest.err
14046       } && test -s conftest$ac_exeext &&
14047       $as_test_x conftest$ac_exeext; then
14048  ac_cv_func_connect=yes
14049else
14050  echo "$as_me: failed program was:" >&5
14051sed 's/^/| /' conftest.$ac_ext >&5
14052
14053	ac_cv_func_connect=no
14054fi
14055
14056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14057      conftest$ac_exeext conftest.$ac_ext
14058fi
14059{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
14060echo "${ECHO_T}$ac_cv_func_connect" >&6; }
14061
14062    if test $ac_cv_func_connect = no; then
14063      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
14064echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
14065if test "${ac_cv_lib_socket_connect+set}" = set; then
14066  echo $ECHO_N "(cached) $ECHO_C" >&6
14067else
14068  ac_check_lib_save_LIBS=$LIBS
14069LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14070cat >conftest.$ac_ext <<_ACEOF
14071/* confdefs.h.  */
14072_ACEOF
14073cat confdefs.h >>conftest.$ac_ext
14074cat >>conftest.$ac_ext <<_ACEOF
14075/* end confdefs.h.  */
14076
14077/* Override any GCC internal prototype to avoid an error.
14078   Use char because int might match the return type of a GCC
14079   builtin and then its argument prototype would still apply.  */
14080#ifdef __cplusplus
14081extern "C"
14082#endif
14083char connect ();
14084int
14085main ()
14086{
14087return connect ();
14088  ;
14089  return 0;
14090}
14091_ACEOF
14092rm -f conftest.$ac_objext conftest$ac_exeext
14093if { (ac_try="$ac_link"
14094case "(($ac_try" in
14095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096  *) ac_try_echo=$ac_try;;
14097esac
14098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099  (eval "$ac_link") 2>conftest.er1
14100  ac_status=$?
14101  grep -v '^ *+' conftest.er1 >conftest.err
14102  rm -f conftest.er1
14103  cat conftest.err >&5
14104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105  (exit $ac_status); } && {
14106	 test -z "$ac_c_werror_flag" ||
14107	 test ! -s conftest.err
14108       } && test -s conftest$ac_exeext &&
14109       $as_test_x conftest$ac_exeext; then
14110  ac_cv_lib_socket_connect=yes
14111else
14112  echo "$as_me: failed program was:" >&5
14113sed 's/^/| /' conftest.$ac_ext >&5
14114
14115	ac_cv_lib_socket_connect=no
14116fi
14117
14118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14119      conftest$ac_exeext conftest.$ac_ext
14120LIBS=$ac_check_lib_save_LIBS
14121fi
14122{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
14123echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
14124if test $ac_cv_lib_socket_connect = yes; then
14125  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14126fi
14127
14128    fi
14129
14130    # Guillermo Gomez says -lposix is necessary on A/UX.
14131    { echo "$as_me:$LINENO: checking for remove" >&5
14132echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
14133if test "${ac_cv_func_remove+set}" = set; then
14134  echo $ECHO_N "(cached) $ECHO_C" >&6
14135else
14136  cat >conftest.$ac_ext <<_ACEOF
14137/* confdefs.h.  */
14138_ACEOF
14139cat confdefs.h >>conftest.$ac_ext
14140cat >>conftest.$ac_ext <<_ACEOF
14141/* end confdefs.h.  */
14142/* Define remove to an innocuous variant, in case <limits.h> declares remove.
14143   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14144#define remove innocuous_remove
14145
14146/* System header to define __stub macros and hopefully few prototypes,
14147    which can conflict with char remove (); below.
14148    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14149    <limits.h> exists even on freestanding compilers.  */
14150
14151#ifdef __STDC__
14152# include <limits.h>
14153#else
14154# include <assert.h>
14155#endif
14156
14157#undef remove
14158
14159/* Override any GCC internal prototype to avoid an error.
14160   Use char because int might match the return type of a GCC
14161   builtin and then its argument prototype would still apply.  */
14162#ifdef __cplusplus
14163extern "C"
14164#endif
14165char remove ();
14166/* The GNU C library defines this for functions which it implements
14167    to always fail with ENOSYS.  Some functions are actually named
14168    something starting with __ and the normal name is an alias.  */
14169#if defined __stub_remove || defined __stub___remove
14170choke me
14171#endif
14172
14173int
14174main ()
14175{
14176return remove ();
14177  ;
14178  return 0;
14179}
14180_ACEOF
14181rm -f conftest.$ac_objext conftest$ac_exeext
14182if { (ac_try="$ac_link"
14183case "(($ac_try" in
14184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185  *) ac_try_echo=$ac_try;;
14186esac
14187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188  (eval "$ac_link") 2>conftest.er1
14189  ac_status=$?
14190  grep -v '^ *+' conftest.er1 >conftest.err
14191  rm -f conftest.er1
14192  cat conftest.err >&5
14193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194  (exit $ac_status); } && {
14195	 test -z "$ac_c_werror_flag" ||
14196	 test ! -s conftest.err
14197       } && test -s conftest$ac_exeext &&
14198       $as_test_x conftest$ac_exeext; then
14199  ac_cv_func_remove=yes
14200else
14201  echo "$as_me: failed program was:" >&5
14202sed 's/^/| /' conftest.$ac_ext >&5
14203
14204	ac_cv_func_remove=no
14205fi
14206
14207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14208      conftest$ac_exeext conftest.$ac_ext
14209fi
14210{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
14211echo "${ECHO_T}$ac_cv_func_remove" >&6; }
14212
14213    if test $ac_cv_func_remove = no; then
14214      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
14215echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
14216if test "${ac_cv_lib_posix_remove+set}" = set; then
14217  echo $ECHO_N "(cached) $ECHO_C" >&6
14218else
14219  ac_check_lib_save_LIBS=$LIBS
14220LIBS="-lposix  $LIBS"
14221cat >conftest.$ac_ext <<_ACEOF
14222/* confdefs.h.  */
14223_ACEOF
14224cat confdefs.h >>conftest.$ac_ext
14225cat >>conftest.$ac_ext <<_ACEOF
14226/* end confdefs.h.  */
14227
14228/* Override any GCC internal prototype to avoid an error.
14229   Use char because int might match the return type of a GCC
14230   builtin and then its argument prototype would still apply.  */
14231#ifdef __cplusplus
14232extern "C"
14233#endif
14234char remove ();
14235int
14236main ()
14237{
14238return remove ();
14239  ;
14240  return 0;
14241}
14242_ACEOF
14243rm -f conftest.$ac_objext conftest$ac_exeext
14244if { (ac_try="$ac_link"
14245case "(($ac_try" in
14246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247  *) ac_try_echo=$ac_try;;
14248esac
14249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250  (eval "$ac_link") 2>conftest.er1
14251  ac_status=$?
14252  grep -v '^ *+' conftest.er1 >conftest.err
14253  rm -f conftest.er1
14254  cat conftest.err >&5
14255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256  (exit $ac_status); } && {
14257	 test -z "$ac_c_werror_flag" ||
14258	 test ! -s conftest.err
14259       } && test -s conftest$ac_exeext &&
14260       $as_test_x conftest$ac_exeext; then
14261  ac_cv_lib_posix_remove=yes
14262else
14263  echo "$as_me: failed program was:" >&5
14264sed 's/^/| /' conftest.$ac_ext >&5
14265
14266	ac_cv_lib_posix_remove=no
14267fi
14268
14269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14270      conftest$ac_exeext conftest.$ac_ext
14271LIBS=$ac_check_lib_save_LIBS
14272fi
14273{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
14274echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
14275if test $ac_cv_lib_posix_remove = yes; then
14276  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14277fi
14278
14279    fi
14280
14281    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14282    { echo "$as_me:$LINENO: checking for shmat" >&5
14283echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
14284if test "${ac_cv_func_shmat+set}" = set; then
14285  echo $ECHO_N "(cached) $ECHO_C" >&6
14286else
14287  cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h.  */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h.  */
14293/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
14294   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14295#define shmat innocuous_shmat
14296
14297/* System header to define __stub macros and hopefully few prototypes,
14298    which can conflict with char shmat (); below.
14299    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14300    <limits.h> exists even on freestanding compilers.  */
14301
14302#ifdef __STDC__
14303# include <limits.h>
14304#else
14305# include <assert.h>
14306#endif
14307
14308#undef shmat
14309
14310/* Override any GCC internal prototype to avoid an error.
14311   Use char because int might match the return type of a GCC
14312   builtin and then its argument prototype would still apply.  */
14313#ifdef __cplusplus
14314extern "C"
14315#endif
14316char shmat ();
14317/* The GNU C library defines this for functions which it implements
14318    to always fail with ENOSYS.  Some functions are actually named
14319    something starting with __ and the normal name is an alias.  */
14320#if defined __stub_shmat || defined __stub___shmat
14321choke me
14322#endif
14323
14324int
14325main ()
14326{
14327return shmat ();
14328  ;
14329  return 0;
14330}
14331_ACEOF
14332rm -f conftest.$ac_objext conftest$ac_exeext
14333if { (ac_try="$ac_link"
14334case "(($ac_try" in
14335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336  *) ac_try_echo=$ac_try;;
14337esac
14338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339  (eval "$ac_link") 2>conftest.er1
14340  ac_status=$?
14341  grep -v '^ *+' conftest.er1 >conftest.err
14342  rm -f conftest.er1
14343  cat conftest.err >&5
14344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345  (exit $ac_status); } && {
14346	 test -z "$ac_c_werror_flag" ||
14347	 test ! -s conftest.err
14348       } && test -s conftest$ac_exeext &&
14349       $as_test_x conftest$ac_exeext; then
14350  ac_cv_func_shmat=yes
14351else
14352  echo "$as_me: failed program was:" >&5
14353sed 's/^/| /' conftest.$ac_ext >&5
14354
14355	ac_cv_func_shmat=no
14356fi
14357
14358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14359      conftest$ac_exeext conftest.$ac_ext
14360fi
14361{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
14362echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
14363
14364    if test $ac_cv_func_shmat = no; then
14365      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
14366echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
14367if test "${ac_cv_lib_ipc_shmat+set}" = set; then
14368  echo $ECHO_N "(cached) $ECHO_C" >&6
14369else
14370  ac_check_lib_save_LIBS=$LIBS
14371LIBS="-lipc  $LIBS"
14372cat >conftest.$ac_ext <<_ACEOF
14373/* confdefs.h.  */
14374_ACEOF
14375cat confdefs.h >>conftest.$ac_ext
14376cat >>conftest.$ac_ext <<_ACEOF
14377/* end confdefs.h.  */
14378
14379/* Override any GCC internal prototype to avoid an error.
14380   Use char because int might match the return type of a GCC
14381   builtin and then its argument prototype would still apply.  */
14382#ifdef __cplusplus
14383extern "C"
14384#endif
14385char shmat ();
14386int
14387main ()
14388{
14389return shmat ();
14390  ;
14391  return 0;
14392}
14393_ACEOF
14394rm -f conftest.$ac_objext conftest$ac_exeext
14395if { (ac_try="$ac_link"
14396case "(($ac_try" in
14397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398  *) ac_try_echo=$ac_try;;
14399esac
14400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401  (eval "$ac_link") 2>conftest.er1
14402  ac_status=$?
14403  grep -v '^ *+' conftest.er1 >conftest.err
14404  rm -f conftest.er1
14405  cat conftest.err >&5
14406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407  (exit $ac_status); } && {
14408	 test -z "$ac_c_werror_flag" ||
14409	 test ! -s conftest.err
14410       } && test -s conftest$ac_exeext &&
14411       $as_test_x conftest$ac_exeext; then
14412  ac_cv_lib_ipc_shmat=yes
14413else
14414  echo "$as_me: failed program was:" >&5
14415sed 's/^/| /' conftest.$ac_ext >&5
14416
14417	ac_cv_lib_ipc_shmat=no
14418fi
14419
14420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14421      conftest$ac_exeext conftest.$ac_ext
14422LIBS=$ac_check_lib_save_LIBS
14423fi
14424{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
14425echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
14426if test $ac_cv_lib_ipc_shmat = yes; then
14427  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14428fi
14429
14430    fi
14431  fi
14432
14433  # Check for libraries that X11R6 Xt/Xaw programs need.
14434  ac_save_LDFLAGS=$LDFLAGS
14435  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14436  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14437  # check for ICE first), but we must link in the order -lSM -lICE or
14438  # we get undefined symbols.  So assume we have SM if we have ICE.
14439  # These have to be linked with before -lX11, unlike the other
14440  # libraries we check for below, so use a different variable.
14441  # John Interrante, Karl Berry
14442  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
14443echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
14444if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
14445  echo $ECHO_N "(cached) $ECHO_C" >&6
14446else
14447  ac_check_lib_save_LIBS=$LIBS
14448LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14449cat >conftest.$ac_ext <<_ACEOF
14450/* confdefs.h.  */
14451_ACEOF
14452cat confdefs.h >>conftest.$ac_ext
14453cat >>conftest.$ac_ext <<_ACEOF
14454/* end confdefs.h.  */
14455
14456/* Override any GCC internal prototype to avoid an error.
14457   Use char because int might match the return type of a GCC
14458   builtin and then its argument prototype would still apply.  */
14459#ifdef __cplusplus
14460extern "C"
14461#endif
14462char IceConnectionNumber ();
14463int
14464main ()
14465{
14466return IceConnectionNumber ();
14467  ;
14468  return 0;
14469}
14470_ACEOF
14471rm -f conftest.$ac_objext conftest$ac_exeext
14472if { (ac_try="$ac_link"
14473case "(($ac_try" in
14474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475  *) ac_try_echo=$ac_try;;
14476esac
14477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478  (eval "$ac_link") 2>conftest.er1
14479  ac_status=$?
14480  grep -v '^ *+' conftest.er1 >conftest.err
14481  rm -f conftest.er1
14482  cat conftest.err >&5
14483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484  (exit $ac_status); } && {
14485	 test -z "$ac_c_werror_flag" ||
14486	 test ! -s conftest.err
14487       } && test -s conftest$ac_exeext &&
14488       $as_test_x conftest$ac_exeext; then
14489  ac_cv_lib_ICE_IceConnectionNumber=yes
14490else
14491  echo "$as_me: failed program was:" >&5
14492sed 's/^/| /' conftest.$ac_ext >&5
14493
14494	ac_cv_lib_ICE_IceConnectionNumber=no
14495fi
14496
14497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14498      conftest$ac_exeext conftest.$ac_ext
14499LIBS=$ac_check_lib_save_LIBS
14500fi
14501{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14502echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14503if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
14504  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14505fi
14506
14507  LDFLAGS=$ac_save_LDFLAGS
14508
14509fi
14510
14511        if test x$have_x = xyes; then
14512            CFLAGS="$CFLAGS $X_CFLAGS"
14513            SYS_GL_LIBS="$X_LIBS -lGL"
14514        else
14515            SYS_GL_LIBS="-lGL"
14516        fi
14517        ;;
14518esac
14519{ echo "$as_me:$LINENO: checking for OpenGL support" >&5
14520echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6; }
14521have_opengl=no
14522cat >conftest.$ac_ext <<_ACEOF
14523/* confdefs.h.  */
14524_ACEOF
14525cat confdefs.h >>conftest.$ac_ext
14526cat >>conftest.$ac_ext <<_ACEOF
14527/* end confdefs.h.  */
14528
14529 #include "SDL_opengl.h"
14530
14531int
14532main ()
14533{
14534
14535 GLuint texture;
14536
14537  ;
14538  return 0;
14539}
14540_ACEOF
14541rm -f conftest.$ac_objext
14542if { (ac_try="$ac_compile"
14543case "(($ac_try" in
14544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545  *) ac_try_echo=$ac_try;;
14546esac
14547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548  (eval "$ac_compile") 2>conftest.er1
14549  ac_status=$?
14550  grep -v '^ *+' conftest.er1 >conftest.err
14551  rm -f conftest.er1
14552  cat conftest.err >&5
14553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554  (exit $ac_status); } && {
14555	 test -z "$ac_c_werror_flag" ||
14556	 test ! -s conftest.err
14557       } && test -s conftest.$ac_objext; then
14558
14559have_opengl=yes
14560
14561else
14562  echo "$as_me: failed program was:" >&5
14563sed 's/^/| /' conftest.$ac_ext >&5
14564
14565
14566fi
14567
14568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569{ echo "$as_me:$LINENO: result: $have_opengl" >&5
14570echo "${ECHO_T}$have_opengl" >&6; }
14571if test x$have_opengl = xyes; then
14572    CFLAGS="$CFLAGS -DHAVE_OPENGL"
14573    GL_LIBS="$SYS_GL_LIBS"
14574else
14575    GL_LIBS=""
14576fi
14577
14578
14579
14580
14581# Finally create all the generated files
14582ac_config_files="$ac_config_files Makefile SDL_ttf.spec SDL_ttf.pc"
14583
14584cat >confcache <<\_ACEOF
14585# This file is a shell script that caches the results of configure
14586# tests run on this system so they can be shared between configure
14587# scripts and configure runs, see configure's option --config-cache.
14588# It is not useful on other systems.  If it contains results you don't
14589# want to keep, you may remove or edit it.
14590#
14591# config.status only pays attention to the cache file if you give it
14592# the --recheck option to rerun configure.
14593#
14594# `ac_cv_env_foo' variables (set or unset) will be overridden when
14595# loading this file, other *unset* `ac_cv_foo' will be assigned the
14596# following values.
14597
14598_ACEOF
14599
14600# The following way of writing the cache mishandles newlines in values,
14601# but we know of no workaround that is simple, portable, and efficient.
14602# So, we kill variables containing newlines.
14603# Ultrix sh set writes to stderr and can't be redirected directly,
14604# and sets the high bit in the cache file unless we assign to the vars.
14605(
14606  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14607    eval ac_val=\$$ac_var
14608    case $ac_val in #(
14609    *${as_nl}*)
14610      case $ac_var in #(
14611      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14612echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14613      esac
14614      case $ac_var in #(
14615      _ | IFS | as_nl) ;; #(
14616      *) $as_unset $ac_var ;;
14617      esac ;;
14618    esac
14619  done
14620
14621  (set) 2>&1 |
14622    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14623    *${as_nl}ac_space=\ *)
14624      # `set' does not quote correctly, so add quotes (double-quote
14625      # substitution turns \\\\ into \\, and sed turns \\ into \).
14626      sed -n \
14627	"s/'/'\\\\''/g;
14628	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14629      ;; #(
14630    *)
14631      # `set' quotes correctly as required by POSIX, so do not add quotes.
14632      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14633      ;;
14634    esac |
14635    sort
14636) |
14637  sed '
14638     /^ac_cv_env_/b end
14639     t clear
14640     :clear
14641     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14642     t end
14643     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14644     :end' >>confcache
14645if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14646  if test -w "$cache_file"; then
14647    test "x$cache_file" != "x/dev/null" &&
14648      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14649echo "$as_me: updating cache $cache_file" >&6;}
14650    cat confcache >$cache_file
14651  else
14652    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14653echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14654  fi
14655fi
14656rm -f confcache
14657
14658test "x$prefix" = xNONE && prefix=$ac_default_prefix
14659# Let make expand exec_prefix.
14660test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14661
14662# Transform confdefs.h into DEFS.
14663# Protect against shell expansion while executing Makefile rules.
14664# Protect against Makefile macro expansion.
14665#
14666# If the first sed substitution is executed (which looks for macros that
14667# take arguments), then branch to the quote section.  Otherwise,
14668# look for a macro that doesn't take arguments.
14669ac_script='
14670t clear
14671:clear
14672s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
14673t quote
14674s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
14675t quote
14676b any
14677:quote
14678s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14679s/\[/\\&/g
14680s/\]/\\&/g
14681s/\$/$$/g
14682H
14683:any
14684${
14685	g
14686	s/^\n//
14687	s/\n/ /g
14688	p
14689}
14690'
14691DEFS=`sed -n "$ac_script" confdefs.h`
14692
14693
14694ac_libobjs=
14695ac_ltlibobjs=
14696for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14697  # 1. Remove the extension, and $U if already installed.
14698  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14699  ac_i=`echo "$ac_i" | sed "$ac_script"`
14700  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14701  #    will be set to the directory where LIBOBJS objects are built.
14702  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14703  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14704done
14705LIBOBJS=$ac_libobjs
14706
14707LTLIBOBJS=$ac_ltlibobjs
14708
14709
14710if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14711  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14712Usually this means the macro was only invoked conditionally." >&5
14713echo "$as_me: error: conditional \"AMDEP\" was never defined.
14714Usually this means the macro was only invoked conditionally." >&2;}
14715   { (exit 1); exit 1; }; }
14716fi
14717if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14718  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14719Usually this means the macro was only invoked conditionally." >&5
14720echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14721Usually this means the macro was only invoked conditionally." >&2;}
14722   { (exit 1); exit 1; }; }
14723fi
14724if test -z "${USE_VERSION_RC_TRUE}" && test -z "${USE_VERSION_RC_FALSE}"; then
14725  { { echo "$as_me:$LINENO: error: conditional \"USE_VERSION_RC\" was never defined.
14726Usually this means the macro was only invoked conditionally." >&5
14727echo "$as_me: error: conditional \"USE_VERSION_RC\" was never defined.
14728Usually this means the macro was only invoked conditionally." >&2;}
14729   { (exit 1); exit 1; }; }
14730fi
14731
14732: ${CONFIG_STATUS=./config.status}
14733ac_clean_files_save=$ac_clean_files
14734ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14735{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14736echo "$as_me: creating $CONFIG_STATUS" >&6;}
14737cat >$CONFIG_STATUS <<_ACEOF
14738#! $SHELL
14739# Generated by $as_me.
14740# Run this file to recreate the current configuration.
14741# Compiler output produced by configure, useful for debugging
14742# configure, is in config.log if it exists.
14743
14744debug=false
14745ac_cs_recheck=false
14746ac_cs_silent=false
14747SHELL=\${CONFIG_SHELL-$SHELL}
14748_ACEOF
14749
14750cat >>$CONFIG_STATUS <<\_ACEOF
14751## --------------------- ##
14752## M4sh Initialization.  ##
14753## --------------------- ##
14754
14755# Be more Bourne compatible
14756DUALCASE=1; export DUALCASE # for MKS sh
14757if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14758  emulate sh
14759  NULLCMD=:
14760  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14761  # is contrary to our usage.  Disable this feature.
14762  alias -g '${1+"$@"}'='"$@"'
14763  setopt NO_GLOB_SUBST
14764else
14765  case `(set -o) 2>/dev/null` in
14766  *posix*) set -o posix ;;
14767esac
14768
14769fi
14770
14771
14772
14773
14774# PATH needs CR
14775# Avoid depending upon Character Ranges.
14776as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14777as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14778as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14779as_cr_digits='0123456789'
14780as_cr_alnum=$as_cr_Letters$as_cr_digits
14781
14782# The user is always right.
14783if test "${PATH_SEPARATOR+set}" != set; then
14784  echo "#! /bin/sh" >conf$$.sh
14785  echo  "exit 0"   >>conf$$.sh
14786  chmod +x conf$$.sh
14787  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14788    PATH_SEPARATOR=';'
14789  else
14790    PATH_SEPARATOR=:
14791  fi
14792  rm -f conf$$.sh
14793fi
14794
14795# Support unset when possible.
14796if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14797  as_unset=unset
14798else
14799  as_unset=false
14800fi
14801
14802
14803# IFS
14804# We need space, tab and new line, in precisely that order.  Quoting is
14805# there to prevent editors from complaining about space-tab.
14806# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14807# splitting by setting IFS to empty value.)
14808as_nl='
14809'
14810IFS=" ""	$as_nl"
14811
14812# Find who we are.  Look in the path if we contain no directory separator.
14813case $0 in
14814  *[\\/]* ) as_myself=$0 ;;
14815  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816for as_dir in $PATH
14817do
14818  IFS=$as_save_IFS
14819  test -z "$as_dir" && as_dir=.
14820  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14821done
14822IFS=$as_save_IFS
14823
14824     ;;
14825esac
14826# We did not find ourselves, most probably we were run as `sh COMMAND'
14827# in which case we are not to be found in the path.
14828if test "x$as_myself" = x; then
14829  as_myself=$0
14830fi
14831if test ! -f "$as_myself"; then
14832  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14833  { (exit 1); exit 1; }
14834fi
14835
14836# Work around bugs in pre-3.0 UWIN ksh.
14837for as_var in ENV MAIL MAILPATH
14838do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14839done
14840PS1='$ '
14841PS2='> '
14842PS4='+ '
14843
14844# NLS nuisances.
14845for as_var in \
14846  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14847  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14848  LC_TELEPHONE LC_TIME
14849do
14850  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14851    eval $as_var=C; export $as_var
14852  else
14853    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14854  fi
14855done
14856
14857# Required to use basename.
14858if expr a : '\(a\)' >/dev/null 2>&1 &&
14859   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14860  as_expr=expr
14861else
14862  as_expr=false
14863fi
14864
14865if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14866  as_basename=basename
14867else
14868  as_basename=false
14869fi
14870
14871
14872# Name of the executable.
14873as_me=`$as_basename -- "$0" ||
14874$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14875	 X"$0" : 'X\(//\)$' \| \
14876	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14877echo X/"$0" |
14878    sed '/^.*\/\([^/][^/]*\)\/*$/{
14879	    s//\1/
14880	    q
14881	  }
14882	  /^X\/\(\/\/\)$/{
14883	    s//\1/
14884	    q
14885	  }
14886	  /^X\/\(\/\).*/{
14887	    s//\1/
14888	    q
14889	  }
14890	  s/.*/./; q'`
14891
14892# CDPATH.
14893$as_unset CDPATH
14894
14895
14896
14897  as_lineno_1=$LINENO
14898  as_lineno_2=$LINENO
14899  test "x$as_lineno_1" != "x$as_lineno_2" &&
14900  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14901
14902  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14903  # uniformly replaced by the line number.  The first 'sed' inserts a
14904  # line-number line after each line using $LINENO; the second 'sed'
14905  # does the real work.  The second script uses 'N' to pair each
14906  # line-number line with the line containing $LINENO, and appends
14907  # trailing '-' during substitution so that $LINENO is not a special
14908  # case at line end.
14909  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14910  # scripts with optimization help from Paolo Bonzini.  Blame Lee
14911  # E. McMahon (1931-1989) for sed's syntax.  :-)
14912  sed -n '
14913    p
14914    /[$]LINENO/=
14915  ' <$as_myself |
14916    sed '
14917      s/[$]LINENO.*/&-/
14918      t lineno
14919      b
14920      :lineno
14921      N
14922      :loop
14923      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14924      t loop
14925      s/-\n.*//
14926    ' >$as_me.lineno &&
14927  chmod +x "$as_me.lineno" ||
14928    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14929   { (exit 1); exit 1; }; }
14930
14931  # Don't try to exec as it changes $[0], causing all sort of problems
14932  # (the dirname of $[0] is not the place where we might find the
14933  # original and so on.  Autoconf is especially sensitive to this).
14934  . "./$as_me.lineno"
14935  # Exit status is that of the last command.
14936  exit
14937}
14938
14939
14940if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14941  as_dirname=dirname
14942else
14943  as_dirname=false
14944fi
14945
14946ECHO_C= ECHO_N= ECHO_T=
14947case `echo -n x` in
14948-n*)
14949  case `echo 'x\c'` in
14950  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14951  *)   ECHO_C='\c';;
14952  esac;;
14953*)
14954  ECHO_N='-n';;
14955esac
14956
14957if expr a : '\(a\)' >/dev/null 2>&1 &&
14958   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14959  as_expr=expr
14960else
14961  as_expr=false
14962fi
14963
14964rm -f conf$$ conf$$.exe conf$$.file
14965if test -d conf$$.dir; then
14966  rm -f conf$$.dir/conf$$.file
14967else
14968  rm -f conf$$.dir
14969  mkdir conf$$.dir
14970fi
14971echo >conf$$.file
14972if ln -s conf$$.file conf$$ 2>/dev/null; then
14973  as_ln_s='ln -s'
14974  # ... but there are two gotchas:
14975  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14976  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14977  # In both cases, we have to default to `cp -p'.
14978  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14979    as_ln_s='cp -p'
14980elif ln conf$$.file conf$$ 2>/dev/null; then
14981  as_ln_s=ln
14982else
14983  as_ln_s='cp -p'
14984fi
14985rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14986rmdir conf$$.dir 2>/dev/null
14987
14988if mkdir -p . 2>/dev/null; then
14989  as_mkdir_p=:
14990else
14991  test -d ./-p && rmdir ./-p
14992  as_mkdir_p=false
14993fi
14994
14995if test -x / >/dev/null 2>&1; then
14996  as_test_x='test -x'
14997else
14998  if ls -dL / >/dev/null 2>&1; then
14999    as_ls_L_option=L
15000  else
15001    as_ls_L_option=
15002  fi
15003  as_test_x='
15004    eval sh -c '\''
15005      if test -d "$1"; then
15006        test -d "$1/.";
15007      else
15008	case $1 in
15009        -*)set "./$1";;
15010	esac;
15011	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15012	???[sx]*):;;*)false;;esac;fi
15013    '\'' sh
15014  '
15015fi
15016as_executable_p=$as_test_x
15017
15018# Sed expression to map a string onto a valid CPP name.
15019as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15020
15021# Sed expression to map a string onto a valid variable name.
15022as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15023
15024
15025exec 6>&1
15026
15027# Save the log message, to keep $[0] and so on meaningful, and to
15028# report actual input values of CONFIG_FILES etc. instead of their
15029# values after options handling.
15030ac_log="
15031This file was extended by $as_me, which was
15032generated by GNU Autoconf 2.61.  Invocation command line was
15033
15034  CONFIG_FILES    = $CONFIG_FILES
15035  CONFIG_HEADERS  = $CONFIG_HEADERS
15036  CONFIG_LINKS    = $CONFIG_LINKS
15037  CONFIG_COMMANDS = $CONFIG_COMMANDS
15038  $ $0 $@
15039
15040on `(hostname || uname -n) 2>/dev/null | sed 1q`
15041"
15042
15043_ACEOF
15044
15045cat >>$CONFIG_STATUS <<_ACEOF
15046# Files that config.status was made for.
15047config_files="$ac_config_files"
15048config_commands="$ac_config_commands"
15049
15050_ACEOF
15051
15052cat >>$CONFIG_STATUS <<\_ACEOF
15053ac_cs_usage="\
15054\`$as_me' instantiates files from templates according to the
15055current configuration.
15056
15057Usage: $0 [OPTIONS] [FILE]...
15058
15059  -h, --help       print this help, then exit
15060  -V, --version    print version number and configuration settings, then exit
15061  -q, --quiet      do not print progress messages
15062  -d, --debug      don't remove temporary files
15063      --recheck    update $as_me by reconfiguring in the same conditions
15064  --file=FILE[:TEMPLATE]
15065		   instantiate the configuration file FILE
15066
15067Configuration files:
15068$config_files
15069
15070Configuration commands:
15071$config_commands
15072
15073Report bugs to <bug-autoconf@gnu.org>."
15074
15075_ACEOF
15076cat >>$CONFIG_STATUS <<_ACEOF
15077ac_cs_version="\\
15078config.status
15079configured by $0, generated by GNU Autoconf 2.61,
15080  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15081
15082Copyright (C) 2006 Free Software Foundation, Inc.
15083This config.status script is free software; the Free Software Foundation
15084gives unlimited permission to copy, distribute and modify it."
15085
15086ac_pwd='$ac_pwd'
15087srcdir='$srcdir'
15088INSTALL='$INSTALL'
15089MKDIR_P='$MKDIR_P'
15090_ACEOF
15091
15092cat >>$CONFIG_STATUS <<\_ACEOF
15093# If no file are specified by the user, then we need to provide default
15094# value.  By we need to know if files were specified by the user.
15095ac_need_defaults=:
15096while test $# != 0
15097do
15098  case $1 in
15099  --*=*)
15100    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15101    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15102    ac_shift=:
15103    ;;
15104  *)
15105    ac_option=$1
15106    ac_optarg=$2
15107    ac_shift=shift
15108    ;;
15109  esac
15110
15111  case $ac_option in
15112  # Handling of the options.
15113  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15114    ac_cs_recheck=: ;;
15115  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15116    echo "$ac_cs_version"; exit ;;
15117  --debug | --debu | --deb | --de | --d | -d )
15118    debug=: ;;
15119  --file | --fil | --fi | --f )
15120    $ac_shift
15121    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15122    ac_need_defaults=false;;
15123  --he | --h |  --help | --hel | -h )
15124    echo "$ac_cs_usage"; exit ;;
15125  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15126  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15127    ac_cs_silent=: ;;
15128
15129  # This is an error.
15130  -*) { echo "$as_me: error: unrecognized option: $1
15131Try \`$0 --help' for more information." >&2
15132   { (exit 1); exit 1; }; } ;;
15133
15134  *) ac_config_targets="$ac_config_targets $1"
15135     ac_need_defaults=false ;;
15136
15137  esac
15138  shift
15139done
15140
15141ac_configure_extra_args=
15142
15143if $ac_cs_silent; then
15144  exec 6>/dev/null
15145  ac_configure_extra_args="$ac_configure_extra_args --silent"
15146fi
15147
15148_ACEOF
15149cat >>$CONFIG_STATUS <<_ACEOF
15150if \$ac_cs_recheck; then
15151  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15152  CONFIG_SHELL=$SHELL
15153  export CONFIG_SHELL
15154  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15155fi
15156
15157_ACEOF
15158cat >>$CONFIG_STATUS <<\_ACEOF
15159exec 5>>config.log
15160{
15161  echo
15162  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15163## Running $as_me. ##
15164_ASBOX
15165  echo "$ac_log"
15166} >&5
15167
15168_ACEOF
15169cat >>$CONFIG_STATUS <<_ACEOF
15170#
15171# INIT-COMMANDS
15172#
15173
15174
15175# The HP-UX ksh and POSIX shell print the target directory to stdout
15176# if CDPATH is set.
15177(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15178
15179sed_quote_subst='$sed_quote_subst'
15180double_quote_subst='$double_quote_subst'
15181delay_variable_subst='$delay_variable_subst'
15182macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15183macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15184AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
15185DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15186OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15187enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15188enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15189pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15190enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15191host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15192host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15193host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15194build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15195build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15196build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15197SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15198Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15199GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15200EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15201FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15202LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15203NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15204LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15205max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15206ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15207exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15208lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15209lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15210lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15211reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15212reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15213deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15214file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15215AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15216AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15217STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15218RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15219old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15220old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15221old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15222CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15223CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15224compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15225GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15226lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15227lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15228lt_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"`'
15229lt_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"`'
15230objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15231SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15232ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15233MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15234lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15235lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15236lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15237lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15238lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15239need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15240DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15241NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15242LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15243OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15244OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15245libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15246shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15247extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15248archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15249enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15250export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15251whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15252compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15253old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15254old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15255archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15256archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15257module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15258module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15259with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15260allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15261no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15262hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15263hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15264hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15265hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15266hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15267hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15268hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15269hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15270inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15271link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15272fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15273always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15274export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15275exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15276include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15277prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15278file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15279variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15280need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15281need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15282version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15283runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15284shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15285shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15286libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15287library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15288soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15289postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15290postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15291finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15292finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15293hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15294sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15295sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15296hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15297enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15298enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15299enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15300old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15301striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15302
15303LTCC='$LTCC'
15304LTCFLAGS='$LTCFLAGS'
15305compiler='$compiler_DEFAULT'
15306
15307# Quote evaled strings.
15308for var in SED \
15309GREP \
15310EGREP \
15311FGREP \
15312LD \
15313NM \
15314LN_S \
15315lt_SP2NL \
15316lt_NL2SP \
15317reload_flag \
15318deplibs_check_method \
15319file_magic_cmd \
15320AR \
15321AR_FLAGS \
15322STRIP \
15323RANLIB \
15324CC \
15325CFLAGS \
15326compiler \
15327lt_cv_sys_global_symbol_pipe \
15328lt_cv_sys_global_symbol_to_cdecl \
15329lt_cv_sys_global_symbol_to_c_name_address \
15330lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15331SHELL \
15332ECHO \
15333lt_prog_compiler_no_builtin_flag \
15334lt_prog_compiler_wl \
15335lt_prog_compiler_pic \
15336lt_prog_compiler_static \
15337lt_cv_prog_compiler_c_o \
15338need_locks \
15339DSYMUTIL \
15340NMEDIT \
15341LIPO \
15342OTOOL \
15343OTOOL64 \
15344shrext_cmds \
15345export_dynamic_flag_spec \
15346whole_archive_flag_spec \
15347compiler_needs_object \
15348with_gnu_ld \
15349allow_undefined_flag \
15350no_undefined_flag \
15351hardcode_libdir_flag_spec \
15352hardcode_libdir_flag_spec_ld \
15353hardcode_libdir_separator \
15354fix_srcfile_path \
15355exclude_expsyms \
15356include_expsyms \
15357file_list_spec \
15358variables_saved_for_relink \
15359libname_spec \
15360library_names_spec \
15361soname_spec \
15362finish_eval \
15363old_striplib \
15364striplib; do
15365    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15366    *[\\\\\\\`\\"\\\$]*)
15367      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15368      ;;
15369    *)
15370      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15371      ;;
15372    esac
15373done
15374
15375# Double-quote double-evaled strings.
15376for var in reload_cmds \
15377old_postinstall_cmds \
15378old_postuninstall_cmds \
15379old_archive_cmds \
15380extract_expsyms_cmds \
15381old_archive_from_new_cmds \
15382old_archive_from_expsyms_cmds \
15383archive_cmds \
15384archive_expsym_cmds \
15385module_cmds \
15386module_expsym_cmds \
15387export_symbols_cmds \
15388prelink_cmds \
15389postinstall_cmds \
15390postuninstall_cmds \
15391finish_cmds \
15392sys_lib_search_path_spec \
15393sys_lib_dlsearch_path_spec; do
15394    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15395    *[\\\\\\\`\\"\\\$]*)
15396      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15397      ;;
15398    *)
15399      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15400      ;;
15401    esac
15402done
15403
15404# Fix-up fallback echo if it was mangled by the above quoting rules.
15405case \$lt_ECHO in
15406*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15407  ;;
15408esac
15409
15410ac_aux_dir='$ac_aux_dir'
15411xsi_shell='$xsi_shell'
15412lt_shell_append='$lt_shell_append'
15413
15414# See if we are running on zsh, and set the options which allow our
15415# commands through without removal of \ escapes INIT.
15416if test -n "\${ZSH_VERSION+set}" ; then
15417   setopt NO_GLOB_SUBST
15418fi
15419
15420
15421    PACKAGE='$PACKAGE'
15422    VERSION='$VERSION'
15423    TIMESTAMP='$TIMESTAMP'
15424    RM='$RM'
15425    ofile='$ofile'
15426
15427
15428
15429AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15430
15431_ACEOF
15432
15433cat >>$CONFIG_STATUS <<\_ACEOF
15434
15435# Handling of arguments.
15436for ac_config_target in $ac_config_targets
15437do
15438  case $ac_config_target in
15439    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15440    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15441    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15442    "SDL_ttf.spec") CONFIG_FILES="$CONFIG_FILES SDL_ttf.spec" ;;
15443    "SDL_ttf.pc") CONFIG_FILES="$CONFIG_FILES SDL_ttf.pc" ;;
15444
15445  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15446echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15447   { (exit 1); exit 1; }; };;
15448  esac
15449done
15450
15451
15452# If the user did not use the arguments to specify the items to instantiate,
15453# then the envvar interface is used.  Set only those that are not.
15454# We use the long form for the default assignment because of an extremely
15455# bizarre bug on SunOS 4.1.3.
15456if $ac_need_defaults; then
15457  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15458  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15459fi
15460
15461# Have a temporary directory for convenience.  Make it in the build tree
15462# simply because there is no reason against having it here, and in addition,
15463# creating and moving files from /tmp can sometimes cause problems.
15464# Hook for its removal unless debugging.
15465# Note that there is a small window in which the directory will not be cleaned:
15466# after its creation but before its name has been assigned to `$tmp'.
15467$debug ||
15468{
15469  tmp=
15470  trap 'exit_status=$?
15471  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15472' 0
15473  trap '{ (exit 1); exit 1; }' 1 2 13 15
15474}
15475# Create a (secure) tmp directory for tmp files.
15476
15477{
15478  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15479  test -n "$tmp" && test -d "$tmp"
15480}  ||
15481{
15482  tmp=./conf$$-$RANDOM
15483  (umask 077 && mkdir "$tmp")
15484} ||
15485{
15486   echo "$me: cannot create a temporary directory in ." >&2
15487   { (exit 1); exit 1; }
15488}
15489
15490#
15491# Set up the sed scripts for CONFIG_FILES section.
15492#
15493
15494# No need to generate the scripts if there are no CONFIG_FILES.
15495# This happens for instance when ./config.status config.h
15496if test -n "$CONFIG_FILES"; then
15497
15498_ACEOF
15499
15500
15501
15502ac_delim='%!_!# '
15503for ac_last_try in false false false false false :; do
15504  cat >conf$$subs.sed <<_ACEOF
15505SHELL!$SHELL$ac_delim
15506PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15507PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15508PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15509PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15510PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15511PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15512exec_prefix!$exec_prefix$ac_delim
15513prefix!$prefix$ac_delim
15514program_transform_name!$program_transform_name$ac_delim
15515bindir!$bindir$ac_delim
15516sbindir!$sbindir$ac_delim
15517libexecdir!$libexecdir$ac_delim
15518datarootdir!$datarootdir$ac_delim
15519datadir!$datadir$ac_delim
15520sysconfdir!$sysconfdir$ac_delim
15521sharedstatedir!$sharedstatedir$ac_delim
15522localstatedir!$localstatedir$ac_delim
15523includedir!$includedir$ac_delim
15524oldincludedir!$oldincludedir$ac_delim
15525docdir!$docdir$ac_delim
15526infodir!$infodir$ac_delim
15527htmldir!$htmldir$ac_delim
15528dvidir!$dvidir$ac_delim
15529pdfdir!$pdfdir$ac_delim
15530psdir!$psdir$ac_delim
15531libdir!$libdir$ac_delim
15532localedir!$localedir$ac_delim
15533mandir!$mandir$ac_delim
15534DEFS!$DEFS$ac_delim
15535ECHO_C!$ECHO_C$ac_delim
15536ECHO_N!$ECHO_N$ac_delim
15537ECHO_T!$ECHO_T$ac_delim
15538LIBS!$LIBS$ac_delim
15539build_alias!$build_alias$ac_delim
15540host_alias!$host_alias$ac_delim
15541target_alias!$target_alias$ac_delim
15542MAJOR_VERSION!$MAJOR_VERSION$ac_delim
15543MINOR_VERSION!$MINOR_VERSION$ac_delim
15544MICRO_VERSION!$MICRO_VERSION$ac_delim
15545INTERFACE_AGE!$INTERFACE_AGE$ac_delim
15546BINARY_AGE!$BINARY_AGE$ac_delim
15547VERSION!$VERSION$ac_delim
15548AS!$AS$ac_delim
15549DLLTOOL!$DLLTOOL$ac_delim
15550OBJDUMP!$OBJDUMP$ac_delim
15551LIBTOOL!$LIBTOOL$ac_delim
15552build!$build$ac_delim
15553build_cpu!$build_cpu$ac_delim
15554build_vendor!$build_vendor$ac_delim
15555build_os!$build_os$ac_delim
15556host!$host$ac_delim
15557host_cpu!$host_cpu$ac_delim
15558host_vendor!$host_vendor$ac_delim
15559host_os!$host_os$ac_delim
15560CC!$CC$ac_delim
15561CFLAGS!$CFLAGS$ac_delim
15562LDFLAGS!$LDFLAGS$ac_delim
15563CPPFLAGS!$CPPFLAGS$ac_delim
15564ac_ct_CC!$ac_ct_CC$ac_delim
15565EXEEXT!$EXEEXT$ac_delim
15566OBJEXT!$OBJEXT$ac_delim
15567SED!$SED$ac_delim
15568GREP!$GREP$ac_delim
15569EGREP!$EGREP$ac_delim
15570FGREP!$FGREP$ac_delim
15571LD!$LD$ac_delim
15572DUMPBIN!$DUMPBIN$ac_delim
15573ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
15574NM!$NM$ac_delim
15575LN_S!$LN_S$ac_delim
15576AR!$AR$ac_delim
15577STRIP!$STRIP$ac_delim
15578RANLIB!$RANLIB$ac_delim
15579lt_ECHO!$lt_ECHO$ac_delim
15580DSYMUTIL!$DSYMUTIL$ac_delim
15581NMEDIT!$NMEDIT$ac_delim
15582LIPO!$LIPO$ac_delim
15583OTOOL!$OTOOL$ac_delim
15584OTOOL64!$OTOOL64$ac_delim
15585CPP!$CPP$ac_delim
15586LT_RELEASE!$LT_RELEASE$ac_delim
15587LT_CURRENT!$LT_CURRENT$ac_delim
15588LT_REVISION!$LT_REVISION$ac_delim
15589LT_AGE!$LT_AGE$ac_delim
15590INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15591INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15592INSTALL_DATA!$INSTALL_DATA$ac_delim
15593am__isrc!$am__isrc$ac_delim
15594CYGPATH_W!$CYGPATH_W$ac_delim
15595PACKAGE!$PACKAGE$ac_delim
15596ACLOCAL!$ACLOCAL$ac_delim
15597AUTOCONF!$AUTOCONF$ac_delim
15598AUTOMAKE!$AUTOMAKE$ac_delim
15599AUTOHEADER!$AUTOHEADER$ac_delim
15600MAKEINFO!$MAKEINFO$ac_delim
15601install_sh!$install_sh$ac_delim
15602_ACEOF
15603
15604  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15605    break
15606  elif $ac_last_try; then
15607    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15608echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15609   { (exit 1); exit 1; }; }
15610  else
15611    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15612  fi
15613done
15614
15615ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15616if test -n "$ac_eof"; then
15617  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15618  ac_eof=`expr $ac_eof + 1`
15619fi
15620
15621cat >>$CONFIG_STATUS <<_ACEOF
15622cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15623/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15624_ACEOF
15625sed '
15626s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15627s/^/s,@/; s/!/@,|#_!!_#|/
15628:n
15629t n
15630s/'"$ac_delim"'$/,g/; t
15631s/$/\\/; p
15632N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15633' >>$CONFIG_STATUS <conf$$subs.sed
15634rm -f conf$$subs.sed
15635cat >>$CONFIG_STATUS <<_ACEOF
15636CEOF$ac_eof
15637_ACEOF
15638
15639
15640ac_delim='%!_!# '
15641for ac_last_try in false false false false false :; do
15642  cat >conf$$subs.sed <<_ACEOF
15643INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
15644mkdir_p!$mkdir_p$ac_delim
15645AWK!$AWK$ac_delim
15646SET_MAKE!$SET_MAKE$ac_delim
15647am__leading_dot!$am__leading_dot$ac_delim
15648AMTAR!$AMTAR$ac_delim
15649am__tar!$am__tar$ac_delim
15650am__untar!$am__untar$ac_delim
15651DEPDIR!$DEPDIR$ac_delim
15652am__include!$am__include$ac_delim
15653am__quote!$am__quote$ac_delim
15654AMDEP_TRUE!$AMDEP_TRUE$ac_delim
15655AMDEP_FALSE!$AMDEP_FALSE$ac_delim
15656AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
15657CCDEPMODE!$CCDEPMODE$ac_delim
15658am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
15659am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
15660WINDRES!$WINDRES$ac_delim
15661ALLOCA!$ALLOCA$ac_delim
15662USE_VERSION_RC_TRUE!$USE_VERSION_RC_TRUE$ac_delim
15663USE_VERSION_RC_FALSE!$USE_VERSION_RC_FALSE$ac_delim
15664FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
15665SDL_VERSION!$SDL_VERSION$ac_delim
15666PKG_CONFIG!$PKG_CONFIG$ac_delim
15667SDL_CFLAGS!$SDL_CFLAGS$ac_delim
15668SDL_LIBS!$SDL_LIBS$ac_delim
15669SDL_CONFIG!$SDL_CONFIG$ac_delim
15670XMKMF!$XMKMF$ac_delim
15671X_CFLAGS!$X_CFLAGS$ac_delim
15672X_PRE_LIBS!$X_PRE_LIBS$ac_delim
15673X_LIBS!$X_LIBS$ac_delim
15674X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
15675GL_LIBS!$GL_LIBS$ac_delim
15676MATHLIB!$MATHLIB$ac_delim
15677LIBOBJS!$LIBOBJS$ac_delim
15678LTLIBOBJS!$LTLIBOBJS$ac_delim
15679_ACEOF
15680
15681  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
15682    break
15683  elif $ac_last_try; then
15684    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15685echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15686   { (exit 1); exit 1; }; }
15687  else
15688    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15689  fi
15690done
15691
15692ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15693if test -n "$ac_eof"; then
15694  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15695  ac_eof=`expr $ac_eof + 1`
15696fi
15697
15698cat >>$CONFIG_STATUS <<_ACEOF
15699cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15700/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15701_ACEOF
15702sed '
15703s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15704s/^/s,@/; s/!/@,|#_!!_#|/
15705:n
15706t n
15707s/'"$ac_delim"'$/,g/; t
15708s/$/\\/; p
15709N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15710' >>$CONFIG_STATUS <conf$$subs.sed
15711rm -f conf$$subs.sed
15712cat >>$CONFIG_STATUS <<_ACEOF
15713:end
15714s/|#_!!_#|//g
15715CEOF$ac_eof
15716_ACEOF
15717
15718
15719# VPATH may cause trouble with some makes, so we remove $(srcdir),
15720# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15721# trailing colons and then remove the whole line if VPATH becomes empty
15722# (actually we leave an empty line to preserve line numbers).
15723if test "x$srcdir" = x.; then
15724  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15725s/:*\$(srcdir):*/:/
15726s/:*\${srcdir}:*/:/
15727s/:*@srcdir@:*/:/
15728s/^\([^=]*=[	 ]*\):*/\1/
15729s/:*$//
15730s/^[^=]*=[	 ]*$//
15731}'
15732fi
15733
15734cat >>$CONFIG_STATUS <<\_ACEOF
15735fi # test -n "$CONFIG_FILES"
15736
15737
15738for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
15739do
15740  case $ac_tag in
15741  :[FHLC]) ac_mode=$ac_tag; continue;;
15742  esac
15743  case $ac_mode$ac_tag in
15744  :[FHL]*:*);;
15745  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15746echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15747   { (exit 1); exit 1; }; };;
15748  :[FH]-) ac_tag=-:-;;
15749  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15750  esac
15751  ac_save_IFS=$IFS
15752  IFS=:
15753  set x $ac_tag
15754  IFS=$ac_save_IFS
15755  shift
15756  ac_file=$1
15757  shift
15758
15759  case $ac_mode in
15760  :L) ac_source=$1;;
15761  :[FH])
15762    ac_file_inputs=
15763    for ac_f
15764    do
15765      case $ac_f in
15766      -) ac_f="$tmp/stdin";;
15767      *) # Look for the file first in the build tree, then in the source tree
15768	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15769	 # because $ac_f cannot contain `:'.
15770	 test -f "$ac_f" ||
15771	   case $ac_f in
15772	   [\\/$]*) false;;
15773	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15774	   esac ||
15775	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15776echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15777   { (exit 1); exit 1; }; };;
15778      esac
15779      ac_file_inputs="$ac_file_inputs $ac_f"
15780    done
15781
15782    # Let's still pretend it is `configure' which instantiates (i.e., don't
15783    # use $as_me), people would be surprised to read:
15784    #    /* config.h.  Generated by config.status.  */
15785    configure_input="Generated from "`IFS=:
15786	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15787    if test x"$ac_file" != x-; then
15788      configure_input="$ac_file.  $configure_input"
15789      { echo "$as_me:$LINENO: creating $ac_file" >&5
15790echo "$as_me: creating $ac_file" >&6;}
15791    fi
15792
15793    case $ac_tag in
15794    *:-:* | *:-) cat >"$tmp/stdin";;
15795    esac
15796    ;;
15797  esac
15798
15799  ac_dir=`$as_dirname -- "$ac_file" ||
15800$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15801	 X"$ac_file" : 'X\(//\)[^/]' \| \
15802	 X"$ac_file" : 'X\(//\)$' \| \
15803	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15804echo X"$ac_file" |
15805    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15806	    s//\1/
15807	    q
15808	  }
15809	  /^X\(\/\/\)[^/].*/{
15810	    s//\1/
15811	    q
15812	  }
15813	  /^X\(\/\/\)$/{
15814	    s//\1/
15815	    q
15816	  }
15817	  /^X\(\/\).*/{
15818	    s//\1/
15819	    q
15820	  }
15821	  s/.*/./; q'`
15822  { as_dir="$ac_dir"
15823  case $as_dir in #(
15824  -*) as_dir=./$as_dir;;
15825  esac
15826  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15827    as_dirs=
15828    while :; do
15829      case $as_dir in #(
15830      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15831      *) as_qdir=$as_dir;;
15832      esac
15833      as_dirs="'$as_qdir' $as_dirs"
15834      as_dir=`$as_dirname -- "$as_dir" ||
15835$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15836	 X"$as_dir" : 'X\(//\)[^/]' \| \
15837	 X"$as_dir" : 'X\(//\)$' \| \
15838	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15839echo X"$as_dir" |
15840    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15841	    s//\1/
15842	    q
15843	  }
15844	  /^X\(\/\/\)[^/].*/{
15845	    s//\1/
15846	    q
15847	  }
15848	  /^X\(\/\/\)$/{
15849	    s//\1/
15850	    q
15851	  }
15852	  /^X\(\/\).*/{
15853	    s//\1/
15854	    q
15855	  }
15856	  s/.*/./; q'`
15857      test -d "$as_dir" && break
15858    done
15859    test -z "$as_dirs" || eval "mkdir $as_dirs"
15860  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15861echo "$as_me: error: cannot create directory $as_dir" >&2;}
15862   { (exit 1); exit 1; }; }; }
15863  ac_builddir=.
15864
15865case "$ac_dir" in
15866.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15867*)
15868  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15869  # A ".." for each directory in $ac_dir_suffix.
15870  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15871  case $ac_top_builddir_sub in
15872  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15873  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15874  esac ;;
15875esac
15876ac_abs_top_builddir=$ac_pwd
15877ac_abs_builddir=$ac_pwd$ac_dir_suffix
15878# for backward compatibility:
15879ac_top_builddir=$ac_top_build_prefix
15880
15881case $srcdir in
15882  .)  # We are building in place.
15883    ac_srcdir=.
15884    ac_top_srcdir=$ac_top_builddir_sub
15885    ac_abs_top_srcdir=$ac_pwd ;;
15886  [\\/]* | ?:[\\/]* )  # Absolute name.
15887    ac_srcdir=$srcdir$ac_dir_suffix;
15888    ac_top_srcdir=$srcdir
15889    ac_abs_top_srcdir=$srcdir ;;
15890  *) # Relative name.
15891    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15892    ac_top_srcdir=$ac_top_build_prefix$srcdir
15893    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15894esac
15895ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15896
15897
15898  case $ac_mode in
15899  :F)
15900  #
15901  # CONFIG_FILE
15902  #
15903
15904  case $INSTALL in
15905  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15906  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15907  esac
15908  ac_MKDIR_P=$MKDIR_P
15909  case $MKDIR_P in
15910  [\\/$]* | ?:[\\/]* ) ;;
15911  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15912  esac
15913_ACEOF
15914
15915cat >>$CONFIG_STATUS <<\_ACEOF
15916# If the template does not know about datarootdir, expand it.
15917# FIXME: This hack should be removed a few years after 2.60.
15918ac_datarootdir_hack=; ac_datarootdir_seen=
15919
15920case `sed -n '/datarootdir/ {
15921  p
15922  q
15923}
15924/@datadir@/p
15925/@docdir@/p
15926/@infodir@/p
15927/@localedir@/p
15928/@mandir@/p
15929' $ac_file_inputs` in
15930*datarootdir*) ac_datarootdir_seen=yes;;
15931*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15932  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15933echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15934_ACEOF
15935cat >>$CONFIG_STATUS <<_ACEOF
15936  ac_datarootdir_hack='
15937  s&@datadir@&$datadir&g
15938  s&@docdir@&$docdir&g
15939  s&@infodir@&$infodir&g
15940  s&@localedir@&$localedir&g
15941  s&@mandir@&$mandir&g
15942    s&\\\${datarootdir}&$datarootdir&g' ;;
15943esac
15944_ACEOF
15945
15946# Neutralize VPATH when `$srcdir' = `.'.
15947# Shell code in configure.ac might set extrasub.
15948# FIXME: do we really want to maintain this feature?
15949cat >>$CONFIG_STATUS <<_ACEOF
15950  sed "$ac_vpsub
15951$extrasub
15952_ACEOF
15953cat >>$CONFIG_STATUS <<\_ACEOF
15954:t
15955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15956s&@configure_input@&$configure_input&;t t
15957s&@top_builddir@&$ac_top_builddir_sub&;t t
15958s&@srcdir@&$ac_srcdir&;t t
15959s&@abs_srcdir@&$ac_abs_srcdir&;t t
15960s&@top_srcdir@&$ac_top_srcdir&;t t
15961s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15962s&@builddir@&$ac_builddir&;t t
15963s&@abs_builddir@&$ac_abs_builddir&;t t
15964s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15965s&@INSTALL@&$ac_INSTALL&;t t
15966s&@MKDIR_P@&$ac_MKDIR_P&;t t
15967$ac_datarootdir_hack
15968" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15969
15970test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15971  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15972  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15973  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15974which seems to be undefined.  Please make sure it is defined." >&5
15975echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15976which seems to be undefined.  Please make sure it is defined." >&2;}
15977
15978  rm -f "$tmp/stdin"
15979  case $ac_file in
15980  -) cat "$tmp/out"; rm -f "$tmp/out";;
15981  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15982  esac
15983 ;;
15984
15985
15986  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15987echo "$as_me: executing $ac_file commands" >&6;}
15988 ;;
15989  esac
15990
15991
15992  case $ac_file$ac_mode in
15993    "libtool":C)
15994
15995    # See if we are running on zsh, and set the options which allow our
15996    # commands through without removal of \ escapes.
15997    if test -n "${ZSH_VERSION+set}" ; then
15998      setopt NO_GLOB_SUBST
15999    fi
16000
16001    cfgfile="${ofile}T"
16002    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16003    $RM "$cfgfile"
16004
16005    cat <<_LT_EOF >> "$cfgfile"
16006#! $SHELL
16007
16008# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16009# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16010# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16011# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16012#
16013#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16014#                 2006, 2007, 2008 Free Software Foundation, Inc.
16015#   Written by Gordon Matzigkeit, 1996
16016#
16017#   This file is part of GNU Libtool.
16018#
16019# GNU Libtool is free software; you can redistribute it and/or
16020# modify it under the terms of the GNU General Public License as
16021# published by the Free Software Foundation; either version 2 of
16022# the License, or (at your option) any later version.
16023#
16024# As a special exception to the GNU General Public License,
16025# if you distribute this file as part of a program or library that
16026# is built using GNU Libtool, you may include this file under the
16027# same distribution terms that you use for the rest of that program.
16028#
16029# GNU Libtool is distributed in the hope that it will be useful,
16030# but WITHOUT ANY WARRANTY; without even the implied warranty of
16031# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16032# GNU General Public License for more details.
16033#
16034# You should have received a copy of the GNU General Public License
16035# along with GNU Libtool; see the file COPYING.  If not, a copy
16036# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16037# obtained by writing to the Free Software Foundation, Inc.,
16038# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16039
16040
16041# The names of the tagged configurations supported by this script.
16042available_tags=""
16043
16044# ### BEGIN LIBTOOL CONFIG
16045
16046# Which release of libtool.m4 was used?
16047macro_version=$macro_version
16048macro_revision=$macro_revision
16049
16050# Assembler program.
16051AS=$AS
16052
16053# DLL creation program.
16054DLLTOOL=$DLLTOOL
16055
16056# Object dumper program.
16057OBJDUMP=$OBJDUMP
16058
16059# Whether or not to build shared libraries.
16060build_libtool_libs=$enable_shared
16061
16062# Whether or not to build static libraries.
16063build_old_libs=$enable_static
16064
16065# What type of objects to build.
16066pic_mode=$pic_mode
16067
16068# Whether or not to optimize for fast installation.
16069fast_install=$enable_fast_install
16070
16071# The host system.
16072host_alias=$host_alias
16073host=$host
16074host_os=$host_os
16075
16076# The build system.
16077build_alias=$build_alias
16078build=$build
16079build_os=$build_os
16080
16081# A sed program that does not truncate output.
16082SED=$lt_SED
16083
16084# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16085Xsed="\$SED -e 1s/^X//"
16086
16087# A grep program that handles long lines.
16088GREP=$lt_GREP
16089
16090# An ERE matcher.
16091EGREP=$lt_EGREP
16092
16093# A literal string matcher.
16094FGREP=$lt_FGREP
16095
16096# A BSD- or MS-compatible name lister.
16097NM=$lt_NM
16098
16099# Whether we need soft or hard links.
16100LN_S=$lt_LN_S
16101
16102# What is the maximum length of a command?
16103max_cmd_len=$max_cmd_len
16104
16105# Object file suffix (normally "o").
16106objext=$ac_objext
16107
16108# Executable file suffix (normally "").
16109exeext=$exeext
16110
16111# whether the shell understands "unset".
16112lt_unset=$lt_unset
16113
16114# turn spaces into newlines.
16115SP2NL=$lt_lt_SP2NL
16116
16117# turn newlines into spaces.
16118NL2SP=$lt_lt_NL2SP
16119
16120# How to create reloadable object files.
16121reload_flag=$lt_reload_flag
16122reload_cmds=$lt_reload_cmds
16123
16124# Method to check whether dependent libraries are shared objects.
16125deplibs_check_method=$lt_deplibs_check_method
16126
16127# Command to use when deplibs_check_method == "file_magic".
16128file_magic_cmd=$lt_file_magic_cmd
16129
16130# The archiver.
16131AR=$lt_AR
16132AR_FLAGS=$lt_AR_FLAGS
16133
16134# A symbol stripping program.
16135STRIP=$lt_STRIP
16136
16137# Commands used to install an old-style archive.
16138RANLIB=$lt_RANLIB
16139old_postinstall_cmds=$lt_old_postinstall_cmds
16140old_postuninstall_cmds=$lt_old_postuninstall_cmds
16141
16142# A C compiler.
16143LTCC=$lt_CC
16144
16145# LTCC compiler flags.
16146LTCFLAGS=$lt_CFLAGS
16147
16148# Take the output of nm and produce a listing of raw symbols and C names.
16149global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16150
16151# Transform the output of nm in a proper C declaration.
16152global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16153
16154# Transform the output of nm in a C name address pair.
16155global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16156
16157# Transform the output of nm in a C name address pair when lib prefix is needed.
16158global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16159
16160# The name of the directory that contains temporary libtool files.
16161objdir=$objdir
16162
16163# Shell to use when invoking shell scripts.
16164SHELL=$lt_SHELL
16165
16166# An echo program that does not interpret backslashes.
16167ECHO=$lt_ECHO
16168
16169# Used to examine libraries when file_magic_cmd begins with "file".
16170MAGIC_CMD=$MAGIC_CMD
16171
16172# Must we lock files when doing compilation?
16173need_locks=$lt_need_locks
16174
16175# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16176DSYMUTIL=$lt_DSYMUTIL
16177
16178# Tool to change global to local symbols on Mac OS X.
16179NMEDIT=$lt_NMEDIT
16180
16181# Tool to manipulate fat objects and archives on Mac OS X.
16182LIPO=$lt_LIPO
16183
16184# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16185OTOOL=$lt_OTOOL
16186
16187# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16188OTOOL64=$lt_OTOOL64
16189
16190# Old archive suffix (normally "a").
16191libext=$libext
16192
16193# Shared library suffix (normally ".so").
16194shrext_cmds=$lt_shrext_cmds
16195
16196# The commands to extract the exported symbol list from a shared archive.
16197extract_expsyms_cmds=$lt_extract_expsyms_cmds
16198
16199# Variables whose values should be saved in libtool wrapper scripts and
16200# restored at link time.
16201variables_saved_for_relink=$lt_variables_saved_for_relink
16202
16203# Do we need the "lib" prefix for modules?
16204need_lib_prefix=$need_lib_prefix
16205
16206# Do we need a version for libraries?
16207need_version=$need_version
16208
16209# Library versioning type.
16210version_type=$version_type
16211
16212# Shared library runtime path variable.
16213runpath_var=$runpath_var
16214
16215# Shared library path variable.
16216shlibpath_var=$shlibpath_var
16217
16218# Is shlibpath searched before the hard-coded library search path?
16219shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16220
16221# Format of library name prefix.
16222libname_spec=$lt_libname_spec
16223
16224# List of archive names.  First name is the real one, the rest are links.
16225# The last name is the one that the linker finds with -lNAME
16226library_names_spec=$lt_library_names_spec
16227
16228# The coded name of the library, if different from the real name.
16229soname_spec=$lt_soname_spec
16230
16231# Command to use after installation of a shared archive.
16232postinstall_cmds=$lt_postinstall_cmds
16233
16234# Command to use after uninstallation of a shared archive.
16235postuninstall_cmds=$lt_postuninstall_cmds
16236
16237# Commands used to finish a libtool library installation in a directory.
16238finish_cmds=$lt_finish_cmds
16239
16240# As "finish_cmds", except a single script fragment to be evaled but
16241# not shown.
16242finish_eval=$lt_finish_eval
16243
16244# Whether we should hardcode library paths into libraries.
16245hardcode_into_libs=$hardcode_into_libs
16246
16247# Compile-time system search path for libraries.
16248sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16249
16250# Run-time system search path for libraries.
16251sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16252
16253# Whether dlopen is supported.
16254dlopen_support=$enable_dlopen
16255
16256# Whether dlopen of programs is supported.
16257dlopen_self=$enable_dlopen_self
16258
16259# Whether dlopen of statically linked programs is supported.
16260dlopen_self_static=$enable_dlopen_self_static
16261
16262# Commands to strip libraries.
16263old_striplib=$lt_old_striplib
16264striplib=$lt_striplib
16265
16266
16267# The linker used to build libraries.
16268LD=$lt_LD
16269
16270# Commands used to build an old-style archive.
16271old_archive_cmds=$lt_old_archive_cmds
16272
16273# A language specific compiler.
16274CC=$lt_compiler
16275
16276# Is the compiler the GNU compiler?
16277with_gcc=$GCC
16278
16279# Compiler flag to turn off builtin functions.
16280no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16281
16282# How to pass a linker flag through the compiler.
16283wl=$lt_lt_prog_compiler_wl
16284
16285# Additional compiler flags for building library objects.
16286pic_flag=$lt_lt_prog_compiler_pic
16287
16288# Compiler flag to prevent dynamic linking.
16289link_static_flag=$lt_lt_prog_compiler_static
16290
16291# Does compiler simultaneously support -c and -o options?
16292compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16293
16294# Whether or not to add -lc for building shared libraries.
16295build_libtool_need_lc=$archive_cmds_need_lc
16296
16297# Whether or not to disallow shared libs when runtime libs are static.
16298allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16299
16300# Compiler flag to allow reflexive dlopens.
16301export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16302
16303# Compiler flag to generate shared objects directly from archives.
16304whole_archive_flag_spec=$lt_whole_archive_flag_spec
16305
16306# Whether the compiler copes with passing no objects directly.
16307compiler_needs_object=$lt_compiler_needs_object
16308
16309# Create an old-style archive from a shared archive.
16310old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16311
16312# Create a temporary old-style archive to link instead of a shared archive.
16313old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16314
16315# Commands used to build a shared archive.
16316archive_cmds=$lt_archive_cmds
16317archive_expsym_cmds=$lt_archive_expsym_cmds
16318
16319# Commands used to build a loadable module if different from building
16320# a shared archive.
16321module_cmds=$lt_module_cmds
16322module_expsym_cmds=$lt_module_expsym_cmds
16323
16324# Whether we are building with GNU ld or not.
16325with_gnu_ld=$lt_with_gnu_ld
16326
16327# Flag that allows shared libraries with undefined symbols to be built.
16328allow_undefined_flag=$lt_allow_undefined_flag
16329
16330# Flag that enforces no undefined symbols.
16331no_undefined_flag=$lt_no_undefined_flag
16332
16333# Flag to hardcode \$libdir into a binary during linking.
16334# This must work even if \$libdir does not exist
16335hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16336
16337# If ld is used when linking, flag to hardcode \$libdir into a binary
16338# during linking.  This must work even if \$libdir does not exist.
16339hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16340
16341# Whether we need a single "-rpath" flag with a separated argument.
16342hardcode_libdir_separator=$lt_hardcode_libdir_separator
16343
16344# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16345# DIR into the resulting binary.
16346hardcode_direct=$hardcode_direct
16347
16348# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16349# DIR into the resulting binary and the resulting library dependency is
16350# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16351# library is relocated.
16352hardcode_direct_absolute=$hardcode_direct_absolute
16353
16354# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16355# into the resulting binary.
16356hardcode_minus_L=$hardcode_minus_L
16357
16358# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16359# into the resulting binary.
16360hardcode_shlibpath_var=$hardcode_shlibpath_var
16361
16362# Set to "yes" if building a shared library automatically hardcodes DIR
16363# into the library and all subsequent libraries and executables linked
16364# against it.
16365hardcode_automatic=$hardcode_automatic
16366
16367# Set to yes if linker adds runtime paths of dependent libraries
16368# to runtime path list.
16369inherit_rpath=$inherit_rpath
16370
16371# Whether libtool must link a program against all its dependency libraries.
16372link_all_deplibs=$link_all_deplibs
16373
16374# Fix the shell variable \$srcfile for the compiler.
16375fix_srcfile_path=$lt_fix_srcfile_path
16376
16377# Set to "yes" if exported symbols are required.
16378always_export_symbols=$always_export_symbols
16379
16380# The commands to list exported symbols.
16381export_symbols_cmds=$lt_export_symbols_cmds
16382
16383# Symbols that should not be listed in the preloaded symbols.
16384exclude_expsyms=$lt_exclude_expsyms
16385
16386# Symbols that must always be exported.
16387include_expsyms=$lt_include_expsyms
16388
16389# Commands necessary for linking programs (against libraries) with templates.
16390prelink_cmds=$lt_prelink_cmds
16391
16392# Specify filename containing input files.
16393file_list_spec=$lt_file_list_spec
16394
16395# How to hardcode a shared library path into an executable.
16396hardcode_action=$hardcode_action
16397
16398# ### END LIBTOOL CONFIG
16399
16400_LT_EOF
16401
16402  case $host_os in
16403  aix3*)
16404    cat <<\_LT_EOF >> "$cfgfile"
16405# AIX sometimes has problems with the GCC collect2 program.  For some
16406# reason, if we set the COLLECT_NAMES environment variable, the problems
16407# vanish in a puff of smoke.
16408if test "X${COLLECT_NAMES+set}" != Xset; then
16409  COLLECT_NAMES=
16410  export COLLECT_NAMES
16411fi
16412_LT_EOF
16413    ;;
16414  esac
16415
16416
16417ltmain="$ac_aux_dir/ltmain.sh"
16418
16419
16420  # We use sed instead of cat because bash on DJGPP gets confused if
16421  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16422  # text mode, it properly converts lines to CR/LF.  This bash problem
16423  # is reportedly fixed, but why not run on old versions too?
16424  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16425    || (rm -f "$cfgfile"; exit 1)
16426
16427  case $xsi_shell in
16428  yes)
16429    cat << \_LT_EOF >> "$cfgfile"
16430
16431# func_dirname file append nondir_replacement
16432# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16433# otherwise set result to NONDIR_REPLACEMENT.
16434func_dirname ()
16435{
16436  case ${1} in
16437    */*) func_dirname_result="${1%/*}${2}" ;;
16438    *  ) func_dirname_result="${3}" ;;
16439  esac
16440}
16441
16442# func_basename file
16443func_basename ()
16444{
16445  func_basename_result="${1##*/}"
16446}
16447
16448# func_dirname_and_basename file append nondir_replacement
16449# perform func_basename and func_dirname in a single function
16450# call:
16451#   dirname:  Compute the dirname of FILE.  If nonempty,
16452#             add APPEND to the result, otherwise set result
16453#             to NONDIR_REPLACEMENT.
16454#             value returned in "$func_dirname_result"
16455#   basename: Compute filename of FILE.
16456#             value retuned in "$func_basename_result"
16457# Implementation must be kept synchronized with func_dirname
16458# and func_basename. For efficiency, we do not delegate to
16459# those functions but instead duplicate the functionality here.
16460func_dirname_and_basename ()
16461{
16462  case ${1} in
16463    */*) func_dirname_result="${1%/*}${2}" ;;
16464    *  ) func_dirname_result="${3}" ;;
16465  esac
16466  func_basename_result="${1##*/}"
16467}
16468
16469# func_stripname prefix suffix name
16470# strip PREFIX and SUFFIX off of NAME.
16471# PREFIX and SUFFIX must not contain globbing or regex special
16472# characters, hashes, percent signs, but SUFFIX may contain a leading
16473# dot (in which case that matches only a dot).
16474func_stripname ()
16475{
16476  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16477  # positional parameters, so assign one to ordinary parameter first.
16478  func_stripname_result=${3}
16479  func_stripname_result=${func_stripname_result#"${1}"}
16480  func_stripname_result=${func_stripname_result%"${2}"}
16481}
16482
16483# func_opt_split
16484func_opt_split ()
16485{
16486  func_opt_split_opt=${1%%=*}
16487  func_opt_split_arg=${1#*=}
16488}
16489
16490# func_lo2o object
16491func_lo2o ()
16492{
16493  case ${1} in
16494    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16495    *)    func_lo2o_result=${1} ;;
16496  esac
16497}
16498
16499# func_xform libobj-or-source
16500func_xform ()
16501{
16502  func_xform_result=${1%.*}.lo
16503}
16504
16505# func_arith arithmetic-term...
16506func_arith ()
16507{
16508  func_arith_result=$(( $* ))
16509}
16510
16511# func_len string
16512# STRING may not start with a hyphen.
16513func_len ()
16514{
16515  func_len_result=${#1}
16516}
16517
16518_LT_EOF
16519    ;;
16520  *) # Bourne compatible functions.
16521    cat << \_LT_EOF >> "$cfgfile"
16522
16523# func_dirname file append nondir_replacement
16524# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16525# otherwise set result to NONDIR_REPLACEMENT.
16526func_dirname ()
16527{
16528  # Extract subdirectory from the argument.
16529  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16530  if test "X$func_dirname_result" = "X${1}"; then
16531    func_dirname_result="${3}"
16532  else
16533    func_dirname_result="$func_dirname_result${2}"
16534  fi
16535}
16536
16537# func_basename file
16538func_basename ()
16539{
16540  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16541}
16542
16543
16544# func_stripname prefix suffix name
16545# strip PREFIX and SUFFIX off of NAME.
16546# PREFIX and SUFFIX must not contain globbing or regex special
16547# characters, hashes, percent signs, but SUFFIX may contain a leading
16548# dot (in which case that matches only a dot).
16549# func_strip_suffix prefix name
16550func_stripname ()
16551{
16552  case ${2} in
16553    .*) func_stripname_result=`$ECHO "X${3}" \
16554           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16555    *)  func_stripname_result=`$ECHO "X${3}" \
16556           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16557  esac
16558}
16559
16560# sed scripts:
16561my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16562my_sed_long_arg='1s/^-[^=]*=//'
16563
16564# func_opt_split
16565func_opt_split ()
16566{
16567  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16568  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16569}
16570
16571# func_lo2o object
16572func_lo2o ()
16573{
16574  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16575}
16576
16577# func_xform libobj-or-source
16578func_xform ()
16579{
16580  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16581}
16582
16583# func_arith arithmetic-term...
16584func_arith ()
16585{
16586  func_arith_result=`expr "$@"`
16587}
16588
16589# func_len string
16590# STRING may not start with a hyphen.
16591func_len ()
16592{
16593  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16594}
16595
16596_LT_EOF
16597esac
16598
16599case $lt_shell_append in
16600  yes)
16601    cat << \_LT_EOF >> "$cfgfile"
16602
16603# func_append var value
16604# Append VALUE to the end of shell variable VAR.
16605func_append ()
16606{
16607  eval "$1+=\$2"
16608}
16609_LT_EOF
16610    ;;
16611  *)
16612    cat << \_LT_EOF >> "$cfgfile"
16613
16614# func_append var value
16615# Append VALUE to the end of shell variable VAR.
16616func_append ()
16617{
16618  eval "$1=\$$1\$2"
16619}
16620
16621_LT_EOF
16622    ;;
16623  esac
16624
16625
16626  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16627    || (rm -f "$cfgfile"; exit 1)
16628
16629  mv -f "$cfgfile" "$ofile" ||
16630    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16631  chmod +x "$ofile"
16632
16633 ;;
16634    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16635  # Strip MF so we end up with the name of the file.
16636  mf=`echo "$mf" | sed -e 's/:.*$//'`
16637  # Check whether this is an Automake generated Makefile or not.
16638  # We used to match only the files named `Makefile.in', but
16639  # some people rename them; so instead we look at the file content.
16640  # Grep'ing the first line is not enough: some people post-process
16641  # each Makefile.in and add a new line on top of each file to say so.
16642  # Grep'ing the whole file is not good either: AIX grep has a line
16643  # limit of 2048, but all sed's we know have understand at least 4000.
16644  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
16645    dirpart=`$as_dirname -- "$mf" ||
16646$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16647	 X"$mf" : 'X\(//\)[^/]' \| \
16648	 X"$mf" : 'X\(//\)$' \| \
16649	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16650echo X"$mf" |
16651    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16652	    s//\1/
16653	    q
16654	  }
16655	  /^X\(\/\/\)[^/].*/{
16656	    s//\1/
16657	    q
16658	  }
16659	  /^X\(\/\/\)$/{
16660	    s//\1/
16661	    q
16662	  }
16663	  /^X\(\/\).*/{
16664	    s//\1/
16665	    q
16666	  }
16667	  s/.*/./; q'`
16668  else
16669    continue
16670  fi
16671  # Extract the definition of DEPDIR, am__include, and am__quote
16672  # from the Makefile without running `make'.
16673  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16674  test -z "$DEPDIR" && continue
16675  am__include=`sed -n 's/^am__include = //p' < "$mf"`
16676  test -z "am__include" && continue
16677  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16678  # When using ansi2knr, U may be empty or an underscore; expand it
16679  U=`sed -n 's/^U = //p' < "$mf"`
16680  # Find all dependency output files, they are included files with
16681  # $(DEPDIR) in their names.  We invoke sed twice because it is the
16682  # simplest approach to changing $(DEPDIR) to its actual value in the
16683  # expansion.
16684  for file in `sed -n "
16685    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16686       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16687    # Make sure the directory exists.
16688    test -f "$dirpart/$file" && continue
16689    fdir=`$as_dirname -- "$file" ||
16690$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16691	 X"$file" : 'X\(//\)[^/]' \| \
16692	 X"$file" : 'X\(//\)$' \| \
16693	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16694echo X"$file" |
16695    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16696	    s//\1/
16697	    q
16698	  }
16699	  /^X\(\/\/\)[^/].*/{
16700	    s//\1/
16701	    q
16702	  }
16703	  /^X\(\/\/\)$/{
16704	    s//\1/
16705	    q
16706	  }
16707	  /^X\(\/\).*/{
16708	    s//\1/
16709	    q
16710	  }
16711	  s/.*/./; q'`
16712    { as_dir=$dirpart/$fdir
16713  case $as_dir in #(
16714  -*) as_dir=./$as_dir;;
16715  esac
16716  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16717    as_dirs=
16718    while :; do
16719      case $as_dir in #(
16720      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16721      *) as_qdir=$as_dir;;
16722      esac
16723      as_dirs="'$as_qdir' $as_dirs"
16724      as_dir=`$as_dirname -- "$as_dir" ||
16725$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16726	 X"$as_dir" : 'X\(//\)[^/]' \| \
16727	 X"$as_dir" : 'X\(//\)$' \| \
16728	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16729echo X"$as_dir" |
16730    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16731	    s//\1/
16732	    q
16733	  }
16734	  /^X\(\/\/\)[^/].*/{
16735	    s//\1/
16736	    q
16737	  }
16738	  /^X\(\/\/\)$/{
16739	    s//\1/
16740	    q
16741	  }
16742	  /^X\(\/\).*/{
16743	    s//\1/
16744	    q
16745	  }
16746	  s/.*/./; q'`
16747      test -d "$as_dir" && break
16748    done
16749    test -z "$as_dirs" || eval "mkdir $as_dirs"
16750  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16751echo "$as_me: error: cannot create directory $as_dir" >&2;}
16752   { (exit 1); exit 1; }; }; }
16753    # echo "creating $dirpart/$file"
16754    echo '# dummy' > "$dirpart/$file"
16755  done
16756done
16757 ;;
16758
16759  esac
16760done # for ac_tag
16761
16762
16763{ (exit 0); exit 0; }
16764_ACEOF
16765chmod +x $CONFIG_STATUS
16766ac_clean_files=$ac_clean_files_save
16767
16768
16769# configure is writing to config.log, and then calls config.status.
16770# config.status does its own redirection, appending to config.log.
16771# Unfortunately, on DOS this fails, as config.log is still kept open
16772# by configure, so config.status won't be able to write to it; its
16773# output is simply discarded.  So we exec the FD to /dev/null,
16774# effectively closing config.log, so it can be properly (re)opened and
16775# appended to by config.status.  When coming back to configure, we
16776# need to make the FD available again.
16777if test "$no_create" != yes; then
16778  ac_cs_success=:
16779  ac_config_status_args=
16780  test "$silent" = yes &&
16781    ac_config_status_args="$ac_config_status_args --quiet"
16782  exec 5>/dev/null
16783  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16784  exec 5>>config.log
16785  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16786  # would make configure fail if this is the last instruction.
16787  $ac_cs_success || { (exit 1); exit 1; }
16788fi
16789
16790